~clint-fewbar/ubuntu/precise/gearmand/drop-unneeded-patches

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2009-08-11 10:06:22 UTC
  • mto: (1.2.3 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20090811100622-6ig4iknanc73olum
ImportĀ upstreamĀ versionĀ 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for gearmand 0.6.
 
3
# Generated by GNU Autoconf 2.61 for gearmand 0.9.
4
4
#
5
5
# Report bugs to <https://launchpad.net/gearmand>.
6
6
#
555
555
# Check that we are running under the correct shell.
556
556
SHELL=${CONFIG_SHELL-/bin/sh}
557
557
 
558
 
case X$ECHO in
 
558
case X$lt_ECHO in
559
559
X*--fallback-echo)
560
560
  # Remove one level of quotation (which was required for Make).
561
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
561
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
562
  ;;
563
563
esac
564
564
 
565
 
echo=${ECHO-echo}
 
565
ECHO=${lt_ECHO-echo}
566
566
if test "X$1" = X--no-reexec; then
567
567
  # Discard the --no-reexec flag, and continue.
568
568
  shift
569
569
elif test "X$1" = X--fallback-echo; then
570
570
  # Avoid inline document here, it may be left over
571
571
  :
572
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
 
  # Yippee, $echo works!
 
572
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $ECHO works!
574
574
  :
575
575
else
576
576
  # Restart under the correct shell.
580
580
if test "X$1" = X--fallback-echo; then
581
581
  # used as fallback echo
582
582
  shift
583
 
  cat <<EOF
 
583
  cat <<_LT_EOF
584
584
$*
585
 
EOF
 
585
_LT_EOF
586
586
  exit 0
587
587
fi
588
588
 
590
590
# if CDPATH is set.
591
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
592
 
593
 
if test -z "$ECHO"; then
594
 
if test "X${echo_test_string+set}" != Xset; then
595
 
# find a string as large as possible, as long as the shell can cope with it
596
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
 
       echo_test_string=`eval $cmd` &&
600
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
 
    then
602
 
      break
603
 
    fi
604
 
  done
605
 
fi
606
 
 
607
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
610
 
  :
611
 
else
612
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
613
 
  # backslashes.  This makes it impossible to quote backslashes using
614
 
  #   echo "$something" | sed 's/\\/\\\\/g'
615
 
  #
616
 
  # So, first we look for a working echo in the user's PATH.
617
 
 
618
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
 
  for dir in $PATH /usr/ucb; do
 
593
if test -z "$lt_ECHO"; then
 
594
  if test "X${echo_test_string+set}" != Xset; then
 
595
    # find a string as large as possible, as long as the shell can cope with it
 
596
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
599
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
600
      then
 
601
        break
 
602
      fi
 
603
    done
 
604
  fi
 
605
 
 
606
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
607
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
608
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
609
    :
 
610
  else
 
611
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
612
    # backslashes.  This makes it impossible to quote backslashes using
 
613
    #   echo "$something" | sed 's/\\/\\\\/g'
 
614
    #
 
615
    # So, first we look for a working echo in the user's PATH.
 
616
 
 
617
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
618
    for dir in $PATH /usr/ucb; do
 
619
      IFS="$lt_save_ifs"
 
620
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
621
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
622
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
623
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
624
        ECHO="$dir/echo"
 
625
        break
 
626
      fi
 
627
    done
620
628
    IFS="$lt_save_ifs"
621
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
625
 
      echo="$dir/echo"
626
 
      break
627
 
    fi
628
 
  done
629
 
  IFS="$lt_save_ifs"
630
629
 
631
 
  if test "X$echo" = Xecho; then
632
 
    # We didn't find a better echo, so look for alternatives.
633
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
636
 
      # This shell has a builtin print -r that does the trick.
637
 
      echo='print -r'
638
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
640
 
      # If we have ksh, try running configure again with it.
641
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
 
      export ORIGINAL_CONFIG_SHELL
643
 
      CONFIG_SHELL=/bin/ksh
644
 
      export CONFIG_SHELL
645
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646
 
    else
647
 
      # Try using printf.
648
 
      echo='printf %s\n'
649
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
652
 
        # Cool, printf works
653
 
        :
654
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = 'X\t' &&
656
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
658
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
 
        export CONFIG_SHELL
660
 
        SHELL="$CONFIG_SHELL"
661
 
        export SHELL
662
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
663
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = 'X\t' &&
665
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
667
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
630
    if test "X$ECHO" = Xecho; then
 
631
      # We didn't find a better echo, so look for alternatives.
 
632
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
633
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
634
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
        # This shell has a builtin print -r that does the trick.
 
636
        ECHO='print -r'
 
637
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
638
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
639
        # If we have ksh, try running configure again with it.
 
640
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
641
        export ORIGINAL_CONFIG_SHELL
 
642
        CONFIG_SHELL=/bin/ksh
 
643
        export CONFIG_SHELL
 
644
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668
645
      else
669
 
        # maybe with a smaller string...
670
 
        prev=:
671
 
 
672
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674
 
          then
675
 
            break
 
646
        # Try using printf.
 
647
        ECHO='printf %s\n'
 
648
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
649
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
650
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
651
          # Cool, printf works
 
652
          :
 
653
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
654
             test "X$echo_testing_string" = 'X\t' &&
 
655
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
656
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
658
          export CONFIG_SHELL
 
659
          SHELL="$CONFIG_SHELL"
 
660
          export SHELL
 
661
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
662
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
663
             test "X$echo_testing_string" = 'X\t' &&
 
664
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
665
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
666
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
667
        else
 
668
          # maybe with a smaller string...
 
669
          prev=:
 
670
 
 
671
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
672
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
673
            then
 
674
              break
 
675
            fi
 
676
            prev="$cmd"
 
677
          done
 
678
 
 
679
          if test "$prev" != 'sed 50q "$0"'; then
 
680
            echo_test_string=`eval $prev`
 
681
            export echo_test_string
 
682
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
683
          else
 
684
            # Oops.  We lost completely, so just stick with echo.
 
685
            ECHO=echo
676
686
          fi
677
 
          prev="$cmd"
678
 
        done
679
 
 
680
 
        if test "$prev" != 'sed 50q "$0"'; then
681
 
          echo_test_string=`eval $prev`
682
 
          export echo_test_string
683
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
 
        else
685
 
          # Oops.  We lost completely, so just stick with echo.
686
 
          echo=echo
687
 
        fi
 
687
        fi
688
688
      fi
689
689
    fi
690
690
  fi
691
691
fi
692
 
fi
693
692
 
694
693
# Copy echo and quote the copy suitably for passing to libtool from
695
694
# the Makefile, instead of quoting the original, which is used later.
696
 
ECHO=$echo
697
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
695
lt_ECHO=$ECHO
 
696
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
697
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699
698
fi
700
699
 
701
700
 
702
701
 
703
702
 
704
 
tagnames=${tagnames+${tagnames},}CXX
705
 
 
706
 
tagnames=${tagnames+${tagnames},}F77
707
 
 
708
703
exec 7<&0 </dev/null 6>&1
709
704
 
710
705
# Name of the host.
728
723
# Identity of this package.
729
724
PACKAGE_NAME='gearmand'
730
725
PACKAGE_TARNAME='gearmand'
731
 
PACKAGE_VERSION='0.6'
732
 
PACKAGE_STRING='gearmand 0.6'
 
726
PACKAGE_VERSION='0.9'
 
727
PACKAGE_STRING='gearmand 0.9'
733
728
PACKAGE_BUGREPORT='https://launchpad.net/gearmand'
734
729
 
735
730
ac_unique_file="libgearman/gearman.c"
806
801
build_alias
807
802
host_alias
808
803
target_alias
809
 
GEARMAN_LIBRARY_VERSION
810
804
build
811
805
build_cpu
812
806
build_vendor
841
835
AMTAR
842
836
am__tar
843
837
am__untar
844
 
CXX
845
 
CXXFLAGS
 
838
CC
 
839
CFLAGS
846
840
LDFLAGS
847
841
CPPFLAGS
848
 
ac_ct_CXX
 
842
ac_ct_CC
849
843
EXEEXT
850
844
OBJEXT
851
845
DEPDIR
854
848
AMDEP_TRUE
855
849
AMDEP_FALSE
856
850
AMDEPBACKSLASH
 
851
CCDEPMODE
 
852
am__fastdepCC_TRUE
 
853
am__fastdepCC_FALSE
 
854
ISAINFO
 
855
CXX
 
856
CXXFLAGS
 
857
ac_ct_CXX
857
858
CXXDEPMODE
858
859
am__fastdepCXX_TRUE
859
860
am__fastdepCXX_FALSE
860
 
CC
861
 
CFLAGS
862
 
ac_ct_CC
863
 
CCDEPMODE
864
 
am__fastdepCC_TRUE
865
 
am__fastdepCC_FALSE
866
861
CPP
867
862
GREP
868
863
EGREP
 
864
LIBTOOL
869
865
SED
 
866
FGREP
 
867
LD
 
868
DUMPBIN
 
869
ac_ct_DUMPBIN
 
870
NM
870
871
LN_S
871
 
ECHO
 
872
OBJDUMP
872
873
AR
873
874
RANLIB
 
875
lt_ECHO
874
876
DSYMUTIL
875
877
NMEDIT
 
878
LIPO
 
879
OTOOL
 
880
OTOOL64
876
881
CXXCPP
877
 
F77
878
 
FFLAGS
879
 
ac_ct_F77
880
 
LIBTOOL
881
882
CC_VERSION
 
883
CXX_VERSION
 
884
CFLAG_VISIBILITY
 
885
HAVE_VISIBILITY
 
886
LIBC_P
 
887
NO_CONVERSION
 
888
NO_REDUNDANT_DECLS
 
889
NO_UNREACHED
 
890
NO_SHADOW
 
891
NO_STRICT_ALIASING
 
892
PROTOSKIP_WARNINGS
 
893
DTRACE
 
894
DTRACEFLAGS
 
895
HAVE_DTRACE_TRUE
 
896
HAVE_DTRACE_FALSE
 
897
DTRACE_NEEDS_OBJECTS_TRUE
 
898
DTRACE_NEEDS_OBJECTS_FALSE
 
899
LIBOBJS
 
900
BETTER_MALLOC_LIBS
 
901
DOXYGEN
 
902
PERL
 
903
AM_CFLAGS
 
904
AM_CXXFLAGS
 
905
AM_CPPFLAGS
 
906
GEARMAN_LIBRARY_VERSION
 
907
LD_VERSION_SCRIPT
 
908
acx_pthread_config
 
909
PTHREAD_CC
 
910
PTHREAD_LIBS
 
911
PTHREAD_CFLAGS
882
912
HAVE_LIBEVENT
883
913
LIBEVENT
884
914
LTLIBEVENT
887
917
LIBUUID
888
918
LTLIBUUID
889
919
LIBUUID_PREFIX
 
920
HAVE_LIBSQLITE3
 
921
LIBSQLITE3
 
922
LTLIBSQLITE3
 
923
LIBSQLITE3_PREFIX
 
924
HAVE_LIBSQLITE3_TRUE
 
925
HAVE_LIBSQLITE3_FALSE
890
926
HAVE_LIBDRIZZLE
891
927
LIBDRIZZLE
892
928
LTLIBDRIZZLE
893
929
LIBDRIZZLE_PREFIX
894
930
HAVE_LIBDRIZZLE_TRUE
895
931
HAVE_LIBDRIZZLE_FALSE
896
 
NO_REDUNDANT_DECLS
897
 
AM_CPPFLAGS
898
 
AM_CFLAGS
899
 
DOXYGEN
900
 
PERL
901
 
LIBOBJS
 
932
HAVE_LIBMEMCACHED
 
933
LIBMEMCACHED
 
934
LTLIBMEMCACHED
 
935
LIBMEMCACHED_PREFIX
 
936
HAVE_LIBMEMCACHED_TRUE
 
937
HAVE_LIBMEMCACHED_FALSE
 
938
MEMCACHED_BINARY
 
939
HAVE_LIBPQ
 
940
LIBPQ
 
941
LTLIBPQ
 
942
LIBPQ_PREFIX
 
943
HAVE_LIBPQ_TRUE
 
944
HAVE_LIBPQ_FALSE
902
945
LTLIBOBJS'
903
946
ac_subst_files=''
904
947
      ac_precious_vars='build_alias
905
948
host_alias
906
949
target_alias
907
 
CXX
908
 
CXXFLAGS
 
950
CC
 
951
CFLAGS
909
952
LDFLAGS
910
953
LIBS
911
954
CPPFLAGS
 
955
CXX
 
956
CXXFLAGS
912
957
CCC
913
 
CC
914
 
CFLAGS
915
958
CPP
916
 
CXXCPP
917
 
F77
918
 
FFLAGS'
 
959
CXXCPP'
919
960
 
920
961
 
921
962
# Initialize some variables set by options.
1418
1459
  # Omit some internal or obsolete options to make the list less imposing.
1419
1460
  # This message is too long to be a string in the A/UX 3.1 sh.
1420
1461
  cat <<_ACEOF
1421
 
\`configure' configures gearmand 0.6 to adapt to many kinds of systems.
 
1462
\`configure' configures gearmand 0.9 to adapt to many kinds of systems.
1422
1463
 
1423
1464
Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1465
 
1489
1530
 
1490
1531
if test -n "$ac_init_help"; then
1491
1532
  case $ac_init_help in
1492
 
     short | recursive ) echo "Configuration of gearmand 0.6:";;
 
1533
     short | recursive ) echo "Configuration of gearmand 0.9:";;
1493
1534
   esac
1494
1535
  cat <<\_ACEOF
1495
1536
 
1498
1539
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499
1540
  --disable-dependency-tracking  speeds up one-time build
1500
1541
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1542
 
 
1543
      --disable-64bit         Build 64 bit binary [default=on]
1501
1544
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1502
1545
  --enable-static[=PKGS]  build static libraries [default=yes]
1503
1546
  --enable-fast-install[=PKGS]
1504
1547
                          optimize for fast installation [default=yes]
1505
1548
  --disable-libtool-lock  avoid locking (might break parallel builds)
1506
 
  --disable-rpath         do not hardcode runtime library paths
1507
 
  --enable-tcmalloc       Enable linking with tcmalloc [default=off]
 
1549
  --disable-largefile     omit support for large files
1508
1550
  --disable-assert        Turn off assertions
1509
1551
  --enable-profiling      Toggle profiling [default=off]
1510
1552
  --enable-coverage       Toggle coverage [default=off]
1511
 
  --disable-fail          Turn warnings into failures [default=yes]
1512
 
  --disable-pedantic-warnings
1513
 
                          Toggle pedanticness [default=yes]
1514
 
  --enable-unreachable    Enable warnings about unreachable code [default=no]
 
1553
  --enable-dtrace         Build with support for the DTRACE. [default=off]
 
1554
  --enable-umem           Enable linking with libumem [default=off]
 
1555
  --enable-tcmalloc       Enable linking with tcmalloc [default=off]
 
1556
  --disable-mtmalloc      Enable linking with mtmalloc [default=on]
 
1557
  --disable-rpath         do not hardcode runtime library paths
1515
1558
 
1516
1559
Optional Packages:
1517
1560
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518
1561
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1520
1562
  --with-pic              try to use only PIC/non-PIC objects [default=use
1521
1563
                          both]
1522
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1564
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1565
  --with-debug            Add debug code/turns off optimizations (yes|no)
 
1566
                          [default=no]
 
1567
  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
 
1568
  --without-lib-prefix    don't search for libraries in includedir and libdir
1523
1569
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1524
1570
  --with-libevent-prefix[=DIR]  search for libevent in DIR/include and DIR/lib
1525
1571
  --without-libevent-prefix     don't search for libevent in includedir and libdir
1526
1572
  --with-libuuid-prefix[=DIR]  search for libuuid in DIR/include and DIR/lib
1527
1573
  --without-libuuid-prefix     don't search for libuuid in includedir and libdir
 
1574
  --with-libsqlite3-prefix[=DIR]  search for libsqlite3 in DIR/include and DIR/lib
 
1575
  --without-libsqlite3-prefix     don't search for libsqlite3 in includedir and libdir
1528
1576
  --with-libdrizzle-prefix[=DIR]  search for libdrizzle in DIR/include and DIR/lib
1529
1577
  --without-libdrizzle-prefix     don't search for libdrizzle in includedir and libdir
1530
 
  --with-debug            Add debug code/turns off optimizations (yes|no)
1531
 
                          [default=no]
 
1578
  --with-libmemcached-prefix[=DIR]  search for libmemcached in DIR/include and DIR/lib
 
1579
  --without-libmemcached-prefix     don't search for libmemcached in includedir and libdir
 
1580
  --with-memcached        Memcached binary to use for make test
 
1581
  --with-libpq-prefix[=DIR]  search for libpq in DIR/include and DIR/lib
 
1582
  --without-libpq-prefix     don't search for libpq in includedir and libdir
1532
1583
 
1533
1584
Some influential environment variables:
1534
 
  CXX         C++ compiler command
1535
 
  CXXFLAGS    C++ compiler flags
 
1585
  CC          C compiler command
 
1586
  CFLAGS      C compiler flags
1536
1587
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537
1588
              nonstandard directory <lib dir>
1538
1589
  LIBS        libraries to pass to the linker, e.g. -l<library>
1539
1590
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540
1591
              you have headers in a nonstandard directory <include dir>
1541
 
  CC          C compiler command
1542
 
  CFLAGS      C compiler flags
 
1592
  CXX         C++ compiler command
 
1593
  CXXFLAGS    C++ compiler flags
1543
1594
  CPP         C preprocessor
1544
1595
  CXXCPP      C++ preprocessor
1545
 
  F77         Fortran 77 compiler command
1546
 
  FFLAGS      Fortran 77 compiler flags
1547
1596
 
1548
1597
Use these variables to override the choices made by `configure' or to help
1549
1598
it to find libraries and programs with nonstandard names/locations.
1609
1658
test -n "$ac_init_help" && exit $ac_status
1610
1659
if $ac_init_version; then
1611
1660
  cat <<\_ACEOF
1612
 
gearmand configure 0.6
 
1661
gearmand configure 0.9
1613
1662
generated by GNU Autoconf 2.61
1614
1663
 
1615
1664
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623
1672
This file contains any messages produced by compilers while
1624
1673
running configure, to aid debugging if configure makes a mistake.
1625
1674
 
1626
 
It was created by gearmand $as_me 0.6, which was
 
1675
It was created by gearmand $as_me 0.9, which was
1627
1676
generated by GNU Autoconf 2.61.  Invocation command line was
1628
1677
 
1629
1678
  $ $0 $@
2011
2060
ac_config_headers="$ac_config_headers config.h"
2012
2061
 
2013
2062
 
2014
 
GEARMAN_LIBRARY_VERSION=1:0:0
2015
 
#                       | | |
2016
 
#                +------+ | +---+
2017
 
#                |        |     |
2018
 
#             current:revision:age
2019
 
#                |        |     |
2020
 
#                |        |     +- increment if interfaces have been added
2021
 
#                |        |        set to zero if interfaces have been removed
2022
 
#                |        |        or changed
2023
 
#                |        +- increment if source code has changed
2024
 
#                |           set to zero if current is incremented
2025
 
#                +- increment if interfaces have been added, removed or changed
2026
 
 
2027
 
 
2028
 
# Setting CFLAGS here prevents AC_CANONICAL_TARGET from injecting them
2029
 
SAVE_CFLAGS=${CFLAGS}
2030
 
SAVE_CXXFLAGS=${CXXFLAGS}
2031
 
CFLAGS=
2032
 
CXXFLAGS=
 
2063
 
 
2064
 
 
2065
    if test "x${enable_dependency_tracking}" = "x"; then
 
2066
 
 
2067
    enable_dependency_tracking=yes
 
2068
 
 
2069
fi
 
2070
 
2033
2071
 
2034
2072
# Make sure we can run config.sub.
2035
2073
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114
2152
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2115
2153
 
2116
2154
 
2117
 
{ echo "$as_me:$LINENO: checking target system type" >&5
2118
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2119
 
if test "${ac_cv_target+set}" = set; then
2120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2121
 
else
2122
 
  if test "x$target_alias" = x; then
2123
 
  ac_cv_target=$ac_cv_host
2124
 
else
2125
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2126
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2127
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2128
 
   { (exit 1); exit 1; }; }
2129
 
fi
2130
 
 
2131
 
fi
2132
 
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2133
 
echo "${ECHO_T}$ac_cv_target" >&6; }
2134
 
case $ac_cv_target in
2135
 
*-*-*) ;;
2136
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2137
 
echo "$as_me: error: invalid value of canonical target" >&2;}
2138
 
   { (exit 1); exit 1; }; };;
2139
 
esac
2140
 
target=$ac_cv_target
2141
 
ac_save_IFS=$IFS; IFS='-'
2142
 
set x $ac_cv_target
2143
 
shift
2144
 
target_cpu=$1
2145
 
target_vendor=$2
2146
 
shift; shift
2147
 
# Remember, the first character of IFS is used to create $*,
2148
 
# except with old shells:
2149
 
target_os=$*
2150
 
IFS=$ac_save_IFS
2151
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2152
 
 
2153
 
 
2154
 
# The aliases save the names the user supplied, while $host etc.
2155
 
# will get canonicalized.
2156
 
test -n "$target_alias" &&
2157
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2158
 
    NONENONEs,x,x, &&
2159
 
  program_prefix=${target_alias}-
2160
 
 
2161
 
CFLAGS=${SAVE_CFLAGS}
2162
 
CXXFLAGS=${SAVE_CXXFLAGS}
2163
 
 
2164
2155
am__api_version='1.10'
2165
2156
 
2166
2157
# Find a good install program.  We prefer a C program (faster),
2443
2434
fi
2444
2435
rmdir .tst 2>/dev/null
2445
2436
 
2446
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2447
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2448
 
  # is not polluted with repeated "-I."
2449
 
  am__isrc=' -I$(srcdir)'
2450
 
  # test to see if srcdir already configured
2451
 
  if test -f $srcdir/config.status; then
2452
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2453
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2454
 
   { (exit 1); exit 1; }; }
2455
 
  fi
2456
 
fi
2457
 
 
2458
 
# test whether we have cygpath
2459
 
if test -z "$CYGPATH_W"; then
2460
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2461
 
    CYGPATH_W='cygpath -w'
 
2437
DEPDIR="${am__leading_dot}deps"
 
2438
 
 
2439
ac_config_commands="$ac_config_commands depfiles"
 
2440
 
 
2441
 
 
2442
am_make=${MAKE-make}
 
2443
cat > confinc << 'END'
 
2444
am__doit:
 
2445
        @echo done
 
2446
.PHONY: am__doit
 
2447
END
 
2448
# If we don't find an include directive, just comment out the code.
 
2449
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2450
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2451
am__include="#"
 
2452
am__quote=
 
2453
_am_result=none
 
2454
# First try GNU make style include.
 
2455
echo "include confinc" > confmf
 
2456
# We grep out `Entering directory' and `Leaving directory'
 
2457
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2458
# In particular we don't look at `^make:' because GNU make might
 
2459
# be invoked under some other name (usually "gmake"), in which
 
2460
# case it prints its new name instead of `make'.
 
2461
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2462
   am__include=include
 
2463
   am__quote=
 
2464
   _am_result=GNU
 
2465
fi
 
2466
# Now try BSD make style include.
 
2467
if test "$am__include" = "#"; then
 
2468
   echo '.include "confinc"' > confmf
 
2469
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2470
      am__include=.include
 
2471
      am__quote="\""
 
2472
      _am_result=BSD
 
2473
   fi
 
2474
fi
 
2475
 
 
2476
 
 
2477
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2478
echo "${ECHO_T}$_am_result" >&6; }
 
2479
rm -f confinc confmf
 
2480
 
 
2481
# Check whether --enable-dependency-tracking was given.
 
2482
if test "${enable_dependency_tracking+set}" = set; then
 
2483
  enableval=$enable_dependency_tracking;
 
2484
fi
 
2485
 
 
2486
if test "x$enable_dependency_tracking" != xno; then
 
2487
  am_depcomp="$ac_aux_dir/depcomp"
 
2488
  AMDEPBACKSLASH='\'
 
2489
fi
 
2490
 if test "x$enable_dependency_tracking" != xno; then
 
2491
  AMDEP_TRUE=
 
2492
  AMDEP_FALSE='#'
 
2493
else
 
2494
  AMDEP_TRUE='#'
 
2495
  AMDEP_FALSE=
 
2496
fi
 
2497
 
 
2498
 
 
2499
ac_ext=c
 
2500
ac_cpp='$CPP $CPPFLAGS'
 
2501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2504
if test -n "$ac_tool_prefix"; then
 
2505
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2506
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2507
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2509
if test "${ac_cv_prog_CC+set}" = set; then
 
2510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2511
else
 
2512
  if test -n "$CC"; then
 
2513
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2514
else
 
2515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2516
for as_dir in $PATH
 
2517
do
 
2518
  IFS=$as_save_IFS
 
2519
  test -z "$as_dir" && as_dir=.
 
2520
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2521
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2522
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2523
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2524
    break 2
 
2525
  fi
 
2526
done
 
2527
done
 
2528
IFS=$as_save_IFS
 
2529
 
 
2530
fi
 
2531
fi
 
2532
CC=$ac_cv_prog_CC
 
2533
if test -n "$CC"; then
 
2534
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2535
echo "${ECHO_T}$CC" >&6; }
 
2536
else
 
2537
  { echo "$as_me:$LINENO: result: no" >&5
 
2538
echo "${ECHO_T}no" >&6; }
 
2539
fi
 
2540
 
 
2541
 
 
2542
fi
 
2543
if test -z "$ac_cv_prog_CC"; then
 
2544
  ac_ct_CC=$CC
 
2545
  # Extract the first word of "gcc", so it can be a program name with args.
 
2546
set dummy gcc; ac_word=$2
 
2547
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2549
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2551
else
 
2552
  if test -n "$ac_ct_CC"; then
 
2553
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2554
else
 
2555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2556
for as_dir in $PATH
 
2557
do
 
2558
  IFS=$as_save_IFS
 
2559
  test -z "$as_dir" && as_dir=.
 
2560
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2561
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2562
    ac_cv_prog_ac_ct_CC="gcc"
 
2563
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2564
    break 2
 
2565
  fi
 
2566
done
 
2567
done
 
2568
IFS=$as_save_IFS
 
2569
 
 
2570
fi
 
2571
fi
 
2572
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2573
if test -n "$ac_ct_CC"; then
 
2574
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2575
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2576
else
 
2577
  { echo "$as_me:$LINENO: result: no" >&5
 
2578
echo "${ECHO_T}no" >&6; }
 
2579
fi
 
2580
 
 
2581
  if test "x$ac_ct_CC" = x; then
 
2582
    CC=""
2462
2583
  else
2463
 
    CYGPATH_W=echo
2464
 
  fi
2465
 
fi
2466
 
 
2467
 
 
2468
 
# Define the identity of the package.
2469
 
 PACKAGE='gearmand'
2470
 
 VERSION='0.6'
2471
 
 
2472
 
 
2473
 
cat >>confdefs.h <<_ACEOF
2474
 
#define PACKAGE "$PACKAGE"
2475
 
_ACEOF
2476
 
 
2477
 
 
2478
 
cat >>confdefs.h <<_ACEOF
2479
 
#define VERSION "$VERSION"
2480
 
_ACEOF
2481
 
 
2482
 
# Some tools Automake needs.
2483
 
 
2484
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2485
 
 
2486
 
 
2487
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2488
 
 
2489
 
 
2490
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2491
 
 
2492
 
 
2493
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2494
 
 
2495
 
 
2496
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2497
 
 
2498
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2499
 
 
2500
 
# Installed binaries are usually stripped using `strip' when the user
2501
 
# run `make install-strip'.  However `strip' might not be the right
2502
 
# tool to use in cross-compilation environments, therefore Automake
2503
 
# will honor the `STRIP' environment variable to overrule this program.
2504
 
if test "$cross_compiling" != no; then
 
2584
    case $cross_compiling:$ac_tool_warned in
 
2585
yes:)
 
2586
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2587
whose name does not start with the host triplet.  If you think this
 
2588
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2589
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2590
whose name does not start with the host triplet.  If you think this
 
2591
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2592
ac_tool_warned=yes ;;
 
2593
esac
 
2594
    CC=$ac_ct_CC
 
2595
  fi
 
2596
else
 
2597
  CC="$ac_cv_prog_CC"
 
2598
fi
 
2599
 
 
2600
if test -z "$CC"; then
 
2601
          if test -n "$ac_tool_prefix"; then
 
2602
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2603
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2604
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2605
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2606
if test "${ac_cv_prog_CC+set}" = set; then
 
2607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2608
else
 
2609
  if test -n "$CC"; then
 
2610
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2611
else
 
2612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2613
for as_dir in $PATH
 
2614
do
 
2615
  IFS=$as_save_IFS
 
2616
  test -z "$as_dir" && as_dir=.
 
2617
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2618
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2619
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2620
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2621
    break 2
 
2622
  fi
 
2623
done
 
2624
done
 
2625
IFS=$as_save_IFS
 
2626
 
 
2627
fi
 
2628
fi
 
2629
CC=$ac_cv_prog_CC
 
2630
if test -n "$CC"; then
 
2631
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2632
echo "${ECHO_T}$CC" >&6; }
 
2633
else
 
2634
  { echo "$as_me:$LINENO: result: no" >&5
 
2635
echo "${ECHO_T}no" >&6; }
 
2636
fi
 
2637
 
 
2638
 
 
2639
  fi
 
2640
fi
 
2641
if test -z "$CC"; then
 
2642
  # Extract the first word of "cc", so it can be a program name with args.
 
2643
set dummy cc; ac_word=$2
 
2644
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2645
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2646
if test "${ac_cv_prog_CC+set}" = set; then
 
2647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2648
else
 
2649
  if test -n "$CC"; then
 
2650
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2651
else
 
2652
  ac_prog_rejected=no
 
2653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2654
for as_dir in $PATH
 
2655
do
 
2656
  IFS=$as_save_IFS
 
2657
  test -z "$as_dir" && as_dir=.
 
2658
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2659
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2660
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2661
       ac_prog_rejected=yes
 
2662
       continue
 
2663
     fi
 
2664
    ac_cv_prog_CC="cc"
 
2665
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2666
    break 2
 
2667
  fi
 
2668
done
 
2669
done
 
2670
IFS=$as_save_IFS
 
2671
 
 
2672
if test $ac_prog_rejected = yes; then
 
2673
  # We found a bogon in the path, so make sure we never use it.
 
2674
  set dummy $ac_cv_prog_CC
 
2675
  shift
 
2676
  if test $# != 0; then
 
2677
    # We chose a different compiler from the bogus one.
 
2678
    # However, it has the same basename, so the bogon will be chosen
 
2679
    # first if we set CC to just the basename; use the full file name.
 
2680
    shift
 
2681
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2682
  fi
 
2683
fi
 
2684
fi
 
2685
fi
 
2686
CC=$ac_cv_prog_CC
 
2687
if test -n "$CC"; then
 
2688
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2689
echo "${ECHO_T}$CC" >&6; }
 
2690
else
 
2691
  { echo "$as_me:$LINENO: result: no" >&5
 
2692
echo "${ECHO_T}no" >&6; }
 
2693
fi
 
2694
 
 
2695
 
 
2696
fi
 
2697
if test -z "$CC"; then
2505
2698
  if test -n "$ac_tool_prefix"; then
2506
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2508
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2511
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2512
 
else
2513
 
  if test -n "$STRIP"; then
2514
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515
 
else
2516
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517
 
for as_dir in $PATH
2518
 
do
2519
 
  IFS=$as_save_IFS
2520
 
  test -z "$as_dir" && as_dir=.
2521
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2522
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525
 
    break 2
2526
 
  fi
2527
 
done
2528
 
done
2529
 
IFS=$as_save_IFS
2530
 
 
2531
 
fi
2532
 
fi
2533
 
STRIP=$ac_cv_prog_STRIP
2534
 
if test -n "$STRIP"; then
2535
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2536
 
echo "${ECHO_T}$STRIP" >&6; }
2537
 
else
2538
 
  { echo "$as_me:$LINENO: result: no" >&5
2539
 
echo "${ECHO_T}no" >&6; }
2540
 
fi
2541
 
 
2542
 
 
2543
 
fi
2544
 
if test -z "$ac_cv_prog_STRIP"; then
2545
 
  ac_ct_STRIP=$STRIP
2546
 
  # Extract the first word of "strip", so it can be a program name with args.
2547
 
set dummy strip; ac_word=$2
2548
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2552
 
else
2553
 
  if test -n "$ac_ct_STRIP"; then
2554
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555
 
else
2556
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557
 
for as_dir in $PATH
2558
 
do
2559
 
  IFS=$as_save_IFS
2560
 
  test -z "$as_dir" && as_dir=.
2561
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2562
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563
 
    ac_cv_prog_ac_ct_STRIP="strip"
2564
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565
 
    break 2
2566
 
  fi
2567
 
done
2568
 
done
2569
 
IFS=$as_save_IFS
2570
 
 
2571
 
fi
2572
 
fi
2573
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574
 
if test -n "$ac_ct_STRIP"; then
2575
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2576
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2577
 
else
2578
 
  { echo "$as_me:$LINENO: result: no" >&5
2579
 
echo "${ECHO_T}no" >&6; }
2580
 
fi
2581
 
 
2582
 
  if test "x$ac_ct_STRIP" = x; then
2583
 
    STRIP=":"
2584
 
  else
2585
 
    case $cross_compiling:$ac_tool_warned in
2586
 
yes:)
2587
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2588
 
whose name does not start with the host triplet.  If you think this
2589
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2590
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2591
 
whose name does not start with the host triplet.  If you think this
2592
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2593
 
ac_tool_warned=yes ;;
2594
 
esac
2595
 
    STRIP=$ac_ct_STRIP
2596
 
  fi
2597
 
else
2598
 
  STRIP="$ac_cv_prog_STRIP"
2599
 
fi
2600
 
 
2601
 
fi
2602
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2603
 
 
2604
 
# We need awk for the "check" target.  The system "awk" is bad on
2605
 
# some platforms.
2606
 
# Always define AMTAR for backward compatibility.
2607
 
 
2608
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2609
 
 
2610
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2611
 
 
2612
 
 
2613
 
 
2614
 
 
2615
 
 
2616
 
 
2617
 
if test "x${enable_dependency_tracking}" = "x"
2618
 
then
2619
 
  enable_dependency_tracking=yes
2620
 
fi
2621
 
 
2622
 
if test -d ".bzr"
2623
 
then
2624
 
  building_from_bzr=yes
2625
 
else
2626
 
  building_from_bzr=no
2627
 
fi
2628
 
 
2629
 
ac_ext=cpp
2630
 
ac_cpp='$CXXCPP $CPPFLAGS'
2631
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2634
 
if test -z "$CXX"; then
2635
 
  if test -n "$CCC"; then
2636
 
    CXX=$CCC
2637
 
  else
2638
 
    if test -n "$ac_tool_prefix"; then
2639
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2699
  for ac_prog in cl.exe
2640
2700
  do
2641
2701
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642
2702
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643
2703
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2644
2704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645
 
if test "${ac_cv_prog_CXX+set}" = set; then
 
2705
if test "${ac_cv_prog_CC+set}" = set; then
2646
2706
  echo $ECHO_N "(cached) $ECHO_C" >&6
2647
2707
else
2648
 
  if test -n "$CXX"; then
2649
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2708
  if test -n "$CC"; then
 
2709
  ac_cv_prog_CC="$CC" # Let the user override the test.
2650
2710
else
2651
2711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652
2712
for as_dir in $PATH
2655
2715
  test -z "$as_dir" && as_dir=.
2656
2716
  for ac_exec_ext in '' $ac_executable_extensions; do
2657
2717
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2718
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2659
2719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660
2720
    break 2
2661
2721
  fi
2665
2725
 
2666
2726
fi
2667
2727
fi
2668
 
CXX=$ac_cv_prog_CXX
2669
 
if test -n "$CXX"; then
2670
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
2671
 
echo "${ECHO_T}$CXX" >&6; }
 
2728
CC=$ac_cv_prog_CC
 
2729
if test -n "$CC"; then
 
2730
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2731
echo "${ECHO_T}$CC" >&6; }
2672
2732
else
2673
2733
  { echo "$as_me:$LINENO: result: no" >&5
2674
2734
echo "${ECHO_T}no" >&6; }
2675
2735
fi
2676
2736
 
2677
2737
 
2678
 
    test -n "$CXX" && break
 
2738
    test -n "$CC" && break
2679
2739
  done
2680
2740
fi
2681
 
if test -z "$CXX"; then
2682
 
  ac_ct_CXX=$CXX
2683
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2741
if test -z "$CC"; then
 
2742
  ac_ct_CC=$CC
 
2743
  for ac_prog in cl.exe
2684
2744
do
2685
2745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2686
2746
set dummy $ac_prog; ac_word=$2
2687
2747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2688
2748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2689
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2749
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2690
2750
  echo $ECHO_N "(cached) $ECHO_C" >&6
2691
2751
else
2692
 
  if test -n "$ac_ct_CXX"; then
2693
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2752
  if test -n "$ac_ct_CC"; then
 
2753
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694
2754
else
2695
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696
2756
for as_dir in $PATH
2699
2759
  test -z "$as_dir" && as_dir=.
2700
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
2701
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2762
    ac_cv_prog_ac_ct_CC="$ac_prog"
2703
2763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704
2764
    break 2
2705
2765
  fi
2709
2769
 
2710
2770
fi
2711
2771
fi
2712
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2713
 
if test -n "$ac_ct_CXX"; then
2714
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2715
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
2772
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2773
if test -n "$ac_ct_CC"; then
 
2774
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2775
echo "${ECHO_T}$ac_ct_CC" >&6; }
2716
2776
else
2717
2777
  { echo "$as_me:$LINENO: result: no" >&5
2718
2778
echo "${ECHO_T}no" >&6; }
2719
2779
fi
2720
2780
 
2721
2781
 
2722
 
  test -n "$ac_ct_CXX" && break
 
2782
  test -n "$ac_ct_CC" && break
2723
2783
done
2724
2784
 
2725
 
  if test "x$ac_ct_CXX" = x; then
2726
 
    CXX="g++"
 
2785
  if test "x$ac_ct_CC" = x; then
 
2786
    CC=""
2727
2787
  else
2728
2788
    case $cross_compiling:$ac_tool_warned in
2729
2789
yes:)
2735
2795
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2736
2796
ac_tool_warned=yes ;;
2737
2797
esac
2738
 
    CXX=$ac_ct_CXX
2739
 
  fi
2740
 
fi
2741
 
 
2742
 
  fi
2743
 
fi
 
2798
    CC=$ac_ct_CC
 
2799
  fi
 
2800
fi
 
2801
 
 
2802
fi
 
2803
 
 
2804
 
 
2805
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2806
See \`config.log' for more details." >&5
 
2807
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2808
See \`config.log' for more details." >&2;}
 
2809
   { (exit 1); exit 1; }; }
 
2810
 
2744
2811
# Provide some information about the compiler.
2745
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2812
echo "$as_me:$LINENO: checking for C compiler version" >&5
2746
2813
ac_compiler=`set X $ac_compile; echo $2`
2747
2814
{ (ac_try="$ac_compiler --version >&5"
2748
2815
case "(($ac_try" in
2795
2862
# Try to create an executable without -o first, disregard a.out.
2796
2863
# It will help us diagnose broken compilers, and finding out an intuition
2797
2864
# of exeext.
2798
 
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2799
 
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
 
2865
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2866
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800
2867
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801
2868
#
2802
2869
# List of possible output files, starting from the most likely.
2869
2936
  echo "$as_me: failed program was:" >&5
2870
2937
sed 's/^/| /' conftest.$ac_ext >&5
2871
2938
 
2872
 
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
2939
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873
2940
See \`config.log' for more details." >&5
2874
 
echo "$as_me: error: C++ compiler cannot create executables
 
2941
echo "$as_me: error: C compiler cannot create executables
2875
2942
See \`config.log' for more details." >&2;}
2876
2943
   { (exit 77); exit 77; }; }
2877
2944
fi
2880
2947
 
2881
2948
# Check that the compiler produces executables we can run.  If not, either
2882
2949
# the compiler is broken, or we cross compile.
2883
 
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2884
 
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
 
2950
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2951
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885
2952
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886
2953
# If not cross compiling, check that we can run a simple program.
2887
2954
if test "$cross_compiling" != yes; then
2900
2967
    if test "$cross_compiling" = maybe; then
2901
2968
        cross_compiling=yes
2902
2969
    else
2903
 
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
2970
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904
2971
If you meant to cross compile, use \`--host'.
2905
2972
See \`config.log' for more details." >&5
2906
 
echo "$as_me: error: cannot run C++ compiled programs.
 
2973
echo "$as_me: error: cannot run C compiled programs.
2907
2974
If you meant to cross compile, use \`--host'.
2908
2975
See \`config.log' for more details." >&2;}
2909
2976
   { (exit 1); exit 1; }; }
3018
3085
echo "${ECHO_T}$ac_cv_objext" >&6; }
3019
3086
OBJEXT=$ac_cv_objext
3020
3087
ac_objext=$OBJEXT
3021
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3022
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3023
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3025
 
else
3026
 
  cat >conftest.$ac_ext <<_ACEOF
3027
 
/* confdefs.h.  */
3028
 
_ACEOF
3029
 
cat confdefs.h >>conftest.$ac_ext
3030
 
cat >>conftest.$ac_ext <<_ACEOF
3031
 
/* end confdefs.h.  */
3032
 
 
3033
 
int
3034
 
main ()
3035
 
{
3036
 
#ifndef __GNUC__
3037
 
       choke me
3038
 
#endif
3039
 
 
3040
 
  ;
3041
 
  return 0;
3042
 
}
3043
 
_ACEOF
3044
 
rm -f conftest.$ac_objext
3045
 
if { (ac_try="$ac_compile"
3046
 
case "(($ac_try" in
3047
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048
 
  *) ac_try_echo=$ac_try;;
3049
 
esac
3050
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051
 
  (eval "$ac_compile") 2>conftest.er1
3052
 
  ac_status=$?
3053
 
  grep -v '^ *+' conftest.er1 >conftest.err
3054
 
  rm -f conftest.er1
3055
 
  cat conftest.err >&5
3056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
 
  (exit $ac_status); } && {
3058
 
         test -z "$ac_cxx_werror_flag" ||
3059
 
         test ! -s conftest.err
3060
 
       } && test -s conftest.$ac_objext; then
3061
 
  ac_compiler_gnu=yes
3062
 
else
3063
 
  echo "$as_me: failed program was:" >&5
3064
 
sed 's/^/| /' conftest.$ac_ext >&5
3065
 
 
3066
 
        ac_compiler_gnu=no
3067
 
fi
3068
 
 
3069
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3071
 
 
3072
 
fi
3073
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3074
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3075
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
3076
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3077
 
ac_save_CXXFLAGS=$CXXFLAGS
3078
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3079
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3080
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
3081
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3082
 
else
3083
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3084
 
   ac_cxx_werror_flag=yes
3085
 
   ac_cv_prog_cxx_g=no
3086
 
   CXXFLAGS="-g"
3087
 
   cat >conftest.$ac_ext <<_ACEOF
3088
 
/* confdefs.h.  */
3089
 
_ACEOF
3090
 
cat confdefs.h >>conftest.$ac_ext
3091
 
cat >>conftest.$ac_ext <<_ACEOF
3092
 
/* end confdefs.h.  */
3093
 
 
3094
 
int
3095
 
main ()
3096
 
{
3097
 
 
3098
 
  ;
3099
 
  return 0;
3100
 
}
3101
 
_ACEOF
3102
 
rm -f conftest.$ac_objext
3103
 
if { (ac_try="$ac_compile"
3104
 
case "(($ac_try" in
3105
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106
 
  *) ac_try_echo=$ac_try;;
3107
 
esac
3108
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109
 
  (eval "$ac_compile") 2>conftest.er1
3110
 
  ac_status=$?
3111
 
  grep -v '^ *+' conftest.er1 >conftest.err
3112
 
  rm -f conftest.er1
3113
 
  cat conftest.err >&5
3114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115
 
  (exit $ac_status); } && {
3116
 
         test -z "$ac_cxx_werror_flag" ||
3117
 
         test ! -s conftest.err
3118
 
       } && test -s conftest.$ac_objext; then
3119
 
  ac_cv_prog_cxx_g=yes
3120
 
else
3121
 
  echo "$as_me: failed program was:" >&5
3122
 
sed 's/^/| /' conftest.$ac_ext >&5
3123
 
 
3124
 
        CXXFLAGS=""
3125
 
      cat >conftest.$ac_ext <<_ACEOF
3126
 
/* confdefs.h.  */
3127
 
_ACEOF
3128
 
cat confdefs.h >>conftest.$ac_ext
3129
 
cat >>conftest.$ac_ext <<_ACEOF
3130
 
/* end confdefs.h.  */
3131
 
 
3132
 
int
3133
 
main ()
3134
 
{
3135
 
 
3136
 
  ;
3137
 
  return 0;
3138
 
}
3139
 
_ACEOF
3140
 
rm -f conftest.$ac_objext
3141
 
if { (ac_try="$ac_compile"
3142
 
case "(($ac_try" in
3143
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144
 
  *) ac_try_echo=$ac_try;;
3145
 
esac
3146
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147
 
  (eval "$ac_compile") 2>conftest.er1
3148
 
  ac_status=$?
3149
 
  grep -v '^ *+' conftest.er1 >conftest.err
3150
 
  rm -f conftest.er1
3151
 
  cat conftest.err >&5
3152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153
 
  (exit $ac_status); } && {
3154
 
         test -z "$ac_cxx_werror_flag" ||
3155
 
         test ! -s conftest.err
3156
 
       } && test -s conftest.$ac_objext; then
3157
 
  :
3158
 
else
3159
 
  echo "$as_me: failed program was:" >&5
3160
 
sed 's/^/| /' conftest.$ac_ext >&5
3161
 
 
3162
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163
 
         CXXFLAGS="-g"
3164
 
         cat >conftest.$ac_ext <<_ACEOF
3165
 
/* confdefs.h.  */
3166
 
_ACEOF
3167
 
cat confdefs.h >>conftest.$ac_ext
3168
 
cat >>conftest.$ac_ext <<_ACEOF
3169
 
/* end confdefs.h.  */
3170
 
 
3171
 
int
3172
 
main ()
3173
 
{
3174
 
 
3175
 
  ;
3176
 
  return 0;
3177
 
}
3178
 
_ACEOF
3179
 
rm -f conftest.$ac_objext
3180
 
if { (ac_try="$ac_compile"
3181
 
case "(($ac_try" in
3182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183
 
  *) ac_try_echo=$ac_try;;
3184
 
esac
3185
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186
 
  (eval "$ac_compile") 2>conftest.er1
3187
 
  ac_status=$?
3188
 
  grep -v '^ *+' conftest.er1 >conftest.err
3189
 
  rm -f conftest.er1
3190
 
  cat conftest.err >&5
3191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192
 
  (exit $ac_status); } && {
3193
 
         test -z "$ac_cxx_werror_flag" ||
3194
 
         test ! -s conftest.err
3195
 
       } && test -s conftest.$ac_objext; then
3196
 
  ac_cv_prog_cxx_g=yes
3197
 
else
3198
 
  echo "$as_me: failed program was:" >&5
3199
 
sed 's/^/| /' conftest.$ac_ext >&5
3200
 
 
3201
 
 
3202
 
fi
3203
 
 
3204
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205
 
fi
3206
 
 
3207
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208
 
fi
3209
 
 
3210
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212
 
fi
3213
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3214
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3215
 
if test "$ac_test_CXXFLAGS" = set; then
3216
 
  CXXFLAGS=$ac_save_CXXFLAGS
3217
 
elif test $ac_cv_prog_cxx_g = yes; then
3218
 
  if test "$GXX" = yes; then
3219
 
    CXXFLAGS="-g -O2"
3220
 
  else
3221
 
    CXXFLAGS="-g"
3222
 
  fi
3223
 
else
3224
 
  if test "$GXX" = yes; then
3225
 
    CXXFLAGS="-O2"
3226
 
  else
3227
 
    CXXFLAGS=
3228
 
  fi
3229
 
fi
3230
 
ac_ext=c
3231
 
ac_cpp='$CPP $CPPFLAGS'
3232
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
 
DEPDIR="${am__leading_dot}deps"
3236
 
 
3237
 
ac_config_commands="$ac_config_commands depfiles"
3238
 
 
3239
 
 
3240
 
am_make=${MAKE-make}
3241
 
cat > confinc << 'END'
3242
 
am__doit:
3243
 
        @echo done
3244
 
.PHONY: am__doit
3245
 
END
3246
 
# If we don't find an include directive, just comment out the code.
3247
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3248
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3249
 
am__include="#"
3250
 
am__quote=
3251
 
_am_result=none
3252
 
# First try GNU make style include.
3253
 
echo "include confinc" > confmf
3254
 
# We grep out `Entering directory' and `Leaving directory'
3255
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3256
 
# In particular we don't look at `^make:' because GNU make might
3257
 
# be invoked under some other name (usually "gmake"), in which
3258
 
# case it prints its new name instead of `make'.
3259
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3260
 
   am__include=include
3261
 
   am__quote=
3262
 
   _am_result=GNU
3263
 
fi
3264
 
# Now try BSD make style include.
3265
 
if test "$am__include" = "#"; then
3266
 
   echo '.include "confinc"' > confmf
3267
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3268
 
      am__include=.include
3269
 
      am__quote="\""
3270
 
      _am_result=BSD
3271
 
   fi
3272
 
fi
3273
 
 
3274
 
 
3275
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3276
 
echo "${ECHO_T}$_am_result" >&6; }
3277
 
rm -f confinc confmf
3278
 
 
3279
 
# Check whether --enable-dependency-tracking was given.
3280
 
if test "${enable_dependency_tracking+set}" = set; then
3281
 
  enableval=$enable_dependency_tracking;
3282
 
fi
3283
 
 
3284
 
if test "x$enable_dependency_tracking" != xno; then
3285
 
  am_depcomp="$ac_aux_dir/depcomp"
3286
 
  AMDEPBACKSLASH='\'
3287
 
fi
3288
 
 if test "x$enable_dependency_tracking" != xno; then
3289
 
  AMDEP_TRUE=
3290
 
  AMDEP_FALSE='#'
3291
 
else
3292
 
  AMDEP_TRUE='#'
3293
 
  AMDEP_FALSE=
3294
 
fi
3295
 
 
3296
 
 
3297
 
 
3298
 
depcc="$CXX"  am_compiler_list=
3299
 
 
3300
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3301
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3302
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3303
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3304
 
else
3305
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3306
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3307
 
  # making bogus files that we don't know about and never remove.  For
3308
 
  # instance it was reported that on HP-UX the gcc test will end up
3309
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3310
 
  # in D'.
3311
 
  mkdir conftest.dir
3312
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3313
 
  # using a relative directory.
3314
 
  cp "$am_depcomp" conftest.dir
3315
 
  cd conftest.dir
3316
 
  # We will build objects and dependencies in a subdirectory because
3317
 
  # it helps to detect inapplicable dependency modes.  For instance
3318
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3319
 
  # side effect of compilation, but ICC will put the dependencies in
3320
 
  # the current directory while Tru64 will put them in the object
3321
 
  # directory.
3322
 
  mkdir sub
3323
 
 
3324
 
  am_cv_CXX_dependencies_compiler_type=none
3325
 
  if test "$am_compiler_list" = ""; then
3326
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3327
 
  fi
3328
 
  for depmode in $am_compiler_list; do
3329
 
    # Setup a source with many dependencies, because some compilers
3330
 
    # like to wrap large dependency lists on column 80 (with \), and
3331
 
    # we should not choose a depcomp mode which is confused by this.
3332
 
    #
3333
 
    # We need to recreate these files for each test, as the compiler may
3334
 
    # overwrite some of them when testing with obscure command lines.
3335
 
    # This happens at least with the AIX C compiler.
3336
 
    : > sub/conftest.c
3337
 
    for i in 1 2 3 4 5 6; do
3338
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3339
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3340
 
      # Solaris 8's {/usr,}/bin/sh.
3341
 
      touch sub/conftst$i.h
3342
 
    done
3343
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3344
 
 
3345
 
    case $depmode in
3346
 
    nosideeffect)
3347
 
      # after this tag, mechanisms are not by side-effect, so they'll
3348
 
      # only be used when explicitly requested
3349
 
      if test "x$enable_dependency_tracking" = xyes; then
3350
 
        continue
3351
 
      else
3352
 
        break
3353
 
      fi
3354
 
      ;;
3355
 
    none) break ;;
3356
 
    esac
3357
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3358
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3359
 
    # handle `-M -o', and we need to detect this.
3360
 
    if depmode=$depmode \
3361
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3362
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3363
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3364
 
         >/dev/null 2>conftest.err &&
3365
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3366
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3367
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3368
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3369
 
      # icc doesn't choke on unknown options, it will just issue warnings
3370
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3371
 
      # that says an option was ignored or not supported.
3372
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3373
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3374
 
      # The diagnosis changed in icc 8.0:
3375
 
      #   icc: Command line remark: option '-MP' not supported
3376
 
      if (grep 'ignoring option' conftest.err ||
3377
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3378
 
        am_cv_CXX_dependencies_compiler_type=$depmode
3379
 
        break
3380
 
      fi
3381
 
    fi
3382
 
  done
3383
 
 
3384
 
  cd ..
3385
 
  rm -rf conftest.dir
3386
 
else
3387
 
  am_cv_CXX_dependencies_compiler_type=none
3388
 
fi
3389
 
 
3390
 
fi
3391
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3392
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3393
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3394
 
 
3395
 
 if
3396
 
  test "x$enable_dependency_tracking" != xno \
3397
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3398
 
  am__fastdepCXX_TRUE=
3399
 
  am__fastdepCXX_FALSE='#'
3400
 
else
3401
 
  am__fastdepCXX_TRUE='#'
3402
 
  am__fastdepCXX_FALSE=
3403
 
fi
3404
 
 
3405
 
 
3406
 
ac_ext=c
3407
 
ac_cpp='$CPP $CPPFLAGS'
3408
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
 
if test -n "$ac_tool_prefix"; then
3412
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3415
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3416
 
if test "${ac_cv_prog_CC+set}" = set; then
3417
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3418
 
else
3419
 
  if test -n "$CC"; then
3420
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3421
 
else
3422
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423
 
for as_dir in $PATH
3424
 
do
3425
 
  IFS=$as_save_IFS
3426
 
  test -z "$as_dir" && as_dir=.
3427
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3428
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
 
    break 2
3432
 
  fi
3433
 
done
3434
 
done
3435
 
IFS=$as_save_IFS
3436
 
 
3437
 
fi
3438
 
fi
3439
 
CC=$ac_cv_prog_CC
3440
 
if test -n "$CC"; then
3441
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3442
 
echo "${ECHO_T}$CC" >&6; }
3443
 
else
3444
 
  { echo "$as_me:$LINENO: result: no" >&5
3445
 
echo "${ECHO_T}no" >&6; }
3446
 
fi
3447
 
 
3448
 
 
3449
 
fi
3450
 
if test -z "$ac_cv_prog_CC"; then
3451
 
  ac_ct_CC=$CC
3452
 
  # Extract the first word of "gcc", so it can be a program name with args.
3453
 
set dummy gcc; ac_word=$2
3454
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3455
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3458
 
else
3459
 
  if test -n "$ac_ct_CC"; then
3460
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461
 
else
3462
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463
 
for as_dir in $PATH
3464
 
do
3465
 
  IFS=$as_save_IFS
3466
 
  test -z "$as_dir" && as_dir=.
3467
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3468
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469
 
    ac_cv_prog_ac_ct_CC="gcc"
3470
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471
 
    break 2
3472
 
  fi
3473
 
done
3474
 
done
3475
 
IFS=$as_save_IFS
3476
 
 
3477
 
fi
3478
 
fi
3479
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480
 
if test -n "$ac_ct_CC"; then
3481
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3482
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
3483
 
else
3484
 
  { echo "$as_me:$LINENO: result: no" >&5
3485
 
echo "${ECHO_T}no" >&6; }
3486
 
fi
3487
 
 
3488
 
  if test "x$ac_ct_CC" = x; then
3489
 
    CC=""
3490
 
  else
3491
 
    case $cross_compiling:$ac_tool_warned in
3492
 
yes:)
3493
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3494
 
whose name does not start with the host triplet.  If you think this
3495
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3496
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3497
 
whose name does not start with the host triplet.  If you think this
3498
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3499
 
ac_tool_warned=yes ;;
3500
 
esac
3501
 
    CC=$ac_ct_CC
3502
 
  fi
3503
 
else
3504
 
  CC="$ac_cv_prog_CC"
3505
 
fi
3506
 
 
3507
 
if test -z "$CC"; then
3508
 
          if test -n "$ac_tool_prefix"; then
3509
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3510
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3511
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3512
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3513
 
if test "${ac_cv_prog_CC+set}" = set; then
3514
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3515
 
else
3516
 
  if test -n "$CC"; then
3517
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3518
 
else
3519
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520
 
for as_dir in $PATH
3521
 
do
3522
 
  IFS=$as_save_IFS
3523
 
  test -z "$as_dir" && as_dir=.
3524
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3525
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3527
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528
 
    break 2
3529
 
  fi
3530
 
done
3531
 
done
3532
 
IFS=$as_save_IFS
3533
 
 
3534
 
fi
3535
 
fi
3536
 
CC=$ac_cv_prog_CC
3537
 
if test -n "$CC"; then
3538
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3539
 
echo "${ECHO_T}$CC" >&6; }
3540
 
else
3541
 
  { echo "$as_me:$LINENO: result: no" >&5
3542
 
echo "${ECHO_T}no" >&6; }
3543
 
fi
3544
 
 
3545
 
 
3546
 
  fi
3547
 
fi
3548
 
if test -z "$CC"; then
3549
 
  # Extract the first word of "cc", so it can be a program name with args.
3550
 
set dummy cc; ac_word=$2
3551
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3552
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3553
 
if test "${ac_cv_prog_CC+set}" = set; then
3554
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3555
 
else
3556
 
  if test -n "$CC"; then
3557
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3558
 
else
3559
 
  ac_prog_rejected=no
3560
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561
 
for as_dir in $PATH
3562
 
do
3563
 
  IFS=$as_save_IFS
3564
 
  test -z "$as_dir" && as_dir=.
3565
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3566
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3568
 
       ac_prog_rejected=yes
3569
 
       continue
3570
 
     fi
3571
 
    ac_cv_prog_CC="cc"
3572
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573
 
    break 2
3574
 
  fi
3575
 
done
3576
 
done
3577
 
IFS=$as_save_IFS
3578
 
 
3579
 
if test $ac_prog_rejected = yes; then
3580
 
  # We found a bogon in the path, so make sure we never use it.
3581
 
  set dummy $ac_cv_prog_CC
3582
 
  shift
3583
 
  if test $# != 0; then
3584
 
    # We chose a different compiler from the bogus one.
3585
 
    # However, it has the same basename, so the bogon will be chosen
3586
 
    # first if we set CC to just the basename; use the full file name.
3587
 
    shift
3588
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3589
 
  fi
3590
 
fi
3591
 
fi
3592
 
fi
3593
 
CC=$ac_cv_prog_CC
3594
 
if test -n "$CC"; then
3595
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3596
 
echo "${ECHO_T}$CC" >&6; }
3597
 
else
3598
 
  { echo "$as_me:$LINENO: result: no" >&5
3599
 
echo "${ECHO_T}no" >&6; }
3600
 
fi
3601
 
 
3602
 
 
3603
 
fi
3604
 
if test -z "$CC"; then
3605
 
  if test -n "$ac_tool_prefix"; then
3606
 
  for ac_prog in cl.exe
3607
 
  do
3608
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3610
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3611
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3612
 
if test "${ac_cv_prog_CC+set}" = set; then
3613
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3614
 
else
3615
 
  if test -n "$CC"; then
3616
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3617
 
else
3618
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619
 
for as_dir in $PATH
3620
 
do
3621
 
  IFS=$as_save_IFS
3622
 
  test -z "$as_dir" && as_dir=.
3623
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3624
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627
 
    break 2
3628
 
  fi
3629
 
done
3630
 
done
3631
 
IFS=$as_save_IFS
3632
 
 
3633
 
fi
3634
 
fi
3635
 
CC=$ac_cv_prog_CC
3636
 
if test -n "$CC"; then
3637
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3638
 
echo "${ECHO_T}$CC" >&6; }
3639
 
else
3640
 
  { echo "$as_me:$LINENO: result: no" >&5
3641
 
echo "${ECHO_T}no" >&6; }
3642
 
fi
3643
 
 
3644
 
 
3645
 
    test -n "$CC" && break
3646
 
  done
3647
 
fi
3648
 
if test -z "$CC"; then
3649
 
  ac_ct_CC=$CC
3650
 
  for ac_prog in cl.exe
3651
 
do
3652
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3653
 
set dummy $ac_prog; ac_word=$2
3654
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3655
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3658
 
else
3659
 
  if test -n "$ac_ct_CC"; then
3660
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661
 
else
3662
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663
 
for as_dir in $PATH
3664
 
do
3665
 
  IFS=$as_save_IFS
3666
 
  test -z "$as_dir" && as_dir=.
3667
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3668
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3670
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671
 
    break 2
3672
 
  fi
3673
 
done
3674
 
done
3675
 
IFS=$as_save_IFS
3676
 
 
3677
 
fi
3678
 
fi
3679
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680
 
if test -n "$ac_ct_CC"; then
3681
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3682
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
3683
 
else
3684
 
  { echo "$as_me:$LINENO: result: no" >&5
3685
 
echo "${ECHO_T}no" >&6; }
3686
 
fi
3687
 
 
3688
 
 
3689
 
  test -n "$ac_ct_CC" && break
3690
 
done
3691
 
 
3692
 
  if test "x$ac_ct_CC" = x; then
3693
 
    CC=""
3694
 
  else
3695
 
    case $cross_compiling:$ac_tool_warned in
3696
 
yes:)
3697
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3698
 
whose name does not start with the host triplet.  If you think this
3699
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3700
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3701
 
whose name does not start with the host triplet.  If you think this
3702
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3703
 
ac_tool_warned=yes ;;
3704
 
esac
3705
 
    CC=$ac_ct_CC
3706
 
  fi
3707
 
fi
3708
 
 
3709
 
fi
3710
 
 
3711
 
 
3712
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3713
 
See \`config.log' for more details." >&5
3714
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3715
 
See \`config.log' for more details." >&2;}
3716
 
   { (exit 1); exit 1; }; }
3717
 
 
3718
 
# Provide some information about the compiler.
3719
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
3720
 
ac_compiler=`set X $ac_compile; echo $2`
3721
 
{ (ac_try="$ac_compiler --version >&5"
3722
 
case "(($ac_try" in
3723
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724
 
  *) ac_try_echo=$ac_try;;
3725
 
esac
3726
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727
 
  (eval "$ac_compiler --version >&5") 2>&5
3728
 
  ac_status=$?
3729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730
 
  (exit $ac_status); }
3731
 
{ (ac_try="$ac_compiler -v >&5"
3732
 
case "(($ac_try" in
3733
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734
 
  *) ac_try_echo=$ac_try;;
3735
 
esac
3736
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737
 
  (eval "$ac_compiler -v >&5") 2>&5
3738
 
  ac_status=$?
3739
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
 
  (exit $ac_status); }
3741
 
{ (ac_try="$ac_compiler -V >&5"
3742
 
case "(($ac_try" in
3743
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744
 
  *) ac_try_echo=$ac_try;;
3745
 
esac
3746
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747
 
  (eval "$ac_compiler -V >&5") 2>&5
3748
 
  ac_status=$?
3749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
 
  (exit $ac_status); }
3751
 
 
3752
3088
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3753
3089
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3754
3090
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4187
3523
fi
4188
3524
 
4189
3525
 
4190
 
 
4191
 
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4192
 
 
4193
 
 
 
3526
if test "$GCC" = "yes"; then
 
3527
 
 
3528
    if test "$host_vendor" = "apple" -a "x${ac_cv_env_CC_set}" = "x"; then
 
3529
 
 
3530
      if test -f /usr/bin/gcc-4.2; then
 
3531
 
 
3532
          CPP="/usr/bin/gcc-4.2 -E"
 
3533
          CC=/usr/bin/gcc-4.2
 
3534
          CXX=/usr/bin/g++-4.2
 
3535
 
 
3536
fi
 
3537
 
 
3538
 
 
3539
fi
 
3540
 
 
3541
 
 
3542
fi
 
3543
 
 
3544
 
 
3545
 
 
3546
 
 
3547
 
 
3548
 
 
3549
  # Check whether --enable-64bit was given.
 
3550
if test "${enable_64bit+set}" = set; then
 
3551
  enableval=$enable_64bit; ac_enable_64bit="$enableval"
 
3552
else
 
3553
  ac_enable_64bit="yes"
 
3554
fi
 
3555
 
 
3556
 
 
3557
  for ac_prog in isainfo
 
3558
do
 
3559
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3560
set dummy $ac_prog; ac_word=$2
 
3561
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3562
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3563
if test "${ac_cv_prog_ISAINFO+set}" = set; then
 
3564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3565
else
 
3566
  if test -n "$ISAINFO"; then
 
3567
  ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
 
3568
else
 
3569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3570
for as_dir in $PATH
 
3571
do
 
3572
  IFS=$as_save_IFS
 
3573
  test -z "$as_dir" && as_dir=.
 
3574
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3575
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3576
    ac_cv_prog_ISAINFO="$ac_prog"
 
3577
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3578
    break 2
 
3579
  fi
 
3580
done
 
3581
done
 
3582
IFS=$as_save_IFS
 
3583
 
 
3584
fi
 
3585
fi
 
3586
ISAINFO=$ac_cv_prog_ISAINFO
 
3587
if test -n "$ISAINFO"; then
 
3588
  { echo "$as_me:$LINENO: result: $ISAINFO" >&5
 
3589
echo "${ECHO_T}$ISAINFO" >&6; }
 
3590
else
 
3591
  { echo "$as_me:$LINENO: result: no" >&5
 
3592
echo "${ECHO_T}no" >&6; }
 
3593
fi
 
3594
 
 
3595
 
 
3596
  test -n "$ISAINFO" && break
 
3597
done
 
3598
test -n "$ISAINFO" || ISAINFO="no"
 
3599
 
 
3600
  if test "x$ISAINFO" != "xno"; then
 
3601
  isainfo_b=`${ISAINFO} -b`
 
3602
else
 
3603
  isainfo_b="x"
 
3604
fi
 
3605
 
 
3606
 
 
3607
  if test "$isainfo_b" != "x"; then
 
3608
 
 
3609
 
 
3610
    isainfo_k=`${ISAINFO} -k`
 
3611
    DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_k}"
 
3612
 
 
3613
    if test "x${ac_cv_env_CPPFLAGS_set}" = "x"; then
 
3614
 
 
3615
      CPPFLAGS="-I/usr/local ${CPPFLAGS}"
 
3616
 
 
3617
fi
 
3618
 
 
3619
 
 
3620
    if test "x${ac_cv_env_LDFLAGS_set}" = "x"; then
 
3621
 
 
3622
      LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}"
 
3623
 
 
3624
fi
 
3625
 
 
3626
 
 
3627
    if test "x$ac_enable_64bit" = "xyes"; then
 
3628
 
 
3629
      if test "x$libdir" = "x\${exec_prefix}/lib"; then
 
3630
 
 
3631
                     libdir="${libdir}/${isainfo_k}"
 
3632
 
 
3633
fi
 
3634
 
 
3635
 
 
3636
      CPPFLAGS="-m64 ${CPPFLAGS}"
 
3637
      LDFLAGS="-m64 ${LDFLAGS}"
 
3638
      if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"; then
 
3639
 
 
3640
        AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}"
 
3641
        AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}"
 
3642
 
 
3643
fi
 
3644
 
 
3645
 
 
3646
fi
 
3647
 
 
3648
 
 
3649
fi
 
3650
 
 
3651
 
 
3652
if test "x$CC" != xcc; then
 
3653
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3654
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3655
else
 
3656
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3657
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3658
fi
 
3659
set dummy $CC; ac_cc=`echo $2 |
 
3660
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3661
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
3662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3663
else
 
3664
  cat >conftest.$ac_ext <<_ACEOF
 
3665
/* confdefs.h.  */
 
3666
_ACEOF
 
3667
cat confdefs.h >>conftest.$ac_ext
 
3668
cat >>conftest.$ac_ext <<_ACEOF
 
3669
/* end confdefs.h.  */
 
3670
 
 
3671
int
 
3672
main ()
 
3673
{
 
3674
 
 
3675
  ;
 
3676
  return 0;
 
3677
}
 
3678
_ACEOF
 
3679
# Make sure it works both with $CC and with simple cc.
 
3680
# We do the test twice because some compilers refuse to overwrite an
 
3681
# existing .o file with -o, though they will create one.
 
3682
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3683
rm -f conftest2.*
 
3684
if { (case "(($ac_try" in
 
3685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3686
  *) ac_try_echo=$ac_try;;
 
3687
esac
 
3688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3689
  (eval "$ac_try") 2>&5
 
3690
  ac_status=$?
 
3691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3692
  (exit $ac_status); } &&
 
3693
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3695
  *) ac_try_echo=$ac_try;;
 
3696
esac
 
3697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3698
  (eval "$ac_try") 2>&5
 
3699
  ac_status=$?
 
3700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3701
  (exit $ac_status); };
 
3702
then
 
3703
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3704
  if test "x$CC" != xcc; then
 
3705
    # Test first that cc exists at all.
 
3706
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3707
  { (case "(($ac_try" in
 
3708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3709
  *) ac_try_echo=$ac_try;;
 
3710
esac
 
3711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3712
  (eval "$ac_try") 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; }; then
 
3716
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3717
      rm -f conftest2.*
 
3718
      if { (case "(($ac_try" in
 
3719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3720
  *) ac_try_echo=$ac_try;;
 
3721
esac
 
3722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3723
  (eval "$ac_try") 2>&5
 
3724
  ac_status=$?
 
3725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3726
  (exit $ac_status); } &&
 
3727
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3729
  *) ac_try_echo=$ac_try;;
 
3730
esac
 
3731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3732
  (eval "$ac_try") 2>&5
 
3733
  ac_status=$?
 
3734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3735
  (exit $ac_status); };
 
3736
      then
 
3737
        # cc works too.
 
3738
        :
 
3739
      else
 
3740
        # cc exists but doesn't like -o.
 
3741
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3742
      fi
 
3743
    fi
 
3744
  fi
 
3745
else
 
3746
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3747
fi
 
3748
rm -f core conftest*
 
3749
 
 
3750
fi
 
3751
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3752
  { echo "$as_me:$LINENO: result: yes" >&5
 
3753
echo "${ECHO_T}yes" >&6; }
 
3754
else
 
3755
  { echo "$as_me:$LINENO: result: no" >&5
 
3756
echo "${ECHO_T}no" >&6; }
4194
3757
 
4195
3758
cat >>confdefs.h <<\_ACEOF
4196
 
#define _GNU_SOURCE 1
4197
 
_ACEOF
4198
 
 
4199
 
 
4200
 
 
4201
 
ac_ext=c
4202
 
ac_cpp='$CPP $CPPFLAGS'
4203
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4207
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4208
 
# On Suns, sometimes $CPP names a directory.
4209
 
if test -n "$CPP" && test -d "$CPP"; then
4210
 
  CPP=
4211
 
fi
4212
 
if test -z "$CPP"; then
4213
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4215
 
else
4216
 
      # Double quotes because CPP needs to be expanded
4217
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218
 
    do
4219
 
      ac_preproc_ok=false
4220
 
for ac_c_preproc_warn_flag in '' yes
4221
 
do
4222
 
  # Use a header file that comes with gcc, so configuring glibc
4223
 
  # with a fresh cross-compiler works.
4224
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225
 
  # <limits.h> exists even on freestanding compilers.
4226
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4227
 
  # not just through cpp. "Syntax error" is here to catch this case.
4228
 
  cat >conftest.$ac_ext <<_ACEOF
4229
 
/* confdefs.h.  */
4230
 
_ACEOF
4231
 
cat confdefs.h >>conftest.$ac_ext
4232
 
cat >>conftest.$ac_ext <<_ACEOF
4233
 
/* end confdefs.h.  */
4234
 
#ifdef __STDC__
4235
 
# include <limits.h>
4236
 
#else
4237
 
# include <assert.h>
4238
 
#endif
4239
 
                     Syntax error
4240
 
_ACEOF
4241
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4242
 
case "(($ac_try" in
4243
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244
 
  *) ac_try_echo=$ac_try;;
4245
 
esac
4246
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4248
 
  ac_status=$?
4249
 
  grep -v '^ *+' conftest.er1 >conftest.err
4250
 
  rm -f conftest.er1
4251
 
  cat conftest.err >&5
4252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253
 
  (exit $ac_status); } >/dev/null && {
4254
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4255
 
         test ! -s conftest.err
4256
 
       }; then
4257
 
  :
4258
 
else
4259
 
  echo "$as_me: failed program was:" >&5
4260
 
sed 's/^/| /' conftest.$ac_ext >&5
4261
 
 
4262
 
  # Broken: fails on valid input.
4263
 
continue
4264
 
fi
4265
 
 
4266
 
rm -f conftest.err conftest.$ac_ext
4267
 
 
4268
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4269
 
  # can be detected and how.
4270
 
  cat >conftest.$ac_ext <<_ACEOF
4271
 
/* confdefs.h.  */
4272
 
_ACEOF
4273
 
cat confdefs.h >>conftest.$ac_ext
4274
 
cat >>conftest.$ac_ext <<_ACEOF
4275
 
/* end confdefs.h.  */
4276
 
#include <ac_nonexistent.h>
4277
 
_ACEOF
4278
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4279
 
case "(($ac_try" in
4280
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281
 
  *) ac_try_echo=$ac_try;;
4282
 
esac
4283
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4285
 
  ac_status=$?
4286
 
  grep -v '^ *+' conftest.er1 >conftest.err
4287
 
  rm -f conftest.er1
4288
 
  cat conftest.err >&5
4289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290
 
  (exit $ac_status); } >/dev/null && {
4291
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4292
 
         test ! -s conftest.err
4293
 
       }; then
4294
 
  # Broken: success on invalid input.
4295
 
continue
4296
 
else
4297
 
  echo "$as_me: failed program was:" >&5
4298
 
sed 's/^/| /' conftest.$ac_ext >&5
4299
 
 
4300
 
  # Passes both tests.
4301
 
ac_preproc_ok=:
4302
 
break
4303
 
fi
4304
 
 
4305
 
rm -f conftest.err conftest.$ac_ext
4306
 
 
4307
 
done
4308
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309
 
rm -f conftest.err conftest.$ac_ext
4310
 
if $ac_preproc_ok; then
4311
 
  break
4312
 
fi
4313
 
 
4314
 
    done
4315
 
    ac_cv_prog_CPP=$CPP
4316
 
 
4317
 
fi
4318
 
  CPP=$ac_cv_prog_CPP
4319
 
else
4320
 
  ac_cv_prog_CPP=$CPP
4321
 
fi
4322
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4323
 
echo "${ECHO_T}$CPP" >&6; }
4324
 
ac_preproc_ok=false
4325
 
for ac_c_preproc_warn_flag in '' yes
4326
 
do
4327
 
  # Use a header file that comes with gcc, so configuring glibc
4328
 
  # with a fresh cross-compiler works.
4329
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330
 
  # <limits.h> exists even on freestanding compilers.
4331
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4332
 
  # not just through cpp. "Syntax error" is here to catch this case.
4333
 
  cat >conftest.$ac_ext <<_ACEOF
4334
 
/* confdefs.h.  */
4335
 
_ACEOF
4336
 
cat confdefs.h >>conftest.$ac_ext
4337
 
cat >>conftest.$ac_ext <<_ACEOF
4338
 
/* end confdefs.h.  */
4339
 
#ifdef __STDC__
4340
 
# include <limits.h>
4341
 
#else
4342
 
# include <assert.h>
4343
 
#endif
4344
 
                     Syntax error
4345
 
_ACEOF
4346
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4347
 
case "(($ac_try" in
4348
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349
 
  *) ac_try_echo=$ac_try;;
4350
 
esac
4351
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4353
 
  ac_status=$?
4354
 
  grep -v '^ *+' conftest.er1 >conftest.err
4355
 
  rm -f conftest.er1
4356
 
  cat conftest.err >&5
4357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358
 
  (exit $ac_status); } >/dev/null && {
4359
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4360
 
         test ! -s conftest.err
4361
 
       }; then
4362
 
  :
4363
 
else
4364
 
  echo "$as_me: failed program was:" >&5
4365
 
sed 's/^/| /' conftest.$ac_ext >&5
4366
 
 
4367
 
  # Broken: fails on valid input.
4368
 
continue
4369
 
fi
4370
 
 
4371
 
rm -f conftest.err conftest.$ac_ext
4372
 
 
4373
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4374
 
  # can be detected and how.
4375
 
  cat >conftest.$ac_ext <<_ACEOF
4376
 
/* confdefs.h.  */
4377
 
_ACEOF
4378
 
cat confdefs.h >>conftest.$ac_ext
4379
 
cat >>conftest.$ac_ext <<_ACEOF
4380
 
/* end confdefs.h.  */
4381
 
#include <ac_nonexistent.h>
4382
 
_ACEOF
4383
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4384
 
case "(($ac_try" in
4385
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386
 
  *) ac_try_echo=$ac_try;;
4387
 
esac
4388
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4390
 
  ac_status=$?
4391
 
  grep -v '^ *+' conftest.er1 >conftest.err
4392
 
  rm -f conftest.er1
4393
 
  cat conftest.err >&5
4394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
 
  (exit $ac_status); } >/dev/null && {
4396
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4397
 
         test ! -s conftest.err
4398
 
       }; then
4399
 
  # Broken: success on invalid input.
4400
 
continue
4401
 
else
4402
 
  echo "$as_me: failed program was:" >&5
4403
 
sed 's/^/| /' conftest.$ac_ext >&5
4404
 
 
4405
 
  # Passes both tests.
4406
 
ac_preproc_ok=:
4407
 
break
4408
 
fi
4409
 
 
4410
 
rm -f conftest.err conftest.$ac_ext
4411
 
 
4412
 
done
4413
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414
 
rm -f conftest.err conftest.$ac_ext
4415
 
if $ac_preproc_ok; then
4416
 
  :
4417
 
else
4418
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4419
 
See \`config.log' for more details." >&5
4420
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4421
 
See \`config.log' for more details." >&2;}
4422
 
   { (exit 1); exit 1; }; }
4423
 
fi
4424
 
 
4425
 
ac_ext=c
4426
 
ac_cpp='$CPP $CPPFLAGS'
4427
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3759
#define NO_MINUS_C_MINUS_O 1
 
3760
_ACEOF
 
3761
 
 
3762
fi
 
3763
 
4430
3764
 
4431
3765
 
4432
3766
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4591
3925
 EGREP="$ac_cv_path_EGREP"
4592
3926
 
4593
3927
 
4594
 
 
4595
 
{ echo "$as_me:$LINENO: checking for AIX" >&5
4596
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4597
 
cat >conftest.$ac_ext <<_ACEOF
4598
 
/* confdefs.h.  */
4599
 
_ACEOF
4600
 
cat confdefs.h >>conftest.$ac_ext
4601
 
cat >>conftest.$ac_ext <<_ACEOF
4602
 
/* end confdefs.h.  */
4603
 
#ifdef _AIX
4604
 
  yes
4605
 
#endif
4606
 
 
4607
 
_ACEOF
4608
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609
 
  $EGREP "yes" >/dev/null 2>&1; then
4610
 
  { echo "$as_me:$LINENO: result: yes" >&5
4611
 
echo "${ECHO_T}yes" >&6; }
4612
 
cat >>confdefs.h <<\_ACEOF
4613
 
#define _ALL_SOURCE 1
4614
 
_ACEOF
4615
 
 
4616
 
else
4617
 
  { echo "$as_me:$LINENO: result: no" >&5
4618
 
echo "${ECHO_T}no" >&6; }
4619
 
fi
4620
 
rm -f conftest*
4621
 
 
4622
 
 
4623
3928
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4624
3929
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4625
3930
if test "${ac_cv_header_stdc+set}" = set; then
4863
4168
done
4864
4169
 
4865
4170
 
4866
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4171
 
 
4172
 
 
4173
 
 
4174
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4867
4175
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4868
4176
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4869
4177
if test "${ac_cv_header_minix_config_h+set}" = set; then
5000
4308
fi
5001
4309
 
5002
4310
 
5003
 
if test "$MINIX" = yes; then
 
4311
  if test "$MINIX" = yes; then
5004
4312
 
5005
4313
cat >>confdefs.h <<\_ACEOF
5006
4314
#define _POSIX_SOURCE 1
5016
4324
#define _MINIX 1
5017
4325
_ACEOF
5018
4326
 
5019
 
fi
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
 
 
5029
 
 
 
4327
  fi
 
4328
 
 
4329
        case "$host_os" in
 
4330
    hpux*)
 
4331
 
 
4332
cat >>confdefs.h <<\_ACEOF
 
4333
#define _XOPEN_SOURCE 500
 
4334
_ACEOF
 
4335
 
 
4336
      ;;
 
4337
  esac
5030
4338
 
5031
4339
 
5032
4340
 
5087
4395
_ACEOF
5088
4396
 
5089
4397
  cat >>confdefs.h <<\_ACEOF
 
4398
#define _ALL_SOURCE 1
 
4399
_ACEOF
 
4400
 
 
4401
  cat >>confdefs.h <<\_ACEOF
 
4402
#define _GNU_SOURCE 1
 
4403
_ACEOF
 
4404
 
 
4405
  cat >>confdefs.h <<\_ACEOF
5090
4406
#define _POSIX_PTHREAD_SEMANTICS 1
5091
4407
_ACEOF
5092
4408
 
5095
4411
_ACEOF
5096
4412
 
5097
4413
 
5098
 
 
5099
 
 
5100
 
 
5101
 
ac_ext=c
5102
 
ac_cpp='$CPP $CPPFLAGS'
5103
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5107
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5108
 
# On Suns, sometimes $CPP names a directory.
5109
 
if test -n "$CPP" && test -d "$CPP"; then
5110
 
  CPP=
5111
 
fi
5112
 
if test -z "$CPP"; then
5113
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5115
 
else
5116
 
      # Double quotes because CPP needs to be expanded
5117
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5118
 
    do
5119
 
      ac_preproc_ok=false
5120
 
for ac_c_preproc_warn_flag in '' yes
5121
 
do
5122
 
  # Use a header file that comes with gcc, so configuring glibc
5123
 
  # with a fresh cross-compiler works.
5124
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125
 
  # <limits.h> exists even on freestanding compilers.
5126
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5127
 
  # not just through cpp. "Syntax error" is here to catch this case.
5128
 
  cat >conftest.$ac_ext <<_ACEOF
5129
 
/* confdefs.h.  */
5130
 
_ACEOF
5131
 
cat confdefs.h >>conftest.$ac_ext
5132
 
cat >>conftest.$ac_ext <<_ACEOF
5133
 
/* end confdefs.h.  */
5134
 
#ifdef __STDC__
5135
 
# include <limits.h>
5136
 
#else
5137
 
# include <assert.h>
5138
 
#endif
5139
 
                     Syntax error
5140
 
_ACEOF
5141
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
5154
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5155
 
         test ! -s conftest.err
5156
 
       }; then
5157
 
  :
5158
 
else
5159
 
  echo "$as_me: failed program was:" >&5
5160
 
sed 's/^/| /' conftest.$ac_ext >&5
5161
 
 
5162
 
  # Broken: fails on valid input.
5163
 
continue
5164
 
fi
5165
 
 
5166
 
rm -f conftest.err conftest.$ac_ext
5167
 
 
5168
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5169
 
  # can be detected and how.
5170
 
  cat >conftest.$ac_ext <<_ACEOF
5171
 
/* confdefs.h.  */
5172
 
_ACEOF
5173
 
cat confdefs.h >>conftest.$ac_ext
5174
 
cat >>conftest.$ac_ext <<_ACEOF
5175
 
/* end confdefs.h.  */
5176
 
#include <ac_nonexistent.h>
5177
 
_ACEOF
5178
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5179
 
case "(($ac_try" in
5180
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181
 
  *) ac_try_echo=$ac_try;;
5182
 
esac
5183
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5185
 
  ac_status=$?
5186
 
  grep -v '^ *+' conftest.er1 >conftest.err
5187
 
  rm -f conftest.er1
5188
 
  cat conftest.err >&5
5189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190
 
  (exit $ac_status); } >/dev/null && {
5191
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192
 
         test ! -s conftest.err
5193
 
       }; then
5194
 
  # Broken: success on invalid input.
5195
 
continue
5196
 
else
5197
 
  echo "$as_me: failed program was:" >&5
5198
 
sed 's/^/| /' conftest.$ac_ext >&5
5199
 
 
5200
 
  # Passes both tests.
5201
 
ac_preproc_ok=:
5202
 
break
5203
 
fi
5204
 
 
5205
 
rm -f conftest.err conftest.$ac_ext
5206
 
 
5207
 
done
5208
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209
 
rm -f conftest.err conftest.$ac_ext
5210
 
if $ac_preproc_ok; then
5211
 
  break
5212
 
fi
5213
 
 
5214
 
    done
5215
 
    ac_cv_prog_CPP=$CPP
5216
 
 
5217
 
fi
5218
 
  CPP=$ac_cv_prog_CPP
5219
 
else
5220
 
  ac_cv_prog_CPP=$CPP
5221
 
fi
5222
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
5223
 
echo "${ECHO_T}$CPP" >&6; }
5224
 
ac_preproc_ok=false
5225
 
for ac_c_preproc_warn_flag in '' yes
5226
 
do
5227
 
  # Use a header file that comes with gcc, so configuring glibc
5228
 
  # with a fresh cross-compiler works.
5229
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230
 
  # <limits.h> exists even on freestanding compilers.
5231
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5232
 
  # not just through cpp. "Syntax error" is here to catch this case.
5233
 
  cat >conftest.$ac_ext <<_ACEOF
5234
 
/* confdefs.h.  */
5235
 
_ACEOF
5236
 
cat confdefs.h >>conftest.$ac_ext
5237
 
cat >>conftest.$ac_ext <<_ACEOF
5238
 
/* end confdefs.h.  */
5239
 
#ifdef __STDC__
5240
 
# include <limits.h>
5241
 
#else
5242
 
# include <assert.h>
5243
 
#endif
5244
 
                     Syntax error
5245
 
_ACEOF
5246
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5247
 
case "(($ac_try" in
5248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249
 
  *) ac_try_echo=$ac_try;;
5250
 
esac
5251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5253
 
  ac_status=$?
5254
 
  grep -v '^ *+' conftest.er1 >conftest.err
5255
 
  rm -f conftest.er1
5256
 
  cat conftest.err >&5
5257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258
 
  (exit $ac_status); } >/dev/null && {
5259
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260
 
         test ! -s conftest.err
5261
 
       }; then
5262
 
  :
5263
 
else
5264
 
  echo "$as_me: failed program was:" >&5
5265
 
sed 's/^/| /' conftest.$ac_ext >&5
5266
 
 
5267
 
  # Broken: fails on valid input.
5268
 
continue
5269
 
fi
5270
 
 
5271
 
rm -f conftest.err conftest.$ac_ext
5272
 
 
5273
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5274
 
  # can be detected and how.
5275
 
  cat >conftest.$ac_ext <<_ACEOF
5276
 
/* confdefs.h.  */
5277
 
_ACEOF
5278
 
cat confdefs.h >>conftest.$ac_ext
5279
 
cat >>conftest.$ac_ext <<_ACEOF
5280
 
/* end confdefs.h.  */
5281
 
#include <ac_nonexistent.h>
5282
 
_ACEOF
5283
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5284
 
case "(($ac_try" in
5285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
 
  *) ac_try_echo=$ac_try;;
5287
 
esac
5288
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5290
 
  ac_status=$?
5291
 
  grep -v '^ *+' conftest.er1 >conftest.err
5292
 
  rm -f conftest.er1
5293
 
  cat conftest.err >&5
5294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
 
  (exit $ac_status); } >/dev/null && {
5296
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5297
 
         test ! -s conftest.err
5298
 
       }; then
5299
 
  # Broken: success on invalid input.
5300
 
continue
5301
 
else
5302
 
  echo "$as_me: failed program was:" >&5
5303
 
sed 's/^/| /' conftest.$ac_ext >&5
5304
 
 
5305
 
  # Passes both tests.
5306
 
ac_preproc_ok=:
5307
 
break
5308
 
fi
5309
 
 
5310
 
rm -f conftest.err conftest.$ac_ext
5311
 
 
5312
 
done
5313
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314
 
rm -f conftest.err conftest.$ac_ext
5315
 
if $ac_preproc_ok; then
5316
 
  :
5317
 
else
5318
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5319
 
See \`config.log' for more details." >&5
5320
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5321
 
See \`config.log' for more details." >&2;}
5322
 
   { (exit 1); exit 1; }; }
5323
 
fi
5324
 
 
5325
 
ac_ext=c
5326
 
ac_cpp='$CPP $CPPFLAGS'
5327
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
 
 
5331
 
if test "x$CC" != xcc; then
5332
 
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5333
 
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5334
 
else
5335
 
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5336
 
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5337
 
fi
5338
 
set dummy $CC; ac_cc=`echo $2 |
5339
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5340
 
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5342
 
else
5343
 
  cat >conftest.$ac_ext <<_ACEOF
5344
 
/* confdefs.h.  */
5345
 
_ACEOF
5346
 
cat confdefs.h >>conftest.$ac_ext
5347
 
cat >>conftest.$ac_ext <<_ACEOF
5348
 
/* end confdefs.h.  */
5349
 
 
5350
 
int
5351
 
main ()
5352
 
{
5353
 
 
5354
 
  ;
5355
 
  return 0;
5356
 
}
5357
 
_ACEOF
5358
 
# Make sure it works both with $CC and with simple cc.
5359
 
# We do the test twice because some compilers refuse to overwrite an
5360
 
# existing .o file with -o, though they will create one.
5361
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5362
 
rm -f conftest2.*
5363
 
if { (case "(($ac_try" in
5364
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365
 
  *) ac_try_echo=$ac_try;;
5366
 
esac
5367
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368
 
  (eval "$ac_try") 2>&5
5369
 
  ac_status=$?
5370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
 
  (exit $ac_status); } &&
5372
 
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5373
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374
 
  *) ac_try_echo=$ac_try;;
5375
 
esac
5376
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377
 
  (eval "$ac_try") 2>&5
5378
 
  ac_status=$?
5379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380
 
  (exit $ac_status); };
5381
 
then
5382
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5383
 
  if test "x$CC" != xcc; then
5384
 
    # Test first that cc exists at all.
5385
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
5386
 
  { (case "(($ac_try" in
5387
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388
 
  *) ac_try_echo=$ac_try;;
5389
 
esac
5390
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391
 
  (eval "$ac_try") 2>&5
5392
 
  ac_status=$?
5393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394
 
  (exit $ac_status); }; }; then
5395
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5396
 
      rm -f conftest2.*
5397
 
      if { (case "(($ac_try" in
5398
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399
 
  *) ac_try_echo=$ac_try;;
5400
 
esac
5401
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402
 
  (eval "$ac_try") 2>&5
5403
 
  ac_status=$?
5404
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405
 
  (exit $ac_status); } &&
5406
 
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
5407
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408
 
  *) ac_try_echo=$ac_try;;
5409
 
esac
5410
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411
 
  (eval "$ac_try") 2>&5
5412
 
  ac_status=$?
5413
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414
 
  (exit $ac_status); };
5415
 
      then
5416
 
        # cc works too.
5417
 
        :
5418
 
      else
5419
 
        # cc exists but doesn't like -o.
5420
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
5421
 
      fi
5422
 
    fi
5423
 
  fi
5424
 
else
5425
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5426
 
fi
5427
 
rm -f core conftest*
5428
 
 
5429
 
fi
5430
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5431
 
  { echo "$as_me:$LINENO: result: yes" >&5
5432
 
echo "${ECHO_T}yes" >&6; }
5433
 
else
5434
 
  { echo "$as_me:$LINENO: result: no" >&5
5435
 
echo "${ECHO_T}no" >&6; }
5436
 
 
5437
 
cat >>confdefs.h <<\_ACEOF
5438
 
#define NO_MINUS_C_MINUS_O 1
5439
 
_ACEOF
5440
 
 
5441
 
fi
5442
 
 
5443
 
# FIXME: we rely on the cache variable name because
5444
 
# there is no other way.
5445
 
set dummy $CC
5446
 
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5447
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5448
 
   # Losing compiler, so override with the script.
5449
 
   # FIXME: It is wrong to rewrite CC.
5450
 
   # But if we don't then we get into trouble of one sort or another.
5451
 
   # A longer-term fix would be to have automake use am__CC in this case,
5452
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5453
 
   CC="$am_aux_dir/compile $CC"
5454
 
fi
5455
 
 
5456
 
 
5457
 
 
5458
 
{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
5459
 
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
5460
 
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
5461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5462
 
else
5463
 
  cat >conftest.$ac_ext <<_ACEOF
5464
 
/* confdefs.h.  */
5465
 
_ACEOF
5466
 
cat confdefs.h >>conftest.$ac_ext
5467
 
cat >>conftest.$ac_ext <<_ACEOF
5468
 
/* end confdefs.h.  */
5469
 
$ac_includes_default
5470
 
int
5471
 
main ()
5472
 
{
5473
 
#ifndef __SUNPRO_C
5474
 
  (void) __SUNPRO_C;
5475
 
#endif
5476
 
 
5477
 
  ;
5478
 
  return 0;
5479
 
}
5480
 
_ACEOF
5481
 
rm -f conftest.$ac_objext
5482
 
if { (ac_try="$ac_compile"
5483
 
case "(($ac_try" in
5484
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485
 
  *) ac_try_echo=$ac_try;;
5486
 
esac
5487
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488
 
  (eval "$ac_compile") 2>conftest.er1
5489
 
  ac_status=$?
5490
 
  grep -v '^ *+' conftest.er1 >conftest.err
5491
 
  rm -f conftest.er1
5492
 
  cat conftest.err >&5
5493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
 
  (exit $ac_status); } && {
5495
 
         test -z "$ac_c_werror_flag" ||
5496
 
         test ! -s conftest.err
5497
 
       } && test -s conftest.$ac_objext; then
5498
 
  ac_cv_have_decl___SUNPRO_C=yes
5499
 
else
5500
 
  echo "$as_me: failed program was:" >&5
5501
 
sed 's/^/| /' conftest.$ac_ext >&5
5502
 
 
5503
 
        ac_cv_have_decl___SUNPRO_C=no
5504
 
fi
5505
 
 
5506
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507
 
fi
5508
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5509
 
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
5510
 
if test $ac_cv_have_decl___SUNPRO_C = yes; then
5511
 
  SUNCC="yes"
5512
 
else
5513
 
  SUNCC="no"
5514
 
fi
5515
 
 
5516
 
if test $ac_cv_c_compiler_gnu = yes; then
5517
 
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5518
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5519
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5521
 
else
5522
 
    ac_pattern="Autoconf.*'x'"
5523
 
  cat >conftest.$ac_ext <<_ACEOF
5524
 
/* confdefs.h.  */
5525
 
_ACEOF
5526
 
cat confdefs.h >>conftest.$ac_ext
5527
 
cat >>conftest.$ac_ext <<_ACEOF
5528
 
/* end confdefs.h.  */
5529
 
#include <sgtty.h>
5530
 
Autoconf TIOCGETP
5531
 
_ACEOF
5532
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5534
 
  ac_cv_prog_gcc_traditional=yes
5535
 
else
5536
 
  ac_cv_prog_gcc_traditional=no
5537
 
fi
5538
 
rm -f conftest*
5539
 
 
5540
 
 
5541
 
  if test $ac_cv_prog_gcc_traditional = no; then
5542
 
    cat >conftest.$ac_ext <<_ACEOF
5543
 
/* confdefs.h.  */
5544
 
_ACEOF
5545
 
cat confdefs.h >>conftest.$ac_ext
5546
 
cat >>conftest.$ac_ext <<_ACEOF
5547
 
/* end confdefs.h.  */
5548
 
#include <termio.h>
5549
 
Autoconf TCGETA
5550
 
_ACEOF
5551
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5552
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5553
 
  ac_cv_prog_gcc_traditional=yes
5554
 
fi
5555
 
rm -f conftest*
5556
 
 
5557
 
  fi
5558
 
fi
5559
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5560
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5561
 
  if test $ac_cv_prog_gcc_traditional = yes; then
5562
 
    CC="$CC -traditional"
5563
 
  fi
5564
 
fi
5565
 
 
5566
 
 
5567
 
# We use libtool
5568
 
# Check whether --enable-shared was given.
5569
 
if test "${enable_shared+set}" = set; then
5570
 
  enableval=$enable_shared; p=${PACKAGE-default}
5571
 
    case $enableval in
5572
 
    yes) enable_shared=yes ;;
5573
 
    no) enable_shared=no ;;
5574
 
    *)
5575
 
      enable_shared=no
5576
 
      # Look at the argument we got.  We use all the common list separators.
5577
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5578
 
      for pkg in $enableval; do
5579
 
        IFS="$lt_save_ifs"
5580
 
        if test "X$pkg" = "X$p"; then
5581
 
          enable_shared=yes
5582
 
        fi
5583
 
      done
5584
 
      IFS="$lt_save_ifs"
5585
 
      ;;
5586
 
    esac
5587
 
else
5588
 
  enable_shared=yes
5589
 
fi
5590
 
 
5591
 
 
5592
 
# Check whether --enable-static was given.
5593
 
if test "${enable_static+set}" = set; then
5594
 
  enableval=$enable_static; p=${PACKAGE-default}
5595
 
    case $enableval in
5596
 
    yes) enable_static=yes ;;
5597
 
    no) enable_static=no ;;
5598
 
    *)
5599
 
     enable_static=no
5600
 
      # Look at the argument we got.  We use all the common list separators.
5601
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5602
 
      for pkg in $enableval; do
5603
 
        IFS="$lt_save_ifs"
5604
 
        if test "X$pkg" = "X$p"; then
5605
 
          enable_static=yes
5606
 
        fi
5607
 
      done
5608
 
      IFS="$lt_save_ifs"
5609
 
      ;;
5610
 
    esac
5611
 
else
5612
 
  enable_static=yes
5613
 
fi
5614
 
 
5615
 
 
5616
 
# Check whether --enable-fast-install was given.
5617
 
if test "${enable_fast_install+set}" = set; then
5618
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
5619
 
    case $enableval in
5620
 
    yes) enable_fast_install=yes ;;
5621
 
    no) enable_fast_install=no ;;
5622
 
    *)
5623
 
      enable_fast_install=no
5624
 
      # Look at the argument we got.  We use all the common list separators.
5625
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5626
 
      for pkg in $enableval; do
5627
 
        IFS="$lt_save_ifs"
5628
 
        if test "X$pkg" = "X$p"; then
5629
 
          enable_fast_install=yes
5630
 
        fi
5631
 
      done
5632
 
      IFS="$lt_save_ifs"
5633
 
      ;;
5634
 
    esac
5635
 
else
5636
 
  enable_fast_install=yes
5637
 
fi
5638
 
 
 
4414
case `pwd` in
 
4415
  *\ * | *\     *)
 
4416
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4417
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4418
esac
 
4419
 
 
4420
 
 
4421
 
 
4422
macro_version='2.2.6'
 
4423
macro_revision='1.3012'
 
4424
 
 
4425
 
 
4426
 
 
4427
 
 
4428
 
 
4429
 
 
4430
 
 
4431
 
 
4432
 
 
4433
 
 
4434
 
 
4435
 
 
4436
 
 
4437
ltmain="$ac_aux_dir/ltmain.sh"
5639
4438
 
5640
4439
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5641
4440
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5642
 
if test "${lt_cv_path_SED+set}" = set; then
5643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5644
 
else
5645
 
  # Loop through the user's path and test for sed and gsed.
5646
 
# Then use that list of sed's as ones to test for truncation.
 
4441
if test "${ac_cv_path_SED+set}" = set; then
 
4442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4443
else
 
4444
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4445
     for ac_i in 1 2 3 4 5 6 7; do
 
4446
       ac_script="$ac_script$as_nl$ac_script"
 
4447
     done
 
4448
     echo "$ac_script" | sed 99q >conftest.sed
 
4449
     $as_unset ac_script || ac_script=
 
4450
     # Extract the first word of "sed gsed" to use in msg output
 
4451
if test -z "$SED"; then
 
4452
set dummy sed gsed; ac_prog_name=$2
 
4453
if test "${ac_cv_path_SED+set}" = set; then
 
4454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4455
else
 
4456
  ac_path_SED_found=false
 
4457
# Loop through the user's path and test for each of PROGNAME-LIST
5647
4458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648
4459
for as_dir in $PATH
5649
4460
do
5650
4461
  IFS=$as_save_IFS
5651
4462
  test -z "$as_dir" && as_dir=.
5652
 
  for lt_ac_prog in sed gsed; do
5653
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5654
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5655
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5656
 
      fi
5657
 
    done
5658
 
  done
5659
 
done
5660
 
IFS=$as_save_IFS
5661
 
lt_ac_max=0
5662
 
lt_ac_count=0
5663
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5664
 
# along with /bin/sed that truncates output.
5665
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5666
 
  test ! -f $lt_ac_sed && continue
5667
 
  cat /dev/null > conftest.in
5668
 
  lt_ac_count=0
5669
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5670
 
  # Check for GNU sed and select it if it is found.
5671
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5672
 
    lt_cv_path_SED=$lt_ac_sed
5673
 
    break
5674
 
  fi
5675
 
  while true; do
5676
 
    cat conftest.in conftest.in >conftest.tmp
5677
 
    mv conftest.tmp conftest.in
5678
 
    cp conftest.in conftest.nl
5679
 
    echo >>conftest.nl
5680
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5681
 
    cmp -s conftest.out conftest.nl || break
5682
 
    # 10000 chars as input seems more than enough
5683
 
    test $lt_ac_count -gt 10 && break
5684
 
    lt_ac_count=`expr $lt_ac_count + 1`
5685
 
    if test $lt_ac_count -gt $lt_ac_max; then
5686
 
      lt_ac_max=$lt_ac_count
5687
 
      lt_cv_path_SED=$lt_ac_sed
5688
 
    fi
5689
 
  done
5690
 
done
5691
 
 
5692
 
fi
5693
 
 
5694
 
SED=$lt_cv_path_SED
5695
 
 
5696
 
{ echo "$as_me:$LINENO: result: $SED" >&5
5697
 
echo "${ECHO_T}$SED" >&6; }
 
4463
  for ac_prog in sed gsed; do
 
4464
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4465
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4466
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4467
    # Check for GNU ac_path_SED and select it if it is found.
 
4468
  # Check for GNU $ac_path_SED
 
4469
case `"$ac_path_SED" --version 2>&1` in
 
4470
*GNU*)
 
4471
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4472
*)
 
4473
  ac_count=0
 
4474
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4475
  while :
 
4476
  do
 
4477
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4478
    mv "conftest.tmp" "conftest.in"
 
4479
    cp "conftest.in" "conftest.nl"
 
4480
    echo '' >> "conftest.nl"
 
4481
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4482
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4483
    ac_count=`expr $ac_count + 1`
 
4484
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4485
      # Best one so far, save it but keep looking for a better one
 
4486
      ac_cv_path_SED="$ac_path_SED"
 
4487
      ac_path_SED_max=$ac_count
 
4488
    fi
 
4489
    # 10*(2^10) chars as input seems more than enough
 
4490
    test $ac_count -gt 10 && break
 
4491
  done
 
4492
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4493
esac
 
4494
 
 
4495
 
 
4496
    $ac_path_SED_found && break 3
 
4497
  done
 
4498
done
 
4499
 
 
4500
done
 
4501
IFS=$as_save_IFS
 
4502
 
 
4503
 
 
4504
fi
 
4505
 
 
4506
SED="$ac_cv_path_SED"
 
4507
if test -z "$SED"; then
 
4508
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
4509
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
4510
   { (exit 1); exit 1; }; }
 
4511
fi
 
4512
 
 
4513
else
 
4514
  ac_cv_path_SED=$SED
 
4515
fi
 
4516
 
 
4517
fi
 
4518
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4519
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
4520
 SED="$ac_cv_path_SED"
 
4521
  rm -f conftest.sed
 
4522
 
 
4523
test -z "$SED" && SED=sed
 
4524
Xsed="$SED -e 1s/^X//"
 
4525
 
 
4526
 
 
4527
 
 
4528
 
 
4529
 
 
4530
 
 
4531
 
 
4532
 
 
4533
 
 
4534
 
 
4535
 
 
4536
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
4537
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
4538
if test "${ac_cv_path_FGREP+set}" = set; then
 
4539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4540
else
 
4541
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4542
   then ac_cv_path_FGREP="$GREP -F"
 
4543
   else
 
4544
     # Extract the first word of "fgrep" to use in msg output
 
4545
if test -z "$FGREP"; then
 
4546
set dummy fgrep; ac_prog_name=$2
 
4547
if test "${ac_cv_path_FGREP+set}" = set; then
 
4548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4549
else
 
4550
  ac_path_FGREP_found=false
 
4551
# Loop through the user's path and test for each of PROGNAME-LIST
 
4552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4553
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4554
do
 
4555
  IFS=$as_save_IFS
 
4556
  test -z "$as_dir" && as_dir=.
 
4557
  for ac_prog in fgrep; do
 
4558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4559
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4560
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4561
    # Check for GNU ac_path_FGREP and select it if it is found.
 
4562
  # Check for GNU $ac_path_FGREP
 
4563
case `"$ac_path_FGREP" --version 2>&1` in
 
4564
*GNU*)
 
4565
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4566
*)
 
4567
  ac_count=0
 
4568
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4569
  while :
 
4570
  do
 
4571
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4572
    mv "conftest.tmp" "conftest.in"
 
4573
    cp "conftest.in" "conftest.nl"
 
4574
    echo 'FGREP' >> "conftest.nl"
 
4575
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4576
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4577
    ac_count=`expr $ac_count + 1`
 
4578
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4579
      # Best one so far, save it but keep looking for a better one
 
4580
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4581
      ac_path_FGREP_max=$ac_count
 
4582
    fi
 
4583
    # 10*(2^10) chars as input seems more than enough
 
4584
    test $ac_count -gt 10 && break
 
4585
  done
 
4586
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4587
esac
 
4588
 
 
4589
 
 
4590
    $ac_path_FGREP_found && break 3
 
4591
  done
 
4592
done
 
4593
 
 
4594
done
 
4595
IFS=$as_save_IFS
 
4596
 
 
4597
 
 
4598
fi
 
4599
 
 
4600
FGREP="$ac_cv_path_FGREP"
 
4601
if test -z "$FGREP"; then
 
4602
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4603
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4604
   { (exit 1); exit 1; }; }
 
4605
fi
 
4606
 
 
4607
else
 
4608
  ac_cv_path_FGREP=$FGREP
 
4609
fi
 
4610
 
 
4611
 
 
4612
   fi
 
4613
fi
 
4614
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4615
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
4616
 FGREP="$ac_cv_path_FGREP"
 
4617
 
 
4618
 
 
4619
test -z "$GREP" && GREP=grep
 
4620
 
 
4621
 
 
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
 
4630
 
 
4631
 
 
4632
 
 
4633
 
 
4634
 
 
4635
 
 
4636
 
5698
4637
 
5699
4638
 
5700
4639
# Check whether --with-gnu-ld was given.
5721
4660
    [\\/]* | ?:[\\/]*)
5722
4661
      re_direlt='/[^/][^/]*/\.\./'
5723
4662
      # Canonicalize the pathname of ld
5724
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5725
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5726
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4663
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4664
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4665
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5727
4666
      done
5728
4667
      test -z "$LD" && LD="$ac_prog"
5729
4668
      ;;
5803
4742
with_gnu_ld=$lt_cv_prog_gnu_ld
5804
4743
 
5805
4744
 
5806
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5807
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5808
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5810
 
else
5811
 
  lt_cv_ld_reload_flag='-r'
5812
 
fi
5813
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5814
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5815
 
reload_flag=$lt_cv_ld_reload_flag
5816
 
case $reload_flag in
5817
 
"" | " "*) ;;
5818
 
*) reload_flag=" $reload_flag" ;;
5819
 
esac
5820
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821
 
case $host_os in
5822
 
  darwin*)
5823
 
    if test "$GCC" = yes; then
5824
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5825
 
    else
5826
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5827
 
    fi
5828
 
    ;;
5829
 
esac
5830
 
 
5831
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5832
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4745
 
 
4746
 
 
4747
 
 
4748
 
 
4749
 
 
4750
 
 
4751
 
 
4752
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4753
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5833
4754
if test "${lt_cv_path_NM+set}" = set; then
5834
4755
  echo $ECHO_N "(cached) $ECHO_C" >&6
5835
4756
else
5874
4795
    done
5875
4796
    IFS="$lt_save_ifs"
5876
4797
  done
5877
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4798
  : ${lt_cv_path_NM=no}
5878
4799
fi
5879
4800
fi
5880
4801
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5881
4802
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5882
 
NM="$lt_cv_path_NM"
 
4803
if test "$lt_cv_path_NM" != "no"; then
 
4804
  NM="$lt_cv_path_NM"
 
4805
else
 
4806
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4807
  if test -n "$ac_tool_prefix"; then
 
4808
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4809
  do
 
4810
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4811
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4812
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4814
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4816
else
 
4817
  if test -n "$DUMPBIN"; then
 
4818
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4819
else
 
4820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4821
for as_dir in $PATH
 
4822
do
 
4823
  IFS=$as_save_IFS
 
4824
  test -z "$as_dir" && as_dir=.
 
4825
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4827
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4828
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4829
    break 2
 
4830
  fi
 
4831
done
 
4832
done
 
4833
IFS=$as_save_IFS
 
4834
 
 
4835
fi
 
4836
fi
 
4837
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4838
if test -n "$DUMPBIN"; then
 
4839
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4840
echo "${ECHO_T}$DUMPBIN" >&6; }
 
4841
else
 
4842
  { echo "$as_me:$LINENO: result: no" >&5
 
4843
echo "${ECHO_T}no" >&6; }
 
4844
fi
 
4845
 
 
4846
 
 
4847
    test -n "$DUMPBIN" && break
 
4848
  done
 
4849
fi
 
4850
if test -z "$DUMPBIN"; then
 
4851
  ac_ct_DUMPBIN=$DUMPBIN
 
4852
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4853
do
 
4854
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4855
set dummy $ac_prog; ac_word=$2
 
4856
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4858
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4860
else
 
4861
  if test -n "$ac_ct_DUMPBIN"; then
 
4862
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4863
else
 
4864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4865
for as_dir in $PATH
 
4866
do
 
4867
  IFS=$as_save_IFS
 
4868
  test -z "$as_dir" && as_dir=.
 
4869
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4871
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4872
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4873
    break 2
 
4874
  fi
 
4875
done
 
4876
done
 
4877
IFS=$as_save_IFS
 
4878
 
 
4879
fi
 
4880
fi
 
4881
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4882
if test -n "$ac_ct_DUMPBIN"; then
 
4883
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4884
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
4885
else
 
4886
  { echo "$as_me:$LINENO: result: no" >&5
 
4887
echo "${ECHO_T}no" >&6; }
 
4888
fi
 
4889
 
 
4890
 
 
4891
  test -n "$ac_ct_DUMPBIN" && break
 
4892
done
 
4893
 
 
4894
  if test "x$ac_ct_DUMPBIN" = x; then
 
4895
    DUMPBIN=":"
 
4896
  else
 
4897
    case $cross_compiling:$ac_tool_warned in
 
4898
yes:)
 
4899
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4900
whose name does not start with the host triplet.  If you think this
 
4901
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4902
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4903
whose name does not start with the host triplet.  If you think this
 
4904
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4905
ac_tool_warned=yes ;;
 
4906
esac
 
4907
    DUMPBIN=$ac_ct_DUMPBIN
 
4908
  fi
 
4909
fi
 
4910
 
 
4911
 
 
4912
  if test "$DUMPBIN" != ":"; then
 
4913
    NM="$DUMPBIN"
 
4914
  fi
 
4915
fi
 
4916
test -z "$NM" && NM=nm
 
4917
 
 
4918
 
 
4919
 
 
4920
 
 
4921
 
 
4922
 
 
4923
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4924
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
4925
if test "${lt_cv_nm_interface+set}" = set; then
 
4926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4927
else
 
4928
  lt_cv_nm_interface="BSD nm"
 
4929
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4930
  (eval echo "\"\$as_me:4930: $ac_compile\"" >&5)
 
4931
  (eval "$ac_compile" 2>conftest.err)
 
4932
  cat conftest.err >&5
 
4933
  (eval echo "\"\$as_me:4933: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4934
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4935
  cat conftest.err >&5
 
4936
  (eval echo "\"\$as_me:4936: output\"" >&5)
 
4937
  cat conftest.out >&5
 
4938
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4939
    lt_cv_nm_interface="MS dumpbin"
 
4940
  fi
 
4941
  rm -f conftest*
 
4942
fi
 
4943
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4944
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5883
4945
 
5884
4946
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5885
4947
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5892
4954
echo "${ECHO_T}no, using $LN_S" >&6; }
5893
4955
fi
5894
4956
 
 
4957
# find the maximum length of command line arguments
 
4958
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4959
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
4960
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4962
else
 
4963
    i=0
 
4964
  teststring="ABCD"
 
4965
 
 
4966
  case $build_os in
 
4967
  msdosdjgpp*)
 
4968
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4969
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4970
    # during glob expansion).  Even if it were fixed, the result of this
 
4971
    # check would be larger than it should be.
 
4972
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4973
    ;;
 
4974
 
 
4975
  gnu*)
 
4976
    # Under GNU Hurd, this test is not required because there is
 
4977
    # no limit to the length of command line arguments.
 
4978
    # Libtool will interpret -1 as no limit whatsoever
 
4979
    lt_cv_sys_max_cmd_len=-1;
 
4980
    ;;
 
4981
 
 
4982
  cygwin* | mingw* | cegcc*)
 
4983
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4984
    # about 5 minutes as the teststring grows exponentially.
 
4985
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4986
    # you end up with a "frozen" computer, even though with patience
 
4987
    # the test eventually succeeds (with a max line length of 256k).
 
4988
    # Instead, let's just punt: use the minimum linelength reported by
 
4989
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4990
    lt_cv_sys_max_cmd_len=8192;
 
4991
    ;;
 
4992
 
 
4993
  amigaos*)
 
4994
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4995
    # So we just punt and use a minimum line length of 8192.
 
4996
    lt_cv_sys_max_cmd_len=8192;
 
4997
    ;;
 
4998
 
 
4999
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5000
    # This has been around since 386BSD, at least.  Likely further.
 
5001
    if test -x /sbin/sysctl; then
 
5002
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5003
    elif test -x /usr/sbin/sysctl; then
 
5004
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5005
    else
 
5006
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5007
    fi
 
5008
    # And add a safety zone
 
5009
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5010
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5011
    ;;
 
5012
 
 
5013
  interix*)
 
5014
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5015
    lt_cv_sys_max_cmd_len=196608
 
5016
    ;;
 
5017
 
 
5018
  osf*)
 
5019
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5020
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5021
    # nice to cause kernel panics so lets avoid the loop below.
 
5022
    # First set a reasonable default.
 
5023
    lt_cv_sys_max_cmd_len=16384
 
5024
    #
 
5025
    if test -x /sbin/sysconfig; then
 
5026
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5027
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5028
      esac
 
5029
    fi
 
5030
    ;;
 
5031
  sco3.2v5*)
 
5032
    lt_cv_sys_max_cmd_len=102400
 
5033
    ;;
 
5034
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5035
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5036
    if test -n "$kargmax"; then
 
5037
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5038
    else
 
5039
      lt_cv_sys_max_cmd_len=32768
 
5040
    fi
 
5041
    ;;
 
5042
  *)
 
5043
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5044
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5045
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5046
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5047
    else
 
5048
      # Make teststring a little bigger before we do anything with it.
 
5049
      # a 1K string should be a reasonable start.
 
5050
      for i in 1 2 3 4 5 6 7 8 ; do
 
5051
        teststring=$teststring$teststring
 
5052
      done
 
5053
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5054
      # If test is not a shell built-in, we'll probably end up computing a
 
5055
      # maximum length that is only half of the actual maximum length, but
 
5056
      # we can't tell.
 
5057
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5058
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5059
              test $i != 17 # 1/2 MB should be enough
 
5060
      do
 
5061
        i=`expr $i + 1`
 
5062
        teststring=$teststring$teststring
 
5063
      done
 
5064
      # Only check the string length outside the loop.
 
5065
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5066
      teststring=
 
5067
      # Add a significant safety factor because C++ compilers can tack on
 
5068
      # massive amounts of additional arguments before passing them to the
 
5069
      # linker.  It appears as though 1/2 is a usable value.
 
5070
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5071
    fi
 
5072
    ;;
 
5073
  esac
 
5074
 
 
5075
fi
 
5076
 
 
5077
if test -n $lt_cv_sys_max_cmd_len ; then
 
5078
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5079
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
5080
else
 
5081
  { echo "$as_me:$LINENO: result: none" >&5
 
5082
echo "${ECHO_T}none" >&6; }
 
5083
fi
 
5084
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
: ${CP="cp -f"}
 
5092
: ${MV="mv -f"}
 
5093
: ${RM="rm -f"}
 
5094
 
 
5095
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
5096
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
5097
# Try some XSI features
 
5098
xsi_shell=no
 
5099
( _lt_dummy="a/b/c"
 
5100
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5101
      = c,a/b,, \
 
5102
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5103
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5104
  && xsi_shell=yes
 
5105
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
5106
echo "${ECHO_T}$xsi_shell" >&6; }
 
5107
 
 
5108
 
 
5109
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
5110
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
5111
lt_shell_append=no
 
5112
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5113
    >/dev/null 2>&1 \
 
5114
  && lt_shell_append=yes
 
5115
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
5116
echo "${ECHO_T}$lt_shell_append" >&6; }
 
5117
 
 
5118
 
 
5119
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5120
  lt_unset=unset
 
5121
else
 
5122
  lt_unset=false
 
5123
fi
 
5124
 
 
5125
 
 
5126
 
 
5127
 
 
5128
 
 
5129
# test EBCDIC or ASCII
 
5130
case `echo X|tr X '\101'` in
 
5131
 A) # ASCII based system
 
5132
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5133
  lt_SP2NL='tr \040 \012'
 
5134
  lt_NL2SP='tr \015\012 \040\040'
 
5135
  ;;
 
5136
 *) # EBCDIC based system
 
5137
  lt_SP2NL='tr \100 \n'
 
5138
  lt_NL2SP='tr \r\n \100\100'
 
5139
  ;;
 
5140
esac
 
5141
 
 
5142
 
 
5143
 
 
5144
 
 
5145
 
 
5146
 
 
5147
 
 
5148
 
 
5149
 
 
5150
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5151
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
5152
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5154
else
 
5155
  lt_cv_ld_reload_flag='-r'
 
5156
fi
 
5157
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5158
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
5159
reload_flag=$lt_cv_ld_reload_flag
 
5160
case $reload_flag in
 
5161
"" | " "*) ;;
 
5162
*) reload_flag=" $reload_flag" ;;
 
5163
esac
 
5164
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5165
case $host_os in
 
5166
  darwin*)
 
5167
    if test "$GCC" = yes; then
 
5168
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5169
    else
 
5170
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5171
    fi
 
5172
    ;;
 
5173
esac
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
 
 
5183
if test -n "$ac_tool_prefix"; then
 
5184
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5185
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5186
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5188
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5190
else
 
5191
  if test -n "$OBJDUMP"; then
 
5192
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5193
else
 
5194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5195
for as_dir in $PATH
 
5196
do
 
5197
  IFS=$as_save_IFS
 
5198
  test -z "$as_dir" && as_dir=.
 
5199
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5201
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5202
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5203
    break 2
 
5204
  fi
 
5205
done
 
5206
done
 
5207
IFS=$as_save_IFS
 
5208
 
 
5209
fi
 
5210
fi
 
5211
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5212
if test -n "$OBJDUMP"; then
 
5213
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5214
echo "${ECHO_T}$OBJDUMP" >&6; }
 
5215
else
 
5216
  { echo "$as_me:$LINENO: result: no" >&5
 
5217
echo "${ECHO_T}no" >&6; }
 
5218
fi
 
5219
 
 
5220
 
 
5221
fi
 
5222
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5223
  ac_ct_OBJDUMP=$OBJDUMP
 
5224
  # Extract the first word of "objdump", so it can be a program name with args.
 
5225
set dummy objdump; ac_word=$2
 
5226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5228
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5230
else
 
5231
  if test -n "$ac_ct_OBJDUMP"; then
 
5232
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5233
else
 
5234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5235
for as_dir in $PATH
 
5236
do
 
5237
  IFS=$as_save_IFS
 
5238
  test -z "$as_dir" && as_dir=.
 
5239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5241
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5243
    break 2
 
5244
  fi
 
5245
done
 
5246
done
 
5247
IFS=$as_save_IFS
 
5248
 
 
5249
fi
 
5250
fi
 
5251
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5252
if test -n "$ac_ct_OBJDUMP"; then
 
5253
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5254
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
5255
else
 
5256
  { echo "$as_me:$LINENO: result: no" >&5
 
5257
echo "${ECHO_T}no" >&6; }
 
5258
fi
 
5259
 
 
5260
  if test "x$ac_ct_OBJDUMP" = x; then
 
5261
    OBJDUMP="false"
 
5262
  else
 
5263
    case $cross_compiling:$ac_tool_warned in
 
5264
yes:)
 
5265
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5266
whose name does not start with the host triplet.  If you think this
 
5267
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5268
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5269
whose name does not start with the host triplet.  If you think this
 
5270
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5271
ac_tool_warned=yes ;;
 
5272
esac
 
5273
    OBJDUMP=$ac_ct_OBJDUMP
 
5274
  fi
 
5275
else
 
5276
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5277
fi
 
5278
 
 
5279
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
5895
5289
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5896
5290
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5897
5291
if test "${lt_cv_deplibs_check_method+set}" = set; then
5945
5339
  fi
5946
5340
  ;;
5947
5341
 
 
5342
cegcc)
 
5343
  # use the weaker test based on 'objdump'. See mingw*.
 
5344
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5345
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5346
  ;;
 
5347
 
5948
5348
darwin* | rhapsody*)
5949
5349
  lt_cv_deplibs_check_method=pass_all
5950
5350
  ;;
5951
5351
 
5952
5352
freebsd* | dragonfly*)
5953
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5353
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5954
5354
    case $host_cpu in
5955
5355
    i*86 )
5956
5356
      # Not sure whether the presence of OpenBSD here was a mistake.
6007
5407
  lt_cv_deplibs_check_method=pass_all
6008
5408
  ;;
6009
5409
 
6010
 
netbsd* | netbsdelf*-gnu)
6011
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5410
netbsd*)
 
5411
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6012
5412
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6013
5413
  else
6014
5414
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6021
5421
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6022
5422
  ;;
6023
5423
 
6024
 
nto-qnx*)
6025
 
  lt_cv_deplibs_check_method=unknown
 
5424
*nto* | *qnx*)
 
5425
  lt_cv_deplibs_check_method=pass_all
6026
5426
  ;;
6027
5427
 
6028
5428
openbsd*)
6029
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5429
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6030
5430
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6031
5431
  else
6032
5432
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6045
5445
  lt_cv_deplibs_check_method=pass_all
6046
5446
  ;;
6047
5447
 
 
5448
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5449
  lt_cv_deplibs_check_method=pass_all
 
5450
  ;;
 
5451
 
6048
5452
sysv4 | sysv4.3*)
6049
5453
  case $host_vendor in
6050
5454
  motorola)
6072
5476
  esac
6073
5477
  ;;
6074
5478
 
6075
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5479
tpf*)
6076
5480
  lt_cv_deplibs_check_method=pass_all
6077
5481
  ;;
6078
5482
esac
6087
5491
 
6088
5492
 
6089
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
 
 
5500
 
 
5501
 
 
5502
if test -n "$ac_tool_prefix"; then
 
5503
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5504
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5505
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5507
if test "${ac_cv_prog_AR+set}" = set; then
 
5508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5509
else
 
5510
  if test -n "$AR"; then
 
5511
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5512
else
 
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5514
for as_dir in $PATH
 
5515
do
 
5516
  IFS=$as_save_IFS
 
5517
  test -z "$as_dir" && as_dir=.
 
5518
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5520
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5521
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5522
    break 2
 
5523
  fi
 
5524
done
 
5525
done
 
5526
IFS=$as_save_IFS
 
5527
 
 
5528
fi
 
5529
fi
 
5530
AR=$ac_cv_prog_AR
 
5531
if test -n "$AR"; then
 
5532
  { echo "$as_me:$LINENO: result: $AR" >&5
 
5533
echo "${ECHO_T}$AR" >&6; }
 
5534
else
 
5535
  { echo "$as_me:$LINENO: result: no" >&5
 
5536
echo "${ECHO_T}no" >&6; }
 
5537
fi
 
5538
 
 
5539
 
 
5540
fi
 
5541
if test -z "$ac_cv_prog_AR"; then
 
5542
  ac_ct_AR=$AR
 
5543
  # Extract the first word of "ar", so it can be a program name with args.
 
5544
set dummy ar; ac_word=$2
 
5545
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5547
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5549
else
 
5550
  if test -n "$ac_ct_AR"; then
 
5551
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5552
else
 
5553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5554
for as_dir in $PATH
 
5555
do
 
5556
  IFS=$as_save_IFS
 
5557
  test -z "$as_dir" && as_dir=.
 
5558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5560
    ac_cv_prog_ac_ct_AR="ar"
 
5561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5562
    break 2
 
5563
  fi
 
5564
done
 
5565
done
 
5566
IFS=$as_save_IFS
 
5567
 
 
5568
fi
 
5569
fi
 
5570
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5571
if test -n "$ac_ct_AR"; then
 
5572
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5573
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
5574
else
 
5575
  { echo "$as_me:$LINENO: result: no" >&5
 
5576
echo "${ECHO_T}no" >&6; }
 
5577
fi
 
5578
 
 
5579
  if test "x$ac_ct_AR" = x; then
 
5580
    AR="false"
 
5581
  else
 
5582
    case $cross_compiling:$ac_tool_warned in
 
5583
yes:)
 
5584
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5585
whose name does not start with the host triplet.  If you think this
 
5586
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5587
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5588
whose name does not start with the host triplet.  If you think this
 
5589
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5590
ac_tool_warned=yes ;;
 
5591
esac
 
5592
    AR=$ac_ct_AR
 
5593
  fi
 
5594
else
 
5595
  AR="$ac_cv_prog_AR"
 
5596
fi
 
5597
 
 
5598
test -z "$AR" && AR=ar
 
5599
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5600
 
 
5601
 
 
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
 
 
5609
 
 
5610
 
 
5611
if test -n "$ac_tool_prefix"; then
 
5612
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5613
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5614
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5616
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5618
else
 
5619
  if test -n "$STRIP"; then
 
5620
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5621
else
 
5622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5623
for as_dir in $PATH
 
5624
do
 
5625
  IFS=$as_save_IFS
 
5626
  test -z "$as_dir" && as_dir=.
 
5627
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5628
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5629
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5630
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5631
    break 2
 
5632
  fi
 
5633
done
 
5634
done
 
5635
IFS=$as_save_IFS
 
5636
 
 
5637
fi
 
5638
fi
 
5639
STRIP=$ac_cv_prog_STRIP
 
5640
if test -n "$STRIP"; then
 
5641
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
5642
echo "${ECHO_T}$STRIP" >&6; }
 
5643
else
 
5644
  { echo "$as_me:$LINENO: result: no" >&5
 
5645
echo "${ECHO_T}no" >&6; }
 
5646
fi
 
5647
 
 
5648
 
 
5649
fi
 
5650
if test -z "$ac_cv_prog_STRIP"; then
 
5651
  ac_ct_STRIP=$STRIP
 
5652
  # Extract the first word of "strip", so it can be a program name with args.
 
5653
set dummy strip; ac_word=$2
 
5654
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5656
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5658
else
 
5659
  if test -n "$ac_ct_STRIP"; then
 
5660
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5661
else
 
5662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5663
for as_dir in $PATH
 
5664
do
 
5665
  IFS=$as_save_IFS
 
5666
  test -z "$as_dir" && as_dir=.
 
5667
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5669
    ac_cv_prog_ac_ct_STRIP="strip"
 
5670
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5671
    break 2
 
5672
  fi
 
5673
done
 
5674
done
 
5675
IFS=$as_save_IFS
 
5676
 
 
5677
fi
 
5678
fi
 
5679
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5680
if test -n "$ac_ct_STRIP"; then
 
5681
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5682
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
5683
else
 
5684
  { echo "$as_me:$LINENO: result: no" >&5
 
5685
echo "${ECHO_T}no" >&6; }
 
5686
fi
 
5687
 
 
5688
  if test "x$ac_ct_STRIP" = x; then
 
5689
    STRIP=":"
 
5690
  else
 
5691
    case $cross_compiling:$ac_tool_warned in
 
5692
yes:)
 
5693
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5694
whose name does not start with the host triplet.  If you think this
 
5695
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5696
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5697
whose name does not start with the host triplet.  If you think this
 
5698
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5699
ac_tool_warned=yes ;;
 
5700
esac
 
5701
    STRIP=$ac_ct_STRIP
 
5702
  fi
 
5703
else
 
5704
  STRIP="$ac_cv_prog_STRIP"
 
5705
fi
 
5706
 
 
5707
test -z "$STRIP" && STRIP=:
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
 
5714
if test -n "$ac_tool_prefix"; then
 
5715
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5716
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5717
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5719
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5721
else
 
5722
  if test -n "$RANLIB"; then
 
5723
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5724
else
 
5725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5726
for as_dir in $PATH
 
5727
do
 
5728
  IFS=$as_save_IFS
 
5729
  test -z "$as_dir" && as_dir=.
 
5730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5731
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5732
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5734
    break 2
 
5735
  fi
 
5736
done
 
5737
done
 
5738
IFS=$as_save_IFS
 
5739
 
 
5740
fi
 
5741
fi
 
5742
RANLIB=$ac_cv_prog_RANLIB
 
5743
if test -n "$RANLIB"; then
 
5744
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5745
echo "${ECHO_T}$RANLIB" >&6; }
 
5746
else
 
5747
  { echo "$as_me:$LINENO: result: no" >&5
 
5748
echo "${ECHO_T}no" >&6; }
 
5749
fi
 
5750
 
 
5751
 
 
5752
fi
 
5753
if test -z "$ac_cv_prog_RANLIB"; then
 
5754
  ac_ct_RANLIB=$RANLIB
 
5755
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5756
set dummy ranlib; ac_word=$2
 
5757
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5759
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5761
else
 
5762
  if test -n "$ac_ct_RANLIB"; then
 
5763
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5764
else
 
5765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5766
for as_dir in $PATH
 
5767
do
 
5768
  IFS=$as_save_IFS
 
5769
  test -z "$as_dir" && as_dir=.
 
5770
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5772
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5774
    break 2
 
5775
  fi
 
5776
done
 
5777
done
 
5778
IFS=$as_save_IFS
 
5779
 
 
5780
fi
 
5781
fi
 
5782
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5783
if test -n "$ac_ct_RANLIB"; then
 
5784
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5785
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
5786
else
 
5787
  { echo "$as_me:$LINENO: result: no" >&5
 
5788
echo "${ECHO_T}no" >&6; }
 
5789
fi
 
5790
 
 
5791
  if test "x$ac_ct_RANLIB" = x; then
 
5792
    RANLIB=":"
 
5793
  else
 
5794
    case $cross_compiling:$ac_tool_warned in
 
5795
yes:)
 
5796
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5797
whose name does not start with the host triplet.  If you think this
 
5798
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5799
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5800
whose name does not start with the host triplet.  If you think this
 
5801
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5802
ac_tool_warned=yes ;;
 
5803
esac
 
5804
    RANLIB=$ac_ct_RANLIB
 
5805
  fi
 
5806
else
 
5807
  RANLIB="$ac_cv_prog_RANLIB"
 
5808
fi
 
5809
 
 
5810
test -z "$RANLIB" && RANLIB=:
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
 
 
5816
 
 
5817
# Determine commands to create old-style static archives.
 
5818
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5819
old_postinstall_cmds='chmod 644 $oldlib'
 
5820
old_postuninstall_cmds=
 
5821
 
 
5822
if test -n "$RANLIB"; then
 
5823
  case $host_os in
 
5824
  openbsd*)
 
5825
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5826
    ;;
 
5827
  *)
 
5828
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5829
    ;;
 
5830
  esac
 
5831
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5832
fi
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
 
 
5840
 
 
5841
 
 
5842
 
 
5843
 
 
5844
 
 
5845
 
 
5846
 
 
5847
 
 
5848
 
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
 
 
5866
 
6090
5867
# If no C compiler was specified, use CC.
6091
5868
LTCC=${LTCC-"$CC"}
6092
5869
 
6096
5873
# Allow CC to be a program name with arguments.
6097
5874
compiler=$CC
6098
5875
 
6099
 
# Check whether --enable-libtool-lock was given.
6100
 
if test "${enable_libtool_lock+set}" = set; then
6101
 
  enableval=$enable_libtool_lock;
6102
 
fi
6103
 
 
6104
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6105
 
 
6106
 
# Some flags need to be propagated to the compiler or linker for good
6107
 
# libtool support.
6108
 
case $host in
6109
 
ia64-*-hpux*)
6110
 
  # Find out which ABI we are using.
6111
 
  echo 'int i;' > conftest.$ac_ext
6112
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113
 
  (eval $ac_compile) 2>&5
6114
 
  ac_status=$?
6115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116
 
  (exit $ac_status); }; then
6117
 
    case `/usr/bin/file conftest.$ac_objext` in
6118
 
    *ELF-32*)
6119
 
      HPUX_IA64_MODE="32"
6120
 
      ;;
6121
 
    *ELF-64*)
6122
 
      HPUX_IA64_MODE="64"
6123
 
      ;;
6124
 
    esac
6125
 
  fi
6126
 
  rm -rf conftest*
6127
 
  ;;
6128
 
*-*-irix6*)
6129
 
  # Find out which ABI we are using.
6130
 
  echo '#line 6130 "configure"' > conftest.$ac_ext
6131
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132
 
  (eval $ac_compile) 2>&5
6133
 
  ac_status=$?
6134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135
 
  (exit $ac_status); }; then
6136
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
6137
 
    case `/usr/bin/file conftest.$ac_objext` in
6138
 
    *32-bit*)
6139
 
      LD="${LD-ld} -melf32bsmip"
6140
 
      ;;
6141
 
    *N32*)
6142
 
      LD="${LD-ld} -melf32bmipn32"
6143
 
      ;;
6144
 
    *64-bit*)
6145
 
      LD="${LD-ld} -melf64bmip"
6146
 
      ;;
6147
 
    esac
6148
 
   else
6149
 
    case `/usr/bin/file conftest.$ac_objext` in
6150
 
    *32-bit*)
6151
 
      LD="${LD-ld} -32"
6152
 
      ;;
6153
 
    *N32*)
6154
 
      LD="${LD-ld} -n32"
6155
 
      ;;
6156
 
    *64-bit*)
6157
 
      LD="${LD-ld} -64"
6158
 
      ;;
6159
 
    esac
6160
 
   fi
6161
 
  fi
6162
 
  rm -rf conftest*
6163
 
  ;;
6164
 
 
6165
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6166
 
s390*-*linux*|sparc*-*linux*)
6167
 
  # Find out which ABI we are using.
6168
 
  echo 'int i;' > conftest.$ac_ext
6169
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170
 
  (eval $ac_compile) 2>&5
6171
 
  ac_status=$?
6172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173
 
  (exit $ac_status); }; then
6174
 
    case `/usr/bin/file conftest.o` in
6175
 
    *32-bit*)
6176
 
      case $host in
6177
 
        x86_64-*kfreebsd*-gnu)
6178
 
          LD="${LD-ld} -m elf_i386_fbsd"
6179
 
          ;;
6180
 
        x86_64-*linux*)
6181
 
          LD="${LD-ld} -m elf_i386"
6182
 
          ;;
6183
 
        ppc64-*linux*|powerpc64-*linux*)
6184
 
          LD="${LD-ld} -m elf32ppclinux"
6185
 
          ;;
6186
 
        s390x-*linux*)
6187
 
          LD="${LD-ld} -m elf_s390"
6188
 
          ;;
6189
 
        sparc64-*linux*)
6190
 
          LD="${LD-ld} -m elf32_sparc"
6191
 
          ;;
6192
 
      esac
6193
 
      ;;
6194
 
    *64-bit*)
6195
 
      case $host in
6196
 
        x86_64-*kfreebsd*-gnu)
6197
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
6198
 
          ;;
6199
 
        x86_64-*linux*)
6200
 
          LD="${LD-ld} -m elf_x86_64"
6201
 
          ;;
6202
 
        ppc*-*linux*|powerpc*-*linux*)
6203
 
          LD="${LD-ld} -m elf64ppc"
6204
 
          ;;
6205
 
        s390*-*linux*)
6206
 
          LD="${LD-ld} -m elf64_s390"
6207
 
          ;;
6208
 
        sparc*-*linux*)
6209
 
          LD="${LD-ld} -m elf64_sparc"
6210
 
          ;;
6211
 
      esac
6212
 
      ;;
6213
 
    esac
6214
 
  fi
6215
 
  rm -rf conftest*
6216
 
  ;;
6217
 
 
6218
 
*-*-sco3.2v5*)
6219
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6220
 
  SAVE_CFLAGS="$CFLAGS"
6221
 
  CFLAGS="$CFLAGS -belf"
6222
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6223
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6224
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6225
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6226
 
else
6227
 
  ac_ext=c
6228
 
ac_cpp='$CPP $CPPFLAGS'
6229
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
 
 
6233
 
     cat >conftest.$ac_ext <<_ACEOF
6234
 
/* confdefs.h.  */
6235
 
_ACEOF
6236
 
cat confdefs.h >>conftest.$ac_ext
6237
 
cat >>conftest.$ac_ext <<_ACEOF
6238
 
/* end confdefs.h.  */
6239
 
 
6240
 
int
6241
 
main ()
6242
 
{
6243
 
 
6244
 
  ;
6245
 
  return 0;
6246
 
}
6247
 
_ACEOF
6248
 
rm -f conftest.$ac_objext conftest$ac_exeext
6249
 
if { (ac_try="$ac_link"
6250
 
case "(($ac_try" in
6251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252
 
  *) ac_try_echo=$ac_try;;
6253
 
esac
6254
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255
 
  (eval "$ac_link") 2>conftest.er1
6256
 
  ac_status=$?
6257
 
  grep -v '^ *+' conftest.er1 >conftest.err
6258
 
  rm -f conftest.er1
6259
 
  cat conftest.err >&5
6260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261
 
  (exit $ac_status); } && {
6262
 
         test -z "$ac_c_werror_flag" ||
6263
 
         test ! -s conftest.err
6264
 
       } && test -s conftest$ac_exeext &&
6265
 
       $as_test_x conftest$ac_exeext; then
6266
 
  lt_cv_cc_needs_belf=yes
6267
 
else
6268
 
  echo "$as_me: failed program was:" >&5
6269
 
sed 's/^/| /' conftest.$ac_ext >&5
6270
 
 
6271
 
        lt_cv_cc_needs_belf=no
6272
 
fi
6273
 
 
6274
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6275
 
      conftest$ac_exeext conftest.$ac_ext
6276
 
     ac_ext=c
6277
 
ac_cpp='$CPP $CPPFLAGS'
6278
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
 
 
6282
 
fi
6283
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6284
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6285
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6286
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6287
 
    CFLAGS="$SAVE_CFLAGS"
6288
 
  fi
6289
 
  ;;
6290
 
sparc*-*solaris*)
6291
 
  # Find out which ABI we are using.
6292
 
  echo 'int i;' > conftest.$ac_ext
6293
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294
 
  (eval $ac_compile) 2>&5
6295
 
  ac_status=$?
6296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297
 
  (exit $ac_status); }; then
6298
 
    case `/usr/bin/file conftest.o` in
6299
 
    *64-bit*)
6300
 
      case $lt_cv_prog_gnu_ld in
6301
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6302
 
      *)
6303
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6304
 
          LD="${LD-ld} -64"
6305
 
        fi
6306
 
        ;;
6307
 
      esac
6308
 
      ;;
6309
 
    esac
6310
 
  fi
6311
 
  rm -rf conftest*
6312
 
  ;;
6313
 
 
6314
 
 
6315
 
esac
6316
 
 
6317
 
need_locks="$enable_libtool_lock"
6318
 
 
6319
 
 
6320
 
 
6321
 
for ac_header in dlfcn.h
6322
 
do
6323
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6324
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6325
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6326
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6327
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6329
 
fi
6330
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6331
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6332
 
echo "${ECHO_T}$ac_res" >&6; }
6333
 
else
6334
 
  # Is the header compilable?
6335
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6336
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6337
 
cat >conftest.$ac_ext <<_ACEOF
6338
 
/* confdefs.h.  */
6339
 
_ACEOF
6340
 
cat confdefs.h >>conftest.$ac_ext
6341
 
cat >>conftest.$ac_ext <<_ACEOF
6342
 
/* end confdefs.h.  */
6343
 
$ac_includes_default
6344
 
#include <$ac_header>
6345
 
_ACEOF
6346
 
rm -f conftest.$ac_objext
6347
 
if { (ac_try="$ac_compile"
6348
 
case "(($ac_try" in
6349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350
 
  *) ac_try_echo=$ac_try;;
6351
 
esac
6352
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353
 
  (eval "$ac_compile") 2>conftest.er1
6354
 
  ac_status=$?
6355
 
  grep -v '^ *+' conftest.er1 >conftest.err
6356
 
  rm -f conftest.er1
6357
 
  cat conftest.err >&5
6358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359
 
  (exit $ac_status); } && {
6360
 
         test -z "$ac_c_werror_flag" ||
6361
 
         test ! -s conftest.err
6362
 
       } && test -s conftest.$ac_objext; then
6363
 
  ac_header_compiler=yes
6364
 
else
6365
 
  echo "$as_me: failed program was:" >&5
6366
 
sed 's/^/| /' conftest.$ac_ext >&5
6367
 
 
6368
 
        ac_header_compiler=no
6369
 
fi
6370
 
 
6371
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6373
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6374
 
 
6375
 
# Is the header present?
6376
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6377
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6378
 
cat >conftest.$ac_ext <<_ACEOF
6379
 
/* confdefs.h.  */
6380
 
_ACEOF
6381
 
cat confdefs.h >>conftest.$ac_ext
6382
 
cat >>conftest.$ac_ext <<_ACEOF
6383
 
/* end confdefs.h.  */
6384
 
#include <$ac_header>
6385
 
_ACEOF
6386
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6387
 
case "(($ac_try" in
6388
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389
 
  *) ac_try_echo=$ac_try;;
6390
 
esac
6391
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6393
 
  ac_status=$?
6394
 
  grep -v '^ *+' conftest.er1 >conftest.err
6395
 
  rm -f conftest.er1
6396
 
  cat conftest.err >&5
6397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398
 
  (exit $ac_status); } >/dev/null && {
6399
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6400
 
         test ! -s conftest.err
6401
 
       }; then
6402
 
  ac_header_preproc=yes
6403
 
else
6404
 
  echo "$as_me: failed program was:" >&5
6405
 
sed 's/^/| /' conftest.$ac_ext >&5
6406
 
 
6407
 
  ac_header_preproc=no
6408
 
fi
6409
 
 
6410
 
rm -f conftest.err conftest.$ac_ext
6411
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6412
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6413
 
 
6414
 
# So?  What about this header?
6415
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6416
 
  yes:no: )
6417
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6418
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6419
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6420
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6421
 
    ac_header_preproc=yes
6422
 
    ;;
6423
 
  no:yes:* )
6424
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6425
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6426
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6427
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6428
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6429
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6430
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6431
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6432
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6433
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6434
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6435
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6436
 
    ( cat <<\_ASBOX
6437
 
## --------------------------------------------- ##
6438
 
## Report this to https://launchpad.net/gearmand ##
6439
 
## --------------------------------------------- ##
6440
 
_ASBOX
6441
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6442
 
    ;;
6443
 
esac
6444
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6445
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6446
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6447
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6448
 
else
6449
 
  eval "$as_ac_Header=\$ac_header_preproc"
6450
 
fi
6451
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6452
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6453
 
echo "${ECHO_T}$ac_res" >&6; }
6454
 
 
6455
 
fi
6456
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6457
 
  cat >>confdefs.h <<_ACEOF
6458
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459
 
_ACEOF
6460
 
 
6461
 
fi
6462
 
 
6463
 
done
6464
 
 
6465
 
 
6466
 
 
6467
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6468
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6469
 
    (test "X$CXX" != "Xg++"))) ; then
6470
 
  ac_ext=cpp
6471
 
ac_cpp='$CXXCPP $CPPFLAGS'
6472
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6473
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6474
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6475
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6476
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6477
 
if test -z "$CXXCPP"; then
6478
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6480
 
else
6481
 
      # Double quotes because CXXCPP needs to be expanded
6482
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6483
 
    do
6484
 
      ac_preproc_ok=false
6485
 
for ac_cxx_preproc_warn_flag in '' yes
6486
 
do
6487
 
  # Use a header file that comes with gcc, so configuring glibc
6488
 
  # with a fresh cross-compiler works.
6489
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490
 
  # <limits.h> exists even on freestanding compilers.
6491
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6492
 
  # not just through cpp. "Syntax error" is here to catch this case.
6493
 
  cat >conftest.$ac_ext <<_ACEOF
6494
 
/* confdefs.h.  */
6495
 
_ACEOF
6496
 
cat confdefs.h >>conftest.$ac_ext
6497
 
cat >>conftest.$ac_ext <<_ACEOF
6498
 
/* end confdefs.h.  */
6499
 
#ifdef __STDC__
6500
 
# include <limits.h>
6501
 
#else
6502
 
# include <assert.h>
6503
 
#endif
6504
 
                     Syntax error
6505
 
_ACEOF
6506
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6507
 
case "(($ac_try" in
6508
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509
 
  *) ac_try_echo=$ac_try;;
6510
 
esac
6511
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6513
 
  ac_status=$?
6514
 
  grep -v '^ *+' conftest.er1 >conftest.err
6515
 
  rm -f conftest.er1
6516
 
  cat conftest.err >&5
6517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518
 
  (exit $ac_status); } >/dev/null && {
6519
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6520
 
         test ! -s conftest.err
6521
 
       }; then
6522
 
  :
6523
 
else
6524
 
  echo "$as_me: failed program was:" >&5
6525
 
sed 's/^/| /' conftest.$ac_ext >&5
6526
 
 
6527
 
  # Broken: fails on valid input.
6528
 
continue
6529
 
fi
6530
 
 
6531
 
rm -f conftest.err conftest.$ac_ext
6532
 
 
6533
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6534
 
  # can be detected and how.
6535
 
  cat >conftest.$ac_ext <<_ACEOF
6536
 
/* confdefs.h.  */
6537
 
_ACEOF
6538
 
cat confdefs.h >>conftest.$ac_ext
6539
 
cat >>conftest.$ac_ext <<_ACEOF
6540
 
/* end confdefs.h.  */
6541
 
#include <ac_nonexistent.h>
6542
 
_ACEOF
6543
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6544
 
case "(($ac_try" in
6545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546
 
  *) ac_try_echo=$ac_try;;
6547
 
esac
6548
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6550
 
  ac_status=$?
6551
 
  grep -v '^ *+' conftest.er1 >conftest.err
6552
 
  rm -f conftest.er1
6553
 
  cat conftest.err >&5
6554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
 
  (exit $ac_status); } >/dev/null && {
6556
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6557
 
         test ! -s conftest.err
6558
 
       }; then
6559
 
  # Broken: success on invalid input.
6560
 
continue
6561
 
else
6562
 
  echo "$as_me: failed program was:" >&5
6563
 
sed 's/^/| /' conftest.$ac_ext >&5
6564
 
 
6565
 
  # Passes both tests.
6566
 
ac_preproc_ok=:
6567
 
break
6568
 
fi
6569
 
 
6570
 
rm -f conftest.err conftest.$ac_ext
6571
 
 
6572
 
done
6573
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6574
 
rm -f conftest.err conftest.$ac_ext
6575
 
if $ac_preproc_ok; then
6576
 
  break
6577
 
fi
6578
 
 
6579
 
    done
6580
 
    ac_cv_prog_CXXCPP=$CXXCPP
6581
 
 
6582
 
fi
6583
 
  CXXCPP=$ac_cv_prog_CXXCPP
6584
 
else
6585
 
  ac_cv_prog_CXXCPP=$CXXCPP
6586
 
fi
6587
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6588
 
echo "${ECHO_T}$CXXCPP" >&6; }
6589
 
ac_preproc_ok=false
6590
 
for ac_cxx_preproc_warn_flag in '' yes
6591
 
do
6592
 
  # Use a header file that comes with gcc, so configuring glibc
6593
 
  # with a fresh cross-compiler works.
6594
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595
 
  # <limits.h> exists even on freestanding compilers.
6596
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6597
 
  # not just through cpp. "Syntax error" is here to catch this case.
6598
 
  cat >conftest.$ac_ext <<_ACEOF
6599
 
/* confdefs.h.  */
6600
 
_ACEOF
6601
 
cat confdefs.h >>conftest.$ac_ext
6602
 
cat >>conftest.$ac_ext <<_ACEOF
6603
 
/* end confdefs.h.  */
6604
 
#ifdef __STDC__
6605
 
# include <limits.h>
6606
 
#else
6607
 
# include <assert.h>
6608
 
#endif
6609
 
                     Syntax error
6610
 
_ACEOF
6611
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6612
 
case "(($ac_try" in
6613
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614
 
  *) ac_try_echo=$ac_try;;
6615
 
esac
6616
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6618
 
  ac_status=$?
6619
 
  grep -v '^ *+' conftest.er1 >conftest.err
6620
 
  rm -f conftest.er1
6621
 
  cat conftest.err >&5
6622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623
 
  (exit $ac_status); } >/dev/null && {
6624
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6625
 
         test ! -s conftest.err
6626
 
       }; then
6627
 
  :
6628
 
else
6629
 
  echo "$as_me: failed program was:" >&5
6630
 
sed 's/^/| /' conftest.$ac_ext >&5
6631
 
 
6632
 
  # Broken: fails on valid input.
6633
 
continue
6634
 
fi
6635
 
 
6636
 
rm -f conftest.err conftest.$ac_ext
6637
 
 
6638
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6639
 
  # can be detected and how.
6640
 
  cat >conftest.$ac_ext <<_ACEOF
6641
 
/* confdefs.h.  */
6642
 
_ACEOF
6643
 
cat confdefs.h >>conftest.$ac_ext
6644
 
cat >>conftest.$ac_ext <<_ACEOF
6645
 
/* end confdefs.h.  */
6646
 
#include <ac_nonexistent.h>
6647
 
_ACEOF
6648
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6649
 
case "(($ac_try" in
6650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651
 
  *) ac_try_echo=$ac_try;;
6652
 
esac
6653
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6655
 
  ac_status=$?
6656
 
  grep -v '^ *+' conftest.er1 >conftest.err
6657
 
  rm -f conftest.er1
6658
 
  cat conftest.err >&5
6659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660
 
  (exit $ac_status); } >/dev/null && {
6661
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6662
 
         test ! -s conftest.err
6663
 
       }; then
6664
 
  # Broken: success on invalid input.
6665
 
continue
6666
 
else
6667
 
  echo "$as_me: failed program was:" >&5
6668
 
sed 's/^/| /' conftest.$ac_ext >&5
6669
 
 
6670
 
  # Passes both tests.
6671
 
ac_preproc_ok=:
6672
 
break
6673
 
fi
6674
 
 
6675
 
rm -f conftest.err conftest.$ac_ext
6676
 
 
6677
 
done
6678
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6679
 
rm -f conftest.err conftest.$ac_ext
6680
 
if $ac_preproc_ok; then
6681
 
  :
6682
 
else
6683
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6684
 
See \`config.log' for more details." >&5
6685
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6686
 
See \`config.log' for more details." >&2;}
6687
 
   { (exit 1); exit 1; }; }
6688
 
fi
6689
 
 
6690
 
ac_ext=cpp
6691
 
ac_cpp='$CXXCPP $CPPFLAGS'
6692
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6695
 
 
6696
 
fi
6697
 
 
6698
 
 
6699
 
ac_ext=f
6700
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6701
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6703
 
if test -n "$ac_tool_prefix"; then
6704
 
  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
6705
 
  do
6706
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6707
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6708
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6709
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710
 
if test "${ac_cv_prog_F77+set}" = set; then
6711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6712
 
else
6713
 
  if test -n "$F77"; then
6714
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6715
 
else
6716
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717
 
for as_dir in $PATH
6718
 
do
6719
 
  IFS=$as_save_IFS
6720
 
  test -z "$as_dir" && as_dir=.
6721
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6722
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6724
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725
 
    break 2
6726
 
  fi
6727
 
done
6728
 
done
6729
 
IFS=$as_save_IFS
6730
 
 
6731
 
fi
6732
 
fi
6733
 
F77=$ac_cv_prog_F77
6734
 
if test -n "$F77"; then
6735
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6736
 
echo "${ECHO_T}$F77" >&6; }
6737
 
else
6738
 
  { echo "$as_me:$LINENO: result: no" >&5
6739
 
echo "${ECHO_T}no" >&6; }
6740
 
fi
6741
 
 
6742
 
 
6743
 
    test -n "$F77" && break
6744
 
  done
6745
 
fi
6746
 
if test -z "$F77"; then
6747
 
  ac_ct_F77=$F77
6748
 
  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
6749
 
do
6750
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6751
 
set dummy $ac_prog; ac_word=$2
6752
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6755
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6756
 
else
6757
 
  if test -n "$ac_ct_F77"; then
6758
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6759
 
else
6760
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761
 
for as_dir in $PATH
6762
 
do
6763
 
  IFS=$as_save_IFS
6764
 
  test -z "$as_dir" && as_dir=.
6765
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6766
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6768
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769
 
    break 2
6770
 
  fi
6771
 
done
6772
 
done
6773
 
IFS=$as_save_IFS
6774
 
 
6775
 
fi
6776
 
fi
6777
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6778
 
if test -n "$ac_ct_F77"; then
6779
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6780
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
6781
 
else
6782
 
  { echo "$as_me:$LINENO: result: no" >&5
6783
 
echo "${ECHO_T}no" >&6; }
6784
 
fi
6785
 
 
6786
 
 
6787
 
  test -n "$ac_ct_F77" && break
6788
 
done
6789
 
 
6790
 
  if test "x$ac_ct_F77" = x; then
6791
 
    F77=""
6792
 
  else
6793
 
    case $cross_compiling:$ac_tool_warned in
6794
 
yes:)
6795
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6796
 
whose name does not start with the host triplet.  If you think this
6797
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6798
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6799
 
whose name does not start with the host triplet.  If you think this
6800
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6801
 
ac_tool_warned=yes ;;
6802
 
esac
6803
 
    F77=$ac_ct_F77
6804
 
  fi
6805
 
fi
6806
 
 
6807
 
 
6808
 
# Provide some information about the compiler.
6809
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6810
 
ac_compiler=`set X $ac_compile; echo $2`
6811
 
{ (ac_try="$ac_compiler --version >&5"
6812
 
case "(($ac_try" in
6813
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814
 
  *) ac_try_echo=$ac_try;;
6815
 
esac
6816
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817
 
  (eval "$ac_compiler --version >&5") 2>&5
6818
 
  ac_status=$?
6819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
 
  (exit $ac_status); }
6821
 
{ (ac_try="$ac_compiler -v >&5"
6822
 
case "(($ac_try" in
6823
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824
 
  *) ac_try_echo=$ac_try;;
6825
 
esac
6826
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827
 
  (eval "$ac_compiler -v >&5") 2>&5
6828
 
  ac_status=$?
6829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830
 
  (exit $ac_status); }
6831
 
{ (ac_try="$ac_compiler -V >&5"
6832
 
case "(($ac_try" in
6833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834
 
  *) ac_try_echo=$ac_try;;
6835
 
esac
6836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837
 
  (eval "$ac_compiler -V >&5") 2>&5
6838
 
  ac_status=$?
6839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840
 
  (exit $ac_status); }
6841
 
rm -f a.out
6842
 
 
6843
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6844
 
# input file.  (Note that this only needs to work for GNU compilers.)
6845
 
ac_save_ext=$ac_ext
6846
 
ac_ext=F
6847
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6848
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6849
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6850
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6851
 
else
6852
 
  cat >conftest.$ac_ext <<_ACEOF
6853
 
      program main
6854
 
#ifndef __GNUC__
6855
 
       choke me
6856
 
#endif
6857
 
 
6858
 
      end
6859
 
_ACEOF
6860
 
rm -f conftest.$ac_objext
6861
 
if { (ac_try="$ac_compile"
6862
 
case "(($ac_try" in
6863
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864
 
  *) ac_try_echo=$ac_try;;
6865
 
esac
6866
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867
 
  (eval "$ac_compile") 2>conftest.er1
6868
 
  ac_status=$?
6869
 
  grep -v '^ *+' conftest.er1 >conftest.err
6870
 
  rm -f conftest.er1
6871
 
  cat conftest.err >&5
6872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873
 
  (exit $ac_status); } && {
6874
 
         test -z "$ac_f77_werror_flag" ||
6875
 
         test ! -s conftest.err
6876
 
       } && test -s conftest.$ac_objext; then
6877
 
  ac_compiler_gnu=yes
6878
 
else
6879
 
  echo "$as_me: failed program was:" >&5
6880
 
sed 's/^/| /' conftest.$ac_ext >&5
6881
 
 
6882
 
        ac_compiler_gnu=no
6883
 
fi
6884
 
 
6885
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6887
 
 
6888
 
fi
6889
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6890
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6891
 
ac_ext=$ac_save_ext
6892
 
ac_test_FFLAGS=${FFLAGS+set}
6893
 
ac_save_FFLAGS=$FFLAGS
6894
 
FFLAGS=
6895
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6896
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6897
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6898
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6899
 
else
6900
 
  FFLAGS=-g
6901
 
cat >conftest.$ac_ext <<_ACEOF
6902
 
      program main
6903
 
 
6904
 
      end
6905
 
_ACEOF
6906
 
rm -f conftest.$ac_objext
6907
 
if { (ac_try="$ac_compile"
6908
 
case "(($ac_try" in
6909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910
 
  *) ac_try_echo=$ac_try;;
6911
 
esac
6912
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913
 
  (eval "$ac_compile") 2>conftest.er1
6914
 
  ac_status=$?
6915
 
  grep -v '^ *+' conftest.er1 >conftest.err
6916
 
  rm -f conftest.er1
6917
 
  cat conftest.err >&5
6918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919
 
  (exit $ac_status); } && {
6920
 
         test -z "$ac_f77_werror_flag" ||
6921
 
         test ! -s conftest.err
6922
 
       } && test -s conftest.$ac_objext; then
6923
 
  ac_cv_prog_f77_g=yes
6924
 
else
6925
 
  echo "$as_me: failed program was:" >&5
6926
 
sed 's/^/| /' conftest.$ac_ext >&5
6927
 
 
6928
 
        ac_cv_prog_f77_g=no
6929
 
fi
6930
 
 
6931
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932
 
 
6933
 
fi
6934
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6935
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6936
 
if test "$ac_test_FFLAGS" = set; then
6937
 
  FFLAGS=$ac_save_FFLAGS
6938
 
elif test $ac_cv_prog_f77_g = yes; then
6939
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6940
 
    FFLAGS="-g -O2"
6941
 
  else
6942
 
    FFLAGS="-g"
6943
 
  fi
6944
 
else
6945
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6946
 
    FFLAGS="-O2"
6947
 
  else
6948
 
    FFLAGS=
6949
 
  fi
6950
 
fi
6951
 
 
6952
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6953
 
ac_ext=c
6954
 
ac_cpp='$CPP $CPPFLAGS'
6955
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958
 
 
6959
 
 
6960
 
 
6961
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6962
 
# find the maximum length of command line arguments
6963
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6964
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6965
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6967
 
else
6968
 
    i=0
6969
 
  teststring="ABCD"
6970
 
 
6971
 
  case $build_os in
6972
 
  msdosdjgpp*)
6973
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6974
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6975
 
    # during glob expansion).  Even if it were fixed, the result of this
6976
 
    # check would be larger than it should be.
6977
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6978
 
    ;;
6979
 
 
6980
 
  gnu*)
6981
 
    # Under GNU Hurd, this test is not required because there is
6982
 
    # no limit to the length of command line arguments.
6983
 
    # Libtool will interpret -1 as no limit whatsoever
6984
 
    lt_cv_sys_max_cmd_len=-1;
6985
 
    ;;
6986
 
 
6987
 
  cygwin* | mingw*)
6988
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6989
 
    # about 5 minutes as the teststring grows exponentially.
6990
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6991
 
    # you end up with a "frozen" computer, even though with patience
6992
 
    # the test eventually succeeds (with a max line length of 256k).
6993
 
    # Instead, let's just punt: use the minimum linelength reported by
6994
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6995
 
    lt_cv_sys_max_cmd_len=8192;
6996
 
    ;;
6997
 
 
6998
 
  amigaos*)
6999
 
    # On AmigaOS with pdksh, this test takes hours, literally.
7000
 
    # So we just punt and use a minimum line length of 8192.
7001
 
    lt_cv_sys_max_cmd_len=8192;
7002
 
    ;;
7003
 
 
7004
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7005
 
    # This has been around since 386BSD, at least.  Likely further.
7006
 
    if test -x /sbin/sysctl; then
7007
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7008
 
    elif test -x /usr/sbin/sysctl; then
7009
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7010
 
    else
7011
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7012
 
    fi
7013
 
    # And add a safety zone
7014
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7015
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7016
 
    ;;
7017
 
 
7018
 
  interix*)
7019
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7020
 
    lt_cv_sys_max_cmd_len=196608
7021
 
    ;;
7022
 
 
7023
 
  osf*)
7024
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7025
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7026
 
    # nice to cause kernel panics so lets avoid the loop below.
7027
 
    # First set a reasonable default.
7028
 
    lt_cv_sys_max_cmd_len=16384
7029
 
    #
7030
 
    if test -x /sbin/sysconfig; then
7031
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7032
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7033
 
      esac
7034
 
    fi
7035
 
    ;;
7036
 
  sco3.2v5*)
7037
 
    lt_cv_sys_max_cmd_len=102400
7038
 
    ;;
7039
 
  sysv5* | sco5v6* | sysv4.2uw2*)
7040
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7041
 
    if test -n "$kargmax"; then
7042
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7043
 
    else
7044
 
      lt_cv_sys_max_cmd_len=32768
7045
 
    fi
7046
 
    ;;
7047
 
  *)
7048
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7049
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
7050
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7051
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7052
 
    else
7053
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7054
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7055
 
               = "XX$teststring") >/dev/null 2>&1 &&
7056
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
7057
 
              lt_cv_sys_max_cmd_len=$new_result &&
7058
 
              test $i != 17 # 1/2 MB should be enough
7059
 
      do
7060
 
        i=`expr $i + 1`
7061
 
        teststring=$teststring$teststring
7062
 
      done
7063
 
      teststring=
7064
 
      # Add a significant safety factor because C++ compilers can tack on massive
7065
 
      # amounts of additional arguments before passing them to the linker.
7066
 
      # It appears as though 1/2 is a usable value.
7067
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7068
 
    fi
7069
 
    ;;
7070
 
  esac
7071
 
 
7072
 
fi
7073
 
 
7074
 
if test -n $lt_cv_sys_max_cmd_len ; then
7075
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7076
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7077
 
else
7078
 
  { echo "$as_me:$LINENO: result: none" >&5
7079
 
echo "${ECHO_T}none" >&6; }
7080
 
fi
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
5876
 
7086
5877
# Check for command to grab the raw symbol name followed by C symbol from nm.
7087
5878
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7099
5890
# Regexp to match symbols that can be accessed directly from C.
7100
5891
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7101
5892
 
7102
 
# Transform an extracted symbol line into a proper C declaration
7103
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7104
 
 
7105
 
# Transform an extracted symbol line into symbol name and symbol address
7106
 
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'"
7107
 
 
7108
5893
# Define system-specific variables.
7109
5894
case $host_os in
7110
5895
aix*)
7111
5896
  symcode='[BCDT]'
7112
5897
  ;;
7113
 
cygwin* | mingw* | pw32*)
 
5898
cygwin* | mingw* | pw32* | cegcc*)
7114
5899
  symcode='[ABCDGISTW]'
7115
5900
  ;;
7116
 
hpux*) # Its linker distinguishes data from code symbols
 
5901
hpux*)
7117
5902
  if test "$host_cpu" = ia64; then
7118
5903
    symcode='[ABCDEGRST]'
7119
5904
  fi
7120
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7121
 
  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'"
7122
 
  ;;
7123
 
linux* | k*bsd*-gnu)
7124
 
  if test "$host_cpu" = ia64; then
7125
 
    symcode='[ABCDGIRSTW]'
7126
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7127
 
    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'"
7128
 
  fi
7129
5905
  ;;
7130
5906
irix* | nonstopux*)
7131
5907
  symcode='[BCDEGRST]'
7150
5926
  ;;
7151
5927
esac
7152
5928
 
 
5929
# If we're using GNU nm, then use its standard symbol codes.
 
5930
case `$NM -V 2>&1` in
 
5931
*GNU* | *'with BFD'*)
 
5932
  symcode='[ABCDGIRSTW]' ;;
 
5933
esac
 
5934
 
 
5935
# Transform an extracted symbol line into a proper C declaration.
 
5936
# Some systems (esp. on ia64) link data and code symbols differently,
 
5937
# so use this general approach.
 
5938
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5939
 
 
5940
# Transform an extracted symbol line into symbol name and symbol address
 
5941
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5942
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'"
 
5943
 
7153
5944
# Handle CRLF in mingw tool chain
7154
5945
opt_cr=
7155
5946
case $build_os in
7156
5947
mingw*)
7157
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5948
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7158
5949
  ;;
7159
5950
esac
7160
5951
 
7161
 
# If we're using GNU nm, then use its standard symbol codes.
7162
 
case `$NM -V 2>&1` in
7163
 
*GNU* | *'with BFD'*)
7164
 
  symcode='[ABCDGIRSTW]' ;;
7165
 
esac
7166
 
 
7167
 
# Try without a prefix undercore, then with it.
 
5952
# Try without a prefix underscore, then with it.
7168
5953
for ac_symprfx in "" "_"; do
7169
5954
 
7170
5955
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7171
5956
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7172
5957
 
7173
5958
  # Write the raw and C identifiers.
7174
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5959
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5960
    # Fake it for dumpbin and say T for any non-static function
 
5961
    # and D for any global variable.
 
5962
    # Also find C++ and __fastcall symbols from MSVC++,
 
5963
    # which start with @ or ?.
 
5964
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5965
"     {last_section=section; section=\$ 3};"\
 
5966
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5967
"     \$ 0!~/External *\|/{next};"\
 
5968
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5969
"     {if(hide[section]) next};"\
 
5970
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5971
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5972
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5973
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5974
"     ' prfx=^$ac_symprfx"
 
5975
  else
 
5976
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5977
  fi
7175
5978
 
7176
5979
  # Check to see that the pipe works correctly.
7177
5980
  pipe_works=no
7178
5981
 
7179
5982
  rm -f conftest*
7180
 
  cat > conftest.$ac_ext <<EOF
 
5983
  cat > conftest.$ac_ext <<_LT_EOF
7181
5984
#ifdef __cplusplus
7182
5985
extern "C" {
7183
5986
#endif
7184
5987
char nm_test_var;
7185
 
void nm_test_func(){}
 
5988
void nm_test_func(void);
 
5989
void nm_test_func(void){}
7186
5990
#ifdef __cplusplus
7187
5991
}
7188
5992
#endif
7189
5993
int main(){nm_test_var='a';nm_test_func();return(0);}
7190
 
EOF
 
5994
_LT_EOF
7191
5995
 
7192
5996
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193
5997
  (eval $ac_compile) 2>&5
7209
6013
      fi
7210
6014
 
7211
6015
      # Make sure that we snagged all the symbols we need.
7212
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7213
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7214
 
          cat <<EOF > conftest.$ac_ext
 
6016
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6017
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6018
          cat <<_LT_EOF > conftest.$ac_ext
7215
6019
#ifdef __cplusplus
7216
6020
extern "C" {
7217
6021
#endif
7218
6022
 
7219
 
EOF
 
6023
_LT_EOF
7220
6024
          # Now generate the symbol file.
7221
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7222
 
 
7223
 
          cat <<EOF >> conftest.$ac_ext
7224
 
#if defined (__STDC__) && __STDC__
7225
 
# define lt_ptr_t void *
7226
 
#else
7227
 
# define lt_ptr_t char *
7228
 
# define const
7229
 
#endif
7230
 
 
7231
 
/* The mapping between symbol names and symbols. */
 
6025
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6026
 
 
6027
          cat <<_LT_EOF >> conftest.$ac_ext
 
6028
 
 
6029
/* The mapping between symbol names and symbols.  */
7232
6030
const struct {
7233
6031
  const char *name;
7234
 
  lt_ptr_t address;
 
6032
  void       *address;
7235
6033
}
7236
 
lt_preloaded_symbols[] =
 
6034
lt__PROGRAM__LTX_preloaded_symbols[] =
7237
6035
{
7238
 
EOF
7239
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7240
 
          cat <<\EOF >> conftest.$ac_ext
7241
 
  {0, (lt_ptr_t) 0}
 
6036
  { "@PROGRAM@", (void *) 0 },
 
6037
_LT_EOF
 
6038
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6039
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6040
  {0, (void *) 0}
7242
6041
};
7243
6042
 
 
6043
/* This works around a problem in FreeBSD linker */
 
6044
#ifdef FREEBSD_WORKAROUND
 
6045
static const void *lt_preloaded_setup() {
 
6046
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6047
}
 
6048
#endif
 
6049
 
7244
6050
#ifdef __cplusplus
7245
6051
}
7246
6052
#endif
7247
 
EOF
 
6053
_LT_EOF
7248
6054
          # Now try linking the two files.
7249
6055
          mv conftest.$ac_objext conftstm.$ac_objext
7250
6056
          lt_save_LIBS="$LIBS"
7296
6102
echo "${ECHO_T}ok" >&6; }
7297
6103
fi
7298
6104
 
7299
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
7300
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7301
 
if test "${lt_cv_objdir+set}" = set; then
7302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7303
 
else
7304
 
  rm -f .libs 2>/dev/null
7305
 
mkdir .libs 2>/dev/null
7306
 
if test -d .libs; then
7307
 
  lt_cv_objdir=.libs
7308
 
else
7309
 
  # MS-DOS does not allow filenames that begin with a dot.
7310
 
  lt_cv_objdir=_libs
7311
 
fi
7312
 
rmdir .libs 2>/dev/null
7313
 
fi
7314
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7315
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7316
 
objdir=$lt_cv_objdir
7317
 
 
7318
 
 
7319
 
 
7320
 
 
7321
 
 
7322
 
case $host_os in
7323
 
aix3*)
7324
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7325
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7326
 
  # vanish in a puff of smoke.
7327
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7328
 
    COLLECT_NAMES=
7329
 
    export COLLECT_NAMES
7330
 
  fi
7331
 
  ;;
7332
 
esac
7333
 
 
7334
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7335
 
# metacharacters that are still active within double-quoted strings.
7336
 
Xsed='sed -e 1s/^X//'
7337
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7338
 
 
7339
 
# Same as above, but do not quote variable references.
7340
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7341
 
 
7342
 
# Sed substitution to delay expansion of an escaped shell variable in a
7343
 
# double_quote_subst'ed string.
7344
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7345
 
 
7346
 
# Sed substitution to avoid accidental globbing in evaled expressions
7347
 
no_glob_subst='s/\*/\\\*/g'
7348
 
 
7349
 
# Constants:
7350
 
rm="rm -f"
7351
 
 
7352
 
# Global variables:
7353
 
default_ofile=libtool
7354
 
can_build_shared=yes
7355
 
 
7356
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7357
 
# which needs '.lib').
7358
 
libext=a
7359
 
ltmain="$ac_aux_dir/ltmain.sh"
7360
 
ofile="$default_ofile"
7361
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7362
 
 
7363
 
if test -n "$ac_tool_prefix"; then
7364
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7365
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7366
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7367
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368
 
if test "${ac_cv_prog_AR+set}" = set; then
7369
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7370
 
else
7371
 
  if test -n "$AR"; then
7372
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7373
 
else
7374
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375
 
for as_dir in $PATH
7376
 
do
7377
 
  IFS=$as_save_IFS
7378
 
  test -z "$as_dir" && as_dir=.
7379
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7380
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7382
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383
 
    break 2
7384
 
  fi
7385
 
done
7386
 
done
7387
 
IFS=$as_save_IFS
7388
 
 
7389
 
fi
7390
 
fi
7391
 
AR=$ac_cv_prog_AR
7392
 
if test -n "$AR"; then
7393
 
  { echo "$as_me:$LINENO: result: $AR" >&5
7394
 
echo "${ECHO_T}$AR" >&6; }
7395
 
else
7396
 
  { echo "$as_me:$LINENO: result: no" >&5
7397
 
echo "${ECHO_T}no" >&6; }
7398
 
fi
7399
 
 
7400
 
 
7401
 
fi
7402
 
if test -z "$ac_cv_prog_AR"; then
7403
 
  ac_ct_AR=$AR
7404
 
  # Extract the first word of "ar", so it can be a program name with args.
7405
 
set dummy ar; ac_word=$2
7406
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7407
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7410
 
else
7411
 
  if test -n "$ac_ct_AR"; then
7412
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7413
 
else
7414
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415
 
for as_dir in $PATH
7416
 
do
7417
 
  IFS=$as_save_IFS
7418
 
  test -z "$as_dir" && as_dir=.
7419
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7420
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421
 
    ac_cv_prog_ac_ct_AR="ar"
7422
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423
 
    break 2
7424
 
  fi
7425
 
done
7426
 
done
7427
 
IFS=$as_save_IFS
7428
 
 
7429
 
fi
7430
 
fi
7431
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7432
 
if test -n "$ac_ct_AR"; then
7433
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7434
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
7435
 
else
7436
 
  { echo "$as_me:$LINENO: result: no" >&5
7437
 
echo "${ECHO_T}no" >&6; }
7438
 
fi
7439
 
 
7440
 
  if test "x$ac_ct_AR" = x; then
7441
 
    AR="false"
7442
 
  else
7443
 
    case $cross_compiling:$ac_tool_warned in
7444
 
yes:)
7445
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7446
 
whose name does not start with the host triplet.  If you think this
7447
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7448
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7449
 
whose name does not start with the host triplet.  If you think this
7450
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7451
 
ac_tool_warned=yes ;;
7452
 
esac
7453
 
    AR=$ac_ct_AR
7454
 
  fi
7455
 
else
7456
 
  AR="$ac_cv_prog_AR"
7457
 
fi
7458
 
 
7459
 
if test -n "$ac_tool_prefix"; then
7460
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7461
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7462
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7463
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7465
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7466
 
else
7467
 
  if test -n "$RANLIB"; then
7468
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7469
 
else
7470
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471
 
for as_dir in $PATH
7472
 
do
7473
 
  IFS=$as_save_IFS
7474
 
  test -z "$as_dir" && as_dir=.
7475
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7476
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7478
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479
 
    break 2
7480
 
  fi
7481
 
done
7482
 
done
7483
 
IFS=$as_save_IFS
7484
 
 
7485
 
fi
7486
 
fi
7487
 
RANLIB=$ac_cv_prog_RANLIB
7488
 
if test -n "$RANLIB"; then
7489
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7490
 
echo "${ECHO_T}$RANLIB" >&6; }
7491
 
else
7492
 
  { echo "$as_me:$LINENO: result: no" >&5
7493
 
echo "${ECHO_T}no" >&6; }
7494
 
fi
7495
 
 
7496
 
 
7497
 
fi
7498
 
if test -z "$ac_cv_prog_RANLIB"; then
7499
 
  ac_ct_RANLIB=$RANLIB
7500
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7501
 
set dummy ranlib; ac_word=$2
7502
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7503
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7505
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7506
 
else
7507
 
  if test -n "$ac_ct_RANLIB"; then
7508
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7509
 
else
7510
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511
 
for as_dir in $PATH
7512
 
do
7513
 
  IFS=$as_save_IFS
7514
 
  test -z "$as_dir" && as_dir=.
7515
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7516
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7518
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519
 
    break 2
7520
 
  fi
7521
 
done
7522
 
done
7523
 
IFS=$as_save_IFS
7524
 
 
7525
 
fi
7526
 
fi
7527
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7528
 
if test -n "$ac_ct_RANLIB"; then
7529
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7530
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7531
 
else
7532
 
  { echo "$as_me:$LINENO: result: no" >&5
7533
 
echo "${ECHO_T}no" >&6; }
7534
 
fi
7535
 
 
7536
 
  if test "x$ac_ct_RANLIB" = x; then
7537
 
    RANLIB=":"
7538
 
  else
7539
 
    case $cross_compiling:$ac_tool_warned in
7540
 
yes:)
7541
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7542
 
whose name does not start with the host triplet.  If you think this
7543
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7544
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7545
 
whose name does not start with the host triplet.  If you think this
7546
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7547
 
ac_tool_warned=yes ;;
7548
 
esac
7549
 
    RANLIB=$ac_ct_RANLIB
7550
 
  fi
7551
 
else
7552
 
  RANLIB="$ac_cv_prog_RANLIB"
7553
 
fi
7554
 
 
7555
 
if test -n "$ac_tool_prefix"; then
7556
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7557
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7558
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7561
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7562
 
else
7563
 
  if test -n "$STRIP"; then
7564
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7565
 
else
7566
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567
 
for as_dir in $PATH
7568
 
do
7569
 
  IFS=$as_save_IFS
7570
 
  test -z "$as_dir" && as_dir=.
7571
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7572
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7574
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575
 
    break 2
7576
 
  fi
7577
 
done
7578
 
done
7579
 
IFS=$as_save_IFS
7580
 
 
7581
 
fi
7582
 
fi
7583
 
STRIP=$ac_cv_prog_STRIP
7584
 
if test -n "$STRIP"; then
7585
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7586
 
echo "${ECHO_T}$STRIP" >&6; }
7587
 
else
7588
 
  { echo "$as_me:$LINENO: result: no" >&5
7589
 
echo "${ECHO_T}no" >&6; }
7590
 
fi
7591
 
 
7592
 
 
7593
 
fi
7594
 
if test -z "$ac_cv_prog_STRIP"; then
7595
 
  ac_ct_STRIP=$STRIP
7596
 
  # Extract the first word of "strip", so it can be a program name with args.
7597
 
set dummy strip; ac_word=$2
7598
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7599
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7602
 
else
7603
 
  if test -n "$ac_ct_STRIP"; then
7604
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7605
 
else
7606
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607
 
for as_dir in $PATH
7608
 
do
7609
 
  IFS=$as_save_IFS
7610
 
  test -z "$as_dir" && as_dir=.
7611
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7612
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613
 
    ac_cv_prog_ac_ct_STRIP="strip"
7614
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615
 
    break 2
7616
 
  fi
7617
 
done
7618
 
done
7619
 
IFS=$as_save_IFS
7620
 
 
7621
 
fi
7622
 
fi
7623
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7624
 
if test -n "$ac_ct_STRIP"; then
7625
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7626
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7627
 
else
7628
 
  { echo "$as_me:$LINENO: result: no" >&5
7629
 
echo "${ECHO_T}no" >&6; }
7630
 
fi
7631
 
 
7632
 
  if test "x$ac_ct_STRIP" = x; then
7633
 
    STRIP=":"
7634
 
  else
7635
 
    case $cross_compiling:$ac_tool_warned in
7636
 
yes:)
7637
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7638
 
whose name does not start with the host triplet.  If you think this
7639
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7640
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7641
 
whose name does not start with the host triplet.  If you think this
7642
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7643
 
ac_tool_warned=yes ;;
7644
 
esac
7645
 
    STRIP=$ac_ct_STRIP
7646
 
  fi
7647
 
else
7648
 
  STRIP="$ac_cv_prog_STRIP"
7649
 
fi
7650
 
 
7651
 
 
7652
 
old_CC="$CC"
7653
 
old_CFLAGS="$CFLAGS"
7654
 
 
7655
 
# Set sane defaults for various variables
7656
 
test -z "$AR" && AR=ar
7657
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7658
 
test -z "$AS" && AS=as
7659
 
test -z "$CC" && CC=cc
7660
 
test -z "$LTCC" && LTCC=$CC
7661
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7662
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7663
 
test -z "$LD" && LD=ld
7664
 
test -z "$LN_S" && LN_S="ln -s"
7665
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7666
 
test -z "$NM" && NM=nm
7667
 
test -z "$SED" && SED=sed
7668
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7669
 
test -z "$RANLIB" && RANLIB=:
7670
 
test -z "$STRIP" && STRIP=:
7671
 
test -z "$ac_objext" && ac_objext=o
7672
 
 
7673
 
# Determine commands to create old-style static archives.
7674
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675
 
old_postinstall_cmds='chmod 644 $oldlib'
7676
 
old_postuninstall_cmds=
7677
 
 
7678
 
if test -n "$RANLIB"; then
7679
 
  case $host_os in
7680
 
  openbsd*)
7681
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7682
 
    ;;
7683
 
  *)
7684
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7685
 
    ;;
7686
 
  esac
7687
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7688
 
fi
7689
 
 
7690
 
for cc_temp in $compiler""; do
7691
 
  case $cc_temp in
7692
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7693
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7694
 
    \-*) ;;
7695
 
    *) break;;
7696
 
  esac
7697
 
done
7698
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7699
 
 
7700
 
 
7701
 
# Only perform the check for file, if the check method requires it
7702
 
case $deplibs_check_method in
7703
 
file_magic*)
7704
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7705
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7706
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7707
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7708
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7709
 
else
7710
 
  case $MAGIC_CMD in
7711
 
[\\/*] |  ?:[\\/]*)
7712
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7713
 
  ;;
7714
 
*)
7715
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7716
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7717
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7718
 
  for ac_dir in $ac_dummy; do
7719
 
    IFS="$lt_save_ifs"
7720
 
    test -z "$ac_dir" && ac_dir=.
7721
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7722
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7723
 
      if test -n "$file_magic_test_file"; then
7724
 
        case $deplibs_check_method in
7725
 
        "file_magic "*)
7726
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7727
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7729
 
            $EGREP "$file_magic_regex" > /dev/null; then
7730
 
            :
7731
 
          else
7732
 
            cat <<EOF 1>&2
7733
 
 
7734
 
*** Warning: the command libtool uses to detect shared libraries,
7735
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7736
 
*** The result is that libtool may fail to recognize shared libraries
7737
 
*** as such.  This will affect the creation of libtool libraries that
7738
 
*** depend on shared libraries, but programs linked with such libtool
7739
 
*** libraries will work regardless of this problem.  Nevertheless, you
7740
 
*** may want to report the problem to your system manager and/or to
7741
 
*** bug-libtool@gnu.org
7742
 
 
7743
 
EOF
7744
 
          fi ;;
7745
 
        esac
7746
 
      fi
7747
 
      break
7748
 
    fi
7749
 
  done
7750
 
  IFS="$lt_save_ifs"
7751
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7752
 
  ;;
7753
 
esac
7754
 
fi
7755
 
 
7756
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757
 
if test -n "$MAGIC_CMD"; then
7758
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7759
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7760
 
else
7761
 
  { echo "$as_me:$LINENO: result: no" >&5
7762
 
echo "${ECHO_T}no" >&6; }
7763
 
fi
7764
 
 
7765
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7766
 
  if test -n "$ac_tool_prefix"; then
7767
 
    { echo "$as_me:$LINENO: checking for file" >&5
7768
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7769
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7770
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7771
 
else
7772
 
  case $MAGIC_CMD in
7773
 
[\\/*] |  ?:[\\/]*)
7774
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7775
 
  ;;
7776
 
*)
7777
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7778
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7779
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7780
 
  for ac_dir in $ac_dummy; do
7781
 
    IFS="$lt_save_ifs"
7782
 
    test -z "$ac_dir" && ac_dir=.
7783
 
    if test -f $ac_dir/file; then
7784
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7785
 
      if test -n "$file_magic_test_file"; then
7786
 
        case $deplibs_check_method in
7787
 
        "file_magic "*)
7788
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7789
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7791
 
            $EGREP "$file_magic_regex" > /dev/null; then
7792
 
            :
7793
 
          else
7794
 
            cat <<EOF 1>&2
7795
 
 
7796
 
*** Warning: the command libtool uses to detect shared libraries,
7797
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7798
 
*** The result is that libtool may fail to recognize shared libraries
7799
 
*** as such.  This will affect the creation of libtool libraries that
7800
 
*** depend on shared libraries, but programs linked with such libtool
7801
 
*** libraries will work regardless of this problem.  Nevertheless, you
7802
 
*** may want to report the problem to your system manager and/or to
7803
 
*** bug-libtool@gnu.org
7804
 
 
7805
 
EOF
7806
 
          fi ;;
7807
 
        esac
7808
 
      fi
7809
 
      break
7810
 
    fi
7811
 
  done
7812
 
  IFS="$lt_save_ifs"
7813
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7814
 
  ;;
7815
 
esac
7816
 
fi
7817
 
 
7818
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7819
 
if test -n "$MAGIC_CMD"; then
7820
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7821
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7822
 
else
7823
 
  { echo "$as_me:$LINENO: result: no" >&5
7824
 
echo "${ECHO_T}no" >&6; }
7825
 
fi
7826
 
 
7827
 
  else
7828
 
    MAGIC_CMD=:
7829
 
  fi
7830
 
fi
7831
 
 
7832
 
  fi
7833
 
  ;;
7834
 
esac
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
# Check whether --enable-libtool-lock was given.
 
6127
if test "${enable_libtool_lock+set}" = set; then
 
6128
  enableval=$enable_libtool_lock;
 
6129
fi
 
6130
 
 
6131
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6132
 
 
6133
# Some flags need to be propagated to the compiler or linker for good
 
6134
# libtool support.
 
6135
case $host in
 
6136
ia64-*-hpux*)
 
6137
  # Find out which ABI we are using.
 
6138
  echo 'int i;' > conftest.$ac_ext
 
6139
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6140
  (eval $ac_compile) 2>&5
 
6141
  ac_status=$?
 
6142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6143
  (exit $ac_status); }; then
 
6144
    case `/usr/bin/file conftest.$ac_objext` in
 
6145
      *ELF-32*)
 
6146
        HPUX_IA64_MODE="32"
 
6147
        ;;
 
6148
      *ELF-64*)
 
6149
        HPUX_IA64_MODE="64"
 
6150
        ;;
 
6151
    esac
 
6152
  fi
 
6153
  rm -rf conftest*
 
6154
  ;;
 
6155
*-*-irix6*)
 
6156
  # Find out which ABI we are using.
 
6157
  echo '#line 6157 "configure"' > conftest.$ac_ext
 
6158
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6159
  (eval $ac_compile) 2>&5
 
6160
  ac_status=$?
 
6161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6162
  (exit $ac_status); }; then
 
6163
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6164
      case `/usr/bin/file conftest.$ac_objext` in
 
6165
        *32-bit*)
 
6166
          LD="${LD-ld} -melf32bsmip"
 
6167
          ;;
 
6168
        *N32*)
 
6169
          LD="${LD-ld} -melf32bmipn32"
 
6170
          ;;
 
6171
        *64-bit*)
 
6172
          LD="${LD-ld} -melf64bmip"
 
6173
        ;;
 
6174
      esac
 
6175
    else
 
6176
      case `/usr/bin/file conftest.$ac_objext` in
 
6177
        *32-bit*)
 
6178
          LD="${LD-ld} -32"
 
6179
          ;;
 
6180
        *N32*)
 
6181
          LD="${LD-ld} -n32"
 
6182
          ;;
 
6183
        *64-bit*)
 
6184
          LD="${LD-ld} -64"
 
6185
          ;;
 
6186
      esac
 
6187
    fi
 
6188
  fi
 
6189
  rm -rf conftest*
 
6190
  ;;
 
6191
 
 
6192
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6193
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6194
  # Find out which ABI we are using.
 
6195
  echo 'int i;' > conftest.$ac_ext
 
6196
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6197
  (eval $ac_compile) 2>&5
 
6198
  ac_status=$?
 
6199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6200
  (exit $ac_status); }; then
 
6201
    case `/usr/bin/file conftest.o` in
 
6202
      *32-bit*)
 
6203
        case $host in
 
6204
          x86_64-*kfreebsd*-gnu)
 
6205
            LD="${LD-ld} -m elf_i386_fbsd"
 
6206
            ;;
 
6207
          x86_64-*linux*)
 
6208
            LD="${LD-ld} -m elf_i386"
 
6209
            ;;
 
6210
          ppc64-*linux*|powerpc64-*linux*)
 
6211
            LD="${LD-ld} -m elf32ppclinux"
 
6212
            ;;
 
6213
          s390x-*linux*)
 
6214
            LD="${LD-ld} -m elf_s390"
 
6215
            ;;
 
6216
          sparc64-*linux*)
 
6217
            LD="${LD-ld} -m elf32_sparc"
 
6218
            ;;
 
6219
        esac
 
6220
        ;;
 
6221
      *64-bit*)
 
6222
        case $host in
 
6223
          x86_64-*kfreebsd*-gnu)
 
6224
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6225
            ;;
 
6226
          x86_64-*linux*)
 
6227
            LD="${LD-ld} -m elf_x86_64"
 
6228
            ;;
 
6229
          ppc*-*linux*|powerpc*-*linux*)
 
6230
            LD="${LD-ld} -m elf64ppc"
 
6231
            ;;
 
6232
          s390*-*linux*|s390*-*tpf*)
 
6233
            LD="${LD-ld} -m elf64_s390"
 
6234
            ;;
 
6235
          sparc*-*linux*)
 
6236
            LD="${LD-ld} -m elf64_sparc"
 
6237
            ;;
 
6238
        esac
 
6239
        ;;
 
6240
    esac
 
6241
  fi
 
6242
  rm -rf conftest*
 
6243
  ;;
 
6244
 
 
6245
*-*-sco3.2v5*)
 
6246
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6247
  SAVE_CFLAGS="$CFLAGS"
 
6248
  CFLAGS="$CFLAGS -belf"
 
6249
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6250
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
6251
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6253
else
 
6254
  ac_ext=c
 
6255
ac_cpp='$CPP $CPPFLAGS'
 
6256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6259
 
 
6260
     cat >conftest.$ac_ext <<_ACEOF
 
6261
/* confdefs.h.  */
 
6262
_ACEOF
 
6263
cat confdefs.h >>conftest.$ac_ext
 
6264
cat >>conftest.$ac_ext <<_ACEOF
 
6265
/* end confdefs.h.  */
 
6266
 
 
6267
int
 
6268
main ()
 
6269
{
 
6270
 
 
6271
  ;
 
6272
  return 0;
 
6273
}
 
6274
_ACEOF
 
6275
rm -f conftest.$ac_objext conftest$ac_exeext
 
6276
if { (ac_try="$ac_link"
 
6277
case "(($ac_try" in
 
6278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6279
  *) ac_try_echo=$ac_try;;
 
6280
esac
 
6281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6282
  (eval "$ac_link") 2>conftest.er1
 
6283
  ac_status=$?
 
6284
  grep -v '^ *+' conftest.er1 >conftest.err
 
6285
  rm -f conftest.er1
 
6286
  cat conftest.err >&5
 
6287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6288
  (exit $ac_status); } && {
 
6289
         test -z "$ac_c_werror_flag" ||
 
6290
         test ! -s conftest.err
 
6291
       } && test -s conftest$ac_exeext &&
 
6292
       $as_test_x conftest$ac_exeext; then
 
6293
  lt_cv_cc_needs_belf=yes
 
6294
else
 
6295
  echo "$as_me: failed program was:" >&5
 
6296
sed 's/^/| /' conftest.$ac_ext >&5
 
6297
 
 
6298
        lt_cv_cc_needs_belf=no
 
6299
fi
 
6300
 
 
6301
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6302
      conftest$ac_exeext conftest.$ac_ext
 
6303
     ac_ext=c
 
6304
ac_cpp='$CPP $CPPFLAGS'
 
6305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6308
 
 
6309
fi
 
6310
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6311
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
6312
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6313
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6314
    CFLAGS="$SAVE_CFLAGS"
 
6315
  fi
 
6316
  ;;
 
6317
sparc*-*solaris*)
 
6318
  # Find out which ABI we are using.
 
6319
  echo 'int i;' > conftest.$ac_ext
 
6320
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6321
  (eval $ac_compile) 2>&5
 
6322
  ac_status=$?
 
6323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6324
  (exit $ac_status); }; then
 
6325
    case `/usr/bin/file conftest.o` in
 
6326
    *64-bit*)
 
6327
      case $lt_cv_prog_gnu_ld in
 
6328
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6329
      *)
 
6330
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6331
          LD="${LD-ld} -64"
 
6332
        fi
 
6333
        ;;
 
6334
      esac
 
6335
      ;;
 
6336
    esac
 
6337
  fi
 
6338
  rm -rf conftest*
 
6339
  ;;
 
6340
esac
 
6341
 
 
6342
need_locks="$enable_libtool_lock"
7835
6343
 
7836
6344
 
7837
6345
  case $host_os in
8028
6536
  NMEDIT="$ac_cv_prog_NMEDIT"
8029
6537
fi
8030
6538
 
 
6539
    if test -n "$ac_tool_prefix"; then
 
6540
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6541
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6542
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6544
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6546
else
 
6547
  if test -n "$LIPO"; then
 
6548
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6549
else
 
6550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6551
for as_dir in $PATH
 
6552
do
 
6553
  IFS=$as_save_IFS
 
6554
  test -z "$as_dir" && as_dir=.
 
6555
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6556
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6557
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6558
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6559
    break 2
 
6560
  fi
 
6561
done
 
6562
done
 
6563
IFS=$as_save_IFS
 
6564
 
 
6565
fi
 
6566
fi
 
6567
LIPO=$ac_cv_prog_LIPO
 
6568
if test -n "$LIPO"; then
 
6569
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
6570
echo "${ECHO_T}$LIPO" >&6; }
 
6571
else
 
6572
  { echo "$as_me:$LINENO: result: no" >&5
 
6573
echo "${ECHO_T}no" >&6; }
 
6574
fi
 
6575
 
 
6576
 
 
6577
fi
 
6578
if test -z "$ac_cv_prog_LIPO"; then
 
6579
  ac_ct_LIPO=$LIPO
 
6580
  # Extract the first word of "lipo", so it can be a program name with args.
 
6581
set dummy lipo; ac_word=$2
 
6582
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6584
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6586
else
 
6587
  if test -n "$ac_ct_LIPO"; then
 
6588
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6589
else
 
6590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6591
for as_dir in $PATH
 
6592
do
 
6593
  IFS=$as_save_IFS
 
6594
  test -z "$as_dir" && as_dir=.
 
6595
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6597
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6598
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6599
    break 2
 
6600
  fi
 
6601
done
 
6602
done
 
6603
IFS=$as_save_IFS
 
6604
 
 
6605
fi
 
6606
fi
 
6607
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6608
if test -n "$ac_ct_LIPO"; then
 
6609
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6610
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
6611
else
 
6612
  { echo "$as_me:$LINENO: result: no" >&5
 
6613
echo "${ECHO_T}no" >&6; }
 
6614
fi
 
6615
 
 
6616
  if test "x$ac_ct_LIPO" = x; then
 
6617
    LIPO=":"
 
6618
  else
 
6619
    case $cross_compiling:$ac_tool_warned in
 
6620
yes:)
 
6621
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6622
whose name does not start with the host triplet.  If you think this
 
6623
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6624
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6625
whose name does not start with the host triplet.  If you think this
 
6626
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6627
ac_tool_warned=yes ;;
 
6628
esac
 
6629
    LIPO=$ac_ct_LIPO
 
6630
  fi
 
6631
else
 
6632
  LIPO="$ac_cv_prog_LIPO"
 
6633
fi
 
6634
 
 
6635
    if test -n "$ac_tool_prefix"; then
 
6636
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6637
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6638
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6640
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6642
else
 
6643
  if test -n "$OTOOL"; then
 
6644
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6645
else
 
6646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6647
for as_dir in $PATH
 
6648
do
 
6649
  IFS=$as_save_IFS
 
6650
  test -z "$as_dir" && as_dir=.
 
6651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6653
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6655
    break 2
 
6656
  fi
 
6657
done
 
6658
done
 
6659
IFS=$as_save_IFS
 
6660
 
 
6661
fi
 
6662
fi
 
6663
OTOOL=$ac_cv_prog_OTOOL
 
6664
if test -n "$OTOOL"; then
 
6665
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6666
echo "${ECHO_T}$OTOOL" >&6; }
 
6667
else
 
6668
  { echo "$as_me:$LINENO: result: no" >&5
 
6669
echo "${ECHO_T}no" >&6; }
 
6670
fi
 
6671
 
 
6672
 
 
6673
fi
 
6674
if test -z "$ac_cv_prog_OTOOL"; then
 
6675
  ac_ct_OTOOL=$OTOOL
 
6676
  # Extract the first word of "otool", so it can be a program name with args.
 
6677
set dummy otool; ac_word=$2
 
6678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6680
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6682
else
 
6683
  if test -n "$ac_ct_OTOOL"; then
 
6684
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6685
else
 
6686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6687
for as_dir in $PATH
 
6688
do
 
6689
  IFS=$as_save_IFS
 
6690
  test -z "$as_dir" && as_dir=.
 
6691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6693
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6695
    break 2
 
6696
  fi
 
6697
done
 
6698
done
 
6699
IFS=$as_save_IFS
 
6700
 
 
6701
fi
 
6702
fi
 
6703
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6704
if test -n "$ac_ct_OTOOL"; then
 
6705
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6706
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
6707
else
 
6708
  { echo "$as_me:$LINENO: result: no" >&5
 
6709
echo "${ECHO_T}no" >&6; }
 
6710
fi
 
6711
 
 
6712
  if test "x$ac_ct_OTOOL" = x; then
 
6713
    OTOOL=":"
 
6714
  else
 
6715
    case $cross_compiling:$ac_tool_warned in
 
6716
yes:)
 
6717
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6718
whose name does not start with the host triplet.  If you think this
 
6719
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6720
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6721
whose name does not start with the host triplet.  If you think this
 
6722
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6723
ac_tool_warned=yes ;;
 
6724
esac
 
6725
    OTOOL=$ac_ct_OTOOL
 
6726
  fi
 
6727
else
 
6728
  OTOOL="$ac_cv_prog_OTOOL"
 
6729
fi
 
6730
 
 
6731
    if test -n "$ac_tool_prefix"; then
 
6732
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6733
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6734
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6736
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6738
else
 
6739
  if test -n "$OTOOL64"; then
 
6740
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6741
else
 
6742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6743
for as_dir in $PATH
 
6744
do
 
6745
  IFS=$as_save_IFS
 
6746
  test -z "$as_dir" && as_dir=.
 
6747
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6748
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6749
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6750
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6751
    break 2
 
6752
  fi
 
6753
done
 
6754
done
 
6755
IFS=$as_save_IFS
 
6756
 
 
6757
fi
 
6758
fi
 
6759
OTOOL64=$ac_cv_prog_OTOOL64
 
6760
if test -n "$OTOOL64"; then
 
6761
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6762
echo "${ECHO_T}$OTOOL64" >&6; }
 
6763
else
 
6764
  { echo "$as_me:$LINENO: result: no" >&5
 
6765
echo "${ECHO_T}no" >&6; }
 
6766
fi
 
6767
 
 
6768
 
 
6769
fi
 
6770
if test -z "$ac_cv_prog_OTOOL64"; then
 
6771
  ac_ct_OTOOL64=$OTOOL64
 
6772
  # Extract the first word of "otool64", so it can be a program name with args.
 
6773
set dummy otool64; ac_word=$2
 
6774
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6776
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6778
else
 
6779
  if test -n "$ac_ct_OTOOL64"; then
 
6780
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6781
else
 
6782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6783
for as_dir in $PATH
 
6784
do
 
6785
  IFS=$as_save_IFS
 
6786
  test -z "$as_dir" && as_dir=.
 
6787
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6789
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6790
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6791
    break 2
 
6792
  fi
 
6793
done
 
6794
done
 
6795
IFS=$as_save_IFS
 
6796
 
 
6797
fi
 
6798
fi
 
6799
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6800
if test -n "$ac_ct_OTOOL64"; then
 
6801
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6802
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
6803
else
 
6804
  { echo "$as_me:$LINENO: result: no" >&5
 
6805
echo "${ECHO_T}no" >&6; }
 
6806
fi
 
6807
 
 
6808
  if test "x$ac_ct_OTOOL64" = x; then
 
6809
    OTOOL64=":"
 
6810
  else
 
6811
    case $cross_compiling:$ac_tool_warned in
 
6812
yes:)
 
6813
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6814
whose name does not start with the host triplet.  If you think this
 
6815
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6816
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6817
whose name does not start with the host triplet.  If you think this
 
6818
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6819
ac_tool_warned=yes ;;
 
6820
esac
 
6821
    OTOOL64=$ac_ct_OTOOL64
 
6822
  fi
 
6823
else
 
6824
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6825
fi
 
6826
 
 
6827
 
 
6828
 
 
6829
 
 
6830
 
 
6831
 
 
6832
 
 
6833
 
 
6834
 
 
6835
 
 
6836
 
 
6837
 
 
6838
 
 
6839
 
 
6840
 
 
6841
 
 
6842
 
 
6843
 
 
6844
 
 
6845
 
 
6846
 
 
6847
 
 
6848
 
 
6849
 
 
6850
 
 
6851
 
8031
6852
 
8032
6853
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8033
6854
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8036
6857
else
8037
6858
  lt_cv_apple_cc_single_mod=no
8038
6859
      if test -z "${LT_MULTI_MODULE}"; then
8039
 
   # By default we will add the -single_module flag. You can override
8040
 
   # by either setting the environment variable LT_MULTI_MODULE
8041
 
   # non-empty at configure time, or by adding -multi_module to the
8042
 
   # link flags.
8043
 
   echo "int foo(void){return 1;}" > conftest.c
8044
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045
 
     -dynamiclib ${wl}-single_module conftest.c
8046
 
   if test -f libconftest.dylib; then
8047
 
     lt_cv_apple_cc_single_mod=yes
8048
 
     rm -rf libconftest.dylib*
8049
 
   fi
8050
 
   rm conftest.c
 
6860
        # By default we will add the -single_module flag. You can override
 
6861
        # by either setting the environment variable LT_MULTI_MODULE
 
6862
        # non-empty at configure time, or by adding -multi_module to the
 
6863
        # link flags.
 
6864
        rm -rf libconftest.dylib*
 
6865
        echo "int foo(void){return 1;}" > conftest.c
 
6866
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6867
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6868
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6869
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6870
        _lt_result=$?
 
6871
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6872
          lt_cv_apple_cc_single_mod=yes
 
6873
        else
 
6874
          cat conftest.err >&5
 
6875
        fi
 
6876
        rm -rf libconftest.dylib*
 
6877
        rm -f conftest.*
8051
6878
      fi
8052
6879
fi
8053
6880
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8104
6931
 
8105
6932
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8106
6933
      conftest$ac_exeext conftest.$ac_ext
8107
 
   LDFLAGS="$save_LDFLAGS"
 
6934
        LDFLAGS="$save_LDFLAGS"
8108
6935
 
8109
6936
fi
8110
6937
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8111
6938
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8112
6939
    case $host_os in
8113
 
    rhapsody* | darwin1.[0123])
 
6940
    rhapsody* | darwin1.[012])
8114
6941
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8115
6942
    darwin1.*)
8116
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8117
 
    darwin*)
 
6943
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6944
    darwin*) # darwin 5.x on
8118
6945
      # if running on 10.5 or later, the deployment target defaults
8119
6946
      # to the OS version, if on x86, and 10.4, the deployment
8120
6947
      # target defaults to 10.4. Don't you love it?
8121
6948
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8122
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8123
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8124
 
   10.[012]*)
8125
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126
 
   10.*)
8127
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6949
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6950
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6951
        10.[012]*)
 
6952
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6953
        10.*)
 
6954
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8128
6955
      esac
8129
6956
    ;;
8130
6957
  esac
8134
6961
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8135
6962
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8136
6963
    else
8137
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
6964
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8138
6965
    fi
8139
6966
    if test "$DSYMUTIL" != ":"; then
8140
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
6967
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8141
6968
    else
8142
6969
      _lt_dsymutil=
8143
6970
    fi
8145
6972
  esac
8146
6973
 
8147
6974
 
8148
 
enable_dlopen=no
8149
 
enable_win32_dll=no
8150
 
 
8151
 
# Check whether --enable-libtool-lock was given.
8152
 
if test "${enable_libtool_lock+set}" = set; then
8153
 
  enableval=$enable_libtool_lock;
8154
 
fi
8155
 
 
8156
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6975
for ac_header in dlfcn.h
 
6976
do
 
6977
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6978
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6979
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6980
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6982
else
 
6983
  cat >conftest.$ac_ext <<_ACEOF
 
6984
/* confdefs.h.  */
 
6985
_ACEOF
 
6986
cat confdefs.h >>conftest.$ac_ext
 
6987
cat >>conftest.$ac_ext <<_ACEOF
 
6988
/* end confdefs.h.  */
 
6989
$ac_includes_default
 
6990
 
 
6991
#include <$ac_header>
 
6992
_ACEOF
 
6993
rm -f conftest.$ac_objext
 
6994
if { (ac_try="$ac_compile"
 
6995
case "(($ac_try" in
 
6996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6997
  *) ac_try_echo=$ac_try;;
 
6998
esac
 
6999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7000
  (eval "$ac_compile") 2>conftest.er1
 
7001
  ac_status=$?
 
7002
  grep -v '^ *+' conftest.er1 >conftest.err
 
7003
  rm -f conftest.er1
 
7004
  cat conftest.err >&5
 
7005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7006
  (exit $ac_status); } && {
 
7007
         test -z "$ac_c_werror_flag" ||
 
7008
         test ! -s conftest.err
 
7009
       } && test -s conftest.$ac_objext; then
 
7010
  eval "$as_ac_Header=yes"
 
7011
else
 
7012
  echo "$as_me: failed program was:" >&5
 
7013
sed 's/^/| /' conftest.$ac_ext >&5
 
7014
 
 
7015
        eval "$as_ac_Header=no"
 
7016
fi
 
7017
 
 
7018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7019
fi
 
7020
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7021
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7022
echo "${ECHO_T}$ac_res" >&6; }
 
7023
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7024
  cat >>confdefs.h <<_ACEOF
 
7025
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7026
_ACEOF
 
7027
 
 
7028
fi
 
7029
 
 
7030
done
 
7031
 
 
7032
 
 
7033
 
 
7034
ac_ext=cpp
 
7035
ac_cpp='$CXXCPP $CPPFLAGS'
 
7036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7039
if test -z "$CXX"; then
 
7040
  if test -n "$CCC"; then
 
7041
    CXX=$CCC
 
7042
  else
 
7043
    if test -n "$ac_tool_prefix"; then
 
7044
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7045
  do
 
7046
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7047
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7048
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7049
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7050
if test "${ac_cv_prog_CXX+set}" = set; then
 
7051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7052
else
 
7053
  if test -n "$CXX"; then
 
7054
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7055
else
 
7056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7057
for as_dir in $PATH
 
7058
do
 
7059
  IFS=$as_save_IFS
 
7060
  test -z "$as_dir" && as_dir=.
 
7061
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7062
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7063
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7064
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7065
    break 2
 
7066
  fi
 
7067
done
 
7068
done
 
7069
IFS=$as_save_IFS
 
7070
 
 
7071
fi
 
7072
fi
 
7073
CXX=$ac_cv_prog_CXX
 
7074
if test -n "$CXX"; then
 
7075
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
7076
echo "${ECHO_T}$CXX" >&6; }
 
7077
else
 
7078
  { echo "$as_me:$LINENO: result: no" >&5
 
7079
echo "${ECHO_T}no" >&6; }
 
7080
fi
 
7081
 
 
7082
 
 
7083
    test -n "$CXX" && break
 
7084
  done
 
7085
fi
 
7086
if test -z "$CXX"; then
 
7087
  ac_ct_CXX=$CXX
 
7088
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7089
do
 
7090
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7091
set dummy $ac_prog; ac_word=$2
 
7092
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7094
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
7095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7096
else
 
7097
  if test -n "$ac_ct_CXX"; then
 
7098
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7099
else
 
7100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7101
for as_dir in $PATH
 
7102
do
 
7103
  IFS=$as_save_IFS
 
7104
  test -z "$as_dir" && as_dir=.
 
7105
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7106
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7107
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7109
    break 2
 
7110
  fi
 
7111
done
 
7112
done
 
7113
IFS=$as_save_IFS
 
7114
 
 
7115
fi
 
7116
fi
 
7117
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7118
if test -n "$ac_ct_CXX"; then
 
7119
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
7120
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
7121
else
 
7122
  { echo "$as_me:$LINENO: result: no" >&5
 
7123
echo "${ECHO_T}no" >&6; }
 
7124
fi
 
7125
 
 
7126
 
 
7127
  test -n "$ac_ct_CXX" && break
 
7128
done
 
7129
 
 
7130
  if test "x$ac_ct_CXX" = x; then
 
7131
    CXX="g++"
 
7132
  else
 
7133
    case $cross_compiling:$ac_tool_warned in
 
7134
yes:)
 
7135
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7136
whose name does not start with the host triplet.  If you think this
 
7137
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7138
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7139
whose name does not start with the host triplet.  If you think this
 
7140
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7141
ac_tool_warned=yes ;;
 
7142
esac
 
7143
    CXX=$ac_ct_CXX
 
7144
  fi
 
7145
fi
 
7146
 
 
7147
  fi
 
7148
fi
 
7149
# Provide some information about the compiler.
 
7150
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
7151
ac_compiler=`set X $ac_compile; echo $2`
 
7152
{ (ac_try="$ac_compiler --version >&5"
 
7153
case "(($ac_try" in
 
7154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7155
  *) ac_try_echo=$ac_try;;
 
7156
esac
 
7157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7158
  (eval "$ac_compiler --version >&5") 2>&5
 
7159
  ac_status=$?
 
7160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7161
  (exit $ac_status); }
 
7162
{ (ac_try="$ac_compiler -v >&5"
 
7163
case "(($ac_try" in
 
7164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7165
  *) ac_try_echo=$ac_try;;
 
7166
esac
 
7167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7168
  (eval "$ac_compiler -v >&5") 2>&5
 
7169
  ac_status=$?
 
7170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7171
  (exit $ac_status); }
 
7172
{ (ac_try="$ac_compiler -V >&5"
 
7173
case "(($ac_try" in
 
7174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7175
  *) ac_try_echo=$ac_try;;
 
7176
esac
 
7177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7178
  (eval "$ac_compiler -V >&5") 2>&5
 
7179
  ac_status=$?
 
7180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7181
  (exit $ac_status); }
 
7182
 
 
7183
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
7184
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
7185
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
7186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7187
else
 
7188
  cat >conftest.$ac_ext <<_ACEOF
 
7189
/* confdefs.h.  */
 
7190
_ACEOF
 
7191
cat confdefs.h >>conftest.$ac_ext
 
7192
cat >>conftest.$ac_ext <<_ACEOF
 
7193
/* end confdefs.h.  */
 
7194
 
 
7195
int
 
7196
main ()
 
7197
{
 
7198
#ifndef __GNUC__
 
7199
       choke me
 
7200
#endif
 
7201
 
 
7202
  ;
 
7203
  return 0;
 
7204
}
 
7205
_ACEOF
 
7206
rm -f conftest.$ac_objext
 
7207
if { (ac_try="$ac_compile"
 
7208
case "(($ac_try" in
 
7209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7210
  *) ac_try_echo=$ac_try;;
 
7211
esac
 
7212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7213
  (eval "$ac_compile") 2>conftest.er1
 
7214
  ac_status=$?
 
7215
  grep -v '^ *+' conftest.er1 >conftest.err
 
7216
  rm -f conftest.er1
 
7217
  cat conftest.err >&5
 
7218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7219
  (exit $ac_status); } && {
 
7220
         test -z "$ac_cxx_werror_flag" ||
 
7221
         test ! -s conftest.err
 
7222
       } && test -s conftest.$ac_objext; then
 
7223
  ac_compiler_gnu=yes
 
7224
else
 
7225
  echo "$as_me: failed program was:" >&5
 
7226
sed 's/^/| /' conftest.$ac_ext >&5
 
7227
 
 
7228
        ac_compiler_gnu=no
 
7229
fi
 
7230
 
 
7231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7232
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7233
 
 
7234
fi
 
7235
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
7236
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
7237
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
7238
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7239
ac_save_CXXFLAGS=$CXXFLAGS
 
7240
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
7241
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
7242
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
7243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7244
else
 
7245
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
7246
   ac_cxx_werror_flag=yes
 
7247
   ac_cv_prog_cxx_g=no
 
7248
   CXXFLAGS="-g"
 
7249
   cat >conftest.$ac_ext <<_ACEOF
 
7250
/* confdefs.h.  */
 
7251
_ACEOF
 
7252
cat confdefs.h >>conftest.$ac_ext
 
7253
cat >>conftest.$ac_ext <<_ACEOF
 
7254
/* end confdefs.h.  */
 
7255
 
 
7256
int
 
7257
main ()
 
7258
{
 
7259
 
 
7260
  ;
 
7261
  return 0;
 
7262
}
 
7263
_ACEOF
 
7264
rm -f conftest.$ac_objext
 
7265
if { (ac_try="$ac_compile"
 
7266
case "(($ac_try" in
 
7267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7268
  *) ac_try_echo=$ac_try;;
 
7269
esac
 
7270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7271
  (eval "$ac_compile") 2>conftest.er1
 
7272
  ac_status=$?
 
7273
  grep -v '^ *+' conftest.er1 >conftest.err
 
7274
  rm -f conftest.er1
 
7275
  cat conftest.err >&5
 
7276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7277
  (exit $ac_status); } && {
 
7278
         test -z "$ac_cxx_werror_flag" ||
 
7279
         test ! -s conftest.err
 
7280
       } && test -s conftest.$ac_objext; then
 
7281
  ac_cv_prog_cxx_g=yes
 
7282
else
 
7283
  echo "$as_me: failed program was:" >&5
 
7284
sed 's/^/| /' conftest.$ac_ext >&5
 
7285
 
 
7286
        CXXFLAGS=""
 
7287
      cat >conftest.$ac_ext <<_ACEOF
 
7288
/* confdefs.h.  */
 
7289
_ACEOF
 
7290
cat confdefs.h >>conftest.$ac_ext
 
7291
cat >>conftest.$ac_ext <<_ACEOF
 
7292
/* end confdefs.h.  */
 
7293
 
 
7294
int
 
7295
main ()
 
7296
{
 
7297
 
 
7298
  ;
 
7299
  return 0;
 
7300
}
 
7301
_ACEOF
 
7302
rm -f conftest.$ac_objext
 
7303
if { (ac_try="$ac_compile"
 
7304
case "(($ac_try" in
 
7305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7306
  *) ac_try_echo=$ac_try;;
 
7307
esac
 
7308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7309
  (eval "$ac_compile") 2>conftest.er1
 
7310
  ac_status=$?
 
7311
  grep -v '^ *+' conftest.er1 >conftest.err
 
7312
  rm -f conftest.er1
 
7313
  cat conftest.err >&5
 
7314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7315
  (exit $ac_status); } && {
 
7316
         test -z "$ac_cxx_werror_flag" ||
 
7317
         test ! -s conftest.err
 
7318
       } && test -s conftest.$ac_objext; then
 
7319
  :
 
7320
else
 
7321
  echo "$as_me: failed program was:" >&5
 
7322
sed 's/^/| /' conftest.$ac_ext >&5
 
7323
 
 
7324
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7325
         CXXFLAGS="-g"
 
7326
         cat >conftest.$ac_ext <<_ACEOF
 
7327
/* confdefs.h.  */
 
7328
_ACEOF
 
7329
cat confdefs.h >>conftest.$ac_ext
 
7330
cat >>conftest.$ac_ext <<_ACEOF
 
7331
/* end confdefs.h.  */
 
7332
 
 
7333
int
 
7334
main ()
 
7335
{
 
7336
 
 
7337
  ;
 
7338
  return 0;
 
7339
}
 
7340
_ACEOF
 
7341
rm -f conftest.$ac_objext
 
7342
if { (ac_try="$ac_compile"
 
7343
case "(($ac_try" in
 
7344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7345
  *) ac_try_echo=$ac_try;;
 
7346
esac
 
7347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7348
  (eval "$ac_compile") 2>conftest.er1
 
7349
  ac_status=$?
 
7350
  grep -v '^ *+' conftest.er1 >conftest.err
 
7351
  rm -f conftest.er1
 
7352
  cat conftest.err >&5
 
7353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7354
  (exit $ac_status); } && {
 
7355
         test -z "$ac_cxx_werror_flag" ||
 
7356
         test ! -s conftest.err
 
7357
       } && test -s conftest.$ac_objext; then
 
7358
  ac_cv_prog_cxx_g=yes
 
7359
else
 
7360
  echo "$as_me: failed program was:" >&5
 
7361
sed 's/^/| /' conftest.$ac_ext >&5
 
7362
 
 
7363
 
 
7364
fi
 
7365
 
 
7366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7367
fi
 
7368
 
 
7369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7370
fi
 
7371
 
 
7372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7373
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7374
fi
 
7375
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
7376
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
7377
if test "$ac_test_CXXFLAGS" = set; then
 
7378
  CXXFLAGS=$ac_save_CXXFLAGS
 
7379
elif test $ac_cv_prog_cxx_g = yes; then
 
7380
  if test "$GXX" = yes; then
 
7381
    CXXFLAGS="-g -O2"
 
7382
  else
 
7383
    CXXFLAGS="-g"
 
7384
  fi
 
7385
else
 
7386
  if test "$GXX" = yes; then
 
7387
    CXXFLAGS="-O2"
 
7388
  else
 
7389
    CXXFLAGS=
 
7390
  fi
 
7391
fi
 
7392
ac_ext=c
 
7393
ac_cpp='$CPP $CPPFLAGS'
 
7394
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7395
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7396
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7397
 
 
7398
depcc="$CXX"  am_compiler_list=
 
7399
 
 
7400
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
7401
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
7402
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
7403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7404
else
 
7405
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7406
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7407
  # making bogus files that we don't know about and never remove.  For
 
7408
  # instance it was reported that on HP-UX the gcc test will end up
 
7409
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7410
  # in D'.
 
7411
  mkdir conftest.dir
 
7412
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7413
  # using a relative directory.
 
7414
  cp "$am_depcomp" conftest.dir
 
7415
  cd conftest.dir
 
7416
  # We will build objects and dependencies in a subdirectory because
 
7417
  # it helps to detect inapplicable dependency modes.  For instance
 
7418
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7419
  # side effect of compilation, but ICC will put the dependencies in
 
7420
  # the current directory while Tru64 will put them in the object
 
7421
  # directory.
 
7422
  mkdir sub
 
7423
 
 
7424
  am_cv_CXX_dependencies_compiler_type=none
 
7425
  if test "$am_compiler_list" = ""; then
 
7426
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7427
  fi
 
7428
  for depmode in $am_compiler_list; do
 
7429
    # Setup a source with many dependencies, because some compilers
 
7430
    # like to wrap large dependency lists on column 80 (with \), and
 
7431
    # we should not choose a depcomp mode which is confused by this.
 
7432
    #
 
7433
    # We need to recreate these files for each test, as the compiler may
 
7434
    # overwrite some of them when testing with obscure command lines.
 
7435
    # This happens at least with the AIX C compiler.
 
7436
    : > sub/conftest.c
 
7437
    for i in 1 2 3 4 5 6; do
 
7438
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7439
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7440
      # Solaris 8's {/usr,}/bin/sh.
 
7441
      touch sub/conftst$i.h
 
7442
    done
 
7443
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7444
 
 
7445
    case $depmode in
 
7446
    nosideeffect)
 
7447
      # after this tag, mechanisms are not by side-effect, so they'll
 
7448
      # only be used when explicitly requested
 
7449
      if test "x$enable_dependency_tracking" = xyes; then
 
7450
        continue
 
7451
      else
 
7452
        break
 
7453
      fi
 
7454
      ;;
 
7455
    none) break ;;
 
7456
    esac
 
7457
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7458
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7459
    # handle `-M -o', and we need to detect this.
 
7460
    if depmode=$depmode \
 
7461
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7462
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7463
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7464
         >/dev/null 2>conftest.err &&
 
7465
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7466
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7467
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7468
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7469
      # icc doesn't choke on unknown options, it will just issue warnings
 
7470
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7471
      # that says an option was ignored or not supported.
 
7472
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7473
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7474
      # The diagnosis changed in icc 8.0:
 
7475
      #   icc: Command line remark: option '-MP' not supported
 
7476
      if (grep 'ignoring option' conftest.err ||
 
7477
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7478
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7479
        break
 
7480
      fi
 
7481
    fi
 
7482
  done
 
7483
 
 
7484
  cd ..
 
7485
  rm -rf conftest.dir
 
7486
else
 
7487
  am_cv_CXX_dependencies_compiler_type=none
 
7488
fi
 
7489
 
 
7490
fi
 
7491
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7492
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7493
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7494
 
 
7495
 if
 
7496
  test "x$enable_dependency_tracking" != xno \
 
7497
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7498
  am__fastdepCXX_TRUE=
 
7499
  am__fastdepCXX_FALSE='#'
 
7500
else
 
7501
  am__fastdepCXX_TRUE='#'
 
7502
  am__fastdepCXX_FALSE=
 
7503
fi
 
7504
 
 
7505
 
 
7506
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7507
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7508
    (test "X$CXX" != "Xg++"))) ; then
 
7509
  ac_ext=cpp
 
7510
ac_cpp='$CXXCPP $CPPFLAGS'
 
7511
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7512
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7513
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7514
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
7515
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
7516
if test -z "$CXXCPP"; then
 
7517
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
7518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7519
else
 
7520
      # Double quotes because CXXCPP needs to be expanded
 
7521
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7522
    do
 
7523
      ac_preproc_ok=false
 
7524
for ac_cxx_preproc_warn_flag in '' yes
 
7525
do
 
7526
  # Use a header file that comes with gcc, so configuring glibc
 
7527
  # with a fresh cross-compiler works.
 
7528
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7529
  # <limits.h> exists even on freestanding compilers.
 
7530
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7531
  # not just through cpp. "Syntax error" is here to catch this case.
 
7532
  cat >conftest.$ac_ext <<_ACEOF
 
7533
/* confdefs.h.  */
 
7534
_ACEOF
 
7535
cat confdefs.h >>conftest.$ac_ext
 
7536
cat >>conftest.$ac_ext <<_ACEOF
 
7537
/* end confdefs.h.  */
 
7538
#ifdef __STDC__
 
7539
# include <limits.h>
 
7540
#else
 
7541
# include <assert.h>
 
7542
#endif
 
7543
                     Syntax error
 
7544
_ACEOF
 
7545
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7546
case "(($ac_try" in
 
7547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7548
  *) ac_try_echo=$ac_try;;
 
7549
esac
 
7550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7551
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7552
  ac_status=$?
 
7553
  grep -v '^ *+' conftest.er1 >conftest.err
 
7554
  rm -f conftest.er1
 
7555
  cat conftest.err >&5
 
7556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7557
  (exit $ac_status); } >/dev/null && {
 
7558
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7559
         test ! -s conftest.err
 
7560
       }; then
 
7561
  :
 
7562
else
 
7563
  echo "$as_me: failed program was:" >&5
 
7564
sed 's/^/| /' conftest.$ac_ext >&5
 
7565
 
 
7566
  # Broken: fails on valid input.
 
7567
continue
 
7568
fi
 
7569
 
 
7570
rm -f conftest.err conftest.$ac_ext
 
7571
 
 
7572
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7573
  # can be detected and how.
 
7574
  cat >conftest.$ac_ext <<_ACEOF
 
7575
/* confdefs.h.  */
 
7576
_ACEOF
 
7577
cat confdefs.h >>conftest.$ac_ext
 
7578
cat >>conftest.$ac_ext <<_ACEOF
 
7579
/* end confdefs.h.  */
 
7580
#include <ac_nonexistent.h>
 
7581
_ACEOF
 
7582
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7583
case "(($ac_try" in
 
7584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7585
  *) ac_try_echo=$ac_try;;
 
7586
esac
 
7587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7588
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7589
  ac_status=$?
 
7590
  grep -v '^ *+' conftest.er1 >conftest.err
 
7591
  rm -f conftest.er1
 
7592
  cat conftest.err >&5
 
7593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7594
  (exit $ac_status); } >/dev/null && {
 
7595
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7596
         test ! -s conftest.err
 
7597
       }; then
 
7598
  # Broken: success on invalid input.
 
7599
continue
 
7600
else
 
7601
  echo "$as_me: failed program was:" >&5
 
7602
sed 's/^/| /' conftest.$ac_ext >&5
 
7603
 
 
7604
  # Passes both tests.
 
7605
ac_preproc_ok=:
 
7606
break
 
7607
fi
 
7608
 
 
7609
rm -f conftest.err conftest.$ac_ext
 
7610
 
 
7611
done
 
7612
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7613
rm -f conftest.err conftest.$ac_ext
 
7614
if $ac_preproc_ok; then
 
7615
  break
 
7616
fi
 
7617
 
 
7618
    done
 
7619
    ac_cv_prog_CXXCPP=$CXXCPP
 
7620
 
 
7621
fi
 
7622
  CXXCPP=$ac_cv_prog_CXXCPP
 
7623
else
 
7624
  ac_cv_prog_CXXCPP=$CXXCPP
 
7625
fi
 
7626
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
7627
echo "${ECHO_T}$CXXCPP" >&6; }
 
7628
ac_preproc_ok=false
 
7629
for ac_cxx_preproc_warn_flag in '' yes
 
7630
do
 
7631
  # Use a header file that comes with gcc, so configuring glibc
 
7632
  # with a fresh cross-compiler works.
 
7633
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7634
  # <limits.h> exists even on freestanding compilers.
 
7635
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7636
  # not just through cpp. "Syntax error" is here to catch this case.
 
7637
  cat >conftest.$ac_ext <<_ACEOF
 
7638
/* confdefs.h.  */
 
7639
_ACEOF
 
7640
cat confdefs.h >>conftest.$ac_ext
 
7641
cat >>conftest.$ac_ext <<_ACEOF
 
7642
/* end confdefs.h.  */
 
7643
#ifdef __STDC__
 
7644
# include <limits.h>
 
7645
#else
 
7646
# include <assert.h>
 
7647
#endif
 
7648
                     Syntax error
 
7649
_ACEOF
 
7650
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7651
case "(($ac_try" in
 
7652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7653
  *) ac_try_echo=$ac_try;;
 
7654
esac
 
7655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7656
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7657
  ac_status=$?
 
7658
  grep -v '^ *+' conftest.er1 >conftest.err
 
7659
  rm -f conftest.er1
 
7660
  cat conftest.err >&5
 
7661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7662
  (exit $ac_status); } >/dev/null && {
 
7663
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7664
         test ! -s conftest.err
 
7665
       }; then
 
7666
  :
 
7667
else
 
7668
  echo "$as_me: failed program was:" >&5
 
7669
sed 's/^/| /' conftest.$ac_ext >&5
 
7670
 
 
7671
  # Broken: fails on valid input.
 
7672
continue
 
7673
fi
 
7674
 
 
7675
rm -f conftest.err conftest.$ac_ext
 
7676
 
 
7677
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7678
  # can be detected and how.
 
7679
  cat >conftest.$ac_ext <<_ACEOF
 
7680
/* confdefs.h.  */
 
7681
_ACEOF
 
7682
cat confdefs.h >>conftest.$ac_ext
 
7683
cat >>conftest.$ac_ext <<_ACEOF
 
7684
/* end confdefs.h.  */
 
7685
#include <ac_nonexistent.h>
 
7686
_ACEOF
 
7687
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7688
case "(($ac_try" in
 
7689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7690
  *) ac_try_echo=$ac_try;;
 
7691
esac
 
7692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7693
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7694
  ac_status=$?
 
7695
  grep -v '^ *+' conftest.er1 >conftest.err
 
7696
  rm -f conftest.er1
 
7697
  cat conftest.err >&5
 
7698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7699
  (exit $ac_status); } >/dev/null && {
 
7700
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7701
         test ! -s conftest.err
 
7702
       }; then
 
7703
  # Broken: success on invalid input.
 
7704
continue
 
7705
else
 
7706
  echo "$as_me: failed program was:" >&5
 
7707
sed 's/^/| /' conftest.$ac_ext >&5
 
7708
 
 
7709
  # Passes both tests.
 
7710
ac_preproc_ok=:
 
7711
break
 
7712
fi
 
7713
 
 
7714
rm -f conftest.err conftest.$ac_ext
 
7715
 
 
7716
done
 
7717
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7718
rm -f conftest.err conftest.$ac_ext
 
7719
if $ac_preproc_ok; then
 
7720
  :
 
7721
else
 
7722
  _lt_caught_CXX_error=yes
 
7723
fi
 
7724
 
 
7725
ac_ext=c
 
7726
ac_cpp='$CPP $CPPFLAGS'
 
7727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7730
 
 
7731
else
 
7732
  _lt_caught_CXX_error=yes
 
7733
fi
 
7734
 
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
# Set options
 
7740
 
 
7741
 
 
7742
 
 
7743
        enable_dlopen=no
 
7744
 
 
7745
 
 
7746
  enable_win32_dll=no
 
7747
 
 
7748
 
 
7749
            # Check whether --enable-shared was given.
 
7750
if test "${enable_shared+set}" = set; then
 
7751
  enableval=$enable_shared; p=${PACKAGE-default}
 
7752
    case $enableval in
 
7753
    yes) enable_shared=yes ;;
 
7754
    no) enable_shared=no ;;
 
7755
    *)
 
7756
      enable_shared=no
 
7757
      # Look at the argument we got.  We use all the common list separators.
 
7758
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7759
      for pkg in $enableval; do
 
7760
        IFS="$lt_save_ifs"
 
7761
        if test "X$pkg" = "X$p"; then
 
7762
          enable_shared=yes
 
7763
        fi
 
7764
      done
 
7765
      IFS="$lt_save_ifs"
 
7766
      ;;
 
7767
    esac
 
7768
else
 
7769
  enable_shared=yes
 
7770
fi
 
7771
 
 
7772
 
 
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
  # Check whether --enable-static was given.
 
7781
if test "${enable_static+set}" = set; then
 
7782
  enableval=$enable_static; p=${PACKAGE-default}
 
7783
    case $enableval in
 
7784
    yes) enable_static=yes ;;
 
7785
    no) enable_static=no ;;
 
7786
    *)
 
7787
     enable_static=no
 
7788
      # Look at the argument we got.  We use all the common list separators.
 
7789
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7790
      for pkg in $enableval; do
 
7791
        IFS="$lt_save_ifs"
 
7792
        if test "X$pkg" = "X$p"; then
 
7793
          enable_static=yes
 
7794
        fi
 
7795
      done
 
7796
      IFS="$lt_save_ifs"
 
7797
      ;;
 
7798
    esac
 
7799
else
 
7800
  enable_static=yes
 
7801
fi
 
7802
 
 
7803
 
 
7804
 
 
7805
 
 
7806
 
 
7807
 
 
7808
 
 
7809
 
8157
7810
 
8158
7811
 
8159
7812
# Check whether --with-pic was given.
8163
7816
  pic_mode=default
8164
7817
fi
8165
7818
 
 
7819
 
8166
7820
test -z "$pic_mode" && pic_mode=default
8167
7821
 
 
7822
 
 
7823
 
 
7824
 
 
7825
 
 
7826
 
 
7827
 
 
7828
  # Check whether --enable-fast-install was given.
 
7829
if test "${enable_fast_install+set}" = set; then
 
7830
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7831
    case $enableval in
 
7832
    yes) enable_fast_install=yes ;;
 
7833
    no) enable_fast_install=no ;;
 
7834
    *)
 
7835
      enable_fast_install=no
 
7836
      # Look at the argument we got.  We use all the common list separators.
 
7837
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7838
      for pkg in $enableval; do
 
7839
        IFS="$lt_save_ifs"
 
7840
        if test "X$pkg" = "X$p"; then
 
7841
          enable_fast_install=yes
 
7842
        fi
 
7843
      done
 
7844
      IFS="$lt_save_ifs"
 
7845
      ;;
 
7846
    esac
 
7847
else
 
7848
  enable_fast_install=yes
 
7849
fi
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
 
 
7860
 
 
7861
# This can be used to rebuild libtool when needed
 
7862
LIBTOOL_DEPS="$ltmain"
 
7863
 
 
7864
# Always use our own libtool.
 
7865
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
test -z "$LN_S" && LN_S="ln -s"
 
7892
 
 
7893
 
 
7894
 
 
7895
 
 
7896
 
 
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
 
 
7905
 
 
7906
if test -n "${ZSH_VERSION+set}" ; then
 
7907
   setopt NO_GLOB_SUBST
 
7908
fi
 
7909
 
 
7910
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
7911
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
7912
if test "${lt_cv_objdir+set}" = set; then
 
7913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7914
else
 
7915
  rm -f .libs 2>/dev/null
 
7916
mkdir .libs 2>/dev/null
 
7917
if test -d .libs; then
 
7918
  lt_cv_objdir=.libs
 
7919
else
 
7920
  # MS-DOS does not allow filenames that begin with a dot.
 
7921
  lt_cv_objdir=_libs
 
7922
fi
 
7923
rmdir .libs 2>/dev/null
 
7924
fi
 
7925
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7926
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7927
objdir=$lt_cv_objdir
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
cat >>confdefs.h <<_ACEOF
 
7934
#define LT_OBJDIR "$lt_cv_objdir/"
 
7935
_ACEOF
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
 
 
7953
case $host_os in
 
7954
aix3*)
 
7955
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7956
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7957
  # vanish in a puff of smoke.
 
7958
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7959
    COLLECT_NAMES=
 
7960
    export COLLECT_NAMES
 
7961
  fi
 
7962
  ;;
 
7963
esac
 
7964
 
 
7965
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7966
# metacharacters that are still active within double-quoted strings.
 
7967
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7968
 
 
7969
# Same as above, but do not quote variable references.
 
7970
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7971
 
 
7972
# Sed substitution to delay expansion of an escaped shell variable in a
 
7973
# double_quote_subst'ed string.
 
7974
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7975
 
 
7976
# Sed substitution to delay expansion of an escaped single quote.
 
7977
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7978
 
 
7979
# Sed substitution to avoid accidental globbing in evaled expressions
 
7980
no_glob_subst='s/\*/\\\*/g'
 
7981
 
 
7982
# Global variables:
 
7983
ofile=libtool
 
7984
can_build_shared=yes
 
7985
 
 
7986
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7987
# which needs '.lib').
 
7988
libext=a
 
7989
 
 
7990
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7991
 
 
7992
old_CC="$CC"
 
7993
old_CFLAGS="$CFLAGS"
 
7994
 
 
7995
# Set sane defaults for various variables
 
7996
test -z "$CC" && CC=cc
 
7997
test -z "$LTCC" && LTCC=$CC
 
7998
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7999
test -z "$LD" && LD=ld
 
8000
test -z "$ac_objext" && ac_objext=o
 
8001
 
 
8002
for cc_temp in $compiler""; do
 
8003
  case $cc_temp in
 
8004
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8005
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8006
    \-*) ;;
 
8007
    *) break;;
 
8008
  esac
 
8009
done
 
8010
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8011
 
 
8012
 
 
8013
# Only perform the check for file, if the check method requires it
 
8014
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8015
case $deplibs_check_method in
 
8016
file_magic*)
 
8017
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8018
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8019
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
8020
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8022
else
 
8023
  case $MAGIC_CMD in
 
8024
[\\/*] |  ?:[\\/]*)
 
8025
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8026
  ;;
 
8027
*)
 
8028
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8029
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8030
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8031
  for ac_dir in $ac_dummy; do
 
8032
    IFS="$lt_save_ifs"
 
8033
    test -z "$ac_dir" && ac_dir=.
 
8034
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8035
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8036
      if test -n "$file_magic_test_file"; then
 
8037
        case $deplibs_check_method in
 
8038
        "file_magic "*)
 
8039
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8040
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8041
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8042
            $EGREP "$file_magic_regex" > /dev/null; then
 
8043
            :
 
8044
          else
 
8045
            cat <<_LT_EOF 1>&2
 
8046
 
 
8047
*** Warning: the command libtool uses to detect shared libraries,
 
8048
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8049
*** The result is that libtool may fail to recognize shared libraries
 
8050
*** as such.  This will affect the creation of libtool libraries that
 
8051
*** depend on shared libraries, but programs linked with such libtool
 
8052
*** libraries will work regardless of this problem.  Nevertheless, you
 
8053
*** may want to report the problem to your system manager and/or to
 
8054
*** bug-libtool@gnu.org
 
8055
 
 
8056
_LT_EOF
 
8057
          fi ;;
 
8058
        esac
 
8059
      fi
 
8060
      break
 
8061
    fi
 
8062
  done
 
8063
  IFS="$lt_save_ifs"
 
8064
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8065
  ;;
 
8066
esac
 
8067
fi
 
8068
 
 
8069
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8070
if test -n "$MAGIC_CMD"; then
 
8071
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8072
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
8073
else
 
8074
  { echo "$as_me:$LINENO: result: no" >&5
 
8075
echo "${ECHO_T}no" >&6; }
 
8076
fi
 
8077
 
 
8078
 
 
8079
 
 
8080
 
 
8081
 
 
8082
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8083
  if test -n "$ac_tool_prefix"; then
 
8084
    { echo "$as_me:$LINENO: checking for file" >&5
 
8085
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
8086
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8088
else
 
8089
  case $MAGIC_CMD in
 
8090
[\\/*] |  ?:[\\/]*)
 
8091
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8092
  ;;
 
8093
*)
 
8094
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8095
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8096
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8097
  for ac_dir in $ac_dummy; do
 
8098
    IFS="$lt_save_ifs"
 
8099
    test -z "$ac_dir" && ac_dir=.
 
8100
    if test -f $ac_dir/file; then
 
8101
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8102
      if test -n "$file_magic_test_file"; then
 
8103
        case $deplibs_check_method in
 
8104
        "file_magic "*)
 
8105
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8106
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8107
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8108
            $EGREP "$file_magic_regex" > /dev/null; then
 
8109
            :
 
8110
          else
 
8111
            cat <<_LT_EOF 1>&2
 
8112
 
 
8113
*** Warning: the command libtool uses to detect shared libraries,
 
8114
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8115
*** The result is that libtool may fail to recognize shared libraries
 
8116
*** as such.  This will affect the creation of libtool libraries that
 
8117
*** depend on shared libraries, but programs linked with such libtool
 
8118
*** libraries will work regardless of this problem.  Nevertheless, you
 
8119
*** may want to report the problem to your system manager and/or to
 
8120
*** bug-libtool@gnu.org
 
8121
 
 
8122
_LT_EOF
 
8123
          fi ;;
 
8124
        esac
 
8125
      fi
 
8126
      break
 
8127
    fi
 
8128
  done
 
8129
  IFS="$lt_save_ifs"
 
8130
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8131
  ;;
 
8132
esac
 
8133
fi
 
8134
 
 
8135
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8136
if test -n "$MAGIC_CMD"; then
 
8137
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8138
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
8139
else
 
8140
  { echo "$as_me:$LINENO: result: no" >&5
 
8141
echo "${ECHO_T}no" >&6; }
 
8142
fi
 
8143
 
 
8144
 
 
8145
  else
 
8146
    MAGIC_CMD=:
 
8147
  fi
 
8148
fi
 
8149
 
 
8150
  fi
 
8151
  ;;
 
8152
esac
 
8153
 
8168
8154
# Use C for the default configuration in the libtool script
8169
 
tagname=
 
8155
 
8170
8156
lt_save_CC="$CC"
8171
8157
ac_ext=c
8172
8158
ac_cpp='$CPP $CPPFLAGS'
8189
8175
lt_simple_link_test_code='int main(){return(0);}'
8190
8176
 
8191
8177
 
 
8178
 
 
8179
 
 
8180
 
 
8181
 
 
8182
 
8192
8183
# If no C compiler was specified, use CC.
8193
8184
LTCC=${LTCC-"$CC"}
8194
8185
 
8198
8189
# Allow CC to be a program name with arguments.
8199
8190
compiler=$CC
8200
8191
 
 
8192
# Save the default compiler, since it gets overwritten when the other
 
8193
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8194
compiler_DEFAULT=$CC
8201
8195
 
8202
8196
# save warnings/boilerplate of simple test code
8203
8197
ac_outfile=conftest.$ac_objext
8204
8198
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8205
8199
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8206
8200
_lt_compiler_boilerplate=`cat conftest.err`
8207
 
$rm conftest*
 
8201
$RM conftest*
8208
8202
 
8209
8203
ac_outfile=conftest.$ac_objext
8210
8204
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8211
8205
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8212
8206
_lt_linker_boilerplate=`cat conftest.err`
8213
 
$rm -r conftest*
8214
 
 
8215
 
 
 
8207
$RM -r conftest*
 
8208
 
 
8209
 
 
8210
## CAVEAT EMPTOR:
 
8211
## There is no encapsulation within the following macros, do not change
 
8212
## the running order or otherwise move them around unless you know exactly
 
8213
## what you are doing...
 
8214
if test -n "$compiler"; then
8216
8215
 
8217
8216
lt_prog_compiler_no_builtin_flag=
8218
8217
 
8219
8218
if test "$GCC" = yes; then
8220
8219
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8221
8220
 
8222
 
 
8223
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8221
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8224
8222
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8225
8223
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8226
8224
  echo $ECHO_N "(cached) $ECHO_C" >&6
8227
8225
else
8228
8226
  lt_cv_prog_compiler_rtti_exceptions=no
8229
 
  ac_outfile=conftest.$ac_objext
 
8227
   ac_outfile=conftest.$ac_objext
8230
8228
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231
8229
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8232
8230
   # Insert the option either (1) after the last *FLAGS variable, or
8238
8236
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239
8237
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240
8238
   -e 's:$: $lt_compiler_flag:'`
8241
 
   (eval echo "\"\$as_me:8241: $lt_compile\"" >&5)
 
8239
   (eval echo "\"\$as_me:8239: $lt_compile\"" >&5)
8242
8240
   (eval "$lt_compile" 2>conftest.err)
8243
8241
   ac_status=$?
8244
8242
   cat conftest.err >&5
8245
 
   echo "$as_me:8245: \$? = $ac_status" >&5
 
8243
   echo "$as_me:8243: \$? = $ac_status" >&5
8246
8244
   if (exit $ac_status) && test -s "$ac_outfile"; then
8247
8245
     # The compiler can only warn and ignore the option if not recognized
8248
8246
     # So say no if there are warnings other than the usual output.
8249
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8247
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8250
8248
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8251
8249
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8252
8250
       lt_cv_prog_compiler_rtti_exceptions=yes
8253
8251
     fi
8254
8252
   fi
8255
 
   $rm conftest*
 
8253
   $RM conftest*
8256
8254
 
8257
8255
fi
8258
8256
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8266
8264
 
8267
8265
fi
8268
8266
 
8269
 
lt_prog_compiler_wl=
 
8267
 
 
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
  lt_prog_compiler_wl=
8270
8273
lt_prog_compiler_pic=
8271
8274
lt_prog_compiler_static=
8272
8275
 
8287
8290
      ;;
8288
8291
 
8289
8292
    amigaos*)
8290
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8291
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8292
 
      # like `-m68040'.
8293
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8293
      case $host_cpu in
 
8294
      powerpc)
 
8295
            # see comment about AmigaOS4 .so support
 
8296
            lt_prog_compiler_pic='-fPIC'
 
8297
        ;;
 
8298
      m68k)
 
8299
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8300
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8301
            # like `-m68040'.
 
8302
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8303
        ;;
 
8304
      esac
8294
8305
      ;;
8295
8306
 
8296
8307
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8297
8308
      # PIC is the default for these OSes.
8298
8309
      ;;
8299
8310
 
8300
 
    mingw* | cygwin* | pw32* | os2*)
 
8311
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8301
8312
      # This hack is so that the source file can tell whether it is being
8302
8313
      # built for inclusion in a dll (and should export symbols for example).
8303
8314
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8311
8322
      lt_prog_compiler_pic='-fno-common'
8312
8323
      ;;
8313
8324
 
 
8325
    hpux*)
 
8326
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8327
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8328
      # sets the default TLS model and affects inlining.
 
8329
      case $host_cpu in
 
8330
      hppa*64*)
 
8331
        # +Z the default
 
8332
        ;;
 
8333
      *)
 
8334
        lt_prog_compiler_pic='-fPIC'
 
8335
        ;;
 
8336
      esac
 
8337
      ;;
 
8338
 
8314
8339
    interix[3-9]*)
8315
8340
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8316
8341
      # Instead, we relocate shared libraries at runtime.
8323
8348
      enable_shared=no
8324
8349
      ;;
8325
8350
 
 
8351
    *nto* | *qnx*)
 
8352
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8353
      # it will coredump.
 
8354
      lt_prog_compiler_pic='-fPIC -shared'
 
8355
      ;;
 
8356
 
8326
8357
    sysv4*MP*)
8327
8358
      if test -d /usr/nec; then
8328
8359
        lt_prog_compiler_pic=-Kconform_pic
8329
8360
      fi
8330
8361
      ;;
8331
8362
 
8332
 
    hpux*)
8333
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8334
 
      # not for PA HP-UX.
8335
 
      case $host_cpu in
8336
 
      hppa*64*|ia64*)
8337
 
        # +Z the default
8338
 
        ;;
8339
 
      *)
8340
 
        lt_prog_compiler_pic='-fPIC'
8341
 
        ;;
8342
 
      esac
8343
 
      ;;
8344
 
 
8345
8363
    *)
8346
8364
      lt_prog_compiler_pic='-fPIC'
8347
8365
      ;;
8358
8376
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8359
8377
      fi
8360
8378
      ;;
8361
 
      darwin*)
8362
 
        # PIC is the default on this platform
8363
 
        # Common symbols not allowed in MH_DYLIB files
8364
 
       case $cc_basename in
8365
 
         xlc*)
8366
 
         lt_prog_compiler_pic='-qnocommon'
8367
 
         lt_prog_compiler_wl='-Wl,'
8368
 
         ;;
8369
 
       esac
8370
 
       ;;
8371
8379
 
8372
 
    mingw* | cygwin* | pw32* | os2*)
 
8380
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8373
8381
      # This hack is so that the source file can tell whether it is being
8374
8382
      # built for inclusion in a dll (and should export symbols for example).
8375
8383
      lt_prog_compiler_pic='-DDLL_EXPORT'
8397
8405
      lt_prog_compiler_static='-non_shared'
8398
8406
      ;;
8399
8407
 
8400
 
    newsos6)
8401
 
      lt_prog_compiler_pic='-KPIC'
8402
 
      lt_prog_compiler_static='-Bstatic'
8403
 
      ;;
8404
 
 
8405
8408
    linux* | k*bsd*-gnu)
8406
8409
      case $cc_basename in
8407
 
      icc* | ecc*)
 
8410
      # old Intel for x86_64 which still supported -KPIC.
 
8411
      ecc*)
8408
8412
        lt_prog_compiler_wl='-Wl,'
8409
8413
        lt_prog_compiler_pic='-KPIC'
8410
8414
        lt_prog_compiler_static='-static'
8411
8415
        ;;
 
8416
      # icc used to be incompatible with GCC.
 
8417
      # ICC 10 doesn't accept -KPIC any more.
 
8418
      icc* | ifort*)
 
8419
        lt_prog_compiler_wl='-Wl,'
 
8420
        lt_prog_compiler_pic='-fPIC'
 
8421
        lt_prog_compiler_static='-static'
 
8422
        ;;
 
8423
      # Lahey Fortran 8.1.
 
8424
      lf95*)
 
8425
        lt_prog_compiler_wl='-Wl,'
 
8426
        lt_prog_compiler_pic='--shared'
 
8427
        lt_prog_compiler_static='--static'
 
8428
        ;;
8412
8429
      pgcc* | pgf77* | pgf90* | pgf95*)
8413
8430
        # Portland Group compilers (*not* the Pentium gcc compiler,
8414
8431
        # which looks to be a dead project)
8421
8438
        # All Alpha code is PIC.
8422
8439
        lt_prog_compiler_static='-non_shared'
8423
8440
        ;;
 
8441
      xl*)
 
8442
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8443
        lt_prog_compiler_wl='-Wl,'
 
8444
        lt_prog_compiler_pic='-qpic'
 
8445
        lt_prog_compiler_static='-qstaticlink'
 
8446
        ;;
8424
8447
      *)
8425
 
        case `$CC -V 2>&1 | sed 5q` in
 
8448
        case `$CC -V 2>&1 | sed 5q` in
8426
8449
        *Sun\ C*)
8427
8450
          # Sun C 5.9
8428
8451
          lt_prog_compiler_pic='-KPIC'
8440
8463
      esac
8441
8464
      ;;
8442
8465
 
 
8466
    newsos6)
 
8467
      lt_prog_compiler_pic='-KPIC'
 
8468
      lt_prog_compiler_static='-Bstatic'
 
8469
      ;;
 
8470
 
 
8471
    *nto* | *qnx*)
 
8472
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8473
      # it will coredump.
 
8474
      lt_prog_compiler_pic='-fPIC -shared'
 
8475
      ;;
 
8476
 
8443
8477
    osf3* | osf4* | osf5*)
8444
8478
      lt_prog_compiler_wl='-Wl,'
8445
8479
      # All OSF/1 code is PIC.
8502
8536
    esac
8503
8537
  fi
8504
8538
 
 
8539
case $host_os in
 
8540
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8541
  *djgpp*)
 
8542
    lt_prog_compiler_pic=
 
8543
    ;;
 
8544
  *)
 
8545
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8546
    ;;
 
8547
esac
8505
8548
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8506
8549
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8507
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
8508
8556
#
8509
8557
# Check to make sure the PIC flag actually works.
8510
8558
#
8511
8559
if test -n "$lt_prog_compiler_pic"; then
8512
 
 
8513
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8560
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8514
8561
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8515
8562
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8516
8563
  echo $ECHO_N "(cached) $ECHO_C" >&6
8517
8564
else
8518
8565
  lt_cv_prog_compiler_pic_works=no
8519
 
  ac_outfile=conftest.$ac_objext
 
8566
   ac_outfile=conftest.$ac_objext
8520
8567
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8521
8568
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8522
8569
   # Insert the option either (1) after the last *FLAGS variable, or
8528
8575
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529
8576
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530
8577
   -e 's:$: $lt_compiler_flag:'`
8531
 
   (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
 
8578
   (eval echo "\"\$as_me:8578: $lt_compile\"" >&5)
8532
8579
   (eval "$lt_compile" 2>conftest.err)
8533
8580
   ac_status=$?
8534
8581
   cat conftest.err >&5
8535
 
   echo "$as_me:8535: \$? = $ac_status" >&5
 
8582
   echo "$as_me:8582: \$? = $ac_status" >&5
8536
8583
   if (exit $ac_status) && test -s "$ac_outfile"; then
8537
8584
     # The compiler can only warn and ignore the option if not recognized
8538
8585
     # So say no if there are warnings other than the usual output.
8539
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8586
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8540
8587
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8541
8588
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8542
8589
       lt_cv_prog_compiler_pic_works=yes
8543
8590
     fi
8544
8591
   fi
8545
 
   $rm conftest*
 
8592
   $RM conftest*
8546
8593
 
8547
8594
fi
8548
8595
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8559
8606
fi
8560
8607
 
8561
8608
fi
8562
 
case $host_os in
8563
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8564
 
  *djgpp*)
8565
 
    lt_prog_compiler_pic=
8566
 
    ;;
8567
 
  *)
8568
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8569
 
    ;;
8570
 
esac
 
8609
 
 
8610
 
 
8611
 
 
8612
 
 
8613
 
8571
8614
 
8572
8615
#
8573
8616
# Check to make sure the static flag actually works.
8588
8631
     if test -s conftest.err; then
8589
8632
       # Append any errors to the config.log.
8590
8633
       cat conftest.err 1>&5
8591
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8634
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8592
8635
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8593
8636
       if diff conftest.exp conftest.er2 >/dev/null; then
8594
8637
         lt_cv_prog_compiler_static_works=yes
8597
8640
       lt_cv_prog_compiler_static_works=yes
8598
8641
     fi
8599
8642
   fi
8600
 
   $rm -r conftest*
 
8643
   $RM -r conftest*
8601
8644
   LDFLAGS="$save_LDFLAGS"
8602
8645
 
8603
8646
fi
8611
8654
fi
8612
8655
 
8613
8656
 
8614
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8615
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8616
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8618
 
else
8619
 
  lt_cv_prog_compiler_c_o=no
8620
 
   $rm -r conftest 2>/dev/null
8621
 
   mkdir conftest
8622
 
   cd conftest
8623
 
   mkdir out
8624
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625
 
 
8626
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8627
 
   # Insert the option either (1) after the last *FLAGS variable, or
8628
 
   # (2) before a word containing "conftest.", or (3) at the end.
8629
 
   # Note that $ac_compile itself does not contain backslashes and begins
8630
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8631
 
   lt_compile=`echo "$ac_compile" | $SED \
8632
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634
 
   -e 's:$: $lt_compiler_flag:'`
8635
 
   (eval echo "\"\$as_me:8635: $lt_compile\"" >&5)
8636
 
   (eval "$lt_compile" 2>out/conftest.err)
8637
 
   ac_status=$?
8638
 
   cat out/conftest.err >&5
8639
 
   echo "$as_me:8639: \$? = $ac_status" >&5
8640
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8641
 
   then
8642
 
     # The compiler can only warn and ignore the option if not recognized
8643
 
     # So say no if there are warnings
8644
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8645
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8646
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8647
 
       lt_cv_prog_compiler_c_o=yes
8648
 
     fi
8649
 
   fi
8650
 
   chmod u+w . 2>&5
8651
 
   $rm conftest*
8652
 
   # SGI C++ compiler will create directory out/ii_files/ for
8653
 
   # template instantiation
8654
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8655
 
   $rm out/* && rmdir out
8656
 
   cd ..
8657
 
   rmdir conftest
8658
 
   $rm conftest*
8659
 
 
8660
 
fi
8661
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8662
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8657
 
 
8658
 
 
8659
 
 
8660
 
 
8661
 
 
8662
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8663
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8664
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8666
else
 
8667
  lt_cv_prog_compiler_c_o=no
 
8668
   $RM -r conftest 2>/dev/null
 
8669
   mkdir conftest
 
8670
   cd conftest
 
8671
   mkdir out
 
8672
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8673
 
 
8674
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8675
   # Insert the option either (1) after the last *FLAGS variable, or
 
8676
   # (2) before a word containing "conftest.", or (3) at the end.
 
8677
   # Note that $ac_compile itself does not contain backslashes and begins
 
8678
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8679
   lt_compile=`echo "$ac_compile" | $SED \
 
8680
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8681
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8682
   -e 's:$: $lt_compiler_flag:'`
 
8683
   (eval echo "\"\$as_me:8683: $lt_compile\"" >&5)
 
8684
   (eval "$lt_compile" 2>out/conftest.err)
 
8685
   ac_status=$?
 
8686
   cat out/conftest.err >&5
 
8687
   echo "$as_me:8687: \$? = $ac_status" >&5
 
8688
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8689
   then
 
8690
     # The compiler can only warn and ignore the option if not recognized
 
8691
     # So say no if there are warnings
 
8692
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8693
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8694
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8695
       lt_cv_prog_compiler_c_o=yes
 
8696
     fi
 
8697
   fi
 
8698
   chmod u+w . 2>&5
 
8699
   $RM conftest*
 
8700
   # SGI C++ compiler will create directory out/ii_files/ for
 
8701
   # template instantiation
 
8702
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8703
   $RM out/* && rmdir out
 
8704
   cd ..
 
8705
   $RM -r conftest
 
8706
   $RM conftest*
 
8707
 
 
8708
fi
 
8709
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8710
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8711
 
 
8712
 
 
8713
 
 
8714
 
 
8715
 
 
8716
 
 
8717
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8718
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8719
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8721
else
 
8722
  lt_cv_prog_compiler_c_o=no
 
8723
   $RM -r conftest 2>/dev/null
 
8724
   mkdir conftest
 
8725
   cd conftest
 
8726
   mkdir out
 
8727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8728
 
 
8729
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8730
   # Insert the option either (1) after the last *FLAGS variable, or
 
8731
   # (2) before a word containing "conftest.", or (3) at the end.
 
8732
   # Note that $ac_compile itself does not contain backslashes and begins
 
8733
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8734
   lt_compile=`echo "$ac_compile" | $SED \
 
8735
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8736
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8737
   -e 's:$: $lt_compiler_flag:'`
 
8738
   (eval echo "\"\$as_me:8738: $lt_compile\"" >&5)
 
8739
   (eval "$lt_compile" 2>out/conftest.err)
 
8740
   ac_status=$?
 
8741
   cat out/conftest.err >&5
 
8742
   echo "$as_me:8742: \$? = $ac_status" >&5
 
8743
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8744
   then
 
8745
     # The compiler can only warn and ignore the option if not recognized
 
8746
     # So say no if there are warnings
 
8747
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8748
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8749
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8750
       lt_cv_prog_compiler_c_o=yes
 
8751
     fi
 
8752
   fi
 
8753
   chmod u+w . 2>&5
 
8754
   $RM conftest*
 
8755
   # SGI C++ compiler will create directory out/ii_files/ for
 
8756
   # template instantiation
 
8757
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8758
   $RM out/* && rmdir out
 
8759
   cd ..
 
8760
   $RM -r conftest
 
8761
   $RM conftest*
 
8762
 
 
8763
fi
 
8764
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8765
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8766
 
 
8767
 
8663
8768
 
8664
8769
 
8665
8770
hard_links="nottested"
8668
8773
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8669
8774
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8670
8775
  hard_links=yes
8671
 
  $rm conftest*
 
8776
  $RM conftest*
8672
8777
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8673
8778
  touch conftest.a
8674
8779
  ln conftest.a conftest.b 2>&5 || hard_links=no
8684
8789
  need_locks=no
8685
8790
fi
8686
8791
 
8687
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8688
8798
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8689
8799
 
8690
8800
  runpath_var=
8691
8801
  allow_undefined_flag=
8692
 
  enable_shared_with_static_runtimes=no
 
8802
  always_export_symbols=no
8693
8803
  archive_cmds=
8694
8804
  archive_expsym_cmds=
8695
 
  old_archive_From_new_cmds=
8696
 
  old_archive_from_expsyms_cmds=
 
8805
  compiler_needs_object=no
 
8806
  enable_shared_with_static_runtimes=no
8697
8807
  export_dynamic_flag_spec=
8698
 
  whole_archive_flag_spec=
8699
 
  thread_safe_flag_spec=
 
8808
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8809
  hardcode_automatic=no
 
8810
  hardcode_direct=no
 
8811
  hardcode_direct_absolute=no
8700
8812
  hardcode_libdir_flag_spec=
8701
8813
  hardcode_libdir_flag_spec_ld=
8702
8814
  hardcode_libdir_separator=
8703
 
  hardcode_direct=no
8704
8815
  hardcode_minus_L=no
8705
8816
  hardcode_shlibpath_var=unsupported
 
8817
  inherit_rpath=no
8706
8818
  link_all_deplibs=unknown
8707
 
  hardcode_automatic=no
8708
8819
  module_cmds=
8709
8820
  module_expsym_cmds=
8710
 
  always_export_symbols=no
8711
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8821
  old_archive_from_new_cmds=
 
8822
  old_archive_from_expsyms_cmds=
 
8823
  thread_safe_flag_spec=
 
8824
  whole_archive_flag_spec=
8712
8825
  # include_expsyms should be a list of space-separated symbols to be *always*
8713
8826
  # included in the symbol list
8714
8827
  include_expsyms=
8724
8837
  # preloaded symbol tables.
8725
8838
  # Exclude shared library initialization/finalization symbols.
8726
8839
  extract_expsyms_cmds=
8727
 
  # Just being paranoid about ensuring that cc_basename is set.
8728
 
  for cc_temp in $compiler""; do
8729
 
  case $cc_temp in
8730
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8731
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8732
 
    \-*) ;;
8733
 
    *) break;;
8734
 
  esac
8735
 
done
8736
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8737
8840
 
8738
8841
  case $host_os in
8739
 
  cygwin* | mingw* | pw32*)
 
8842
  cygwin* | mingw* | pw32* | cegcc*)
8740
8843
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8741
8844
    # When not using gcc, we currently assume that we are using
8742
8845
    # Microsoft Visual C++.
8762
8865
    # are reset later if shared libraries are not supported. Putting them
8763
8866
    # here allows them to be overridden if necessary.
8764
8867
    runpath_var=LD_RUN_PATH
8765
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8868
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766
8869
    export_dynamic_flag_spec='${wl}--export-dynamic'
8767
8870
    # ancient GNU ld didn't support --whole-archive et. al.
8768
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8769
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8770
 
      else
8771
 
        whole_archive_flag_spec=
 
8871
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8872
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8873
    else
 
8874
      whole_archive_flag_spec=
8772
8875
    fi
8773
8876
    supports_anon_versioning=no
8774
 
    case `$LD -v 2>/dev/null` in
 
8877
    case `$LD -v 2>&1` in
8775
8878
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8776
8879
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8777
8880
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8785
8888
      # On AIX/PPC, the GNU linker is very broken
8786
8889
      if test "$host_cpu" != ia64; then
8787
8890
        ld_shlibs=no
8788
 
        cat <<EOF 1>&2
 
8891
        cat <<_LT_EOF 1>&2
8789
8892
 
8790
8893
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8791
8894
*** to be unable to reliably create shared libraries on AIX.
8793
8896
*** really care for shared libraries, you may want to modify your PATH
8794
8897
*** so that a non-GNU linker is found, and then restart.
8795
8898
 
8796
 
EOF
 
8899
_LT_EOF
8797
8900
      fi
8798
8901
      ;;
8799
8902
 
8800
8903
    amigaos*)
8801
 
      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)'
8802
 
      hardcode_libdir_flag_spec='-L$libdir'
8803
 
      hardcode_minus_L=yes
8804
 
 
8805
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8806
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8807
 
      # to version 4, is to share data among multiple programs linked
8808
 
      # with the same dynamic library.  Since this doesn't match the
8809
 
      # behavior of shared libraries on other platforms, we can't use
8810
 
      # them.
8811
 
      ld_shlibs=no
 
8904
      case $host_cpu in
 
8905
      powerpc)
 
8906
            # see comment about AmigaOS4 .so support
 
8907
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8908
            archive_expsym_cmds=''
 
8909
        ;;
 
8910
      m68k)
 
8911
            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)'
 
8912
            hardcode_libdir_flag_spec='-L$libdir'
 
8913
            hardcode_minus_L=yes
 
8914
        ;;
 
8915
      esac
8812
8916
      ;;
8813
8917
 
8814
8918
    beos*)
8815
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8919
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8816
8920
        allow_undefined_flag=unsupported
8817
8921
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8818
8922
        # support --undefined.  This deserves some investigation.  FIXME
8822
8926
      fi
8823
8927
      ;;
8824
8928
 
8825
 
    cygwin* | mingw* | pw32*)
8826
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8929
    cygwin* | mingw* | pw32* | cegcc*)
 
8930
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8827
8931
      # as there is no search path for DLLs.
8828
8932
      hardcode_libdir_flag_spec='-L$libdir'
8829
8933
      allow_undefined_flag=unsupported
8830
8934
      always_export_symbols=no
8831
8935
      enable_shared_with_static_runtimes=yes
8832
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8936
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8833
8937
 
8834
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8938
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8835
8939
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836
8940
        # If the export-symbols file already is a .def file (1st line
8837
8941
        # is EXPORTS), use it as is; otherwise, prepend...
8862
8966
      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'
8863
8967
      ;;
8864
8968
 
8865
 
    gnu* | linux* | k*bsd*-gnu)
8866
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8969
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8970
      tmp_diet=no
 
8971
      if test "$host_os" = linux-dietlibc; then
 
8972
        case $cc_basename in
 
8973
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8974
        esac
 
8975
      fi
 
8976
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8977
         && test "$tmp_diet" = no
 
8978
      then
8867
8979
        tmp_addflag=
 
8980
        tmp_sharedflag='-shared'
8868
8981
        case $cc_basename,$host_cpu in
8869
 
        pgcc*)                          # Portland Group C compiler
8870
 
          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'
 
8982
        pgcc*)                          # Portland Group C compiler
 
8983
          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'
8871
8984
          tmp_addflag=' $pic_flag'
8872
8985
          ;;
8873
8986
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8874
 
          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'
 
8987
          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'
8875
8988
          tmp_addflag=' $pic_flag -Mnomain' ;;
8876
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8989
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8877
8990
          tmp_addflag=' -i_dynamic' ;;
8878
8991
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8879
8992
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8880
8993
        ifc* | ifort*)                  # Intel Fortran compiler
8881
8994
          tmp_addflag=' -nofor_main' ;;
 
8995
        lf95*)                          # Lahey Fortran 8.1
 
8996
          whole_archive_flag_spec=
 
8997
          tmp_sharedflag='--shared' ;;
 
8998
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8999
          tmp_sharedflag='-qmkshrobj'
 
9000
          tmp_addflag= ;;
8882
9001
        esac
8883
9002
        case `$CC -V 2>&1 | sed 5q` in
8884
9003
        *Sun\ C*)                       # Sun C 5.9
8885
 
          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'
 
9004
          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'
 
9005
          compiler_needs_object=yes
8886
9006
          tmp_sharedflag='-G' ;;
8887
9007
        *Sun\ F*)                       # Sun Fortran 8.3
8888
9008
          tmp_sharedflag='-G' ;;
8889
 
        *)
8890
 
          tmp_sharedflag='-shared' ;;
8891
9009
        esac
8892
9010
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893
9011
 
8894
 
        if test $supports_anon_versioning = yes; then
8895
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8896
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8897
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8898
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8899
 
        fi
8900
 
        link_all_deplibs=no
 
9012
        if test "x$supports_anon_versioning" = xyes; then
 
9013
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9014
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9015
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9016
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9017
        fi
 
9018
 
 
9019
        case $cc_basename in
 
9020
        xlf*)
 
9021
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9022
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9023
          hardcode_libdir_flag_spec=
 
9024
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9025
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9026
          if test "x$supports_anon_versioning" = xyes; then
 
9027
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9028
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9029
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9030
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9031
          fi
 
9032
          ;;
 
9033
        esac
8901
9034
      else
8902
 
        ld_shlibs=no
 
9035
        ld_shlibs=no
8903
9036
      fi
8904
9037
      ;;
8905
9038
 
8906
 
    netbsd* | netbsdelf*-gnu)
8907
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9039
    netbsd*)
 
9040
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908
9041
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8909
9042
        wlarc=
8910
9043
      else
8914
9047
      ;;
8915
9048
 
8916
9049
    solaris*)
8917
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9050
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8918
9051
        ld_shlibs=no
8919
 
        cat <<EOF 1>&2
 
9052
        cat <<_LT_EOF 1>&2
8920
9053
 
8921
9054
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8922
9055
*** create shared libraries on Solaris systems.  Therefore, libtool
8925
9058
*** your PATH or compiler configuration so that the native linker is
8926
9059
*** used, and then restart.
8927
9060
 
8928
 
EOF
8929
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9061
_LT_EOF
 
9062
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8930
9063
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931
9064
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932
9065
      else
8950
9083
_LT_EOF
8951
9084
        ;;
8952
9085
        *)
8953
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8954
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8955
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8956
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
9086
          # For security reasons, it is highly recommended that you always
 
9087
          # use absolute paths for naming shared libraries, and exclude the
 
9088
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9089
          # requires that you compile everything twice, which is a pain.
 
9090
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9091
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9092
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9093
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957
9094
          else
8958
9095
            ld_shlibs=no
8959
9096
          fi
8969
9106
      ;;
8970
9107
 
8971
9108
    *)
8972
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9109
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973
9110
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974
9111
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975
9112
      else
9011
9148
      else
9012
9149
        # If we're using GNU nm, then we don't want the "-C" option.
9013
9150
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9014
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9015
 
          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'
 
9151
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9152
          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'
9016
9153
        else
9017
 
          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'
 
9154
          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'
9018
9155
        fi
9019
9156
        aix_use_runtimelinking=no
9020
9157
 
9023
9160
        # need to do runtime linking.
9024
9161
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9025
9162
          for ld_flag in $LDFLAGS; do
9026
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9027
 
            aix_use_runtimelinking=yes
9028
 
            break
9029
 
          fi
 
9163
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9164
            aix_use_runtimelinking=yes
 
9165
            break
 
9166
          fi
9030
9167
          done
9031
9168
          ;;
9032
9169
        esac
9043
9180
 
9044
9181
      archive_cmds=''
9045
9182
      hardcode_direct=yes
 
9183
      hardcode_direct_absolute=yes
9046
9184
      hardcode_libdir_separator=':'
9047
9185
      link_all_deplibs=yes
 
9186
      file_list_spec='${wl}-f,'
9048
9187
 
9049
9188
      if test "$GCC" = yes; then
9050
9189
        case $host_os in aix4.[012]|aix4.[012].*)
9051
9190
        # We only want to do this on AIX 4.2 and lower, the check
9052
9191
        # below for broken collect2 doesn't work under 4.3+
9053
9192
          collect2name=`${CC} -print-prog-name=collect2`
9054
 
          if test -f "$collect2name" && \
9055
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9193
          if test -f "$collect2name" &&
 
9194
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9056
9195
          then
9057
 
          # We have reworked collect2
9058
 
          :
 
9196
          # We have reworked collect2
 
9197
          :
9059
9198
          else
9060
 
          # We have old collect2
9061
 
          hardcode_direct=unsupported
9062
 
          # It fails to find uninstalled libraries when the uninstalled
9063
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9064
 
          # to unsupported forces relinking
9065
 
          hardcode_minus_L=yes
9066
 
          hardcode_libdir_flag_spec='-L$libdir'
9067
 
          hardcode_libdir_separator=
 
9199
          # We have old collect2
 
9200
          hardcode_direct=unsupported
 
9201
          # It fails to find uninstalled libraries when the uninstalled
 
9202
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9203
          # to unsupported forces relinking
 
9204
          hardcode_minus_L=yes
 
9205
          hardcode_libdir_flag_spec='-L$libdir'
 
9206
          hardcode_libdir_separator=
9068
9207
          fi
9069
9208
          ;;
9070
9209
        esac
9075
9214
      else
9076
9215
        # not using gcc
9077
9216
        if test "$host_cpu" = ia64; then
9078
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9079
 
        # chokes on -Wl,-G. The following line is correct:
 
9217
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9218
        # chokes on -Wl,-G. The following line is correct:
9080
9219
          shared_flag='-G'
9081
9220
        else
9082
9221
          if test "$aix_use_runtimelinking" = yes; then
9087
9226
        fi
9088
9227
      fi
9089
9228
 
 
9229
      export_dynamic_flag_spec='${wl}-bexpall'
9090
9230
      # It seems that -bexpall does not export symbols beginning with
9091
9231
      # underscore (_), so it is better to generate a list of symbols to export.
9092
9232
      always_export_symbols=yes
9094
9234
        # Warning - without using the other runtime loading flags (-brtl),
9095
9235
        # -berok will link without error, but may produce a broken library.
9096
9236
        allow_undefined_flag='-berok'
9097
 
       # Determine the default libpath from the value encoded in an empty executable.
9098
 
       cat >conftest.$ac_ext <<_ACEOF
 
9237
        # Determine the default libpath from the value encoded in an
 
9238
        # empty executable.
 
9239
        cat >conftest.$ac_ext <<_ACEOF
9099
9240
/* confdefs.h.  */
9100
9241
_ACEOF
9101
9242
cat confdefs.h >>conftest.$ac_ext
9152
9293
      conftest$ac_exeext conftest.$ac_ext
9153
9294
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9154
9295
 
9155
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9156
 
        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"
9157
 
       else
 
9296
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9297
        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"
 
9298
      else
9158
9299
        if test "$host_cpu" = ia64; then
9159
9300
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9160
9301
          allow_undefined_flag="-z nodefs"
9161
9302
          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"
9162
9303
        else
9163
 
         # Determine the default libpath from the value encoded in an empty executable.
 
9304
         # Determine the default libpath from the value encoded in an
 
9305
         # empty executable.
9164
9306
         cat >conftest.$ac_ext <<_ACEOF
9165
9307
/* confdefs.h.  */
9166
9308
_ACEOF
9233
9375
      ;;
9234
9376
 
9235
9377
    amigaos*)
9236
 
      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)'
9237
 
      hardcode_libdir_flag_spec='-L$libdir'
9238
 
      hardcode_minus_L=yes
9239
 
      # see comment about different semantics on the GNU ld section
9240
 
      ld_shlibs=no
 
9378
      case $host_cpu in
 
9379
      powerpc)
 
9380
            # see comment about AmigaOS4 .so support
 
9381
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9382
            archive_expsym_cmds=''
 
9383
        ;;
 
9384
      m68k)
 
9385
            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)'
 
9386
            hardcode_libdir_flag_spec='-L$libdir'
 
9387
            hardcode_minus_L=yes
 
9388
        ;;
 
9389
      esac
9241
9390
      ;;
9242
9391
 
9243
9392
    bsdi[45]*)
9244
9393
      export_dynamic_flag_spec=-rdynamic
9245
9394
      ;;
9246
9395
 
9247
 
    cygwin* | mingw* | pw32*)
 
9396
    cygwin* | mingw* | pw32* | cegcc*)
9248
9397
      # When not using gcc, we currently assume that we are using
9249
9398
      # Microsoft Visual C++.
9250
9399
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9256
9405
      # Tell ltmain to make .dll files, not .so files.
9257
9406
      shrext_cmds=".dll"
9258
9407
      # FIXME: Setting linknames here is a bad hack.
9259
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9408
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9260
9409
      # The linker will automatically build a .lib file if we build a DLL.
9261
 
      old_archive_From_new_cmds='true'
 
9410
      old_archive_from_new_cmds='true'
9262
9411
      # FIXME: Should let the user specify the lib program.
9263
9412
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9264
9413
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9266
9415
      ;;
9267
9416
 
9268
9417
    darwin* | rhapsody*)
9269
 
      case $host_os in
9270
 
        rhapsody* | darwin1.[012])
9271
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9272
 
         ;;
9273
 
       *) # Darwin 1.3 on
9274
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9275
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9276
 
         else
9277
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
9278
 
             10.[012])
9279
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9280
 
               ;;
9281
 
             10.*)
9282
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9283
 
               ;;
9284
 
           esac
9285
 
         fi
9286
 
         ;;
9287
 
      esac
9288
 
      archive_cmds_need_lc=no
9289
 
      hardcode_direct=no
9290
 
      hardcode_automatic=yes
9291
 
      hardcode_shlibpath_var=unsupported
9292
 
      whole_archive_flag_spec=''
9293
 
      link_all_deplibs=yes
9294
 
    if test "$GCC" = yes ; then
9295
 
        output_verbose_link_cmd='echo'
9296
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9297
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9298
 
        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}"
9299
 
        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}"
9300
 
    else
9301
 
      case $cc_basename in
9302
 
        xlc*)
9303
 
         output_verbose_link_cmd='echo'
9304
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9305
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9306
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9307
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9308
 
          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}'
9309
 
          ;;
9310
 
       *)
9311
 
         ld_shlibs=no
9312
 
          ;;
9313
 
      esac
9314
 
    fi
 
9418
 
 
9419
 
 
9420
  archive_cmds_need_lc=no
 
9421
  hardcode_direct=no
 
9422
  hardcode_automatic=yes
 
9423
  hardcode_shlibpath_var=unsupported
 
9424
  whole_archive_flag_spec=''
 
9425
  link_all_deplibs=yes
 
9426
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9427
  case $cc_basename in
 
9428
     ifort*) _lt_dar_can_shared=yes ;;
 
9429
     *) _lt_dar_can_shared=$GCC ;;
 
9430
  esac
 
9431
  if test "$_lt_dar_can_shared" = "yes"; then
 
9432
    output_verbose_link_cmd=echo
 
9433
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9434
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9435
    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}"
 
9436
    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}"
 
9437
 
 
9438
  else
 
9439
  ld_shlibs=no
 
9440
  fi
 
9441
 
9315
9442
      ;;
9316
9443
 
9317
9444
    dgux*)
9353
9480
 
9354
9481
    hpux9*)
9355
9482
      if test "$GCC" = yes; then
9356
 
        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'
 
9483
        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'
9357
9484
      else
9358
 
        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'
 
9485
        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'
9359
9486
      fi
9360
9487
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9361
9488
      hardcode_libdir_separator=:
9375
9502
      fi
9376
9503
      if test "$with_gnu_ld" = no; then
9377
9504
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9505
        hardcode_libdir_flag_spec_ld='+b $libdir'
9378
9506
        hardcode_libdir_separator=:
9379
 
 
9380
9507
        hardcode_direct=yes
 
9508
        hardcode_direct_absolute=yes
9381
9509
        export_dynamic_flag_spec='${wl}-E'
9382
 
 
9383
9510
        # hardcode_minus_L: Not really in the search PATH,
9384
9511
        # but as the default location of the library.
9385
9512
        hardcode_minus_L=yes
9393
9520
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394
9521
          ;;
9395
9522
        ia64*)
9396
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9523
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397
9524
          ;;
9398
9525
        *)
9399
9526
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418
9545
 
9419
9546
        case $host_cpu in
9420
9547
        hppa*64*|ia64*)
9421
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
9422
9548
          hardcode_direct=no
9423
9549
          hardcode_shlibpath_var=no
9424
9550
          ;;
9425
9551
        *)
9426
9552
          hardcode_direct=yes
 
9553
          hardcode_direct_absolute=yes
9427
9554
          export_dynamic_flag_spec='${wl}-E'
9428
9555
 
9429
9556
          # hardcode_minus_L: Not really in the search PATH,
9436
9563
 
9437
9564
    irix5* | irix6* | nonstopux*)
9438
9565
      if test "$GCC" = yes; then
9439
 
        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'
 
9566
        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'
 
9567
        # Try to use the -exported_symbol ld option, if it does not
 
9568
        # work, assume that -exports_file does not work either and
 
9569
        # implicitly export all symbols.
 
9570
        save_LDFLAGS="$LDFLAGS"
 
9571
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9572
        cat >conftest.$ac_ext <<_ACEOF
 
9573
int foo(void) {}
 
9574
_ACEOF
 
9575
rm -f conftest.$ac_objext conftest$ac_exeext
 
9576
if { (ac_try="$ac_link"
 
9577
case "(($ac_try" in
 
9578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9579
  *) ac_try_echo=$ac_try;;
 
9580
esac
 
9581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9582
  (eval "$ac_link") 2>conftest.er1
 
9583
  ac_status=$?
 
9584
  grep -v '^ *+' conftest.er1 >conftest.err
 
9585
  rm -f conftest.er1
 
9586
  cat conftest.err >&5
 
9587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9588
  (exit $ac_status); } && {
 
9589
         test -z "$ac_c_werror_flag" ||
 
9590
         test ! -s conftest.err
 
9591
       } && test -s conftest$ac_exeext &&
 
9592
       $as_test_x conftest$ac_exeext; then
 
9593
  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'
 
9594
 
 
9595
else
 
9596
  echo "$as_me: failed program was:" >&5
 
9597
sed 's/^/| /' conftest.$ac_ext >&5
 
9598
 
 
9599
 
 
9600
fi
 
9601
 
 
9602
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9603
      conftest$ac_exeext conftest.$ac_ext
 
9604
        LDFLAGS="$save_LDFLAGS"
9440
9605
      else
9441
 
        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'
9442
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9606
        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'
 
9607
        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'
9443
9608
      fi
 
9609
      archive_cmds_need_lc='no'
9444
9610
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445
9611
      hardcode_libdir_separator=:
 
9612
      inherit_rpath=yes
9446
9613
      link_all_deplibs=yes
9447
9614
      ;;
9448
9615
 
9449
 
    netbsd* | netbsdelf*-gnu)
9450
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9616
    netbsd*)
 
9617
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9451
9618
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9452
9619
      else
9453
9620
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9465
9632
      hardcode_shlibpath_var=no
9466
9633
      ;;
9467
9634
 
 
9635
    *nto* | *qnx*)
 
9636
      ;;
 
9637
 
9468
9638
    openbsd*)
9469
9639
      if test -f /usr/libexec/ld.so; then
9470
9640
        hardcode_direct=yes
9471
9641
        hardcode_shlibpath_var=no
9472
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9642
        hardcode_direct_absolute=yes
 
9643
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9473
9644
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9474
9645
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9475
9646
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485
9656
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486
9657
             ;;
9487
9658
          esac
9488
 
        fi
 
9659
        fi
9489
9660
      else
9490
9661
        ld_shlibs=no
9491
9662
      fi
9495
9666
      hardcode_libdir_flag_spec='-L$libdir'
9496
9667
      hardcode_minus_L=yes
9497
9668
      allow_undefined_flag=unsupported
9498
 
      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'
9499
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9669
      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'
 
9670
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9500
9671
      ;;
9501
9672
 
9502
9673
    osf3*)
9503
9674
      if test "$GCC" = yes; then
9504
9675
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9505
 
        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'
 
9676
        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'
9506
9677
      else
9507
9678
        allow_undefined_flag=' -expect_unresolved \*'
9508
 
        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'
 
9679
        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'
9509
9680
      fi
 
9681
      archive_cmds_need_lc='no'
9510
9682
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511
9683
      hardcode_libdir_separator=:
9512
9684
      ;;
9514
9686
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9515
9687
      if test "$GCC" = yes; then
9516
9688
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9517
 
        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'
 
9689
        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'
9518
9690
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519
9691
      else
9520
9692
        allow_undefined_flag=' -expect_unresolved \*'
9521
 
        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'
9522
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9523
 
        $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'
 
9693
        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'
 
9694
        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~
 
9695
        $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'
9524
9696
 
9525
9697
        # Both c and cxx compiler support -rpath directly
9526
9698
        hardcode_libdir_flag_spec='-rpath $libdir'
9527
9699
      fi
 
9700
      archive_cmds_need_lc='no'
9528
9701
      hardcode_libdir_separator=:
9529
9702
      ;;
9530
9703
 
9531
9704
    solaris*)
9532
 
      no_undefined_flag=' -z text'
 
9705
      no_undefined_flag=' -z defs'
9533
9706
      if test "$GCC" = yes; then
9534
9707
        wlarc='${wl}'
9535
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9537
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9708
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9709
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9710
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9538
9711
      else
9539
 
        wlarc=''
9540
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9542
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9712
        case `$CC -V 2>&1` in
 
9713
        *"Compilers 5.0"*)
 
9714
          wlarc=''
 
9715
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9716
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9717
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9718
          ;;
 
9719
        *)
 
9720
          wlarc='${wl}'
 
9721
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9722
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9723
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9724
          ;;
 
9725
        esac
9543
9726
      fi
9544
9727
      hardcode_libdir_flag_spec='-R$libdir'
9545
9728
      hardcode_shlibpath_var=no
9549
9732
        # The compiler driver will combine and reorder linker options,
9550
9733
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9551
9734
        # but is careful enough not to reorder.
9552
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9735
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9553
9736
        if test "$GCC" = yes; then
9554
9737
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9555
9738
        else
9638
9821
      allow_undefined_flag='${wl}-z,nodefs'
9639
9822
      archive_cmds_need_lc=no
9640
9823
      hardcode_shlibpath_var=no
9641
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9824
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9642
9825
      hardcode_libdir_separator=':'
9643
9826
      link_all_deplibs=yes
9644
9827
      export_dynamic_flag_spec='${wl}-Bexport'
9645
9828
      runpath_var='LD_RUN_PATH'
9646
9829
 
9647
9830
      if test "$GCC" = yes; then
9648
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9649
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9831
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9832
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650
9833
      else
9651
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9834
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9835
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653
9836
      fi
9654
9837
      ;;
9655
9838
 
9663
9846
      ld_shlibs=no
9664
9847
      ;;
9665
9848
    esac
 
9849
 
 
9850
    if test x$host_vendor = xsni; then
 
9851
      case $host in
 
9852
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9853
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9854
        ;;
 
9855
      esac
 
9856
    fi
9666
9857
  fi
9667
9858
 
9668
9859
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9669
9860
echo "${ECHO_T}$ld_shlibs" >&6; }
9670
9861
test "$ld_shlibs" = no && can_build_shared=no
9671
9862
 
 
9863
with_gnu_ld=$with_gnu_ld
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
9672
9879
#
9673
9880
# Do we need to explicitly link libc?
9674
9881
#
9688
9895
      # to ld, don't add -lc before -lgcc.
9689
9896
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9690
9897
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9691
 
      $rm conftest*
 
9898
      $RM conftest*
9692
9899
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693
9900
 
9694
9901
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709
9916
        libname=conftest
9710
9917
        lt_save_allow_undefined_flag=$allow_undefined_flag
9711
9918
        allow_undefined_flag=
9712
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9713
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9919
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9920
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9714
9921
  ac_status=$?
9715
9922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716
9923
  (exit $ac_status); }
9723
9930
      else
9724
9931
        cat conftest.err 1>&5
9725
9932
      fi
9726
 
      $rm conftest*
 
9933
      $RM conftest*
9727
9934
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9728
9935
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9729
9936
      ;;
9732
9939
  ;;
9733
9940
esac
9734
9941
 
9735
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
 
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
 
 
9964
 
 
9965
 
 
9966
 
 
9967
 
 
9968
 
 
9969
 
 
9970
 
 
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
10022
 
 
10023
 
 
10024
 
 
10025
 
 
10026
 
 
10027
 
 
10028
 
 
10029
 
 
10030
 
 
10031
 
 
10032
 
 
10033
 
 
10034
 
 
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
 
 
10050
 
 
10051
 
 
10052
 
 
10053
 
 
10054
 
 
10055
 
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9736
10099
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9737
 
library_names_spec=
9738
 
libname_spec='lib$name'
9739
 
soname_spec=
9740
 
shrext_cmds=".so"
9741
 
postinstall_cmds=
9742
 
postuninstall_cmds=
9743
 
finish_cmds=
9744
 
finish_eval=
9745
 
shlibpath_var=
9746
 
shlibpath_overrides_runpath=unknown
9747
 
version_type=none
9748
 
dynamic_linker="$host_os ld.so"
9749
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9750
10100
 
9751
10101
if test "$GCC" = yes; then
9752
10102
  case $host_os in
9754
10104
    *) lt_awk_arg="/^libraries:/" ;;
9755
10105
  esac
9756
10106
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9757
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
10107
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9758
10108
    # if the path contains ";" then we assume it to be the separator
9759
10109
    # otherwise default to the standard path separator (i.e. ":") - it is
9760
10110
    # assumed that no part of a normal pathname contains ";" but that should
9761
10111
    # okay in the real world where ";" in dirpaths is itself problematic.
9762
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10112
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9763
10113
  else
9764
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10114
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9765
10115
  fi
9766
10116
  # Ok, now we have the path, separated by spaces, we can step through it
9767
10117
  # and add multilib dir if necessary.
9775
10125
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9776
10126
    fi
9777
10127
  done
9778
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
10128
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9779
10129
BEGIN {RS=" "; FS="/|\n";} {
9780
10130
  lt_foo="";
9781
10131
  lt_count=0;
9795
10145
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9796
10146
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9797
10147
}'`
9798
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
10148
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9799
10149
else
9800
10150
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9801
10151
fi
 
10152
library_names_spec=
 
10153
libname_spec='lib$name'
 
10154
soname_spec=
 
10155
shrext_cmds=".so"
 
10156
postinstall_cmds=
 
10157
postuninstall_cmds=
 
10158
finish_cmds=
 
10159
finish_eval=
 
10160
shlibpath_var=
 
10161
shlibpath_overrides_runpath=unknown
 
10162
version_type=none
 
10163
dynamic_linker="$host_os ld.so"
 
10164
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9802
10165
need_lib_prefix=unknown
9803
10166
hardcode_into_libs=no
9804
10167
 
9835
10198
      aix4 | aix4.[01] | aix4.[01].*)
9836
10199
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9837
10200
           echo ' yes '
9838
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10201
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9839
10202
        :
9840
10203
      else
9841
10204
        can_build_shared=no
9861
10224
  ;;
9862
10225
 
9863
10226
amigaos*)
9864
 
  library_names_spec='$libname.ixlibrary $libname.a'
9865
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9866
 
  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'
 
10227
  case $host_cpu in
 
10228
  powerpc)
 
10229
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10230
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10232
    ;;
 
10233
  m68k)
 
10234
    library_names_spec='$libname.ixlibrary $libname.a'
 
10235
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10236
    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'
 
10237
    ;;
 
10238
  esac
9867
10239
  ;;
9868
10240
 
9869
10241
beos*)
9886
10258
  # libtool to hard-code these into programs
9887
10259
  ;;
9888
10260
 
9889
 
cygwin* | mingw* | pw32*)
 
10261
cygwin* | mingw* | pw32* | cegcc*)
9890
10262
  version_type=windows
9891
10263
  shrext_cmds=".dll"
9892
10264
  need_version=no
9893
10265
  need_lib_prefix=no
9894
10266
 
9895
10267
  case $GCC,$host_os in
9896
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10268
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9897
10269
    library_names_spec='$libname.dll.a'
9898
10270
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9899
10271
    postinstall_cmds='base_file=`basename \${file}`~
9900
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10272
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9901
10273
      dldir=$destdir/`dirname \$dlpath`~
9902
10274
      test -d \$dldir || mkdir -p \$dldir~
9903
10275
      $install_prog $dir/$dlname \$dldir/$dlname~
9904
 
      chmod a+x \$dldir/$dlname'
 
10276
      chmod a+x \$dldir/$dlname~
 
10277
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10278
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10279
      fi'
9905
10280
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9906
10281
      dlpath=$dir/\$dldll~
9907
 
       $rm \$dlpath'
 
10282
       $RM \$dlpath'
9908
10283
    shlibpath_overrides_runpath=yes
9909
10284
 
9910
10285
    case $host_os in
9913
10288
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9914
10289
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9915
10290
      ;;
9916
 
    mingw*)
 
10291
    mingw* | cegcc*)
9917
10292
      # MinGW DLLs use traditional 'lib' prefix
9918
10293
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9920
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10294
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10295
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9921
10296
        # It is most probably a Windows format PATH printed by
9922
10297
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9923
10298
        # path with ; separators, and with drive letters. We can handle the
9924
10299
        # drive letters (cygwin fileutils understands them), so leave them,
9925
10300
        # especially as we might pass files found there to a mingw objdump,
9926
10301
        # which wouldn't understand a cygwinified path. Ahh.
9927
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10302
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9928
10303
      else
9929
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10304
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9930
10305
      fi
9931
10306
      ;;
9932
10307
    pw32*)
9950
10325
  version_type=darwin
9951
10326
  need_lib_prefix=no
9952
10327
  need_version=no
9953
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10328
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9954
10329
  soname_spec='${libname}${release}${major}$shared_ext'
9955
10330
  shlibpath_overrides_runpath=yes
9956
10331
  shlibpath_var=DYLD_LIBRARY_PATH
10049
10424
    fi
10050
10425
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051
10426
    ;;
10052
 
   hppa*64*)
10053
 
     shrext_cmds='.sl'
10054
 
     hardcode_into_libs=yes
10055
 
     dynamic_linker="$host_os dld.sl"
10056
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10057
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059
 
     soname_spec='${libname}${release}${shared_ext}$major'
10060
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10061
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10062
 
     ;;
10063
 
   *)
 
10427
  hppa*64*)
 
10428
    shrext_cmds='.sl'
 
10429
    hardcode_into_libs=yes
 
10430
    dynamic_linker="$host_os dld.sl"
 
10431
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10432
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10433
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10434
    soname_spec='${libname}${release}${shared_ext}$major'
 
10435
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10436
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10437
    ;;
 
10438
  *)
10064
10439
    shrext_cmds='.sl'
10065
10440
    dynamic_linker="$host_os dld.sl"
10066
10441
    shlibpath_var=SHLIB_PATH
10137
10512
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10138
10513
  shlibpath_var=LD_LIBRARY_PATH
10139
10514
  shlibpath_overrides_runpath=no
 
10515
  # Some binutils ld are patched to set DT_RUNPATH
 
10516
  save_LDFLAGS=$LDFLAGS
 
10517
  save_libdir=$libdir
 
10518
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10519
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10520
  cat >conftest.$ac_ext <<_ACEOF
 
10521
/* confdefs.h.  */
 
10522
_ACEOF
 
10523
cat confdefs.h >>conftest.$ac_ext
 
10524
cat >>conftest.$ac_ext <<_ACEOF
 
10525
/* end confdefs.h.  */
 
10526
 
 
10527
int
 
10528
main ()
 
10529
{
 
10530
 
 
10531
  ;
 
10532
  return 0;
 
10533
}
 
10534
_ACEOF
 
10535
rm -f conftest.$ac_objext conftest$ac_exeext
 
10536
if { (ac_try="$ac_link"
 
10537
case "(($ac_try" in
 
10538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10539
  *) ac_try_echo=$ac_try;;
 
10540
esac
 
10541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10542
  (eval "$ac_link") 2>conftest.er1
 
10543
  ac_status=$?
 
10544
  grep -v '^ *+' conftest.er1 >conftest.err
 
10545
  rm -f conftest.er1
 
10546
  cat conftest.err >&5
 
10547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10548
  (exit $ac_status); } && {
 
10549
         test -z "$ac_c_werror_flag" ||
 
10550
         test ! -s conftest.err
 
10551
       } && test -s conftest$ac_exeext &&
 
10552
       $as_test_x conftest$ac_exeext; then
 
10553
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10554
  shlibpath_overrides_runpath=yes
 
10555
fi
 
10556
 
 
10557
else
 
10558
  echo "$as_me: failed program was:" >&5
 
10559
sed 's/^/| /' conftest.$ac_ext >&5
 
10560
 
 
10561
 
 
10562
fi
 
10563
 
 
10564
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10565
      conftest$ac_exeext conftest.$ac_ext
 
10566
  LDFLAGS=$save_LDFLAGS
 
10567
  libdir=$save_libdir
 
10568
 
10140
10569
  # This implies no fast_install, which is unacceptable.
10141
10570
  # Some rework will be needed to allow for fast_install
10142
10571
  # before this can be enabled.
10144
10573
 
10145
10574
  # Append ld.so.conf contents to the search path
10146
10575
  if test -f /etc/ld.so.conf; then
10147
 
    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' ' '`
 
10576
    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' ' '`
10148
10577
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10149
10578
  fi
10150
10579
 
10157
10586
  dynamic_linker='GNU/Linux ld.so'
10158
10587
  ;;
10159
10588
 
10160
 
netbsdelf*-gnu)
10161
 
  version_type=linux
10162
 
  need_lib_prefix=no
10163
 
  need_version=no
10164
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165
 
  soname_spec='${libname}${release}${shared_ext}$major'
10166
 
  shlibpath_var=LD_LIBRARY_PATH
10167
 
  shlibpath_overrides_runpath=no
10168
 
  hardcode_into_libs=yes
10169
 
  dynamic_linker='NetBSD ld.elf_so'
10170
 
  ;;
10171
 
 
10172
10589
netbsd*)
10173
10590
  version_type=sunos
10174
10591
  need_lib_prefix=no
10175
10592
  need_version=no
10176
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10593
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10177
10594
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10178
10595
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10179
10596
    dynamic_linker='NetBSD (a.out) ld.so'
10194
10611
  shlibpath_overrides_runpath=yes
10195
10612
  ;;
10196
10613
 
10197
 
nto-qnx*)
10198
 
  version_type=linux
 
10614
*nto* | *qnx*)
 
10615
  version_type=qnx
10199
10616
  need_lib_prefix=no
10200
10617
  need_version=no
10201
10618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202
10619
  soname_spec='${libname}${release}${shared_ext}$major'
10203
10620
  shlibpath_var=LD_LIBRARY_PATH
10204
 
  shlibpath_overrides_runpath=yes
 
10621
  shlibpath_overrides_runpath=no
 
10622
  hardcode_into_libs=yes
 
10623
  dynamic_linker='ldqnx.so'
10205
10624
  ;;
10206
10625
 
10207
10626
openbsd*)
10210
10629
  need_lib_prefix=no
10211
10630
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10212
10631
  case $host_os in
10213
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10214
 
    *)                         need_version=no  ;;
 
10632
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10633
    *)                          need_version=no  ;;
10215
10634
  esac
10216
10635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217
10636
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218
10637
  shlibpath_var=LD_LIBRARY_PATH
10219
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10638
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10220
10639
    case $host_os in
10221
10640
      openbsd2.[89] | openbsd2.[89].*)
10222
10641
        shlibpath_overrides_runpath=no
10288
10707
    sni)
10289
10708
      shlibpath_overrides_runpath=no
10290
10709
      need_lib_prefix=no
10291
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10292
10710
      runpath_var=LD_RUN_PATH
10293
10711
      ;;
10294
10712
    siemens)
10319
10737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10320
10738
  soname_spec='${libname}${release}${shared_ext}$major'
10321
10739
  shlibpath_var=LD_LIBRARY_PATH
 
10740
  shlibpath_overrides_runpath=yes
10322
10741
  hardcode_into_libs=yes
10323
10742
  if test "$with_gnu_ld" = yes; then
10324
10743
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10325
 
    shlibpath_overrides_runpath=no
10326
10744
  else
10327
10745
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10328
 
    shlibpath_overrides_runpath=yes
10329
10746
    case $host_os in
10330
10747
      sco3.2v5*)
10331
10748
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10335
10752
  sys_lib_dlsearch_path_spec='/usr/lib'
10336
10753
  ;;
10337
10754
 
 
10755
tpf*)
 
10756
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10757
  version_type=linux
 
10758
  need_lib_prefix=no
 
10759
  need_version=no
 
10760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10761
  shlibpath_var=LD_LIBRARY_PATH
 
10762
  shlibpath_overrides_runpath=no
 
10763
  hardcode_into_libs=yes
 
10764
  ;;
 
10765
 
10338
10766
uts4*)
10339
10767
  version_type=linux
10340
10768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350
10778
echo "${ECHO_T}$dynamic_linker" >&6; }
10351
10779
test "$dynamic_linker" = no && can_build_shared=no
10352
10780
 
10353
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10355
 
else
10356
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10357
 
fi
10358
 
 
10359
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10360
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10362
 
else
10363
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10364
 
fi
10365
 
 
10366
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10367
 
 
10368
10781
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10369
10782
if test "$GCC" = yes; then
10370
10783
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10371
10784
fi
10372
10785
 
10373
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10786
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10787
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10788
fi
 
10789
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10790
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10791
fi
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
 
 
10798
 
 
10799
 
 
10800
 
 
10801
 
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
 
10813
 
 
10814
 
 
10815
 
 
10816
 
 
10817
 
 
10818
 
 
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
 
 
10830
 
 
10831
 
 
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
 
 
10864
 
 
10865
 
 
10866
 
 
10867
 
 
10868
 
 
10869
 
 
10870
 
 
10871
 
 
10872
 
 
10873
 
 
10874
 
 
10875
 
 
10876
 
 
10877
 
 
10878
 
 
10879
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10374
10880
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10375
10881
hardcode_action=
10376
 
if test -n "$hardcode_libdir_flag_spec" || \
10377
 
   test -n "$runpath_var" || \
 
10882
if test -n "$hardcode_libdir_flag_spec" ||
 
10883
   test -n "$runpath_var" ||
10378
10884
   test "X$hardcode_automatic" = "Xyes" ; then
10379
10885
 
10380
 
  # We can hardcode non-existant directories.
 
10886
  # We can hardcode non-existent directories.
10381
10887
  if test "$hardcode_direct" != no &&
10382
10888
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10383
10889
     # have to relink, otherwise we might link with an installed library
10384
10890
     # when we should be linking with a yet-to-be-installed one
10385
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10891
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10386
10892
     test "$hardcode_minus_L" != no; then
10387
10893
    # Linking always hardcodes the temporary library directory.
10388
10894
    hardcode_action=relink
10398
10904
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10399
10905
echo "${ECHO_T}$hardcode_action" >&6; }
10400
10906
 
10401
 
if test "$hardcode_action" = relink; then
 
10907
if test "$hardcode_action" = relink ||
 
10908
   test "$inherit_rpath" = yes; then
10402
10909
  # Fast installation is not supported
10403
10910
  enable_fast_install=no
10404
10911
elif test "$shlibpath_overrides_runpath" = yes ||
10407
10914
  enable_fast_install=needless
10408
10915
fi
10409
10916
 
10410
 
striplib=
10411
 
old_striplib=
10412
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10413
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10414
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10415
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10416
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10417
 
  { echo "$as_me:$LINENO: result: yes" >&5
10418
 
echo "${ECHO_T}yes" >&6; }
10419
 
else
10420
 
# FIXME - insert some real tests, host_os isn't really good enough
10421
 
  case $host_os in
10422
 
   darwin*)
10423
 
       if test -n "$STRIP" ; then
10424
 
         striplib="$STRIP -x"
10425
 
         old_striplib="$STRIP -S"
10426
 
         { echo "$as_me:$LINENO: result: yes" >&5
10427
 
echo "${ECHO_T}yes" >&6; }
10428
 
       else
10429
 
  { echo "$as_me:$LINENO: result: no" >&5
10430
 
echo "${ECHO_T}no" >&6; }
10431
 
fi
10432
 
       ;;
10433
 
   *)
10434
 
  { echo "$as_me:$LINENO: result: no" >&5
10435
 
echo "${ECHO_T}no" >&6; }
10436
 
    ;;
10437
 
  esac
10438
 
fi
10439
 
 
10440
 
if test "x$enable_dlopen" != xyes; then
 
10917
 
 
10918
 
 
10919
 
 
10920
 
 
10921
 
 
10922
  if test "x$enable_dlopen" != xyes; then
10441
10923
  enable_dlopen=unknown
10442
10924
  enable_dlopen_self=unknown
10443
10925
  enable_dlopen_self_static=unknown
10452
10934
    lt_cv_dlopen_self=yes
10453
10935
    ;;
10454
10936
 
10455
 
  mingw* | pw32*)
 
10937
  mingw* | pw32* | cegcc*)
10456
10938
    lt_cv_dlopen="LoadLibrary"
10457
10939
    lt_cv_dlopen_libs=
10458
 
   ;;
 
10940
    ;;
10459
10941
 
10460
10942
  cygwin*)
10461
10943
    lt_cv_dlopen="dlopen"
10462
10944
    lt_cv_dlopen_libs=
10463
 
   ;;
 
10945
    ;;
10464
10946
 
10465
10947
  darwin*)
10466
10948
  # if libdl is installed we need to link against it
10535
11017
 
10536
11018
fi
10537
11019
 
10538
 
   ;;
 
11020
    ;;
10539
11021
 
10540
11022
  *)
10541
11023
    { echo "$as_me:$LINENO: checking for shl_load" >&5
11008
11490
else
11009
11491
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11010
11492
  lt_status=$lt_dlunknown
11011
 
  cat > conftest.$ac_ext <<EOF
11012
 
#line 11012 "configure"
 
11493
  cat > conftest.$ac_ext <<_LT_EOF
 
11494
#line 11494 "configure"
11013
11495
#include "confdefs.h"
11014
11496
 
11015
11497
#if HAVE_DLFCN_H
11050
11532
#  endif
11051
11533
#endif
11052
11534
 
11053
 
#ifdef __cplusplus
11054
 
extern "C" void exit (int);
11055
 
#endif
11056
 
 
11057
11535
void fnord() { int i=42;}
11058
11536
int main ()
11059
11537
{
11069
11547
  else
11070
11548
    puts (dlerror ());
11071
11549
 
11072
 
    exit (status);
 
11550
  return status;
11073
11551
}
11074
 
EOF
 
11552
_LT_EOF
11075
11553
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076
11554
  (eval $ac_link) 2>&5
11077
11555
  ac_status=$?
11108
11586
else
11109
11587
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11110
11588
  lt_status=$lt_dlunknown
11111
 
  cat > conftest.$ac_ext <<EOF
11112
 
#line 11112 "configure"
 
11589
  cat > conftest.$ac_ext <<_LT_EOF
 
11590
#line 11590 "configure"
11113
11591
#include "confdefs.h"
11114
11592
 
11115
11593
#if HAVE_DLFCN_H
11150
11628
#  endif
11151
11629
#endif
11152
11630
 
11153
 
#ifdef __cplusplus
11154
 
extern "C" void exit (int);
11155
 
#endif
11156
 
 
11157
11631
void fnord() { int i=42;}
11158
11632
int main ()
11159
11633
{
11169
11643
  else
11170
11644
    puts (dlerror ());
11171
11645
 
11172
 
    exit (status);
 
11646
  return status;
11173
11647
}
11174
 
EOF
 
11648
_LT_EOF
11175
11649
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176
11650
  (eval $ac_link) 2>&5
11177
11651
  ac_status=$?
11215
11689
fi
11216
11690
 
11217
11691
 
11218
 
# Report which library types will actually be built
11219
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11692
 
 
11693
 
 
11694
 
 
11695
 
 
11696
 
 
11697
 
 
11698
 
 
11699
 
 
11700
 
 
11701
 
 
11702
 
 
11703
 
 
11704
 
 
11705
 
 
11706
 
 
11707
striplib=
 
11708
old_striplib=
 
11709
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11710
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
11711
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11712
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11713
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11714
  { echo "$as_me:$LINENO: result: yes" >&5
 
11715
echo "${ECHO_T}yes" >&6; }
 
11716
else
 
11717
# FIXME - insert some real tests, host_os isn't really good enough
 
11718
  case $host_os in
 
11719
  darwin*)
 
11720
    if test -n "$STRIP" ; then
 
11721
      striplib="$STRIP -x"
 
11722
      old_striplib="$STRIP -S"
 
11723
      { echo "$as_me:$LINENO: result: yes" >&5
 
11724
echo "${ECHO_T}yes" >&6; }
 
11725
    else
 
11726
      { echo "$as_me:$LINENO: result: no" >&5
 
11727
echo "${ECHO_T}no" >&6; }
 
11728
    fi
 
11729
    ;;
 
11730
  *)
 
11731
    { echo "$as_me:$LINENO: result: no" >&5
 
11732
echo "${ECHO_T}no" >&6; }
 
11733
    ;;
 
11734
  esac
 
11735
fi
 
11736
 
 
11737
 
 
11738
 
 
11739
 
 
11740
 
 
11741
 
 
11742
 
 
11743
 
 
11744
 
 
11745
 
 
11746
 
 
11747
 
 
11748
  # Report which library types will actually be built
 
11749
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11220
11750
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11221
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11751
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11222
11752
echo "${ECHO_T}$can_build_shared" >&6; }
11223
11753
 
11224
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11754
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11225
11755
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11226
 
test "$can_build_shared" = "no" && enable_shared=no
11227
 
 
11228
 
# On AIX, shared libraries and static libraries use the same namespace, and
11229
 
# are all built from PIC.
11230
 
case $host_os in
11231
 
aix3*)
11232
 
  test "$enable_shared" = yes && enable_static=no
11233
 
  if test -n "$RANLIB"; then
11234
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11235
 
    postinstall_cmds='$RANLIB $lib'
11236
 
  fi
11237
 
  ;;
11238
 
 
11239
 
aix[4-9]*)
11240
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11756
  test "$can_build_shared" = "no" && enable_shared=no
 
11757
 
 
11758
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11759
  # are all built from PIC.
 
11760
  case $host_os in
 
11761
  aix3*)
11241
11762
    test "$enable_shared" = yes && enable_static=no
11242
 
  fi
11243
 
    ;;
11244
 
esac
11245
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11763
    if test -n "$RANLIB"; then
 
11764
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11765
      postinstall_cmds='$RANLIB $lib'
 
11766
    fi
 
11767
    ;;
 
11768
 
 
11769
  aix[4-9]*)
 
11770
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11771
      test "$enable_shared" = yes && enable_static=no
 
11772
    fi
 
11773
    ;;
 
11774
  esac
 
11775
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
11246
11776
echo "${ECHO_T}$enable_shared" >&6; }
11247
11777
 
11248
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11778
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11249
11779
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11250
 
# Make sure either enable_shared or enable_static is yes.
11251
 
test "$enable_shared" = yes || enable_static=yes
11252
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
11780
  # Make sure either enable_shared or enable_static is yes.
 
11781
  test "$enable_shared" = yes || enable_static=yes
 
11782
  { echo "$as_me:$LINENO: result: $enable_static" >&5
11253
11783
echo "${ECHO_T}$enable_static" >&6; }
11254
11784
 
11255
 
# The else clause should only fire when bootstrapping the
11256
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
11257
 
# with your package, and you will get complaints that there are
11258
 
# no rules to generate ltmain.sh.
11259
 
if test -f "$ltmain"; then
11260
 
  # See if we are running on zsh, and set the options which allow our commands through
11261
 
  # without removal of \ escapes.
11262
 
  if test -n "${ZSH_VERSION+set}" ; then
11263
 
    setopt NO_GLOB_SUBST
11264
 
  fi
11265
 
  # Now quote all the things that may contain metacharacters while being
11266
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11267
 
  # variables and quote the copies for generation of the libtool script.
11268
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11269
 
    SED SHELL STRIP \
11270
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11271
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11272
 
    deplibs_check_method reload_flag reload_cmds need_locks \
11273
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11274
 
    lt_cv_sys_global_symbol_to_c_name_address \
11275
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11276
 
    old_postinstall_cmds old_postuninstall_cmds \
11277
 
    compiler \
11278
 
    CC \
11279
 
    LD \
11280
 
    lt_prog_compiler_wl \
11281
 
    lt_prog_compiler_pic \
11282
 
    lt_prog_compiler_static \
11283
 
    lt_prog_compiler_no_builtin_flag \
11284
 
    export_dynamic_flag_spec \
11285
 
    thread_safe_flag_spec \
11286
 
    whole_archive_flag_spec \
11287
 
    enable_shared_with_static_runtimes \
11288
 
    old_archive_cmds \
11289
 
    old_archive_from_new_cmds \
11290
 
    predep_objects \
11291
 
    postdep_objects \
11292
 
    predeps \
11293
 
    postdeps \
11294
 
    compiler_lib_search_path \
11295
 
    compiler_lib_search_dirs \
11296
 
    archive_cmds \
11297
 
    archive_expsym_cmds \
11298
 
    postinstall_cmds \
11299
 
    postuninstall_cmds \
11300
 
    old_archive_from_expsyms_cmds \
11301
 
    allow_undefined_flag \
11302
 
    no_undefined_flag \
11303
 
    export_symbols_cmds \
11304
 
    hardcode_libdir_flag_spec \
11305
 
    hardcode_libdir_flag_spec_ld \
11306
 
    hardcode_libdir_separator \
11307
 
    hardcode_automatic \
11308
 
    module_cmds \
11309
 
    module_expsym_cmds \
11310
 
    lt_cv_prog_compiler_c_o \
11311
 
    fix_srcfile_path \
11312
 
    exclude_expsyms \
11313
 
    include_expsyms; do
11314
 
 
11315
 
    case $var in
11316
 
    old_archive_cmds | \
11317
 
    old_archive_from_new_cmds | \
11318
 
    archive_cmds | \
11319
 
    archive_expsym_cmds | \
11320
 
    module_cmds | \
11321
 
    module_expsym_cmds | \
11322
 
    old_archive_from_expsyms_cmds | \
11323
 
    export_symbols_cmds | \
11324
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11325
 
    postinstall_cmds | postuninstall_cmds | \
11326
 
    old_postinstall_cmds | old_postuninstall_cmds | \
11327
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11328
 
      # Double-quote double-evaled strings.
11329
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11330
 
      ;;
11331
 
    *)
11332
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11333
 
      ;;
11334
 
    esac
11335
 
  done
11336
 
 
11337
 
  case $lt_echo in
11338
 
  *'\$0 --fallback-echo"')
11339
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11340
 
    ;;
11341
 
  esac
11342
 
 
11343
 
cfgfile="${ofile}T"
11344
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11345
 
  $rm -f "$cfgfile"
11346
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
11347
 
echo "$as_me: creating $ofile" >&6;}
11348
 
 
11349
 
  cat <<__EOF__ >> "$cfgfile"
11350
 
#! $SHELL
11351
 
 
11352
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11353
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11354
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11355
 
#
11356
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11357
 
# Free Software Foundation, Inc.
11358
 
#
11359
 
# This file is part of GNU Libtool:
11360
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11361
 
#
11362
 
# This program is free software; you can redistribute it and/or modify
11363
 
# it under the terms of the GNU General Public License as published by
11364
 
# the Free Software Foundation; either version 2 of the License, or
11365
 
# (at your option) any later version.
11366
 
#
11367
 
# This program is distributed in the hope that it will be useful, but
11368
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11369
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11370
 
# General Public License for more details.
11371
 
#
11372
 
# You should have received a copy of the GNU General Public License
11373
 
# along with this program; if not, write to the Free Software
11374
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11375
 
#
11376
 
# As a special exception to the GNU General Public License, if you
11377
 
# distribute this file as part of a program that contains a
11378
 
# configuration script generated by Autoconf, you may include it under
11379
 
# the same distribution terms that you use for the rest of that program.
11380
 
 
11381
 
# A sed program that does not truncate output.
11382
 
SED=$lt_SED
11383
 
 
11384
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11385
 
Xsed="$SED -e 1s/^X//"
11386
 
 
11387
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
11388
 
# if CDPATH is set.
11389
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11390
 
 
11391
 
# The names of the tagged configurations supported by this script.
11392
 
available_tags=
11393
 
 
11394
 
# ### BEGIN LIBTOOL CONFIG
11395
 
 
11396
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11397
 
 
11398
 
# Shell to use when invoking shell scripts.
11399
 
SHELL=$lt_SHELL
11400
 
 
11401
 
# Whether or not to build shared libraries.
11402
 
build_libtool_libs=$enable_shared
11403
 
 
11404
 
# Whether or not to build static libraries.
11405
 
build_old_libs=$enable_static
11406
 
 
11407
 
# Whether or not to add -lc for building shared libraries.
11408
 
build_libtool_need_lc=$archive_cmds_need_lc
11409
 
 
11410
 
# Whether or not to disallow shared libs when runtime libs are static
11411
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11412
 
 
11413
 
# Whether or not to optimize for fast installation.
11414
 
fast_install=$enable_fast_install
11415
 
 
11416
 
# The host system.
11417
 
host_alias=$host_alias
11418
 
host=$host
11419
 
host_os=$host_os
11420
 
 
11421
 
# The build system.
11422
 
build_alias=$build_alias
11423
 
build=$build
11424
 
build_os=$build_os
11425
 
 
11426
 
# An echo program that does not interpret backslashes.
11427
 
echo=$lt_echo
11428
 
 
11429
 
# The archiver.
11430
 
AR=$lt_AR
11431
 
AR_FLAGS=$lt_AR_FLAGS
11432
 
 
11433
 
# A C compiler.
11434
 
LTCC=$lt_LTCC
11435
 
 
11436
 
# LTCC compiler flags.
11437
 
LTCFLAGS=$lt_LTCFLAGS
11438
 
 
11439
 
# A language-specific compiler.
11440
 
CC=$lt_compiler
11441
 
 
11442
 
# Is the compiler the GNU C compiler?
11443
 
with_gcc=$GCC
11444
 
 
11445
 
# An ERE matcher.
11446
 
EGREP=$lt_EGREP
11447
 
 
11448
 
# The linker used to build libraries.
11449
 
LD=$lt_LD
11450
 
 
11451
 
# Whether we need hard or soft links.
11452
 
LN_S=$lt_LN_S
11453
 
 
11454
 
# A BSD-compatible nm program.
11455
 
NM=$lt_NM
11456
 
 
11457
 
# A symbol stripping program
11458
 
STRIP=$lt_STRIP
11459
 
 
11460
 
# Used to examine libraries when file_magic_cmd begins "file"
11461
 
MAGIC_CMD=$MAGIC_CMD
11462
 
 
11463
 
# Used on cygwin: DLL creation program.
11464
 
DLLTOOL="$DLLTOOL"
11465
 
 
11466
 
# Used on cygwin: object dumper.
11467
 
OBJDUMP="$OBJDUMP"
11468
 
 
11469
 
# Used on cygwin: assembler.
11470
 
AS="$AS"
11471
 
 
11472
 
# The name of the directory that contains temporary libtool files.
11473
 
objdir=$objdir
11474
 
 
11475
 
# How to create reloadable object files.
11476
 
reload_flag=$lt_reload_flag
11477
 
reload_cmds=$lt_reload_cmds
11478
 
 
11479
 
# How to pass a linker flag through the compiler.
11480
 
wl=$lt_lt_prog_compiler_wl
11481
 
 
11482
 
# Object file suffix (normally "o").
11483
 
objext="$ac_objext"
11484
 
 
11485
 
# Old archive suffix (normally "a").
11486
 
libext="$libext"
11487
 
 
11488
 
# Shared library suffix (normally ".so").
11489
 
shrext_cmds='$shrext_cmds'
11490
 
 
11491
 
# Executable file suffix (normally "").
11492
 
exeext="$exeext"
11493
 
 
11494
 
# Additional compiler flags for building library objects.
11495
 
pic_flag=$lt_lt_prog_compiler_pic
11496
 
pic_mode=$pic_mode
11497
 
 
11498
 
# What is the maximum length of a command?
11499
 
max_cmd_len=$lt_cv_sys_max_cmd_len
11500
 
 
11501
 
# Does compiler simultaneously support -c and -o options?
11502
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11503
 
 
11504
 
# Must we lock files when doing compilation?
11505
 
need_locks=$lt_need_locks
11506
 
 
11507
 
# Do we need the lib prefix for modules?
11508
 
need_lib_prefix=$need_lib_prefix
11509
 
 
11510
 
# Do we need a version for libraries?
11511
 
need_version=$need_version
11512
 
 
11513
 
# Whether dlopen is supported.
11514
 
dlopen_support=$enable_dlopen
11515
 
 
11516
 
# Whether dlopen of programs is supported.
11517
 
dlopen_self=$enable_dlopen_self
11518
 
 
11519
 
# Whether dlopen of statically linked programs is supported.
11520
 
dlopen_self_static=$enable_dlopen_self_static
11521
 
 
11522
 
# Compiler flag to prevent dynamic linking.
11523
 
link_static_flag=$lt_lt_prog_compiler_static
11524
 
 
11525
 
# Compiler flag to turn off builtin functions.
11526
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11527
 
 
11528
 
# Compiler flag to allow reflexive dlopens.
11529
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11530
 
 
11531
 
# Compiler flag to generate shared objects directly from archives.
11532
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11533
 
 
11534
 
# Compiler flag to generate thread-safe objects.
11535
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11536
 
 
11537
 
# Library versioning type.
11538
 
version_type=$version_type
11539
 
 
11540
 
# Format of library name prefix.
11541
 
libname_spec=$lt_libname_spec
11542
 
 
11543
 
# List of archive names.  First name is the real one, the rest are links.
11544
 
# The last name is the one that the linker finds with -lNAME.
11545
 
library_names_spec=$lt_library_names_spec
11546
 
 
11547
 
# The coded name of the library, if different from the real name.
11548
 
soname_spec=$lt_soname_spec
11549
 
 
11550
 
# Commands used to build and install an old-style archive.
11551
 
RANLIB=$lt_RANLIB
11552
 
old_archive_cmds=$lt_old_archive_cmds
11553
 
old_postinstall_cmds=$lt_old_postinstall_cmds
11554
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11555
 
 
11556
 
# Create an old-style archive from a shared archive.
11557
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11558
 
 
11559
 
# Create a temporary old-style archive to link instead of a shared archive.
11560
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11561
 
 
11562
 
# Commands used to build and install a shared archive.
11563
 
archive_cmds=$lt_archive_cmds
11564
 
archive_expsym_cmds=$lt_archive_expsym_cmds
11565
 
postinstall_cmds=$lt_postinstall_cmds
11566
 
postuninstall_cmds=$lt_postuninstall_cmds
11567
 
 
11568
 
# Commands used to build a loadable module (assumed same as above if empty)
11569
 
module_cmds=$lt_module_cmds
11570
 
module_expsym_cmds=$lt_module_expsym_cmds
11571
 
 
11572
 
# Commands to strip libraries.
11573
 
old_striplib=$lt_old_striplib
11574
 
striplib=$lt_striplib
11575
 
 
11576
 
# Dependencies to place before the objects being linked to create a
11577
 
# shared library.
11578
 
predep_objects=$lt_predep_objects
11579
 
 
11580
 
# Dependencies to place after the objects being linked to create a
11581
 
# shared library.
11582
 
postdep_objects=$lt_postdep_objects
11583
 
 
11584
 
# Dependencies to place before the objects being linked to create a
11585
 
# shared library.
11586
 
predeps=$lt_predeps
11587
 
 
11588
 
# Dependencies to place after the objects being linked to create a
11589
 
# shared library.
11590
 
postdeps=$lt_postdeps
11591
 
 
11592
 
# The directories searched by this compiler when creating a shared
11593
 
# library
11594
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11595
 
 
11596
 
# The library search path used internally by the compiler when linking
11597
 
# a shared library.
11598
 
compiler_lib_search_path=$lt_compiler_lib_search_path
11599
 
 
11600
 
# Method to check whether dependent libraries are shared objects.
11601
 
deplibs_check_method=$lt_deplibs_check_method
11602
 
 
11603
 
# Command to use when deplibs_check_method == file_magic.
11604
 
file_magic_cmd=$lt_file_magic_cmd
11605
 
 
11606
 
# Flag that allows shared libraries with undefined symbols to be built.
11607
 
allow_undefined_flag=$lt_allow_undefined_flag
11608
 
 
11609
 
# Flag that forces no undefined symbols.
11610
 
no_undefined_flag=$lt_no_undefined_flag
11611
 
 
11612
 
# Commands used to finish a libtool library installation in a directory.
11613
 
finish_cmds=$lt_finish_cmds
11614
 
 
11615
 
# Same as above, but a single script fragment to be evaled but not shown.
11616
 
finish_eval=$lt_finish_eval
11617
 
 
11618
 
# Take the output of nm and produce a listing of raw symbols and C names.
11619
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11620
 
 
11621
 
# Transform the output of nm in a proper C declaration
11622
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11623
 
 
11624
 
# Transform the output of nm in a C name address pair
11625
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11626
 
 
11627
 
# This is the shared library runtime path variable.
11628
 
runpath_var=$runpath_var
11629
 
 
11630
 
# This is the shared library path variable.
11631
 
shlibpath_var=$shlibpath_var
11632
 
 
11633
 
# Is shlibpath searched before the hard-coded library search path?
11634
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11635
 
 
11636
 
# How to hardcode a shared library path into an executable.
11637
 
hardcode_action=$hardcode_action
11638
 
 
11639
 
# Whether we should hardcode library paths into libraries.
11640
 
hardcode_into_libs=$hardcode_into_libs
11641
 
 
11642
 
# Flag to hardcode \$libdir into a binary during linking.
11643
 
# This must work even if \$libdir does not exist.
11644
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11645
 
 
11646
 
# If ld is used when linking, flag to hardcode \$libdir into
11647
 
# a binary during linking. This must work even if \$libdir does
11648
 
# not exist.
11649
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11650
 
 
11651
 
# Whether we need a single -rpath flag with a separated argument.
11652
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11653
 
 
11654
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11655
 
# resulting binary.
11656
 
hardcode_direct=$hardcode_direct
11657
 
 
11658
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11659
 
# resulting binary.
11660
 
hardcode_minus_L=$hardcode_minus_L
11661
 
 
11662
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11663
 
# the resulting binary.
11664
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11665
 
 
11666
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11667
 
# and all subsequent libraries and executables linked against it.
11668
 
hardcode_automatic=$hardcode_automatic
11669
 
 
11670
 
# Variables whose values should be saved in libtool wrapper scripts and
11671
 
# restored at relink time.
11672
 
variables_saved_for_relink="$variables_saved_for_relink"
11673
 
 
11674
 
# Whether libtool must link a program against all its dependency libraries.
11675
 
link_all_deplibs=$link_all_deplibs
11676
 
 
11677
 
# Compile-time system search path for libraries
11678
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11679
 
 
11680
 
# Run-time system search path for libraries
11681
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11682
 
 
11683
 
# Fix the shell variable \$srcfile for the compiler.
11684
 
fix_srcfile_path=$lt_fix_srcfile_path
11685
 
 
11686
 
# Set to yes if exported symbols are required.
11687
 
always_export_symbols=$always_export_symbols
11688
 
 
11689
 
# The commands to list exported symbols.
11690
 
export_symbols_cmds=$lt_export_symbols_cmds
11691
 
 
11692
 
# The commands to extract the exported symbol list from a shared archive.
11693
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11694
 
 
11695
 
# Symbols that should not be listed in the preloaded symbols.
11696
 
exclude_expsyms=$lt_exclude_expsyms
11697
 
 
11698
 
# Symbols that must always be exported.
11699
 
include_expsyms=$lt_include_expsyms
11700
 
 
11701
 
# ### END LIBTOOL CONFIG
11702
 
 
11703
 
__EOF__
11704
 
 
11705
 
 
11706
 
  case $host_os in
11707
 
  aix3*)
11708
 
    cat <<\EOF >> "$cfgfile"
11709
 
 
11710
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11711
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11712
 
# vanish in a puff of smoke.
11713
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11714
 
  COLLECT_NAMES=
11715
 
  export COLLECT_NAMES
11716
 
fi
11717
 
EOF
11718
 
    ;;
11719
 
  esac
11720
 
 
11721
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11722
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11723
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11724
 
  # is reportedly fixed, but why not run on old versions too?
11725
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11726
 
 
11727
 
  mv -f "$cfgfile" "$ofile" || \
11728
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11729
 
  chmod +x "$ofile"
11730
 
 
11731
 
else
11732
 
  # If there is no Makefile yet, we rely on a make rule to execute
11733
 
  # `config.status --recheck' to rerun these tests and create the
11734
 
  # libtool script then.
11735
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11736
 
  if test -f "$ltmain_in"; then
11737
 
    test -f Makefile && make "$ltmain"
11738
 
  fi
11739
 
fi
11740
 
 
11741
 
 
 
11785
 
 
11786
 
 
11787
 
 
11788
fi
11742
11789
ac_ext=c
11743
11790
ac_cpp='$CPP $CPPFLAGS'
11744
11791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11748
11795
CC="$lt_save_CC"
11749
11796
 
11750
11797
 
11751
 
# Check whether --with-tags was given.
11752
 
if test "${with_tags+set}" = set; then
11753
 
  withval=$with_tags; tagnames="$withval"
11754
 
fi
11755
 
 
11756
 
 
11757
 
if test -f "$ltmain" && test -n "$tagnames"; then
11758
 
  if test ! -f "${ofile}"; then
11759
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11760
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11761
 
  fi
11762
 
 
11763
 
  if test -z "$LTCC"; then
11764
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11765
 
    if test -z "$LTCC"; then
11766
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11767
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11768
 
    else
11769
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11770
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11771
 
    fi
11772
 
  fi
11773
 
  if test -z "$LTCFLAGS"; then
11774
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11775
 
  fi
11776
 
 
11777
 
  # Extract list of available tagged configurations in $ofile.
11778
 
  # Note that this assumes the entire list is on one line.
11779
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11780
 
 
11781
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11782
 
  for tagname in $tagnames; do
11783
 
    IFS="$lt_save_ifs"
11784
 
    # Check whether tagname contains only valid characters
11785
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11786
 
    "") ;;
11787
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11788
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11789
 
   { (exit 1); exit 1; }; }
11790
 
        ;;
11791
 
    esac
11792
 
 
11793
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11794
 
    then
11795
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11796
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11797
 
   { (exit 1); exit 1; }; }
11798
 
    fi
11799
 
 
11800
 
    # Update the list of available tags.
11801
 
    if test -n "$tagname"; then
11802
 
      echo appending configuration tag \"$tagname\" to $ofile
11803
 
 
11804
 
      case $tagname in
11805
 
      CXX)
11806
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11807
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11808
 
            (test "X$CXX" != "Xg++"))) ; then
11809
 
          ac_ext=cpp
 
11798
ac_ext=cpp
11810
11799
ac_cpp='$CXXCPP $CPPFLAGS'
11811
11800
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812
11801
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813
11802
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11814
11803
 
11815
 
 
11816
 
 
11817
 
 
11818
11804
archive_cmds_need_lc_CXX=no
11819
11805
allow_undefined_flag_CXX=
11820
11806
always_export_symbols_CXX=no
11821
11807
archive_expsym_cmds_CXX=
 
11808
compiler_needs_object_CXX=no
11822
11809
export_dynamic_flag_spec_CXX=
11823
11810
hardcode_direct_CXX=no
 
11811
hardcode_direct_absolute_CXX=no
11824
11812
hardcode_libdir_flag_spec_CXX=
11825
11813
hardcode_libdir_flag_spec_ld_CXX=
11826
11814
hardcode_libdir_separator_CXX=
11827
11815
hardcode_minus_L_CXX=no
11828
11816
hardcode_shlibpath_var_CXX=unsupported
11829
11817
hardcode_automatic_CXX=no
 
11818
inherit_rpath_CXX=no
11830
11819
module_cmds_CXX=
11831
11820
module_expsym_cmds_CXX=
11832
11821
link_all_deplibs_CXX=unknown
11835
11824
whole_archive_flag_spec_CXX=
11836
11825
enable_shared_with_static_runtimes_CXX=no
11837
11826
 
11838
 
# Dependencies to place before and after the object being linked:
11839
 
predep_objects_CXX=
11840
 
postdep_objects_CXX=
11841
 
predeps_CXX=
11842
 
postdeps_CXX=
11843
 
compiler_lib_search_path_CXX=
11844
 
compiler_lib_search_dirs_CXX=
11845
 
 
11846
11827
# Source file extension for C++ test sources.
11847
11828
ac_ext=cpp
11848
11829
 
11850
11831
objext=o
11851
11832
objext_CXX=$objext
11852
11833
 
11853
 
# Code to be used in simple compile tests
11854
 
lt_simple_compile_test_code="int some_variable = 0;"
11855
 
 
11856
 
# Code to be used in simple link tests
11857
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11858
 
 
11859
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11834
# No sense in running all these tests if we already determined that
 
11835
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11836
# are currently assumed to apply to all compilers on this platform,
 
11837
# and will be corrupted by setting them based on a non-working compiler.
 
11838
if test "$_lt_caught_CXX_error" != yes; then
 
11839
  # Code to be used in simple compile tests
 
11840
  lt_simple_compile_test_code="int some_variable = 0;"
 
11841
 
 
11842
  # Code to be used in simple link tests
 
11843
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11844
 
 
11845
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11846
 
 
11847
 
 
11848
 
 
11849
 
 
11850
 
11860
11851
 
11861
11852
# If no C compiler was specified, use CC.
11862
11853
LTCC=${LTCC-"$CC"}
11868
11859
compiler=$CC
11869
11860
 
11870
11861
 
11871
 
# save warnings/boilerplate of simple test code
11872
 
ac_outfile=conftest.$ac_objext
 
11862
  # save warnings/boilerplate of simple test code
 
11863
  ac_outfile=conftest.$ac_objext
11873
11864
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11874
11865
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875
11866
_lt_compiler_boilerplate=`cat conftest.err`
11876
 
$rm conftest*
 
11867
$RM conftest*
11877
11868
 
11878
 
ac_outfile=conftest.$ac_objext
 
11869
  ac_outfile=conftest.$ac_objext
11879
11870
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11880
11871
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11881
11872
_lt_linker_boilerplate=`cat conftest.err`
11882
 
$rm -r conftest*
11883
 
 
11884
 
 
11885
 
# Allow CC to be a program name with arguments.
11886
 
lt_save_CC=$CC
11887
 
lt_save_LD=$LD
11888
 
lt_save_GCC=$GCC
11889
 
GCC=$GXX
11890
 
lt_save_with_gnu_ld=$with_gnu_ld
11891
 
lt_save_path_LD=$lt_cv_path_LD
11892
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11893
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11894
 
else
11895
 
  $as_unset lt_cv_prog_gnu_ld
11896
 
fi
11897
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11898
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11899
 
else
11900
 
  $as_unset lt_cv_path_LD
11901
 
fi
11902
 
test -z "${LDCXX+set}" || LD=$LDCXX
11903
 
CC=${CXX-"c++"}
11904
 
compiler=$CC
11905
 
compiler_CXX=$CC
11906
 
for cc_temp in $compiler""; do
 
11873
$RM -r conftest*
 
11874
 
 
11875
 
 
11876
  # Allow CC to be a program name with arguments.
 
11877
  lt_save_CC=$CC
 
11878
  lt_save_LD=$LD
 
11879
  lt_save_GCC=$GCC
 
11880
  GCC=$GXX
 
11881
  lt_save_with_gnu_ld=$with_gnu_ld
 
11882
  lt_save_path_LD=$lt_cv_path_LD
 
11883
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11884
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11885
  else
 
11886
    $as_unset lt_cv_prog_gnu_ld
 
11887
  fi
 
11888
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
11889
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
11890
  else
 
11891
    $as_unset lt_cv_path_LD
 
11892
  fi
 
11893
  test -z "${LDCXX+set}" || LD=$LDCXX
 
11894
  CC=${CXX-"c++"}
 
11895
  compiler=$CC
 
11896
  compiler_CXX=$CC
 
11897
  for cc_temp in $compiler""; do
11907
11898
  case $cc_temp in
11908
11899
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11909
11900
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11911
11902
    *) break;;
11912
11903
  esac
11913
11904
done
11914
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11915
 
 
11916
 
 
11917
 
# We don't want -fno-exception wen compiling C++ code, so set the
11918
 
# no_builtin_flag separately
11919
 
if test "$GXX" = yes; then
11920
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11921
 
else
11922
 
  lt_prog_compiler_no_builtin_flag_CXX=
11923
 
fi
11924
 
 
11925
 
if test "$GXX" = yes; then
11926
 
  # Set up default GNU C++ configuration
 
11905
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11906
 
 
11907
 
 
11908
  if test -n "$compiler"; then
 
11909
    # We don't want -fno-exception when compiling C++ code, so set the
 
11910
    # no_builtin_flag separately
 
11911
    if test "$GXX" = yes; then
 
11912
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11913
    else
 
11914
      lt_prog_compiler_no_builtin_flag_CXX=
 
11915
    fi
 
11916
 
 
11917
    if test "$GXX" = yes; then
 
11918
      # Set up default GNU C++ configuration
 
11919
 
11927
11920
 
11928
11921
 
11929
11922
# Check whether --with-gnu-ld was given.
11950
11943
    [\\/]* | ?:[\\/]*)
11951
11944
      re_direlt='/[^/][^/]*/\.\./'
11952
11945
      # Canonicalize the pathname of ld
11953
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11954
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11955
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11946
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
11947
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
11948
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11956
11949
      done
11957
11950
      test -z "$LD" && LD="$ac_prog"
11958
11951
      ;;
12033
12026
 
12034
12027
 
12035
12028
 
12036
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12037
 
  # archiving commands below assume that GNU ld is being used.
12038
 
  if test "$with_gnu_ld" = yes; then
12039
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12040
 
    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'
12041
 
 
12042
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12043
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12044
 
 
12045
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
12046
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12047
 
    #     investigate it a little bit more. (MM)
12048
 
    wlarc='${wl}'
12049
 
 
12050
 
    # ancient GNU ld didn't support --whole-archive et. al.
12051
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12052
 
        grep 'no-whole-archive' > /dev/null; then
12053
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12054
 
    else
12055
 
      whole_archive_flag_spec_CXX=
12056
 
    fi
12057
 
  else
12058
 
    with_gnu_ld=no
12059
 
    wlarc=
12060
 
 
12061
 
    # A generic and very simple default shared library creation
12062
 
    # command for GNU C++ for the case where it uses the native
12063
 
    # linker, instead of GNU ld.  If possible, this setting should
12064
 
    # overridden to take advantage of the native linker features on
12065
 
    # the platform it is being used on.
12066
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12067
 
  fi
12068
 
 
12069
 
  # Commands to make compiler produce verbose output that lists
12070
 
  # what "hidden" libraries, object files and flags are used when
12071
 
  # linking a shared library.
12072
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12073
 
 
12074
 
else
12075
 
  GXX=no
12076
 
  with_gnu_ld=no
12077
 
  wlarc=
12078
 
fi
12079
 
 
12080
 
# PORTME: fill in a description of your system's C++ link characteristics
12081
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12082
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12083
 
ld_shlibs_CXX=yes
12084
 
case $host_os in
12085
 
  aix3*)
12086
 
    # FIXME: insert proper C++ library support
12087
 
    ld_shlibs_CXX=no
12088
 
    ;;
12089
 
  aix[4-9]*)
12090
 
    if test "$host_cpu" = ia64; then
12091
 
      # On IA64, the linker does run time linking by default, so we don't
12092
 
      # have to do anything special.
12093
 
      aix_use_runtimelinking=no
12094
 
      exp_sym_flag='-Bexport'
12095
 
      no_entry_flag=""
12096
 
    else
12097
 
      aix_use_runtimelinking=no
12098
 
 
12099
 
      # Test if we are trying to use run time linking or normal
12100
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12101
 
      # need to do runtime linking.
12102
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12103
 
        for ld_flag in $LDFLAGS; do
12104
 
          case $ld_flag in
12105
 
          *-brtl*)
12106
 
            aix_use_runtimelinking=yes
12107
 
            break
12108
 
            ;;
12109
 
          esac
12110
 
        done
12111
 
        ;;
12112
 
      esac
12113
 
 
12114
 
      exp_sym_flag='-bexport'
12115
 
      no_entry_flag='-bnoentry'
12116
 
    fi
12117
 
 
12118
 
    # When large executables or shared objects are built, AIX ld can
12119
 
    # have problems creating the table of contents.  If linking a library
12120
 
    # or program results in "error TOC overflow" add -mminimal-toc to
12121
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12122
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12123
 
 
12124
 
    archive_cmds_CXX=''
12125
 
    hardcode_direct_CXX=yes
12126
 
    hardcode_libdir_separator_CXX=':'
12127
 
    link_all_deplibs_CXX=yes
12128
 
 
12129
 
    if test "$GXX" = yes; then
12130
 
      case $host_os in aix4.[012]|aix4.[012].*)
12131
 
      # We only want to do this on AIX 4.2 and lower, the check
12132
 
      # below for broken collect2 doesn't work under 4.3+
12133
 
        collect2name=`${CC} -print-prog-name=collect2`
12134
 
        if test -f "$collect2name" && \
12135
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
12136
 
        then
12137
 
          # We have reworked collect2
12138
 
          :
12139
 
        else
12140
 
          # We have old collect2
12141
 
          hardcode_direct_CXX=unsupported
12142
 
          # It fails to find uninstalled libraries when the uninstalled
12143
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
12144
 
          # to unsupported forces relinking
12145
 
          hardcode_minus_L_CXX=yes
12146
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12147
 
          hardcode_libdir_separator_CXX=
12148
 
        fi
12149
 
        ;;
12150
 
      esac
12151
 
      shared_flag='-shared'
12152
 
      if test "$aix_use_runtimelinking" = yes; then
12153
 
        shared_flag="$shared_flag "'${wl}-G'
12154
 
      fi
12155
 
    else
12156
 
      # not using gcc
12157
 
      if test "$host_cpu" = ia64; then
12158
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12159
 
        # chokes on -Wl,-G. The following line is correct:
12160
 
        shared_flag='-G'
12161
 
      else
12162
 
        if test "$aix_use_runtimelinking" = yes; then
12163
 
          shared_flag='${wl}-G'
12164
 
        else
12165
 
          shared_flag='${wl}-bM:SRE'
12166
 
        fi
12167
 
      fi
12168
 
    fi
12169
 
 
12170
 
    # It seems that -bexpall does not export symbols beginning with
12171
 
    # underscore (_), so it is better to generate a list of symbols to export.
12172
 
    always_export_symbols_CXX=yes
12173
 
    if test "$aix_use_runtimelinking" = yes; then
12174
 
      # Warning - without using the other runtime loading flags (-brtl),
12175
 
      # -berok will link without error, but may produce a broken library.
12176
 
      allow_undefined_flag_CXX='-berok'
12177
 
      # Determine the default libpath from the value encoded in an empty executable.
12178
 
      cat >conftest.$ac_ext <<_ACEOF
12179
 
/* confdefs.h.  */
12180
 
_ACEOF
12181
 
cat confdefs.h >>conftest.$ac_ext
12182
 
cat >>conftest.$ac_ext <<_ACEOF
12183
 
/* end confdefs.h.  */
12184
 
 
12185
 
int
12186
 
main ()
12187
 
{
12188
 
 
12189
 
  ;
12190
 
  return 0;
12191
 
}
12192
 
_ACEOF
12193
 
rm -f conftest.$ac_objext conftest$ac_exeext
12194
 
if { (ac_try="$ac_link"
12195
 
case "(($ac_try" in
12196
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197
 
  *) ac_try_echo=$ac_try;;
12198
 
esac
12199
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200
 
  (eval "$ac_link") 2>conftest.er1
12201
 
  ac_status=$?
12202
 
  grep -v '^ *+' conftest.er1 >conftest.err
12203
 
  rm -f conftest.er1
12204
 
  cat conftest.err >&5
12205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206
 
  (exit $ac_status); } && {
12207
 
         test -z "$ac_cxx_werror_flag" ||
12208
 
         test ! -s conftest.err
12209
 
       } && test -s conftest$ac_exeext &&
12210
 
       $as_test_x conftest$ac_exeext; then
12211
 
 
12212
 
lt_aix_libpath_sed='
12213
 
    /Import File Strings/,/^$/ {
12214
 
        /^0/ {
12215
 
            s/^0  *\(.*\)$/\1/
12216
 
            p
12217
 
        }
12218
 
    }'
12219
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12220
 
# Check for a 64-bit object if we didn't find anything.
12221
 
if test -z "$aix_libpath"; then
12222
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12223
 
fi
12224
 
else
12225
 
  echo "$as_me: failed program was:" >&5
12226
 
sed 's/^/| /' conftest.$ac_ext >&5
12227
 
 
12228
 
 
12229
 
fi
12230
 
 
12231
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232
 
      conftest$ac_exeext conftest.$ac_ext
12233
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12234
 
 
12235
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12236
 
 
12237
 
      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"
12238
 
     else
12239
 
      if test "$host_cpu" = ia64; then
12240
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12241
 
        allow_undefined_flag_CXX="-z nodefs"
12242
 
        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"
12243
 
      else
12244
 
        # Determine the default libpath from the value encoded in an empty executable.
12245
 
        cat >conftest.$ac_ext <<_ACEOF
12246
 
/* confdefs.h.  */
12247
 
_ACEOF
12248
 
cat confdefs.h >>conftest.$ac_ext
12249
 
cat >>conftest.$ac_ext <<_ACEOF
12250
 
/* end confdefs.h.  */
12251
 
 
12252
 
int
12253
 
main ()
12254
 
{
12255
 
 
12256
 
  ;
12257
 
  return 0;
12258
 
}
12259
 
_ACEOF
12260
 
rm -f conftest.$ac_objext conftest$ac_exeext
12261
 
if { (ac_try="$ac_link"
12262
 
case "(($ac_try" in
12263
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264
 
  *) ac_try_echo=$ac_try;;
12265
 
esac
12266
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267
 
  (eval "$ac_link") 2>conftest.er1
12268
 
  ac_status=$?
12269
 
  grep -v '^ *+' conftest.er1 >conftest.err
12270
 
  rm -f conftest.er1
12271
 
  cat conftest.err >&5
12272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273
 
  (exit $ac_status); } && {
12274
 
         test -z "$ac_cxx_werror_flag" ||
12275
 
         test ! -s conftest.err
12276
 
       } && test -s conftest$ac_exeext &&
12277
 
       $as_test_x conftest$ac_exeext; then
12278
 
 
12279
 
lt_aix_libpath_sed='
12280
 
    /Import File Strings/,/^$/ {
12281
 
        /^0/ {
12282
 
            s/^0  *\(.*\)$/\1/
12283
 
            p
12284
 
        }
12285
 
    }'
12286
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12287
 
# Check for a 64-bit object if we didn't find anything.
12288
 
if test -z "$aix_libpath"; then
12289
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12290
 
fi
12291
 
else
12292
 
  echo "$as_me: failed program was:" >&5
12293
 
sed 's/^/| /' conftest.$ac_ext >&5
12294
 
 
12295
 
 
12296
 
fi
12297
 
 
12298
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299
 
      conftest$ac_exeext conftest.$ac_ext
12300
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12301
 
 
12302
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12303
 
        # Warning - without using the other run time loading flags,
12304
 
        # -berok will link without error, but may produce a broken library.
12305
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
12306
 
        allow_undefined_flag_CXX=' ${wl}-berok'
12307
 
        # Exported symbols can be pulled into shared objects from archives
12308
 
        whole_archive_flag_spec_CXX='$convenience'
12309
 
        archive_cmds_need_lc_CXX=yes
12310
 
        # This is similar to how AIX traditionally builds its shared libraries.
12311
 
        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'
12312
 
      fi
12313
 
    fi
12314
 
    ;;
12315
 
 
12316
 
  beos*)
12317
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12318
 
      allow_undefined_flag_CXX=unsupported
12319
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12320
 
      # support --undefined.  This deserves some investigation.  FIXME
12321
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322
 
    else
12323
 
      ld_shlibs_CXX=no
12324
 
    fi
12325
 
    ;;
12326
 
 
12327
 
  chorus*)
12328
 
    case $cc_basename in
12329
 
      *)
12330
 
        # FIXME: insert proper C++ library support
12331
 
        ld_shlibs_CXX=no
12332
 
        ;;
12333
 
    esac
12334
 
    ;;
12335
 
 
12336
 
  cygwin* | mingw* | pw32*)
12337
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12338
 
    # as there is no search path for DLLs.
12339
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12340
 
    allow_undefined_flag_CXX=unsupported
12341
 
    always_export_symbols_CXX=no
12342
 
    enable_shared_with_static_runtimes_CXX=yes
12343
 
 
12344
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12345
 
      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'
12346
 
      # If the export-symbols file already is a .def file (1st line
12347
 
      # is EXPORTS), use it as is; otherwise, prepend...
12348
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12349
 
        cp $export_symbols $output_objdir/$soname.def;
12350
 
      else
12351
 
        echo EXPORTS > $output_objdir/$soname.def;
12352
 
        cat $export_symbols >> $output_objdir/$soname.def;
12353
 
      fi~
12354
 
      $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'
12355
 
    else
12356
 
      ld_shlibs_CXX=no
12357
 
    fi
12358
 
  ;;
12359
 
      darwin* | rhapsody*)
12360
 
      archive_cmds_need_lc_CXX=no
12361
 
      hardcode_direct_CXX=no
12362
 
      hardcode_automatic_CXX=yes
12363
 
      hardcode_shlibpath_var_CXX=unsupported
12364
 
      whole_archive_flag_spec_CXX=''
12365
 
      link_all_deplibs_CXX=yes
12366
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12367
 
      if test "$GXX" = yes ; then
12368
 
      output_verbose_link_cmd='echo'
12369
 
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12370
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12371
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12372
 
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12373
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12374
 
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12375
 
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12376
 
      fi
12377
 
      else
12378
 
      case $cc_basename in
12379
 
        xlc*)
12380
 
         output_verbose_link_cmd='echo'
12381
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12382
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12384
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12385
 
          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}'
12386
 
          ;;
12387
 
       *)
12388
 
         ld_shlibs_CXX=no
12389
 
          ;;
12390
 
      esac
12391
 
      fi
12392
 
        ;;
12393
 
 
12394
 
  dgux*)
12395
 
    case $cc_basename in
12396
 
      ec++*)
12397
 
        # FIXME: insert proper C++ library support
12398
 
        ld_shlibs_CXX=no
12399
 
        ;;
12400
 
      ghcx*)
12401
 
        # Green Hills C++ Compiler
12402
 
        # FIXME: insert proper C++ library support
12403
 
        ld_shlibs_CXX=no
12404
 
        ;;
12405
 
      *)
12406
 
        # FIXME: insert proper C++ library support
12407
 
        ld_shlibs_CXX=no
12408
 
        ;;
12409
 
    esac
12410
 
    ;;
12411
 
  freebsd[12]*)
12412
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
12413
 
    ld_shlibs_CXX=no
12414
 
    ;;
12415
 
  freebsd-elf*)
12416
 
    archive_cmds_need_lc_CXX=no
12417
 
    ;;
12418
 
  freebsd* | dragonfly*)
12419
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12420
 
    # conventions
12421
 
    ld_shlibs_CXX=yes
12422
 
    ;;
12423
 
  gnu*)
12424
 
    ;;
12425
 
  hpux9*)
12426
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12427
 
    hardcode_libdir_separator_CXX=:
12428
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12429
 
    hardcode_direct_CXX=yes
12430
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12431
 
                                # but as the default
12432
 
                                # location of the library.
12433
 
 
12434
 
    case $cc_basename in
12435
 
    CC*)
12436
 
      # FIXME: insert proper C++ library support
12437
 
      ld_shlibs_CXX=no
12438
 
      ;;
12439
 
    aCC*)
12440
 
      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'
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12034
      # archiving commands below assume that GNU ld is being used.
 
12035
      if test "$with_gnu_ld" = yes; then
 
12036
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12037
        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'
 
12038
 
 
12039
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12040
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12041
 
 
12042
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12043
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12044
        #     investigate it a little bit more. (MM)
 
12045
        wlarc='${wl}'
 
12046
 
 
12047
        # ancient GNU ld didn't support --whole-archive et. al.
 
12048
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12049
          $GREP 'no-whole-archive' > /dev/null; then
 
12050
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12051
        else
 
12052
          whole_archive_flag_spec_CXX=
 
12053
        fi
 
12054
      else
 
12055
        with_gnu_ld=no
 
12056
        wlarc=
 
12057
 
 
12058
        # A generic and very simple default shared library creation
 
12059
        # command for GNU C++ for the case where it uses the native
 
12060
        # linker, instead of GNU ld.  If possible, this setting should
 
12061
        # overridden to take advantage of the native linker features on
 
12062
        # the platform it is being used on.
 
12063
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12064
      fi
 
12065
 
12441
12066
      # Commands to make compiler produce verbose output that lists
12442
12067
      # what "hidden" libraries, object files and flags are used when
12443
12068
      # linking a shared library.
12444
 
      #
12445
 
      # There doesn't appear to be a way to prevent this compiler from
12446
 
      # explicitly linking system object files so we need to strip them
12447
 
      # from the output so that they don't get included in the library
12448
 
      # dependencies.
12449
 
      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'
12450
 
      ;;
12451
 
    *)
12452
 
      if test "$GXX" = yes; then
12453
 
        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'
12454
 
      else
 
12069
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12070
 
 
12071
    else
 
12072
      GXX=no
 
12073
      with_gnu_ld=no
 
12074
      wlarc=
 
12075
    fi
 
12076
 
 
12077
    # PORTME: fill in a description of your system's C++ link characteristics
 
12078
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12079
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12080
    ld_shlibs_CXX=yes
 
12081
    case $host_os in
 
12082
      aix3*)
12455
12083
        # FIXME: insert proper C++ library support
12456
12084
        ld_shlibs_CXX=no
12457
 
      fi
12458
 
      ;;
12459
 
    esac
12460
 
    ;;
12461
 
  hpux10*|hpux11*)
12462
 
    if test $with_gnu_ld = no; then
12463
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12464
 
      hardcode_libdir_separator_CXX=:
12465
 
 
12466
 
      case $host_cpu in
12467
 
      hppa*64*|ia64*) ;;
12468
 
      *)
 
12085
        ;;
 
12086
      aix[4-9]*)
 
12087
        if test "$host_cpu" = ia64; then
 
12088
          # On IA64, the linker does run time linking by default, so we don't
 
12089
          # have to do anything special.
 
12090
          aix_use_runtimelinking=no
 
12091
          exp_sym_flag='-Bexport'
 
12092
          no_entry_flag=""
 
12093
        else
 
12094
          aix_use_runtimelinking=no
 
12095
 
 
12096
          # Test if we are trying to use run time linking or normal
 
12097
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12098
          # need to do runtime linking.
 
12099
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12100
            for ld_flag in $LDFLAGS; do
 
12101
              case $ld_flag in
 
12102
              *-brtl*)
 
12103
                aix_use_runtimelinking=yes
 
12104
                break
 
12105
                ;;
 
12106
              esac
 
12107
            done
 
12108
            ;;
 
12109
          esac
 
12110
 
 
12111
          exp_sym_flag='-bexport'
 
12112
          no_entry_flag='-bnoentry'
 
12113
        fi
 
12114
 
 
12115
        # When large executables or shared objects are built, AIX ld can
 
12116
        # have problems creating the table of contents.  If linking a library
 
12117
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12118
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12119
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12120
 
 
12121
        archive_cmds_CXX=''
 
12122
        hardcode_direct_CXX=yes
 
12123
        hardcode_direct_absolute_CXX=yes
 
12124
        hardcode_libdir_separator_CXX=':'
 
12125
        link_all_deplibs_CXX=yes
 
12126
        file_list_spec_CXX='${wl}-f,'
 
12127
 
 
12128
        if test "$GXX" = yes; then
 
12129
          case $host_os in aix4.[012]|aix4.[012].*)
 
12130
          # We only want to do this on AIX 4.2 and lower, the check
 
12131
          # below for broken collect2 doesn't work under 4.3+
 
12132
          collect2name=`${CC} -print-prog-name=collect2`
 
12133
          if test -f "$collect2name" &&
 
12134
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12135
          then
 
12136
            # We have reworked collect2
 
12137
            :
 
12138
          else
 
12139
            # We have old collect2
 
12140
            hardcode_direct_CXX=unsupported
 
12141
            # It fails to find uninstalled libraries when the uninstalled
 
12142
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12143
            # to unsupported forces relinking
 
12144
            hardcode_minus_L_CXX=yes
 
12145
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12146
            hardcode_libdir_separator_CXX=
 
12147
          fi
 
12148
          esac
 
12149
          shared_flag='-shared'
 
12150
          if test "$aix_use_runtimelinking" = yes; then
 
12151
            shared_flag="$shared_flag "'${wl}-G'
 
12152
          fi
 
12153
        else
 
12154
          # not using gcc
 
12155
          if test "$host_cpu" = ia64; then
 
12156
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12157
          # chokes on -Wl,-G. The following line is correct:
 
12158
          shared_flag='-G'
 
12159
          else
 
12160
            if test "$aix_use_runtimelinking" = yes; then
 
12161
              shared_flag='${wl}-G'
 
12162
            else
 
12163
              shared_flag='${wl}-bM:SRE'
 
12164
            fi
 
12165
          fi
 
12166
        fi
 
12167
 
 
12168
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12169
        # It seems that -bexpall does not export symbols beginning with
 
12170
        # underscore (_), so it is better to generate a list of symbols to
 
12171
        # export.
 
12172
        always_export_symbols_CXX=yes
 
12173
        if test "$aix_use_runtimelinking" = yes; then
 
12174
          # Warning - without using the other runtime loading flags (-brtl),
 
12175
          # -berok will link without error, but may produce a broken library.
 
12176
          allow_undefined_flag_CXX='-berok'
 
12177
          # Determine the default libpath from the value encoded in an empty
 
12178
          # executable.
 
12179
          cat >conftest.$ac_ext <<_ACEOF
 
12180
/* confdefs.h.  */
 
12181
_ACEOF
 
12182
cat confdefs.h >>conftest.$ac_ext
 
12183
cat >>conftest.$ac_ext <<_ACEOF
 
12184
/* end confdefs.h.  */
 
12185
 
 
12186
int
 
12187
main ()
 
12188
{
 
12189
 
 
12190
  ;
 
12191
  return 0;
 
12192
}
 
12193
_ACEOF
 
12194
rm -f conftest.$ac_objext conftest$ac_exeext
 
12195
if { (ac_try="$ac_link"
 
12196
case "(($ac_try" in
 
12197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12198
  *) ac_try_echo=$ac_try;;
 
12199
esac
 
12200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12201
  (eval "$ac_link") 2>conftest.er1
 
12202
  ac_status=$?
 
12203
  grep -v '^ *+' conftest.er1 >conftest.err
 
12204
  rm -f conftest.er1
 
12205
  cat conftest.err >&5
 
12206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12207
  (exit $ac_status); } && {
 
12208
         test -z "$ac_cxx_werror_flag" ||
 
12209
         test ! -s conftest.err
 
12210
       } && test -s conftest$ac_exeext &&
 
12211
       $as_test_x conftest$ac_exeext; then
 
12212
 
 
12213
lt_aix_libpath_sed='
 
12214
    /Import File Strings/,/^$/ {
 
12215
        /^0/ {
 
12216
            s/^0  *\(.*\)$/\1/
 
12217
            p
 
12218
        }
 
12219
    }'
 
12220
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12221
# Check for a 64-bit object if we didn't find anything.
 
12222
if test -z "$aix_libpath"; then
 
12223
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12224
fi
 
12225
else
 
12226
  echo "$as_me: failed program was:" >&5
 
12227
sed 's/^/| /' conftest.$ac_ext >&5
 
12228
 
 
12229
 
 
12230
fi
 
12231
 
 
12232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12233
      conftest$ac_exeext conftest.$ac_ext
 
12234
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12235
 
 
12236
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12237
 
 
12238
          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12239
        else
 
12240
          if test "$host_cpu" = ia64; then
 
12241
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12242
            allow_undefined_flag_CXX="-z nodefs"
 
12243
            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"
 
12244
          else
 
12245
            # Determine the default libpath from the value encoded in an
 
12246
            # empty executable.
 
12247
            cat >conftest.$ac_ext <<_ACEOF
 
12248
/* confdefs.h.  */
 
12249
_ACEOF
 
12250
cat confdefs.h >>conftest.$ac_ext
 
12251
cat >>conftest.$ac_ext <<_ACEOF
 
12252
/* end confdefs.h.  */
 
12253
 
 
12254
int
 
12255
main ()
 
12256
{
 
12257
 
 
12258
  ;
 
12259
  return 0;
 
12260
}
 
12261
_ACEOF
 
12262
rm -f conftest.$ac_objext conftest$ac_exeext
 
12263
if { (ac_try="$ac_link"
 
12264
case "(($ac_try" in
 
12265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12266
  *) ac_try_echo=$ac_try;;
 
12267
esac
 
12268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12269
  (eval "$ac_link") 2>conftest.er1
 
12270
  ac_status=$?
 
12271
  grep -v '^ *+' conftest.er1 >conftest.err
 
12272
  rm -f conftest.er1
 
12273
  cat conftest.err >&5
 
12274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12275
  (exit $ac_status); } && {
 
12276
         test -z "$ac_cxx_werror_flag" ||
 
12277
         test ! -s conftest.err
 
12278
       } && test -s conftest$ac_exeext &&
 
12279
       $as_test_x conftest$ac_exeext; then
 
12280
 
 
12281
lt_aix_libpath_sed='
 
12282
    /Import File Strings/,/^$/ {
 
12283
        /^0/ {
 
12284
            s/^0  *\(.*\)$/\1/
 
12285
            p
 
12286
        }
 
12287
    }'
 
12288
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12289
# Check for a 64-bit object if we didn't find anything.
 
12290
if test -z "$aix_libpath"; then
 
12291
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12292
fi
 
12293
else
 
12294
  echo "$as_me: failed program was:" >&5
 
12295
sed 's/^/| /' conftest.$ac_ext >&5
 
12296
 
 
12297
 
 
12298
fi
 
12299
 
 
12300
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12301
      conftest$ac_exeext conftest.$ac_ext
 
12302
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12303
 
 
12304
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12305
            # Warning - without using the other run time loading flags,
 
12306
            # -berok will link without error, but may produce a broken library.
 
12307
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12308
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12309
            # Exported symbols can be pulled into shared objects from archives
 
12310
            whole_archive_flag_spec_CXX='$convenience'
 
12311
            archive_cmds_need_lc_CXX=yes
 
12312
            # This is similar to how AIX traditionally builds its shared
 
12313
            # libraries.
 
12314
            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'
 
12315
          fi
 
12316
        fi
 
12317
        ;;
 
12318
 
 
12319
      beos*)
 
12320
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12321
          allow_undefined_flag_CXX=unsupported
 
12322
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12323
          # support --undefined.  This deserves some investigation.  FIXME
 
12324
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12325
        else
 
12326
          ld_shlibs_CXX=no
 
12327
        fi
 
12328
        ;;
 
12329
 
 
12330
      chorus*)
 
12331
        case $cc_basename in
 
12332
          *)
 
12333
          # FIXME: insert proper C++ library support
 
12334
          ld_shlibs_CXX=no
 
12335
          ;;
 
12336
        esac
 
12337
        ;;
 
12338
 
 
12339
      cygwin* | mingw* | pw32* | cegcc*)
 
12340
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12341
        # as there is no search path for DLLs.
 
12342
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12343
        allow_undefined_flag_CXX=unsupported
 
12344
        always_export_symbols_CXX=no
 
12345
        enable_shared_with_static_runtimes_CXX=yes
 
12346
 
 
12347
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12348
          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'
 
12349
          # If the export-symbols file already is a .def file (1st line
 
12350
          # is EXPORTS), use it as is; otherwise, prepend...
 
12351
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12352
            cp $export_symbols $output_objdir/$soname.def;
 
12353
          else
 
12354
            echo EXPORTS > $output_objdir/$soname.def;
 
12355
            cat $export_symbols >> $output_objdir/$soname.def;
 
12356
          fi~
 
12357
          $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'
 
12358
        else
 
12359
          ld_shlibs_CXX=no
 
12360
        fi
 
12361
        ;;
 
12362
      darwin* | rhapsody*)
 
12363
 
 
12364
 
 
12365
  archive_cmds_need_lc_CXX=no
 
12366
  hardcode_direct_CXX=no
 
12367
  hardcode_automatic_CXX=yes
 
12368
  hardcode_shlibpath_var_CXX=unsupported
 
12369
  whole_archive_flag_spec_CXX=''
 
12370
  link_all_deplibs_CXX=yes
 
12371
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12372
  case $cc_basename in
 
12373
     ifort*) _lt_dar_can_shared=yes ;;
 
12374
     *) _lt_dar_can_shared=$GCC ;;
 
12375
  esac
 
12376
  if test "$_lt_dar_can_shared" = "yes"; then
 
12377
    output_verbose_link_cmd=echo
 
12378
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12379
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12380
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
12381
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
12382
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12383
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
12384
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
12385
    fi
 
12386
 
 
12387
  else
 
12388
  ld_shlibs_CXX=no
 
12389
  fi
 
12390
 
 
12391
        ;;
 
12392
 
 
12393
      dgux*)
 
12394
        case $cc_basename in
 
12395
          ec++*)
 
12396
            # FIXME: insert proper C++ library support
 
12397
            ld_shlibs_CXX=no
 
12398
            ;;
 
12399
          ghcx*)
 
12400
            # Green Hills C++ Compiler
 
12401
            # FIXME: insert proper C++ library support
 
12402
            ld_shlibs_CXX=no
 
12403
            ;;
 
12404
          *)
 
12405
            # FIXME: insert proper C++ library support
 
12406
            ld_shlibs_CXX=no
 
12407
            ;;
 
12408
        esac
 
12409
        ;;
 
12410
 
 
12411
      freebsd[12]*)
 
12412
        # C++ shared libraries reported to be fairly broken before
 
12413
        # switch to ELF
 
12414
        ld_shlibs_CXX=no
 
12415
        ;;
 
12416
 
 
12417
      freebsd-elf*)
 
12418
        archive_cmds_need_lc_CXX=no
 
12419
        ;;
 
12420
 
 
12421
      freebsd* | dragonfly*)
 
12422
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12423
        # conventions
 
12424
        ld_shlibs_CXX=yes
 
12425
        ;;
 
12426
 
 
12427
      gnu*)
 
12428
        ;;
 
12429
 
 
12430
      hpux9*)
 
12431
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12432
        hardcode_libdir_separator_CXX=:
 
12433
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12434
        hardcode_direct_CXX=yes
 
12435
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12436
                                             # but as the default
 
12437
                                             # location of the library.
 
12438
 
 
12439
        case $cc_basename in
 
12440
          CC*)
 
12441
            # FIXME: insert proper C++ library support
 
12442
            ld_shlibs_CXX=no
 
12443
            ;;
 
12444
          aCC*)
 
12445
            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'
 
12446
            # Commands to make compiler produce verbose output that lists
 
12447
            # what "hidden" libraries, object files and flags are used when
 
12448
            # linking a shared library.
 
12449
            #
 
12450
            # There doesn't appear to be a way to prevent this compiler from
 
12451
            # explicitly linking system object files so we need to strip them
 
12452
            # from the output so that they don't get included in the library
 
12453
            # dependencies.
 
12454
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12455
            ;;
 
12456
          *)
 
12457
            if test "$GXX" = yes; then
 
12458
              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'
 
12459
            else
 
12460
              # FIXME: insert proper C++ library support
 
12461
              ld_shlibs_CXX=no
 
12462
            fi
 
12463
            ;;
 
12464
        esac
 
12465
        ;;
 
12466
 
 
12467
      hpux10*|hpux11*)
 
12468
        if test $with_gnu_ld = no; then
 
12469
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12470
          hardcode_libdir_separator_CXX=:
 
12471
 
 
12472
          case $host_cpu in
 
12473
            hppa*64*|ia64*)
 
12474
              ;;
 
12475
            *)
 
12476
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12477
              ;;
 
12478
          esac
 
12479
        fi
 
12480
        case $host_cpu in
 
12481
          hppa*64*|ia64*)
 
12482
            hardcode_direct_CXX=no
 
12483
            hardcode_shlibpath_var_CXX=no
 
12484
            ;;
 
12485
          *)
 
12486
            hardcode_direct_CXX=yes
 
12487
            hardcode_direct_absolute_CXX=yes
 
12488
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12489
                                                 # but as the default
 
12490
                                                 # location of the library.
 
12491
            ;;
 
12492
        esac
 
12493
 
 
12494
        case $cc_basename in
 
12495
          CC*)
 
12496
            # FIXME: insert proper C++ library support
 
12497
            ld_shlibs_CXX=no
 
12498
            ;;
 
12499
          aCC*)
 
12500
            case $host_cpu in
 
12501
              hppa*64*)
 
12502
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12503
                ;;
 
12504
              ia64*)
 
12505
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12506
                ;;
 
12507
              *)
 
12508
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12509
                ;;
 
12510
            esac
 
12511
            # Commands to make compiler produce verbose output that lists
 
12512
            # what "hidden" libraries, object files and flags are used when
 
12513
            # linking a shared library.
 
12514
            #
 
12515
            # There doesn't appear to be a way to prevent this compiler from
 
12516
            # explicitly linking system object files so we need to strip them
 
12517
            # from the output so that they don't get included in the library
 
12518
            # dependencies.
 
12519
            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 "X$list" | $Xsed'
 
12520
            ;;
 
12521
          *)
 
12522
            if test "$GXX" = yes; then
 
12523
              if test $with_gnu_ld = no; then
 
12524
                case $host_cpu in
 
12525
                  hppa*64*)
 
12526
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12527
                    ;;
 
12528
                  ia64*)
 
12529
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12530
                    ;;
 
12531
                  *)
 
12532
                    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'
 
12533
                    ;;
 
12534
                esac
 
12535
              fi
 
12536
            else
 
12537
              # FIXME: insert proper C++ library support
 
12538
              ld_shlibs_CXX=no
 
12539
            fi
 
12540
            ;;
 
12541
        esac
 
12542
        ;;
 
12543
 
 
12544
      interix[3-9]*)
 
12545
        hardcode_direct_CXX=no
 
12546
        hardcode_shlibpath_var_CXX=no
 
12547
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12469
12548
        export_dynamic_flag_spec_CXX='${wl}-E'
12470
 
        ;;
12471
 
      esac
12472
 
    fi
12473
 
    case $host_cpu in
12474
 
    hppa*64*|ia64*)
12475
 
      hardcode_direct_CXX=no
 
12549
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12550
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12551
        # default) and relocated if they conflict, which is a slow very memory
 
12552
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12553
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12554
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12555
        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'
 
12556
        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'
 
12557
        ;;
 
12558
      irix5* | irix6*)
 
12559
        case $cc_basename in
 
12560
          CC*)
 
12561
            # SGI C++
 
12562
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12563
 
 
12564
            # Archives containing C++ object files must be created using
 
12565
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12566
            # necessary to make sure instantiated templates are included
 
12567
            # in the archive.
 
12568
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12569
            ;;
 
12570
          *)
 
12571
            if test "$GXX" = yes; then
 
12572
              if test "$with_gnu_ld" = no; then
 
12573
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
 
12574
              else
 
12575
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
12576
              fi
 
12577
            fi
 
12578
            link_all_deplibs_CXX=yes
 
12579
            ;;
 
12580
        esac
 
12581
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12582
        hardcode_libdir_separator_CXX=:
 
12583
        inherit_rpath_CXX=yes
 
12584
        ;;
 
12585
 
 
12586
      linux* | k*bsd*-gnu)
 
12587
        case $cc_basename in
 
12588
          KCC*)
 
12589
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12590
 
 
12591
            # KCC will only create a shared library if the output file
 
12592
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12593
            # to its proper name (with version) after linking.
 
12594
            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'
 
12595
            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'
 
12596
            # Commands to make compiler produce verbose output that lists
 
12597
            # what "hidden" libraries, object files and flags are used when
 
12598
            # linking a shared library.
 
12599
            #
 
12600
            # There doesn't appear to be a way to prevent this compiler from
 
12601
            # explicitly linking system object files so we need to strip them
 
12602
            # from the output so that they don't get included in the library
 
12603
            # dependencies.
 
12604
            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 "X$list" | $Xsed'
 
12605
 
 
12606
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12607
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12608
 
 
12609
            # Archives containing C++ object files must be created using
 
12610
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12611
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12612
            ;;
 
12613
          icpc* | ecpc* )
 
12614
            # Intel C++
 
12615
            with_gnu_ld=yes
 
12616
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12617
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12618
            # earlier do not add the objects themselves.
 
12619
            case `$CC -V 2>&1` in
 
12620
              *"Version 7."*)
 
12621
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12622
                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'
 
12623
                ;;
 
12624
              *)  # Version 8.0 or newer
 
12625
                tmp_idyn=
 
12626
                case $host_cpu in
 
12627
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12628
                esac
 
12629
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12630
                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'
 
12631
                ;;
 
12632
            esac
 
12633
            archive_cmds_need_lc_CXX=no
 
12634
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12635
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12636
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12637
            ;;
 
12638
          pgCC* | pgcpp*)
 
12639
            # Portland Group C++ compiler
 
12640
            case `$CC -V` in
 
12641
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
12642
              prelink_cmds_CXX='tpldir=Template.dir~
 
12643
                rm -rf $tpldir~
 
12644
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12645
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
12646
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12647
                rm -rf $tpldir~
 
12648
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12649
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
12650
                $RANLIB $oldlib'
 
12651
              archive_cmds_CXX='tpldir=Template.dir~
 
12652
                rm -rf $tpldir~
 
12653
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12654
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12655
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12656
                rm -rf $tpldir~
 
12657
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12658
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12659
              ;;
 
12660
            *) # Version 6 will use weak symbols
 
12661
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12662
              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'
 
12663
              ;;
 
12664
            esac
 
12665
 
 
12666
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12667
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12668
            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'
 
12669
            ;;
 
12670
          cxx*)
 
12671
            # Compaq C++
 
12672
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12673
            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'
 
12674
 
 
12675
            runpath_var=LD_RUN_PATH
 
12676
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12677
            hardcode_libdir_separator_CXX=:
 
12678
 
 
12679
            # Commands to make compiler produce verbose output that lists
 
12680
            # what "hidden" libraries, object files and flags are used when
 
12681
            # linking a shared library.
 
12682
            #
 
12683
            # There doesn't appear to be a way to prevent this compiler from
 
12684
            # explicitly linking system object files so we need to strip them
 
12685
            # from the output so that they don't get included in the library
 
12686
            # dependencies.
 
12687
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
12688
            ;;
 
12689
          xl*)
 
12690
            # IBM XL 8.0 on PPC, with GNU ld
 
12691
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12692
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12693
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12694
            if test "x$supports_anon_versioning" = xyes; then
 
12695
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12696
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12697
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12698
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12699
            fi
 
12700
            ;;
 
12701
          *)
 
12702
            case `$CC -V 2>&1 | sed 5q` in
 
12703
            *Sun\ C*)
 
12704
              # Sun C++ 5.9
 
12705
              no_undefined_flag_CXX=' -zdefs'
 
12706
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12707
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12708
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12709
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12710
              compiler_needs_object_CXX=yes
 
12711
 
 
12712
              # Not sure whether something based on
 
12713
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12714
              # would be better.
 
12715
              output_verbose_link_cmd='echo'
 
12716
 
 
12717
              # Archives containing C++ object files must be created using
 
12718
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12719
              # necessary to make sure instantiated templates are included
 
12720
              # in the archive.
 
12721
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12722
              ;;
 
12723
            esac
 
12724
            ;;
 
12725
        esac
 
12726
        ;;
 
12727
 
 
12728
      lynxos*)
 
12729
        # FIXME: insert proper C++ library support
 
12730
        ld_shlibs_CXX=no
 
12731
        ;;
 
12732
 
 
12733
      m88k*)
 
12734
        # FIXME: insert proper C++ library support
 
12735
        ld_shlibs_CXX=no
 
12736
        ;;
 
12737
 
 
12738
      mvs*)
 
12739
        case $cc_basename in
 
12740
          cxx*)
 
12741
            # FIXME: insert proper C++ library support
 
12742
            ld_shlibs_CXX=no
 
12743
            ;;
 
12744
          *)
 
12745
            # FIXME: insert proper C++ library support
 
12746
            ld_shlibs_CXX=no
 
12747
            ;;
 
12748
        esac
 
12749
        ;;
 
12750
 
 
12751
      netbsd*)
 
12752
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12753
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12754
          wlarc=
 
12755
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12756
          hardcode_direct_CXX=yes
 
12757
          hardcode_shlibpath_var_CXX=no
 
12758
        fi
 
12759
        # Workaround some broken pre-1.5 toolchains
 
12760
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12761
        ;;
 
12762
 
 
12763
      *nto* | *qnx*)
 
12764
        ld_shlibs_CXX=yes
 
12765
        ;;
 
12766
 
 
12767
      openbsd2*)
 
12768
        # C++ shared libraries are fairly broken
 
12769
        ld_shlibs_CXX=no
 
12770
        ;;
 
12771
 
 
12772
      openbsd*)
 
12773
        if test -f /usr/libexec/ld.so; then
 
12774
          hardcode_direct_CXX=yes
 
12775
          hardcode_shlibpath_var_CXX=no
 
12776
          hardcode_direct_absolute_CXX=yes
 
12777
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12778
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12779
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12780
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12781
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12782
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12783
          fi
 
12784
          output_verbose_link_cmd=echo
 
12785
        else
 
12786
          ld_shlibs_CXX=no
 
12787
        fi
 
12788
        ;;
 
12789
 
 
12790
      osf3* | osf4* | osf5*)
 
12791
        case $cc_basename in
 
12792
          KCC*)
 
12793
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12794
 
 
12795
            # KCC will only create a shared library if the output file
 
12796
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12797
            # to its proper name (with version) after linking.
 
12798
            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'
 
12799
 
 
12800
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12801
            hardcode_libdir_separator_CXX=:
 
12802
 
 
12803
            # Archives containing C++ object files must be created using
 
12804
            # the KAI C++ compiler.
 
12805
            case $host in
 
12806
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12807
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12808
            esac
 
12809
            ;;
 
12810
          RCC*)
 
12811
            # Rational C++ 2.4.1
 
12812
            # FIXME: insert proper C++ library support
 
12813
            ld_shlibs_CXX=no
 
12814
            ;;
 
12815
          cxx*)
 
12816
            case $host in
 
12817
              osf3*)
 
12818
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12819
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12820
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12821
                ;;
 
12822
              *)
 
12823
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12824
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12825
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12826
                  echo "-hidden">> $lib.exp~
 
12827
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
12828
                  $RM $lib.exp'
 
12829
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12830
                ;;
 
12831
            esac
 
12832
 
 
12833
            hardcode_libdir_separator_CXX=:
 
12834
 
 
12835
            # Commands to make compiler produce verbose output that lists
 
12836
            # what "hidden" libraries, object files and flags are used when
 
12837
            # linking a shared library.
 
12838
            #
 
12839
            # There doesn't appear to be a way to prevent this compiler from
 
12840
            # explicitly linking system object files so we need to strip them
 
12841
            # from the output so that they don't get included in the library
 
12842
            # dependencies.
 
12843
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
12844
            ;;
 
12845
          *)
 
12846
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12847
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12848
              case $host in
 
12849
                osf3*)
 
12850
                  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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12851
                  ;;
 
12852
                *)
 
12853
                  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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12854
                  ;;
 
12855
              esac
 
12856
 
 
12857
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12858
              hardcode_libdir_separator_CXX=:
 
12859
 
 
12860
              # Commands to make compiler produce verbose output that lists
 
12861
              # what "hidden" libraries, object files and flags are used when
 
12862
              # linking a shared library.
 
12863
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12864
 
 
12865
            else
 
12866
              # FIXME: insert proper C++ library support
 
12867
              ld_shlibs_CXX=no
 
12868
            fi
 
12869
            ;;
 
12870
        esac
 
12871
        ;;
 
12872
 
 
12873
      psos*)
 
12874
        # FIXME: insert proper C++ library support
 
12875
        ld_shlibs_CXX=no
 
12876
        ;;
 
12877
 
 
12878
      sunos4*)
 
12879
        case $cc_basename in
 
12880
          CC*)
 
12881
            # Sun C++ 4.x
 
12882
            # FIXME: insert proper C++ library support
 
12883
            ld_shlibs_CXX=no
 
12884
            ;;
 
12885
          lcc*)
 
12886
            # Lucid
 
12887
            # FIXME: insert proper C++ library support
 
12888
            ld_shlibs_CXX=no
 
12889
            ;;
 
12890
          *)
 
12891
            # FIXME: insert proper C++ library support
 
12892
            ld_shlibs_CXX=no
 
12893
            ;;
 
12894
        esac
 
12895
        ;;
 
12896
 
 
12897
      solaris*)
 
12898
        case $cc_basename in
 
12899
          CC*)
 
12900
            # Sun C++ 4.2, 5.x and Centerline C++
 
12901
            archive_cmds_need_lc_CXX=yes
 
12902
            no_undefined_flag_CXX=' -zdefs'
 
12903
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12904
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12905
              $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'
 
12906
 
 
12907
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12908
            hardcode_shlibpath_var_CXX=no
 
12909
            case $host_os in
 
12910
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12911
              *)
 
12912
                # The compiler driver will combine and reorder linker options,
 
12913
                # but understands `-z linker_flag'.
 
12914
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12915
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12916
                ;;
 
12917
            esac
 
12918
            link_all_deplibs_CXX=yes
 
12919
 
 
12920
            output_verbose_link_cmd='echo'
 
12921
 
 
12922
            # Archives containing C++ object files must be created using
 
12923
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12924
            # necessary to make sure instantiated templates are included
 
12925
            # in the archive.
 
12926
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12927
            ;;
 
12928
          gcx*)
 
12929
            # Green Hills C++ Compiler
 
12930
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12931
 
 
12932
            # The C++ compiler must be used to create the archive.
 
12933
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12934
            ;;
 
12935
          *)
 
12936
            # GNU C++ compiler with Solaris linker
 
12937
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12938
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12939
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
12940
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12941
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12942
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12943
 
 
12944
                # Commands to make compiler produce verbose output that lists
 
12945
                # what "hidden" libraries, object files and flags are used when
 
12946
                # linking a shared library.
 
12947
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12948
              else
 
12949
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12950
                # platform.
 
12951
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12952
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12953
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12954
 
 
12955
                # Commands to make compiler produce verbose output that lists
 
12956
                # what "hidden" libraries, object files and flags are used when
 
12957
                # linking a shared library.
 
12958
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12959
              fi
 
12960
 
 
12961
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12962
              case $host_os in
 
12963
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12964
                *)
 
12965
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12966
                  ;;
 
12967
              esac
 
12968
            fi
 
12969
            ;;
 
12970
        esac
 
12971
        ;;
 
12972
 
 
12973
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12974
      no_undefined_flag_CXX='${wl}-z,text'
 
12975
      archive_cmds_need_lc_CXX=no
12476
12976
      hardcode_shlibpath_var_CXX=no
12477
 
      ;;
12478
 
    *)
12479
 
      hardcode_direct_CXX=yes
12480
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12481
 
                                              # but as the default
12482
 
                                              # location of the library.
12483
 
      ;;
12484
 
    esac
 
12977
      runpath_var='LD_RUN_PATH'
12485
12978
 
12486
 
    case $cc_basename in
12487
 
      CC*)
12488
 
        # FIXME: insert proper C++ library support
12489
 
        ld_shlibs_CXX=no
12490
 
        ;;
12491
 
      aCC*)
12492
 
        case $host_cpu in
12493
 
        hppa*64*)
12494
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12495
 
          ;;
12496
 
        ia64*)
12497
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12979
      case $cc_basename in
 
12980
        CC*)
 
12981
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12982
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12498
12983
          ;;
12499
12984
        *)
12500
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12501
 
          ;;
12502
 
        esac
12503
 
        # Commands to make compiler produce verbose output that lists
12504
 
        # what "hidden" libraries, object files and flags are used when
12505
 
        # linking a shared library.
12506
 
        #
12507
 
        # There doesn't appear to be a way to prevent this compiler from
12508
 
        # explicitly linking system object files so we need to strip them
12509
 
        # from the output so that they don't get included in the library
12510
 
        # dependencies.
12511
 
        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'
12512
 
        ;;
12513
 
      *)
12514
 
        if test "$GXX" = yes; then
12515
 
          if test $with_gnu_ld = no; then
12516
 
            case $host_cpu in
12517
 
            hppa*64*)
12518
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519
 
              ;;
12520
 
            ia64*)
12521
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12522
 
              ;;
12523
 
            *)
12524
 
              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'
12525
 
              ;;
12526
 
            esac
12527
 
          fi
12528
 
        else
12529
 
          # FIXME: insert proper C++ library support
12530
 
          ld_shlibs_CXX=no
12531
 
        fi
12532
 
        ;;
12533
 
    esac
12534
 
    ;;
12535
 
  interix[3-9]*)
12536
 
    hardcode_direct_CXX=no
12537
 
    hardcode_shlibpath_var_CXX=no
12538
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12539
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12540
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12541
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12542
 
    # default) and relocated if they conflict, which is a slow very memory
12543
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
12544
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12545
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12546
 
    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'
12547
 
    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'
12548
 
    ;;
12549
 
  irix5* | irix6*)
12550
 
    case $cc_basename in
12551
 
      CC*)
12552
 
        # SGI C++
12553
 
        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'
12554
 
 
12555
 
        # Archives containing C++ object files must be created using
12556
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12557
 
        # necessary to make sure instantiated templates are included
12558
 
        # in the archive.
12559
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12560
 
        ;;
12561
 
      *)
12562
 
        if test "$GXX" = yes; then
12563
 
          if test "$with_gnu_ld" = no; then
12564
 
            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'
12565
 
          else
12566
 
            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'
12567
 
          fi
12568
 
        fi
12569
 
        link_all_deplibs_CXX=yes
12570
 
        ;;
12571
 
    esac
12572
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573
 
    hardcode_libdir_separator_CXX=:
12574
 
    ;;
12575
 
  linux* | k*bsd*-gnu)
12576
 
    case $cc_basename in
12577
 
      KCC*)
12578
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12579
 
 
12580
 
        # KCC will only create a shared library if the output file
12581
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12582
 
        # to its proper name (with version) after linking.
12583
 
        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'
12584
 
        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'
12585
 
        # Commands to make compiler produce verbose output that lists
12586
 
        # what "hidden" libraries, object files and flags are used when
12587
 
        # linking a shared library.
12588
 
        #
12589
 
        # There doesn't appear to be a way to prevent this compiler from
12590
 
        # explicitly linking system object files so we need to strip them
12591
 
        # from the output so that they don't get included in the library
12592
 
        # dependencies.
12593
 
        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'
12594
 
 
12595
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12596
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12597
 
 
12598
 
        # Archives containing C++ object files must be created using
12599
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12600
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12601
 
        ;;
12602
 
      icpc*)
12603
 
        # Intel C++
12604
 
        with_gnu_ld=yes
12605
 
        # version 8.0 and above of icpc choke on multiply defined symbols
12606
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
12607
 
        # earlier do not add the objects themselves.
12608
 
        case `$CC -V 2>&1` in
12609
 
        *"Version 7."*)
12610
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12611
 
          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'
12612
 
          ;;
12613
 
        *)  # Version 8.0 or newer
12614
 
          tmp_idyn=
12615
 
          case $host_cpu in
12616
 
            ia64*) tmp_idyn=' -i_dynamic';;
12617
 
          esac
12618
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619
 
          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'
12620
 
          ;;
12621
 
        esac
 
12985
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12986
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12987
          ;;
 
12988
      esac
 
12989
      ;;
 
12990
 
 
12991
      sysv5* | sco3.2v5* | sco5v6*)
 
12992
        # Note: We can NOT use -z defs as we might desire, because we do not
 
12993
        # link with -lc, and that would cause any symbols used from libc to
 
12994
        # always be unresolved, which means just about no library would
 
12995
        # ever link correctly.  If we're not using GNU ld we use -z text
 
12996
        # though, which does catch some bad symbols but isn't as heavy-handed
 
12997
        # as -z defs.
 
12998
        no_undefined_flag_CXX='${wl}-z,text'
 
12999
        allow_undefined_flag_CXX='${wl}-z,nodefs'
12622
13000
        archive_cmds_need_lc_CXX=no
12623
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12624
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12625
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12626
 
        ;;
12627
 
      pgCC* | pgcpp*)
12628
 
        # Portland Group C++ compiler
12629
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12630
 
        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'
12631
 
 
12632
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12633
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12634
 
        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'
12635
 
        ;;
12636
 
      cxx*)
12637
 
        # Compaq C++
12638
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639
 
        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'
12640
 
 
12641
 
        runpath_var=LD_RUN_PATH
12642
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12643
 
        hardcode_libdir_separator_CXX=:
12644
 
 
12645
 
        # Commands to make compiler produce verbose output that lists
12646
 
        # what "hidden" libraries, object files and flags are used when
12647
 
        # linking a shared library.
12648
 
        #
12649
 
        # There doesn't appear to be a way to prevent this compiler from
12650
 
        # explicitly linking system object files so we need to strip them
12651
 
        # from the output so that they don't get included in the library
12652
 
        # dependencies.
12653
 
        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'
12654
 
        ;;
12655
 
      *)
12656
 
        case `$CC -V 2>&1 | sed 5q` in
12657
 
        *Sun\ C*)
12658
 
          # Sun C++ 5.9
12659
 
          no_undefined_flag_CXX=' -zdefs'
12660
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12662
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12663
 
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12664
 
 
12665
 
          # Not sure whether something based on
12666
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12667
 
          # would be better.
12668
 
          output_verbose_link_cmd='echo'
12669
 
 
12670
 
          # Archives containing C++ object files must be created using
12671
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12672
 
          # necessary to make sure instantiated templates are included
12673
 
          # in the archive.
12674
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12675
 
          ;;
12676
 
        esac
12677
 
        ;;
12678
 
    esac
12679
 
    ;;
12680
 
  lynxos*)
12681
 
    # FIXME: insert proper C++ library support
12682
 
    ld_shlibs_CXX=no
12683
 
    ;;
12684
 
  m88k*)
12685
 
    # FIXME: insert proper C++ library support
12686
 
    ld_shlibs_CXX=no
12687
 
    ;;
12688
 
  mvs*)
12689
 
    case $cc_basename in
12690
 
      cxx*)
12691
 
        # FIXME: insert proper C++ library support
12692
 
        ld_shlibs_CXX=no
12693
 
        ;;
12694
 
      *)
12695
 
        # FIXME: insert proper C++ library support
12696
 
        ld_shlibs_CXX=no
12697
 
        ;;
12698
 
    esac
12699
 
    ;;
12700
 
  netbsd* | netbsdelf*-gnu)
12701
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12702
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12703
 
      wlarc=
12704
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12705
 
      hardcode_direct_CXX=yes
12706
 
      hardcode_shlibpath_var_CXX=no
12707
 
    fi
12708
 
    # Workaround some broken pre-1.5 toolchains
12709
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12710
 
    ;;
12711
 
  openbsd2*)
12712
 
    # C++ shared libraries are fairly broken
12713
 
    ld_shlibs_CXX=no
12714
 
    ;;
12715
 
  openbsd*)
12716
 
    if test -f /usr/libexec/ld.so; then
12717
 
      hardcode_direct_CXX=yes
12718
 
      hardcode_shlibpath_var_CXX=no
12719
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12720
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12722
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12723
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12724
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12725
 
      fi
12726
 
      output_verbose_link_cmd='echo'
12727
 
    else
12728
 
      ld_shlibs_CXX=no
12729
 
    fi
12730
 
    ;;
12731
 
  osf3*)
12732
 
    case $cc_basename in
12733
 
      KCC*)
12734
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12735
 
 
12736
 
        # KCC will only create a shared library if the output file
12737
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12738
 
        # to its proper name (with version) after linking.
12739
 
        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'
12740
 
 
12741
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742
 
        hardcode_libdir_separator_CXX=:
12743
 
 
12744
 
        # Archives containing C++ object files must be created using
12745
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12747
 
 
12748
 
        ;;
12749
 
      RCC*)
12750
 
        # Rational C++ 2.4.1
12751
 
        # FIXME: insert proper C++ library support
12752
 
        ld_shlibs_CXX=no
12753
 
        ;;
12754
 
      cxx*)
12755
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12756
 
        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'
12757
 
 
12758
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12759
 
        hardcode_libdir_separator_CXX=:
12760
 
 
12761
 
        # Commands to make compiler produce verbose output that lists
12762
 
        # what "hidden" libraries, object files and flags are used when
12763
 
        # linking a shared library.
12764
 
        #
12765
 
        # There doesn't appear to be a way to prevent this compiler from
12766
 
        # explicitly linking system object files so we need to strip them
12767
 
        # from the output so that they don't get included in the library
12768
 
        # dependencies.
12769
 
        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'
12770
 
        ;;
12771
 
      *)
12772
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12773
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12774
 
          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'
12775
 
 
12776
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777
 
          hardcode_libdir_separator_CXX=:
12778
 
 
12779
 
          # Commands to make compiler produce verbose output that lists
12780
 
          # what "hidden" libraries, object files and flags are used when
12781
 
          # linking a shared library.
12782
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12783
 
 
12784
 
        else
12785
 
          # FIXME: insert proper C++ library support
12786
 
          ld_shlibs_CXX=no
12787
 
        fi
12788
 
        ;;
12789
 
    esac
12790
 
    ;;
12791
 
  osf4* | osf5*)
12792
 
    case $cc_basename in
12793
 
      KCC*)
12794
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12795
 
 
12796
 
        # KCC will only create a shared library if the output file
12797
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12798
 
        # to its proper name (with version) after linking.
12799
 
        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'
12800
 
 
12801
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802
 
        hardcode_libdir_separator_CXX=:
12803
 
 
12804
 
        # Archives containing C++ object files must be created using
12805
 
        # the KAI C++ compiler.
12806
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12807
 
        ;;
12808
 
      RCC*)
12809
 
        # Rational C++ 2.4.1
12810
 
        # FIXME: insert proper C++ library support
12811
 
        ld_shlibs_CXX=no
12812
 
        ;;
12813
 
      cxx*)
12814
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12815
 
        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'
12816
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12817
 
          echo "-hidden">> $lib.exp~
12818
 
          $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~
12819
 
          $rm $lib.exp'
12820
 
 
12821
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12822
 
        hardcode_libdir_separator_CXX=:
12823
 
 
12824
 
        # Commands to make compiler produce verbose output that lists
12825
 
        # what "hidden" libraries, object files and flags are used when
12826
 
        # linking a shared library.
12827
 
        #
12828
 
        # There doesn't appear to be a way to prevent this compiler from
12829
 
        # explicitly linking system object files so we need to strip them
12830
 
        # from the output so that they don't get included in the library
12831
 
        # dependencies.
12832
 
        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'
12833
 
        ;;
12834
 
      *)
12835
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12836
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12837
 
         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'
12838
 
 
12839
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12840
 
          hardcode_libdir_separator_CXX=:
12841
 
 
12842
 
          # Commands to make compiler produce verbose output that lists
12843
 
          # what "hidden" libraries, object files and flags are used when
12844
 
          # linking a shared library.
12845
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12846
 
 
12847
 
        else
12848
 
          # FIXME: insert proper C++ library support
12849
 
          ld_shlibs_CXX=no
12850
 
        fi
12851
 
        ;;
12852
 
    esac
12853
 
    ;;
12854
 
  psos*)
12855
 
    # FIXME: insert proper C++ library support
12856
 
    ld_shlibs_CXX=no
12857
 
    ;;
12858
 
  sunos4*)
12859
 
    case $cc_basename in
12860
 
      CC*)
12861
 
        # Sun C++ 4.x
12862
 
        # FIXME: insert proper C++ library support
12863
 
        ld_shlibs_CXX=no
12864
 
        ;;
12865
 
      lcc*)
12866
 
        # Lucid
12867
 
        # FIXME: insert proper C++ library support
12868
 
        ld_shlibs_CXX=no
12869
 
        ;;
12870
 
      *)
12871
 
        # FIXME: insert proper C++ library support
12872
 
        ld_shlibs_CXX=no
12873
 
        ;;
12874
 
    esac
12875
 
    ;;
12876
 
  solaris*)
12877
 
    case $cc_basename in
12878
 
      CC*)
12879
 
        # Sun C++ 4.2, 5.x and Centerline C++
12880
 
        archive_cmds_need_lc_CXX=yes
12881
 
        no_undefined_flag_CXX=' -zdefs'
12882
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12884
 
        $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'
12885
 
 
12886
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12887
13001
        hardcode_shlibpath_var_CXX=no
12888
 
        case $host_os in
12889
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12890
 
          *)
12891
 
            # The compiler driver will combine and reorder linker options,
12892
 
            # but understands `-z linker_flag'.
12893
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12894
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12895
 
            ;;
12896
 
        esac
 
13002
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13003
        hardcode_libdir_separator_CXX=':'
12897
13004
        link_all_deplibs_CXX=yes
12898
 
 
12899
 
        output_verbose_link_cmd='echo'
12900
 
 
12901
 
        # Archives containing C++ object files must be created using
12902
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12903
 
        # necessary to make sure instantiated templates are included
12904
 
        # in the archive.
12905
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12906
 
        ;;
12907
 
      gcx*)
12908
 
        # Green Hills C++ Compiler
12909
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12910
 
 
12911
 
        # The C++ compiler must be used to create the archive.
12912
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12913
 
        ;;
12914
 
      *)
12915
 
        # GNU C++ compiler with Solaris linker
12916
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12917
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12918
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12919
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12920
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12921
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12922
 
 
12923
 
            # Commands to make compiler produce verbose output that lists
12924
 
            # what "hidden" libraries, object files and flags are used when
12925
 
            # linking a shared library.
12926
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12927
 
          else
12928
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12929
 
            # platform.
12930
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12931
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12932
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12933
 
 
12934
 
            # Commands to make compiler produce verbose output that lists
12935
 
            # what "hidden" libraries, object files and flags are used when
12936
 
            # linking a shared library.
12937
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12938
 
          fi
12939
 
 
12940
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12941
 
          case $host_os in
12942
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13005
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13006
        runpath_var='LD_RUN_PATH'
 
13007
 
 
13008
        case $cc_basename in
 
13009
          CC*)
 
13010
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13011
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13012
            ;;
12943
13013
          *)
12944
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12945
 
            ;;
12946
 
          esac
12947
 
        fi
12948
 
        ;;
12949
 
    esac
12950
 
    ;;
12951
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12952
 
    no_undefined_flag_CXX='${wl}-z,text'
12953
 
    archive_cmds_need_lc_CXX=no
12954
 
    hardcode_shlibpath_var_CXX=no
12955
 
    runpath_var='LD_RUN_PATH'
12956
 
 
12957
 
    case $cc_basename in
12958
 
      CC*)
12959
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961
 
        ;;
12962
 
      *)
12963
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12965
 
        ;;
12966
 
    esac
12967
 
    ;;
12968
 
  sysv5* | sco3.2v5* | sco5v6*)
12969
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12970
 
    # link with -lc, and that would cause any symbols used from libc to
12971
 
    # always be unresolved, which means just about no library would
12972
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12973
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12974
 
    # as -z defs.
12975
 
    # For security reasons, it is highly recommended that you always
12976
 
    # use absolute paths for naming shared libraries, and exclude the
12977
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12978
 
    # requires that you compile everything twice, which is a pain.
12979
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12980
 
    # non-empty value in the environment.  Most likely only useful for
12981
 
    # creating official distributions of packages.
12982
 
    # This is a hack until libtool officially supports absolute path
12983
 
    # names for shared libraries.
12984
 
    no_undefined_flag_CXX='${wl}-z,text'
12985
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12986
 
    archive_cmds_need_lc_CXX=no
12987
 
    hardcode_shlibpath_var_CXX=no
12988
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12989
 
    hardcode_libdir_separator_CXX=':'
12990
 
    link_all_deplibs_CXX=yes
12991
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12992
 
    runpath_var='LD_RUN_PATH'
12993
 
 
12994
 
    case $cc_basename in
12995
 
      CC*)
12996
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12998
 
        ;;
12999
 
      *)
13000
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13001
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002
 
        ;;
13003
 
    esac
13004
 
    ;;
13005
 
  tandem*)
13006
 
    case $cc_basename in
13007
 
      NCC*)
13008
 
        # NonStop-UX NCC 3.20
13009
 
        # FIXME: insert proper C++ library support
13010
 
        ld_shlibs_CXX=no
13011
 
        ;;
13012
 
      *)
13013
 
        # FIXME: insert proper C++ library support
13014
 
        ld_shlibs_CXX=no
13015
 
        ;;
13016
 
    esac
13017
 
    ;;
13018
 
  vxworks*)
13019
 
    # FIXME: insert proper C++ library support
13020
 
    ld_shlibs_CXX=no
13021
 
    ;;
13022
 
  *)
13023
 
    # FIXME: insert proper C++ library support
13024
 
    ld_shlibs_CXX=no
13025
 
    ;;
13026
 
esac
13027
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13014
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13015
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13016
            ;;
 
13017
        esac
 
13018
      ;;
 
13019
 
 
13020
      tandem*)
 
13021
        case $cc_basename in
 
13022
          NCC*)
 
13023
            # NonStop-UX NCC 3.20
 
13024
            # FIXME: insert proper C++ library support
 
13025
            ld_shlibs_CXX=no
 
13026
            ;;
 
13027
          *)
 
13028
            # FIXME: insert proper C++ library support
 
13029
            ld_shlibs_CXX=no
 
13030
            ;;
 
13031
        esac
 
13032
        ;;
 
13033
 
 
13034
      vxworks*)
 
13035
        # FIXME: insert proper C++ library support
 
13036
        ld_shlibs_CXX=no
 
13037
        ;;
 
13038
 
 
13039
      *)
 
13040
        # FIXME: insert proper C++ library support
 
13041
        ld_shlibs_CXX=no
 
13042
        ;;
 
13043
    esac
 
13044
 
 
13045
    { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13028
13046
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13029
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13030
 
 
13031
 
GCC_CXX="$GXX"
13032
 
LD_CXX="$LD"
13033
 
 
13034
 
cat > conftest.$ac_ext <<EOF
 
13047
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13048
 
 
13049
    GCC_CXX="$GXX"
 
13050
    LD_CXX="$LD"
 
13051
 
 
13052
    ## CAVEAT EMPTOR:
 
13053
    ## There is no encapsulation within the following macros, do not change
 
13054
    ## the running order or otherwise move them around unless you know exactly
 
13055
    ## what you are doing...
 
13056
    # Dependencies to place before and after the object being linked:
 
13057
predep_objects_CXX=
 
13058
postdep_objects_CXX=
 
13059
predeps_CXX=
 
13060
postdeps_CXX=
 
13061
compiler_lib_search_path_CXX=
 
13062
 
 
13063
cat > conftest.$ac_ext <<_LT_EOF
13035
13064
class Foo
13036
13065
{
13037
13066
public:
13039
13068
private:
13040
13069
  int a;
13041
13070
};
13042
 
EOF
 
13071
_LT_EOF
13043
13072
 
13044
13073
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045
13074
  (eval $ac_compile) 2>&5
13053
13082
  # the conftest object file.
13054
13083
  pre_test_object_deps_done=no
13055
13084
 
13056
 
  # The `*' in the case matches for architectures that use `case' in
13057
 
  # $output_verbose_cmd can trigger glob expansion during the loop
13058
 
  # eval without this substitution.
13059
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13060
 
 
13061
 
  for p in `eval $output_verbose_link_cmd`; do
 
13085
  for p in `eval "$output_verbose_link_cmd"`; do
13062
13086
    case $p in
13063
13087
 
13064
13088
    -L* | -R* | -l*)
13065
13089
       # Some compilers place space between "-{L,R}" and the path.
13066
13090
       # Remove the space.
13067
 
       if test $p = "-L" \
13068
 
          || test $p = "-R"; then
 
13091
       if test $p = "-L" ||
 
13092
          test $p = "-R"; then
13069
13093
         prev=$p
13070
13094
         continue
13071
13095
       else
13130
13154
  echo "libtool.m4: error: problem compiling CXX test program"
13131
13155
fi
13132
13156
 
13133
 
$rm -f confest.$objext
13134
 
 
13135
 
compiler_lib_search_dirs_CXX=
13136
 
if test -n "$compiler_lib_search_path_CXX"; then
13137
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13138
 
fi
 
13157
$RM -f confest.$objext
13139
13158
 
13140
13159
# PORTME: override above test on systems where it is broken
13141
13160
case $host_os in
13151
13170
  case `$CC -V 2>&1 | sed 5q` in
13152
13171
  *Sun\ C*)
13153
13172
    # Sun C++ 5.9
13154
 
    #
 
13173
 
13155
13174
    # The more standards-conforming stlport4 library is
13156
13175
    # incompatible with the Cstd library. Avoid specifying
13157
13176
    # it if it's in CXXFLAGS. Ignore libCrun as
13161
13180
      solaris_use_stlport4=yes
13162
13181
      ;;
13163
13182
    esac
 
13183
 
13164
13184
    if test "$solaris_use_stlport4" != yes; then
13165
13185
      postdeps_CXX='-library=Cstd -library=Crun'
13166
13186
    fi
13192
13212
  ;;
13193
13213
esac
13194
13214
 
 
13215
 
13195
13216
case " $postdeps_CXX " in
13196
13217
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13197
13218
esac
13198
 
 
13199
 
lt_prog_compiler_wl_CXX=
 
13219
 compiler_lib_search_dirs_CXX=
 
13220
if test -n "${compiler_lib_search_path_CXX}"; then
 
13221
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13222
fi
 
13223
 
 
13224
 
 
13225
 
 
13226
 
 
13227
 
 
13228
 
 
13229
 
 
13230
 
 
13231
 
 
13232
 
 
13233
 
 
13234
 
 
13235
 
 
13236
 
 
13237
 
 
13238
 
 
13239
 
 
13240
 
 
13241
 
 
13242
 
 
13243
 
 
13244
 
 
13245
 
 
13246
 
 
13247
 
 
13248
 
 
13249
 
 
13250
 
 
13251
 
 
13252
 
 
13253
 
 
13254
    lt_prog_compiler_wl_CXX=
13200
13255
lt_prog_compiler_pic_CXX=
13201
13256
lt_prog_compiler_static_CXX=
13202
13257
 
13216
13271
        lt_prog_compiler_static_CXX='-Bstatic'
13217
13272
      fi
13218
13273
      ;;
 
13274
 
13219
13275
    amigaos*)
13220
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13221
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13222
 
      # like `-m68040'.
13223
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13276
      case $host_cpu in
 
13277
      powerpc)
 
13278
            # see comment about AmigaOS4 .so support
 
13279
            lt_prog_compiler_pic_CXX='-fPIC'
 
13280
        ;;
 
13281
      m68k)
 
13282
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13283
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13284
            # like `-m68040'.
 
13285
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13286
        ;;
 
13287
      esac
13224
13288
      ;;
 
13289
 
13225
13290
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13226
13291
      # PIC is the default for these OSes.
13227
13292
      ;;
13228
 
    mingw* | cygwin* | os2* | pw32*)
 
13293
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13229
13294
      # This hack is so that the source file can tell whether it is being
13230
13295
      # built for inclusion in a dll (and should export symbols for example).
13231
13296
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13251
13316
      fi
13252
13317
      ;;
13253
13318
    hpux*)
13254
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13255
 
      # not for PA HP-UX.
 
13319
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13320
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13321
      # sets the default TLS model and affects inlining.
13256
13322
      case $host_cpu in
13257
 
      hppa*64*|ia64*)
 
13323
      hppa*64*)
13258
13324
        ;;
13259
13325
      *)
13260
13326
        lt_prog_compiler_pic_CXX='-fPIC'
13261
13327
        ;;
13262
13328
      esac
13263
13329
      ;;
 
13330
    *qnx* | *nto*)
 
13331
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13332
      # it will coredump.
 
13333
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13334
      ;;
13264
13335
    *)
13265
13336
      lt_prog_compiler_pic_CXX='-fPIC'
13266
13337
      ;;
13280
13351
        case $cc_basename in
13281
13352
        cxch68*)
13282
13353
          # Green Hills C++ Compiler
13283
 
          # _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"
 
13354
          # _LT_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"
13284
13355
          ;;
13285
13356
        esac
13286
13357
        ;;
13287
 
       darwin*)
13288
 
         # PIC is the default on this platform
13289
 
         # Common symbols not allowed in MH_DYLIB files
13290
 
         case $cc_basename in
13291
 
           xlc*)
13292
 
           lt_prog_compiler_pic_CXX='-qnocommon'
13293
 
           lt_prog_compiler_wl_CXX='-Wl,'
13294
 
           ;;
13295
 
         esac
13296
 
       ;;
13297
13358
      dgux*)
13298
13359
        case $cc_basename in
13299
13360
          ec++*)
13357
13418
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13358
13419
            lt_prog_compiler_pic_CXX='-fPIC'
13359
13420
            ;;
13360
 
          icpc* | ecpc*)
13361
 
            # Intel C++
 
13421
          ecpc* )
 
13422
            # old Intel C++ for x86_64 which still supported -KPIC.
13362
13423
            lt_prog_compiler_wl_CXX='-Wl,'
13363
13424
            lt_prog_compiler_pic_CXX='-KPIC'
13364
13425
            lt_prog_compiler_static_CXX='-static'
13365
13426
            ;;
 
13427
          icpc* )
 
13428
            # Intel C++, used to be incompatible with GCC.
 
13429
            # ICC 10 doesn't accept -KPIC any more.
 
13430
            lt_prog_compiler_wl_CXX='-Wl,'
 
13431
            lt_prog_compiler_pic_CXX='-fPIC'
 
13432
            lt_prog_compiler_static_CXX='-static'
 
13433
            ;;
13366
13434
          pgCC* | pgcpp*)
13367
 
            # Portland Group C++ compiler.
 
13435
            # Portland Group C++ compiler
13368
13436
            lt_prog_compiler_wl_CXX='-Wl,'
13369
13437
            lt_prog_compiler_pic_CXX='-fpic'
13370
13438
            lt_prog_compiler_static_CXX='-Bstatic'
13376
13444
            lt_prog_compiler_pic_CXX=
13377
13445
            lt_prog_compiler_static_CXX='-non_shared'
13378
13446
            ;;
 
13447
          xlc* | xlC*)
 
13448
            # IBM XL 8.0 on PPC
 
13449
            lt_prog_compiler_wl_CXX='-Wl,'
 
13450
            lt_prog_compiler_pic_CXX='-qpic'
 
13451
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13452
            ;;
13379
13453
          *)
13380
13454
            case `$CC -V 2>&1 | sed 5q` in
13381
13455
            *Sun\ C*)
13401
13475
            ;;
13402
13476
        esac
13403
13477
        ;;
13404
 
      netbsd* | netbsdelf*-gnu)
 
13478
      netbsd*)
13405
13479
        ;;
 
13480
      *qnx* | *nto*)
 
13481
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13482
        # it will coredump.
 
13483
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13484
        ;;
13406
13485
      osf3* | osf4* | osf5*)
13407
13486
        case $cc_basename in
13408
13487
          KCC*)
13457
13536
            ;;
13458
13537
        esac
13459
13538
        ;;
 
13539
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13540
        case $cc_basename in
 
13541
          CC*)
 
13542
            lt_prog_compiler_wl_CXX='-Wl,'
 
13543
            lt_prog_compiler_pic_CXX='-KPIC'
 
13544
            lt_prog_compiler_static_CXX='-Bstatic'
 
13545
            ;;
 
13546
        esac
 
13547
        ;;
13460
13548
      tandem*)
13461
13549
        case $cc_basename in
13462
13550
          NCC*)
13467
13555
            ;;
13468
13556
        esac
13469
13557
        ;;
13470
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13471
 
        case $cc_basename in
13472
 
          CC*)
13473
 
            lt_prog_compiler_wl_CXX='-Wl,'
13474
 
            lt_prog_compiler_pic_CXX='-KPIC'
13475
 
            lt_prog_compiler_static_CXX='-Bstatic'
13476
 
            ;;
13477
 
        esac
13478
 
        ;;
13479
13558
      vxworks*)
13480
13559
        ;;
13481
13560
      *)
13484
13563
    esac
13485
13564
  fi
13486
13565
 
 
13566
case $host_os in
 
13567
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13568
  *djgpp*)
 
13569
    lt_prog_compiler_pic_CXX=
 
13570
    ;;
 
13571
  *)
 
13572
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13573
    ;;
 
13574
esac
13487
13575
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13488
13576
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13489
13577
 
 
13578
 
 
13579
 
13490
13580
#
13491
13581
# Check to make sure the PIC flag actually works.
13492
13582
#
13493
13583
if test -n "$lt_prog_compiler_pic_CXX"; then
13494
 
 
13495
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13584
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13496
13585
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13497
13586
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13498
13587
  echo $ECHO_N "(cached) $ECHO_C" >&6
13499
13588
else
13500
13589
  lt_cv_prog_compiler_pic_works_CXX=no
13501
 
  ac_outfile=conftest.$ac_objext
 
13590
   ac_outfile=conftest.$ac_objext
13502
13591
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13592
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13504
13593
   # Insert the option either (1) after the last *FLAGS variable, or
13510
13599
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13511
13600
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512
13601
   -e 's:$: $lt_compiler_flag:'`
13513
 
   (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
 
13602
   (eval echo "\"\$as_me:13602: $lt_compile\"" >&5)
13514
13603
   (eval "$lt_compile" 2>conftest.err)
13515
13604
   ac_status=$?
13516
13605
   cat conftest.err >&5
13517
 
   echo "$as_me:13517: \$? = $ac_status" >&5
 
13606
   echo "$as_me:13606: \$? = $ac_status" >&5
13518
13607
   if (exit $ac_status) && test -s "$ac_outfile"; then
13519
13608
     # The compiler can only warn and ignore the option if not recognized
13520
13609
     # So say no if there are warnings other than the usual output.
13521
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13610
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13522
13611
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13523
13612
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13524
13613
       lt_cv_prog_compiler_pic_works_CXX=yes
13525
13614
     fi
13526
13615
   fi
13527
 
   $rm conftest*
 
13616
   $RM conftest*
13528
13617
 
13529
13618
fi
13530
13619
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13541
13630
fi
13542
13631
 
13543
13632
fi
13544
 
case $host_os in
13545
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13546
 
  *djgpp*)
13547
 
    lt_prog_compiler_pic_CXX=
13548
 
    ;;
13549
 
  *)
13550
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13551
 
    ;;
13552
 
esac
 
13633
 
 
13634
 
13553
13635
 
13554
13636
#
13555
13637
# Check to make sure the static flag actually works.
13570
13652
     if test -s conftest.err; then
13571
13653
       # Append any errors to the config.log.
13572
13654
       cat conftest.err 1>&5
13573
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13655
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13574
13656
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13575
13657
       if diff conftest.exp conftest.er2 >/dev/null; then
13576
13658
         lt_cv_prog_compiler_static_works_CXX=yes
13579
13661
       lt_cv_prog_compiler_static_works_CXX=yes
13580
13662
     fi
13581
13663
   fi
13582
 
   $rm -r conftest*
 
13664
   $RM -r conftest*
13583
13665
   LDFLAGS="$save_LDFLAGS"
13584
13666
 
13585
13667
fi
13593
13675
fi
13594
13676
 
13595
13677
 
13596
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13597
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13598
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13599
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13600
 
else
13601
 
  lt_cv_prog_compiler_c_o_CXX=no
13602
 
   $rm -r conftest 2>/dev/null
13603
 
   mkdir conftest
13604
 
   cd conftest
13605
 
   mkdir out
13606
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13607
 
 
13608
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13609
 
   # Insert the option either (1) after the last *FLAGS variable, or
13610
 
   # (2) before a word containing "conftest.", or (3) at the end.
13611
 
   # Note that $ac_compile itself does not contain backslashes and begins
13612
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13613
 
   lt_compile=`echo "$ac_compile" | $SED \
13614
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13615
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13616
 
   -e 's:$: $lt_compiler_flag:'`
13617
 
   (eval echo "\"\$as_me:13617: $lt_compile\"" >&5)
13618
 
   (eval "$lt_compile" 2>out/conftest.err)
13619
 
   ac_status=$?
13620
 
   cat out/conftest.err >&5
13621
 
   echo "$as_me:13621: \$? = $ac_status" >&5
13622
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13623
 
   then
13624
 
     # The compiler can only warn and ignore the option if not recognized
13625
 
     # So say no if there are warnings
13626
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13627
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13628
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13629
 
       lt_cv_prog_compiler_c_o_CXX=yes
13630
 
     fi
13631
 
   fi
13632
 
   chmod u+w . 2>&5
13633
 
   $rm conftest*
13634
 
   # SGI C++ compiler will create directory out/ii_files/ for
13635
 
   # template instantiation
13636
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13637
 
   $rm out/* && rmdir out
13638
 
   cd ..
13639
 
   rmdir conftest
13640
 
   $rm conftest*
13641
 
 
13642
 
fi
13643
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13644
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13678
 
 
13679
 
 
13680
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13681
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13682
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13684
else
 
13685
  lt_cv_prog_compiler_c_o_CXX=no
 
13686
   $RM -r conftest 2>/dev/null
 
13687
   mkdir conftest
 
13688
   cd conftest
 
13689
   mkdir out
 
13690
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13691
 
 
13692
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13693
   # Insert the option either (1) after the last *FLAGS variable, or
 
13694
   # (2) before a word containing "conftest.", or (3) at the end.
 
13695
   # Note that $ac_compile itself does not contain backslashes and begins
 
13696
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13697
   lt_compile=`echo "$ac_compile" | $SED \
 
13698
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13699
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13700
   -e 's:$: $lt_compiler_flag:'`
 
13701
   (eval echo "\"\$as_me:13701: $lt_compile\"" >&5)
 
13702
   (eval "$lt_compile" 2>out/conftest.err)
 
13703
   ac_status=$?
 
13704
   cat out/conftest.err >&5
 
13705
   echo "$as_me:13705: \$? = $ac_status" >&5
 
13706
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13707
   then
 
13708
     # The compiler can only warn and ignore the option if not recognized
 
13709
     # So say no if there are warnings
 
13710
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13711
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13712
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13713
       lt_cv_prog_compiler_c_o_CXX=yes
 
13714
     fi
 
13715
   fi
 
13716
   chmod u+w . 2>&5
 
13717
   $RM conftest*
 
13718
   # SGI C++ compiler will create directory out/ii_files/ for
 
13719
   # template instantiation
 
13720
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13721
   $RM out/* && rmdir out
 
13722
   cd ..
 
13723
   $RM -r conftest
 
13724
   $RM conftest*
 
13725
 
 
13726
fi
 
13727
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13728
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13729
 
 
13730
 
 
13731
 
 
13732
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13733
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13734
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13736
else
 
13737
  lt_cv_prog_compiler_c_o_CXX=no
 
13738
   $RM -r conftest 2>/dev/null
 
13739
   mkdir conftest
 
13740
   cd conftest
 
13741
   mkdir out
 
13742
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13743
 
 
13744
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13745
   # Insert the option either (1) after the last *FLAGS variable, or
 
13746
   # (2) before a word containing "conftest.", or (3) at the end.
 
13747
   # Note that $ac_compile itself does not contain backslashes and begins
 
13748
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13749
   lt_compile=`echo "$ac_compile" | $SED \
 
13750
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13751
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13752
   -e 's:$: $lt_compiler_flag:'`
 
13753
   (eval echo "\"\$as_me:13753: $lt_compile\"" >&5)
 
13754
   (eval "$lt_compile" 2>out/conftest.err)
 
13755
   ac_status=$?
 
13756
   cat out/conftest.err >&5
 
13757
   echo "$as_me:13757: \$? = $ac_status" >&5
 
13758
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13759
   then
 
13760
     # The compiler can only warn and ignore the option if not recognized
 
13761
     # So say no if there are warnings
 
13762
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13763
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13764
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13765
       lt_cv_prog_compiler_c_o_CXX=yes
 
13766
     fi
 
13767
   fi
 
13768
   chmod u+w . 2>&5
 
13769
   $RM conftest*
 
13770
   # SGI C++ compiler will create directory out/ii_files/ for
 
13771
   # template instantiation
 
13772
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13773
   $RM out/* && rmdir out
 
13774
   cd ..
 
13775
   $RM -r conftest
 
13776
   $RM conftest*
 
13777
 
 
13778
fi
 
13779
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13780
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13781
 
 
13782
 
13645
13783
 
13646
13784
 
13647
13785
hard_links="nottested"
13650
13788
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13651
13789
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13652
13790
  hard_links=yes
13653
 
  $rm conftest*
 
13791
  $RM conftest*
13654
13792
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13655
13793
  touch conftest.a
13656
13794
  ln conftest.a conftest.b 2>&5 || hard_links=no
13666
13804
  need_locks=no
13667
13805
fi
13668
13806
 
13669
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13807
 
 
13808
 
 
13809
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13670
13810
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13671
13811
 
13672
13812
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13674
13814
  aix[4-9]*)
13675
13815
    # If we're using GNU nm, then we don't want the "-C" option.
13676
13816
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13677
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13678
 
      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'
 
13817
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
13818
      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'
13679
13819
    else
13680
 
      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'
 
13820
      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'
13681
13821
    fi
13682
13822
    ;;
13683
13823
  pw32*)
13684
13824
    export_symbols_cmds_CXX="$ltdll_cmds"
13685
13825
  ;;
13686
 
  cygwin* | mingw*)
13687
 
    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'
13688
 
  ;;
13689
 
  linux* | k*bsd*-gnu)
13690
 
    link_all_deplibs_CXX=no
 
13826
  cygwin* | mingw* | cegcc*)
 
13827
    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'
13691
13828
  ;;
13692
13829
  *)
13693
13830
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13699
13836
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13700
13837
test "$ld_shlibs_CXX" = no && can_build_shared=no
13701
13838
 
 
13839
with_gnu_ld_CXX=$with_gnu_ld
 
13840
 
 
13841
 
 
13842
 
 
13843
 
 
13844
 
 
13845
 
13702
13846
#
13703
13847
# Do we need to explicitly link libc?
13704
13848
#
13718
13862
      # to ld, don't add -lc before -lgcc.
13719
13863
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13720
13864
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13721
 
      $rm conftest*
 
13865
      $RM conftest*
13722
13866
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13723
13867
 
13724
13868
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739
13883
        libname=conftest
13740
13884
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13741
13885
        allow_undefined_flag_CXX=
13742
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13743
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13886
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13887
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13744
13888
  ac_status=$?
13745
13889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746
13890
  (exit $ac_status); }
13753
13897
      else
13754
13898
        cat conftest.err 1>&5
13755
13899
      fi
13756
 
      $rm conftest*
 
13900
      $RM conftest*
13757
13901
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13758
13902
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13759
13903
      ;;
13762
13906
  ;;
13763
13907
esac
13764
13908
 
13765
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13909
 
 
13910
 
 
13911
 
 
13912
 
 
13913
 
 
13914
 
 
13915
 
 
13916
 
 
13917
 
 
13918
 
 
13919
 
 
13920
 
 
13921
 
 
13922
 
 
13923
 
 
13924
 
 
13925
 
 
13926
 
 
13927
 
 
13928
 
 
13929
 
 
13930
 
 
13931
 
 
13932
 
 
13933
 
 
13934
 
 
13935
 
 
13936
 
 
13937
 
 
13938
 
 
13939
 
 
13940
 
 
13941
 
 
13942
 
 
13943
 
 
13944
 
 
13945
 
 
13946
 
 
13947
 
 
13948
 
 
13949
 
 
13950
 
 
13951
 
 
13952
 
 
13953
 
 
13954
 
 
13955
 
 
13956
 
 
13957
 
 
13958
 
 
13959
 
 
13960
 
 
13961
 
 
13962
 
 
13963
 
 
13964
 
 
13965
 
 
13966
 
 
13967
 
 
13968
 
 
13969
 
 
13970
 
 
13971
 
 
13972
    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13766
13973
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13974
 
13767
13975
library_names_spec=
13768
13976
libname_spec='lib$name'
13769
13977
soname_spec=
13777
13985
version_type=none
13778
13986
dynamic_linker="$host_os ld.so"
13779
13987
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13780
 
 
13781
13988
need_lib_prefix=unknown
13782
13989
hardcode_into_libs=no
13783
13990
 
13814
14021
      aix4 | aix4.[01] | aix4.[01].*)
13815
14022
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13816
14023
           echo ' yes '
13817
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14024
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13818
14025
        :
13819
14026
      else
13820
14027
        can_build_shared=no
13840
14047
  ;;
13841
14048
 
13842
14049
amigaos*)
13843
 
  library_names_spec='$libname.ixlibrary $libname.a'
13844
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13845
 
  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'
 
14050
  case $host_cpu in
 
14051
  powerpc)
 
14052
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14053
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14054
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14055
    ;;
 
14056
  m68k)
 
14057
    library_names_spec='$libname.ixlibrary $libname.a'
 
14058
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14059
    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'
 
14060
    ;;
 
14061
  esac
13846
14062
  ;;
13847
14063
 
13848
14064
beos*)
13865
14081
  # libtool to hard-code these into programs
13866
14082
  ;;
13867
14083
 
13868
 
cygwin* | mingw* | pw32*)
 
14084
cygwin* | mingw* | pw32* | cegcc*)
13869
14085
  version_type=windows
13870
14086
  shrext_cmds=".dll"
13871
14087
  need_version=no
13872
14088
  need_lib_prefix=no
13873
14089
 
13874
14090
  case $GCC,$host_os in
13875
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14091
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13876
14092
    library_names_spec='$libname.dll.a'
13877
14093
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878
14094
    postinstall_cmds='base_file=`basename \${file}`~
13879
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14095
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13880
14096
      dldir=$destdir/`dirname \$dlpath`~
13881
14097
      test -d \$dldir || mkdir -p \$dldir~
13882
14098
      $install_prog $dir/$dlname \$dldir/$dlname~
13883
 
      chmod a+x \$dldir/$dlname'
 
14099
      chmod a+x \$dldir/$dlname~
 
14100
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14101
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14102
      fi'
13884
14103
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13885
14104
      dlpath=$dir/\$dldll~
13886
 
       $rm \$dlpath'
 
14105
       $RM \$dlpath'
13887
14106
    shlibpath_overrides_runpath=yes
13888
14107
 
13889
14108
    case $host_os in
13892
14111
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893
14112
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13894
14113
      ;;
13895
 
    mingw*)
 
14114
    mingw* | cegcc*)
13896
14115
      # MinGW DLLs use traditional 'lib' prefix
13897
14116
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13898
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13899
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14117
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14118
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13900
14119
        # It is most probably a Windows format PATH printed by
13901
14120
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13902
14121
        # path with ; separators, and with drive letters. We can handle the
13903
14122
        # drive letters (cygwin fileutils understands them), so leave them,
13904
14123
        # especially as we might pass files found there to a mingw objdump,
13905
14124
        # which wouldn't understand a cygwinified path. Ahh.
13906
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14125
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13907
14126
      else
13908
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14127
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13909
14128
      fi
13910
14129
      ;;
13911
14130
    pw32*)
13929
14148
  version_type=darwin
13930
14149
  need_lib_prefix=no
13931
14150
  need_version=no
13932
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14151
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13933
14152
  soname_spec='${libname}${release}${major}$shared_ext'
13934
14153
  shlibpath_overrides_runpath=yes
13935
14154
  shlibpath_var=DYLD_LIBRARY_PATH
14027
14246
    fi
14028
14247
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029
14248
    ;;
14030
 
   hppa*64*)
14031
 
     shrext_cmds='.sl'
14032
 
     hardcode_into_libs=yes
14033
 
     dynamic_linker="$host_os dld.sl"
14034
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14035
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14036
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037
 
     soname_spec='${libname}${release}${shared_ext}$major'
14038
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14039
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14040
 
     ;;
14041
 
   *)
 
14249
  hppa*64*)
 
14250
    shrext_cmds='.sl'
 
14251
    hardcode_into_libs=yes
 
14252
    dynamic_linker="$host_os dld.sl"
 
14253
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14254
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14255
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14256
    soname_spec='${libname}${release}${shared_ext}$major'
 
14257
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14258
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14259
    ;;
 
14260
  *)
14042
14261
    shrext_cmds='.sl'
14043
14262
    dynamic_linker="$host_os dld.sl"
14044
14263
    shlibpath_var=SHLIB_PATH
14115
14334
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14116
14335
  shlibpath_var=LD_LIBRARY_PATH
14117
14336
  shlibpath_overrides_runpath=no
 
14337
  # Some binutils ld are patched to set DT_RUNPATH
 
14338
  save_LDFLAGS=$LDFLAGS
 
14339
  save_libdir=$libdir
 
14340
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14341
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14342
  cat >conftest.$ac_ext <<_ACEOF
 
14343
/* confdefs.h.  */
 
14344
_ACEOF
 
14345
cat confdefs.h >>conftest.$ac_ext
 
14346
cat >>conftest.$ac_ext <<_ACEOF
 
14347
/* end confdefs.h.  */
 
14348
 
 
14349
int
 
14350
main ()
 
14351
{
 
14352
 
 
14353
  ;
 
14354
  return 0;
 
14355
}
 
14356
_ACEOF
 
14357
rm -f conftest.$ac_objext conftest$ac_exeext
 
14358
if { (ac_try="$ac_link"
 
14359
case "(($ac_try" in
 
14360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14361
  *) ac_try_echo=$ac_try;;
 
14362
esac
 
14363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14364
  (eval "$ac_link") 2>conftest.er1
 
14365
  ac_status=$?
 
14366
  grep -v '^ *+' conftest.er1 >conftest.err
 
14367
  rm -f conftest.er1
 
14368
  cat conftest.err >&5
 
14369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14370
  (exit $ac_status); } && {
 
14371
         test -z "$ac_cxx_werror_flag" ||
 
14372
         test ! -s conftest.err
 
14373
       } && test -s conftest$ac_exeext &&
 
14374
       $as_test_x conftest$ac_exeext; then
 
14375
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
14376
  shlibpath_overrides_runpath=yes
 
14377
fi
 
14378
 
 
14379
else
 
14380
  echo "$as_me: failed program was:" >&5
 
14381
sed 's/^/| /' conftest.$ac_ext >&5
 
14382
 
 
14383
 
 
14384
fi
 
14385
 
 
14386
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14387
      conftest$ac_exeext conftest.$ac_ext
 
14388
  LDFLAGS=$save_LDFLAGS
 
14389
  libdir=$save_libdir
 
14390
 
14118
14391
  # This implies no fast_install, which is unacceptable.
14119
14392
  # Some rework will be needed to allow for fast_install
14120
14393
  # before this can be enabled.
14122
14395
 
14123
14396
  # Append ld.so.conf contents to the search path
14124
14397
  if test -f /etc/ld.so.conf; then
14125
 
    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' ' '`
 
14398
    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' ' '`
14126
14399
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14127
14400
  fi
14128
14401
 
14135
14408
  dynamic_linker='GNU/Linux ld.so'
14136
14409
  ;;
14137
14410
 
14138
 
netbsdelf*-gnu)
14139
 
  version_type=linux
14140
 
  need_lib_prefix=no
14141
 
  need_version=no
14142
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14143
 
  soname_spec='${libname}${release}${shared_ext}$major'
14144
 
  shlibpath_var=LD_LIBRARY_PATH
14145
 
  shlibpath_overrides_runpath=no
14146
 
  hardcode_into_libs=yes
14147
 
  dynamic_linker='NetBSD ld.elf_so'
14148
 
  ;;
14149
 
 
14150
14411
netbsd*)
14151
14412
  version_type=sunos
14152
14413
  need_lib_prefix=no
14153
14414
  need_version=no
14154
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14415
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14155
14416
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14156
14417
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14157
14418
    dynamic_linker='NetBSD (a.out) ld.so'
14172
14433
  shlibpath_overrides_runpath=yes
14173
14434
  ;;
14174
14435
 
14175
 
nto-qnx*)
14176
 
  version_type=linux
 
14436
*nto* | *qnx*)
 
14437
  version_type=qnx
14177
14438
  need_lib_prefix=no
14178
14439
  need_version=no
14179
14440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180
14441
  soname_spec='${libname}${release}${shared_ext}$major'
14181
14442
  shlibpath_var=LD_LIBRARY_PATH
14182
 
  shlibpath_overrides_runpath=yes
 
14443
  shlibpath_overrides_runpath=no
 
14444
  hardcode_into_libs=yes
 
14445
  dynamic_linker='ldqnx.so'
14183
14446
  ;;
14184
14447
 
14185
14448
openbsd*)
14188
14451
  need_lib_prefix=no
14189
14452
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14190
14453
  case $host_os in
14191
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14192
 
    *)                         need_version=no  ;;
 
14454
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14455
    *)                          need_version=no  ;;
14193
14456
  esac
14194
14457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14195
14458
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14196
14459
  shlibpath_var=LD_LIBRARY_PATH
14197
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14460
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14198
14461
    case $host_os in
14199
14462
      openbsd2.[89] | openbsd2.[89].*)
14200
14463
        shlibpath_overrides_runpath=no
14266
14529
    sni)
14267
14530
      shlibpath_overrides_runpath=no
14268
14531
      need_lib_prefix=no
14269
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14270
14532
      runpath_var=LD_RUN_PATH
14271
14533
      ;;
14272
14534
    siemens)
14297
14559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14298
14560
  soname_spec='${libname}${release}${shared_ext}$major'
14299
14561
  shlibpath_var=LD_LIBRARY_PATH
 
14562
  shlibpath_overrides_runpath=yes
14300
14563
  hardcode_into_libs=yes
14301
14564
  if test "$with_gnu_ld" = yes; then
14302
14565
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14303
 
    shlibpath_overrides_runpath=no
14304
14566
  else
14305
14567
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14306
 
    shlibpath_overrides_runpath=yes
14307
14568
    case $host_os in
14308
14569
      sco3.2v5*)
14309
14570
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14313
14574
  sys_lib_dlsearch_path_spec='/usr/lib'
14314
14575
  ;;
14315
14576
 
 
14577
tpf*)
 
14578
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14579
  version_type=linux
 
14580
  need_lib_prefix=no
 
14581
  need_version=no
 
14582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14583
  shlibpath_var=LD_LIBRARY_PATH
 
14584
  shlibpath_overrides_runpath=no
 
14585
  hardcode_into_libs=yes
 
14586
  ;;
 
14587
 
14316
14588
uts4*)
14317
14589
  version_type=linux
14318
14590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328
14600
echo "${ECHO_T}$dynamic_linker" >&6; }
14329
14601
test "$dynamic_linker" = no && can_build_shared=no
14330
14602
 
14331
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14332
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14333
 
else
14334
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14335
 
fi
14336
 
 
14337
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14338
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14340
 
else
14341
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14342
 
fi
14343
 
 
14344
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14345
 
 
14346
14603
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14347
14604
if test "$GCC" = yes; then
14348
14605
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14349
14606
fi
14350
14607
 
14351
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14608
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14609
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14610
fi
 
14611
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14612
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14613
fi
 
14614
 
 
14615
 
 
14616
 
 
14617
 
 
14618
 
 
14619
 
 
14620
 
 
14621
 
 
14622
 
 
14623
 
 
14624
 
 
14625
 
 
14626
 
 
14627
 
 
14628
 
 
14629
 
 
14630
 
 
14631
 
 
14632
 
 
14633
 
 
14634
 
 
14635
 
 
14636
 
 
14637
 
 
14638
 
 
14639
 
 
14640
 
 
14641
 
 
14642
 
 
14643
 
 
14644
 
 
14645
 
 
14646
 
 
14647
 
 
14648
 
 
14649
 
 
14650
    { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14352
14651
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14353
14652
hardcode_action_CXX=
14354
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14355
 
   test -n "$runpath_var_CXX" || \
 
14653
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14654
   test -n "$runpath_var_CXX" ||
14356
14655
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14357
14656
 
14358
 
  # We can hardcode non-existant directories.
 
14657
  # We can hardcode non-existent directories.
14359
14658
  if test "$hardcode_direct_CXX" != no &&
14360
14659
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14361
14660
     # have to relink, otherwise we might link with an installed library
14362
14661
     # when we should be linking with a yet-to-be-installed one
14363
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14662
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14364
14663
     test "$hardcode_minus_L_CXX" != no; then
14365
14664
    # Linking always hardcodes the temporary library directory.
14366
14665
    hardcode_action_CXX=relink
14376
14675
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14377
14676
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14378
14677
 
14379
 
if test "$hardcode_action_CXX" = relink; then
14380
 
  # Fast installation is not supported
14381
 
  enable_fast_install=no
14382
 
elif test "$shlibpath_overrides_runpath" = yes ||
14383
 
     test "$enable_shared" = no; then
14384
 
  # Fast installation is not necessary
14385
 
  enable_fast_install=needless
14386
 
fi
14387
 
 
14388
 
 
14389
 
# The else clause should only fire when bootstrapping the
14390
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14391
 
# with your package, and you will get complaints that there are
14392
 
# no rules to generate ltmain.sh.
14393
 
if test -f "$ltmain"; then
14394
 
  # See if we are running on zsh, and set the options which allow our commands through
14395
 
  # without removal of \ escapes.
14396
 
  if test -n "${ZSH_VERSION+set}" ; then
14397
 
    setopt NO_GLOB_SUBST
14398
 
  fi
14399
 
  # Now quote all the things that may contain metacharacters while being
14400
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14401
 
  # variables and quote the copies for generation of the libtool script.
14402
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14403
 
    SED SHELL STRIP \
14404
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14405
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14406
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14407
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14408
 
    lt_cv_sys_global_symbol_to_c_name_address \
14409
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14410
 
    old_postinstall_cmds old_postuninstall_cmds \
14411
 
    compiler_CXX \
14412
 
    CC_CXX \
14413
 
    LD_CXX \
14414
 
    lt_prog_compiler_wl_CXX \
14415
 
    lt_prog_compiler_pic_CXX \
14416
 
    lt_prog_compiler_static_CXX \
14417
 
    lt_prog_compiler_no_builtin_flag_CXX \
14418
 
    export_dynamic_flag_spec_CXX \
14419
 
    thread_safe_flag_spec_CXX \
14420
 
    whole_archive_flag_spec_CXX \
14421
 
    enable_shared_with_static_runtimes_CXX \
14422
 
    old_archive_cmds_CXX \
14423
 
    old_archive_from_new_cmds_CXX \
14424
 
    predep_objects_CXX \
14425
 
    postdep_objects_CXX \
14426
 
    predeps_CXX \
14427
 
    postdeps_CXX \
14428
 
    compiler_lib_search_path_CXX \
14429
 
    compiler_lib_search_dirs_CXX \
14430
 
    archive_cmds_CXX \
14431
 
    archive_expsym_cmds_CXX \
14432
 
    postinstall_cmds_CXX \
14433
 
    postuninstall_cmds_CXX \
14434
 
    old_archive_from_expsyms_cmds_CXX \
14435
 
    allow_undefined_flag_CXX \
14436
 
    no_undefined_flag_CXX \
14437
 
    export_symbols_cmds_CXX \
14438
 
    hardcode_libdir_flag_spec_CXX \
14439
 
    hardcode_libdir_flag_spec_ld_CXX \
14440
 
    hardcode_libdir_separator_CXX \
14441
 
    hardcode_automatic_CXX \
14442
 
    module_cmds_CXX \
14443
 
    module_expsym_cmds_CXX \
14444
 
    lt_cv_prog_compiler_c_o_CXX \
14445
 
    fix_srcfile_path_CXX \
14446
 
    exclude_expsyms_CXX \
14447
 
    include_expsyms_CXX; do
14448
 
 
14449
 
    case $var in
14450
 
    old_archive_cmds_CXX | \
14451
 
    old_archive_from_new_cmds_CXX | \
14452
 
    archive_cmds_CXX | \
14453
 
    archive_expsym_cmds_CXX | \
14454
 
    module_cmds_CXX | \
14455
 
    module_expsym_cmds_CXX | \
14456
 
    old_archive_from_expsyms_cmds_CXX | \
14457
 
    export_symbols_cmds_CXX | \
14458
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14459
 
    postinstall_cmds | postuninstall_cmds | \
14460
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14461
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14462
 
      # Double-quote double-evaled strings.
14463
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14464
 
      ;;
14465
 
    *)
14466
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14467
 
      ;;
14468
 
    esac
14469
 
  done
14470
 
 
14471
 
  case $lt_echo in
14472
 
  *'\$0 --fallback-echo"')
14473
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14474
 
    ;;
14475
 
  esac
14476
 
 
14477
 
cfgfile="$ofile"
14478
 
 
14479
 
  cat <<__EOF__ >> "$cfgfile"
14480
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14481
 
 
14482
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14483
 
 
14484
 
# Shell to use when invoking shell scripts.
14485
 
SHELL=$lt_SHELL
14486
 
 
14487
 
# Whether or not to build shared libraries.
14488
 
build_libtool_libs=$enable_shared
14489
 
 
14490
 
# Whether or not to build static libraries.
14491
 
build_old_libs=$enable_static
14492
 
 
14493
 
# Whether or not to add -lc for building shared libraries.
14494
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14495
 
 
14496
 
# Whether or not to disallow shared libs when runtime libs are static
14497
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14498
 
 
14499
 
# Whether or not to optimize for fast installation.
14500
 
fast_install=$enable_fast_install
14501
 
 
14502
 
# The host system.
14503
 
host_alias=$host_alias
14504
 
host=$host
14505
 
host_os=$host_os
14506
 
 
14507
 
# The build system.
14508
 
build_alias=$build_alias
14509
 
build=$build
14510
 
build_os=$build_os
14511
 
 
14512
 
# An echo program that does not interpret backslashes.
14513
 
echo=$lt_echo
14514
 
 
14515
 
# The archiver.
14516
 
AR=$lt_AR
14517
 
AR_FLAGS=$lt_AR_FLAGS
14518
 
 
14519
 
# A C compiler.
14520
 
LTCC=$lt_LTCC
14521
 
 
14522
 
# LTCC compiler flags.
14523
 
LTCFLAGS=$lt_LTCFLAGS
14524
 
 
14525
 
# A language-specific compiler.
14526
 
CC=$lt_compiler_CXX
14527
 
 
14528
 
# Is the compiler the GNU C compiler?
14529
 
with_gcc=$GCC_CXX
14530
 
 
14531
 
# An ERE matcher.
14532
 
EGREP=$lt_EGREP
14533
 
 
14534
 
# The linker used to build libraries.
14535
 
LD=$lt_LD_CXX
14536
 
 
14537
 
# Whether we need hard or soft links.
14538
 
LN_S=$lt_LN_S
14539
 
 
14540
 
# A BSD-compatible nm program.
14541
 
NM=$lt_NM
14542
 
 
14543
 
# A symbol stripping program
14544
 
STRIP=$lt_STRIP
14545
 
 
14546
 
# Used to examine libraries when file_magic_cmd begins "file"
14547
 
MAGIC_CMD=$MAGIC_CMD
14548
 
 
14549
 
# Used on cygwin: DLL creation program.
14550
 
DLLTOOL="$DLLTOOL"
14551
 
 
14552
 
# Used on cygwin: object dumper.
14553
 
OBJDUMP="$OBJDUMP"
14554
 
 
14555
 
# Used on cygwin: assembler.
14556
 
AS="$AS"
14557
 
 
14558
 
# The name of the directory that contains temporary libtool files.
14559
 
objdir=$objdir
14560
 
 
14561
 
# How to create reloadable object files.
14562
 
reload_flag=$lt_reload_flag
14563
 
reload_cmds=$lt_reload_cmds
14564
 
 
14565
 
# How to pass a linker flag through the compiler.
14566
 
wl=$lt_lt_prog_compiler_wl_CXX
14567
 
 
14568
 
# Object file suffix (normally "o").
14569
 
objext="$ac_objext"
14570
 
 
14571
 
# Old archive suffix (normally "a").
14572
 
libext="$libext"
14573
 
 
14574
 
# Shared library suffix (normally ".so").
14575
 
shrext_cmds='$shrext_cmds'
14576
 
 
14577
 
# Executable file suffix (normally "").
14578
 
exeext="$exeext"
14579
 
 
14580
 
# Additional compiler flags for building library objects.
14581
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14582
 
pic_mode=$pic_mode
14583
 
 
14584
 
# What is the maximum length of a command?
14585
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14586
 
 
14587
 
# Does compiler simultaneously support -c and -o options?
14588
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14589
 
 
14590
 
# Must we lock files when doing compilation?
14591
 
need_locks=$lt_need_locks
14592
 
 
14593
 
# Do we need the lib prefix for modules?
14594
 
need_lib_prefix=$need_lib_prefix
14595
 
 
14596
 
# Do we need a version for libraries?
14597
 
need_version=$need_version
14598
 
 
14599
 
# Whether dlopen is supported.
14600
 
dlopen_support=$enable_dlopen
14601
 
 
14602
 
# Whether dlopen of programs is supported.
14603
 
dlopen_self=$enable_dlopen_self
14604
 
 
14605
 
# Whether dlopen of statically linked programs is supported.
14606
 
dlopen_self_static=$enable_dlopen_self_static
14607
 
 
14608
 
# Compiler flag to prevent dynamic linking.
14609
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14610
 
 
14611
 
# Compiler flag to turn off builtin functions.
14612
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14613
 
 
14614
 
# Compiler flag to allow reflexive dlopens.
14615
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14616
 
 
14617
 
# Compiler flag to generate shared objects directly from archives.
14618
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14619
 
 
14620
 
# Compiler flag to generate thread-safe objects.
14621
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14622
 
 
14623
 
# Library versioning type.
14624
 
version_type=$version_type
14625
 
 
14626
 
# Format of library name prefix.
14627
 
libname_spec=$lt_libname_spec
14628
 
 
14629
 
# List of archive names.  First name is the real one, the rest are links.
14630
 
# The last name is the one that the linker finds with -lNAME.
14631
 
library_names_spec=$lt_library_names_spec
14632
 
 
14633
 
# The coded name of the library, if different from the real name.
14634
 
soname_spec=$lt_soname_spec
14635
 
 
14636
 
# Commands used to build and install an old-style archive.
14637
 
RANLIB=$lt_RANLIB
14638
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14639
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14640
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14641
 
 
14642
 
# Create an old-style archive from a shared archive.
14643
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14644
 
 
14645
 
# Create a temporary old-style archive to link instead of a shared archive.
14646
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14647
 
 
14648
 
# Commands used to build and install a shared archive.
14649
 
archive_cmds=$lt_archive_cmds_CXX
14650
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14651
 
postinstall_cmds=$lt_postinstall_cmds
14652
 
postuninstall_cmds=$lt_postuninstall_cmds
14653
 
 
14654
 
# Commands used to build a loadable module (assumed same as above if empty)
14655
 
module_cmds=$lt_module_cmds_CXX
14656
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14657
 
 
14658
 
# Commands to strip libraries.
14659
 
old_striplib=$lt_old_striplib
14660
 
striplib=$lt_striplib
14661
 
 
14662
 
# Dependencies to place before the objects being linked to create a
14663
 
# shared library.
14664
 
predep_objects=$lt_predep_objects_CXX
14665
 
 
14666
 
# Dependencies to place after the objects being linked to create a
14667
 
# shared library.
14668
 
postdep_objects=$lt_postdep_objects_CXX
14669
 
 
14670
 
# Dependencies to place before the objects being linked to create a
14671
 
# shared library.
14672
 
predeps=$lt_predeps_CXX
14673
 
 
14674
 
# Dependencies to place after the objects being linked to create a
14675
 
# shared library.
14676
 
postdeps=$lt_postdeps_CXX
14677
 
 
14678
 
# The directories searched by this compiler when creating a shared
14679
 
# library
14680
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14681
 
 
14682
 
# The library search path used internally by the compiler when linking
14683
 
# a shared library.
14684
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14685
 
 
14686
 
# Method to check whether dependent libraries are shared objects.
14687
 
deplibs_check_method=$lt_deplibs_check_method
14688
 
 
14689
 
# Command to use when deplibs_check_method == file_magic.
14690
 
file_magic_cmd=$lt_file_magic_cmd
14691
 
 
14692
 
# Flag that allows shared libraries with undefined symbols to be built.
14693
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14694
 
 
14695
 
# Flag that forces no undefined symbols.
14696
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14697
 
 
14698
 
# Commands used to finish a libtool library installation in a directory.
14699
 
finish_cmds=$lt_finish_cmds
14700
 
 
14701
 
# Same as above, but a single script fragment to be evaled but not shown.
14702
 
finish_eval=$lt_finish_eval
14703
 
 
14704
 
# Take the output of nm and produce a listing of raw symbols and C names.
14705
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14706
 
 
14707
 
# Transform the output of nm in a proper C declaration
14708
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14709
 
 
14710
 
# Transform the output of nm in a C name address pair
14711
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14712
 
 
14713
 
# This is the shared library runtime path variable.
14714
 
runpath_var=$runpath_var
14715
 
 
14716
 
# This is the shared library path variable.
14717
 
shlibpath_var=$shlibpath_var
14718
 
 
14719
 
# Is shlibpath searched before the hard-coded library search path?
14720
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14721
 
 
14722
 
# How to hardcode a shared library path into an executable.
14723
 
hardcode_action=$hardcode_action_CXX
14724
 
 
14725
 
# Whether we should hardcode library paths into libraries.
14726
 
hardcode_into_libs=$hardcode_into_libs
14727
 
 
14728
 
# Flag to hardcode \$libdir into a binary during linking.
14729
 
# This must work even if \$libdir does not exist.
14730
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14731
 
 
14732
 
# If ld is used when linking, flag to hardcode \$libdir into
14733
 
# a binary during linking. This must work even if \$libdir does
14734
 
# not exist.
14735
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14736
 
 
14737
 
# Whether we need a single -rpath flag with a separated argument.
14738
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14739
 
 
14740
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14741
 
# resulting binary.
14742
 
hardcode_direct=$hardcode_direct_CXX
14743
 
 
14744
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14745
 
# resulting binary.
14746
 
hardcode_minus_L=$hardcode_minus_L_CXX
14747
 
 
14748
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14749
 
# the resulting binary.
14750
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14751
 
 
14752
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14753
 
# and all subsequent libraries and executables linked against it.
14754
 
hardcode_automatic=$hardcode_automatic_CXX
14755
 
 
14756
 
# Variables whose values should be saved in libtool wrapper scripts and
14757
 
# restored at relink time.
14758
 
variables_saved_for_relink="$variables_saved_for_relink"
14759
 
 
14760
 
# Whether libtool must link a program against all its dependency libraries.
14761
 
link_all_deplibs=$link_all_deplibs_CXX
14762
 
 
14763
 
# Compile-time system search path for libraries
14764
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14765
 
 
14766
 
# Run-time system search path for libraries
14767
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14768
 
 
14769
 
# Fix the shell variable \$srcfile for the compiler.
14770
 
fix_srcfile_path=$lt_fix_srcfile_path
14771
 
 
14772
 
# Set to yes if exported symbols are required.
14773
 
always_export_symbols=$always_export_symbols_CXX
14774
 
 
14775
 
# The commands to list exported symbols.
14776
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14777
 
 
14778
 
# The commands to extract the exported symbol list from a shared archive.
14779
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14780
 
 
14781
 
# Symbols that should not be listed in the preloaded symbols.
14782
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14783
 
 
14784
 
# Symbols that must always be exported.
14785
 
include_expsyms=$lt_include_expsyms_CXX
14786
 
 
14787
 
# ### END LIBTOOL TAG CONFIG: $tagname
14788
 
 
14789
 
__EOF__
14790
 
 
14791
 
 
14792
 
else
14793
 
  # If there is no Makefile yet, we rely on a make rule to execute
14794
 
  # `config.status --recheck' to rerun these tests and create the
14795
 
  # libtool script then.
14796
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14797
 
  if test -f "$ltmain_in"; then
14798
 
    test -f Makefile && make "$ltmain"
14799
 
  fi
14800
 
fi
14801
 
 
14802
 
 
14803
 
ac_ext=c
14804
 
ac_cpp='$CPP $CPPFLAGS'
14805
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808
 
 
14809
 
CC=$lt_save_CC
14810
 
LDCXX=$LD
14811
 
LD=$lt_save_LD
14812
 
GCC=$lt_save_GCC
14813
 
with_gnu_ldcxx=$with_gnu_ld
14814
 
with_gnu_ld=$lt_save_with_gnu_ld
14815
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14816
 
lt_cv_path_LD=$lt_save_path_LD
14817
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14818
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14819
 
 
14820
 
        else
14821
 
          tagname=""
14822
 
        fi
14823
 
        ;;
14824
 
 
14825
 
      F77)
14826
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14827
 
 
14828
 
ac_ext=f
14829
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14830
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14831
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14832
 
 
14833
 
 
14834
 
archive_cmds_need_lc_F77=no
14835
 
allow_undefined_flag_F77=
14836
 
always_export_symbols_F77=no
14837
 
archive_expsym_cmds_F77=
14838
 
export_dynamic_flag_spec_F77=
14839
 
hardcode_direct_F77=no
14840
 
hardcode_libdir_flag_spec_F77=
14841
 
hardcode_libdir_flag_spec_ld_F77=
14842
 
hardcode_libdir_separator_F77=
14843
 
hardcode_minus_L_F77=no
14844
 
hardcode_automatic_F77=no
14845
 
module_cmds_F77=
14846
 
module_expsym_cmds_F77=
14847
 
link_all_deplibs_F77=unknown
14848
 
old_archive_cmds_F77=$old_archive_cmds
14849
 
no_undefined_flag_F77=
14850
 
whole_archive_flag_spec_F77=
14851
 
enable_shared_with_static_runtimes_F77=no
14852
 
 
14853
 
# Source file extension for f77 test sources.
14854
 
ac_ext=f
14855
 
 
14856
 
# Object file extension for compiled f77 test sources.
14857
 
objext=o
14858
 
objext_F77=$objext
14859
 
 
14860
 
# Code to be used in simple compile tests
14861
 
lt_simple_compile_test_code="\
14862
 
      subroutine t
14863
 
      return
14864
 
      end
14865
 
"
14866
 
 
14867
 
# Code to be used in simple link tests
14868
 
lt_simple_link_test_code="\
14869
 
      program t
14870
 
      end
14871
 
"
14872
 
 
14873
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14874
 
 
14875
 
# If no C compiler was specified, use CC.
14876
 
LTCC=${LTCC-"$CC"}
14877
 
 
14878
 
# If no C compiler flags were specified, use CFLAGS.
14879
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14880
 
 
14881
 
# Allow CC to be a program name with arguments.
14882
 
compiler=$CC
14883
 
 
14884
 
 
14885
 
# save warnings/boilerplate of simple test code
14886
 
ac_outfile=conftest.$ac_objext
14887
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14888
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14889
 
_lt_compiler_boilerplate=`cat conftest.err`
14890
 
$rm conftest*
14891
 
 
14892
 
ac_outfile=conftest.$ac_objext
14893
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14894
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14895
 
_lt_linker_boilerplate=`cat conftest.err`
14896
 
$rm -r conftest*
14897
 
 
14898
 
 
14899
 
# Allow CC to be a program name with arguments.
14900
 
lt_save_CC="$CC"
14901
 
CC=${F77-"f77"}
14902
 
compiler=$CC
14903
 
compiler_F77=$CC
14904
 
for cc_temp in $compiler""; do
14905
 
  case $cc_temp in
14906
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14907
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14908
 
    \-*) ;;
14909
 
    *) break;;
14910
 
  esac
14911
 
done
14912
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14913
 
 
14914
 
 
14915
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14916
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14917
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14918
 
echo "${ECHO_T}$can_build_shared" >&6; }
14919
 
 
14920
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14921
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14922
 
test "$can_build_shared" = "no" && enable_shared=no
14923
 
 
14924
 
# On AIX, shared libraries and static libraries use the same namespace, and
14925
 
# are all built from PIC.
14926
 
case $host_os in
14927
 
aix3*)
14928
 
  test "$enable_shared" = yes && enable_static=no
14929
 
  if test -n "$RANLIB"; then
14930
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14931
 
    postinstall_cmds='$RANLIB $lib'
14932
 
  fi
14933
 
  ;;
14934
 
aix[4-9]*)
14935
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14936
 
    test "$enable_shared" = yes && enable_static=no
14937
 
  fi
14938
 
  ;;
14939
 
esac
14940
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14941
 
echo "${ECHO_T}$enable_shared" >&6; }
14942
 
 
14943
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14944
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14945
 
# Make sure either enable_shared or enable_static is yes.
14946
 
test "$enable_shared" = yes || enable_static=yes
14947
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14948
 
echo "${ECHO_T}$enable_static" >&6; }
14949
 
 
14950
 
GCC_F77="$G77"
14951
 
LD_F77="$LD"
14952
 
 
14953
 
lt_prog_compiler_wl_F77=
14954
 
lt_prog_compiler_pic_F77=
14955
 
lt_prog_compiler_static_F77=
14956
 
 
14957
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14958
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14959
 
 
14960
 
  if test "$GCC" = yes; then
14961
 
    lt_prog_compiler_wl_F77='-Wl,'
14962
 
    lt_prog_compiler_static_F77='-static'
14963
 
 
14964
 
    case $host_os in
14965
 
      aix*)
14966
 
      # All AIX code is PIC.
14967
 
      if test "$host_cpu" = ia64; then
14968
 
        # AIX 5 now supports IA64 processor
14969
 
        lt_prog_compiler_static_F77='-Bstatic'
14970
 
      fi
14971
 
      ;;
14972
 
 
14973
 
    amigaos*)
14974
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14975
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14976
 
      # like `-m68040'.
14977
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14978
 
      ;;
14979
 
 
14980
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14981
 
      # PIC is the default for these OSes.
14982
 
      ;;
14983
 
 
14984
 
    mingw* | cygwin* | pw32* | os2*)
14985
 
      # This hack is so that the source file can tell whether it is being
14986
 
      # built for inclusion in a dll (and should export symbols for example).
14987
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14988
 
      # (--disable-auto-import) libraries
14989
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14990
 
      ;;
14991
 
 
14992
 
    darwin* | rhapsody*)
14993
 
      # PIC is the default on this platform
14994
 
      # Common symbols not allowed in MH_DYLIB files
14995
 
      lt_prog_compiler_pic_F77='-fno-common'
14996
 
      ;;
14997
 
 
14998
 
    interix[3-9]*)
14999
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15000
 
      # Instead, we relocate shared libraries at runtime.
15001
 
      ;;
15002
 
 
15003
 
    msdosdjgpp*)
15004
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15005
 
      # on systems that don't support them.
15006
 
      lt_prog_compiler_can_build_shared_F77=no
15007
 
      enable_shared=no
15008
 
      ;;
15009
 
 
15010
 
    sysv4*MP*)
15011
 
      if test -d /usr/nec; then
15012
 
        lt_prog_compiler_pic_F77=-Kconform_pic
15013
 
      fi
15014
 
      ;;
15015
 
 
15016
 
    hpux*)
15017
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15018
 
      # not for PA HP-UX.
15019
 
      case $host_cpu in
15020
 
      hppa*64*|ia64*)
15021
 
        # +Z the default
15022
 
        ;;
15023
 
      *)
15024
 
        lt_prog_compiler_pic_F77='-fPIC'
15025
 
        ;;
15026
 
      esac
15027
 
      ;;
15028
 
 
15029
 
    *)
15030
 
      lt_prog_compiler_pic_F77='-fPIC'
15031
 
      ;;
15032
 
    esac
15033
 
  else
15034
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15035
 
    case $host_os in
15036
 
    aix*)
15037
 
      lt_prog_compiler_wl_F77='-Wl,'
15038
 
      if test "$host_cpu" = ia64; then
15039
 
        # AIX 5 now supports IA64 processor
15040
 
        lt_prog_compiler_static_F77='-Bstatic'
15041
 
      else
15042
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15043
 
      fi
15044
 
      ;;
15045
 
      darwin*)
15046
 
        # PIC is the default on this platform
15047
 
        # Common symbols not allowed in MH_DYLIB files
15048
 
       case $cc_basename in
15049
 
         xlc*)
15050
 
         lt_prog_compiler_pic_F77='-qnocommon'
15051
 
         lt_prog_compiler_wl_F77='-Wl,'
15052
 
         ;;
15053
 
       esac
15054
 
       ;;
15055
 
 
15056
 
    mingw* | cygwin* | pw32* | os2*)
15057
 
      # This hack is so that the source file can tell whether it is being
15058
 
      # built for inclusion in a dll (and should export symbols for example).
15059
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15060
 
      ;;
15061
 
 
15062
 
    hpux9* | hpux10* | hpux11*)
15063
 
      lt_prog_compiler_wl_F77='-Wl,'
15064
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15065
 
      # not for PA HP-UX.
15066
 
      case $host_cpu in
15067
 
      hppa*64*|ia64*)
15068
 
        # +Z the default
15069
 
        ;;
15070
 
      *)
15071
 
        lt_prog_compiler_pic_F77='+Z'
15072
 
        ;;
15073
 
      esac
15074
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15075
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15076
 
      ;;
15077
 
 
15078
 
    irix5* | irix6* | nonstopux*)
15079
 
      lt_prog_compiler_wl_F77='-Wl,'
15080
 
      # PIC (with -KPIC) is the default.
15081
 
      lt_prog_compiler_static_F77='-non_shared'
15082
 
      ;;
15083
 
 
15084
 
    newsos6)
15085
 
      lt_prog_compiler_pic_F77='-KPIC'
15086
 
      lt_prog_compiler_static_F77='-Bstatic'
15087
 
      ;;
15088
 
 
15089
 
    linux* | k*bsd*-gnu)
15090
 
      case $cc_basename in
15091
 
      icc* | ecc*)
15092
 
        lt_prog_compiler_wl_F77='-Wl,'
15093
 
        lt_prog_compiler_pic_F77='-KPIC'
15094
 
        lt_prog_compiler_static_F77='-static'
15095
 
        ;;
15096
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15097
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15098
 
        # which looks to be a dead project)
15099
 
        lt_prog_compiler_wl_F77='-Wl,'
15100
 
        lt_prog_compiler_pic_F77='-fpic'
15101
 
        lt_prog_compiler_static_F77='-Bstatic'
15102
 
        ;;
15103
 
      ccc*)
15104
 
        lt_prog_compiler_wl_F77='-Wl,'
15105
 
        # All Alpha code is PIC.
15106
 
        lt_prog_compiler_static_F77='-non_shared'
15107
 
        ;;
15108
 
      *)
15109
 
        case `$CC -V 2>&1 | sed 5q` in
15110
 
        *Sun\ C*)
15111
 
          # Sun C 5.9
15112
 
          lt_prog_compiler_pic_F77='-KPIC'
15113
 
          lt_prog_compiler_static_F77='-Bstatic'
15114
 
          lt_prog_compiler_wl_F77='-Wl,'
15115
 
          ;;
15116
 
        *Sun\ F*)
15117
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15118
 
          lt_prog_compiler_pic_F77='-KPIC'
15119
 
          lt_prog_compiler_static_F77='-Bstatic'
15120
 
          lt_prog_compiler_wl_F77=''
15121
 
          ;;
15122
 
        esac
15123
 
        ;;
15124
 
      esac
15125
 
      ;;
15126
 
 
15127
 
    osf3* | osf4* | osf5*)
15128
 
      lt_prog_compiler_wl_F77='-Wl,'
15129
 
      # All OSF/1 code is PIC.
15130
 
      lt_prog_compiler_static_F77='-non_shared'
15131
 
      ;;
15132
 
 
15133
 
    rdos*)
15134
 
      lt_prog_compiler_static_F77='-non_shared'
15135
 
      ;;
15136
 
 
15137
 
    solaris*)
15138
 
      lt_prog_compiler_pic_F77='-KPIC'
15139
 
      lt_prog_compiler_static_F77='-Bstatic'
15140
 
      case $cc_basename in
15141
 
      f77* | f90* | f95*)
15142
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
15143
 
      *)
15144
 
        lt_prog_compiler_wl_F77='-Wl,';;
15145
 
      esac
15146
 
      ;;
15147
 
 
15148
 
    sunos4*)
15149
 
      lt_prog_compiler_wl_F77='-Qoption ld '
15150
 
      lt_prog_compiler_pic_F77='-PIC'
15151
 
      lt_prog_compiler_static_F77='-Bstatic'
15152
 
      ;;
15153
 
 
15154
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15155
 
      lt_prog_compiler_wl_F77='-Wl,'
15156
 
      lt_prog_compiler_pic_F77='-KPIC'
15157
 
      lt_prog_compiler_static_F77='-Bstatic'
15158
 
      ;;
15159
 
 
15160
 
    sysv4*MP*)
15161
 
      if test -d /usr/nec ;then
15162
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
15163
 
        lt_prog_compiler_static_F77='-Bstatic'
15164
 
      fi
15165
 
      ;;
15166
 
 
15167
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15168
 
      lt_prog_compiler_wl_F77='-Wl,'
15169
 
      lt_prog_compiler_pic_F77='-KPIC'
15170
 
      lt_prog_compiler_static_F77='-Bstatic'
15171
 
      ;;
15172
 
 
15173
 
    unicos*)
15174
 
      lt_prog_compiler_wl_F77='-Wl,'
15175
 
      lt_prog_compiler_can_build_shared_F77=no
15176
 
      ;;
15177
 
 
15178
 
    uts4*)
15179
 
      lt_prog_compiler_pic_F77='-pic'
15180
 
      lt_prog_compiler_static_F77='-Bstatic'
15181
 
      ;;
15182
 
 
15183
 
    *)
15184
 
      lt_prog_compiler_can_build_shared_F77=no
15185
 
      ;;
15186
 
    esac
15187
 
  fi
15188
 
 
15189
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15190
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15191
 
 
15192
 
#
15193
 
# Check to make sure the PIC flag actually works.
15194
 
#
15195
 
if test -n "$lt_prog_compiler_pic_F77"; then
15196
 
 
15197
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15198
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15199
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15200
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15201
 
else
15202
 
  lt_cv_prog_compiler_pic_works_F77=no
15203
 
  ac_outfile=conftest.$ac_objext
15204
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15205
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15206
 
   # Insert the option either (1) after the last *FLAGS variable, or
15207
 
   # (2) before a word containing "conftest.", or (3) at the end.
15208
 
   # Note that $ac_compile itself does not contain backslashes and begins
15209
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15210
 
   # The option is referenced via a variable to avoid confusing sed.
15211
 
   lt_compile=`echo "$ac_compile" | $SED \
15212
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15213
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214
 
   -e 's:$: $lt_compiler_flag:'`
15215
 
   (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216
 
   (eval "$lt_compile" 2>conftest.err)
15217
 
   ac_status=$?
15218
 
   cat conftest.err >&5
15219
 
   echo "$as_me:15219: \$? = $ac_status" >&5
15220
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15221
 
     # The compiler can only warn and ignore the option if not recognized
15222
 
     # So say no if there are warnings other than the usual output.
15223
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15224
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15225
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15226
 
       lt_cv_prog_compiler_pic_works_F77=yes
15227
 
     fi
15228
 
   fi
15229
 
   $rm conftest*
15230
 
 
15231
 
fi
15232
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15233
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15234
 
 
15235
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15236
 
    case $lt_prog_compiler_pic_F77 in
15237
 
     "" | " "*) ;;
15238
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15239
 
     esac
15240
 
else
15241
 
    lt_prog_compiler_pic_F77=
15242
 
     lt_prog_compiler_can_build_shared_F77=no
15243
 
fi
15244
 
 
15245
 
fi
15246
 
case $host_os in
15247
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15248
 
  *djgpp*)
15249
 
    lt_prog_compiler_pic_F77=
15250
 
    ;;
15251
 
  *)
15252
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15253
 
    ;;
15254
 
esac
15255
 
 
15256
 
#
15257
 
# Check to make sure the static flag actually works.
15258
 
#
15259
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15260
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15261
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15262
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15264
 
else
15265
 
  lt_cv_prog_compiler_static_works_F77=no
15266
 
   save_LDFLAGS="$LDFLAGS"
15267
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15268
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15269
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15270
 
     # The linker can only warn and ignore the option if not recognized
15271
 
     # So say no if there are warnings
15272
 
     if test -s conftest.err; then
15273
 
       # Append any errors to the config.log.
15274
 
       cat conftest.err 1>&5
15275
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15276
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15277
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15278
 
         lt_cv_prog_compiler_static_works_F77=yes
15279
 
       fi
15280
 
     else
15281
 
       lt_cv_prog_compiler_static_works_F77=yes
15282
 
     fi
15283
 
   fi
15284
 
   $rm -r conftest*
15285
 
   LDFLAGS="$save_LDFLAGS"
15286
 
 
15287
 
fi
15288
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15289
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15290
 
 
15291
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15292
 
    :
15293
 
else
15294
 
    lt_prog_compiler_static_F77=
15295
 
fi
15296
 
 
15297
 
 
15298
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15299
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15300
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15302
 
else
15303
 
  lt_cv_prog_compiler_c_o_F77=no
15304
 
   $rm -r conftest 2>/dev/null
15305
 
   mkdir conftest
15306
 
   cd conftest
15307
 
   mkdir out
15308
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15309
 
 
15310
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15311
 
   # Insert the option either (1) after the last *FLAGS variable, or
15312
 
   # (2) before a word containing "conftest.", or (3) at the end.
15313
 
   # Note that $ac_compile itself does not contain backslashes and begins
15314
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15315
 
   lt_compile=`echo "$ac_compile" | $SED \
15316
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15317
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15318
 
   -e 's:$: $lt_compiler_flag:'`
15319
 
   (eval echo "\"\$as_me:15319: $lt_compile\"" >&5)
15320
 
   (eval "$lt_compile" 2>out/conftest.err)
15321
 
   ac_status=$?
15322
 
   cat out/conftest.err >&5
15323
 
   echo "$as_me:15323: \$? = $ac_status" >&5
15324
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15325
 
   then
15326
 
     # The compiler can only warn and ignore the option if not recognized
15327
 
     # So say no if there are warnings
15328
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15329
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15330
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15331
 
       lt_cv_prog_compiler_c_o_F77=yes
15332
 
     fi
15333
 
   fi
15334
 
   chmod u+w . 2>&5
15335
 
   $rm conftest*
15336
 
   # SGI C++ compiler will create directory out/ii_files/ for
15337
 
   # template instantiation
15338
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15339
 
   $rm out/* && rmdir out
15340
 
   cd ..
15341
 
   rmdir conftest
15342
 
   $rm conftest*
15343
 
 
15344
 
fi
15345
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15346
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15347
 
 
15348
 
 
15349
 
hard_links="nottested"
15350
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15351
 
  # do not overwrite the value of need_locks provided by the user
15352
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15353
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15354
 
  hard_links=yes
15355
 
  $rm conftest*
15356
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357
 
  touch conftest.a
15358
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15359
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15360
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
15361
 
echo "${ECHO_T}$hard_links" >&6; }
15362
 
  if test "$hard_links" = no; then
15363
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15365
 
    need_locks=warn
15366
 
  fi
15367
 
else
15368
 
  need_locks=no
15369
 
fi
15370
 
 
15371
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15372
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15373
 
 
15374
 
  runpath_var=
15375
 
  allow_undefined_flag_F77=
15376
 
  enable_shared_with_static_runtimes_F77=no
15377
 
  archive_cmds_F77=
15378
 
  archive_expsym_cmds_F77=
15379
 
  old_archive_From_new_cmds_F77=
15380
 
  old_archive_from_expsyms_cmds_F77=
15381
 
  export_dynamic_flag_spec_F77=
15382
 
  whole_archive_flag_spec_F77=
15383
 
  thread_safe_flag_spec_F77=
15384
 
  hardcode_libdir_flag_spec_F77=
15385
 
  hardcode_libdir_flag_spec_ld_F77=
15386
 
  hardcode_libdir_separator_F77=
15387
 
  hardcode_direct_F77=no
15388
 
  hardcode_minus_L_F77=no
15389
 
  hardcode_shlibpath_var_F77=unsupported
15390
 
  link_all_deplibs_F77=unknown
15391
 
  hardcode_automatic_F77=no
15392
 
  module_cmds_F77=
15393
 
  module_expsym_cmds_F77=
15394
 
  always_export_symbols_F77=no
15395
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15397
 
  # included in the symbol list
15398
 
  include_expsyms_F77=
15399
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15400
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15401
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15402
 
  # as well as any symbol that contains `d'.
15403
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15404
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15405
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15406
 
  # the symbol is explicitly referenced.  Since portable code cannot
15407
 
  # rely on this symbol name, it's probably fine to never include it in
15408
 
  # preloaded symbol tables.
15409
 
  # Exclude shared library initialization/finalization symbols.
15410
 
  extract_expsyms_cmds=
15411
 
  # Just being paranoid about ensuring that cc_basename is set.
15412
 
  for cc_temp in $compiler""; do
15413
 
  case $cc_temp in
15414
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416
 
    \-*) ;;
15417
 
    *) break;;
15418
 
  esac
15419
 
done
15420
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15421
 
 
15422
 
  case $host_os in
15423
 
  cygwin* | mingw* | pw32*)
15424
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425
 
    # When not using gcc, we currently assume that we are using
15426
 
    # Microsoft Visual C++.
15427
 
    if test "$GCC" != yes; then
15428
 
      with_gnu_ld=no
15429
 
    fi
15430
 
    ;;
15431
 
  interix*)
15432
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15433
 
    with_gnu_ld=yes
15434
 
    ;;
15435
 
  openbsd*)
15436
 
    with_gnu_ld=no
15437
 
    ;;
15438
 
  esac
15439
 
 
15440
 
  ld_shlibs_F77=yes
15441
 
  if test "$with_gnu_ld" = yes; then
15442
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15443
 
    wlarc='${wl}'
15444
 
 
15445
 
    # Set some defaults for GNU ld with shared library support. These
15446
 
    # are reset later if shared libraries are not supported. Putting them
15447
 
    # here allows them to be overridden if necessary.
15448
 
    runpath_var=LD_RUN_PATH
15449
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15450
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15451
 
    # ancient GNU ld didn't support --whole-archive et. al.
15452
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15454
 
      else
15455
 
        whole_archive_flag_spec_F77=
15456
 
    fi
15457
 
    supports_anon_versioning=no
15458
 
    case `$LD -v 2>/dev/null` in
15459
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462
 
      *\ 2.11.*) ;; # other 2.11 versions
15463
 
      *) supports_anon_versioning=yes ;;
15464
 
    esac
15465
 
 
15466
 
    # See if GNU ld supports shared libraries.
15467
 
    case $host_os in
15468
 
    aix[3-9]*)
15469
 
      # On AIX/PPC, the GNU linker is very broken
15470
 
      if test "$host_cpu" != ia64; then
15471
 
        ld_shlibs_F77=no
15472
 
        cat <<EOF 1>&2
15473
 
 
15474
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475
 
*** to be unable to reliably create shared libraries on AIX.
15476
 
*** Therefore, libtool is disabling shared libraries support.  If you
15477
 
*** really care for shared libraries, you may want to modify your PATH
15478
 
*** so that a non-GNU linker is found, and then restart.
15479
 
 
15480
 
EOF
15481
 
      fi
15482
 
      ;;
15483
 
 
15484
 
    amigaos*)
15485
 
      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)'
15486
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15487
 
      hardcode_minus_L_F77=yes
15488
 
 
15489
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15491
 
      # to version 4, is to share data among multiple programs linked
15492
 
      # with the same dynamic library.  Since this doesn't match the
15493
 
      # behavior of shared libraries on other platforms, we can't use
15494
 
      # them.
15495
 
      ld_shlibs_F77=no
15496
 
      ;;
15497
 
 
15498
 
    beos*)
15499
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500
 
        allow_undefined_flag_F77=unsupported
15501
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502
 
        # support --undefined.  This deserves some investigation.  FIXME
15503
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504
 
      else
15505
 
        ld_shlibs_F77=no
15506
 
      fi
15507
 
      ;;
15508
 
 
15509
 
    cygwin* | mingw* | pw32*)
15510
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15511
 
      # as there is no search path for DLLs.
15512
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15513
 
      allow_undefined_flag_F77=unsupported
15514
 
      always_export_symbols_F77=no
15515
 
      enable_shared_with_static_runtimes_F77=yes
15516
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15517
 
 
15518
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520
 
        # If the export-symbols file already is a .def file (1st line
15521
 
        # is EXPORTS), use it as is; otherwise, prepend...
15522
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523
 
          cp $export_symbols $output_objdir/$soname.def;
15524
 
        else
15525
 
          echo EXPORTS > $output_objdir/$soname.def;
15526
 
          cat $export_symbols >> $output_objdir/$soname.def;
15527
 
        fi~
15528
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15529
 
      else
15530
 
        ld_shlibs_F77=no
15531
 
      fi
15532
 
      ;;
15533
 
 
15534
 
    interix[3-9]*)
15535
 
      hardcode_direct_F77=no
15536
 
      hardcode_shlibpath_var_F77=no
15537
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15538
 
      export_dynamic_flag_spec_F77='${wl}-E'
15539
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15541
 
      # default) and relocated if they conflict, which is a slow very memory
15542
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
15543
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15545
 
      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'
15546
 
      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'
15547
 
      ;;
15548
 
 
15549
 
    gnu* | linux* | k*bsd*-gnu)
15550
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551
 
        tmp_addflag=
15552
 
        case $cc_basename,$host_cpu in
15553
 
        pgcc*)                          # Portland Group C compiler
15554
 
          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'
15555
 
          tmp_addflag=' $pic_flag'
15556
 
          ;;
15557
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15558
 
          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'
15559
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
15560
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15561
 
          tmp_addflag=' -i_dynamic' ;;
15562
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15563
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
15564
 
        ifc* | ifort*)                  # Intel Fortran compiler
15565
 
          tmp_addflag=' -nofor_main' ;;
15566
 
        esac
15567
 
        case `$CC -V 2>&1 | sed 5q` in
15568
 
        *Sun\ C*)                       # Sun C 5.9
15569
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15570
 
          tmp_sharedflag='-G' ;;
15571
 
        *Sun\ F*)                       # Sun Fortran 8.3
15572
 
          tmp_sharedflag='-G' ;;
15573
 
        *)
15574
 
          tmp_sharedflag='-shared' ;;
15575
 
        esac
15576
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15577
 
 
15578
 
        if test $supports_anon_versioning = yes; then
15579
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15580
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15581
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15582
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15583
 
        fi
15584
 
        link_all_deplibs_F77=no
15585
 
      else
15586
 
        ld_shlibs_F77=no
15587
 
      fi
15588
 
      ;;
15589
 
 
15590
 
    netbsd* | netbsdelf*-gnu)
15591
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15593
 
        wlarc=
15594
 
      else
15595
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15596
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15597
 
      fi
15598
 
      ;;
15599
 
 
15600
 
    solaris*)
15601
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15602
 
        ld_shlibs_F77=no
15603
 
        cat <<EOF 1>&2
15604
 
 
15605
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15606
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15607
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15608
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15609
 
*** your PATH or compiler configuration so that the native linker is
15610
 
*** used, and then restart.
15611
 
 
15612
 
EOF
15613
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15614
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15616
 
      else
15617
 
        ld_shlibs_F77=no
15618
 
      fi
15619
 
      ;;
15620
 
 
15621
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15622
 
      case `$LD -v 2>&1` in
15623
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15624
 
        ld_shlibs_F77=no
15625
 
        cat <<_LT_EOF 1>&2
15626
 
 
15627
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15628
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15629
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15630
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15631
 
*** your PATH or compiler configuration so that the native linker is
15632
 
*** used, and then restart.
15633
 
 
15634
 
_LT_EOF
15635
 
        ;;
15636
 
        *)
15637
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15638
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15639
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15640
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15641
 
          else
15642
 
            ld_shlibs_F77=no
15643
 
          fi
15644
 
        ;;
15645
 
      esac
15646
 
      ;;
15647
 
 
15648
 
    sunos4*)
15649
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15650
 
      wlarc=
15651
 
      hardcode_direct_F77=yes
15652
 
      hardcode_shlibpath_var_F77=no
15653
 
      ;;
15654
 
 
15655
 
    *)
15656
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15657
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15659
 
      else
15660
 
        ld_shlibs_F77=no
15661
 
      fi
15662
 
      ;;
15663
 
    esac
15664
 
 
15665
 
    if test "$ld_shlibs_F77" = no; then
15666
 
      runpath_var=
15667
 
      hardcode_libdir_flag_spec_F77=
15668
 
      export_dynamic_flag_spec_F77=
15669
 
      whole_archive_flag_spec_F77=
15670
 
    fi
15671
 
  else
15672
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15673
 
    case $host_os in
15674
 
    aix3*)
15675
 
      allow_undefined_flag_F77=unsupported
15676
 
      always_export_symbols_F77=yes
15677
 
      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'
15678
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15679
 
      # are no directories specified by -L.
15680
 
      hardcode_minus_L_F77=yes
15681
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15682
 
        # Neither direct hardcoding nor static linking is supported with a
15683
 
        # broken collect2.
15684
 
        hardcode_direct_F77=unsupported
15685
 
      fi
15686
 
      ;;
15687
 
 
15688
 
    aix[4-9]*)
15689
 
      if test "$host_cpu" = ia64; then
15690
 
        # On IA64, the linker does run time linking by default, so we don't
15691
 
        # have to do anything special.
15692
 
        aix_use_runtimelinking=no
15693
 
        exp_sym_flag='-Bexport'
15694
 
        no_entry_flag=""
15695
 
      else
15696
 
        # If we're using GNU nm, then we don't want the "-C" option.
15697
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15698
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15699
 
          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'
15700
 
        else
15701
 
          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'
15702
 
        fi
15703
 
        aix_use_runtimelinking=no
15704
 
 
15705
 
        # Test if we are trying to use run time linking or normal
15706
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15707
 
        # need to do runtime linking.
15708
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15709
 
          for ld_flag in $LDFLAGS; do
15710
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15711
 
            aix_use_runtimelinking=yes
15712
 
            break
15713
 
          fi
15714
 
          done
15715
 
          ;;
15716
 
        esac
15717
 
 
15718
 
        exp_sym_flag='-bexport'
15719
 
        no_entry_flag='-bnoentry'
15720
 
      fi
15721
 
 
15722
 
      # When large executables or shared objects are built, AIX ld can
15723
 
      # have problems creating the table of contents.  If linking a library
15724
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15725
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15726
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15727
 
 
15728
 
      archive_cmds_F77=''
15729
 
      hardcode_direct_F77=yes
15730
 
      hardcode_libdir_separator_F77=':'
15731
 
      link_all_deplibs_F77=yes
15732
 
 
15733
 
      if test "$GCC" = yes; then
15734
 
        case $host_os in aix4.[012]|aix4.[012].*)
15735
 
        # We only want to do this on AIX 4.2 and lower, the check
15736
 
        # below for broken collect2 doesn't work under 4.3+
15737
 
          collect2name=`${CC} -print-prog-name=collect2`
15738
 
          if test -f "$collect2name" && \
15739
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15740
 
          then
15741
 
          # We have reworked collect2
15742
 
          :
15743
 
          else
15744
 
          # We have old collect2
15745
 
          hardcode_direct_F77=unsupported
15746
 
          # It fails to find uninstalled libraries when the uninstalled
15747
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15748
 
          # to unsupported forces relinking
15749
 
          hardcode_minus_L_F77=yes
15750
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15751
 
          hardcode_libdir_separator_F77=
15752
 
          fi
15753
 
          ;;
15754
 
        esac
15755
 
        shared_flag='-shared'
15756
 
        if test "$aix_use_runtimelinking" = yes; then
15757
 
          shared_flag="$shared_flag "'${wl}-G'
15758
 
        fi
15759
 
      else
15760
 
        # not using gcc
15761
 
        if test "$host_cpu" = ia64; then
15762
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15763
 
        # chokes on -Wl,-G. The following line is correct:
15764
 
          shared_flag='-G'
15765
 
        else
15766
 
          if test "$aix_use_runtimelinking" = yes; then
15767
 
            shared_flag='${wl}-G'
15768
 
          else
15769
 
            shared_flag='${wl}-bM:SRE'
15770
 
          fi
15771
 
        fi
15772
 
      fi
15773
 
 
15774
 
      # It seems that -bexpall does not export symbols beginning with
15775
 
      # underscore (_), so it is better to generate a list of symbols to export.
15776
 
      always_export_symbols_F77=yes
15777
 
      if test "$aix_use_runtimelinking" = yes; then
15778
 
        # Warning - without using the other runtime loading flags (-brtl),
15779
 
        # -berok will link without error, but may produce a broken library.
15780
 
        allow_undefined_flag_F77='-berok'
15781
 
       # Determine the default libpath from the value encoded in an empty executable.
15782
 
       cat >conftest.$ac_ext <<_ACEOF
15783
 
      program main
15784
 
 
15785
 
      end
15786
 
_ACEOF
15787
 
rm -f conftest.$ac_objext conftest$ac_exeext
15788
 
if { (ac_try="$ac_link"
15789
 
case "(($ac_try" in
15790
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791
 
  *) ac_try_echo=$ac_try;;
15792
 
esac
15793
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794
 
  (eval "$ac_link") 2>conftest.er1
15795
 
  ac_status=$?
15796
 
  grep -v '^ *+' conftest.er1 >conftest.err
15797
 
  rm -f conftest.er1
15798
 
  cat conftest.err >&5
15799
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800
 
  (exit $ac_status); } && {
15801
 
         test -z "$ac_f77_werror_flag" ||
15802
 
         test ! -s conftest.err
15803
 
       } && test -s conftest$ac_exeext &&
15804
 
       $as_test_x conftest$ac_exeext; then
15805
 
 
15806
 
lt_aix_libpath_sed='
15807
 
    /Import File Strings/,/^$/ {
15808
 
        /^0/ {
15809
 
            s/^0  *\(.*\)$/\1/
15810
 
            p
15811
 
        }
15812
 
    }'
15813
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15814
 
# Check for a 64-bit object if we didn't find anything.
15815
 
if test -z "$aix_libpath"; then
15816
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15817
 
fi
15818
 
else
15819
 
  echo "$as_me: failed program was:" >&5
15820
 
sed 's/^/| /' conftest.$ac_ext >&5
15821
 
 
15822
 
 
15823
 
fi
15824
 
 
15825
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15826
 
      conftest$ac_exeext conftest.$ac_ext
15827
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15828
 
 
15829
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15830
 
        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"
15831
 
       else
15832
 
        if test "$host_cpu" = ia64; then
15833
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15834
 
          allow_undefined_flag_F77="-z nodefs"
15835
 
          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"
15836
 
        else
15837
 
         # Determine the default libpath from the value encoded in an empty executable.
15838
 
         cat >conftest.$ac_ext <<_ACEOF
15839
 
      program main
15840
 
 
15841
 
      end
15842
 
_ACEOF
15843
 
rm -f conftest.$ac_objext conftest$ac_exeext
15844
 
if { (ac_try="$ac_link"
15845
 
case "(($ac_try" in
15846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847
 
  *) ac_try_echo=$ac_try;;
15848
 
esac
15849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850
 
  (eval "$ac_link") 2>conftest.er1
15851
 
  ac_status=$?
15852
 
  grep -v '^ *+' conftest.er1 >conftest.err
15853
 
  rm -f conftest.er1
15854
 
  cat conftest.err >&5
15855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856
 
  (exit $ac_status); } && {
15857
 
         test -z "$ac_f77_werror_flag" ||
15858
 
         test ! -s conftest.err
15859
 
       } && test -s conftest$ac_exeext &&
15860
 
       $as_test_x conftest$ac_exeext; then
15861
 
 
15862
 
lt_aix_libpath_sed='
15863
 
    /Import File Strings/,/^$/ {
15864
 
        /^0/ {
15865
 
            s/^0  *\(.*\)$/\1/
15866
 
            p
15867
 
        }
15868
 
    }'
15869
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15870
 
# Check for a 64-bit object if we didn't find anything.
15871
 
if test -z "$aix_libpath"; then
15872
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15873
 
fi
15874
 
else
15875
 
  echo "$as_me: failed program was:" >&5
15876
 
sed 's/^/| /' conftest.$ac_ext >&5
15877
 
 
15878
 
 
15879
 
fi
15880
 
 
15881
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882
 
      conftest$ac_exeext conftest.$ac_ext
15883
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15884
 
 
15885
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15886
 
          # Warning - without using the other run time loading flags,
15887
 
          # -berok will link without error, but may produce a broken library.
15888
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15889
 
          allow_undefined_flag_F77=' ${wl}-berok'
15890
 
          # Exported symbols can be pulled into shared objects from archives
15891
 
          whole_archive_flag_spec_F77='$convenience'
15892
 
          archive_cmds_need_lc_F77=yes
15893
 
          # This is similar to how AIX traditionally builds its shared libraries.
15894
 
          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'
15895
 
        fi
15896
 
      fi
15897
 
      ;;
15898
 
 
15899
 
    amigaos*)
15900
 
      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)'
15901
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15902
 
      hardcode_minus_L_F77=yes
15903
 
      # see comment about different semantics on the GNU ld section
15904
 
      ld_shlibs_F77=no
15905
 
      ;;
15906
 
 
15907
 
    bsdi[45]*)
15908
 
      export_dynamic_flag_spec_F77=-rdynamic
15909
 
      ;;
15910
 
 
15911
 
    cygwin* | mingw* | pw32*)
15912
 
      # When not using gcc, we currently assume that we are using
15913
 
      # Microsoft Visual C++.
15914
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15915
 
      # no search path for DLLs.
15916
 
      hardcode_libdir_flag_spec_F77=' '
15917
 
      allow_undefined_flag_F77=unsupported
15918
 
      # Tell ltmain to make .lib files, not .a files.
15919
 
      libext=lib
15920
 
      # Tell ltmain to make .dll files, not .so files.
15921
 
      shrext_cmds=".dll"
15922
 
      # FIXME: Setting linknames here is a bad hack.
15923
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15924
 
      # The linker will automatically build a .lib file if we build a DLL.
15925
 
      old_archive_From_new_cmds_F77='true'
15926
 
      # FIXME: Should let the user specify the lib program.
15927
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15928
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15929
 
      enable_shared_with_static_runtimes_F77=yes
15930
 
      ;;
15931
 
 
15932
 
    darwin* | rhapsody*)
15933
 
      case $host_os in
15934
 
        rhapsody* | darwin1.[012])
15935
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15936
 
         ;;
15937
 
       *) # Darwin 1.3 on
15938
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15939
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15940
 
         else
15941
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15942
 
             10.[012])
15943
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15944
 
               ;;
15945
 
             10.*)
15946
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15947
 
               ;;
15948
 
           esac
15949
 
         fi
15950
 
         ;;
15951
 
      esac
15952
 
      archive_cmds_need_lc_F77=no
15953
 
      hardcode_direct_F77=no
15954
 
      hardcode_automatic_F77=yes
15955
 
      hardcode_shlibpath_var_F77=unsupported
15956
 
      whole_archive_flag_spec_F77=''
15957
 
      link_all_deplibs_F77=yes
15958
 
    if test "$GCC" = yes ; then
15959
 
        output_verbose_link_cmd='echo'
15960
 
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15961
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15962
 
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15963
 
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15964
 
    else
15965
 
      case $cc_basename in
15966
 
        xlc*)
15967
 
         output_verbose_link_cmd='echo'
15968
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15969
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15970
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15971
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15972
 
          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}'
15973
 
          ;;
15974
 
       *)
15975
 
         ld_shlibs_F77=no
15976
 
          ;;
15977
 
      esac
15978
 
    fi
15979
 
      ;;
15980
 
 
15981
 
    dgux*)
15982
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15984
 
      hardcode_shlibpath_var_F77=no
15985
 
      ;;
15986
 
 
15987
 
    freebsd1*)
15988
 
      ld_shlibs_F77=no
15989
 
      ;;
15990
 
 
15991
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15992
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15993
 
    # does not break anything, and helps significantly (at the cost of a little
15994
 
    # extra space).
15995
 
    freebsd2.2*)
15996
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15997
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15998
 
      hardcode_direct_F77=yes
15999
 
      hardcode_shlibpath_var_F77=no
16000
 
      ;;
16001
 
 
16002
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16003
 
    freebsd2*)
16004
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005
 
      hardcode_direct_F77=yes
16006
 
      hardcode_minus_L_F77=yes
16007
 
      hardcode_shlibpath_var_F77=no
16008
 
      ;;
16009
 
 
16010
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16011
 
    freebsd* | dragonfly*)
16012
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16013
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16014
 
      hardcode_direct_F77=yes
16015
 
      hardcode_shlibpath_var_F77=no
16016
 
      ;;
16017
 
 
16018
 
    hpux9*)
16019
 
      if test "$GCC" = yes; then
16020
 
        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'
16021
 
      else
16022
 
        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'
16023
 
      fi
16024
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16025
 
      hardcode_libdir_separator_F77=:
16026
 
      hardcode_direct_F77=yes
16027
 
 
16028
 
      # hardcode_minus_L: Not really in the search PATH,
16029
 
      # but as the default location of the library.
16030
 
      hardcode_minus_L_F77=yes
16031
 
      export_dynamic_flag_spec_F77='${wl}-E'
16032
 
      ;;
16033
 
 
16034
 
    hpux10*)
16035
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16036
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16037
 
      else
16038
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16039
 
      fi
16040
 
      if test "$with_gnu_ld" = no; then
16041
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16042
 
        hardcode_libdir_separator_F77=:
16043
 
 
16044
 
        hardcode_direct_F77=yes
16045
 
        export_dynamic_flag_spec_F77='${wl}-E'
16046
 
 
16047
 
        # hardcode_minus_L: Not really in the search PATH,
16048
 
        # but as the default location of the library.
16049
 
        hardcode_minus_L_F77=yes
16050
 
      fi
16051
 
      ;;
16052
 
 
16053
 
    hpux11*)
16054
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16055
 
        case $host_cpu in
16056
 
        hppa*64*)
16057
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058
 
          ;;
16059
 
        ia64*)
16060
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16061
 
          ;;
16062
 
        *)
16063
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16064
 
          ;;
16065
 
        esac
16066
 
      else
16067
 
        case $host_cpu in
16068
 
        hppa*64*)
16069
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16070
 
          ;;
16071
 
        ia64*)
16072
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16073
 
          ;;
16074
 
        *)
16075
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16076
 
          ;;
16077
 
        esac
16078
 
      fi
16079
 
      if test "$with_gnu_ld" = no; then
16080
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16081
 
        hardcode_libdir_separator_F77=:
16082
 
 
16083
 
        case $host_cpu in
16084
 
        hppa*64*|ia64*)
16085
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16086
 
          hardcode_direct_F77=no
16087
 
          hardcode_shlibpath_var_F77=no
16088
 
          ;;
16089
 
        *)
16090
 
          hardcode_direct_F77=yes
16091
 
          export_dynamic_flag_spec_F77='${wl}-E'
16092
 
 
16093
 
          # hardcode_minus_L: Not really in the search PATH,
16094
 
          # but as the default location of the library.
16095
 
          hardcode_minus_L_F77=yes
16096
 
          ;;
16097
 
        esac
16098
 
      fi
16099
 
      ;;
16100
 
 
16101
 
    irix5* | irix6* | nonstopux*)
16102
 
      if test "$GCC" = yes; then
16103
 
        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'
16104
 
      else
16105
 
        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'
16106
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16107
 
      fi
16108
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16109
 
      hardcode_libdir_separator_F77=:
16110
 
      link_all_deplibs_F77=yes
16111
 
      ;;
16112
 
 
16113
 
    netbsd* | netbsdelf*-gnu)
16114
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16115
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16116
 
      else
16117
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16118
 
      fi
16119
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16120
 
      hardcode_direct_F77=yes
16121
 
      hardcode_shlibpath_var_F77=no
16122
 
      ;;
16123
 
 
16124
 
    newsos6)
16125
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126
 
      hardcode_direct_F77=yes
16127
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16128
 
      hardcode_libdir_separator_F77=:
16129
 
      hardcode_shlibpath_var_F77=no
16130
 
      ;;
16131
 
 
16132
 
    openbsd*)
16133
 
      if test -f /usr/libexec/ld.so; then
16134
 
        hardcode_direct_F77=yes
16135
 
        hardcode_shlibpath_var_F77=no
16136
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16137
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16139
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16140
 
          export_dynamic_flag_spec_F77='${wl}-E'
16141
 
        else
16142
 
          case $host_os in
16143
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16144
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
16146
 
             ;;
16147
 
           *)
16148
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16150
 
             ;;
16151
 
          esac
16152
 
        fi
16153
 
      else
16154
 
        ld_shlibs_F77=no
16155
 
      fi
16156
 
      ;;
16157
 
 
16158
 
    os2*)
16159
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16160
 
      hardcode_minus_L_F77=yes
16161
 
      allow_undefined_flag_F77=unsupported
16162
 
      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'
16163
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16164
 
      ;;
16165
 
 
16166
 
    osf3*)
16167
 
      if test "$GCC" = yes; then
16168
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16169
 
        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'
16170
 
      else
16171
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16172
 
        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'
16173
 
      fi
16174
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16175
 
      hardcode_libdir_separator_F77=:
16176
 
      ;;
16177
 
 
16178
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16179
 
      if test "$GCC" = yes; then
16180
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16181
 
        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'
16182
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16183
 
      else
16184
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16185
 
        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'
16186
 
        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~
16187
 
        $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'
16188
 
 
16189
 
        # Both c and cxx compiler support -rpath directly
16190
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
16191
 
      fi
16192
 
      hardcode_libdir_separator_F77=:
16193
 
      ;;
16194
 
 
16195
 
    solaris*)
16196
 
      no_undefined_flag_F77=' -z text'
16197
 
      if test "$GCC" = yes; then
16198
 
        wlarc='${wl}'
16199
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16201
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16202
 
      else
16203
 
        wlarc=''
16204
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16207
 
      fi
16208
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16209
 
      hardcode_shlibpath_var_F77=no
16210
 
      case $host_os in
16211
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16212
 
      *)
16213
 
        # The compiler driver will combine and reorder linker options,
16214
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16215
 
        # but is careful enough not to reorder.
16216
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16217
 
        if test "$GCC" = yes; then
16218
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16219
 
        else
16220
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16221
 
        fi
16222
 
        ;;
16223
 
      esac
16224
 
      link_all_deplibs_F77=yes
16225
 
      ;;
16226
 
 
16227
 
    sunos4*)
16228
 
      if test "x$host_vendor" = xsequent; then
16229
 
        # Use $CC to link under sequent, because it throws in some extra .o
16230
 
        # files that make .init and .fini sections work.
16231
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16232
 
      else
16233
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16234
 
      fi
16235
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16236
 
      hardcode_direct_F77=yes
16237
 
      hardcode_minus_L_F77=yes
16238
 
      hardcode_shlibpath_var_F77=no
16239
 
      ;;
16240
 
 
16241
 
    sysv4)
16242
 
      case $host_vendor in
16243
 
        sni)
16244
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245
 
          hardcode_direct_F77=yes # is this really true???
16246
 
        ;;
16247
 
        siemens)
16248
 
          ## LD is ld it makes a PLAMLIB
16249
 
          ## CC just makes a GrossModule.
16250
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16251
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
16252
 
          hardcode_direct_F77=no
16253
 
        ;;
16254
 
        motorola)
16255
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16257
 
        ;;
16258
 
      esac
16259
 
      runpath_var='LD_RUN_PATH'
16260
 
      hardcode_shlibpath_var_F77=no
16261
 
      ;;
16262
 
 
16263
 
    sysv4.3*)
16264
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265
 
      hardcode_shlibpath_var_F77=no
16266
 
      export_dynamic_flag_spec_F77='-Bexport'
16267
 
      ;;
16268
 
 
16269
 
    sysv4*MP*)
16270
 
      if test -d /usr/nec; then
16271
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272
 
        hardcode_shlibpath_var_F77=no
16273
 
        runpath_var=LD_RUN_PATH
16274
 
        hardcode_runpath_var=yes
16275
 
        ld_shlibs_F77=yes
16276
 
      fi
16277
 
      ;;
16278
 
 
16279
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16280
 
      no_undefined_flag_F77='${wl}-z,text'
16281
 
      archive_cmds_need_lc_F77=no
16282
 
      hardcode_shlibpath_var_F77=no
16283
 
      runpath_var='LD_RUN_PATH'
16284
 
 
16285
 
      if test "$GCC" = yes; then
16286
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16288
 
      else
16289
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16291
 
      fi
16292
 
      ;;
16293
 
 
16294
 
    sysv5* | sco3.2v5* | sco5v6*)
16295
 
      # Note: We can NOT use -z defs as we might desire, because we do not
16296
 
      # link with -lc, and that would cause any symbols used from libc to
16297
 
      # always be unresolved, which means just about no library would
16298
 
      # ever link correctly.  If we're not using GNU ld we use -z text
16299
 
      # though, which does catch some bad symbols but isn't as heavy-handed
16300
 
      # as -z defs.
16301
 
      no_undefined_flag_F77='${wl}-z,text'
16302
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
16303
 
      archive_cmds_need_lc_F77=no
16304
 
      hardcode_shlibpath_var_F77=no
16305
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16306
 
      hardcode_libdir_separator_F77=':'
16307
 
      link_all_deplibs_F77=yes
16308
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16309
 
      runpath_var='LD_RUN_PATH'
16310
 
 
16311
 
      if test "$GCC" = yes; then
16312
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16314
 
      else
16315
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16316
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317
 
      fi
16318
 
      ;;
16319
 
 
16320
 
    uts4*)
16321
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16323
 
      hardcode_shlibpath_var_F77=no
16324
 
      ;;
16325
 
 
16326
 
    *)
16327
 
      ld_shlibs_F77=no
16328
 
      ;;
16329
 
    esac
16330
 
  fi
16331
 
 
16332
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16333
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16334
 
test "$ld_shlibs_F77" = no && can_build_shared=no
16335
 
 
16336
 
#
16337
 
# Do we need to explicitly link libc?
16338
 
#
16339
 
case "x$archive_cmds_need_lc_F77" in
16340
 
x|xyes)
16341
 
  # Assume -lc should be added
16342
 
  archive_cmds_need_lc_F77=yes
16343
 
 
16344
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16345
 
    case $archive_cmds_F77 in
16346
 
    *'~'*)
16347
 
      # FIXME: we may have to deal with multi-command sequences.
16348
 
      ;;
16349
 
    '$CC '*)
16350
 
      # Test whether the compiler implicitly links with -lc since on some
16351
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16352
 
      # to ld, don't add -lc before -lgcc.
16353
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16354
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16355
 
      $rm conftest*
16356
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357
 
 
16358
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16359
 
  (eval $ac_compile) 2>&5
16360
 
  ac_status=$?
16361
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362
 
  (exit $ac_status); } 2>conftest.err; then
16363
 
        soname=conftest
16364
 
        lib=conftest
16365
 
        libobjs=conftest.$ac_objext
16366
 
        deplibs=
16367
 
        wl=$lt_prog_compiler_wl_F77
16368
 
        pic_flag=$lt_prog_compiler_pic_F77
16369
 
        compiler_flags=-v
16370
 
        linker_flags=-v
16371
 
        verstring=
16372
 
        output_objdir=.
16373
 
        libname=conftest
16374
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16375
 
        allow_undefined_flag_F77=
16376
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16377
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16378
 
  ac_status=$?
16379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380
 
  (exit $ac_status); }
16381
 
        then
16382
 
          archive_cmds_need_lc_F77=no
16383
 
        else
16384
 
          archive_cmds_need_lc_F77=yes
16385
 
        fi
16386
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16387
 
      else
16388
 
        cat conftest.err 1>&5
16389
 
      fi
16390
 
      $rm conftest*
16391
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16392
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16393
 
      ;;
16394
 
    esac
16395
 
  fi
16396
 
  ;;
16397
 
esac
16398
 
 
16399
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16400
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16401
 
library_names_spec=
16402
 
libname_spec='lib$name'
16403
 
soname_spec=
16404
 
shrext_cmds=".so"
16405
 
postinstall_cmds=
16406
 
postuninstall_cmds=
16407
 
finish_cmds=
16408
 
finish_eval=
16409
 
shlibpath_var=
16410
 
shlibpath_overrides_runpath=unknown
16411
 
version_type=none
16412
 
dynamic_linker="$host_os ld.so"
16413
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16414
 
 
16415
 
need_lib_prefix=unknown
16416
 
hardcode_into_libs=no
16417
 
 
16418
 
# when you set need_version to no, make sure it does not cause -set_version
16419
 
# flags to be left without arguments
16420
 
need_version=unknown
16421
 
 
16422
 
case $host_os in
16423
 
aix3*)
16424
 
  version_type=linux
16425
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16426
 
  shlibpath_var=LIBPATH
16427
 
 
16428
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16429
 
  soname_spec='${libname}${release}${shared_ext}$major'
16430
 
  ;;
16431
 
 
16432
 
aix[4-9]*)
16433
 
  version_type=linux
16434
 
  need_lib_prefix=no
16435
 
  need_version=no
16436
 
  hardcode_into_libs=yes
16437
 
  if test "$host_cpu" = ia64; then
16438
 
    # AIX 5 supports IA64
16439
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440
 
    shlibpath_var=LD_LIBRARY_PATH
16441
 
  else
16442
 
    # With GCC up to 2.95.x, collect2 would create an import file
16443
 
    # for dependence libraries.  The import file would start with
16444
 
    # the line `#! .'.  This would cause the generated library to
16445
 
    # depend on `.', always an invalid library.  This was fixed in
16446
 
    # development snapshots of GCC prior to 3.0.
16447
 
    case $host_os in
16448
 
      aix4 | aix4.[01] | aix4.[01].*)
16449
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16450
 
           echo ' yes '
16451
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16452
 
        :
16453
 
      else
16454
 
        can_build_shared=no
16455
 
      fi
16456
 
      ;;
16457
 
    esac
16458
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459
 
    # soname into executable. Probably we can add versioning support to
16460
 
    # collect2, so additional links can be useful in future.
16461
 
    if test "$aix_use_runtimelinking" = yes; then
16462
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463
 
      # instead of lib<name>.a to let people know that these are not
16464
 
      # typical AIX shared libraries.
16465
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466
 
    else
16467
 
      # We preserve .a as extension for shared libraries through AIX4.2
16468
 
      # and later when we are not doing run time linking.
16469
 
      library_names_spec='${libname}${release}.a $libname.a'
16470
 
      soname_spec='${libname}${release}${shared_ext}$major'
16471
 
    fi
16472
 
    shlibpath_var=LIBPATH
16473
 
  fi
16474
 
  ;;
16475
 
 
16476
 
amigaos*)
16477
 
  library_names_spec='$libname.ixlibrary $libname.a'
16478
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16479
 
  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'
16480
 
  ;;
16481
 
 
16482
 
beos*)
16483
 
  library_names_spec='${libname}${shared_ext}'
16484
 
  dynamic_linker="$host_os ld.so"
16485
 
  shlibpath_var=LIBRARY_PATH
16486
 
  ;;
16487
 
 
16488
 
bsdi[45]*)
16489
 
  version_type=linux
16490
 
  need_version=no
16491
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492
 
  soname_spec='${libname}${release}${shared_ext}$major'
16493
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16494
 
  shlibpath_var=LD_LIBRARY_PATH
16495
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16496
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16497
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16498
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16499
 
  # libtool to hard-code these into programs
16500
 
  ;;
16501
 
 
16502
 
cygwin* | mingw* | pw32*)
16503
 
  version_type=windows
16504
 
  shrext_cmds=".dll"
16505
 
  need_version=no
16506
 
  need_lib_prefix=no
16507
 
 
16508
 
  case $GCC,$host_os in
16509
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16510
 
    library_names_spec='$libname.dll.a'
16511
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16512
 
    postinstall_cmds='base_file=`basename \${file}`~
16513
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16514
 
      dldir=$destdir/`dirname \$dlpath`~
16515
 
      test -d \$dldir || mkdir -p \$dldir~
16516
 
      $install_prog $dir/$dlname \$dldir/$dlname~
16517
 
      chmod a+x \$dldir/$dlname'
16518
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16519
 
      dlpath=$dir/\$dldll~
16520
 
       $rm \$dlpath'
16521
 
    shlibpath_overrides_runpath=yes
16522
 
 
16523
 
    case $host_os in
16524
 
    cygwin*)
16525
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16526
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16528
 
      ;;
16529
 
    mingw*)
16530
 
      # MinGW DLLs use traditional 'lib' prefix
16531
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16533
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16534
 
        # It is most probably a Windows format PATH printed by
16535
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16536
 
        # path with ; separators, and with drive letters. We can handle the
16537
 
        # drive letters (cygwin fileutils understands them), so leave them,
16538
 
        # especially as we might pass files found there to a mingw objdump,
16539
 
        # which wouldn't understand a cygwinified path. Ahh.
16540
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16541
 
      else
16542
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16543
 
      fi
16544
 
      ;;
16545
 
    pw32*)
16546
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16547
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16548
 
      ;;
16549
 
    esac
16550
 
    ;;
16551
 
 
16552
 
  *)
16553
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16554
 
    ;;
16555
 
  esac
16556
 
  dynamic_linker='Win32 ld.exe'
16557
 
  # FIXME: first we should search . and the directory the executable is in
16558
 
  shlibpath_var=PATH
16559
 
  ;;
16560
 
 
16561
 
darwin* | rhapsody*)
16562
 
  dynamic_linker="$host_os dyld"
16563
 
  version_type=darwin
16564
 
  need_lib_prefix=no
16565
 
  need_version=no
16566
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16567
 
  soname_spec='${libname}${release}${major}$shared_ext'
16568
 
  shlibpath_overrides_runpath=yes
16569
 
  shlibpath_var=DYLD_LIBRARY_PATH
16570
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16571
 
 
16572
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16573
 
  ;;
16574
 
 
16575
 
dgux*)
16576
 
  version_type=linux
16577
 
  need_lib_prefix=no
16578
 
  need_version=no
16579
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16580
 
  soname_spec='${libname}${release}${shared_ext}$major'
16581
 
  shlibpath_var=LD_LIBRARY_PATH
16582
 
  ;;
16583
 
 
16584
 
freebsd1*)
16585
 
  dynamic_linker=no
16586
 
  ;;
16587
 
 
16588
 
freebsd* | dragonfly*)
16589
 
  # DragonFly does not have aout.  When/if they implement a new
16590
 
  # versioning mechanism, adjust this.
16591
 
  if test -x /usr/bin/objformat; then
16592
 
    objformat=`/usr/bin/objformat`
16593
 
  else
16594
 
    case $host_os in
16595
 
    freebsd[123]*) objformat=aout ;;
16596
 
    *) objformat=elf ;;
16597
 
    esac
16598
 
  fi
16599
 
  version_type=freebsd-$objformat
16600
 
  case $version_type in
16601
 
    freebsd-elf*)
16602
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16603
 
      need_version=no
16604
 
      need_lib_prefix=no
16605
 
      ;;
16606
 
    freebsd-*)
16607
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16608
 
      need_version=yes
16609
 
      ;;
16610
 
  esac
16611
 
  shlibpath_var=LD_LIBRARY_PATH
16612
 
  case $host_os in
16613
 
  freebsd2*)
16614
 
    shlibpath_overrides_runpath=yes
16615
 
    ;;
16616
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16617
 
    shlibpath_overrides_runpath=yes
16618
 
    hardcode_into_libs=yes
16619
 
    ;;
16620
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16621
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16622
 
    shlibpath_overrides_runpath=no
16623
 
    hardcode_into_libs=yes
16624
 
    ;;
16625
 
  *) # from 4.6 on, and DragonFly
16626
 
    shlibpath_overrides_runpath=yes
16627
 
    hardcode_into_libs=yes
16628
 
    ;;
16629
 
  esac
16630
 
  ;;
16631
 
 
16632
 
gnu*)
16633
 
  version_type=linux
16634
 
  need_lib_prefix=no
16635
 
  need_version=no
16636
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16637
 
  soname_spec='${libname}${release}${shared_ext}$major'
16638
 
  shlibpath_var=LD_LIBRARY_PATH
16639
 
  hardcode_into_libs=yes
16640
 
  ;;
16641
 
 
16642
 
hpux9* | hpux10* | hpux11*)
16643
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16644
 
  # link against other versions.
16645
 
  version_type=sunos
16646
 
  need_lib_prefix=no
16647
 
  need_version=no
16648
 
  case $host_cpu in
16649
 
  ia64*)
16650
 
    shrext_cmds='.so'
16651
 
    hardcode_into_libs=yes
16652
 
    dynamic_linker="$host_os dld.so"
16653
 
    shlibpath_var=LD_LIBRARY_PATH
16654
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16655
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656
 
    soname_spec='${libname}${release}${shared_ext}$major'
16657
 
    if test "X$HPUX_IA64_MODE" = X32; then
16658
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16659
 
    else
16660
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16661
 
    fi
16662
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16663
 
    ;;
16664
 
   hppa*64*)
16665
 
     shrext_cmds='.sl'
16666
 
     hardcode_into_libs=yes
16667
 
     dynamic_linker="$host_os dld.sl"
16668
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16669
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16670
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671
 
     soname_spec='${libname}${release}${shared_ext}$major'
16672
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16673
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16674
 
     ;;
16675
 
   *)
16676
 
    shrext_cmds='.sl'
16677
 
    dynamic_linker="$host_os dld.sl"
16678
 
    shlibpath_var=SHLIB_PATH
16679
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16680
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681
 
    soname_spec='${libname}${release}${shared_ext}$major'
16682
 
    ;;
16683
 
  esac
16684
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16685
 
  postinstall_cmds='chmod 555 $lib'
16686
 
  ;;
16687
 
 
16688
 
interix[3-9]*)
16689
 
  version_type=linux
16690
 
  need_lib_prefix=no
16691
 
  need_version=no
16692
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693
 
  soname_spec='${libname}${release}${shared_ext}$major'
16694
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16695
 
  shlibpath_var=LD_LIBRARY_PATH
16696
 
  shlibpath_overrides_runpath=no
16697
 
  hardcode_into_libs=yes
16698
 
  ;;
16699
 
 
16700
 
irix5* | irix6* | nonstopux*)
16701
 
  case $host_os in
16702
 
    nonstopux*) version_type=nonstopux ;;
16703
 
    *)
16704
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16705
 
                version_type=linux
16706
 
        else
16707
 
                version_type=irix
16708
 
        fi ;;
16709
 
  esac
16710
 
  need_lib_prefix=no
16711
 
  need_version=no
16712
 
  soname_spec='${libname}${release}${shared_ext}$major'
16713
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16714
 
  case $host_os in
16715
 
  irix5* | nonstopux*)
16716
 
    libsuff= shlibsuff=
16717
 
    ;;
16718
 
  *)
16719
 
    case $LD in # libtool.m4 will add one of these switches to LD
16720
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16721
 
      libsuff= shlibsuff= libmagic=32-bit;;
16722
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16723
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16724
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16725
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16726
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16727
 
    esac
16728
 
    ;;
16729
 
  esac
16730
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16731
 
  shlibpath_overrides_runpath=no
16732
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16733
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16734
 
  hardcode_into_libs=yes
16735
 
  ;;
16736
 
 
16737
 
# No shared lib support for Linux oldld, aout, or coff.
16738
 
linux*oldld* | linux*aout* | linux*coff*)
16739
 
  dynamic_linker=no
16740
 
  ;;
16741
 
 
16742
 
# This must be Linux ELF.
16743
 
linux* | k*bsd*-gnu)
16744
 
  version_type=linux
16745
 
  need_lib_prefix=no
16746
 
  need_version=no
16747
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748
 
  soname_spec='${libname}${release}${shared_ext}$major'
16749
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16750
 
  shlibpath_var=LD_LIBRARY_PATH
16751
 
  shlibpath_overrides_runpath=no
16752
 
  # This implies no fast_install, which is unacceptable.
16753
 
  # Some rework will be needed to allow for fast_install
16754
 
  # before this can be enabled.
16755
 
  hardcode_into_libs=yes
16756
 
 
16757
 
  # Append ld.so.conf contents to the search path
16758
 
  if test -f /etc/ld.so.conf; then
16759
 
    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' ' '`
16760
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16761
 
  fi
16762
 
 
16763
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16764
 
  # powerpc, because MkLinux only supported shared libraries with the
16765
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16766
 
  # most powerpc-linux boxes support dynamic linking these days and
16767
 
  # people can always --disable-shared, the test was removed, and we
16768
 
  # assume the GNU/Linux dynamic linker is in use.
16769
 
  dynamic_linker='GNU/Linux ld.so'
16770
 
  ;;
16771
 
 
16772
 
netbsdelf*-gnu)
16773
 
  version_type=linux
16774
 
  need_lib_prefix=no
16775
 
  need_version=no
16776
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16777
 
  soname_spec='${libname}${release}${shared_ext}$major'
16778
 
  shlibpath_var=LD_LIBRARY_PATH
16779
 
  shlibpath_overrides_runpath=no
16780
 
  hardcode_into_libs=yes
16781
 
  dynamic_linker='NetBSD ld.elf_so'
16782
 
  ;;
16783
 
 
16784
 
netbsd*)
16785
 
  version_type=sunos
16786
 
  need_lib_prefix=no
16787
 
  need_version=no
16788
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16789
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791
 
    dynamic_linker='NetBSD (a.out) ld.so'
16792
 
  else
16793
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16794
 
    soname_spec='${libname}${release}${shared_ext}$major'
16795
 
    dynamic_linker='NetBSD ld.elf_so'
16796
 
  fi
16797
 
  shlibpath_var=LD_LIBRARY_PATH
16798
 
  shlibpath_overrides_runpath=yes
16799
 
  hardcode_into_libs=yes
16800
 
  ;;
16801
 
 
16802
 
newsos6)
16803
 
  version_type=linux
16804
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805
 
  shlibpath_var=LD_LIBRARY_PATH
16806
 
  shlibpath_overrides_runpath=yes
16807
 
  ;;
16808
 
 
16809
 
nto-qnx*)
16810
 
  version_type=linux
16811
 
  need_lib_prefix=no
16812
 
  need_version=no
16813
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814
 
  soname_spec='${libname}${release}${shared_ext}$major'
16815
 
  shlibpath_var=LD_LIBRARY_PATH
16816
 
  shlibpath_overrides_runpath=yes
16817
 
  ;;
16818
 
 
16819
 
openbsd*)
16820
 
  version_type=sunos
16821
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16822
 
  need_lib_prefix=no
16823
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16824
 
  case $host_os in
16825
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16826
 
    *)                         need_version=no  ;;
16827
 
  esac
16828
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16829
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16830
 
  shlibpath_var=LD_LIBRARY_PATH
16831
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16832
 
    case $host_os in
16833
 
      openbsd2.[89] | openbsd2.[89].*)
16834
 
        shlibpath_overrides_runpath=no
16835
 
        ;;
16836
 
      *)
16837
 
        shlibpath_overrides_runpath=yes
16838
 
        ;;
16839
 
      esac
16840
 
  else
16841
 
    shlibpath_overrides_runpath=yes
16842
 
  fi
16843
 
  ;;
16844
 
 
16845
 
os2*)
16846
 
  libname_spec='$name'
16847
 
  shrext_cmds=".dll"
16848
 
  need_lib_prefix=no
16849
 
  library_names_spec='$libname${shared_ext} $libname.a'
16850
 
  dynamic_linker='OS/2 ld.exe'
16851
 
  shlibpath_var=LIBPATH
16852
 
  ;;
16853
 
 
16854
 
osf3* | osf4* | osf5*)
16855
 
  version_type=osf
16856
 
  need_lib_prefix=no
16857
 
  need_version=no
16858
 
  soname_spec='${libname}${release}${shared_ext}$major'
16859
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860
 
  shlibpath_var=LD_LIBRARY_PATH
16861
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16862
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16863
 
  ;;
16864
 
 
16865
 
rdos*)
16866
 
  dynamic_linker=no
16867
 
  ;;
16868
 
 
16869
 
solaris*)
16870
 
  version_type=linux
16871
 
  need_lib_prefix=no
16872
 
  need_version=no
16873
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874
 
  soname_spec='${libname}${release}${shared_ext}$major'
16875
 
  shlibpath_var=LD_LIBRARY_PATH
16876
 
  shlibpath_overrides_runpath=yes
16877
 
  hardcode_into_libs=yes
16878
 
  # ldd complains unless libraries are executable
16879
 
  postinstall_cmds='chmod +x $lib'
16880
 
  ;;
16881
 
 
16882
 
sunos4*)
16883
 
  version_type=sunos
16884
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16886
 
  shlibpath_var=LD_LIBRARY_PATH
16887
 
  shlibpath_overrides_runpath=yes
16888
 
  if test "$with_gnu_ld" = yes; then
16889
 
    need_lib_prefix=no
16890
 
  fi
16891
 
  need_version=yes
16892
 
  ;;
16893
 
 
16894
 
sysv4 | sysv4.3*)
16895
 
  version_type=linux
16896
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897
 
  soname_spec='${libname}${release}${shared_ext}$major'
16898
 
  shlibpath_var=LD_LIBRARY_PATH
16899
 
  case $host_vendor in
16900
 
    sni)
16901
 
      shlibpath_overrides_runpath=no
16902
 
      need_lib_prefix=no
16903
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16904
 
      runpath_var=LD_RUN_PATH
16905
 
      ;;
16906
 
    siemens)
16907
 
      need_lib_prefix=no
16908
 
      ;;
16909
 
    motorola)
16910
 
      need_lib_prefix=no
16911
 
      need_version=no
16912
 
      shlibpath_overrides_runpath=no
16913
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16914
 
      ;;
16915
 
  esac
16916
 
  ;;
16917
 
 
16918
 
sysv4*MP*)
16919
 
  if test -d /usr/nec ;then
16920
 
    version_type=linux
16921
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16922
 
    soname_spec='$libname${shared_ext}.$major'
16923
 
    shlibpath_var=LD_LIBRARY_PATH
16924
 
  fi
16925
 
  ;;
16926
 
 
16927
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16928
 
  version_type=freebsd-elf
16929
 
  need_lib_prefix=no
16930
 
  need_version=no
16931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16932
 
  soname_spec='${libname}${release}${shared_ext}$major'
16933
 
  shlibpath_var=LD_LIBRARY_PATH
16934
 
  hardcode_into_libs=yes
16935
 
  if test "$with_gnu_ld" = yes; then
16936
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16937
 
    shlibpath_overrides_runpath=no
16938
 
  else
16939
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16940
 
    shlibpath_overrides_runpath=yes
16941
 
    case $host_os in
16942
 
      sco3.2v5*)
16943
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16944
 
        ;;
16945
 
    esac
16946
 
  fi
16947
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16948
 
  ;;
16949
 
 
16950
 
uts4*)
16951
 
  version_type=linux
16952
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953
 
  soname_spec='${libname}${release}${shared_ext}$major'
16954
 
  shlibpath_var=LD_LIBRARY_PATH
16955
 
  ;;
16956
 
 
16957
 
*)
16958
 
  dynamic_linker=no
16959
 
  ;;
16960
 
esac
16961
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16962
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16963
 
test "$dynamic_linker" = no && can_build_shared=no
16964
 
 
16965
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16967
 
else
16968
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16969
 
fi
16970
 
 
16971
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16972
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16974
 
else
16975
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16976
 
fi
16977
 
 
16978
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16979
 
 
16980
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16981
 
if test "$GCC" = yes; then
16982
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16983
 
fi
16984
 
 
16985
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16986
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16987
 
hardcode_action_F77=
16988
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16989
 
   test -n "$runpath_var_F77" || \
16990
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16991
 
 
16992
 
  # We can hardcode non-existant directories.
16993
 
  if test "$hardcode_direct_F77" != no &&
16994
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16995
 
     # have to relink, otherwise we might link with an installed library
16996
 
     # when we should be linking with a yet-to-be-installed one
16997
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16998
 
     test "$hardcode_minus_L_F77" != no; then
16999
 
    # Linking always hardcodes the temporary library directory.
17000
 
    hardcode_action_F77=relink
17001
 
  else
17002
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17003
 
    hardcode_action_F77=immediate
17004
 
  fi
17005
 
else
17006
 
  # We cannot hardcode anything, or else we can only hardcode existing
17007
 
  # directories.
17008
 
  hardcode_action_F77=unsupported
17009
 
fi
17010
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17011
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17012
 
 
17013
 
if test "$hardcode_action_F77" = relink; then
17014
 
  # Fast installation is not supported
17015
 
  enable_fast_install=no
17016
 
elif test "$shlibpath_overrides_runpath" = yes ||
17017
 
     test "$enable_shared" = no; then
17018
 
  # Fast installation is not necessary
17019
 
  enable_fast_install=needless
17020
 
fi
17021
 
 
17022
 
 
17023
 
# The else clause should only fire when bootstrapping the
17024
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17025
 
# with your package, and you will get complaints that there are
17026
 
# no rules to generate ltmain.sh.
17027
 
if test -f "$ltmain"; then
17028
 
  # See if we are running on zsh, and set the options which allow our commands through
17029
 
  # without removal of \ escapes.
17030
 
  if test -n "${ZSH_VERSION+set}" ; then
17031
 
    setopt NO_GLOB_SUBST
17032
 
  fi
17033
 
  # Now quote all the things that may contain metacharacters while being
17034
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17035
 
  # variables and quote the copies for generation of the libtool script.
17036
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17037
 
    SED SHELL STRIP \
17038
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17039
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17040
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17041
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17042
 
    lt_cv_sys_global_symbol_to_c_name_address \
17043
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17044
 
    old_postinstall_cmds old_postuninstall_cmds \
17045
 
    compiler_F77 \
17046
 
    CC_F77 \
17047
 
    LD_F77 \
17048
 
    lt_prog_compiler_wl_F77 \
17049
 
    lt_prog_compiler_pic_F77 \
17050
 
    lt_prog_compiler_static_F77 \
17051
 
    lt_prog_compiler_no_builtin_flag_F77 \
17052
 
    export_dynamic_flag_spec_F77 \
17053
 
    thread_safe_flag_spec_F77 \
17054
 
    whole_archive_flag_spec_F77 \
17055
 
    enable_shared_with_static_runtimes_F77 \
17056
 
    old_archive_cmds_F77 \
17057
 
    old_archive_from_new_cmds_F77 \
17058
 
    predep_objects_F77 \
17059
 
    postdep_objects_F77 \
17060
 
    predeps_F77 \
17061
 
    postdeps_F77 \
17062
 
    compiler_lib_search_path_F77 \
17063
 
    compiler_lib_search_dirs_F77 \
17064
 
    archive_cmds_F77 \
17065
 
    archive_expsym_cmds_F77 \
17066
 
    postinstall_cmds_F77 \
17067
 
    postuninstall_cmds_F77 \
17068
 
    old_archive_from_expsyms_cmds_F77 \
17069
 
    allow_undefined_flag_F77 \
17070
 
    no_undefined_flag_F77 \
17071
 
    export_symbols_cmds_F77 \
17072
 
    hardcode_libdir_flag_spec_F77 \
17073
 
    hardcode_libdir_flag_spec_ld_F77 \
17074
 
    hardcode_libdir_separator_F77 \
17075
 
    hardcode_automatic_F77 \
17076
 
    module_cmds_F77 \
17077
 
    module_expsym_cmds_F77 \
17078
 
    lt_cv_prog_compiler_c_o_F77 \
17079
 
    fix_srcfile_path_F77 \
17080
 
    exclude_expsyms_F77 \
17081
 
    include_expsyms_F77; do
17082
 
 
17083
 
    case $var in
17084
 
    old_archive_cmds_F77 | \
17085
 
    old_archive_from_new_cmds_F77 | \
17086
 
    archive_cmds_F77 | \
17087
 
    archive_expsym_cmds_F77 | \
17088
 
    module_cmds_F77 | \
17089
 
    module_expsym_cmds_F77 | \
17090
 
    old_archive_from_expsyms_cmds_F77 | \
17091
 
    export_symbols_cmds_F77 | \
17092
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17093
 
    postinstall_cmds | postuninstall_cmds | \
17094
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17095
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17096
 
      # Double-quote double-evaled strings.
17097
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17098
 
      ;;
17099
 
    *)
17100
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17101
 
      ;;
17102
 
    esac
17103
 
  done
17104
 
 
17105
 
  case $lt_echo in
17106
 
  *'\$0 --fallback-echo"')
17107
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17108
 
    ;;
17109
 
  esac
17110
 
 
17111
 
cfgfile="$ofile"
17112
 
 
17113
 
  cat <<__EOF__ >> "$cfgfile"
17114
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17115
 
 
17116
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17117
 
 
17118
 
# Shell to use when invoking shell scripts.
17119
 
SHELL=$lt_SHELL
17120
 
 
17121
 
# Whether or not to build shared libraries.
17122
 
build_libtool_libs=$enable_shared
17123
 
 
17124
 
# Whether or not to build static libraries.
17125
 
build_old_libs=$enable_static
17126
 
 
17127
 
# Whether or not to add -lc for building shared libraries.
17128
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
17129
 
 
17130
 
# Whether or not to disallow shared libs when runtime libs are static
17131
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17132
 
 
17133
 
# Whether or not to optimize for fast installation.
17134
 
fast_install=$enable_fast_install
17135
 
 
17136
 
# The host system.
17137
 
host_alias=$host_alias
17138
 
host=$host
17139
 
host_os=$host_os
17140
 
 
17141
 
# The build system.
17142
 
build_alias=$build_alias
17143
 
build=$build
17144
 
build_os=$build_os
17145
 
 
17146
 
# An echo program that does not interpret backslashes.
17147
 
echo=$lt_echo
17148
 
 
17149
 
# The archiver.
17150
 
AR=$lt_AR
17151
 
AR_FLAGS=$lt_AR_FLAGS
17152
 
 
17153
 
# A C compiler.
17154
 
LTCC=$lt_LTCC
17155
 
 
17156
 
# LTCC compiler flags.
17157
 
LTCFLAGS=$lt_LTCFLAGS
17158
 
 
17159
 
# A language-specific compiler.
17160
 
CC=$lt_compiler_F77
17161
 
 
17162
 
# Is the compiler the GNU C compiler?
17163
 
with_gcc=$GCC_F77
17164
 
 
17165
 
# An ERE matcher.
17166
 
EGREP=$lt_EGREP
17167
 
 
17168
 
# The linker used to build libraries.
17169
 
LD=$lt_LD_F77
17170
 
 
17171
 
# Whether we need hard or soft links.
17172
 
LN_S=$lt_LN_S
17173
 
 
17174
 
# A BSD-compatible nm program.
17175
 
NM=$lt_NM
17176
 
 
17177
 
# A symbol stripping program
17178
 
STRIP=$lt_STRIP
17179
 
 
17180
 
# Used to examine libraries when file_magic_cmd begins "file"
17181
 
MAGIC_CMD=$MAGIC_CMD
17182
 
 
17183
 
# Used on cygwin: DLL creation program.
17184
 
DLLTOOL="$DLLTOOL"
17185
 
 
17186
 
# Used on cygwin: object dumper.
17187
 
OBJDUMP="$OBJDUMP"
17188
 
 
17189
 
# Used on cygwin: assembler.
17190
 
AS="$AS"
17191
 
 
17192
 
# The name of the directory that contains temporary libtool files.
17193
 
objdir=$objdir
17194
 
 
17195
 
# How to create reloadable object files.
17196
 
reload_flag=$lt_reload_flag
17197
 
reload_cmds=$lt_reload_cmds
17198
 
 
17199
 
# How to pass a linker flag through the compiler.
17200
 
wl=$lt_lt_prog_compiler_wl_F77
17201
 
 
17202
 
# Object file suffix (normally "o").
17203
 
objext="$ac_objext"
17204
 
 
17205
 
# Old archive suffix (normally "a").
17206
 
libext="$libext"
17207
 
 
17208
 
# Shared library suffix (normally ".so").
17209
 
shrext_cmds='$shrext_cmds'
17210
 
 
17211
 
# Executable file suffix (normally "").
17212
 
exeext="$exeext"
17213
 
 
17214
 
# Additional compiler flags for building library objects.
17215
 
pic_flag=$lt_lt_prog_compiler_pic_F77
17216
 
pic_mode=$pic_mode
17217
 
 
17218
 
# What is the maximum length of a command?
17219
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17220
 
 
17221
 
# Does compiler simultaneously support -c and -o options?
17222
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17223
 
 
17224
 
# Must we lock files when doing compilation?
17225
 
need_locks=$lt_need_locks
17226
 
 
17227
 
# Do we need the lib prefix for modules?
17228
 
need_lib_prefix=$need_lib_prefix
17229
 
 
17230
 
# Do we need a version for libraries?
17231
 
need_version=$need_version
17232
 
 
17233
 
# Whether dlopen is supported.
17234
 
dlopen_support=$enable_dlopen
17235
 
 
17236
 
# Whether dlopen of programs is supported.
17237
 
dlopen_self=$enable_dlopen_self
17238
 
 
17239
 
# Whether dlopen of statically linked programs is supported.
17240
 
dlopen_self_static=$enable_dlopen_self_static
17241
 
 
17242
 
# Compiler flag to prevent dynamic linking.
17243
 
link_static_flag=$lt_lt_prog_compiler_static_F77
17244
 
 
17245
 
# Compiler flag to turn off builtin functions.
17246
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17247
 
 
17248
 
# Compiler flag to allow reflexive dlopens.
17249
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17250
 
 
17251
 
# Compiler flag to generate shared objects directly from archives.
17252
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17253
 
 
17254
 
# Compiler flag to generate thread-safe objects.
17255
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17256
 
 
17257
 
# Library versioning type.
17258
 
version_type=$version_type
17259
 
 
17260
 
# Format of library name prefix.
17261
 
libname_spec=$lt_libname_spec
17262
 
 
17263
 
# List of archive names.  First name is the real one, the rest are links.
17264
 
# The last name is the one that the linker finds with -lNAME.
17265
 
library_names_spec=$lt_library_names_spec
17266
 
 
17267
 
# The coded name of the library, if different from the real name.
17268
 
soname_spec=$lt_soname_spec
17269
 
 
17270
 
# Commands used to build and install an old-style archive.
17271
 
RANLIB=$lt_RANLIB
17272
 
old_archive_cmds=$lt_old_archive_cmds_F77
17273
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17274
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17275
 
 
17276
 
# Create an old-style archive from a shared archive.
17277
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17278
 
 
17279
 
# Create a temporary old-style archive to link instead of a shared archive.
17280
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17281
 
 
17282
 
# Commands used to build and install a shared archive.
17283
 
archive_cmds=$lt_archive_cmds_F77
17284
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17285
 
postinstall_cmds=$lt_postinstall_cmds
17286
 
postuninstall_cmds=$lt_postuninstall_cmds
17287
 
 
17288
 
# Commands used to build a loadable module (assumed same as above if empty)
17289
 
module_cmds=$lt_module_cmds_F77
17290
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
17291
 
 
17292
 
# Commands to strip libraries.
17293
 
old_striplib=$lt_old_striplib
17294
 
striplib=$lt_striplib
17295
 
 
17296
 
# Dependencies to place before the objects being linked to create a
17297
 
# shared library.
17298
 
predep_objects=$lt_predep_objects_F77
17299
 
 
17300
 
# Dependencies to place after the objects being linked to create a
17301
 
# shared library.
17302
 
postdep_objects=$lt_postdep_objects_F77
17303
 
 
17304
 
# Dependencies to place before the objects being linked to create a
17305
 
# shared library.
17306
 
predeps=$lt_predeps_F77
17307
 
 
17308
 
# Dependencies to place after the objects being linked to create a
17309
 
# shared library.
17310
 
postdeps=$lt_postdeps_F77
17311
 
 
17312
 
# The directories searched by this compiler when creating a shared
17313
 
# library
17314
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17315
 
 
17316
 
# The library search path used internally by the compiler when linking
17317
 
# a shared library.
17318
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17319
 
 
17320
 
# Method to check whether dependent libraries are shared objects.
17321
 
deplibs_check_method=$lt_deplibs_check_method
17322
 
 
17323
 
# Command to use when deplibs_check_method == file_magic.
17324
 
file_magic_cmd=$lt_file_magic_cmd
17325
 
 
17326
 
# Flag that allows shared libraries with undefined symbols to be built.
17327
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
17328
 
 
17329
 
# Flag that forces no undefined symbols.
17330
 
no_undefined_flag=$lt_no_undefined_flag_F77
17331
 
 
17332
 
# Commands used to finish a libtool library installation in a directory.
17333
 
finish_cmds=$lt_finish_cmds
17334
 
 
17335
 
# Same as above, but a single script fragment to be evaled but not shown.
17336
 
finish_eval=$lt_finish_eval
17337
 
 
17338
 
# Take the output of nm and produce a listing of raw symbols and C names.
17339
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17340
 
 
17341
 
# Transform the output of nm in a proper C declaration
17342
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17343
 
 
17344
 
# Transform the output of nm in a C name address pair
17345
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17346
 
 
17347
 
# This is the shared library runtime path variable.
17348
 
runpath_var=$runpath_var
17349
 
 
17350
 
# This is the shared library path variable.
17351
 
shlibpath_var=$shlibpath_var
17352
 
 
17353
 
# Is shlibpath searched before the hard-coded library search path?
17354
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17355
 
 
17356
 
# How to hardcode a shared library path into an executable.
17357
 
hardcode_action=$hardcode_action_F77
17358
 
 
17359
 
# Whether we should hardcode library paths into libraries.
17360
 
hardcode_into_libs=$hardcode_into_libs
17361
 
 
17362
 
# Flag to hardcode \$libdir into a binary during linking.
17363
 
# This must work even if \$libdir does not exist.
17364
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17365
 
 
17366
 
# If ld is used when linking, flag to hardcode \$libdir into
17367
 
# a binary during linking. This must work even if \$libdir does
17368
 
# not exist.
17369
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17370
 
 
17371
 
# Whether we need a single -rpath flag with a separated argument.
17372
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17373
 
 
17374
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17375
 
# resulting binary.
17376
 
hardcode_direct=$hardcode_direct_F77
17377
 
 
17378
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17379
 
# resulting binary.
17380
 
hardcode_minus_L=$hardcode_minus_L_F77
17381
 
 
17382
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17383
 
# the resulting binary.
17384
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17385
 
 
17386
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17387
 
# and all subsequent libraries and executables linked against it.
17388
 
hardcode_automatic=$hardcode_automatic_F77
17389
 
 
17390
 
# Variables whose values should be saved in libtool wrapper scripts and
17391
 
# restored at relink time.
17392
 
variables_saved_for_relink="$variables_saved_for_relink"
17393
 
 
17394
 
# Whether libtool must link a program against all its dependency libraries.
17395
 
link_all_deplibs=$link_all_deplibs_F77
17396
 
 
17397
 
# Compile-time system search path for libraries
17398
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17399
 
 
17400
 
# Run-time system search path for libraries
17401
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17402
 
 
17403
 
# Fix the shell variable \$srcfile for the compiler.
17404
 
fix_srcfile_path=$lt_fix_srcfile_path
17405
 
 
17406
 
# Set to yes if exported symbols are required.
17407
 
always_export_symbols=$always_export_symbols_F77
17408
 
 
17409
 
# The commands to list exported symbols.
17410
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
17411
 
 
17412
 
# The commands to extract the exported symbol list from a shared archive.
17413
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17414
 
 
17415
 
# Symbols that should not be listed in the preloaded symbols.
17416
 
exclude_expsyms=$lt_exclude_expsyms_F77
17417
 
 
17418
 
# Symbols that must always be exported.
17419
 
include_expsyms=$lt_include_expsyms_F77
17420
 
 
17421
 
# ### END LIBTOOL TAG CONFIG: $tagname
17422
 
 
17423
 
__EOF__
17424
 
 
17425
 
 
17426
 
else
17427
 
  # If there is no Makefile yet, we rely on a make rule to execute
17428
 
  # `config.status --recheck' to rerun these tests and create the
17429
 
  # libtool script then.
17430
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17431
 
  if test -f "$ltmain_in"; then
17432
 
    test -f Makefile && make "$ltmain"
17433
 
  fi
17434
 
fi
17435
 
 
17436
 
 
17437
 
ac_ext=c
17438
 
ac_cpp='$CPP $CPPFLAGS'
17439
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17442
 
 
17443
 
CC="$lt_save_CC"
17444
 
 
17445
 
        else
17446
 
          tagname=""
17447
 
        fi
17448
 
        ;;
17449
 
 
17450
 
      GCJ)
17451
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17452
 
 
17453
 
 
17454
 
# Source file extension for Java test sources.
17455
 
ac_ext=java
17456
 
 
17457
 
# Object file extension for compiled Java test sources.
17458
 
objext=o
17459
 
objext_GCJ=$objext
17460
 
 
17461
 
# Code to be used in simple compile tests
17462
 
lt_simple_compile_test_code="class foo {}"
17463
 
 
17464
 
# Code to be used in simple link tests
17465
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17466
 
 
17467
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17468
 
 
17469
 
# If no C compiler was specified, use CC.
17470
 
LTCC=${LTCC-"$CC"}
17471
 
 
17472
 
# If no C compiler flags were specified, use CFLAGS.
17473
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17474
 
 
17475
 
# Allow CC to be a program name with arguments.
17476
 
compiler=$CC
17477
 
 
17478
 
 
17479
 
# save warnings/boilerplate of simple test code
17480
 
ac_outfile=conftest.$ac_objext
17481
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17482
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17483
 
_lt_compiler_boilerplate=`cat conftest.err`
17484
 
$rm conftest*
17485
 
 
17486
 
ac_outfile=conftest.$ac_objext
17487
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17488
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17489
 
_lt_linker_boilerplate=`cat conftest.err`
17490
 
$rm -r conftest*
17491
 
 
17492
 
 
17493
 
# Allow CC to be a program name with arguments.
17494
 
lt_save_CC="$CC"
17495
 
CC=${GCJ-"gcj"}
17496
 
compiler=$CC
17497
 
compiler_GCJ=$CC
17498
 
for cc_temp in $compiler""; do
17499
 
  case $cc_temp in
17500
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17501
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17502
 
    \-*) ;;
17503
 
    *) break;;
17504
 
  esac
17505
 
done
17506
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17507
 
 
17508
 
 
17509
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17510
 
archive_cmds_need_lc_GCJ=no
17511
 
 
17512
 
old_archive_cmds_GCJ=$old_archive_cmds
17513
 
 
17514
 
 
17515
 
lt_prog_compiler_no_builtin_flag_GCJ=
17516
 
 
17517
 
if test "$GCC" = yes; then
17518
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17519
 
 
17520
 
 
17521
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17522
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17523
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17525
 
else
17526
 
  lt_cv_prog_compiler_rtti_exceptions=no
17527
 
  ac_outfile=conftest.$ac_objext
17528
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17529
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17530
 
   # Insert the option either (1) after the last *FLAGS variable, or
17531
 
   # (2) before a word containing "conftest.", or (3) at the end.
17532
 
   # Note that $ac_compile itself does not contain backslashes and begins
17533
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17534
 
   # The option is referenced via a variable to avoid confusing sed.
17535
 
   lt_compile=`echo "$ac_compile" | $SED \
17536
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17537
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17538
 
   -e 's:$: $lt_compiler_flag:'`
17539
 
   (eval echo "\"\$as_me:17539: $lt_compile\"" >&5)
17540
 
   (eval "$lt_compile" 2>conftest.err)
17541
 
   ac_status=$?
17542
 
   cat conftest.err >&5
17543
 
   echo "$as_me:17543: \$? = $ac_status" >&5
17544
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17545
 
     # The compiler can only warn and ignore the option if not recognized
17546
 
     # So say no if there are warnings other than the usual output.
17547
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17548
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17549
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17550
 
       lt_cv_prog_compiler_rtti_exceptions=yes
17551
 
     fi
17552
 
   fi
17553
 
   $rm conftest*
17554
 
 
17555
 
fi
17556
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17557
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17558
 
 
17559
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17560
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17561
 
else
17562
 
    :
17563
 
fi
17564
 
 
17565
 
fi
17566
 
 
17567
 
lt_prog_compiler_wl_GCJ=
17568
 
lt_prog_compiler_pic_GCJ=
17569
 
lt_prog_compiler_static_GCJ=
17570
 
 
17571
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17572
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17573
 
 
17574
 
  if test "$GCC" = yes; then
17575
 
    lt_prog_compiler_wl_GCJ='-Wl,'
17576
 
    lt_prog_compiler_static_GCJ='-static'
17577
 
 
17578
 
    case $host_os in
17579
 
      aix*)
17580
 
      # All AIX code is PIC.
17581
 
      if test "$host_cpu" = ia64; then
17582
 
        # AIX 5 now supports IA64 processor
17583
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17584
 
      fi
17585
 
      ;;
17586
 
 
17587
 
    amigaos*)
17588
 
      # FIXME: we need at least 68020 code to build shared libraries, but
17589
 
      # adding the `-m68020' flag to GCC prevents building anything better,
17590
 
      # like `-m68040'.
17591
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17592
 
      ;;
17593
 
 
17594
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17595
 
      # PIC is the default for these OSes.
17596
 
      ;;
17597
 
 
17598
 
    mingw* | cygwin* | pw32* | os2*)
17599
 
      # This hack is so that the source file can tell whether it is being
17600
 
      # built for inclusion in a dll (and should export symbols for example).
17601
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17602
 
      # (--disable-auto-import) libraries
17603
 
 
17604
 
      ;;
17605
 
 
17606
 
    darwin* | rhapsody*)
17607
 
      # PIC is the default on this platform
17608
 
      # Common symbols not allowed in MH_DYLIB files
17609
 
      lt_prog_compiler_pic_GCJ='-fno-common'
17610
 
      ;;
17611
 
 
17612
 
    interix[3-9]*)
17613
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17614
 
      # Instead, we relocate shared libraries at runtime.
17615
 
      ;;
17616
 
 
17617
 
    msdosdjgpp*)
17618
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17619
 
      # on systems that don't support them.
17620
 
      lt_prog_compiler_can_build_shared_GCJ=no
17621
 
      enable_shared=no
17622
 
      ;;
17623
 
 
17624
 
    sysv4*MP*)
17625
 
      if test -d /usr/nec; then
17626
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
17627
 
      fi
17628
 
      ;;
17629
 
 
17630
 
    hpux*)
17631
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17632
 
      # not for PA HP-UX.
17633
 
      case $host_cpu in
17634
 
      hppa*64*|ia64*)
17635
 
        # +Z the default
17636
 
        ;;
17637
 
      *)
17638
 
        lt_prog_compiler_pic_GCJ='-fPIC'
17639
 
        ;;
17640
 
      esac
17641
 
      ;;
17642
 
 
17643
 
    *)
17644
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17645
 
      ;;
17646
 
    esac
17647
 
  else
17648
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17649
 
    case $host_os in
17650
 
    aix*)
17651
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17652
 
      if test "$host_cpu" = ia64; then
17653
 
        # AIX 5 now supports IA64 processor
17654
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17655
 
      else
17656
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17657
 
      fi
17658
 
      ;;
17659
 
      darwin*)
17660
 
        # PIC is the default on this platform
17661
 
        # Common symbols not allowed in MH_DYLIB files
17662
 
       case $cc_basename in
17663
 
         xlc*)
17664
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17665
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17666
 
         ;;
17667
 
       esac
17668
 
       ;;
17669
 
 
17670
 
    mingw* | cygwin* | pw32* | os2*)
17671
 
      # This hack is so that the source file can tell whether it is being
17672
 
      # built for inclusion in a dll (and should export symbols for example).
17673
 
 
17674
 
      ;;
17675
 
 
17676
 
    hpux9* | hpux10* | hpux11*)
17677
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17678
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17679
 
      # not for PA HP-UX.
17680
 
      case $host_cpu in
17681
 
      hppa*64*|ia64*)
17682
 
        # +Z the default
17683
 
        ;;
17684
 
      *)
17685
 
        lt_prog_compiler_pic_GCJ='+Z'
17686
 
        ;;
17687
 
      esac
17688
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17689
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17690
 
      ;;
17691
 
 
17692
 
    irix5* | irix6* | nonstopux*)
17693
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17694
 
      # PIC (with -KPIC) is the default.
17695
 
      lt_prog_compiler_static_GCJ='-non_shared'
17696
 
      ;;
17697
 
 
17698
 
    newsos6)
17699
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17700
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17701
 
      ;;
17702
 
 
17703
 
    linux* | k*bsd*-gnu)
17704
 
      case $cc_basename in
17705
 
      icc* | ecc*)
17706
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17707
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17708
 
        lt_prog_compiler_static_GCJ='-static'
17709
 
        ;;
17710
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17711
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17712
 
        # which looks to be a dead project)
17713
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17714
 
        lt_prog_compiler_pic_GCJ='-fpic'
17715
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17716
 
        ;;
17717
 
      ccc*)
17718
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17719
 
        # All Alpha code is PIC.
17720
 
        lt_prog_compiler_static_GCJ='-non_shared'
17721
 
        ;;
17722
 
      *)
17723
 
        case `$CC -V 2>&1 | sed 5q` in
17724
 
        *Sun\ C*)
17725
 
          # Sun C 5.9
17726
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17727
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17728
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17729
 
          ;;
17730
 
        *Sun\ F*)
17731
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17732
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17733
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17734
 
          lt_prog_compiler_wl_GCJ=''
17735
 
          ;;
17736
 
        esac
17737
 
        ;;
17738
 
      esac
17739
 
      ;;
17740
 
 
17741
 
    osf3* | osf4* | osf5*)
17742
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17743
 
      # All OSF/1 code is PIC.
17744
 
      lt_prog_compiler_static_GCJ='-non_shared'
17745
 
      ;;
17746
 
 
17747
 
    rdos*)
17748
 
      lt_prog_compiler_static_GCJ='-non_shared'
17749
 
      ;;
17750
 
 
17751
 
    solaris*)
17752
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17753
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17754
 
      case $cc_basename in
17755
 
      f77* | f90* | f95*)
17756
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17757
 
      *)
17758
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17759
 
      esac
17760
 
      ;;
17761
 
 
17762
 
    sunos4*)
17763
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17764
 
      lt_prog_compiler_pic_GCJ='-PIC'
17765
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17766
 
      ;;
17767
 
 
17768
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17769
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17770
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17771
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17772
 
      ;;
17773
 
 
17774
 
    sysv4*MP*)
17775
 
      if test -d /usr/nec ;then
17776
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17777
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17778
 
      fi
17779
 
      ;;
17780
 
 
17781
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17782
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17783
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17784
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17785
 
      ;;
17786
 
 
17787
 
    unicos*)
17788
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17789
 
      lt_prog_compiler_can_build_shared_GCJ=no
17790
 
      ;;
17791
 
 
17792
 
    uts4*)
17793
 
      lt_prog_compiler_pic_GCJ='-pic'
17794
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17795
 
      ;;
17796
 
 
17797
 
    *)
17798
 
      lt_prog_compiler_can_build_shared_GCJ=no
17799
 
      ;;
17800
 
    esac
17801
 
  fi
17802
 
 
17803
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17804
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17805
 
 
17806
 
#
17807
 
# Check to make sure the PIC flag actually works.
17808
 
#
17809
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17810
 
 
17811
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17812
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17813
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17815
 
else
17816
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17817
 
  ac_outfile=conftest.$ac_objext
17818
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17819
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17820
 
   # Insert the option either (1) after the last *FLAGS variable, or
17821
 
   # (2) before a word containing "conftest.", or (3) at the end.
17822
 
   # Note that $ac_compile itself does not contain backslashes and begins
17823
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17824
 
   # The option is referenced via a variable to avoid confusing sed.
17825
 
   lt_compile=`echo "$ac_compile" | $SED \
17826
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17827
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17828
 
   -e 's:$: $lt_compiler_flag:'`
17829
 
   (eval echo "\"\$as_me:17829: $lt_compile\"" >&5)
17830
 
   (eval "$lt_compile" 2>conftest.err)
17831
 
   ac_status=$?
17832
 
   cat conftest.err >&5
17833
 
   echo "$as_me:17833: \$? = $ac_status" >&5
17834
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17835
 
     # The compiler can only warn and ignore the option if not recognized
17836
 
     # So say no if there are warnings other than the usual output.
17837
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17838
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17839
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17840
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17841
 
     fi
17842
 
   fi
17843
 
   $rm conftest*
17844
 
 
17845
 
fi
17846
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17847
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17848
 
 
17849
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17850
 
    case $lt_prog_compiler_pic_GCJ in
17851
 
     "" | " "*) ;;
17852
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17853
 
     esac
17854
 
else
17855
 
    lt_prog_compiler_pic_GCJ=
17856
 
     lt_prog_compiler_can_build_shared_GCJ=no
17857
 
fi
17858
 
 
17859
 
fi
17860
 
case $host_os in
17861
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17862
 
  *djgpp*)
17863
 
    lt_prog_compiler_pic_GCJ=
17864
 
    ;;
17865
 
  *)
17866
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17867
 
    ;;
17868
 
esac
17869
 
 
17870
 
#
17871
 
# Check to make sure the static flag actually works.
17872
 
#
17873
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17874
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17875
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17876
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17878
 
else
17879
 
  lt_cv_prog_compiler_static_works_GCJ=no
17880
 
   save_LDFLAGS="$LDFLAGS"
17881
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17882
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17883
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17884
 
     # The linker can only warn and ignore the option if not recognized
17885
 
     # So say no if there are warnings
17886
 
     if test -s conftest.err; then
17887
 
       # Append any errors to the config.log.
17888
 
       cat conftest.err 1>&5
17889
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17890
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17891
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17892
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17893
 
       fi
17894
 
     else
17895
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17896
 
     fi
17897
 
   fi
17898
 
   $rm -r conftest*
17899
 
   LDFLAGS="$save_LDFLAGS"
17900
 
 
17901
 
fi
17902
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17903
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17904
 
 
17905
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17906
 
    :
17907
 
else
17908
 
    lt_prog_compiler_static_GCJ=
17909
 
fi
17910
 
 
17911
 
 
17912
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17913
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17914
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17915
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17916
 
else
17917
 
  lt_cv_prog_compiler_c_o_GCJ=no
17918
 
   $rm -r conftest 2>/dev/null
17919
 
   mkdir conftest
17920
 
   cd conftest
17921
 
   mkdir out
17922
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17923
 
 
17924
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17925
 
   # Insert the option either (1) after the last *FLAGS variable, or
17926
 
   # (2) before a word containing "conftest.", or (3) at the end.
17927
 
   # Note that $ac_compile itself does not contain backslashes and begins
17928
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17929
 
   lt_compile=`echo "$ac_compile" | $SED \
17930
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17931
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17932
 
   -e 's:$: $lt_compiler_flag:'`
17933
 
   (eval echo "\"\$as_me:17933: $lt_compile\"" >&5)
17934
 
   (eval "$lt_compile" 2>out/conftest.err)
17935
 
   ac_status=$?
17936
 
   cat out/conftest.err >&5
17937
 
   echo "$as_me:17937: \$? = $ac_status" >&5
17938
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17939
 
   then
17940
 
     # The compiler can only warn and ignore the option if not recognized
17941
 
     # So say no if there are warnings
17942
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17943
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17944
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17945
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17946
 
     fi
17947
 
   fi
17948
 
   chmod u+w . 2>&5
17949
 
   $rm conftest*
17950
 
   # SGI C++ compiler will create directory out/ii_files/ for
17951
 
   # template instantiation
17952
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17953
 
   $rm out/* && rmdir out
17954
 
   cd ..
17955
 
   rmdir conftest
17956
 
   $rm conftest*
17957
 
 
17958
 
fi
17959
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17960
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17961
 
 
17962
 
 
17963
 
hard_links="nottested"
17964
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17965
 
  # do not overwrite the value of need_locks provided by the user
17966
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17967
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17968
 
  hard_links=yes
17969
 
  $rm conftest*
17970
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17971
 
  touch conftest.a
17972
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17973
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17974
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17975
 
echo "${ECHO_T}$hard_links" >&6; }
17976
 
  if test "$hard_links" = no; then
17977
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17978
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17979
 
    need_locks=warn
17980
 
  fi
17981
 
else
17982
 
  need_locks=no
17983
 
fi
17984
 
 
17985
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17986
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17987
 
 
17988
 
  runpath_var=
17989
 
  allow_undefined_flag_GCJ=
17990
 
  enable_shared_with_static_runtimes_GCJ=no
17991
 
  archive_cmds_GCJ=
17992
 
  archive_expsym_cmds_GCJ=
17993
 
  old_archive_From_new_cmds_GCJ=
17994
 
  old_archive_from_expsyms_cmds_GCJ=
17995
 
  export_dynamic_flag_spec_GCJ=
17996
 
  whole_archive_flag_spec_GCJ=
17997
 
  thread_safe_flag_spec_GCJ=
17998
 
  hardcode_libdir_flag_spec_GCJ=
17999
 
  hardcode_libdir_flag_spec_ld_GCJ=
18000
 
  hardcode_libdir_separator_GCJ=
18001
 
  hardcode_direct_GCJ=no
18002
 
  hardcode_minus_L_GCJ=no
18003
 
  hardcode_shlibpath_var_GCJ=unsupported
18004
 
  link_all_deplibs_GCJ=unknown
18005
 
  hardcode_automatic_GCJ=no
18006
 
  module_cmds_GCJ=
18007
 
  module_expsym_cmds_GCJ=
18008
 
  always_export_symbols_GCJ=no
18009
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18010
 
  # include_expsyms should be a list of space-separated symbols to be *always*
18011
 
  # included in the symbol list
18012
 
  include_expsyms_GCJ=
18013
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
18014
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18015
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18016
 
  # as well as any symbol that contains `d'.
18017
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18018
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18019
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
18020
 
  # the symbol is explicitly referenced.  Since portable code cannot
18021
 
  # rely on this symbol name, it's probably fine to never include it in
18022
 
  # preloaded symbol tables.
18023
 
  # Exclude shared library initialization/finalization symbols.
18024
 
  extract_expsyms_cmds=
18025
 
  # Just being paranoid about ensuring that cc_basename is set.
18026
 
  for cc_temp in $compiler""; do
18027
 
  case $cc_temp in
18028
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18030
 
    \-*) ;;
18031
 
    *) break;;
18032
 
  esac
18033
 
done
18034
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18035
 
 
18036
 
  case $host_os in
18037
 
  cygwin* | mingw* | pw32*)
18038
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18039
 
    # When not using gcc, we currently assume that we are using
18040
 
    # Microsoft Visual C++.
18041
 
    if test "$GCC" != yes; then
18042
 
      with_gnu_ld=no
18043
 
    fi
18044
 
    ;;
18045
 
  interix*)
18046
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
18047
 
    with_gnu_ld=yes
18048
 
    ;;
18049
 
  openbsd*)
18050
 
    with_gnu_ld=no
18051
 
    ;;
18052
 
  esac
18053
 
 
18054
 
  ld_shlibs_GCJ=yes
18055
 
  if test "$with_gnu_ld" = yes; then
18056
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
18057
 
    wlarc='${wl}'
18058
 
 
18059
 
    # Set some defaults for GNU ld with shared library support. These
18060
 
    # are reset later if shared libraries are not supported. Putting them
18061
 
    # here allows them to be overridden if necessary.
18062
 
    runpath_var=LD_RUN_PATH
18063
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18064
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18065
 
    # ancient GNU ld didn't support --whole-archive et. al.
18066
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18067
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18068
 
      else
18069
 
        whole_archive_flag_spec_GCJ=
18070
 
    fi
18071
 
    supports_anon_versioning=no
18072
 
    case `$LD -v 2>/dev/null` in
18073
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18074
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18075
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18076
 
      *\ 2.11.*) ;; # other 2.11 versions
18077
 
      *) supports_anon_versioning=yes ;;
18078
 
    esac
18079
 
 
18080
 
    # See if GNU ld supports shared libraries.
18081
 
    case $host_os in
18082
 
    aix[3-9]*)
18083
 
      # On AIX/PPC, the GNU linker is very broken
18084
 
      if test "$host_cpu" != ia64; then
18085
 
        ld_shlibs_GCJ=no
18086
 
        cat <<EOF 1>&2
18087
 
 
18088
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18089
 
*** to be unable to reliably create shared libraries on AIX.
18090
 
*** Therefore, libtool is disabling shared libraries support.  If you
18091
 
*** really care for shared libraries, you may want to modify your PATH
18092
 
*** so that a non-GNU linker is found, and then restart.
18093
 
 
18094
 
EOF
18095
 
      fi
18096
 
      ;;
18097
 
 
18098
 
    amigaos*)
18099
 
      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)'
18100
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18101
 
      hardcode_minus_L_GCJ=yes
18102
 
 
18103
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18104
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
18105
 
      # to version 4, is to share data among multiple programs linked
18106
 
      # with the same dynamic library.  Since this doesn't match the
18107
 
      # behavior of shared libraries on other platforms, we can't use
18108
 
      # them.
18109
 
      ld_shlibs_GCJ=no
18110
 
      ;;
18111
 
 
18112
 
    beos*)
18113
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18114
 
        allow_undefined_flag_GCJ=unsupported
18115
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18116
 
        # support --undefined.  This deserves some investigation.  FIXME
18117
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18118
 
      else
18119
 
        ld_shlibs_GCJ=no
18120
 
      fi
18121
 
      ;;
18122
 
 
18123
 
    cygwin* | mingw* | pw32*)
18124
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18125
 
      # as there is no search path for DLLs.
18126
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18127
 
      allow_undefined_flag_GCJ=unsupported
18128
 
      always_export_symbols_GCJ=no
18129
 
      enable_shared_with_static_runtimes_GCJ=yes
18130
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18131
 
 
18132
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18133
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18134
 
        # If the export-symbols file already is a .def file (1st line
18135
 
        # is EXPORTS), use it as is; otherwise, prepend...
18136
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18137
 
          cp $export_symbols $output_objdir/$soname.def;
18138
 
        else
18139
 
          echo EXPORTS > $output_objdir/$soname.def;
18140
 
          cat $export_symbols >> $output_objdir/$soname.def;
18141
 
        fi~
18142
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18143
 
      else
18144
 
        ld_shlibs_GCJ=no
18145
 
      fi
18146
 
      ;;
18147
 
 
18148
 
    interix[3-9]*)
18149
 
      hardcode_direct_GCJ=no
18150
 
      hardcode_shlibpath_var_GCJ=no
18151
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18152
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18153
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18154
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
18155
 
      # default) and relocated if they conflict, which is a slow very memory
18156
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
18157
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18158
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18159
 
      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'
18160
 
      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'
18161
 
      ;;
18162
 
 
18163
 
    gnu* | linux* | k*bsd*-gnu)
18164
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18165
 
        tmp_addflag=
18166
 
        case $cc_basename,$host_cpu in
18167
 
        pgcc*)                          # Portland Group C compiler
18168
 
          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'
18169
 
          tmp_addflag=' $pic_flag'
18170
 
          ;;
18171
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18172
 
          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'
18173
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
18174
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18175
 
          tmp_addflag=' -i_dynamic' ;;
18176
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18177
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
18178
 
        ifc* | ifort*)                  # Intel Fortran compiler
18179
 
          tmp_addflag=' -nofor_main' ;;
18180
 
        esac
18181
 
        case `$CC -V 2>&1 | sed 5q` in
18182
 
        *Sun\ C*)                       # Sun C 5.9
18183
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18184
 
          tmp_sharedflag='-G' ;;
18185
 
        *Sun\ F*)                       # Sun Fortran 8.3
18186
 
          tmp_sharedflag='-G' ;;
18187
 
        *)
18188
 
          tmp_sharedflag='-shared' ;;
18189
 
        esac
18190
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18191
 
 
18192
 
        if test $supports_anon_versioning = yes; then
18193
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18194
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18195
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
18196
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18197
 
        fi
18198
 
        link_all_deplibs_GCJ=no
18199
 
      else
18200
 
        ld_shlibs_GCJ=no
18201
 
      fi
18202
 
      ;;
18203
 
 
18204
 
    netbsd* | netbsdelf*-gnu)
18205
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18206
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18207
 
        wlarc=
18208
 
      else
18209
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18211
 
      fi
18212
 
      ;;
18213
 
 
18214
 
    solaris*)
18215
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18216
 
        ld_shlibs_GCJ=no
18217
 
        cat <<EOF 1>&2
18218
 
 
18219
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18220
 
*** create shared libraries on Solaris systems.  Therefore, libtool
18221
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18222
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
18223
 
*** your PATH or compiler configuration so that the native linker is
18224
 
*** used, and then restart.
18225
 
 
18226
 
EOF
18227
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18228
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18229
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18230
 
      else
18231
 
        ld_shlibs_GCJ=no
18232
 
      fi
18233
 
      ;;
18234
 
 
18235
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18236
 
      case `$LD -v 2>&1` in
18237
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18238
 
        ld_shlibs_GCJ=no
18239
 
        cat <<_LT_EOF 1>&2
18240
 
 
18241
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18242
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
18243
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18244
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18245
 
*** your PATH or compiler configuration so that the native linker is
18246
 
*** used, and then restart.
18247
 
 
18248
 
_LT_EOF
18249
 
        ;;
18250
 
        *)
18251
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18252
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18253
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18254
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18255
 
          else
18256
 
            ld_shlibs_GCJ=no
18257
 
          fi
18258
 
        ;;
18259
 
      esac
18260
 
      ;;
18261
 
 
18262
 
    sunos4*)
18263
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18264
 
      wlarc=
18265
 
      hardcode_direct_GCJ=yes
18266
 
      hardcode_shlibpath_var_GCJ=no
18267
 
      ;;
18268
 
 
18269
 
    *)
18270
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18271
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18272
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18273
 
      else
18274
 
        ld_shlibs_GCJ=no
18275
 
      fi
18276
 
      ;;
18277
 
    esac
18278
 
 
18279
 
    if test "$ld_shlibs_GCJ" = no; then
18280
 
      runpath_var=
18281
 
      hardcode_libdir_flag_spec_GCJ=
18282
 
      export_dynamic_flag_spec_GCJ=
18283
 
      whole_archive_flag_spec_GCJ=
18284
 
    fi
18285
 
  else
18286
 
    # PORTME fill in a description of your system's linker (not GNU ld)
18287
 
    case $host_os in
18288
 
    aix3*)
18289
 
      allow_undefined_flag_GCJ=unsupported
18290
 
      always_export_symbols_GCJ=yes
18291
 
      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'
18292
 
      # Note: this linker hardcodes the directories in LIBPATH if there
18293
 
      # are no directories specified by -L.
18294
 
      hardcode_minus_L_GCJ=yes
18295
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18296
 
        # Neither direct hardcoding nor static linking is supported with a
18297
 
        # broken collect2.
18298
 
        hardcode_direct_GCJ=unsupported
18299
 
      fi
18300
 
      ;;
18301
 
 
18302
 
    aix[4-9]*)
18303
 
      if test "$host_cpu" = ia64; then
18304
 
        # On IA64, the linker does run time linking by default, so we don't
18305
 
        # have to do anything special.
18306
 
        aix_use_runtimelinking=no
18307
 
        exp_sym_flag='-Bexport'
18308
 
        no_entry_flag=""
18309
 
      else
18310
 
        # If we're using GNU nm, then we don't want the "-C" option.
18311
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
18312
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18313
 
          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'
18314
 
        else
18315
 
          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'
18316
 
        fi
18317
 
        aix_use_runtimelinking=no
18318
 
 
18319
 
        # Test if we are trying to use run time linking or normal
18320
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18321
 
        # need to do runtime linking.
18322
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18323
 
          for ld_flag in $LDFLAGS; do
18324
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18325
 
            aix_use_runtimelinking=yes
18326
 
            break
18327
 
          fi
18328
 
          done
18329
 
          ;;
18330
 
        esac
18331
 
 
18332
 
        exp_sym_flag='-bexport'
18333
 
        no_entry_flag='-bnoentry'
18334
 
      fi
18335
 
 
18336
 
      # When large executables or shared objects are built, AIX ld can
18337
 
      # have problems creating the table of contents.  If linking a library
18338
 
      # or program results in "error TOC overflow" add -mminimal-toc to
18339
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18340
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18341
 
 
18342
 
      archive_cmds_GCJ=''
18343
 
      hardcode_direct_GCJ=yes
18344
 
      hardcode_libdir_separator_GCJ=':'
18345
 
      link_all_deplibs_GCJ=yes
18346
 
 
18347
 
      if test "$GCC" = yes; then
18348
 
        case $host_os in aix4.[012]|aix4.[012].*)
18349
 
        # We only want to do this on AIX 4.2 and lower, the check
18350
 
        # below for broken collect2 doesn't work under 4.3+
18351
 
          collect2name=`${CC} -print-prog-name=collect2`
18352
 
          if test -f "$collect2name" && \
18353
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
18354
 
          then
18355
 
          # We have reworked collect2
18356
 
          :
18357
 
          else
18358
 
          # We have old collect2
18359
 
          hardcode_direct_GCJ=unsupported
18360
 
          # It fails to find uninstalled libraries when the uninstalled
18361
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
18362
 
          # to unsupported forces relinking
18363
 
          hardcode_minus_L_GCJ=yes
18364
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18365
 
          hardcode_libdir_separator_GCJ=
18366
 
          fi
18367
 
          ;;
18368
 
        esac
18369
 
        shared_flag='-shared'
18370
 
        if test "$aix_use_runtimelinking" = yes; then
18371
 
          shared_flag="$shared_flag "'${wl}-G'
18372
 
        fi
18373
 
      else
18374
 
        # not using gcc
18375
 
        if test "$host_cpu" = ia64; then
18376
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18377
 
        # chokes on -Wl,-G. The following line is correct:
18378
 
          shared_flag='-G'
18379
 
        else
18380
 
          if test "$aix_use_runtimelinking" = yes; then
18381
 
            shared_flag='${wl}-G'
18382
 
          else
18383
 
            shared_flag='${wl}-bM:SRE'
18384
 
          fi
18385
 
        fi
18386
 
      fi
18387
 
 
18388
 
      # It seems that -bexpall does not export symbols beginning with
18389
 
      # underscore (_), so it is better to generate a list of symbols to export.
18390
 
      always_export_symbols_GCJ=yes
18391
 
      if test "$aix_use_runtimelinking" = yes; then
18392
 
        # Warning - without using the other runtime loading flags (-brtl),
18393
 
        # -berok will link without error, but may produce a broken library.
18394
 
        allow_undefined_flag_GCJ='-berok'
18395
 
       # Determine the default libpath from the value encoded in an empty executable.
18396
 
       cat >conftest.$ac_ext <<_ACEOF
18397
 
/* confdefs.h.  */
18398
 
_ACEOF
18399
 
cat confdefs.h >>conftest.$ac_ext
18400
 
cat >>conftest.$ac_ext <<_ACEOF
18401
 
/* end confdefs.h.  */
18402
 
 
18403
 
int
18404
 
main ()
18405
 
{
18406
 
 
18407
 
  ;
18408
 
  return 0;
18409
 
}
18410
 
_ACEOF
18411
 
rm -f conftest.$ac_objext conftest$ac_exeext
18412
 
if { (ac_try="$ac_link"
18413
 
case "(($ac_try" in
18414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415
 
  *) ac_try_echo=$ac_try;;
18416
 
esac
18417
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418
 
  (eval "$ac_link") 2>conftest.er1
18419
 
  ac_status=$?
18420
 
  grep -v '^ *+' conftest.er1 >conftest.err
18421
 
  rm -f conftest.er1
18422
 
  cat conftest.err >&5
18423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424
 
  (exit $ac_status); } && {
18425
 
         test -z "$ac_c_werror_flag" ||
18426
 
         test ! -s conftest.err
18427
 
       } && test -s conftest$ac_exeext &&
18428
 
       $as_test_x conftest$ac_exeext; then
18429
 
 
18430
 
lt_aix_libpath_sed='
18431
 
    /Import File Strings/,/^$/ {
18432
 
        /^0/ {
18433
 
            s/^0  *\(.*\)$/\1/
18434
 
            p
18435
 
        }
18436
 
    }'
18437
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18438
 
# Check for a 64-bit object if we didn't find anything.
18439
 
if test -z "$aix_libpath"; then
18440
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18441
 
fi
18442
 
else
18443
 
  echo "$as_me: failed program was:" >&5
18444
 
sed 's/^/| /' conftest.$ac_ext >&5
18445
 
 
18446
 
 
18447
 
fi
18448
 
 
18449
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450
 
      conftest$ac_exeext conftest.$ac_ext
18451
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18452
 
 
18453
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18454
 
        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"
18455
 
       else
18456
 
        if test "$host_cpu" = ia64; then
18457
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18458
 
          allow_undefined_flag_GCJ="-z nodefs"
18459
 
          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"
18460
 
        else
18461
 
         # Determine the default libpath from the value encoded in an empty executable.
18462
 
         cat >conftest.$ac_ext <<_ACEOF
18463
 
/* confdefs.h.  */
18464
 
_ACEOF
18465
 
cat confdefs.h >>conftest.$ac_ext
18466
 
cat >>conftest.$ac_ext <<_ACEOF
18467
 
/* end confdefs.h.  */
18468
 
 
18469
 
int
18470
 
main ()
18471
 
{
18472
 
 
18473
 
  ;
18474
 
  return 0;
18475
 
}
18476
 
_ACEOF
18477
 
rm -f conftest.$ac_objext conftest$ac_exeext
18478
 
if { (ac_try="$ac_link"
18479
 
case "(($ac_try" in
18480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481
 
  *) ac_try_echo=$ac_try;;
18482
 
esac
18483
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484
 
  (eval "$ac_link") 2>conftest.er1
18485
 
  ac_status=$?
18486
 
  grep -v '^ *+' conftest.er1 >conftest.err
18487
 
  rm -f conftest.er1
18488
 
  cat conftest.err >&5
18489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490
 
  (exit $ac_status); } && {
18491
 
         test -z "$ac_c_werror_flag" ||
18492
 
         test ! -s conftest.err
18493
 
       } && test -s conftest$ac_exeext &&
18494
 
       $as_test_x conftest$ac_exeext; then
18495
 
 
18496
 
lt_aix_libpath_sed='
18497
 
    /Import File Strings/,/^$/ {
18498
 
        /^0/ {
18499
 
            s/^0  *\(.*\)$/\1/
18500
 
            p
18501
 
        }
18502
 
    }'
18503
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18504
 
# Check for a 64-bit object if we didn't find anything.
18505
 
if test -z "$aix_libpath"; then
18506
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18507
 
fi
18508
 
else
18509
 
  echo "$as_me: failed program was:" >&5
18510
 
sed 's/^/| /' conftest.$ac_ext >&5
18511
 
 
18512
 
 
18513
 
fi
18514
 
 
18515
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18516
 
      conftest$ac_exeext conftest.$ac_ext
18517
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18518
 
 
18519
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18520
 
          # Warning - without using the other run time loading flags,
18521
 
          # -berok will link without error, but may produce a broken library.
18522
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18523
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
18524
 
          # Exported symbols can be pulled into shared objects from archives
18525
 
          whole_archive_flag_spec_GCJ='$convenience'
18526
 
          archive_cmds_need_lc_GCJ=yes
18527
 
          # This is similar to how AIX traditionally builds its shared libraries.
18528
 
          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'
18529
 
        fi
18530
 
      fi
18531
 
      ;;
18532
 
 
18533
 
    amigaos*)
18534
 
      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)'
18535
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18536
 
      hardcode_minus_L_GCJ=yes
18537
 
      # see comment about different semantics on the GNU ld section
18538
 
      ld_shlibs_GCJ=no
18539
 
      ;;
18540
 
 
18541
 
    bsdi[45]*)
18542
 
      export_dynamic_flag_spec_GCJ=-rdynamic
18543
 
      ;;
18544
 
 
18545
 
    cygwin* | mingw* | pw32*)
18546
 
      # When not using gcc, we currently assume that we are using
18547
 
      # Microsoft Visual C++.
18548
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18549
 
      # no search path for DLLs.
18550
 
      hardcode_libdir_flag_spec_GCJ=' '
18551
 
      allow_undefined_flag_GCJ=unsupported
18552
 
      # Tell ltmain to make .lib files, not .a files.
18553
 
      libext=lib
18554
 
      # Tell ltmain to make .dll files, not .so files.
18555
 
      shrext_cmds=".dll"
18556
 
      # FIXME: Setting linknames here is a bad hack.
18557
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18558
 
      # The linker will automatically build a .lib file if we build a DLL.
18559
 
      old_archive_From_new_cmds_GCJ='true'
18560
 
      # FIXME: Should let the user specify the lib program.
18561
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18562
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18563
 
      enable_shared_with_static_runtimes_GCJ=yes
18564
 
      ;;
18565
 
 
18566
 
    darwin* | rhapsody*)
18567
 
      case $host_os in
18568
 
        rhapsody* | darwin1.[012])
18569
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18570
 
         ;;
18571
 
       *) # Darwin 1.3 on
18572
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18573
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18574
 
         else
18575
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18576
 
             10.[012])
18577
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18578
 
               ;;
18579
 
             10.*)
18580
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18581
 
               ;;
18582
 
           esac
18583
 
         fi
18584
 
         ;;
18585
 
      esac
18586
 
      archive_cmds_need_lc_GCJ=no
18587
 
      hardcode_direct_GCJ=no
18588
 
      hardcode_automatic_GCJ=yes
18589
 
      hardcode_shlibpath_var_GCJ=unsupported
18590
 
      whole_archive_flag_spec_GCJ=''
18591
 
      link_all_deplibs_GCJ=yes
18592
 
    if test "$GCC" = yes ; then
18593
 
        output_verbose_link_cmd='echo'
18594
 
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18595
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18596
 
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18597
 
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18598
 
    else
18599
 
      case $cc_basename in
18600
 
        xlc*)
18601
 
         output_verbose_link_cmd='echo'
18602
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18603
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18604
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18605
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18606
 
          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}'
18607
 
          ;;
18608
 
       *)
18609
 
         ld_shlibs_GCJ=no
18610
 
          ;;
18611
 
      esac
18612
 
    fi
18613
 
      ;;
18614
 
 
18615
 
    dgux*)
18616
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18617
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18618
 
      hardcode_shlibpath_var_GCJ=no
18619
 
      ;;
18620
 
 
18621
 
    freebsd1*)
18622
 
      ld_shlibs_GCJ=no
18623
 
      ;;
18624
 
 
18625
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18626
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18627
 
    # does not break anything, and helps significantly (at the cost of a little
18628
 
    # extra space).
18629
 
    freebsd2.2*)
18630
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18631
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18632
 
      hardcode_direct_GCJ=yes
18633
 
      hardcode_shlibpath_var_GCJ=no
18634
 
      ;;
18635
 
 
18636
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18637
 
    freebsd2*)
18638
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18639
 
      hardcode_direct_GCJ=yes
18640
 
      hardcode_minus_L_GCJ=yes
18641
 
      hardcode_shlibpath_var_GCJ=no
18642
 
      ;;
18643
 
 
18644
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18645
 
    freebsd* | dragonfly*)
18646
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18647
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18648
 
      hardcode_direct_GCJ=yes
18649
 
      hardcode_shlibpath_var_GCJ=no
18650
 
      ;;
18651
 
 
18652
 
    hpux9*)
18653
 
      if test "$GCC" = yes; then
18654
 
        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'
18655
 
      else
18656
 
        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'
18657
 
      fi
18658
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18659
 
      hardcode_libdir_separator_GCJ=:
18660
 
      hardcode_direct_GCJ=yes
18661
 
 
18662
 
      # hardcode_minus_L: Not really in the search PATH,
18663
 
      # but as the default location of the library.
18664
 
      hardcode_minus_L_GCJ=yes
18665
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18666
 
      ;;
18667
 
 
18668
 
    hpux10*)
18669
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18670
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18671
 
      else
18672
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18673
 
      fi
18674
 
      if test "$with_gnu_ld" = no; then
18675
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18676
 
        hardcode_libdir_separator_GCJ=:
18677
 
 
18678
 
        hardcode_direct_GCJ=yes
18679
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18680
 
 
18681
 
        # hardcode_minus_L: Not really in the search PATH,
18682
 
        # but as the default location of the library.
18683
 
        hardcode_minus_L_GCJ=yes
18684
 
      fi
18685
 
      ;;
18686
 
 
18687
 
    hpux11*)
18688
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18689
 
        case $host_cpu in
18690
 
        hppa*64*)
18691
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18692
 
          ;;
18693
 
        ia64*)
18694
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18695
 
          ;;
18696
 
        *)
18697
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18698
 
          ;;
18699
 
        esac
18700
 
      else
18701
 
        case $host_cpu in
18702
 
        hppa*64*)
18703
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18704
 
          ;;
18705
 
        ia64*)
18706
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18707
 
          ;;
18708
 
        *)
18709
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18710
 
          ;;
18711
 
        esac
18712
 
      fi
18713
 
      if test "$with_gnu_ld" = no; then
18714
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18715
 
        hardcode_libdir_separator_GCJ=:
18716
 
 
18717
 
        case $host_cpu in
18718
 
        hppa*64*|ia64*)
18719
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18720
 
          hardcode_direct_GCJ=no
18721
 
          hardcode_shlibpath_var_GCJ=no
18722
 
          ;;
18723
 
        *)
18724
 
          hardcode_direct_GCJ=yes
18725
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18726
 
 
18727
 
          # hardcode_minus_L: Not really in the search PATH,
18728
 
          # but as the default location of the library.
18729
 
          hardcode_minus_L_GCJ=yes
18730
 
          ;;
18731
 
        esac
18732
 
      fi
18733
 
      ;;
18734
 
 
18735
 
    irix5* | irix6* | nonstopux*)
18736
 
      if test "$GCC" = yes; then
18737
 
        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'
18738
 
      else
18739
 
        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'
18740
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18741
 
      fi
18742
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18743
 
      hardcode_libdir_separator_GCJ=:
18744
 
      link_all_deplibs_GCJ=yes
18745
 
      ;;
18746
 
 
18747
 
    netbsd* | netbsdelf*-gnu)
18748
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18749
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18750
 
      else
18751
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18752
 
      fi
18753
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18754
 
      hardcode_direct_GCJ=yes
18755
 
      hardcode_shlibpath_var_GCJ=no
18756
 
      ;;
18757
 
 
18758
 
    newsos6)
18759
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18760
 
      hardcode_direct_GCJ=yes
18761
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18762
 
      hardcode_libdir_separator_GCJ=:
18763
 
      hardcode_shlibpath_var_GCJ=no
18764
 
      ;;
18765
 
 
18766
 
    openbsd*)
18767
 
      if test -f /usr/libexec/ld.so; then
18768
 
        hardcode_direct_GCJ=yes
18769
 
        hardcode_shlibpath_var_GCJ=no
18770
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18771
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18773
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18774
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18775
 
        else
18776
 
          case $host_os in
18777
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18778
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18779
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18780
 
             ;;
18781
 
           *)
18782
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18783
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18784
 
             ;;
18785
 
          esac
18786
 
        fi
18787
 
      else
18788
 
        ld_shlibs_GCJ=no
18789
 
      fi
18790
 
      ;;
18791
 
 
18792
 
    os2*)
18793
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18794
 
      hardcode_minus_L_GCJ=yes
18795
 
      allow_undefined_flag_GCJ=unsupported
18796
 
      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'
18797
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18798
 
      ;;
18799
 
 
18800
 
    osf3*)
18801
 
      if test "$GCC" = yes; then
18802
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18803
 
        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'
18804
 
      else
18805
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18806
 
        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'
18807
 
      fi
18808
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18809
 
      hardcode_libdir_separator_GCJ=:
18810
 
      ;;
18811
 
 
18812
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18813
 
      if test "$GCC" = yes; then
18814
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18815
 
        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'
18816
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18817
 
      else
18818
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18819
 
        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'
18820
 
        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~
18821
 
        $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'
18822
 
 
18823
 
        # Both c and cxx compiler support -rpath directly
18824
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18825
 
      fi
18826
 
      hardcode_libdir_separator_GCJ=:
18827
 
      ;;
18828
 
 
18829
 
    solaris*)
18830
 
      no_undefined_flag_GCJ=' -z text'
18831
 
      if test "$GCC" = yes; then
18832
 
        wlarc='${wl}'
18833
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18834
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18835
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18836
 
      else
18837
 
        wlarc=''
18838
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18839
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18840
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18841
 
      fi
18842
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18843
 
      hardcode_shlibpath_var_GCJ=no
18844
 
      case $host_os in
18845
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18846
 
      *)
18847
 
        # The compiler driver will combine and reorder linker options,
18848
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18849
 
        # but is careful enough not to reorder.
18850
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18851
 
        if test "$GCC" = yes; then
18852
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18853
 
        else
18854
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18855
 
        fi
18856
 
        ;;
18857
 
      esac
18858
 
      link_all_deplibs_GCJ=yes
18859
 
      ;;
18860
 
 
18861
 
    sunos4*)
18862
 
      if test "x$host_vendor" = xsequent; then
18863
 
        # Use $CC to link under sequent, because it throws in some extra .o
18864
 
        # files that make .init and .fini sections work.
18865
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18866
 
      else
18867
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18868
 
      fi
18869
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18870
 
      hardcode_direct_GCJ=yes
18871
 
      hardcode_minus_L_GCJ=yes
18872
 
      hardcode_shlibpath_var_GCJ=no
18873
 
      ;;
18874
 
 
18875
 
    sysv4)
18876
 
      case $host_vendor in
18877
 
        sni)
18878
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879
 
          hardcode_direct_GCJ=yes # is this really true???
18880
 
        ;;
18881
 
        siemens)
18882
 
          ## LD is ld it makes a PLAMLIB
18883
 
          ## CC just makes a GrossModule.
18884
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18885
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18886
 
          hardcode_direct_GCJ=no
18887
 
        ;;
18888
 
        motorola)
18889
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18890
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18891
 
        ;;
18892
 
      esac
18893
 
      runpath_var='LD_RUN_PATH'
18894
 
      hardcode_shlibpath_var_GCJ=no
18895
 
      ;;
18896
 
 
18897
 
    sysv4.3*)
18898
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18899
 
      hardcode_shlibpath_var_GCJ=no
18900
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18901
 
      ;;
18902
 
 
18903
 
    sysv4*MP*)
18904
 
      if test -d /usr/nec; then
18905
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18906
 
        hardcode_shlibpath_var_GCJ=no
18907
 
        runpath_var=LD_RUN_PATH
18908
 
        hardcode_runpath_var=yes
18909
 
        ld_shlibs_GCJ=yes
18910
 
      fi
18911
 
      ;;
18912
 
 
18913
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18914
 
      no_undefined_flag_GCJ='${wl}-z,text'
18915
 
      archive_cmds_need_lc_GCJ=no
18916
 
      hardcode_shlibpath_var_GCJ=no
18917
 
      runpath_var='LD_RUN_PATH'
18918
 
 
18919
 
      if test "$GCC" = yes; then
18920
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18921
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18922
 
      else
18923
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18925
 
      fi
18926
 
      ;;
18927
 
 
18928
 
    sysv5* | sco3.2v5* | sco5v6*)
18929
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18930
 
      # link with -lc, and that would cause any symbols used from libc to
18931
 
      # always be unresolved, which means just about no library would
18932
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18933
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18934
 
      # as -z defs.
18935
 
      no_undefined_flag_GCJ='${wl}-z,text'
18936
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18937
 
      archive_cmds_need_lc_GCJ=no
18938
 
      hardcode_shlibpath_var_GCJ=no
18939
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18940
 
      hardcode_libdir_separator_GCJ=':'
18941
 
      link_all_deplibs_GCJ=yes
18942
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18943
 
      runpath_var='LD_RUN_PATH'
18944
 
 
18945
 
      if test "$GCC" = yes; then
18946
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18947
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18948
 
      else
18949
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18950
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18951
 
      fi
18952
 
      ;;
18953
 
 
18954
 
    uts4*)
18955
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18956
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18957
 
      hardcode_shlibpath_var_GCJ=no
18958
 
      ;;
18959
 
 
18960
 
    *)
18961
 
      ld_shlibs_GCJ=no
18962
 
      ;;
18963
 
    esac
18964
 
  fi
18965
 
 
18966
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18967
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18968
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18969
 
 
18970
 
#
18971
 
# Do we need to explicitly link libc?
18972
 
#
18973
 
case "x$archive_cmds_need_lc_GCJ" in
18974
 
x|xyes)
18975
 
  # Assume -lc should be added
18976
 
  archive_cmds_need_lc_GCJ=yes
18977
 
 
18978
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18979
 
    case $archive_cmds_GCJ in
18980
 
    *'~'*)
18981
 
      # FIXME: we may have to deal with multi-command sequences.
18982
 
      ;;
18983
 
    '$CC '*)
18984
 
      # Test whether the compiler implicitly links with -lc since on some
18985
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18986
 
      # to ld, don't add -lc before -lgcc.
18987
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18988
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18989
 
      $rm conftest*
18990
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18991
 
 
18992
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993
 
  (eval $ac_compile) 2>&5
18994
 
  ac_status=$?
18995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996
 
  (exit $ac_status); } 2>conftest.err; then
18997
 
        soname=conftest
18998
 
        lib=conftest
18999
 
        libobjs=conftest.$ac_objext
19000
 
        deplibs=
19001
 
        wl=$lt_prog_compiler_wl_GCJ
19002
 
        pic_flag=$lt_prog_compiler_pic_GCJ
19003
 
        compiler_flags=-v
19004
 
        linker_flags=-v
19005
 
        verstring=
19006
 
        output_objdir=.
19007
 
        libname=conftest
19008
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19009
 
        allow_undefined_flag_GCJ=
19010
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19011
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19012
 
  ac_status=$?
19013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014
 
  (exit $ac_status); }
19015
 
        then
19016
 
          archive_cmds_need_lc_GCJ=no
19017
 
        else
19018
 
          archive_cmds_need_lc_GCJ=yes
19019
 
        fi
19020
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19021
 
      else
19022
 
        cat conftest.err 1>&5
19023
 
      fi
19024
 
      $rm conftest*
19025
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19026
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19027
 
      ;;
19028
 
    esac
19029
 
  fi
19030
 
  ;;
19031
 
esac
19032
 
 
19033
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19034
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19035
 
library_names_spec=
19036
 
libname_spec='lib$name'
19037
 
soname_spec=
19038
 
shrext_cmds=".so"
19039
 
postinstall_cmds=
19040
 
postuninstall_cmds=
19041
 
finish_cmds=
19042
 
finish_eval=
19043
 
shlibpath_var=
19044
 
shlibpath_overrides_runpath=unknown
19045
 
version_type=none
19046
 
dynamic_linker="$host_os ld.so"
19047
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19048
 
 
19049
 
need_lib_prefix=unknown
19050
 
hardcode_into_libs=no
19051
 
 
19052
 
# when you set need_version to no, make sure it does not cause -set_version
19053
 
# flags to be left without arguments
19054
 
need_version=unknown
19055
 
 
19056
 
case $host_os in
19057
 
aix3*)
19058
 
  version_type=linux
19059
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19060
 
  shlibpath_var=LIBPATH
19061
 
 
19062
 
  # AIX 3 has no versioning support, so we append a major version to the name.
19063
 
  soname_spec='${libname}${release}${shared_ext}$major'
19064
 
  ;;
19065
 
 
19066
 
aix[4-9]*)
19067
 
  version_type=linux
19068
 
  need_lib_prefix=no
19069
 
  need_version=no
19070
 
  hardcode_into_libs=yes
19071
 
  if test "$host_cpu" = ia64; then
19072
 
    # AIX 5 supports IA64
19073
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19074
 
    shlibpath_var=LD_LIBRARY_PATH
19075
 
  else
19076
 
    # With GCC up to 2.95.x, collect2 would create an import file
19077
 
    # for dependence libraries.  The import file would start with
19078
 
    # the line `#! .'.  This would cause the generated library to
19079
 
    # depend on `.', always an invalid library.  This was fixed in
19080
 
    # development snapshots of GCC prior to 3.0.
19081
 
    case $host_os in
19082
 
      aix4 | aix4.[01] | aix4.[01].*)
19083
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19084
 
           echo ' yes '
19085
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19086
 
        :
19087
 
      else
19088
 
        can_build_shared=no
19089
 
      fi
19090
 
      ;;
19091
 
    esac
19092
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19093
 
    # soname into executable. Probably we can add versioning support to
19094
 
    # collect2, so additional links can be useful in future.
19095
 
    if test "$aix_use_runtimelinking" = yes; then
19096
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19097
 
      # instead of lib<name>.a to let people know that these are not
19098
 
      # typical AIX shared libraries.
19099
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100
 
    else
19101
 
      # We preserve .a as extension for shared libraries through AIX4.2
19102
 
      # and later when we are not doing run time linking.
19103
 
      library_names_spec='${libname}${release}.a $libname.a'
19104
 
      soname_spec='${libname}${release}${shared_ext}$major'
19105
 
    fi
19106
 
    shlibpath_var=LIBPATH
19107
 
  fi
19108
 
  ;;
19109
 
 
19110
 
amigaos*)
19111
 
  library_names_spec='$libname.ixlibrary $libname.a'
19112
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19113
 
  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'
19114
 
  ;;
19115
 
 
19116
 
beos*)
19117
 
  library_names_spec='${libname}${shared_ext}'
19118
 
  dynamic_linker="$host_os ld.so"
19119
 
  shlibpath_var=LIBRARY_PATH
19120
 
  ;;
19121
 
 
19122
 
bsdi[45]*)
19123
 
  version_type=linux
19124
 
  need_version=no
19125
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126
 
  soname_spec='${libname}${release}${shared_ext}$major'
19127
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19128
 
  shlibpath_var=LD_LIBRARY_PATH
19129
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19130
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19131
 
  # the default ld.so.conf also contains /usr/contrib/lib and
19132
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19133
 
  # libtool to hard-code these into programs
19134
 
  ;;
19135
 
 
19136
 
cygwin* | mingw* | pw32*)
19137
 
  version_type=windows
19138
 
  shrext_cmds=".dll"
19139
 
  need_version=no
19140
 
  need_lib_prefix=no
19141
 
 
19142
 
  case $GCC,$host_os in
19143
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
19144
 
    library_names_spec='$libname.dll.a'
19145
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19146
 
    postinstall_cmds='base_file=`basename \${file}`~
19147
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19148
 
      dldir=$destdir/`dirname \$dlpath`~
19149
 
      test -d \$dldir || mkdir -p \$dldir~
19150
 
      $install_prog $dir/$dlname \$dldir/$dlname~
19151
 
      chmod a+x \$dldir/$dlname'
19152
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19153
 
      dlpath=$dir/\$dldll~
19154
 
       $rm \$dlpath'
19155
 
    shlibpath_overrides_runpath=yes
19156
 
 
19157
 
    case $host_os in
19158
 
    cygwin*)
19159
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19160
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19161
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19162
 
      ;;
19163
 
    mingw*)
19164
 
      # MinGW DLLs use traditional 'lib' prefix
19165
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19166
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19167
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19168
 
        # It is most probably a Windows format PATH printed by
19169
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19170
 
        # path with ; separators, and with drive letters. We can handle the
19171
 
        # drive letters (cygwin fileutils understands them), so leave them,
19172
 
        # especially as we might pass files found there to a mingw objdump,
19173
 
        # which wouldn't understand a cygwinified path. Ahh.
19174
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19175
 
      else
19176
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19177
 
      fi
19178
 
      ;;
19179
 
    pw32*)
19180
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19181
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19182
 
      ;;
19183
 
    esac
19184
 
    ;;
19185
 
 
19186
 
  *)
19187
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19188
 
    ;;
19189
 
  esac
19190
 
  dynamic_linker='Win32 ld.exe'
19191
 
  # FIXME: first we should search . and the directory the executable is in
19192
 
  shlibpath_var=PATH
19193
 
  ;;
19194
 
 
19195
 
darwin* | rhapsody*)
19196
 
  dynamic_linker="$host_os dyld"
19197
 
  version_type=darwin
19198
 
  need_lib_prefix=no
19199
 
  need_version=no
19200
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19201
 
  soname_spec='${libname}${release}${major}$shared_ext'
19202
 
  shlibpath_overrides_runpath=yes
19203
 
  shlibpath_var=DYLD_LIBRARY_PATH
19204
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19205
 
 
19206
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19207
 
  ;;
19208
 
 
19209
 
dgux*)
19210
 
  version_type=linux
19211
 
  need_lib_prefix=no
19212
 
  need_version=no
19213
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19214
 
  soname_spec='${libname}${release}${shared_ext}$major'
19215
 
  shlibpath_var=LD_LIBRARY_PATH
19216
 
  ;;
19217
 
 
19218
 
freebsd1*)
19219
 
  dynamic_linker=no
19220
 
  ;;
19221
 
 
19222
 
freebsd* | dragonfly*)
19223
 
  # DragonFly does not have aout.  When/if they implement a new
19224
 
  # versioning mechanism, adjust this.
19225
 
  if test -x /usr/bin/objformat; then
19226
 
    objformat=`/usr/bin/objformat`
19227
 
  else
19228
 
    case $host_os in
19229
 
    freebsd[123]*) objformat=aout ;;
19230
 
    *) objformat=elf ;;
19231
 
    esac
19232
 
  fi
19233
 
  version_type=freebsd-$objformat
19234
 
  case $version_type in
19235
 
    freebsd-elf*)
19236
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19237
 
      need_version=no
19238
 
      need_lib_prefix=no
19239
 
      ;;
19240
 
    freebsd-*)
19241
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19242
 
      need_version=yes
19243
 
      ;;
19244
 
  esac
19245
 
  shlibpath_var=LD_LIBRARY_PATH
19246
 
  case $host_os in
19247
 
  freebsd2*)
19248
 
    shlibpath_overrides_runpath=yes
19249
 
    ;;
19250
 
  freebsd3.[01]* | freebsdelf3.[01]*)
19251
 
    shlibpath_overrides_runpath=yes
19252
 
    hardcode_into_libs=yes
19253
 
    ;;
19254
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19255
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19256
 
    shlibpath_overrides_runpath=no
19257
 
    hardcode_into_libs=yes
19258
 
    ;;
19259
 
  *) # from 4.6 on, and DragonFly
19260
 
    shlibpath_overrides_runpath=yes
19261
 
    hardcode_into_libs=yes
19262
 
    ;;
19263
 
  esac
19264
 
  ;;
19265
 
 
19266
 
gnu*)
19267
 
  version_type=linux
19268
 
  need_lib_prefix=no
19269
 
  need_version=no
19270
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19271
 
  soname_spec='${libname}${release}${shared_ext}$major'
19272
 
  shlibpath_var=LD_LIBRARY_PATH
19273
 
  hardcode_into_libs=yes
19274
 
  ;;
19275
 
 
19276
 
hpux9* | hpux10* | hpux11*)
19277
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
19278
 
  # link against other versions.
19279
 
  version_type=sunos
19280
 
  need_lib_prefix=no
19281
 
  need_version=no
19282
 
  case $host_cpu in
19283
 
  ia64*)
19284
 
    shrext_cmds='.so'
19285
 
    hardcode_into_libs=yes
19286
 
    dynamic_linker="$host_os dld.so"
19287
 
    shlibpath_var=LD_LIBRARY_PATH
19288
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19289
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290
 
    soname_spec='${libname}${release}${shared_ext}$major'
19291
 
    if test "X$HPUX_IA64_MODE" = X32; then
19292
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19293
 
    else
19294
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19295
 
    fi
19296
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19297
 
    ;;
19298
 
   hppa*64*)
19299
 
     shrext_cmds='.sl'
19300
 
     hardcode_into_libs=yes
19301
 
     dynamic_linker="$host_os dld.sl"
19302
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19303
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19304
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305
 
     soname_spec='${libname}${release}${shared_ext}$major'
19306
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19307
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19308
 
     ;;
19309
 
   *)
19310
 
    shrext_cmds='.sl'
19311
 
    dynamic_linker="$host_os dld.sl"
19312
 
    shlibpath_var=SHLIB_PATH
19313
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19314
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315
 
    soname_spec='${libname}${release}${shared_ext}$major'
19316
 
    ;;
19317
 
  esac
19318
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19319
 
  postinstall_cmds='chmod 555 $lib'
19320
 
  ;;
19321
 
 
19322
 
interix[3-9]*)
19323
 
  version_type=linux
19324
 
  need_lib_prefix=no
19325
 
  need_version=no
19326
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19327
 
  soname_spec='${libname}${release}${shared_ext}$major'
19328
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19329
 
  shlibpath_var=LD_LIBRARY_PATH
19330
 
  shlibpath_overrides_runpath=no
19331
 
  hardcode_into_libs=yes
19332
 
  ;;
19333
 
 
19334
 
irix5* | irix6* | nonstopux*)
19335
 
  case $host_os in
19336
 
    nonstopux*) version_type=nonstopux ;;
19337
 
    *)
19338
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
19339
 
                version_type=linux
19340
 
        else
19341
 
                version_type=irix
19342
 
        fi ;;
19343
 
  esac
19344
 
  need_lib_prefix=no
19345
 
  need_version=no
19346
 
  soname_spec='${libname}${release}${shared_ext}$major'
19347
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19348
 
  case $host_os in
19349
 
  irix5* | nonstopux*)
19350
 
    libsuff= shlibsuff=
19351
 
    ;;
19352
 
  *)
19353
 
    case $LD in # libtool.m4 will add one of these switches to LD
19354
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19355
 
      libsuff= shlibsuff= libmagic=32-bit;;
19356
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19357
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19358
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19359
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19360
 
    *) libsuff= shlibsuff= libmagic=never-match;;
19361
 
    esac
19362
 
    ;;
19363
 
  esac
19364
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19365
 
  shlibpath_overrides_runpath=no
19366
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19367
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19368
 
  hardcode_into_libs=yes
19369
 
  ;;
19370
 
 
19371
 
# No shared lib support for Linux oldld, aout, or coff.
19372
 
linux*oldld* | linux*aout* | linux*coff*)
19373
 
  dynamic_linker=no
19374
 
  ;;
19375
 
 
19376
 
# This must be Linux ELF.
19377
 
linux* | k*bsd*-gnu)
19378
 
  version_type=linux
19379
 
  need_lib_prefix=no
19380
 
  need_version=no
19381
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382
 
  soname_spec='${libname}${release}${shared_ext}$major'
19383
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19384
 
  shlibpath_var=LD_LIBRARY_PATH
19385
 
  shlibpath_overrides_runpath=no
19386
 
  # This implies no fast_install, which is unacceptable.
19387
 
  # Some rework will be needed to allow for fast_install
19388
 
  # before this can be enabled.
19389
 
  hardcode_into_libs=yes
19390
 
 
19391
 
  # Append ld.so.conf contents to the search path
19392
 
  if test -f /etc/ld.so.conf; then
19393
 
    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' ' '`
19394
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19395
 
  fi
19396
 
 
19397
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19398
 
  # powerpc, because MkLinux only supported shared libraries with the
19399
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
19400
 
  # most powerpc-linux boxes support dynamic linking these days and
19401
 
  # people can always --disable-shared, the test was removed, and we
19402
 
  # assume the GNU/Linux dynamic linker is in use.
19403
 
  dynamic_linker='GNU/Linux ld.so'
19404
 
  ;;
19405
 
 
19406
 
netbsdelf*-gnu)
19407
 
  version_type=linux
19408
 
  need_lib_prefix=no
19409
 
  need_version=no
19410
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19411
 
  soname_spec='${libname}${release}${shared_ext}$major'
19412
 
  shlibpath_var=LD_LIBRARY_PATH
19413
 
  shlibpath_overrides_runpath=no
19414
 
  hardcode_into_libs=yes
19415
 
  dynamic_linker='NetBSD ld.elf_so'
19416
 
  ;;
19417
 
 
19418
 
netbsd*)
19419
 
  version_type=sunos
19420
 
  need_lib_prefix=no
19421
 
  need_version=no
19422
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19423
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19424
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19425
 
    dynamic_linker='NetBSD (a.out) ld.so'
19426
 
  else
19427
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19428
 
    soname_spec='${libname}${release}${shared_ext}$major'
19429
 
    dynamic_linker='NetBSD ld.elf_so'
19430
 
  fi
19431
 
  shlibpath_var=LD_LIBRARY_PATH
19432
 
  shlibpath_overrides_runpath=yes
19433
 
  hardcode_into_libs=yes
19434
 
  ;;
19435
 
 
19436
 
newsos6)
19437
 
  version_type=linux
19438
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19439
 
  shlibpath_var=LD_LIBRARY_PATH
19440
 
  shlibpath_overrides_runpath=yes
19441
 
  ;;
19442
 
 
19443
 
nto-qnx*)
19444
 
  version_type=linux
19445
 
  need_lib_prefix=no
19446
 
  need_version=no
19447
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19448
 
  soname_spec='${libname}${release}${shared_ext}$major'
19449
 
  shlibpath_var=LD_LIBRARY_PATH
19450
 
  shlibpath_overrides_runpath=yes
19451
 
  ;;
19452
 
 
19453
 
openbsd*)
19454
 
  version_type=sunos
19455
 
  sys_lib_dlsearch_path_spec="/usr/lib"
19456
 
  need_lib_prefix=no
19457
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19458
 
  case $host_os in
19459
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19460
 
    *)                         need_version=no  ;;
19461
 
  esac
19462
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19463
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19464
 
  shlibpath_var=LD_LIBRARY_PATH
19465
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19466
 
    case $host_os in
19467
 
      openbsd2.[89] | openbsd2.[89].*)
19468
 
        shlibpath_overrides_runpath=no
19469
 
        ;;
19470
 
      *)
19471
 
        shlibpath_overrides_runpath=yes
19472
 
        ;;
19473
 
      esac
19474
 
  else
19475
 
    shlibpath_overrides_runpath=yes
19476
 
  fi
19477
 
  ;;
19478
 
 
19479
 
os2*)
19480
 
  libname_spec='$name'
19481
 
  shrext_cmds=".dll"
19482
 
  need_lib_prefix=no
19483
 
  library_names_spec='$libname${shared_ext} $libname.a'
19484
 
  dynamic_linker='OS/2 ld.exe'
19485
 
  shlibpath_var=LIBPATH
19486
 
  ;;
19487
 
 
19488
 
osf3* | osf4* | osf5*)
19489
 
  version_type=osf
19490
 
  need_lib_prefix=no
19491
 
  need_version=no
19492
 
  soname_spec='${libname}${release}${shared_ext}$major'
19493
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19494
 
  shlibpath_var=LD_LIBRARY_PATH
19495
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19496
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19497
 
  ;;
19498
 
 
19499
 
rdos*)
19500
 
  dynamic_linker=no
19501
 
  ;;
19502
 
 
19503
 
solaris*)
19504
 
  version_type=linux
19505
 
  need_lib_prefix=no
19506
 
  need_version=no
19507
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19508
 
  soname_spec='${libname}${release}${shared_ext}$major'
19509
 
  shlibpath_var=LD_LIBRARY_PATH
19510
 
  shlibpath_overrides_runpath=yes
19511
 
  hardcode_into_libs=yes
19512
 
  # ldd complains unless libraries are executable
19513
 
  postinstall_cmds='chmod +x $lib'
19514
 
  ;;
19515
 
 
19516
 
sunos4*)
19517
 
  version_type=sunos
19518
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19519
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19520
 
  shlibpath_var=LD_LIBRARY_PATH
19521
 
  shlibpath_overrides_runpath=yes
19522
 
  if test "$with_gnu_ld" = yes; then
19523
 
    need_lib_prefix=no
19524
 
  fi
19525
 
  need_version=yes
19526
 
  ;;
19527
 
 
19528
 
sysv4 | sysv4.3*)
19529
 
  version_type=linux
19530
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19531
 
  soname_spec='${libname}${release}${shared_ext}$major'
19532
 
  shlibpath_var=LD_LIBRARY_PATH
19533
 
  case $host_vendor in
19534
 
    sni)
19535
 
      shlibpath_overrides_runpath=no
19536
 
      need_lib_prefix=no
19537
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19538
 
      runpath_var=LD_RUN_PATH
19539
 
      ;;
19540
 
    siemens)
19541
 
      need_lib_prefix=no
19542
 
      ;;
19543
 
    motorola)
19544
 
      need_lib_prefix=no
19545
 
      need_version=no
19546
 
      shlibpath_overrides_runpath=no
19547
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19548
 
      ;;
19549
 
  esac
19550
 
  ;;
19551
 
 
19552
 
sysv4*MP*)
19553
 
  if test -d /usr/nec ;then
19554
 
    version_type=linux
19555
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19556
 
    soname_spec='$libname${shared_ext}.$major'
19557
 
    shlibpath_var=LD_LIBRARY_PATH
19558
 
  fi
19559
 
  ;;
19560
 
 
19561
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19562
 
  version_type=freebsd-elf
19563
 
  need_lib_prefix=no
19564
 
  need_version=no
19565
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19566
 
  soname_spec='${libname}${release}${shared_ext}$major'
19567
 
  shlibpath_var=LD_LIBRARY_PATH
19568
 
  hardcode_into_libs=yes
19569
 
  if test "$with_gnu_ld" = yes; then
19570
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19571
 
    shlibpath_overrides_runpath=no
19572
 
  else
19573
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19574
 
    shlibpath_overrides_runpath=yes
19575
 
    case $host_os in
19576
 
      sco3.2v5*)
19577
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19578
 
        ;;
19579
 
    esac
19580
 
  fi
19581
 
  sys_lib_dlsearch_path_spec='/usr/lib'
19582
 
  ;;
19583
 
 
19584
 
uts4*)
19585
 
  version_type=linux
19586
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19587
 
  soname_spec='${libname}${release}${shared_ext}$major'
19588
 
  shlibpath_var=LD_LIBRARY_PATH
19589
 
  ;;
19590
 
 
19591
 
*)
19592
 
  dynamic_linker=no
19593
 
  ;;
19594
 
esac
19595
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19596
 
echo "${ECHO_T}$dynamic_linker" >&6; }
19597
 
test "$dynamic_linker" = no && can_build_shared=no
19598
 
 
19599
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19601
 
else
19602
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19603
 
fi
19604
 
 
19605
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19606
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19607
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19608
 
else
19609
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19610
 
fi
19611
 
 
19612
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19613
 
 
19614
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19615
 
if test "$GCC" = yes; then
19616
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19617
 
fi
19618
 
 
19619
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19620
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19621
 
hardcode_action_GCJ=
19622
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19623
 
   test -n "$runpath_var_GCJ" || \
19624
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19625
 
 
19626
 
  # We can hardcode non-existant directories.
19627
 
  if test "$hardcode_direct_GCJ" != no &&
19628
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19629
 
     # have to relink, otherwise we might link with an installed library
19630
 
     # when we should be linking with a yet-to-be-installed one
19631
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19632
 
     test "$hardcode_minus_L_GCJ" != no; then
19633
 
    # Linking always hardcodes the temporary library directory.
19634
 
    hardcode_action_GCJ=relink
19635
 
  else
19636
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19637
 
    hardcode_action_GCJ=immediate
19638
 
  fi
19639
 
else
19640
 
  # We cannot hardcode anything, or else we can only hardcode existing
19641
 
  # directories.
19642
 
  hardcode_action_GCJ=unsupported
19643
 
fi
19644
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19645
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19646
 
 
19647
 
if test "$hardcode_action_GCJ" = relink; then
19648
 
  # Fast installation is not supported
19649
 
  enable_fast_install=no
19650
 
elif test "$shlibpath_overrides_runpath" = yes ||
19651
 
     test "$enable_shared" = no; then
19652
 
  # Fast installation is not necessary
19653
 
  enable_fast_install=needless
19654
 
fi
19655
 
 
19656
 
 
19657
 
# The else clause should only fire when bootstrapping the
19658
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19659
 
# with your package, and you will get complaints that there are
19660
 
# no rules to generate ltmain.sh.
19661
 
if test -f "$ltmain"; then
19662
 
  # See if we are running on zsh, and set the options which allow our commands through
19663
 
  # without removal of \ escapes.
19664
 
  if test -n "${ZSH_VERSION+set}" ; then
19665
 
    setopt NO_GLOB_SUBST
19666
 
  fi
19667
 
  # Now quote all the things that may contain metacharacters while being
19668
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19669
 
  # variables and quote the copies for generation of the libtool script.
19670
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19671
 
    SED SHELL STRIP \
19672
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19673
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19674
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19675
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19676
 
    lt_cv_sys_global_symbol_to_c_name_address \
19677
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19678
 
    old_postinstall_cmds old_postuninstall_cmds \
19679
 
    compiler_GCJ \
19680
 
    CC_GCJ \
19681
 
    LD_GCJ \
19682
 
    lt_prog_compiler_wl_GCJ \
19683
 
    lt_prog_compiler_pic_GCJ \
19684
 
    lt_prog_compiler_static_GCJ \
19685
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19686
 
    export_dynamic_flag_spec_GCJ \
19687
 
    thread_safe_flag_spec_GCJ \
19688
 
    whole_archive_flag_spec_GCJ \
19689
 
    enable_shared_with_static_runtimes_GCJ \
19690
 
    old_archive_cmds_GCJ \
19691
 
    old_archive_from_new_cmds_GCJ \
19692
 
    predep_objects_GCJ \
19693
 
    postdep_objects_GCJ \
19694
 
    predeps_GCJ \
19695
 
    postdeps_GCJ \
19696
 
    compiler_lib_search_path_GCJ \
19697
 
    compiler_lib_search_dirs_GCJ \
19698
 
    archive_cmds_GCJ \
19699
 
    archive_expsym_cmds_GCJ \
19700
 
    postinstall_cmds_GCJ \
19701
 
    postuninstall_cmds_GCJ \
19702
 
    old_archive_from_expsyms_cmds_GCJ \
19703
 
    allow_undefined_flag_GCJ \
19704
 
    no_undefined_flag_GCJ \
19705
 
    export_symbols_cmds_GCJ \
19706
 
    hardcode_libdir_flag_spec_GCJ \
19707
 
    hardcode_libdir_flag_spec_ld_GCJ \
19708
 
    hardcode_libdir_separator_GCJ \
19709
 
    hardcode_automatic_GCJ \
19710
 
    module_cmds_GCJ \
19711
 
    module_expsym_cmds_GCJ \
19712
 
    lt_cv_prog_compiler_c_o_GCJ \
19713
 
    fix_srcfile_path_GCJ \
19714
 
    exclude_expsyms_GCJ \
19715
 
    include_expsyms_GCJ; do
19716
 
 
19717
 
    case $var in
19718
 
    old_archive_cmds_GCJ | \
19719
 
    old_archive_from_new_cmds_GCJ | \
19720
 
    archive_cmds_GCJ | \
19721
 
    archive_expsym_cmds_GCJ | \
19722
 
    module_cmds_GCJ | \
19723
 
    module_expsym_cmds_GCJ | \
19724
 
    old_archive_from_expsyms_cmds_GCJ | \
19725
 
    export_symbols_cmds_GCJ | \
19726
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19727
 
    postinstall_cmds | postuninstall_cmds | \
19728
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19729
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19730
 
      # Double-quote double-evaled strings.
19731
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19732
 
      ;;
19733
 
    *)
19734
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19735
 
      ;;
19736
 
    esac
19737
 
  done
19738
 
 
19739
 
  case $lt_echo in
19740
 
  *'\$0 --fallback-echo"')
19741
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19742
 
    ;;
19743
 
  esac
19744
 
 
19745
 
cfgfile="$ofile"
19746
 
 
19747
 
  cat <<__EOF__ >> "$cfgfile"
19748
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19749
 
 
19750
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19751
 
 
19752
 
# Shell to use when invoking shell scripts.
19753
 
SHELL=$lt_SHELL
19754
 
 
19755
 
# Whether or not to build shared libraries.
19756
 
build_libtool_libs=$enable_shared
19757
 
 
19758
 
# Whether or not to build static libraries.
19759
 
build_old_libs=$enable_static
19760
 
 
19761
 
# Whether or not to add -lc for building shared libraries.
19762
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19763
 
 
19764
 
# Whether or not to disallow shared libs when runtime libs are static
19765
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19766
 
 
19767
 
# Whether or not to optimize for fast installation.
19768
 
fast_install=$enable_fast_install
19769
 
 
19770
 
# The host system.
19771
 
host_alias=$host_alias
19772
 
host=$host
19773
 
host_os=$host_os
19774
 
 
19775
 
# The build system.
19776
 
build_alias=$build_alias
19777
 
build=$build
19778
 
build_os=$build_os
19779
 
 
19780
 
# An echo program that does not interpret backslashes.
19781
 
echo=$lt_echo
19782
 
 
19783
 
# The archiver.
19784
 
AR=$lt_AR
19785
 
AR_FLAGS=$lt_AR_FLAGS
19786
 
 
19787
 
# A C compiler.
19788
 
LTCC=$lt_LTCC
19789
 
 
19790
 
# LTCC compiler flags.
19791
 
LTCFLAGS=$lt_LTCFLAGS
19792
 
 
19793
 
# A language-specific compiler.
19794
 
CC=$lt_compiler_GCJ
19795
 
 
19796
 
# Is the compiler the GNU C compiler?
19797
 
with_gcc=$GCC_GCJ
19798
 
 
19799
 
# An ERE matcher.
19800
 
EGREP=$lt_EGREP
19801
 
 
19802
 
# The linker used to build libraries.
19803
 
LD=$lt_LD_GCJ
19804
 
 
19805
 
# Whether we need hard or soft links.
19806
 
LN_S=$lt_LN_S
19807
 
 
19808
 
# A BSD-compatible nm program.
19809
 
NM=$lt_NM
19810
 
 
19811
 
# A symbol stripping program
19812
 
STRIP=$lt_STRIP
19813
 
 
19814
 
# Used to examine libraries when file_magic_cmd begins "file"
19815
 
MAGIC_CMD=$MAGIC_CMD
19816
 
 
19817
 
# Used on cygwin: DLL creation program.
19818
 
DLLTOOL="$DLLTOOL"
19819
 
 
19820
 
# Used on cygwin: object dumper.
19821
 
OBJDUMP="$OBJDUMP"
19822
 
 
19823
 
# Used on cygwin: assembler.
19824
 
AS="$AS"
19825
 
 
19826
 
# The name of the directory that contains temporary libtool files.
19827
 
objdir=$objdir
19828
 
 
19829
 
# How to create reloadable object files.
19830
 
reload_flag=$lt_reload_flag
19831
 
reload_cmds=$lt_reload_cmds
19832
 
 
19833
 
# How to pass a linker flag through the compiler.
19834
 
wl=$lt_lt_prog_compiler_wl_GCJ
19835
 
 
19836
 
# Object file suffix (normally "o").
19837
 
objext="$ac_objext"
19838
 
 
19839
 
# Old archive suffix (normally "a").
19840
 
libext="$libext"
19841
 
 
19842
 
# Shared library suffix (normally ".so").
19843
 
shrext_cmds='$shrext_cmds'
19844
 
 
19845
 
# Executable file suffix (normally "").
19846
 
exeext="$exeext"
19847
 
 
19848
 
# Additional compiler flags for building library objects.
19849
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19850
 
pic_mode=$pic_mode
19851
 
 
19852
 
# What is the maximum length of a command?
19853
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19854
 
 
19855
 
# Does compiler simultaneously support -c and -o options?
19856
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19857
 
 
19858
 
# Must we lock files when doing compilation?
19859
 
need_locks=$lt_need_locks
19860
 
 
19861
 
# Do we need the lib prefix for modules?
19862
 
need_lib_prefix=$need_lib_prefix
19863
 
 
19864
 
# Do we need a version for libraries?
19865
 
need_version=$need_version
19866
 
 
19867
 
# Whether dlopen is supported.
19868
 
dlopen_support=$enable_dlopen
19869
 
 
19870
 
# Whether dlopen of programs is supported.
19871
 
dlopen_self=$enable_dlopen_self
19872
 
 
19873
 
# Whether dlopen of statically linked programs is supported.
19874
 
dlopen_self_static=$enable_dlopen_self_static
19875
 
 
19876
 
# Compiler flag to prevent dynamic linking.
19877
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19878
 
 
19879
 
# Compiler flag to turn off builtin functions.
19880
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19881
 
 
19882
 
# Compiler flag to allow reflexive dlopens.
19883
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19884
 
 
19885
 
# Compiler flag to generate shared objects directly from archives.
19886
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19887
 
 
19888
 
# Compiler flag to generate thread-safe objects.
19889
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19890
 
 
19891
 
# Library versioning type.
19892
 
version_type=$version_type
19893
 
 
19894
 
# Format of library name prefix.
19895
 
libname_spec=$lt_libname_spec
19896
 
 
19897
 
# List of archive names.  First name is the real one, the rest are links.
19898
 
# The last name is the one that the linker finds with -lNAME.
19899
 
library_names_spec=$lt_library_names_spec
19900
 
 
19901
 
# The coded name of the library, if different from the real name.
19902
 
soname_spec=$lt_soname_spec
19903
 
 
19904
 
# Commands used to build and install an old-style archive.
19905
 
RANLIB=$lt_RANLIB
19906
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19907
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19908
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19909
 
 
19910
 
# Create an old-style archive from a shared archive.
19911
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19912
 
 
19913
 
# Create a temporary old-style archive to link instead of a shared archive.
19914
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19915
 
 
19916
 
# Commands used to build and install a shared archive.
19917
 
archive_cmds=$lt_archive_cmds_GCJ
19918
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19919
 
postinstall_cmds=$lt_postinstall_cmds
19920
 
postuninstall_cmds=$lt_postuninstall_cmds
19921
 
 
19922
 
# Commands used to build a loadable module (assumed same as above if empty)
19923
 
module_cmds=$lt_module_cmds_GCJ
19924
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19925
 
 
19926
 
# Commands to strip libraries.
19927
 
old_striplib=$lt_old_striplib
19928
 
striplib=$lt_striplib
19929
 
 
19930
 
# Dependencies to place before the objects being linked to create a
19931
 
# shared library.
19932
 
predep_objects=$lt_predep_objects_GCJ
19933
 
 
19934
 
# Dependencies to place after the objects being linked to create a
19935
 
# shared library.
19936
 
postdep_objects=$lt_postdep_objects_GCJ
19937
 
 
19938
 
# Dependencies to place before the objects being linked to create a
19939
 
# shared library.
19940
 
predeps=$lt_predeps_GCJ
19941
 
 
19942
 
# Dependencies to place after the objects being linked to create a
19943
 
# shared library.
19944
 
postdeps=$lt_postdeps_GCJ
19945
 
 
19946
 
# The directories searched by this compiler when creating a shared
19947
 
# library
19948
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19949
 
 
19950
 
# The library search path used internally by the compiler when linking
19951
 
# a shared library.
19952
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19953
 
 
19954
 
# Method to check whether dependent libraries are shared objects.
19955
 
deplibs_check_method=$lt_deplibs_check_method
19956
 
 
19957
 
# Command to use when deplibs_check_method == file_magic.
19958
 
file_magic_cmd=$lt_file_magic_cmd
19959
 
 
19960
 
# Flag that allows shared libraries with undefined symbols to be built.
19961
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19962
 
 
19963
 
# Flag that forces no undefined symbols.
19964
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19965
 
 
19966
 
# Commands used to finish a libtool library installation in a directory.
19967
 
finish_cmds=$lt_finish_cmds
19968
 
 
19969
 
# Same as above, but a single script fragment to be evaled but not shown.
19970
 
finish_eval=$lt_finish_eval
19971
 
 
19972
 
# Take the output of nm and produce a listing of raw symbols and C names.
19973
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19974
 
 
19975
 
# Transform the output of nm in a proper C declaration
19976
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19977
 
 
19978
 
# Transform the output of nm in a C name address pair
19979
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19980
 
 
19981
 
# This is the shared library runtime path variable.
19982
 
runpath_var=$runpath_var
19983
 
 
19984
 
# This is the shared library path variable.
19985
 
shlibpath_var=$shlibpath_var
19986
 
 
19987
 
# Is shlibpath searched before the hard-coded library search path?
19988
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19989
 
 
19990
 
# How to hardcode a shared library path into an executable.
19991
 
hardcode_action=$hardcode_action_GCJ
19992
 
 
19993
 
# Whether we should hardcode library paths into libraries.
19994
 
hardcode_into_libs=$hardcode_into_libs
19995
 
 
19996
 
# Flag to hardcode \$libdir into a binary during linking.
19997
 
# This must work even if \$libdir does not exist.
19998
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19999
 
 
20000
 
# If ld is used when linking, flag to hardcode \$libdir into
20001
 
# a binary during linking. This must work even if \$libdir does
20002
 
# not exist.
20003
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20004
 
 
20005
 
# Whether we need a single -rpath flag with a separated argument.
20006
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20007
 
 
20008
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20009
 
# resulting binary.
20010
 
hardcode_direct=$hardcode_direct_GCJ
20011
 
 
20012
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20013
 
# resulting binary.
20014
 
hardcode_minus_L=$hardcode_minus_L_GCJ
20015
 
 
20016
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20017
 
# the resulting binary.
20018
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20019
 
 
20020
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20021
 
# and all subsequent libraries and executables linked against it.
20022
 
hardcode_automatic=$hardcode_automatic_GCJ
20023
 
 
20024
 
# Variables whose values should be saved in libtool wrapper scripts and
20025
 
# restored at relink time.
20026
 
variables_saved_for_relink="$variables_saved_for_relink"
20027
 
 
20028
 
# Whether libtool must link a program against all its dependency libraries.
20029
 
link_all_deplibs=$link_all_deplibs_GCJ
20030
 
 
20031
 
# Compile-time system search path for libraries
20032
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20033
 
 
20034
 
# Run-time system search path for libraries
20035
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20036
 
 
20037
 
# Fix the shell variable \$srcfile for the compiler.
20038
 
fix_srcfile_path=$lt_fix_srcfile_path
20039
 
 
20040
 
# Set to yes if exported symbols are required.
20041
 
always_export_symbols=$always_export_symbols_GCJ
20042
 
 
20043
 
# The commands to list exported symbols.
20044
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20045
 
 
20046
 
# The commands to extract the exported symbol list from a shared archive.
20047
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20048
 
 
20049
 
# Symbols that should not be listed in the preloaded symbols.
20050
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
20051
 
 
20052
 
# Symbols that must always be exported.
20053
 
include_expsyms=$lt_include_expsyms_GCJ
20054
 
 
20055
 
# ### END LIBTOOL TAG CONFIG: $tagname
20056
 
 
20057
 
__EOF__
20058
 
 
20059
 
 
20060
 
else
20061
 
  # If there is no Makefile yet, we rely on a make rule to execute
20062
 
  # `config.status --recheck' to rerun these tests and create the
20063
 
  # libtool script then.
20064
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20065
 
  if test -f "$ltmain_in"; then
20066
 
    test -f Makefile && make "$ltmain"
20067
 
  fi
20068
 
fi
20069
 
 
20070
 
 
20071
 
ac_ext=c
20072
 
ac_cpp='$CPP $CPPFLAGS'
20073
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
 
 
20077
 
CC="$lt_save_CC"
20078
 
 
20079
 
        else
20080
 
          tagname=""
20081
 
        fi
20082
 
        ;;
20083
 
 
20084
 
      RC)
20085
 
 
20086
 
 
20087
 
# Source file extension for RC test sources.
20088
 
ac_ext=rc
20089
 
 
20090
 
# Object file extension for compiled RC test sources.
20091
 
objext=o
20092
 
objext_RC=$objext
20093
 
 
20094
 
# Code to be used in simple compile tests
20095
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20096
 
 
20097
 
# Code to be used in simple link tests
20098
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20099
 
 
20100
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20101
 
 
20102
 
# If no C compiler was specified, use CC.
20103
 
LTCC=${LTCC-"$CC"}
20104
 
 
20105
 
# If no C compiler flags were specified, use CFLAGS.
20106
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20107
 
 
20108
 
# Allow CC to be a program name with arguments.
20109
 
compiler=$CC
20110
 
 
20111
 
 
20112
 
# save warnings/boilerplate of simple test code
20113
 
ac_outfile=conftest.$ac_objext
20114
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20115
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20116
 
_lt_compiler_boilerplate=`cat conftest.err`
20117
 
$rm conftest*
20118
 
 
20119
 
ac_outfile=conftest.$ac_objext
20120
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20121
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20122
 
_lt_linker_boilerplate=`cat conftest.err`
20123
 
$rm -r conftest*
20124
 
 
20125
 
 
20126
 
# Allow CC to be a program name with arguments.
20127
 
lt_save_CC="$CC"
20128
 
CC=${RC-"windres"}
20129
 
compiler=$CC
20130
 
compiler_RC=$CC
20131
 
for cc_temp in $compiler""; do
20132
 
  case $cc_temp in
20133
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20134
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20135
 
    \-*) ;;
20136
 
    *) break;;
20137
 
  esac
20138
 
done
20139
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20140
 
 
20141
 
lt_cv_prog_compiler_c_o_RC=yes
20142
 
 
20143
 
# The else clause should only fire when bootstrapping the
20144
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20145
 
# with your package, and you will get complaints that there are
20146
 
# no rules to generate ltmain.sh.
20147
 
if test -f "$ltmain"; then
20148
 
  # See if we are running on zsh, and set the options which allow our commands through
20149
 
  # without removal of \ escapes.
20150
 
  if test -n "${ZSH_VERSION+set}" ; then
20151
 
    setopt NO_GLOB_SUBST
20152
 
  fi
20153
 
  # Now quote all the things that may contain metacharacters while being
20154
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20155
 
  # variables and quote the copies for generation of the libtool script.
20156
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20157
 
    SED SHELL STRIP \
20158
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20159
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20160
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20161
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20162
 
    lt_cv_sys_global_symbol_to_c_name_address \
20163
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20164
 
    old_postinstall_cmds old_postuninstall_cmds \
20165
 
    compiler_RC \
20166
 
    CC_RC \
20167
 
    LD_RC \
20168
 
    lt_prog_compiler_wl_RC \
20169
 
    lt_prog_compiler_pic_RC \
20170
 
    lt_prog_compiler_static_RC \
20171
 
    lt_prog_compiler_no_builtin_flag_RC \
20172
 
    export_dynamic_flag_spec_RC \
20173
 
    thread_safe_flag_spec_RC \
20174
 
    whole_archive_flag_spec_RC \
20175
 
    enable_shared_with_static_runtimes_RC \
20176
 
    old_archive_cmds_RC \
20177
 
    old_archive_from_new_cmds_RC \
20178
 
    predep_objects_RC \
20179
 
    postdep_objects_RC \
20180
 
    predeps_RC \
20181
 
    postdeps_RC \
20182
 
    compiler_lib_search_path_RC \
20183
 
    compiler_lib_search_dirs_RC \
20184
 
    archive_cmds_RC \
20185
 
    archive_expsym_cmds_RC \
20186
 
    postinstall_cmds_RC \
20187
 
    postuninstall_cmds_RC \
20188
 
    old_archive_from_expsyms_cmds_RC \
20189
 
    allow_undefined_flag_RC \
20190
 
    no_undefined_flag_RC \
20191
 
    export_symbols_cmds_RC \
20192
 
    hardcode_libdir_flag_spec_RC \
20193
 
    hardcode_libdir_flag_spec_ld_RC \
20194
 
    hardcode_libdir_separator_RC \
20195
 
    hardcode_automatic_RC \
20196
 
    module_cmds_RC \
20197
 
    module_expsym_cmds_RC \
20198
 
    lt_cv_prog_compiler_c_o_RC \
20199
 
    fix_srcfile_path_RC \
20200
 
    exclude_expsyms_RC \
20201
 
    include_expsyms_RC; do
20202
 
 
20203
 
    case $var in
20204
 
    old_archive_cmds_RC | \
20205
 
    old_archive_from_new_cmds_RC | \
20206
 
    archive_cmds_RC | \
20207
 
    archive_expsym_cmds_RC | \
20208
 
    module_cmds_RC | \
20209
 
    module_expsym_cmds_RC | \
20210
 
    old_archive_from_expsyms_cmds_RC | \
20211
 
    export_symbols_cmds_RC | \
20212
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20213
 
    postinstall_cmds | postuninstall_cmds | \
20214
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20215
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20216
 
      # Double-quote double-evaled strings.
20217
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20218
 
      ;;
20219
 
    *)
20220
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20221
 
      ;;
20222
 
    esac
20223
 
  done
20224
 
 
20225
 
  case $lt_echo in
20226
 
  *'\$0 --fallback-echo"')
20227
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20228
 
    ;;
20229
 
  esac
20230
 
 
20231
 
cfgfile="$ofile"
20232
 
 
20233
 
  cat <<__EOF__ >> "$cfgfile"
20234
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20235
 
 
20236
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20237
 
 
20238
 
# Shell to use when invoking shell scripts.
20239
 
SHELL=$lt_SHELL
20240
 
 
20241
 
# Whether or not to build shared libraries.
20242
 
build_libtool_libs=$enable_shared
20243
 
 
20244
 
# Whether or not to build static libraries.
20245
 
build_old_libs=$enable_static
20246
 
 
20247
 
# Whether or not to add -lc for building shared libraries.
20248
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20249
 
 
20250
 
# Whether or not to disallow shared libs when runtime libs are static
20251
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20252
 
 
20253
 
# Whether or not to optimize for fast installation.
20254
 
fast_install=$enable_fast_install
20255
 
 
20256
 
# The host system.
20257
 
host_alias=$host_alias
20258
 
host=$host
20259
 
host_os=$host_os
20260
 
 
20261
 
# The build system.
20262
 
build_alias=$build_alias
20263
 
build=$build
20264
 
build_os=$build_os
20265
 
 
20266
 
# An echo program that does not interpret backslashes.
20267
 
echo=$lt_echo
20268
 
 
20269
 
# The archiver.
20270
 
AR=$lt_AR
20271
 
AR_FLAGS=$lt_AR_FLAGS
20272
 
 
20273
 
# A C compiler.
20274
 
LTCC=$lt_LTCC
20275
 
 
20276
 
# LTCC compiler flags.
20277
 
LTCFLAGS=$lt_LTCFLAGS
20278
 
 
20279
 
# A language-specific compiler.
20280
 
CC=$lt_compiler_RC
20281
 
 
20282
 
# Is the compiler the GNU C compiler?
20283
 
with_gcc=$GCC_RC
20284
 
 
20285
 
# An ERE matcher.
20286
 
EGREP=$lt_EGREP
20287
 
 
20288
 
# The linker used to build libraries.
20289
 
LD=$lt_LD_RC
20290
 
 
20291
 
# Whether we need hard or soft links.
20292
 
LN_S=$lt_LN_S
20293
 
 
20294
 
# A BSD-compatible nm program.
20295
 
NM=$lt_NM
20296
 
 
20297
 
# A symbol stripping program
20298
 
STRIP=$lt_STRIP
20299
 
 
20300
 
# Used to examine libraries when file_magic_cmd begins "file"
20301
 
MAGIC_CMD=$MAGIC_CMD
20302
 
 
20303
 
# Used on cygwin: DLL creation program.
20304
 
DLLTOOL="$DLLTOOL"
20305
 
 
20306
 
# Used on cygwin: object dumper.
20307
 
OBJDUMP="$OBJDUMP"
20308
 
 
20309
 
# Used on cygwin: assembler.
20310
 
AS="$AS"
20311
 
 
20312
 
# The name of the directory that contains temporary libtool files.
20313
 
objdir=$objdir
20314
 
 
20315
 
# How to create reloadable object files.
20316
 
reload_flag=$lt_reload_flag
20317
 
reload_cmds=$lt_reload_cmds
20318
 
 
20319
 
# How to pass a linker flag through the compiler.
20320
 
wl=$lt_lt_prog_compiler_wl_RC
20321
 
 
20322
 
# Object file suffix (normally "o").
20323
 
objext="$ac_objext"
20324
 
 
20325
 
# Old archive suffix (normally "a").
20326
 
libext="$libext"
20327
 
 
20328
 
# Shared library suffix (normally ".so").
20329
 
shrext_cmds='$shrext_cmds'
20330
 
 
20331
 
# Executable file suffix (normally "").
20332
 
exeext="$exeext"
20333
 
 
20334
 
# Additional compiler flags for building library objects.
20335
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20336
 
pic_mode=$pic_mode
20337
 
 
20338
 
# What is the maximum length of a command?
20339
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20340
 
 
20341
 
# Does compiler simultaneously support -c and -o options?
20342
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20343
 
 
20344
 
# Must we lock files when doing compilation?
20345
 
need_locks=$lt_need_locks
20346
 
 
20347
 
# Do we need the lib prefix for modules?
20348
 
need_lib_prefix=$need_lib_prefix
20349
 
 
20350
 
# Do we need a version for libraries?
20351
 
need_version=$need_version
20352
 
 
20353
 
# Whether dlopen is supported.
20354
 
dlopen_support=$enable_dlopen
20355
 
 
20356
 
# Whether dlopen of programs is supported.
20357
 
dlopen_self=$enable_dlopen_self
20358
 
 
20359
 
# Whether dlopen of statically linked programs is supported.
20360
 
dlopen_self_static=$enable_dlopen_self_static
20361
 
 
20362
 
# Compiler flag to prevent dynamic linking.
20363
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20364
 
 
20365
 
# Compiler flag to turn off builtin functions.
20366
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20367
 
 
20368
 
# Compiler flag to allow reflexive dlopens.
20369
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20370
 
 
20371
 
# Compiler flag to generate shared objects directly from archives.
20372
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20373
 
 
20374
 
# Compiler flag to generate thread-safe objects.
20375
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20376
 
 
20377
 
# Library versioning type.
20378
 
version_type=$version_type
20379
 
 
20380
 
# Format of library name prefix.
20381
 
libname_spec=$lt_libname_spec
20382
 
 
20383
 
# List of archive names.  First name is the real one, the rest are links.
20384
 
# The last name is the one that the linker finds with -lNAME.
20385
 
library_names_spec=$lt_library_names_spec
20386
 
 
20387
 
# The coded name of the library, if different from the real name.
20388
 
soname_spec=$lt_soname_spec
20389
 
 
20390
 
# Commands used to build and install an old-style archive.
20391
 
RANLIB=$lt_RANLIB
20392
 
old_archive_cmds=$lt_old_archive_cmds_RC
20393
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20394
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20395
 
 
20396
 
# Create an old-style archive from a shared archive.
20397
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20398
 
 
20399
 
# Create a temporary old-style archive to link instead of a shared archive.
20400
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20401
 
 
20402
 
# Commands used to build and install a shared archive.
20403
 
archive_cmds=$lt_archive_cmds_RC
20404
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20405
 
postinstall_cmds=$lt_postinstall_cmds
20406
 
postuninstall_cmds=$lt_postuninstall_cmds
20407
 
 
20408
 
# Commands used to build a loadable module (assumed same as above if empty)
20409
 
module_cmds=$lt_module_cmds_RC
20410
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20411
 
 
20412
 
# Commands to strip libraries.
20413
 
old_striplib=$lt_old_striplib
20414
 
striplib=$lt_striplib
20415
 
 
20416
 
# Dependencies to place before the objects being linked to create a
20417
 
# shared library.
20418
 
predep_objects=$lt_predep_objects_RC
20419
 
 
20420
 
# Dependencies to place after the objects being linked to create a
20421
 
# shared library.
20422
 
postdep_objects=$lt_postdep_objects_RC
20423
 
 
20424
 
# Dependencies to place before the objects being linked to create a
20425
 
# shared library.
20426
 
predeps=$lt_predeps_RC
20427
 
 
20428
 
# Dependencies to place after the objects being linked to create a
20429
 
# shared library.
20430
 
postdeps=$lt_postdeps_RC
20431
 
 
20432
 
# The directories searched by this compiler when creating a shared
20433
 
# library
20434
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20435
 
 
20436
 
# The library search path used internally by the compiler when linking
20437
 
# a shared library.
20438
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20439
 
 
20440
 
# Method to check whether dependent libraries are shared objects.
20441
 
deplibs_check_method=$lt_deplibs_check_method
20442
 
 
20443
 
# Command to use when deplibs_check_method == file_magic.
20444
 
file_magic_cmd=$lt_file_magic_cmd
20445
 
 
20446
 
# Flag that allows shared libraries with undefined symbols to be built.
20447
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20448
 
 
20449
 
# Flag that forces no undefined symbols.
20450
 
no_undefined_flag=$lt_no_undefined_flag_RC
20451
 
 
20452
 
# Commands used to finish a libtool library installation in a directory.
20453
 
finish_cmds=$lt_finish_cmds
20454
 
 
20455
 
# Same as above, but a single script fragment to be evaled but not shown.
20456
 
finish_eval=$lt_finish_eval
20457
 
 
20458
 
# Take the output of nm and produce a listing of raw symbols and C names.
20459
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20460
 
 
20461
 
# Transform the output of nm in a proper C declaration
20462
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20463
 
 
20464
 
# Transform the output of nm in a C name address pair
20465
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20466
 
 
20467
 
# This is the shared library runtime path variable.
20468
 
runpath_var=$runpath_var
20469
 
 
20470
 
# This is the shared library path variable.
20471
 
shlibpath_var=$shlibpath_var
20472
 
 
20473
 
# Is shlibpath searched before the hard-coded library search path?
20474
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20475
 
 
20476
 
# How to hardcode a shared library path into an executable.
20477
 
hardcode_action=$hardcode_action_RC
20478
 
 
20479
 
# Whether we should hardcode library paths into libraries.
20480
 
hardcode_into_libs=$hardcode_into_libs
20481
 
 
20482
 
# Flag to hardcode \$libdir into a binary during linking.
20483
 
# This must work even if \$libdir does not exist.
20484
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20485
 
 
20486
 
# If ld is used when linking, flag to hardcode \$libdir into
20487
 
# a binary during linking. This must work even if \$libdir does
20488
 
# not exist.
20489
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20490
 
 
20491
 
# Whether we need a single -rpath flag with a separated argument.
20492
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20493
 
 
20494
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20495
 
# resulting binary.
20496
 
hardcode_direct=$hardcode_direct_RC
20497
 
 
20498
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20499
 
# resulting binary.
20500
 
hardcode_minus_L=$hardcode_minus_L_RC
20501
 
 
20502
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20503
 
# the resulting binary.
20504
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20505
 
 
20506
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20507
 
# and all subsequent libraries and executables linked against it.
20508
 
hardcode_automatic=$hardcode_automatic_RC
20509
 
 
20510
 
# Variables whose values should be saved in libtool wrapper scripts and
20511
 
# restored at relink time.
20512
 
variables_saved_for_relink="$variables_saved_for_relink"
20513
 
 
20514
 
# Whether libtool must link a program against all its dependency libraries.
20515
 
link_all_deplibs=$link_all_deplibs_RC
20516
 
 
20517
 
# Compile-time system search path for libraries
20518
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20519
 
 
20520
 
# Run-time system search path for libraries
20521
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20522
 
 
20523
 
# Fix the shell variable \$srcfile for the compiler.
20524
 
fix_srcfile_path=$lt_fix_srcfile_path
20525
 
 
20526
 
# Set to yes if exported symbols are required.
20527
 
always_export_symbols=$always_export_symbols_RC
20528
 
 
20529
 
# The commands to list exported symbols.
20530
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20531
 
 
20532
 
# The commands to extract the exported symbol list from a shared archive.
20533
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20534
 
 
20535
 
# Symbols that should not be listed in the preloaded symbols.
20536
 
exclude_expsyms=$lt_exclude_expsyms_RC
20537
 
 
20538
 
# Symbols that must always be exported.
20539
 
include_expsyms=$lt_include_expsyms_RC
20540
 
 
20541
 
# ### END LIBTOOL TAG CONFIG: $tagname
20542
 
 
20543
 
__EOF__
20544
 
 
20545
 
 
20546
 
else
20547
 
  # If there is no Makefile yet, we rely on a make rule to execute
20548
 
  # `config.status --recheck' to rerun these tests and create the
20549
 
  # libtool script then.
20550
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20551
 
  if test -f "$ltmain_in"; then
20552
 
    test -f Makefile && make "$ltmain"
20553
 
  fi
20554
 
fi
20555
 
 
20556
 
 
20557
 
ac_ext=c
20558
 
ac_cpp='$CPP $CPPFLAGS'
20559
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
 
 
20563
 
CC="$lt_save_CC"
20564
 
 
20565
 
        ;;
20566
 
 
20567
 
      *)
20568
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20569
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20570
 
   { (exit 1); exit 1; }; }
20571
 
        ;;
20572
 
      esac
20573
 
 
20574
 
      # Append the new tag name to the list of available tags.
20575
 
      if test -n "$tagname" ; then
20576
 
      available_tags="$available_tags $tagname"
20577
 
    fi
20578
 
    fi
20579
 
  done
20580
 
  IFS="$lt_save_ifs"
20581
 
 
20582
 
  # Now substitute the updated list of available tags.
20583
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20584
 
    mv "${ofile}T" "$ofile"
20585
 
    chmod +x "$ofile"
20586
 
  else
20587
 
    rm -f "${ofile}T"
20588
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20589
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20590
 
   { (exit 1); exit 1; }; }
20591
 
  fi
20592
 
fi
20593
 
 
20594
 
 
20595
 
 
20596
 
# This can be used to rebuild libtool when needed
20597
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20598
 
 
20599
 
# Always use our own libtool.
20600
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20601
 
 
20602
 
# Prevent multiple expansion
20603
 
 
20604
 
 
20605
 
 
20606
 
 
20607
 
 
20608
 
 
20609
 
 
20610
 
 
20611
 
 
20612
 
 
20613
 
 
20614
 
 
20615
 
 
20616
 
 
20617
 
 
20618
 
 
20619
 
 
20620
 
 
20621
 
 
20622
 
 
20623
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20624
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20625
 
# Just in case
20626
 
sleep 1
20627
 
echo timestamp > conftest.file
20628
 
# Do `set' in a subshell so we don't clobber the current shell's
20629
 
# arguments.  Must try -L first in case configure is actually a
20630
 
# symlink; some systems play weird games with the mod time of symlinks
20631
 
# (eg FreeBSD returns the mod time of the symlink's containing
20632
 
# directory).
20633
 
if (
20634
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20635
 
   if test "$*" = "X"; then
20636
 
      # -L didn't work.
20637
 
      set X `ls -t $srcdir/configure conftest.file`
20638
 
   fi
20639
 
   rm -f conftest.file
20640
 
   if test "$*" != "X $srcdir/configure conftest.file" \
20641
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
20642
 
 
20643
 
      # If neither matched, then we have a broken ls.  This can happen
20644
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
20645
 
      # broken ls alias from the environment.  This has actually
20646
 
      # happened.  Such a system could not be considered "sane".
20647
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20648
 
alias in your environment" >&5
20649
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20650
 
alias in your environment" >&2;}
20651
 
   { (exit 1); exit 1; }; }
20652
 
   fi
20653
 
 
20654
 
   test "$2" = conftest.file
20655
 
   )
20656
 
then
20657
 
   # Ok.
20658
 
   :
20659
 
else
20660
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20661
 
Check your system clock" >&5
20662
 
echo "$as_me: error: newly created file is older than distributed files!
20663
 
Check your system clock" >&2;}
20664
 
   { (exit 1); exit 1; }; }
20665
 
fi
20666
 
{ echo "$as_me:$LINENO: result: yes" >&5
20667
 
echo "${ECHO_T}yes" >&6; }
20668
 
LIBTOOL="$LIBTOOL --preserve-dup-deps"
20669
 
 
20670
 
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
14678
if test "$hardcode_action_CXX" = relink ||
 
14679
   test "$inherit_rpath_CXX" = yes; then
 
14680
  # Fast installation is not supported
 
14681
  enable_fast_install=no
 
14682
elif test "$shlibpath_overrides_runpath" = yes ||
 
14683
     test "$enable_shared" = no; then
 
14684
  # Fast installation is not necessary
 
14685
  enable_fast_install=needless
 
14686
fi
 
14687
 
 
14688
 
 
14689
 
 
14690
 
 
14691
 
 
14692
 
 
14693
 
 
14694
  fi # test -n "$compiler"
 
14695
 
 
14696
  CC=$lt_save_CC
 
14697
  LDCXX=$LD
 
14698
  LD=$lt_save_LD
 
14699
  GCC=$lt_save_GCC
 
14700
  with_gnu_ld=$lt_save_with_gnu_ld
 
14701
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14702
  lt_cv_path_LD=$lt_save_path_LD
 
14703
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14704
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14705
fi # test "$_lt_caught_CXX_error" != yes
 
14706
 
 
14707
ac_ext=c
 
14708
ac_cpp='$CPP $CPPFLAGS'
 
14709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14712
 
 
14713
 
 
14714
 
 
14715
 
 
14716
 
 
14717
 
 
14718
 
 
14719
 
 
14720
 
 
14721
 
 
14722
 
 
14723
 
 
14724
 
 
14725
        ac_config_commands="$ac_config_commands libtool"
 
14726
 
 
14727
 
 
14728
 
 
14729
 
 
14730
# Only expand once:
 
14731
 
 
14732
 
 
14733
 
 
14734
  { echo "$as_me:$LINENO: checking if g++ supports C++0x features without additional flags" >&5
 
14735
echo $ECHO_N "checking if g++ supports C++0x features without additional flags... $ECHO_C" >&6; }
 
14736
if test "${ac_cv_cxx_compile_cxx0x_native+set}" = set; then
 
14737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14738
else
 
14739
 
 
14740
  ac_ext=cpp
 
14741
ac_cpp='$CXXCPP $CPPFLAGS'
 
14742
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14743
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14744
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14745
 
 
14746
  cat >conftest.$ac_ext <<_ACEOF
 
14747
/* confdefs.h.  */
 
14748
_ACEOF
 
14749
cat confdefs.h >>conftest.$ac_ext
 
14750
cat >>conftest.$ac_ext <<_ACEOF
 
14751
/* end confdefs.h.  */
 
14752
 
 
14753
  template <typename T>
 
14754
    struct check
 
14755
    {
 
14756
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
 
14757
    };
 
14758
 
 
14759
    typedef check<check<bool>> right_angle_brackets;
 
14760
 
 
14761
    int a;
 
14762
    decltype(a) b;
 
14763
 
 
14764
    typedef check<int> check_type;
 
14765
    check_type c;
 
14766
    check_type&& cr = c;
 
14767
int
 
14768
main ()
 
14769
{
 
14770
 
 
14771
  ;
 
14772
  return 0;
 
14773
}
 
14774
_ACEOF
 
14775
rm -f conftest.$ac_objext
 
14776
if { (ac_try="$ac_compile"
 
14777
case "(($ac_try" in
 
14778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14779
  *) ac_try_echo=$ac_try;;
 
14780
esac
 
14781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14782
  (eval "$ac_compile") 2>conftest.er1
 
14783
  ac_status=$?
 
14784
  grep -v '^ *+' conftest.er1 >conftest.err
 
14785
  rm -f conftest.er1
 
14786
  cat conftest.err >&5
 
14787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14788
  (exit $ac_status); } && {
 
14789
         test -z "$ac_cxx_werror_flag" ||
 
14790
         test ! -s conftest.err
 
14791
       } && test -s conftest.$ac_objext; then
 
14792
  ac_cv_cxx_compile_cxx0x_native=yes
 
14793
else
 
14794
  echo "$as_me: failed program was:" >&5
 
14795
sed 's/^/| /' conftest.$ac_ext >&5
 
14796
 
 
14797
        ac_cv_cxx_compile_cxx0x_native=no
 
14798
fi
 
14799
 
 
14800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14801
  ac_ext=c
 
14802
ac_cpp='$CPP $CPPFLAGS'
 
14803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14806
 
 
14807
 
 
14808
fi
 
14809
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_native" >&5
 
14810
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_native" >&6; }
 
14811
 
 
14812
  { echo "$as_me:$LINENO: checking if g++ supports C++0x features with -std=c++0x" >&5
 
14813
echo $ECHO_N "checking if g++ supports C++0x features with -std=c++0x... $ECHO_C" >&6; }
 
14814
if test "${ac_cv_cxx_compile_cxx0x_cxx+set}" = set; then
 
14815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14816
else
 
14817
 
 
14818
  ac_ext=cpp
 
14819
ac_cpp='$CXXCPP $CPPFLAGS'
 
14820
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14821
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14822
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14823
 
 
14824
  ac_save_CXXFLAGS="$CXXFLAGS"
 
14825
  CXXFLAGS="$CXXFLAGS -std=c++0x"
 
14826
  cat >conftest.$ac_ext <<_ACEOF
 
14827
/* confdefs.h.  */
 
14828
_ACEOF
 
14829
cat confdefs.h >>conftest.$ac_ext
 
14830
cat >>conftest.$ac_ext <<_ACEOF
 
14831
/* end confdefs.h.  */
 
14832
 
 
14833
  template <typename T>
 
14834
    struct check
 
14835
    {
 
14836
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
 
14837
    };
 
14838
 
 
14839
    typedef check<check<bool>> right_angle_brackets;
 
14840
 
 
14841
    int a;
 
14842
    decltype(a) b;
 
14843
 
 
14844
    typedef check<int> check_type;
 
14845
    check_type c;
 
14846
    check_type&& cr = c;
 
14847
int
 
14848
main ()
 
14849
{
 
14850
 
 
14851
  ;
 
14852
  return 0;
 
14853
}
 
14854
_ACEOF
 
14855
rm -f conftest.$ac_objext
 
14856
if { (ac_try="$ac_compile"
 
14857
case "(($ac_try" in
 
14858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14859
  *) ac_try_echo=$ac_try;;
 
14860
esac
 
14861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14862
  (eval "$ac_compile") 2>conftest.er1
 
14863
  ac_status=$?
 
14864
  grep -v '^ *+' conftest.er1 >conftest.err
 
14865
  rm -f conftest.er1
 
14866
  cat conftest.err >&5
 
14867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14868
  (exit $ac_status); } && {
 
14869
         test -z "$ac_cxx_werror_flag" ||
 
14870
         test ! -s conftest.err
 
14871
       } && test -s conftest.$ac_objext; then
 
14872
  ac_cv_cxx_compile_cxx0x_cxx=yes
 
14873
else
 
14874
  echo "$as_me: failed program was:" >&5
 
14875
sed 's/^/| /' conftest.$ac_ext >&5
 
14876
 
 
14877
        ac_cv_cxx_compile_cxx0x_cxx=no
 
14878
fi
 
14879
 
 
14880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14881
  CXXFLAGS="$ac_save_CXXFLAGS"
 
14882
  ac_ext=c
 
14883
ac_cpp='$CPP $CPPFLAGS'
 
14884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14887
 
 
14888
 
 
14889
fi
 
14890
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_cxx" >&5
 
14891
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_cxx" >&6; }
 
14892
 
 
14893
  { echo "$as_me:$LINENO: checking if g++ supports C++0x features with -std=gnu++0x" >&5
 
14894
echo $ECHO_N "checking if g++ supports C++0x features with -std=gnu++0x... $ECHO_C" >&6; }
 
14895
if test "${ac_cv_cxx_compile_cxx0x_gxx+set}" = set; then
 
14896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14897
else
 
14898
 
 
14899
  ac_ext=cpp
 
14900
ac_cpp='$CXXCPP $CPPFLAGS'
 
14901
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14902
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14903
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14904
 
 
14905
  ac_save_CXXFLAGS="$CXXFLAGS"
 
14906
  CXXFLAGS="$CXXFLAGS -std=gnu++0x"
 
14907
  cat >conftest.$ac_ext <<_ACEOF
 
14908
/* confdefs.h.  */
 
14909
_ACEOF
 
14910
cat confdefs.h >>conftest.$ac_ext
 
14911
cat >>conftest.$ac_ext <<_ACEOF
 
14912
/* end confdefs.h.  */
 
14913
 
 
14914
  template <typename T>
 
14915
    struct check
 
14916
    {
 
14917
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
 
14918
    };
 
14919
 
 
14920
    typedef check<check<bool>> right_angle_brackets;
 
14921
 
 
14922
    int a;
 
14923
    decltype(a) b;
 
14924
 
 
14925
    typedef check<int> check_type;
 
14926
    check_type c;
 
14927
    check_type&& cr = c;
 
14928
int
 
14929
main ()
 
14930
{
 
14931
 
 
14932
  ;
 
14933
  return 0;
 
14934
}
 
14935
_ACEOF
 
14936
rm -f conftest.$ac_objext
 
14937
if { (ac_try="$ac_compile"
 
14938
case "(($ac_try" in
 
14939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14940
  *) ac_try_echo=$ac_try;;
 
14941
esac
 
14942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14943
  (eval "$ac_compile") 2>conftest.er1
 
14944
  ac_status=$?
 
14945
  grep -v '^ *+' conftest.er1 >conftest.err
 
14946
  rm -f conftest.er1
 
14947
  cat conftest.err >&5
 
14948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14949
  (exit $ac_status); } && {
 
14950
         test -z "$ac_cxx_werror_flag" ||
 
14951
         test ! -s conftest.err
 
14952
       } && test -s conftest.$ac_objext; then
 
14953
  ac_cv_cxx_compile_cxx0x_gxx=yes
 
14954
else
 
14955
  echo "$as_me: failed program was:" >&5
 
14956
sed 's/^/| /' conftest.$ac_ext >&5
 
14957
 
 
14958
        ac_cv_cxx_compile_cxx0x_gxx=no
 
14959
fi
 
14960
 
 
14961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14962
  CXXFLAGS="$ac_save_CXXFLAGS"
 
14963
  ac_ext=c
 
14964
ac_cpp='$CPP $CPPFLAGS'
 
14965
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14966
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14967
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14968
 
 
14969
 
 
14970
fi
 
14971
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_gxx" >&5
 
14972
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_gxx" >&6; }
 
14973
 
 
14974
  if test "$ac_cv_cxx_compile_cxx0x_native" = yes ||
 
14975
     test "$ac_cv_cxx_compile_cxx0x_cxx" = yes ||
 
14976
     test "$ac_cv_cxx_compile_cxx0x_gxx" = yes; then
 
14977
 
 
14978
cat >>confdefs.h <<\_ACEOF
 
14979
#define HAVE_STDCXX_0X
 
14980
_ACEOF
 
14981
 
 
14982
  fi
 
14983
 
 
14984
 
 
14985
 
 
14986
 
 
14987
  ac_cv_building_from_vc=no
 
14988
 
 
14989
  if test -d "${srcdir}/.bzr"; then
 
14990
 
 
14991
    ac_cv_building_from_bzr=yes
 
14992
    ac_cv_building_from_vc=yes
 
14993
 
 
14994
else
 
14995
 
 
14996
    ac_cv_building_from_bzr=no
 
14997
 
 
14998
fi
 
14999
 
 
15000
 
 
15001
  if test -d "${srcdir}/.svn"; then
 
15002
 
 
15003
    ac_cv_building_from_svn=yes
 
15004
    ac_cv_building_from_vc=yes
 
15005
 
 
15006
else
 
15007
 
 
15008
    ac_cv_building_from_svn=no
 
15009
 
 
15010
fi
 
15011
 
 
15012
 
 
15013
  if test -d "${srcdir}/.hg"; then
 
15014
 
 
15015
    ac_cv_building_from_hg=yes
 
15016
    ac_cv_building_from_vc=yes
 
15017
 
 
15018
else
 
15019
 
 
15020
    ac_cv_building_from_hg=no
 
15021
 
 
15022
fi
 
15023
 
 
15024
 
 
15025
 
 
15026
 
 
15027
 
 
15028
  acl_libdirstem=lib
 
15029
  acl_libdirstem2=
 
15030
  case "$host_os" in
 
15031
    solaris*)
 
15032
                                    { echo "$as_me:$LINENO: checking for 64-bit host" >&5
 
15033
echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
 
15034
if test "${gl_cv_solaris_64bit+set}" = set; then
 
15035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15036
else
 
15037
  if test "$cross_compiling" = yes; then
 
15038
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
15039
See \`config.log' for more details." >&5
 
15040
echo "$as_me: error: cannot run test program while cross compiling
 
15041
See \`config.log' for more details." >&2;}
 
15042
   { (exit 1); exit 1; }; }
 
15043
else
 
15044
  cat >conftest.$ac_ext <<_ACEOF
 
15045
 
 
15046
           /* confdefs.h.  */
 
15047
_ACEOF
 
15048
cat confdefs.h >>conftest.$ac_ext
 
15049
cat >>conftest.$ac_ext <<_ACEOF
 
15050
/* end confdefs.h.  */
 
15051
 
 
15052
int
 
15053
main ()
 
15054
{
 
15055
 
 
15056
             return sizeof(void*) == 8 ? 0 : 1;
 
15057
 
 
15058
  ;
 
15059
  return 0;
 
15060
}
 
15061
 
 
15062
_ACEOF
 
15063
rm -f conftest$ac_exeext
 
15064
if { (ac_try="$ac_link"
 
15065
case "(($ac_try" in
 
15066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15067
  *) ac_try_echo=$ac_try;;
 
15068
esac
 
15069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15070
  (eval "$ac_link") 2>&5
 
15071
  ac_status=$?
 
15072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15073
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15074
  { (case "(($ac_try" in
 
15075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15076
  *) ac_try_echo=$ac_try;;
 
15077
esac
 
15078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15079
  (eval "$ac_try") 2>&5
 
15080
  ac_status=$?
 
15081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15082
  (exit $ac_status); }; }; then
 
15083
  gl_cv_solaris_64bit=yes
 
15084
else
 
15085
  echo "$as_me: program exited with status $ac_status" >&5
 
15086
echo "$as_me: failed program was:" >&5
 
15087
sed 's/^/| /' conftest.$ac_ext >&5
 
15088
 
 
15089
( exit $ac_status )
 
15090
gl_cv_solaris_64bit=no
 
15091
fi
 
15092
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15093
fi
 
15094
 
 
15095
 
 
15096
 
 
15097
fi
 
15098
{ echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
 
15099
echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
 
15100
      if test $gl_cv_solaris_64bit = yes; then
 
15101
        acl_libdirstem=lib/64
 
15102
        case "$host_cpu" in
 
15103
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
15104
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
15105
        esac
 
15106
      fi
 
15107
      ;;
 
15108
    *)
 
15109
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
15110
      if test -n "$searchpath"; then
 
15111
        acl_save_IFS="${IFS=    }"; IFS=":"
 
15112
        for searchdir in $searchpath; do
 
15113
          if test -d "$searchdir"; then
 
15114
            case "$searchdir" in
 
15115
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
15116
              *) searchdir=`cd "$searchdir" && pwd`
 
15117
                 case "$searchdir" in
 
15118
                   */lib64 ) acl_libdirstem=lib64 ;;
 
15119
                 esac ;;
 
15120
            esac
 
15121
          fi
 
15122
        done
 
15123
        IFS="$acl_save_IFS"
 
15124
      fi
 
15125
      ;;
 
15126
  esac
 
15127
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
15128
 
 
15129
 
 
15130
      if test "X$prefix" = "XNONE"; then
 
15131
    acl_final_prefix="$ac_default_prefix"
 
15132
  else
 
15133
    acl_final_prefix="$prefix"
 
15134
  fi
 
15135
  if test "X$exec_prefix" = "XNONE"; then
 
15136
    acl_final_exec_prefix='${prefix}'
 
15137
  else
 
15138
    acl_final_exec_prefix="$exec_prefix"
 
15139
  fi
 
15140
  acl_save_prefix="$prefix"
 
15141
  prefix="$acl_final_prefix"
 
15142
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
15143
  prefix="$acl_save_prefix"
 
15144
 
 
15145
 
 
15146
for ac_header in stdlib.h
 
15147
do
 
15148
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15149
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15150
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15151
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15152
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15154
fi
 
15155
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15156
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15157
echo "${ECHO_T}$ac_res" >&6; }
 
15158
else
 
15159
  # Is the header compilable?
 
15160
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15161
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
15162
cat >conftest.$ac_ext <<_ACEOF
 
15163
/* confdefs.h.  */
 
15164
_ACEOF
 
15165
cat confdefs.h >>conftest.$ac_ext
 
15166
cat >>conftest.$ac_ext <<_ACEOF
 
15167
/* end confdefs.h.  */
 
15168
$ac_includes_default
 
15169
#include <$ac_header>
 
15170
_ACEOF
 
15171
rm -f conftest.$ac_objext
 
15172
if { (ac_try="$ac_compile"
 
15173
case "(($ac_try" in
 
15174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15175
  *) ac_try_echo=$ac_try;;
 
15176
esac
 
15177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15178
  (eval "$ac_compile") 2>conftest.er1
 
15179
  ac_status=$?
 
15180
  grep -v '^ *+' conftest.er1 >conftest.err
 
15181
  rm -f conftest.er1
 
15182
  cat conftest.err >&5
 
15183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15184
  (exit $ac_status); } && {
 
15185
         test -z "$ac_c_werror_flag" ||
 
15186
         test ! -s conftest.err
 
15187
       } && test -s conftest.$ac_objext; then
 
15188
  ac_header_compiler=yes
 
15189
else
 
15190
  echo "$as_me: failed program was:" >&5
 
15191
sed 's/^/| /' conftest.$ac_ext >&5
 
15192
 
 
15193
        ac_header_compiler=no
 
15194
fi
 
15195
 
 
15196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15197
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15198
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
15199
 
 
15200
# Is the header present?
 
15201
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15202
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
15203
cat >conftest.$ac_ext <<_ACEOF
 
15204
/* confdefs.h.  */
 
15205
_ACEOF
 
15206
cat confdefs.h >>conftest.$ac_ext
 
15207
cat >>conftest.$ac_ext <<_ACEOF
 
15208
/* end confdefs.h.  */
 
15209
#include <$ac_header>
 
15210
_ACEOF
 
15211
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15212
case "(($ac_try" in
 
15213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15214
  *) ac_try_echo=$ac_try;;
 
15215
esac
 
15216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15217
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15218
  ac_status=$?
 
15219
  grep -v '^ *+' conftest.er1 >conftest.err
 
15220
  rm -f conftest.er1
 
15221
  cat conftest.err >&5
 
15222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15223
  (exit $ac_status); } >/dev/null && {
 
15224
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15225
         test ! -s conftest.err
 
15226
       }; then
 
15227
  ac_header_preproc=yes
 
15228
else
 
15229
  echo "$as_me: failed program was:" >&5
 
15230
sed 's/^/| /' conftest.$ac_ext >&5
 
15231
 
 
15232
  ac_header_preproc=no
 
15233
fi
 
15234
 
 
15235
rm -f conftest.err conftest.$ac_ext
 
15236
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15237
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
15238
 
 
15239
# So?  What about this header?
 
15240
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15241
  yes:no: )
 
15242
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15243
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15244
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15245
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15246
    ac_header_preproc=yes
 
15247
    ;;
 
15248
  no:yes:* )
 
15249
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15250
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15251
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15252
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15253
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15254
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15255
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15256
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15257
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15258
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15259
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15260
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15261
    ( cat <<\_ASBOX
 
15262
## --------------------------------------------- ##
 
15263
## Report this to https://launchpad.net/gearmand ##
 
15264
## --------------------------------------------- ##
 
15265
_ASBOX
 
15266
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
15267
    ;;
 
15268
esac
 
15269
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15273
else
 
15274
  eval "$as_ac_Header=\$ac_header_preproc"
 
15275
fi
 
15276
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15277
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15278
echo "${ECHO_T}$ac_res" >&6; }
 
15279
 
 
15280
fi
 
15281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15282
  cat >>confdefs.h <<_ACEOF
 
15283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15284
_ACEOF
 
15285
 
 
15286
fi
 
15287
 
 
15288
done
 
15289
 
 
15290
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
15291
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
15292
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
15293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15294
else
 
15295
  if test "$cross_compiling" = yes; then
 
15296
  ac_cv_func_malloc_0_nonnull=no
 
15297
else
 
15298
  cat >conftest.$ac_ext <<_ACEOF
 
15299
/* confdefs.h.  */
 
15300
_ACEOF
 
15301
cat confdefs.h >>conftest.$ac_ext
 
15302
cat >>conftest.$ac_ext <<_ACEOF
 
15303
/* end confdefs.h.  */
 
15304
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
15305
# include <stdlib.h>
 
15306
#else
 
15307
char *malloc ();
 
15308
#endif
 
15309
 
 
15310
int
 
15311
main ()
 
15312
{
 
15313
return ! malloc (0);
 
15314
  ;
 
15315
  return 0;
 
15316
}
 
15317
_ACEOF
 
15318
rm -f conftest$ac_exeext
 
15319
if { (ac_try="$ac_link"
 
15320
case "(($ac_try" in
 
15321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15322
  *) ac_try_echo=$ac_try;;
 
15323
esac
 
15324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15325
  (eval "$ac_link") 2>&5
 
15326
  ac_status=$?
 
15327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15328
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15329
  { (case "(($ac_try" in
 
15330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15331
  *) ac_try_echo=$ac_try;;
 
15332
esac
 
15333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15334
  (eval "$ac_try") 2>&5
 
15335
  ac_status=$?
 
15336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15337
  (exit $ac_status); }; }; then
 
15338
  ac_cv_func_malloc_0_nonnull=yes
 
15339
else
 
15340
  echo "$as_me: program exited with status $ac_status" >&5
 
15341
echo "$as_me: failed program was:" >&5
 
15342
sed 's/^/| /' conftest.$ac_ext >&5
 
15343
 
 
15344
( exit $ac_status )
 
15345
ac_cv_func_malloc_0_nonnull=no
 
15346
fi
 
15347
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15348
fi
 
15349
 
 
15350
 
 
15351
fi
 
15352
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
15353
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
15354
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
15355
 
 
15356
cat >>confdefs.h <<\_ACEOF
 
15357
#define HAVE_MALLOC 1
 
15358
_ACEOF
 
15359
 
 
15360
else
 
15361
  cat >>confdefs.h <<\_ACEOF
 
15362
#define HAVE_MALLOC 0
 
15363
_ACEOF
 
15364
 
 
15365
   case " $LIBOBJS " in
 
15366
  *" malloc.$ac_objext "* ) ;;
 
15367
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
15368
 ;;
 
15369
esac
 
15370
 
 
15371
 
 
15372
cat >>confdefs.h <<\_ACEOF
 
15373
#define malloc rpl_malloc
 
15374
_ACEOF
 
15375
 
 
15376
fi
 
15377
 
 
15378
 
 
15379
 
 
15380
 
 
15381
for ac_header in stdlib.h
 
15382
do
 
15383
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15384
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15385
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15386
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15389
fi
 
15390
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15391
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15392
echo "${ECHO_T}$ac_res" >&6; }
 
15393
else
 
15394
  # Is the header compilable?
 
15395
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15396
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
15397
cat >conftest.$ac_ext <<_ACEOF
 
15398
/* confdefs.h.  */
 
15399
_ACEOF
 
15400
cat confdefs.h >>conftest.$ac_ext
 
15401
cat >>conftest.$ac_ext <<_ACEOF
 
15402
/* end confdefs.h.  */
 
15403
$ac_includes_default
 
15404
#include <$ac_header>
 
15405
_ACEOF
 
15406
rm -f conftest.$ac_objext
 
15407
if { (ac_try="$ac_compile"
 
15408
case "(($ac_try" in
 
15409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15410
  *) ac_try_echo=$ac_try;;
 
15411
esac
 
15412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15413
  (eval "$ac_compile") 2>conftest.er1
 
15414
  ac_status=$?
 
15415
  grep -v '^ *+' conftest.er1 >conftest.err
 
15416
  rm -f conftest.er1
 
15417
  cat conftest.err >&5
 
15418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15419
  (exit $ac_status); } && {
 
15420
         test -z "$ac_c_werror_flag" ||
 
15421
         test ! -s conftest.err
 
15422
       } && test -s conftest.$ac_objext; then
 
15423
  ac_header_compiler=yes
 
15424
else
 
15425
  echo "$as_me: failed program was:" >&5
 
15426
sed 's/^/| /' conftest.$ac_ext >&5
 
15427
 
 
15428
        ac_header_compiler=no
 
15429
fi
 
15430
 
 
15431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15432
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15433
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
15434
 
 
15435
# Is the header present?
 
15436
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15437
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
15438
cat >conftest.$ac_ext <<_ACEOF
 
15439
/* confdefs.h.  */
 
15440
_ACEOF
 
15441
cat confdefs.h >>conftest.$ac_ext
 
15442
cat >>conftest.$ac_ext <<_ACEOF
 
15443
/* end confdefs.h.  */
 
15444
#include <$ac_header>
 
15445
_ACEOF
 
15446
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15447
case "(($ac_try" in
 
15448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15449
  *) ac_try_echo=$ac_try;;
 
15450
esac
 
15451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15452
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15453
  ac_status=$?
 
15454
  grep -v '^ *+' conftest.er1 >conftest.err
 
15455
  rm -f conftest.er1
 
15456
  cat conftest.err >&5
 
15457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15458
  (exit $ac_status); } >/dev/null && {
 
15459
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15460
         test ! -s conftest.err
 
15461
       }; then
 
15462
  ac_header_preproc=yes
 
15463
else
 
15464
  echo "$as_me: failed program was:" >&5
 
15465
sed 's/^/| /' conftest.$ac_ext >&5
 
15466
 
 
15467
  ac_header_preproc=no
 
15468
fi
 
15469
 
 
15470
rm -f conftest.err conftest.$ac_ext
 
15471
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15472
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
15473
 
 
15474
# So?  What about this header?
 
15475
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15476
  yes:no: )
 
15477
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15478
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15479
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15480
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15481
    ac_header_preproc=yes
 
15482
    ;;
 
15483
  no:yes:* )
 
15484
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15485
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15486
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15487
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15488
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15489
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15490
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15491
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15492
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15493
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15494
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15495
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15496
    ( cat <<\_ASBOX
 
15497
## --------------------------------------------- ##
 
15498
## Report this to https://launchpad.net/gearmand ##
 
15499
## --------------------------------------------- ##
 
15500
_ASBOX
 
15501
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
15502
    ;;
 
15503
esac
 
15504
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15505
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15506
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15508
else
 
15509
  eval "$as_ac_Header=\$ac_header_preproc"
 
15510
fi
 
15511
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15512
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15513
echo "${ECHO_T}$ac_res" >&6; }
 
15514
 
 
15515
fi
 
15516
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15517
  cat >>confdefs.h <<_ACEOF
 
15518
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15519
_ACEOF
 
15520
 
 
15521
fi
 
15522
 
 
15523
done
 
15524
 
 
15525
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
15526
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
 
15527
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
 
15528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15529
else
 
15530
  if test "$cross_compiling" = yes; then
 
15531
  ac_cv_func_realloc_0_nonnull=no
 
15532
else
 
15533
  cat >conftest.$ac_ext <<_ACEOF
 
15534
/* confdefs.h.  */
 
15535
_ACEOF
 
15536
cat confdefs.h >>conftest.$ac_ext
 
15537
cat >>conftest.$ac_ext <<_ACEOF
 
15538
/* end confdefs.h.  */
 
15539
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
15540
# include <stdlib.h>
 
15541
#else
 
15542
char *realloc ();
 
15543
#endif
 
15544
 
 
15545
int
 
15546
main ()
 
15547
{
 
15548
return ! realloc (0, 0);
 
15549
  ;
 
15550
  return 0;
 
15551
}
 
15552
_ACEOF
 
15553
rm -f conftest$ac_exeext
 
15554
if { (ac_try="$ac_link"
 
15555
case "(($ac_try" in
 
15556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15557
  *) ac_try_echo=$ac_try;;
 
15558
esac
 
15559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15560
  (eval "$ac_link") 2>&5
 
15561
  ac_status=$?
 
15562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15563
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15564
  { (case "(($ac_try" in
 
15565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15566
  *) ac_try_echo=$ac_try;;
 
15567
esac
 
15568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15569
  (eval "$ac_try") 2>&5
 
15570
  ac_status=$?
 
15571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15572
  (exit $ac_status); }; }; then
 
15573
  ac_cv_func_realloc_0_nonnull=yes
 
15574
else
 
15575
  echo "$as_me: program exited with status $ac_status" >&5
 
15576
echo "$as_me: failed program was:" >&5
 
15577
sed 's/^/| /' conftest.$ac_ext >&5
 
15578
 
 
15579
( exit $ac_status )
 
15580
ac_cv_func_realloc_0_nonnull=no
 
15581
fi
 
15582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15583
fi
 
15584
 
 
15585
 
 
15586
fi
 
15587
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
15588
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
 
15589
if test $ac_cv_func_realloc_0_nonnull = yes; then
 
15590
 
 
15591
cat >>confdefs.h <<\_ACEOF
 
15592
#define HAVE_REALLOC 1
 
15593
_ACEOF
 
15594
 
 
15595
else
 
15596
  cat >>confdefs.h <<\_ACEOF
 
15597
#define HAVE_REALLOC 0
 
15598
_ACEOF
 
15599
 
 
15600
   case " $LIBOBJS " in
 
15601
  *" realloc.$ac_objext "* ) ;;
 
15602
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
15603
 ;;
 
15604
esac
 
15605
 
 
15606
 
 
15607
cat >>confdefs.h <<\_ACEOF
 
15608
#define realloc rpl_realloc
 
15609
_ACEOF
 
15610
 
 
15611
fi
 
15612
 
 
15613
 
 
15614
 
 
15615
 
 
15616
 
 
15617
 
 
15618
 
 
15619
 
 
15620
 
 
15621
 
 
15622
 
 
15623
 
 
15624
 
 
15625
 
 
15626
  # We need to prevent canonical target
 
15627
  # from injecting -O2 into CFLAGS - but we won't modify anything if we have
 
15628
  # set CFLAGS on the command line, since that should take ultimate precedence
 
15629
  if test "x${ac_cv_env_CFLAGS_set}" = "x"; then
 
15630
  CFLAGS=""
 
15631
fi
 
15632
 
 
15633
  if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
 
15634
  CXXFLAGS=""
 
15635
fi
 
15636
 
 
15637
 
 
15638
  { echo "$as_me:$LINENO: checking target system type" >&5
 
15639
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
15640
if test "${ac_cv_target+set}" = set; then
 
15641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15642
else
 
15643
  if test "x$target_alias" = x; then
 
15644
  ac_cv_target=$ac_cv_host
 
15645
else
 
15646
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
15647
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
15648
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
15649
   { (exit 1); exit 1; }; }
 
15650
fi
 
15651
 
 
15652
fi
 
15653
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
15654
echo "${ECHO_T}$ac_cv_target" >&6; }
 
15655
case $ac_cv_target in
 
15656
*-*-*) ;;
 
15657
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
15658
echo "$as_me: error: invalid value of canonical target" >&2;}
 
15659
   { (exit 1); exit 1; }; };;
 
15660
esac
 
15661
target=$ac_cv_target
 
15662
ac_save_IFS=$IFS; IFS='-'
 
15663
set x $ac_cv_target
 
15664
shift
 
15665
target_cpu=$1
 
15666
target_vendor=$2
 
15667
shift; shift
 
15668
# Remember, the first character of IFS is used to create $*,
 
15669
# except with old shells:
 
15670
target_os=$*
 
15671
IFS=$ac_save_IFS
 
15672
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
15673
 
 
15674
 
 
15675
# The aliases save the names the user supplied, while $host etc.
 
15676
# will get canonicalized.
 
15677
test -n "$target_alias" &&
 
15678
  test "$program_prefix$program_suffix$program_transform_name" = \
 
15679
    NONENONEs,x,x, &&
 
15680
  program_prefix=${target_alias}-
 
15681
 
 
15682
  if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
15683
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
15684
  # is not polluted with repeated "-I."
 
15685
  am__isrc=' -I$(srcdir)'
 
15686
  # test to see if srcdir already configured
 
15687
  if test -f $srcdir/config.status; then
 
15688
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
15689
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
15690
   { (exit 1); exit 1; }; }
 
15691
  fi
 
15692
fi
 
15693
 
 
15694
# test whether we have cygpath
 
15695
if test -z "$CYGPATH_W"; then
 
15696
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
15697
    CYGPATH_W='cygpath -w'
 
15698
  else
 
15699
    CYGPATH_W=echo
 
15700
  fi
 
15701
fi
 
15702
 
 
15703
 
 
15704
# Define the identity of the package.
 
15705
 PACKAGE='gearmand'
 
15706
 VERSION='0.9'
 
15707
 
 
15708
 
 
15709
cat >>confdefs.h <<_ACEOF
 
15710
#define PACKAGE "$PACKAGE"
 
15711
_ACEOF
 
15712
 
 
15713
 
 
15714
cat >>confdefs.h <<_ACEOF
 
15715
#define VERSION "$VERSION"
 
15716
_ACEOF
 
15717
 
 
15718
# Some tools Automake needs.
 
15719
 
 
15720
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
15721
 
 
15722
 
 
15723
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
15724
 
 
15725
 
 
15726
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
15727
 
 
15728
 
 
15729
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
15730
 
 
15731
 
 
15732
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
15733
 
 
15734
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
15735
 
 
15736
# Installed binaries are usually stripped using `strip' when the user
 
15737
# run `make install-strip'.  However `strip' might not be the right
 
15738
# tool to use in cross-compilation environments, therefore Automake
 
15739
# will honor the `STRIP' environment variable to overrule this program.
 
15740
if test "$cross_compiling" != no; then
 
15741
  if test -n "$ac_tool_prefix"; then
 
15742
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
15743
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
15744
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
15746
if test "${ac_cv_prog_STRIP+set}" = set; then
 
15747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15748
else
 
15749
  if test -n "$STRIP"; then
 
15750
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
15751
else
 
15752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15753
for as_dir in $PATH
 
15754
do
 
15755
  IFS=$as_save_IFS
 
15756
  test -z "$as_dir" && as_dir=.
 
15757
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15758
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15759
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
15760
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15761
    break 2
 
15762
  fi
 
15763
done
 
15764
done
 
15765
IFS=$as_save_IFS
 
15766
 
 
15767
fi
 
15768
fi
 
15769
STRIP=$ac_cv_prog_STRIP
 
15770
if test -n "$STRIP"; then
 
15771
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
15772
echo "${ECHO_T}$STRIP" >&6; }
 
15773
else
 
15774
  { echo "$as_me:$LINENO: result: no" >&5
 
15775
echo "${ECHO_T}no" >&6; }
 
15776
fi
 
15777
 
 
15778
 
 
15779
fi
 
15780
if test -z "$ac_cv_prog_STRIP"; then
 
15781
  ac_ct_STRIP=$STRIP
 
15782
  # Extract the first word of "strip", so it can be a program name with args.
 
15783
set dummy strip; ac_word=$2
 
15784
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
15786
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
15787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15788
else
 
15789
  if test -n "$ac_ct_STRIP"; then
 
15790
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
15791
else
 
15792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15793
for as_dir in $PATH
 
15794
do
 
15795
  IFS=$as_save_IFS
 
15796
  test -z "$as_dir" && as_dir=.
 
15797
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15799
    ac_cv_prog_ac_ct_STRIP="strip"
 
15800
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15801
    break 2
 
15802
  fi
 
15803
done
 
15804
done
 
15805
IFS=$as_save_IFS
 
15806
 
 
15807
fi
 
15808
fi
 
15809
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
15810
if test -n "$ac_ct_STRIP"; then
 
15811
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
15812
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
15813
else
 
15814
  { echo "$as_me:$LINENO: result: no" >&5
 
15815
echo "${ECHO_T}no" >&6; }
 
15816
fi
 
15817
 
 
15818
  if test "x$ac_ct_STRIP" = x; then
 
15819
    STRIP=":"
 
15820
  else
 
15821
    case $cross_compiling:$ac_tool_warned in
 
15822
yes:)
 
15823
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
15824
whose name does not start with the host triplet.  If you think this
 
15825
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
15826
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
15827
whose name does not start with the host triplet.  If you think this
 
15828
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
15829
ac_tool_warned=yes ;;
 
15830
esac
 
15831
    STRIP=$ac_ct_STRIP
 
15832
  fi
 
15833
else
 
15834
  STRIP="$ac_cv_prog_STRIP"
 
15835
fi
 
15836
 
 
15837
fi
 
15838
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
15839
 
 
15840
# We need awk for the "check" target.  The system "awk" is bad on
 
15841
# some platforms.
 
15842
# Always define AMTAR for backward compatibility.
 
15843
 
 
15844
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
15845
 
 
15846
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
15847
 
 
15848
 
 
15849
 
 
15850
 
 
15851
 
 
15852
 
 
15853
 
 
15854
 
 
15855
 
 
15856
 
 
15857
 
 
15858
 
 
15859
      ac_ext=cpp
 
15860
ac_cpp='$CXXCPP $CPPFLAGS'
 
15861
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15862
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15863
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15864
if test -z "$CXX"; then
 
15865
  if test -n "$CCC"; then
 
15866
    CXX=$CCC
 
15867
  else
 
15868
    if test -n "$ac_tool_prefix"; then
 
15869
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
15870
  do
 
15871
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15872
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15873
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
15875
if test "${ac_cv_prog_CXX+set}" = set; then
 
15876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15877
else
 
15878
  if test -n "$CXX"; then
 
15879
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
15880
else
 
15881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15882
for as_dir in $PATH
 
15883
do
 
15884
  IFS=$as_save_IFS
 
15885
  test -z "$as_dir" && as_dir=.
 
15886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15888
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
15889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15890
    break 2
 
15891
  fi
 
15892
done
 
15893
done
 
15894
IFS=$as_save_IFS
 
15895
 
 
15896
fi
 
15897
fi
 
15898
CXX=$ac_cv_prog_CXX
 
15899
if test -n "$CXX"; then
 
15900
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
15901
echo "${ECHO_T}$CXX" >&6; }
 
15902
else
 
15903
  { echo "$as_me:$LINENO: result: no" >&5
 
15904
echo "${ECHO_T}no" >&6; }
 
15905
fi
 
15906
 
 
15907
 
 
15908
    test -n "$CXX" && break
 
15909
  done
 
15910
fi
 
15911
if test -z "$CXX"; then
 
15912
  ac_ct_CXX=$CXX
 
15913
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
15914
do
 
15915
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15916
set dummy $ac_prog; ac_word=$2
 
15917
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
15919
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
15920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15921
else
 
15922
  if test -n "$ac_ct_CXX"; then
 
15923
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
15924
else
 
15925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15926
for as_dir in $PATH
 
15927
do
 
15928
  IFS=$as_save_IFS
 
15929
  test -z "$as_dir" && as_dir=.
 
15930
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15931
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15932
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
15933
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15934
    break 2
 
15935
  fi
 
15936
done
 
15937
done
 
15938
IFS=$as_save_IFS
 
15939
 
 
15940
fi
 
15941
fi
 
15942
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
15943
if test -n "$ac_ct_CXX"; then
 
15944
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
15945
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
15946
else
 
15947
  { echo "$as_me:$LINENO: result: no" >&5
 
15948
echo "${ECHO_T}no" >&6; }
 
15949
fi
 
15950
 
 
15951
 
 
15952
  test -n "$ac_ct_CXX" && break
 
15953
done
 
15954
 
 
15955
  if test "x$ac_ct_CXX" = x; then
 
15956
    CXX="g++"
 
15957
  else
 
15958
    case $cross_compiling:$ac_tool_warned in
 
15959
yes:)
 
15960
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
15961
whose name does not start with the host triplet.  If you think this
 
15962
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
15963
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
15964
whose name does not start with the host triplet.  If you think this
 
15965
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
15966
ac_tool_warned=yes ;;
 
15967
esac
 
15968
    CXX=$ac_ct_CXX
 
15969
  fi
 
15970
fi
 
15971
 
 
15972
  fi
 
15973
fi
 
15974
# Provide some information about the compiler.
 
15975
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
15976
ac_compiler=`set X $ac_compile; echo $2`
 
15977
{ (ac_try="$ac_compiler --version >&5"
 
15978
case "(($ac_try" in
 
15979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15980
  *) ac_try_echo=$ac_try;;
 
15981
esac
 
15982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15983
  (eval "$ac_compiler --version >&5") 2>&5
 
15984
  ac_status=$?
 
15985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15986
  (exit $ac_status); }
 
15987
{ (ac_try="$ac_compiler -v >&5"
 
15988
case "(($ac_try" in
 
15989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15990
  *) ac_try_echo=$ac_try;;
 
15991
esac
 
15992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15993
  (eval "$ac_compiler -v >&5") 2>&5
 
15994
  ac_status=$?
 
15995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15996
  (exit $ac_status); }
 
15997
{ (ac_try="$ac_compiler -V >&5"
 
15998
case "(($ac_try" in
 
15999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16000
  *) ac_try_echo=$ac_try;;
 
16001
esac
 
16002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16003
  (eval "$ac_compiler -V >&5") 2>&5
 
16004
  ac_status=$?
 
16005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16006
  (exit $ac_status); }
 
16007
 
 
16008
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
16009
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
16010
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
16011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16012
else
 
16013
  cat >conftest.$ac_ext <<_ACEOF
 
16014
/* confdefs.h.  */
 
16015
_ACEOF
 
16016
cat confdefs.h >>conftest.$ac_ext
 
16017
cat >>conftest.$ac_ext <<_ACEOF
 
16018
/* end confdefs.h.  */
 
16019
 
 
16020
int
 
16021
main ()
 
16022
{
 
16023
#ifndef __GNUC__
 
16024
       choke me
 
16025
#endif
 
16026
 
 
16027
  ;
 
16028
  return 0;
 
16029
}
 
16030
_ACEOF
 
16031
rm -f conftest.$ac_objext
 
16032
if { (ac_try="$ac_compile"
 
16033
case "(($ac_try" in
 
16034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16035
  *) ac_try_echo=$ac_try;;
 
16036
esac
 
16037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16038
  (eval "$ac_compile") 2>conftest.er1
 
16039
  ac_status=$?
 
16040
  grep -v '^ *+' conftest.er1 >conftest.err
 
16041
  rm -f conftest.er1
 
16042
  cat conftest.err >&5
 
16043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16044
  (exit $ac_status); } && {
 
16045
         test -z "$ac_cxx_werror_flag" ||
 
16046
         test ! -s conftest.err
 
16047
       } && test -s conftest.$ac_objext; then
 
16048
  ac_compiler_gnu=yes
 
16049
else
 
16050
  echo "$as_me: failed program was:" >&5
 
16051
sed 's/^/| /' conftest.$ac_ext >&5
 
16052
 
 
16053
        ac_compiler_gnu=no
 
16054
fi
 
16055
 
 
16056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16057
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
16058
 
 
16059
fi
 
16060
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
16061
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
16062
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
16063
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
16064
ac_save_CXXFLAGS=$CXXFLAGS
 
16065
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
16066
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
16067
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
16068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16069
else
 
16070
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
16071
   ac_cxx_werror_flag=yes
 
16072
   ac_cv_prog_cxx_g=no
 
16073
   CXXFLAGS="-g"
 
16074
   cat >conftest.$ac_ext <<_ACEOF
 
16075
/* confdefs.h.  */
 
16076
_ACEOF
 
16077
cat confdefs.h >>conftest.$ac_ext
 
16078
cat >>conftest.$ac_ext <<_ACEOF
 
16079
/* end confdefs.h.  */
 
16080
 
 
16081
int
 
16082
main ()
 
16083
{
 
16084
 
 
16085
  ;
 
16086
  return 0;
 
16087
}
 
16088
_ACEOF
 
16089
rm -f conftest.$ac_objext
 
16090
if { (ac_try="$ac_compile"
 
16091
case "(($ac_try" in
 
16092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16093
  *) ac_try_echo=$ac_try;;
 
16094
esac
 
16095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16096
  (eval "$ac_compile") 2>conftest.er1
 
16097
  ac_status=$?
 
16098
  grep -v '^ *+' conftest.er1 >conftest.err
 
16099
  rm -f conftest.er1
 
16100
  cat conftest.err >&5
 
16101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16102
  (exit $ac_status); } && {
 
16103
         test -z "$ac_cxx_werror_flag" ||
 
16104
         test ! -s conftest.err
 
16105
       } && test -s conftest.$ac_objext; then
 
16106
  ac_cv_prog_cxx_g=yes
 
16107
else
 
16108
  echo "$as_me: failed program was:" >&5
 
16109
sed 's/^/| /' conftest.$ac_ext >&5
 
16110
 
 
16111
        CXXFLAGS=""
 
16112
      cat >conftest.$ac_ext <<_ACEOF
 
16113
/* confdefs.h.  */
 
16114
_ACEOF
 
16115
cat confdefs.h >>conftest.$ac_ext
 
16116
cat >>conftest.$ac_ext <<_ACEOF
 
16117
/* end confdefs.h.  */
 
16118
 
 
16119
int
 
16120
main ()
 
16121
{
 
16122
 
 
16123
  ;
 
16124
  return 0;
 
16125
}
 
16126
_ACEOF
 
16127
rm -f conftest.$ac_objext
 
16128
if { (ac_try="$ac_compile"
 
16129
case "(($ac_try" in
 
16130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16131
  *) ac_try_echo=$ac_try;;
 
16132
esac
 
16133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16134
  (eval "$ac_compile") 2>conftest.er1
 
16135
  ac_status=$?
 
16136
  grep -v '^ *+' conftest.er1 >conftest.err
 
16137
  rm -f conftest.er1
 
16138
  cat conftest.err >&5
 
16139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16140
  (exit $ac_status); } && {
 
16141
         test -z "$ac_cxx_werror_flag" ||
 
16142
         test ! -s conftest.err
 
16143
       } && test -s conftest.$ac_objext; then
 
16144
  :
 
16145
else
 
16146
  echo "$as_me: failed program was:" >&5
 
16147
sed 's/^/| /' conftest.$ac_ext >&5
 
16148
 
 
16149
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
16150
         CXXFLAGS="-g"
 
16151
         cat >conftest.$ac_ext <<_ACEOF
 
16152
/* confdefs.h.  */
 
16153
_ACEOF
 
16154
cat confdefs.h >>conftest.$ac_ext
 
16155
cat >>conftest.$ac_ext <<_ACEOF
 
16156
/* end confdefs.h.  */
 
16157
 
 
16158
int
 
16159
main ()
 
16160
{
 
16161
 
 
16162
  ;
 
16163
  return 0;
 
16164
}
 
16165
_ACEOF
 
16166
rm -f conftest.$ac_objext
 
16167
if { (ac_try="$ac_compile"
 
16168
case "(($ac_try" in
 
16169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16170
  *) ac_try_echo=$ac_try;;
 
16171
esac
 
16172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16173
  (eval "$ac_compile") 2>conftest.er1
 
16174
  ac_status=$?
 
16175
  grep -v '^ *+' conftest.er1 >conftest.err
 
16176
  rm -f conftest.er1
 
16177
  cat conftest.err >&5
 
16178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16179
  (exit $ac_status); } && {
 
16180
         test -z "$ac_cxx_werror_flag" ||
 
16181
         test ! -s conftest.err
 
16182
       } && test -s conftest.$ac_objext; then
 
16183
  ac_cv_prog_cxx_g=yes
 
16184
else
 
16185
  echo "$as_me: failed program was:" >&5
 
16186
sed 's/^/| /' conftest.$ac_ext >&5
 
16187
 
 
16188
 
 
16189
fi
 
16190
 
 
16191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16192
fi
 
16193
 
 
16194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16195
fi
 
16196
 
 
16197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16198
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
16199
fi
 
16200
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
16201
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
16202
if test "$ac_test_CXXFLAGS" = set; then
 
16203
  CXXFLAGS=$ac_save_CXXFLAGS
 
16204
elif test $ac_cv_prog_cxx_g = yes; then
 
16205
  if test "$GXX" = yes; then
 
16206
    CXXFLAGS="-g -O2"
 
16207
  else
 
16208
    CXXFLAGS="-g"
 
16209
  fi
 
16210
else
 
16211
  if test "$GXX" = yes; then
 
16212
    CXXFLAGS="-O2"
 
16213
  else
 
16214
    CXXFLAGS=
 
16215
  fi
 
16216
fi
 
16217
ac_ext=c
 
16218
ac_cpp='$CPP $CPPFLAGS'
 
16219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16222
 
 
16223
depcc="$CXX"  am_compiler_list=
 
16224
 
 
16225
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
16226
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
16227
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
16228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16229
else
 
16230
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
16231
  # We make a subdir and do the tests there.  Otherwise we can end up
 
16232
  # making bogus files that we don't know about and never remove.  For
 
16233
  # instance it was reported that on HP-UX the gcc test will end up
 
16234
  # making a dummy file named `D' -- because `-MD' means `put the output
 
16235
  # in D'.
 
16236
  mkdir conftest.dir
 
16237
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
16238
  # using a relative directory.
 
16239
  cp "$am_depcomp" conftest.dir
 
16240
  cd conftest.dir
 
16241
  # We will build objects and dependencies in a subdirectory because
 
16242
  # it helps to detect inapplicable dependency modes.  For instance
 
16243
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
16244
  # side effect of compilation, but ICC will put the dependencies in
 
16245
  # the current directory while Tru64 will put them in the object
 
16246
  # directory.
 
16247
  mkdir sub
 
16248
 
 
16249
  am_cv_CXX_dependencies_compiler_type=none
 
16250
  if test "$am_compiler_list" = ""; then
 
16251
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
16252
  fi
 
16253
  for depmode in $am_compiler_list; do
 
16254
    # Setup a source with many dependencies, because some compilers
 
16255
    # like to wrap large dependency lists on column 80 (with \), and
 
16256
    # we should not choose a depcomp mode which is confused by this.
 
16257
    #
 
16258
    # We need to recreate these files for each test, as the compiler may
 
16259
    # overwrite some of them when testing with obscure command lines.
 
16260
    # This happens at least with the AIX C compiler.
 
16261
    : > sub/conftest.c
 
16262
    for i in 1 2 3 4 5 6; do
 
16263
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
16264
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
16265
      # Solaris 8's {/usr,}/bin/sh.
 
16266
      touch sub/conftst$i.h
 
16267
    done
 
16268
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
16269
 
 
16270
    case $depmode in
 
16271
    nosideeffect)
 
16272
      # after this tag, mechanisms are not by side-effect, so they'll
 
16273
      # only be used when explicitly requested
 
16274
      if test "x$enable_dependency_tracking" = xyes; then
 
16275
        continue
 
16276
      else
 
16277
        break
 
16278
      fi
 
16279
      ;;
 
16280
    none) break ;;
 
16281
    esac
 
16282
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
16283
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
16284
    # handle `-M -o', and we need to detect this.
 
16285
    if depmode=$depmode \
 
16286
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
16287
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
16288
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
16289
         >/dev/null 2>conftest.err &&
 
16290
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
16291
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
16292
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
16293
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
16294
      # icc doesn't choke on unknown options, it will just issue warnings
 
16295
      # or remarks (even with -Werror).  So we grep stderr for any message
 
16296
      # that says an option was ignored or not supported.
 
16297
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
16298
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
16299
      # The diagnosis changed in icc 8.0:
 
16300
      #   icc: Command line remark: option '-MP' not supported
 
16301
      if (grep 'ignoring option' conftest.err ||
 
16302
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
16303
        am_cv_CXX_dependencies_compiler_type=$depmode
 
16304
        break
 
16305
      fi
 
16306
    fi
 
16307
  done
 
16308
 
 
16309
  cd ..
 
16310
  rm -rf conftest.dir
 
16311
else
 
16312
  am_cv_CXX_dependencies_compiler_type=none
 
16313
fi
 
16314
 
 
16315
fi
 
16316
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
16317
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
16318
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
16319
 
 
16320
 if
 
16321
  test "x$enable_dependency_tracking" != xno \
 
16322
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
16323
  am__fastdepCXX_TRUE=
 
16324
  am__fastdepCXX_FALSE='#'
 
16325
else
 
16326
  am__fastdepCXX_TRUE='#'
 
16327
  am__fastdepCXX_FALSE=
 
16328
fi
 
16329
 
 
16330
 
 
16331
  ac_ext=c
 
16332
ac_cpp='$CPP $CPPFLAGS'
 
16333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16336
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
16337
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
16338
# On Suns, sometimes $CPP names a directory.
 
16339
if test -n "$CPP" && test -d "$CPP"; then
 
16340
  CPP=
 
16341
fi
 
16342
if test -z "$CPP"; then
 
16343
  if test "${ac_cv_prog_CPP+set}" = set; then
 
16344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16345
else
 
16346
      # Double quotes because CPP needs to be expanded
 
16347
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
16348
    do
 
16349
      ac_preproc_ok=false
 
16350
for ac_c_preproc_warn_flag in '' yes
 
16351
do
 
16352
  # Use a header file that comes with gcc, so configuring glibc
 
16353
  # with a fresh cross-compiler works.
 
16354
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16355
  # <limits.h> exists even on freestanding compilers.
 
16356
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
16357
  # not just through cpp. "Syntax error" is here to catch this case.
 
16358
  cat >conftest.$ac_ext <<_ACEOF
 
16359
/* confdefs.h.  */
 
16360
_ACEOF
 
16361
cat confdefs.h >>conftest.$ac_ext
 
16362
cat >>conftest.$ac_ext <<_ACEOF
 
16363
/* end confdefs.h.  */
 
16364
#ifdef __STDC__
 
16365
# include <limits.h>
 
16366
#else
 
16367
# include <assert.h>
 
16368
#endif
 
16369
                     Syntax error
 
16370
_ACEOF
 
16371
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16372
case "(($ac_try" in
 
16373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16374
  *) ac_try_echo=$ac_try;;
 
16375
esac
 
16376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16377
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16378
  ac_status=$?
 
16379
  grep -v '^ *+' conftest.er1 >conftest.err
 
16380
  rm -f conftest.er1
 
16381
  cat conftest.err >&5
 
16382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16383
  (exit $ac_status); } >/dev/null && {
 
16384
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16385
         test ! -s conftest.err
 
16386
       }; then
 
16387
  :
 
16388
else
 
16389
  echo "$as_me: failed program was:" >&5
 
16390
sed 's/^/| /' conftest.$ac_ext >&5
 
16391
 
 
16392
  # Broken: fails on valid input.
 
16393
continue
 
16394
fi
 
16395
 
 
16396
rm -f conftest.err conftest.$ac_ext
 
16397
 
 
16398
  # OK, works on sane cases.  Now check whether nonexistent headers
 
16399
  # can be detected and how.
 
16400
  cat >conftest.$ac_ext <<_ACEOF
 
16401
/* confdefs.h.  */
 
16402
_ACEOF
 
16403
cat confdefs.h >>conftest.$ac_ext
 
16404
cat >>conftest.$ac_ext <<_ACEOF
 
16405
/* end confdefs.h.  */
 
16406
#include <ac_nonexistent.h>
 
16407
_ACEOF
 
16408
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16409
case "(($ac_try" in
 
16410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16411
  *) ac_try_echo=$ac_try;;
 
16412
esac
 
16413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16414
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16415
  ac_status=$?
 
16416
  grep -v '^ *+' conftest.er1 >conftest.err
 
16417
  rm -f conftest.er1
 
16418
  cat conftest.err >&5
 
16419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16420
  (exit $ac_status); } >/dev/null && {
 
16421
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16422
         test ! -s conftest.err
 
16423
       }; then
 
16424
  # Broken: success on invalid input.
 
16425
continue
 
16426
else
 
16427
  echo "$as_me: failed program was:" >&5
 
16428
sed 's/^/| /' conftest.$ac_ext >&5
 
16429
 
 
16430
  # Passes both tests.
 
16431
ac_preproc_ok=:
 
16432
break
 
16433
fi
 
16434
 
 
16435
rm -f conftest.err conftest.$ac_ext
 
16436
 
 
16437
done
 
16438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
16439
rm -f conftest.err conftest.$ac_ext
 
16440
if $ac_preproc_ok; then
 
16441
  break
 
16442
fi
 
16443
 
 
16444
    done
 
16445
    ac_cv_prog_CPP=$CPP
 
16446
 
 
16447
fi
 
16448
  CPP=$ac_cv_prog_CPP
 
16449
else
 
16450
  ac_cv_prog_CPP=$CPP
 
16451
fi
 
16452
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
16453
echo "${ECHO_T}$CPP" >&6; }
 
16454
ac_preproc_ok=false
 
16455
for ac_c_preproc_warn_flag in '' yes
 
16456
do
 
16457
  # Use a header file that comes with gcc, so configuring glibc
 
16458
  # with a fresh cross-compiler works.
 
16459
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16460
  # <limits.h> exists even on freestanding compilers.
 
16461
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
16462
  # not just through cpp. "Syntax error" is here to catch this case.
 
16463
  cat >conftest.$ac_ext <<_ACEOF
 
16464
/* confdefs.h.  */
 
16465
_ACEOF
 
16466
cat confdefs.h >>conftest.$ac_ext
 
16467
cat >>conftest.$ac_ext <<_ACEOF
 
16468
/* end confdefs.h.  */
 
16469
#ifdef __STDC__
 
16470
# include <limits.h>
 
16471
#else
 
16472
# include <assert.h>
 
16473
#endif
 
16474
                     Syntax error
 
16475
_ACEOF
 
16476
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16477
case "(($ac_try" in
 
16478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16479
  *) ac_try_echo=$ac_try;;
 
16480
esac
 
16481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16482
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16483
  ac_status=$?
 
16484
  grep -v '^ *+' conftest.er1 >conftest.err
 
16485
  rm -f conftest.er1
 
16486
  cat conftest.err >&5
 
16487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16488
  (exit $ac_status); } >/dev/null && {
 
16489
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16490
         test ! -s conftest.err
 
16491
       }; then
 
16492
  :
 
16493
else
 
16494
  echo "$as_me: failed program was:" >&5
 
16495
sed 's/^/| /' conftest.$ac_ext >&5
 
16496
 
 
16497
  # Broken: fails on valid input.
 
16498
continue
 
16499
fi
 
16500
 
 
16501
rm -f conftest.err conftest.$ac_ext
 
16502
 
 
16503
  # OK, works on sane cases.  Now check whether nonexistent headers
 
16504
  # can be detected and how.
 
16505
  cat >conftest.$ac_ext <<_ACEOF
 
16506
/* confdefs.h.  */
 
16507
_ACEOF
 
16508
cat confdefs.h >>conftest.$ac_ext
 
16509
cat >>conftest.$ac_ext <<_ACEOF
 
16510
/* end confdefs.h.  */
 
16511
#include <ac_nonexistent.h>
 
16512
_ACEOF
 
16513
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
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_cpp conftest.$ac_ext") 2>conftest.er1
 
16520
  ac_status=$?
 
16521
  grep -v '^ *+' conftest.er1 >conftest.err
 
16522
  rm -f conftest.er1
 
16523
  cat conftest.err >&5
 
16524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16525
  (exit $ac_status); } >/dev/null && {
 
16526
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16527
         test ! -s conftest.err
 
16528
       }; then
 
16529
  # Broken: success on invalid input.
 
16530
continue
 
16531
else
 
16532
  echo "$as_me: failed program was:" >&5
 
16533
sed 's/^/| /' conftest.$ac_ext >&5
 
16534
 
 
16535
  # Passes both tests.
 
16536
ac_preproc_ok=:
 
16537
break
 
16538
fi
 
16539
 
 
16540
rm -f conftest.err conftest.$ac_ext
 
16541
 
 
16542
done
 
16543
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
16544
rm -f conftest.err conftest.$ac_ext
 
16545
if $ac_preproc_ok; then
 
16546
  :
 
16547
else
 
16548
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
16549
See \`config.log' for more details." >&5
 
16550
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
16551
See \`config.log' for more details." >&2;}
 
16552
   { (exit 1); exit 1; }; }
 
16553
fi
 
16554
 
 
16555
ac_ext=c
 
16556
ac_cpp='$CPP $CPPFLAGS'
 
16557
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16558
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16559
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16560
 
 
16561
  # FIXME: we rely on the cache variable name because
 
16562
# there is no other way.
 
16563
set dummy $CC
 
16564
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
16565
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
16566
   # Losing compiler, so override with the script.
 
16567
   # FIXME: It is wrong to rewrite CC.
 
16568
   # But if we don't then we get into trouble of one sort or another.
 
16569
   # A longer-term fix would be to have automake use am__CC in this case,
 
16570
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
16571
   CC="$am_aux_dir/compile $CC"
 
16572
fi
 
16573
 
 
16574
 
 
16575
 
 
16576
 
 
16577
 
 
16578
 
 
16579
 
 
16580
  { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
16581
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
 
16582
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
16583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16584
else
 
16585
  cat >conftest.$ac_ext <<_ACEOF
 
16586
/* confdefs.h.  */
 
16587
_ACEOF
 
16588
cat confdefs.h >>conftest.$ac_ext
 
16589
cat >>conftest.$ac_ext <<_ACEOF
 
16590
/* end confdefs.h.  */
 
16591
$ac_includes_default
 
16592
int
 
16593
main ()
 
16594
{
 
16595
#ifndef __SUNPRO_C
 
16596
  (void) __SUNPRO_C;
 
16597
#endif
 
16598
 
 
16599
  ;
 
16600
  return 0;
 
16601
}
 
16602
_ACEOF
 
16603
rm -f conftest.$ac_objext
 
16604
if { (ac_try="$ac_compile"
 
16605
case "(($ac_try" in
 
16606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16607
  *) ac_try_echo=$ac_try;;
 
16608
esac
 
16609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16610
  (eval "$ac_compile") 2>conftest.er1
 
16611
  ac_status=$?
 
16612
  grep -v '^ *+' conftest.er1 >conftest.err
 
16613
  rm -f conftest.er1
 
16614
  cat conftest.err >&5
 
16615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16616
  (exit $ac_status); } && {
 
16617
         test -z "$ac_c_werror_flag" ||
 
16618
         test ! -s conftest.err
 
16619
       } && test -s conftest.$ac_objext; then
 
16620
  ac_cv_have_decl___SUNPRO_C=yes
 
16621
else
 
16622
  echo "$as_me: failed program was:" >&5
 
16623
sed 's/^/| /' conftest.$ac_ext >&5
 
16624
 
 
16625
        ac_cv_have_decl___SUNPRO_C=no
 
16626
fi
 
16627
 
 
16628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16629
fi
 
16630
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
16631
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
 
16632
if test $ac_cv_have_decl___SUNPRO_C = yes; then
 
16633
  SUNCC="yes"
 
16634
else
 
16635
  SUNCC="no"
 
16636
fi
 
16637
 
 
16638
  { echo "$as_me:$LINENO: checking whether __ICC is declared" >&5
 
16639
echo $ECHO_N "checking whether __ICC is declared... $ECHO_C" >&6; }
 
16640
if test "${ac_cv_have_decl___ICC+set}" = set; then
 
16641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16642
else
 
16643
  cat >conftest.$ac_ext <<_ACEOF
 
16644
/* confdefs.h.  */
 
16645
_ACEOF
 
16646
cat confdefs.h >>conftest.$ac_ext
 
16647
cat >>conftest.$ac_ext <<_ACEOF
 
16648
/* end confdefs.h.  */
 
16649
$ac_includes_default
 
16650
int
 
16651
main ()
 
16652
{
 
16653
#ifndef __ICC
 
16654
  (void) __ICC;
 
16655
#endif
 
16656
 
 
16657
  ;
 
16658
  return 0;
 
16659
}
 
16660
_ACEOF
 
16661
rm -f conftest.$ac_objext
 
16662
if { (ac_try="$ac_compile"
 
16663
case "(($ac_try" in
 
16664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16665
  *) ac_try_echo=$ac_try;;
 
16666
esac
 
16667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16668
  (eval "$ac_compile") 2>conftest.er1
 
16669
  ac_status=$?
 
16670
  grep -v '^ *+' conftest.er1 >conftest.err
 
16671
  rm -f conftest.er1
 
16672
  cat conftest.err >&5
 
16673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16674
  (exit $ac_status); } && {
 
16675
         test -z "$ac_c_werror_flag" ||
 
16676
         test ! -s conftest.err
 
16677
       } && test -s conftest.$ac_objext; then
 
16678
  ac_cv_have_decl___ICC=yes
 
16679
else
 
16680
  echo "$as_me: failed program was:" >&5
 
16681
sed 's/^/| /' conftest.$ac_ext >&5
 
16682
 
 
16683
        ac_cv_have_decl___ICC=no
 
16684
fi
 
16685
 
 
16686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16687
fi
 
16688
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___ICC" >&5
 
16689
echo "${ECHO_T}$ac_cv_have_decl___ICC" >&6; }
 
16690
if test $ac_cv_have_decl___ICC = yes; then
 
16691
  INTELCC="yes"
 
16692
else
 
16693
  INTELCC="no"
 
16694
fi
 
16695
 
 
16696
  if test "x$INTELCC" = "xyes"; then
 
16697
  enable_rpath=no
 
16698
fi
 
16699
 
 
16700
 
 
16701
 
 
16702
 
 
16703
 
 
16704
 
 
16705
 
 
16706
 
 
16707
 
 
16708
 
 
16709
 
 
16710
 
 
16711
  if test "$GCC" = "yes"; then
 
16712
  if test "$ac_cv_cxx_compile_cxx0x_native" = "yes"; then
 
16713
  :
 
16714
else
 
16715
  if test "$ac_cv_cxx_compile_cxx0x_gxx" = "yes"; then
 
16716
  CXXFLAGS="-std=gnu++0x ${CXXFLAGS}"
 
16717
else
 
16718
  CXXFLAGS="-std=gnu++98"
 
16719
fi
 
16720
 
 
16721
 
 
16722
fi
 
16723
 
 
16724
 
 
16725
fi
 
16726
 
 
16727
 
 
16728
  { echo "$as_me:$LINENO: checking for ISO C++ 98 include files" >&5
 
16729
echo $ECHO_N "checking for ISO C++ 98 include files... $ECHO_C" >&6; }
 
16730
if test "${ac_cv_cxx_stdcxx_98+set}" = set; then
 
16731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16732
else
 
16733
  ac_ext=cpp
 
16734
ac_cpp='$CXXCPP $CPPFLAGS'
 
16735
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16736
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16737
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16738
 
 
16739
  cat >conftest.$ac_ext <<_ACEOF
 
16740
/* confdefs.h.  */
 
16741
_ACEOF
 
16742
cat confdefs.h >>conftest.$ac_ext
 
16743
cat >>conftest.$ac_ext <<_ACEOF
 
16744
/* end confdefs.h.  */
 
16745
 
 
16746
    #include <cassert>
 
16747
    #include <cctype>
 
16748
    #include <cerrno>
 
16749
    #include <cfloat>
 
16750
    #include <ciso646>
 
16751
    #include <climits>
 
16752
    #include <clocale>
 
16753
    #include <cmath>
 
16754
    #include <csetjmp>
 
16755
    #include <csignal>
 
16756
    #include <cstdarg>
 
16757
    #include <cstddef>
 
16758
    #include <cstdio>
 
16759
    #include <cstdlib>
 
16760
    #include <cstring>
 
16761
    #include <ctime>
 
16762
 
 
16763
    #include <algorithm>
 
16764
    #include <bitset>
 
16765
    #include <complex>
 
16766
    #include <deque>
 
16767
    #include <exception>
 
16768
    #include <fstream>
 
16769
    #include <functional>
 
16770
    #include <iomanip>
 
16771
    #include <ios>
 
16772
    #include <iosfwd>
 
16773
    #include <iostream>
 
16774
    #include <istream>
 
16775
    #include <iterator>
 
16776
    #include <limits>
 
16777
    #include <list>
 
16778
    #include <locale>
 
16779
    #include <map>
 
16780
    #include <memory>
 
16781
    #include <new>
 
16782
    #include <numeric>
 
16783
    #include <ostream>
 
16784
    #include <queue>
 
16785
    #include <set>
 
16786
    #include <sstream>
 
16787
    #include <stack>
 
16788
    #include <stdexcept>
 
16789
    #include <streambuf>
 
16790
    #include <string>
 
16791
    #include <typeinfo>
 
16792
    #include <utility>
 
16793
    #include <valarray>
 
16794
    #include <vector>
 
16795
 
 
16796
int
 
16797
main ()
 
16798
{
 
16799
 
 
16800
  ;
 
16801
  return 0;
 
16802
}
 
16803
_ACEOF
 
16804
rm -f conftest.$ac_objext
 
16805
if { (ac_try="$ac_compile"
 
16806
case "(($ac_try" in
 
16807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16808
  *) ac_try_echo=$ac_try;;
 
16809
esac
 
16810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16811
  (eval "$ac_compile") 2>conftest.er1
 
16812
  ac_status=$?
 
16813
  grep -v '^ *+' conftest.er1 >conftest.err
 
16814
  rm -f conftest.er1
 
16815
  cat conftest.err >&5
 
16816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16817
  (exit $ac_status); } && {
 
16818
         test -z "$ac_cxx_werror_flag" ||
 
16819
         test ! -s conftest.err
 
16820
       } && test -s conftest.$ac_objext; then
 
16821
  ac_cv_cxx_stdcxx_98=yes
 
16822
else
 
16823
  echo "$as_me: failed program was:" >&5
 
16824
sed 's/^/| /' conftest.$ac_ext >&5
 
16825
 
 
16826
        ac_cv_cxx_stdcxx_98=no
 
16827
fi
 
16828
 
 
16829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16830
  ac_ext=c
 
16831
ac_cpp='$CPP $CPPFLAGS'
 
16832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16835
 
 
16836
 
 
16837
fi
 
16838
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_stdcxx_98" >&5
 
16839
echo "${ECHO_T}$ac_cv_cxx_stdcxx_98" >&6; }
 
16840
  if test "$ac_cv_cxx_stdcxx_98" = yes; then
 
16841
 
 
16842
cat >>confdefs.h <<\_ACEOF
 
16843
#define STDCXX_98_HEADERS
 
16844
_ACEOF
 
16845
 
 
16846
  fi
 
16847
 
 
16848
 
 
16849
 
 
16850
 
 
16851
 
 
16852
 
 
16853
  ac_ext=cpp
 
16854
ac_cpp='$CXXCPP $CPPFLAGS'
 
16855
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16856
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16857
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16858
 
 
16859
 
 
16860
 
 
16861
 
 
16862
for ac_header in memory tr1/memory boost/shared_ptr.hpp
 
16863
do
 
16864
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16865
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16866
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16867
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16868
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16870
fi
 
16871
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16872
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16873
echo "${ECHO_T}$ac_res" >&6; }
 
16874
else
 
16875
  # Is the header compilable?
 
16876
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16877
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
16878
cat >conftest.$ac_ext <<_ACEOF
 
16879
/* confdefs.h.  */
 
16880
_ACEOF
 
16881
cat confdefs.h >>conftest.$ac_ext
 
16882
cat >>conftest.$ac_ext <<_ACEOF
 
16883
/* end confdefs.h.  */
 
16884
$ac_includes_default
 
16885
#include <$ac_header>
 
16886
_ACEOF
 
16887
rm -f conftest.$ac_objext
 
16888
if { (ac_try="$ac_compile"
 
16889
case "(($ac_try" in
 
16890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16891
  *) ac_try_echo=$ac_try;;
 
16892
esac
 
16893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16894
  (eval "$ac_compile") 2>conftest.er1
 
16895
  ac_status=$?
 
16896
  grep -v '^ *+' conftest.er1 >conftest.err
 
16897
  rm -f conftest.er1
 
16898
  cat conftest.err >&5
 
16899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16900
  (exit $ac_status); } && {
 
16901
         test -z "$ac_cxx_werror_flag" ||
 
16902
         test ! -s conftest.err
 
16903
       } && test -s conftest.$ac_objext; then
 
16904
  ac_header_compiler=yes
 
16905
else
 
16906
  echo "$as_me: failed program was:" >&5
 
16907
sed 's/^/| /' conftest.$ac_ext >&5
 
16908
 
 
16909
        ac_header_compiler=no
 
16910
fi
 
16911
 
 
16912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16913
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16914
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
16915
 
 
16916
# Is the header present?
 
16917
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16918
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
16919
cat >conftest.$ac_ext <<_ACEOF
 
16920
/* confdefs.h.  */
 
16921
_ACEOF
 
16922
cat confdefs.h >>conftest.$ac_ext
 
16923
cat >>conftest.$ac_ext <<_ACEOF
 
16924
/* end confdefs.h.  */
 
16925
#include <$ac_header>
 
16926
_ACEOF
 
16927
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16928
case "(($ac_try" in
 
16929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16930
  *) ac_try_echo=$ac_try;;
 
16931
esac
 
16932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16933
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16934
  ac_status=$?
 
16935
  grep -v '^ *+' conftest.er1 >conftest.err
 
16936
  rm -f conftest.er1
 
16937
  cat conftest.err >&5
 
16938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16939
  (exit $ac_status); } >/dev/null && {
 
16940
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
16941
         test ! -s conftest.err
 
16942
       }; then
 
16943
  ac_header_preproc=yes
 
16944
else
 
16945
  echo "$as_me: failed program was:" >&5
 
16946
sed 's/^/| /' conftest.$ac_ext >&5
 
16947
 
 
16948
  ac_header_preproc=no
 
16949
fi
 
16950
 
 
16951
rm -f conftest.err conftest.$ac_ext
 
16952
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16953
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
16954
 
 
16955
# So?  What about this header?
 
16956
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
16957
  yes:no: )
 
16958
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
16959
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16960
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
16961
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
16962
    ac_header_preproc=yes
 
16963
    ;;
 
16964
  no:yes:* )
 
16965
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
16966
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
16967
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
16968
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
16969
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
16970
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
16971
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
16972
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16973
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
16974
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
16975
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
16976
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
16977
    ( cat <<\_ASBOX
 
16978
## --------------------------------------------- ##
 
16979
## Report this to https://launchpad.net/gearmand ##
 
16980
## --------------------------------------------- ##
 
16981
_ASBOX
 
16982
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16983
    ;;
 
16984
esac
 
16985
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16986
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16987
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16989
else
 
16990
  eval "$as_ac_Header=\$ac_header_preproc"
 
16991
fi
 
16992
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16993
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16994
echo "${ECHO_T}$ac_res" >&6; }
 
16995
 
 
16996
fi
 
16997
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
16998
  cat >>confdefs.h <<_ACEOF
 
16999
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17000
_ACEOF
 
17001
 
 
17002
fi
 
17003
 
 
17004
done
 
17005
 
 
17006
  { echo "$as_me:$LINENO: checking the location of shared_ptr header file" >&5
 
17007
echo $ECHO_N "checking the location of shared_ptr header file... $ECHO_C" >&6; }
 
17008
if test "${ac_cv_shared_ptr_h+set}" = set; then
 
17009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17010
else
 
17011
 
 
17012
      for namespace in std tr1 std::tr1 boost
 
17013
      do
 
17014
        cat >conftest.$ac_ext <<_ACEOF
 
17015
/* confdefs.h.  */
 
17016
_ACEOF
 
17017
cat confdefs.h >>conftest.$ac_ext
 
17018
cat >>conftest.$ac_ext <<_ACEOF
 
17019
/* end confdefs.h.  */
 
17020
 
 
17021
#if defined(HAVE_MEMORY)
 
17022
# include <memory>
 
17023
#endif
 
17024
#if defined(HAVE_TR1_MEMORY)
 
17025
# include <tr1/memory>
 
17026
#endif
 
17027
#if defined(HAVE_BOOST_SHARED_PTR_HPP)
 
17028
# include <boost/shared_ptr.hpp>
 
17029
#endif
 
17030
#include <string>
 
17031
 
 
17032
using $namespace::shared_ptr;
 
17033
using namespace std;
 
17034
 
 
17035
int
 
17036
main ()
 
17037
{
 
17038
 
 
17039
shared_ptr<string> test_ptr(new string("test string"));
 
17040
 
 
17041
  ;
 
17042
  return 0;
 
17043
}
 
17044
_ACEOF
 
17045
rm -f conftest.$ac_objext
 
17046
if { (ac_try="$ac_compile"
 
17047
case "(($ac_try" in
 
17048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17049
  *) ac_try_echo=$ac_try;;
 
17050
esac
 
17051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17052
  (eval "$ac_compile") 2>conftest.er1
 
17053
  ac_status=$?
 
17054
  grep -v '^ *+' conftest.er1 >conftest.err
 
17055
  rm -f conftest.er1
 
17056
  cat conftest.err >&5
 
17057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17058
  (exit $ac_status); } && {
 
17059
         test -z "$ac_cxx_werror_flag" ||
 
17060
         test ! -s conftest.err
 
17061
       } && test -s conftest.$ac_objext; then
 
17062
 
 
17063
              ac_cv_shared_ptr_namespace="${namespace}"
 
17064
              break
 
17065
 
 
17066
else
 
17067
  echo "$as_me: failed program was:" >&5
 
17068
sed 's/^/| /' conftest.$ac_ext >&5
 
17069
 
 
17070
        ac_cv_shared_ptr_namespace=missing
 
17071
fi
 
17072
 
 
17073
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17074
       done
 
17075
 
 
17076
fi
 
17077
{ echo "$as_me:$LINENO: result: $ac_cv_shared_ptr_h" >&5
 
17078
echo "${ECHO_T}$ac_cv_shared_ptr_h" >&6; }
 
17079
 
 
17080
cat >>confdefs.h <<_ACEOF
 
17081
#define SHARED_PTR_NAMESPACE ${ac_cv_shared_ptr_namespace}
 
17082
_ACEOF
 
17083
 
 
17084
  ac_ext=c
 
17085
ac_cpp='$CPP $CPPFLAGS'
 
17086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17089
 
 
17090
 
 
17091
 
 
17092
    if test "$ac_cv_shared_ptr_namespace" = "missing"; then
 
17093
 
 
17094
      { echo "$as_me:$LINENO: WARNING: a usable shared_ptr implementation was not found. Let someone know what your platform is." >&5
 
17095
echo "$as_me: WARNING: a usable shared_ptr implementation was not found. Let someone know what your platform is." >&2;}
 
17096
 
 
17097
fi
 
17098
 
 
17099
 
 
17100
 
 
17101
 
 
17102
 
 
17103
  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20671
17104
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20672
17105
if test "${ac_cv_c_bigendian+set}" = set; then
20673
17106
  echo $ECHO_N "(cached) $ECHO_C" >&6
20903
17336
   { (exit 1); exit 1; }; } ;;
20904
17337
esac
20905
17338
 
20906
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
17339
  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20907
17340
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20908
17341
if test "${ac_cv_c_const+set}" = set; then
20909
17342
  echo $ECHO_N "(cached) $ECHO_C" >&6
21009
17442
 
21010
17443
fi
21011
17444
 
21012
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
21013
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21014
 
if test "${ac_cv_type_size_t+set}" = set; then
21015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21016
 
else
21017
 
  cat >conftest.$ac_ext <<_ACEOF
21018
 
/* confdefs.h.  */
21019
 
_ACEOF
21020
 
cat confdefs.h >>conftest.$ac_ext
21021
 
cat >>conftest.$ac_ext <<_ACEOF
21022
 
/* end confdefs.h.  */
21023
 
$ac_includes_default
21024
 
typedef size_t ac__type_new_;
21025
 
int
21026
 
main ()
21027
 
{
21028
 
if ((ac__type_new_ *) 0)
21029
 
  return 0;
21030
 
if (sizeof (ac__type_new_))
21031
 
  return 0;
21032
 
  ;
21033
 
  return 0;
21034
 
}
21035
 
_ACEOF
21036
 
rm -f conftest.$ac_objext
21037
 
if { (ac_try="$ac_compile"
21038
 
case "(($ac_try" in
21039
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040
 
  *) ac_try_echo=$ac_try;;
21041
 
esac
21042
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043
 
  (eval "$ac_compile") 2>conftest.er1
21044
 
  ac_status=$?
21045
 
  grep -v '^ *+' conftest.er1 >conftest.err
21046
 
  rm -f conftest.er1
21047
 
  cat conftest.err >&5
21048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049
 
  (exit $ac_status); } && {
21050
 
         test -z "$ac_c_werror_flag" ||
21051
 
         test ! -s conftest.err
21052
 
       } && test -s conftest.$ac_objext; then
21053
 
  ac_cv_type_size_t=yes
21054
 
else
21055
 
  echo "$as_me: failed program was:" >&5
21056
 
sed 's/^/| /' conftest.$ac_ext >&5
21057
 
 
21058
 
        ac_cv_type_size_t=no
21059
 
fi
21060
 
 
21061
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062
 
fi
21063
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21064
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21065
 
if test $ac_cv_type_size_t = yes; then
21066
 
  :
21067
 
else
21068
 
 
21069
 
cat >>confdefs.h <<_ACEOF
21070
 
#define size_t unsigned int
21071
 
_ACEOF
21072
 
 
21073
 
fi
21074
 
 
21075
 
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21076
 
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21077
 
if test "${ac_cv_type_ssize_t+set}" = set; then
21078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21079
 
else
21080
 
  cat >conftest.$ac_ext <<_ACEOF
21081
 
/* confdefs.h.  */
21082
 
_ACEOF
21083
 
cat confdefs.h >>conftest.$ac_ext
21084
 
cat >>conftest.$ac_ext <<_ACEOF
21085
 
/* end confdefs.h.  */
21086
 
$ac_includes_default
21087
 
typedef ssize_t ac__type_new_;
21088
 
int
21089
 
main ()
21090
 
{
21091
 
if ((ac__type_new_ *) 0)
21092
 
  return 0;
21093
 
if (sizeof (ac__type_new_))
21094
 
  return 0;
21095
 
  ;
21096
 
  return 0;
21097
 
}
21098
 
_ACEOF
21099
 
rm -f conftest.$ac_objext
21100
 
if { (ac_try="$ac_compile"
21101
 
case "(($ac_try" in
21102
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103
 
  *) ac_try_echo=$ac_try;;
21104
 
esac
21105
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106
 
  (eval "$ac_compile") 2>conftest.er1
21107
 
  ac_status=$?
21108
 
  grep -v '^ *+' conftest.er1 >conftest.err
21109
 
  rm -f conftest.er1
21110
 
  cat conftest.err >&5
21111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112
 
  (exit $ac_status); } && {
21113
 
         test -z "$ac_c_werror_flag" ||
21114
 
         test ! -s conftest.err
21115
 
       } && test -s conftest.$ac_objext; then
21116
 
  ac_cv_type_ssize_t=yes
21117
 
else
21118
 
  echo "$as_me: failed program was:" >&5
21119
 
sed 's/^/| /' conftest.$ac_ext >&5
21120
 
 
21121
 
        ac_cv_type_ssize_t=no
21122
 
fi
21123
 
 
21124
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125
 
fi
21126
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21127
 
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21128
 
if test $ac_cv_type_ssize_t = yes; then
21129
 
  :
21130
 
else
21131
 
 
21132
 
cat >>confdefs.h <<_ACEOF
21133
 
#define ssize_t int
21134
 
_ACEOF
21135
 
 
21136
 
fi
21137
 
 
21138
 
 
21139
 
{ echo "$as_me:$LINENO: checking \"C Compiler version\"" >&5
21140
 
echo $ECHO_N "checking \"C Compiler version\"... $ECHO_C" >&6; }
21141
 
if test "$GCC" = "yes"
21142
 
then
21143
 
  CC_VERSION=`$CC --version | sed 1q`
21144
 
elif test "$SUNCC" = "yes"
21145
 
then
21146
 
  CC_VERSION=`$CC -V 2>&1 | sed 1q`
21147
 
else
21148
 
  CC_VERSION=""
21149
 
fi
21150
 
{ echo "$as_me:$LINENO: result: \"$CC_VERSION\"" >&5
21151
 
echo "${ECHO_T}\"$CC_VERSION\"" >&6; }
21152
 
 
21153
 
 
21154
 
 
21155
 
cat >>confdefs.h <<\_ACEOF
21156
 
#define _THREAD_SAFE 1
21157
 
_ACEOF
21158
 
 
21159
 
 
21160
 
cat >>confdefs.h <<\_ACEOF
21161
 
#define _REENTRANT 1
21162
 
_ACEOF
21163
 
 
21164
 
 
21165
 
# Build optimized or debug version ?
21166
 
# First check for gcc and g++
21167
 
if test "$GCC" = "yes"
21168
 
then
21169
 
  CFLAGS="-ggdb3 -std=gnu99 ${CFLAGS}"
21170
 
  DEBUG_CFLAGS="-O0"
21171
 
  OPTMIIZE_CFLAGS="-O3"
21172
 
fi
21173
 
if test "$SUNCC" = "yes"
21174
 
then
21175
 
  isainfo_k=`isainfo -k`
21176
 
  if test "$target_cpu" = "sparc"
21177
 
  then
21178
 
    MEMALIGN_FLAGS="-xmemalign=8s"
21179
 
    IS_64="-m64"
21180
 
    LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_k} -L/usr/local/lib/${isainfo_k}"
21181
 
  else
21182
 
    if test "$isainfo_k" = "amd64"
21183
 
    then
21184
 
      IS_64="-m64"
21185
 
      LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_k} -L/usr/local/lib/${isainfo_k}"
21186
 
    fi
21187
 
  fi
21188
 
  CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
21189
 
 
21190
 
  CFLAGS="-g -mt -xc99=all ${IS_64} ${MEMALIGN_FLAGS} ${CFLAGS}"
21191
 
  CXXFLAGS="-g -xlang=c99 ${IS_64} ${CXXFLAGS}"
21192
 
  DEBUG_CFLAGS="-xO0"
21193
 
  OPTIMIZE_CFLAGS="-xO4 -xlibmil -xdepend -Xa -mt -xstrconst"
21194
 
fi
21195
 
 
21196
 
 
21197
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
17445
  { echo "$as_me:$LINENO: checking for inline" >&5
 
17446
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
17447
if test "${ac_cv_c_inline+set}" = set; then
 
17448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17449
else
 
17450
  ac_cv_c_inline=no
 
17451
for ac_kw in inline __inline__ __inline; do
 
17452
  cat >conftest.$ac_ext <<_ACEOF
 
17453
/* confdefs.h.  */
 
17454
_ACEOF
 
17455
cat confdefs.h >>conftest.$ac_ext
 
17456
cat >>conftest.$ac_ext <<_ACEOF
 
17457
/* end confdefs.h.  */
 
17458
#ifndef __cplusplus
 
17459
typedef int foo_t;
 
17460
static $ac_kw foo_t static_foo () {return 0; }
 
17461
$ac_kw foo_t foo () {return 0; }
 
17462
#endif
 
17463
 
 
17464
_ACEOF
 
17465
rm -f conftest.$ac_objext
 
17466
if { (ac_try="$ac_compile"
 
17467
case "(($ac_try" in
 
17468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17469
  *) ac_try_echo=$ac_try;;
 
17470
esac
 
17471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17472
  (eval "$ac_compile") 2>conftest.er1
 
17473
  ac_status=$?
 
17474
  grep -v '^ *+' conftest.er1 >conftest.err
 
17475
  rm -f conftest.er1
 
17476
  cat conftest.err >&5
 
17477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17478
  (exit $ac_status); } && {
 
17479
         test -z "$ac_c_werror_flag" ||
 
17480
         test ! -s conftest.err
 
17481
       } && test -s conftest.$ac_objext; then
 
17482
  ac_cv_c_inline=$ac_kw
 
17483
else
 
17484
  echo "$as_me: failed program was:" >&5
 
17485
sed 's/^/| /' conftest.$ac_ext >&5
 
17486
 
 
17487
 
 
17488
fi
 
17489
 
 
17490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17491
  test "$ac_cv_c_inline" != no && break
 
17492
done
 
17493
 
 
17494
fi
 
17495
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
17496
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
17497
 
 
17498
 
 
17499
case $ac_cv_c_inline in
 
17500
  inline | yes) ;;
 
17501
  *)
 
17502
    case $ac_cv_c_inline in
 
17503
      no) ac_val=;;
 
17504
      *) ac_val=$ac_cv_c_inline;;
 
17505
    esac
 
17506
    cat >>confdefs.h <<_ACEOF
 
17507
#ifndef __cplusplus
 
17508
#define inline $ac_val
 
17509
#endif
 
17510
_ACEOF
 
17511
    ;;
 
17512
esac
 
17513
 
 
17514
  { echo "$as_me:$LINENO: checking for working volatile" >&5
 
17515
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
17516
if test "${ac_cv_c_volatile+set}" = set; then
 
17517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17518
else
 
17519
  cat >conftest.$ac_ext <<_ACEOF
 
17520
/* confdefs.h.  */
 
17521
_ACEOF
 
17522
cat confdefs.h >>conftest.$ac_ext
 
17523
cat >>conftest.$ac_ext <<_ACEOF
 
17524
/* end confdefs.h.  */
 
17525
 
 
17526
int
 
17527
main ()
 
17528
{
 
17529
 
 
17530
volatile int x;
 
17531
int * volatile y = (int *) 0;
 
17532
return !x && !y;
 
17533
  ;
 
17534
  return 0;
 
17535
}
 
17536
_ACEOF
 
17537
rm -f conftest.$ac_objext
 
17538
if { (ac_try="$ac_compile"
 
17539
case "(($ac_try" in
 
17540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17541
  *) ac_try_echo=$ac_try;;
 
17542
esac
 
17543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17544
  (eval "$ac_compile") 2>conftest.er1
 
17545
  ac_status=$?
 
17546
  grep -v '^ *+' conftest.er1 >conftest.err
 
17547
  rm -f conftest.er1
 
17548
  cat conftest.err >&5
 
17549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17550
  (exit $ac_status); } && {
 
17551
         test -z "$ac_c_werror_flag" ||
 
17552
         test ! -s conftest.err
 
17553
       } && test -s conftest.$ac_objext; then
 
17554
  ac_cv_c_volatile=yes
 
17555
else
 
17556
  echo "$as_me: failed program was:" >&5
 
17557
sed 's/^/| /' conftest.$ac_ext >&5
 
17558
 
 
17559
        ac_cv_c_volatile=no
 
17560
fi
 
17561
 
 
17562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17563
fi
 
17564
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
17565
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
17566
if test $ac_cv_c_volatile = no; then
 
17567
 
 
17568
cat >>confdefs.h <<\_ACEOF
 
17569
#define volatile
 
17570
_ACEOF
 
17571
 
 
17572
fi
 
17573
 
 
17574
  { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
17575
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
 
17576
if test "${ac_cv_c_restrict+set}" = set; then
 
17577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17578
else
 
17579
  ac_cv_c_restrict=no
 
17580
   # Try the official restrict keyword, then gcc's __restrict, and
 
17581
   # the less common variants.
 
17582
   for ac_kw in restrict __restrict __restrict__ _Restrict; do
 
17583
     cat >conftest.$ac_ext <<_ACEOF
 
17584
/* confdefs.h.  */
 
17585
_ACEOF
 
17586
cat confdefs.h >>conftest.$ac_ext
 
17587
cat >>conftest.$ac_ext <<_ACEOF
 
17588
/* end confdefs.h.  */
 
17589
typedef int * int_ptr;
 
17590
        int foo (int_ptr $ac_kw ip) {
 
17591
        return ip[0];
 
17592
       }
 
17593
int
 
17594
main ()
 
17595
{
 
17596
int s[1];
 
17597
        int * $ac_kw t = s;
 
17598
        t[0] = 0;
 
17599
        return foo(t)
 
17600
  ;
 
17601
  return 0;
 
17602
}
 
17603
_ACEOF
 
17604
rm -f conftest.$ac_objext
 
17605
if { (ac_try="$ac_compile"
 
17606
case "(($ac_try" in
 
17607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17608
  *) ac_try_echo=$ac_try;;
 
17609
esac
 
17610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17611
  (eval "$ac_compile") 2>conftest.er1
 
17612
  ac_status=$?
 
17613
  grep -v '^ *+' conftest.er1 >conftest.err
 
17614
  rm -f conftest.er1
 
17615
  cat conftest.err >&5
 
17616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17617
  (exit $ac_status); } && {
 
17618
         test -z "$ac_c_werror_flag" ||
 
17619
         test ! -s conftest.err
 
17620
       } && test -s conftest.$ac_objext; then
 
17621
  ac_cv_c_restrict=$ac_kw
 
17622
else
 
17623
  echo "$as_me: failed program was:" >&5
 
17624
sed 's/^/| /' conftest.$ac_ext >&5
 
17625
 
 
17626
 
 
17627
fi
 
17628
 
 
17629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17630
     test "$ac_cv_c_restrict" != no && break
 
17631
   done
 
17632
 
 
17633
fi
 
17634
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
17635
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
 
17636
 case $ac_cv_c_restrict in
 
17637
   restrict) ;;
 
17638
   no)
 
17639
cat >>confdefs.h <<\_ACEOF
 
17640
#define restrict
 
17641
_ACEOF
 
17642
 ;;
 
17643
   *)  cat >>confdefs.h <<_ACEOF
 
17644
#define restrict $ac_cv_c_restrict
 
17645
_ACEOF
 
17646
 ;;
 
17647
 esac
 
17648
 
 
17649
 
 
17650
  { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21198
17651
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21199
17652
if test "${ac_cv_header_time+set}" = set; then
21200
17653
  echo $ECHO_N "(cached) $ECHO_C" >&6
21255
17708
 
21256
17709
fi
21257
17710
 
21258
 
 
21259
 
 
21260
 
 
21261
 
 
21262
 
 
21263
 
 
21264
 
for ac_header in assert.h errno.h fcntl.h netinet/tcp.h pwd.h signal.h
21265
 
do
21266
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21267
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21269
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21272
 
fi
21273
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21274
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21275
 
echo "${ECHO_T}$ac_res" >&6; }
21276
 
else
21277
 
  # Is the header compilable?
21278
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21279
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21280
 
cat >conftest.$ac_ext <<_ACEOF
21281
 
/* confdefs.h.  */
21282
 
_ACEOF
21283
 
cat confdefs.h >>conftest.$ac_ext
21284
 
cat >>conftest.$ac_ext <<_ACEOF
21285
 
/* end confdefs.h.  */
21286
 
$ac_includes_default
21287
 
#include <$ac_header>
21288
 
_ACEOF
21289
 
rm -f conftest.$ac_objext
21290
 
if { (ac_try="$ac_compile"
21291
 
case "(($ac_try" in
21292
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293
 
  *) ac_try_echo=$ac_try;;
21294
 
esac
21295
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296
 
  (eval "$ac_compile") 2>conftest.er1
21297
 
  ac_status=$?
21298
 
  grep -v '^ *+' conftest.er1 >conftest.err
21299
 
  rm -f conftest.er1
21300
 
  cat conftest.err >&5
21301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302
 
  (exit $ac_status); } && {
21303
 
         test -z "$ac_c_werror_flag" ||
21304
 
         test ! -s conftest.err
21305
 
       } && test -s conftest.$ac_objext; then
21306
 
  ac_header_compiler=yes
21307
 
else
21308
 
  echo "$as_me: failed program was:" >&5
21309
 
sed 's/^/| /' conftest.$ac_ext >&5
21310
 
 
21311
 
        ac_header_compiler=no
21312
 
fi
21313
 
 
21314
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21316
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21317
 
 
21318
 
# Is the header present?
21319
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21320
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21321
 
cat >conftest.$ac_ext <<_ACEOF
21322
 
/* confdefs.h.  */
21323
 
_ACEOF
21324
 
cat confdefs.h >>conftest.$ac_ext
21325
 
cat >>conftest.$ac_ext <<_ACEOF
21326
 
/* end confdefs.h.  */
21327
 
#include <$ac_header>
21328
 
_ACEOF
21329
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21330
 
case "(($ac_try" in
21331
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332
 
  *) ac_try_echo=$ac_try;;
21333
 
esac
21334
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21336
 
  ac_status=$?
21337
 
  grep -v '^ *+' conftest.er1 >conftest.err
21338
 
  rm -f conftest.er1
21339
 
  cat conftest.err >&5
21340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341
 
  (exit $ac_status); } >/dev/null && {
21342
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21343
 
         test ! -s conftest.err
21344
 
       }; then
21345
 
  ac_header_preproc=yes
21346
 
else
21347
 
  echo "$as_me: failed program was:" >&5
21348
 
sed 's/^/| /' conftest.$ac_ext >&5
21349
 
 
21350
 
  ac_header_preproc=no
21351
 
fi
21352
 
 
21353
 
rm -f conftest.err conftest.$ac_ext
21354
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21355
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21356
 
 
21357
 
# So?  What about this header?
21358
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21359
 
  yes:no: )
21360
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21361
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21362
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21363
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21364
 
    ac_header_preproc=yes
21365
 
    ;;
21366
 
  no:yes:* )
21367
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21368
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21369
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21370
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21371
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21372
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21373
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21374
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21375
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21376
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21377
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21378
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21379
 
    ( cat <<\_ASBOX
21380
 
## --------------------------------------------- ##
21381
 
## Report this to https://launchpad.net/gearmand ##
21382
 
## --------------------------------------------- ##
21383
 
_ASBOX
21384
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21385
 
    ;;
21386
 
esac
21387
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21388
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21389
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21391
 
else
21392
 
  eval "$as_ac_Header=\$ac_header_preproc"
21393
 
fi
21394
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21395
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21396
 
echo "${ECHO_T}$ac_res" >&6; }
21397
 
 
21398
 
fi
21399
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400
 
  cat >>confdefs.h <<_ACEOF
21401
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21402
 
_ACEOF
21403
 
 
21404
 
fi
21405
 
 
21406
 
done
21407
 
 
21408
 
 
21409
 
 
21410
 
 
21411
 
 
21412
 
 
21413
 
 
21414
 
for ac_header in stdarg.h stdio.h stdlib.h string.h sys/resource.h sys/stat.h
21415
 
do
21416
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21419
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21422
 
fi
21423
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21424
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21425
 
echo "${ECHO_T}$ac_res" >&6; }
21426
 
else
21427
 
  # Is the header compilable?
21428
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430
 
cat >conftest.$ac_ext <<_ACEOF
21431
 
/* confdefs.h.  */
21432
 
_ACEOF
21433
 
cat confdefs.h >>conftest.$ac_ext
21434
 
cat >>conftest.$ac_ext <<_ACEOF
21435
 
/* end confdefs.h.  */
21436
 
$ac_includes_default
21437
 
#include <$ac_header>
21438
 
_ACEOF
21439
 
rm -f conftest.$ac_objext
21440
 
if { (ac_try="$ac_compile"
21441
 
case "(($ac_try" in
21442
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443
 
  *) ac_try_echo=$ac_try;;
21444
 
esac
21445
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446
 
  (eval "$ac_compile") 2>conftest.er1
21447
 
  ac_status=$?
21448
 
  grep -v '^ *+' conftest.er1 >conftest.err
21449
 
  rm -f conftest.er1
21450
 
  cat conftest.err >&5
21451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452
 
  (exit $ac_status); } && {
21453
 
         test -z "$ac_c_werror_flag" ||
21454
 
         test ! -s conftest.err
21455
 
       } && test -s conftest.$ac_objext; then
21456
 
  ac_header_compiler=yes
21457
 
else
21458
 
  echo "$as_me: failed program was:" >&5
21459
 
sed 's/^/| /' conftest.$ac_ext >&5
21460
 
 
21461
 
        ac_header_compiler=no
21462
 
fi
21463
 
 
21464
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21467
 
 
21468
 
# Is the header present?
21469
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471
 
cat >conftest.$ac_ext <<_ACEOF
21472
 
/* confdefs.h.  */
21473
 
_ACEOF
21474
 
cat confdefs.h >>conftest.$ac_ext
21475
 
cat >>conftest.$ac_ext <<_ACEOF
21476
 
/* end confdefs.h.  */
21477
 
#include <$ac_header>
21478
 
_ACEOF
21479
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21480
 
case "(($ac_try" in
21481
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482
 
  *) ac_try_echo=$ac_try;;
21483
 
esac
21484
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21486
 
  ac_status=$?
21487
 
  grep -v '^ *+' conftest.er1 >conftest.err
21488
 
  rm -f conftest.er1
21489
 
  cat conftest.err >&5
21490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491
 
  (exit $ac_status); } >/dev/null && {
21492
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493
 
         test ! -s conftest.err
21494
 
       }; then
21495
 
  ac_header_preproc=yes
21496
 
else
21497
 
  echo "$as_me: failed program was:" >&5
21498
 
sed 's/^/| /' conftest.$ac_ext >&5
21499
 
 
21500
 
  ac_header_preproc=no
21501
 
fi
21502
 
 
21503
 
rm -f conftest.err conftest.$ac_ext
21504
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21506
 
 
21507
 
# So?  What about this header?
21508
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509
 
  yes:no: )
21510
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514
 
    ac_header_preproc=yes
21515
 
    ;;
21516
 
  no:yes:* )
21517
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21520
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21521
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21524
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21525
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21529
 
    ( cat <<\_ASBOX
21530
 
## --------------------------------------------- ##
21531
 
## Report this to https://launchpad.net/gearmand ##
21532
 
## --------------------------------------------- ##
21533
 
_ASBOX
21534
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21535
 
    ;;
21536
 
esac
21537
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21538
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21541
 
else
21542
 
  eval "$as_ac_Header=\$ac_header_preproc"
21543
 
fi
21544
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21545
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21546
 
echo "${ECHO_T}$ac_res" >&6; }
21547
 
 
21548
 
fi
21549
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550
 
  cat >>confdefs.h <<_ACEOF
21551
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21552
 
_ACEOF
21553
 
 
21554
 
fi
21555
 
 
21556
 
done
21557
 
 
21558
 
 
21559
 
 
21560
 
 
21561
 
 
21562
 
for ac_header in sys/socket.h sys/types.h sys/utsname.h unistd.h
21563
 
do
21564
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21567
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21570
 
fi
21571
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21572
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21573
 
echo "${ECHO_T}$ac_res" >&6; }
21574
 
else
21575
 
  # Is the header compilable?
21576
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21577
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21578
 
cat >conftest.$ac_ext <<_ACEOF
21579
 
/* confdefs.h.  */
21580
 
_ACEOF
21581
 
cat confdefs.h >>conftest.$ac_ext
21582
 
cat >>conftest.$ac_ext <<_ACEOF
21583
 
/* end confdefs.h.  */
21584
 
$ac_includes_default
21585
 
#include <$ac_header>
21586
 
_ACEOF
21587
 
rm -f conftest.$ac_objext
21588
 
if { (ac_try="$ac_compile"
21589
 
case "(($ac_try" in
21590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591
 
  *) ac_try_echo=$ac_try;;
21592
 
esac
21593
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594
 
  (eval "$ac_compile") 2>conftest.er1
21595
 
  ac_status=$?
21596
 
  grep -v '^ *+' conftest.er1 >conftest.err
21597
 
  rm -f conftest.er1
21598
 
  cat conftest.err >&5
21599
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600
 
  (exit $ac_status); } && {
21601
 
         test -z "$ac_c_werror_flag" ||
21602
 
         test ! -s conftest.err
21603
 
       } && test -s conftest.$ac_objext; then
21604
 
  ac_header_compiler=yes
21605
 
else
21606
 
  echo "$as_me: failed program was:" >&5
21607
 
sed 's/^/| /' conftest.$ac_ext >&5
21608
 
 
21609
 
        ac_header_compiler=no
21610
 
fi
21611
 
 
21612
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21615
 
 
21616
 
# Is the header present?
21617
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21618
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21619
 
cat >conftest.$ac_ext <<_ACEOF
21620
 
/* confdefs.h.  */
21621
 
_ACEOF
21622
 
cat confdefs.h >>conftest.$ac_ext
21623
 
cat >>conftest.$ac_ext <<_ACEOF
21624
 
/* end confdefs.h.  */
21625
 
#include <$ac_header>
21626
 
_ACEOF
21627
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21628
 
case "(($ac_try" in
21629
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630
 
  *) ac_try_echo=$ac_try;;
21631
 
esac
21632
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21634
 
  ac_status=$?
21635
 
  grep -v '^ *+' conftest.er1 >conftest.err
21636
 
  rm -f conftest.er1
21637
 
  cat conftest.err >&5
21638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639
 
  (exit $ac_status); } >/dev/null && {
21640
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21641
 
         test ! -s conftest.err
21642
 
       }; then
21643
 
  ac_header_preproc=yes
21644
 
else
21645
 
  echo "$as_me: failed program was:" >&5
21646
 
sed 's/^/| /' conftest.$ac_ext >&5
21647
 
 
21648
 
  ac_header_preproc=no
21649
 
fi
21650
 
 
21651
 
rm -f conftest.err conftest.$ac_ext
21652
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21654
 
 
21655
 
# So?  What about this header?
21656
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21657
 
  yes:no: )
21658
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662
 
    ac_header_preproc=yes
21663
 
    ;;
21664
 
  no:yes:* )
21665
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21668
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21669
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21672
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21673
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21677
 
    ( cat <<\_ASBOX
21678
 
## --------------------------------------------- ##
21679
 
## Report this to https://launchpad.net/gearmand ##
21680
 
## --------------------------------------------- ##
21681
 
_ASBOX
21682
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21683
 
    ;;
21684
 
esac
21685
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21686
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21687
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21689
 
else
21690
 
  eval "$as_ac_Header=\$ac_header_preproc"
21691
 
fi
21692
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21693
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21694
 
echo "${ECHO_T}$ac_res" >&6; }
21695
 
 
21696
 
fi
21697
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21698
 
  cat >>confdefs.h <<_ACEOF
21699
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700
 
_ACEOF
21701
 
 
21702
 
fi
21703
 
 
21704
 
done
21705
 
 
21706
 
 
21707
 
 
21708
 
for ac_header in pthread.h
21709
 
do
21710
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21712
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21713
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21714
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21715
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21716
 
fi
21717
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21718
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21719
 
echo "${ECHO_T}$ac_res" >&6; }
21720
 
else
21721
 
  # Is the header compilable?
21722
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21723
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21724
 
cat >conftest.$ac_ext <<_ACEOF
21725
 
/* confdefs.h.  */
21726
 
_ACEOF
21727
 
cat confdefs.h >>conftest.$ac_ext
21728
 
cat >>conftest.$ac_ext <<_ACEOF
21729
 
/* end confdefs.h.  */
21730
 
$ac_includes_default
21731
 
#include <$ac_header>
21732
 
_ACEOF
21733
 
rm -f conftest.$ac_objext
21734
 
if { (ac_try="$ac_compile"
21735
 
case "(($ac_try" in
21736
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737
 
  *) ac_try_echo=$ac_try;;
21738
 
esac
21739
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740
 
  (eval "$ac_compile") 2>conftest.er1
21741
 
  ac_status=$?
21742
 
  grep -v '^ *+' conftest.er1 >conftest.err
21743
 
  rm -f conftest.er1
21744
 
  cat conftest.err >&5
21745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746
 
  (exit $ac_status); } && {
21747
 
         test -z "$ac_c_werror_flag" ||
21748
 
         test ! -s conftest.err
21749
 
       } && test -s conftest.$ac_objext; then
21750
 
  ac_header_compiler=yes
21751
 
else
21752
 
  echo "$as_me: failed program was:" >&5
21753
 
sed 's/^/| /' conftest.$ac_ext >&5
21754
 
 
21755
 
        ac_header_compiler=no
21756
 
fi
21757
 
 
21758
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21761
 
 
21762
 
# Is the header present?
21763
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21764
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21765
 
cat >conftest.$ac_ext <<_ACEOF
21766
 
/* confdefs.h.  */
21767
 
_ACEOF
21768
 
cat confdefs.h >>conftest.$ac_ext
21769
 
cat >>conftest.$ac_ext <<_ACEOF
21770
 
/* end confdefs.h.  */
21771
 
#include <$ac_header>
21772
 
_ACEOF
21773
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21774
 
case "(($ac_try" in
21775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776
 
  *) ac_try_echo=$ac_try;;
21777
 
esac
21778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21780
 
  ac_status=$?
21781
 
  grep -v '^ *+' conftest.er1 >conftest.err
21782
 
  rm -f conftest.er1
21783
 
  cat conftest.err >&5
21784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785
 
  (exit $ac_status); } >/dev/null && {
21786
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21787
 
         test ! -s conftest.err
21788
 
       }; then
21789
 
  ac_header_preproc=yes
21790
 
else
21791
 
  echo "$as_me: failed program was:" >&5
21792
 
sed 's/^/| /' conftest.$ac_ext >&5
21793
 
 
21794
 
  ac_header_preproc=no
21795
 
fi
21796
 
 
21797
 
rm -f conftest.err conftest.$ac_ext
21798
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21799
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21800
 
 
21801
 
# So?  What about this header?
21802
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21803
 
  yes:no: )
21804
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21805
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21806
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21807
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21808
 
    ac_header_preproc=yes
21809
 
    ;;
21810
 
  no:yes:* )
21811
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21812
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21813
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21814
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21815
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21816
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21817
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21818
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21819
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21820
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21821
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21822
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21823
 
    ( cat <<\_ASBOX
21824
 
## --------------------------------------------- ##
21825
 
## Report this to https://launchpad.net/gearmand ##
21826
 
## --------------------------------------------- ##
21827
 
_ASBOX
21828
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21829
 
    ;;
21830
 
esac
21831
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21832
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21833
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21834
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21835
 
else
21836
 
  eval "$as_ac_Header=\$ac_header_preproc"
21837
 
fi
21838
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21839
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21840
 
echo "${ECHO_T}$ac_res" >&6; }
21841
 
 
21842
 
fi
21843
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21844
 
  cat >>confdefs.h <<_ACEOF
21845
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21846
 
_ACEOF
21847
 
 
21848
 
fi
21849
 
 
21850
 
done
21851
 
 
21852
 
 
21853
 
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21854
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21855
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21857
 
else
21858
 
  ac_check_lib_save_LIBS=$LIBS
21859
 
LIBS="-lpthread  $LIBS"
21860
 
cat >conftest.$ac_ext <<_ACEOF
21861
 
/* confdefs.h.  */
21862
 
_ACEOF
21863
 
cat confdefs.h >>conftest.$ac_ext
21864
 
cat >>conftest.$ac_ext <<_ACEOF
21865
 
/* end confdefs.h.  */
21866
 
 
21867
 
/* Override any GCC internal prototype to avoid an error.
21868
 
   Use char because int might match the return type of a GCC
21869
 
   builtin and then its argument prototype would still apply.  */
21870
 
#ifdef __cplusplus
21871
 
extern "C"
21872
 
#endif
21873
 
char pthread_create ();
21874
 
int
21875
 
main ()
21876
 
{
21877
 
return pthread_create ();
21878
 
  ;
21879
 
  return 0;
21880
 
}
21881
 
_ACEOF
21882
 
rm -f conftest.$ac_objext conftest$ac_exeext
21883
 
if { (ac_try="$ac_link"
21884
 
case "(($ac_try" in
21885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886
 
  *) ac_try_echo=$ac_try;;
21887
 
esac
21888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889
 
  (eval "$ac_link") 2>conftest.er1
21890
 
  ac_status=$?
21891
 
  grep -v '^ *+' conftest.er1 >conftest.err
21892
 
  rm -f conftest.er1
21893
 
  cat conftest.err >&5
21894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895
 
  (exit $ac_status); } && {
21896
 
         test -z "$ac_c_werror_flag" ||
21897
 
         test ! -s conftest.err
21898
 
       } && test -s conftest$ac_exeext &&
21899
 
       $as_test_x conftest$ac_exeext; then
21900
 
  ac_cv_lib_pthread_pthread_create=yes
21901
 
else
21902
 
  echo "$as_me: failed program was:" >&5
21903
 
sed 's/^/| /' conftest.$ac_ext >&5
21904
 
 
21905
 
        ac_cv_lib_pthread_pthread_create=no
21906
 
fi
21907
 
 
21908
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909
 
      conftest$ac_exeext conftest.$ac_ext
21910
 
LIBS=$ac_check_lib_save_LIBS
21911
 
fi
21912
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21913
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21914
 
if test $ac_cv_lib_pthread_pthread_create = yes; then
21915
 
  cat >>confdefs.h <<_ACEOF
21916
 
#define HAVE_LIBPTHREAD 1
21917
 
_ACEOF
21918
 
 
21919
 
  LIBS="-lpthread $LIBS"
21920
 
 
21921
 
fi
 
17711
  { echo "$as_me:$LINENO: checking for size_t" >&5
 
17712
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
17713
if test "${ac_cv_type_size_t+set}" = set; then
 
17714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17715
else
 
17716
  cat >conftest.$ac_ext <<_ACEOF
 
17717
/* confdefs.h.  */
 
17718
_ACEOF
 
17719
cat confdefs.h >>conftest.$ac_ext
 
17720
cat >>conftest.$ac_ext <<_ACEOF
 
17721
/* end confdefs.h.  */
 
17722
$ac_includes_default
 
17723
typedef size_t ac__type_new_;
 
17724
int
 
17725
main ()
 
17726
{
 
17727
if ((ac__type_new_ *) 0)
 
17728
  return 0;
 
17729
if (sizeof (ac__type_new_))
 
17730
  return 0;
 
17731
  ;
 
17732
  return 0;
 
17733
}
 
17734
_ACEOF
 
17735
rm -f conftest.$ac_objext
 
17736
if { (ac_try="$ac_compile"
 
17737
case "(($ac_try" in
 
17738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17739
  *) ac_try_echo=$ac_try;;
 
17740
esac
 
17741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17742
  (eval "$ac_compile") 2>conftest.er1
 
17743
  ac_status=$?
 
17744
  grep -v '^ *+' conftest.er1 >conftest.err
 
17745
  rm -f conftest.er1
 
17746
  cat conftest.err >&5
 
17747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17748
  (exit $ac_status); } && {
 
17749
         test -z "$ac_c_werror_flag" ||
 
17750
         test ! -s conftest.err
 
17751
       } && test -s conftest.$ac_objext; then
 
17752
  ac_cv_type_size_t=yes
 
17753
else
 
17754
  echo "$as_me: failed program was:" >&5
 
17755
sed 's/^/| /' conftest.$ac_ext >&5
 
17756
 
 
17757
        ac_cv_type_size_t=no
 
17758
fi
 
17759
 
 
17760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17761
fi
 
17762
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
17763
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
17764
if test $ac_cv_type_size_t = yes; then
 
17765
  :
 
17766
else
 
17767
 
 
17768
cat >>confdefs.h <<_ACEOF
 
17769
#define size_t unsigned int
 
17770
_ACEOF
 
17771
 
 
17772
fi
 
17773
 
 
17774
  # Check whether --enable-largefile was given.
 
17775
if test "${enable_largefile+set}" = set; then
 
17776
  enableval=$enable_largefile;
 
17777
fi
 
17778
 
 
17779
if test "$enable_largefile" != no; then
 
17780
 
 
17781
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
17782
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
17783
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
17784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17785
else
 
17786
  ac_cv_sys_largefile_CC=no
 
17787
     if test "$GCC" != yes; then
 
17788
       ac_save_CC=$CC
 
17789
       while :; do
 
17790
         # IRIX 6.2 and later do not support large files by default,
 
17791
         # so use the C compiler's -n32 option if that helps.
 
17792
         cat >conftest.$ac_ext <<_ACEOF
 
17793
/* confdefs.h.  */
 
17794
_ACEOF
 
17795
cat confdefs.h >>conftest.$ac_ext
 
17796
cat >>conftest.$ac_ext <<_ACEOF
 
17797
/* end confdefs.h.  */
 
17798
#include <sys/types.h>
 
17799
 /* Check that off_t can represent 2**63 - 1 correctly.
 
17800
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
17801
    since some C++ compilers masquerading as C compilers
 
17802
    incorrectly reject 9223372036854775807.  */
 
17803
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
17804
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
17805
                       && LARGE_OFF_T % 2147483647 == 1)
 
17806
                      ? 1 : -1];
 
17807
int
 
17808
main ()
 
17809
{
 
17810
 
 
17811
  ;
 
17812
  return 0;
 
17813
}
 
17814
_ACEOF
 
17815
         rm -f conftest.$ac_objext
 
17816
if { (ac_try="$ac_compile"
 
17817
case "(($ac_try" in
 
17818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17819
  *) ac_try_echo=$ac_try;;
 
17820
esac
 
17821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17822
  (eval "$ac_compile") 2>conftest.er1
 
17823
  ac_status=$?
 
17824
  grep -v '^ *+' conftest.er1 >conftest.err
 
17825
  rm -f conftest.er1
 
17826
  cat conftest.err >&5
 
17827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17828
  (exit $ac_status); } && {
 
17829
         test -z "$ac_c_werror_flag" ||
 
17830
         test ! -s conftest.err
 
17831
       } && test -s conftest.$ac_objext; then
 
17832
  break
 
17833
else
 
17834
  echo "$as_me: failed program was:" >&5
 
17835
sed 's/^/| /' conftest.$ac_ext >&5
 
17836
 
 
17837
 
 
17838
fi
 
17839
 
 
17840
rm -f core conftest.err conftest.$ac_objext
 
17841
         CC="$CC -n32"
 
17842
         rm -f conftest.$ac_objext
 
17843
if { (ac_try="$ac_compile"
 
17844
case "(($ac_try" in
 
17845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17846
  *) ac_try_echo=$ac_try;;
 
17847
esac
 
17848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17849
  (eval "$ac_compile") 2>conftest.er1
 
17850
  ac_status=$?
 
17851
  grep -v '^ *+' conftest.er1 >conftest.err
 
17852
  rm -f conftest.er1
 
17853
  cat conftest.err >&5
 
17854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17855
  (exit $ac_status); } && {
 
17856
         test -z "$ac_c_werror_flag" ||
 
17857
         test ! -s conftest.err
 
17858
       } && test -s conftest.$ac_objext; then
 
17859
  ac_cv_sys_largefile_CC=' -n32'; break
 
17860
else
 
17861
  echo "$as_me: failed program was:" >&5
 
17862
sed 's/^/| /' conftest.$ac_ext >&5
 
17863
 
 
17864
 
 
17865
fi
 
17866
 
 
17867
rm -f core conftest.err conftest.$ac_objext
 
17868
         break
 
17869
       done
 
17870
       CC=$ac_save_CC
 
17871
       rm -f conftest.$ac_ext
 
17872
    fi
 
17873
fi
 
17874
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
17875
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
17876
  if test "$ac_cv_sys_largefile_CC" != no; then
 
17877
    CC=$CC$ac_cv_sys_largefile_CC
 
17878
  fi
 
17879
 
 
17880
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
17881
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
17882
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
17883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17884
else
 
17885
  while :; do
 
17886
  cat >conftest.$ac_ext <<_ACEOF
 
17887
/* confdefs.h.  */
 
17888
_ACEOF
 
17889
cat confdefs.h >>conftest.$ac_ext
 
17890
cat >>conftest.$ac_ext <<_ACEOF
 
17891
/* end confdefs.h.  */
 
17892
#include <sys/types.h>
 
17893
 /* Check that off_t can represent 2**63 - 1 correctly.
 
17894
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
17895
    since some C++ compilers masquerading as C compilers
 
17896
    incorrectly reject 9223372036854775807.  */
 
17897
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
17898
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
17899
                       && LARGE_OFF_T % 2147483647 == 1)
 
17900
                      ? 1 : -1];
 
17901
int
 
17902
main ()
 
17903
{
 
17904
 
 
17905
  ;
 
17906
  return 0;
 
17907
}
 
17908
_ACEOF
 
17909
rm -f conftest.$ac_objext
 
17910
if { (ac_try="$ac_compile"
 
17911
case "(($ac_try" in
 
17912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17913
  *) ac_try_echo=$ac_try;;
 
17914
esac
 
17915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17916
  (eval "$ac_compile") 2>conftest.er1
 
17917
  ac_status=$?
 
17918
  grep -v '^ *+' conftest.er1 >conftest.err
 
17919
  rm -f conftest.er1
 
17920
  cat conftest.err >&5
 
17921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17922
  (exit $ac_status); } && {
 
17923
         test -z "$ac_c_werror_flag" ||
 
17924
         test ! -s conftest.err
 
17925
       } && test -s conftest.$ac_objext; then
 
17926
  ac_cv_sys_file_offset_bits=no; break
 
17927
else
 
17928
  echo "$as_me: failed program was:" >&5
 
17929
sed 's/^/| /' conftest.$ac_ext >&5
 
17930
 
 
17931
 
 
17932
fi
 
17933
 
 
17934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17935
  cat >conftest.$ac_ext <<_ACEOF
 
17936
/* confdefs.h.  */
 
17937
_ACEOF
 
17938
cat confdefs.h >>conftest.$ac_ext
 
17939
cat >>conftest.$ac_ext <<_ACEOF
 
17940
/* end confdefs.h.  */
 
17941
#define _FILE_OFFSET_BITS 64
 
17942
#include <sys/types.h>
 
17943
 /* Check that off_t can represent 2**63 - 1 correctly.
 
17944
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
17945
    since some C++ compilers masquerading as C compilers
 
17946
    incorrectly reject 9223372036854775807.  */
 
17947
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
17948
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
17949
                       && LARGE_OFF_T % 2147483647 == 1)
 
17950
                      ? 1 : -1];
 
17951
int
 
17952
main ()
 
17953
{
 
17954
 
 
17955
  ;
 
17956
  return 0;
 
17957
}
 
17958
_ACEOF
 
17959
rm -f conftest.$ac_objext
 
17960
if { (ac_try="$ac_compile"
 
17961
case "(($ac_try" in
 
17962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17963
  *) ac_try_echo=$ac_try;;
 
17964
esac
 
17965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17966
  (eval "$ac_compile") 2>conftest.er1
 
17967
  ac_status=$?
 
17968
  grep -v '^ *+' conftest.er1 >conftest.err
 
17969
  rm -f conftest.er1
 
17970
  cat conftest.err >&5
 
17971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17972
  (exit $ac_status); } && {
 
17973
         test -z "$ac_c_werror_flag" ||
 
17974
         test ! -s conftest.err
 
17975
       } && test -s conftest.$ac_objext; then
 
17976
  ac_cv_sys_file_offset_bits=64; break
 
17977
else
 
17978
  echo "$as_me: failed program was:" >&5
 
17979
sed 's/^/| /' conftest.$ac_ext >&5
 
17980
 
 
17981
 
 
17982
fi
 
17983
 
 
17984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17985
  ac_cv_sys_file_offset_bits=unknown
 
17986
  break
 
17987
done
 
17988
fi
 
17989
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
17990
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
17991
case $ac_cv_sys_file_offset_bits in #(
 
17992
  no | unknown) ;;
 
17993
  *)
 
17994
cat >>confdefs.h <<_ACEOF
 
17995
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
17996
_ACEOF
 
17997
;;
 
17998
esac
 
17999
rm -f conftest*
 
18000
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
18001
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
18002
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
18003
if test "${ac_cv_sys_large_files+set}" = set; then
 
18004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18005
else
 
18006
  while :; do
 
18007
  cat >conftest.$ac_ext <<_ACEOF
 
18008
/* confdefs.h.  */
 
18009
_ACEOF
 
18010
cat confdefs.h >>conftest.$ac_ext
 
18011
cat >>conftest.$ac_ext <<_ACEOF
 
18012
/* end confdefs.h.  */
 
18013
#include <sys/types.h>
 
18014
 /* Check that off_t can represent 2**63 - 1 correctly.
 
18015
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
18016
    since some C++ compilers masquerading as C compilers
 
18017
    incorrectly reject 9223372036854775807.  */
 
18018
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
18019
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
18020
                       && LARGE_OFF_T % 2147483647 == 1)
 
18021
                      ? 1 : -1];
 
18022
int
 
18023
main ()
 
18024
{
 
18025
 
 
18026
  ;
 
18027
  return 0;
 
18028
}
 
18029
_ACEOF
 
18030
rm -f conftest.$ac_objext
 
18031
if { (ac_try="$ac_compile"
 
18032
case "(($ac_try" in
 
18033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18034
  *) ac_try_echo=$ac_try;;
 
18035
esac
 
18036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18037
  (eval "$ac_compile") 2>conftest.er1
 
18038
  ac_status=$?
 
18039
  grep -v '^ *+' conftest.er1 >conftest.err
 
18040
  rm -f conftest.er1
 
18041
  cat conftest.err >&5
 
18042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18043
  (exit $ac_status); } && {
 
18044
         test -z "$ac_c_werror_flag" ||
 
18045
         test ! -s conftest.err
 
18046
       } && test -s conftest.$ac_objext; then
 
18047
  ac_cv_sys_large_files=no; break
 
18048
else
 
18049
  echo "$as_me: failed program was:" >&5
 
18050
sed 's/^/| /' conftest.$ac_ext >&5
 
18051
 
 
18052
 
 
18053
fi
 
18054
 
 
18055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18056
  cat >conftest.$ac_ext <<_ACEOF
 
18057
/* confdefs.h.  */
 
18058
_ACEOF
 
18059
cat confdefs.h >>conftest.$ac_ext
 
18060
cat >>conftest.$ac_ext <<_ACEOF
 
18061
/* end confdefs.h.  */
 
18062
#define _LARGE_FILES 1
 
18063
#include <sys/types.h>
 
18064
 /* Check that off_t can represent 2**63 - 1 correctly.
 
18065
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
18066
    since some C++ compilers masquerading as C compilers
 
18067
    incorrectly reject 9223372036854775807.  */
 
18068
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
18069
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
18070
                       && LARGE_OFF_T % 2147483647 == 1)
 
18071
                      ? 1 : -1];
 
18072
int
 
18073
main ()
 
18074
{
 
18075
 
 
18076
  ;
 
18077
  return 0;
 
18078
}
 
18079
_ACEOF
 
18080
rm -f conftest.$ac_objext
 
18081
if { (ac_try="$ac_compile"
 
18082
case "(($ac_try" in
 
18083
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18084
  *) ac_try_echo=$ac_try;;
 
18085
esac
 
18086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18087
  (eval "$ac_compile") 2>conftest.er1
 
18088
  ac_status=$?
 
18089
  grep -v '^ *+' conftest.er1 >conftest.err
 
18090
  rm -f conftest.er1
 
18091
  cat conftest.err >&5
 
18092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18093
  (exit $ac_status); } && {
 
18094
         test -z "$ac_c_werror_flag" ||
 
18095
         test ! -s conftest.err
 
18096
       } && test -s conftest.$ac_objext; then
 
18097
  ac_cv_sys_large_files=1; break
 
18098
else
 
18099
  echo "$as_me: failed program was:" >&5
 
18100
sed 's/^/| /' conftest.$ac_ext >&5
 
18101
 
 
18102
 
 
18103
fi
 
18104
 
 
18105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18106
  ac_cv_sys_large_files=unknown
 
18107
  break
 
18108
done
 
18109
fi
 
18110
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
18111
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
18112
case $ac_cv_sys_large_files in #(
 
18113
  no | unknown) ;;
 
18114
  *)
 
18115
cat >>confdefs.h <<_ACEOF
 
18116
#define _LARGE_FILES $ac_cv_sys_large_files
 
18117
_ACEOF
 
18118
;;
 
18119
esac
 
18120
rm -f conftest*
 
18121
  fi
 
18122
fi
 
18123
 
 
18124
 
 
18125
 
 
18126
 
 
18127
 
 
18128
    { echo "$as_me:$LINENO: checking \"C Compiler version--$GCC\"" >&5
 
18129
echo $ECHO_N "checking \"C Compiler version--$GCC\"... $ECHO_C" >&6; }
 
18130
  if test "$GCC" = "yes"; then
 
18131
 
 
18132
    CC_VERSION=`$CC --version | sed 1q`
 
18133
 
 
18134
else
 
18135
  if test "$SUNCC" = "yes"; then
 
18136
 
 
18137
      CC_VERSION=`$CC -V 2>&1 | sed 1q`
 
18138
 
 
18139
else
 
18140
 
 
18141
      CC_VERSION=""
 
18142
 
 
18143
fi
 
18144
 
 
18145
 
 
18146
fi
 
18147
 
 
18148
  { echo "$as_me:$LINENO: result: \"$CC_VERSION\"" >&5
 
18149
echo "${ECHO_T}\"$CC_VERSION\"" >&6; }
 
18150
 
 
18151
 
 
18152
 
 
18153
    { echo "$as_me:$LINENO: checking \"C++ Compiler version\"" >&5
 
18154
echo $ECHO_N "checking \"C++ Compiler version\"... $ECHO_C" >&6; }
 
18155
  if test "$GCC" = "yes"; then
 
18156
 
 
18157
    CXX_VERSION=`$CXX --version | sed 1q`
 
18158
 
 
18159
else
 
18160
  if test "$SUNCC" = "yes"; then
 
18161
 
 
18162
      CXX_VERSION=`$CXX -V 2>&1 | sed 1q`
 
18163
 
 
18164
else
 
18165
 
 
18166
    CXX_VERSION=""
 
18167
 
 
18168
fi
 
18169
 
 
18170
 
 
18171
fi
 
18172
 
 
18173
  { echo "$as_me:$LINENO: result: \"$CXX_VERSION\"" >&5
 
18174
echo "${ECHO_T}\"$CXX_VERSION\"" >&6; }
 
18175
 
 
18176
 
 
18177
 
 
18178
 
 
18179
      if test "$GCC" = "yes" -a "$INTELCC" = "no"; then
 
18180
 
 
18181
 
 
18182
                case "$target_cpu" in
 
18183
      *ppc* | *powerpc*)
 
18184
        AM_CFLAGS="-mno-fused-madd ${AM_CFLAGS}"
 
18185
        AM_CXXFLAGS="-mno-fused-madd ${AM_CXXFLAGS}"
 
18186
      ;;
 
18187
    esac
 
18188
 
 
18189
            CC="${CC} -std=gnu99"
 
18190
 
 
18191
    AM_CPPFLAGS="-ggdb3 ${AM_CPPFLAGS}"
 
18192
 
 
18193
    DEBUG_CFLAGS="-O0"
 
18194
    DEBUG_CXXFLAGS="-O0"
 
18195
 
 
18196
    OPTIMIZE_CFLAGS="-O3"
 
18197
    OPTIMIZE_CXXFLAGS="-O3"
 
18198
 
 
18199
fi
 
18200
 
 
18201
  if test "$INTELCC" = "yes"; then
 
18202
 
 
18203
            CC="${CC} -std=c99"
 
18204
 
 
18205
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
 
18206
 
 
18207
    DEBUG_CFLAGS="-O0"
 
18208
    DEBUG_CXXFLAGS="-O0"
 
18209
 
 
18210
    OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
 
18211
    OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
 
18212
 
 
18213
 
 
18214
fi
 
18215
 
 
18216
  if test "$SUNCC" = "yes"; then
 
18217
 
 
18218
            CC="${CC} -xc99=all"
 
18219
    CXX="${CXX} -xlang=c99"
 
18220
 
 
18221
    AM_CFLAGS="-g -mt -xstrconst -Xa ${AM_CFLAGS}"
 
18222
    AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -template=no%extdef ${AM_CXXFLAGS}"
 
18223
 
 
18224
    DEBUG_CXXFLAGS="-g"
 
18225
 
 
18226
        OPTIMIZE_FLAGS="-xO3 -xlibmil -xdepend -xbuiltin"
 
18227
    OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS}"
 
18228
    OPTIMIZE_CXXFLAGS="-g0 ${OPTIMIZE_FLAGS}"
 
18229
 
 
18230
 
 
18231
fi
 
18232
 
 
18233
 
 
18234
 
 
18235
# Check whether --with-debug was given.
 
18236
if test "${with_debug+set}" = set; then
 
18237
  withval=$with_debug; with_debug=$withval
 
18238
else
 
18239
  with_debug=no
 
18240
fi
 
18241
 
 
18242
  if test "$with_debug" = "yes"; then
 
18243
 
 
18244
    # Debugging. No optimization.
 
18245
    AM_CFLAGS="${AM_CFLAGS} ${DEBUG_CFLAGS} -DDEBUG"
 
18246
    AM_CXXFLAGS="${AM_CXXFLAGS} ${DEBUG_CXXFLAGS} -DDEBUG"
 
18247
 
 
18248
else
 
18249
 
 
18250
    # Optimized version. No debug
 
18251
    AM_CFLAGS="${AM_CFLAGS} ${OPTIMIZE_CFLAGS}"
 
18252
    AM_CXXFLAGS="${AM_CXXFLAGS} ${OPTIMIZE_CXXFLAGS}"
 
18253
 
 
18254
fi
 
18255
 
 
18256
 
 
18257
 
 
18258
    save_CFLAGS="${CFLAGS}"
 
18259
  CFLAGS="${CFLAGS} -Werror"
 
18260
 
 
18261
 
 
18262
  CFLAG_VISIBILITY=
 
18263
  HAVE_VISIBILITY=0
 
18264
  if test -n "$GCC"; then
 
18265
    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
 
18266
echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
 
18267
    if test "${gl_cv_cc_visibility+set}" = set; then
 
18268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18269
else
 
18270
 
 
18271
      gl_save_CFLAGS="$CFLAGS"
 
18272
      CFLAGS="$CFLAGS -fvisibility=hidden"
 
18273
      cat >conftest.$ac_ext <<_ACEOF
 
18274
/* confdefs.h.  */
 
18275
_ACEOF
 
18276
cat confdefs.h >>conftest.$ac_ext
 
18277
cat >>conftest.$ac_ext <<_ACEOF
 
18278
/* end confdefs.h.  */
 
18279
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
 
18280
         extern __attribute__((__visibility__("default"))) int exportedvar;
 
18281
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
 
18282
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
 
18283
int
 
18284
main ()
 
18285
{
 
18286
 
 
18287
  ;
 
18288
  return 0;
 
18289
}
 
18290
_ACEOF
 
18291
rm -f conftest.$ac_objext
 
18292
if { (ac_try="$ac_compile"
 
18293
case "(($ac_try" in
 
18294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18295
  *) ac_try_echo=$ac_try;;
 
18296
esac
 
18297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18298
  (eval "$ac_compile") 2>conftest.er1
 
18299
  ac_status=$?
 
18300
  grep -v '^ *+' conftest.er1 >conftest.err
 
18301
  rm -f conftest.er1
 
18302
  cat conftest.err >&5
 
18303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18304
  (exit $ac_status); } && {
 
18305
         test -z "$ac_c_werror_flag" ||
 
18306
         test ! -s conftest.err
 
18307
       } && test -s conftest.$ac_objext; then
 
18308
  gl_cv_cc_visibility=yes
 
18309
else
 
18310
  echo "$as_me: failed program was:" >&5
 
18311
sed 's/^/| /' conftest.$ac_ext >&5
 
18312
 
 
18313
        gl_cv_cc_visibility=no
 
18314
fi
 
18315
 
 
18316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18317
      CFLAGS="$gl_save_CFLAGS"
 
18318
fi
 
18319
 
 
18320
    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
 
18321
echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
 
18322
    if test $gl_cv_cc_visibility = yes; then
 
18323
      CFLAG_VISIBILITY="-fvisibility=hidden"
 
18324
      HAVE_VISIBILITY=1
 
18325
    fi
 
18326
  fi
 
18327
 
 
18328
 
 
18329
 
 
18330
cat >>confdefs.h <<_ACEOF
 
18331
#define HAVE_VISIBILITY $HAVE_VISIBILITY
 
18332
_ACEOF
 
18333
 
 
18334
 
 
18335
  CFLAGS="${save_CFLAGS}"
 
18336
 
 
18337
 
 
18338
  { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
 
18339
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
 
18340
  # Check whether --enable-assert was given.
 
18341
if test "${enable_assert+set}" = set; then
 
18342
  enableval=$enable_assert; ac_cv_assert="no"
 
18343
else
 
18344
  ac_cv_assert="yes"
 
18345
fi
 
18346
 
 
18347
  { echo "$as_me:$LINENO: result: $ac_cv_assert" >&5
 
18348
echo "${ECHO_T}$ac_cv_assert" >&6; }
 
18349
 
 
18350
  if test "$ac_cv_assert" = "yes"; then
 
18351
 
 
18352
for ac_header in assert.h
 
18353
do
 
18354
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18355
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18356
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18357
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18358
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18360
fi
 
18361
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18362
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18363
echo "${ECHO_T}$ac_res" >&6; }
 
18364
else
 
18365
  # Is the header compilable?
 
18366
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18367
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
18368
cat >conftest.$ac_ext <<_ACEOF
 
18369
/* confdefs.h.  */
 
18370
_ACEOF
 
18371
cat confdefs.h >>conftest.$ac_ext
 
18372
cat >>conftest.$ac_ext <<_ACEOF
 
18373
/* end confdefs.h.  */
 
18374
$ac_includes_default
 
18375
#include <$ac_header>
 
18376
_ACEOF
 
18377
rm -f conftest.$ac_objext
 
18378
if { (ac_try="$ac_compile"
 
18379
case "(($ac_try" in
 
18380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18381
  *) ac_try_echo=$ac_try;;
 
18382
esac
 
18383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18384
  (eval "$ac_compile") 2>conftest.er1
 
18385
  ac_status=$?
 
18386
  grep -v '^ *+' conftest.er1 >conftest.err
 
18387
  rm -f conftest.er1
 
18388
  cat conftest.err >&5
 
18389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18390
  (exit $ac_status); } && {
 
18391
         test -z "$ac_c_werror_flag" ||
 
18392
         test ! -s conftest.err
 
18393
       } && test -s conftest.$ac_objext; then
 
18394
  ac_header_compiler=yes
 
18395
else
 
18396
  echo "$as_me: failed program was:" >&5
 
18397
sed 's/^/| /' conftest.$ac_ext >&5
 
18398
 
 
18399
        ac_header_compiler=no
 
18400
fi
 
18401
 
 
18402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18403
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18404
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18405
 
 
18406
# Is the header present?
 
18407
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18408
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
18409
cat >conftest.$ac_ext <<_ACEOF
 
18410
/* confdefs.h.  */
 
18411
_ACEOF
 
18412
cat confdefs.h >>conftest.$ac_ext
 
18413
cat >>conftest.$ac_ext <<_ACEOF
 
18414
/* end confdefs.h.  */
 
18415
#include <$ac_header>
 
18416
_ACEOF
 
18417
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18418
case "(($ac_try" in
 
18419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18420
  *) ac_try_echo=$ac_try;;
 
18421
esac
 
18422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18423
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18424
  ac_status=$?
 
18425
  grep -v '^ *+' conftest.er1 >conftest.err
 
18426
  rm -f conftest.er1
 
18427
  cat conftest.err >&5
 
18428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18429
  (exit $ac_status); } >/dev/null && {
 
18430
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18431
         test ! -s conftest.err
 
18432
       }; then
 
18433
  ac_header_preproc=yes
 
18434
else
 
18435
  echo "$as_me: failed program was:" >&5
 
18436
sed 's/^/| /' conftest.$ac_ext >&5
 
18437
 
 
18438
  ac_header_preproc=no
 
18439
fi
 
18440
 
 
18441
rm -f conftest.err conftest.$ac_ext
 
18442
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18443
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18444
 
 
18445
# So?  What about this header?
 
18446
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18447
  yes:no: )
 
18448
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18449
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18450
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18451
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18452
    ac_header_preproc=yes
 
18453
    ;;
 
18454
  no:yes:* )
 
18455
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18456
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18457
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18458
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18459
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18460
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18461
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18462
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18463
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18464
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18465
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18466
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18467
    ( cat <<\_ASBOX
 
18468
## --------------------------------------------- ##
 
18469
## Report this to https://launchpad.net/gearmand ##
 
18470
## --------------------------------------------- ##
 
18471
_ASBOX
 
18472
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18473
    ;;
 
18474
esac
 
18475
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18476
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18477
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18479
else
 
18480
  eval "$as_ac_Header=\$ac_header_preproc"
 
18481
fi
 
18482
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18483
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18484
echo "${ECHO_T}$ac_res" >&6; }
 
18485
 
 
18486
fi
 
18487
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18488
  cat >>confdefs.h <<_ACEOF
 
18489
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18490
_ACEOF
 
18491
 
 
18492
fi
 
18493
 
 
18494
done
 
18495
 
 
18496
else
 
18497
 
 
18498
cat >>confdefs.h <<\_ACEOF
 
18499
#define NDEBUG 1
 
18500
_ACEOF
 
18501
 
 
18502
fi
 
18503
 
 
18504
 
 
18505
 
 
18506
 
 
18507
 
 
18508
 
 
18509
 
 
18510
 
 
18511
 
 
18512
 
 
18513
 
 
18514
  if test "$ac_cv_building_from_vc" = "yes"; then
 
18515
  ac_cv_warnings_as_errors=yes
 
18516
else
 
18517
  ac_cv_warnings_as_errors=no
 
18518
fi
 
18519
 
 
18520
 
 
18521
  # Check whether --enable-profiling was given.
 
18522
if test "${enable_profiling+set}" = set; then
 
18523
  enableval=$enable_profiling; ac_profiling="$enableval"
 
18524
else
 
18525
  ac_profiling="no"
 
18526
fi
 
18527
 
 
18528
 
 
18529
  # Check whether --enable-coverage was given.
 
18530
if test "${enable_coverage+set}" = set; then
 
18531
  enableval=$enable_coverage; ac_coverage="$enableval"
 
18532
else
 
18533
  ac_coverage="no"
 
18534
fi
 
18535
 
 
18536
 
 
18537
  if test "$GCC" = "yes"; then
 
18538
 
 
18539
 
 
18540
    if test "$ac_profiling" = "yes"; then
 
18541
 
 
18542
      CC_PROFILING="-pg"
 
18543
      save_LIBS="${LIBS}"
 
18544
      LIBS=""
 
18545
 
 
18546
{ echo "$as_me:$LINENO: checking for read in -lc_p" >&5
 
18547
echo $ECHO_N "checking for read in -lc_p... $ECHO_C" >&6; }
 
18548
if test "${ac_cv_lib_c_p_read+set}" = set; then
 
18549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18550
else
 
18551
  ac_check_lib_save_LIBS=$LIBS
 
18552
LIBS="-lc_p  $LIBS"
 
18553
cat >conftest.$ac_ext <<_ACEOF
 
18554
/* confdefs.h.  */
 
18555
_ACEOF
 
18556
cat confdefs.h >>conftest.$ac_ext
 
18557
cat >>conftest.$ac_ext <<_ACEOF
 
18558
/* end confdefs.h.  */
 
18559
 
 
18560
/* Override any GCC internal prototype to avoid an error.
 
18561
   Use char because int might match the return type of a GCC
 
18562
   builtin and then its argument prototype would still apply.  */
 
18563
#ifdef __cplusplus
 
18564
extern "C"
 
18565
#endif
 
18566
char read ();
 
18567
int
 
18568
main ()
 
18569
{
 
18570
return read ();
 
18571
  ;
 
18572
  return 0;
 
18573
}
 
18574
_ACEOF
 
18575
rm -f conftest.$ac_objext conftest$ac_exeext
 
18576
if { (ac_try="$ac_link"
 
18577
case "(($ac_try" in
 
18578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18579
  *) ac_try_echo=$ac_try;;
 
18580
esac
 
18581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18582
  (eval "$ac_link") 2>conftest.er1
 
18583
  ac_status=$?
 
18584
  grep -v '^ *+' conftest.er1 >conftest.err
 
18585
  rm -f conftest.er1
 
18586
  cat conftest.err >&5
 
18587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18588
  (exit $ac_status); } && {
 
18589
         test -z "$ac_c_werror_flag" ||
 
18590
         test ! -s conftest.err
 
18591
       } && test -s conftest$ac_exeext &&
 
18592
       $as_test_x conftest$ac_exeext; then
 
18593
  ac_cv_lib_c_p_read=yes
 
18594
else
 
18595
  echo "$as_me: failed program was:" >&5
 
18596
sed 's/^/| /' conftest.$ac_ext >&5
 
18597
 
 
18598
        ac_cv_lib_c_p_read=no
 
18599
fi
 
18600
 
 
18601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18602
      conftest$ac_exeext conftest.$ac_ext
 
18603
LIBS=$ac_check_lib_save_LIBS
 
18604
fi
 
18605
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_p_read" >&5
 
18606
echo "${ECHO_T}$ac_cv_lib_c_p_read" >&6; }
 
18607
if test $ac_cv_lib_c_p_read = yes; then
 
18608
  cat >>confdefs.h <<_ACEOF
 
18609
#define HAVE_LIBC_P 1
 
18610
_ACEOF
 
18611
 
 
18612
  LIBS="-lc_p $LIBS"
 
18613
 
 
18614
fi
 
18615
 
 
18616
      LIBC_P="${LIBS}"
 
18617
      LIBS="${save_LIBS}"
 
18618
 
 
18619
 
 
18620
else
 
18621
 
 
18622
      CC_PROFILING=" "
 
18623
 
 
18624
fi
 
18625
 
 
18626
 
 
18627
    if test "$ac_coverage" = "yes"; then
 
18628
  CC_COVERAGE="-fprofile-arcs -ftest-coverage"
 
18629
fi
 
18630
 
 
18631
 
 
18632
    if test "$ac_cv_warnings_as_errors" = "yes"; then
 
18633
  W_FAIL="-Werror"
 
18634
fi
 
18635
 
 
18636
 
 
18637
    { echo "$as_me:$LINENO: checking whether it is safe to use -fdiagnostics-show-option" >&5
 
18638
echo $ECHO_N "checking whether it is safe to use -fdiagnostics-show-option... $ECHO_C" >&6; }
 
18639
if test "${ac_cv_safe_to_use_fdiagnostics_show_option_+set}" = set; then
 
18640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18641
else
 
18642
  save_CFLAGS="$CFLAGS"
 
18643
       CFLAGS="-fdiagnostics-show-option ${AM_CFLAGS} ${CFLAGS}"
 
18644
       cat >conftest.$ac_ext <<_ACEOF
 
18645
/* confdefs.h.  */
 
18646
_ACEOF
 
18647
cat confdefs.h >>conftest.$ac_ext
 
18648
cat >>conftest.$ac_ext <<_ACEOF
 
18649
/* end confdefs.h.  */
 
18650
 
 
18651
int
 
18652
main ()
 
18653
{
 
18654
 
 
18655
  ;
 
18656
  return 0;
 
18657
}
 
18658
_ACEOF
 
18659
rm -f conftest.$ac_objext
 
18660
if { (ac_try="$ac_compile"
 
18661
case "(($ac_try" in
 
18662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18663
  *) ac_try_echo=$ac_try;;
 
18664
esac
 
18665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18666
  (eval "$ac_compile") 2>conftest.er1
 
18667
  ac_status=$?
 
18668
  grep -v '^ *+' conftest.er1 >conftest.err
 
18669
  rm -f conftest.er1
 
18670
  cat conftest.err >&5
 
18671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18672
  (exit $ac_status); } && {
 
18673
         test -z "$ac_c_werror_flag" ||
 
18674
         test ! -s conftest.err
 
18675
       } && test -s conftest.$ac_objext; then
 
18676
  ac_cv_safe_to_use_fdiagnostics_show_option_=yes
 
18677
else
 
18678
  echo "$as_me: failed program was:" >&5
 
18679
sed 's/^/| /' conftest.$ac_ext >&5
 
18680
 
 
18681
        ac_cv_safe_to_use_fdiagnostics_show_option_=no
 
18682
fi
 
18683
 
 
18684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18685
       CFLAGS="$save_CFLAGS"
 
18686
fi
 
18687
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_fdiagnostics_show_option_" >&5
 
18688
echo "${ECHO_T}$ac_cv_safe_to_use_fdiagnostics_show_option_" >&6; }
 
18689
 
 
18690
    if test "$ac_cv_safe_to_use_fdiagnostics_show_option_" = "yes"; then
 
18691
 
 
18692
            F_DIAGNOSTICS_SHOW_OPTION="-fdiagnostics-show-option"
 
18693
 
 
18694
fi
 
18695
 
 
18696
 
 
18697
    { echo "$as_me:$LINENO: checking whether it is safe to use -Wconversion" >&5
 
18698
echo $ECHO_N "checking whether it is safe to use -Wconversion... $ECHO_C" >&6; }
 
18699
if test "${ac_cv_safe_to_use_wconversion_+set}" = set; then
 
18700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18701
else
 
18702
  save_CFLAGS="$CFLAGS"
 
18703
                     CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
 
18704
       cat >conftest.$ac_ext <<_ACEOF
 
18705
/* confdefs.h.  */
 
18706
_ACEOF
 
18707
cat confdefs.h >>conftest.$ac_ext
 
18708
cat >>conftest.$ac_ext <<_ACEOF
 
18709
/* end confdefs.h.  */
 
18710
 
 
18711
#include <stdbool.h>
 
18712
void foo(bool a)
 
18713
{
 
18714
  (void)a;
 
18715
}
 
18716
 
 
18717
int
 
18718
main ()
 
18719
{
 
18720
 
 
18721
foo(0);
 
18722
 
 
18723
  ;
 
18724
  return 0;
 
18725
}
 
18726
_ACEOF
 
18727
rm -f conftest.$ac_objext
 
18728
if { (ac_try="$ac_compile"
 
18729
case "(($ac_try" in
 
18730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18731
  *) ac_try_echo=$ac_try;;
 
18732
esac
 
18733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18734
  (eval "$ac_compile") 2>conftest.er1
 
18735
  ac_status=$?
 
18736
  grep -v '^ *+' conftest.er1 >conftest.err
 
18737
  rm -f conftest.er1
 
18738
  cat conftest.err >&5
 
18739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18740
  (exit $ac_status); } && {
 
18741
         test -z "$ac_c_werror_flag" ||
 
18742
         test ! -s conftest.err
 
18743
       } && test -s conftest.$ac_objext; then
 
18744
  ac_cv_safe_to_use_wconversion_=yes
 
18745
else
 
18746
  echo "$as_me: failed program was:" >&5
 
18747
sed 's/^/| /' conftest.$ac_ext >&5
 
18748
 
 
18749
        ac_cv_safe_to_use_wconversion_=no
 
18750
fi
 
18751
 
 
18752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18753
       CFLAGS="$save_CFLAGS"
 
18754
fi
 
18755
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_wconversion_" >&5
 
18756
echo "${ECHO_T}$ac_cv_safe_to_use_wconversion_" >&6; }
 
18757
 
 
18758
    if test "$ac_cv_safe_to_use_wconversion_" = "yes"; then
 
18759
  W_CONVERSION="-Wconversion"
 
18760
      { echo "$as_me:$LINENO: checking whether it is safe to use -Wconversion with htons" >&5
 
18761
echo $ECHO_N "checking whether it is safe to use -Wconversion with htons... $ECHO_C" >&6; }
 
18762
if test "${ac_cv_safe_to_use_Wconversion_+set}" = set; then
 
18763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18764
else
 
18765
  save_CFLAGS="$CFLAGS"
 
18766
                           CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
 
18767
         cat >conftest.$ac_ext <<_ACEOF
 
18768
/* confdefs.h.  */
 
18769
_ACEOF
 
18770
cat confdefs.h >>conftest.$ac_ext
 
18771
cat >>conftest.$ac_ext <<_ACEOF
 
18772
/* end confdefs.h.  */
 
18773
 
 
18774
#include <netinet/in.h>
 
18775
 
 
18776
int
 
18777
main ()
 
18778
{
 
18779
 
 
18780
uint16_t x= htons(80);
 
18781
 
 
18782
  ;
 
18783
  return 0;
 
18784
}
 
18785
_ACEOF
 
18786
rm -f conftest.$ac_objext
 
18787
if { (ac_try="$ac_compile"
 
18788
case "(($ac_try" in
 
18789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18790
  *) ac_try_echo=$ac_try;;
 
18791
esac
 
18792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18793
  (eval "$ac_compile") 2>conftest.er1
 
18794
  ac_status=$?
 
18795
  grep -v '^ *+' conftest.er1 >conftest.err
 
18796
  rm -f conftest.er1
 
18797
  cat conftest.err >&5
 
18798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18799
  (exit $ac_status); } && {
 
18800
         test -z "$ac_c_werror_flag" ||
 
18801
         test ! -s conftest.err
 
18802
       } && test -s conftest.$ac_objext; then
 
18803
  ac_cv_safe_to_use_Wconversion_=yes
 
18804
else
 
18805
  echo "$as_me: failed program was:" >&5
 
18806
sed 's/^/| /' conftest.$ac_ext >&5
 
18807
 
 
18808
        ac_cv_safe_to_use_Wconversion_=no
 
18809
fi
 
18810
 
 
18811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18812
         CFLAGS="$save_CFLAGS"
 
18813
fi
 
18814
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wconversion_" >&5
 
18815
echo "${ECHO_T}$ac_cv_safe_to_use_Wconversion_" >&6; }
 
18816
 
 
18817
      if test "$ac_cv_safe_to_use_Wconversion_" = "no"; then
 
18818
  NO_CONVERSION="-Wno-conversion"
 
18819
fi
 
18820
 
 
18821
 
 
18822
fi
 
18823
 
 
18824
 
 
18825
    NO_STRICT_ALIASING="-fno-strict-aliasing -Wno-strict-aliasing"
 
18826
    NO_SHADOW="-Wno-shadow"
 
18827
 
 
18828
    if test "$INTELCC" = "yes"; then
 
18829
 
 
18830
 
 
18831
        BASE_WARNINGS="-w1 -Wall -Werror -Wcheck -Wformat -Wp64 -Woverloaded-virtual -Wcast-qual"
 
18832
 
 
18833
      CC_WARNINGS="${BASE_WARNINGS}"
 
18834
      CXX_WARNINGS="${BASE_WARNINGS}"
 
18835
 
 
18836
else
 
18837
 
 
18838
 
 
18839
        BASE_WARNINGS_FULL="-Wformat=2 ${W_CONVERSION} -Wstrict-aliasing"
 
18840
        CC_WARNINGS_FULL="-Wswitch-default -Wswitch-enum -Wwrite-strings"
 
18841
        CXX_WARNINGS_FULL="-Weffc++ -Wold-style-cast"
 
18842
 
 
18843
 
 
18844
      if test "${ac_cv_assert}" = "no"; then
 
18845
  NO_UNUSED="-Wno-unused-variable -Wno-unused-parameter"
 
18846
fi
 
18847
 
 
18848
 
 
18849
      BASE_WARNINGS="${W_FAIL} -pedantic -Wall -Wextra -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}"
 
18850
      CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
 
18851
      CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long ${CXX_WARNINGS_FULL}"
 
18852
 
 
18853
      { echo "$as_me:$LINENO: checking whether it is safe to use -Wmissing-declarations from C++" >&5
 
18854
echo $ECHO_N "checking whether it is safe to use -Wmissing-declarations from C++... $ECHO_C" >&6; }
 
18855
if test "${ac_cv_safe_to_use_Wmissing_declarations_+set}" = set; then
 
18856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18857
else
 
18858
  ac_ext=cpp
 
18859
ac_cpp='$CXXCPP $CPPFLAGS'
 
18860
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18861
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18862
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18863
 
 
18864
         save_CXXFLAGS="$CXXFLAGS"
 
18865
         CXXFLAGS="-Werror -pedantic -Wmissing-declarations ${AM_CXXFLAGS}"
 
18866
         cat >conftest.$ac_ext <<_ACEOF
 
18867
 
 
18868
           /* confdefs.h.  */
 
18869
_ACEOF
 
18870
cat confdefs.h >>conftest.$ac_ext
 
18871
cat >>conftest.$ac_ext <<_ACEOF
 
18872
/* end confdefs.h.  */
 
18873
 
 
18874
#include <stdio.h>
 
18875
 
 
18876
int
 
18877
main ()
 
18878
{
 
18879
 
 
18880
  ;
 
18881
  return 0;
 
18882
}
 
18883
 
 
18884
_ACEOF
 
18885
rm -f conftest.$ac_objext
 
18886
if { (ac_try="$ac_compile"
 
18887
case "(($ac_try" in
 
18888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18889
  *) ac_try_echo=$ac_try;;
 
18890
esac
 
18891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18892
  (eval "$ac_compile") 2>conftest.er1
 
18893
  ac_status=$?
 
18894
  grep -v '^ *+' conftest.er1 >conftest.err
 
18895
  rm -f conftest.er1
 
18896
  cat conftest.err >&5
 
18897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18898
  (exit $ac_status); } && {
 
18899
         test -z "$ac_cxx_werror_flag" ||
 
18900
         test ! -s conftest.err
 
18901
       } && test -s conftest.$ac_objext; then
 
18902
  ac_cv_safe_to_use_Wmissing_declarations_=yes
 
18903
else
 
18904
  echo "$as_me: failed program was:" >&5
 
18905
sed 's/^/| /' conftest.$ac_ext >&5
 
18906
 
 
18907
        ac_cv_safe_to_use_Wmissing_declarations_=no
 
18908
fi
 
18909
 
 
18910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18911
        CXXFLAGS="$save_CXXFLAGS"
 
18912
        ac_ext=c
 
18913
ac_cpp='$CPP $CPPFLAGS'
 
18914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18917
 
 
18918
 
 
18919
fi
 
18920
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wmissing_declarations_" >&5
 
18921
echo "${ECHO_T}$ac_cv_safe_to_use_Wmissing_declarations_" >&6; }
 
18922
      if test "$ac_cv_safe_to_use_Wmissing_declarations_" = "yes"; then
 
18923
  CXX_WARNINGS="${CXX_WARNINGS} -Wmissing-declarations"
 
18924
fi
 
18925
 
 
18926
 
 
18927
      { echo "$as_me:$LINENO: checking whether it is safe to use -Wlogical-op" >&5
 
18928
echo $ECHO_N "checking whether it is safe to use -Wlogical-op... $ECHO_C" >&6; }
 
18929
if test "${ac_cv_safe_to_use_Wlogical_op_+set}" = set; then
 
18930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18931
else
 
18932
  save_CFLAGS="$CFLAGS"
 
18933
         CFLAGS="${W_FAIL} -pedantic -Wlogical-op ${AM_CFLAGS} ${CFLAGS}"
 
18934
         cat >conftest.$ac_ext <<_ACEOF
 
18935
 
 
18936
           /* confdefs.h.  */
 
18937
_ACEOF
 
18938
cat confdefs.h >>conftest.$ac_ext
 
18939
cat >>conftest.$ac_ext <<_ACEOF
 
18940
/* end confdefs.h.  */
 
18941
 
 
18942
#include <stdio.h>
 
18943
 
 
18944
int
 
18945
main ()
 
18946
{
 
18947
 
 
18948
  ;
 
18949
  return 0;
 
18950
}
 
18951
 
 
18952
_ACEOF
 
18953
rm -f conftest.$ac_objext
 
18954
if { (ac_try="$ac_compile"
 
18955
case "(($ac_try" in
 
18956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18957
  *) ac_try_echo=$ac_try;;
 
18958
esac
 
18959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18960
  (eval "$ac_compile") 2>conftest.er1
 
18961
  ac_status=$?
 
18962
  grep -v '^ *+' conftest.er1 >conftest.err
 
18963
  rm -f conftest.er1
 
18964
  cat conftest.err >&5
 
18965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18966
  (exit $ac_status); } && {
 
18967
         test -z "$ac_c_werror_flag" ||
 
18968
         test ! -s conftest.err
 
18969
       } && test -s conftest.$ac_objext; then
 
18970
  ac_cv_safe_to_use_Wlogical_op_=yes
 
18971
else
 
18972
  echo "$as_me: failed program was:" >&5
 
18973
sed 's/^/| /' conftest.$ac_ext >&5
 
18974
 
 
18975
        ac_cv_safe_to_use_Wlogical_op_=no
 
18976
fi
 
18977
 
 
18978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18979
      CFLAGS="$save_CFLAGS"
 
18980
fi
 
18981
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wlogical_op_" >&5
 
18982
echo "${ECHO_T}$ac_cv_safe_to_use_Wlogical_op_" >&6; }
 
18983
      if test "$ac_cv_safe_to_use_Wlogical_op_" = "yes"; then
 
18984
  CC_WARNINGS="${CC_WARNINGS} -Wlogical-op"
 
18985
fi
 
18986
 
 
18987
 
 
18988
      { echo "$as_me:$LINENO: checking whether it is safe to use -Wredundant-decls from C++" >&5
 
18989
echo $ECHO_N "checking whether it is safe to use -Wredundant-decls from C++... $ECHO_C" >&6; }
 
18990
if test "${ac_cv_safe_to_use_Wredundant_decls_+set}" = set; then
 
18991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18992
else
 
18993
  ac_ext=cpp
 
18994
ac_cpp='$CXXCPP $CPPFLAGS'
 
18995
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18996
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18997
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18998
 
 
18999
         save_CXXFLAGS="${CXXFLAGS}"
 
19000
         CXXFLAGS="${W_FAIL} -pedantic -Wredundant-decls ${AM_CXXFLAGS}"
 
19001
         cat >conftest.$ac_ext <<_ACEOF
 
19002
/* confdefs.h.  */
 
19003
_ACEOF
 
19004
cat confdefs.h >>conftest.$ac_ext
 
19005
cat >>conftest.$ac_ext <<_ACEOF
 
19006
/* end confdefs.h.  */
 
19007
 
 
19008
template <typename E> struct C { void foo(); };
 
19009
template <typename E> void C<E>::foo() { }
 
19010
template <> void C<int>::foo();
 
19011
            $ac_includes_default
 
19012
int
 
19013
main ()
 
19014
{
 
19015
 
 
19016
  ;
 
19017
  return 0;
 
19018
}
 
19019
_ACEOF
 
19020
rm -f conftest.$ac_objext
 
19021
if { (ac_try="$ac_compile"
 
19022
case "(($ac_try" in
 
19023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19024
  *) ac_try_echo=$ac_try;;
 
19025
esac
 
19026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19027
  (eval "$ac_compile") 2>conftest.er1
 
19028
  ac_status=$?
 
19029
  grep -v '^ *+' conftest.er1 >conftest.err
 
19030
  rm -f conftest.er1
 
19031
  cat conftest.err >&5
 
19032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19033
  (exit $ac_status); } && {
 
19034
         test -z "$ac_cxx_werror_flag" ||
 
19035
         test ! -s conftest.err
 
19036
       } && test -s conftest.$ac_objext; then
 
19037
  ac_cv_safe_to_use_Wredundant_decls_=yes
 
19038
else
 
19039
  echo "$as_me: failed program was:" >&5
 
19040
sed 's/^/| /' conftest.$ac_ext >&5
 
19041
 
 
19042
        ac_cv_safe_to_use_Wredundant_decls_=no
 
19043
fi
 
19044
 
 
19045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19046
          CXXFLAGS="${save_CXXFLAGS}"
 
19047
          ac_ext=c
 
19048
ac_cpp='$CPP $CPPFLAGS'
 
19049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19052
 
 
19053
fi
 
19054
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wredundant_decls_" >&5
 
19055
echo "${ECHO_T}$ac_cv_safe_to_use_Wredundant_decls_" >&6; }
 
19056
      if test "$ac_cv_safe_to_use_Wredundant_decls_" = "yes"; then
 
19057
  CXX_WARNINGS="${CXX_WARNINGS} -Wredundant-decls"
 
19058
else
 
19059
  CXX_WARNINGS="${CXX_WARNINGS} -Wno-redundant-decls"
 
19060
fi
 
19061
 
 
19062
 
 
19063
      NO_REDUNDANT_DECLS="-Wno-redundant-decls"
 
19064
      PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow"
 
19065
 
 
19066
 
 
19067
fi
 
19068
 
 
19069
 
 
19070
fi
 
19071
 
 
19072
 
 
19073
  if test "$SUNCC" = "yes"; then
 
19074
 
 
19075
 
 
19076
    if test "$ac_profiling" = "yes"; then
 
19077
  CC_PROFILING="-xinstrument=datarace"
 
19078
fi
 
19079
 
 
19080
 
 
19081
    if test "$ac_cv_warnings_as_errors" = "yes"; then
 
19082
  W_FAIL="-errwarn=%all"
 
19083
fi
 
19084
 
 
19085
 
 
19086
    { echo "$as_me:$LINENO: checking whether E_PASTE_RESULT_NOT_TOKEN is usable" >&5
 
19087
echo $ECHO_N "checking whether E_PASTE_RESULT_NOT_TOKEN is usable... $ECHO_C" >&6; }
 
19088
if test "${ac_cv_paste_result+set}" = set; then
 
19089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19090
else
 
19091
 
 
19092
        save_CFLAGS="${CFLAGS}"
 
19093
        CFLAGS="-errwarn=%all -erroff=E_PASTE_RESULT_NOT_TOKEN ${CFLAGS}"
 
19094
        cat >conftest.$ac_ext <<_ACEOF
 
19095
/* confdefs.h.  */
 
19096
_ACEOF
 
19097
cat confdefs.h >>conftest.$ac_ext
 
19098
cat >>conftest.$ac_ext <<_ACEOF
 
19099
/* end confdefs.h.  */
 
19100
 
 
19101
            $ac_includes_default
 
19102
 
 
19103
int
 
19104
main ()
 
19105
{
 
19106
 
 
19107
            int x= 0;
 
19108
  ;
 
19109
  return 0;
 
19110
}
 
19111
_ACEOF
 
19112
rm -f conftest.$ac_objext
 
19113
if { (ac_try="$ac_compile"
 
19114
case "(($ac_try" in
 
19115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19116
  *) ac_try_echo=$ac_try;;
 
19117
esac
 
19118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19119
  (eval "$ac_compile") 2>conftest.er1
 
19120
  ac_status=$?
 
19121
  grep -v '^ *+' conftest.er1 >conftest.err
 
19122
  rm -f conftest.er1
 
19123
  cat conftest.err >&5
 
19124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19125
  (exit $ac_status); } && {
 
19126
         test -z "$ac_c_werror_flag" ||
 
19127
         test ! -s conftest.err
 
19128
       } && test -s conftest.$ac_objext; then
 
19129
  ac_cv_paste_result=yes
 
19130
else
 
19131
  echo "$as_me: failed program was:" >&5
 
19132
sed 's/^/| /' conftest.$ac_ext >&5
 
19133
 
 
19134
        ac_cv_paste_result=no
 
19135
fi
 
19136
 
 
19137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19138
        CFLAGS="${save_CFLAGS}"
 
19139
 
 
19140
fi
 
19141
{ echo "$as_me:$LINENO: result: $ac_cv_paste_result" >&5
 
19142
echo "${ECHO_T}$ac_cv_paste_result" >&6; }
 
19143
    if test $ac_cv_paste_result = yes; then
 
19144
  W_PASTE_RESULT=",E_PASTE_RESULT_NOT_TOKEN"
 
19145
fi
 
19146
 
 
19147
 
 
19148
 
 
19149
 
 
19150
      CC_WARNINGS_FULL="-erroff=E_INTEGER_OVERFLOW_DETECTED${W_PASTE_RESULT}"
 
19151
      CXX_WARNINGS_FULL="-erroff=inllargeuse"
 
19152
 
 
19153
 
 
19154
    CC_WARNINGS="-v -errtags=yes ${W_FAIL} ${CC_WARNINGS_FULL}"
 
19155
    CXX_WARNINGS="+w +w2 -xwe -xport64 -errtags=yes ${CXX_WARNINGS_FULL} ${W_FAIL}"
 
19156
    PROTOSKIP_WARNINGS="-erroff=attrskipunsup,doubunder,reftotemp,wbadinitl,identexpected,inllargeuse,truncwarn1,signextwarn"
 
19157
    NO_UNREACHED="-erroff=E_STATEMENT_NOT_REACHED"
 
19158
 
 
19159
 
 
19160
fi
 
19161
 
 
19162
 
 
19163
 
 
19164
 
 
19165
 
 
19166
 
 
19167
 
 
19168
 
 
19169
 
 
19170
 
 
19171
 
 
19172
 
 
19173
  # Check whether --enable-dtrace was given.
 
19174
if test "${enable_dtrace+set}" = set; then
 
19175
  enableval=$enable_dtrace; ac_cv_enable_dtrace="yes"
 
19176
else
 
19177
  ac_cv_enable_dtrace="no"
 
19178
fi
 
19179
 
 
19180
 
 
19181
  if test "$ac_cv_enable_dtrace" = "yes"; then
 
19182
 
 
19183
    for ac_prog in dtrace
 
19184
do
 
19185
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19186
set dummy $ac_prog; ac_word=$2
 
19187
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19189
if test "${ac_cv_prog_DTRACE+set}" = set; then
 
19190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19191
else
 
19192
  if test -n "$DTRACE"; then
 
19193
  ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
 
19194
else
 
19195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19196
for as_dir in $PATH
 
19197
do
 
19198
  IFS=$as_save_IFS
 
19199
  test -z "$as_dir" && as_dir=.
 
19200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19202
    ac_cv_prog_DTRACE="$ac_prog"
 
19203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19204
    break 2
 
19205
  fi
 
19206
done
 
19207
done
 
19208
IFS=$as_save_IFS
 
19209
 
 
19210
fi
 
19211
fi
 
19212
DTRACE=$ac_cv_prog_DTRACE
 
19213
if test -n "$DTRACE"; then
 
19214
  { echo "$as_me:$LINENO: result: $DTRACE" >&5
 
19215
echo "${ECHO_T}$DTRACE" >&6; }
 
19216
else
 
19217
  { echo "$as_me:$LINENO: result: no" >&5
 
19218
echo "${ECHO_T}no" >&6; }
 
19219
fi
 
19220
 
 
19221
 
 
19222
  test -n "$DTRACE" && break
 
19223
done
 
19224
 
 
19225
    if test "x$ac_cv_prog_DTRACE" = "xdtrace"; then
 
19226
 
 
19227
 
 
19228
cat >>confdefs.h <<\_ACEOF
 
19229
#define HAVE_DTRACE 1
 
19230
_ACEOF
 
19231
 
 
19232
            cat >conftest.d <<_ACEOF
 
19233
provider Example {
 
19234
  probe increment(int);
 
19235
};
 
19236
_ACEOF
 
19237
      $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
 
19238
      if test $? -eq 0; then
 
19239
  ac_cv_dtrace_needs_objects=yes
 
19240
fi
 
19241
 
 
19242
      rm -f conftest.d.o conftest.d
 
19243
 
 
19244
             ac_cv_have_dtrace=yes
 
19245
 
 
19246
fi
 
19247
 
 
19248
fi
 
19249
 
 
19250
 
 
19251
 if test "x$ac_cv_have_dtrace" = "xyes"; then
 
19252
  HAVE_DTRACE_TRUE=
 
19253
  HAVE_DTRACE_FALSE='#'
 
19254
else
 
19255
  HAVE_DTRACE_TRUE='#'
 
19256
  HAVE_DTRACE_FALSE=
 
19257
fi
 
19258
 
 
19259
 if test "x$ac_cv_dtrace_needs_objects" = "xyes"; then
 
19260
  DTRACE_NEEDS_OBJECTS_TRUE=
 
19261
  DTRACE_NEEDS_OBJECTS_FALSE='#'
 
19262
else
 
19263
  DTRACE_NEEDS_OBJECTS_TRUE='#'
 
19264
  DTRACE_NEEDS_OBJECTS_FALSE=
 
19265
fi
 
19266
 
 
19267
 
 
19268
 
 
19269
 
 
19270
 
 
19271
 
 
19272
 
 
19273
 
 
19274
 
 
19275
 
 
19276
    use_additional=yes
 
19277
 
 
19278
  acl_save_prefix="$prefix"
 
19279
  prefix="$acl_final_prefix"
 
19280
  acl_save_exec_prefix="$exec_prefix"
 
19281
  exec_prefix="$acl_final_exec_prefix"
 
19282
 
 
19283
    eval additional_includedir=\"$includedir\"
 
19284
    eval additional_libdir=\"$libdir\"
 
19285
 
 
19286
  exec_prefix="$acl_save_exec_prefix"
 
19287
  prefix="$acl_save_prefix"
 
19288
 
 
19289
 
 
19290
# Check whether --with-lib-prefix was given.
 
19291
if test "${with_lib_prefix+set}" = set; then
 
19292
  withval=$with_lib_prefix;
 
19293
    if test "X$withval" = "Xno"; then
 
19294
      use_additional=no
 
19295
    else
 
19296
      if test "X$withval" = "X"; then
 
19297
 
 
19298
  acl_save_prefix="$prefix"
 
19299
  prefix="$acl_final_prefix"
 
19300
  acl_save_exec_prefix="$exec_prefix"
 
19301
  exec_prefix="$acl_final_exec_prefix"
 
19302
 
 
19303
          eval additional_includedir=\"$includedir\"
 
19304
          eval additional_libdir=\"$libdir\"
 
19305
 
 
19306
  exec_prefix="$acl_save_exec_prefix"
 
19307
  prefix="$acl_save_prefix"
 
19308
 
 
19309
      else
 
19310
        additional_includedir="$withval/include"
 
19311
        additional_libdir="$withval/$acl_libdirstem"
 
19312
      fi
 
19313
    fi
 
19314
 
 
19315
fi
 
19316
 
 
19317
  if test $use_additional = yes; then
 
19318
                            if test "X$additional_includedir" != "X/usr/include"; then
 
19319
      haveit=
 
19320
      for x in $CPPFLAGS; do
 
19321
 
 
19322
  acl_save_prefix="$prefix"
 
19323
  prefix="$acl_final_prefix"
 
19324
  acl_save_exec_prefix="$exec_prefix"
 
19325
  exec_prefix="$acl_final_exec_prefix"
 
19326
  eval x=\"$x\"
 
19327
  exec_prefix="$acl_save_exec_prefix"
 
19328
  prefix="$acl_save_prefix"
 
19329
 
 
19330
        if test "X$x" = "X-I$additional_includedir"; then
 
19331
          haveit=yes
 
19332
          break
 
19333
        fi
 
19334
      done
 
19335
      if test -z "$haveit"; then
 
19336
        if test "X$additional_includedir" = "X/usr/local/include"; then
 
19337
          if test -n "$GCC"; then
 
19338
            case $host_os in
 
19339
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
19340
            esac
 
19341
          fi
 
19342
        fi
 
19343
        if test -z "$haveit"; then
 
19344
          if test -d "$additional_includedir"; then
 
19345
                        CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
 
19346
          fi
 
19347
        fi
 
19348
      fi
 
19349
    fi
 
19350
                            if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
19351
      haveit=
 
19352
      for x in $LDFLAGS; do
 
19353
 
 
19354
  acl_save_prefix="$prefix"
 
19355
  prefix="$acl_final_prefix"
 
19356
  acl_save_exec_prefix="$exec_prefix"
 
19357
  exec_prefix="$acl_final_exec_prefix"
 
19358
  eval x=\"$x\"
 
19359
  exec_prefix="$acl_save_exec_prefix"
 
19360
  prefix="$acl_save_prefix"
 
19361
 
 
19362
        if test "X$x" = "X-L$additional_libdir"; then
 
19363
          haveit=yes
 
19364
          break
 
19365
        fi
 
19366
      done
 
19367
      if test -z "$haveit"; then
 
19368
        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
19369
          if test -n "$GCC"; then
 
19370
            case $host_os in
 
19371
              linux*) haveit=yes;;
 
19372
            esac
 
19373
          fi
 
19374
        fi
 
19375
        if test -z "$haveit"; then
 
19376
          if test -d "$additional_libdir"; then
 
19377
                        LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
 
19378
          fi
 
19379
        fi
 
19380
      fi
 
19381
    fi
 
19382
  fi
 
19383
 
 
19384
 
 
19385
 
 
19386
 
 
19387
 
 
19388
 
 
19389
  # Check whether --enable-umem was given.
 
19390
if test "${enable_umem+set}" = set; then
 
19391
  enableval=$enable_umem; ac_enable_umem="$enableval"
 
19392
else
 
19393
  ac_enable_umem="no"
 
19394
fi
 
19395
 
 
19396
 
 
19397
  # Check whether --enable-tcmalloc was given.
 
19398
if test "${enable_tcmalloc+set}" = set; then
 
19399
  enableval=$enable_tcmalloc; ac_enable_tcmalloc="$enableval"
 
19400
else
 
19401
  ac_enable_tcmalloc="no"
 
19402
fi
 
19403
 
 
19404
 
 
19405
  # Check whether --enable-mtmalloc was given.
 
19406
if test "${enable_mtmalloc+set}" = set; then
 
19407
  enableval=$enable_mtmalloc; ac_enable_mtmalloc="$enableval"
 
19408
else
 
19409
  ac_enable_mtmalloc="yes"
 
19410
fi
 
19411
 
 
19412
 
 
19413
  save_LIBS="${LIBS}"
 
19414
  LIBS=
 
19415
  if test "x$ac_enable_umem" = "xyes"; then
 
19416
 
 
19417
 
 
19418
{ echo "$as_me:$LINENO: checking for malloc in -lumem" >&5
 
19419
echo $ECHO_N "checking for malloc in -lumem... $ECHO_C" >&6; }
 
19420
if test "${ac_cv_lib_umem_malloc+set}" = set; then
 
19421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19422
else
 
19423
  ac_check_lib_save_LIBS=$LIBS
 
19424
LIBS="-lumem  $LIBS"
 
19425
cat >conftest.$ac_ext <<_ACEOF
 
19426
/* confdefs.h.  */
 
19427
_ACEOF
 
19428
cat confdefs.h >>conftest.$ac_ext
 
19429
cat >>conftest.$ac_ext <<_ACEOF
 
19430
/* end confdefs.h.  */
 
19431
 
 
19432
/* Override any GCC internal prototype to avoid an error.
 
19433
   Use char because int might match the return type of a GCC
 
19434
   builtin and then its argument prototype would still apply.  */
 
19435
#ifdef __cplusplus
 
19436
extern "C"
 
19437
#endif
 
19438
char malloc ();
 
19439
int
 
19440
main ()
 
19441
{
 
19442
return malloc ();
 
19443
  ;
 
19444
  return 0;
 
19445
}
 
19446
_ACEOF
 
19447
rm -f conftest.$ac_objext conftest$ac_exeext
 
19448
if { (ac_try="$ac_link"
 
19449
case "(($ac_try" in
 
19450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19451
  *) ac_try_echo=$ac_try;;
 
19452
esac
 
19453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19454
  (eval "$ac_link") 2>conftest.er1
 
19455
  ac_status=$?
 
19456
  grep -v '^ *+' conftest.er1 >conftest.err
 
19457
  rm -f conftest.er1
 
19458
  cat conftest.err >&5
 
19459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19460
  (exit $ac_status); } && {
 
19461
         test -z "$ac_c_werror_flag" ||
 
19462
         test ! -s conftest.err
 
19463
       } && test -s conftest$ac_exeext &&
 
19464
       $as_test_x conftest$ac_exeext; then
 
19465
  ac_cv_lib_umem_malloc=yes
 
19466
else
 
19467
  echo "$as_me: failed program was:" >&5
 
19468
sed 's/^/| /' conftest.$ac_ext >&5
 
19469
 
 
19470
        ac_cv_lib_umem_malloc=no
 
19471
fi
 
19472
 
 
19473
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19474
      conftest$ac_exeext conftest.$ac_ext
 
19475
LIBS=$ac_check_lib_save_LIBS
 
19476
fi
 
19477
{ echo "$as_me:$LINENO: result: $ac_cv_lib_umem_malloc" >&5
 
19478
echo "${ECHO_T}$ac_cv_lib_umem_malloc" >&6; }
 
19479
if test $ac_cv_lib_umem_malloc = yes; then
 
19480
  cat >>confdefs.h <<_ACEOF
 
19481
#define HAVE_LIBUMEM 1
 
19482
_ACEOF
 
19483
 
 
19484
  LIBS="-lumem $LIBS"
 
19485
 
 
19486
fi
 
19487
 
 
19488
 
 
19489
else
 
19490
 
 
19491
    case "$target_os" in
 
19492
      *linux*)
 
19493
        if test "x$ac_enable_tcmalloc" != "xno"; then
 
19494
 
 
19495
 
 
19496
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc-minimal" >&5
 
19497
echo $ECHO_N "checking for malloc in -ltcmalloc-minimal... $ECHO_C" >&6; }
 
19498
if test "${ac_cv_lib_tcmalloc_minimal_malloc+set}" = set; then
 
19499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19500
else
 
19501
  ac_check_lib_save_LIBS=$LIBS
 
19502
LIBS="-ltcmalloc-minimal  $LIBS"
 
19503
cat >conftest.$ac_ext <<_ACEOF
 
19504
/* confdefs.h.  */
 
19505
_ACEOF
 
19506
cat confdefs.h >>conftest.$ac_ext
 
19507
cat >>conftest.$ac_ext <<_ACEOF
 
19508
/* end confdefs.h.  */
 
19509
 
 
19510
/* Override any GCC internal prototype to avoid an error.
 
19511
   Use char because int might match the return type of a GCC
 
19512
   builtin and then its argument prototype would still apply.  */
 
19513
#ifdef __cplusplus
 
19514
extern "C"
 
19515
#endif
 
19516
char malloc ();
 
19517
int
 
19518
main ()
 
19519
{
 
19520
return malloc ();
 
19521
  ;
 
19522
  return 0;
 
19523
}
 
19524
_ACEOF
 
19525
rm -f conftest.$ac_objext conftest$ac_exeext
 
19526
if { (ac_try="$ac_link"
 
19527
case "(($ac_try" in
 
19528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19529
  *) ac_try_echo=$ac_try;;
 
19530
esac
 
19531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19532
  (eval "$ac_link") 2>conftest.er1
 
19533
  ac_status=$?
 
19534
  grep -v '^ *+' conftest.er1 >conftest.err
 
19535
  rm -f conftest.er1
 
19536
  cat conftest.err >&5
 
19537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19538
  (exit $ac_status); } && {
 
19539
         test -z "$ac_c_werror_flag" ||
 
19540
         test ! -s conftest.err
 
19541
       } && test -s conftest$ac_exeext &&
 
19542
       $as_test_x conftest$ac_exeext; then
 
19543
  ac_cv_lib_tcmalloc_minimal_malloc=yes
 
19544
else
 
19545
  echo "$as_me: failed program was:" >&5
 
19546
sed 's/^/| /' conftest.$ac_ext >&5
 
19547
 
 
19548
        ac_cv_lib_tcmalloc_minimal_malloc=no
 
19549
fi
 
19550
 
 
19551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19552
      conftest$ac_exeext conftest.$ac_ext
 
19553
LIBS=$ac_check_lib_save_LIBS
 
19554
fi
 
19555
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_minimal_malloc" >&5
 
19556
echo "${ECHO_T}$ac_cv_lib_tcmalloc_minimal_malloc" >&6; }
 
19557
if test $ac_cv_lib_tcmalloc_minimal_malloc = yes; then
 
19558
  cat >>confdefs.h <<_ACEOF
 
19559
#define HAVE_LIBTCMALLOC_MINIMAL 1
 
19560
_ACEOF
 
19561
 
 
19562
  LIBS="-ltcmalloc-minimal $LIBS"
 
19563
 
 
19564
fi
 
19565
 
 
19566
          if test "x$ac_cv_lib_tcmalloc_minimal_malloc" != "xyes"; then
 
19567
 
 
19568
 
 
19569
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc" >&5
 
19570
echo $ECHO_N "checking for malloc in -ltcmalloc... $ECHO_C" >&6; }
 
19571
if test "${ac_cv_lib_tcmalloc_malloc+set}" = set; then
 
19572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19573
else
 
19574
  ac_check_lib_save_LIBS=$LIBS
 
19575
LIBS="-ltcmalloc  $LIBS"
 
19576
cat >conftest.$ac_ext <<_ACEOF
 
19577
/* confdefs.h.  */
 
19578
_ACEOF
 
19579
cat confdefs.h >>conftest.$ac_ext
 
19580
cat >>conftest.$ac_ext <<_ACEOF
 
19581
/* end confdefs.h.  */
 
19582
 
 
19583
/* Override any GCC internal prototype to avoid an error.
 
19584
   Use char because int might match the return type of a GCC
 
19585
   builtin and then its argument prototype would still apply.  */
 
19586
#ifdef __cplusplus
 
19587
extern "C"
 
19588
#endif
 
19589
char malloc ();
 
19590
int
 
19591
main ()
 
19592
{
 
19593
return malloc ();
 
19594
  ;
 
19595
  return 0;
 
19596
}
 
19597
_ACEOF
 
19598
rm -f conftest.$ac_objext conftest$ac_exeext
 
19599
if { (ac_try="$ac_link"
 
19600
case "(($ac_try" in
 
19601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19602
  *) ac_try_echo=$ac_try;;
 
19603
esac
 
19604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19605
  (eval "$ac_link") 2>conftest.er1
 
19606
  ac_status=$?
 
19607
  grep -v '^ *+' conftest.er1 >conftest.err
 
19608
  rm -f conftest.er1
 
19609
  cat conftest.err >&5
 
19610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19611
  (exit $ac_status); } && {
 
19612
         test -z "$ac_c_werror_flag" ||
 
19613
         test ! -s conftest.err
 
19614
       } && test -s conftest$ac_exeext &&
 
19615
       $as_test_x conftest$ac_exeext; then
 
19616
  ac_cv_lib_tcmalloc_malloc=yes
 
19617
else
 
19618
  echo "$as_me: failed program was:" >&5
 
19619
sed 's/^/| /' conftest.$ac_ext >&5
 
19620
 
 
19621
        ac_cv_lib_tcmalloc_malloc=no
 
19622
fi
 
19623
 
 
19624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19625
      conftest$ac_exeext conftest.$ac_ext
 
19626
LIBS=$ac_check_lib_save_LIBS
 
19627
fi
 
19628
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_malloc" >&5
 
19629
echo "${ECHO_T}$ac_cv_lib_tcmalloc_malloc" >&6; }
 
19630
if test $ac_cv_lib_tcmalloc_malloc = yes; then
 
19631
  cat >>confdefs.h <<_ACEOF
 
19632
#define HAVE_LIBTCMALLOC 1
 
19633
_ACEOF
 
19634
 
 
19635
  LIBS="-ltcmalloc $LIBS"
 
19636
 
 
19637
fi
 
19638
 
 
19639
 
 
19640
fi
 
19641
 
 
19642
 
 
19643
fi
 
19644
 
 
19645
        ;;
 
19646
      *solaris*)
 
19647
        if test "x$ac_enable_mtmalloc" != "xno"; then
 
19648
 
 
19649
 
 
19650
{ echo "$as_me:$LINENO: checking for malloc in -lmtmalloc" >&5
 
19651
echo $ECHO_N "checking for malloc in -lmtmalloc... $ECHO_C" >&6; }
 
19652
if test "${ac_cv_lib_mtmalloc_malloc+set}" = set; then
 
19653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19654
else
 
19655
  ac_check_lib_save_LIBS=$LIBS
 
19656
LIBS="-lmtmalloc  $LIBS"
 
19657
cat >conftest.$ac_ext <<_ACEOF
 
19658
/* confdefs.h.  */
 
19659
_ACEOF
 
19660
cat confdefs.h >>conftest.$ac_ext
 
19661
cat >>conftest.$ac_ext <<_ACEOF
 
19662
/* end confdefs.h.  */
 
19663
 
 
19664
/* Override any GCC internal prototype to avoid an error.
 
19665
   Use char because int might match the return type of a GCC
 
19666
   builtin and then its argument prototype would still apply.  */
 
19667
#ifdef __cplusplus
 
19668
extern "C"
 
19669
#endif
 
19670
char malloc ();
 
19671
int
 
19672
main ()
 
19673
{
 
19674
return malloc ();
 
19675
  ;
 
19676
  return 0;
 
19677
}
 
19678
_ACEOF
 
19679
rm -f conftest.$ac_objext conftest$ac_exeext
 
19680
if { (ac_try="$ac_link"
 
19681
case "(($ac_try" in
 
19682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19683
  *) ac_try_echo=$ac_try;;
 
19684
esac
 
19685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19686
  (eval "$ac_link") 2>conftest.er1
 
19687
  ac_status=$?
 
19688
  grep -v '^ *+' conftest.er1 >conftest.err
 
19689
  rm -f conftest.er1
 
19690
  cat conftest.err >&5
 
19691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19692
  (exit $ac_status); } && {
 
19693
         test -z "$ac_c_werror_flag" ||
 
19694
         test ! -s conftest.err
 
19695
       } && test -s conftest$ac_exeext &&
 
19696
       $as_test_x conftest$ac_exeext; then
 
19697
  ac_cv_lib_mtmalloc_malloc=yes
 
19698
else
 
19699
  echo "$as_me: failed program was:" >&5
 
19700
sed 's/^/| /' conftest.$ac_ext >&5
 
19701
 
 
19702
        ac_cv_lib_mtmalloc_malloc=no
 
19703
fi
 
19704
 
 
19705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19706
      conftest$ac_exeext conftest.$ac_ext
 
19707
LIBS=$ac_check_lib_save_LIBS
 
19708
fi
 
19709
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mtmalloc_malloc" >&5
 
19710
echo "${ECHO_T}$ac_cv_lib_mtmalloc_malloc" >&6; }
 
19711
if test $ac_cv_lib_mtmalloc_malloc = yes; then
 
19712
  cat >>confdefs.h <<_ACEOF
 
19713
#define HAVE_LIBMTMALLOC 1
 
19714
_ACEOF
 
19715
 
 
19716
  LIBS="-lmtmalloc $LIBS"
 
19717
 
 
19718
fi
 
19719
 
 
19720
 
 
19721
fi
 
19722
 
 
19723
        ;;
 
19724
    esac
 
19725
 
 
19726
fi
 
19727
 
 
19728
  BETTER_MALLOC_LIBS="${LIBS}"
 
19729
  LIBS="${save_LIBS}"
 
19730
 
 
19731
 
 
19732
 
 
19733
 
 
19734
  for ac_prog in doxygen
 
19735
do
 
19736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19737
set dummy $ac_prog; ac_word=$2
 
19738
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19740
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
 
19741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19742
else
 
19743
  if test -n "$DOXYGEN"; then
 
19744
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
19745
else
 
19746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19747
for as_dir in $PATH
 
19748
do
 
19749
  IFS=$as_save_IFS
 
19750
  test -z "$as_dir" && as_dir=.
 
19751
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19753
    ac_cv_prog_DOXYGEN="$ac_prog"
 
19754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19755
    break 2
 
19756
  fi
 
19757
done
 
19758
done
 
19759
IFS=$as_save_IFS
 
19760
 
 
19761
fi
 
19762
fi
 
19763
DOXYGEN=$ac_cv_prog_DOXYGEN
 
19764
if test -n "$DOXYGEN"; then
 
19765
  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
19766
echo "${ECHO_T}$DOXYGEN" >&6; }
 
19767
else
 
19768
  { echo "$as_me:$LINENO: result: no" >&5
 
19769
echo "${ECHO_T}no" >&6; }
 
19770
fi
 
19771
 
 
19772
 
 
19773
  test -n "$DOXYGEN" && break
 
19774
done
 
19775
 
 
19776
  for ac_prog in perl
 
19777
do
 
19778
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19779
set dummy $ac_prog; ac_word=$2
 
19780
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19782
if test "${ac_cv_prog_PERL+set}" = set; then
 
19783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19784
else
 
19785
  if test -n "$PERL"; then
 
19786
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
 
19787
else
 
19788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19789
for as_dir in $PATH
 
19790
do
 
19791
  IFS=$as_save_IFS
 
19792
  test -z "$as_dir" && as_dir=.
 
19793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19795
    ac_cv_prog_PERL="$ac_prog"
 
19796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19797
    break 2
 
19798
  fi
 
19799
done
 
19800
done
 
19801
IFS=$as_save_IFS
 
19802
 
 
19803
fi
 
19804
fi
 
19805
PERL=$ac_cv_prog_PERL
 
19806
if test -n "$PERL"; then
 
19807
  { echo "$as_me:$LINENO: result: $PERL" >&5
 
19808
echo "${ECHO_T}$PERL" >&6; }
 
19809
else
 
19810
  { echo "$as_me:$LINENO: result: no" >&5
 
19811
echo "${ECHO_T}no" >&6; }
 
19812
fi
 
19813
 
 
19814
 
 
19815
  test -n "$PERL" && break
 
19816
done
 
19817
 
 
19818
 
 
19819
  if test "x${gl_LIBOBJS}" != "x"; then
 
19820
 
 
19821
    if test "$GCC" = "yes"; then
 
19822
 
 
19823
      AM_CPPFLAGS="-isystem \$(top_srcdir)/gnulib -isystem \$(top_builddir)/gnulib ${AM_CPPFLAGS}"
 
19824
 
 
19825
else
 
19826
 
 
19827
    AM_CPPFLAGS="-I\$(top_srcdir)/gnulib -I\$(top_builddir)/gnulib ${AM_CPPFLAGS}"
 
19828
 
 
19829
fi
 
19830
 
 
19831
 
 
19832
fi
 
19833
 
 
19834
 
 
19835
  AM_CPPFLAGS="-I\${top_srcdir} -I\${top_builddir} ${AM_CPPFLAGS}"
 
19836
  AM_CFLAGS="${AM_CFLAGS} ${CC_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
 
19837
  AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
 
19838
 
 
19839
 
 
19840
 
 
19841
 
 
19842
 
 
19843
 
 
19844
 
 
19845
GEARMAN_LIBRARY_VERSION=1:3:0
 
19846
#                       | | |
 
19847
#                +------+ | +---+
 
19848
#                |        |     |
 
19849
#             current:revision:age
 
19850
#                |        |     |
 
19851
#                |        |     +- increment if interfaces have been added
 
19852
#                |        |        set to zero if interfaces have been removed
 
19853
#                |        |        or changed
 
19854
#                |        +- increment if source code has changed
 
19855
#                |           set to zero if current is incremented
 
19856
#                +- increment if interfaces have been added, removed or changed
 
19857
 
 
19858
 
 
19859
# libgearman versioning when linked with GNU ld.
 
19860
if test "$lt_cv_prog_gnu_ld" = "yes"
 
19861
then
 
19862
    LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libgearman/libgearman.ver"
 
19863
fi
 
19864
 
 
19865
 
 
19866
#--------------------------------------------------------------------
 
19867
# Check for libpthread
 
19868
#--------------------------------------------------------------------
 
19869
 
 
19870
 
 
19871
 
 
19872
ac_ext=c
 
19873
ac_cpp='$CPP $CPPFLAGS'
 
19874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19877
 
 
19878
acx_pthread_ok=no
 
19879
 
 
19880
# We used to check for pthread.h first, but this fails if pthread.h
 
19881
# requires special compiler flags (e.g. on True64 or Sequent).
 
19882
# It gets checked for in the link test anyway.
 
19883
 
 
19884
# First of all, check if the user has set any of the PTHREAD_LIBS,
 
19885
# etcetera environment variables, and if threads linking works using
 
19886
# them:
 
19887
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
 
19888
        save_CFLAGS="$CFLAGS"
 
19889
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
19890
        save_LIBS="$LIBS"
 
19891
        LIBS="$PTHREAD_LIBS $LIBS"
 
19892
        { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
 
19893
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
 
19894
        cat >conftest.$ac_ext <<_ACEOF
 
19895
/* confdefs.h.  */
 
19896
_ACEOF
 
19897
cat confdefs.h >>conftest.$ac_ext
 
19898
cat >>conftest.$ac_ext <<_ACEOF
 
19899
/* end confdefs.h.  */
 
19900
 
 
19901
/* Override any GCC internal prototype to avoid an error.
 
19902
   Use char because int might match the return type of a GCC
 
19903
   builtin and then its argument prototype would still apply.  */
 
19904
#ifdef __cplusplus
 
19905
extern "C"
 
19906
#endif
 
19907
char pthread_join ();
 
19908
int
 
19909
main ()
 
19910
{
 
19911
return pthread_join ();
 
19912
  ;
 
19913
  return 0;
 
19914
}
 
19915
_ACEOF
 
19916
rm -f conftest.$ac_objext conftest$ac_exeext
 
19917
if { (ac_try="$ac_link"
 
19918
case "(($ac_try" in
 
19919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19920
  *) ac_try_echo=$ac_try;;
 
19921
esac
 
19922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19923
  (eval "$ac_link") 2>conftest.er1
 
19924
  ac_status=$?
 
19925
  grep -v '^ *+' conftest.er1 >conftest.err
 
19926
  rm -f conftest.er1
 
19927
  cat conftest.err >&5
 
19928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19929
  (exit $ac_status); } && {
 
19930
         test -z "$ac_c_werror_flag" ||
 
19931
         test ! -s conftest.err
 
19932
       } && test -s conftest$ac_exeext &&
 
19933
       $as_test_x conftest$ac_exeext; then
 
19934
  acx_pthread_ok=yes
 
19935
else
 
19936
  echo "$as_me: failed program was:" >&5
 
19937
sed 's/^/| /' conftest.$ac_ext >&5
 
19938
 
 
19939
 
 
19940
fi
 
19941
 
 
19942
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19943
      conftest$ac_exeext conftest.$ac_ext
 
19944
        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
 
19945
echo "${ECHO_T}$acx_pthread_ok" >&6; }
 
19946
        if test x"$acx_pthread_ok" = xno; then
 
19947
                PTHREAD_LIBS=""
 
19948
                PTHREAD_CFLAGS=""
 
19949
        fi
 
19950
        LIBS="$save_LIBS"
 
19951
        CFLAGS="$save_CFLAGS"
 
19952
fi
 
19953
 
 
19954
# We must check for the threads library under a number of different
 
19955
# names; the ordering is very important because some systems
 
19956
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
 
19957
# libraries is broken (non-POSIX).
 
19958
 
 
19959
# Create a list of thread flags to try.  Items starting with a "-" are
 
19960
# C compiler flags, and other items are library names, except for "none"
 
19961
# which indicates that we try without any flags at all, and "pthread-config"
 
19962
# which is a program returning the flags for the Pth emulation library.
 
19963
 
 
19964
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
 
19965
 
 
19966
# The ordering *is* (sometimes) important.  Some notes on the
 
19967
# individual items follow:
 
19968
 
 
19969
# pthreads: AIX (must check this before -lpthread)
 
19970
# none: in case threads are in libc; should be tried before -Kthread and
 
19971
#       other compiler flags to prevent continual compiler warnings
 
19972
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
 
19973
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
 
19974
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
 
19975
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
 
19976
# -pthreads: Solaris/gcc
 
19977
# -mthreads: Mingw32/gcc, Lynx/gcc
 
19978
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
 
19979
#      doesn't hurt to check since this sometimes defines pthreads too;
 
19980
#      also defines -D_REENTRANT)
 
19981
#      ... -mt is also the pthreads flag for HP/aCC
 
19982
# pthread: Linux, etcetera
 
19983
# --thread-safe: KAI C++
 
19984
# pthread-config: use pthread-config program (for GNU Pth library)
 
19985
 
 
19986
case "${host_cpu}-${host_os}" in
 
19987
        *solaris*)
 
19988
 
 
19989
        # On Solaris (at least, for some versions), libc contains stubbed
 
19990
        # (non-functional) versions of the pthreads routines, so link-based
 
19991
        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
 
19992
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
 
19993
        # a function called by this macro, so we could check for that, but
 
19994
        # who knows whether they'll stub that too in a future libc.)  So,
 
19995
        # we'll just look for -pthreads and -lpthread first:
 
19996
 
 
19997
        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
 
19998
        ;;
 
19999
esac
 
20000
 
 
20001
if test x"$acx_pthread_ok" = xno; then
 
20002
for flag in $acx_pthread_flags; do
 
20003
 
 
20004
        case $flag in
 
20005
                none)
 
20006
                { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
 
20007
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
 
20008
                ;;
 
20009
 
 
20010
                -*)
 
20011
                { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
 
20012
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
 
20013
                PTHREAD_CFLAGS="$flag"
 
20014
                ;;
 
20015
 
 
20016
                pthread-config)
 
20017
                # Extract the first word of "pthread-config", so it can be a program name with args.
 
20018
set dummy pthread-config; ac_word=$2
 
20019
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20021
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
 
20022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20023
else
 
20024
  if test -n "$acx_pthread_config"; then
 
20025
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
 
20026
else
 
20027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20028
for as_dir in $PATH
 
20029
do
 
20030
  IFS=$as_save_IFS
 
20031
  test -z "$as_dir" && as_dir=.
 
20032
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20034
    ac_cv_prog_acx_pthread_config="yes"
 
20035
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20036
    break 2
 
20037
  fi
 
20038
done
 
20039
done
 
20040
IFS=$as_save_IFS
 
20041
 
 
20042
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
 
20043
fi
 
20044
fi
 
20045
acx_pthread_config=$ac_cv_prog_acx_pthread_config
 
20046
if test -n "$acx_pthread_config"; then
 
20047
  { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
 
20048
echo "${ECHO_T}$acx_pthread_config" >&6; }
 
20049
else
 
20050
  { echo "$as_me:$LINENO: result: no" >&5
 
20051
echo "${ECHO_T}no" >&6; }
 
20052
fi
 
20053
 
 
20054
 
 
20055
                if test x"$acx_pthread_config" = xno; then continue; fi
 
20056
                PTHREAD_CFLAGS="`pthread-config --cflags`"
 
20057
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
 
20058
                ;;
 
20059
 
 
20060
                *)
 
20061
                { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
 
20062
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
 
20063
                PTHREAD_LIBS="-l$flag"
 
20064
                ;;
 
20065
        esac
 
20066
 
 
20067
        save_LIBS="$LIBS"
 
20068
        save_CFLAGS="$CFLAGS"
 
20069
        LIBS="$PTHREAD_LIBS $LIBS"
 
20070
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
20071
 
 
20072
        # Check for various functions.  We must include pthread.h,
 
20073
        # since some functions may be macros.  (On the Sequent, we
 
20074
        # need a special flag -Kthread to make this header compile.)
 
20075
        # We check for pthread_join because it is in -lpthread on IRIX
 
20076
        # while pthread_create is in libc.  We check for pthread_attr_init
 
20077
        # due to DEC craziness with -lpthreads.  We check for
 
20078
        # pthread_cleanup_push because it is one of the few pthread
 
20079
        # functions on Solaris that doesn't have a non-functional libc stub.
 
20080
        # We try pthread_create on general principles.
 
20081
        cat >conftest.$ac_ext <<_ACEOF
 
20082
/* confdefs.h.  */
 
20083
_ACEOF
 
20084
cat confdefs.h >>conftest.$ac_ext
 
20085
cat >>conftest.$ac_ext <<_ACEOF
 
20086
/* end confdefs.h.  */
 
20087
#include <pthread.h>
 
20088
int
 
20089
main ()
 
20090
{
 
20091
pthread_t th; pthread_join(th, 0);
 
20092
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
 
20093
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
 
20094
  ;
 
20095
  return 0;
 
20096
}
 
20097
_ACEOF
 
20098
rm -f conftest.$ac_objext conftest$ac_exeext
 
20099
if { (ac_try="$ac_link"
 
20100
case "(($ac_try" in
 
20101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20102
  *) ac_try_echo=$ac_try;;
 
20103
esac
 
20104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20105
  (eval "$ac_link") 2>conftest.er1
 
20106
  ac_status=$?
 
20107
  grep -v '^ *+' conftest.er1 >conftest.err
 
20108
  rm -f conftest.er1
 
20109
  cat conftest.err >&5
 
20110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20111
  (exit $ac_status); } && {
 
20112
         test -z "$ac_c_werror_flag" ||
 
20113
         test ! -s conftest.err
 
20114
       } && test -s conftest$ac_exeext &&
 
20115
       $as_test_x conftest$ac_exeext; then
 
20116
  acx_pthread_ok=yes
 
20117
else
 
20118
  echo "$as_me: failed program was:" >&5
 
20119
sed 's/^/| /' conftest.$ac_ext >&5
 
20120
 
 
20121
 
 
20122
fi
 
20123
 
 
20124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20125
      conftest$ac_exeext conftest.$ac_ext
 
20126
 
 
20127
        LIBS="$save_LIBS"
 
20128
        CFLAGS="$save_CFLAGS"
 
20129
 
 
20130
        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
 
20131
echo "${ECHO_T}$acx_pthread_ok" >&6; }
 
20132
        if test "x$acx_pthread_ok" = xyes; then
 
20133
                break;
 
20134
        fi
 
20135
 
 
20136
        PTHREAD_LIBS=""
 
20137
        PTHREAD_CFLAGS=""
 
20138
done
 
20139
fi
 
20140
 
 
20141
# Various other checks:
 
20142
if test "x$acx_pthread_ok" = xyes; then
 
20143
        save_LIBS="$LIBS"
 
20144
        LIBS="$PTHREAD_LIBS $LIBS"
 
20145
        save_CFLAGS="$CFLAGS"
 
20146
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
20147
 
 
20148
        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
 
20149
        { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
 
20150
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
 
20151
        attr_name=unknown
 
20152
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
 
20153
            cat >conftest.$ac_ext <<_ACEOF
 
20154
/* confdefs.h.  */
 
20155
_ACEOF
 
20156
cat confdefs.h >>conftest.$ac_ext
 
20157
cat >>conftest.$ac_ext <<_ACEOF
 
20158
/* end confdefs.h.  */
 
20159
#include <pthread.h>
 
20160
int
 
20161
main ()
 
20162
{
 
20163
int attr=$attr; return attr;
 
20164
  ;
 
20165
  return 0;
 
20166
}
 
20167
_ACEOF
 
20168
rm -f conftest.$ac_objext conftest$ac_exeext
 
20169
if { (ac_try="$ac_link"
 
20170
case "(($ac_try" in
 
20171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20172
  *) ac_try_echo=$ac_try;;
 
20173
esac
 
20174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20175
  (eval "$ac_link") 2>conftest.er1
 
20176
  ac_status=$?
 
20177
  grep -v '^ *+' conftest.er1 >conftest.err
 
20178
  rm -f conftest.er1
 
20179
  cat conftest.err >&5
 
20180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20181
  (exit $ac_status); } && {
 
20182
         test -z "$ac_c_werror_flag" ||
 
20183
         test ! -s conftest.err
 
20184
       } && test -s conftest$ac_exeext &&
 
20185
       $as_test_x conftest$ac_exeext; then
 
20186
  attr_name=$attr; break
 
20187
else
 
20188
  echo "$as_me: failed program was:" >&5
 
20189
sed 's/^/| /' conftest.$ac_ext >&5
 
20190
 
 
20191
 
 
20192
fi
 
20193
 
 
20194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20195
      conftest$ac_exeext conftest.$ac_ext
 
20196
        done
 
20197
        { echo "$as_me:$LINENO: result: $attr_name" >&5
 
20198
echo "${ECHO_T}$attr_name" >&6; }
 
20199
        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
 
20200
 
 
20201
cat >>confdefs.h <<_ACEOF
 
20202
#define PTHREAD_CREATE_JOINABLE $attr_name
 
20203
_ACEOF
 
20204
 
 
20205
        fi
 
20206
 
 
20207
        { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
 
20208
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
 
20209
        flag=no
 
20210
        case "${host_cpu}-${host_os}" in
 
20211
            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
 
20212
            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
 
20213
        esac
 
20214
        { echo "$as_me:$LINENO: result: ${flag}" >&5
 
20215
echo "${ECHO_T}${flag}" >&6; }
 
20216
        if test "x$flag" != xno; then
 
20217
            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
 
20218
        fi
 
20219
 
 
20220
        LIBS="$save_LIBS"
 
20221
        CFLAGS="$save_CFLAGS"
 
20222
 
 
20223
        # More AIX lossage: must compile with xlc_r or cc_r
 
20224
        if test x"$GCC" != xyes; then
 
20225
          for ac_prog in xlc_r cc_r
 
20226
do
 
20227
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20228
set dummy $ac_prog; ac_word=$2
 
20229
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20230
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20231
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
 
20232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20233
else
 
20234
  if test -n "$PTHREAD_CC"; then
 
20235
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
 
20236
else
 
20237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20238
for as_dir in $PATH
 
20239
do
 
20240
  IFS=$as_save_IFS
 
20241
  test -z "$as_dir" && as_dir=.
 
20242
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20243
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20244
    ac_cv_prog_PTHREAD_CC="$ac_prog"
 
20245
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20246
    break 2
 
20247
  fi
 
20248
done
 
20249
done
 
20250
IFS=$as_save_IFS
 
20251
 
 
20252
fi
 
20253
fi
 
20254
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
 
20255
if test -n "$PTHREAD_CC"; then
 
20256
  { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
 
20257
echo "${ECHO_T}$PTHREAD_CC" >&6; }
 
20258
else
 
20259
  { echo "$as_me:$LINENO: result: no" >&5
 
20260
echo "${ECHO_T}no" >&6; }
 
20261
fi
 
20262
 
 
20263
 
 
20264
  test -n "$PTHREAD_CC" && break
 
20265
done
 
20266
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
 
20267
 
 
20268
        else
 
20269
          PTHREAD_CC=$CC
 
20270
        fi
 
20271
else
 
20272
        PTHREAD_CC="$CC"
 
20273
fi
 
20274
 
 
20275
 
 
20276
 
 
20277
 
 
20278
 
 
20279
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
 
20280
if test x"$acx_pthread_ok" = xyes; then
 
20281
 
 
20282
cat >>confdefs.h <<\_ACEOF
 
20283
#define HAVE_PTHREAD 1
 
20284
_ACEOF
 
20285
 
 
20286
        :
 
20287
else
 
20288
        acx_pthread_ok=no
 
20289
        { { echo "$as_me:$LINENO: error: could not find libpthread" >&5
 
20290
echo "$as_me: error: could not find libpthread" >&2;}
 
20291
   { (exit 1); exit 1; }; }
 
20292
fi
 
20293
ac_ext=c
 
20294
ac_cpp='$CPP $CPPFLAGS'
 
20295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20298
 
 
20299
 
 
20300
LIBS="${PTHREAD_LIBS} ${LIBS}"
 
20301
CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
 
20302
CC="$PTHREAD_CC"
21922
20303
 
21923
20304
 
21924
20305
#--------------------------------------------------------------------
21926
20307
#--------------------------------------------------------------------
21927
20308
 
21928
20309
 
21929
 
      if test "X$prefix" = "XNONE"; then
21930
 
    acl_final_prefix="$ac_default_prefix"
21931
 
  else
21932
 
    acl_final_prefix="$prefix"
21933
 
  fi
21934
 
  if test "X$exec_prefix" = "XNONE"; then
21935
 
    acl_final_exec_prefix='${prefix}'
21936
 
  else
21937
 
    acl_final_exec_prefix="$exec_prefix"
21938
 
  fi
21939
 
  acl_save_prefix="$prefix"
21940
 
  prefix="$acl_final_prefix"
21941
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21942
 
  prefix="$acl_save_prefix"
21943
 
 
21944
 
 
21945
20310
# Check whether --with-gnu-ld was given.
21946
20311
if test "${with_gnu_ld+set}" = set; then
21947
20312
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22092
20457
 
22093
20458
 
22094
20459
 
22095
 
  acl_libdirstem=lib
22096
 
  acl_libdirstem2=
22097
 
  case "$host_os" in
22098
 
    solaris*)
22099
 
                                    { echo "$as_me:$LINENO: checking for 64-bit host" >&5
22100
 
echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
22101
 
if test "${gl_cv_solaris_64bit+set}" = set; then
22102
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22103
 
else
22104
 
  cat >conftest.$ac_ext <<_ACEOF
22105
 
/* confdefs.h.  */
22106
 
_ACEOF
22107
 
cat confdefs.h >>conftest.$ac_ext
22108
 
cat >>conftest.$ac_ext <<_ACEOF
22109
 
/* end confdefs.h.  */
22110
 
 
22111
 
#ifdef _LP64
22112
 
sixtyfour bits
22113
 
#endif
22114
 
 
22115
 
_ACEOF
22116
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22117
 
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then
22118
 
  gl_cv_solaris_64bit=yes
22119
 
else
22120
 
  gl_cv_solaris_64bit=no
22121
 
fi
22122
 
rm -f conftest*
22123
 
 
22124
 
 
22125
 
fi
22126
 
{ echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
22127
 
echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
22128
 
      if test $gl_cv_solaris_64bit = yes; then
22129
 
        acl_libdirstem=lib/64
22130
 
        case "$host_cpu" in
22131
 
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
22132
 
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
22133
 
        esac
22134
 
      fi
22135
 
      ;;
22136
 
    *)
22137
 
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22138
 
      if test -n "$searchpath"; then
22139
 
        acl_save_IFS="${IFS=    }"; IFS=":"
22140
 
        for searchdir in $searchpath; do
22141
 
          if test -d "$searchdir"; then
22142
 
            case "$searchdir" in
22143
 
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22144
 
              *) searchdir=`cd "$searchdir" && pwd`
22145
 
                 case "$searchdir" in
22146
 
                   */lib64 ) acl_libdirstem=lib64 ;;
22147
 
                 esac ;;
22148
 
            esac
22149
 
          fi
22150
 
        done
22151
 
        IFS="$acl_save_IFS"
22152
 
      fi
22153
 
      ;;
22154
 
  esac
22155
 
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
22156
 
 
22157
 
 
22158
 
 
22159
20460
 
22160
20461
 
22161
20462
 
22168
20469
 
22169
20470
 
22170
20471
    use_additional=yes
 
20472
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
20473
  then
 
20474
    i_system="-isystem "
 
20475
  else
 
20476
    i_system="-I"
 
20477
  fi
 
20478
 
22171
20479
 
22172
20480
  acl_save_prefix="$prefix"
22173
20481
  prefix="$acl_final_prefix"
22461
20769
  exec_prefix="$acl_save_exec_prefix"
22462
20770
  prefix="$acl_save_prefix"
22463
20771
 
22464
 
                    if test "X$x" = "X-I$additional_includedir"; then
 
20772
                    if test "X$x" = "X${i_system}$additional_includedir"; then
22465
20773
                      haveit=yes
22466
20774
                      break
22467
20775
                    fi
22468
20776
                  done
22469
20777
                  if test -z "$haveit"; then
22470
20778
                    if test -d "$additional_includedir"; then
22471
 
                                            INCEVENT="${INCEVENT}${INCEVENT:+ }-I$additional_includedir"
 
20779
                                            INCEVENT="${INCEVENT}${INCEVENT:+ }${i_system}$additional_includedir"
22472
20780
                    fi
22473
20781
                  fi
22474
20782
                fi
22738
21046
 
22739
21047
 
22740
21048
if test x$ac_cv_libevent = xno; then
22741
 
  { { echo "$as_me:$LINENO: error: A recent version of libevent is required to build gearmand (see http://www.monkey.org/~provos/libevent)." >&5
22742
 
echo "$as_me: error: A recent version of libevent is required to build gearmand (see http://www.monkey.org/~provos/libevent)." >&2;}
 
21049
  { { echo "$as_me:$LINENO: error: A recent version of libevent is required to build gearmand. On Debian this can be found in libevent-dev. On RedHat its in libevent-devel. You can also install the latest from source at http://www.monkey.org/~provos/libevent." >&5
 
21050
echo "$as_me: error: A recent version of libevent is required to build gearmand. On Debian this can be found in libevent-dev. On RedHat its in libevent-devel. You can also install the latest from source at http://www.monkey.org/~provos/libevent." >&2;}
22743
21051
   { (exit 1); exit 1; }; }
22744
21052
fi
22745
21053
 
22746
21054
 
 
21055
 
22747
21056
save_LIBS="${LIBS}"
22748
21057
LIBS="${LIBS} ${LTLIBEVENT}"
22749
21058
 
22841
21150
done
22842
21151
 
22843
21152
 
 
21153
for ac_func in event_base_free
 
21154
do
 
21155
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21156
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21157
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21158
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21160
else
 
21161
  cat >conftest.$ac_ext <<_ACEOF
 
21162
/* confdefs.h.  */
 
21163
_ACEOF
 
21164
cat confdefs.h >>conftest.$ac_ext
 
21165
cat >>conftest.$ac_ext <<_ACEOF
 
21166
/* end confdefs.h.  */
 
21167
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21168
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21169
#define $ac_func innocuous_$ac_func
 
21170
 
 
21171
/* System header to define __stub macros and hopefully few prototypes,
 
21172
    which can conflict with char $ac_func (); below.
 
21173
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21174
    <limits.h> exists even on freestanding compilers.  */
 
21175
 
 
21176
#ifdef __STDC__
 
21177
# include <limits.h>
 
21178
#else
 
21179
# include <assert.h>
 
21180
#endif
 
21181
 
 
21182
#undef $ac_func
 
21183
 
 
21184
/* Override any GCC internal prototype to avoid an error.
 
21185
   Use char because int might match the return type of a GCC
 
21186
   builtin and then its argument prototype would still apply.  */
 
21187
#ifdef __cplusplus
 
21188
extern "C"
 
21189
#endif
 
21190
char $ac_func ();
 
21191
/* The GNU C library defines this for functions which it implements
 
21192
    to always fail with ENOSYS.  Some functions are actually named
 
21193
    something starting with __ and the normal name is an alias.  */
 
21194
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21195
choke me
 
21196
#endif
 
21197
 
 
21198
int
 
21199
main ()
 
21200
{
 
21201
return $ac_func ();
 
21202
  ;
 
21203
  return 0;
 
21204
}
 
21205
_ACEOF
 
21206
rm -f conftest.$ac_objext conftest$ac_exeext
 
21207
if { (ac_try="$ac_link"
 
21208
case "(($ac_try" in
 
21209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21210
  *) ac_try_echo=$ac_try;;
 
21211
esac
 
21212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21213
  (eval "$ac_link") 2>conftest.er1
 
21214
  ac_status=$?
 
21215
  grep -v '^ *+' conftest.er1 >conftest.err
 
21216
  rm -f conftest.er1
 
21217
  cat conftest.err >&5
 
21218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21219
  (exit $ac_status); } && {
 
21220
         test -z "$ac_c_werror_flag" ||
 
21221
         test ! -s conftest.err
 
21222
       } && test -s conftest$ac_exeext &&
 
21223
       $as_test_x conftest$ac_exeext; then
 
21224
  eval "$as_ac_var=yes"
 
21225
else
 
21226
  echo "$as_me: failed program was:" >&5
 
21227
sed 's/^/| /' conftest.$ac_ext >&5
 
21228
 
 
21229
        eval "$as_ac_var=no"
 
21230
fi
 
21231
 
 
21232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21233
      conftest$ac_exeext conftest.$ac_ext
 
21234
fi
 
21235
ac_res=`eval echo '${'$as_ac_var'}'`
 
21236
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21237
echo "${ECHO_T}$ac_res" >&6; }
 
21238
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21239
  cat >>confdefs.h <<_ACEOF
 
21240
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21241
_ACEOF
 
21242
 
 
21243
fi
 
21244
done
 
21245
 
 
21246
 
22844
21247
for ac_func in event_base_get_method
22845
21248
do
22846
21249
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23087
21490
 
23088
21491
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
23089
21492
then
23090
 
  { { echo "$as_me:$LINENO: error: Couldn't find uuid/uuid.h. Try installing libuuid development packages" >&5
23091
 
echo "$as_me: error: Couldn't find uuid/uuid.h. Try installing libuuid development packages" >&2;}
 
21493
  { { echo "$as_me:$LINENO: error: Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel." >&5
 
21494
echo "$as_me: error: Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel." >&2;}
23092
21495
   { (exit 1); exit 1; }; }
23093
21496
fi
23094
21497
 
23105
21508
 
23106
21509
 
23107
21510
    use_additional=yes
 
21511
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
21512
  then
 
21513
    i_system="-isystem "
 
21514
  else
 
21515
    i_system="-I"
 
21516
  fi
 
21517
 
23108
21518
 
23109
21519
  acl_save_prefix="$prefix"
23110
21520
  prefix="$acl_final_prefix"
23398
21808
  exec_prefix="$acl_save_exec_prefix"
23399
21809
  prefix="$acl_save_prefix"
23400
21810
 
23401
 
                    if test "X$x" = "X-I$additional_includedir"; then
 
21811
                    if test "X$x" = "X${i_system}$additional_includedir"; then
23402
21812
                      haveit=yes
23403
21813
                      break
23404
21814
                    fi
23405
21815
                  done
23406
21816
                  if test -z "$haveit"; then
23407
21817
                    if test -d "$additional_includedir"; then
23408
 
                                            INCUUID="${INCUUID}${INCUUID:+ }-I$additional_includedir"
 
21818
                                            INCUUID="${INCUUID}${INCUUID:+ }${i_system}$additional_includedir"
23409
21819
                    fi
23410
21820
                  fi
23411
21821
                fi
23670
22080
 
23671
22081
 
23672
22082
 
23673
 
#--------------------------------------------------------------------
23674
 
# Check for tcmalloc
23675
 
#--------------------------------------------------------------------
23676
 
 
23677
 
# Check whether --enable-tcmalloc was given.
 
22083
 
 
22084
 
 
22085
 
 
22086
 
 
22087
 
 
22088
  # Check whether --enable-umem was given.
 
22089
if test "${enable_umem+set}" = set; then
 
22090
  enableval=$enable_umem; ac_enable_umem="$enableval"
 
22091
else
 
22092
  ac_enable_umem="no"
 
22093
fi
 
22094
 
 
22095
 
 
22096
  # Check whether --enable-tcmalloc was given.
23678
22097
if test "${enable_tcmalloc+set}" = set; then
23679
22098
  enableval=$enable_tcmalloc; ac_enable_tcmalloc="$enableval"
23680
22099
else
23682
22101
fi
23683
22102
 
23684
22103
 
23685
 
if test "x$ac_enable_tcmalloc" != "xno"
23686
 
then
 
22104
  # Check whether --enable-mtmalloc was given.
 
22105
if test "${enable_mtmalloc+set}" = set; then
 
22106
  enableval=$enable_mtmalloc; ac_enable_mtmalloc="$enableval"
 
22107
else
 
22108
  ac_enable_mtmalloc="yes"
 
22109
fi
 
22110
 
 
22111
 
 
22112
  save_LIBS="${LIBS}"
 
22113
  LIBS=
 
22114
  if test "x$ac_enable_umem" = "xyes"; then
 
22115
 
 
22116
 
 
22117
{ echo "$as_me:$LINENO: checking for malloc in -lumem" >&5
 
22118
echo $ECHO_N "checking for malloc in -lumem... $ECHO_C" >&6; }
 
22119
if test "${ac_cv_lib_umem_malloc+set}" = set; then
 
22120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22121
else
 
22122
  ac_check_lib_save_LIBS=$LIBS
 
22123
LIBS="-lumem  $LIBS"
 
22124
cat >conftest.$ac_ext <<_ACEOF
 
22125
/* confdefs.h.  */
 
22126
_ACEOF
 
22127
cat confdefs.h >>conftest.$ac_ext
 
22128
cat >>conftest.$ac_ext <<_ACEOF
 
22129
/* end confdefs.h.  */
 
22130
 
 
22131
/* Override any GCC internal prototype to avoid an error.
 
22132
   Use char because int might match the return type of a GCC
 
22133
   builtin and then its argument prototype would still apply.  */
 
22134
#ifdef __cplusplus
 
22135
extern "C"
 
22136
#endif
 
22137
char malloc ();
 
22138
int
 
22139
main ()
 
22140
{
 
22141
return malloc ();
 
22142
  ;
 
22143
  return 0;
 
22144
}
 
22145
_ACEOF
 
22146
rm -f conftest.$ac_objext conftest$ac_exeext
 
22147
if { (ac_try="$ac_link"
 
22148
case "(($ac_try" in
 
22149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22150
  *) ac_try_echo=$ac_try;;
 
22151
esac
 
22152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22153
  (eval "$ac_link") 2>conftest.er1
 
22154
  ac_status=$?
 
22155
  grep -v '^ *+' conftest.er1 >conftest.err
 
22156
  rm -f conftest.er1
 
22157
  cat conftest.err >&5
 
22158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22159
  (exit $ac_status); } && {
 
22160
         test -z "$ac_c_werror_flag" ||
 
22161
         test ! -s conftest.err
 
22162
       } && test -s conftest$ac_exeext &&
 
22163
       $as_test_x conftest$ac_exeext; then
 
22164
  ac_cv_lib_umem_malloc=yes
 
22165
else
 
22166
  echo "$as_me: failed program was:" >&5
 
22167
sed 's/^/| /' conftest.$ac_ext >&5
 
22168
 
 
22169
        ac_cv_lib_umem_malloc=no
 
22170
fi
 
22171
 
 
22172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22173
      conftest$ac_exeext conftest.$ac_ext
 
22174
LIBS=$ac_check_lib_save_LIBS
 
22175
fi
 
22176
{ echo "$as_me:$LINENO: result: $ac_cv_lib_umem_malloc" >&5
 
22177
echo "${ECHO_T}$ac_cv_lib_umem_malloc" >&6; }
 
22178
if test $ac_cv_lib_umem_malloc = yes; then
 
22179
  cat >>confdefs.h <<_ACEOF
 
22180
#define HAVE_LIBUMEM 1
 
22181
_ACEOF
 
22182
 
 
22183
  LIBS="-lumem $LIBS"
 
22184
 
 
22185
fi
 
22186
 
 
22187
 
 
22188
else
 
22189
 
 
22190
    case "$target_os" in
 
22191
      *linux*)
 
22192
        if test "x$ac_enable_tcmalloc" != "xno"; then
 
22193
 
 
22194
 
 
22195
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc-minimal" >&5
 
22196
echo $ECHO_N "checking for malloc in -ltcmalloc-minimal... $ECHO_C" >&6; }
 
22197
if test "${ac_cv_lib_tcmalloc_minimal_malloc+set}" = set; then
 
22198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22199
else
 
22200
  ac_check_lib_save_LIBS=$LIBS
 
22201
LIBS="-ltcmalloc-minimal  $LIBS"
 
22202
cat >conftest.$ac_ext <<_ACEOF
 
22203
/* confdefs.h.  */
 
22204
_ACEOF
 
22205
cat confdefs.h >>conftest.$ac_ext
 
22206
cat >>conftest.$ac_ext <<_ACEOF
 
22207
/* end confdefs.h.  */
 
22208
 
 
22209
/* Override any GCC internal prototype to avoid an error.
 
22210
   Use char because int might match the return type of a GCC
 
22211
   builtin and then its argument prototype would still apply.  */
 
22212
#ifdef __cplusplus
 
22213
extern "C"
 
22214
#endif
 
22215
char malloc ();
 
22216
int
 
22217
main ()
 
22218
{
 
22219
return malloc ();
 
22220
  ;
 
22221
  return 0;
 
22222
}
 
22223
_ACEOF
 
22224
rm -f conftest.$ac_objext conftest$ac_exeext
 
22225
if { (ac_try="$ac_link"
 
22226
case "(($ac_try" in
 
22227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22228
  *) ac_try_echo=$ac_try;;
 
22229
esac
 
22230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22231
  (eval "$ac_link") 2>conftest.er1
 
22232
  ac_status=$?
 
22233
  grep -v '^ *+' conftest.er1 >conftest.err
 
22234
  rm -f conftest.er1
 
22235
  cat conftest.err >&5
 
22236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22237
  (exit $ac_status); } && {
 
22238
         test -z "$ac_c_werror_flag" ||
 
22239
         test ! -s conftest.err
 
22240
       } && test -s conftest$ac_exeext &&
 
22241
       $as_test_x conftest$ac_exeext; then
 
22242
  ac_cv_lib_tcmalloc_minimal_malloc=yes
 
22243
else
 
22244
  echo "$as_me: failed program was:" >&5
 
22245
sed 's/^/| /' conftest.$ac_ext >&5
 
22246
 
 
22247
        ac_cv_lib_tcmalloc_minimal_malloc=no
 
22248
fi
 
22249
 
 
22250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22251
      conftest$ac_exeext conftest.$ac_ext
 
22252
LIBS=$ac_check_lib_save_LIBS
 
22253
fi
 
22254
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_minimal_malloc" >&5
 
22255
echo "${ECHO_T}$ac_cv_lib_tcmalloc_minimal_malloc" >&6; }
 
22256
if test $ac_cv_lib_tcmalloc_minimal_malloc = yes; then
 
22257
  cat >>confdefs.h <<_ACEOF
 
22258
#define HAVE_LIBTCMALLOC_MINIMAL 1
 
22259
_ACEOF
 
22260
 
 
22261
  LIBS="-ltcmalloc-minimal $LIBS"
 
22262
 
 
22263
fi
 
22264
 
 
22265
          if test "x$ac_cv_lib_tcmalloc_minimal_malloc" != "xyes"; then
 
22266
 
23687
22267
 
23688
22268
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc" >&5
23689
22269
echo $ECHO_N "checking for malloc in -ltcmalloc... $ECHO_C" >&6; }
23755
22335
 
23756
22336
fi
23757
22337
 
23758
 
fi
23759
 
 
23760
 
if test "x$ac_cv_lib_tcmalloc_malloc" != "xyes"
23761
 
then
 
22338
 
 
22339
fi
 
22340
 
 
22341
 
 
22342
fi
 
22343
 
 
22344
        ;;
 
22345
      *solaris*)
 
22346
        if test "x$ac_enable_mtmalloc" != "xno"; then
 
22347
 
23762
22348
 
23763
22349
{ echo "$as_me:$LINENO: checking for malloc in -lmtmalloc" >&5
23764
22350
echo $ECHO_N "checking for malloc in -lmtmalloc... $ECHO_C" >&6; }
23830
22416
 
23831
22417
fi
23832
22418
 
23833
 
fi
23834
 
 
23835
 
#--------------------------------------------------------------------
23836
 
# Check for libdrizzle
23837
 
#--------------------------------------------------------------------
23838
 
 
23839
 
 
23840
 
for ac_header in libdrizzle/drizzle_client.h
23841
 
do
23842
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23843
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23844
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23845
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23846
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22419
 
 
22420
fi
 
22421
 
 
22422
        ;;
 
22423
    esac
 
22424
 
 
22425
fi
 
22426
 
 
22427
  BETTER_MALLOC_LIBS="${LIBS}"
 
22428
  LIBS="${save_LIBS}"
 
22429
 
 
22430
 
 
22431
 
 
22432
 
 
22433
 
 
22434
 
 
22435
 
 
22436
 
 
22437
 
 
22438
 
 
22439
 
 
22440
 
 
22441
 
 
22442
 
 
22443
 
 
22444
 
 
22445
 
 
22446
 
 
22447
 
 
22448
    use_additional=yes
 
22449
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
22450
  then
 
22451
    i_system="-isystem "
 
22452
  else
 
22453
    i_system="-I"
 
22454
  fi
 
22455
 
 
22456
 
 
22457
  acl_save_prefix="$prefix"
 
22458
  prefix="$acl_final_prefix"
 
22459
  acl_save_exec_prefix="$exec_prefix"
 
22460
  exec_prefix="$acl_final_exec_prefix"
 
22461
 
 
22462
    eval additional_includedir=\"$includedir\"
 
22463
    eval additional_libdir=\"$libdir\"
 
22464
 
 
22465
  exec_prefix="$acl_save_exec_prefix"
 
22466
  prefix="$acl_save_prefix"
 
22467
 
 
22468
 
 
22469
# Check whether --with-libsqlite3-prefix was given.
 
22470
if test "${with_libsqlite3_prefix+set}" = set; then
 
22471
  withval=$with_libsqlite3_prefix;
 
22472
    if test "X$withval" = "Xno"; then
 
22473
      use_additional=no
 
22474
    else
 
22475
      if test "X$withval" = "X"; then
 
22476
 
 
22477
  acl_save_prefix="$prefix"
 
22478
  prefix="$acl_final_prefix"
 
22479
  acl_save_exec_prefix="$exec_prefix"
 
22480
  exec_prefix="$acl_final_exec_prefix"
 
22481
 
 
22482
          eval additional_includedir=\"$includedir\"
 
22483
          eval additional_libdir=\"$libdir\"
 
22484
 
 
22485
  exec_prefix="$acl_save_exec_prefix"
 
22486
  prefix="$acl_save_prefix"
 
22487
 
 
22488
      else
 
22489
        additional_includedir="$withval/include"
 
22490
        additional_libdir="$withval/$acl_libdirstem"
 
22491
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
22492
           && ! test -d "$withval/$acl_libdirstem"; then
 
22493
          additional_libdir="$withval/$acl_libdirstem2"
 
22494
        fi
 
22495
      fi
 
22496
    fi
 
22497
 
 
22498
fi
 
22499
 
 
22500
      LIBSQLITE3=
 
22501
  LTLIBSQLITE3=
 
22502
  INCSQLITE3=
 
22503
  LIBSQLITE3_PREFIX=
 
22504
  rpathdirs=
 
22505
  ltrpathdirs=
 
22506
  names_already_handled=
 
22507
  names_next_round='sqlite3 '
 
22508
  while test -n "$names_next_round"; do
 
22509
    names_this_round="$names_next_round"
 
22510
    names_next_round=
 
22511
    for name in $names_this_round; do
 
22512
      already_handled=
 
22513
      for n in $names_already_handled; do
 
22514
        if test "$n" = "$name"; then
 
22515
          already_handled=yes
 
22516
          break
 
22517
        fi
 
22518
      done
 
22519
      if test -z "$already_handled"; then
 
22520
        names_already_handled="$names_already_handled $name"
 
22521
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
22522
        eval value=\"\$HAVE_LIB$uppername\"
 
22523
        if test -n "$value"; then
 
22524
          if test "$value" = yes; then
 
22525
            eval value=\"\$LIB$uppername\"
 
22526
            test -z "$value" || LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$value"
 
22527
            eval value=\"\$LTLIB$uppername\"
 
22528
            test -z "$value" || LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }$value"
 
22529
          else
 
22530
                                    :
 
22531
          fi
 
22532
        else
 
22533
                              found_dir=
 
22534
          found_la=
 
22535
          found_so=
 
22536
          found_a=
 
22537
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
22538
          if test -n "$acl_shlibext"; then
 
22539
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
22540
          else
 
22541
            shrext=
 
22542
          fi
 
22543
          if test $use_additional = yes; then
 
22544
            dir="$additional_libdir"
 
22545
                                    if test -n "$acl_shlibext"; then
 
22546
              if test -f "$dir/$libname$shrext"; then
 
22547
                found_dir="$dir"
 
22548
                found_so="$dir/$libname$shrext"
 
22549
              else
 
22550
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
22551
                  ver=`(cd "$dir" && \
 
22552
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
22553
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
22554
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
22555
                        | sed 1q ) 2>/dev/null`
 
22556
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
22557
                    found_dir="$dir"
 
22558
                    found_so="$dir/$libname$shrext.$ver"
 
22559
                  fi
 
22560
                else
 
22561
                  eval library_names=\"$acl_library_names_spec\"
 
22562
                  for f in $library_names; do
 
22563
                    if test -f "$dir/$f"; then
 
22564
                      found_dir="$dir"
 
22565
                      found_so="$dir/$f"
 
22566
                      break
 
22567
                    fi
 
22568
                  done
 
22569
                fi
 
22570
              fi
 
22571
            fi
 
22572
                        if test "X$found_dir" = "X"; then
 
22573
              if test -f "$dir/$libname.$acl_libext"; then
 
22574
                found_dir="$dir"
 
22575
                found_a="$dir/$libname.$acl_libext"
 
22576
              fi
 
22577
            fi
 
22578
            if test "X$found_dir" != "X"; then
 
22579
              if test -f "$dir/$libname.la"; then
 
22580
                found_la="$dir/$libname.la"
 
22581
              fi
 
22582
            fi
 
22583
          fi
 
22584
          if test "X$found_dir" = "X"; then
 
22585
            for x in $LDFLAGS $LTLIBSQLITE3; do
 
22586
 
 
22587
  acl_save_prefix="$prefix"
 
22588
  prefix="$acl_final_prefix"
 
22589
  acl_save_exec_prefix="$exec_prefix"
 
22590
  exec_prefix="$acl_final_exec_prefix"
 
22591
  eval x=\"$x\"
 
22592
  exec_prefix="$acl_save_exec_prefix"
 
22593
  prefix="$acl_save_prefix"
 
22594
 
 
22595
              case "$x" in
 
22596
                -L*)
 
22597
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
22598
                                    if test -n "$acl_shlibext"; then
 
22599
                    if test -f "$dir/$libname$shrext"; then
 
22600
                      found_dir="$dir"
 
22601
                      found_so="$dir/$libname$shrext"
 
22602
                    else
 
22603
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
22604
                        ver=`(cd "$dir" && \
 
22605
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
22606
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
22607
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
22608
                              | sed 1q ) 2>/dev/null`
 
22609
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
22610
                          found_dir="$dir"
 
22611
                          found_so="$dir/$libname$shrext.$ver"
 
22612
                        fi
 
22613
                      else
 
22614
                        eval library_names=\"$acl_library_names_spec\"
 
22615
                        for f in $library_names; do
 
22616
                          if test -f "$dir/$f"; then
 
22617
                            found_dir="$dir"
 
22618
                            found_so="$dir/$f"
 
22619
                            break
 
22620
                          fi
 
22621
                        done
 
22622
                      fi
 
22623
                    fi
 
22624
                  fi
 
22625
                                    if test "X$found_dir" = "X"; then
 
22626
                    if test -f "$dir/$libname.$acl_libext"; then
 
22627
                      found_dir="$dir"
 
22628
                      found_a="$dir/$libname.$acl_libext"
 
22629
                    fi
 
22630
                  fi
 
22631
                  if test "X$found_dir" != "X"; then
 
22632
                    if test -f "$dir/$libname.la"; then
 
22633
                      found_la="$dir/$libname.la"
 
22634
                    fi
 
22635
                  fi
 
22636
                  ;;
 
22637
              esac
 
22638
              if test "X$found_dir" != "X"; then
 
22639
                break
 
22640
              fi
 
22641
            done
 
22642
          fi
 
22643
          if test "X$found_dir" != "X"; then
 
22644
                        LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-L$found_dir -l$name"
 
22645
            if test "X$found_so" != "X"; then
 
22646
                                                        if test "$enable_rpath" = no \
 
22647
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
22648
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
22649
                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
 
22650
              else
 
22651
                                                                                haveit=
 
22652
                for x in $ltrpathdirs; do
 
22653
                  if test "X$x" = "X$found_dir"; then
 
22654
                    haveit=yes
 
22655
                    break
 
22656
                  fi
 
22657
                done
 
22658
                if test -z "$haveit"; then
 
22659
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
22660
                fi
 
22661
                                if test "$acl_hardcode_direct" = yes; then
 
22662
                                                      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
 
22663
                else
 
22664
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
22665
                                                            LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
 
22666
                                                            haveit=
 
22667
                    for x in $rpathdirs; do
 
22668
                      if test "X$x" = "X$found_dir"; then
 
22669
                        haveit=yes
 
22670
                        break
 
22671
                      fi
 
22672
                    done
 
22673
                    if test -z "$haveit"; then
 
22674
                      rpathdirs="$rpathdirs $found_dir"
 
22675
                    fi
 
22676
                  else
 
22677
                                                                                haveit=
 
22678
                    for x in $LDFLAGS $LIBSQLITE3; do
 
22679
 
 
22680
  acl_save_prefix="$prefix"
 
22681
  prefix="$acl_final_prefix"
 
22682
  acl_save_exec_prefix="$exec_prefix"
 
22683
  exec_prefix="$acl_final_exec_prefix"
 
22684
  eval x=\"$x\"
 
22685
  exec_prefix="$acl_save_exec_prefix"
 
22686
  prefix="$acl_save_prefix"
 
22687
 
 
22688
                      if test "X$x" = "X-L$found_dir"; then
 
22689
                        haveit=yes
 
22690
                        break
 
22691
                      fi
 
22692
                    done
 
22693
                    if test -z "$haveit"; then
 
22694
                      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$found_dir"
 
22695
                    fi
 
22696
                    if test "$acl_hardcode_minus_L" != no; then
 
22697
                                                                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
 
22698
                    else
 
22699
                                                                                                                                                                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-l$name"
 
22700
                    fi
 
22701
                  fi
 
22702
                fi
 
22703
              fi
 
22704
            else
 
22705
              if test "X$found_a" != "X"; then
 
22706
                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_a"
 
22707
              else
 
22708
                                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$found_dir -l$name"
 
22709
              fi
 
22710
            fi
 
22711
                        additional_includedir=
 
22712
            case "$found_dir" in
 
22713
              */$acl_libdirstem | */$acl_libdirstem/)
 
22714
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
22715
                if test "$name" = 'sqlite3'; then
 
22716
                  LIBSQLITE3_PREFIX="$basedir"
 
22717
                fi
 
22718
                additional_includedir="$basedir/include"
 
22719
                ;;
 
22720
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
22721
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
22722
                if test "$name" = 'sqlite3'; then
 
22723
                  LIBSQLITE3_PREFIX="$basedir"
 
22724
                fi
 
22725
                additional_includedir="$basedir/include"
 
22726
                ;;
 
22727
            esac
 
22728
            if test "X$additional_includedir" != "X"; then
 
22729
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
22730
                haveit=
 
22731
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
22732
                  if test -n "$GCC"; then
 
22733
                    case $host_os in
 
22734
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22735
                    esac
 
22736
                  fi
 
22737
                fi
 
22738
                if test -z "$haveit"; then
 
22739
                  for x in $CPPFLAGS $INCSQLITE3; do
 
22740
 
 
22741
  acl_save_prefix="$prefix"
 
22742
  prefix="$acl_final_prefix"
 
22743
  acl_save_exec_prefix="$exec_prefix"
 
22744
  exec_prefix="$acl_final_exec_prefix"
 
22745
  eval x=\"$x\"
 
22746
  exec_prefix="$acl_save_exec_prefix"
 
22747
  prefix="$acl_save_prefix"
 
22748
 
 
22749
                    if test "X$x" = "X${i_system}$additional_includedir"; then
 
22750
                      haveit=yes
 
22751
                      break
 
22752
                    fi
 
22753
                  done
 
22754
                  if test -z "$haveit"; then
 
22755
                    if test -d "$additional_includedir"; then
 
22756
                                            INCSQLITE3="${INCSQLITE3}${INCSQLITE3:+ }${i_system}$additional_includedir"
 
22757
                    fi
 
22758
                  fi
 
22759
                fi
 
22760
              fi
 
22761
            fi
 
22762
                        if test -n "$found_la"; then
 
22763
                                                        save_libdir="$libdir"
 
22764
              case "$found_la" in
 
22765
                */* | *\\*) . "$found_la" ;;
 
22766
                *) . "./$found_la" ;;
 
22767
              esac
 
22768
              libdir="$save_libdir"
 
22769
                            for dep in $dependency_libs; do
 
22770
                case "$dep" in
 
22771
                  -L*)
 
22772
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
22773
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
22774
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
22775
                      haveit=
 
22776
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
22777
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
22778
                        if test -n "$GCC"; then
 
22779
                          case $host_os in
 
22780
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22781
                          esac
 
22782
                        fi
 
22783
                      fi
 
22784
                      if test -z "$haveit"; then
 
22785
                        haveit=
 
22786
                        for x in $LDFLAGS $LIBSQLITE3; do
 
22787
 
 
22788
  acl_save_prefix="$prefix"
 
22789
  prefix="$acl_final_prefix"
 
22790
  acl_save_exec_prefix="$exec_prefix"
 
22791
  exec_prefix="$acl_final_exec_prefix"
 
22792
  eval x=\"$x\"
 
22793
  exec_prefix="$acl_save_exec_prefix"
 
22794
  prefix="$acl_save_prefix"
 
22795
 
 
22796
                          if test "X$x" = "X-L$additional_libdir"; then
 
22797
                            haveit=yes
 
22798
                            break
 
22799
                          fi
 
22800
                        done
 
22801
                        if test -z "$haveit"; then
 
22802
                          if test -d "$additional_libdir"; then
 
22803
                                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$additional_libdir"
 
22804
                          fi
 
22805
                        fi
 
22806
                        haveit=
 
22807
                        for x in $LDFLAGS $LTLIBSQLITE3; do
 
22808
 
 
22809
  acl_save_prefix="$prefix"
 
22810
  prefix="$acl_final_prefix"
 
22811
  acl_save_exec_prefix="$exec_prefix"
 
22812
  exec_prefix="$acl_final_exec_prefix"
 
22813
  eval x=\"$x\"
 
22814
  exec_prefix="$acl_save_exec_prefix"
 
22815
  prefix="$acl_save_prefix"
 
22816
 
 
22817
                          if test "X$x" = "X-L$additional_libdir"; then
 
22818
                            haveit=yes
 
22819
                            break
 
22820
                          fi
 
22821
                        done
 
22822
                        if test -z "$haveit"; then
 
22823
                          if test -d "$additional_libdir"; then
 
22824
                                                        LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-L$additional_libdir"
 
22825
                          fi
 
22826
                        fi
 
22827
                      fi
 
22828
                    fi
 
22829
                    ;;
 
22830
                  -R*)
 
22831
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
22832
                    if test "$enable_rpath" != no; then
 
22833
                                                                  haveit=
 
22834
                      for x in $rpathdirs; do
 
22835
                        if test "X$x" = "X$dir"; then
 
22836
                          haveit=yes
 
22837
                          break
 
22838
                        fi
 
22839
                      done
 
22840
                      if test -z "$haveit"; then
 
22841
                        rpathdirs="$rpathdirs $dir"
 
22842
                      fi
 
22843
                                                                  haveit=
 
22844
                      for x in $ltrpathdirs; do
 
22845
                        if test "X$x" = "X$dir"; then
 
22846
                          haveit=yes
 
22847
                          break
 
22848
                        fi
 
22849
                      done
 
22850
                      if test -z "$haveit"; then
 
22851
                        ltrpathdirs="$ltrpathdirs $dir"
 
22852
                      fi
 
22853
                    fi
 
22854
                    ;;
 
22855
                  -l*)
 
22856
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
22857
                    ;;
 
22858
                  *.la)
 
22859
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
22860
                    ;;
 
22861
                  *)
 
22862
                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$dep"
 
22863
                    LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }$dep"
 
22864
                    ;;
 
22865
                esac
 
22866
              done
 
22867
            fi
 
22868
          else
 
22869
                                                            LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-l$name"
 
22870
            LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-l$name"
 
22871
          fi
 
22872
        fi
 
22873
      fi
 
22874
    done
 
22875
  done
 
22876
  if test "X$rpathdirs" != "X"; then
 
22877
    if test -n "$acl_hardcode_libdir_separator"; then
 
22878
                        alldirs=
 
22879
      for found_dir in $rpathdirs; do
 
22880
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
22881
      done
 
22882
            acl_save_libdir="$libdir"
 
22883
      libdir="$alldirs"
 
22884
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
22885
      libdir="$acl_save_libdir"
 
22886
      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$flag"
 
22887
    else
 
22888
            for found_dir in $rpathdirs; do
 
22889
        acl_save_libdir="$libdir"
 
22890
        libdir="$found_dir"
 
22891
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
22892
        libdir="$acl_save_libdir"
 
22893
        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$flag"
 
22894
      done
 
22895
    fi
 
22896
  fi
 
22897
  if test "X$ltrpathdirs" != "X"; then
 
22898
            for found_dir in $ltrpathdirs; do
 
22899
      LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-R$found_dir"
 
22900
    done
 
22901
  fi
 
22902
 
 
22903
 
 
22904
 
 
22905
 
 
22906
 
 
22907
 
 
22908
 
 
22909
        ac_save_CPPFLAGS="$CPPFLAGS"
 
22910
 
 
22911
  for element in $INCSQLITE3; do
 
22912
    haveit=
 
22913
    for x in $CPPFLAGS; do
 
22914
 
 
22915
  acl_save_prefix="$prefix"
 
22916
  prefix="$acl_final_prefix"
 
22917
  acl_save_exec_prefix="$exec_prefix"
 
22918
  exec_prefix="$acl_final_exec_prefix"
 
22919
  eval x=\"$x\"
 
22920
  exec_prefix="$acl_save_exec_prefix"
 
22921
  prefix="$acl_save_prefix"
 
22922
 
 
22923
      if test "X$x" = "X$element"; then
 
22924
        haveit=yes
 
22925
        break
 
22926
      fi
 
22927
    done
 
22928
    if test -z "$haveit"; then
 
22929
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
22930
    fi
 
22931
  done
 
22932
 
 
22933
 
 
22934
  { echo "$as_me:$LINENO: checking for libsqlite3" >&5
 
22935
echo $ECHO_N "checking for libsqlite3... $ECHO_C" >&6; }
 
22936
if test "${ac_cv_libsqlite3+set}" = set; then
23847
22937
  echo $ECHO_N "(cached) $ECHO_C" >&6
23848
 
fi
23849
 
ac_res=`eval echo '${'$as_ac_Header'}'`
23850
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23851
 
echo "${ECHO_T}$ac_res" >&6; }
23852
22938
else
23853
 
  # Is the header compilable?
23854
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23855
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23856
 
cat >conftest.$ac_ext <<_ACEOF
 
22939
 
 
22940
    ac_save_LIBS="$LIBS"
 
22941
    LIBS="$LIBS $LIBSQLITE3"
 
22942
    cat >conftest.$ac_ext <<_ACEOF
23857
22943
/* confdefs.h.  */
23858
22944
_ACEOF
23859
22945
cat confdefs.h >>conftest.$ac_ext
23860
22946
cat >>conftest.$ac_ext <<_ACEOF
23861
22947
/* end confdefs.h.  */
23862
 
$ac_includes_default
23863
 
#include <$ac_header>
 
22948
 
 
22949
    #include <stdio.h>
 
22950
    #include <sqlite3.h>
 
22951
 
 
22952
int
 
22953
main ()
 
22954
{
 
22955
 
 
22956
    sqlite3 *db;
 
22957
    sqlite3_open(NULL, &db);
 
22958
 
 
22959
  ;
 
22960
  return 0;
 
22961
}
23864
22962
_ACEOF
23865
 
rm -f conftest.$ac_objext
23866
 
if { (ac_try="$ac_compile"
 
22963
rm -f conftest.$ac_objext conftest$ac_exeext
 
22964
if { (ac_try="$ac_link"
23867
22965
case "(($ac_try" in
23868
22966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869
22967
  *) ac_try_echo=$ac_try;;
23870
22968
esac
23871
22969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872
 
  (eval "$ac_compile") 2>conftest.er1
 
22970
  (eval "$ac_link") 2>conftest.er1
23873
22971
  ac_status=$?
23874
22972
  grep -v '^ *+' conftest.er1 >conftest.err
23875
22973
  rm -f conftest.er1
23878
22976
  (exit $ac_status); } && {
23879
22977
         test -z "$ac_c_werror_flag" ||
23880
22978
         test ! -s conftest.err
23881
 
       } && test -s conftest.$ac_objext; then
23882
 
  ac_header_compiler=yes
23883
 
else
23884
 
  echo "$as_me: failed program was:" >&5
23885
 
sed 's/^/| /' conftest.$ac_ext >&5
23886
 
 
23887
 
        ac_header_compiler=no
23888
 
fi
23889
 
 
23890
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23892
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
23893
 
 
23894
 
# Is the header present?
23895
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23896
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23897
 
cat >conftest.$ac_ext <<_ACEOF
23898
 
/* confdefs.h.  */
23899
 
_ACEOF
23900
 
cat confdefs.h >>conftest.$ac_ext
23901
 
cat >>conftest.$ac_ext <<_ACEOF
23902
 
/* end confdefs.h.  */
23903
 
#include <$ac_header>
23904
 
_ACEOF
23905
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
23906
 
case "(($ac_try" in
23907
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908
 
  *) ac_try_echo=$ac_try;;
23909
 
esac
23910
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23912
 
  ac_status=$?
23913
 
  grep -v '^ *+' conftest.er1 >conftest.err
23914
 
  rm -f conftest.er1
23915
 
  cat conftest.err >&5
23916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917
 
  (exit $ac_status); } >/dev/null && {
23918
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23919
 
         test ! -s conftest.err
23920
 
       }; then
23921
 
  ac_header_preproc=yes
23922
 
else
23923
 
  echo "$as_me: failed program was:" >&5
23924
 
sed 's/^/| /' conftest.$ac_ext >&5
23925
 
 
23926
 
  ac_header_preproc=no
23927
 
fi
23928
 
 
23929
 
rm -f conftest.err conftest.$ac_ext
23930
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23931
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
23932
 
 
23933
 
# So?  What about this header?
23934
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23935
 
  yes:no: )
23936
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23937
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23938
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23939
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23940
 
    ac_header_preproc=yes
23941
 
    ;;
23942
 
  no:yes:* )
23943
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23944
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23945
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23946
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23947
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23948
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23949
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23950
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23951
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23952
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23953
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23954
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23955
 
    ( cat <<\_ASBOX
23956
 
## --------------------------------------------- ##
23957
 
## Report this to https://launchpad.net/gearmand ##
23958
 
## --------------------------------------------- ##
23959
 
_ASBOX
23960
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
23961
 
    ;;
23962
 
esac
23963
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23964
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23965
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23967
 
else
23968
 
  eval "$as_ac_Header=\$ac_header_preproc"
23969
 
fi
23970
 
ac_res=`eval echo '${'$as_ac_Header'}'`
23971
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23972
 
echo "${ECHO_T}$ac_res" >&6; }
23973
 
 
23974
 
fi
23975
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23976
 
  cat >>confdefs.h <<_ACEOF
23977
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23978
 
_ACEOF
23979
 
 
23980
 
fi
23981
 
 
23982
 
done
23983
 
 
23984
 
if test "x$ac_cv_header_libdrizzle_drizzle_client_h" = "xyes"
23985
 
then
 
22979
       } && test -s conftest$ac_exeext &&
 
22980
       $as_test_x conftest$ac_exeext; then
 
22981
  ac_cv_libsqlite3=yes
 
22982
else
 
22983
  echo "$as_me: failed program was:" >&5
 
22984
sed 's/^/| /' conftest.$ac_ext >&5
 
22985
 
 
22986
        ac_cv_libsqlite3=no
 
22987
fi
 
22988
 
 
22989
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22990
      conftest$ac_exeext conftest.$ac_ext
 
22991
    LIBS="$ac_save_LIBS"
 
22992
 
 
22993
fi
 
22994
{ echo "$as_me:$LINENO: result: $ac_cv_libsqlite3" >&5
 
22995
echo "${ECHO_T}$ac_cv_libsqlite3" >&6; }
 
22996
  if test "$ac_cv_libsqlite3" = yes; then
 
22997
    HAVE_LIBSQLITE3=yes
 
22998
 
 
22999
cat >>confdefs.h <<\_ACEOF
 
23000
#define HAVE_LIBSQLITE3 1
 
23001
_ACEOF
 
23002
 
 
23003
    { echo "$as_me:$LINENO: checking how to link with libsqlite3" >&5
 
23004
echo $ECHO_N "checking how to link with libsqlite3... $ECHO_C" >&6; }
 
23005
    { echo "$as_me:$LINENO: result: $LIBSQLITE3" >&5
 
23006
echo "${ECHO_T}$LIBSQLITE3" >&6; }
 
23007
  else
 
23008
    HAVE_LIBSQLITE3=no
 
23009
            CPPFLAGS="$ac_save_CPPFLAGS"
 
23010
    LIBSQLITE3=
 
23011
    LTLIBSQLITE3=
 
23012
    LIBSQLITE3_PREFIX=
 
23013
  fi
 
23014
 
 
23015
 
 
23016
 
 
23017
 
 
23018
 
 
23019
 
 
23020
 
 
23021
 
 
23022
   if test "x${ac_cv_libsqlite3}" = "xyes"; then
 
23023
  HAVE_LIBSQLITE3_TRUE=
 
23024
  HAVE_LIBSQLITE3_FALSE='#'
 
23025
else
 
23026
  HAVE_LIBSQLITE3_TRUE='#'
 
23027
  HAVE_LIBSQLITE3_FALSE=
 
23028
fi
 
23029
 
 
23030
 
 
23031
 
 
23032
 
 
23033
 
 
23034
 
 
23035
 
 
23036
 
 
23037
 
 
23038
 
23986
23039
 
23987
23040
 
23988
23041
 
23997
23050
 
23998
23051
 
23999
23052
    use_additional=yes
 
23053
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
23054
  then
 
23055
    i_system="-isystem "
 
23056
  else
 
23057
    i_system="-I"
 
23058
  fi
 
23059
 
24000
23060
 
24001
23061
  acl_save_prefix="$prefix"
24002
23062
  prefix="$acl_final_prefix"
24290
23350
  exec_prefix="$acl_save_exec_prefix"
24291
23351
  prefix="$acl_save_prefix"
24292
23352
 
24293
 
                    if test "X$x" = "X-I$additional_includedir"; then
 
23353
                    if test "X$x" = "X${i_system}$additional_includedir"; then
24294
23354
                      haveit=yes
24295
23355
                      break
24296
23356
                    fi
24297
23357
                  done
24298
23358
                  if test -z "$haveit"; then
24299
23359
                    if test -d "$additional_includedir"; then
24300
 
                                            INCDRIZZLE="${INCDRIZZLE}${INCDRIZZLE:+ }-I$additional_includedir"
 
23360
                                            INCDRIZZLE="${INCDRIZZLE}${INCDRIZZLE:+ }${i_system}$additional_includedir"
24301
23361
                    fi
24302
23362
                  fi
24303
23363
                fi
24490
23550
cat >>conftest.$ac_ext <<_ACEOF
24491
23551
/* end confdefs.h.  */
24492
23552
 
24493
 
  #include <libdrizzle/drizzle_client.h>
 
23553
    #include <libdrizzle/drizzle_client.h>
24494
23554
 
24495
23555
int
24496
23556
main ()
24561
23621
 
24562
23622
 
24563
23623
 
24564
 
fi
24565
23624
 
24566
 
 if test x$ac_cv_libdrizzle = xyes; then
 
23625
   if test "x${ac_cv_libdrizzle}" = "xyes"; then
24567
23626
  HAVE_LIBDRIZZLE_TRUE=
24568
23627
  HAVE_LIBDRIZZLE_FALSE='#'
24569
23628
else
24572
23631
fi
24573
23632
 
24574
23633
 
24575
 
# AX_HEADER_ASSERT
24576
 
# ----------------
24577
 
# Check whether to enable assertions.
24578
 
 
24579
 
 
24580
 
  { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
24581
 
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
24582
 
  # Check whether --enable-assert was given.
24583
 
if test "${enable_assert+set}" = set; then
24584
 
  enableval=$enable_assert; ac_cv_assert="no"
24585
 
else
24586
 
  ac_cv_assert="yes"
24587
 
fi
24588
 
 
24589
 
  { echo "$as_me:$LINENO: result: $ac_cv_assert" >&5
24590
 
echo "${ECHO_T}$ac_cv_assert" >&6; }
24591
 
 
24592
 
 
24593
 
if test -d ".bzr"
24594
 
then
24595
 
  building_from_bzr=yes
24596
 
else
24597
 
  building_from_bzr=no
24598
 
fi
24599
 
 
24600
 
 
24601
 
# Check whether --with-debug was given.
24602
 
if test "${with_debug+set}" = set; then
24603
 
  withval=$with_debug; with_debug=$withval
24604
 
else
24605
 
  with_debug=no
24606
 
fi
24607
 
 
24608
 
if test "$with_debug" = "yes"
24609
 
then
24610
 
  # Debugging. No optimization.
24611
 
  CFLAGS="${DEBUG_CFLAGS} -DDEBUG ${CFLAGS}"
24612
 
else
24613
 
  # Optimized version. No debug
24614
 
  CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS}"
24615
 
fi
24616
 
 
24617
 
 
24618
 
# Check whether --enable-profiling was given.
24619
 
if test "${enable_profiling+set}" = set; then
24620
 
  enableval=$enable_profiling; ac_profiling="$enableval"
24621
 
else
24622
 
  ac_profiling="no"
24623
 
fi
24624
 
 
24625
 
 
24626
 
# Check whether --enable-coverage was given.
24627
 
if test "${enable_coverage+set}" = set; then
24628
 
  enableval=$enable_coverage; ac_coverage="$enableval"
24629
 
else
24630
 
  ac_coverage="no"
24631
 
fi
24632
 
 
24633
 
 
24634
 
# Check whether --enable-fail was given.
24635
 
if test "${enable_fail+set}" = set; then
24636
 
  enableval=$enable_fail; ac_warn_fail="$enableval"
24637
 
else
24638
 
  ac_warn_fail="$building_from_bzr"
24639
 
fi
24640
 
 
24641
 
 
24642
 
# Check whether --enable-pedantic-warnings was given.
24643
 
if test "${enable_pedantic_warnings+set}" = set; then
24644
 
  enableval=$enable_pedantic_warnings; ac_warn_pedantic="$enableval"
24645
 
else
24646
 
  ac_warn_pedantic="$building_from_bzr"
24647
 
fi
24648
 
 
24649
 
 
24650
 
# Check whether --enable-unreachable was given.
24651
 
if test "${enable_unreachable+set}" = set; then
24652
 
  enableval=$enable_unreachable; ac_warn_unreachable="$enableval"
24653
 
else
24654
 
  ac_warn_unreachable="no"
24655
 
fi
24656
 
 
24657
 
 
24658
 
if test "$GCC" = "yes"
24659
 
then
24660
 
 
24661
 
  if test "$ac_warn_fail" = "yes"
24662
 
  then
24663
 
    W_FAIL="-Werror"
24664
 
  fi
24665
 
  BASE_WARNINGS="-W -Wall -Wextra -Winvalid-pch ${W_FAIL}"
24666
 
 
24667
 
  if test "$ac_profiling" = "yes"
24668
 
  then
24669
 
    GPROF_PROFILING="-pg"
24670
 
  else
24671
 
    GPROF_PROFILING=" "
24672
 
  fi
24673
 
 
24674
 
  if test "$ac_coverage" = "yes"
24675
 
  then
24676
 
    GPROF_COVERAGE="-fprofile-arcs -ftest-coverage"
24677
 
  else
24678
 
    GPROF_COVERAGE=" "
24679
 
  fi
24680
 
 
24681
 
  if test "$ac_warn_pedantic" = "yes"
24682
 
  then
24683
 
    W_PEDANTIC="-pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wswitch-default -Wswitch-enum -Wcast-align"
24684
 
    save_CFLAGS="$CFLAGS"
24685
 
    CFLAGS="-Wlogical-op"
24686
 
    cat >conftest.$ac_ext <<_ACEOF
24687
 
/* confdefs.h.  */
24688
 
_ACEOF
24689
 
cat confdefs.h >>conftest.$ac_ext
24690
 
cat >>conftest.$ac_ext <<_ACEOF
24691
 
/* end confdefs.h.  */
24692
 
#include <stdio>
24693
 
int
24694
 
main ()
24695
 
{
24696
 
 
24697
 
  ;
24698
 
  return 0;
24699
 
}
24700
 
_ACEOF
24701
 
rm -f conftest.$ac_objext
24702
 
if { (ac_try="$ac_compile"
24703
 
case "(($ac_try" in
24704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705
 
  *) ac_try_echo=$ac_try;;
24706
 
esac
24707
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708
 
  (eval "$ac_compile") 2>conftest.er1
24709
 
  ac_status=$?
24710
 
  grep -v '^ *+' conftest.er1 >conftest.err
24711
 
  rm -f conftest.er1
24712
 
  cat conftest.err >&5
24713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714
 
  (exit $ac_status); } && {
24715
 
         test -z "$ac_c_werror_flag" ||
24716
 
         test ! -s conftest.err
24717
 
       } && test -s conftest.$ac_objext; then
24718
 
  W_PEDANTIC="${W_PEDANTIC} -Wlogical-op"
24719
 
else
24720
 
  echo "$as_me: failed program was:" >&5
24721
 
sed 's/^/| /' conftest.$ac_ext >&5
24722
 
 
24723
 
 
24724
 
fi
24725
 
 
24726
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727
 
    CFLAGS="$save_CFLAGS"
24728
 
  fi
24729
 
 
24730
 
  if test "$ac_warn_unreachable" = "yes"
24731
 
  then
24732
 
    W_UNREACHABLE="-Wunreachable-code"
24733
 
  fi
24734
 
 
24735
 
  CC_WARNINGS="${BASE_WARNINGS} ${W_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} "
24736
 
 
24737
 
  NO_REDUNDANT_DECLS="-Wno-redundant-decls"
24738
 
  CPPFLAGS="-fpch-deps ${CPPFLAGS}"
24739
 
fi
24740
 
if test "$SUNCC" = "yes"
24741
 
then
24742
 
 
24743
 
  if test "$ac_warn_fail" = "yes"
24744
 
  then
24745
 
    W_FAIL="-errwarn=%all"
24746
 
  fi
24747
 
 
24748
 
  { echo "$as_me:$LINENO: checking whether E_PASTE_RESULT_NOT_TOKEN is usable" >&5
24749
 
echo $ECHO_N "checking whether E_PASTE_RESULT_NOT_TOKEN is usable... $ECHO_C" >&6; }
24750
 
if test "${ac_cv_paste_result+set}" = set; then
24751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24752
 
else
24753
 
 
24754
 
      save_CFLAGS="${CFLAGS}"
24755
 
      CFLAGS="-errwarn=%all -erroff=E_PASTE_RESULT_NOT_TOKEN ${CFLAGS}"
24756
 
      cat >conftest.$ac_ext <<_ACEOF
24757
 
/* confdefs.h.  */
24758
 
_ACEOF
24759
 
cat confdefs.h >>conftest.$ac_ext
24760
 
cat >>conftest.$ac_ext <<_ACEOF
24761
 
/* end confdefs.h.  */
24762
 
 
24763
 
          $ac_includes_default
24764
 
 
24765
 
int
24766
 
main ()
24767
 
{
24768
 
 
24769
 
          int x= 0;
24770
 
  ;
24771
 
  return 0;
24772
 
}
24773
 
_ACEOF
24774
 
rm -f conftest.$ac_objext
24775
 
if { (ac_try="$ac_compile"
24776
 
case "(($ac_try" in
24777
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778
 
  *) ac_try_echo=$ac_try;;
24779
 
esac
24780
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781
 
  (eval "$ac_compile") 2>conftest.er1
24782
 
  ac_status=$?
24783
 
  grep -v '^ *+' conftest.er1 >conftest.err
24784
 
  rm -f conftest.er1
24785
 
  cat conftest.err >&5
24786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787
 
  (exit $ac_status); } && {
24788
 
         test -z "$ac_c_werror_flag" ||
24789
 
         test ! -s conftest.err
24790
 
       } && test -s conftest.$ac_objext; then
24791
 
  ac_cv_paste_result=yes
24792
 
else
24793
 
  echo "$as_me: failed program was:" >&5
24794
 
sed 's/^/| /' conftest.$ac_ext >&5
24795
 
 
24796
 
        ac_cv_paste_result=no
24797
 
fi
24798
 
 
24799
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800
 
      CFLAGS="${save_CFLAGS}"
24801
 
 
24802
 
fi
24803
 
{ echo "$as_me:$LINENO: result: $ac_cv_paste_result" >&5
24804
 
echo "${ECHO_T}$ac_cv_paste_result" >&6; }
24805
 
  if test $ac_cv_paste_result = yes; then
24806
 
  W_PASTE_RESULT=",E_PASTE_RESULT_NOT_TOKEN"
24807
 
fi
24808
 
 
24809
 
 
24810
 
 
24811
 
  CC_WARNINGS="-v -errtags=yes ${W_FAIL} -erroff=E_INTEGER_OVERFLOW_DETECTED${W_PASTE_RESULT}"
24812
 
 
24813
 
fi
24814
 
 
24815
 
 
24816
 
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
24817
 
 
24818
 
 
24819
 
 
24820
 
AM_CPPFLAGS="-I\$(top_srcdir) -I\$(top_builddir) ${CPPFLAGS}"
24821
 
AM_CFLAGS="${CC_WARNINGS} ${CFLAGS}"
24822
 
 
24823
 
 
24824
 
 
24825
 
 
24826
 
CFLAGS=""
24827
 
CPPFLAGS=""
24828
 
 
24829
 
for ac_prog in doxygen
24830
 
do
24831
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
24832
 
set dummy $ac_prog; ac_word=$2
24833
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24834
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24835
 
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
24836
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24837
 
else
24838
 
  if test -n "$DOXYGEN"; then
24839
 
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
24840
 
else
24841
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24842
 
for as_dir in $PATH
24843
 
do
24844
 
  IFS=$as_save_IFS
24845
 
  test -z "$as_dir" && as_dir=.
24846
 
  for ac_exec_ext in '' $ac_executable_extensions; do
24847
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24848
 
    ac_cv_prog_DOXYGEN="$ac_prog"
24849
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24850
 
    break 2
24851
 
  fi
24852
 
done
24853
 
done
24854
 
IFS=$as_save_IFS
24855
 
 
24856
 
fi
24857
 
fi
24858
 
DOXYGEN=$ac_cv_prog_DOXYGEN
24859
 
if test -n "$DOXYGEN"; then
24860
 
  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
24861
 
echo "${ECHO_T}$DOXYGEN" >&6; }
24862
 
else
24863
 
  { echo "$as_me:$LINENO: result: no" >&5
24864
 
echo "${ECHO_T}no" >&6; }
24865
 
fi
24866
 
 
24867
 
 
24868
 
  test -n "$DOXYGEN" && break
24869
 
done
24870
 
 
24871
 
for ac_prog in perl
24872
 
do
24873
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
24874
 
set dummy $ac_prog; ac_word=$2
24875
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24876
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24877
 
if test "${ac_cv_prog_PERL+set}" = set; then
24878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24879
 
else
24880
 
  if test -n "$PERL"; then
24881
 
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
24882
 
else
24883
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24884
 
for as_dir in $PATH
24885
 
do
24886
 
  IFS=$as_save_IFS
24887
 
  test -z "$as_dir" && as_dir=.
24888
 
  for ac_exec_ext in '' $ac_executable_extensions; do
24889
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24890
 
    ac_cv_prog_PERL="$ac_prog"
24891
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24892
 
    break 2
24893
 
  fi
24894
 
done
24895
 
done
24896
 
IFS=$as_save_IFS
24897
 
 
24898
 
fi
24899
 
fi
24900
 
PERL=$ac_cv_prog_PERL
24901
 
if test -n "$PERL"; then
24902
 
  { echo "$as_me:$LINENO: result: $PERL" >&5
24903
 
echo "${ECHO_T}$PERL" >&6; }
24904
 
else
24905
 
  { echo "$as_me:$LINENO: result: no" >&5
24906
 
echo "${ECHO_T}no" >&6; }
24907
 
fi
24908
 
 
24909
 
 
24910
 
  test -n "$PERL" && break
 
23634
 
 
23635
 
 
23636
 
 
23637
 
 
23638
 
 
23639
 
 
23640
 
 
23641
 
 
23642
 
 
23643
 
 
23644
 
 
23645
 
 
23646
 
 
23647
 
 
23648
 
 
23649
 
 
23650
 
 
23651
 
 
23652
 
 
23653
 
 
23654
 
 
23655
    use_additional=yes
 
23656
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
23657
  then
 
23658
    i_system="-isystem "
 
23659
  else
 
23660
    i_system="-I"
 
23661
  fi
 
23662
 
 
23663
 
 
23664
  acl_save_prefix="$prefix"
 
23665
  prefix="$acl_final_prefix"
 
23666
  acl_save_exec_prefix="$exec_prefix"
 
23667
  exec_prefix="$acl_final_exec_prefix"
 
23668
 
 
23669
    eval additional_includedir=\"$includedir\"
 
23670
    eval additional_libdir=\"$libdir\"
 
23671
 
 
23672
  exec_prefix="$acl_save_exec_prefix"
 
23673
  prefix="$acl_save_prefix"
 
23674
 
 
23675
 
 
23676
# Check whether --with-libmemcached-prefix was given.
 
23677
if test "${with_libmemcached_prefix+set}" = set; then
 
23678
  withval=$with_libmemcached_prefix;
 
23679
    if test "X$withval" = "Xno"; then
 
23680
      use_additional=no
 
23681
    else
 
23682
      if test "X$withval" = "X"; then
 
23683
 
 
23684
  acl_save_prefix="$prefix"
 
23685
  prefix="$acl_final_prefix"
 
23686
  acl_save_exec_prefix="$exec_prefix"
 
23687
  exec_prefix="$acl_final_exec_prefix"
 
23688
 
 
23689
          eval additional_includedir=\"$includedir\"
 
23690
          eval additional_libdir=\"$libdir\"
 
23691
 
 
23692
  exec_prefix="$acl_save_exec_prefix"
 
23693
  prefix="$acl_save_prefix"
 
23694
 
 
23695
      else
 
23696
        additional_includedir="$withval/include"
 
23697
        additional_libdir="$withval/$acl_libdirstem"
 
23698
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
23699
           && ! test -d "$withval/$acl_libdirstem"; then
 
23700
          additional_libdir="$withval/$acl_libdirstem2"
 
23701
        fi
 
23702
      fi
 
23703
    fi
 
23704
 
 
23705
fi
 
23706
 
 
23707
      LIBMEMCACHED=
 
23708
  LTLIBMEMCACHED=
 
23709
  INCMEMCACHED=
 
23710
  LIBMEMCACHED_PREFIX=
 
23711
  rpathdirs=
 
23712
  ltrpathdirs=
 
23713
  names_already_handled=
 
23714
  names_next_round='memcached '
 
23715
  while test -n "$names_next_round"; do
 
23716
    names_this_round="$names_next_round"
 
23717
    names_next_round=
 
23718
    for name in $names_this_round; do
 
23719
      already_handled=
 
23720
      for n in $names_already_handled; do
 
23721
        if test "$n" = "$name"; then
 
23722
          already_handled=yes
 
23723
          break
 
23724
        fi
 
23725
      done
 
23726
      if test -z "$already_handled"; then
 
23727
        names_already_handled="$names_already_handled $name"
 
23728
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
23729
        eval value=\"\$HAVE_LIB$uppername\"
 
23730
        if test -n "$value"; then
 
23731
          if test "$value" = yes; then
 
23732
            eval value=\"\$LIB$uppername\"
 
23733
            test -z "$value" || LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$value"
 
23734
            eval value=\"\$LTLIB$uppername\"
 
23735
            test -z "$value" || LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }$value"
 
23736
          else
 
23737
                                    :
 
23738
          fi
 
23739
        else
 
23740
                              found_dir=
 
23741
          found_la=
 
23742
          found_so=
 
23743
          found_a=
 
23744
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
23745
          if test -n "$acl_shlibext"; then
 
23746
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
23747
          else
 
23748
            shrext=
 
23749
          fi
 
23750
          if test $use_additional = yes; then
 
23751
            dir="$additional_libdir"
 
23752
                                    if test -n "$acl_shlibext"; then
 
23753
              if test -f "$dir/$libname$shrext"; then
 
23754
                found_dir="$dir"
 
23755
                found_so="$dir/$libname$shrext"
 
23756
              else
 
23757
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
23758
                  ver=`(cd "$dir" && \
 
23759
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
23760
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
23761
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
23762
                        | sed 1q ) 2>/dev/null`
 
23763
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
23764
                    found_dir="$dir"
 
23765
                    found_so="$dir/$libname$shrext.$ver"
 
23766
                  fi
 
23767
                else
 
23768
                  eval library_names=\"$acl_library_names_spec\"
 
23769
                  for f in $library_names; do
 
23770
                    if test -f "$dir/$f"; then
 
23771
                      found_dir="$dir"
 
23772
                      found_so="$dir/$f"
 
23773
                      break
 
23774
                    fi
 
23775
                  done
 
23776
                fi
 
23777
              fi
 
23778
            fi
 
23779
                        if test "X$found_dir" = "X"; then
 
23780
              if test -f "$dir/$libname.$acl_libext"; then
 
23781
                found_dir="$dir"
 
23782
                found_a="$dir/$libname.$acl_libext"
 
23783
              fi
 
23784
            fi
 
23785
            if test "X$found_dir" != "X"; then
 
23786
              if test -f "$dir/$libname.la"; then
 
23787
                found_la="$dir/$libname.la"
 
23788
              fi
 
23789
            fi
 
23790
          fi
 
23791
          if test "X$found_dir" = "X"; then
 
23792
            for x in $LDFLAGS $LTLIBMEMCACHED; do
 
23793
 
 
23794
  acl_save_prefix="$prefix"
 
23795
  prefix="$acl_final_prefix"
 
23796
  acl_save_exec_prefix="$exec_prefix"
 
23797
  exec_prefix="$acl_final_exec_prefix"
 
23798
  eval x=\"$x\"
 
23799
  exec_prefix="$acl_save_exec_prefix"
 
23800
  prefix="$acl_save_prefix"
 
23801
 
 
23802
              case "$x" in
 
23803
                -L*)
 
23804
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
23805
                                    if test -n "$acl_shlibext"; then
 
23806
                    if test -f "$dir/$libname$shrext"; then
 
23807
                      found_dir="$dir"
 
23808
                      found_so="$dir/$libname$shrext"
 
23809
                    else
 
23810
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
23811
                        ver=`(cd "$dir" && \
 
23812
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
23813
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
23814
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
23815
                              | sed 1q ) 2>/dev/null`
 
23816
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
23817
                          found_dir="$dir"
 
23818
                          found_so="$dir/$libname$shrext.$ver"
 
23819
                        fi
 
23820
                      else
 
23821
                        eval library_names=\"$acl_library_names_spec\"
 
23822
                        for f in $library_names; do
 
23823
                          if test -f "$dir/$f"; then
 
23824
                            found_dir="$dir"
 
23825
                            found_so="$dir/$f"
 
23826
                            break
 
23827
                          fi
 
23828
                        done
 
23829
                      fi
 
23830
                    fi
 
23831
                  fi
 
23832
                                    if test "X$found_dir" = "X"; then
 
23833
                    if test -f "$dir/$libname.$acl_libext"; then
 
23834
                      found_dir="$dir"
 
23835
                      found_a="$dir/$libname.$acl_libext"
 
23836
                    fi
 
23837
                  fi
 
23838
                  if test "X$found_dir" != "X"; then
 
23839
                    if test -f "$dir/$libname.la"; then
 
23840
                      found_la="$dir/$libname.la"
 
23841
                    fi
 
23842
                  fi
 
23843
                  ;;
 
23844
              esac
 
23845
              if test "X$found_dir" != "X"; then
 
23846
                break
 
23847
              fi
 
23848
            done
 
23849
          fi
 
23850
          if test "X$found_dir" != "X"; then
 
23851
                        LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-L$found_dir -l$name"
 
23852
            if test "X$found_so" != "X"; then
 
23853
                                                        if test "$enable_rpath" = no \
 
23854
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
23855
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
23856
                                LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
 
23857
              else
 
23858
                                                                                haveit=
 
23859
                for x in $ltrpathdirs; do
 
23860
                  if test "X$x" = "X$found_dir"; then
 
23861
                    haveit=yes
 
23862
                    break
 
23863
                  fi
 
23864
                done
 
23865
                if test -z "$haveit"; then
 
23866
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
23867
                fi
 
23868
                                if test "$acl_hardcode_direct" = yes; then
 
23869
                                                      LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
 
23870
                else
 
23871
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
23872
                                                            LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
 
23873
                                                            haveit=
 
23874
                    for x in $rpathdirs; do
 
23875
                      if test "X$x" = "X$found_dir"; then
 
23876
                        haveit=yes
 
23877
                        break
 
23878
                      fi
 
23879
                    done
 
23880
                    if test -z "$haveit"; then
 
23881
                      rpathdirs="$rpathdirs $found_dir"
 
23882
                    fi
 
23883
                  else
 
23884
                                                                                haveit=
 
23885
                    for x in $LDFLAGS $LIBMEMCACHED; do
 
23886
 
 
23887
  acl_save_prefix="$prefix"
 
23888
  prefix="$acl_final_prefix"
 
23889
  acl_save_exec_prefix="$exec_prefix"
 
23890
  exec_prefix="$acl_final_exec_prefix"
 
23891
  eval x=\"$x\"
 
23892
  exec_prefix="$acl_save_exec_prefix"
 
23893
  prefix="$acl_save_prefix"
 
23894
 
 
23895
                      if test "X$x" = "X-L$found_dir"; then
 
23896
                        haveit=yes
 
23897
                        break
 
23898
                      fi
 
23899
                    done
 
23900
                    if test -z "$haveit"; then
 
23901
                      LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$found_dir"
 
23902
                    fi
 
23903
                    if test "$acl_hardcode_minus_L" != no; then
 
23904
                                                                                        LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
 
23905
                    else
 
23906
                                                                                                                                                                                LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-l$name"
 
23907
                    fi
 
23908
                  fi
 
23909
                fi
 
23910
              fi
 
23911
            else
 
23912
              if test "X$found_a" != "X"; then
 
23913
                                LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_a"
 
23914
              else
 
23915
                                                LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$found_dir -l$name"
 
23916
              fi
 
23917
            fi
 
23918
                        additional_includedir=
 
23919
            case "$found_dir" in
 
23920
              */$acl_libdirstem | */$acl_libdirstem/)
 
23921
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
23922
                if test "$name" = 'memcached'; then
 
23923
                  LIBMEMCACHED_PREFIX="$basedir"
 
23924
                fi
 
23925
                additional_includedir="$basedir/include"
 
23926
                ;;
 
23927
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
23928
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
23929
                if test "$name" = 'memcached'; then
 
23930
                  LIBMEMCACHED_PREFIX="$basedir"
 
23931
                fi
 
23932
                additional_includedir="$basedir/include"
 
23933
                ;;
 
23934
            esac
 
23935
            if test "X$additional_includedir" != "X"; then
 
23936
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
23937
                haveit=
 
23938
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
23939
                  if test -n "$GCC"; then
 
23940
                    case $host_os in
 
23941
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
23942
                    esac
 
23943
                  fi
 
23944
                fi
 
23945
                if test -z "$haveit"; then
 
23946
                  for x in $CPPFLAGS $INCMEMCACHED; do
 
23947
 
 
23948
  acl_save_prefix="$prefix"
 
23949
  prefix="$acl_final_prefix"
 
23950
  acl_save_exec_prefix="$exec_prefix"
 
23951
  exec_prefix="$acl_final_exec_prefix"
 
23952
  eval x=\"$x\"
 
23953
  exec_prefix="$acl_save_exec_prefix"
 
23954
  prefix="$acl_save_prefix"
 
23955
 
 
23956
                    if test "X$x" = "X${i_system}$additional_includedir"; then
 
23957
                      haveit=yes
 
23958
                      break
 
23959
                    fi
 
23960
                  done
 
23961
                  if test -z "$haveit"; then
 
23962
                    if test -d "$additional_includedir"; then
 
23963
                                            INCMEMCACHED="${INCMEMCACHED}${INCMEMCACHED:+ }${i_system}$additional_includedir"
 
23964
                    fi
 
23965
                  fi
 
23966
                fi
 
23967
              fi
 
23968
            fi
 
23969
                        if test -n "$found_la"; then
 
23970
                                                        save_libdir="$libdir"
 
23971
              case "$found_la" in
 
23972
                */* | *\\*) . "$found_la" ;;
 
23973
                *) . "./$found_la" ;;
 
23974
              esac
 
23975
              libdir="$save_libdir"
 
23976
                            for dep in $dependency_libs; do
 
23977
                case "$dep" in
 
23978
                  -L*)
 
23979
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
23980
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
23981
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
23982
                      haveit=
 
23983
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
23984
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
23985
                        if test -n "$GCC"; then
 
23986
                          case $host_os in
 
23987
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
23988
                          esac
 
23989
                        fi
 
23990
                      fi
 
23991
                      if test -z "$haveit"; then
 
23992
                        haveit=
 
23993
                        for x in $LDFLAGS $LIBMEMCACHED; do
 
23994
 
 
23995
  acl_save_prefix="$prefix"
 
23996
  prefix="$acl_final_prefix"
 
23997
  acl_save_exec_prefix="$exec_prefix"
 
23998
  exec_prefix="$acl_final_exec_prefix"
 
23999
  eval x=\"$x\"
 
24000
  exec_prefix="$acl_save_exec_prefix"
 
24001
  prefix="$acl_save_prefix"
 
24002
 
 
24003
                          if test "X$x" = "X-L$additional_libdir"; then
 
24004
                            haveit=yes
 
24005
                            break
 
24006
                          fi
 
24007
                        done
 
24008
                        if test -z "$haveit"; then
 
24009
                          if test -d "$additional_libdir"; then
 
24010
                                                        LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$additional_libdir"
 
24011
                          fi
 
24012
                        fi
 
24013
                        haveit=
 
24014
                        for x in $LDFLAGS $LTLIBMEMCACHED; do
 
24015
 
 
24016
  acl_save_prefix="$prefix"
 
24017
  prefix="$acl_final_prefix"
 
24018
  acl_save_exec_prefix="$exec_prefix"
 
24019
  exec_prefix="$acl_final_exec_prefix"
 
24020
  eval x=\"$x\"
 
24021
  exec_prefix="$acl_save_exec_prefix"
 
24022
  prefix="$acl_save_prefix"
 
24023
 
 
24024
                          if test "X$x" = "X-L$additional_libdir"; then
 
24025
                            haveit=yes
 
24026
                            break
 
24027
                          fi
 
24028
                        done
 
24029
                        if test -z "$haveit"; then
 
24030
                          if test -d "$additional_libdir"; then
 
24031
                                                        LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-L$additional_libdir"
 
24032
                          fi
 
24033
                        fi
 
24034
                      fi
 
24035
                    fi
 
24036
                    ;;
 
24037
                  -R*)
 
24038
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
24039
                    if test "$enable_rpath" != no; then
 
24040
                                                                  haveit=
 
24041
                      for x in $rpathdirs; do
 
24042
                        if test "X$x" = "X$dir"; then
 
24043
                          haveit=yes
 
24044
                          break
 
24045
                        fi
 
24046
                      done
 
24047
                      if test -z "$haveit"; then
 
24048
                        rpathdirs="$rpathdirs $dir"
 
24049
                      fi
 
24050
                                                                  haveit=
 
24051
                      for x in $ltrpathdirs; do
 
24052
                        if test "X$x" = "X$dir"; then
 
24053
                          haveit=yes
 
24054
                          break
 
24055
                        fi
 
24056
                      done
 
24057
                      if test -z "$haveit"; then
 
24058
                        ltrpathdirs="$ltrpathdirs $dir"
 
24059
                      fi
 
24060
                    fi
 
24061
                    ;;
 
24062
                  -l*)
 
24063
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
24064
                    ;;
 
24065
                  *.la)
 
24066
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
24067
                    ;;
 
24068
                  *)
 
24069
                                        LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$dep"
 
24070
                    LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }$dep"
 
24071
                    ;;
 
24072
                esac
 
24073
              done
 
24074
            fi
 
24075
          else
 
24076
                                                            LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-l$name"
 
24077
            LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-l$name"
 
24078
          fi
 
24079
        fi
 
24080
      fi
 
24081
    done
 
24082
  done
 
24083
  if test "X$rpathdirs" != "X"; then
 
24084
    if test -n "$acl_hardcode_libdir_separator"; then
 
24085
                        alldirs=
 
24086
      for found_dir in $rpathdirs; do
 
24087
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
24088
      done
 
24089
            acl_save_libdir="$libdir"
 
24090
      libdir="$alldirs"
 
24091
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24092
      libdir="$acl_save_libdir"
 
24093
      LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$flag"
 
24094
    else
 
24095
            for found_dir in $rpathdirs; do
 
24096
        acl_save_libdir="$libdir"
 
24097
        libdir="$found_dir"
 
24098
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24099
        libdir="$acl_save_libdir"
 
24100
        LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$flag"
 
24101
      done
 
24102
    fi
 
24103
  fi
 
24104
  if test "X$ltrpathdirs" != "X"; then
 
24105
            for found_dir in $ltrpathdirs; do
 
24106
      LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-R$found_dir"
 
24107
    done
 
24108
  fi
 
24109
 
 
24110
 
 
24111
 
 
24112
 
 
24113
 
 
24114
 
 
24115
 
 
24116
        ac_save_CPPFLAGS="$CPPFLAGS"
 
24117
 
 
24118
  for element in $INCMEMCACHED; do
 
24119
    haveit=
 
24120
    for x in $CPPFLAGS; do
 
24121
 
 
24122
  acl_save_prefix="$prefix"
 
24123
  prefix="$acl_final_prefix"
 
24124
  acl_save_exec_prefix="$exec_prefix"
 
24125
  exec_prefix="$acl_final_exec_prefix"
 
24126
  eval x=\"$x\"
 
24127
  exec_prefix="$acl_save_exec_prefix"
 
24128
  prefix="$acl_save_prefix"
 
24129
 
 
24130
      if test "X$x" = "X$element"; then
 
24131
        haveit=yes
 
24132
        break
 
24133
      fi
 
24134
    done
 
24135
    if test -z "$haveit"; then
 
24136
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
24137
    fi
 
24138
  done
 
24139
 
 
24140
 
 
24141
  { echo "$as_me:$LINENO: checking for libmemcached" >&5
 
24142
echo $ECHO_N "checking for libmemcached... $ECHO_C" >&6; }
 
24143
if test "${ac_cv_libmemcached+set}" = set; then
 
24144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24145
else
 
24146
 
 
24147
    ac_save_LIBS="$LIBS"
 
24148
    LIBS="$LIBS $LIBMEMCACHED"
 
24149
    cat >conftest.$ac_ext <<_ACEOF
 
24150
/* confdefs.h.  */
 
24151
_ACEOF
 
24152
cat confdefs.h >>conftest.$ac_ext
 
24153
cat >>conftest.$ac_ext <<_ACEOF
 
24154
/* end confdefs.h.  */
 
24155
 
 
24156
    #include <libmemcached/memcached.h>
 
24157
 
 
24158
int
 
24159
main ()
 
24160
{
 
24161
 
 
24162
    memcached_st memc;
 
24163
    memcached_dump_func *df;
 
24164
    memcached_version();
 
24165
 
 
24166
  ;
 
24167
  return 0;
 
24168
}
 
24169
_ACEOF
 
24170
rm -f conftest.$ac_objext conftest$ac_exeext
 
24171
if { (ac_try="$ac_link"
 
24172
case "(($ac_try" in
 
24173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24174
  *) ac_try_echo=$ac_try;;
 
24175
esac
 
24176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24177
  (eval "$ac_link") 2>conftest.er1
 
24178
  ac_status=$?
 
24179
  grep -v '^ *+' conftest.er1 >conftest.err
 
24180
  rm -f conftest.er1
 
24181
  cat conftest.err >&5
 
24182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24183
  (exit $ac_status); } && {
 
24184
         test -z "$ac_c_werror_flag" ||
 
24185
         test ! -s conftest.err
 
24186
       } && test -s conftest$ac_exeext &&
 
24187
       $as_test_x conftest$ac_exeext; then
 
24188
  ac_cv_libmemcached=yes
 
24189
else
 
24190
  echo "$as_me: failed program was:" >&5
 
24191
sed 's/^/| /' conftest.$ac_ext >&5
 
24192
 
 
24193
        ac_cv_libmemcached=no
 
24194
fi
 
24195
 
 
24196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24197
      conftest$ac_exeext conftest.$ac_ext
 
24198
    LIBS="$ac_save_LIBS"
 
24199
 
 
24200
fi
 
24201
{ echo "$as_me:$LINENO: result: $ac_cv_libmemcached" >&5
 
24202
echo "${ECHO_T}$ac_cv_libmemcached" >&6; }
 
24203
  if test "$ac_cv_libmemcached" = yes; then
 
24204
    HAVE_LIBMEMCACHED=yes
 
24205
 
 
24206
cat >>confdefs.h <<\_ACEOF
 
24207
#define HAVE_LIBMEMCACHED 1
 
24208
_ACEOF
 
24209
 
 
24210
    { echo "$as_me:$LINENO: checking how to link with libmemcached" >&5
 
24211
echo $ECHO_N "checking how to link with libmemcached... $ECHO_C" >&6; }
 
24212
    { echo "$as_me:$LINENO: result: $LIBMEMCACHED" >&5
 
24213
echo "${ECHO_T}$LIBMEMCACHED" >&6; }
 
24214
  else
 
24215
    HAVE_LIBMEMCACHED=no
 
24216
            CPPFLAGS="$ac_save_CPPFLAGS"
 
24217
    LIBMEMCACHED=
 
24218
    LTLIBMEMCACHED=
 
24219
    LIBMEMCACHED_PREFIX=
 
24220
  fi
 
24221
 
 
24222
 
 
24223
 
 
24224
 
 
24225
 
 
24226
 
 
24227
 
 
24228
 
 
24229
   if test "x${ac_cv_libmemcached}" = "xyes"; then
 
24230
  HAVE_LIBMEMCACHED_TRUE=
 
24231
  HAVE_LIBMEMCACHED_FALSE='#'
 
24232
else
 
24233
  HAVE_LIBMEMCACHED_TRUE='#'
 
24234
  HAVE_LIBMEMCACHED_FALSE=
 
24235
fi
 
24236
 
 
24237
 
 
24238
  if test "x${ac_cv_libmemcached}" = "xyes"; then
 
24239
 
 
24240
 
 
24241
 
 
24242
# Check whether --with-memcached was given.
 
24243
if test "${with_memcached+set}" = set; then
 
24244
  withval=$with_memcached; ac_cv_with_memcached="$withval"
 
24245
else
 
24246
  ac_cv_with_memcached=memcached
 
24247
fi
 
24248
 
 
24249
 
 
24250
  # just ignore the user if --without-memcached is passed.. it is
 
24251
  # only used by make test
 
24252
  if test "x$withval" = "xno"; then
 
24253
 
 
24254
    ac_cv_with_memcached=memcached
 
24255
    MEMCACHED_BINARY=memcached
 
24256
 
 
24257
else
 
24258
 
 
24259
    if test -f "$withval"; then
 
24260
 
 
24261
      ac_cv_with_memcached=$withval
 
24262
      MEMCACHED_BINARY=$withval
 
24263
 
 
24264
else
 
24265
 
 
24266
      # Extract the first word of "$ac_cv_with_memcached", so it can be a program name with args.
 
24267
set dummy $ac_cv_with_memcached; ac_word=$2
 
24268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
24270
if test "${ac_cv_path_MEMCACHED_BINARY+set}" = set; then
 
24271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24272
else
 
24273
  case $MEMCACHED_BINARY in
 
24274
  [\\/]* | ?:[\\/]*)
 
24275
  ac_cv_path_MEMCACHED_BINARY="$MEMCACHED_BINARY" # Let the user override the test with a path.
 
24276
  ;;
 
24277
  *)
 
24278
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24279
for as_dir in $PATH
 
24280
do
 
24281
  IFS=$as_save_IFS
 
24282
  test -z "$as_dir" && as_dir=.
 
24283
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24284
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24285
    ac_cv_path_MEMCACHED_BINARY="$as_dir/$ac_word$ac_exec_ext"
 
24286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24287
    break 2
 
24288
  fi
 
24289
done
 
24290
done
 
24291
IFS=$as_save_IFS
 
24292
 
 
24293
  test -z "$ac_cv_path_MEMCACHED_BINARY" && ac_cv_path_MEMCACHED_BINARY=""no""
 
24294
  ;;
 
24295
esac
 
24296
fi
 
24297
MEMCACHED_BINARY=$ac_cv_path_MEMCACHED_BINARY
 
24298
if test -n "$MEMCACHED_BINARY"; then
 
24299
  { echo "$as_me:$LINENO: result: $MEMCACHED_BINARY" >&5
 
24300
echo "${ECHO_T}$MEMCACHED_BINARY" >&6; }
 
24301
else
 
24302
  { echo "$as_me:$LINENO: result: no" >&5
 
24303
echo "${ECHO_T}no" >&6; }
 
24304
fi
 
24305
 
 
24306
 
 
24307
      if test "x$MEMCACHED_BINARY" = "xno"; then
 
24308
 
 
24309
        { { echo "$as_me:$LINENO: error: \"could not find memcached binary\"" >&5
 
24310
echo "$as_me: error: \"could not find memcached binary\"" >&2;}
 
24311
   { (exit 1); exit 1; }; }
 
24312
 
 
24313
fi
 
24314
 
 
24315
 
 
24316
fi
 
24317
 
 
24318
 
 
24319
fi
 
24320
 
 
24321
 
 
24322
cat >>confdefs.h <<_ACEOF
 
24323
#define MEMCACHED_BINARY "$MEMCACHED_BINARY"
 
24324
_ACEOF
 
24325
 
 
24326
 
 
24327
 
 
24328
fi
 
24329
 
 
24330
 
 
24331
 
 
24332
 
 
24333
 
 
24334
 
 
24335
 
 
24336
 
 
24337
 
 
24338
 
 
24339
 
 
24340
 
 
24341
 
 
24342
 
 
24343
 
 
24344
 
 
24345
 
 
24346
 
 
24347
 
 
24348
 
 
24349
 
 
24350
 
 
24351
 
 
24352
    use_additional=yes
 
24353
  if test "x$GCC" = "xyes" -a "x" = "xsystem"
 
24354
  then
 
24355
    i_system="-isystem "
 
24356
  else
 
24357
    i_system="-I"
 
24358
  fi
 
24359
 
 
24360
 
 
24361
  acl_save_prefix="$prefix"
 
24362
  prefix="$acl_final_prefix"
 
24363
  acl_save_exec_prefix="$exec_prefix"
 
24364
  exec_prefix="$acl_final_exec_prefix"
 
24365
 
 
24366
    eval additional_includedir=\"$includedir\"
 
24367
    eval additional_libdir=\"$libdir\"
 
24368
 
 
24369
  exec_prefix="$acl_save_exec_prefix"
 
24370
  prefix="$acl_save_prefix"
 
24371
 
 
24372
 
 
24373
# Check whether --with-libpq-prefix was given.
 
24374
if test "${with_libpq_prefix+set}" = set; then
 
24375
  withval=$with_libpq_prefix;
 
24376
    if test "X$withval" = "Xno"; then
 
24377
      use_additional=no
 
24378
    else
 
24379
      if test "X$withval" = "X"; then
 
24380
 
 
24381
  acl_save_prefix="$prefix"
 
24382
  prefix="$acl_final_prefix"
 
24383
  acl_save_exec_prefix="$exec_prefix"
 
24384
  exec_prefix="$acl_final_exec_prefix"
 
24385
 
 
24386
          eval additional_includedir=\"$includedir\"
 
24387
          eval additional_libdir=\"$libdir\"
 
24388
 
 
24389
  exec_prefix="$acl_save_exec_prefix"
 
24390
  prefix="$acl_save_prefix"
 
24391
 
 
24392
      else
 
24393
        additional_includedir="$withval/include"
 
24394
        additional_libdir="$withval/$acl_libdirstem"
 
24395
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
24396
           && ! test -d "$withval/$acl_libdirstem"; then
 
24397
          additional_libdir="$withval/$acl_libdirstem2"
 
24398
        fi
 
24399
      fi
 
24400
    fi
 
24401
 
 
24402
fi
 
24403
 
 
24404
      LIBPQ=
 
24405
  LTLIBPQ=
 
24406
  INCPQ=
 
24407
  LIBPQ_PREFIX=
 
24408
  rpathdirs=
 
24409
  ltrpathdirs=
 
24410
  names_already_handled=
 
24411
  names_next_round='pq '
 
24412
  while test -n "$names_next_round"; do
 
24413
    names_this_round="$names_next_round"
 
24414
    names_next_round=
 
24415
    for name in $names_this_round; do
 
24416
      already_handled=
 
24417
      for n in $names_already_handled; do
 
24418
        if test "$n" = "$name"; then
 
24419
          already_handled=yes
 
24420
          break
 
24421
        fi
 
24422
      done
 
24423
      if test -z "$already_handled"; then
 
24424
        names_already_handled="$names_already_handled $name"
 
24425
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
24426
        eval value=\"\$HAVE_LIB$uppername\"
 
24427
        if test -n "$value"; then
 
24428
          if test "$value" = yes; then
 
24429
            eval value=\"\$LIB$uppername\"
 
24430
            test -z "$value" || LIBPQ="${LIBPQ}${LIBPQ:+ }$value"
 
24431
            eval value=\"\$LTLIB$uppername\"
 
24432
            test -z "$value" || LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }$value"
 
24433
          else
 
24434
                                    :
 
24435
          fi
 
24436
        else
 
24437
                              found_dir=
 
24438
          found_la=
 
24439
          found_so=
 
24440
          found_a=
 
24441
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
24442
          if test -n "$acl_shlibext"; then
 
24443
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
24444
          else
 
24445
            shrext=
 
24446
          fi
 
24447
          if test $use_additional = yes; then
 
24448
            dir="$additional_libdir"
 
24449
                                    if test -n "$acl_shlibext"; then
 
24450
              if test -f "$dir/$libname$shrext"; then
 
24451
                found_dir="$dir"
 
24452
                found_so="$dir/$libname$shrext"
 
24453
              else
 
24454
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
24455
                  ver=`(cd "$dir" && \
 
24456
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
24457
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
24458
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
24459
                        | sed 1q ) 2>/dev/null`
 
24460
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
24461
                    found_dir="$dir"
 
24462
                    found_so="$dir/$libname$shrext.$ver"
 
24463
                  fi
 
24464
                else
 
24465
                  eval library_names=\"$acl_library_names_spec\"
 
24466
                  for f in $library_names; do
 
24467
                    if test -f "$dir/$f"; then
 
24468
                      found_dir="$dir"
 
24469
                      found_so="$dir/$f"
 
24470
                      break
 
24471
                    fi
 
24472
                  done
 
24473
                fi
 
24474
              fi
 
24475
            fi
 
24476
                        if test "X$found_dir" = "X"; then
 
24477
              if test -f "$dir/$libname.$acl_libext"; then
 
24478
                found_dir="$dir"
 
24479
                found_a="$dir/$libname.$acl_libext"
 
24480
              fi
 
24481
            fi
 
24482
            if test "X$found_dir" != "X"; then
 
24483
              if test -f "$dir/$libname.la"; then
 
24484
                found_la="$dir/$libname.la"
 
24485
              fi
 
24486
            fi
 
24487
          fi
 
24488
          if test "X$found_dir" = "X"; then
 
24489
            for x in $LDFLAGS $LTLIBPQ; do
 
24490
 
 
24491
  acl_save_prefix="$prefix"
 
24492
  prefix="$acl_final_prefix"
 
24493
  acl_save_exec_prefix="$exec_prefix"
 
24494
  exec_prefix="$acl_final_exec_prefix"
 
24495
  eval x=\"$x\"
 
24496
  exec_prefix="$acl_save_exec_prefix"
 
24497
  prefix="$acl_save_prefix"
 
24498
 
 
24499
              case "$x" in
 
24500
                -L*)
 
24501
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
24502
                                    if test -n "$acl_shlibext"; then
 
24503
                    if test -f "$dir/$libname$shrext"; then
 
24504
                      found_dir="$dir"
 
24505
                      found_so="$dir/$libname$shrext"
 
24506
                    else
 
24507
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
24508
                        ver=`(cd "$dir" && \
 
24509
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
24510
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
24511
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
24512
                              | sed 1q ) 2>/dev/null`
 
24513
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
24514
                          found_dir="$dir"
 
24515
                          found_so="$dir/$libname$shrext.$ver"
 
24516
                        fi
 
24517
                      else
 
24518
                        eval library_names=\"$acl_library_names_spec\"
 
24519
                        for f in $library_names; do
 
24520
                          if test -f "$dir/$f"; then
 
24521
                            found_dir="$dir"
 
24522
                            found_so="$dir/$f"
 
24523
                            break
 
24524
                          fi
 
24525
                        done
 
24526
                      fi
 
24527
                    fi
 
24528
                  fi
 
24529
                                    if test "X$found_dir" = "X"; then
 
24530
                    if test -f "$dir/$libname.$acl_libext"; then
 
24531
                      found_dir="$dir"
 
24532
                      found_a="$dir/$libname.$acl_libext"
 
24533
                    fi
 
24534
                  fi
 
24535
                  if test "X$found_dir" != "X"; then
 
24536
                    if test -f "$dir/$libname.la"; then
 
24537
                      found_la="$dir/$libname.la"
 
24538
                    fi
 
24539
                  fi
 
24540
                  ;;
 
24541
              esac
 
24542
              if test "X$found_dir" != "X"; then
 
24543
                break
 
24544
              fi
 
24545
            done
 
24546
          fi
 
24547
          if test "X$found_dir" != "X"; then
 
24548
                        LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-L$found_dir -l$name"
 
24549
            if test "X$found_so" != "X"; then
 
24550
                                                        if test "$enable_rpath" = no \
 
24551
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
24552
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
24553
                                LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
 
24554
              else
 
24555
                                                                                haveit=
 
24556
                for x in $ltrpathdirs; do
 
24557
                  if test "X$x" = "X$found_dir"; then
 
24558
                    haveit=yes
 
24559
                    break
 
24560
                  fi
 
24561
                done
 
24562
                if test -z "$haveit"; then
 
24563
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
24564
                fi
 
24565
                                if test "$acl_hardcode_direct" = yes; then
 
24566
                                                      LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
 
24567
                else
 
24568
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
24569
                                                            LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
 
24570
                                                            haveit=
 
24571
                    for x in $rpathdirs; do
 
24572
                      if test "X$x" = "X$found_dir"; then
 
24573
                        haveit=yes
 
24574
                        break
 
24575
                      fi
 
24576
                    done
 
24577
                    if test -z "$haveit"; then
 
24578
                      rpathdirs="$rpathdirs $found_dir"
 
24579
                    fi
 
24580
                  else
 
24581
                                                                                haveit=
 
24582
                    for x in $LDFLAGS $LIBPQ; do
 
24583
 
 
24584
  acl_save_prefix="$prefix"
 
24585
  prefix="$acl_final_prefix"
 
24586
  acl_save_exec_prefix="$exec_prefix"
 
24587
  exec_prefix="$acl_final_exec_prefix"
 
24588
  eval x=\"$x\"
 
24589
  exec_prefix="$acl_save_exec_prefix"
 
24590
  prefix="$acl_save_prefix"
 
24591
 
 
24592
                      if test "X$x" = "X-L$found_dir"; then
 
24593
                        haveit=yes
 
24594
                        break
 
24595
                      fi
 
24596
                    done
 
24597
                    if test -z "$haveit"; then
 
24598
                      LIBPQ="${LIBPQ}${LIBPQ:+ }-L$found_dir"
 
24599
                    fi
 
24600
                    if test "$acl_hardcode_minus_L" != no; then
 
24601
                                                                                        LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
 
24602
                    else
 
24603
                                                                                                                                                                                LIBPQ="${LIBPQ}${LIBPQ:+ }-l$name"
 
24604
                    fi
 
24605
                  fi
 
24606
                fi
 
24607
              fi
 
24608
            else
 
24609
              if test "X$found_a" != "X"; then
 
24610
                                LIBPQ="${LIBPQ}${LIBPQ:+ }$found_a"
 
24611
              else
 
24612
                                                LIBPQ="${LIBPQ}${LIBPQ:+ }-L$found_dir -l$name"
 
24613
              fi
 
24614
            fi
 
24615
                        additional_includedir=
 
24616
            case "$found_dir" in
 
24617
              */$acl_libdirstem | */$acl_libdirstem/)
 
24618
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
24619
                if test "$name" = 'pq'; then
 
24620
                  LIBPQ_PREFIX="$basedir"
 
24621
                fi
 
24622
                additional_includedir="$basedir/include"
 
24623
                ;;
 
24624
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
24625
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
24626
                if test "$name" = 'pq'; then
 
24627
                  LIBPQ_PREFIX="$basedir"
 
24628
                fi
 
24629
                additional_includedir="$basedir/include"
 
24630
                ;;
 
24631
            esac
 
24632
            if test "X$additional_includedir" != "X"; then
 
24633
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
24634
                haveit=
 
24635
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
24636
                  if test -n "$GCC"; then
 
24637
                    case $host_os in
 
24638
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
24639
                    esac
 
24640
                  fi
 
24641
                fi
 
24642
                if test -z "$haveit"; then
 
24643
                  for x in $CPPFLAGS $INCPQ; do
 
24644
 
 
24645
  acl_save_prefix="$prefix"
 
24646
  prefix="$acl_final_prefix"
 
24647
  acl_save_exec_prefix="$exec_prefix"
 
24648
  exec_prefix="$acl_final_exec_prefix"
 
24649
  eval x=\"$x\"
 
24650
  exec_prefix="$acl_save_exec_prefix"
 
24651
  prefix="$acl_save_prefix"
 
24652
 
 
24653
                    if test "X$x" = "X${i_system}$additional_includedir"; then
 
24654
                      haveit=yes
 
24655
                      break
 
24656
                    fi
 
24657
                  done
 
24658
                  if test -z "$haveit"; then
 
24659
                    if test -d "$additional_includedir"; then
 
24660
                                            INCPQ="${INCPQ}${INCPQ:+ }${i_system}$additional_includedir"
 
24661
                    fi
 
24662
                  fi
 
24663
                fi
 
24664
              fi
 
24665
            fi
 
24666
                        if test -n "$found_la"; then
 
24667
                                                        save_libdir="$libdir"
 
24668
              case "$found_la" in
 
24669
                */* | *\\*) . "$found_la" ;;
 
24670
                *) . "./$found_la" ;;
 
24671
              esac
 
24672
              libdir="$save_libdir"
 
24673
                            for dep in $dependency_libs; do
 
24674
                case "$dep" in
 
24675
                  -L*)
 
24676
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
24677
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
24678
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
24679
                      haveit=
 
24680
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
24681
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
24682
                        if test -n "$GCC"; then
 
24683
                          case $host_os in
 
24684
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
24685
                          esac
 
24686
                        fi
 
24687
                      fi
 
24688
                      if test -z "$haveit"; then
 
24689
                        haveit=
 
24690
                        for x in $LDFLAGS $LIBPQ; do
 
24691
 
 
24692
  acl_save_prefix="$prefix"
 
24693
  prefix="$acl_final_prefix"
 
24694
  acl_save_exec_prefix="$exec_prefix"
 
24695
  exec_prefix="$acl_final_exec_prefix"
 
24696
  eval x=\"$x\"
 
24697
  exec_prefix="$acl_save_exec_prefix"
 
24698
  prefix="$acl_save_prefix"
 
24699
 
 
24700
                          if test "X$x" = "X-L$additional_libdir"; then
 
24701
                            haveit=yes
 
24702
                            break
 
24703
                          fi
 
24704
                        done
 
24705
                        if test -z "$haveit"; then
 
24706
                          if test -d "$additional_libdir"; then
 
24707
                                                        LIBPQ="${LIBPQ}${LIBPQ:+ }-L$additional_libdir"
 
24708
                          fi
 
24709
                        fi
 
24710
                        haveit=
 
24711
                        for x in $LDFLAGS $LTLIBPQ; do
 
24712
 
 
24713
  acl_save_prefix="$prefix"
 
24714
  prefix="$acl_final_prefix"
 
24715
  acl_save_exec_prefix="$exec_prefix"
 
24716
  exec_prefix="$acl_final_exec_prefix"
 
24717
  eval x=\"$x\"
 
24718
  exec_prefix="$acl_save_exec_prefix"
 
24719
  prefix="$acl_save_prefix"
 
24720
 
 
24721
                          if test "X$x" = "X-L$additional_libdir"; then
 
24722
                            haveit=yes
 
24723
                            break
 
24724
                          fi
 
24725
                        done
 
24726
                        if test -z "$haveit"; then
 
24727
                          if test -d "$additional_libdir"; then
 
24728
                                                        LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-L$additional_libdir"
 
24729
                          fi
 
24730
                        fi
 
24731
                      fi
 
24732
                    fi
 
24733
                    ;;
 
24734
                  -R*)
 
24735
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
24736
                    if test "$enable_rpath" != no; then
 
24737
                                                                  haveit=
 
24738
                      for x in $rpathdirs; do
 
24739
                        if test "X$x" = "X$dir"; then
 
24740
                          haveit=yes
 
24741
                          break
 
24742
                        fi
 
24743
                      done
 
24744
                      if test -z "$haveit"; then
 
24745
                        rpathdirs="$rpathdirs $dir"
 
24746
                      fi
 
24747
                                                                  haveit=
 
24748
                      for x in $ltrpathdirs; do
 
24749
                        if test "X$x" = "X$dir"; then
 
24750
                          haveit=yes
 
24751
                          break
 
24752
                        fi
 
24753
                      done
 
24754
                      if test -z "$haveit"; then
 
24755
                        ltrpathdirs="$ltrpathdirs $dir"
 
24756
                      fi
 
24757
                    fi
 
24758
                    ;;
 
24759
                  -l*)
 
24760
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
24761
                    ;;
 
24762
                  *.la)
 
24763
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
24764
                    ;;
 
24765
                  *)
 
24766
                                        LIBPQ="${LIBPQ}${LIBPQ:+ }$dep"
 
24767
                    LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }$dep"
 
24768
                    ;;
 
24769
                esac
 
24770
              done
 
24771
            fi
 
24772
          else
 
24773
                                                            LIBPQ="${LIBPQ}${LIBPQ:+ }-l$name"
 
24774
            LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-l$name"
 
24775
          fi
 
24776
        fi
 
24777
      fi
 
24778
    done
 
24779
  done
 
24780
  if test "X$rpathdirs" != "X"; then
 
24781
    if test -n "$acl_hardcode_libdir_separator"; then
 
24782
                        alldirs=
 
24783
      for found_dir in $rpathdirs; do
 
24784
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
24785
      done
 
24786
            acl_save_libdir="$libdir"
 
24787
      libdir="$alldirs"
 
24788
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24789
      libdir="$acl_save_libdir"
 
24790
      LIBPQ="${LIBPQ}${LIBPQ:+ }$flag"
 
24791
    else
 
24792
            for found_dir in $rpathdirs; do
 
24793
        acl_save_libdir="$libdir"
 
24794
        libdir="$found_dir"
 
24795
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24796
        libdir="$acl_save_libdir"
 
24797
        LIBPQ="${LIBPQ}${LIBPQ:+ }$flag"
 
24798
      done
 
24799
    fi
 
24800
  fi
 
24801
  if test "X$ltrpathdirs" != "X"; then
 
24802
            for found_dir in $ltrpathdirs; do
 
24803
      LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-R$found_dir"
 
24804
    done
 
24805
  fi
 
24806
 
 
24807
 
 
24808
 
 
24809
 
 
24810
 
 
24811
 
 
24812
 
 
24813
        ac_save_CPPFLAGS="$CPPFLAGS"
 
24814
 
 
24815
  for element in $INCPQ; do
 
24816
    haveit=
 
24817
    for x in $CPPFLAGS; do
 
24818
 
 
24819
  acl_save_prefix="$prefix"
 
24820
  prefix="$acl_final_prefix"
 
24821
  acl_save_exec_prefix="$exec_prefix"
 
24822
  exec_prefix="$acl_final_exec_prefix"
 
24823
  eval x=\"$x\"
 
24824
  exec_prefix="$acl_save_exec_prefix"
 
24825
  prefix="$acl_save_prefix"
 
24826
 
 
24827
      if test "X$x" = "X$element"; then
 
24828
        haveit=yes
 
24829
        break
 
24830
      fi
 
24831
    done
 
24832
    if test -z "$haveit"; then
 
24833
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
24834
    fi
 
24835
  done
 
24836
 
 
24837
 
 
24838
  { echo "$as_me:$LINENO: checking for libpq" >&5
 
24839
echo $ECHO_N "checking for libpq... $ECHO_C" >&6; }
 
24840
if test "${ac_cv_libpq+set}" = set; then
 
24841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24842
else
 
24843
 
 
24844
    ac_save_LIBS="$LIBS"
 
24845
    LIBS="$LIBS $LIBPQ"
 
24846
    cat >conftest.$ac_ext <<_ACEOF
 
24847
/* confdefs.h.  */
 
24848
_ACEOF
 
24849
cat confdefs.h >>conftest.$ac_ext
 
24850
cat >>conftest.$ac_ext <<_ACEOF
 
24851
/* end confdefs.h.  */
 
24852
 
 
24853
    #include <libpq-fe.h>
 
24854
 
 
24855
int
 
24856
main ()
 
24857
{
 
24858
 
 
24859
    PGconn *conn;
 
24860
    conn = PQconnectdb(NULL);
 
24861
 
 
24862
  ;
 
24863
  return 0;
 
24864
}
 
24865
_ACEOF
 
24866
rm -f conftest.$ac_objext conftest$ac_exeext
 
24867
if { (ac_try="$ac_link"
 
24868
case "(($ac_try" in
 
24869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24870
  *) ac_try_echo=$ac_try;;
 
24871
esac
 
24872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24873
  (eval "$ac_link") 2>conftest.er1
 
24874
  ac_status=$?
 
24875
  grep -v '^ *+' conftest.er1 >conftest.err
 
24876
  rm -f conftest.er1
 
24877
  cat conftest.err >&5
 
24878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24879
  (exit $ac_status); } && {
 
24880
         test -z "$ac_c_werror_flag" ||
 
24881
         test ! -s conftest.err
 
24882
       } && test -s conftest$ac_exeext &&
 
24883
       $as_test_x conftest$ac_exeext; then
 
24884
  ac_cv_libpq=yes
 
24885
else
 
24886
  echo "$as_me: failed program was:" >&5
 
24887
sed 's/^/| /' conftest.$ac_ext >&5
 
24888
 
 
24889
        ac_cv_libpq=no
 
24890
fi
 
24891
 
 
24892
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24893
      conftest$ac_exeext conftest.$ac_ext
 
24894
    LIBS="$ac_save_LIBS"
 
24895
 
 
24896
fi
 
24897
{ echo "$as_me:$LINENO: result: $ac_cv_libpq" >&5
 
24898
echo "${ECHO_T}$ac_cv_libpq" >&6; }
 
24899
  if test "$ac_cv_libpq" = yes; then
 
24900
    HAVE_LIBPQ=yes
 
24901
 
 
24902
cat >>confdefs.h <<\_ACEOF
 
24903
#define HAVE_LIBPQ 1
 
24904
_ACEOF
 
24905
 
 
24906
    { echo "$as_me:$LINENO: checking how to link with libpq" >&5
 
24907
echo $ECHO_N "checking how to link with libpq... $ECHO_C" >&6; }
 
24908
    { echo "$as_me:$LINENO: result: $LIBPQ" >&5
 
24909
echo "${ECHO_T}$LIBPQ" >&6; }
 
24910
  else
 
24911
    HAVE_LIBPQ=no
 
24912
            CPPFLAGS="$ac_save_CPPFLAGS"
 
24913
    LIBPQ=
 
24914
    LTLIBPQ=
 
24915
    LIBPQ_PREFIX=
 
24916
  fi
 
24917
 
 
24918
 
 
24919
 
 
24920
 
 
24921
 
 
24922
 
 
24923
 
 
24924
 
 
24925
   if test "x${ac_cv_libpq}" = "xyes"; then
 
24926
  HAVE_LIBPQ_TRUE=
 
24927
  HAVE_LIBPQ_FALSE='#'
 
24928
else
 
24929
  HAVE_LIBPQ_TRUE='#'
 
24930
  HAVE_LIBPQ_FALSE=
 
24931
fi
 
24932
 
 
24933
 
 
24934
 
 
24935
 
 
24936
 
 
24937
 
 
24938
 
 
24939
 
 
24940
 
 
24941
 
 
24942
 
 
24943
 
 
24944
 
 
24945
for ac_header in errno.h fcntl.h getopt.h netinet/tcp.h pwd.h signal.h
 
24946
do
 
24947
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24948
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24949
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24950
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24951
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24953
fi
 
24954
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24955
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24956
echo "${ECHO_T}$ac_res" >&6; }
 
24957
else
 
24958
  # Is the header compilable?
 
24959
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24960
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24961
cat >conftest.$ac_ext <<_ACEOF
 
24962
/* confdefs.h.  */
 
24963
_ACEOF
 
24964
cat confdefs.h >>conftest.$ac_ext
 
24965
cat >>conftest.$ac_ext <<_ACEOF
 
24966
/* end confdefs.h.  */
 
24967
$ac_includes_default
 
24968
#include <$ac_header>
 
24969
_ACEOF
 
24970
rm -f conftest.$ac_objext
 
24971
if { (ac_try="$ac_compile"
 
24972
case "(($ac_try" in
 
24973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24974
  *) ac_try_echo=$ac_try;;
 
24975
esac
 
24976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24977
  (eval "$ac_compile") 2>conftest.er1
 
24978
  ac_status=$?
 
24979
  grep -v '^ *+' conftest.er1 >conftest.err
 
24980
  rm -f conftest.er1
 
24981
  cat conftest.err >&5
 
24982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24983
  (exit $ac_status); } && {
 
24984
         test -z "$ac_c_werror_flag" ||
 
24985
         test ! -s conftest.err
 
24986
       } && test -s conftest.$ac_objext; then
 
24987
  ac_header_compiler=yes
 
24988
else
 
24989
  echo "$as_me: failed program was:" >&5
 
24990
sed 's/^/| /' conftest.$ac_ext >&5
 
24991
 
 
24992
        ac_header_compiler=no
 
24993
fi
 
24994
 
 
24995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24996
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24997
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24998
 
 
24999
# Is the header present?
 
25000
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25001
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25002
cat >conftest.$ac_ext <<_ACEOF
 
25003
/* confdefs.h.  */
 
25004
_ACEOF
 
25005
cat confdefs.h >>conftest.$ac_ext
 
25006
cat >>conftest.$ac_ext <<_ACEOF
 
25007
/* end confdefs.h.  */
 
25008
#include <$ac_header>
 
25009
_ACEOF
 
25010
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25011
case "(($ac_try" in
 
25012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25013
  *) ac_try_echo=$ac_try;;
 
25014
esac
 
25015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25016
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25017
  ac_status=$?
 
25018
  grep -v '^ *+' conftest.er1 >conftest.err
 
25019
  rm -f conftest.er1
 
25020
  cat conftest.err >&5
 
25021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25022
  (exit $ac_status); } >/dev/null && {
 
25023
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25024
         test ! -s conftest.err
 
25025
       }; then
 
25026
  ac_header_preproc=yes
 
25027
else
 
25028
  echo "$as_me: failed program was:" >&5
 
25029
sed 's/^/| /' conftest.$ac_ext >&5
 
25030
 
 
25031
  ac_header_preproc=no
 
25032
fi
 
25033
 
 
25034
rm -f conftest.err conftest.$ac_ext
 
25035
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25036
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25037
 
 
25038
# So?  What about this header?
 
25039
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25040
  yes:no: )
 
25041
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25042
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25043
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25044
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25045
    ac_header_preproc=yes
 
25046
    ;;
 
25047
  no:yes:* )
 
25048
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25049
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25050
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25051
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25052
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25053
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25054
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25055
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25056
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25057
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25058
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25059
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25060
    ( cat <<\_ASBOX
 
25061
## --------------------------------------------- ##
 
25062
## Report this to https://launchpad.net/gearmand ##
 
25063
## --------------------------------------------- ##
 
25064
_ASBOX
 
25065
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25066
    ;;
 
25067
esac
 
25068
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25070
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25072
else
 
25073
  eval "$as_ac_Header=\$ac_header_preproc"
 
25074
fi
 
25075
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25076
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25077
echo "${ECHO_T}$ac_res" >&6; }
 
25078
 
 
25079
fi
 
25080
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25081
  cat >>confdefs.h <<_ACEOF
 
25082
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25083
_ACEOF
 
25084
 
 
25085
fi
 
25086
 
 
25087
done
 
25088
 
 
25089
 
 
25090
 
 
25091
 
 
25092
 
 
25093
 
 
25094
for ac_header in stdarg.h stddef.h stdio.h stdlib.h string.h
 
25095
do
 
25096
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25098
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25099
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25102
fi
 
25103
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25104
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25105
echo "${ECHO_T}$ac_res" >&6; }
 
25106
else
 
25107
  # Is the header compilable?
 
25108
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25109
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
25110
cat >conftest.$ac_ext <<_ACEOF
 
25111
/* confdefs.h.  */
 
25112
_ACEOF
 
25113
cat confdefs.h >>conftest.$ac_ext
 
25114
cat >>conftest.$ac_ext <<_ACEOF
 
25115
/* end confdefs.h.  */
 
25116
$ac_includes_default
 
25117
#include <$ac_header>
 
25118
_ACEOF
 
25119
rm -f conftest.$ac_objext
 
25120
if { (ac_try="$ac_compile"
 
25121
case "(($ac_try" in
 
25122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25123
  *) ac_try_echo=$ac_try;;
 
25124
esac
 
25125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25126
  (eval "$ac_compile") 2>conftest.er1
 
25127
  ac_status=$?
 
25128
  grep -v '^ *+' conftest.er1 >conftest.err
 
25129
  rm -f conftest.er1
 
25130
  cat conftest.err >&5
 
25131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25132
  (exit $ac_status); } && {
 
25133
         test -z "$ac_c_werror_flag" ||
 
25134
         test ! -s conftest.err
 
25135
       } && test -s conftest.$ac_objext; then
 
25136
  ac_header_compiler=yes
 
25137
else
 
25138
  echo "$as_me: failed program was:" >&5
 
25139
sed 's/^/| /' conftest.$ac_ext >&5
 
25140
 
 
25141
        ac_header_compiler=no
 
25142
fi
 
25143
 
 
25144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25145
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25146
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
25147
 
 
25148
# Is the header present?
 
25149
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25150
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25151
cat >conftest.$ac_ext <<_ACEOF
 
25152
/* confdefs.h.  */
 
25153
_ACEOF
 
25154
cat confdefs.h >>conftest.$ac_ext
 
25155
cat >>conftest.$ac_ext <<_ACEOF
 
25156
/* end confdefs.h.  */
 
25157
#include <$ac_header>
 
25158
_ACEOF
 
25159
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25160
case "(($ac_try" in
 
25161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25162
  *) ac_try_echo=$ac_try;;
 
25163
esac
 
25164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25165
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25166
  ac_status=$?
 
25167
  grep -v '^ *+' conftest.er1 >conftest.err
 
25168
  rm -f conftest.er1
 
25169
  cat conftest.err >&5
 
25170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25171
  (exit $ac_status); } >/dev/null && {
 
25172
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25173
         test ! -s conftest.err
 
25174
       }; then
 
25175
  ac_header_preproc=yes
 
25176
else
 
25177
  echo "$as_me: failed program was:" >&5
 
25178
sed 's/^/| /' conftest.$ac_ext >&5
 
25179
 
 
25180
  ac_header_preproc=no
 
25181
fi
 
25182
 
 
25183
rm -f conftest.err conftest.$ac_ext
 
25184
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25185
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25186
 
 
25187
# So?  What about this header?
 
25188
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25189
  yes:no: )
 
25190
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25191
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25192
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25193
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25194
    ac_header_preproc=yes
 
25195
    ;;
 
25196
  no:yes:* )
 
25197
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25198
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25199
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25200
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25201
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25202
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25203
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25204
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25205
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25206
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25207
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25208
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25209
    ( cat <<\_ASBOX
 
25210
## --------------------------------------------- ##
 
25211
## Report this to https://launchpad.net/gearmand ##
 
25212
## --------------------------------------------- ##
 
25213
_ASBOX
 
25214
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25215
    ;;
 
25216
esac
 
25217
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25218
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25219
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25221
else
 
25222
  eval "$as_ac_Header=\$ac_header_preproc"
 
25223
fi
 
25224
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25225
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25226
echo "${ECHO_T}$ac_res" >&6; }
 
25227
 
 
25228
fi
 
25229
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25230
  cat >>confdefs.h <<_ACEOF
 
25231
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25232
_ACEOF
 
25233
 
 
25234
fi
 
25235
 
 
25236
done
 
25237
 
 
25238
 
 
25239
 
 
25240
for ac_header in sys/resource.h sys/stat.h
 
25241
do
 
25242
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25244
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25246
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25248
fi
 
25249
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25250
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25251
echo "${ECHO_T}$ac_res" >&6; }
 
25252
else
 
25253
  # Is the header compilable?
 
25254
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25255
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
25256
cat >conftest.$ac_ext <<_ACEOF
 
25257
/* confdefs.h.  */
 
25258
_ACEOF
 
25259
cat confdefs.h >>conftest.$ac_ext
 
25260
cat >>conftest.$ac_ext <<_ACEOF
 
25261
/* end confdefs.h.  */
 
25262
$ac_includes_default
 
25263
#include <$ac_header>
 
25264
_ACEOF
 
25265
rm -f conftest.$ac_objext
 
25266
if { (ac_try="$ac_compile"
 
25267
case "(($ac_try" in
 
25268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25269
  *) ac_try_echo=$ac_try;;
 
25270
esac
 
25271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25272
  (eval "$ac_compile") 2>conftest.er1
 
25273
  ac_status=$?
 
25274
  grep -v '^ *+' conftest.er1 >conftest.err
 
25275
  rm -f conftest.er1
 
25276
  cat conftest.err >&5
 
25277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25278
  (exit $ac_status); } && {
 
25279
         test -z "$ac_c_werror_flag" ||
 
25280
         test ! -s conftest.err
 
25281
       } && test -s conftest.$ac_objext; then
 
25282
  ac_header_compiler=yes
 
25283
else
 
25284
  echo "$as_me: failed program was:" >&5
 
25285
sed 's/^/| /' conftest.$ac_ext >&5
 
25286
 
 
25287
        ac_header_compiler=no
 
25288
fi
 
25289
 
 
25290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25291
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25292
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
25293
 
 
25294
# Is the header present?
 
25295
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25296
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25297
cat >conftest.$ac_ext <<_ACEOF
 
25298
/* confdefs.h.  */
 
25299
_ACEOF
 
25300
cat confdefs.h >>conftest.$ac_ext
 
25301
cat >>conftest.$ac_ext <<_ACEOF
 
25302
/* end confdefs.h.  */
 
25303
#include <$ac_header>
 
25304
_ACEOF
 
25305
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25306
case "(($ac_try" in
 
25307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25308
  *) ac_try_echo=$ac_try;;
 
25309
esac
 
25310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25311
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25312
  ac_status=$?
 
25313
  grep -v '^ *+' conftest.er1 >conftest.err
 
25314
  rm -f conftest.er1
 
25315
  cat conftest.err >&5
 
25316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25317
  (exit $ac_status); } >/dev/null && {
 
25318
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25319
         test ! -s conftest.err
 
25320
       }; then
 
25321
  ac_header_preproc=yes
 
25322
else
 
25323
  echo "$as_me: failed program was:" >&5
 
25324
sed 's/^/| /' conftest.$ac_ext >&5
 
25325
 
 
25326
  ac_header_preproc=no
 
25327
fi
 
25328
 
 
25329
rm -f conftest.err conftest.$ac_ext
 
25330
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25331
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25332
 
 
25333
# So?  What about this header?
 
25334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25335
  yes:no: )
 
25336
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25337
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25338
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25339
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25340
    ac_header_preproc=yes
 
25341
    ;;
 
25342
  no:yes:* )
 
25343
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25344
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25345
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25346
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25347
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25348
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25349
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25350
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25351
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25352
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25353
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25354
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25355
    ( cat <<\_ASBOX
 
25356
## --------------------------------------------- ##
 
25357
## Report this to https://launchpad.net/gearmand ##
 
25358
## --------------------------------------------- ##
 
25359
_ASBOX
 
25360
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25361
    ;;
 
25362
esac
 
25363
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25364
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25365
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25367
else
 
25368
  eval "$as_ac_Header=\$ac_header_preproc"
 
25369
fi
 
25370
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25371
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25372
echo "${ECHO_T}$ac_res" >&6; }
 
25373
 
 
25374
fi
 
25375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25376
  cat >>confdefs.h <<_ACEOF
 
25377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25378
_ACEOF
 
25379
 
 
25380
fi
 
25381
 
 
25382
done
 
25383
 
 
25384
 
 
25385
 
 
25386
 
 
25387
 
 
25388
 
 
25389
for ac_header in sys/socket.h sys/types.h sys/utsname.h unistd.h strings.h
 
25390
do
 
25391
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25392
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25393
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25394
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25395
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25397
fi
 
25398
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25399
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25400
echo "${ECHO_T}$ac_res" >&6; }
 
25401
else
 
25402
  # Is the header compilable?
 
25403
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25404
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
25405
cat >conftest.$ac_ext <<_ACEOF
 
25406
/* confdefs.h.  */
 
25407
_ACEOF
 
25408
cat confdefs.h >>conftest.$ac_ext
 
25409
cat >>conftest.$ac_ext <<_ACEOF
 
25410
/* end confdefs.h.  */
 
25411
$ac_includes_default
 
25412
#include <$ac_header>
 
25413
_ACEOF
 
25414
rm -f conftest.$ac_objext
 
25415
if { (ac_try="$ac_compile"
 
25416
case "(($ac_try" in
 
25417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25418
  *) ac_try_echo=$ac_try;;
 
25419
esac
 
25420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25421
  (eval "$ac_compile") 2>conftest.er1
 
25422
  ac_status=$?
 
25423
  grep -v '^ *+' conftest.er1 >conftest.err
 
25424
  rm -f conftest.er1
 
25425
  cat conftest.err >&5
 
25426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25427
  (exit $ac_status); } && {
 
25428
         test -z "$ac_c_werror_flag" ||
 
25429
         test ! -s conftest.err
 
25430
       } && test -s conftest.$ac_objext; then
 
25431
  ac_header_compiler=yes
 
25432
else
 
25433
  echo "$as_me: failed program was:" >&5
 
25434
sed 's/^/| /' conftest.$ac_ext >&5
 
25435
 
 
25436
        ac_header_compiler=no
 
25437
fi
 
25438
 
 
25439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25440
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25441
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
25442
 
 
25443
# Is the header present?
 
25444
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25445
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25446
cat >conftest.$ac_ext <<_ACEOF
 
25447
/* confdefs.h.  */
 
25448
_ACEOF
 
25449
cat confdefs.h >>conftest.$ac_ext
 
25450
cat >>conftest.$ac_ext <<_ACEOF
 
25451
/* end confdefs.h.  */
 
25452
#include <$ac_header>
 
25453
_ACEOF
 
25454
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25455
case "(($ac_try" in
 
25456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25457
  *) ac_try_echo=$ac_try;;
 
25458
esac
 
25459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25460
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25461
  ac_status=$?
 
25462
  grep -v '^ *+' conftest.er1 >conftest.err
 
25463
  rm -f conftest.er1
 
25464
  cat conftest.err >&5
 
25465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25466
  (exit $ac_status); } >/dev/null && {
 
25467
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25468
         test ! -s conftest.err
 
25469
       }; then
 
25470
  ac_header_preproc=yes
 
25471
else
 
25472
  echo "$as_me: failed program was:" >&5
 
25473
sed 's/^/| /' conftest.$ac_ext >&5
 
25474
 
 
25475
  ac_header_preproc=no
 
25476
fi
 
25477
 
 
25478
rm -f conftest.err conftest.$ac_ext
 
25479
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25480
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25481
 
 
25482
# So?  What about this header?
 
25483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25484
  yes:no: )
 
25485
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25487
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25489
    ac_header_preproc=yes
 
25490
    ;;
 
25491
  no:yes:* )
 
25492
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25494
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25495
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25496
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25498
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25499
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25500
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25502
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25504
    ( cat <<\_ASBOX
 
25505
## --------------------------------------------- ##
 
25506
## Report this to https://launchpad.net/gearmand ##
 
25507
## --------------------------------------------- ##
 
25508
_ASBOX
 
25509
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25510
    ;;
 
25511
esac
 
25512
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25513
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25514
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25516
else
 
25517
  eval "$as_ac_Header=\$ac_header_preproc"
 
25518
fi
 
25519
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25520
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25521
echo "${ECHO_T}$ac_res" >&6; }
 
25522
 
 
25523
fi
 
25524
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25525
  cat >>confdefs.h <<_ACEOF
 
25526
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25527
_ACEOF
 
25528
 
 
25529
fi
 
25530
 
24911
25531
done
24912
25532
 
24913
25533
 
25018
25638
Usually this means the macro was only invoked conditionally." >&2;}
25019
25639
   { (exit 1); exit 1; }; }
25020
25640
fi
25021
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25022
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25023
 
Usually this means the macro was only invoked conditionally." >&5
25024
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25025
 
Usually this means the macro was only invoked conditionally." >&2;}
25026
 
   { (exit 1); exit 1; }; }
25027
 
fi
25028
25641
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25029
25642
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25030
25643
Usually this means the macro was only invoked conditionally." >&5
25032
25645
Usually this means the macro was only invoked conditionally." >&2;}
25033
25646
   { (exit 1); exit 1; }; }
25034
25647
fi
 
25648
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
25649
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
25650
Usually this means the macro was only invoked conditionally." >&5
 
25651
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
25652
Usually this means the macro was only invoked conditionally." >&2;}
 
25653
   { (exit 1); exit 1; }; }
 
25654
fi
 
25655
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
25656
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
25657
Usually this means the macro was only invoked conditionally." >&5
 
25658
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
25659
Usually this means the macro was only invoked conditionally." >&2;}
 
25660
   { (exit 1); exit 1; }; }
 
25661
fi
 
25662
if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then
 
25663
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DTRACE\" was never defined.
 
25664
Usually this means the macro was only invoked conditionally." >&5
 
25665
echo "$as_me: error: conditional \"HAVE_DTRACE\" was never defined.
 
25666
Usually this means the macro was only invoked conditionally." >&2;}
 
25667
   { (exit 1); exit 1; }; }
 
25668
fi
 
25669
if test -z "${DTRACE_NEEDS_OBJECTS_TRUE}" && test -z "${DTRACE_NEEDS_OBJECTS_FALSE}"; then
 
25670
  { { echo "$as_me:$LINENO: error: conditional \"DTRACE_NEEDS_OBJECTS\" was never defined.
 
25671
Usually this means the macro was only invoked conditionally." >&5
 
25672
echo "$as_me: error: conditional \"DTRACE_NEEDS_OBJECTS\" was never defined.
 
25673
Usually this means the macro was only invoked conditionally." >&2;}
 
25674
   { (exit 1); exit 1; }; }
 
25675
fi
 
25676
if test -z "${HAVE_LIBSQLITE3_TRUE}" && test -z "${HAVE_LIBSQLITE3_FALSE}"; then
 
25677
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSQLITE3\" was never defined.
 
25678
Usually this means the macro was only invoked conditionally." >&5
 
25679
echo "$as_me: error: conditional \"HAVE_LIBSQLITE3\" was never defined.
 
25680
Usually this means the macro was only invoked conditionally." >&2;}
 
25681
   { (exit 1); exit 1; }; }
 
25682
fi
25035
25683
if test -z "${HAVE_LIBDRIZZLE_TRUE}" && test -z "${HAVE_LIBDRIZZLE_FALSE}"; then
25036
25684
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDRIZZLE\" was never defined.
25037
25685
Usually this means the macro was only invoked conditionally." >&5
25039
25687
Usually this means the macro was only invoked conditionally." >&2;}
25040
25688
   { (exit 1); exit 1; }; }
25041
25689
fi
 
25690
if test -z "${HAVE_LIBMEMCACHED_TRUE}" && test -z "${HAVE_LIBMEMCACHED_FALSE}"; then
 
25691
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBMEMCACHED\" was never defined.
 
25692
Usually this means the macro was only invoked conditionally." >&5
 
25693
echo "$as_me: error: conditional \"HAVE_LIBMEMCACHED\" was never defined.
 
25694
Usually this means the macro was only invoked conditionally." >&2;}
 
25695
   { (exit 1); exit 1; }; }
 
25696
fi
 
25697
if test -z "${HAVE_LIBPQ_TRUE}" && test -z "${HAVE_LIBPQ_FALSE}"; then
 
25698
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBPQ\" was never defined.
 
25699
Usually this means the macro was only invoked conditionally." >&5
 
25700
echo "$as_me: error: conditional \"HAVE_LIBPQ\" was never defined.
 
25701
Usually this means the macro was only invoked conditionally." >&2;}
 
25702
   { (exit 1); exit 1; }; }
 
25703
fi
25042
25704
 
25043
25705
: ${CONFIG_STATUS=./config.status}
25044
25706
ac_clean_files_save=$ac_clean_files
25339
26001
# report actual input values of CONFIG_FILES etc. instead of their
25340
26002
# values after options handling.
25341
26003
ac_log="
25342
 
This file was extended by gearmand $as_me 0.6, which was
 
26004
This file was extended by gearmand $as_me 0.9, which was
25343
26005
generated by GNU Autoconf 2.61.  Invocation command line was
25344
26006
 
25345
26007
  CONFIG_FILES    = $CONFIG_FILES
25392
26054
_ACEOF
25393
26055
cat >>$CONFIG_STATUS <<_ACEOF
25394
26056
ac_cs_version="\\
25395
 
gearmand config.status 0.6
 
26057
gearmand config.status 0.9
25396
26058
configured by $0, generated by GNU Autoconf 2.61,
25397
26059
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25398
26060
 
25498
26160
#
25499
26161
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25500
26162
 
 
26163
 
 
26164
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
26165
# if CDPATH is set.
 
26166
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
26167
 
 
26168
sed_quote_subst='$sed_quote_subst'
 
26169
double_quote_subst='$double_quote_subst'
 
26170
delay_variable_subst='$delay_variable_subst'
 
26171
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
26172
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
26173
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
26174
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
26175
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
26176
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
26177
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
26178
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
26179
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
26180
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
26181
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
26182
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
26183
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
26184
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
26185
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
26186
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
26187
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
26188
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
26189
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
26190
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
26191
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
26192
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
26193
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
26194
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
26195
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
26196
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
26197
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
26198
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26199
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
26200
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
26201
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
26202
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
26203
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
26204
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
26205
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
26206
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26207
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26208
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26209
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
26210
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
26211
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
26212
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
26213
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
26214
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
26215
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"`'
 
26216
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"`'
 
26217
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
26218
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
26219
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
26220
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
26221
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
26222
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
26223
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
26224
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
26225
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
26226
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
26227
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
26228
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
26229
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
26230
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
26231
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
26232
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
26233
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26234
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26235
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
26236
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
26237
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26238
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26239
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
26240
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26241
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26242
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26243
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26244
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26245
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26246
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
26247
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
26248
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
26249
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26250
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
26251
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
26252
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
26253
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
26254
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
26255
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
26256
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
26257
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
26258
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
26259
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
26260
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
26261
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26262
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
26263
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
26264
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26265
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26266
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
26267
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
26268
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
26269
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
26270
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
26271
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
26272
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
26273
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26274
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26275
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26276
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26277
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26278
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
26279
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
26280
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
26281
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26282
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
26283
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
26284
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
26285
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
26286
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
26287
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
26288
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
26289
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
26290
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
26291
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
26292
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
26293
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
26294
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
26295
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26296
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26297
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26298
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26299
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26300
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26301
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26302
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26303
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26304
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26305
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26306
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26307
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26308
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26309
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26310
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26311
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26312
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26313
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26314
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26315
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26316
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26317
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26318
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26319
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26320
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26321
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26322
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26323
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26324
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26325
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26326
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26327
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26328
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26329
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26330
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26331
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26332
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26333
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26334
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26335
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26336
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26337
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26338
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26339
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26340
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26341
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
26342
 
 
26343
LTCC='$LTCC'
 
26344
LTCFLAGS='$LTCFLAGS'
 
26345
compiler='$compiler_DEFAULT'
 
26346
 
 
26347
# Quote evaled strings.
 
26348
for var in SED \
 
26349
GREP \
 
26350
EGREP \
 
26351
FGREP \
 
26352
LD \
 
26353
NM \
 
26354
LN_S \
 
26355
lt_SP2NL \
 
26356
lt_NL2SP \
 
26357
reload_flag \
 
26358
OBJDUMP \
 
26359
deplibs_check_method \
 
26360
file_magic_cmd \
 
26361
AR \
 
26362
AR_FLAGS \
 
26363
STRIP \
 
26364
RANLIB \
 
26365
CC \
 
26366
CFLAGS \
 
26367
compiler \
 
26368
lt_cv_sys_global_symbol_pipe \
 
26369
lt_cv_sys_global_symbol_to_cdecl \
 
26370
lt_cv_sys_global_symbol_to_c_name_address \
 
26371
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
26372
SHELL \
 
26373
ECHO \
 
26374
lt_prog_compiler_no_builtin_flag \
 
26375
lt_prog_compiler_wl \
 
26376
lt_prog_compiler_pic \
 
26377
lt_prog_compiler_static \
 
26378
lt_cv_prog_compiler_c_o \
 
26379
need_locks \
 
26380
DSYMUTIL \
 
26381
NMEDIT \
 
26382
LIPO \
 
26383
OTOOL \
 
26384
OTOOL64 \
 
26385
shrext_cmds \
 
26386
export_dynamic_flag_spec \
 
26387
whole_archive_flag_spec \
 
26388
compiler_needs_object \
 
26389
with_gnu_ld \
 
26390
allow_undefined_flag \
 
26391
no_undefined_flag \
 
26392
hardcode_libdir_flag_spec \
 
26393
hardcode_libdir_flag_spec_ld \
 
26394
hardcode_libdir_separator \
 
26395
fix_srcfile_path \
 
26396
exclude_expsyms \
 
26397
include_expsyms \
 
26398
file_list_spec \
 
26399
variables_saved_for_relink \
 
26400
libname_spec \
 
26401
library_names_spec \
 
26402
soname_spec \
 
26403
finish_eval \
 
26404
old_striplib \
 
26405
striplib \
 
26406
compiler_lib_search_dirs \
 
26407
predep_objects \
 
26408
postdep_objects \
 
26409
predeps \
 
26410
postdeps \
 
26411
compiler_lib_search_path \
 
26412
LD_CXX \
 
26413
compiler_CXX \
 
26414
lt_prog_compiler_no_builtin_flag_CXX \
 
26415
lt_prog_compiler_wl_CXX \
 
26416
lt_prog_compiler_pic_CXX \
 
26417
lt_prog_compiler_static_CXX \
 
26418
lt_cv_prog_compiler_c_o_CXX \
 
26419
export_dynamic_flag_spec_CXX \
 
26420
whole_archive_flag_spec_CXX \
 
26421
compiler_needs_object_CXX \
 
26422
with_gnu_ld_CXX \
 
26423
allow_undefined_flag_CXX \
 
26424
no_undefined_flag_CXX \
 
26425
hardcode_libdir_flag_spec_CXX \
 
26426
hardcode_libdir_flag_spec_ld_CXX \
 
26427
hardcode_libdir_separator_CXX \
 
26428
fix_srcfile_path_CXX \
 
26429
exclude_expsyms_CXX \
 
26430
include_expsyms_CXX \
 
26431
file_list_spec_CXX \
 
26432
compiler_lib_search_dirs_CXX \
 
26433
predep_objects_CXX \
 
26434
postdep_objects_CXX \
 
26435
predeps_CXX \
 
26436
postdeps_CXX \
 
26437
compiler_lib_search_path_CXX; do
 
26438
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
26439
    *[\\\\\\\`\\"\\\$]*)
 
26440
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
26441
      ;;
 
26442
    *)
 
26443
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
26444
      ;;
 
26445
    esac
 
26446
done
 
26447
 
 
26448
# Double-quote double-evaled strings.
 
26449
for var in reload_cmds \
 
26450
old_postinstall_cmds \
 
26451
old_postuninstall_cmds \
 
26452
old_archive_cmds \
 
26453
extract_expsyms_cmds \
 
26454
old_archive_from_new_cmds \
 
26455
old_archive_from_expsyms_cmds \
 
26456
archive_cmds \
 
26457
archive_expsym_cmds \
 
26458
module_cmds \
 
26459
module_expsym_cmds \
 
26460
export_symbols_cmds \
 
26461
prelink_cmds \
 
26462
postinstall_cmds \
 
26463
postuninstall_cmds \
 
26464
finish_cmds \
 
26465
sys_lib_search_path_spec \
 
26466
sys_lib_dlsearch_path_spec \
 
26467
old_archive_cmds_CXX \
 
26468
old_archive_from_new_cmds_CXX \
 
26469
old_archive_from_expsyms_cmds_CXX \
 
26470
archive_cmds_CXX \
 
26471
archive_expsym_cmds_CXX \
 
26472
module_cmds_CXX \
 
26473
module_expsym_cmds_CXX \
 
26474
export_symbols_cmds_CXX \
 
26475
prelink_cmds_CXX; do
 
26476
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
26477
    *[\\\\\\\`\\"\\\$]*)
 
26478
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
26479
      ;;
 
26480
    *)
 
26481
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
26482
      ;;
 
26483
    esac
 
26484
done
 
26485
 
 
26486
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
26487
case \$lt_ECHO in
 
26488
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
26489
  ;;
 
26490
esac
 
26491
 
 
26492
ac_aux_dir='$ac_aux_dir'
 
26493
xsi_shell='$xsi_shell'
 
26494
lt_shell_append='$lt_shell_append'
 
26495
 
 
26496
# See if we are running on zsh, and set the options which allow our
 
26497
# commands through without removal of \ escapes INIT.
 
26498
if test -n "\${ZSH_VERSION+set}" ; then
 
26499
   setopt NO_GLOB_SUBST
 
26500
fi
 
26501
 
 
26502
 
 
26503
    PACKAGE='$PACKAGE'
 
26504
    VERSION='$VERSION'
 
26505
    TIMESTAMP='$TIMESTAMP'
 
26506
    RM='$RM'
 
26507
    ofile='$ofile'
 
26508
 
 
26509
 
 
26510
 
 
26511
 
 
26512
 
 
26513
 
25501
26514
_ACEOF
25502
26515
 
25503
26516
cat >>$CONFIG_STATUS <<\_ACEOF
25508
26521
  case $ac_config_target in
25509
26522
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25510
26523
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
26524
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25511
26525
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25512
26526
    "libgearman/Makefile") CONFIG_FILES="$CONFIG_FILES libgearman/Makefile" ;;
25513
26527
    "gearmand/Makefile") CONFIG_FILES="$CONFIG_FILES gearmand/Makefile" ;;
25622
26636
build_alias!$build_alias$ac_delim
25623
26637
host_alias!$host_alias$ac_delim
25624
26638
target_alias!$target_alias$ac_delim
25625
 
GEARMAN_LIBRARY_VERSION!$GEARMAN_LIBRARY_VERSION$ac_delim
25626
26639
build!$build$ac_delim
25627
26640
build_cpu!$build_cpu$ac_delim
25628
26641
build_vendor!$build_vendor$ac_delim
25657
26670
AMTAR!$AMTAR$ac_delim
25658
26671
am__tar!$am__tar$ac_delim
25659
26672
am__untar!$am__untar$ac_delim
25660
 
CXX!$CXX$ac_delim
25661
 
CXXFLAGS!$CXXFLAGS$ac_delim
 
26673
CC!$CC$ac_delim
 
26674
CFLAGS!$CFLAGS$ac_delim
25662
26675
LDFLAGS!$LDFLAGS$ac_delim
25663
26676
CPPFLAGS!$CPPFLAGS$ac_delim
25664
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
26677
ac_ct_CC!$ac_ct_CC$ac_delim
25665
26678
EXEEXT!$EXEEXT$ac_delim
25666
26679
OBJEXT!$OBJEXT$ac_delim
25667
26680
DEPDIR!$DEPDIR$ac_delim
25670
26683
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25671
26684
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25672
26685
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
26686
CCDEPMODE!$CCDEPMODE$ac_delim
 
26687
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
26688
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
26689
ISAINFO!$ISAINFO$ac_delim
 
26690
CXX!$CXX$ac_delim
 
26691
CXXFLAGS!$CXXFLAGS$ac_delim
 
26692
ac_ct_CXX!$ac_ct_CXX$ac_delim
25673
26693
CXXDEPMODE!$CXXDEPMODE$ac_delim
25674
26694
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25675
26695
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25676
 
CC!$CC$ac_delim
25677
 
CFLAGS!$CFLAGS$ac_delim
25678
 
ac_ct_CC!$ac_ct_CC$ac_delim
25679
 
CCDEPMODE!$CCDEPMODE$ac_delim
25680
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25681
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25682
26696
CPP!$CPP$ac_delim
25683
26697
GREP!$GREP$ac_delim
25684
26698
EGREP!$EGREP$ac_delim
25723
26737
ac_delim='%!_!# '
25724
26738
for ac_last_try in false false false false false :; do
25725
26739
  cat >conf$$subs.sed <<_ACEOF
 
26740
LIBTOOL!$LIBTOOL$ac_delim
25726
26741
SED!$SED$ac_delim
 
26742
FGREP!$FGREP$ac_delim
 
26743
LD!$LD$ac_delim
 
26744
DUMPBIN!$DUMPBIN$ac_delim
 
26745
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
26746
NM!$NM$ac_delim
25727
26747
LN_S!$LN_S$ac_delim
25728
 
ECHO!$ECHO$ac_delim
 
26748
OBJDUMP!$OBJDUMP$ac_delim
25729
26749
AR!$AR$ac_delim
25730
26750
RANLIB!$RANLIB$ac_delim
 
26751
lt_ECHO!$lt_ECHO$ac_delim
25731
26752
DSYMUTIL!$DSYMUTIL$ac_delim
25732
26753
NMEDIT!$NMEDIT$ac_delim
 
26754
LIPO!$LIPO$ac_delim
 
26755
OTOOL!$OTOOL$ac_delim
 
26756
OTOOL64!$OTOOL64$ac_delim
25733
26757
CXXCPP!$CXXCPP$ac_delim
25734
 
F77!$F77$ac_delim
25735
 
FFLAGS!$FFLAGS$ac_delim
25736
 
ac_ct_F77!$ac_ct_F77$ac_delim
25737
 
LIBTOOL!$LIBTOOL$ac_delim
25738
26758
CC_VERSION!$CC_VERSION$ac_delim
 
26759
CXX_VERSION!$CXX_VERSION$ac_delim
 
26760
CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
 
26761
HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
 
26762
LIBC_P!$LIBC_P$ac_delim
 
26763
NO_CONVERSION!$NO_CONVERSION$ac_delim
 
26764
NO_REDUNDANT_DECLS!$NO_REDUNDANT_DECLS$ac_delim
 
26765
NO_UNREACHED!$NO_UNREACHED$ac_delim
 
26766
NO_SHADOW!$NO_SHADOW$ac_delim
 
26767
NO_STRICT_ALIASING!$NO_STRICT_ALIASING$ac_delim
 
26768
PROTOSKIP_WARNINGS!$PROTOSKIP_WARNINGS$ac_delim
 
26769
DTRACE!$DTRACE$ac_delim
 
26770
DTRACEFLAGS!$DTRACEFLAGS$ac_delim
 
26771
HAVE_DTRACE_TRUE!$HAVE_DTRACE_TRUE$ac_delim
 
26772
HAVE_DTRACE_FALSE!$HAVE_DTRACE_FALSE$ac_delim
 
26773
DTRACE_NEEDS_OBJECTS_TRUE!$DTRACE_NEEDS_OBJECTS_TRUE$ac_delim
 
26774
DTRACE_NEEDS_OBJECTS_FALSE!$DTRACE_NEEDS_OBJECTS_FALSE$ac_delim
 
26775
LIBOBJS!$LIBOBJS$ac_delim
 
26776
BETTER_MALLOC_LIBS!$BETTER_MALLOC_LIBS$ac_delim
 
26777
DOXYGEN!$DOXYGEN$ac_delim
 
26778
PERL!$PERL$ac_delim
 
26779
AM_CFLAGS!$AM_CFLAGS$ac_delim
 
26780
AM_CXXFLAGS!$AM_CXXFLAGS$ac_delim
 
26781
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
 
26782
GEARMAN_LIBRARY_VERSION!$GEARMAN_LIBRARY_VERSION$ac_delim
 
26783
LD_VERSION_SCRIPT!$LD_VERSION_SCRIPT$ac_delim
 
26784
acx_pthread_config!$acx_pthread_config$ac_delim
 
26785
PTHREAD_CC!$PTHREAD_CC$ac_delim
 
26786
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
 
26787
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25739
26788
HAVE_LIBEVENT!$HAVE_LIBEVENT$ac_delim
25740
26789
LIBEVENT!$LIBEVENT$ac_delim
25741
26790
LTLIBEVENT!$LTLIBEVENT$ac_delim
25744
26793
LIBUUID!$LIBUUID$ac_delim
25745
26794
LTLIBUUID!$LTLIBUUID$ac_delim
25746
26795
LIBUUID_PREFIX!$LIBUUID_PREFIX$ac_delim
 
26796
HAVE_LIBSQLITE3!$HAVE_LIBSQLITE3$ac_delim
 
26797
LIBSQLITE3!$LIBSQLITE3$ac_delim
 
26798
LTLIBSQLITE3!$LTLIBSQLITE3$ac_delim
 
26799
LIBSQLITE3_PREFIX!$LIBSQLITE3_PREFIX$ac_delim
 
26800
HAVE_LIBSQLITE3_TRUE!$HAVE_LIBSQLITE3_TRUE$ac_delim
 
26801
HAVE_LIBSQLITE3_FALSE!$HAVE_LIBSQLITE3_FALSE$ac_delim
25747
26802
HAVE_LIBDRIZZLE!$HAVE_LIBDRIZZLE$ac_delim
25748
26803
LIBDRIZZLE!$LIBDRIZZLE$ac_delim
25749
26804
LTLIBDRIZZLE!$LTLIBDRIZZLE$ac_delim
25750
26805
LIBDRIZZLE_PREFIX!$LIBDRIZZLE_PREFIX$ac_delim
25751
26806
HAVE_LIBDRIZZLE_TRUE!$HAVE_LIBDRIZZLE_TRUE$ac_delim
25752
26807
HAVE_LIBDRIZZLE_FALSE!$HAVE_LIBDRIZZLE_FALSE$ac_delim
25753
 
NO_REDUNDANT_DECLS!$NO_REDUNDANT_DECLS$ac_delim
25754
 
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
25755
 
AM_CFLAGS!$AM_CFLAGS$ac_delim
25756
 
DOXYGEN!$DOXYGEN$ac_delim
25757
 
PERL!$PERL$ac_delim
25758
 
LIBOBJS!$LIBOBJS$ac_delim
 
26808
HAVE_LIBMEMCACHED!$HAVE_LIBMEMCACHED$ac_delim
 
26809
LIBMEMCACHED!$LIBMEMCACHED$ac_delim
 
26810
LTLIBMEMCACHED!$LTLIBMEMCACHED$ac_delim
 
26811
LIBMEMCACHED_PREFIX!$LIBMEMCACHED_PREFIX$ac_delim
 
26812
HAVE_LIBMEMCACHED_TRUE!$HAVE_LIBMEMCACHED_TRUE$ac_delim
 
26813
HAVE_LIBMEMCACHED_FALSE!$HAVE_LIBMEMCACHED_FALSE$ac_delim
 
26814
MEMCACHED_BINARY!$MEMCACHED_BINARY$ac_delim
 
26815
HAVE_LIBPQ!$HAVE_LIBPQ$ac_delim
 
26816
LIBPQ!$LIBPQ$ac_delim
 
26817
LTLIBPQ!$LTLIBPQ$ac_delim
 
26818
LIBPQ_PREFIX!$LIBPQ_PREFIX$ac_delim
 
26819
HAVE_LIBPQ_TRUE!$HAVE_LIBPQ_TRUE$ac_delim
 
26820
HAVE_LIBPQ_FALSE!$HAVE_LIBPQ_FALSE$ac_delim
25759
26821
LTLIBOBJS!$LTLIBOBJS$ac_delim
25760
26822
_ACEOF
25761
26823
 
25762
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
 
26824
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
25763
26825
    break
25764
26826
  elif $ac_last_try; then
25765
26827
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26326
27388
  done
26327
27389
done
26328
27390
 ;;
 
27391
    "libtool":C)
 
27392
 
 
27393
    # See if we are running on zsh, and set the options which allow our
 
27394
    # commands through without removal of \ escapes.
 
27395
    if test -n "${ZSH_VERSION+set}" ; then
 
27396
      setopt NO_GLOB_SUBST
 
27397
    fi
 
27398
 
 
27399
    cfgfile="${ofile}T"
 
27400
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
27401
    $RM "$cfgfile"
 
27402
 
 
27403
    cat <<_LT_EOF >> "$cfgfile"
 
27404
#! $SHELL
 
27405
 
 
27406
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
27407
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
27408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
27409
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
27410
#
 
27411
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
27412
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
27413
#   Written by Gordon Matzigkeit, 1996
 
27414
#
 
27415
#   This file is part of GNU Libtool.
 
27416
#
 
27417
# GNU Libtool is free software; you can redistribute it and/or
 
27418
# modify it under the terms of the GNU General Public License as
 
27419
# published by the Free Software Foundation; either version 2 of
 
27420
# the License, or (at your option) any later version.
 
27421
#
 
27422
# As a special exception to the GNU General Public License,
 
27423
# if you distribute this file as part of a program or library that
 
27424
# is built using GNU Libtool, you may include this file under the
 
27425
# same distribution terms that you use for the rest of that program.
 
27426
#
 
27427
# GNU Libtool is distributed in the hope that it will be useful,
 
27428
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
27429
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
27430
# GNU General Public License for more details.
 
27431
#
 
27432
# You should have received a copy of the GNU General Public License
 
27433
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
27434
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
27435
# obtained by writing to the Free Software Foundation, Inc.,
 
27436
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
27437
 
 
27438
 
 
27439
# The names of the tagged configurations supported by this script.
 
27440
available_tags="CXX "
 
27441
 
 
27442
# ### BEGIN LIBTOOL CONFIG
 
27443
 
 
27444
# Which release of libtool.m4 was used?
 
27445
macro_version=$macro_version
 
27446
macro_revision=$macro_revision
 
27447
 
 
27448
# Whether or not to build shared libraries.
 
27449
build_libtool_libs=$enable_shared
 
27450
 
 
27451
# Whether or not to build static libraries.
 
27452
build_old_libs=$enable_static
 
27453
 
 
27454
# What type of objects to build.
 
27455
pic_mode=$pic_mode
 
27456
 
 
27457
# Whether or not to optimize for fast installation.
 
27458
fast_install=$enable_fast_install
 
27459
 
 
27460
# The host system.
 
27461
host_alias=$host_alias
 
27462
host=$host
 
27463
host_os=$host_os
 
27464
 
 
27465
# The build system.
 
27466
build_alias=$build_alias
 
27467
build=$build
 
27468
build_os=$build_os
 
27469
 
 
27470
# A sed program that does not truncate output.
 
27471
SED=$lt_SED
 
27472
 
 
27473
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
27474
Xsed="\$SED -e 1s/^X//"
 
27475
 
 
27476
# A grep program that handles long lines.
 
27477
GREP=$lt_GREP
 
27478
 
 
27479
# An ERE matcher.
 
27480
EGREP=$lt_EGREP
 
27481
 
 
27482
# A literal string matcher.
 
27483
FGREP=$lt_FGREP
 
27484
 
 
27485
# A BSD- or MS-compatible name lister.
 
27486
NM=$lt_NM
 
27487
 
 
27488
# Whether we need soft or hard links.
 
27489
LN_S=$lt_LN_S
 
27490
 
 
27491
# What is the maximum length of a command?
 
27492
max_cmd_len=$max_cmd_len
 
27493
 
 
27494
# Object file suffix (normally "o").
 
27495
objext=$ac_objext
 
27496
 
 
27497
# Executable file suffix (normally "").
 
27498
exeext=$exeext
 
27499
 
 
27500
# whether the shell understands "unset".
 
27501
lt_unset=$lt_unset
 
27502
 
 
27503
# turn spaces into newlines.
 
27504
SP2NL=$lt_lt_SP2NL
 
27505
 
 
27506
# turn newlines into spaces.
 
27507
NL2SP=$lt_lt_NL2SP
 
27508
 
 
27509
# How to create reloadable object files.
 
27510
reload_flag=$lt_reload_flag
 
27511
reload_cmds=$lt_reload_cmds
 
27512
 
 
27513
# An object symbol dumper.
 
27514
OBJDUMP=$lt_OBJDUMP
 
27515
 
 
27516
# Method to check whether dependent libraries are shared objects.
 
27517
deplibs_check_method=$lt_deplibs_check_method
 
27518
 
 
27519
# Command to use when deplibs_check_method == "file_magic".
 
27520
file_magic_cmd=$lt_file_magic_cmd
 
27521
 
 
27522
# The archiver.
 
27523
AR=$lt_AR
 
27524
AR_FLAGS=$lt_AR_FLAGS
 
27525
 
 
27526
# A symbol stripping program.
 
27527
STRIP=$lt_STRIP
 
27528
 
 
27529
# Commands used to install an old-style archive.
 
27530
RANLIB=$lt_RANLIB
 
27531
old_postinstall_cmds=$lt_old_postinstall_cmds
 
27532
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
27533
 
 
27534
# A C compiler.
 
27535
LTCC=$lt_CC
 
27536
 
 
27537
# LTCC compiler flags.
 
27538
LTCFLAGS=$lt_CFLAGS
 
27539
 
 
27540
# Take the output of nm and produce a listing of raw symbols and C names.
 
27541
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
27542
 
 
27543
# Transform the output of nm in a proper C declaration.
 
27544
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
27545
 
 
27546
# Transform the output of nm in a C name address pair.
 
27547
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
27548
 
 
27549
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
27550
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
27551
 
 
27552
# The name of the directory that contains temporary libtool files.
 
27553
objdir=$objdir
 
27554
 
 
27555
# Shell to use when invoking shell scripts.
 
27556
SHELL=$lt_SHELL
 
27557
 
 
27558
# An echo program that does not interpret backslashes.
 
27559
ECHO=$lt_ECHO
 
27560
 
 
27561
# Used to examine libraries when file_magic_cmd begins with "file".
 
27562
MAGIC_CMD=$MAGIC_CMD
 
27563
 
 
27564
# Must we lock files when doing compilation?
 
27565
need_locks=$lt_need_locks
 
27566
 
 
27567
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
27568
DSYMUTIL=$lt_DSYMUTIL
 
27569
 
 
27570
# Tool to change global to local symbols on Mac OS X.
 
27571
NMEDIT=$lt_NMEDIT
 
27572
 
 
27573
# Tool to manipulate fat objects and archives on Mac OS X.
 
27574
LIPO=$lt_LIPO
 
27575
 
 
27576
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
27577
OTOOL=$lt_OTOOL
 
27578
 
 
27579
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
27580
OTOOL64=$lt_OTOOL64
 
27581
 
 
27582
# Old archive suffix (normally "a").
 
27583
libext=$libext
 
27584
 
 
27585
# Shared library suffix (normally ".so").
 
27586
shrext_cmds=$lt_shrext_cmds
 
27587
 
 
27588
# The commands to extract the exported symbol list from a shared archive.
 
27589
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
27590
 
 
27591
# Variables whose values should be saved in libtool wrapper scripts and
 
27592
# restored at link time.
 
27593
variables_saved_for_relink=$lt_variables_saved_for_relink
 
27594
 
 
27595
# Do we need the "lib" prefix for modules?
 
27596
need_lib_prefix=$need_lib_prefix
 
27597
 
 
27598
# Do we need a version for libraries?
 
27599
need_version=$need_version
 
27600
 
 
27601
# Library versioning type.
 
27602
version_type=$version_type
 
27603
 
 
27604
# Shared library runtime path variable.
 
27605
runpath_var=$runpath_var
 
27606
 
 
27607
# Shared library path variable.
 
27608
shlibpath_var=$shlibpath_var
 
27609
 
 
27610
# Is shlibpath searched before the hard-coded library search path?
 
27611
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
27612
 
 
27613
# Format of library name prefix.
 
27614
libname_spec=$lt_libname_spec
 
27615
 
 
27616
# List of archive names.  First name is the real one, the rest are links.
 
27617
# The last name is the one that the linker finds with -lNAME
 
27618
library_names_spec=$lt_library_names_spec
 
27619
 
 
27620
# The coded name of the library, if different from the real name.
 
27621
soname_spec=$lt_soname_spec
 
27622
 
 
27623
# Command to use after installation of a shared archive.
 
27624
postinstall_cmds=$lt_postinstall_cmds
 
27625
 
 
27626
# Command to use after uninstallation of a shared archive.
 
27627
postuninstall_cmds=$lt_postuninstall_cmds
 
27628
 
 
27629
# Commands used to finish a libtool library installation in a directory.
 
27630
finish_cmds=$lt_finish_cmds
 
27631
 
 
27632
# As "finish_cmds", except a single script fragment to be evaled but
 
27633
# not shown.
 
27634
finish_eval=$lt_finish_eval
 
27635
 
 
27636
# Whether we should hardcode library paths into libraries.
 
27637
hardcode_into_libs=$hardcode_into_libs
 
27638
 
 
27639
# Compile-time system search path for libraries.
 
27640
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
27641
 
 
27642
# Run-time system search path for libraries.
 
27643
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
27644
 
 
27645
# Whether dlopen is supported.
 
27646
dlopen_support=$enable_dlopen
 
27647
 
 
27648
# Whether dlopen of programs is supported.
 
27649
dlopen_self=$enable_dlopen_self
 
27650
 
 
27651
# Whether dlopen of statically linked programs is supported.
 
27652
dlopen_self_static=$enable_dlopen_self_static
 
27653
 
 
27654
# Commands to strip libraries.
 
27655
old_striplib=$lt_old_striplib
 
27656
striplib=$lt_striplib
 
27657
 
 
27658
 
 
27659
# The linker used to build libraries.
 
27660
LD=$lt_LD
 
27661
 
 
27662
# Commands used to build an old-style archive.
 
27663
old_archive_cmds=$lt_old_archive_cmds
 
27664
 
 
27665
# A language specific compiler.
 
27666
CC=$lt_compiler
 
27667
 
 
27668
# Is the compiler the GNU compiler?
 
27669
with_gcc=$GCC
 
27670
 
 
27671
# Compiler flag to turn off builtin functions.
 
27672
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
27673
 
 
27674
# How to pass a linker flag through the compiler.
 
27675
wl=$lt_lt_prog_compiler_wl
 
27676
 
 
27677
# Additional compiler flags for building library objects.
 
27678
pic_flag=$lt_lt_prog_compiler_pic
 
27679
 
 
27680
# Compiler flag to prevent dynamic linking.
 
27681
link_static_flag=$lt_lt_prog_compiler_static
 
27682
 
 
27683
# Does compiler simultaneously support -c and -o options?
 
27684
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
27685
 
 
27686
# Whether or not to add -lc for building shared libraries.
 
27687
build_libtool_need_lc=$archive_cmds_need_lc
 
27688
 
 
27689
# Whether or not to disallow shared libs when runtime libs are static.
 
27690
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
27691
 
 
27692
# Compiler flag to allow reflexive dlopens.
 
27693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
27694
 
 
27695
# Compiler flag to generate shared objects directly from archives.
 
27696
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
27697
 
 
27698
# Whether the compiler copes with passing no objects directly.
 
27699
compiler_needs_object=$lt_compiler_needs_object
 
27700
 
 
27701
# Create an old-style archive from a shared archive.
 
27702
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
27703
 
 
27704
# Create a temporary old-style archive to link instead of a shared archive.
 
27705
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
27706
 
 
27707
# Commands used to build a shared archive.
 
27708
archive_cmds=$lt_archive_cmds
 
27709
archive_expsym_cmds=$lt_archive_expsym_cmds
 
27710
 
 
27711
# Commands used to build a loadable module if different from building
 
27712
# a shared archive.
 
27713
module_cmds=$lt_module_cmds
 
27714
module_expsym_cmds=$lt_module_expsym_cmds
 
27715
 
 
27716
# Whether we are building with GNU ld or not.
 
27717
with_gnu_ld=$lt_with_gnu_ld
 
27718
 
 
27719
# Flag that allows shared libraries with undefined symbols to be built.
 
27720
allow_undefined_flag=$lt_allow_undefined_flag
 
27721
 
 
27722
# Flag that enforces no undefined symbols.
 
27723
no_undefined_flag=$lt_no_undefined_flag
 
27724
 
 
27725
# Flag to hardcode \$libdir into a binary during linking.
 
27726
# This must work even if \$libdir does not exist
 
27727
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
27728
 
 
27729
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
27730
# during linking.  This must work even if \$libdir does not exist.
 
27731
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
27732
 
 
27733
# Whether we need a single "-rpath" flag with a separated argument.
 
27734
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
27735
 
 
27736
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
27737
# DIR into the resulting binary.
 
27738
hardcode_direct=$hardcode_direct
 
27739
 
 
27740
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
27741
# DIR into the resulting binary and the resulting library dependency is
 
27742
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
27743
# library is relocated.
 
27744
hardcode_direct_absolute=$hardcode_direct_absolute
 
27745
 
 
27746
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
27747
# into the resulting binary.
 
27748
hardcode_minus_L=$hardcode_minus_L
 
27749
 
 
27750
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
27751
# into the resulting binary.
 
27752
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
27753
 
 
27754
# Set to "yes" if building a shared library automatically hardcodes DIR
 
27755
# into the library and all subsequent libraries and executables linked
 
27756
# against it.
 
27757
hardcode_automatic=$hardcode_automatic
 
27758
 
 
27759
# Set to yes if linker adds runtime paths of dependent libraries
 
27760
# to runtime path list.
 
27761
inherit_rpath=$inherit_rpath
 
27762
 
 
27763
# Whether libtool must link a program against all its dependency libraries.
 
27764
link_all_deplibs=$link_all_deplibs
 
27765
 
 
27766
# Fix the shell variable \$srcfile for the compiler.
 
27767
fix_srcfile_path=$lt_fix_srcfile_path
 
27768
 
 
27769
# Set to "yes" if exported symbols are required.
 
27770
always_export_symbols=$always_export_symbols
 
27771
 
 
27772
# The commands to list exported symbols.
 
27773
export_symbols_cmds=$lt_export_symbols_cmds
 
27774
 
 
27775
# Symbols that should not be listed in the preloaded symbols.
 
27776
exclude_expsyms=$lt_exclude_expsyms
 
27777
 
 
27778
# Symbols that must always be exported.
 
27779
include_expsyms=$lt_include_expsyms
 
27780
 
 
27781
# Commands necessary for linking programs (against libraries) with templates.
 
27782
prelink_cmds=$lt_prelink_cmds
 
27783
 
 
27784
# Specify filename containing input files.
 
27785
file_list_spec=$lt_file_list_spec
 
27786
 
 
27787
# How to hardcode a shared library path into an executable.
 
27788
hardcode_action=$hardcode_action
 
27789
 
 
27790
# The directories searched by this compiler when creating a shared library.
 
27791
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
27792
 
 
27793
# Dependencies to place before and after the objects being linked to
 
27794
# create a shared library.
 
27795
predep_objects=$lt_predep_objects
 
27796
postdep_objects=$lt_postdep_objects
 
27797
predeps=$lt_predeps
 
27798
postdeps=$lt_postdeps
 
27799
 
 
27800
# The library search path used internally by the compiler when linking
 
27801
# a shared library.
 
27802
compiler_lib_search_path=$lt_compiler_lib_search_path
 
27803
 
 
27804
# ### END LIBTOOL CONFIG
 
27805
 
 
27806
_LT_EOF
 
27807
 
 
27808
  case $host_os in
 
27809
  aix3*)
 
27810
    cat <<\_LT_EOF >> "$cfgfile"
 
27811
# AIX sometimes has problems with the GCC collect2 program.  For some
 
27812
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
27813
# vanish in a puff of smoke.
 
27814
if test "X${COLLECT_NAMES+set}" != Xset; then
 
27815
  COLLECT_NAMES=
 
27816
  export COLLECT_NAMES
 
27817
fi
 
27818
_LT_EOF
 
27819
    ;;
 
27820
  esac
 
27821
 
 
27822
 
 
27823
ltmain="$ac_aux_dir/ltmain.sh"
 
27824
 
 
27825
 
 
27826
  # We use sed instead of cat because bash on DJGPP gets confused if
 
27827
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
27828
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
27829
  # is reportedly fixed, but why not run on old versions too?
 
27830
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
27831
    || (rm -f "$cfgfile"; exit 1)
 
27832
 
 
27833
  case $xsi_shell in
 
27834
  yes)
 
27835
    cat << \_LT_EOF >> "$cfgfile"
 
27836
 
 
27837
# func_dirname file append nondir_replacement
 
27838
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
27839
# otherwise set result to NONDIR_REPLACEMENT.
 
27840
func_dirname ()
 
27841
{
 
27842
  case ${1} in
 
27843
    */*) func_dirname_result="${1%/*}${2}" ;;
 
27844
    *  ) func_dirname_result="${3}" ;;
 
27845
  esac
 
27846
}
 
27847
 
 
27848
# func_basename file
 
27849
func_basename ()
 
27850
{
 
27851
  func_basename_result="${1##*/}"
 
27852
}
 
27853
 
 
27854
# func_dirname_and_basename file append nondir_replacement
 
27855
# perform func_basename and func_dirname in a single function
 
27856
# call:
 
27857
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
27858
#             add APPEND to the result, otherwise set result
 
27859
#             to NONDIR_REPLACEMENT.
 
27860
#             value returned in "$func_dirname_result"
 
27861
#   basename: Compute filename of FILE.
 
27862
#             value retuned in "$func_basename_result"
 
27863
# Implementation must be kept synchronized with func_dirname
 
27864
# and func_basename. For efficiency, we do not delegate to
 
27865
# those functions but instead duplicate the functionality here.
 
27866
func_dirname_and_basename ()
 
27867
{
 
27868
  case ${1} in
 
27869
    */*) func_dirname_result="${1%/*}${2}" ;;
 
27870
    *  ) func_dirname_result="${3}" ;;
 
27871
  esac
 
27872
  func_basename_result="${1##*/}"
 
27873
}
 
27874
 
 
27875
# func_stripname prefix suffix name
 
27876
# strip PREFIX and SUFFIX off of NAME.
 
27877
# PREFIX and SUFFIX must not contain globbing or regex special
 
27878
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
27879
# dot (in which case that matches only a dot).
 
27880
func_stripname ()
 
27881
{
 
27882
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
27883
  # positional parameters, so assign one to ordinary parameter first.
 
27884
  func_stripname_result=${3}
 
27885
  func_stripname_result=${func_stripname_result#"${1}"}
 
27886
  func_stripname_result=${func_stripname_result%"${2}"}
 
27887
}
 
27888
 
 
27889
# func_opt_split
 
27890
func_opt_split ()
 
27891
{
 
27892
  func_opt_split_opt=${1%%=*}
 
27893
  func_opt_split_arg=${1#*=}
 
27894
}
 
27895
 
 
27896
# func_lo2o object
 
27897
func_lo2o ()
 
27898
{
 
27899
  case ${1} in
 
27900
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
27901
    *)    func_lo2o_result=${1} ;;
 
27902
  esac
 
27903
}
 
27904
 
 
27905
# func_xform libobj-or-source
 
27906
func_xform ()
 
27907
{
 
27908
  func_xform_result=${1%.*}.lo
 
27909
}
 
27910
 
 
27911
# func_arith arithmetic-term...
 
27912
func_arith ()
 
27913
{
 
27914
  func_arith_result=$(( $* ))
 
27915
}
 
27916
 
 
27917
# func_len string
 
27918
# STRING may not start with a hyphen.
 
27919
func_len ()
 
27920
{
 
27921
  func_len_result=${#1}
 
27922
}
 
27923
 
 
27924
_LT_EOF
 
27925
    ;;
 
27926
  *) # Bourne compatible functions.
 
27927
    cat << \_LT_EOF >> "$cfgfile"
 
27928
 
 
27929
# func_dirname file append nondir_replacement
 
27930
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
27931
# otherwise set result to NONDIR_REPLACEMENT.
 
27932
func_dirname ()
 
27933
{
 
27934
  # Extract subdirectory from the argument.
 
27935
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
27936
  if test "X$func_dirname_result" = "X${1}"; then
 
27937
    func_dirname_result="${3}"
 
27938
  else
 
27939
    func_dirname_result="$func_dirname_result${2}"
 
27940
  fi
 
27941
}
 
27942
 
 
27943
# func_basename file
 
27944
func_basename ()
 
27945
{
 
27946
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
27947
}
 
27948
 
 
27949
 
 
27950
# func_stripname prefix suffix name
 
27951
# strip PREFIX and SUFFIX off of NAME.
 
27952
# PREFIX and SUFFIX must not contain globbing or regex special
 
27953
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
27954
# dot (in which case that matches only a dot).
 
27955
# func_strip_suffix prefix name
 
27956
func_stripname ()
 
27957
{
 
27958
  case ${2} in
 
27959
    .*) func_stripname_result=`$ECHO "X${3}" \
 
27960
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
27961
    *)  func_stripname_result=`$ECHO "X${3}" \
 
27962
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
27963
  esac
 
27964
}
 
27965
 
 
27966
# sed scripts:
 
27967
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
27968
my_sed_long_arg='1s/^-[^=]*=//'
 
27969
 
 
27970
# func_opt_split
 
27971
func_opt_split ()
 
27972
{
 
27973
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
27974
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
27975
}
 
27976
 
 
27977
# func_lo2o object
 
27978
func_lo2o ()
 
27979
{
 
27980
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
27981
}
 
27982
 
 
27983
# func_xform libobj-or-source
 
27984
func_xform ()
 
27985
{
 
27986
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
27987
}
 
27988
 
 
27989
# func_arith arithmetic-term...
 
27990
func_arith ()
 
27991
{
 
27992
  func_arith_result=`expr "$@"`
 
27993
}
 
27994
 
 
27995
# func_len string
 
27996
# STRING may not start with a hyphen.
 
27997
func_len ()
 
27998
{
 
27999
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
28000
}
 
28001
 
 
28002
_LT_EOF
 
28003
esac
 
28004
 
 
28005
case $lt_shell_append in
 
28006
  yes)
 
28007
    cat << \_LT_EOF >> "$cfgfile"
 
28008
 
 
28009
# func_append var value
 
28010
# Append VALUE to the end of shell variable VAR.
 
28011
func_append ()
 
28012
{
 
28013
  eval "$1+=\$2"
 
28014
}
 
28015
_LT_EOF
 
28016
    ;;
 
28017
  *)
 
28018
    cat << \_LT_EOF >> "$cfgfile"
 
28019
 
 
28020
# func_append var value
 
28021
# Append VALUE to the end of shell variable VAR.
 
28022
func_append ()
 
28023
{
 
28024
  eval "$1=\$$1\$2"
 
28025
}
 
28026
 
 
28027
_LT_EOF
 
28028
    ;;
 
28029
  esac
 
28030
 
 
28031
 
 
28032
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
28033
    || (rm -f "$cfgfile"; exit 1)
 
28034
 
 
28035
  mv -f "$cfgfile" "$ofile" ||
 
28036
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
28037
  chmod +x "$ofile"
 
28038
 
 
28039
 
 
28040
    cat <<_LT_EOF >> "$ofile"
 
28041
 
 
28042
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
28043
 
 
28044
# The linker used to build libraries.
 
28045
LD=$lt_LD_CXX
 
28046
 
 
28047
# Commands used to build an old-style archive.
 
28048
old_archive_cmds=$lt_old_archive_cmds_CXX
 
28049
 
 
28050
# A language specific compiler.
 
28051
CC=$lt_compiler_CXX
 
28052
 
 
28053
# Is the compiler the GNU compiler?
 
28054
with_gcc=$GCC_CXX
 
28055
 
 
28056
# Compiler flag to turn off builtin functions.
 
28057
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
28058
 
 
28059
# How to pass a linker flag through the compiler.
 
28060
wl=$lt_lt_prog_compiler_wl_CXX
 
28061
 
 
28062
# Additional compiler flags for building library objects.
 
28063
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
28064
 
 
28065
# Compiler flag to prevent dynamic linking.
 
28066
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
28067
 
 
28068
# Does compiler simultaneously support -c and -o options?
 
28069
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
28070
 
 
28071
# Whether or not to add -lc for building shared libraries.
 
28072
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
28073
 
 
28074
# Whether or not to disallow shared libs when runtime libs are static.
 
28075
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
28076
 
 
28077
# Compiler flag to allow reflexive dlopens.
 
28078
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
28079
 
 
28080
# Compiler flag to generate shared objects directly from archives.
 
28081
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
28082
 
 
28083
# Whether the compiler copes with passing no objects directly.
 
28084
compiler_needs_object=$lt_compiler_needs_object_CXX
 
28085
 
 
28086
# Create an old-style archive from a shared archive.
 
28087
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
28088
 
 
28089
# Create a temporary old-style archive to link instead of a shared archive.
 
28090
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
28091
 
 
28092
# Commands used to build a shared archive.
 
28093
archive_cmds=$lt_archive_cmds_CXX
 
28094
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
28095
 
 
28096
# Commands used to build a loadable module if different from building
 
28097
# a shared archive.
 
28098
module_cmds=$lt_module_cmds_CXX
 
28099
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
28100
 
 
28101
# Whether we are building with GNU ld or not.
 
28102
with_gnu_ld=$lt_with_gnu_ld_CXX
 
28103
 
 
28104
# Flag that allows shared libraries with undefined symbols to be built.
 
28105
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
28106
 
 
28107
# Flag that enforces no undefined symbols.
 
28108
no_undefined_flag=$lt_no_undefined_flag_CXX
 
28109
 
 
28110
# Flag to hardcode \$libdir into a binary during linking.
 
28111
# This must work even if \$libdir does not exist
 
28112
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
28113
 
 
28114
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
28115
# during linking.  This must work even if \$libdir does not exist.
 
28116
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
28117
 
 
28118
# Whether we need a single "-rpath" flag with a separated argument.
 
28119
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
28120
 
 
28121
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
28122
# DIR into the resulting binary.
 
28123
hardcode_direct=$hardcode_direct_CXX
 
28124
 
 
28125
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
28126
# DIR into the resulting binary and the resulting library dependency is
 
28127
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
28128
# library is relocated.
 
28129
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
28130
 
 
28131
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
28132
# into the resulting binary.
 
28133
hardcode_minus_L=$hardcode_minus_L_CXX
 
28134
 
 
28135
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
28136
# into the resulting binary.
 
28137
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
28138
 
 
28139
# Set to "yes" if building a shared library automatically hardcodes DIR
 
28140
# into the library and all subsequent libraries and executables linked
 
28141
# against it.
 
28142
hardcode_automatic=$hardcode_automatic_CXX
 
28143
 
 
28144
# Set to yes if linker adds runtime paths of dependent libraries
 
28145
# to runtime path list.
 
28146
inherit_rpath=$inherit_rpath_CXX
 
28147
 
 
28148
# Whether libtool must link a program against all its dependency libraries.
 
28149
link_all_deplibs=$link_all_deplibs_CXX
 
28150
 
 
28151
# Fix the shell variable \$srcfile for the compiler.
 
28152
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
28153
 
 
28154
# Set to "yes" if exported symbols are required.
 
28155
always_export_symbols=$always_export_symbols_CXX
 
28156
 
 
28157
# The commands to list exported symbols.
 
28158
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
28159
 
 
28160
# Symbols that should not be listed in the preloaded symbols.
 
28161
exclude_expsyms=$lt_exclude_expsyms_CXX
 
28162
 
 
28163
# Symbols that must always be exported.
 
28164
include_expsyms=$lt_include_expsyms_CXX
 
28165
 
 
28166
# Commands necessary for linking programs (against libraries) with templates.
 
28167
prelink_cmds=$lt_prelink_cmds_CXX
 
28168
 
 
28169
# Specify filename containing input files.
 
28170
file_list_spec=$lt_file_list_spec_CXX
 
28171
 
 
28172
# How to hardcode a shared library path into an executable.
 
28173
hardcode_action=$hardcode_action_CXX
 
28174
 
 
28175
# The directories searched by this compiler when creating a shared library.
 
28176
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
28177
 
 
28178
# Dependencies to place before and after the objects being linked to
 
28179
# create a shared library.
 
28180
predep_objects=$lt_predep_objects_CXX
 
28181
postdep_objects=$lt_postdep_objects_CXX
 
28182
predeps=$lt_predeps_CXX
 
28183
postdeps=$lt_postdeps_CXX
 
28184
 
 
28185
# The library search path used internally by the compiler when linking
 
28186
# a shared library.
 
28187
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
28188
 
 
28189
# ### END LIBTOOL TAG CONFIG: CXX
 
28190
_LT_EOF
 
28191
 
 
28192
 ;;
26329
28193
 
26330
28194
  esac
26331
28195
done # for ac_tag
26367
28231
echo "   * Host CPU:                  $host_cpu"
26368
28232
echo "   * C Compiler:                $CC_VERSION"
26369
28233
echo "   * Assertions enabled:        $ac_cv_assert"
26370
 
echo "   * Debug enabled:             $ac_enable_debug"
26371
 
echo "   * Warnings as failure:       $ac_warn_fail"
 
28234
echo "   * Debug enabled:             $with_debug"
 
28235
echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
26372
28236
echo ""
26373
28237
echo "---"
26374