~serge-hallyn/ubuntu/natty/lxc/lxc-fix-3bugs

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter, Stéphane Graber, Guido Trotter
  • Date: 2010-01-10 10:40:21 UTC
  • mfrom: (1.1.2 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100110104021-z8rj5zw5mlvra08l
Tags: 0.6.4-1
[ Stéphane Graber ]
* Upgrade standards-version to 3.8.3
* Drop the copy of etc/* from rules as "etc" is no longer in the tarball

[ Guido Trotter ]
* New Upstream Version
* Update libcap2-dev dependency to libcap-dev
* Install upstream-built man pages via debian/lxc.manpages
* Drop unneeded docbook-utils build dependency

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 lxc 0.6.3.
 
3
# Generated by GNU Autoconf 2.61 for lxc 0.6.4.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
549
549
 
550
550
 
551
551
 
552
 
 
553
 
# Check that we are running under the correct shell.
554
 
SHELL=${CONFIG_SHELL-/bin/sh}
555
 
 
556
 
case X$ECHO in
557
 
X*--fallback-echo)
558
 
  # Remove one level of quotation (which was required for Make).
559
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
 
  ;;
561
 
esac
562
 
 
563
 
echo=${ECHO-echo}
564
 
if test "X$1" = X--no-reexec; then
565
 
  # Discard the --no-reexec flag, and continue.
566
 
  shift
567
 
elif test "X$1" = X--fallback-echo; then
568
 
  # Avoid inline document here, it may be left over
569
 
  :
570
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
 
  # Yippee, $echo works!
572
 
  :
573
 
else
574
 
  # Restart under the correct shell.
575
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
576
 
fi
577
 
 
578
 
if test "X$1" = X--fallback-echo; then
579
 
  # used as fallback echo
580
 
  shift
581
 
  cat <<EOF
582
 
$*
583
 
EOF
584
 
  exit 0
585
 
fi
586
 
 
587
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
588
 
# if CDPATH is set.
589
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
 
 
591
 
if test -z "$ECHO"; then
592
 
if test "X${echo_test_string+set}" != Xset; then
593
 
# find a string as large as possible, as long as the shell can cope with it
594
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
 
       echo_test_string=`eval $cmd` &&
598
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599
 
    then
600
 
      break
601
 
    fi
602
 
  done
603
 
fi
604
 
 
605
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
608
 
  :
609
 
else
610
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
611
 
  # backslashes.  This makes it impossible to quote backslashes using
612
 
  #   echo "$something" | sed 's/\\/\\\\/g'
613
 
  #
614
 
  # So, first we look for a working echo in the user's PATH.
615
 
 
616
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
 
  for dir in $PATH /usr/ucb; do
618
 
    IFS="$lt_save_ifs"
619
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
623
 
      echo="$dir/echo"
624
 
      break
625
 
    fi
626
 
  done
627
 
  IFS="$lt_save_ifs"
628
 
 
629
 
  if test "X$echo" = Xecho; then
630
 
    # We didn't find a better echo, so look for alternatives.
631
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
634
 
      # This shell has a builtin print -r that does the trick.
635
 
      echo='print -r'
636
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
638
 
      # If we have ksh, try running configure again with it.
639
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
 
      export ORIGINAL_CONFIG_SHELL
641
 
      CONFIG_SHELL=/bin/ksh
642
 
      export CONFIG_SHELL
643
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
 
    else
645
 
      # Try using printf.
646
 
      echo='printf %s\n'
647
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
650
 
        # Cool, printf works
651
 
        :
652
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
 
           test "X$echo_testing_string" = 'X\t' &&
654
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
656
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
 
        export CONFIG_SHELL
658
 
        SHELL="$CONFIG_SHELL"
659
 
        export SHELL
660
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
661
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
 
           test "X$echo_testing_string" = 'X\t' &&
663
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
665
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
666
 
      else
667
 
        # maybe with a smaller string...
668
 
        prev=:
669
 
 
670
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672
 
          then
673
 
            break
674
 
          fi
675
 
          prev="$cmd"
676
 
        done
677
 
 
678
 
        if test "$prev" != 'sed 50q "$0"'; then
679
 
          echo_test_string=`eval $prev`
680
 
          export echo_test_string
681
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
 
        else
683
 
          # Oops.  We lost completely, so just stick with echo.
684
 
          echo=echo
685
 
        fi
686
 
      fi
687
 
    fi
688
 
  fi
689
 
fi
690
 
fi
691
 
 
692
 
# Copy echo and quote the copy suitably for passing to libtool from
693
 
# the Makefile, instead of quoting the original, which is used later.
694
 
ECHO=$echo
695
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697
 
fi
698
 
 
699
 
 
700
 
 
701
 
 
702
 
tagnames=${tagnames+${tagnames},}CXX
703
 
 
704
 
tagnames=${tagnames+${tagnames},}F77
705
 
 
706
552
exec 7<&0 </dev/null 6>&1
707
553
 
708
554
# Name of the host.
726
572
# Identity of this package.
727
573
PACKAGE_NAME='lxc'
728
574
PACKAGE_TARNAME='lxc'
729
 
PACKAGE_VERSION='0.6.3'
730
 
PACKAGE_STRING='lxc 0.6.3'
 
575
PACKAGE_VERSION='0.6.4'
 
576
PACKAGE_STRING='lxc 0.6.4'
731
577
PACKAGE_BUGREPORT=''
732
578
 
733
579
ac_unique_file="configure.ac"
850
696
CCDEPMODE
851
697
am__fastdepCC_TRUE
852
698
am__fastdepCC_FALSE
853
 
SED
854
 
GREP
855
 
EGREP
856
 
LN_S
857
 
ECHO
858
 
AR
859
 
RANLIB
860
 
DSYMUTIL
861
 
NMEDIT
862
 
CPP
863
 
CXX
864
 
CXXFLAGS
865
 
ac_ct_CXX
866
 
CXXDEPMODE
867
 
am__fastdepCXX_TRUE
868
 
am__fastdepCXX_FALSE
869
 
CXXCPP
870
 
F77
871
 
FFLAGS
872
 
ac_ct_F77
873
 
LIBTOOL
874
699
SETCAP
875
 
DOCBOOK
 
700
have_docbook
876
701
ENABLE_DOCBOOK_TRUE
877
702
ENABLE_DOCBOOK_FALSE
 
703
ENABLE_EXAMPLES_TRUE
 
704
ENABLE_EXAMPLES_FALSE
878
705
PREFIX
879
706
LIBDIR
880
707
BINDIR
883
710
SYSCONFDIR
884
711
DATADIR
885
712
LOCALSTATEDIR
 
713
DOCDIR
 
714
LXC_GENERATE_DATE
886
715
LXCPATH
887
 
LXC_GENERATE_DATE
888
 
ENABLE_TEST_TRUE
889
 
ENABLE_TEST_FALSE
890
 
LXC_MAJOR_VERSION
891
 
LXC_MINOR_VERSION
892
 
LXC_MICRO_VERSION
 
716
CPP
 
717
GREP
 
718
EGREP
893
719
LIBOBJS
894
720
LTLIBOBJS'
895
721
ac_subst_files=''
901
727
LDFLAGS
902
728
LIBS
903
729
CPPFLAGS
904
 
CPP
905
 
CXX
906
 
CXXFLAGS
907
 
CCC
908
 
CXXCPP
909
 
F77
910
 
FFLAGS'
 
730
CPP'
911
731
 
912
732
 
913
733
# Initialize some variables set by options.
1410
1230
  # Omit some internal or obsolete options to make the list less imposing.
1411
1231
  # This message is too long to be a string in the A/UX 3.1 sh.
1412
1232
  cat <<_ACEOF
1413
 
\`configure' configures lxc 0.6.3 to adapt to many kinds of systems.
 
1233
\`configure' configures lxc 0.6.4 to adapt to many kinds of systems.
1414
1234
 
1415
1235
Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1236
 
1480
1300
 
1481
1301
if test -n "$ac_init_help"; then
1482
1302
  case $ac_init_help in
1483
 
     short | recursive ) echo "Configuration of lxc 0.6.3:";;
 
1303
     short | recursive ) echo "Configuration of lxc 0.6.4:";;
1484
1304
   esac
1485
1305
  cat <<\_ACEOF
1486
1306
 
1489
1309
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490
1310
  --disable-dependency-tracking  speeds up one-time build
1491
1311
  --enable-dependency-tracking   do not reject slow dependency extractors
1492
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1494
 
  --enable-fast-install[=PKGS]
1495
 
                          optimize for fast installation [default=yes]
1496
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1497
 
  --enable-test    compile test program default=no
 
1312
  --enable-doc            make mans (require docbook2man installed)
 
1313
                          [default=auto]
 
1314
  --disable-examples      do not install configuration examples
1498
1315
 
1499
1316
Optional Packages:
1500
1317
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501
1318
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1504
 
                          both]
1505
 
  --with-tags[=TAGS]      include additional configurations [automatic]
1506
 
  --with-kernel-release=RELEASE
1507
 
                          specify the "uname -r"-value to build for
 
1319
  --with-config-path=dir  lxc configuration repository
1508
1320
 
1509
1321
Some influential environment variables:
1510
1322
  CC          C compiler command
1515
1327
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516
1328
              you have headers in a nonstandard directory <include dir>
1517
1329
  CPP         C preprocessor
1518
 
  CXX         C++ compiler command
1519
 
  CXXFLAGS    C++ compiler flags
1520
 
  CXXCPP      C++ preprocessor
1521
 
  F77         Fortran 77 compiler command
1522
 
  FFLAGS      Fortran 77 compiler flags
1523
1330
 
1524
1331
Use these variables to override the choices made by `configure' or to help
1525
1332
it to find libraries and programs with nonstandard names/locations.
1584
1391
test -n "$ac_init_help" && exit $ac_status
1585
1392
if $ac_init_version; then
1586
1393
  cat <<\_ACEOF
1587
 
lxc configure 0.6.3
 
1394
lxc configure 0.6.4
1588
1395
generated by GNU Autoconf 2.61
1589
1396
 
1590
1397
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598
1405
This file contains any messages produced by compilers while
1599
1406
running configure, to aid debugging if configure makes a mistake.
1600
1407
 
1601
 
It was created by lxc $as_me 0.6.3, which was
 
1408
It was created by lxc $as_me 0.6.4, which was
1602
1409
generated by GNU Autoconf 2.61.  Invocation command line was
1603
1410
 
1604
1411
  $ $0 $@
2292
2099
 
2293
2100
# Define the identity of the package.
2294
2101
 PACKAGE='lxc'
2295
 
 VERSION='0.6.3'
 
2102
 VERSION='0.6.4'
2296
2103
 
2297
2104
 
2298
2105
cat >>confdefs.h <<_ACEOF
3742
3549
_ACEOF
3743
3550
 
3744
3551
 
3745
 
# Check whether --enable-shared was given.
3746
 
if test "${enable_shared+set}" = set; then
3747
 
  enableval=$enable_shared; p=${PACKAGE-default}
3748
 
    case $enableval in
3749
 
    yes) enable_shared=yes ;;
3750
 
    no) enable_shared=no ;;
3751
 
    *)
3752
 
      enable_shared=no
3753
 
      # Look at the argument we got.  We use all the common list separators.
3754
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3755
 
      for pkg in $enableval; do
3756
 
        IFS="$lt_save_ifs"
3757
 
        if test "X$pkg" = "X$p"; then
3758
 
          enable_shared=yes
3759
 
        fi
3760
 
      done
3761
 
      IFS="$lt_save_ifs"
3762
 
      ;;
3763
 
    esac
3764
 
else
3765
 
  enable_shared=yes
3766
 
fi
3767
 
 
3768
 
 
3769
 
# Check whether --enable-static was given.
3770
 
if test "${enable_static+set}" = set; then
3771
 
  enableval=$enable_static; p=${PACKAGE-default}
3772
 
    case $enableval in
3773
 
    yes) enable_static=yes ;;
3774
 
    no) enable_static=no ;;
3775
 
    *)
3776
 
     enable_static=no
3777
 
      # Look at the argument we got.  We use all the common list separators.
3778
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3779
 
      for pkg in $enableval; do
3780
 
        IFS="$lt_save_ifs"
3781
 
        if test "X$pkg" = "X$p"; then
3782
 
          enable_static=yes
3783
 
        fi
3784
 
      done
3785
 
      IFS="$lt_save_ifs"
3786
 
      ;;
3787
 
    esac
3788
 
else
3789
 
  enable_static=yes
3790
 
fi
3791
 
 
3792
 
 
3793
 
# Check whether --enable-fast-install was given.
3794
 
if test "${enable_fast_install+set}" = set; then
3795
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
3796
 
    case $enableval in
3797
 
    yes) enable_fast_install=yes ;;
3798
 
    no) enable_fast_install=no ;;
3799
 
    *)
3800
 
      enable_fast_install=no
3801
 
      # Look at the argument we got.  We use all the common list separators.
3802
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3803
 
      for pkg in $enableval; do
3804
 
        IFS="$lt_save_ifs"
3805
 
        if test "X$pkg" = "X$p"; then
3806
 
          enable_fast_install=yes
3807
 
        fi
3808
 
      done
3809
 
      IFS="$lt_save_ifs"
3810
 
      ;;
3811
 
    esac
3812
 
else
3813
 
  enable_fast_install=yes
3814
 
fi
3815
 
 
3816
 
 
3817
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3818
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3819
 
if test "${lt_cv_path_SED+set}" = set; then
3820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3821
 
else
3822
 
  # Loop through the user's path and test for sed and gsed.
3823
 
# Then use that list of sed's as ones to test for truncation.
 
3552
# Extract the first word of "setcap", so it can be a program name with args.
 
3553
set dummy setcap; ac_word=$2
 
3554
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3556
if test "${ac_cv_prog_SETCAP+set}" = set; then
 
3557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3558
else
 
3559
  if test -n "$SETCAP"; then
 
3560
  ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
 
3561
else
 
3562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3563
for as_dir in $PATH$PATH_SEPARATOR/sbin
 
3564
do
 
3565
  IFS=$as_save_IFS
 
3566
  test -z "$as_dir" && as_dir=.
 
3567
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3569
    ac_cv_prog_SETCAP="yes"
 
3570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3571
    break 2
 
3572
  fi
 
3573
done
 
3574
done
 
3575
IFS=$as_save_IFS
 
3576
 
 
3577
  test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
 
3578
fi
 
3579
fi
 
3580
SETCAP=$ac_cv_prog_SETCAP
 
3581
if test -n "$SETCAP"; then
 
3582
  { echo "$as_me:$LINENO: result: $SETCAP" >&5
 
3583
echo "${ECHO_T}$SETCAP" >&6; }
 
3584
else
 
3585
  { echo "$as_me:$LINENO: result: no" >&5
 
3586
echo "${ECHO_T}no" >&6; }
 
3587
fi
 
3588
 
 
3589
 
 
3590
 
 
3591
# Check whether --enable-doc was given.
 
3592
if test "${enable_doc+set}" = set; then
 
3593
  enableval=$enable_doc;
 
3594
else
 
3595
  enable_doc=auto
 
3596
fi
 
3597
 
 
3598
 
 
3599
if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
 
3600
        # Extract the first word of "docbook2man", so it can be a program name with args.
 
3601
set dummy docbook2man; ac_word=$2
 
3602
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3604
if test "${ac_cv_prog_have_docbook+set}" = set; then
 
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3606
else
 
3607
  if test -n "$have_docbook"; then
 
3608
  ac_cv_prog_have_docbook="$have_docbook" # Let the user override the test.
 
3609
else
3824
3610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825
3611
for as_dir in $PATH
3826
3612
do
3827
3613
  IFS=$as_save_IFS
3828
3614
  test -z "$as_dir" && as_dir=.
3829
 
  for lt_ac_prog in sed gsed; do
3830
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3831
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3832
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3833
 
      fi
3834
 
    done
3835
 
  done
 
3615
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3617
    ac_cv_prog_have_docbook="yes"
 
3618
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3619
    break 2
 
3620
  fi
 
3621
done
3836
3622
done
3837
3623
IFS=$as_save_IFS
3838
 
lt_ac_max=0
3839
 
lt_ac_count=0
3840
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3841
 
# along with /bin/sed that truncates output.
3842
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3843
 
  test ! -f $lt_ac_sed && continue
3844
 
  cat /dev/null > conftest.in
3845
 
  lt_ac_count=0
3846
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3847
 
  # Check for GNU sed and select it if it is found.
3848
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3849
 
    lt_cv_path_SED=$lt_ac_sed
3850
 
    break
3851
 
  fi
3852
 
  while true; do
3853
 
    cat conftest.in conftest.in >conftest.tmp
3854
 
    mv conftest.tmp conftest.in
3855
 
    cp conftest.in conftest.nl
3856
 
    echo >>conftest.nl
3857
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3858
 
    cmp -s conftest.out conftest.nl || break
3859
 
    # 10000 chars as input seems more than enough
3860
 
    test $lt_ac_count -gt 10 && break
3861
 
    lt_ac_count=`expr $lt_ac_count + 1`
3862
 
    if test $lt_ac_count -gt $lt_ac_max; then
3863
 
      lt_ac_max=$lt_ac_count
3864
 
      lt_cv_path_SED=$lt_ac_sed
3865
 
    fi
3866
 
  done
3867
 
done
3868
 
 
3869
 
fi
3870
 
 
3871
 
SED=$lt_cv_path_SED
3872
 
 
3873
 
{ echo "$as_me:$LINENO: result: $SED" >&5
3874
 
echo "${ECHO_T}$SED" >&6; }
 
3624
 
 
3625
  test -z "$ac_cv_prog_have_docbook" && ac_cv_prog_have_docbook="no"
 
3626
fi
 
3627
fi
 
3628
have_docbook=$ac_cv_prog_have_docbook
 
3629
if test -n "$have_docbook"; then
 
3630
  { echo "$as_me:$LINENO: result: $have_docbook" >&5
 
3631
echo "${ECHO_T}$have_docbook" >&6; }
 
3632
else
 
3633
  { echo "$as_me:$LINENO: result: no" >&5
 
3634
echo "${ECHO_T}no" >&6; }
 
3635
fi
 
3636
 
 
3637
 
 
3638
 
 
3639
        test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
 
3640
                { { echo "$as_me:$LINENO: error: docbook2man required by man request, but not found" >&5
 
3641
echo "$as_me: error: docbook2man required by man request, but not found" >&2;}
 
3642
   { (exit 1); exit 1; }; }
 
3643
fi
 
3644
 
 
3645
 if test "x$have_docbook" = "xyes"; then
 
3646
  ENABLE_DOCBOOK_TRUE=
 
3647
  ENABLE_DOCBOOK_FALSE='#'
 
3648
else
 
3649
  ENABLE_DOCBOOK_TRUE='#'
 
3650
  ENABLE_DOCBOOK_FALSE=
 
3651
fi
 
3652
 
 
3653
 
 
3654
# Check whether --enable-examples was given.
 
3655
if test "${enable_examples+set}" = set; then
 
3656
  enableval=$enable_examples;
 
3657
else
 
3658
  enable_examples=yes
 
3659
fi
 
3660
 
 
3661
 
 
3662
 if test "x$enable_examples" = "xyes"; then
 
3663
  ENABLE_EXAMPLES_TRUE=
 
3664
  ENABLE_EXAMPLES_FALSE='#'
 
3665
else
 
3666
  ENABLE_EXAMPLES_TRUE='#'
 
3667
  ENABLE_EXAMPLES_FALSE=
 
3668
fi
 
3669
 
 
3670
 
 
3671
 
 
3672
    EXP_VAR=PREFIX
 
3673
    FROM_VAR=$prefix
 
3674
 
 
3675
        prefix_save=$prefix
 
3676
    exec_prefix_save=$exec_prefix
 
3677
 
 
3678
        if test "x$prefix" = "xNONE"; then
 
3679
        prefix="$ac_default_prefix"
 
3680
    fi
 
3681
        if test "x$exec_prefix" = "xNONE"; then
 
3682
        exec_prefix=$prefix
 
3683
    fi
 
3684
 
 
3685
    full_var="$FROM_VAR"
 
3686
        while true; do
 
3687
        new_full_var="`eval echo $full_var`"
 
3688
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3689
        full_var=$new_full_var
 
3690
    done
 
3691
 
 
3692
        full_var=$new_full_var
 
3693
    PREFIX="$full_var"
 
3694
 
 
3695
 
 
3696
        prefix=$prefix_save
 
3697
    exec_prefix=$exec_prefix_save
 
3698
 
 
3699
 
 
3700
    EXP_VAR=LIBDIR
 
3701
    FROM_VAR=$libdir
 
3702
 
 
3703
        prefix_save=$prefix
 
3704
    exec_prefix_save=$exec_prefix
 
3705
 
 
3706
        if test "x$prefix" = "xNONE"; then
 
3707
        prefix="$ac_default_prefix"
 
3708
    fi
 
3709
        if test "x$exec_prefix" = "xNONE"; then
 
3710
        exec_prefix=$prefix
 
3711
    fi
 
3712
 
 
3713
    full_var="$FROM_VAR"
 
3714
        while true; do
 
3715
        new_full_var="`eval echo $full_var`"
 
3716
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3717
        full_var=$new_full_var
 
3718
    done
 
3719
 
 
3720
        full_var=$new_full_var
 
3721
    LIBDIR="$full_var"
 
3722
 
 
3723
 
 
3724
        prefix=$prefix_save
 
3725
    exec_prefix=$exec_prefix_save
 
3726
 
 
3727
 
 
3728
    EXP_VAR=BINDIR
 
3729
    FROM_VAR=$bindir
 
3730
 
 
3731
        prefix_save=$prefix
 
3732
    exec_prefix_save=$exec_prefix
 
3733
 
 
3734
        if test "x$prefix" = "xNONE"; then
 
3735
        prefix="$ac_default_prefix"
 
3736
    fi
 
3737
        if test "x$exec_prefix" = "xNONE"; then
 
3738
        exec_prefix=$prefix
 
3739
    fi
 
3740
 
 
3741
    full_var="$FROM_VAR"
 
3742
        while true; do
 
3743
        new_full_var="`eval echo $full_var`"
 
3744
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3745
        full_var=$new_full_var
 
3746
    done
 
3747
 
 
3748
        full_var=$new_full_var
 
3749
    BINDIR="$full_var"
 
3750
 
 
3751
 
 
3752
        prefix=$prefix_save
 
3753
    exec_prefix=$exec_prefix_save
 
3754
 
 
3755
 
 
3756
    EXP_VAR=INCLUDEDIR
 
3757
    FROM_VAR=$includedir
 
3758
 
 
3759
        prefix_save=$prefix
 
3760
    exec_prefix_save=$exec_prefix
 
3761
 
 
3762
        if test "x$prefix" = "xNONE"; then
 
3763
        prefix="$ac_default_prefix"
 
3764
    fi
 
3765
        if test "x$exec_prefix" = "xNONE"; then
 
3766
        exec_prefix=$prefix
 
3767
    fi
 
3768
 
 
3769
    full_var="$FROM_VAR"
 
3770
        while true; do
 
3771
        new_full_var="`eval echo $full_var`"
 
3772
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3773
        full_var=$new_full_var
 
3774
    done
 
3775
 
 
3776
        full_var=$new_full_var
 
3777
    INCLUDEDIR="$full_var"
 
3778
 
 
3779
 
 
3780
        prefix=$prefix_save
 
3781
    exec_prefix=$exec_prefix_save
 
3782
 
 
3783
 
 
3784
    EXP_VAR=LIBEXECDIR
 
3785
    FROM_VAR=$libexecdir
 
3786
 
 
3787
        prefix_save=$prefix
 
3788
    exec_prefix_save=$exec_prefix
 
3789
 
 
3790
        if test "x$prefix" = "xNONE"; then
 
3791
        prefix="$ac_default_prefix"
 
3792
    fi
 
3793
        if test "x$exec_prefix" = "xNONE"; then
 
3794
        exec_prefix=$prefix
 
3795
    fi
 
3796
 
 
3797
    full_var="$FROM_VAR"
 
3798
        while true; do
 
3799
        new_full_var="`eval echo $full_var`"
 
3800
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3801
        full_var=$new_full_var
 
3802
    done
 
3803
 
 
3804
        full_var=$new_full_var
 
3805
    LIBEXECDIR="$full_var"
 
3806
 
 
3807
 
 
3808
        prefix=$prefix_save
 
3809
    exec_prefix=$exec_prefix_save
 
3810
 
 
3811
 
 
3812
    EXP_VAR=SYSCONFDIR
 
3813
    FROM_VAR=$sysconfdir
 
3814
 
 
3815
        prefix_save=$prefix
 
3816
    exec_prefix_save=$exec_prefix
 
3817
 
 
3818
        if test "x$prefix" = "xNONE"; then
 
3819
        prefix="$ac_default_prefix"
 
3820
    fi
 
3821
        if test "x$exec_prefix" = "xNONE"; then
 
3822
        exec_prefix=$prefix
 
3823
    fi
 
3824
 
 
3825
    full_var="$FROM_VAR"
 
3826
        while true; do
 
3827
        new_full_var="`eval echo $full_var`"
 
3828
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3829
        full_var=$new_full_var
 
3830
    done
 
3831
 
 
3832
        full_var=$new_full_var
 
3833
    SYSCONFDIR="$full_var"
 
3834
 
 
3835
 
 
3836
        prefix=$prefix_save
 
3837
    exec_prefix=$exec_prefix_save
 
3838
 
 
3839
 
 
3840
    EXP_VAR=DATADIR
 
3841
    FROM_VAR=$datadir
 
3842
 
 
3843
        prefix_save=$prefix
 
3844
    exec_prefix_save=$exec_prefix
 
3845
 
 
3846
        if test "x$prefix" = "xNONE"; then
 
3847
        prefix="$ac_default_prefix"
 
3848
    fi
 
3849
        if test "x$exec_prefix" = "xNONE"; then
 
3850
        exec_prefix=$prefix
 
3851
    fi
 
3852
 
 
3853
    full_var="$FROM_VAR"
 
3854
        while true; do
 
3855
        new_full_var="`eval echo $full_var`"
 
3856
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3857
        full_var=$new_full_var
 
3858
    done
 
3859
 
 
3860
        full_var=$new_full_var
 
3861
    DATADIR="$full_var"
 
3862
 
 
3863
 
 
3864
        prefix=$prefix_save
 
3865
    exec_prefix=$exec_prefix_save
 
3866
 
 
3867
 
 
3868
    EXP_VAR=LOCALSTATEDIR
 
3869
    FROM_VAR=$localstatedir
 
3870
 
 
3871
        prefix_save=$prefix
 
3872
    exec_prefix_save=$exec_prefix
 
3873
 
 
3874
        if test "x$prefix" = "xNONE"; then
 
3875
        prefix="$ac_default_prefix"
 
3876
    fi
 
3877
        if test "x$exec_prefix" = "xNONE"; then
 
3878
        exec_prefix=$prefix
 
3879
    fi
 
3880
 
 
3881
    full_var="$FROM_VAR"
 
3882
        while true; do
 
3883
        new_full_var="`eval echo $full_var`"
 
3884
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3885
        full_var=$new_full_var
 
3886
    done
 
3887
 
 
3888
        full_var=$new_full_var
 
3889
    LOCALSTATEDIR="$full_var"
 
3890
 
 
3891
 
 
3892
        prefix=$prefix_save
 
3893
    exec_prefix=$exec_prefix_save
 
3894
 
 
3895
 
 
3896
    EXP_VAR=DOCDIR
 
3897
    FROM_VAR=$docdir
 
3898
 
 
3899
        prefix_save=$prefix
 
3900
    exec_prefix_save=$exec_prefix
 
3901
 
 
3902
        if test "x$prefix" = "xNONE"; then
 
3903
        prefix="$ac_default_prefix"
 
3904
    fi
 
3905
        if test "x$exec_prefix" = "xNONE"; then
 
3906
        exec_prefix=$prefix
 
3907
    fi
 
3908
 
 
3909
    full_var="$FROM_VAR"
 
3910
        while true; do
 
3911
        new_full_var="`eval echo $full_var`"
 
3912
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3913
        full_var=$new_full_var
 
3914
    done
 
3915
 
 
3916
        full_var=$new_full_var
 
3917
    DOCDIR="$full_var"
 
3918
 
 
3919
 
 
3920
        prefix=$prefix_save
 
3921
    exec_prefix=$exec_prefix_save
 
3922
 
 
3923
 
 
3924
 
 
3925
# Check whether --with-config-path was given.
 
3926
if test "${with_config_path+set}" = set; then
 
3927
  withval=$with_config_path;
 
3928
else
 
3929
  with_config_path="${localstatedir}/lib/lxc"
 
3930
fi
 
3931
 
 
3932
 
 
3933
 
 
3934
    EXP_VAR=LXC_GENERATE_DATE
 
3935
    FROM_VAR="$(date)"
 
3936
 
 
3937
        prefix_save=$prefix
 
3938
    exec_prefix_save=$exec_prefix
 
3939
 
 
3940
        if test "x$prefix" = "xNONE"; then
 
3941
        prefix="$ac_default_prefix"
 
3942
    fi
 
3943
        if test "x$exec_prefix" = "xNONE"; then
 
3944
        exec_prefix=$prefix
 
3945
    fi
 
3946
 
 
3947
    full_var="$FROM_VAR"
 
3948
        while true; do
 
3949
        new_full_var="`eval echo $full_var`"
 
3950
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3951
        full_var=$new_full_var
 
3952
    done
 
3953
 
 
3954
        full_var=$new_full_var
 
3955
    LXC_GENERATE_DATE="$full_var"
 
3956
 
 
3957
 
 
3958
        prefix=$prefix_save
 
3959
    exec_prefix=$exec_prefix_save
 
3960
 
 
3961
 
 
3962
    EXP_VAR=LXCPATH
 
3963
    FROM_VAR="${with_config_path}"
 
3964
 
 
3965
        prefix_save=$prefix
 
3966
    exec_prefix_save=$exec_prefix
 
3967
 
 
3968
        if test "x$prefix" = "xNONE"; then
 
3969
        prefix="$ac_default_prefix"
 
3970
    fi
 
3971
        if test "x$exec_prefix" = "xNONE"; then
 
3972
        exec_prefix=$prefix
 
3973
    fi
 
3974
 
 
3975
    full_var="$FROM_VAR"
 
3976
        while true; do
 
3977
        new_full_var="`eval echo $full_var`"
 
3978
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
3979
        full_var=$new_full_var
 
3980
    done
 
3981
 
 
3982
        full_var=$new_full_var
 
3983
    LXCPATH="$full_var"
 
3984
 
 
3985
 
 
3986
        prefix=$prefix_save
 
3987
    exec_prefix=$exec_prefix_save
 
3988
 
 
3989
 
 
3990
 
 
3991
 
 
3992
 
 
3993
cat >>confdefs.h <<_ACEOF
 
3994
#define LXCPATH "$LXCPATH"
 
3995
_ACEOF
 
3996
 
 
3997
cat >>confdefs.h <<_ACEOF
 
3998
#define LXCLIBEXECDIR "$LIBEXECDIR"
 
3999
_ACEOF
 
4000
 
 
4001
 
 
4002
 
 
4003
 
 
4004
 
 
4005
for ac_header in linux/netlink.h linux/genetlink.h
 
4006
do
 
4007
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4008
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4010
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4012
else
 
4013
  cat >conftest.$ac_ext <<_ACEOF
 
4014
/* confdefs.h.  */
 
4015
_ACEOF
 
4016
cat confdefs.h >>conftest.$ac_ext
 
4017
cat >>conftest.$ac_ext <<_ACEOF
 
4018
/* end confdefs.h.  */
 
4019
#include <sys/socket.h>
 
4020
 
 
4021
 
 
4022
#include <$ac_header>
 
4023
_ACEOF
 
4024
rm -f conftest.$ac_objext
 
4025
if { (ac_try="$ac_compile"
 
4026
case "(($ac_try" in
 
4027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4028
  *) ac_try_echo=$ac_try;;
 
4029
esac
 
4030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4031
  (eval "$ac_compile") 2>conftest.er1
 
4032
  ac_status=$?
 
4033
  grep -v '^ *+' conftest.er1 >conftest.err
 
4034
  rm -f conftest.er1
 
4035
  cat conftest.err >&5
 
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4037
  (exit $ac_status); } && {
 
4038
         test -z "$ac_c_werror_flag" ||
 
4039
         test ! -s conftest.err
 
4040
       } && test -s conftest.$ac_objext; then
 
4041
  eval "$as_ac_Header=yes"
 
4042
else
 
4043
  echo "$as_me: failed program was:" >&5
 
4044
sed 's/^/| /' conftest.$ac_ext >&5
 
4045
 
 
4046
        eval "$as_ac_Header=no"
 
4047
fi
 
4048
 
 
4049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4050
fi
 
4051
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4052
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4053
echo "${ECHO_T}$ac_res" >&6; }
 
4054
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4055
  cat >>confdefs.h <<_ACEOF
 
4056
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4057
_ACEOF
 
4058
 
 
4059
else
 
4060
  { { echo "$as_me:$LINENO: error: netlink headers not found. Please install the linux kernel headers." >&5
 
4061
echo "$as_me: error: netlink headers not found. Please install the linux kernel headers." >&2;}
 
4062
   { (exit 1); exit 1; }; }
 
4063
fi
 
4064
 
 
4065
done
 
4066
 
 
4067
 
 
4068
 
 
4069
for ac_header in sys/capability.h
 
4070
do
 
4071
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4072
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4074
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4076
else
 
4077
  cat >conftest.$ac_ext <<_ACEOF
 
4078
/* confdefs.h.  */
 
4079
_ACEOF
 
4080
cat confdefs.h >>conftest.$ac_ext
 
4081
cat >>conftest.$ac_ext <<_ACEOF
 
4082
/* end confdefs.h.  */
 
4083
#include <sys/types.h>
 
4084
#include <sys/capability.h>
 
4085
 
 
4086
#include <$ac_header>
 
4087
_ACEOF
 
4088
rm -f conftest.$ac_objext
 
4089
if { (ac_try="$ac_compile"
 
4090
case "(($ac_try" in
 
4091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4092
  *) ac_try_echo=$ac_try;;
 
4093
esac
 
4094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4095
  (eval "$ac_compile") 2>conftest.er1
 
4096
  ac_status=$?
 
4097
  grep -v '^ *+' conftest.er1 >conftest.err
 
4098
  rm -f conftest.er1
 
4099
  cat conftest.err >&5
 
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); } && {
 
4102
         test -z "$ac_c_werror_flag" ||
 
4103
         test ! -s conftest.err
 
4104
       } && test -s conftest.$ac_objext; then
 
4105
  eval "$as_ac_Header=yes"
 
4106
else
 
4107
  echo "$as_me: failed program was:" >&5
 
4108
sed 's/^/| /' conftest.$ac_ext >&5
 
4109
 
 
4110
        eval "$as_ac_Header=no"
 
4111
fi
 
4112
 
 
4113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4114
fi
 
4115
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4116
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4117
echo "${ECHO_T}$ac_res" >&6; }
 
4118
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4119
  cat >>confdefs.h <<_ACEOF
 
4120
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4121
_ACEOF
 
4122
 
 
4123
else
 
4124
  { { echo "$as_me:$LINENO: error: please install libcap-devel." >&5
 
4125
echo "$as_me: error: please install libcap-devel." >&2;}
 
4126
   { (exit 1); exit 1; }; }
 
4127
fi
 
4128
 
 
4129
done
 
4130
 
 
4131
 
 
4132
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
 
4133
{ echo "$as_me:$LINENO: checking whether PR_CAPBSET_DROP is declared" >&5
 
4134
echo $ECHO_N "checking whether PR_CAPBSET_DROP is declared... $ECHO_C" >&6; }
 
4135
if test "${ac_cv_have_decl_PR_CAPBSET_DROP+set}" = set; then
 
4136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4137
else
 
4138
  cat >conftest.$ac_ext <<_ACEOF
 
4139
/* confdefs.h.  */
 
4140
_ACEOF
 
4141
cat confdefs.h >>conftest.$ac_ext
 
4142
cat >>conftest.$ac_ext <<_ACEOF
 
4143
/* end confdefs.h.  */
 
4144
#include <sys/prctl.h>
 
4145
 
 
4146
int
 
4147
main ()
 
4148
{
 
4149
#ifndef PR_CAPBSET_DROP
 
4150
  (void) PR_CAPBSET_DROP;
 
4151
#endif
 
4152
 
 
4153
  ;
 
4154
  return 0;
 
4155
}
 
4156
_ACEOF
 
4157
rm -f conftest.$ac_objext
 
4158
if { (ac_try="$ac_compile"
 
4159
case "(($ac_try" in
 
4160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4161
  *) ac_try_echo=$ac_try;;
 
4162
esac
 
4163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4164
  (eval "$ac_compile") 2>conftest.er1
 
4165
  ac_status=$?
 
4166
  grep -v '^ *+' conftest.er1 >conftest.err
 
4167
  rm -f conftest.er1
 
4168
  cat conftest.err >&5
 
4169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4170
  (exit $ac_status); } && {
 
4171
         test -z "$ac_c_werror_flag" ||
 
4172
         test ! -s conftest.err
 
4173
       } && test -s conftest.$ac_objext; then
 
4174
  ac_cv_have_decl_PR_CAPBSET_DROP=yes
 
4175
else
 
4176
  echo "$as_me: failed program was:" >&5
 
4177
sed 's/^/| /' conftest.$ac_ext >&5
 
4178
 
 
4179
        ac_cv_have_decl_PR_CAPBSET_DROP=no
 
4180
fi
 
4181
 
 
4182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4183
fi
 
4184
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_DROP" >&5
 
4185
echo "${ECHO_T}$ac_cv_have_decl_PR_CAPBSET_DROP" >&6; }
 
4186
if test $ac_cv_have_decl_PR_CAPBSET_DROP = yes; then
 
4187
 
 
4188
cat >>confdefs.h <<_ACEOF
 
4189
#define HAVE_DECL_PR_CAPBSET_DROP 1
 
4190
_ACEOF
 
4191
 
 
4192
 
 
4193
else
 
4194
  cat >>confdefs.h <<_ACEOF
 
4195
#define HAVE_DECL_PR_CAPBSET_DROP 0
 
4196
_ACEOF
 
4197
 
 
4198
 
 
4199
fi
 
4200
 
 
4201
 
 
4202
 
 
4203
ac_ext=c
 
4204
ac_cpp='$CPP $CPPFLAGS'
 
4205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4208
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4209
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4210
# On Suns, sometimes $CPP names a directory.
 
4211
if test -n "$CPP" && test -d "$CPP"; then
 
4212
  CPP=
 
4213
fi
 
4214
if test -z "$CPP"; then
 
4215
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4217
else
 
4218
      # Double quotes because CPP needs to be expanded
 
4219
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4220
    do
 
4221
      ac_preproc_ok=false
 
4222
for ac_c_preproc_warn_flag in '' yes
 
4223
do
 
4224
  # Use a header file that comes with gcc, so configuring glibc
 
4225
  # with a fresh cross-compiler works.
 
4226
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4227
  # <limits.h> exists even on freestanding compilers.
 
4228
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4229
  # not just through cpp. "Syntax error" is here to catch this case.
 
4230
  cat >conftest.$ac_ext <<_ACEOF
 
4231
/* confdefs.h.  */
 
4232
_ACEOF
 
4233
cat confdefs.h >>conftest.$ac_ext
 
4234
cat >>conftest.$ac_ext <<_ACEOF
 
4235
/* end confdefs.h.  */
 
4236
#ifdef __STDC__
 
4237
# include <limits.h>
 
4238
#else
 
4239
# include <assert.h>
 
4240
#endif
 
4241
                     Syntax error
 
4242
_ACEOF
 
4243
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4244
case "(($ac_try" in
 
4245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4246
  *) ac_try_echo=$ac_try;;
 
4247
esac
 
4248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4249
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4250
  ac_status=$?
 
4251
  grep -v '^ *+' conftest.er1 >conftest.err
 
4252
  rm -f conftest.er1
 
4253
  cat conftest.err >&5
 
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4255
  (exit $ac_status); } >/dev/null && {
 
4256
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4257
         test ! -s conftest.err
 
4258
       }; then
 
4259
  :
 
4260
else
 
4261
  echo "$as_me: failed program was:" >&5
 
4262
sed 's/^/| /' conftest.$ac_ext >&5
 
4263
 
 
4264
  # Broken: fails on valid input.
 
4265
continue
 
4266
fi
 
4267
 
 
4268
rm -f conftest.err conftest.$ac_ext
 
4269
 
 
4270
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4271
  # can be detected and how.
 
4272
  cat >conftest.$ac_ext <<_ACEOF
 
4273
/* confdefs.h.  */
 
4274
_ACEOF
 
4275
cat confdefs.h >>conftest.$ac_ext
 
4276
cat >>conftest.$ac_ext <<_ACEOF
 
4277
/* end confdefs.h.  */
 
4278
#include <ac_nonexistent.h>
 
4279
_ACEOF
 
4280
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4281
case "(($ac_try" in
 
4282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4283
  *) ac_try_echo=$ac_try;;
 
4284
esac
 
4285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4286
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4287
  ac_status=$?
 
4288
  grep -v '^ *+' conftest.er1 >conftest.err
 
4289
  rm -f conftest.er1
 
4290
  cat conftest.err >&5
 
4291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4292
  (exit $ac_status); } >/dev/null && {
 
4293
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4294
         test ! -s conftest.err
 
4295
       }; then
 
4296
  # Broken: success on invalid input.
 
4297
continue
 
4298
else
 
4299
  echo "$as_me: failed program was:" >&5
 
4300
sed 's/^/| /' conftest.$ac_ext >&5
 
4301
 
 
4302
  # Passes both tests.
 
4303
ac_preproc_ok=:
 
4304
break
 
4305
fi
 
4306
 
 
4307
rm -f conftest.err conftest.$ac_ext
 
4308
 
 
4309
done
 
4310
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4311
rm -f conftest.err conftest.$ac_ext
 
4312
if $ac_preproc_ok; then
 
4313
  break
 
4314
fi
 
4315
 
 
4316
    done
 
4317
    ac_cv_prog_CPP=$CPP
 
4318
 
 
4319
fi
 
4320
  CPP=$ac_cv_prog_CPP
 
4321
else
 
4322
  ac_cv_prog_CPP=$CPP
 
4323
fi
 
4324
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4325
echo "${ECHO_T}$CPP" >&6; }
 
4326
ac_preproc_ok=false
 
4327
for ac_c_preproc_warn_flag in '' yes
 
4328
do
 
4329
  # Use a header file that comes with gcc, so configuring glibc
 
4330
  # with a fresh cross-compiler works.
 
4331
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4332
  # <limits.h> exists even on freestanding compilers.
 
4333
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4334
  # not just through cpp. "Syntax error" is here to catch this case.
 
4335
  cat >conftest.$ac_ext <<_ACEOF
 
4336
/* confdefs.h.  */
 
4337
_ACEOF
 
4338
cat confdefs.h >>conftest.$ac_ext
 
4339
cat >>conftest.$ac_ext <<_ACEOF
 
4340
/* end confdefs.h.  */
 
4341
#ifdef __STDC__
 
4342
# include <limits.h>
 
4343
#else
 
4344
# include <assert.h>
 
4345
#endif
 
4346
                     Syntax error
 
4347
_ACEOF
 
4348
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4349
case "(($ac_try" in
 
4350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4351
  *) ac_try_echo=$ac_try;;
 
4352
esac
 
4353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4354
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4355
  ac_status=$?
 
4356
  grep -v '^ *+' conftest.er1 >conftest.err
 
4357
  rm -f conftest.er1
 
4358
  cat conftest.err >&5
 
4359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4360
  (exit $ac_status); } >/dev/null && {
 
4361
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4362
         test ! -s conftest.err
 
4363
       }; then
 
4364
  :
 
4365
else
 
4366
  echo "$as_me: failed program was:" >&5
 
4367
sed 's/^/| /' conftest.$ac_ext >&5
 
4368
 
 
4369
  # Broken: fails on valid input.
 
4370
continue
 
4371
fi
 
4372
 
 
4373
rm -f conftest.err conftest.$ac_ext
 
4374
 
 
4375
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4376
  # can be detected and how.
 
4377
  cat >conftest.$ac_ext <<_ACEOF
 
4378
/* confdefs.h.  */
 
4379
_ACEOF
 
4380
cat confdefs.h >>conftest.$ac_ext
 
4381
cat >>conftest.$ac_ext <<_ACEOF
 
4382
/* end confdefs.h.  */
 
4383
#include <ac_nonexistent.h>
 
4384
_ACEOF
 
4385
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4386
case "(($ac_try" in
 
4387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4388
  *) ac_try_echo=$ac_try;;
 
4389
esac
 
4390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4391
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4392
  ac_status=$?
 
4393
  grep -v '^ *+' conftest.er1 >conftest.err
 
4394
  rm -f conftest.er1
 
4395
  cat conftest.err >&5
 
4396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4397
  (exit $ac_status); } >/dev/null && {
 
4398
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4399
         test ! -s conftest.err
 
4400
       }; then
 
4401
  # Broken: success on invalid input.
 
4402
continue
 
4403
else
 
4404
  echo "$as_me: failed program was:" >&5
 
4405
sed 's/^/| /' conftest.$ac_ext >&5
 
4406
 
 
4407
  # Passes both tests.
 
4408
ac_preproc_ok=:
 
4409
break
 
4410
fi
 
4411
 
 
4412
rm -f conftest.err conftest.$ac_ext
 
4413
 
 
4414
done
 
4415
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4416
rm -f conftest.err conftest.$ac_ext
 
4417
if $ac_preproc_ok; then
 
4418
  :
 
4419
else
 
4420
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4421
See \`config.log' for more details." >&5
 
4422
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4423
See \`config.log' for more details." >&2;}
 
4424
   { (exit 1); exit 1; }; }
 
4425
fi
 
4426
 
 
4427
ac_ext=c
 
4428
ac_cpp='$CPP $CPPFLAGS'
 
4429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4432
 
3875
4433
 
3876
4434
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3877
4435
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4035
4593
 EGREP="$ac_cv_path_EGREP"
4036
4594
 
4037
4595
 
4038
 
 
4039
 
# Check whether --with-gnu-ld was given.
4040
 
if test "${with_gnu_ld+set}" = set; then
4041
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4042
 
else
4043
 
  with_gnu_ld=no
4044
 
fi
4045
 
 
4046
 
ac_prog=ld
4047
 
if test "$GCC" = yes; then
4048
 
  # Check if gcc -print-prog-name=ld gives a path.
4049
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4050
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4051
 
  case $host in
4052
 
  *-*-mingw*)
4053
 
    # gcc leaves a trailing carriage return which upsets mingw
4054
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4055
 
  *)
4056
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4057
 
  esac
4058
 
  case $ac_prog in
4059
 
    # Accept absolute paths.
4060
 
    [\\/]* | ?:[\\/]*)
4061
 
      re_direlt='/[^/][^/]*/\.\./'
4062
 
      # Canonicalize the pathname of ld
4063
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4064
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4065
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4066
 
      done
4067
 
      test -z "$LD" && LD="$ac_prog"
4068
 
      ;;
4069
 
  "")
4070
 
    # If it fails, then pretend we aren't using GCC.
4071
 
    ac_prog=ld
4072
 
    ;;
4073
 
  *)
4074
 
    # If it is relative, then search for the first ld in PATH.
4075
 
    with_gnu_ld=unknown
4076
 
    ;;
4077
 
  esac
4078
 
elif test "$with_gnu_ld" = yes; then
4079
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4080
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4081
 
else
4082
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4083
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4084
 
fi
4085
 
if test "${lt_cv_path_LD+set}" = set; then
4086
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4087
 
else
4088
 
  if test -z "$LD"; then
4089
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090
 
  for ac_dir in $PATH; do
4091
 
    IFS="$lt_save_ifs"
4092
 
    test -z "$ac_dir" && ac_dir=.
4093
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4094
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4095
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4096
 
      # but apparently some variants of GNU ld only accept -v.
4097
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4098
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4099
 
      *GNU* | *'with BFD'*)
4100
 
        test "$with_gnu_ld" != no && break
4101
 
        ;;
4102
 
      *)
4103
 
        test "$with_gnu_ld" != yes && break
4104
 
        ;;
4105
 
      esac
4106
 
    fi
4107
 
  done
4108
 
  IFS="$lt_save_ifs"
4109
 
else
4110
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4111
 
fi
4112
 
fi
4113
 
 
4114
 
LD="$lt_cv_path_LD"
4115
 
if test -n "$LD"; then
4116
 
  { echo "$as_me:$LINENO: result: $LD" >&5
4117
 
echo "${ECHO_T}$LD" >&6; }
4118
 
else
4119
 
  { echo "$as_me:$LINENO: result: no" >&5
4120
 
echo "${ECHO_T}no" >&6; }
4121
 
fi
4122
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4123
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4124
 
   { (exit 1); exit 1; }; }
4125
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4126
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4127
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4128
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4129
 
else
4130
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4131
 
case `$LD -v 2>&1 </dev/null` in
4132
 
*GNU* | *'with BFD'*)
4133
 
  lt_cv_prog_gnu_ld=yes
4134
 
  ;;
4135
 
*)
4136
 
  lt_cv_prog_gnu_ld=no
4137
 
  ;;
4138
 
esac
4139
 
fi
4140
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4141
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4142
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4143
 
 
4144
 
 
4145
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4146
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4147
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4148
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4149
 
else
4150
 
  lt_cv_ld_reload_flag='-r'
4151
 
fi
4152
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4153
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4154
 
reload_flag=$lt_cv_ld_reload_flag
4155
 
case $reload_flag in
4156
 
"" | " "*) ;;
4157
 
*) reload_flag=" $reload_flag" ;;
4158
 
esac
4159
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4160
 
case $host_os in
4161
 
  darwin*)
4162
 
    if test "$GCC" = yes; then
4163
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4164
 
    else
4165
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4166
 
    fi
4167
 
    ;;
4168
 
esac
4169
 
 
4170
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4171
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4172
 
if test "${lt_cv_path_NM+set}" = set; then
4173
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4174
 
else
4175
 
  if test -n "$NM"; then
4176
 
  # Let the user override the test.
4177
 
  lt_cv_path_NM="$NM"
4178
 
else
4179
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4180
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4181
 
    lt_nm_to_check="$lt_nm_to_check nm"
4182
 
  fi
4183
 
  for lt_tmp_nm in $lt_nm_to_check; do
4184
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4185
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4186
 
      IFS="$lt_save_ifs"
4187
 
      test -z "$ac_dir" && ac_dir=.
4188
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4189
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4190
 
        # Check to see if the nm accepts a BSD-compat flag.
4191
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192
 
        #   nm: unknown option "B" ignored
4193
 
        # Tru64's nm complains that /dev/null is an invalid object file
4194
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4195
 
        */dev/null* | *'Invalid file or object type'*)
4196
 
          lt_cv_path_NM="$tmp_nm -B"
4197
 
          break
4198
 
          ;;
4199
 
        *)
4200
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4201
 
          */dev/null*)
4202
 
            lt_cv_path_NM="$tmp_nm -p"
4203
 
            break
4204
 
            ;;
4205
 
          *)
4206
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4207
 
            continue # so that we can try to find one that supports BSD flags
4208
 
            ;;
4209
 
          esac
4210
 
          ;;
4211
 
        esac
4212
 
      fi
4213
 
    done
4214
 
    IFS="$lt_save_ifs"
4215
 
  done
4216
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4217
 
fi
4218
 
fi
4219
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4220
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4221
 
NM="$lt_cv_path_NM"
4222
 
 
4223
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4224
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4225
 
LN_S=$as_ln_s
4226
 
if test "$LN_S" = "ln -s"; then
4227
 
  { echo "$as_me:$LINENO: result: yes" >&5
4228
 
echo "${ECHO_T}yes" >&6; }
4229
 
else
4230
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4231
 
echo "${ECHO_T}no, using $LN_S" >&6; }
4232
 
fi
4233
 
 
4234
 
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4235
 
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4236
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4238
 
else
4239
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4240
 
lt_cv_file_magic_test_file=
4241
 
lt_cv_deplibs_check_method='unknown'
4242
 
# Need to set the preceding variable on all platforms that support
4243
 
# interlibrary dependencies.
4244
 
# 'none' -- dependencies not supported.
4245
 
# `unknown' -- same as none, but documents that we really don't know.
4246
 
# 'pass_all' -- all dependencies passed with no checks.
4247
 
# 'test_compile' -- check by making test program.
4248
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4249
 
# which responds to the $file_magic_cmd with a given extended regex.
4250
 
# If you have `file' or equivalent on your system and you're not sure
4251
 
# whether `pass_all' will *always* work, you probably want this one.
4252
 
 
4253
 
case $host_os in
4254
 
aix[4-9]*)
4255
 
  lt_cv_deplibs_check_method=pass_all
4256
 
  ;;
4257
 
 
4258
 
beos*)
4259
 
  lt_cv_deplibs_check_method=pass_all
4260
 
  ;;
4261
 
 
4262
 
bsdi[45]*)
4263
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4264
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4265
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4266
 
  ;;
4267
 
 
4268
 
cygwin*)
4269
 
  # func_win32_libid is a shell function defined in ltmain.sh
4270
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4271
 
  lt_cv_file_magic_cmd='func_win32_libid'
4272
 
  ;;
4273
 
 
4274
 
mingw* | pw32*)
4275
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4276
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4277
 
  # unless we find 'file', for example because we are cross-compiling.
4278
 
  if ( file / ) >/dev/null 2>&1; then
4279
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4280
 
    lt_cv_file_magic_cmd='func_win32_libid'
4281
 
  else
4282
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4283
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4284
 
  fi
4285
 
  ;;
4286
 
 
4287
 
darwin* | rhapsody*)
4288
 
  lt_cv_deplibs_check_method=pass_all
4289
 
  ;;
4290
 
 
4291
 
freebsd* | dragonfly*)
4292
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4293
 
    case $host_cpu in
4294
 
    i*86 )
4295
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4296
 
      # Let's accept both of them until this is cleared up.
4297
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4298
 
      lt_cv_file_magic_cmd=/usr/bin/file
4299
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4300
 
      ;;
4301
 
    esac
4302
 
  else
4303
 
    lt_cv_deplibs_check_method=pass_all
4304
 
  fi
4305
 
  ;;
4306
 
 
4307
 
gnu*)
4308
 
  lt_cv_deplibs_check_method=pass_all
4309
 
  ;;
4310
 
 
4311
 
hpux10.20* | hpux11*)
4312
 
  lt_cv_file_magic_cmd=/usr/bin/file
4313
 
  case $host_cpu in
4314
 
  ia64*)
4315
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4316
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4317
 
    ;;
4318
 
  hppa*64*)
4319
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4320
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4321
 
    ;;
4322
 
  *)
4323
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4324
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4325
 
    ;;
4326
 
  esac
4327
 
  ;;
4328
 
 
4329
 
interix[3-9]*)
4330
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4331
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4332
 
  ;;
4333
 
 
4334
 
irix5* | irix6* | nonstopux*)
4335
 
  case $LD in
4336
 
  *-32|*"-32 ") libmagic=32-bit;;
4337
 
  *-n32|*"-n32 ") libmagic=N32;;
4338
 
  *-64|*"-64 ") libmagic=64-bit;;
4339
 
  *) libmagic=never-match;;
4340
 
  esac
4341
 
  lt_cv_deplibs_check_method=pass_all
4342
 
  ;;
4343
 
 
4344
 
# This must be Linux ELF.
4345
 
linux* | k*bsd*-gnu)
4346
 
  lt_cv_deplibs_check_method=pass_all
4347
 
  ;;
4348
 
 
4349
 
netbsd* | netbsdelf*-gnu)
4350
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4351
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352
 
  else
4353
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4354
 
  fi
4355
 
  ;;
4356
 
 
4357
 
newos6*)
4358
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4359
 
  lt_cv_file_magic_cmd=/usr/bin/file
4360
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4361
 
  ;;
4362
 
 
4363
 
nto-qnx*)
4364
 
  lt_cv_deplibs_check_method=unknown
4365
 
  ;;
4366
 
 
4367
 
openbsd*)
4368
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4369
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4370
 
  else
4371
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372
 
  fi
4373
 
  ;;
4374
 
 
4375
 
osf3* | osf4* | osf5*)
4376
 
  lt_cv_deplibs_check_method=pass_all
4377
 
  ;;
4378
 
 
4379
 
rdos*)
4380
 
  lt_cv_deplibs_check_method=pass_all
4381
 
  ;;
4382
 
 
4383
 
solaris*)
4384
 
  lt_cv_deplibs_check_method=pass_all
4385
 
  ;;
4386
 
 
4387
 
sysv4 | sysv4.3*)
4388
 
  case $host_vendor in
4389
 
  motorola)
4390
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4391
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4392
 
    ;;
4393
 
  ncr)
4394
 
    lt_cv_deplibs_check_method=pass_all
4395
 
    ;;
4396
 
  sequent)
4397
 
    lt_cv_file_magic_cmd='/bin/file'
4398
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4399
 
    ;;
4400
 
  sni)
4401
 
    lt_cv_file_magic_cmd='/bin/file'
4402
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4403
 
    lt_cv_file_magic_test_file=/lib/libc.so
4404
 
    ;;
4405
 
  siemens)
4406
 
    lt_cv_deplibs_check_method=pass_all
4407
 
    ;;
4408
 
  pc)
4409
 
    lt_cv_deplibs_check_method=pass_all
4410
 
    ;;
4411
 
  esac
4412
 
  ;;
4413
 
 
4414
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4415
 
  lt_cv_deplibs_check_method=pass_all
4416
 
  ;;
4417
 
esac
4418
 
 
4419
 
fi
4420
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4421
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4422
 
file_magic_cmd=$lt_cv_file_magic_cmd
4423
 
deplibs_check_method=$lt_cv_deplibs_check_method
4424
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4425
 
 
4426
 
 
4427
 
 
4428
 
 
4429
 
# If no C compiler was specified, use CC.
4430
 
LTCC=${LTCC-"$CC"}
4431
 
 
4432
 
# If no C compiler flags were specified, use CFLAGS.
4433
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4434
 
 
4435
 
# Allow CC to be a program name with arguments.
4436
 
compiler=$CC
4437
 
 
4438
 
 
4439
 
# Check whether --enable-libtool-lock was given.
4440
 
if test "${enable_libtool_lock+set}" = set; then
4441
 
  enableval=$enable_libtool_lock;
4442
 
fi
4443
 
 
4444
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4445
 
 
4446
 
# Some flags need to be propagated to the compiler or linker for good
4447
 
# libtool support.
4448
 
case $host in
4449
 
ia64-*-hpux*)
4450
 
  # Find out which ABI we are using.
4451
 
  echo 'int i;' > conftest.$ac_ext
4452
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453
 
  (eval $ac_compile) 2>&5
4454
 
  ac_status=$?
4455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456
 
  (exit $ac_status); }; then
4457
 
    case `/usr/bin/file conftest.$ac_objext` in
4458
 
    *ELF-32*)
4459
 
      HPUX_IA64_MODE="32"
4460
 
      ;;
4461
 
    *ELF-64*)
4462
 
      HPUX_IA64_MODE="64"
4463
 
      ;;
4464
 
    esac
4465
 
  fi
4466
 
  rm -rf conftest*
4467
 
  ;;
4468
 
*-*-irix6*)
4469
 
  # Find out which ABI we are using.
4470
 
  echo '#line 4470 "configure"' > conftest.$ac_ext
4471
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472
 
  (eval $ac_compile) 2>&5
4473
 
  ac_status=$?
4474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
 
  (exit $ac_status); }; then
4476
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4477
 
    case `/usr/bin/file conftest.$ac_objext` in
4478
 
    *32-bit*)
4479
 
      LD="${LD-ld} -melf32bsmip"
4480
 
      ;;
4481
 
    *N32*)
4482
 
      LD="${LD-ld} -melf32bmipn32"
4483
 
      ;;
4484
 
    *64-bit*)
4485
 
      LD="${LD-ld} -melf64bmip"
4486
 
      ;;
4487
 
    esac
4488
 
   else
4489
 
    case `/usr/bin/file conftest.$ac_objext` in
4490
 
    *32-bit*)
4491
 
      LD="${LD-ld} -32"
4492
 
      ;;
4493
 
    *N32*)
4494
 
      LD="${LD-ld} -n32"
4495
 
      ;;
4496
 
    *64-bit*)
4497
 
      LD="${LD-ld} -64"
4498
 
      ;;
4499
 
    esac
4500
 
   fi
4501
 
  fi
4502
 
  rm -rf conftest*
4503
 
  ;;
4504
 
 
4505
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4506
 
s390*-*linux*|sparc*-*linux*)
4507
 
  # Find out which ABI we are using.
4508
 
  echo 'int i;' > conftest.$ac_ext
4509
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510
 
  (eval $ac_compile) 2>&5
4511
 
  ac_status=$?
4512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513
 
  (exit $ac_status); }; then
4514
 
    case `/usr/bin/file conftest.o` in
4515
 
    *32-bit*)
4516
 
      case $host in
4517
 
        x86_64-*kfreebsd*-gnu)
4518
 
          LD="${LD-ld} -m elf_i386_fbsd"
4519
 
          ;;
4520
 
        x86_64-*linux*)
4521
 
          LD="${LD-ld} -m elf_i386"
4522
 
          ;;
4523
 
        ppc64-*linux*|powerpc64-*linux*)
4524
 
          LD="${LD-ld} -m elf32ppclinux"
4525
 
          ;;
4526
 
        s390x-*linux*)
4527
 
          LD="${LD-ld} -m elf_s390"
4528
 
          ;;
4529
 
        sparc64-*linux*)
4530
 
          LD="${LD-ld} -m elf32_sparc"
4531
 
          ;;
4532
 
      esac
4533
 
      ;;
4534
 
    *64-bit*)
4535
 
      case $host in
4536
 
        x86_64-*kfreebsd*-gnu)
4537
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4538
 
          ;;
4539
 
        x86_64-*linux*)
4540
 
          LD="${LD-ld} -m elf_x86_64"
4541
 
          ;;
4542
 
        ppc*-*linux*|powerpc*-*linux*)
4543
 
          LD="${LD-ld} -m elf64ppc"
4544
 
          ;;
4545
 
        s390*-*linux*)
4546
 
          LD="${LD-ld} -m elf64_s390"
4547
 
          ;;
4548
 
        sparc*-*linux*)
4549
 
          LD="${LD-ld} -m elf64_sparc"
4550
 
          ;;
4551
 
      esac
4552
 
      ;;
4553
 
    esac
4554
 
  fi
4555
 
  rm -rf conftest*
4556
 
  ;;
4557
 
 
4558
 
*-*-sco3.2v5*)
4559
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4560
 
  SAVE_CFLAGS="$CFLAGS"
4561
 
  CFLAGS="$CFLAGS -belf"
4562
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4563
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4564
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4565
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4566
 
else
4567
 
  ac_ext=c
4568
 
ac_cpp='$CPP $CPPFLAGS'
4569
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
 
 
4573
 
     cat >conftest.$ac_ext <<_ACEOF
4574
 
/* confdefs.h.  */
4575
 
_ACEOF
4576
 
cat confdefs.h >>conftest.$ac_ext
4577
 
cat >>conftest.$ac_ext <<_ACEOF
4578
 
/* end confdefs.h.  */
4579
 
 
4580
 
int
4581
 
main ()
4582
 
{
4583
 
 
4584
 
  ;
4585
 
  return 0;
4586
 
}
4587
 
_ACEOF
4588
 
rm -f conftest.$ac_objext conftest$ac_exeext
4589
 
if { (ac_try="$ac_link"
4590
 
case "(($ac_try" in
4591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592
 
  *) ac_try_echo=$ac_try;;
4593
 
esac
4594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595
 
  (eval "$ac_link") 2>conftest.er1
4596
 
  ac_status=$?
4597
 
  grep -v '^ *+' conftest.er1 >conftest.err
4598
 
  rm -f conftest.er1
4599
 
  cat conftest.err >&5
4600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601
 
  (exit $ac_status); } && {
4602
 
         test -z "$ac_c_werror_flag" ||
4603
 
         test ! -s conftest.err
4604
 
       } && test -s conftest$ac_exeext &&
4605
 
       $as_test_x conftest$ac_exeext; then
4606
 
  lt_cv_cc_needs_belf=yes
4607
 
else
4608
 
  echo "$as_me: failed program was:" >&5
4609
 
sed 's/^/| /' conftest.$ac_ext >&5
4610
 
 
4611
 
        lt_cv_cc_needs_belf=no
4612
 
fi
4613
 
 
4614
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4615
 
      conftest$ac_exeext conftest.$ac_ext
4616
 
     ac_ext=c
4617
 
ac_cpp='$CPP $CPPFLAGS'
4618
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621
 
 
4622
 
fi
4623
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4624
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4625
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4626
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4627
 
    CFLAGS="$SAVE_CFLAGS"
4628
 
  fi
4629
 
  ;;
4630
 
sparc*-*solaris*)
4631
 
  # Find out which ABI we are using.
4632
 
  echo 'int i;' > conftest.$ac_ext
4633
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634
 
  (eval $ac_compile) 2>&5
4635
 
  ac_status=$?
4636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637
 
  (exit $ac_status); }; then
4638
 
    case `/usr/bin/file conftest.o` in
4639
 
    *64-bit*)
4640
 
      case $lt_cv_prog_gnu_ld in
4641
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4642
 
      *)
4643
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4644
 
          LD="${LD-ld} -64"
4645
 
        fi
4646
 
        ;;
4647
 
      esac
4648
 
      ;;
4649
 
    esac
4650
 
  fi
4651
 
  rm -rf conftest*
4652
 
  ;;
4653
 
 
4654
 
 
4655
 
esac
4656
 
 
4657
 
need_locks="$enable_libtool_lock"
4658
 
 
4659
 
 
4660
 
ac_ext=c
4661
 
ac_cpp='$CPP $CPPFLAGS'
4662
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4666
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4667
 
# On Suns, sometimes $CPP names a directory.
4668
 
if test -n "$CPP" && test -d "$CPP"; then
4669
 
  CPP=
4670
 
fi
4671
 
if test -z "$CPP"; then
4672
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4674
 
else
4675
 
      # Double quotes because CPP needs to be expanded
4676
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4677
 
    do
4678
 
      ac_preproc_ok=false
4679
 
for ac_c_preproc_warn_flag in '' yes
4680
 
do
4681
 
  # Use a header file that comes with gcc, so configuring glibc
4682
 
  # with a fresh cross-compiler works.
4683
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684
 
  # <limits.h> exists even on freestanding compilers.
4685
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4686
 
  # not just through cpp. "Syntax error" is here to catch this case.
4687
 
  cat >conftest.$ac_ext <<_ACEOF
4688
 
/* confdefs.h.  */
4689
 
_ACEOF
4690
 
cat confdefs.h >>conftest.$ac_ext
4691
 
cat >>conftest.$ac_ext <<_ACEOF
4692
 
/* end confdefs.h.  */
4693
 
#ifdef __STDC__
4694
 
# include <limits.h>
4695
 
#else
4696
 
# include <assert.h>
4697
 
#endif
4698
 
                     Syntax error
4699
 
_ACEOF
4700
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4701
 
case "(($ac_try" in
4702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703
 
  *) ac_try_echo=$ac_try;;
4704
 
esac
4705
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4707
 
  ac_status=$?
4708
 
  grep -v '^ *+' conftest.er1 >conftest.err
4709
 
  rm -f conftest.er1
4710
 
  cat conftest.err >&5
4711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712
 
  (exit $ac_status); } >/dev/null && {
4713
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4714
 
         test ! -s conftest.err
4715
 
       }; then
4716
 
  :
4717
 
else
4718
 
  echo "$as_me: failed program was:" >&5
4719
 
sed 's/^/| /' conftest.$ac_ext >&5
4720
 
 
4721
 
  # Broken: fails on valid input.
4722
 
continue
4723
 
fi
4724
 
 
4725
 
rm -f conftest.err conftest.$ac_ext
4726
 
 
4727
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4728
 
  # can be detected and how.
4729
 
  cat >conftest.$ac_ext <<_ACEOF
4730
 
/* confdefs.h.  */
4731
 
_ACEOF
4732
 
cat confdefs.h >>conftest.$ac_ext
4733
 
cat >>conftest.$ac_ext <<_ACEOF
4734
 
/* end confdefs.h.  */
4735
 
#include <ac_nonexistent.h>
4736
 
_ACEOF
4737
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4738
 
case "(($ac_try" in
4739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740
 
  *) ac_try_echo=$ac_try;;
4741
 
esac
4742
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744
 
  ac_status=$?
4745
 
  grep -v '^ *+' conftest.er1 >conftest.err
4746
 
  rm -f conftest.er1
4747
 
  cat conftest.err >&5
4748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
 
  (exit $ac_status); } >/dev/null && {
4750
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751
 
         test ! -s conftest.err
4752
 
       }; then
4753
 
  # Broken: success on invalid input.
4754
 
continue
4755
 
else
4756
 
  echo "$as_me: failed program was:" >&5
4757
 
sed 's/^/| /' conftest.$ac_ext >&5
4758
 
 
4759
 
  # Passes both tests.
4760
 
ac_preproc_ok=:
4761
 
break
4762
 
fi
4763
 
 
4764
 
rm -f conftest.err conftest.$ac_ext
4765
 
 
4766
 
done
4767
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768
 
rm -f conftest.err conftest.$ac_ext
4769
 
if $ac_preproc_ok; then
4770
 
  break
4771
 
fi
4772
 
 
4773
 
    done
4774
 
    ac_cv_prog_CPP=$CPP
4775
 
 
4776
 
fi
4777
 
  CPP=$ac_cv_prog_CPP
4778
 
else
4779
 
  ac_cv_prog_CPP=$CPP
4780
 
fi
4781
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4782
 
echo "${ECHO_T}$CPP" >&6; }
4783
 
ac_preproc_ok=false
4784
 
for ac_c_preproc_warn_flag in '' yes
4785
 
do
4786
 
  # Use a header file that comes with gcc, so configuring glibc
4787
 
  # with a fresh cross-compiler works.
4788
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789
 
  # <limits.h> exists even on freestanding compilers.
4790
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4791
 
  # not just through cpp. "Syntax error" is here to catch this case.
4792
 
  cat >conftest.$ac_ext <<_ACEOF
4793
 
/* confdefs.h.  */
4794
 
_ACEOF
4795
 
cat confdefs.h >>conftest.$ac_ext
4796
 
cat >>conftest.$ac_ext <<_ACEOF
4797
 
/* end confdefs.h.  */
4798
 
#ifdef __STDC__
4799
 
# include <limits.h>
4800
 
#else
4801
 
# include <assert.h>
4802
 
#endif
4803
 
                     Syntax error
4804
 
_ACEOF
4805
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4806
 
case "(($ac_try" in
4807
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808
 
  *) ac_try_echo=$ac_try;;
4809
 
esac
4810
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4812
 
  ac_status=$?
4813
 
  grep -v '^ *+' conftest.er1 >conftest.err
4814
 
  rm -f conftest.er1
4815
 
  cat conftest.err >&5
4816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
 
  (exit $ac_status); } >/dev/null && {
4818
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4819
 
         test ! -s conftest.err
4820
 
       }; then
4821
 
  :
4822
 
else
4823
 
  echo "$as_me: failed program was:" >&5
4824
 
sed 's/^/| /' conftest.$ac_ext >&5
4825
 
 
4826
 
  # Broken: fails on valid input.
4827
 
continue
4828
 
fi
4829
 
 
4830
 
rm -f conftest.err conftest.$ac_ext
4831
 
 
4832
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4833
 
  # can be detected and how.
4834
 
  cat >conftest.$ac_ext <<_ACEOF
4835
 
/* confdefs.h.  */
4836
 
_ACEOF
4837
 
cat confdefs.h >>conftest.$ac_ext
4838
 
cat >>conftest.$ac_ext <<_ACEOF
4839
 
/* end confdefs.h.  */
4840
 
#include <ac_nonexistent.h>
4841
 
_ACEOF
4842
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4843
 
case "(($ac_try" in
4844
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845
 
  *) ac_try_echo=$ac_try;;
4846
 
esac
4847
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849
 
  ac_status=$?
4850
 
  grep -v '^ *+' conftest.er1 >conftest.err
4851
 
  rm -f conftest.er1
4852
 
  cat conftest.err >&5
4853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854
 
  (exit $ac_status); } >/dev/null && {
4855
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856
 
         test ! -s conftest.err
4857
 
       }; then
4858
 
  # Broken: success on invalid input.
4859
 
continue
4860
 
else
4861
 
  echo "$as_me: failed program was:" >&5
4862
 
sed 's/^/| /' conftest.$ac_ext >&5
4863
 
 
4864
 
  # Passes both tests.
4865
 
ac_preproc_ok=:
4866
 
break
4867
 
fi
4868
 
 
4869
 
rm -f conftest.err conftest.$ac_ext
4870
 
 
4871
 
done
4872
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873
 
rm -f conftest.err conftest.$ac_ext
4874
 
if $ac_preproc_ok; then
4875
 
  :
4876
 
else
4877
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4878
 
See \`config.log' for more details." >&5
4879
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4880
 
See \`config.log' for more details." >&2;}
4881
 
   { (exit 1); exit 1; }; }
4882
 
fi
4883
 
 
4884
 
ac_ext=c
4885
 
ac_cpp='$CPP $CPPFLAGS'
4886
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889
 
 
4890
 
 
4891
4596
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4892
4597
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4893
4598
if test "${ac_cv_header_stdc+set}" = set; then
5132
4837
 
5133
4838
 
5134
4839
 
5135
 
for ac_header in dlfcn.h
5136
 
do
5137
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5138
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5140
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5141
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5143
 
fi
5144
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5145
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5146
 
echo "${ECHO_T}$ac_res" >&6; }
5147
 
else
5148
 
  # Is the header compilable?
5149
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5150
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5151
 
cat >conftest.$ac_ext <<_ACEOF
5152
 
/* confdefs.h.  */
5153
 
_ACEOF
5154
 
cat confdefs.h >>conftest.$ac_ext
5155
 
cat >>conftest.$ac_ext <<_ACEOF
5156
 
/* end confdefs.h.  */
5157
 
$ac_includes_default
5158
 
#include <$ac_header>
5159
 
_ACEOF
5160
 
rm -f conftest.$ac_objext
5161
 
if { (ac_try="$ac_compile"
5162
 
case "(($ac_try" in
5163
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164
 
  *) ac_try_echo=$ac_try;;
5165
 
esac
5166
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167
 
  (eval "$ac_compile") 2>conftest.er1
5168
 
  ac_status=$?
5169
 
  grep -v '^ *+' conftest.er1 >conftest.err
5170
 
  rm -f conftest.er1
5171
 
  cat conftest.err >&5
5172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173
 
  (exit $ac_status); } && {
5174
 
         test -z "$ac_c_werror_flag" ||
5175
 
         test ! -s conftest.err
5176
 
       } && test -s conftest.$ac_objext; then
5177
 
  ac_header_compiler=yes
5178
 
else
5179
 
  echo "$as_me: failed program was:" >&5
5180
 
sed 's/^/| /' conftest.$ac_ext >&5
5181
 
 
5182
 
        ac_header_compiler=no
5183
 
fi
5184
 
 
5185
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5187
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5188
 
 
5189
 
# Is the header present?
5190
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5191
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5192
 
cat >conftest.$ac_ext <<_ACEOF
5193
 
/* confdefs.h.  */
5194
 
_ACEOF
5195
 
cat confdefs.h >>conftest.$ac_ext
5196
 
cat >>conftest.$ac_ext <<_ACEOF
5197
 
/* end confdefs.h.  */
5198
 
#include <$ac_header>
5199
 
_ACEOF
5200
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5201
 
case "(($ac_try" in
5202
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203
 
  *) ac_try_echo=$ac_try;;
5204
 
esac
5205
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5207
 
  ac_status=$?
5208
 
  grep -v '^ *+' conftest.er1 >conftest.err
5209
 
  rm -f conftest.er1
5210
 
  cat conftest.err >&5
5211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
 
  (exit $ac_status); } >/dev/null && {
5213
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5214
 
         test ! -s conftest.err
5215
 
       }; then
5216
 
  ac_header_preproc=yes
5217
 
else
5218
 
  echo "$as_me: failed program was:" >&5
5219
 
sed 's/^/| /' conftest.$ac_ext >&5
5220
 
 
5221
 
  ac_header_preproc=no
5222
 
fi
5223
 
 
5224
 
rm -f conftest.err conftest.$ac_ext
5225
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5226
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5227
 
 
5228
 
# So?  What about this header?
5229
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5230
 
  yes:no: )
5231
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5232
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5233
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5234
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5235
 
    ac_header_preproc=yes
5236
 
    ;;
5237
 
  no:yes:* )
5238
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5239
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5240
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5241
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5242
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5243
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5244
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5245
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5246
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5247
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5248
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5249
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5250
 
 
5251
 
    ;;
5252
 
esac
5253
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5254
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5255
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5256
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5257
 
else
5258
 
  eval "$as_ac_Header=\$ac_header_preproc"
5259
 
fi
5260
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5261
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5262
 
echo "${ECHO_T}$ac_res" >&6; }
5263
 
 
5264
 
fi
5265
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5266
 
  cat >>confdefs.h <<_ACEOF
5267
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5268
 
_ACEOF
5269
 
 
5270
 
fi
5271
 
 
5272
 
done
5273
 
 
5274
 
ac_ext=cpp
5275
 
ac_cpp='$CXXCPP $CPPFLAGS'
5276
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279
 
if test -z "$CXX"; then
5280
 
  if test -n "$CCC"; then
5281
 
    CXX=$CCC
5282
 
  else
5283
 
    if test -n "$ac_tool_prefix"; then
5284
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5285
 
  do
5286
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5287
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5288
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5289
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290
 
if test "${ac_cv_prog_CXX+set}" = set; then
5291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5292
 
else
5293
 
  if test -n "$CXX"; then
5294
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5295
 
else
5296
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297
 
for as_dir in $PATH
5298
 
do
5299
 
  IFS=$as_save_IFS
5300
 
  test -z "$as_dir" && as_dir=.
5301
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5302
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5304
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305
 
    break 2
5306
 
  fi
5307
 
done
5308
 
done
5309
 
IFS=$as_save_IFS
5310
 
 
5311
 
fi
5312
 
fi
5313
 
CXX=$ac_cv_prog_CXX
5314
 
if test -n "$CXX"; then
5315
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
5316
 
echo "${ECHO_T}$CXX" >&6; }
5317
 
else
5318
 
  { echo "$as_me:$LINENO: result: no" >&5
5319
 
echo "${ECHO_T}no" >&6; }
5320
 
fi
5321
 
 
5322
 
 
5323
 
    test -n "$CXX" && break
5324
 
  done
5325
 
fi
5326
 
if test -z "$CXX"; then
5327
 
  ac_ct_CXX=$CXX
5328
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5329
 
do
5330
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5331
 
set dummy $ac_prog; ac_word=$2
5332
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5333
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5335
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5336
 
else
5337
 
  if test -n "$ac_ct_CXX"; then
5338
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5339
 
else
5340
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341
 
for as_dir in $PATH
5342
 
do
5343
 
  IFS=$as_save_IFS
5344
 
  test -z "$as_dir" && as_dir=.
5345
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5346
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5348
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349
 
    break 2
5350
 
  fi
5351
 
done
5352
 
done
5353
 
IFS=$as_save_IFS
5354
 
 
5355
 
fi
5356
 
fi
5357
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5358
 
if test -n "$ac_ct_CXX"; then
5359
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5360
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5361
 
else
5362
 
  { echo "$as_me:$LINENO: result: no" >&5
5363
 
echo "${ECHO_T}no" >&6; }
5364
 
fi
5365
 
 
5366
 
 
5367
 
  test -n "$ac_ct_CXX" && break
5368
 
done
5369
 
 
5370
 
  if test "x$ac_ct_CXX" = x; then
5371
 
    CXX="g++"
5372
 
  else
5373
 
    case $cross_compiling:$ac_tool_warned in
5374
 
yes:)
5375
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5376
 
whose name does not start with the host triplet.  If you think this
5377
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5378
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5379
 
whose name does not start with the host triplet.  If you think this
5380
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5381
 
ac_tool_warned=yes ;;
5382
 
esac
5383
 
    CXX=$ac_ct_CXX
5384
 
  fi
5385
 
fi
5386
 
 
5387
 
  fi
5388
 
fi
5389
 
# Provide some information about the compiler.
5390
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5391
 
ac_compiler=`set X $ac_compile; echo $2`
5392
 
{ (ac_try="$ac_compiler --version >&5"
5393
 
case "(($ac_try" in
5394
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395
 
  *) ac_try_echo=$ac_try;;
5396
 
esac
5397
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398
 
  (eval "$ac_compiler --version >&5") 2>&5
5399
 
  ac_status=$?
5400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401
 
  (exit $ac_status); }
5402
 
{ (ac_try="$ac_compiler -v >&5"
5403
 
case "(($ac_try" in
5404
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405
 
  *) ac_try_echo=$ac_try;;
5406
 
esac
5407
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408
 
  (eval "$ac_compiler -v >&5") 2>&5
5409
 
  ac_status=$?
5410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
 
  (exit $ac_status); }
5412
 
{ (ac_try="$ac_compiler -V >&5"
5413
 
case "(($ac_try" in
5414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415
 
  *) ac_try_echo=$ac_try;;
5416
 
esac
5417
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418
 
  (eval "$ac_compiler -V >&5") 2>&5
5419
 
  ac_status=$?
5420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421
 
  (exit $ac_status); }
5422
 
 
5423
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5424
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5425
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5427
 
else
5428
 
  cat >conftest.$ac_ext <<_ACEOF
5429
 
/* confdefs.h.  */
5430
 
_ACEOF
5431
 
cat confdefs.h >>conftest.$ac_ext
5432
 
cat >>conftest.$ac_ext <<_ACEOF
5433
 
/* end confdefs.h.  */
5434
 
 
5435
 
int
5436
 
main ()
5437
 
{
5438
 
#ifndef __GNUC__
5439
 
       choke me
5440
 
#endif
5441
 
 
5442
 
  ;
5443
 
  return 0;
5444
 
}
5445
 
_ACEOF
5446
 
rm -f conftest.$ac_objext
5447
 
if { (ac_try="$ac_compile"
5448
 
case "(($ac_try" in
5449
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450
 
  *) ac_try_echo=$ac_try;;
5451
 
esac
5452
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453
 
  (eval "$ac_compile") 2>conftest.er1
5454
 
  ac_status=$?
5455
 
  grep -v '^ *+' conftest.er1 >conftest.err
5456
 
  rm -f conftest.er1
5457
 
  cat conftest.err >&5
5458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459
 
  (exit $ac_status); } && {
5460
 
         test -z "$ac_cxx_werror_flag" ||
5461
 
         test ! -s conftest.err
5462
 
       } && test -s conftest.$ac_objext; then
5463
 
  ac_compiler_gnu=yes
5464
 
else
5465
 
  echo "$as_me: failed program was:" >&5
5466
 
sed 's/^/| /' conftest.$ac_ext >&5
5467
 
 
5468
 
        ac_compiler_gnu=no
5469
 
fi
5470
 
 
5471
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5473
 
 
5474
 
fi
5475
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5476
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5477
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5478
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5479
 
ac_save_CXXFLAGS=$CXXFLAGS
5480
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5481
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5482
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5483
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5484
 
else
5485
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5486
 
   ac_cxx_werror_flag=yes
5487
 
   ac_cv_prog_cxx_g=no
5488
 
   CXXFLAGS="-g"
5489
 
   cat >conftest.$ac_ext <<_ACEOF
5490
 
/* confdefs.h.  */
5491
 
_ACEOF
5492
 
cat confdefs.h >>conftest.$ac_ext
5493
 
cat >>conftest.$ac_ext <<_ACEOF
5494
 
/* end confdefs.h.  */
5495
 
 
5496
 
int
5497
 
main ()
5498
 
{
5499
 
 
5500
 
  ;
5501
 
  return 0;
5502
 
}
5503
 
_ACEOF
5504
 
rm -f conftest.$ac_objext
5505
 
if { (ac_try="$ac_compile"
5506
 
case "(($ac_try" in
5507
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508
 
  *) ac_try_echo=$ac_try;;
5509
 
esac
5510
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511
 
  (eval "$ac_compile") 2>conftest.er1
5512
 
  ac_status=$?
5513
 
  grep -v '^ *+' conftest.er1 >conftest.err
5514
 
  rm -f conftest.er1
5515
 
  cat conftest.err >&5
5516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517
 
  (exit $ac_status); } && {
5518
 
         test -z "$ac_cxx_werror_flag" ||
5519
 
         test ! -s conftest.err
5520
 
       } && test -s conftest.$ac_objext; then
5521
 
  ac_cv_prog_cxx_g=yes
5522
 
else
5523
 
  echo "$as_me: failed program was:" >&5
5524
 
sed 's/^/| /' conftest.$ac_ext >&5
5525
 
 
5526
 
        CXXFLAGS=""
5527
 
      cat >conftest.$ac_ext <<_ACEOF
5528
 
/* confdefs.h.  */
5529
 
_ACEOF
5530
 
cat confdefs.h >>conftest.$ac_ext
5531
 
cat >>conftest.$ac_ext <<_ACEOF
5532
 
/* end confdefs.h.  */
5533
 
 
5534
 
int
5535
 
main ()
5536
 
{
5537
 
 
5538
 
  ;
5539
 
  return 0;
5540
 
}
5541
 
_ACEOF
5542
 
rm -f conftest.$ac_objext
5543
 
if { (ac_try="$ac_compile"
5544
 
case "(($ac_try" in
5545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546
 
  *) ac_try_echo=$ac_try;;
5547
 
esac
5548
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549
 
  (eval "$ac_compile") 2>conftest.er1
5550
 
  ac_status=$?
5551
 
  grep -v '^ *+' conftest.er1 >conftest.err
5552
 
  rm -f conftest.er1
5553
 
  cat conftest.err >&5
5554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555
 
  (exit $ac_status); } && {
5556
 
         test -z "$ac_cxx_werror_flag" ||
5557
 
         test ! -s conftest.err
5558
 
       } && test -s conftest.$ac_objext; then
5559
 
  :
5560
 
else
5561
 
  echo "$as_me: failed program was:" >&5
5562
 
sed 's/^/| /' conftest.$ac_ext >&5
5563
 
 
5564
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5565
 
         CXXFLAGS="-g"
5566
 
         cat >conftest.$ac_ext <<_ACEOF
5567
 
/* confdefs.h.  */
5568
 
_ACEOF
5569
 
cat confdefs.h >>conftest.$ac_ext
5570
 
cat >>conftest.$ac_ext <<_ACEOF
5571
 
/* end confdefs.h.  */
5572
 
 
5573
 
int
5574
 
main ()
5575
 
{
5576
 
 
5577
 
  ;
5578
 
  return 0;
5579
 
}
5580
 
_ACEOF
5581
 
rm -f conftest.$ac_objext
5582
 
if { (ac_try="$ac_compile"
5583
 
case "(($ac_try" in
5584
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585
 
  *) ac_try_echo=$ac_try;;
5586
 
esac
5587
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588
 
  (eval "$ac_compile") 2>conftest.er1
5589
 
  ac_status=$?
5590
 
  grep -v '^ *+' conftest.er1 >conftest.err
5591
 
  rm -f conftest.er1
5592
 
  cat conftest.err >&5
5593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
 
  (exit $ac_status); } && {
5595
 
         test -z "$ac_cxx_werror_flag" ||
5596
 
         test ! -s conftest.err
5597
 
       } && test -s conftest.$ac_objext; then
5598
 
  ac_cv_prog_cxx_g=yes
5599
 
else
5600
 
  echo "$as_me: failed program was:" >&5
5601
 
sed 's/^/| /' conftest.$ac_ext >&5
5602
 
 
5603
 
 
5604
 
fi
5605
 
 
5606
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607
 
fi
5608
 
 
5609
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
 
fi
5611
 
 
5612
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5614
 
fi
5615
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5616
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5617
 
if test "$ac_test_CXXFLAGS" = set; then
5618
 
  CXXFLAGS=$ac_save_CXXFLAGS
5619
 
elif test $ac_cv_prog_cxx_g = yes; then
5620
 
  if test "$GXX" = yes; then
5621
 
    CXXFLAGS="-g -O2"
5622
 
  else
5623
 
    CXXFLAGS="-g"
5624
 
  fi
5625
 
else
5626
 
  if test "$GXX" = yes; then
5627
 
    CXXFLAGS="-O2"
5628
 
  else
5629
 
    CXXFLAGS=
5630
 
  fi
5631
 
fi
5632
 
ac_ext=cpp
5633
 
ac_cpp='$CXXCPP $CPPFLAGS'
5634
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5637
 
 
5638
 
depcc="$CXX"  am_compiler_list=
5639
 
 
5640
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5641
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5642
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5644
 
else
5645
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5646
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5647
 
  # making bogus files that we don't know about and never remove.  For
5648
 
  # instance it was reported that on HP-UX the gcc test will end up
5649
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5650
 
  # in D'.
5651
 
  mkdir conftest.dir
5652
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5653
 
  # using a relative directory.
5654
 
  cp "$am_depcomp" conftest.dir
5655
 
  cd conftest.dir
5656
 
  # We will build objects and dependencies in a subdirectory because
5657
 
  # it helps to detect inapplicable dependency modes.  For instance
5658
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5659
 
  # side effect of compilation, but ICC will put the dependencies in
5660
 
  # the current directory while Tru64 will put them in the object
5661
 
  # directory.
5662
 
  mkdir sub
5663
 
 
5664
 
  am_cv_CXX_dependencies_compiler_type=none
5665
 
  if test "$am_compiler_list" = ""; then
5666
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5667
 
  fi
5668
 
  for depmode in $am_compiler_list; do
5669
 
    # Setup a source with many dependencies, because some compilers
5670
 
    # like to wrap large dependency lists on column 80 (with \), and
5671
 
    # we should not choose a depcomp mode which is confused by this.
5672
 
    #
5673
 
    # We need to recreate these files for each test, as the compiler may
5674
 
    # overwrite some of them when testing with obscure command lines.
5675
 
    # This happens at least with the AIX C compiler.
5676
 
    : > sub/conftest.c
5677
 
    for i in 1 2 3 4 5 6; do
5678
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5679
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5680
 
      # Solaris 8's {/usr,}/bin/sh.
5681
 
      touch sub/conftst$i.h
5682
 
    done
5683
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5684
 
 
5685
 
    case $depmode in
5686
 
    nosideeffect)
5687
 
      # after this tag, mechanisms are not by side-effect, so they'll
5688
 
      # only be used when explicitly requested
5689
 
      if test "x$enable_dependency_tracking" = xyes; then
5690
 
        continue
5691
 
      else
5692
 
        break
5693
 
      fi
5694
 
      ;;
5695
 
    none) break ;;
5696
 
    esac
5697
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5698
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5699
 
    # handle `-M -o', and we need to detect this.
5700
 
    if depmode=$depmode \
5701
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5702
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5703
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5704
 
         >/dev/null 2>conftest.err &&
5705
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5706
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5707
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5708
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5709
 
      # icc doesn't choke on unknown options, it will just issue warnings
5710
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5711
 
      # that says an option was ignored or not supported.
5712
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5713
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5714
 
      # The diagnosis changed in icc 8.0:
5715
 
      #   icc: Command line remark: option '-MP' not supported
5716
 
      if (grep 'ignoring option' conftest.err ||
5717
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5718
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5719
 
        break
5720
 
      fi
5721
 
    fi
5722
 
  done
5723
 
 
5724
 
  cd ..
5725
 
  rm -rf conftest.dir
5726
 
else
5727
 
  am_cv_CXX_dependencies_compiler_type=none
5728
 
fi
5729
 
 
5730
 
fi
5731
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5732
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5733
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5734
 
 
5735
 
 if
5736
 
  test "x$enable_dependency_tracking" != xno \
5737
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5738
 
  am__fastdepCXX_TRUE=
5739
 
  am__fastdepCXX_FALSE='#'
5740
 
else
5741
 
  am__fastdepCXX_TRUE='#'
5742
 
  am__fastdepCXX_FALSE=
5743
 
fi
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5749
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5750
 
    (test "X$CXX" != "Xg++"))) ; then
5751
 
  ac_ext=cpp
5752
 
ac_cpp='$CXXCPP $CPPFLAGS'
5753
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5757
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5758
 
if test -z "$CXXCPP"; then
5759
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5760
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5761
 
else
5762
 
      # Double quotes because CXXCPP needs to be expanded
5763
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5764
 
    do
5765
 
      ac_preproc_ok=false
5766
 
for ac_cxx_preproc_warn_flag in '' yes
5767
 
do
5768
 
  # Use a header file that comes with gcc, so configuring glibc
5769
 
  # with a fresh cross-compiler works.
5770
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771
 
  # <limits.h> exists even on freestanding compilers.
5772
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5773
 
  # not just through cpp. "Syntax error" is here to catch this case.
5774
 
  cat >conftest.$ac_ext <<_ACEOF
5775
 
/* confdefs.h.  */
5776
 
_ACEOF
5777
 
cat confdefs.h >>conftest.$ac_ext
5778
 
cat >>conftest.$ac_ext <<_ACEOF
5779
 
/* end confdefs.h.  */
5780
 
#ifdef __STDC__
5781
 
# include <limits.h>
5782
 
#else
5783
 
# include <assert.h>
5784
 
#endif
5785
 
                     Syntax error
5786
 
_ACEOF
5787
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5788
 
case "(($ac_try" in
5789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
 
  *) ac_try_echo=$ac_try;;
5791
 
esac
5792
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794
 
  ac_status=$?
5795
 
  grep -v '^ *+' conftest.er1 >conftest.err
5796
 
  rm -f conftest.er1
5797
 
  cat conftest.err >&5
5798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
 
  (exit $ac_status); } >/dev/null && {
5800
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5801
 
         test ! -s conftest.err
5802
 
       }; then
5803
 
  :
5804
 
else
5805
 
  echo "$as_me: failed program was:" >&5
5806
 
sed 's/^/| /' conftest.$ac_ext >&5
5807
 
 
5808
 
  # Broken: fails on valid input.
5809
 
continue
5810
 
fi
5811
 
 
5812
 
rm -f conftest.err conftest.$ac_ext
5813
 
 
5814
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5815
 
  # can be detected and how.
5816
 
  cat >conftest.$ac_ext <<_ACEOF
5817
 
/* confdefs.h.  */
5818
 
_ACEOF
5819
 
cat confdefs.h >>conftest.$ac_ext
5820
 
cat >>conftest.$ac_ext <<_ACEOF
5821
 
/* end confdefs.h.  */
5822
 
#include <ac_nonexistent.h>
5823
 
_ACEOF
5824
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5825
 
case "(($ac_try" in
5826
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827
 
  *) ac_try_echo=$ac_try;;
5828
 
esac
5829
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831
 
  ac_status=$?
5832
 
  grep -v '^ *+' conftest.er1 >conftest.err
5833
 
  rm -f conftest.er1
5834
 
  cat conftest.err >&5
5835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
 
  (exit $ac_status); } >/dev/null && {
5837
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838
 
         test ! -s conftest.err
5839
 
       }; then
5840
 
  # Broken: success on invalid input.
5841
 
continue
5842
 
else
5843
 
  echo "$as_me: failed program was:" >&5
5844
 
sed 's/^/| /' conftest.$ac_ext >&5
5845
 
 
5846
 
  # Passes both tests.
5847
 
ac_preproc_ok=:
5848
 
break
5849
 
fi
5850
 
 
5851
 
rm -f conftest.err conftest.$ac_ext
5852
 
 
5853
 
done
5854
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855
 
rm -f conftest.err conftest.$ac_ext
5856
 
if $ac_preproc_ok; then
5857
 
  break
5858
 
fi
5859
 
 
5860
 
    done
5861
 
    ac_cv_prog_CXXCPP=$CXXCPP
5862
 
 
5863
 
fi
5864
 
  CXXCPP=$ac_cv_prog_CXXCPP
5865
 
else
5866
 
  ac_cv_prog_CXXCPP=$CXXCPP
5867
 
fi
5868
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5869
 
echo "${ECHO_T}$CXXCPP" >&6; }
5870
 
ac_preproc_ok=false
5871
 
for ac_cxx_preproc_warn_flag in '' yes
5872
 
do
5873
 
  # Use a header file that comes with gcc, so configuring glibc
5874
 
  # with a fresh cross-compiler works.
5875
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876
 
  # <limits.h> exists even on freestanding compilers.
5877
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5878
 
  # not just through cpp. "Syntax error" is here to catch this case.
5879
 
  cat >conftest.$ac_ext <<_ACEOF
5880
 
/* confdefs.h.  */
5881
 
_ACEOF
5882
 
cat confdefs.h >>conftest.$ac_ext
5883
 
cat >>conftest.$ac_ext <<_ACEOF
5884
 
/* end confdefs.h.  */
5885
 
#ifdef __STDC__
5886
 
# include <limits.h>
5887
 
#else
5888
 
# include <assert.h>
5889
 
#endif
5890
 
                     Syntax error
5891
 
_ACEOF
5892
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5893
 
case "(($ac_try" in
5894
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895
 
  *) ac_try_echo=$ac_try;;
5896
 
esac
5897
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899
 
  ac_status=$?
5900
 
  grep -v '^ *+' conftest.er1 >conftest.err
5901
 
  rm -f conftest.er1
5902
 
  cat conftest.err >&5
5903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904
 
  (exit $ac_status); } >/dev/null && {
5905
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5906
 
         test ! -s conftest.err
5907
 
       }; then
5908
 
  :
5909
 
else
5910
 
  echo "$as_me: failed program was:" >&5
5911
 
sed 's/^/| /' conftest.$ac_ext >&5
5912
 
 
5913
 
  # Broken: fails on valid input.
5914
 
continue
5915
 
fi
5916
 
 
5917
 
rm -f conftest.err conftest.$ac_ext
5918
 
 
5919
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5920
 
  # can be detected and how.
5921
 
  cat >conftest.$ac_ext <<_ACEOF
5922
 
/* confdefs.h.  */
5923
 
_ACEOF
5924
 
cat confdefs.h >>conftest.$ac_ext
5925
 
cat >>conftest.$ac_ext <<_ACEOF
5926
 
/* end confdefs.h.  */
5927
 
#include <ac_nonexistent.h>
5928
 
_ACEOF
5929
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5930
 
case "(($ac_try" in
5931
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932
 
  *) ac_try_echo=$ac_try;;
5933
 
esac
5934
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5936
 
  ac_status=$?
5937
 
  grep -v '^ *+' conftest.er1 >conftest.err
5938
 
  rm -f conftest.er1
5939
 
  cat conftest.err >&5
5940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
 
  (exit $ac_status); } >/dev/null && {
5942
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5943
 
         test ! -s conftest.err
5944
 
       }; then
5945
 
  # Broken: success on invalid input.
5946
 
continue
5947
 
else
5948
 
  echo "$as_me: failed program was:" >&5
5949
 
sed 's/^/| /' conftest.$ac_ext >&5
5950
 
 
5951
 
  # Passes both tests.
5952
 
ac_preproc_ok=:
5953
 
break
5954
 
fi
5955
 
 
5956
 
rm -f conftest.err conftest.$ac_ext
5957
 
 
5958
 
done
5959
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5960
 
rm -f conftest.err conftest.$ac_ext
5961
 
if $ac_preproc_ok; then
5962
 
  :
5963
 
else
5964
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5965
 
See \`config.log' for more details." >&5
5966
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5967
 
See \`config.log' for more details." >&2;}
5968
 
   { (exit 1); exit 1; }; }
5969
 
fi
5970
 
 
5971
 
ac_ext=cpp
5972
 
ac_cpp='$CXXCPP $CPPFLAGS'
5973
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5976
 
 
5977
 
fi
5978
 
 
5979
 
 
5980
 
ac_ext=f
5981
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5982
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5984
 
if test -n "$ac_tool_prefix"; then
5985
 
  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
5986
 
  do
5987
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5990
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991
 
if test "${ac_cv_prog_F77+set}" = set; then
5992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5993
 
else
5994
 
  if test -n "$F77"; then
5995
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5996
 
else
5997
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998
 
for as_dir in $PATH
5999
 
do
6000
 
  IFS=$as_save_IFS
6001
 
  test -z "$as_dir" && as_dir=.
6002
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6003
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6005
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006
 
    break 2
6007
 
  fi
6008
 
done
6009
 
done
6010
 
IFS=$as_save_IFS
6011
 
 
6012
 
fi
6013
 
fi
6014
 
F77=$ac_cv_prog_F77
6015
 
if test -n "$F77"; then
6016
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6017
 
echo "${ECHO_T}$F77" >&6; }
6018
 
else
6019
 
  { echo "$as_me:$LINENO: result: no" >&5
6020
 
echo "${ECHO_T}no" >&6; }
6021
 
fi
6022
 
 
6023
 
 
6024
 
    test -n "$F77" && break
6025
 
  done
6026
 
fi
6027
 
if test -z "$F77"; then
6028
 
  ac_ct_F77=$F77
6029
 
  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
6030
 
do
6031
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6032
 
set dummy $ac_prog; ac_word=$2
6033
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6036
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6037
 
else
6038
 
  if test -n "$ac_ct_F77"; then
6039
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6040
 
else
6041
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042
 
for as_dir in $PATH
6043
 
do
6044
 
  IFS=$as_save_IFS
6045
 
  test -z "$as_dir" && as_dir=.
6046
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6047
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6049
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050
 
    break 2
6051
 
  fi
6052
 
done
6053
 
done
6054
 
IFS=$as_save_IFS
6055
 
 
6056
 
fi
6057
 
fi
6058
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6059
 
if test -n "$ac_ct_F77"; then
6060
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6061
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
6062
 
else
6063
 
  { echo "$as_me:$LINENO: result: no" >&5
6064
 
echo "${ECHO_T}no" >&6; }
6065
 
fi
6066
 
 
6067
 
 
6068
 
  test -n "$ac_ct_F77" && break
6069
 
done
6070
 
 
6071
 
  if test "x$ac_ct_F77" = x; then
6072
 
    F77=""
6073
 
  else
6074
 
    case $cross_compiling:$ac_tool_warned in
6075
 
yes:)
6076
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6077
 
whose name does not start with the host triplet.  If you think this
6078
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6079
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6080
 
whose name does not start with the host triplet.  If you think this
6081
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6082
 
ac_tool_warned=yes ;;
6083
 
esac
6084
 
    F77=$ac_ct_F77
6085
 
  fi
6086
 
fi
6087
 
 
6088
 
 
6089
 
# Provide some information about the compiler.
6090
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6091
 
ac_compiler=`set X $ac_compile; echo $2`
6092
 
{ (ac_try="$ac_compiler --version >&5"
6093
 
case "(($ac_try" in
6094
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095
 
  *) ac_try_echo=$ac_try;;
6096
 
esac
6097
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098
 
  (eval "$ac_compiler --version >&5") 2>&5
6099
 
  ac_status=$?
6100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
 
  (exit $ac_status); }
6102
 
{ (ac_try="$ac_compiler -v >&5"
6103
 
case "(($ac_try" in
6104
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105
 
  *) ac_try_echo=$ac_try;;
6106
 
esac
6107
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108
 
  (eval "$ac_compiler -v >&5") 2>&5
6109
 
  ac_status=$?
6110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
 
  (exit $ac_status); }
6112
 
{ (ac_try="$ac_compiler -V >&5"
6113
 
case "(($ac_try" in
6114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115
 
  *) ac_try_echo=$ac_try;;
6116
 
esac
6117
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118
 
  (eval "$ac_compiler -V >&5") 2>&5
6119
 
  ac_status=$?
6120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121
 
  (exit $ac_status); }
6122
 
rm -f a.out
6123
 
 
6124
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6125
 
# input file.  (Note that this only needs to work for GNU compilers.)
6126
 
ac_save_ext=$ac_ext
6127
 
ac_ext=F
6128
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6129
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6130
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6132
 
else
6133
 
  cat >conftest.$ac_ext <<_ACEOF
6134
 
      program main
6135
 
#ifndef __GNUC__
6136
 
       choke me
6137
 
#endif
6138
 
 
6139
 
      end
6140
 
_ACEOF
6141
 
rm -f conftest.$ac_objext
6142
 
if { (ac_try="$ac_compile"
6143
 
case "(($ac_try" in
6144
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145
 
  *) ac_try_echo=$ac_try;;
6146
 
esac
6147
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148
 
  (eval "$ac_compile") 2>conftest.er1
6149
 
  ac_status=$?
6150
 
  grep -v '^ *+' conftest.er1 >conftest.err
6151
 
  rm -f conftest.er1
6152
 
  cat conftest.err >&5
6153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154
 
  (exit $ac_status); } && {
6155
 
         test -z "$ac_f77_werror_flag" ||
6156
 
         test ! -s conftest.err
6157
 
       } && test -s conftest.$ac_objext; then
6158
 
  ac_compiler_gnu=yes
6159
 
else
6160
 
  echo "$as_me: failed program was:" >&5
6161
 
sed 's/^/| /' conftest.$ac_ext >&5
6162
 
 
6163
 
        ac_compiler_gnu=no
6164
 
fi
6165
 
 
6166
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6168
 
 
6169
 
fi
6170
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6171
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6172
 
ac_ext=$ac_save_ext
6173
 
ac_test_FFLAGS=${FFLAGS+set}
6174
 
ac_save_FFLAGS=$FFLAGS
6175
 
FFLAGS=
6176
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6177
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6178
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6180
 
else
6181
 
  FFLAGS=-g
6182
 
cat >conftest.$ac_ext <<_ACEOF
6183
 
      program main
6184
 
 
6185
 
      end
6186
 
_ACEOF
6187
 
rm -f conftest.$ac_objext
6188
 
if { (ac_try="$ac_compile"
6189
 
case "(($ac_try" in
6190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191
 
  *) ac_try_echo=$ac_try;;
6192
 
esac
6193
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194
 
  (eval "$ac_compile") 2>conftest.er1
6195
 
  ac_status=$?
6196
 
  grep -v '^ *+' conftest.er1 >conftest.err
6197
 
  rm -f conftest.er1
6198
 
  cat conftest.err >&5
6199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
 
  (exit $ac_status); } && {
6201
 
         test -z "$ac_f77_werror_flag" ||
6202
 
         test ! -s conftest.err
6203
 
       } && test -s conftest.$ac_objext; then
6204
 
  ac_cv_prog_f77_g=yes
6205
 
else
6206
 
  echo "$as_me: failed program was:" >&5
6207
 
sed 's/^/| /' conftest.$ac_ext >&5
6208
 
 
6209
 
        ac_cv_prog_f77_g=no
6210
 
fi
6211
 
 
6212
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213
 
 
6214
 
fi
6215
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6216
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6217
 
if test "$ac_test_FFLAGS" = set; then
6218
 
  FFLAGS=$ac_save_FFLAGS
6219
 
elif test $ac_cv_prog_f77_g = yes; then
6220
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6221
 
    FFLAGS="-g -O2"
6222
 
  else
6223
 
    FFLAGS="-g"
6224
 
  fi
6225
 
else
6226
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6227
 
    FFLAGS="-O2"
6228
 
  else
6229
 
    FFLAGS=
6230
 
  fi
6231
 
fi
6232
 
 
6233
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6234
 
ac_ext=c
6235
 
ac_cpp='$CPP $CPPFLAGS'
6236
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
 
 
6240
 
 
6241
 
 
6242
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6243
 
# find the maximum length of command line arguments
6244
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6245
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6246
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6248
 
else
6249
 
    i=0
6250
 
  teststring="ABCD"
6251
 
 
6252
 
  case $build_os in
6253
 
  msdosdjgpp*)
6254
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6255
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6256
 
    # during glob expansion).  Even if it were fixed, the result of this
6257
 
    # check would be larger than it should be.
6258
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6259
 
    ;;
6260
 
 
6261
 
  gnu*)
6262
 
    # Under GNU Hurd, this test is not required because there is
6263
 
    # no limit to the length of command line arguments.
6264
 
    # Libtool will interpret -1 as no limit whatsoever
6265
 
    lt_cv_sys_max_cmd_len=-1;
6266
 
    ;;
6267
 
 
6268
 
  cygwin* | mingw*)
6269
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6270
 
    # about 5 minutes as the teststring grows exponentially.
6271
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6272
 
    # you end up with a "frozen" computer, even though with patience
6273
 
    # the test eventually succeeds (with a max line length of 256k).
6274
 
    # Instead, let's just punt: use the minimum linelength reported by
6275
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6276
 
    lt_cv_sys_max_cmd_len=8192;
6277
 
    ;;
6278
 
 
6279
 
  amigaos*)
6280
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6281
 
    # So we just punt and use a minimum line length of 8192.
6282
 
    lt_cv_sys_max_cmd_len=8192;
6283
 
    ;;
6284
 
 
6285
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286
 
    # This has been around since 386BSD, at least.  Likely further.
6287
 
    if test -x /sbin/sysctl; then
6288
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289
 
    elif test -x /usr/sbin/sysctl; then
6290
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6291
 
    else
6292
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6293
 
    fi
6294
 
    # And add a safety zone
6295
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297
 
    ;;
6298
 
 
6299
 
  interix*)
6300
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301
 
    lt_cv_sys_max_cmd_len=196608
6302
 
    ;;
6303
 
 
6304
 
  osf*)
6305
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307
 
    # nice to cause kernel panics so lets avoid the loop below.
6308
 
    # First set a reasonable default.
6309
 
    lt_cv_sys_max_cmd_len=16384
6310
 
    #
6311
 
    if test -x /sbin/sysconfig; then
6312
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314
 
      esac
6315
 
    fi
6316
 
    ;;
6317
 
  sco3.2v5*)
6318
 
    lt_cv_sys_max_cmd_len=102400
6319
 
    ;;
6320
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6321
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322
 
    if test -n "$kargmax"; then
6323
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6324
 
    else
6325
 
      lt_cv_sys_max_cmd_len=32768
6326
 
    fi
6327
 
    ;;
6328
 
  *)
6329
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6331
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333
 
    else
6334
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6335
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6336
 
               = "XX$teststring") >/dev/null 2>&1 &&
6337
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6338
 
              lt_cv_sys_max_cmd_len=$new_result &&
6339
 
              test $i != 17 # 1/2 MB should be enough
6340
 
      do
6341
 
        i=`expr $i + 1`
6342
 
        teststring=$teststring$teststring
6343
 
      done
6344
 
      teststring=
6345
 
      # Add a significant safety factor because C++ compilers can tack on massive
6346
 
      # amounts of additional arguments before passing them to the linker.
6347
 
      # It appears as though 1/2 is a usable value.
6348
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349
 
    fi
6350
 
    ;;
6351
 
  esac
6352
 
 
6353
 
fi
6354
 
 
6355
 
if test -n $lt_cv_sys_max_cmd_len ; then
6356
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6357
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6358
 
else
6359
 
  { echo "$as_me:$LINENO: result: none" >&5
6360
 
echo "${ECHO_T}none" >&6; }
6361
 
fi
6362
 
 
6363
 
 
6364
 
 
6365
 
 
6366
 
 
6367
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6368
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6369
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6370
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6371
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6372
 
else
6373
 
 
6374
 
# These are sane defaults that work on at least a few old systems.
6375
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6376
 
 
6377
 
# Character class describing NM global symbol codes.
6378
 
symcode='[BCDEGRST]'
6379
 
 
6380
 
# Regexp to match symbols that can be accessed directly from C.
6381
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6382
 
 
6383
 
# Transform an extracted symbol line into a proper C declaration
6384
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6385
 
 
6386
 
# Transform an extracted symbol line into symbol name and symbol address
6387
 
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'"
6388
 
 
6389
 
# Define system-specific variables.
6390
 
case $host_os in
6391
 
aix*)
6392
 
  symcode='[BCDT]'
6393
 
  ;;
6394
 
cygwin* | mingw* | pw32*)
6395
 
  symcode='[ABCDGISTW]'
6396
 
  ;;
6397
 
hpux*) # Its linker distinguishes data from code symbols
6398
 
  if test "$host_cpu" = ia64; then
6399
 
    symcode='[ABCDEGRST]'
6400
 
  fi
6401
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6402
 
  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'"
6403
 
  ;;
6404
 
linux* | k*bsd*-gnu)
6405
 
  if test "$host_cpu" = ia64; then
6406
 
    symcode='[ABCDGIRSTW]'
6407
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6408
 
    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'"
6409
 
  fi
6410
 
  ;;
6411
 
irix* | nonstopux*)
6412
 
  symcode='[BCDEGRST]'
6413
 
  ;;
6414
 
osf*)
6415
 
  symcode='[BCDEGQRST]'
6416
 
  ;;
6417
 
solaris*)
6418
 
  symcode='[BDRT]'
6419
 
  ;;
6420
 
sco3.2v5*)
6421
 
  symcode='[DT]'
6422
 
  ;;
6423
 
sysv4.2uw2*)
6424
 
  symcode='[DT]'
6425
 
  ;;
6426
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6427
 
  symcode='[ABDT]'
6428
 
  ;;
6429
 
sysv4)
6430
 
  symcode='[DFNSTU]'
6431
 
  ;;
6432
 
esac
6433
 
 
6434
 
# Handle CRLF in mingw tool chain
6435
 
opt_cr=
6436
 
case $build_os in
6437
 
mingw*)
6438
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6439
 
  ;;
6440
 
esac
6441
 
 
6442
 
# If we're using GNU nm, then use its standard symbol codes.
6443
 
case `$NM -V 2>&1` in
6444
 
*GNU* | *'with BFD'*)
6445
 
  symcode='[ABCDGIRSTW]' ;;
6446
 
esac
6447
 
 
6448
 
# Try without a prefix undercore, then with it.
6449
 
for ac_symprfx in "" "_"; do
6450
 
 
6451
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6452
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6453
 
 
6454
 
  # Write the raw and C identifiers.
6455
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6456
 
 
6457
 
  # Check to see that the pipe works correctly.
6458
 
  pipe_works=no
6459
 
 
6460
 
  rm -f conftest*
6461
 
  cat > conftest.$ac_ext <<EOF
6462
 
#ifdef __cplusplus
6463
 
extern "C" {
6464
 
#endif
6465
 
char nm_test_var;
6466
 
void nm_test_func(){}
6467
 
#ifdef __cplusplus
6468
 
}
6469
 
#endif
6470
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6471
 
EOF
6472
 
 
6473
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474
 
  (eval $ac_compile) 2>&5
6475
 
  ac_status=$?
6476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
 
  (exit $ac_status); }; then
6478
 
    # Now try to grab the symbols.
6479
 
    nlist=conftest.nm
6480
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6481
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6482
 
  ac_status=$?
6483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484
 
  (exit $ac_status); } && test -s "$nlist"; then
6485
 
      # Try sorting and uniquifying the output.
6486
 
      if sort "$nlist" | uniq > "$nlist"T; then
6487
 
        mv -f "$nlist"T "$nlist"
6488
 
      else
6489
 
        rm -f "$nlist"T
6490
 
      fi
6491
 
 
6492
 
      # Make sure that we snagged all the symbols we need.
6493
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6494
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6495
 
          cat <<EOF > conftest.$ac_ext
6496
 
#ifdef __cplusplus
6497
 
extern "C" {
6498
 
#endif
6499
 
 
6500
 
EOF
6501
 
          # Now generate the symbol file.
6502
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6503
 
 
6504
 
          cat <<EOF >> conftest.$ac_ext
6505
 
#if defined (__STDC__) && __STDC__
6506
 
# define lt_ptr_t void *
6507
 
#else
6508
 
# define lt_ptr_t char *
6509
 
# define const
6510
 
#endif
6511
 
 
6512
 
/* The mapping between symbol names and symbols. */
6513
 
const struct {
6514
 
  const char *name;
6515
 
  lt_ptr_t address;
6516
 
}
6517
 
lt_preloaded_symbols[] =
6518
 
{
6519
 
EOF
6520
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6521
 
          cat <<\EOF >> conftest.$ac_ext
6522
 
  {0, (lt_ptr_t) 0}
6523
 
};
6524
 
 
6525
 
#ifdef __cplusplus
6526
 
}
6527
 
#endif
6528
 
EOF
6529
 
          # Now try linking the two files.
6530
 
          mv conftest.$ac_objext conftstm.$ac_objext
6531
 
          lt_save_LIBS="$LIBS"
6532
 
          lt_save_CFLAGS="$CFLAGS"
6533
 
          LIBS="conftstm.$ac_objext"
6534
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6535
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536
 
  (eval $ac_link) 2>&5
6537
 
  ac_status=$?
6538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6540
 
            pipe_works=yes
6541
 
          fi
6542
 
          LIBS="$lt_save_LIBS"
6543
 
          CFLAGS="$lt_save_CFLAGS"
6544
 
        else
6545
 
          echo "cannot find nm_test_func in $nlist" >&5
6546
 
        fi
6547
 
      else
6548
 
        echo "cannot find nm_test_var in $nlist" >&5
6549
 
      fi
6550
 
    else
6551
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552
 
    fi
6553
 
  else
6554
 
    echo "$progname: failed program was:" >&5
6555
 
    cat conftest.$ac_ext >&5
6556
 
  fi
6557
 
  rm -rf conftest* conftst*
6558
 
 
6559
 
  # Do not use the global_symbol_pipe unless it works.
6560
 
  if test "$pipe_works" = yes; then
6561
 
    break
6562
 
  else
6563
 
    lt_cv_sys_global_symbol_pipe=
6564
 
  fi
6565
 
done
6566
 
 
6567
 
fi
6568
 
 
6569
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6570
 
  lt_cv_sys_global_symbol_to_cdecl=
6571
 
fi
6572
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6573
 
  { echo "$as_me:$LINENO: result: failed" >&5
6574
 
echo "${ECHO_T}failed" >&6; }
6575
 
else
6576
 
  { echo "$as_me:$LINENO: result: ok" >&5
6577
 
echo "${ECHO_T}ok" >&6; }
6578
 
fi
6579
 
 
6580
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
6581
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6582
 
if test "${lt_cv_objdir+set}" = set; then
6583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6584
 
else
6585
 
  rm -f .libs 2>/dev/null
6586
 
mkdir .libs 2>/dev/null
6587
 
if test -d .libs; then
6588
 
  lt_cv_objdir=.libs
6589
 
else
6590
 
  # MS-DOS does not allow filenames that begin with a dot.
6591
 
  lt_cv_objdir=_libs
6592
 
fi
6593
 
rmdir .libs 2>/dev/null
6594
 
fi
6595
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6596
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6597
 
objdir=$lt_cv_objdir
6598
 
 
6599
 
 
6600
 
 
6601
 
 
6602
 
 
6603
 
case $host_os in
6604
 
aix3*)
6605
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6606
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6607
 
  # vanish in a puff of smoke.
6608
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6609
 
    COLLECT_NAMES=
6610
 
    export COLLECT_NAMES
6611
 
  fi
6612
 
  ;;
6613
 
esac
6614
 
 
6615
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6616
 
# metacharacters that are still active within double-quoted strings.
6617
 
Xsed='sed -e 1s/^X//'
6618
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6619
 
 
6620
 
# Same as above, but do not quote variable references.
6621
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6622
 
 
6623
 
# Sed substitution to delay expansion of an escaped shell variable in a
6624
 
# double_quote_subst'ed string.
6625
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6626
 
 
6627
 
# Sed substitution to avoid accidental globbing in evaled expressions
6628
 
no_glob_subst='s/\*/\\\*/g'
6629
 
 
6630
 
# Constants:
6631
 
rm="rm -f"
6632
 
 
6633
 
# Global variables:
6634
 
default_ofile=libtool
6635
 
can_build_shared=yes
6636
 
 
6637
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6638
 
# which needs '.lib').
6639
 
libext=a
6640
 
ltmain="$ac_aux_dir/ltmain.sh"
6641
 
ofile="$default_ofile"
6642
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6643
 
 
6644
 
if test -n "$ac_tool_prefix"; then
6645
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6646
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6647
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649
 
if test "${ac_cv_prog_AR+set}" = set; then
6650
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6651
 
else
6652
 
  if test -n "$AR"; then
6653
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6654
 
else
6655
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656
 
for as_dir in $PATH
6657
 
do
6658
 
  IFS=$as_save_IFS
6659
 
  test -z "$as_dir" && as_dir=.
6660
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6661
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6663
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664
 
    break 2
6665
 
  fi
6666
 
done
6667
 
done
6668
 
IFS=$as_save_IFS
6669
 
 
6670
 
fi
6671
 
fi
6672
 
AR=$ac_cv_prog_AR
6673
 
if test -n "$AR"; then
6674
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6675
 
echo "${ECHO_T}$AR" >&6; }
6676
 
else
6677
 
  { echo "$as_me:$LINENO: result: no" >&5
6678
 
echo "${ECHO_T}no" >&6; }
6679
 
fi
6680
 
 
6681
 
 
6682
 
fi
6683
 
if test -z "$ac_cv_prog_AR"; then
6684
 
  ac_ct_AR=$AR
6685
 
  # Extract the first word of "ar", so it can be a program name with args.
6686
 
set dummy ar; ac_word=$2
6687
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6690
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6691
 
else
6692
 
  if test -n "$ac_ct_AR"; then
6693
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6694
 
else
6695
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696
 
for as_dir in $PATH
6697
 
do
6698
 
  IFS=$as_save_IFS
6699
 
  test -z "$as_dir" && as_dir=.
6700
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6701
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702
 
    ac_cv_prog_ac_ct_AR="ar"
6703
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704
 
    break 2
6705
 
  fi
6706
 
done
6707
 
done
6708
 
IFS=$as_save_IFS
6709
 
 
6710
 
fi
6711
 
fi
6712
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6713
 
if test -n "$ac_ct_AR"; then
6714
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6715
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
6716
 
else
6717
 
  { echo "$as_me:$LINENO: result: no" >&5
6718
 
echo "${ECHO_T}no" >&6; }
6719
 
fi
6720
 
 
6721
 
  if test "x$ac_ct_AR" = x; then
6722
 
    AR="false"
6723
 
  else
6724
 
    case $cross_compiling:$ac_tool_warned in
6725
 
yes:)
6726
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6727
 
whose name does not start with the host triplet.  If you think this
6728
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6729
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6730
 
whose name does not start with the host triplet.  If you think this
6731
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6732
 
ac_tool_warned=yes ;;
6733
 
esac
6734
 
    AR=$ac_ct_AR
6735
 
  fi
6736
 
else
6737
 
  AR="$ac_cv_prog_AR"
6738
 
fi
6739
 
 
6740
 
if test -n "$ac_tool_prefix"; then
6741
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6742
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6743
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6746
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6747
 
else
6748
 
  if test -n "$RANLIB"; then
6749
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750
 
else
6751
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752
 
for as_dir in $PATH
6753
 
do
6754
 
  IFS=$as_save_IFS
6755
 
  test -z "$as_dir" && as_dir=.
6756
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6757
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6759
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760
 
    break 2
6761
 
  fi
6762
 
done
6763
 
done
6764
 
IFS=$as_save_IFS
6765
 
 
6766
 
fi
6767
 
fi
6768
 
RANLIB=$ac_cv_prog_RANLIB
6769
 
if test -n "$RANLIB"; then
6770
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6771
 
echo "${ECHO_T}$RANLIB" >&6; }
6772
 
else
6773
 
  { echo "$as_me:$LINENO: result: no" >&5
6774
 
echo "${ECHO_T}no" >&6; }
6775
 
fi
6776
 
 
6777
 
 
6778
 
fi
6779
 
if test -z "$ac_cv_prog_RANLIB"; then
6780
 
  ac_ct_RANLIB=$RANLIB
6781
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6782
 
set dummy ranlib; ac_word=$2
6783
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6786
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6787
 
else
6788
 
  if test -n "$ac_ct_RANLIB"; then
6789
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790
 
else
6791
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792
 
for as_dir in $PATH
6793
 
do
6794
 
  IFS=$as_save_IFS
6795
 
  test -z "$as_dir" && as_dir=.
6796
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6797
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6799
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800
 
    break 2
6801
 
  fi
6802
 
done
6803
 
done
6804
 
IFS=$as_save_IFS
6805
 
 
6806
 
fi
6807
 
fi
6808
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809
 
if test -n "$ac_ct_RANLIB"; then
6810
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6811
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6812
 
else
6813
 
  { echo "$as_me:$LINENO: result: no" >&5
6814
 
echo "${ECHO_T}no" >&6; }
6815
 
fi
6816
 
 
6817
 
  if test "x$ac_ct_RANLIB" = x; then
6818
 
    RANLIB=":"
6819
 
  else
6820
 
    case $cross_compiling:$ac_tool_warned in
6821
 
yes:)
6822
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6823
 
whose name does not start with the host triplet.  If you think this
6824
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6825
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6826
 
whose name does not start with the host triplet.  If you think this
6827
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6828
 
ac_tool_warned=yes ;;
6829
 
esac
6830
 
    RANLIB=$ac_ct_RANLIB
6831
 
  fi
6832
 
else
6833
 
  RANLIB="$ac_cv_prog_RANLIB"
6834
 
fi
6835
 
 
6836
 
if test -n "$ac_tool_prefix"; then
6837
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6839
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6840
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6843
 
else
6844
 
  if test -n "$STRIP"; then
6845
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6846
 
else
6847
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848
 
for as_dir in $PATH
6849
 
do
6850
 
  IFS=$as_save_IFS
6851
 
  test -z "$as_dir" && as_dir=.
6852
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6853
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6855
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856
 
    break 2
6857
 
  fi
6858
 
done
6859
 
done
6860
 
IFS=$as_save_IFS
6861
 
 
6862
 
fi
6863
 
fi
6864
 
STRIP=$ac_cv_prog_STRIP
6865
 
if test -n "$STRIP"; then
6866
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6867
 
echo "${ECHO_T}$STRIP" >&6; }
6868
 
else
6869
 
  { echo "$as_me:$LINENO: result: no" >&5
6870
 
echo "${ECHO_T}no" >&6; }
6871
 
fi
6872
 
 
6873
 
 
6874
 
fi
6875
 
if test -z "$ac_cv_prog_STRIP"; then
6876
 
  ac_ct_STRIP=$STRIP
6877
 
  # Extract the first word of "strip", so it can be a program name with args.
6878
 
set dummy strip; ac_word=$2
6879
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6882
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6883
 
else
6884
 
  if test -n "$ac_ct_STRIP"; then
6885
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6886
 
else
6887
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888
 
for as_dir in $PATH
6889
 
do
6890
 
  IFS=$as_save_IFS
6891
 
  test -z "$as_dir" && as_dir=.
6892
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6893
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894
 
    ac_cv_prog_ac_ct_STRIP="strip"
6895
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896
 
    break 2
6897
 
  fi
6898
 
done
6899
 
done
6900
 
IFS=$as_save_IFS
6901
 
 
6902
 
fi
6903
 
fi
6904
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6905
 
if test -n "$ac_ct_STRIP"; then
6906
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6907
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6908
 
else
6909
 
  { echo "$as_me:$LINENO: result: no" >&5
6910
 
echo "${ECHO_T}no" >&6; }
6911
 
fi
6912
 
 
6913
 
  if test "x$ac_ct_STRIP" = x; then
6914
 
    STRIP=":"
6915
 
  else
6916
 
    case $cross_compiling:$ac_tool_warned in
6917
 
yes:)
6918
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6919
 
whose name does not start with the host triplet.  If you think this
6920
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6921
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6922
 
whose name does not start with the host triplet.  If you think this
6923
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6924
 
ac_tool_warned=yes ;;
6925
 
esac
6926
 
    STRIP=$ac_ct_STRIP
6927
 
  fi
6928
 
else
6929
 
  STRIP="$ac_cv_prog_STRIP"
6930
 
fi
6931
 
 
6932
 
 
6933
 
old_CC="$CC"
6934
 
old_CFLAGS="$CFLAGS"
6935
 
 
6936
 
# Set sane defaults for various variables
6937
 
test -z "$AR" && AR=ar
6938
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6939
 
test -z "$AS" && AS=as
6940
 
test -z "$CC" && CC=cc
6941
 
test -z "$LTCC" && LTCC=$CC
6942
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6943
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6944
 
test -z "$LD" && LD=ld
6945
 
test -z "$LN_S" && LN_S="ln -s"
6946
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6947
 
test -z "$NM" && NM=nm
6948
 
test -z "$SED" && SED=sed
6949
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6950
 
test -z "$RANLIB" && RANLIB=:
6951
 
test -z "$STRIP" && STRIP=:
6952
 
test -z "$ac_objext" && ac_objext=o
6953
 
 
6954
 
# Determine commands to create old-style static archives.
6955
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956
 
old_postinstall_cmds='chmod 644 $oldlib'
6957
 
old_postuninstall_cmds=
6958
 
 
6959
 
if test -n "$RANLIB"; then
6960
 
  case $host_os in
6961
 
  openbsd*)
6962
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6963
 
    ;;
6964
 
  *)
6965
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6966
 
    ;;
6967
 
  esac
6968
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6969
 
fi
6970
 
 
6971
 
for cc_temp in $compiler""; do
6972
 
  case $cc_temp in
6973
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6974
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6975
 
    \-*) ;;
6976
 
    *) break;;
6977
 
  esac
6978
 
done
6979
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6980
 
 
6981
 
 
6982
 
# Only perform the check for file, if the check method requires it
6983
 
case $deplibs_check_method in
6984
 
file_magic*)
6985
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6986
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6987
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6988
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6990
 
else
6991
 
  case $MAGIC_CMD in
6992
 
[\\/*] |  ?:[\\/]*)
6993
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6994
 
  ;;
6995
 
*)
6996
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6997
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6998
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6999
 
  for ac_dir in $ac_dummy; do
7000
 
    IFS="$lt_save_ifs"
7001
 
    test -z "$ac_dir" && ac_dir=.
7002
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7003
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7004
 
      if test -n "$file_magic_test_file"; then
7005
 
        case $deplibs_check_method in
7006
 
        "file_magic "*)
7007
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7008
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7010
 
            $EGREP "$file_magic_regex" > /dev/null; then
7011
 
            :
7012
 
          else
7013
 
            cat <<EOF 1>&2
7014
 
 
7015
 
*** Warning: the command libtool uses to detect shared libraries,
7016
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7017
 
*** The result is that libtool may fail to recognize shared libraries
7018
 
*** as such.  This will affect the creation of libtool libraries that
7019
 
*** depend on shared libraries, but programs linked with such libtool
7020
 
*** libraries will work regardless of this problem.  Nevertheless, you
7021
 
*** may want to report the problem to your system manager and/or to
7022
 
*** bug-libtool@gnu.org
7023
 
 
7024
 
EOF
7025
 
          fi ;;
7026
 
        esac
7027
 
      fi
7028
 
      break
7029
 
    fi
7030
 
  done
7031
 
  IFS="$lt_save_ifs"
7032
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7033
 
  ;;
7034
 
esac
7035
 
fi
7036
 
 
7037
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7038
 
if test -n "$MAGIC_CMD"; then
7039
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7040
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7041
 
else
7042
 
  { echo "$as_me:$LINENO: result: no" >&5
7043
 
echo "${ECHO_T}no" >&6; }
7044
 
fi
7045
 
 
7046
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7047
 
  if test -n "$ac_tool_prefix"; then
7048
 
    { echo "$as_me:$LINENO: checking for file" >&5
7049
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7050
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7051
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7052
 
else
7053
 
  case $MAGIC_CMD in
7054
 
[\\/*] |  ?:[\\/]*)
7055
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7056
 
  ;;
7057
 
*)
7058
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7059
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7060
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7061
 
  for ac_dir in $ac_dummy; do
7062
 
    IFS="$lt_save_ifs"
7063
 
    test -z "$ac_dir" && ac_dir=.
7064
 
    if test -f $ac_dir/file; then
7065
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7066
 
      if test -n "$file_magic_test_file"; then
7067
 
        case $deplibs_check_method in
7068
 
        "file_magic "*)
7069
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7070
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7072
 
            $EGREP "$file_magic_regex" > /dev/null; then
7073
 
            :
7074
 
          else
7075
 
            cat <<EOF 1>&2
7076
 
 
7077
 
*** Warning: the command libtool uses to detect shared libraries,
7078
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7079
 
*** The result is that libtool may fail to recognize shared libraries
7080
 
*** as such.  This will affect the creation of libtool libraries that
7081
 
*** depend on shared libraries, but programs linked with such libtool
7082
 
*** libraries will work regardless of this problem.  Nevertheless, you
7083
 
*** may want to report the problem to your system manager and/or to
7084
 
*** bug-libtool@gnu.org
7085
 
 
7086
 
EOF
7087
 
          fi ;;
7088
 
        esac
7089
 
      fi
7090
 
      break
7091
 
    fi
7092
 
  done
7093
 
  IFS="$lt_save_ifs"
7094
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7095
 
  ;;
7096
 
esac
7097
 
fi
7098
 
 
7099
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100
 
if test -n "$MAGIC_CMD"; then
7101
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7102
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7103
 
else
7104
 
  { echo "$as_me:$LINENO: result: no" >&5
7105
 
echo "${ECHO_T}no" >&6; }
7106
 
fi
7107
 
 
7108
 
  else
7109
 
    MAGIC_CMD=:
7110
 
  fi
7111
 
fi
7112
 
 
7113
 
  fi
7114
 
  ;;
7115
 
esac
7116
 
 
7117
 
 
7118
 
  case $host_os in
7119
 
    rhapsody* | darwin*)
7120
 
    if test -n "$ac_tool_prefix"; then
7121
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7122
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7123
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7126
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7127
 
else
7128
 
  if test -n "$DSYMUTIL"; then
7129
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7130
 
else
7131
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132
 
for as_dir in $PATH
7133
 
do
7134
 
  IFS=$as_save_IFS
7135
 
  test -z "$as_dir" && as_dir=.
7136
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7137
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7139
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140
 
    break 2
7141
 
  fi
7142
 
done
7143
 
done
7144
 
IFS=$as_save_IFS
7145
 
 
7146
 
fi
7147
 
fi
7148
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7149
 
if test -n "$DSYMUTIL"; then
7150
 
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7151
 
echo "${ECHO_T}$DSYMUTIL" >&6; }
7152
 
else
7153
 
  { echo "$as_me:$LINENO: result: no" >&5
7154
 
echo "${ECHO_T}no" >&6; }
7155
 
fi
7156
 
 
7157
 
 
7158
 
fi
7159
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
7160
 
  ac_ct_DSYMUTIL=$DSYMUTIL
7161
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
7162
 
set dummy dsymutil; ac_word=$2
7163
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7166
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7167
 
else
7168
 
  if test -n "$ac_ct_DSYMUTIL"; then
7169
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7170
 
else
7171
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172
 
for as_dir in $PATH
7173
 
do
7174
 
  IFS=$as_save_IFS
7175
 
  test -z "$as_dir" && as_dir=.
7176
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7177
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7179
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180
 
    break 2
7181
 
  fi
7182
 
done
7183
 
done
7184
 
IFS=$as_save_IFS
7185
 
 
7186
 
fi
7187
 
fi
7188
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7189
 
if test -n "$ac_ct_DSYMUTIL"; then
7190
 
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7191
 
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7192
 
else
7193
 
  { echo "$as_me:$LINENO: result: no" >&5
7194
 
echo "${ECHO_T}no" >&6; }
7195
 
fi
7196
 
 
7197
 
  if test "x$ac_ct_DSYMUTIL" = x; then
7198
 
    DSYMUTIL=":"
7199
 
  else
7200
 
    case $cross_compiling:$ac_tool_warned in
7201
 
yes:)
7202
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7203
 
whose name does not start with the host triplet.  If you think this
7204
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7205
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7206
 
whose name does not start with the host triplet.  If you think this
7207
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7208
 
ac_tool_warned=yes ;;
7209
 
esac
7210
 
    DSYMUTIL=$ac_ct_DSYMUTIL
7211
 
  fi
7212
 
else
7213
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7214
 
fi
7215
 
 
7216
 
    if test -n "$ac_tool_prefix"; then
7217
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7218
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7219
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7222
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7223
 
else
7224
 
  if test -n "$NMEDIT"; then
7225
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7226
 
else
7227
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228
 
for as_dir in $PATH
7229
 
do
7230
 
  IFS=$as_save_IFS
7231
 
  test -z "$as_dir" && as_dir=.
7232
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7233
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7235
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236
 
    break 2
7237
 
  fi
7238
 
done
7239
 
done
7240
 
IFS=$as_save_IFS
7241
 
 
7242
 
fi
7243
 
fi
7244
 
NMEDIT=$ac_cv_prog_NMEDIT
7245
 
if test -n "$NMEDIT"; then
7246
 
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7247
 
echo "${ECHO_T}$NMEDIT" >&6; }
7248
 
else
7249
 
  { echo "$as_me:$LINENO: result: no" >&5
7250
 
echo "${ECHO_T}no" >&6; }
7251
 
fi
7252
 
 
7253
 
 
7254
 
fi
7255
 
if test -z "$ac_cv_prog_NMEDIT"; then
7256
 
  ac_ct_NMEDIT=$NMEDIT
7257
 
  # Extract the first word of "nmedit", so it can be a program name with args.
7258
 
set dummy nmedit; ac_word=$2
7259
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7262
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7263
 
else
7264
 
  if test -n "$ac_ct_NMEDIT"; then
7265
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7266
 
else
7267
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268
 
for as_dir in $PATH
7269
 
do
7270
 
  IFS=$as_save_IFS
7271
 
  test -z "$as_dir" && as_dir=.
7272
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7273
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7275
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276
 
    break 2
7277
 
  fi
7278
 
done
7279
 
done
7280
 
IFS=$as_save_IFS
7281
 
 
7282
 
fi
7283
 
fi
7284
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7285
 
if test -n "$ac_ct_NMEDIT"; then
7286
 
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7287
 
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7288
 
else
7289
 
  { echo "$as_me:$LINENO: result: no" >&5
7290
 
echo "${ECHO_T}no" >&6; }
7291
 
fi
7292
 
 
7293
 
  if test "x$ac_ct_NMEDIT" = x; then
7294
 
    NMEDIT=":"
7295
 
  else
7296
 
    case $cross_compiling:$ac_tool_warned in
7297
 
yes:)
7298
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7299
 
whose name does not start with the host triplet.  If you think this
7300
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7301
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7302
 
whose name does not start with the host triplet.  If you think this
7303
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7304
 
ac_tool_warned=yes ;;
7305
 
esac
7306
 
    NMEDIT=$ac_ct_NMEDIT
7307
 
  fi
7308
 
else
7309
 
  NMEDIT="$ac_cv_prog_NMEDIT"
7310
 
fi
7311
 
 
7312
 
 
7313
 
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7314
 
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7315
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7316
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7317
 
else
7318
 
  lt_cv_apple_cc_single_mod=no
7319
 
      if test -z "${LT_MULTI_MODULE}"; then
7320
 
   # By default we will add the -single_module flag. You can override
7321
 
   # by either setting the environment variable LT_MULTI_MODULE
7322
 
   # non-empty at configure time, or by adding -multi_module to the
7323
 
   # link flags.
7324
 
   echo "int foo(void){return 1;}" > conftest.c
7325
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7326
 
     -dynamiclib ${wl}-single_module conftest.c
7327
 
   if test -f libconftest.dylib; then
7328
 
     lt_cv_apple_cc_single_mod=yes
7329
 
     rm -rf libconftest.dylib*
7330
 
   fi
7331
 
   rm conftest.c
7332
 
      fi
7333
 
fi
7334
 
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7335
 
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7336
 
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7337
 
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7338
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7340
 
else
7341
 
  lt_cv_ld_exported_symbols_list=no
7342
 
      save_LDFLAGS=$LDFLAGS
7343
 
      echo "_main" > conftest.sym
7344
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7345
 
      cat >conftest.$ac_ext <<_ACEOF
7346
 
/* confdefs.h.  */
7347
 
_ACEOF
7348
 
cat confdefs.h >>conftest.$ac_ext
7349
 
cat >>conftest.$ac_ext <<_ACEOF
7350
 
/* end confdefs.h.  */
7351
 
 
7352
 
int
7353
 
main ()
7354
 
{
7355
 
 
7356
 
  ;
7357
 
  return 0;
7358
 
}
7359
 
_ACEOF
7360
 
rm -f conftest.$ac_objext conftest$ac_exeext
7361
 
if { (ac_try="$ac_link"
7362
 
case "(($ac_try" in
7363
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364
 
  *) ac_try_echo=$ac_try;;
7365
 
esac
7366
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367
 
  (eval "$ac_link") 2>conftest.er1
7368
 
  ac_status=$?
7369
 
  grep -v '^ *+' conftest.er1 >conftest.err
7370
 
  rm -f conftest.er1
7371
 
  cat conftest.err >&5
7372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373
 
  (exit $ac_status); } && {
7374
 
         test -z "$ac_c_werror_flag" ||
7375
 
         test ! -s conftest.err
7376
 
       } && test -s conftest$ac_exeext &&
7377
 
       $as_test_x conftest$ac_exeext; then
7378
 
  lt_cv_ld_exported_symbols_list=yes
7379
 
else
7380
 
  echo "$as_me: failed program was:" >&5
7381
 
sed 's/^/| /' conftest.$ac_ext >&5
7382
 
 
7383
 
        lt_cv_ld_exported_symbols_list=no
7384
 
fi
7385
 
 
7386
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7387
 
      conftest$ac_exeext conftest.$ac_ext
7388
 
   LDFLAGS="$save_LDFLAGS"
7389
 
 
7390
 
fi
7391
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7392
 
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7393
 
    case $host_os in
7394
 
    rhapsody* | darwin1.[0123])
7395
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7396
 
    darwin1.*)
7397
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7398
 
    darwin*)
7399
 
      # if running on 10.5 or later, the deployment target defaults
7400
 
      # to the OS version, if on x86, and 10.4, the deployment
7401
 
      # target defaults to 10.4. Don't you love it?
7402
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7403
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7404
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7405
 
   10.[012]*)
7406
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7407
 
   10.*)
7408
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7409
 
      esac
7410
 
    ;;
7411
 
  esac
7412
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7413
 
      _lt_dar_single_mod='$single_module'
7414
 
    fi
7415
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7416
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7417
 
    else
7418
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7419
 
    fi
7420
 
    if test "$DSYMUTIL" != ":"; then
7421
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7422
 
    else
7423
 
      _lt_dsymutil=
7424
 
    fi
7425
 
    ;;
7426
 
  esac
7427
 
 
7428
 
 
7429
 
enable_dlopen=no
7430
 
enable_win32_dll=no
7431
 
 
7432
 
# Check whether --enable-libtool-lock was given.
7433
 
if test "${enable_libtool_lock+set}" = set; then
7434
 
  enableval=$enable_libtool_lock;
7435
 
fi
7436
 
 
7437
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7438
 
 
7439
 
 
7440
 
# Check whether --with-pic was given.
7441
 
if test "${with_pic+set}" = set; then
7442
 
  withval=$with_pic; pic_mode="$withval"
7443
 
else
7444
 
  pic_mode=default
7445
 
fi
7446
 
 
7447
 
test -z "$pic_mode" && pic_mode=default
7448
 
 
7449
 
# Use C for the default configuration in the libtool script
7450
 
tagname=
7451
 
lt_save_CC="$CC"
7452
 
ac_ext=c
7453
 
ac_cpp='$CPP $CPPFLAGS'
7454
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
 
 
7458
 
 
7459
 
# Source file extension for C test sources.
7460
 
ac_ext=c
7461
 
 
7462
 
# Object file extension for compiled C test sources.
7463
 
objext=o
7464
 
objext=$objext
7465
 
 
7466
 
# Code to be used in simple compile tests
7467
 
lt_simple_compile_test_code="int some_variable = 0;"
7468
 
 
7469
 
# Code to be used in simple link tests
7470
 
lt_simple_link_test_code='int main(){return(0);}'
7471
 
 
7472
 
 
7473
 
# If no C compiler was specified, use CC.
7474
 
LTCC=${LTCC-"$CC"}
7475
 
 
7476
 
# If no C compiler flags were specified, use CFLAGS.
7477
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478
 
 
7479
 
# Allow CC to be a program name with arguments.
7480
 
compiler=$CC
7481
 
 
7482
 
 
7483
 
# save warnings/boilerplate of simple test code
7484
 
ac_outfile=conftest.$ac_objext
7485
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487
 
_lt_compiler_boilerplate=`cat conftest.err`
7488
 
$rm conftest*
7489
 
 
7490
 
ac_outfile=conftest.$ac_objext
7491
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493
 
_lt_linker_boilerplate=`cat conftest.err`
7494
 
$rm -r conftest*
7495
 
 
7496
 
 
7497
 
 
7498
 
lt_prog_compiler_no_builtin_flag=
7499
 
 
7500
 
if test "$GCC" = yes; then
7501
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7502
 
 
7503
 
 
7504
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7505
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7506
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7507
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7508
 
else
7509
 
  lt_cv_prog_compiler_rtti_exceptions=no
7510
 
  ac_outfile=conftest.$ac_objext
7511
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7512
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7513
 
   # Insert the option either (1) after the last *FLAGS variable, or
7514
 
   # (2) before a word containing "conftest.", or (3) at the end.
7515
 
   # Note that $ac_compile itself does not contain backslashes and begins
7516
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7517
 
   # The option is referenced via a variable to avoid confusing sed.
7518
 
   lt_compile=`echo "$ac_compile" | $SED \
7519
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7520
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7521
 
   -e 's:$: $lt_compiler_flag:'`
7522
 
   (eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7523
 
   (eval "$lt_compile" 2>conftest.err)
7524
 
   ac_status=$?
7525
 
   cat conftest.err >&5
7526
 
   echo "$as_me:7526: \$? = $ac_status" >&5
7527
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7528
 
     # The compiler can only warn and ignore the option if not recognized
7529
 
     # So say no if there are warnings other than the usual output.
7530
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7531
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7533
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7534
 
     fi
7535
 
   fi
7536
 
   $rm conftest*
7537
 
 
7538
 
fi
7539
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7540
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7541
 
 
7542
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7543
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7544
 
else
7545
 
    :
7546
 
fi
7547
 
 
7548
 
fi
7549
 
 
7550
 
lt_prog_compiler_wl=
7551
 
lt_prog_compiler_pic=
7552
 
lt_prog_compiler_static=
7553
 
 
7554
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7555
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7556
 
 
7557
 
  if test "$GCC" = yes; then
7558
 
    lt_prog_compiler_wl='-Wl,'
7559
 
    lt_prog_compiler_static='-static'
7560
 
 
7561
 
    case $host_os in
7562
 
      aix*)
7563
 
      # All AIX code is PIC.
7564
 
      if test "$host_cpu" = ia64; then
7565
 
        # AIX 5 now supports IA64 processor
7566
 
        lt_prog_compiler_static='-Bstatic'
7567
 
      fi
7568
 
      ;;
7569
 
 
7570
 
    amigaos*)
7571
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7572
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7573
 
      # like `-m68040'.
7574
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7575
 
      ;;
7576
 
 
7577
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7578
 
      # PIC is the default for these OSes.
7579
 
      ;;
7580
 
 
7581
 
    mingw* | cygwin* | pw32* | os2*)
7582
 
      # This hack is so that the source file can tell whether it is being
7583
 
      # built for inclusion in a dll (and should export symbols for example).
7584
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7585
 
      # (--disable-auto-import) libraries
7586
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7587
 
      ;;
7588
 
 
7589
 
    darwin* | rhapsody*)
7590
 
      # PIC is the default on this platform
7591
 
      # Common symbols not allowed in MH_DYLIB files
7592
 
      lt_prog_compiler_pic='-fno-common'
7593
 
      ;;
7594
 
 
7595
 
    interix[3-9]*)
7596
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7597
 
      # Instead, we relocate shared libraries at runtime.
7598
 
      ;;
7599
 
 
7600
 
    msdosdjgpp*)
7601
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7602
 
      # on systems that don't support them.
7603
 
      lt_prog_compiler_can_build_shared=no
7604
 
      enable_shared=no
7605
 
      ;;
7606
 
 
7607
 
    sysv4*MP*)
7608
 
      if test -d /usr/nec; then
7609
 
        lt_prog_compiler_pic=-Kconform_pic
7610
 
      fi
7611
 
      ;;
7612
 
 
7613
 
    hpux*)
7614
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615
 
      # not for PA HP-UX.
7616
 
      case $host_cpu in
7617
 
      hppa*64*|ia64*)
7618
 
        # +Z the default
7619
 
        ;;
7620
 
      *)
7621
 
        lt_prog_compiler_pic='-fPIC'
7622
 
        ;;
7623
 
      esac
7624
 
      ;;
7625
 
 
7626
 
    *)
7627
 
      lt_prog_compiler_pic='-fPIC'
7628
 
      ;;
7629
 
    esac
7630
 
  else
7631
 
    # PORTME Check for flag to pass linker flags through the system compiler.
7632
 
    case $host_os in
7633
 
    aix*)
7634
 
      lt_prog_compiler_wl='-Wl,'
7635
 
      if test "$host_cpu" = ia64; then
7636
 
        # AIX 5 now supports IA64 processor
7637
 
        lt_prog_compiler_static='-Bstatic'
7638
 
      else
7639
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7640
 
      fi
7641
 
      ;;
7642
 
      darwin*)
7643
 
        # PIC is the default on this platform
7644
 
        # Common symbols not allowed in MH_DYLIB files
7645
 
       case $cc_basename in
7646
 
         xlc*)
7647
 
         lt_prog_compiler_pic='-qnocommon'
7648
 
         lt_prog_compiler_wl='-Wl,'
7649
 
         ;;
7650
 
       esac
7651
 
       ;;
7652
 
 
7653
 
    mingw* | cygwin* | pw32* | os2*)
7654
 
      # This hack is so that the source file can tell whether it is being
7655
 
      # built for inclusion in a dll (and should export symbols for example).
7656
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7657
 
      ;;
7658
 
 
7659
 
    hpux9* | hpux10* | hpux11*)
7660
 
      lt_prog_compiler_wl='-Wl,'
7661
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662
 
      # not for PA HP-UX.
7663
 
      case $host_cpu in
7664
 
      hppa*64*|ia64*)
7665
 
        # +Z the default
7666
 
        ;;
7667
 
      *)
7668
 
        lt_prog_compiler_pic='+Z'
7669
 
        ;;
7670
 
      esac
7671
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7672
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7673
 
      ;;
7674
 
 
7675
 
    irix5* | irix6* | nonstopux*)
7676
 
      lt_prog_compiler_wl='-Wl,'
7677
 
      # PIC (with -KPIC) is the default.
7678
 
      lt_prog_compiler_static='-non_shared'
7679
 
      ;;
7680
 
 
7681
 
    newsos6)
7682
 
      lt_prog_compiler_pic='-KPIC'
7683
 
      lt_prog_compiler_static='-Bstatic'
7684
 
      ;;
7685
 
 
7686
 
    linux* | k*bsd*-gnu)
7687
 
      case $cc_basename in
7688
 
      icc* | ecc*)
7689
 
        lt_prog_compiler_wl='-Wl,'
7690
 
        lt_prog_compiler_pic='-KPIC'
7691
 
        lt_prog_compiler_static='-static'
7692
 
        ;;
7693
 
      pgcc* | pgf77* | pgf90* | pgf95*)
7694
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
7695
 
        # which looks to be a dead project)
7696
 
        lt_prog_compiler_wl='-Wl,'
7697
 
        lt_prog_compiler_pic='-fpic'
7698
 
        lt_prog_compiler_static='-Bstatic'
7699
 
        ;;
7700
 
      ccc*)
7701
 
        lt_prog_compiler_wl='-Wl,'
7702
 
        # All Alpha code is PIC.
7703
 
        lt_prog_compiler_static='-non_shared'
7704
 
        ;;
7705
 
      *)
7706
 
        case `$CC -V 2>&1 | sed 5q` in
7707
 
        *Sun\ C*)
7708
 
          # Sun C 5.9
7709
 
          lt_prog_compiler_pic='-KPIC'
7710
 
          lt_prog_compiler_static='-Bstatic'
7711
 
          lt_prog_compiler_wl='-Wl,'
7712
 
          ;;
7713
 
        *Sun\ F*)
7714
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7715
 
          lt_prog_compiler_pic='-KPIC'
7716
 
          lt_prog_compiler_static='-Bstatic'
7717
 
          lt_prog_compiler_wl=''
7718
 
          ;;
7719
 
        esac
7720
 
        ;;
7721
 
      esac
7722
 
      ;;
7723
 
 
7724
 
    osf3* | osf4* | osf5*)
7725
 
      lt_prog_compiler_wl='-Wl,'
7726
 
      # All OSF/1 code is PIC.
7727
 
      lt_prog_compiler_static='-non_shared'
7728
 
      ;;
7729
 
 
7730
 
    rdos*)
7731
 
      lt_prog_compiler_static='-non_shared'
7732
 
      ;;
7733
 
 
7734
 
    solaris*)
7735
 
      lt_prog_compiler_pic='-KPIC'
7736
 
      lt_prog_compiler_static='-Bstatic'
7737
 
      case $cc_basename in
7738
 
      f77* | f90* | f95*)
7739
 
        lt_prog_compiler_wl='-Qoption ld ';;
7740
 
      *)
7741
 
        lt_prog_compiler_wl='-Wl,';;
7742
 
      esac
7743
 
      ;;
7744
 
 
7745
 
    sunos4*)
7746
 
      lt_prog_compiler_wl='-Qoption ld '
7747
 
      lt_prog_compiler_pic='-PIC'
7748
 
      lt_prog_compiler_static='-Bstatic'
7749
 
      ;;
7750
 
 
7751
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
7752
 
      lt_prog_compiler_wl='-Wl,'
7753
 
      lt_prog_compiler_pic='-KPIC'
7754
 
      lt_prog_compiler_static='-Bstatic'
7755
 
      ;;
7756
 
 
7757
 
    sysv4*MP*)
7758
 
      if test -d /usr/nec ;then
7759
 
        lt_prog_compiler_pic='-Kconform_pic'
7760
 
        lt_prog_compiler_static='-Bstatic'
7761
 
      fi
7762
 
      ;;
7763
 
 
7764
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7765
 
      lt_prog_compiler_wl='-Wl,'
7766
 
      lt_prog_compiler_pic='-KPIC'
7767
 
      lt_prog_compiler_static='-Bstatic'
7768
 
      ;;
7769
 
 
7770
 
    unicos*)
7771
 
      lt_prog_compiler_wl='-Wl,'
7772
 
      lt_prog_compiler_can_build_shared=no
7773
 
      ;;
7774
 
 
7775
 
    uts4*)
7776
 
      lt_prog_compiler_pic='-pic'
7777
 
      lt_prog_compiler_static='-Bstatic'
7778
 
      ;;
7779
 
 
7780
 
    *)
7781
 
      lt_prog_compiler_can_build_shared=no
7782
 
      ;;
7783
 
    esac
7784
 
  fi
7785
 
 
7786
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7788
 
 
7789
 
#
7790
 
# Check to make sure the PIC flag actually works.
7791
 
#
7792
 
if test -n "$lt_prog_compiler_pic"; then
7793
 
 
7794
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7796
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7797
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7798
 
else
7799
 
  lt_cv_prog_compiler_pic_works=no
7800
 
  ac_outfile=conftest.$ac_objext
7801
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803
 
   # Insert the option either (1) after the last *FLAGS variable, or
7804
 
   # (2) before a word containing "conftest.", or (3) at the end.
7805
 
   # Note that $ac_compile itself does not contain backslashes and begins
7806
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7807
 
   # The option is referenced via a variable to avoid confusing sed.
7808
 
   lt_compile=`echo "$ac_compile" | $SED \
7809
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811
 
   -e 's:$: $lt_compiler_flag:'`
7812
 
   (eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813
 
   (eval "$lt_compile" 2>conftest.err)
7814
 
   ac_status=$?
7815
 
   cat conftest.err >&5
7816
 
   echo "$as_me:7816: \$? = $ac_status" >&5
7817
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7818
 
     # The compiler can only warn and ignore the option if not recognized
7819
 
     # So say no if there are warnings other than the usual output.
7820
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7821
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823
 
       lt_cv_prog_compiler_pic_works=yes
7824
 
     fi
7825
 
   fi
7826
 
   $rm conftest*
7827
 
 
7828
 
fi
7829
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7830
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7831
 
 
7832
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7833
 
    case $lt_prog_compiler_pic in
7834
 
     "" | " "*) ;;
7835
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7836
 
     esac
7837
 
else
7838
 
    lt_prog_compiler_pic=
7839
 
     lt_prog_compiler_can_build_shared=no
7840
 
fi
7841
 
 
7842
 
fi
7843
 
case $host_os in
7844
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7845
 
  *djgpp*)
7846
 
    lt_prog_compiler_pic=
7847
 
    ;;
7848
 
  *)
7849
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7850
 
    ;;
7851
 
esac
7852
 
 
7853
 
#
7854
 
# Check to make sure the static flag actually works.
7855
 
#
7856
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7857
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7858
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7859
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7860
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7861
 
else
7862
 
  lt_cv_prog_compiler_static_works=no
7863
 
   save_LDFLAGS="$LDFLAGS"
7864
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7865
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7866
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7867
 
     # The linker can only warn and ignore the option if not recognized
7868
 
     # So say no if there are warnings
7869
 
     if test -s conftest.err; then
7870
 
       # Append any errors to the config.log.
7871
 
       cat conftest.err 1>&5
7872
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7873
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874
 
       if diff conftest.exp conftest.er2 >/dev/null; then
7875
 
         lt_cv_prog_compiler_static_works=yes
7876
 
       fi
7877
 
     else
7878
 
       lt_cv_prog_compiler_static_works=yes
7879
 
     fi
7880
 
   fi
7881
 
   $rm -r conftest*
7882
 
   LDFLAGS="$save_LDFLAGS"
7883
 
 
7884
 
fi
7885
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7886
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7887
 
 
7888
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7889
 
    :
7890
 
else
7891
 
    lt_prog_compiler_static=
7892
 
fi
7893
 
 
7894
 
 
7895
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7896
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7897
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7898
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7899
 
else
7900
 
  lt_cv_prog_compiler_c_o=no
7901
 
   $rm -r conftest 2>/dev/null
7902
 
   mkdir conftest
7903
 
   cd conftest
7904
 
   mkdir out
7905
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906
 
 
7907
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7908
 
   # Insert the option either (1) after the last *FLAGS variable, or
7909
 
   # (2) before a word containing "conftest.", or (3) at the end.
7910
 
   # Note that $ac_compile itself does not contain backslashes and begins
7911
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7912
 
   lt_compile=`echo "$ac_compile" | $SED \
7913
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915
 
   -e 's:$: $lt_compiler_flag:'`
7916
 
   (eval echo "\"\$as_me:7916: $lt_compile\"" >&5)
7917
 
   (eval "$lt_compile" 2>out/conftest.err)
7918
 
   ac_status=$?
7919
 
   cat out/conftest.err >&5
7920
 
   echo "$as_me:7920: \$? = $ac_status" >&5
7921
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7922
 
   then
7923
 
     # The compiler can only warn and ignore the option if not recognized
7924
 
     # So say no if there are warnings
7925
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7926
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7927
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7928
 
       lt_cv_prog_compiler_c_o=yes
7929
 
     fi
7930
 
   fi
7931
 
   chmod u+w . 2>&5
7932
 
   $rm conftest*
7933
 
   # SGI C++ compiler will create directory out/ii_files/ for
7934
 
   # template instantiation
7935
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7936
 
   $rm out/* && rmdir out
7937
 
   cd ..
7938
 
   rmdir conftest
7939
 
   $rm conftest*
7940
 
 
7941
 
fi
7942
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7943
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7944
 
 
7945
 
 
7946
 
hard_links="nottested"
7947
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7948
 
  # do not overwrite the value of need_locks provided by the user
7949
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7950
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7951
 
  hard_links=yes
7952
 
  $rm conftest*
7953
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954
 
  touch conftest.a
7955
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
7956
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7958
 
echo "${ECHO_T}$hard_links" >&6; }
7959
 
  if test "$hard_links" = no; then
7960
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7961
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7962
 
    need_locks=warn
7963
 
  fi
7964
 
else
7965
 
  need_locks=no
7966
 
fi
7967
 
 
7968
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7969
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7970
 
 
7971
 
  runpath_var=
7972
 
  allow_undefined_flag=
7973
 
  enable_shared_with_static_runtimes=no
7974
 
  archive_cmds=
7975
 
  archive_expsym_cmds=
7976
 
  old_archive_From_new_cmds=
7977
 
  old_archive_from_expsyms_cmds=
7978
 
  export_dynamic_flag_spec=
7979
 
  whole_archive_flag_spec=
7980
 
  thread_safe_flag_spec=
7981
 
  hardcode_libdir_flag_spec=
7982
 
  hardcode_libdir_flag_spec_ld=
7983
 
  hardcode_libdir_separator=
7984
 
  hardcode_direct=no
7985
 
  hardcode_minus_L=no
7986
 
  hardcode_shlibpath_var=unsupported
7987
 
  link_all_deplibs=unknown
7988
 
  hardcode_automatic=no
7989
 
  module_cmds=
7990
 
  module_expsym_cmds=
7991
 
  always_export_symbols=no
7992
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7993
 
  # include_expsyms should be a list of space-separated symbols to be *always*
7994
 
  # included in the symbol list
7995
 
  include_expsyms=
7996
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
7997
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7998
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7999
 
  # as well as any symbol that contains `d'.
8000
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8001
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8002
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8003
 
  # the symbol is explicitly referenced.  Since portable code cannot
8004
 
  # rely on this symbol name, it's probably fine to never include it in
8005
 
  # preloaded symbol tables.
8006
 
  # Exclude shared library initialization/finalization symbols.
8007
 
  extract_expsyms_cmds=
8008
 
  # Just being paranoid about ensuring that cc_basename is set.
8009
 
  for cc_temp in $compiler""; do
8010
 
  case $cc_temp in
8011
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8012
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8013
 
    \-*) ;;
8014
 
    *) break;;
8015
 
  esac
8016
 
done
8017
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8018
 
 
8019
 
  case $host_os in
8020
 
  cygwin* | mingw* | pw32*)
8021
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8022
 
    # When not using gcc, we currently assume that we are using
8023
 
    # Microsoft Visual C++.
8024
 
    if test "$GCC" != yes; then
8025
 
      with_gnu_ld=no
8026
 
    fi
8027
 
    ;;
8028
 
  interix*)
8029
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8030
 
    with_gnu_ld=yes
8031
 
    ;;
8032
 
  openbsd*)
8033
 
    with_gnu_ld=no
8034
 
    ;;
8035
 
  esac
8036
 
 
8037
 
  ld_shlibs=yes
8038
 
  if test "$with_gnu_ld" = yes; then
8039
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
8040
 
    wlarc='${wl}'
8041
 
 
8042
 
    # Set some defaults for GNU ld with shared library support. These
8043
 
    # are reset later if shared libraries are not supported. Putting them
8044
 
    # here allows them to be overridden if necessary.
8045
 
    runpath_var=LD_RUN_PATH
8046
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8047
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
8048
 
    # ancient GNU ld didn't support --whole-archive et. al.
8049
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8050
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8051
 
      else
8052
 
        whole_archive_flag_spec=
8053
 
    fi
8054
 
    supports_anon_versioning=no
8055
 
    case `$LD -v 2>/dev/null` in
8056
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8057
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8058
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8059
 
      *\ 2.11.*) ;; # other 2.11 versions
8060
 
      *) supports_anon_versioning=yes ;;
8061
 
    esac
8062
 
 
8063
 
    # See if GNU ld supports shared libraries.
8064
 
    case $host_os in
8065
 
    aix[3-9]*)
8066
 
      # On AIX/PPC, the GNU linker is very broken
8067
 
      if test "$host_cpu" != ia64; then
8068
 
        ld_shlibs=no
8069
 
        cat <<EOF 1>&2
8070
 
 
8071
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8072
 
*** to be unable to reliably create shared libraries on AIX.
8073
 
*** Therefore, libtool is disabling shared libraries support.  If you
8074
 
*** really care for shared libraries, you may want to modify your PATH
8075
 
*** so that a non-GNU linker is found, and then restart.
8076
 
 
8077
 
EOF
8078
 
      fi
8079
 
      ;;
8080
 
 
8081
 
    amigaos*)
8082
 
      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)'
8083
 
      hardcode_libdir_flag_spec='-L$libdir'
8084
 
      hardcode_minus_L=yes
8085
 
 
8086
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8087
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8088
 
      # to version 4, is to share data among multiple programs linked
8089
 
      # with the same dynamic library.  Since this doesn't match the
8090
 
      # behavior of shared libraries on other platforms, we can't use
8091
 
      # them.
8092
 
      ld_shlibs=no
8093
 
      ;;
8094
 
 
8095
 
    beos*)
8096
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097
 
        allow_undefined_flag=unsupported
8098
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8099
 
        # support --undefined.  This deserves some investigation.  FIXME
8100
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101
 
      else
8102
 
        ld_shlibs=no
8103
 
      fi
8104
 
      ;;
8105
 
 
8106
 
    cygwin* | mingw* | pw32*)
8107
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8108
 
      # as there is no search path for DLLs.
8109
 
      hardcode_libdir_flag_spec='-L$libdir'
8110
 
      allow_undefined_flag=unsupported
8111
 
      always_export_symbols=no
8112
 
      enable_shared_with_static_runtimes=yes
8113
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8114
 
 
8115
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8116
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8117
 
        # If the export-symbols file already is a .def file (1st line
8118
 
        # is EXPORTS), use it as is; otherwise, prepend...
8119
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8120
 
          cp $export_symbols $output_objdir/$soname.def;
8121
 
        else
8122
 
          echo EXPORTS > $output_objdir/$soname.def;
8123
 
          cat $export_symbols >> $output_objdir/$soname.def;
8124
 
        fi~
8125
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8126
 
      else
8127
 
        ld_shlibs=no
8128
 
      fi
8129
 
      ;;
8130
 
 
8131
 
    interix[3-9]*)
8132
 
      hardcode_direct=no
8133
 
      hardcode_shlibpath_var=no
8134
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8135
 
      export_dynamic_flag_spec='${wl}-E'
8136
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8137
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8138
 
      # default) and relocated if they conflict, which is a slow very memory
8139
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
8140
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8141
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8142
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8143
 
      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'
8144
 
      ;;
8145
 
 
8146
 
    gnu* | linux* | k*bsd*-gnu)
8147
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8148
 
        tmp_addflag=
8149
 
        case $cc_basename,$host_cpu in
8150
 
        pgcc*)                          # Portland Group C compiler
8151
 
          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'
8152
 
          tmp_addflag=' $pic_flag'
8153
 
          ;;
8154
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8155
 
          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'
8156
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
8157
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8158
 
          tmp_addflag=' -i_dynamic' ;;
8159
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8160
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8161
 
        ifc* | ifort*)                  # Intel Fortran compiler
8162
 
          tmp_addflag=' -nofor_main' ;;
8163
 
        esac
8164
 
        case `$CC -V 2>&1 | sed 5q` in
8165
 
        *Sun\ C*)                       # Sun C 5.9
8166
 
          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'
8167
 
          tmp_sharedflag='-G' ;;
8168
 
        *Sun\ F*)                       # Sun Fortran 8.3
8169
 
          tmp_sharedflag='-G' ;;
8170
 
        *)
8171
 
          tmp_sharedflag='-shared' ;;
8172
 
        esac
8173
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174
 
 
8175
 
        if test $supports_anon_versioning = yes; then
8176
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8177
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8178
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8179
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8180
 
        fi
8181
 
        link_all_deplibs=no
8182
 
      else
8183
 
        ld_shlibs=no
8184
 
      fi
8185
 
      ;;
8186
 
 
8187
 
    netbsd* | netbsdelf*-gnu)
8188
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8189
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8190
 
        wlarc=
8191
 
      else
8192
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8194
 
      fi
8195
 
      ;;
8196
 
 
8197
 
    solaris*)
8198
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8199
 
        ld_shlibs=no
8200
 
        cat <<EOF 1>&2
8201
 
 
8202
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8203
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8204
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8205
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8206
 
*** your PATH or compiler configuration so that the native linker is
8207
 
*** used, and then restart.
8208
 
 
8209
 
EOF
8210
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8211
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213
 
      else
8214
 
        ld_shlibs=no
8215
 
      fi
8216
 
      ;;
8217
 
 
8218
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8219
 
      case `$LD -v 2>&1` in
8220
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8221
 
        ld_shlibs=no
8222
 
        cat <<_LT_EOF 1>&2
8223
 
 
8224
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8225
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8226
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8227
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8228
 
*** your PATH or compiler configuration so that the native linker is
8229
 
*** used, and then restart.
8230
 
 
8231
 
_LT_EOF
8232
 
        ;;
8233
 
        *)
8234
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8236
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8237
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8238
 
          else
8239
 
            ld_shlibs=no
8240
 
          fi
8241
 
        ;;
8242
 
      esac
8243
 
      ;;
8244
 
 
8245
 
    sunos4*)
8246
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247
 
      wlarc=
8248
 
      hardcode_direct=yes
8249
 
      hardcode_shlibpath_var=no
8250
 
      ;;
8251
 
 
8252
 
    *)
8253
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256
 
      else
8257
 
        ld_shlibs=no
8258
 
      fi
8259
 
      ;;
8260
 
    esac
8261
 
 
8262
 
    if test "$ld_shlibs" = no; then
8263
 
      runpath_var=
8264
 
      hardcode_libdir_flag_spec=
8265
 
      export_dynamic_flag_spec=
8266
 
      whole_archive_flag_spec=
8267
 
    fi
8268
 
  else
8269
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8270
 
    case $host_os in
8271
 
    aix3*)
8272
 
      allow_undefined_flag=unsupported
8273
 
      always_export_symbols=yes
8274
 
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8275
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8276
 
      # are no directories specified by -L.
8277
 
      hardcode_minus_L=yes
8278
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8279
 
        # Neither direct hardcoding nor static linking is supported with a
8280
 
        # broken collect2.
8281
 
        hardcode_direct=unsupported
8282
 
      fi
8283
 
      ;;
8284
 
 
8285
 
    aix[4-9]*)
8286
 
      if test "$host_cpu" = ia64; then
8287
 
        # On IA64, the linker does run time linking by default, so we don't
8288
 
        # have to do anything special.
8289
 
        aix_use_runtimelinking=no
8290
 
        exp_sym_flag='-Bexport'
8291
 
        no_entry_flag=""
8292
 
      else
8293
 
        # If we're using GNU nm, then we don't want the "-C" option.
8294
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8295
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8296
 
          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'
8297
 
        else
8298
 
          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'
8299
 
        fi
8300
 
        aix_use_runtimelinking=no
8301
 
 
8302
 
        # Test if we are trying to use run time linking or normal
8303
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8304
 
        # need to do runtime linking.
8305
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8306
 
          for ld_flag in $LDFLAGS; do
8307
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8308
 
            aix_use_runtimelinking=yes
8309
 
            break
8310
 
          fi
8311
 
          done
8312
 
          ;;
8313
 
        esac
8314
 
 
8315
 
        exp_sym_flag='-bexport'
8316
 
        no_entry_flag='-bnoentry'
8317
 
      fi
8318
 
 
8319
 
      # When large executables or shared objects are built, AIX ld can
8320
 
      # have problems creating the table of contents.  If linking a library
8321
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8322
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8323
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8324
 
 
8325
 
      archive_cmds=''
8326
 
      hardcode_direct=yes
8327
 
      hardcode_libdir_separator=':'
8328
 
      link_all_deplibs=yes
8329
 
 
8330
 
      if test "$GCC" = yes; then
8331
 
        case $host_os in aix4.[012]|aix4.[012].*)
8332
 
        # We only want to do this on AIX 4.2 and lower, the check
8333
 
        # below for broken collect2 doesn't work under 4.3+
8334
 
          collect2name=`${CC} -print-prog-name=collect2`
8335
 
          if test -f "$collect2name" && \
8336
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8337
 
          then
8338
 
          # We have reworked collect2
8339
 
          :
8340
 
          else
8341
 
          # We have old collect2
8342
 
          hardcode_direct=unsupported
8343
 
          # It fails to find uninstalled libraries when the uninstalled
8344
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8345
 
          # to unsupported forces relinking
8346
 
          hardcode_minus_L=yes
8347
 
          hardcode_libdir_flag_spec='-L$libdir'
8348
 
          hardcode_libdir_separator=
8349
 
          fi
8350
 
          ;;
8351
 
        esac
8352
 
        shared_flag='-shared'
8353
 
        if test "$aix_use_runtimelinking" = yes; then
8354
 
          shared_flag="$shared_flag "'${wl}-G'
8355
 
        fi
8356
 
      else
8357
 
        # not using gcc
8358
 
        if test "$host_cpu" = ia64; then
8359
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8360
 
        # chokes on -Wl,-G. The following line is correct:
8361
 
          shared_flag='-G'
8362
 
        else
8363
 
          if test "$aix_use_runtimelinking" = yes; then
8364
 
            shared_flag='${wl}-G'
8365
 
          else
8366
 
            shared_flag='${wl}-bM:SRE'
8367
 
          fi
8368
 
        fi
8369
 
      fi
8370
 
 
8371
 
      # It seems that -bexpall does not export symbols beginning with
8372
 
      # underscore (_), so it is better to generate a list of symbols to export.
8373
 
      always_export_symbols=yes
8374
 
      if test "$aix_use_runtimelinking" = yes; then
8375
 
        # Warning - without using the other runtime loading flags (-brtl),
8376
 
        # -berok will link without error, but may produce a broken library.
8377
 
        allow_undefined_flag='-berok'
8378
 
       # Determine the default libpath from the value encoded in an empty executable.
8379
 
       cat >conftest.$ac_ext <<_ACEOF
8380
 
/* confdefs.h.  */
8381
 
_ACEOF
8382
 
cat confdefs.h >>conftest.$ac_ext
8383
 
cat >>conftest.$ac_ext <<_ACEOF
8384
 
/* end confdefs.h.  */
8385
 
 
8386
 
int
8387
 
main ()
8388
 
{
8389
 
 
8390
 
  ;
8391
 
  return 0;
8392
 
}
8393
 
_ACEOF
8394
 
rm -f conftest.$ac_objext conftest$ac_exeext
8395
 
if { (ac_try="$ac_link"
8396
 
case "(($ac_try" in
8397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398
 
  *) ac_try_echo=$ac_try;;
8399
 
esac
8400
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401
 
  (eval "$ac_link") 2>conftest.er1
8402
 
  ac_status=$?
8403
 
  grep -v '^ *+' conftest.er1 >conftest.err
8404
 
  rm -f conftest.er1
8405
 
  cat conftest.err >&5
8406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407
 
  (exit $ac_status); } && {
8408
 
         test -z "$ac_c_werror_flag" ||
8409
 
         test ! -s conftest.err
8410
 
       } && test -s conftest$ac_exeext &&
8411
 
       $as_test_x conftest$ac_exeext; then
8412
 
 
8413
 
lt_aix_libpath_sed='
8414
 
    /Import File Strings/,/^$/ {
8415
 
        /^0/ {
8416
 
            s/^0  *\(.*\)$/\1/
8417
 
            p
8418
 
        }
8419
 
    }'
8420
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421
 
# Check for a 64-bit object if we didn't find anything.
8422
 
if test -z "$aix_libpath"; then
8423
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424
 
fi
8425
 
else
8426
 
  echo "$as_me: failed program was:" >&5
8427
 
sed 's/^/| /' conftest.$ac_ext >&5
8428
 
 
8429
 
 
8430
 
fi
8431
 
 
8432
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433
 
      conftest$ac_exeext conftest.$ac_ext
8434
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8435
 
 
8436
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8437
 
        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"
8438
 
       else
8439
 
        if test "$host_cpu" = ia64; then
8440
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8441
 
          allow_undefined_flag="-z nodefs"
8442
 
          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"
8443
 
        else
8444
 
         # Determine the default libpath from the value encoded in an empty executable.
8445
 
         cat >conftest.$ac_ext <<_ACEOF
8446
 
/* confdefs.h.  */
8447
 
_ACEOF
8448
 
cat confdefs.h >>conftest.$ac_ext
8449
 
cat >>conftest.$ac_ext <<_ACEOF
8450
 
/* end confdefs.h.  */
8451
 
 
8452
 
int
8453
 
main ()
8454
 
{
8455
 
 
8456
 
  ;
8457
 
  return 0;
8458
 
}
8459
 
_ACEOF
8460
 
rm -f conftest.$ac_objext conftest$ac_exeext
8461
 
if { (ac_try="$ac_link"
8462
 
case "(($ac_try" in
8463
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464
 
  *) ac_try_echo=$ac_try;;
8465
 
esac
8466
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467
 
  (eval "$ac_link") 2>conftest.er1
8468
 
  ac_status=$?
8469
 
  grep -v '^ *+' conftest.er1 >conftest.err
8470
 
  rm -f conftest.er1
8471
 
  cat conftest.err >&5
8472
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473
 
  (exit $ac_status); } && {
8474
 
         test -z "$ac_c_werror_flag" ||
8475
 
         test ! -s conftest.err
8476
 
       } && test -s conftest$ac_exeext &&
8477
 
       $as_test_x conftest$ac_exeext; then
8478
 
 
8479
 
lt_aix_libpath_sed='
8480
 
    /Import File Strings/,/^$/ {
8481
 
        /^0/ {
8482
 
            s/^0  *\(.*\)$/\1/
8483
 
            p
8484
 
        }
8485
 
    }'
8486
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487
 
# Check for a 64-bit object if we didn't find anything.
8488
 
if test -z "$aix_libpath"; then
8489
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490
 
fi
8491
 
else
8492
 
  echo "$as_me: failed program was:" >&5
8493
 
sed 's/^/| /' conftest.$ac_ext >&5
8494
 
 
8495
 
 
8496
 
fi
8497
 
 
8498
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8499
 
      conftest$ac_exeext conftest.$ac_ext
8500
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8501
 
 
8502
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8503
 
          # Warning - without using the other run time loading flags,
8504
 
          # -berok will link without error, but may produce a broken library.
8505
 
          no_undefined_flag=' ${wl}-bernotok'
8506
 
          allow_undefined_flag=' ${wl}-berok'
8507
 
          # Exported symbols can be pulled into shared objects from archives
8508
 
          whole_archive_flag_spec='$convenience'
8509
 
          archive_cmds_need_lc=yes
8510
 
          # This is similar to how AIX traditionally builds its shared libraries.
8511
 
          archive_expsym_cmds="\$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'
8512
 
        fi
8513
 
      fi
8514
 
      ;;
8515
 
 
8516
 
    amigaos*)
8517
 
      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)'
8518
 
      hardcode_libdir_flag_spec='-L$libdir'
8519
 
      hardcode_minus_L=yes
8520
 
      # see comment about different semantics on the GNU ld section
8521
 
      ld_shlibs=no
8522
 
      ;;
8523
 
 
8524
 
    bsdi[45]*)
8525
 
      export_dynamic_flag_spec=-rdynamic
8526
 
      ;;
8527
 
 
8528
 
    cygwin* | mingw* | pw32*)
8529
 
      # When not using gcc, we currently assume that we are using
8530
 
      # Microsoft Visual C++.
8531
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8532
 
      # no search path for DLLs.
8533
 
      hardcode_libdir_flag_spec=' '
8534
 
      allow_undefined_flag=unsupported
8535
 
      # Tell ltmain to make .lib files, not .a files.
8536
 
      libext=lib
8537
 
      # Tell ltmain to make .dll files, not .so files.
8538
 
      shrext_cmds=".dll"
8539
 
      # FIXME: Setting linknames here is a bad hack.
8540
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8541
 
      # The linker will automatically build a .lib file if we build a DLL.
8542
 
      old_archive_From_new_cmds='true'
8543
 
      # FIXME: Should let the user specify the lib program.
8544
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8545
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8546
 
      enable_shared_with_static_runtimes=yes
8547
 
      ;;
8548
 
 
8549
 
    darwin* | rhapsody*)
8550
 
      case $host_os in
8551
 
        rhapsody* | darwin1.[012])
8552
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8553
 
         ;;
8554
 
       *) # Darwin 1.3 on
8555
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8556
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557
 
         else
8558
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8559
 
             10.[012])
8560
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8561
 
               ;;
8562
 
             10.*)
8563
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8564
 
               ;;
8565
 
           esac
8566
 
         fi
8567
 
         ;;
8568
 
      esac
8569
 
      archive_cmds_need_lc=no
8570
 
      hardcode_direct=no
8571
 
      hardcode_automatic=yes
8572
 
      hardcode_shlibpath_var=unsupported
8573
 
      whole_archive_flag_spec=''
8574
 
      link_all_deplibs=yes
8575
 
    if test "$GCC" = yes ; then
8576
 
        output_verbose_link_cmd='echo'
8577
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8578
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8579
 
        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}"
8580
 
        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}"
8581
 
    else
8582
 
      case $cc_basename in
8583
 
        xlc*)
8584
 
         output_verbose_link_cmd='echo'
8585
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8586
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8587
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8588
 
         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}'
8589
 
          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}'
8590
 
          ;;
8591
 
       *)
8592
 
         ld_shlibs=no
8593
 
          ;;
8594
 
      esac
8595
 
    fi
8596
 
      ;;
8597
 
 
8598
 
    dgux*)
8599
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600
 
      hardcode_libdir_flag_spec='-L$libdir'
8601
 
      hardcode_shlibpath_var=no
8602
 
      ;;
8603
 
 
8604
 
    freebsd1*)
8605
 
      ld_shlibs=no
8606
 
      ;;
8607
 
 
8608
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8610
 
    # does not break anything, and helps significantly (at the cost of a little
8611
 
    # extra space).
8612
 
    freebsd2.2*)
8613
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614
 
      hardcode_libdir_flag_spec='-R$libdir'
8615
 
      hardcode_direct=yes
8616
 
      hardcode_shlibpath_var=no
8617
 
      ;;
8618
 
 
8619
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8620
 
    freebsd2*)
8621
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622
 
      hardcode_direct=yes
8623
 
      hardcode_minus_L=yes
8624
 
      hardcode_shlibpath_var=no
8625
 
      ;;
8626
 
 
8627
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628
 
    freebsd* | dragonfly*)
8629
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630
 
      hardcode_libdir_flag_spec='-R$libdir'
8631
 
      hardcode_direct=yes
8632
 
      hardcode_shlibpath_var=no
8633
 
      ;;
8634
 
 
8635
 
    hpux9*)
8636
 
      if test "$GCC" = yes; then
8637
 
        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'
8638
 
      else
8639
 
        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'
8640
 
      fi
8641
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642
 
      hardcode_libdir_separator=:
8643
 
      hardcode_direct=yes
8644
 
 
8645
 
      # hardcode_minus_L: Not really in the search PATH,
8646
 
      # but as the default location of the library.
8647
 
      hardcode_minus_L=yes
8648
 
      export_dynamic_flag_spec='${wl}-E'
8649
 
      ;;
8650
 
 
8651
 
    hpux10*)
8652
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8653
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654
 
      else
8655
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8656
 
      fi
8657
 
      if test "$with_gnu_ld" = no; then
8658
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659
 
        hardcode_libdir_separator=:
8660
 
 
8661
 
        hardcode_direct=yes
8662
 
        export_dynamic_flag_spec='${wl}-E'
8663
 
 
8664
 
        # hardcode_minus_L: Not really in the search PATH,
8665
 
        # but as the default location of the library.
8666
 
        hardcode_minus_L=yes
8667
 
      fi
8668
 
      ;;
8669
 
 
8670
 
    hpux11*)
8671
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8672
 
        case $host_cpu in
8673
 
        hppa*64*)
8674
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675
 
          ;;
8676
 
        ia64*)
8677
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8678
 
          ;;
8679
 
        *)
8680
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8681
 
          ;;
8682
 
        esac
8683
 
      else
8684
 
        case $host_cpu in
8685
 
        hppa*64*)
8686
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687
 
          ;;
8688
 
        ia64*)
8689
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8690
 
          ;;
8691
 
        *)
8692
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693
 
          ;;
8694
 
        esac
8695
 
      fi
8696
 
      if test "$with_gnu_ld" = no; then
8697
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698
 
        hardcode_libdir_separator=:
8699
 
 
8700
 
        case $host_cpu in
8701
 
        hppa*64*|ia64*)
8702
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8703
 
          hardcode_direct=no
8704
 
          hardcode_shlibpath_var=no
8705
 
          ;;
8706
 
        *)
8707
 
          hardcode_direct=yes
8708
 
          export_dynamic_flag_spec='${wl}-E'
8709
 
 
8710
 
          # hardcode_minus_L: Not really in the search PATH,
8711
 
          # but as the default location of the library.
8712
 
          hardcode_minus_L=yes
8713
 
          ;;
8714
 
        esac
8715
 
      fi
8716
 
      ;;
8717
 
 
8718
 
    irix5* | irix6* | nonstopux*)
8719
 
      if test "$GCC" = yes; then
8720
 
        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'
8721
 
      else
8722
 
        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'
8723
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8724
 
      fi
8725
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726
 
      hardcode_libdir_separator=:
8727
 
      link_all_deplibs=yes
8728
 
      ;;
8729
 
 
8730
 
    netbsd* | netbsdelf*-gnu)
8731
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8732
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8733
 
      else
8734
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8735
 
      fi
8736
 
      hardcode_libdir_flag_spec='-R$libdir'
8737
 
      hardcode_direct=yes
8738
 
      hardcode_shlibpath_var=no
8739
 
      ;;
8740
 
 
8741
 
    newsos6)
8742
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743
 
      hardcode_direct=yes
8744
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745
 
      hardcode_libdir_separator=:
8746
 
      hardcode_shlibpath_var=no
8747
 
      ;;
8748
 
 
8749
 
    openbsd*)
8750
 
      if test -f /usr/libexec/ld.so; then
8751
 
        hardcode_direct=yes
8752
 
        hardcode_shlibpath_var=no
8753
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8754
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8755
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8756
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8757
 
          export_dynamic_flag_spec='${wl}-E'
8758
 
        else
8759
 
          case $host_os in
8760
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8761
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762
 
             hardcode_libdir_flag_spec='-R$libdir'
8763
 
             ;;
8764
 
           *)
8765
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767
 
             ;;
8768
 
          esac
8769
 
        fi
8770
 
      else
8771
 
        ld_shlibs=no
8772
 
      fi
8773
 
      ;;
8774
 
 
8775
 
    os2*)
8776
 
      hardcode_libdir_flag_spec='-L$libdir'
8777
 
      hardcode_minus_L=yes
8778
 
      allow_undefined_flag=unsupported
8779
 
      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'
8780
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8781
 
      ;;
8782
 
 
8783
 
    osf3*)
8784
 
      if test "$GCC" = yes; then
8785
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786
 
        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'
8787
 
      else
8788
 
        allow_undefined_flag=' -expect_unresolved \*'
8789
 
        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'
8790
 
      fi
8791
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792
 
      hardcode_libdir_separator=:
8793
 
      ;;
8794
 
 
8795
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8796
 
      if test "$GCC" = yes; then
8797
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798
 
        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'
8799
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800
 
      else
8801
 
        allow_undefined_flag=' -expect_unresolved \*'
8802
 
        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'
8803
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8804
 
        $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'
8805
 
 
8806
 
        # Both c and cxx compiler support -rpath directly
8807
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8808
 
      fi
8809
 
      hardcode_libdir_separator=:
8810
 
      ;;
8811
 
 
8812
 
    solaris*)
8813
 
      no_undefined_flag=' -z text'
8814
 
      if test "$GCC" = yes; then
8815
 
        wlarc='${wl}'
8816
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819
 
      else
8820
 
        wlarc=''
8821
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824
 
      fi
8825
 
      hardcode_libdir_flag_spec='-R$libdir'
8826
 
      hardcode_shlibpath_var=no
8827
 
      case $host_os in
8828
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8829
 
      *)
8830
 
        # The compiler driver will combine and reorder linker options,
8831
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8832
 
        # but is careful enough not to reorder.
8833
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8834
 
        if test "$GCC" = yes; then
8835
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8836
 
        else
8837
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8838
 
        fi
8839
 
        ;;
8840
 
      esac
8841
 
      link_all_deplibs=yes
8842
 
      ;;
8843
 
 
8844
 
    sunos4*)
8845
 
      if test "x$host_vendor" = xsequent; then
8846
 
        # Use $CC to link under sequent, because it throws in some extra .o
8847
 
        # files that make .init and .fini sections work.
8848
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8849
 
      else
8850
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8851
 
      fi
8852
 
      hardcode_libdir_flag_spec='-L$libdir'
8853
 
      hardcode_direct=yes
8854
 
      hardcode_minus_L=yes
8855
 
      hardcode_shlibpath_var=no
8856
 
      ;;
8857
 
 
8858
 
    sysv4)
8859
 
      case $host_vendor in
8860
 
        sni)
8861
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862
 
          hardcode_direct=yes # is this really true???
8863
 
        ;;
8864
 
        siemens)
8865
 
          ## LD is ld it makes a PLAMLIB
8866
 
          ## CC just makes a GrossModule.
8867
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8868
 
          reload_cmds='$CC -r -o $output$reload_objs'
8869
 
          hardcode_direct=no
8870
 
        ;;
8871
 
        motorola)
8872
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8874
 
        ;;
8875
 
      esac
8876
 
      runpath_var='LD_RUN_PATH'
8877
 
      hardcode_shlibpath_var=no
8878
 
      ;;
8879
 
 
8880
 
    sysv4.3*)
8881
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882
 
      hardcode_shlibpath_var=no
8883
 
      export_dynamic_flag_spec='-Bexport'
8884
 
      ;;
8885
 
 
8886
 
    sysv4*MP*)
8887
 
      if test -d /usr/nec; then
8888
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889
 
        hardcode_shlibpath_var=no
8890
 
        runpath_var=LD_RUN_PATH
8891
 
        hardcode_runpath_var=yes
8892
 
        ld_shlibs=yes
8893
 
      fi
8894
 
      ;;
8895
 
 
8896
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8897
 
      no_undefined_flag='${wl}-z,text'
8898
 
      archive_cmds_need_lc=no
8899
 
      hardcode_shlibpath_var=no
8900
 
      runpath_var='LD_RUN_PATH'
8901
 
 
8902
 
      if test "$GCC" = yes; then
8903
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8905
 
      else
8906
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8908
 
      fi
8909
 
      ;;
8910
 
 
8911
 
    sysv5* | sco3.2v5* | sco5v6*)
8912
 
      # Note: We can NOT use -z defs as we might desire, because we do not
8913
 
      # link with -lc, and that would cause any symbols used from libc to
8914
 
      # always be unresolved, which means just about no library would
8915
 
      # ever link correctly.  If we're not using GNU ld we use -z text
8916
 
      # though, which does catch some bad symbols but isn't as heavy-handed
8917
 
      # as -z defs.
8918
 
      no_undefined_flag='${wl}-z,text'
8919
 
      allow_undefined_flag='${wl}-z,nodefs'
8920
 
      archive_cmds_need_lc=no
8921
 
      hardcode_shlibpath_var=no
8922
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8923
 
      hardcode_libdir_separator=':'
8924
 
      link_all_deplibs=yes
8925
 
      export_dynamic_flag_spec='${wl}-Bexport'
8926
 
      runpath_var='LD_RUN_PATH'
8927
 
 
8928
 
      if test "$GCC" = yes; then
8929
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8930
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931
 
      else
8932
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8934
 
      fi
8935
 
      ;;
8936
 
 
8937
 
    uts4*)
8938
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939
 
      hardcode_libdir_flag_spec='-L$libdir'
8940
 
      hardcode_shlibpath_var=no
8941
 
      ;;
8942
 
 
8943
 
    *)
8944
 
      ld_shlibs=no
8945
 
      ;;
8946
 
    esac
8947
 
  fi
8948
 
 
8949
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8950
 
echo "${ECHO_T}$ld_shlibs" >&6; }
8951
 
test "$ld_shlibs" = no && can_build_shared=no
8952
 
 
8953
 
#
8954
 
# Do we need to explicitly link libc?
8955
 
#
8956
 
case "x$archive_cmds_need_lc" in
8957
 
x|xyes)
8958
 
  # Assume -lc should be added
8959
 
  archive_cmds_need_lc=yes
8960
 
 
8961
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8962
 
    case $archive_cmds in
8963
 
    *'~'*)
8964
 
      # FIXME: we may have to deal with multi-command sequences.
8965
 
      ;;
8966
 
    '$CC '*)
8967
 
      # Test whether the compiler implicitly links with -lc since on some
8968
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8969
 
      # to ld, don't add -lc before -lgcc.
8970
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8971
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8972
 
      $rm conftest*
8973
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974
 
 
8975
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976
 
  (eval $ac_compile) 2>&5
8977
 
  ac_status=$?
8978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979
 
  (exit $ac_status); } 2>conftest.err; then
8980
 
        soname=conftest
8981
 
        lib=conftest
8982
 
        libobjs=conftest.$ac_objext
8983
 
        deplibs=
8984
 
        wl=$lt_prog_compiler_wl
8985
 
        pic_flag=$lt_prog_compiler_pic
8986
 
        compiler_flags=-v
8987
 
        linker_flags=-v
8988
 
        verstring=
8989
 
        output_objdir=.
8990
 
        libname=conftest
8991
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
8992
 
        allow_undefined_flag=
8993
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8994
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8995
 
  ac_status=$?
8996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997
 
  (exit $ac_status); }
8998
 
        then
8999
 
          archive_cmds_need_lc=no
9000
 
        else
9001
 
          archive_cmds_need_lc=yes
9002
 
        fi
9003
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
9004
 
      else
9005
 
        cat conftest.err 1>&5
9006
 
      fi
9007
 
      $rm conftest*
9008
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9009
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9010
 
      ;;
9011
 
    esac
9012
 
  fi
9013
 
  ;;
9014
 
esac
9015
 
 
9016
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9017
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9018
 
library_names_spec=
9019
 
libname_spec='lib$name'
9020
 
soname_spec=
9021
 
shrext_cmds=".so"
9022
 
postinstall_cmds=
9023
 
postuninstall_cmds=
9024
 
finish_cmds=
9025
 
finish_eval=
9026
 
shlibpath_var=
9027
 
shlibpath_overrides_runpath=unknown
9028
 
version_type=none
9029
 
dynamic_linker="$host_os ld.so"
9030
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9031
 
 
9032
 
if test "$GCC" = yes; then
9033
 
  case $host_os in
9034
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9035
 
    *) lt_awk_arg="/^libraries:/" ;;
9036
 
  esac
9037
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9039
 
    # if the path contains ";" then we assume it to be the separator
9040
 
    # otherwise default to the standard path separator (i.e. ":") - it is
9041
 
    # assumed that no part of a normal pathname contains ";" but that should
9042
 
    # okay in the real world where ";" in dirpaths is itself problematic.
9043
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9044
 
  else
9045
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9046
 
  fi
9047
 
  # Ok, now we have the path, separated by spaces, we can step through it
9048
 
  # and add multilib dir if necessary.
9049
 
  lt_tmp_lt_search_path_spec=
9050
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9051
 
  for lt_sys_path in $lt_search_path_spec; do
9052
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9053
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9054
 
    else
9055
 
      test -d "$lt_sys_path" && \
9056
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9057
 
    fi
9058
 
  done
9059
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9060
 
BEGIN {RS=" "; FS="/|\n";} {
9061
 
  lt_foo="";
9062
 
  lt_count=0;
9063
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
9064
 
    if ($lt_i != "" && $lt_i != ".") {
9065
 
      if ($lt_i == "..") {
9066
 
        lt_count++;
9067
 
      } else {
9068
 
        if (lt_count == 0) {
9069
 
          lt_foo="/" $lt_i lt_foo;
9070
 
        } else {
9071
 
          lt_count--;
9072
 
        }
9073
 
      }
9074
 
    }
9075
 
  }
9076
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9077
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9078
 
}'`
9079
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9080
 
else
9081
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9082
 
fi
9083
 
need_lib_prefix=unknown
9084
 
hardcode_into_libs=no
9085
 
 
9086
 
# when you set need_version to no, make sure it does not cause -set_version
9087
 
# flags to be left without arguments
9088
 
need_version=unknown
9089
 
 
9090
 
case $host_os in
9091
 
aix3*)
9092
 
  version_type=linux
9093
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9094
 
  shlibpath_var=LIBPATH
9095
 
 
9096
 
  # AIX 3 has no versioning support, so we append a major version to the name.
9097
 
  soname_spec='${libname}${release}${shared_ext}$major'
9098
 
  ;;
9099
 
 
9100
 
aix[4-9]*)
9101
 
  version_type=linux
9102
 
  need_lib_prefix=no
9103
 
  need_version=no
9104
 
  hardcode_into_libs=yes
9105
 
  if test "$host_cpu" = ia64; then
9106
 
    # AIX 5 supports IA64
9107
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9108
 
    shlibpath_var=LD_LIBRARY_PATH
9109
 
  else
9110
 
    # With GCC up to 2.95.x, collect2 would create an import file
9111
 
    # for dependence libraries.  The import file would start with
9112
 
    # the line `#! .'.  This would cause the generated library to
9113
 
    # depend on `.', always an invalid library.  This was fixed in
9114
 
    # development snapshots of GCC prior to 3.0.
9115
 
    case $host_os in
9116
 
      aix4 | aix4.[01] | aix4.[01].*)
9117
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9118
 
           echo ' yes '
9119
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9120
 
        :
9121
 
      else
9122
 
        can_build_shared=no
9123
 
      fi
9124
 
      ;;
9125
 
    esac
9126
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9127
 
    # soname into executable. Probably we can add versioning support to
9128
 
    # collect2, so additional links can be useful in future.
9129
 
    if test "$aix_use_runtimelinking" = yes; then
9130
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9131
 
      # instead of lib<name>.a to let people know that these are not
9132
 
      # typical AIX shared libraries.
9133
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134
 
    else
9135
 
      # We preserve .a as extension for shared libraries through AIX4.2
9136
 
      # and later when we are not doing run time linking.
9137
 
      library_names_spec='${libname}${release}.a $libname.a'
9138
 
      soname_spec='${libname}${release}${shared_ext}$major'
9139
 
    fi
9140
 
    shlibpath_var=LIBPATH
9141
 
  fi
9142
 
  ;;
9143
 
 
9144
 
amigaos*)
9145
 
  library_names_spec='$libname.ixlibrary $libname.a'
9146
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9147
 
  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'
9148
 
  ;;
9149
 
 
9150
 
beos*)
9151
 
  library_names_spec='${libname}${shared_ext}'
9152
 
  dynamic_linker="$host_os ld.so"
9153
 
  shlibpath_var=LIBRARY_PATH
9154
 
  ;;
9155
 
 
9156
 
bsdi[45]*)
9157
 
  version_type=linux
9158
 
  need_version=no
9159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160
 
  soname_spec='${libname}${release}${shared_ext}$major'
9161
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9162
 
  shlibpath_var=LD_LIBRARY_PATH
9163
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9164
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9165
 
  # the default ld.so.conf also contains /usr/contrib/lib and
9166
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9167
 
  # libtool to hard-code these into programs
9168
 
  ;;
9169
 
 
9170
 
cygwin* | mingw* | pw32*)
9171
 
  version_type=windows
9172
 
  shrext_cmds=".dll"
9173
 
  need_version=no
9174
 
  need_lib_prefix=no
9175
 
 
9176
 
  case $GCC,$host_os in
9177
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
9178
 
    library_names_spec='$libname.dll.a'
9179
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9180
 
    postinstall_cmds='base_file=`basename \${file}`~
9181
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9182
 
      dldir=$destdir/`dirname \$dlpath`~
9183
 
      test -d \$dldir || mkdir -p \$dldir~
9184
 
      $install_prog $dir/$dlname \$dldir/$dlname~
9185
 
      chmod a+x \$dldir/$dlname'
9186
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9187
 
      dlpath=$dir/\$dldll~
9188
 
       $rm \$dlpath'
9189
 
    shlibpath_overrides_runpath=yes
9190
 
 
9191
 
    case $host_os in
9192
 
    cygwin*)
9193
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9194
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9196
 
      ;;
9197
 
    mingw*)
9198
 
      # MinGW DLLs use traditional 'lib' prefix
9199
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9202
 
        # It is most probably a Windows format PATH printed by
9203
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9204
 
        # path with ; separators, and with drive letters. We can handle the
9205
 
        # drive letters (cygwin fileutils understands them), so leave them,
9206
 
        # especially as we might pass files found there to a mingw objdump,
9207
 
        # which wouldn't understand a cygwinified path. Ahh.
9208
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9209
 
      else
9210
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9211
 
      fi
9212
 
      ;;
9213
 
    pw32*)
9214
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9215
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9216
 
      ;;
9217
 
    esac
9218
 
    ;;
9219
 
 
9220
 
  *)
9221
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9222
 
    ;;
9223
 
  esac
9224
 
  dynamic_linker='Win32 ld.exe'
9225
 
  # FIXME: first we should search . and the directory the executable is in
9226
 
  shlibpath_var=PATH
9227
 
  ;;
9228
 
 
9229
 
darwin* | rhapsody*)
9230
 
  dynamic_linker="$host_os dyld"
9231
 
  version_type=darwin
9232
 
  need_lib_prefix=no
9233
 
  need_version=no
9234
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9235
 
  soname_spec='${libname}${release}${major}$shared_ext'
9236
 
  shlibpath_overrides_runpath=yes
9237
 
  shlibpath_var=DYLD_LIBRARY_PATH
9238
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9239
 
 
9240
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9241
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242
 
  ;;
9243
 
 
9244
 
dgux*)
9245
 
  version_type=linux
9246
 
  need_lib_prefix=no
9247
 
  need_version=no
9248
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249
 
  soname_spec='${libname}${release}${shared_ext}$major'
9250
 
  shlibpath_var=LD_LIBRARY_PATH
9251
 
  ;;
9252
 
 
9253
 
freebsd1*)
9254
 
  dynamic_linker=no
9255
 
  ;;
9256
 
 
9257
 
freebsd* | dragonfly*)
9258
 
  # DragonFly does not have aout.  When/if they implement a new
9259
 
  # versioning mechanism, adjust this.
9260
 
  if test -x /usr/bin/objformat; then
9261
 
    objformat=`/usr/bin/objformat`
9262
 
  else
9263
 
    case $host_os in
9264
 
    freebsd[123]*) objformat=aout ;;
9265
 
    *) objformat=elf ;;
9266
 
    esac
9267
 
  fi
9268
 
  version_type=freebsd-$objformat
9269
 
  case $version_type in
9270
 
    freebsd-elf*)
9271
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9272
 
      need_version=no
9273
 
      need_lib_prefix=no
9274
 
      ;;
9275
 
    freebsd-*)
9276
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9277
 
      need_version=yes
9278
 
      ;;
9279
 
  esac
9280
 
  shlibpath_var=LD_LIBRARY_PATH
9281
 
  case $host_os in
9282
 
  freebsd2*)
9283
 
    shlibpath_overrides_runpath=yes
9284
 
    ;;
9285
 
  freebsd3.[01]* | freebsdelf3.[01]*)
9286
 
    shlibpath_overrides_runpath=yes
9287
 
    hardcode_into_libs=yes
9288
 
    ;;
9289
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291
 
    shlibpath_overrides_runpath=no
9292
 
    hardcode_into_libs=yes
9293
 
    ;;
9294
 
  *) # from 4.6 on, and DragonFly
9295
 
    shlibpath_overrides_runpath=yes
9296
 
    hardcode_into_libs=yes
9297
 
    ;;
9298
 
  esac
9299
 
  ;;
9300
 
 
9301
 
gnu*)
9302
 
  version_type=linux
9303
 
  need_lib_prefix=no
9304
 
  need_version=no
9305
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306
 
  soname_spec='${libname}${release}${shared_ext}$major'
9307
 
  shlibpath_var=LD_LIBRARY_PATH
9308
 
  hardcode_into_libs=yes
9309
 
  ;;
9310
 
 
9311
 
hpux9* | hpux10* | hpux11*)
9312
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9313
 
  # link against other versions.
9314
 
  version_type=sunos
9315
 
  need_lib_prefix=no
9316
 
  need_version=no
9317
 
  case $host_cpu in
9318
 
  ia64*)
9319
 
    shrext_cmds='.so'
9320
 
    hardcode_into_libs=yes
9321
 
    dynamic_linker="$host_os dld.so"
9322
 
    shlibpath_var=LD_LIBRARY_PATH
9323
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325
 
    soname_spec='${libname}${release}${shared_ext}$major'
9326
 
    if test "X$HPUX_IA64_MODE" = X32; then
9327
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9328
 
    else
9329
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9330
 
    fi
9331
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9332
 
    ;;
9333
 
   hppa*64*)
9334
 
     shrext_cmds='.sl'
9335
 
     hardcode_into_libs=yes
9336
 
     dynamic_linker="$host_os dld.sl"
9337
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340
 
     soname_spec='${libname}${release}${shared_ext}$major'
9341
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343
 
     ;;
9344
 
   *)
9345
 
    shrext_cmds='.sl'
9346
 
    dynamic_linker="$host_os dld.sl"
9347
 
    shlibpath_var=SHLIB_PATH
9348
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350
 
    soname_spec='${libname}${release}${shared_ext}$major'
9351
 
    ;;
9352
 
  esac
9353
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354
 
  postinstall_cmds='chmod 555 $lib'
9355
 
  ;;
9356
 
 
9357
 
interix[3-9]*)
9358
 
  version_type=linux
9359
 
  need_lib_prefix=no
9360
 
  need_version=no
9361
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362
 
  soname_spec='${libname}${release}${shared_ext}$major'
9363
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364
 
  shlibpath_var=LD_LIBRARY_PATH
9365
 
  shlibpath_overrides_runpath=no
9366
 
  hardcode_into_libs=yes
9367
 
  ;;
9368
 
 
9369
 
irix5* | irix6* | nonstopux*)
9370
 
  case $host_os in
9371
 
    nonstopux*) version_type=nonstopux ;;
9372
 
    *)
9373
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
9374
 
                version_type=linux
9375
 
        else
9376
 
                version_type=irix
9377
 
        fi ;;
9378
 
  esac
9379
 
  need_lib_prefix=no
9380
 
  need_version=no
9381
 
  soname_spec='${libname}${release}${shared_ext}$major'
9382
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383
 
  case $host_os in
9384
 
  irix5* | nonstopux*)
9385
 
    libsuff= shlibsuff=
9386
 
    ;;
9387
 
  *)
9388
 
    case $LD in # libtool.m4 will add one of these switches to LD
9389
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390
 
      libsuff= shlibsuff= libmagic=32-bit;;
9391
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9393
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9396
 
    esac
9397
 
    ;;
9398
 
  esac
9399
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400
 
  shlibpath_overrides_runpath=no
9401
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403
 
  hardcode_into_libs=yes
9404
 
  ;;
9405
 
 
9406
 
# No shared lib support for Linux oldld, aout, or coff.
9407
 
linux*oldld* | linux*aout* | linux*coff*)
9408
 
  dynamic_linker=no
9409
 
  ;;
9410
 
 
9411
 
# This must be Linux ELF.
9412
 
linux* | k*bsd*-gnu)
9413
 
  version_type=linux
9414
 
  need_lib_prefix=no
9415
 
  need_version=no
9416
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417
 
  soname_spec='${libname}${release}${shared_ext}$major'
9418
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419
 
  shlibpath_var=LD_LIBRARY_PATH
9420
 
  shlibpath_overrides_runpath=no
9421
 
  # This implies no fast_install, which is unacceptable.
9422
 
  # Some rework will be needed to allow for fast_install
9423
 
  # before this can be enabled.
9424
 
  hardcode_into_libs=yes
9425
 
 
9426
 
  # Append ld.so.conf contents to the search path
9427
 
  if test -f /etc/ld.so.conf; then
9428
 
    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' ' '`
9429
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430
 
  fi
9431
 
 
9432
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9433
 
  # powerpc, because MkLinux only supported shared libraries with the
9434
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9435
 
  # most powerpc-linux boxes support dynamic linking these days and
9436
 
  # people can always --disable-shared, the test was removed, and we
9437
 
  # assume the GNU/Linux dynamic linker is in use.
9438
 
  dynamic_linker='GNU/Linux ld.so'
9439
 
  ;;
9440
 
 
9441
 
netbsdelf*-gnu)
9442
 
  version_type=linux
9443
 
  need_lib_prefix=no
9444
 
  need_version=no
9445
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446
 
  soname_spec='${libname}${release}${shared_ext}$major'
9447
 
  shlibpath_var=LD_LIBRARY_PATH
9448
 
  shlibpath_overrides_runpath=no
9449
 
  hardcode_into_libs=yes
9450
 
  dynamic_linker='NetBSD ld.elf_so'
9451
 
  ;;
9452
 
 
9453
 
netbsd*)
9454
 
  version_type=sunos
9455
 
  need_lib_prefix=no
9456
 
  need_version=no
9457
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460
 
    dynamic_linker='NetBSD (a.out) ld.so'
9461
 
  else
9462
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463
 
    soname_spec='${libname}${release}${shared_ext}$major'
9464
 
    dynamic_linker='NetBSD ld.elf_so'
9465
 
  fi
9466
 
  shlibpath_var=LD_LIBRARY_PATH
9467
 
  shlibpath_overrides_runpath=yes
9468
 
  hardcode_into_libs=yes
9469
 
  ;;
9470
 
 
9471
 
newsos6)
9472
 
  version_type=linux
9473
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474
 
  shlibpath_var=LD_LIBRARY_PATH
9475
 
  shlibpath_overrides_runpath=yes
9476
 
  ;;
9477
 
 
9478
 
nto-qnx*)
9479
 
  version_type=linux
9480
 
  need_lib_prefix=no
9481
 
  need_version=no
9482
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483
 
  soname_spec='${libname}${release}${shared_ext}$major'
9484
 
  shlibpath_var=LD_LIBRARY_PATH
9485
 
  shlibpath_overrides_runpath=yes
9486
 
  ;;
9487
 
 
9488
 
openbsd*)
9489
 
  version_type=sunos
9490
 
  sys_lib_dlsearch_path_spec="/usr/lib"
9491
 
  need_lib_prefix=no
9492
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9493
 
  case $host_os in
9494
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9495
 
    *)                         need_version=no  ;;
9496
 
  esac
9497
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499
 
  shlibpath_var=LD_LIBRARY_PATH
9500
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501
 
    case $host_os in
9502
 
      openbsd2.[89] | openbsd2.[89].*)
9503
 
        shlibpath_overrides_runpath=no
9504
 
        ;;
9505
 
      *)
9506
 
        shlibpath_overrides_runpath=yes
9507
 
        ;;
9508
 
      esac
9509
 
  else
9510
 
    shlibpath_overrides_runpath=yes
9511
 
  fi
9512
 
  ;;
9513
 
 
9514
 
os2*)
9515
 
  libname_spec='$name'
9516
 
  shrext_cmds=".dll"
9517
 
  need_lib_prefix=no
9518
 
  library_names_spec='$libname${shared_ext} $libname.a'
9519
 
  dynamic_linker='OS/2 ld.exe'
9520
 
  shlibpath_var=LIBPATH
9521
 
  ;;
9522
 
 
9523
 
osf3* | osf4* | osf5*)
9524
 
  version_type=osf
9525
 
  need_lib_prefix=no
9526
 
  need_version=no
9527
 
  soname_spec='${libname}${release}${shared_ext}$major'
9528
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529
 
  shlibpath_var=LD_LIBRARY_PATH
9530
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9531
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9532
 
  ;;
9533
 
 
9534
 
rdos*)
9535
 
  dynamic_linker=no
9536
 
  ;;
9537
 
 
9538
 
solaris*)
9539
 
  version_type=linux
9540
 
  need_lib_prefix=no
9541
 
  need_version=no
9542
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543
 
  soname_spec='${libname}${release}${shared_ext}$major'
9544
 
  shlibpath_var=LD_LIBRARY_PATH
9545
 
  shlibpath_overrides_runpath=yes
9546
 
  hardcode_into_libs=yes
9547
 
  # ldd complains unless libraries are executable
9548
 
  postinstall_cmds='chmod +x $lib'
9549
 
  ;;
9550
 
 
9551
 
sunos4*)
9552
 
  version_type=sunos
9553
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555
 
  shlibpath_var=LD_LIBRARY_PATH
9556
 
  shlibpath_overrides_runpath=yes
9557
 
  if test "$with_gnu_ld" = yes; then
9558
 
    need_lib_prefix=no
9559
 
  fi
9560
 
  need_version=yes
9561
 
  ;;
9562
 
 
9563
 
sysv4 | sysv4.3*)
9564
 
  version_type=linux
9565
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566
 
  soname_spec='${libname}${release}${shared_ext}$major'
9567
 
  shlibpath_var=LD_LIBRARY_PATH
9568
 
  case $host_vendor in
9569
 
    sni)
9570
 
      shlibpath_overrides_runpath=no
9571
 
      need_lib_prefix=no
9572
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9573
 
      runpath_var=LD_RUN_PATH
9574
 
      ;;
9575
 
    siemens)
9576
 
      need_lib_prefix=no
9577
 
      ;;
9578
 
    motorola)
9579
 
      need_lib_prefix=no
9580
 
      need_version=no
9581
 
      shlibpath_overrides_runpath=no
9582
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9583
 
      ;;
9584
 
  esac
9585
 
  ;;
9586
 
 
9587
 
sysv4*MP*)
9588
 
  if test -d /usr/nec ;then
9589
 
    version_type=linux
9590
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591
 
    soname_spec='$libname${shared_ext}.$major'
9592
 
    shlibpath_var=LD_LIBRARY_PATH
9593
 
  fi
9594
 
  ;;
9595
 
 
9596
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9597
 
  version_type=freebsd-elf
9598
 
  need_lib_prefix=no
9599
 
  need_version=no
9600
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601
 
  soname_spec='${libname}${release}${shared_ext}$major'
9602
 
  shlibpath_var=LD_LIBRARY_PATH
9603
 
  hardcode_into_libs=yes
9604
 
  if test "$with_gnu_ld" = yes; then
9605
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9606
 
    shlibpath_overrides_runpath=no
9607
 
  else
9608
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9609
 
    shlibpath_overrides_runpath=yes
9610
 
    case $host_os in
9611
 
      sco3.2v5*)
9612
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9613
 
        ;;
9614
 
    esac
9615
 
  fi
9616
 
  sys_lib_dlsearch_path_spec='/usr/lib'
9617
 
  ;;
9618
 
 
9619
 
uts4*)
9620
 
  version_type=linux
9621
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
 
  soname_spec='${libname}${release}${shared_ext}$major'
9623
 
  shlibpath_var=LD_LIBRARY_PATH
9624
 
  ;;
9625
 
 
9626
 
*)
9627
 
  dynamic_linker=no
9628
 
  ;;
9629
 
esac
9630
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9631
 
echo "${ECHO_T}$dynamic_linker" >&6; }
9632
 
test "$dynamic_linker" = no && can_build_shared=no
9633
 
 
9634
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9636
 
else
9637
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9638
 
fi
9639
 
 
9640
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9641
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9642
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9643
 
else
9644
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9645
 
fi
9646
 
 
9647
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9648
 
 
9649
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9650
 
if test "$GCC" = yes; then
9651
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9652
 
fi
9653
 
 
9654
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9655
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9656
 
hardcode_action=
9657
 
if test -n "$hardcode_libdir_flag_spec" || \
9658
 
   test -n "$runpath_var" || \
9659
 
   test "X$hardcode_automatic" = "Xyes" ; then
9660
 
 
9661
 
  # We can hardcode non-existant directories.
9662
 
  if test "$hardcode_direct" != no &&
9663
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9664
 
     # have to relink, otherwise we might link with an installed library
9665
 
     # when we should be linking with a yet-to-be-installed one
9666
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9667
 
     test "$hardcode_minus_L" != no; then
9668
 
    # Linking always hardcodes the temporary library directory.
9669
 
    hardcode_action=relink
9670
 
  else
9671
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9672
 
    hardcode_action=immediate
9673
 
  fi
9674
 
else
9675
 
  # We cannot hardcode anything, or else we can only hardcode existing
9676
 
  # directories.
9677
 
  hardcode_action=unsupported
9678
 
fi
9679
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9680
 
echo "${ECHO_T}$hardcode_action" >&6; }
9681
 
 
9682
 
if test "$hardcode_action" = relink; then
9683
 
  # Fast installation is not supported
9684
 
  enable_fast_install=no
9685
 
elif test "$shlibpath_overrides_runpath" = yes ||
9686
 
     test "$enable_shared" = no; then
9687
 
  # Fast installation is not necessary
9688
 
  enable_fast_install=needless
9689
 
fi
9690
 
 
9691
 
striplib=
9692
 
old_striplib=
9693
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9694
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9695
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9696
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9697
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9698
 
  { echo "$as_me:$LINENO: result: yes" >&5
9699
 
echo "${ECHO_T}yes" >&6; }
9700
 
else
9701
 
# FIXME - insert some real tests, host_os isn't really good enough
9702
 
  case $host_os in
9703
 
   darwin*)
9704
 
       if test -n "$STRIP" ; then
9705
 
         striplib="$STRIP -x"
9706
 
         old_striplib="$STRIP -S"
9707
 
         { echo "$as_me:$LINENO: result: yes" >&5
9708
 
echo "${ECHO_T}yes" >&6; }
9709
 
       else
9710
 
  { echo "$as_me:$LINENO: result: no" >&5
9711
 
echo "${ECHO_T}no" >&6; }
9712
 
fi
9713
 
       ;;
9714
 
   *)
9715
 
  { echo "$as_me:$LINENO: result: no" >&5
9716
 
echo "${ECHO_T}no" >&6; }
9717
 
    ;;
9718
 
  esac
9719
 
fi
9720
 
 
9721
 
if test "x$enable_dlopen" != xyes; then
9722
 
  enable_dlopen=unknown
9723
 
  enable_dlopen_self=unknown
9724
 
  enable_dlopen_self_static=unknown
9725
 
else
9726
 
  lt_cv_dlopen=no
9727
 
  lt_cv_dlopen_libs=
9728
 
 
9729
 
  case $host_os in
9730
 
  beos*)
9731
 
    lt_cv_dlopen="load_add_on"
9732
 
    lt_cv_dlopen_libs=
9733
 
    lt_cv_dlopen_self=yes
9734
 
    ;;
9735
 
 
9736
 
  mingw* | pw32*)
9737
 
    lt_cv_dlopen="LoadLibrary"
9738
 
    lt_cv_dlopen_libs=
9739
 
   ;;
9740
 
 
9741
 
  cygwin*)
9742
 
    lt_cv_dlopen="dlopen"
9743
 
    lt_cv_dlopen_libs=
9744
 
   ;;
9745
 
 
9746
 
  darwin*)
9747
 
  # if libdl is installed we need to link against it
9748
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9752
 
else
9753
 
  ac_check_lib_save_LIBS=$LIBS
9754
 
LIBS="-ldl  $LIBS"
9755
 
cat >conftest.$ac_ext <<_ACEOF
9756
 
/* confdefs.h.  */
9757
 
_ACEOF
9758
 
cat confdefs.h >>conftest.$ac_ext
9759
 
cat >>conftest.$ac_ext <<_ACEOF
9760
 
/* end confdefs.h.  */
9761
 
 
9762
 
/* Override any GCC internal prototype to avoid an error.
9763
 
   Use char because int might match the return type of a GCC
9764
 
   builtin and then its argument prototype would still apply.  */
9765
 
#ifdef __cplusplus
9766
 
extern "C"
9767
 
#endif
9768
 
char dlopen ();
9769
 
int
9770
 
main ()
9771
 
{
9772
 
return dlopen ();
9773
 
  ;
9774
 
  return 0;
9775
 
}
9776
 
_ACEOF
9777
 
rm -f conftest.$ac_objext conftest$ac_exeext
9778
 
if { (ac_try="$ac_link"
9779
 
case "(($ac_try" in
9780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781
 
  *) ac_try_echo=$ac_try;;
9782
 
esac
9783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784
 
  (eval "$ac_link") 2>conftest.er1
9785
 
  ac_status=$?
9786
 
  grep -v '^ *+' conftest.er1 >conftest.err
9787
 
  rm -f conftest.er1
9788
 
  cat conftest.err >&5
9789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
 
  (exit $ac_status); } && {
9791
 
         test -z "$ac_c_werror_flag" ||
9792
 
         test ! -s conftest.err
9793
 
       } && test -s conftest$ac_exeext &&
9794
 
       $as_test_x conftest$ac_exeext; then
9795
 
  ac_cv_lib_dl_dlopen=yes
9796
 
else
9797
 
  echo "$as_me: failed program was:" >&5
9798
 
sed 's/^/| /' conftest.$ac_ext >&5
9799
 
 
9800
 
        ac_cv_lib_dl_dlopen=no
9801
 
fi
9802
 
 
9803
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804
 
      conftest$ac_exeext conftest.$ac_ext
9805
 
LIBS=$ac_check_lib_save_LIBS
9806
 
fi
9807
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9808
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9809
 
if test $ac_cv_lib_dl_dlopen = yes; then
9810
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9811
 
else
9812
 
 
9813
 
    lt_cv_dlopen="dyld"
9814
 
    lt_cv_dlopen_libs=
9815
 
    lt_cv_dlopen_self=yes
9816
 
 
9817
 
fi
9818
 
 
9819
 
   ;;
9820
 
 
9821
 
  *)
9822
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9823
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9824
 
if test "${ac_cv_func_shl_load+set}" = set; then
9825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9826
 
else
9827
 
  cat >conftest.$ac_ext <<_ACEOF
9828
 
/* confdefs.h.  */
9829
 
_ACEOF
9830
 
cat confdefs.h >>conftest.$ac_ext
9831
 
cat >>conftest.$ac_ext <<_ACEOF
9832
 
/* end confdefs.h.  */
9833
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9834
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9835
 
#define shl_load innocuous_shl_load
9836
 
 
9837
 
/* System header to define __stub macros and hopefully few prototypes,
9838
 
    which can conflict with char shl_load (); below.
9839
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840
 
    <limits.h> exists even on freestanding compilers.  */
9841
 
 
9842
 
#ifdef __STDC__
9843
 
# include <limits.h>
9844
 
#else
9845
 
# include <assert.h>
9846
 
#endif
9847
 
 
9848
 
#undef shl_load
9849
 
 
9850
 
/* Override any GCC internal prototype to avoid an error.
9851
 
   Use char because int might match the return type of a GCC
9852
 
   builtin and then its argument prototype would still apply.  */
9853
 
#ifdef __cplusplus
9854
 
extern "C"
9855
 
#endif
9856
 
char shl_load ();
9857
 
/* The GNU C library defines this for functions which it implements
9858
 
    to always fail with ENOSYS.  Some functions are actually named
9859
 
    something starting with __ and the normal name is an alias.  */
9860
 
#if defined __stub_shl_load || defined __stub___shl_load
9861
 
choke me
9862
 
#endif
9863
 
 
9864
 
int
9865
 
main ()
9866
 
{
9867
 
return shl_load ();
9868
 
  ;
9869
 
  return 0;
9870
 
}
9871
 
_ACEOF
9872
 
rm -f conftest.$ac_objext conftest$ac_exeext
9873
 
if { (ac_try="$ac_link"
9874
 
case "(($ac_try" in
9875
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876
 
  *) ac_try_echo=$ac_try;;
9877
 
esac
9878
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879
 
  (eval "$ac_link") 2>conftest.er1
9880
 
  ac_status=$?
9881
 
  grep -v '^ *+' conftest.er1 >conftest.err
9882
 
  rm -f conftest.er1
9883
 
  cat conftest.err >&5
9884
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885
 
  (exit $ac_status); } && {
9886
 
         test -z "$ac_c_werror_flag" ||
9887
 
         test ! -s conftest.err
9888
 
       } && test -s conftest$ac_exeext &&
9889
 
       $as_test_x conftest$ac_exeext; then
9890
 
  ac_cv_func_shl_load=yes
9891
 
else
9892
 
  echo "$as_me: failed program was:" >&5
9893
 
sed 's/^/| /' conftest.$ac_ext >&5
9894
 
 
9895
 
        ac_cv_func_shl_load=no
9896
 
fi
9897
 
 
9898
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899
 
      conftest$ac_exeext conftest.$ac_ext
9900
 
fi
9901
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9902
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9903
 
if test $ac_cv_func_shl_load = yes; then
9904
 
  lt_cv_dlopen="shl_load"
9905
 
else
9906
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9907
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9908
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9909
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9910
 
else
9911
 
  ac_check_lib_save_LIBS=$LIBS
9912
 
LIBS="-ldld  $LIBS"
9913
 
cat >conftest.$ac_ext <<_ACEOF
9914
 
/* confdefs.h.  */
9915
 
_ACEOF
9916
 
cat confdefs.h >>conftest.$ac_ext
9917
 
cat >>conftest.$ac_ext <<_ACEOF
9918
 
/* end confdefs.h.  */
9919
 
 
9920
 
/* Override any GCC internal prototype to avoid an error.
9921
 
   Use char because int might match the return type of a GCC
9922
 
   builtin and then its argument prototype would still apply.  */
9923
 
#ifdef __cplusplus
9924
 
extern "C"
9925
 
#endif
9926
 
char shl_load ();
9927
 
int
9928
 
main ()
9929
 
{
9930
 
return shl_load ();
9931
 
  ;
9932
 
  return 0;
9933
 
}
9934
 
_ACEOF
9935
 
rm -f conftest.$ac_objext conftest$ac_exeext
9936
 
if { (ac_try="$ac_link"
9937
 
case "(($ac_try" in
9938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939
 
  *) ac_try_echo=$ac_try;;
9940
 
esac
9941
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942
 
  (eval "$ac_link") 2>conftest.er1
9943
 
  ac_status=$?
9944
 
  grep -v '^ *+' conftest.er1 >conftest.err
9945
 
  rm -f conftest.er1
9946
 
  cat conftest.err >&5
9947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948
 
  (exit $ac_status); } && {
9949
 
         test -z "$ac_c_werror_flag" ||
9950
 
         test ! -s conftest.err
9951
 
       } && test -s conftest$ac_exeext &&
9952
 
       $as_test_x conftest$ac_exeext; then
9953
 
  ac_cv_lib_dld_shl_load=yes
9954
 
else
9955
 
  echo "$as_me: failed program was:" >&5
9956
 
sed 's/^/| /' conftest.$ac_ext >&5
9957
 
 
9958
 
        ac_cv_lib_dld_shl_load=no
9959
 
fi
9960
 
 
9961
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962
 
      conftest$ac_exeext conftest.$ac_ext
9963
 
LIBS=$ac_check_lib_save_LIBS
9964
 
fi
9965
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9966
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9967
 
if test $ac_cv_lib_dld_shl_load = yes; then
9968
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9969
 
else
9970
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9971
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9972
 
if test "${ac_cv_func_dlopen+set}" = set; then
9973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9974
 
else
9975
 
  cat >conftest.$ac_ext <<_ACEOF
9976
 
/* confdefs.h.  */
9977
 
_ACEOF
9978
 
cat confdefs.h >>conftest.$ac_ext
9979
 
cat >>conftest.$ac_ext <<_ACEOF
9980
 
/* end confdefs.h.  */
9981
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9982
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9983
 
#define dlopen innocuous_dlopen
9984
 
 
9985
 
/* System header to define __stub macros and hopefully few prototypes,
9986
 
    which can conflict with char dlopen (); below.
9987
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988
 
    <limits.h> exists even on freestanding compilers.  */
9989
 
 
9990
 
#ifdef __STDC__
9991
 
# include <limits.h>
9992
 
#else
9993
 
# include <assert.h>
9994
 
#endif
9995
 
 
9996
 
#undef dlopen
9997
 
 
9998
 
/* Override any GCC internal prototype to avoid an error.
9999
 
   Use char because int might match the return type of a GCC
10000
 
   builtin and then its argument prototype would still apply.  */
10001
 
#ifdef __cplusplus
10002
 
extern "C"
10003
 
#endif
10004
 
char dlopen ();
10005
 
/* The GNU C library defines this for functions which it implements
10006
 
    to always fail with ENOSYS.  Some functions are actually named
10007
 
    something starting with __ and the normal name is an alias.  */
10008
 
#if defined __stub_dlopen || defined __stub___dlopen
10009
 
choke me
10010
 
#endif
10011
 
 
10012
 
int
10013
 
main ()
10014
 
{
10015
 
return dlopen ();
10016
 
  ;
10017
 
  return 0;
10018
 
}
10019
 
_ACEOF
10020
 
rm -f conftest.$ac_objext conftest$ac_exeext
10021
 
if { (ac_try="$ac_link"
10022
 
case "(($ac_try" in
10023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024
 
  *) ac_try_echo=$ac_try;;
10025
 
esac
10026
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027
 
  (eval "$ac_link") 2>conftest.er1
10028
 
  ac_status=$?
10029
 
  grep -v '^ *+' conftest.er1 >conftest.err
10030
 
  rm -f conftest.er1
10031
 
  cat conftest.err >&5
10032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
 
  (exit $ac_status); } && {
10034
 
         test -z "$ac_c_werror_flag" ||
10035
 
         test ! -s conftest.err
10036
 
       } && test -s conftest$ac_exeext &&
10037
 
       $as_test_x conftest$ac_exeext; then
10038
 
  ac_cv_func_dlopen=yes
10039
 
else
10040
 
  echo "$as_me: failed program was:" >&5
10041
 
sed 's/^/| /' conftest.$ac_ext >&5
10042
 
 
10043
 
        ac_cv_func_dlopen=no
10044
 
fi
10045
 
 
10046
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10047
 
      conftest$ac_exeext conftest.$ac_ext
10048
 
fi
10049
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10051
 
if test $ac_cv_func_dlopen = yes; then
10052
 
  lt_cv_dlopen="dlopen"
10053
 
else
10054
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10056
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10058
 
else
10059
 
  ac_check_lib_save_LIBS=$LIBS
10060
 
LIBS="-ldl  $LIBS"
10061
 
cat >conftest.$ac_ext <<_ACEOF
10062
 
/* confdefs.h.  */
10063
 
_ACEOF
10064
 
cat confdefs.h >>conftest.$ac_ext
10065
 
cat >>conftest.$ac_ext <<_ACEOF
10066
 
/* end confdefs.h.  */
10067
 
 
10068
 
/* Override any GCC internal prototype to avoid an error.
10069
 
   Use char because int might match the return type of a GCC
10070
 
   builtin and then its argument prototype would still apply.  */
10071
 
#ifdef __cplusplus
10072
 
extern "C"
10073
 
#endif
10074
 
char dlopen ();
10075
 
int
10076
 
main ()
10077
 
{
10078
 
return dlopen ();
10079
 
  ;
10080
 
  return 0;
10081
 
}
10082
 
_ACEOF
10083
 
rm -f conftest.$ac_objext conftest$ac_exeext
10084
 
if { (ac_try="$ac_link"
10085
 
case "(($ac_try" in
10086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087
 
  *) ac_try_echo=$ac_try;;
10088
 
esac
10089
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090
 
  (eval "$ac_link") 2>conftest.er1
10091
 
  ac_status=$?
10092
 
  grep -v '^ *+' conftest.er1 >conftest.err
10093
 
  rm -f conftest.er1
10094
 
  cat conftest.err >&5
10095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096
 
  (exit $ac_status); } && {
10097
 
         test -z "$ac_c_werror_flag" ||
10098
 
         test ! -s conftest.err
10099
 
       } && test -s conftest$ac_exeext &&
10100
 
       $as_test_x conftest$ac_exeext; then
10101
 
  ac_cv_lib_dl_dlopen=yes
10102
 
else
10103
 
  echo "$as_me: failed program was:" >&5
10104
 
sed 's/^/| /' conftest.$ac_ext >&5
10105
 
 
10106
 
        ac_cv_lib_dl_dlopen=no
10107
 
fi
10108
 
 
10109
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110
 
      conftest$ac_exeext conftest.$ac_ext
10111
 
LIBS=$ac_check_lib_save_LIBS
10112
 
fi
10113
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10115
 
if test $ac_cv_lib_dl_dlopen = yes; then
10116
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10117
 
else
10118
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10119
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10120
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10122
 
else
10123
 
  ac_check_lib_save_LIBS=$LIBS
10124
 
LIBS="-lsvld  $LIBS"
10125
 
cat >conftest.$ac_ext <<_ACEOF
10126
 
/* confdefs.h.  */
10127
 
_ACEOF
10128
 
cat confdefs.h >>conftest.$ac_ext
10129
 
cat >>conftest.$ac_ext <<_ACEOF
10130
 
/* end confdefs.h.  */
10131
 
 
10132
 
/* Override any GCC internal prototype to avoid an error.
10133
 
   Use char because int might match the return type of a GCC
10134
 
   builtin and then its argument prototype would still apply.  */
10135
 
#ifdef __cplusplus
10136
 
extern "C"
10137
 
#endif
10138
 
char dlopen ();
10139
 
int
10140
 
main ()
10141
 
{
10142
 
return dlopen ();
10143
 
  ;
10144
 
  return 0;
10145
 
}
10146
 
_ACEOF
10147
 
rm -f conftest.$ac_objext conftest$ac_exeext
10148
 
if { (ac_try="$ac_link"
10149
 
case "(($ac_try" in
10150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151
 
  *) ac_try_echo=$ac_try;;
10152
 
esac
10153
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154
 
  (eval "$ac_link") 2>conftest.er1
10155
 
  ac_status=$?
10156
 
  grep -v '^ *+' conftest.er1 >conftest.err
10157
 
  rm -f conftest.er1
10158
 
  cat conftest.err >&5
10159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160
 
  (exit $ac_status); } && {
10161
 
         test -z "$ac_c_werror_flag" ||
10162
 
         test ! -s conftest.err
10163
 
       } && test -s conftest$ac_exeext &&
10164
 
       $as_test_x conftest$ac_exeext; then
10165
 
  ac_cv_lib_svld_dlopen=yes
10166
 
else
10167
 
  echo "$as_me: failed program was:" >&5
10168
 
sed 's/^/| /' conftest.$ac_ext >&5
10169
 
 
10170
 
        ac_cv_lib_svld_dlopen=no
10171
 
fi
10172
 
 
10173
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10174
 
      conftest$ac_exeext conftest.$ac_ext
10175
 
LIBS=$ac_check_lib_save_LIBS
10176
 
fi
10177
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10178
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10179
 
if test $ac_cv_lib_svld_dlopen = yes; then
10180
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10181
 
else
10182
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10184
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10186
 
else
10187
 
  ac_check_lib_save_LIBS=$LIBS
10188
 
LIBS="-ldld  $LIBS"
10189
 
cat >conftest.$ac_ext <<_ACEOF
10190
 
/* confdefs.h.  */
10191
 
_ACEOF
10192
 
cat confdefs.h >>conftest.$ac_ext
10193
 
cat >>conftest.$ac_ext <<_ACEOF
10194
 
/* end confdefs.h.  */
10195
 
 
10196
 
/* Override any GCC internal prototype to avoid an error.
10197
 
   Use char because int might match the return type of a GCC
10198
 
   builtin and then its argument prototype would still apply.  */
10199
 
#ifdef __cplusplus
10200
 
extern "C"
10201
 
#endif
10202
 
char dld_link ();
10203
 
int
10204
 
main ()
10205
 
{
10206
 
return dld_link ();
10207
 
  ;
10208
 
  return 0;
10209
 
}
10210
 
_ACEOF
10211
 
rm -f conftest.$ac_objext conftest$ac_exeext
10212
 
if { (ac_try="$ac_link"
10213
 
case "(($ac_try" in
10214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215
 
  *) ac_try_echo=$ac_try;;
10216
 
esac
10217
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218
 
  (eval "$ac_link") 2>conftest.er1
10219
 
  ac_status=$?
10220
 
  grep -v '^ *+' conftest.er1 >conftest.err
10221
 
  rm -f conftest.er1
10222
 
  cat conftest.err >&5
10223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224
 
  (exit $ac_status); } && {
10225
 
         test -z "$ac_c_werror_flag" ||
10226
 
         test ! -s conftest.err
10227
 
       } && test -s conftest$ac_exeext &&
10228
 
       $as_test_x conftest$ac_exeext; then
10229
 
  ac_cv_lib_dld_dld_link=yes
10230
 
else
10231
 
  echo "$as_me: failed program was:" >&5
10232
 
sed 's/^/| /' conftest.$ac_ext >&5
10233
 
 
10234
 
        ac_cv_lib_dld_dld_link=no
10235
 
fi
10236
 
 
10237
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238
 
      conftest$ac_exeext conftest.$ac_ext
10239
 
LIBS=$ac_check_lib_save_LIBS
10240
 
fi
10241
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243
 
if test $ac_cv_lib_dld_dld_link = yes; then
10244
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245
 
fi
10246
 
 
10247
 
 
10248
 
fi
10249
 
 
10250
 
 
10251
 
fi
10252
 
 
10253
 
 
10254
 
fi
10255
 
 
10256
 
 
10257
 
fi
10258
 
 
10259
 
 
10260
 
fi
10261
 
 
10262
 
    ;;
10263
 
  esac
10264
 
 
10265
 
  if test "x$lt_cv_dlopen" != xno; then
10266
 
    enable_dlopen=yes
10267
 
  else
10268
 
    enable_dlopen=no
10269
 
  fi
10270
 
 
10271
 
  case $lt_cv_dlopen in
10272
 
  dlopen)
10273
 
    save_CPPFLAGS="$CPPFLAGS"
10274
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275
 
 
10276
 
    save_LDFLAGS="$LDFLAGS"
10277
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10278
 
 
10279
 
    save_LIBS="$LIBS"
10280
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10281
 
 
10282
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10283
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10284
 
if test "${lt_cv_dlopen_self+set}" = set; then
10285
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10286
 
else
10287
 
          if test "$cross_compiling" = yes; then :
10288
 
  lt_cv_dlopen_self=cross
10289
 
else
10290
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291
 
  lt_status=$lt_dlunknown
10292
 
  cat > conftest.$ac_ext <<EOF
10293
 
#line 10293 "configure"
10294
 
#include "confdefs.h"
10295
 
 
10296
 
#if HAVE_DLFCN_H
10297
 
#include <dlfcn.h>
10298
 
#endif
10299
 
 
10300
 
#include <stdio.h>
10301
 
 
10302
 
#ifdef RTLD_GLOBAL
10303
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10304
 
#else
10305
 
#  ifdef DL_GLOBAL
10306
 
#    define LT_DLGLOBAL         DL_GLOBAL
10307
 
#  else
10308
 
#    define LT_DLGLOBAL         0
10309
 
#  endif
10310
 
#endif
10311
 
 
10312
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313
 
   find out it does not work in some platform. */
10314
 
#ifndef LT_DLLAZY_OR_NOW
10315
 
#  ifdef RTLD_LAZY
10316
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10317
 
#  else
10318
 
#    ifdef DL_LAZY
10319
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10320
 
#    else
10321
 
#      ifdef RTLD_NOW
10322
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10323
 
#      else
10324
 
#        ifdef DL_NOW
10325
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10326
 
#        else
10327
 
#          define LT_DLLAZY_OR_NOW      0
10328
 
#        endif
10329
 
#      endif
10330
 
#    endif
10331
 
#  endif
10332
 
#endif
10333
 
 
10334
 
#ifdef __cplusplus
10335
 
extern "C" void exit (int);
10336
 
#endif
10337
 
 
10338
 
void fnord() { int i=42;}
10339
 
int main ()
10340
 
{
10341
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342
 
  int status = $lt_dlunknown;
10343
 
 
10344
 
  if (self)
10345
 
    {
10346
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10347
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348
 
      /* dlclose (self); */
10349
 
    }
10350
 
  else
10351
 
    puts (dlerror ());
10352
 
 
10353
 
    exit (status);
10354
 
}
10355
 
EOF
10356
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357
 
  (eval $ac_link) 2>&5
10358
 
  ac_status=$?
10359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361
 
    (./conftest; exit; ) >&5 2>/dev/null
10362
 
    lt_status=$?
10363
 
    case x$lt_status in
10364
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10365
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10366
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10367
 
    esac
10368
 
  else :
10369
 
    # compilation failed
10370
 
    lt_cv_dlopen_self=no
10371
 
  fi
10372
 
fi
10373
 
rm -fr conftest*
10374
 
 
10375
 
 
10376
 
fi
10377
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10378
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10379
 
 
10380
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10381
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10382
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10383
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10384
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10385
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10386
 
else
10387
 
          if test "$cross_compiling" = yes; then :
10388
 
  lt_cv_dlopen_self_static=cross
10389
 
else
10390
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10391
 
  lt_status=$lt_dlunknown
10392
 
  cat > conftest.$ac_ext <<EOF
10393
 
#line 10393 "configure"
10394
 
#include "confdefs.h"
10395
 
 
10396
 
#if HAVE_DLFCN_H
10397
 
#include <dlfcn.h>
10398
 
#endif
10399
 
 
10400
 
#include <stdio.h>
10401
 
 
10402
 
#ifdef RTLD_GLOBAL
10403
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10404
 
#else
10405
 
#  ifdef DL_GLOBAL
10406
 
#    define LT_DLGLOBAL         DL_GLOBAL
10407
 
#  else
10408
 
#    define LT_DLGLOBAL         0
10409
 
#  endif
10410
 
#endif
10411
 
 
10412
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10413
 
   find out it does not work in some platform. */
10414
 
#ifndef LT_DLLAZY_OR_NOW
10415
 
#  ifdef RTLD_LAZY
10416
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10417
 
#  else
10418
 
#    ifdef DL_LAZY
10419
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10420
 
#    else
10421
 
#      ifdef RTLD_NOW
10422
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10423
 
#      else
10424
 
#        ifdef DL_NOW
10425
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10426
 
#        else
10427
 
#          define LT_DLLAZY_OR_NOW      0
10428
 
#        endif
10429
 
#      endif
10430
 
#    endif
10431
 
#  endif
10432
 
#endif
10433
 
 
10434
 
#ifdef __cplusplus
10435
 
extern "C" void exit (int);
10436
 
#endif
10437
 
 
10438
 
void fnord() { int i=42;}
10439
 
int main ()
10440
 
{
10441
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442
 
  int status = $lt_dlunknown;
10443
 
 
10444
 
  if (self)
10445
 
    {
10446
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10447
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10448
 
      /* dlclose (self); */
10449
 
    }
10450
 
  else
10451
 
    puts (dlerror ());
10452
 
 
10453
 
    exit (status);
10454
 
}
10455
 
EOF
10456
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457
 
  (eval $ac_link) 2>&5
10458
 
  ac_status=$?
10459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10461
 
    (./conftest; exit; ) >&5 2>/dev/null
10462
 
    lt_status=$?
10463
 
    case x$lt_status in
10464
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10465
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10466
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10467
 
    esac
10468
 
  else :
10469
 
    # compilation failed
10470
 
    lt_cv_dlopen_self_static=no
10471
 
  fi
10472
 
fi
10473
 
rm -fr conftest*
10474
 
 
10475
 
 
10476
 
fi
10477
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10478
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10479
 
    fi
10480
 
 
10481
 
    CPPFLAGS="$save_CPPFLAGS"
10482
 
    LDFLAGS="$save_LDFLAGS"
10483
 
    LIBS="$save_LIBS"
10484
 
    ;;
10485
 
  esac
10486
 
 
10487
 
  case $lt_cv_dlopen_self in
10488
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10489
 
  *) enable_dlopen_self=unknown ;;
10490
 
  esac
10491
 
 
10492
 
  case $lt_cv_dlopen_self_static in
10493
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10494
 
  *) enable_dlopen_self_static=unknown ;;
10495
 
  esac
10496
 
fi
10497
 
 
10498
 
 
10499
 
# Report which library types will actually be built
10500
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10501
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10502
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10503
 
echo "${ECHO_T}$can_build_shared" >&6; }
10504
 
 
10505
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10506
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10507
 
test "$can_build_shared" = "no" && enable_shared=no
10508
 
 
10509
 
# On AIX, shared libraries and static libraries use the same namespace, and
10510
 
# are all built from PIC.
10511
 
case $host_os in
10512
 
aix3*)
10513
 
  test "$enable_shared" = yes && enable_static=no
10514
 
  if test -n "$RANLIB"; then
10515
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10516
 
    postinstall_cmds='$RANLIB $lib'
10517
 
  fi
10518
 
  ;;
10519
 
 
10520
 
aix[4-9]*)
10521
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10522
 
    test "$enable_shared" = yes && enable_static=no
10523
 
  fi
10524
 
    ;;
10525
 
esac
10526
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10527
 
echo "${ECHO_T}$enable_shared" >&6; }
10528
 
 
10529
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10530
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10531
 
# Make sure either enable_shared or enable_static is yes.
10532
 
test "$enable_shared" = yes || enable_static=yes
10533
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10534
 
echo "${ECHO_T}$enable_static" >&6; }
10535
 
 
10536
 
# The else clause should only fire when bootstrapping the
10537
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10538
 
# with your package, and you will get complaints that there are
10539
 
# no rules to generate ltmain.sh.
10540
 
if test -f "$ltmain"; then
10541
 
  # See if we are running on zsh, and set the options which allow our commands through
10542
 
  # without removal of \ escapes.
10543
 
  if test -n "${ZSH_VERSION+set}" ; then
10544
 
    setopt NO_GLOB_SUBST
10545
 
  fi
10546
 
  # Now quote all the things that may contain metacharacters while being
10547
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10548
 
  # variables and quote the copies for generation of the libtool script.
10549
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10550
 
    SED SHELL STRIP \
10551
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10552
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10553
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10554
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10555
 
    lt_cv_sys_global_symbol_to_c_name_address \
10556
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10557
 
    old_postinstall_cmds old_postuninstall_cmds \
10558
 
    compiler \
10559
 
    CC \
10560
 
    LD \
10561
 
    lt_prog_compiler_wl \
10562
 
    lt_prog_compiler_pic \
10563
 
    lt_prog_compiler_static \
10564
 
    lt_prog_compiler_no_builtin_flag \
10565
 
    export_dynamic_flag_spec \
10566
 
    thread_safe_flag_spec \
10567
 
    whole_archive_flag_spec \
10568
 
    enable_shared_with_static_runtimes \
10569
 
    old_archive_cmds \
10570
 
    old_archive_from_new_cmds \
10571
 
    predep_objects \
10572
 
    postdep_objects \
10573
 
    predeps \
10574
 
    postdeps \
10575
 
    compiler_lib_search_path \
10576
 
    compiler_lib_search_dirs \
10577
 
    archive_cmds \
10578
 
    archive_expsym_cmds \
10579
 
    postinstall_cmds \
10580
 
    postuninstall_cmds \
10581
 
    old_archive_from_expsyms_cmds \
10582
 
    allow_undefined_flag \
10583
 
    no_undefined_flag \
10584
 
    export_symbols_cmds \
10585
 
    hardcode_libdir_flag_spec \
10586
 
    hardcode_libdir_flag_spec_ld \
10587
 
    hardcode_libdir_separator \
10588
 
    hardcode_automatic \
10589
 
    module_cmds \
10590
 
    module_expsym_cmds \
10591
 
    lt_cv_prog_compiler_c_o \
10592
 
    fix_srcfile_path \
10593
 
    exclude_expsyms \
10594
 
    include_expsyms; do
10595
 
 
10596
 
    case $var in
10597
 
    old_archive_cmds | \
10598
 
    old_archive_from_new_cmds | \
10599
 
    archive_cmds | \
10600
 
    archive_expsym_cmds | \
10601
 
    module_cmds | \
10602
 
    module_expsym_cmds | \
10603
 
    old_archive_from_expsyms_cmds | \
10604
 
    export_symbols_cmds | \
10605
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10606
 
    postinstall_cmds | postuninstall_cmds | \
10607
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10608
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10609
 
      # Double-quote double-evaled strings.
10610
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10611
 
      ;;
10612
 
    *)
10613
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10614
 
      ;;
10615
 
    esac
10616
 
  done
10617
 
 
10618
 
  case $lt_echo in
10619
 
  *'\$0 --fallback-echo"')
10620
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10621
 
    ;;
10622
 
  esac
10623
 
 
10624
 
cfgfile="${ofile}T"
10625
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10626
 
  $rm -f "$cfgfile"
10627
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10628
 
echo "$as_me: creating $ofile" >&6;}
10629
 
 
10630
 
  cat <<__EOF__ >> "$cfgfile"
10631
 
#! $SHELL
10632
 
 
10633
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10634
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10635
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10636
 
#
10637
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10638
 
# Free Software Foundation, Inc.
10639
 
#
10640
 
# This file is part of GNU Libtool:
10641
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10642
 
#
10643
 
# This program is free software; you can redistribute it and/or modify
10644
 
# it under the terms of the GNU General Public License as published by
10645
 
# the Free Software Foundation; either version 2 of the License, or
10646
 
# (at your option) any later version.
10647
 
#
10648
 
# This program is distributed in the hope that it will be useful, but
10649
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10650
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10651
 
# General Public License for more details.
10652
 
#
10653
 
# You should have received a copy of the GNU General Public License
10654
 
# along with this program; if not, write to the Free Software
10655
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10656
 
#
10657
 
# As a special exception to the GNU General Public License, if you
10658
 
# distribute this file as part of a program that contains a
10659
 
# configuration script generated by Autoconf, you may include it under
10660
 
# the same distribution terms that you use for the rest of that program.
10661
 
 
10662
 
# A sed program that does not truncate output.
10663
 
SED=$lt_SED
10664
 
 
10665
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10666
 
Xsed="$SED -e 1s/^X//"
10667
 
 
10668
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10669
 
# if CDPATH is set.
10670
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10671
 
 
10672
 
# The names of the tagged configurations supported by this script.
10673
 
available_tags=
10674
 
 
10675
 
# ### BEGIN LIBTOOL CONFIG
10676
 
 
10677
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10678
 
 
10679
 
# Shell to use when invoking shell scripts.
10680
 
SHELL=$lt_SHELL
10681
 
 
10682
 
# Whether or not to build shared libraries.
10683
 
build_libtool_libs=$enable_shared
10684
 
 
10685
 
# Whether or not to build static libraries.
10686
 
build_old_libs=$enable_static
10687
 
 
10688
 
# Whether or not to add -lc for building shared libraries.
10689
 
build_libtool_need_lc=$archive_cmds_need_lc
10690
 
 
10691
 
# Whether or not to disallow shared libs when runtime libs are static
10692
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10693
 
 
10694
 
# Whether or not to optimize for fast installation.
10695
 
fast_install=$enable_fast_install
10696
 
 
10697
 
# The host system.
10698
 
host_alias=$host_alias
10699
 
host=$host
10700
 
host_os=$host_os
10701
 
 
10702
 
# The build system.
10703
 
build_alias=$build_alias
10704
 
build=$build
10705
 
build_os=$build_os
10706
 
 
10707
 
# An echo program that does not interpret backslashes.
10708
 
echo=$lt_echo
10709
 
 
10710
 
# The archiver.
10711
 
AR=$lt_AR
10712
 
AR_FLAGS=$lt_AR_FLAGS
10713
 
 
10714
 
# A C compiler.
10715
 
LTCC=$lt_LTCC
10716
 
 
10717
 
# LTCC compiler flags.
10718
 
LTCFLAGS=$lt_LTCFLAGS
10719
 
 
10720
 
# A language-specific compiler.
10721
 
CC=$lt_compiler
10722
 
 
10723
 
# Is the compiler the GNU C compiler?
10724
 
with_gcc=$GCC
10725
 
 
10726
 
# An ERE matcher.
10727
 
EGREP=$lt_EGREP
10728
 
 
10729
 
# The linker used to build libraries.
10730
 
LD=$lt_LD
10731
 
 
10732
 
# Whether we need hard or soft links.
10733
 
LN_S=$lt_LN_S
10734
 
 
10735
 
# A BSD-compatible nm program.
10736
 
NM=$lt_NM
10737
 
 
10738
 
# A symbol stripping program
10739
 
STRIP=$lt_STRIP
10740
 
 
10741
 
# Used to examine libraries when file_magic_cmd begins "file"
10742
 
MAGIC_CMD=$MAGIC_CMD
10743
 
 
10744
 
# Used on cygwin: DLL creation program.
10745
 
DLLTOOL="$DLLTOOL"
10746
 
 
10747
 
# Used on cygwin: object dumper.
10748
 
OBJDUMP="$OBJDUMP"
10749
 
 
10750
 
# Used on cygwin: assembler.
10751
 
AS="$AS"
10752
 
 
10753
 
# The name of the directory that contains temporary libtool files.
10754
 
objdir=$objdir
10755
 
 
10756
 
# How to create reloadable object files.
10757
 
reload_flag=$lt_reload_flag
10758
 
reload_cmds=$lt_reload_cmds
10759
 
 
10760
 
# How to pass a linker flag through the compiler.
10761
 
wl=$lt_lt_prog_compiler_wl
10762
 
 
10763
 
# Object file suffix (normally "o").
10764
 
objext="$ac_objext"
10765
 
 
10766
 
# Old archive suffix (normally "a").
10767
 
libext="$libext"
10768
 
 
10769
 
# Shared library suffix (normally ".so").
10770
 
shrext_cmds='$shrext_cmds'
10771
 
 
10772
 
# Executable file suffix (normally "").
10773
 
exeext="$exeext"
10774
 
 
10775
 
# Additional compiler flags for building library objects.
10776
 
pic_flag=$lt_lt_prog_compiler_pic
10777
 
pic_mode=$pic_mode
10778
 
 
10779
 
# What is the maximum length of a command?
10780
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10781
 
 
10782
 
# Does compiler simultaneously support -c and -o options?
10783
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10784
 
 
10785
 
# Must we lock files when doing compilation?
10786
 
need_locks=$lt_need_locks
10787
 
 
10788
 
# Do we need the lib prefix for modules?
10789
 
need_lib_prefix=$need_lib_prefix
10790
 
 
10791
 
# Do we need a version for libraries?
10792
 
need_version=$need_version
10793
 
 
10794
 
# Whether dlopen is supported.
10795
 
dlopen_support=$enable_dlopen
10796
 
 
10797
 
# Whether dlopen of programs is supported.
10798
 
dlopen_self=$enable_dlopen_self
10799
 
 
10800
 
# Whether dlopen of statically linked programs is supported.
10801
 
dlopen_self_static=$enable_dlopen_self_static
10802
 
 
10803
 
# Compiler flag to prevent dynamic linking.
10804
 
link_static_flag=$lt_lt_prog_compiler_static
10805
 
 
10806
 
# Compiler flag to turn off builtin functions.
10807
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10808
 
 
10809
 
# Compiler flag to allow reflexive dlopens.
10810
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10811
 
 
10812
 
# Compiler flag to generate shared objects directly from archives.
10813
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10814
 
 
10815
 
# Compiler flag to generate thread-safe objects.
10816
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10817
 
 
10818
 
# Library versioning type.
10819
 
version_type=$version_type
10820
 
 
10821
 
# Format of library name prefix.
10822
 
libname_spec=$lt_libname_spec
10823
 
 
10824
 
# List of archive names.  First name is the real one, the rest are links.
10825
 
# The last name is the one that the linker finds with -lNAME.
10826
 
library_names_spec=$lt_library_names_spec
10827
 
 
10828
 
# The coded name of the library, if different from the real name.
10829
 
soname_spec=$lt_soname_spec
10830
 
 
10831
 
# Commands used to build and install an old-style archive.
10832
 
RANLIB=$lt_RANLIB
10833
 
old_archive_cmds=$lt_old_archive_cmds
10834
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10835
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10836
 
 
10837
 
# Create an old-style archive from a shared archive.
10838
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10839
 
 
10840
 
# Create a temporary old-style archive to link instead of a shared archive.
10841
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10842
 
 
10843
 
# Commands used to build and install a shared archive.
10844
 
archive_cmds=$lt_archive_cmds
10845
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10846
 
postinstall_cmds=$lt_postinstall_cmds
10847
 
postuninstall_cmds=$lt_postuninstall_cmds
10848
 
 
10849
 
# Commands used to build a loadable module (assumed same as above if empty)
10850
 
module_cmds=$lt_module_cmds
10851
 
module_expsym_cmds=$lt_module_expsym_cmds
10852
 
 
10853
 
# Commands to strip libraries.
10854
 
old_striplib=$lt_old_striplib
10855
 
striplib=$lt_striplib
10856
 
 
10857
 
# Dependencies to place before the objects being linked to create a
10858
 
# shared library.
10859
 
predep_objects=$lt_predep_objects
10860
 
 
10861
 
# Dependencies to place after the objects being linked to create a
10862
 
# shared library.
10863
 
postdep_objects=$lt_postdep_objects
10864
 
 
10865
 
# Dependencies to place before the objects being linked to create a
10866
 
# shared library.
10867
 
predeps=$lt_predeps
10868
 
 
10869
 
# Dependencies to place after the objects being linked to create a
10870
 
# shared library.
10871
 
postdeps=$lt_postdeps
10872
 
 
10873
 
# The directories searched by this compiler when creating a shared
10874
 
# library
10875
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10876
 
 
10877
 
# The library search path used internally by the compiler when linking
10878
 
# a shared library.
10879
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10880
 
 
10881
 
# Method to check whether dependent libraries are shared objects.
10882
 
deplibs_check_method=$lt_deplibs_check_method
10883
 
 
10884
 
# Command to use when deplibs_check_method == file_magic.
10885
 
file_magic_cmd=$lt_file_magic_cmd
10886
 
 
10887
 
# Flag that allows shared libraries with undefined symbols to be built.
10888
 
allow_undefined_flag=$lt_allow_undefined_flag
10889
 
 
10890
 
# Flag that forces no undefined symbols.
10891
 
no_undefined_flag=$lt_no_undefined_flag
10892
 
 
10893
 
# Commands used to finish a libtool library installation in a directory.
10894
 
finish_cmds=$lt_finish_cmds
10895
 
 
10896
 
# Same as above, but a single script fragment to be evaled but not shown.
10897
 
finish_eval=$lt_finish_eval
10898
 
 
10899
 
# Take the output of nm and produce a listing of raw symbols and C names.
10900
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10901
 
 
10902
 
# Transform the output of nm in a proper C declaration
10903
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10904
 
 
10905
 
# Transform the output of nm in a C name address pair
10906
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10907
 
 
10908
 
# This is the shared library runtime path variable.
10909
 
runpath_var=$runpath_var
10910
 
 
10911
 
# This is the shared library path variable.
10912
 
shlibpath_var=$shlibpath_var
10913
 
 
10914
 
# Is shlibpath searched before the hard-coded library search path?
10915
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10916
 
 
10917
 
# How to hardcode a shared library path into an executable.
10918
 
hardcode_action=$hardcode_action
10919
 
 
10920
 
# Whether we should hardcode library paths into libraries.
10921
 
hardcode_into_libs=$hardcode_into_libs
10922
 
 
10923
 
# Flag to hardcode \$libdir into a binary during linking.
10924
 
# This must work even if \$libdir does not exist.
10925
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10926
 
 
10927
 
# If ld is used when linking, flag to hardcode \$libdir into
10928
 
# a binary during linking. This must work even if \$libdir does
10929
 
# not exist.
10930
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10931
 
 
10932
 
# Whether we need a single -rpath flag with a separated argument.
10933
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10934
 
 
10935
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10936
 
# resulting binary.
10937
 
hardcode_direct=$hardcode_direct
10938
 
 
10939
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10940
 
# resulting binary.
10941
 
hardcode_minus_L=$hardcode_minus_L
10942
 
 
10943
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10944
 
# the resulting binary.
10945
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10946
 
 
10947
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10948
 
# and all subsequent libraries and executables linked against it.
10949
 
hardcode_automatic=$hardcode_automatic
10950
 
 
10951
 
# Variables whose values should be saved in libtool wrapper scripts and
10952
 
# restored at relink time.
10953
 
variables_saved_for_relink="$variables_saved_for_relink"
10954
 
 
10955
 
# Whether libtool must link a program against all its dependency libraries.
10956
 
link_all_deplibs=$link_all_deplibs
10957
 
 
10958
 
# Compile-time system search path for libraries
10959
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10960
 
 
10961
 
# Run-time system search path for libraries
10962
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10963
 
 
10964
 
# Fix the shell variable \$srcfile for the compiler.
10965
 
fix_srcfile_path=$lt_fix_srcfile_path
10966
 
 
10967
 
# Set to yes if exported symbols are required.
10968
 
always_export_symbols=$always_export_symbols
10969
 
 
10970
 
# The commands to list exported symbols.
10971
 
export_symbols_cmds=$lt_export_symbols_cmds
10972
 
 
10973
 
# The commands to extract the exported symbol list from a shared archive.
10974
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10975
 
 
10976
 
# Symbols that should not be listed in the preloaded symbols.
10977
 
exclude_expsyms=$lt_exclude_expsyms
10978
 
 
10979
 
# Symbols that must always be exported.
10980
 
include_expsyms=$lt_include_expsyms
10981
 
 
10982
 
# ### END LIBTOOL CONFIG
10983
 
 
10984
 
__EOF__
10985
 
 
10986
 
 
10987
 
  case $host_os in
10988
 
  aix3*)
10989
 
    cat <<\EOF >> "$cfgfile"
10990
 
 
10991
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10992
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10993
 
# vanish in a puff of smoke.
10994
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10995
 
  COLLECT_NAMES=
10996
 
  export COLLECT_NAMES
10997
 
fi
10998
 
EOF
10999
 
    ;;
11000
 
  esac
11001
 
 
11002
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11003
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11004
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11005
 
  # is reportedly fixed, but why not run on old versions too?
11006
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11007
 
 
11008
 
  mv -f "$cfgfile" "$ofile" || \
11009
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11010
 
  chmod +x "$ofile"
11011
 
 
11012
 
else
11013
 
  # If there is no Makefile yet, we rely on a make rule to execute
11014
 
  # `config.status --recheck' to rerun these tests and create the
11015
 
  # libtool script then.
11016
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11017
 
  if test -f "$ltmain_in"; then
11018
 
    test -f Makefile && make "$ltmain"
11019
 
  fi
11020
 
fi
11021
 
 
11022
 
 
11023
 
ac_ext=c
11024
 
ac_cpp='$CPP $CPPFLAGS'
11025
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11028
 
 
11029
 
CC="$lt_save_CC"
11030
 
 
11031
 
 
11032
 
# Check whether --with-tags was given.
11033
 
if test "${with_tags+set}" = set; then
11034
 
  withval=$with_tags; tagnames="$withval"
11035
 
fi
11036
 
 
11037
 
 
11038
 
if test -f "$ltmain" && test -n "$tagnames"; then
11039
 
  if test ! -f "${ofile}"; then
11040
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11041
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11042
 
  fi
11043
 
 
11044
 
  if test -z "$LTCC"; then
11045
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11046
 
    if test -z "$LTCC"; then
11047
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11048
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11049
 
    else
11050
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11051
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11052
 
    fi
11053
 
  fi
11054
 
  if test -z "$LTCFLAGS"; then
11055
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11056
 
  fi
11057
 
 
11058
 
  # Extract list of available tagged configurations in $ofile.
11059
 
  # Note that this assumes the entire list is on one line.
11060
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11061
 
 
11062
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11063
 
  for tagname in $tagnames; do
11064
 
    IFS="$lt_save_ifs"
11065
 
    # Check whether tagname contains only valid characters
11066
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11067
 
    "") ;;
11068
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11069
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11070
 
   { (exit 1); exit 1; }; }
11071
 
        ;;
11072
 
    esac
11073
 
 
11074
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11075
 
    then
11076
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11077
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11078
 
   { (exit 1); exit 1; }; }
11079
 
    fi
11080
 
 
11081
 
    # Update the list of available tags.
11082
 
    if test -n "$tagname"; then
11083
 
      echo appending configuration tag \"$tagname\" to $ofile
11084
 
 
11085
 
      case $tagname in
11086
 
      CXX)
11087
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11088
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11089
 
            (test "X$CXX" != "Xg++"))) ; then
11090
 
          ac_ext=cpp
11091
 
ac_cpp='$CXXCPP $CPPFLAGS'
11092
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
archive_cmds_need_lc_CXX=no
11100
 
allow_undefined_flag_CXX=
11101
 
always_export_symbols_CXX=no
11102
 
archive_expsym_cmds_CXX=
11103
 
export_dynamic_flag_spec_CXX=
11104
 
hardcode_direct_CXX=no
11105
 
hardcode_libdir_flag_spec_CXX=
11106
 
hardcode_libdir_flag_spec_ld_CXX=
11107
 
hardcode_libdir_separator_CXX=
11108
 
hardcode_minus_L_CXX=no
11109
 
hardcode_shlibpath_var_CXX=unsupported
11110
 
hardcode_automatic_CXX=no
11111
 
module_cmds_CXX=
11112
 
module_expsym_cmds_CXX=
11113
 
link_all_deplibs_CXX=unknown
11114
 
old_archive_cmds_CXX=$old_archive_cmds
11115
 
no_undefined_flag_CXX=
11116
 
whole_archive_flag_spec_CXX=
11117
 
enable_shared_with_static_runtimes_CXX=no
11118
 
 
11119
 
# Dependencies to place before and after the object being linked:
11120
 
predep_objects_CXX=
11121
 
postdep_objects_CXX=
11122
 
predeps_CXX=
11123
 
postdeps_CXX=
11124
 
compiler_lib_search_path_CXX=
11125
 
compiler_lib_search_dirs_CXX=
11126
 
 
11127
 
# Source file extension for C++ test sources.
11128
 
ac_ext=cpp
11129
 
 
11130
 
# Object file extension for compiled C++ test sources.
11131
 
objext=o
11132
 
objext_CXX=$objext
11133
 
 
11134
 
# Code to be used in simple compile tests
11135
 
lt_simple_compile_test_code="int some_variable = 0;"
11136
 
 
11137
 
# Code to be used in simple link tests
11138
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11139
 
 
11140
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11141
 
 
11142
 
# If no C compiler was specified, use CC.
11143
 
LTCC=${LTCC-"$CC"}
11144
 
 
11145
 
# If no C compiler flags were specified, use CFLAGS.
11146
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11147
 
 
11148
 
# Allow CC to be a program name with arguments.
11149
 
compiler=$CC
11150
 
 
11151
 
 
11152
 
# save warnings/boilerplate of simple test code
11153
 
ac_outfile=conftest.$ac_objext
11154
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11155
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11156
 
_lt_compiler_boilerplate=`cat conftest.err`
11157
 
$rm conftest*
11158
 
 
11159
 
ac_outfile=conftest.$ac_objext
11160
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11161
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11162
 
_lt_linker_boilerplate=`cat conftest.err`
11163
 
$rm -r conftest*
11164
 
 
11165
 
 
11166
 
# Allow CC to be a program name with arguments.
11167
 
lt_save_CC=$CC
11168
 
lt_save_LD=$LD
11169
 
lt_save_GCC=$GCC
11170
 
GCC=$GXX
11171
 
lt_save_with_gnu_ld=$with_gnu_ld
11172
 
lt_save_path_LD=$lt_cv_path_LD
11173
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11174
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11175
 
else
11176
 
  $as_unset lt_cv_prog_gnu_ld
11177
 
fi
11178
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11179
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11180
 
else
11181
 
  $as_unset lt_cv_path_LD
11182
 
fi
11183
 
test -z "${LDCXX+set}" || LD=$LDCXX
11184
 
CC=${CXX-"c++"}
11185
 
compiler=$CC
11186
 
compiler_CXX=$CC
11187
 
for cc_temp in $compiler""; do
11188
 
  case $cc_temp in
11189
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11190
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11191
 
    \-*) ;;
11192
 
    *) break;;
11193
 
  esac
11194
 
done
11195
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11196
 
 
11197
 
 
11198
 
# We don't want -fno-exception wen compiling C++ code, so set the
11199
 
# no_builtin_flag separately
11200
 
if test "$GXX" = yes; then
11201
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11202
 
else
11203
 
  lt_prog_compiler_no_builtin_flag_CXX=
11204
 
fi
11205
 
 
11206
 
if test "$GXX" = yes; then
11207
 
  # Set up default GNU C++ configuration
11208
 
 
11209
 
 
11210
 
# Check whether --with-gnu-ld was given.
11211
 
if test "${with_gnu_ld+set}" = set; then
11212
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11213
 
else
11214
 
  with_gnu_ld=no
11215
 
fi
11216
 
 
11217
 
ac_prog=ld
11218
 
if test "$GCC" = yes; then
11219
 
  # Check if gcc -print-prog-name=ld gives a path.
11220
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11221
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11222
 
  case $host in
11223
 
  *-*-mingw*)
11224
 
    # gcc leaves a trailing carriage return which upsets mingw
11225
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11226
 
  *)
11227
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11228
 
  esac
11229
 
  case $ac_prog in
11230
 
    # Accept absolute paths.
11231
 
    [\\/]* | ?:[\\/]*)
11232
 
      re_direlt='/[^/][^/]*/\.\./'
11233
 
      # Canonicalize the pathname of ld
11234
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11235
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11236
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11237
 
      done
11238
 
      test -z "$LD" && LD="$ac_prog"
11239
 
      ;;
11240
 
  "")
11241
 
    # If it fails, then pretend we aren't using GCC.
11242
 
    ac_prog=ld
11243
 
    ;;
11244
 
  *)
11245
 
    # If it is relative, then search for the first ld in PATH.
11246
 
    with_gnu_ld=unknown
11247
 
    ;;
11248
 
  esac
11249
 
elif test "$with_gnu_ld" = yes; then
11250
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11251
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11252
 
else
11253
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11254
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11255
 
fi
11256
 
if test "${lt_cv_path_LD+set}" = set; then
11257
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11258
 
else
11259
 
  if test -z "$LD"; then
11260
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11261
 
  for ac_dir in $PATH; do
11262
 
    IFS="$lt_save_ifs"
11263
 
    test -z "$ac_dir" && ac_dir=.
11264
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11265
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11266
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11267
 
      # but apparently some variants of GNU ld only accept -v.
11268
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11269
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11270
 
      *GNU* | *'with BFD'*)
11271
 
        test "$with_gnu_ld" != no && break
11272
 
        ;;
11273
 
      *)
11274
 
        test "$with_gnu_ld" != yes && break
11275
 
        ;;
11276
 
      esac
11277
 
    fi
11278
 
  done
11279
 
  IFS="$lt_save_ifs"
11280
 
else
11281
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11282
 
fi
11283
 
fi
11284
 
 
11285
 
LD="$lt_cv_path_LD"
11286
 
if test -n "$LD"; then
11287
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11288
 
echo "${ECHO_T}$LD" >&6; }
11289
 
else
11290
 
  { echo "$as_me:$LINENO: result: no" >&5
11291
 
echo "${ECHO_T}no" >&6; }
11292
 
fi
11293
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11294
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11295
 
   { (exit 1); exit 1; }; }
11296
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11297
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11298
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11300
 
else
11301
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11302
 
case `$LD -v 2>&1 </dev/null` in
11303
 
*GNU* | *'with BFD'*)
11304
 
  lt_cv_prog_gnu_ld=yes
11305
 
  ;;
11306
 
*)
11307
 
  lt_cv_prog_gnu_ld=no
11308
 
  ;;
11309
 
esac
11310
 
fi
11311
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11312
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11313
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11314
 
 
11315
 
 
11316
 
 
11317
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11318
 
  # archiving commands below assume that GNU ld is being used.
11319
 
  if test "$with_gnu_ld" = yes; then
11320
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11321
 
    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'
11322
 
 
11323
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11324
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11325
 
 
11326
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11327
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11328
 
    #     investigate it a little bit more. (MM)
11329
 
    wlarc='${wl}'
11330
 
 
11331
 
    # ancient GNU ld didn't support --whole-archive et. al.
11332
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11333
 
        grep 'no-whole-archive' > /dev/null; then
11334
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11335
 
    else
11336
 
      whole_archive_flag_spec_CXX=
11337
 
    fi
11338
 
  else
11339
 
    with_gnu_ld=no
11340
 
    wlarc=
11341
 
 
11342
 
    # A generic and very simple default shared library creation
11343
 
    # command for GNU C++ for the case where it uses the native
11344
 
    # linker, instead of GNU ld.  If possible, this setting should
11345
 
    # overridden to take advantage of the native linker features on
11346
 
    # the platform it is being used on.
11347
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11348
 
  fi
11349
 
 
11350
 
  # Commands to make compiler produce verbose output that lists
11351
 
  # what "hidden" libraries, object files and flags are used when
11352
 
  # linking a shared library.
11353
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11354
 
 
11355
 
else
11356
 
  GXX=no
11357
 
  with_gnu_ld=no
11358
 
  wlarc=
11359
 
fi
11360
 
 
11361
 
# PORTME: fill in a description of your system's C++ link characteristics
11362
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11363
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11364
 
ld_shlibs_CXX=yes
11365
 
case $host_os in
11366
 
  aix3*)
11367
 
    # FIXME: insert proper C++ library support
11368
 
    ld_shlibs_CXX=no
11369
 
    ;;
11370
 
  aix[4-9]*)
11371
 
    if test "$host_cpu" = ia64; then
11372
 
      # On IA64, the linker does run time linking by default, so we don't
11373
 
      # have to do anything special.
11374
 
      aix_use_runtimelinking=no
11375
 
      exp_sym_flag='-Bexport'
11376
 
      no_entry_flag=""
11377
 
    else
11378
 
      aix_use_runtimelinking=no
11379
 
 
11380
 
      # Test if we are trying to use run time linking or normal
11381
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11382
 
      # need to do runtime linking.
11383
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11384
 
        for ld_flag in $LDFLAGS; do
11385
 
          case $ld_flag in
11386
 
          *-brtl*)
11387
 
            aix_use_runtimelinking=yes
11388
 
            break
11389
 
            ;;
11390
 
          esac
11391
 
        done
11392
 
        ;;
11393
 
      esac
11394
 
 
11395
 
      exp_sym_flag='-bexport'
11396
 
      no_entry_flag='-bnoentry'
11397
 
    fi
11398
 
 
11399
 
    # When large executables or shared objects are built, AIX ld can
11400
 
    # have problems creating the table of contents.  If linking a library
11401
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11402
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11403
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11404
 
 
11405
 
    archive_cmds_CXX=''
11406
 
    hardcode_direct_CXX=yes
11407
 
    hardcode_libdir_separator_CXX=':'
11408
 
    link_all_deplibs_CXX=yes
11409
 
 
11410
 
    if test "$GXX" = yes; then
11411
 
      case $host_os in aix4.[012]|aix4.[012].*)
11412
 
      # We only want to do this on AIX 4.2 and lower, the check
11413
 
      # below for broken collect2 doesn't work under 4.3+
11414
 
        collect2name=`${CC} -print-prog-name=collect2`
11415
 
        if test -f "$collect2name" && \
11416
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11417
 
        then
11418
 
          # We have reworked collect2
11419
 
          :
11420
 
        else
11421
 
          # We have old collect2
11422
 
          hardcode_direct_CXX=unsupported
11423
 
          # It fails to find uninstalled libraries when the uninstalled
11424
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11425
 
          # to unsupported forces relinking
11426
 
          hardcode_minus_L_CXX=yes
11427
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11428
 
          hardcode_libdir_separator_CXX=
11429
 
        fi
11430
 
        ;;
11431
 
      esac
11432
 
      shared_flag='-shared'
11433
 
      if test "$aix_use_runtimelinking" = yes; then
11434
 
        shared_flag="$shared_flag "'${wl}-G'
11435
 
      fi
11436
 
    else
11437
 
      # not using gcc
11438
 
      if test "$host_cpu" = ia64; then
11439
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11440
 
        # chokes on -Wl,-G. The following line is correct:
11441
 
        shared_flag='-G'
11442
 
      else
11443
 
        if test "$aix_use_runtimelinking" = yes; then
11444
 
          shared_flag='${wl}-G'
11445
 
        else
11446
 
          shared_flag='${wl}-bM:SRE'
11447
 
        fi
11448
 
      fi
11449
 
    fi
11450
 
 
11451
 
    # It seems that -bexpall does not export symbols beginning with
11452
 
    # underscore (_), so it is better to generate a list of symbols to export.
11453
 
    always_export_symbols_CXX=yes
11454
 
    if test "$aix_use_runtimelinking" = yes; then
11455
 
      # Warning - without using the other runtime loading flags (-brtl),
11456
 
      # -berok will link without error, but may produce a broken library.
11457
 
      allow_undefined_flag_CXX='-berok'
11458
 
      # Determine the default libpath from the value encoded in an empty executable.
11459
 
      cat >conftest.$ac_ext <<_ACEOF
11460
 
/* confdefs.h.  */
11461
 
_ACEOF
11462
 
cat confdefs.h >>conftest.$ac_ext
11463
 
cat >>conftest.$ac_ext <<_ACEOF
11464
 
/* end confdefs.h.  */
11465
 
 
11466
 
int
11467
 
main ()
11468
 
{
11469
 
 
11470
 
  ;
11471
 
  return 0;
11472
 
}
11473
 
_ACEOF
11474
 
rm -f conftest.$ac_objext conftest$ac_exeext
11475
 
if { (ac_try="$ac_link"
11476
 
case "(($ac_try" in
11477
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478
 
  *) ac_try_echo=$ac_try;;
11479
 
esac
11480
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481
 
  (eval "$ac_link") 2>conftest.er1
11482
 
  ac_status=$?
11483
 
  grep -v '^ *+' conftest.er1 >conftest.err
11484
 
  rm -f conftest.er1
11485
 
  cat conftest.err >&5
11486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
 
  (exit $ac_status); } && {
11488
 
         test -z "$ac_cxx_werror_flag" ||
11489
 
         test ! -s conftest.err
11490
 
       } && test -s conftest$ac_exeext &&
11491
 
       $as_test_x conftest$ac_exeext; then
11492
 
 
11493
 
lt_aix_libpath_sed='
11494
 
    /Import File Strings/,/^$/ {
11495
 
        /^0/ {
11496
 
            s/^0  *\(.*\)$/\1/
11497
 
            p
11498
 
        }
11499
 
    }'
11500
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11501
 
# Check for a 64-bit object if we didn't find anything.
11502
 
if test -z "$aix_libpath"; then
11503
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11504
 
fi
11505
 
else
11506
 
  echo "$as_me: failed program was:" >&5
11507
 
sed 's/^/| /' conftest.$ac_ext >&5
11508
 
 
11509
 
 
11510
 
fi
11511
 
 
11512
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11513
 
      conftest$ac_exeext conftest.$ac_ext
11514
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11515
 
 
11516
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11517
 
 
11518
 
      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"
11519
 
     else
11520
 
      if test "$host_cpu" = ia64; then
11521
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11522
 
        allow_undefined_flag_CXX="-z nodefs"
11523
 
        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"
11524
 
      else
11525
 
        # Determine the default libpath from the value encoded in an empty executable.
11526
 
        cat >conftest.$ac_ext <<_ACEOF
11527
 
/* confdefs.h.  */
11528
 
_ACEOF
11529
 
cat confdefs.h >>conftest.$ac_ext
11530
 
cat >>conftest.$ac_ext <<_ACEOF
11531
 
/* end confdefs.h.  */
11532
 
 
11533
 
int
11534
 
main ()
11535
 
{
11536
 
 
11537
 
  ;
11538
 
  return 0;
11539
 
}
11540
 
_ACEOF
11541
 
rm -f conftest.$ac_objext conftest$ac_exeext
11542
 
if { (ac_try="$ac_link"
11543
 
case "(($ac_try" in
11544
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545
 
  *) ac_try_echo=$ac_try;;
11546
 
esac
11547
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548
 
  (eval "$ac_link") 2>conftest.er1
11549
 
  ac_status=$?
11550
 
  grep -v '^ *+' conftest.er1 >conftest.err
11551
 
  rm -f conftest.er1
11552
 
  cat conftest.err >&5
11553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554
 
  (exit $ac_status); } && {
11555
 
         test -z "$ac_cxx_werror_flag" ||
11556
 
         test ! -s conftest.err
11557
 
       } && test -s conftest$ac_exeext &&
11558
 
       $as_test_x conftest$ac_exeext; then
11559
 
 
11560
 
lt_aix_libpath_sed='
11561
 
    /Import File Strings/,/^$/ {
11562
 
        /^0/ {
11563
 
            s/^0  *\(.*\)$/\1/
11564
 
            p
11565
 
        }
11566
 
    }'
11567
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568
 
# Check for a 64-bit object if we didn't find anything.
11569
 
if test -z "$aix_libpath"; then
11570
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11571
 
fi
11572
 
else
11573
 
  echo "$as_me: failed program was:" >&5
11574
 
sed 's/^/| /' conftest.$ac_ext >&5
11575
 
 
11576
 
 
11577
 
fi
11578
 
 
11579
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11580
 
      conftest$ac_exeext conftest.$ac_ext
11581
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11582
 
 
11583
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11584
 
        # Warning - without using the other run time loading flags,
11585
 
        # -berok will link without error, but may produce a broken library.
11586
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11587
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11588
 
        # Exported symbols can be pulled into shared objects from archives
11589
 
        whole_archive_flag_spec_CXX='$convenience'
11590
 
        archive_cmds_need_lc_CXX=yes
11591
 
        # This is similar to how AIX traditionally builds its shared libraries.
11592
 
        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'
11593
 
      fi
11594
 
    fi
11595
 
    ;;
11596
 
 
11597
 
  beos*)
11598
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11599
 
      allow_undefined_flag_CXX=unsupported
11600
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11601
 
      # support --undefined.  This deserves some investigation.  FIXME
11602
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603
 
    else
11604
 
      ld_shlibs_CXX=no
11605
 
    fi
11606
 
    ;;
11607
 
 
11608
 
  chorus*)
11609
 
    case $cc_basename in
11610
 
      *)
11611
 
        # FIXME: insert proper C++ library support
11612
 
        ld_shlibs_CXX=no
11613
 
        ;;
11614
 
    esac
11615
 
    ;;
11616
 
 
11617
 
  cygwin* | mingw* | pw32*)
11618
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11619
 
    # as there is no search path for DLLs.
11620
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11621
 
    allow_undefined_flag_CXX=unsupported
11622
 
    always_export_symbols_CXX=no
11623
 
    enable_shared_with_static_runtimes_CXX=yes
11624
 
 
11625
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11626
 
      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'
11627
 
      # If the export-symbols file already is a .def file (1st line
11628
 
      # is EXPORTS), use it as is; otherwise, prepend...
11629
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11630
 
        cp $export_symbols $output_objdir/$soname.def;
11631
 
      else
11632
 
        echo EXPORTS > $output_objdir/$soname.def;
11633
 
        cat $export_symbols >> $output_objdir/$soname.def;
11634
 
      fi~
11635
 
      $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'
11636
 
    else
11637
 
      ld_shlibs_CXX=no
11638
 
    fi
11639
 
  ;;
11640
 
      darwin* | rhapsody*)
11641
 
      archive_cmds_need_lc_CXX=no
11642
 
      hardcode_direct_CXX=no
11643
 
      hardcode_automatic_CXX=yes
11644
 
      hardcode_shlibpath_var_CXX=unsupported
11645
 
      whole_archive_flag_spec_CXX=''
11646
 
      link_all_deplibs_CXX=yes
11647
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11648
 
      if test "$GXX" = yes ; then
11649
 
      output_verbose_link_cmd='echo'
11650
 
      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}"
11651
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11652
 
      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}"
11653
 
      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}"
11654
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11655
 
        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}"
11656
 
        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}"
11657
 
      fi
11658
 
      else
11659
 
      case $cc_basename in
11660
 
        xlc*)
11661
 
         output_verbose_link_cmd='echo'
11662
 
          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'
11663
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11664
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11665
 
          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}'
11666
 
          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}'
11667
 
          ;;
11668
 
       *)
11669
 
         ld_shlibs_CXX=no
11670
 
          ;;
11671
 
      esac
11672
 
      fi
11673
 
        ;;
11674
 
 
11675
 
  dgux*)
11676
 
    case $cc_basename in
11677
 
      ec++*)
11678
 
        # FIXME: insert proper C++ library support
11679
 
        ld_shlibs_CXX=no
11680
 
        ;;
11681
 
      ghcx*)
11682
 
        # Green Hills C++ Compiler
11683
 
        # FIXME: insert proper C++ library support
11684
 
        ld_shlibs_CXX=no
11685
 
        ;;
11686
 
      *)
11687
 
        # FIXME: insert proper C++ library support
11688
 
        ld_shlibs_CXX=no
11689
 
        ;;
11690
 
    esac
11691
 
    ;;
11692
 
  freebsd[12]*)
11693
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11694
 
    ld_shlibs_CXX=no
11695
 
    ;;
11696
 
  freebsd-elf*)
11697
 
    archive_cmds_need_lc_CXX=no
11698
 
    ;;
11699
 
  freebsd* | dragonfly*)
11700
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11701
 
    # conventions
11702
 
    ld_shlibs_CXX=yes
11703
 
    ;;
11704
 
  gnu*)
11705
 
    ;;
11706
 
  hpux9*)
11707
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11708
 
    hardcode_libdir_separator_CXX=:
11709
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11710
 
    hardcode_direct_CXX=yes
11711
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11712
 
                                # but as the default
11713
 
                                # location of the library.
11714
 
 
11715
 
    case $cc_basename in
11716
 
    CC*)
11717
 
      # FIXME: insert proper C++ library support
11718
 
      ld_shlibs_CXX=no
11719
 
      ;;
11720
 
    aCC*)
11721
 
      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'
11722
 
      # Commands to make compiler produce verbose output that lists
11723
 
      # what "hidden" libraries, object files and flags are used when
11724
 
      # linking a shared library.
11725
 
      #
11726
 
      # There doesn't appear to be a way to prevent this compiler from
11727
 
      # explicitly linking system object files so we need to strip them
11728
 
      # from the output so that they don't get included in the library
11729
 
      # dependencies.
11730
 
      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'
11731
 
      ;;
11732
 
    *)
11733
 
      if test "$GXX" = yes; then
11734
 
        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'
11735
 
      else
11736
 
        # FIXME: insert proper C++ library support
11737
 
        ld_shlibs_CXX=no
11738
 
      fi
11739
 
      ;;
11740
 
    esac
11741
 
    ;;
11742
 
  hpux10*|hpux11*)
11743
 
    if test $with_gnu_ld = no; then
11744
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11745
 
      hardcode_libdir_separator_CXX=:
11746
 
 
11747
 
      case $host_cpu in
11748
 
      hppa*64*|ia64*) ;;
11749
 
      *)
11750
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11751
 
        ;;
11752
 
      esac
11753
 
    fi
11754
 
    case $host_cpu in
11755
 
    hppa*64*|ia64*)
11756
 
      hardcode_direct_CXX=no
11757
 
      hardcode_shlibpath_var_CXX=no
11758
 
      ;;
11759
 
    *)
11760
 
      hardcode_direct_CXX=yes
11761
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11762
 
                                              # but as the default
11763
 
                                              # location of the library.
11764
 
      ;;
11765
 
    esac
11766
 
 
11767
 
    case $cc_basename in
11768
 
      CC*)
11769
 
        # FIXME: insert proper C++ library support
11770
 
        ld_shlibs_CXX=no
11771
 
        ;;
11772
 
      aCC*)
11773
 
        case $host_cpu in
11774
 
        hppa*64*)
11775
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11776
 
          ;;
11777
 
        ia64*)
11778
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779
 
          ;;
11780
 
        *)
11781
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782
 
          ;;
11783
 
        esac
11784
 
        # Commands to make compiler produce verbose output that lists
11785
 
        # what "hidden" libraries, object files and flags are used when
11786
 
        # linking a shared library.
11787
 
        #
11788
 
        # There doesn't appear to be a way to prevent this compiler from
11789
 
        # explicitly linking system object files so we need to strip them
11790
 
        # from the output so that they don't get included in the library
11791
 
        # dependencies.
11792
 
        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'
11793
 
        ;;
11794
 
      *)
11795
 
        if test "$GXX" = yes; then
11796
 
          if test $with_gnu_ld = no; then
11797
 
            case $host_cpu in
11798
 
            hppa*64*)
11799
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11800
 
              ;;
11801
 
            ia64*)
11802
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11803
 
              ;;
11804
 
            *)
11805
 
              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'
11806
 
              ;;
11807
 
            esac
11808
 
          fi
11809
 
        else
11810
 
          # FIXME: insert proper C++ library support
11811
 
          ld_shlibs_CXX=no
11812
 
        fi
11813
 
        ;;
11814
 
    esac
11815
 
    ;;
11816
 
  interix[3-9]*)
11817
 
    hardcode_direct_CXX=no
11818
 
    hardcode_shlibpath_var_CXX=no
11819
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11820
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11821
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11822
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11823
 
    # default) and relocated if they conflict, which is a slow very memory
11824
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11825
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11826
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11827
 
    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'
11828
 
    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'
11829
 
    ;;
11830
 
  irix5* | irix6*)
11831
 
    case $cc_basename in
11832
 
      CC*)
11833
 
        # SGI C++
11834
 
        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'
11835
 
 
11836
 
        # Archives containing C++ object files must be created using
11837
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11838
 
        # necessary to make sure instantiated templates are included
11839
 
        # in the archive.
11840
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11841
 
        ;;
11842
 
      *)
11843
 
        if test "$GXX" = yes; then
11844
 
          if test "$with_gnu_ld" = no; then
11845
 
            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'
11846
 
          else
11847
 
            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'
11848
 
          fi
11849
 
        fi
11850
 
        link_all_deplibs_CXX=yes
11851
 
        ;;
11852
 
    esac
11853
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854
 
    hardcode_libdir_separator_CXX=:
11855
 
    ;;
11856
 
  linux* | k*bsd*-gnu)
11857
 
    case $cc_basename in
11858
 
      KCC*)
11859
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11860
 
 
11861
 
        # KCC will only create a shared library if the output file
11862
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11863
 
        # to its proper name (with version) after linking.
11864
 
        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'
11865
 
        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'
11866
 
        # Commands to make compiler produce verbose output that lists
11867
 
        # what "hidden" libraries, object files and flags are used when
11868
 
        # linking a shared library.
11869
 
        #
11870
 
        # There doesn't appear to be a way to prevent this compiler from
11871
 
        # explicitly linking system object files so we need to strip them
11872
 
        # from the output so that they don't get included in the library
11873
 
        # dependencies.
11874
 
        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'
11875
 
 
11876
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11877
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11878
 
 
11879
 
        # Archives containing C++ object files must be created using
11880
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11881
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11882
 
        ;;
11883
 
      icpc*)
11884
 
        # Intel C++
11885
 
        with_gnu_ld=yes
11886
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11887
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11888
 
        # earlier do not add the objects themselves.
11889
 
        case `$CC -V 2>&1` in
11890
 
        *"Version 7."*)
11891
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11892
 
          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'
11893
 
          ;;
11894
 
        *)  # Version 8.0 or newer
11895
 
          tmp_idyn=
11896
 
          case $host_cpu in
11897
 
            ia64*) tmp_idyn=' -i_dynamic';;
11898
 
          esac
11899
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900
 
          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'
11901
 
          ;;
11902
 
        esac
11903
 
        archive_cmds_need_lc_CXX=no
11904
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11905
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11906
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11907
 
        ;;
11908
 
      pgCC* | pgcpp*)
11909
 
        # Portland Group C++ compiler
11910
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11911
 
        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'
11912
 
 
11913
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11914
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11915
 
        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'
11916
 
        ;;
11917
 
      cxx*)
11918
 
        # Compaq C++
11919
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11920
 
        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'
11921
 
 
11922
 
        runpath_var=LD_RUN_PATH
11923
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11924
 
        hardcode_libdir_separator_CXX=:
11925
 
 
11926
 
        # Commands to make compiler produce verbose output that lists
11927
 
        # what "hidden" libraries, object files and flags are used when
11928
 
        # linking a shared library.
11929
 
        #
11930
 
        # There doesn't appear to be a way to prevent this compiler from
11931
 
        # explicitly linking system object files so we need to strip them
11932
 
        # from the output so that they don't get included in the library
11933
 
        # dependencies.
11934
 
        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'
11935
 
        ;;
11936
 
      *)
11937
 
        case `$CC -V 2>&1 | sed 5q` in
11938
 
        *Sun\ C*)
11939
 
          # Sun C++ 5.9
11940
 
          no_undefined_flag_CXX=' -zdefs'
11941
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942
 
          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'
11943
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
11944
 
          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'
11945
 
 
11946
 
          # Not sure whether something based on
11947
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11948
 
          # would be better.
11949
 
          output_verbose_link_cmd='echo'
11950
 
 
11951
 
          # Archives containing C++ object files must be created using
11952
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11953
 
          # necessary to make sure instantiated templates are included
11954
 
          # in the archive.
11955
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11956
 
          ;;
11957
 
        esac
11958
 
        ;;
11959
 
    esac
11960
 
    ;;
11961
 
  lynxos*)
11962
 
    # FIXME: insert proper C++ library support
11963
 
    ld_shlibs_CXX=no
11964
 
    ;;
11965
 
  m88k*)
11966
 
    # FIXME: insert proper C++ library support
11967
 
    ld_shlibs_CXX=no
11968
 
    ;;
11969
 
  mvs*)
11970
 
    case $cc_basename in
11971
 
      cxx*)
11972
 
        # FIXME: insert proper C++ library support
11973
 
        ld_shlibs_CXX=no
11974
 
        ;;
11975
 
      *)
11976
 
        # FIXME: insert proper C++ library support
11977
 
        ld_shlibs_CXX=no
11978
 
        ;;
11979
 
    esac
11980
 
    ;;
11981
 
  netbsd* | netbsdelf*-gnu)
11982
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11983
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11984
 
      wlarc=
11985
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11986
 
      hardcode_direct_CXX=yes
11987
 
      hardcode_shlibpath_var_CXX=no
11988
 
    fi
11989
 
    # Workaround some broken pre-1.5 toolchains
11990
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11991
 
    ;;
11992
 
  openbsd2*)
11993
 
    # C++ shared libraries are fairly broken
11994
 
    ld_shlibs_CXX=no
11995
 
    ;;
11996
 
  openbsd*)
11997
 
    if test -f /usr/libexec/ld.so; then
11998
 
      hardcode_direct_CXX=yes
11999
 
      hardcode_shlibpath_var_CXX=no
12000
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12001
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12003
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12004
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12005
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12006
 
      fi
12007
 
      output_verbose_link_cmd='echo'
12008
 
    else
12009
 
      ld_shlibs_CXX=no
12010
 
    fi
12011
 
    ;;
12012
 
  osf3*)
12013
 
    case $cc_basename in
12014
 
      KCC*)
12015
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12016
 
 
12017
 
        # KCC will only create a shared library if the output file
12018
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12019
 
        # to its proper name (with version) after linking.
12020
 
        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'
12021
 
 
12022
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023
 
        hardcode_libdir_separator_CXX=:
12024
 
 
12025
 
        # Archives containing C++ object files must be created using
12026
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12027
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12028
 
 
12029
 
        ;;
12030
 
      RCC*)
12031
 
        # Rational C++ 2.4.1
12032
 
        # FIXME: insert proper C++ library support
12033
 
        ld_shlibs_CXX=no
12034
 
        ;;
12035
 
      cxx*)
12036
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12037
 
        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'
12038
 
 
12039
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12040
 
        hardcode_libdir_separator_CXX=:
12041
 
 
12042
 
        # Commands to make compiler produce verbose output that lists
12043
 
        # what "hidden" libraries, object files and flags are used when
12044
 
        # linking a shared library.
12045
 
        #
12046
 
        # There doesn't appear to be a way to prevent this compiler from
12047
 
        # explicitly linking system object files so we need to strip them
12048
 
        # from the output so that they don't get included in the library
12049
 
        # dependencies.
12050
 
        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'
12051
 
        ;;
12052
 
      *)
12053
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12054
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12055
 
          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'
12056
 
 
12057
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12058
 
          hardcode_libdir_separator_CXX=:
12059
 
 
12060
 
          # Commands to make compiler produce verbose output that lists
12061
 
          # what "hidden" libraries, object files and flags are used when
12062
 
          # linking a shared library.
12063
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12064
 
 
12065
 
        else
12066
 
          # FIXME: insert proper C++ library support
12067
 
          ld_shlibs_CXX=no
12068
 
        fi
12069
 
        ;;
12070
 
    esac
12071
 
    ;;
12072
 
  osf4* | osf5*)
12073
 
    case $cc_basename in
12074
 
      KCC*)
12075
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12076
 
 
12077
 
        # KCC will only create a shared library if the output file
12078
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12079
 
        # to its proper name (with version) after linking.
12080
 
        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'
12081
 
 
12082
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12083
 
        hardcode_libdir_separator_CXX=:
12084
 
 
12085
 
        # Archives containing C++ object files must be created using
12086
 
        # the KAI C++ compiler.
12087
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12088
 
        ;;
12089
 
      RCC*)
12090
 
        # Rational C++ 2.4.1
12091
 
        # FIXME: insert proper C++ library support
12092
 
        ld_shlibs_CXX=no
12093
 
        ;;
12094
 
      cxx*)
12095
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12096
 
        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'
12097
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12098
 
          echo "-hidden">> $lib.exp~
12099
 
          $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~
12100
 
          $rm $lib.exp'
12101
 
 
12102
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103
 
        hardcode_libdir_separator_CXX=:
12104
 
 
12105
 
        # Commands to make compiler produce verbose output that lists
12106
 
        # what "hidden" libraries, object files and flags are used when
12107
 
        # linking a shared library.
12108
 
        #
12109
 
        # There doesn't appear to be a way to prevent this compiler from
12110
 
        # explicitly linking system object files so we need to strip them
12111
 
        # from the output so that they don't get included in the library
12112
 
        # dependencies.
12113
 
        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'
12114
 
        ;;
12115
 
      *)
12116
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12118
 
         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'
12119
 
 
12120
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12121
 
          hardcode_libdir_separator_CXX=:
12122
 
 
12123
 
          # Commands to make compiler produce verbose output that lists
12124
 
          # what "hidden" libraries, object files and flags are used when
12125
 
          # linking a shared library.
12126
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12127
 
 
12128
 
        else
12129
 
          # FIXME: insert proper C++ library support
12130
 
          ld_shlibs_CXX=no
12131
 
        fi
12132
 
        ;;
12133
 
    esac
12134
 
    ;;
12135
 
  psos*)
12136
 
    # FIXME: insert proper C++ library support
12137
 
    ld_shlibs_CXX=no
12138
 
    ;;
12139
 
  sunos4*)
12140
 
    case $cc_basename in
12141
 
      CC*)
12142
 
        # Sun C++ 4.x
12143
 
        # FIXME: insert proper C++ library support
12144
 
        ld_shlibs_CXX=no
12145
 
        ;;
12146
 
      lcc*)
12147
 
        # Lucid
12148
 
        # FIXME: insert proper C++ library support
12149
 
        ld_shlibs_CXX=no
12150
 
        ;;
12151
 
      *)
12152
 
        # FIXME: insert proper C++ library support
12153
 
        ld_shlibs_CXX=no
12154
 
        ;;
12155
 
    esac
12156
 
    ;;
12157
 
  solaris*)
12158
 
    case $cc_basename in
12159
 
      CC*)
12160
 
        # Sun C++ 4.2, 5.x and Centerline C++
12161
 
        archive_cmds_need_lc_CXX=yes
12162
 
        no_undefined_flag_CXX=' -zdefs'
12163
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12164
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12165
 
        $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'
12166
 
 
12167
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12168
 
        hardcode_shlibpath_var_CXX=no
12169
 
        case $host_os in
12170
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12171
 
          *)
12172
 
            # The compiler driver will combine and reorder linker options,
12173
 
            # but understands `-z linker_flag'.
12174
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12175
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12176
 
            ;;
12177
 
        esac
12178
 
        link_all_deplibs_CXX=yes
12179
 
 
12180
 
        output_verbose_link_cmd='echo'
12181
 
 
12182
 
        # Archives containing C++ object files must be created using
12183
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12184
 
        # necessary to make sure instantiated templates are included
12185
 
        # in the archive.
12186
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12187
 
        ;;
12188
 
      gcx*)
12189
 
        # Green Hills C++ Compiler
12190
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12191
 
 
12192
 
        # The C++ compiler must be used to create the archive.
12193
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12194
 
        ;;
12195
 
      *)
12196
 
        # GNU C++ compiler with Solaris linker
12197
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12198
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12199
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12200
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12201
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12202
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12203
 
 
12204
 
            # Commands to make compiler produce verbose output that lists
12205
 
            # what "hidden" libraries, object files and flags are used when
12206
 
            # linking a shared library.
12207
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12208
 
          else
12209
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12210
 
            # platform.
12211
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214
 
 
12215
 
            # Commands to make compiler produce verbose output that lists
12216
 
            # what "hidden" libraries, object files and flags are used when
12217
 
            # linking a shared library.
12218
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219
 
          fi
12220
 
 
12221
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12222
 
          case $host_os in
12223
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12224
 
          *)
12225
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12226
 
            ;;
12227
 
          esac
12228
 
        fi
12229
 
        ;;
12230
 
    esac
12231
 
    ;;
12232
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12233
 
    no_undefined_flag_CXX='${wl}-z,text'
12234
 
    archive_cmds_need_lc_CXX=no
12235
 
    hardcode_shlibpath_var_CXX=no
12236
 
    runpath_var='LD_RUN_PATH'
12237
 
 
12238
 
    case $cc_basename in
12239
 
      CC*)
12240
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12242
 
        ;;
12243
 
      *)
12244
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12245
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12246
 
        ;;
12247
 
    esac
12248
 
    ;;
12249
 
  sysv5* | sco3.2v5* | sco5v6*)
12250
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12251
 
    # link with -lc, and that would cause any symbols used from libc to
12252
 
    # always be unresolved, which means just about no library would
12253
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12254
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12255
 
    # as -z defs.
12256
 
    # For security reasons, it is highly recommended that you always
12257
 
    # use absolute paths for naming shared libraries, and exclude the
12258
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12259
 
    # requires that you compile everything twice, which is a pain.
12260
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12261
 
    # non-empty value in the environment.  Most likely only useful for
12262
 
    # creating official distributions of packages.
12263
 
    # This is a hack until libtool officially supports absolute path
12264
 
    # names for shared libraries.
12265
 
    no_undefined_flag_CXX='${wl}-z,text'
12266
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12267
 
    archive_cmds_need_lc_CXX=no
12268
 
    hardcode_shlibpath_var_CXX=no
12269
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12270
 
    hardcode_libdir_separator_CXX=':'
12271
 
    link_all_deplibs_CXX=yes
12272
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12273
 
    runpath_var='LD_RUN_PATH'
12274
 
 
12275
 
    case $cc_basename in
12276
 
      CC*)
12277
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12278
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12279
 
        ;;
12280
 
      *)
12281
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12283
 
        ;;
12284
 
    esac
12285
 
    ;;
12286
 
  tandem*)
12287
 
    case $cc_basename in
12288
 
      NCC*)
12289
 
        # NonStop-UX NCC 3.20
12290
 
        # FIXME: insert proper C++ library support
12291
 
        ld_shlibs_CXX=no
12292
 
        ;;
12293
 
      *)
12294
 
        # FIXME: insert proper C++ library support
12295
 
        ld_shlibs_CXX=no
12296
 
        ;;
12297
 
    esac
12298
 
    ;;
12299
 
  vxworks*)
12300
 
    # FIXME: insert proper C++ library support
12301
 
    ld_shlibs_CXX=no
12302
 
    ;;
12303
 
  *)
12304
 
    # FIXME: insert proper C++ library support
12305
 
    ld_shlibs_CXX=no
12306
 
    ;;
12307
 
esac
12308
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12309
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12310
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12311
 
 
12312
 
GCC_CXX="$GXX"
12313
 
LD_CXX="$LD"
12314
 
 
12315
 
cat > conftest.$ac_ext <<EOF
12316
 
class Foo
12317
 
{
12318
 
public:
12319
 
  Foo (void) { a = 0; }
12320
 
private:
12321
 
  int a;
12322
 
};
12323
 
EOF
12324
 
 
12325
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326
 
  (eval $ac_compile) 2>&5
12327
 
  ac_status=$?
12328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329
 
  (exit $ac_status); }; then
12330
 
  # Parse the compiler output and extract the necessary
12331
 
  # objects, libraries and library flags.
12332
 
 
12333
 
  # Sentinel used to keep track of whether or not we are before
12334
 
  # the conftest object file.
12335
 
  pre_test_object_deps_done=no
12336
 
 
12337
 
  # The `*' in the case matches for architectures that use `case' in
12338
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12339
 
  # eval without this substitution.
12340
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12341
 
 
12342
 
  for p in `eval $output_verbose_link_cmd`; do
12343
 
    case $p in
12344
 
 
12345
 
    -L* | -R* | -l*)
12346
 
       # Some compilers place space between "-{L,R}" and the path.
12347
 
       # Remove the space.
12348
 
       if test $p = "-L" \
12349
 
          || test $p = "-R"; then
12350
 
         prev=$p
12351
 
         continue
12352
 
       else
12353
 
         prev=
12354
 
       fi
12355
 
 
12356
 
       if test "$pre_test_object_deps_done" = no; then
12357
 
         case $p in
12358
 
         -L* | -R*)
12359
 
           # Internal compiler library paths should come after those
12360
 
           # provided the user.  The postdeps already come after the
12361
 
           # user supplied libs so there is no need to process them.
12362
 
           if test -z "$compiler_lib_search_path_CXX"; then
12363
 
             compiler_lib_search_path_CXX="${prev}${p}"
12364
 
           else
12365
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12366
 
           fi
12367
 
           ;;
12368
 
         # The "-l" case would never come before the object being
12369
 
         # linked, so don't bother handling this case.
12370
 
         esac
12371
 
       else
12372
 
         if test -z "$postdeps_CXX"; then
12373
 
           postdeps_CXX="${prev}${p}"
12374
 
         else
12375
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12376
 
         fi
12377
 
       fi
12378
 
       ;;
12379
 
 
12380
 
    *.$objext)
12381
 
       # This assumes that the test object file only shows up
12382
 
       # once in the compiler output.
12383
 
       if test "$p" = "conftest.$objext"; then
12384
 
         pre_test_object_deps_done=yes
12385
 
         continue
12386
 
       fi
12387
 
 
12388
 
       if test "$pre_test_object_deps_done" = no; then
12389
 
         if test -z "$predep_objects_CXX"; then
12390
 
           predep_objects_CXX="$p"
12391
 
         else
12392
 
           predep_objects_CXX="$predep_objects_CXX $p"
12393
 
         fi
12394
 
       else
12395
 
         if test -z "$postdep_objects_CXX"; then
12396
 
           postdep_objects_CXX="$p"
12397
 
         else
12398
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12399
 
         fi
12400
 
       fi
12401
 
       ;;
12402
 
 
12403
 
    *) ;; # Ignore the rest.
12404
 
 
12405
 
    esac
12406
 
  done
12407
 
 
12408
 
  # Clean up.
12409
 
  rm -f a.out a.exe
12410
 
else
12411
 
  echo "libtool.m4: error: problem compiling CXX test program"
12412
 
fi
12413
 
 
12414
 
$rm -f confest.$objext
12415
 
 
12416
 
compiler_lib_search_dirs_CXX=
12417
 
if test -n "$compiler_lib_search_path_CXX"; then
12418
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12419
 
fi
12420
 
 
12421
 
# PORTME: override above test on systems where it is broken
12422
 
case $host_os in
12423
 
interix[3-9]*)
12424
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12425
 
  # hack all around it, let's just trust "g++" to DTRT.
12426
 
  predep_objects_CXX=
12427
 
  postdep_objects_CXX=
12428
 
  postdeps_CXX=
12429
 
  ;;
12430
 
 
12431
 
linux*)
12432
 
  case `$CC -V 2>&1 | sed 5q` in
12433
 
  *Sun\ C*)
12434
 
    # Sun C++ 5.9
12435
 
    #
12436
 
    # The more standards-conforming stlport4 library is
12437
 
    # incompatible with the Cstd library. Avoid specifying
12438
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12439
 
    # -library=stlport4 depends on it.
12440
 
    case " $CXX $CXXFLAGS " in
12441
 
    *" -library=stlport4 "*)
12442
 
      solaris_use_stlport4=yes
12443
 
      ;;
12444
 
    esac
12445
 
    if test "$solaris_use_stlport4" != yes; then
12446
 
      postdeps_CXX='-library=Cstd -library=Crun'
12447
 
    fi
12448
 
    ;;
12449
 
  esac
12450
 
  ;;
12451
 
 
12452
 
solaris*)
12453
 
  case $cc_basename in
12454
 
  CC*)
12455
 
    # The more standards-conforming stlport4 library is
12456
 
    # incompatible with the Cstd library. Avoid specifying
12457
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12458
 
    # -library=stlport4 depends on it.
12459
 
    case " $CXX $CXXFLAGS " in
12460
 
    *" -library=stlport4 "*)
12461
 
      solaris_use_stlport4=yes
12462
 
      ;;
12463
 
    esac
12464
 
 
12465
 
    # Adding this requires a known-good setup of shared libraries for
12466
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12467
 
    # archive will be linked into the output, leading to subtle bugs.
12468
 
    if test "$solaris_use_stlport4" != yes; then
12469
 
      postdeps_CXX='-library=Cstd -library=Crun'
12470
 
    fi
12471
 
    ;;
12472
 
  esac
12473
 
  ;;
12474
 
esac
12475
 
 
12476
 
case " $postdeps_CXX " in
12477
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12478
 
esac
12479
 
 
12480
 
lt_prog_compiler_wl_CXX=
12481
 
lt_prog_compiler_pic_CXX=
12482
 
lt_prog_compiler_static_CXX=
12483
 
 
12484
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12485
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12486
 
 
12487
 
  # C++ specific cases for pic, static, wl, etc.
12488
 
  if test "$GXX" = yes; then
12489
 
    lt_prog_compiler_wl_CXX='-Wl,'
12490
 
    lt_prog_compiler_static_CXX='-static'
12491
 
 
12492
 
    case $host_os in
12493
 
    aix*)
12494
 
      # All AIX code is PIC.
12495
 
      if test "$host_cpu" = ia64; then
12496
 
        # AIX 5 now supports IA64 processor
12497
 
        lt_prog_compiler_static_CXX='-Bstatic'
12498
 
      fi
12499
 
      ;;
12500
 
    amigaos*)
12501
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12502
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12503
 
      # like `-m68040'.
12504
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12505
 
      ;;
12506
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12507
 
      # PIC is the default for these OSes.
12508
 
      ;;
12509
 
    mingw* | cygwin* | os2* | pw32*)
12510
 
      # This hack is so that the source file can tell whether it is being
12511
 
      # built for inclusion in a dll (and should export symbols for example).
12512
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12513
 
      # (--disable-auto-import) libraries
12514
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12515
 
      ;;
12516
 
    darwin* | rhapsody*)
12517
 
      # PIC is the default on this platform
12518
 
      # Common symbols not allowed in MH_DYLIB files
12519
 
      lt_prog_compiler_pic_CXX='-fno-common'
12520
 
      ;;
12521
 
    *djgpp*)
12522
 
      # DJGPP does not support shared libraries at all
12523
 
      lt_prog_compiler_pic_CXX=
12524
 
      ;;
12525
 
    interix[3-9]*)
12526
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12527
 
      # Instead, we relocate shared libraries at runtime.
12528
 
      ;;
12529
 
    sysv4*MP*)
12530
 
      if test -d /usr/nec; then
12531
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12532
 
      fi
12533
 
      ;;
12534
 
    hpux*)
12535
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12536
 
      # not for PA HP-UX.
12537
 
      case $host_cpu in
12538
 
      hppa*64*|ia64*)
12539
 
        ;;
12540
 
      *)
12541
 
        lt_prog_compiler_pic_CXX='-fPIC'
12542
 
        ;;
12543
 
      esac
12544
 
      ;;
12545
 
    *)
12546
 
      lt_prog_compiler_pic_CXX='-fPIC'
12547
 
      ;;
12548
 
    esac
12549
 
  else
12550
 
    case $host_os in
12551
 
      aix[4-9]*)
12552
 
        # All AIX code is PIC.
12553
 
        if test "$host_cpu" = ia64; then
12554
 
          # AIX 5 now supports IA64 processor
12555
 
          lt_prog_compiler_static_CXX='-Bstatic'
12556
 
        else
12557
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12558
 
        fi
12559
 
        ;;
12560
 
      chorus*)
12561
 
        case $cc_basename in
12562
 
        cxch68*)
12563
 
          # Green Hills C++ Compiler
12564
 
          # _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"
12565
 
          ;;
12566
 
        esac
12567
 
        ;;
12568
 
       darwin*)
12569
 
         # PIC is the default on this platform
12570
 
         # Common symbols not allowed in MH_DYLIB files
12571
 
         case $cc_basename in
12572
 
           xlc*)
12573
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12574
 
           lt_prog_compiler_wl_CXX='-Wl,'
12575
 
           ;;
12576
 
         esac
12577
 
       ;;
12578
 
      dgux*)
12579
 
        case $cc_basename in
12580
 
          ec++*)
12581
 
            lt_prog_compiler_pic_CXX='-KPIC'
12582
 
            ;;
12583
 
          ghcx*)
12584
 
            # Green Hills C++ Compiler
12585
 
            lt_prog_compiler_pic_CXX='-pic'
12586
 
            ;;
12587
 
          *)
12588
 
            ;;
12589
 
        esac
12590
 
        ;;
12591
 
      freebsd* | dragonfly*)
12592
 
        # FreeBSD uses GNU C++
12593
 
        ;;
12594
 
      hpux9* | hpux10* | hpux11*)
12595
 
        case $cc_basename in
12596
 
          CC*)
12597
 
            lt_prog_compiler_wl_CXX='-Wl,'
12598
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12599
 
            if test "$host_cpu" != ia64; then
12600
 
              lt_prog_compiler_pic_CXX='+Z'
12601
 
            fi
12602
 
            ;;
12603
 
          aCC*)
12604
 
            lt_prog_compiler_wl_CXX='-Wl,'
12605
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12606
 
            case $host_cpu in
12607
 
            hppa*64*|ia64*)
12608
 
              # +Z the default
12609
 
              ;;
12610
 
            *)
12611
 
              lt_prog_compiler_pic_CXX='+Z'
12612
 
              ;;
12613
 
            esac
12614
 
            ;;
12615
 
          *)
12616
 
            ;;
12617
 
        esac
12618
 
        ;;
12619
 
      interix*)
12620
 
        # This is c89, which is MS Visual C++ (no shared libs)
12621
 
        # Anyone wants to do a port?
12622
 
        ;;
12623
 
      irix5* | irix6* | nonstopux*)
12624
 
        case $cc_basename in
12625
 
          CC*)
12626
 
            lt_prog_compiler_wl_CXX='-Wl,'
12627
 
            lt_prog_compiler_static_CXX='-non_shared'
12628
 
            # CC pic flag -KPIC is the default.
12629
 
            ;;
12630
 
          *)
12631
 
            ;;
12632
 
        esac
12633
 
        ;;
12634
 
      linux* | k*bsd*-gnu)
12635
 
        case $cc_basename in
12636
 
          KCC*)
12637
 
            # KAI C++ Compiler
12638
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12639
 
            lt_prog_compiler_pic_CXX='-fPIC'
12640
 
            ;;
12641
 
          icpc* | ecpc*)
12642
 
            # Intel C++
12643
 
            lt_prog_compiler_wl_CXX='-Wl,'
12644
 
            lt_prog_compiler_pic_CXX='-KPIC'
12645
 
            lt_prog_compiler_static_CXX='-static'
12646
 
            ;;
12647
 
          pgCC* | pgcpp*)
12648
 
            # Portland Group C++ compiler.
12649
 
            lt_prog_compiler_wl_CXX='-Wl,'
12650
 
            lt_prog_compiler_pic_CXX='-fpic'
12651
 
            lt_prog_compiler_static_CXX='-Bstatic'
12652
 
            ;;
12653
 
          cxx*)
12654
 
            # Compaq C++
12655
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12656
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12657
 
            lt_prog_compiler_pic_CXX=
12658
 
            lt_prog_compiler_static_CXX='-non_shared'
12659
 
            ;;
12660
 
          *)
12661
 
            case `$CC -V 2>&1 | sed 5q` in
12662
 
            *Sun\ C*)
12663
 
              # Sun C++ 5.9
12664
 
              lt_prog_compiler_pic_CXX='-KPIC'
12665
 
              lt_prog_compiler_static_CXX='-Bstatic'
12666
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12667
 
              ;;
12668
 
            esac
12669
 
            ;;
12670
 
        esac
12671
 
        ;;
12672
 
      lynxos*)
12673
 
        ;;
12674
 
      m88k*)
12675
 
        ;;
12676
 
      mvs*)
12677
 
        case $cc_basename in
12678
 
          cxx*)
12679
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12680
 
            ;;
12681
 
          *)
12682
 
            ;;
12683
 
        esac
12684
 
        ;;
12685
 
      netbsd* | netbsdelf*-gnu)
12686
 
        ;;
12687
 
      osf3* | osf4* | osf5*)
12688
 
        case $cc_basename in
12689
 
          KCC*)
12690
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12691
 
            ;;
12692
 
          RCC*)
12693
 
            # Rational C++ 2.4.1
12694
 
            lt_prog_compiler_pic_CXX='-pic'
12695
 
            ;;
12696
 
          cxx*)
12697
 
            # Digital/Compaq C++
12698
 
            lt_prog_compiler_wl_CXX='-Wl,'
12699
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12700
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12701
 
            lt_prog_compiler_pic_CXX=
12702
 
            lt_prog_compiler_static_CXX='-non_shared'
12703
 
            ;;
12704
 
          *)
12705
 
            ;;
12706
 
        esac
12707
 
        ;;
12708
 
      psos*)
12709
 
        ;;
12710
 
      solaris*)
12711
 
        case $cc_basename in
12712
 
          CC*)
12713
 
            # Sun C++ 4.2, 5.x and Centerline C++
12714
 
            lt_prog_compiler_pic_CXX='-KPIC'
12715
 
            lt_prog_compiler_static_CXX='-Bstatic'
12716
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12717
 
            ;;
12718
 
          gcx*)
12719
 
            # Green Hills C++ Compiler
12720
 
            lt_prog_compiler_pic_CXX='-PIC'
12721
 
            ;;
12722
 
          *)
12723
 
            ;;
12724
 
        esac
12725
 
        ;;
12726
 
      sunos4*)
12727
 
        case $cc_basename in
12728
 
          CC*)
12729
 
            # Sun C++ 4.x
12730
 
            lt_prog_compiler_pic_CXX='-pic'
12731
 
            lt_prog_compiler_static_CXX='-Bstatic'
12732
 
            ;;
12733
 
          lcc*)
12734
 
            # Lucid
12735
 
            lt_prog_compiler_pic_CXX='-pic'
12736
 
            ;;
12737
 
          *)
12738
 
            ;;
12739
 
        esac
12740
 
        ;;
12741
 
      tandem*)
12742
 
        case $cc_basename in
12743
 
          NCC*)
12744
 
            # NonStop-UX NCC 3.20
12745
 
            lt_prog_compiler_pic_CXX='-KPIC'
12746
 
            ;;
12747
 
          *)
12748
 
            ;;
12749
 
        esac
12750
 
        ;;
12751
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12752
 
        case $cc_basename in
12753
 
          CC*)
12754
 
            lt_prog_compiler_wl_CXX='-Wl,'
12755
 
            lt_prog_compiler_pic_CXX='-KPIC'
12756
 
            lt_prog_compiler_static_CXX='-Bstatic'
12757
 
            ;;
12758
 
        esac
12759
 
        ;;
12760
 
      vxworks*)
12761
 
        ;;
12762
 
      *)
12763
 
        lt_prog_compiler_can_build_shared_CXX=no
12764
 
        ;;
12765
 
    esac
12766
 
  fi
12767
 
 
12768
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12769
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12770
 
 
12771
 
#
12772
 
# Check to make sure the PIC flag actually works.
12773
 
#
12774
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12775
 
 
12776
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12777
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12778
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12779
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12780
 
else
12781
 
  lt_cv_prog_compiler_pic_works_CXX=no
12782
 
  ac_outfile=conftest.$ac_objext
12783
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12785
 
   # Insert the option either (1) after the last *FLAGS variable, or
12786
 
   # (2) before a word containing "conftest.", or (3) at the end.
12787
 
   # Note that $ac_compile itself does not contain backslashes and begins
12788
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12789
 
   # The option is referenced via a variable to avoid confusing sed.
12790
 
   lt_compile=`echo "$ac_compile" | $SED \
12791
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12792
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12793
 
   -e 's:$: $lt_compiler_flag:'`
12794
 
   (eval echo "\"\$as_me:12794: $lt_compile\"" >&5)
12795
 
   (eval "$lt_compile" 2>conftest.err)
12796
 
   ac_status=$?
12797
 
   cat conftest.err >&5
12798
 
   echo "$as_me:12798: \$? = $ac_status" >&5
12799
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12800
 
     # The compiler can only warn and ignore the option if not recognized
12801
 
     # So say no if there are warnings other than the usual output.
12802
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12803
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12804
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12805
 
       lt_cv_prog_compiler_pic_works_CXX=yes
12806
 
     fi
12807
 
   fi
12808
 
   $rm conftest*
12809
 
 
12810
 
fi
12811
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12812
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12813
 
 
12814
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12815
 
    case $lt_prog_compiler_pic_CXX in
12816
 
     "" | " "*) ;;
12817
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12818
 
     esac
12819
 
else
12820
 
    lt_prog_compiler_pic_CXX=
12821
 
     lt_prog_compiler_can_build_shared_CXX=no
12822
 
fi
12823
 
 
12824
 
fi
12825
 
case $host_os in
12826
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12827
 
  *djgpp*)
12828
 
    lt_prog_compiler_pic_CXX=
12829
 
    ;;
12830
 
  *)
12831
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12832
 
    ;;
12833
 
esac
12834
 
 
12835
 
#
12836
 
# Check to make sure the static flag actually works.
12837
 
#
12838
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12839
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12840
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12841
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12843
 
else
12844
 
  lt_cv_prog_compiler_static_works_CXX=no
12845
 
   save_LDFLAGS="$LDFLAGS"
12846
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12847
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12848
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12849
 
     # The linker can only warn and ignore the option if not recognized
12850
 
     # So say no if there are warnings
12851
 
     if test -s conftest.err; then
12852
 
       # Append any errors to the config.log.
12853
 
       cat conftest.err 1>&5
12854
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12855
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12856
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12857
 
         lt_cv_prog_compiler_static_works_CXX=yes
12858
 
       fi
12859
 
     else
12860
 
       lt_cv_prog_compiler_static_works_CXX=yes
12861
 
     fi
12862
 
   fi
12863
 
   $rm -r conftest*
12864
 
   LDFLAGS="$save_LDFLAGS"
12865
 
 
12866
 
fi
12867
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12868
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12869
 
 
12870
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12871
 
    :
12872
 
else
12873
 
    lt_prog_compiler_static_CXX=
12874
 
fi
12875
 
 
12876
 
 
12877
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12878
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12879
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12880
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12881
 
else
12882
 
  lt_cv_prog_compiler_c_o_CXX=no
12883
 
   $rm -r conftest 2>/dev/null
12884
 
   mkdir conftest
12885
 
   cd conftest
12886
 
   mkdir out
12887
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12888
 
 
12889
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12890
 
   # Insert the option either (1) after the last *FLAGS variable, or
12891
 
   # (2) before a word containing "conftest.", or (3) at the end.
12892
 
   # Note that $ac_compile itself does not contain backslashes and begins
12893
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12894
 
   lt_compile=`echo "$ac_compile" | $SED \
12895
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12896
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12897
 
   -e 's:$: $lt_compiler_flag:'`
12898
 
   (eval echo "\"\$as_me:12898: $lt_compile\"" >&5)
12899
 
   (eval "$lt_compile" 2>out/conftest.err)
12900
 
   ac_status=$?
12901
 
   cat out/conftest.err >&5
12902
 
   echo "$as_me:12902: \$? = $ac_status" >&5
12903
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12904
 
   then
12905
 
     # The compiler can only warn and ignore the option if not recognized
12906
 
     # So say no if there are warnings
12907
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12908
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12909
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12910
 
       lt_cv_prog_compiler_c_o_CXX=yes
12911
 
     fi
12912
 
   fi
12913
 
   chmod u+w . 2>&5
12914
 
   $rm conftest*
12915
 
   # SGI C++ compiler will create directory out/ii_files/ for
12916
 
   # template instantiation
12917
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12918
 
   $rm out/* && rmdir out
12919
 
   cd ..
12920
 
   rmdir conftest
12921
 
   $rm conftest*
12922
 
 
12923
 
fi
12924
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12925
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12926
 
 
12927
 
 
12928
 
hard_links="nottested"
12929
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12930
 
  # do not overwrite the value of need_locks provided by the user
12931
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12932
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12933
 
  hard_links=yes
12934
 
  $rm conftest*
12935
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12936
 
  touch conftest.a
12937
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12938
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12939
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12940
 
echo "${ECHO_T}$hard_links" >&6; }
12941
 
  if test "$hard_links" = no; then
12942
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12943
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12944
 
    need_locks=warn
12945
 
  fi
12946
 
else
12947
 
  need_locks=no
12948
 
fi
12949
 
 
12950
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12951
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12952
 
 
12953
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12954
 
  case $host_os in
12955
 
  aix[4-9]*)
12956
 
    # If we're using GNU nm, then we don't want the "-C" option.
12957
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12958
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12959
 
      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'
12960
 
    else
12961
 
      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'
12962
 
    fi
12963
 
    ;;
12964
 
  pw32*)
12965
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12966
 
  ;;
12967
 
  cygwin* | mingw*)
12968
 
    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'
12969
 
  ;;
12970
 
  linux* | k*bsd*-gnu)
12971
 
    link_all_deplibs_CXX=no
12972
 
  ;;
12973
 
  *)
12974
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12975
 
  ;;
12976
 
  esac
12977
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12978
 
 
12979
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12980
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12981
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12982
 
 
12983
 
#
12984
 
# Do we need to explicitly link libc?
12985
 
#
12986
 
case "x$archive_cmds_need_lc_CXX" in
12987
 
x|xyes)
12988
 
  # Assume -lc should be added
12989
 
  archive_cmds_need_lc_CXX=yes
12990
 
 
12991
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12992
 
    case $archive_cmds_CXX in
12993
 
    *'~'*)
12994
 
      # FIXME: we may have to deal with multi-command sequences.
12995
 
      ;;
12996
 
    '$CC '*)
12997
 
      # Test whether the compiler implicitly links with -lc since on some
12998
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12999
 
      # to ld, don't add -lc before -lgcc.
13000
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13001
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13002
 
      $rm conftest*
13003
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13004
 
 
13005
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006
 
  (eval $ac_compile) 2>&5
13007
 
  ac_status=$?
13008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009
 
  (exit $ac_status); } 2>conftest.err; then
13010
 
        soname=conftest
13011
 
        lib=conftest
13012
 
        libobjs=conftest.$ac_objext
13013
 
        deplibs=
13014
 
        wl=$lt_prog_compiler_wl_CXX
13015
 
        pic_flag=$lt_prog_compiler_pic_CXX
13016
 
        compiler_flags=-v
13017
 
        linker_flags=-v
13018
 
        verstring=
13019
 
        output_objdir=.
13020
 
        libname=conftest
13021
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13022
 
        allow_undefined_flag_CXX=
13023
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13025
 
  ac_status=$?
13026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027
 
  (exit $ac_status); }
13028
 
        then
13029
 
          archive_cmds_need_lc_CXX=no
13030
 
        else
13031
 
          archive_cmds_need_lc_CXX=yes
13032
 
        fi
13033
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13034
 
      else
13035
 
        cat conftest.err 1>&5
13036
 
      fi
13037
 
      $rm conftest*
13038
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13039
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13040
 
      ;;
13041
 
    esac
13042
 
  fi
13043
 
  ;;
13044
 
esac
13045
 
 
13046
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13048
 
library_names_spec=
13049
 
libname_spec='lib$name'
13050
 
soname_spec=
13051
 
shrext_cmds=".so"
13052
 
postinstall_cmds=
13053
 
postuninstall_cmds=
13054
 
finish_cmds=
13055
 
finish_eval=
13056
 
shlibpath_var=
13057
 
shlibpath_overrides_runpath=unknown
13058
 
version_type=none
13059
 
dynamic_linker="$host_os ld.so"
13060
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13061
 
 
13062
 
need_lib_prefix=unknown
13063
 
hardcode_into_libs=no
13064
 
 
13065
 
# when you set need_version to no, make sure it does not cause -set_version
13066
 
# flags to be left without arguments
13067
 
need_version=unknown
13068
 
 
13069
 
case $host_os in
13070
 
aix3*)
13071
 
  version_type=linux
13072
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13073
 
  shlibpath_var=LIBPATH
13074
 
 
13075
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13076
 
  soname_spec='${libname}${release}${shared_ext}$major'
13077
 
  ;;
13078
 
 
13079
 
aix[4-9]*)
13080
 
  version_type=linux
13081
 
  need_lib_prefix=no
13082
 
  need_version=no
13083
 
  hardcode_into_libs=yes
13084
 
  if test "$host_cpu" = ia64; then
13085
 
    # AIX 5 supports IA64
13086
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13087
 
    shlibpath_var=LD_LIBRARY_PATH
13088
 
  else
13089
 
    # With GCC up to 2.95.x, collect2 would create an import file
13090
 
    # for dependence libraries.  The import file would start with
13091
 
    # the line `#! .'.  This would cause the generated library to
13092
 
    # depend on `.', always an invalid library.  This was fixed in
13093
 
    # development snapshots of GCC prior to 3.0.
13094
 
    case $host_os in
13095
 
      aix4 | aix4.[01] | aix4.[01].*)
13096
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13097
 
           echo ' yes '
13098
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13099
 
        :
13100
 
      else
13101
 
        can_build_shared=no
13102
 
      fi
13103
 
      ;;
13104
 
    esac
13105
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13106
 
    # soname into executable. Probably we can add versioning support to
13107
 
    # collect2, so additional links can be useful in future.
13108
 
    if test "$aix_use_runtimelinking" = yes; then
13109
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13110
 
      # instead of lib<name>.a to let people know that these are not
13111
 
      # typical AIX shared libraries.
13112
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113
 
    else
13114
 
      # We preserve .a as extension for shared libraries through AIX4.2
13115
 
      # and later when we are not doing run time linking.
13116
 
      library_names_spec='${libname}${release}.a $libname.a'
13117
 
      soname_spec='${libname}${release}${shared_ext}$major'
13118
 
    fi
13119
 
    shlibpath_var=LIBPATH
13120
 
  fi
13121
 
  ;;
13122
 
 
13123
 
amigaos*)
13124
 
  library_names_spec='$libname.ixlibrary $libname.a'
13125
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13126
 
  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'
13127
 
  ;;
13128
 
 
13129
 
beos*)
13130
 
  library_names_spec='${libname}${shared_ext}'
13131
 
  dynamic_linker="$host_os ld.so"
13132
 
  shlibpath_var=LIBRARY_PATH
13133
 
  ;;
13134
 
 
13135
 
bsdi[45]*)
13136
 
  version_type=linux
13137
 
  need_version=no
13138
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139
 
  soname_spec='${libname}${release}${shared_ext}$major'
13140
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13141
 
  shlibpath_var=LD_LIBRARY_PATH
13142
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13143
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13144
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13145
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13146
 
  # libtool to hard-code these into programs
13147
 
  ;;
13148
 
 
13149
 
cygwin* | mingw* | pw32*)
13150
 
  version_type=windows
13151
 
  shrext_cmds=".dll"
13152
 
  need_version=no
13153
 
  need_lib_prefix=no
13154
 
 
13155
 
  case $GCC,$host_os in
13156
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13157
 
    library_names_spec='$libname.dll.a'
13158
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13159
 
    postinstall_cmds='base_file=`basename \${file}`~
13160
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13161
 
      dldir=$destdir/`dirname \$dlpath`~
13162
 
      test -d \$dldir || mkdir -p \$dldir~
13163
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13164
 
      chmod a+x \$dldir/$dlname'
13165
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166
 
      dlpath=$dir/\$dldll~
13167
 
       $rm \$dlpath'
13168
 
    shlibpath_overrides_runpath=yes
13169
 
 
13170
 
    case $host_os in
13171
 
    cygwin*)
13172
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13175
 
      ;;
13176
 
    mingw*)
13177
 
      # MinGW DLLs use traditional 'lib' prefix
13178
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181
 
        # It is most probably a Windows format PATH printed by
13182
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13183
 
        # path with ; separators, and with drive letters. We can handle the
13184
 
        # drive letters (cygwin fileutils understands them), so leave them,
13185
 
        # especially as we might pass files found there to a mingw objdump,
13186
 
        # which wouldn't understand a cygwinified path. Ahh.
13187
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188
 
      else
13189
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13190
 
      fi
13191
 
      ;;
13192
 
    pw32*)
13193
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13194
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13195
 
      ;;
13196
 
    esac
13197
 
    ;;
13198
 
 
13199
 
  *)
13200
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13201
 
    ;;
13202
 
  esac
13203
 
  dynamic_linker='Win32 ld.exe'
13204
 
  # FIXME: first we should search . and the directory the executable is in
13205
 
  shlibpath_var=PATH
13206
 
  ;;
13207
 
 
13208
 
darwin* | rhapsody*)
13209
 
  dynamic_linker="$host_os dyld"
13210
 
  version_type=darwin
13211
 
  need_lib_prefix=no
13212
 
  need_version=no
13213
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13214
 
  soname_spec='${libname}${release}${major}$shared_ext'
13215
 
  shlibpath_overrides_runpath=yes
13216
 
  shlibpath_var=DYLD_LIBRARY_PATH
13217
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13218
 
 
13219
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220
 
  ;;
13221
 
 
13222
 
dgux*)
13223
 
  version_type=linux
13224
 
  need_lib_prefix=no
13225
 
  need_version=no
13226
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227
 
  soname_spec='${libname}${release}${shared_ext}$major'
13228
 
  shlibpath_var=LD_LIBRARY_PATH
13229
 
  ;;
13230
 
 
13231
 
freebsd1*)
13232
 
  dynamic_linker=no
13233
 
  ;;
13234
 
 
13235
 
freebsd* | dragonfly*)
13236
 
  # DragonFly does not have aout.  When/if they implement a new
13237
 
  # versioning mechanism, adjust this.
13238
 
  if test -x /usr/bin/objformat; then
13239
 
    objformat=`/usr/bin/objformat`
13240
 
  else
13241
 
    case $host_os in
13242
 
    freebsd[123]*) objformat=aout ;;
13243
 
    *) objformat=elf ;;
13244
 
    esac
13245
 
  fi
13246
 
  version_type=freebsd-$objformat
13247
 
  case $version_type in
13248
 
    freebsd-elf*)
13249
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13250
 
      need_version=no
13251
 
      need_lib_prefix=no
13252
 
      ;;
13253
 
    freebsd-*)
13254
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13255
 
      need_version=yes
13256
 
      ;;
13257
 
  esac
13258
 
  shlibpath_var=LD_LIBRARY_PATH
13259
 
  case $host_os in
13260
 
  freebsd2*)
13261
 
    shlibpath_overrides_runpath=yes
13262
 
    ;;
13263
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13264
 
    shlibpath_overrides_runpath=yes
13265
 
    hardcode_into_libs=yes
13266
 
    ;;
13267
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13268
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13269
 
    shlibpath_overrides_runpath=no
13270
 
    hardcode_into_libs=yes
13271
 
    ;;
13272
 
  *) # from 4.6 on, and DragonFly
13273
 
    shlibpath_overrides_runpath=yes
13274
 
    hardcode_into_libs=yes
13275
 
    ;;
13276
 
  esac
13277
 
  ;;
13278
 
 
13279
 
gnu*)
13280
 
  version_type=linux
13281
 
  need_lib_prefix=no
13282
 
  need_version=no
13283
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13284
 
  soname_spec='${libname}${release}${shared_ext}$major'
13285
 
  shlibpath_var=LD_LIBRARY_PATH
13286
 
  hardcode_into_libs=yes
13287
 
  ;;
13288
 
 
13289
 
hpux9* | hpux10* | hpux11*)
13290
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13291
 
  # link against other versions.
13292
 
  version_type=sunos
13293
 
  need_lib_prefix=no
13294
 
  need_version=no
13295
 
  case $host_cpu in
13296
 
  ia64*)
13297
 
    shrext_cmds='.so'
13298
 
    hardcode_into_libs=yes
13299
 
    dynamic_linker="$host_os dld.so"
13300
 
    shlibpath_var=LD_LIBRARY_PATH
13301
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13302
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303
 
    soname_spec='${libname}${release}${shared_ext}$major'
13304
 
    if test "X$HPUX_IA64_MODE" = X32; then
13305
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13306
 
    else
13307
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13308
 
    fi
13309
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13310
 
    ;;
13311
 
   hppa*64*)
13312
 
     shrext_cmds='.sl'
13313
 
     hardcode_into_libs=yes
13314
 
     dynamic_linker="$host_os dld.sl"
13315
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13316
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13317
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318
 
     soname_spec='${libname}${release}${shared_ext}$major'
13319
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13320
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13321
 
     ;;
13322
 
   *)
13323
 
    shrext_cmds='.sl'
13324
 
    dynamic_linker="$host_os dld.sl"
13325
 
    shlibpath_var=SHLIB_PATH
13326
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13327
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328
 
    soname_spec='${libname}${release}${shared_ext}$major'
13329
 
    ;;
13330
 
  esac
13331
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13332
 
  postinstall_cmds='chmod 555 $lib'
13333
 
  ;;
13334
 
 
13335
 
interix[3-9]*)
13336
 
  version_type=linux
13337
 
  need_lib_prefix=no
13338
 
  need_version=no
13339
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340
 
  soname_spec='${libname}${release}${shared_ext}$major'
13341
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13342
 
  shlibpath_var=LD_LIBRARY_PATH
13343
 
  shlibpath_overrides_runpath=no
13344
 
  hardcode_into_libs=yes
13345
 
  ;;
13346
 
 
13347
 
irix5* | irix6* | nonstopux*)
13348
 
  case $host_os in
13349
 
    nonstopux*) version_type=nonstopux ;;
13350
 
    *)
13351
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13352
 
                version_type=linux
13353
 
        else
13354
 
                version_type=irix
13355
 
        fi ;;
13356
 
  esac
13357
 
  need_lib_prefix=no
13358
 
  need_version=no
13359
 
  soname_spec='${libname}${release}${shared_ext}$major'
13360
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13361
 
  case $host_os in
13362
 
  irix5* | nonstopux*)
13363
 
    libsuff= shlibsuff=
13364
 
    ;;
13365
 
  *)
13366
 
    case $LD in # libtool.m4 will add one of these switches to LD
13367
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13368
 
      libsuff= shlibsuff= libmagic=32-bit;;
13369
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13370
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13371
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13372
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13373
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13374
 
    esac
13375
 
    ;;
13376
 
  esac
13377
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13378
 
  shlibpath_overrides_runpath=no
13379
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13380
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13381
 
  hardcode_into_libs=yes
13382
 
  ;;
13383
 
 
13384
 
# No shared lib support for Linux oldld, aout, or coff.
13385
 
linux*oldld* | linux*aout* | linux*coff*)
13386
 
  dynamic_linker=no
13387
 
  ;;
13388
 
 
13389
 
# This must be Linux ELF.
13390
 
linux* | k*bsd*-gnu)
13391
 
  version_type=linux
13392
 
  need_lib_prefix=no
13393
 
  need_version=no
13394
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395
 
  soname_spec='${libname}${release}${shared_ext}$major'
13396
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13397
 
  shlibpath_var=LD_LIBRARY_PATH
13398
 
  shlibpath_overrides_runpath=no
13399
 
  # This implies no fast_install, which is unacceptable.
13400
 
  # Some rework will be needed to allow for fast_install
13401
 
  # before this can be enabled.
13402
 
  hardcode_into_libs=yes
13403
 
 
13404
 
  # Append ld.so.conf contents to the search path
13405
 
  if test -f /etc/ld.so.conf; then
13406
 
    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' ' '`
13407
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13408
 
  fi
13409
 
 
13410
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13411
 
  # powerpc, because MkLinux only supported shared libraries with the
13412
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13413
 
  # most powerpc-linux boxes support dynamic linking these days and
13414
 
  # people can always --disable-shared, the test was removed, and we
13415
 
  # assume the GNU/Linux dynamic linker is in use.
13416
 
  dynamic_linker='GNU/Linux ld.so'
13417
 
  ;;
13418
 
 
13419
 
netbsdelf*-gnu)
13420
 
  version_type=linux
13421
 
  need_lib_prefix=no
13422
 
  need_version=no
13423
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424
 
  soname_spec='${libname}${release}${shared_ext}$major'
13425
 
  shlibpath_var=LD_LIBRARY_PATH
13426
 
  shlibpath_overrides_runpath=no
13427
 
  hardcode_into_libs=yes
13428
 
  dynamic_linker='NetBSD ld.elf_so'
13429
 
  ;;
13430
 
 
13431
 
netbsd*)
13432
 
  version_type=sunos
13433
 
  need_lib_prefix=no
13434
 
  need_version=no
13435
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13436
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13437
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13438
 
    dynamic_linker='NetBSD (a.out) ld.so'
13439
 
  else
13440
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13441
 
    soname_spec='${libname}${release}${shared_ext}$major'
13442
 
    dynamic_linker='NetBSD ld.elf_so'
13443
 
  fi
13444
 
  shlibpath_var=LD_LIBRARY_PATH
13445
 
  shlibpath_overrides_runpath=yes
13446
 
  hardcode_into_libs=yes
13447
 
  ;;
13448
 
 
13449
 
newsos6)
13450
 
  version_type=linux
13451
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452
 
  shlibpath_var=LD_LIBRARY_PATH
13453
 
  shlibpath_overrides_runpath=yes
13454
 
  ;;
13455
 
 
13456
 
nto-qnx*)
13457
 
  version_type=linux
13458
 
  need_lib_prefix=no
13459
 
  need_version=no
13460
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461
 
  soname_spec='${libname}${release}${shared_ext}$major'
13462
 
  shlibpath_var=LD_LIBRARY_PATH
13463
 
  shlibpath_overrides_runpath=yes
13464
 
  ;;
13465
 
 
13466
 
openbsd*)
13467
 
  version_type=sunos
13468
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13469
 
  need_lib_prefix=no
13470
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13471
 
  case $host_os in
13472
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13473
 
    *)                         need_version=no  ;;
13474
 
  esac
13475
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13476
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13477
 
  shlibpath_var=LD_LIBRARY_PATH
13478
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13479
 
    case $host_os in
13480
 
      openbsd2.[89] | openbsd2.[89].*)
13481
 
        shlibpath_overrides_runpath=no
13482
 
        ;;
13483
 
      *)
13484
 
        shlibpath_overrides_runpath=yes
13485
 
        ;;
13486
 
      esac
13487
 
  else
13488
 
    shlibpath_overrides_runpath=yes
13489
 
  fi
13490
 
  ;;
13491
 
 
13492
 
os2*)
13493
 
  libname_spec='$name'
13494
 
  shrext_cmds=".dll"
13495
 
  need_lib_prefix=no
13496
 
  library_names_spec='$libname${shared_ext} $libname.a'
13497
 
  dynamic_linker='OS/2 ld.exe'
13498
 
  shlibpath_var=LIBPATH
13499
 
  ;;
13500
 
 
13501
 
osf3* | osf4* | osf5*)
13502
 
  version_type=osf
13503
 
  need_lib_prefix=no
13504
 
  need_version=no
13505
 
  soname_spec='${libname}${release}${shared_ext}$major'
13506
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507
 
  shlibpath_var=LD_LIBRARY_PATH
13508
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13509
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13510
 
  ;;
13511
 
 
13512
 
rdos*)
13513
 
  dynamic_linker=no
13514
 
  ;;
13515
 
 
13516
 
solaris*)
13517
 
  version_type=linux
13518
 
  need_lib_prefix=no
13519
 
  need_version=no
13520
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521
 
  soname_spec='${libname}${release}${shared_ext}$major'
13522
 
  shlibpath_var=LD_LIBRARY_PATH
13523
 
  shlibpath_overrides_runpath=yes
13524
 
  hardcode_into_libs=yes
13525
 
  # ldd complains unless libraries are executable
13526
 
  postinstall_cmds='chmod +x $lib'
13527
 
  ;;
13528
 
 
13529
 
sunos4*)
13530
 
  version_type=sunos
13531
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13533
 
  shlibpath_var=LD_LIBRARY_PATH
13534
 
  shlibpath_overrides_runpath=yes
13535
 
  if test "$with_gnu_ld" = yes; then
13536
 
    need_lib_prefix=no
13537
 
  fi
13538
 
  need_version=yes
13539
 
  ;;
13540
 
 
13541
 
sysv4 | sysv4.3*)
13542
 
  version_type=linux
13543
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544
 
  soname_spec='${libname}${release}${shared_ext}$major'
13545
 
  shlibpath_var=LD_LIBRARY_PATH
13546
 
  case $host_vendor in
13547
 
    sni)
13548
 
      shlibpath_overrides_runpath=no
13549
 
      need_lib_prefix=no
13550
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13551
 
      runpath_var=LD_RUN_PATH
13552
 
      ;;
13553
 
    siemens)
13554
 
      need_lib_prefix=no
13555
 
      ;;
13556
 
    motorola)
13557
 
      need_lib_prefix=no
13558
 
      need_version=no
13559
 
      shlibpath_overrides_runpath=no
13560
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13561
 
      ;;
13562
 
  esac
13563
 
  ;;
13564
 
 
13565
 
sysv4*MP*)
13566
 
  if test -d /usr/nec ;then
13567
 
    version_type=linux
13568
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13569
 
    soname_spec='$libname${shared_ext}.$major'
13570
 
    shlibpath_var=LD_LIBRARY_PATH
13571
 
  fi
13572
 
  ;;
13573
 
 
13574
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13575
 
  version_type=freebsd-elf
13576
 
  need_lib_prefix=no
13577
 
  need_version=no
13578
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13579
 
  soname_spec='${libname}${release}${shared_ext}$major'
13580
 
  shlibpath_var=LD_LIBRARY_PATH
13581
 
  hardcode_into_libs=yes
13582
 
  if test "$with_gnu_ld" = yes; then
13583
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13584
 
    shlibpath_overrides_runpath=no
13585
 
  else
13586
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13587
 
    shlibpath_overrides_runpath=yes
13588
 
    case $host_os in
13589
 
      sco3.2v5*)
13590
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13591
 
        ;;
13592
 
    esac
13593
 
  fi
13594
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13595
 
  ;;
13596
 
 
13597
 
uts4*)
13598
 
  version_type=linux
13599
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600
 
  soname_spec='${libname}${release}${shared_ext}$major'
13601
 
  shlibpath_var=LD_LIBRARY_PATH
13602
 
  ;;
13603
 
 
13604
 
*)
13605
 
  dynamic_linker=no
13606
 
  ;;
13607
 
esac
13608
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13609
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13610
 
test "$dynamic_linker" = no && can_build_shared=no
13611
 
 
13612
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13613
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13614
 
else
13615
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13616
 
fi
13617
 
 
13618
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13619
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13620
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13621
 
else
13622
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13623
 
fi
13624
 
 
13625
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13626
 
 
13627
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13628
 
if test "$GCC" = yes; then
13629
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13630
 
fi
13631
 
 
13632
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13633
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13634
 
hardcode_action_CXX=
13635
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13636
 
   test -n "$runpath_var_CXX" || \
13637
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13638
 
 
13639
 
  # We can hardcode non-existant directories.
13640
 
  if test "$hardcode_direct_CXX" != no &&
13641
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13642
 
     # have to relink, otherwise we might link with an installed library
13643
 
     # when we should be linking with a yet-to-be-installed one
13644
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13645
 
     test "$hardcode_minus_L_CXX" != no; then
13646
 
    # Linking always hardcodes the temporary library directory.
13647
 
    hardcode_action_CXX=relink
13648
 
  else
13649
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13650
 
    hardcode_action_CXX=immediate
13651
 
  fi
13652
 
else
13653
 
  # We cannot hardcode anything, or else we can only hardcode existing
13654
 
  # directories.
13655
 
  hardcode_action_CXX=unsupported
13656
 
fi
13657
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13658
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13659
 
 
13660
 
if test "$hardcode_action_CXX" = relink; then
13661
 
  # Fast installation is not supported
13662
 
  enable_fast_install=no
13663
 
elif test "$shlibpath_overrides_runpath" = yes ||
13664
 
     test "$enable_shared" = no; then
13665
 
  # Fast installation is not necessary
13666
 
  enable_fast_install=needless
13667
 
fi
13668
 
 
13669
 
 
13670
 
# The else clause should only fire when bootstrapping the
13671
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13672
 
# with your package, and you will get complaints that there are
13673
 
# no rules to generate ltmain.sh.
13674
 
if test -f "$ltmain"; then
13675
 
  # See if we are running on zsh, and set the options which allow our commands through
13676
 
  # without removal of \ escapes.
13677
 
  if test -n "${ZSH_VERSION+set}" ; then
13678
 
    setopt NO_GLOB_SUBST
13679
 
  fi
13680
 
  # Now quote all the things that may contain metacharacters while being
13681
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13682
 
  # variables and quote the copies for generation of the libtool script.
13683
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13684
 
    SED SHELL STRIP \
13685
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13686
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13687
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13688
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13689
 
    lt_cv_sys_global_symbol_to_c_name_address \
13690
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13691
 
    old_postinstall_cmds old_postuninstall_cmds \
13692
 
    compiler_CXX \
13693
 
    CC_CXX \
13694
 
    LD_CXX \
13695
 
    lt_prog_compiler_wl_CXX \
13696
 
    lt_prog_compiler_pic_CXX \
13697
 
    lt_prog_compiler_static_CXX \
13698
 
    lt_prog_compiler_no_builtin_flag_CXX \
13699
 
    export_dynamic_flag_spec_CXX \
13700
 
    thread_safe_flag_spec_CXX \
13701
 
    whole_archive_flag_spec_CXX \
13702
 
    enable_shared_with_static_runtimes_CXX \
13703
 
    old_archive_cmds_CXX \
13704
 
    old_archive_from_new_cmds_CXX \
13705
 
    predep_objects_CXX \
13706
 
    postdep_objects_CXX \
13707
 
    predeps_CXX \
13708
 
    postdeps_CXX \
13709
 
    compiler_lib_search_path_CXX \
13710
 
    compiler_lib_search_dirs_CXX \
13711
 
    archive_cmds_CXX \
13712
 
    archive_expsym_cmds_CXX \
13713
 
    postinstall_cmds_CXX \
13714
 
    postuninstall_cmds_CXX \
13715
 
    old_archive_from_expsyms_cmds_CXX \
13716
 
    allow_undefined_flag_CXX \
13717
 
    no_undefined_flag_CXX \
13718
 
    export_symbols_cmds_CXX \
13719
 
    hardcode_libdir_flag_spec_CXX \
13720
 
    hardcode_libdir_flag_spec_ld_CXX \
13721
 
    hardcode_libdir_separator_CXX \
13722
 
    hardcode_automatic_CXX \
13723
 
    module_cmds_CXX \
13724
 
    module_expsym_cmds_CXX \
13725
 
    lt_cv_prog_compiler_c_o_CXX \
13726
 
    fix_srcfile_path_CXX \
13727
 
    exclude_expsyms_CXX \
13728
 
    include_expsyms_CXX; do
13729
 
 
13730
 
    case $var in
13731
 
    old_archive_cmds_CXX | \
13732
 
    old_archive_from_new_cmds_CXX | \
13733
 
    archive_cmds_CXX | \
13734
 
    archive_expsym_cmds_CXX | \
13735
 
    module_cmds_CXX | \
13736
 
    module_expsym_cmds_CXX | \
13737
 
    old_archive_from_expsyms_cmds_CXX | \
13738
 
    export_symbols_cmds_CXX | \
13739
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13740
 
    postinstall_cmds | postuninstall_cmds | \
13741
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13742
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13743
 
      # Double-quote double-evaled strings.
13744
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13745
 
      ;;
13746
 
    *)
13747
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13748
 
      ;;
13749
 
    esac
13750
 
  done
13751
 
 
13752
 
  case $lt_echo in
13753
 
  *'\$0 --fallback-echo"')
13754
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13755
 
    ;;
13756
 
  esac
13757
 
 
13758
 
cfgfile="$ofile"
13759
 
 
13760
 
  cat <<__EOF__ >> "$cfgfile"
13761
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13762
 
 
13763
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13764
 
 
13765
 
# Shell to use when invoking shell scripts.
13766
 
SHELL=$lt_SHELL
13767
 
 
13768
 
# Whether or not to build shared libraries.
13769
 
build_libtool_libs=$enable_shared
13770
 
 
13771
 
# Whether or not to build static libraries.
13772
 
build_old_libs=$enable_static
13773
 
 
13774
 
# Whether or not to add -lc for building shared libraries.
13775
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13776
 
 
13777
 
# Whether or not to disallow shared libs when runtime libs are static
13778
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13779
 
 
13780
 
# Whether or not to optimize for fast installation.
13781
 
fast_install=$enable_fast_install
13782
 
 
13783
 
# The host system.
13784
 
host_alias=$host_alias
13785
 
host=$host
13786
 
host_os=$host_os
13787
 
 
13788
 
# The build system.
13789
 
build_alias=$build_alias
13790
 
build=$build
13791
 
build_os=$build_os
13792
 
 
13793
 
# An echo program that does not interpret backslashes.
13794
 
echo=$lt_echo
13795
 
 
13796
 
# The archiver.
13797
 
AR=$lt_AR
13798
 
AR_FLAGS=$lt_AR_FLAGS
13799
 
 
13800
 
# A C compiler.
13801
 
LTCC=$lt_LTCC
13802
 
 
13803
 
# LTCC compiler flags.
13804
 
LTCFLAGS=$lt_LTCFLAGS
13805
 
 
13806
 
# A language-specific compiler.
13807
 
CC=$lt_compiler_CXX
13808
 
 
13809
 
# Is the compiler the GNU C compiler?
13810
 
with_gcc=$GCC_CXX
13811
 
 
13812
 
# An ERE matcher.
13813
 
EGREP=$lt_EGREP
13814
 
 
13815
 
# The linker used to build libraries.
13816
 
LD=$lt_LD_CXX
13817
 
 
13818
 
# Whether we need hard or soft links.
13819
 
LN_S=$lt_LN_S
13820
 
 
13821
 
# A BSD-compatible nm program.
13822
 
NM=$lt_NM
13823
 
 
13824
 
# A symbol stripping program
13825
 
STRIP=$lt_STRIP
13826
 
 
13827
 
# Used to examine libraries when file_magic_cmd begins "file"
13828
 
MAGIC_CMD=$MAGIC_CMD
13829
 
 
13830
 
# Used on cygwin: DLL creation program.
13831
 
DLLTOOL="$DLLTOOL"
13832
 
 
13833
 
# Used on cygwin: object dumper.
13834
 
OBJDUMP="$OBJDUMP"
13835
 
 
13836
 
# Used on cygwin: assembler.
13837
 
AS="$AS"
13838
 
 
13839
 
# The name of the directory that contains temporary libtool files.
13840
 
objdir=$objdir
13841
 
 
13842
 
# How to create reloadable object files.
13843
 
reload_flag=$lt_reload_flag
13844
 
reload_cmds=$lt_reload_cmds
13845
 
 
13846
 
# How to pass a linker flag through the compiler.
13847
 
wl=$lt_lt_prog_compiler_wl_CXX
13848
 
 
13849
 
# Object file suffix (normally "o").
13850
 
objext="$ac_objext"
13851
 
 
13852
 
# Old archive suffix (normally "a").
13853
 
libext="$libext"
13854
 
 
13855
 
# Shared library suffix (normally ".so").
13856
 
shrext_cmds='$shrext_cmds'
13857
 
 
13858
 
# Executable file suffix (normally "").
13859
 
exeext="$exeext"
13860
 
 
13861
 
# Additional compiler flags for building library objects.
13862
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13863
 
pic_mode=$pic_mode
13864
 
 
13865
 
# What is the maximum length of a command?
13866
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13867
 
 
13868
 
# Does compiler simultaneously support -c and -o options?
13869
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13870
 
 
13871
 
# Must we lock files when doing compilation?
13872
 
need_locks=$lt_need_locks
13873
 
 
13874
 
# Do we need the lib prefix for modules?
13875
 
need_lib_prefix=$need_lib_prefix
13876
 
 
13877
 
# Do we need a version for libraries?
13878
 
need_version=$need_version
13879
 
 
13880
 
# Whether dlopen is supported.
13881
 
dlopen_support=$enable_dlopen
13882
 
 
13883
 
# Whether dlopen of programs is supported.
13884
 
dlopen_self=$enable_dlopen_self
13885
 
 
13886
 
# Whether dlopen of statically linked programs is supported.
13887
 
dlopen_self_static=$enable_dlopen_self_static
13888
 
 
13889
 
# Compiler flag to prevent dynamic linking.
13890
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13891
 
 
13892
 
# Compiler flag to turn off builtin functions.
13893
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13894
 
 
13895
 
# Compiler flag to allow reflexive dlopens.
13896
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13897
 
 
13898
 
# Compiler flag to generate shared objects directly from archives.
13899
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13900
 
 
13901
 
# Compiler flag to generate thread-safe objects.
13902
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13903
 
 
13904
 
# Library versioning type.
13905
 
version_type=$version_type
13906
 
 
13907
 
# Format of library name prefix.
13908
 
libname_spec=$lt_libname_spec
13909
 
 
13910
 
# List of archive names.  First name is the real one, the rest are links.
13911
 
# The last name is the one that the linker finds with -lNAME.
13912
 
library_names_spec=$lt_library_names_spec
13913
 
 
13914
 
# The coded name of the library, if different from the real name.
13915
 
soname_spec=$lt_soname_spec
13916
 
 
13917
 
# Commands used to build and install an old-style archive.
13918
 
RANLIB=$lt_RANLIB
13919
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13920
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13921
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13922
 
 
13923
 
# Create an old-style archive from a shared archive.
13924
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13925
 
 
13926
 
# Create a temporary old-style archive to link instead of a shared archive.
13927
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13928
 
 
13929
 
# Commands used to build and install a shared archive.
13930
 
archive_cmds=$lt_archive_cmds_CXX
13931
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13932
 
postinstall_cmds=$lt_postinstall_cmds
13933
 
postuninstall_cmds=$lt_postuninstall_cmds
13934
 
 
13935
 
# Commands used to build a loadable module (assumed same as above if empty)
13936
 
module_cmds=$lt_module_cmds_CXX
13937
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13938
 
 
13939
 
# Commands to strip libraries.
13940
 
old_striplib=$lt_old_striplib
13941
 
striplib=$lt_striplib
13942
 
 
13943
 
# Dependencies to place before the objects being linked to create a
13944
 
# shared library.
13945
 
predep_objects=$lt_predep_objects_CXX
13946
 
 
13947
 
# Dependencies to place after the objects being linked to create a
13948
 
# shared library.
13949
 
postdep_objects=$lt_postdep_objects_CXX
13950
 
 
13951
 
# Dependencies to place before the objects being linked to create a
13952
 
# shared library.
13953
 
predeps=$lt_predeps_CXX
13954
 
 
13955
 
# Dependencies to place after the objects being linked to create a
13956
 
# shared library.
13957
 
postdeps=$lt_postdeps_CXX
13958
 
 
13959
 
# The directories searched by this compiler when creating a shared
13960
 
# library
13961
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13962
 
 
13963
 
# The library search path used internally by the compiler when linking
13964
 
# a shared library.
13965
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13966
 
 
13967
 
# Method to check whether dependent libraries are shared objects.
13968
 
deplibs_check_method=$lt_deplibs_check_method
13969
 
 
13970
 
# Command to use when deplibs_check_method == file_magic.
13971
 
file_magic_cmd=$lt_file_magic_cmd
13972
 
 
13973
 
# Flag that allows shared libraries with undefined symbols to be built.
13974
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13975
 
 
13976
 
# Flag that forces no undefined symbols.
13977
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13978
 
 
13979
 
# Commands used to finish a libtool library installation in a directory.
13980
 
finish_cmds=$lt_finish_cmds
13981
 
 
13982
 
# Same as above, but a single script fragment to be evaled but not shown.
13983
 
finish_eval=$lt_finish_eval
13984
 
 
13985
 
# Take the output of nm and produce a listing of raw symbols and C names.
13986
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13987
 
 
13988
 
# Transform the output of nm in a proper C declaration
13989
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13990
 
 
13991
 
# Transform the output of nm in a C name address pair
13992
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13993
 
 
13994
 
# This is the shared library runtime path variable.
13995
 
runpath_var=$runpath_var
13996
 
 
13997
 
# This is the shared library path variable.
13998
 
shlibpath_var=$shlibpath_var
13999
 
 
14000
 
# Is shlibpath searched before the hard-coded library search path?
14001
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14002
 
 
14003
 
# How to hardcode a shared library path into an executable.
14004
 
hardcode_action=$hardcode_action_CXX
14005
 
 
14006
 
# Whether we should hardcode library paths into libraries.
14007
 
hardcode_into_libs=$hardcode_into_libs
14008
 
 
14009
 
# Flag to hardcode \$libdir into a binary during linking.
14010
 
# This must work even if \$libdir does not exist.
14011
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14012
 
 
14013
 
# If ld is used when linking, flag to hardcode \$libdir into
14014
 
# a binary during linking. This must work even if \$libdir does
14015
 
# not exist.
14016
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14017
 
 
14018
 
# Whether we need a single -rpath flag with a separated argument.
14019
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14020
 
 
14021
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14022
 
# resulting binary.
14023
 
hardcode_direct=$hardcode_direct_CXX
14024
 
 
14025
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14026
 
# resulting binary.
14027
 
hardcode_minus_L=$hardcode_minus_L_CXX
14028
 
 
14029
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14030
 
# the resulting binary.
14031
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14032
 
 
14033
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14034
 
# and all subsequent libraries and executables linked against it.
14035
 
hardcode_automatic=$hardcode_automatic_CXX
14036
 
 
14037
 
# Variables whose values should be saved in libtool wrapper scripts and
14038
 
# restored at relink time.
14039
 
variables_saved_for_relink="$variables_saved_for_relink"
14040
 
 
14041
 
# Whether libtool must link a program against all its dependency libraries.
14042
 
link_all_deplibs=$link_all_deplibs_CXX
14043
 
 
14044
 
# Compile-time system search path for libraries
14045
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14046
 
 
14047
 
# Run-time system search path for libraries
14048
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14049
 
 
14050
 
# Fix the shell variable \$srcfile for the compiler.
14051
 
fix_srcfile_path=$lt_fix_srcfile_path
14052
 
 
14053
 
# Set to yes if exported symbols are required.
14054
 
always_export_symbols=$always_export_symbols_CXX
14055
 
 
14056
 
# The commands to list exported symbols.
14057
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14058
 
 
14059
 
# The commands to extract the exported symbol list from a shared archive.
14060
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14061
 
 
14062
 
# Symbols that should not be listed in the preloaded symbols.
14063
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14064
 
 
14065
 
# Symbols that must always be exported.
14066
 
include_expsyms=$lt_include_expsyms_CXX
14067
 
 
14068
 
# ### END LIBTOOL TAG CONFIG: $tagname
14069
 
 
14070
 
__EOF__
14071
 
 
14072
 
 
14073
 
else
14074
 
  # If there is no Makefile yet, we rely on a make rule to execute
14075
 
  # `config.status --recheck' to rerun these tests and create the
14076
 
  # libtool script then.
14077
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14078
 
  if test -f "$ltmain_in"; then
14079
 
    test -f Makefile && make "$ltmain"
14080
 
  fi
14081
 
fi
14082
 
 
14083
 
 
14084
 
ac_ext=c
14085
 
ac_cpp='$CPP $CPPFLAGS'
14086
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
 
 
14090
 
CC=$lt_save_CC
14091
 
LDCXX=$LD
14092
 
LD=$lt_save_LD
14093
 
GCC=$lt_save_GCC
14094
 
with_gnu_ldcxx=$with_gnu_ld
14095
 
with_gnu_ld=$lt_save_with_gnu_ld
14096
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14097
 
lt_cv_path_LD=$lt_save_path_LD
14098
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14099
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14100
 
 
14101
 
        else
14102
 
          tagname=""
14103
 
        fi
14104
 
        ;;
14105
 
 
14106
 
      F77)
14107
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14108
 
 
14109
 
ac_ext=f
14110
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14111
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14113
 
 
14114
 
 
14115
 
archive_cmds_need_lc_F77=no
14116
 
allow_undefined_flag_F77=
14117
 
always_export_symbols_F77=no
14118
 
archive_expsym_cmds_F77=
14119
 
export_dynamic_flag_spec_F77=
14120
 
hardcode_direct_F77=no
14121
 
hardcode_libdir_flag_spec_F77=
14122
 
hardcode_libdir_flag_spec_ld_F77=
14123
 
hardcode_libdir_separator_F77=
14124
 
hardcode_minus_L_F77=no
14125
 
hardcode_automatic_F77=no
14126
 
module_cmds_F77=
14127
 
module_expsym_cmds_F77=
14128
 
link_all_deplibs_F77=unknown
14129
 
old_archive_cmds_F77=$old_archive_cmds
14130
 
no_undefined_flag_F77=
14131
 
whole_archive_flag_spec_F77=
14132
 
enable_shared_with_static_runtimes_F77=no
14133
 
 
14134
 
# Source file extension for f77 test sources.
14135
 
ac_ext=f
14136
 
 
14137
 
# Object file extension for compiled f77 test sources.
14138
 
objext=o
14139
 
objext_F77=$objext
14140
 
 
14141
 
# Code to be used in simple compile tests
14142
 
lt_simple_compile_test_code="\
14143
 
      subroutine t
14144
 
      return
14145
 
      end
14146
 
"
14147
 
 
14148
 
# Code to be used in simple link tests
14149
 
lt_simple_link_test_code="\
14150
 
      program t
14151
 
      end
14152
 
"
14153
 
 
14154
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14155
 
 
14156
 
# If no C compiler was specified, use CC.
14157
 
LTCC=${LTCC-"$CC"}
14158
 
 
14159
 
# If no C compiler flags were specified, use CFLAGS.
14160
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161
 
 
14162
 
# Allow CC to be a program name with arguments.
14163
 
compiler=$CC
14164
 
 
14165
 
 
14166
 
# save warnings/boilerplate of simple test code
14167
 
ac_outfile=conftest.$ac_objext
14168
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14169
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170
 
_lt_compiler_boilerplate=`cat conftest.err`
14171
 
$rm conftest*
14172
 
 
14173
 
ac_outfile=conftest.$ac_objext
14174
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14175
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176
 
_lt_linker_boilerplate=`cat conftest.err`
14177
 
$rm -r conftest*
14178
 
 
14179
 
 
14180
 
# Allow CC to be a program name with arguments.
14181
 
lt_save_CC="$CC"
14182
 
CC=${F77-"f77"}
14183
 
compiler=$CC
14184
 
compiler_F77=$CC
14185
 
for cc_temp in $compiler""; do
14186
 
  case $cc_temp in
14187
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14188
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14189
 
    \-*) ;;
14190
 
    *) break;;
14191
 
  esac
14192
 
done
14193
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14194
 
 
14195
 
 
14196
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14197
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14198
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14199
 
echo "${ECHO_T}$can_build_shared" >&6; }
14200
 
 
14201
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14202
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14203
 
test "$can_build_shared" = "no" && enable_shared=no
14204
 
 
14205
 
# On AIX, shared libraries and static libraries use the same namespace, and
14206
 
# are all built from PIC.
14207
 
case $host_os in
14208
 
aix3*)
14209
 
  test "$enable_shared" = yes && enable_static=no
14210
 
  if test -n "$RANLIB"; then
14211
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14212
 
    postinstall_cmds='$RANLIB $lib'
14213
 
  fi
14214
 
  ;;
14215
 
aix[4-9]*)
14216
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14217
 
    test "$enable_shared" = yes && enable_static=no
14218
 
  fi
14219
 
  ;;
14220
 
esac
14221
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14222
 
echo "${ECHO_T}$enable_shared" >&6; }
14223
 
 
14224
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14225
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14226
 
# Make sure either enable_shared or enable_static is yes.
14227
 
test "$enable_shared" = yes || enable_static=yes
14228
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14229
 
echo "${ECHO_T}$enable_static" >&6; }
14230
 
 
14231
 
GCC_F77="$G77"
14232
 
LD_F77="$LD"
14233
 
 
14234
 
lt_prog_compiler_wl_F77=
14235
 
lt_prog_compiler_pic_F77=
14236
 
lt_prog_compiler_static_F77=
14237
 
 
14238
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14239
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14240
 
 
14241
 
  if test "$GCC" = yes; then
14242
 
    lt_prog_compiler_wl_F77='-Wl,'
14243
 
    lt_prog_compiler_static_F77='-static'
14244
 
 
14245
 
    case $host_os in
14246
 
      aix*)
14247
 
      # All AIX code is PIC.
14248
 
      if test "$host_cpu" = ia64; then
14249
 
        # AIX 5 now supports IA64 processor
14250
 
        lt_prog_compiler_static_F77='-Bstatic'
14251
 
      fi
14252
 
      ;;
14253
 
 
14254
 
    amigaos*)
14255
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14256
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14257
 
      # like `-m68040'.
14258
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14259
 
      ;;
14260
 
 
14261
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14262
 
      # PIC is the default for these OSes.
14263
 
      ;;
14264
 
 
14265
 
    mingw* | cygwin* | pw32* | os2*)
14266
 
      # This hack is so that the source file can tell whether it is being
14267
 
      # built for inclusion in a dll (and should export symbols for example).
14268
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14269
 
      # (--disable-auto-import) libraries
14270
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14271
 
      ;;
14272
 
 
14273
 
    darwin* | rhapsody*)
14274
 
      # PIC is the default on this platform
14275
 
      # Common symbols not allowed in MH_DYLIB files
14276
 
      lt_prog_compiler_pic_F77='-fno-common'
14277
 
      ;;
14278
 
 
14279
 
    interix[3-9]*)
14280
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281
 
      # Instead, we relocate shared libraries at runtime.
14282
 
      ;;
14283
 
 
14284
 
    msdosdjgpp*)
14285
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14286
 
      # on systems that don't support them.
14287
 
      lt_prog_compiler_can_build_shared_F77=no
14288
 
      enable_shared=no
14289
 
      ;;
14290
 
 
14291
 
    sysv4*MP*)
14292
 
      if test -d /usr/nec; then
14293
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14294
 
      fi
14295
 
      ;;
14296
 
 
14297
 
    hpux*)
14298
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14299
 
      # not for PA HP-UX.
14300
 
      case $host_cpu in
14301
 
      hppa*64*|ia64*)
14302
 
        # +Z the default
14303
 
        ;;
14304
 
      *)
14305
 
        lt_prog_compiler_pic_F77='-fPIC'
14306
 
        ;;
14307
 
      esac
14308
 
      ;;
14309
 
 
14310
 
    *)
14311
 
      lt_prog_compiler_pic_F77='-fPIC'
14312
 
      ;;
14313
 
    esac
14314
 
  else
14315
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14316
 
    case $host_os in
14317
 
    aix*)
14318
 
      lt_prog_compiler_wl_F77='-Wl,'
14319
 
      if test "$host_cpu" = ia64; then
14320
 
        # AIX 5 now supports IA64 processor
14321
 
        lt_prog_compiler_static_F77='-Bstatic'
14322
 
      else
14323
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14324
 
      fi
14325
 
      ;;
14326
 
      darwin*)
14327
 
        # PIC is the default on this platform
14328
 
        # Common symbols not allowed in MH_DYLIB files
14329
 
       case $cc_basename in
14330
 
         xlc*)
14331
 
         lt_prog_compiler_pic_F77='-qnocommon'
14332
 
         lt_prog_compiler_wl_F77='-Wl,'
14333
 
         ;;
14334
 
       esac
14335
 
       ;;
14336
 
 
14337
 
    mingw* | cygwin* | pw32* | os2*)
14338
 
      # This hack is so that the source file can tell whether it is being
14339
 
      # built for inclusion in a dll (and should export symbols for example).
14340
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14341
 
      ;;
14342
 
 
14343
 
    hpux9* | hpux10* | hpux11*)
14344
 
      lt_prog_compiler_wl_F77='-Wl,'
14345
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14346
 
      # not for PA HP-UX.
14347
 
      case $host_cpu in
14348
 
      hppa*64*|ia64*)
14349
 
        # +Z the default
14350
 
        ;;
14351
 
      *)
14352
 
        lt_prog_compiler_pic_F77='+Z'
14353
 
        ;;
14354
 
      esac
14355
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14356
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14357
 
      ;;
14358
 
 
14359
 
    irix5* | irix6* | nonstopux*)
14360
 
      lt_prog_compiler_wl_F77='-Wl,'
14361
 
      # PIC (with -KPIC) is the default.
14362
 
      lt_prog_compiler_static_F77='-non_shared'
14363
 
      ;;
14364
 
 
14365
 
    newsos6)
14366
 
      lt_prog_compiler_pic_F77='-KPIC'
14367
 
      lt_prog_compiler_static_F77='-Bstatic'
14368
 
      ;;
14369
 
 
14370
 
    linux* | k*bsd*-gnu)
14371
 
      case $cc_basename in
14372
 
      icc* | ecc*)
14373
 
        lt_prog_compiler_wl_F77='-Wl,'
14374
 
        lt_prog_compiler_pic_F77='-KPIC'
14375
 
        lt_prog_compiler_static_F77='-static'
14376
 
        ;;
14377
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14378
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14379
 
        # which looks to be a dead project)
14380
 
        lt_prog_compiler_wl_F77='-Wl,'
14381
 
        lt_prog_compiler_pic_F77='-fpic'
14382
 
        lt_prog_compiler_static_F77='-Bstatic'
14383
 
        ;;
14384
 
      ccc*)
14385
 
        lt_prog_compiler_wl_F77='-Wl,'
14386
 
        # All Alpha code is PIC.
14387
 
        lt_prog_compiler_static_F77='-non_shared'
14388
 
        ;;
14389
 
      *)
14390
 
        case `$CC -V 2>&1 | sed 5q` in
14391
 
        *Sun\ C*)
14392
 
          # Sun C 5.9
14393
 
          lt_prog_compiler_pic_F77='-KPIC'
14394
 
          lt_prog_compiler_static_F77='-Bstatic'
14395
 
          lt_prog_compiler_wl_F77='-Wl,'
14396
 
          ;;
14397
 
        *Sun\ F*)
14398
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14399
 
          lt_prog_compiler_pic_F77='-KPIC'
14400
 
          lt_prog_compiler_static_F77='-Bstatic'
14401
 
          lt_prog_compiler_wl_F77=''
14402
 
          ;;
14403
 
        esac
14404
 
        ;;
14405
 
      esac
14406
 
      ;;
14407
 
 
14408
 
    osf3* | osf4* | osf5*)
14409
 
      lt_prog_compiler_wl_F77='-Wl,'
14410
 
      # All OSF/1 code is PIC.
14411
 
      lt_prog_compiler_static_F77='-non_shared'
14412
 
      ;;
14413
 
 
14414
 
    rdos*)
14415
 
      lt_prog_compiler_static_F77='-non_shared'
14416
 
      ;;
14417
 
 
14418
 
    solaris*)
14419
 
      lt_prog_compiler_pic_F77='-KPIC'
14420
 
      lt_prog_compiler_static_F77='-Bstatic'
14421
 
      case $cc_basename in
14422
 
      f77* | f90* | f95*)
14423
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14424
 
      *)
14425
 
        lt_prog_compiler_wl_F77='-Wl,';;
14426
 
      esac
14427
 
      ;;
14428
 
 
14429
 
    sunos4*)
14430
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14431
 
      lt_prog_compiler_pic_F77='-PIC'
14432
 
      lt_prog_compiler_static_F77='-Bstatic'
14433
 
      ;;
14434
 
 
14435
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14436
 
      lt_prog_compiler_wl_F77='-Wl,'
14437
 
      lt_prog_compiler_pic_F77='-KPIC'
14438
 
      lt_prog_compiler_static_F77='-Bstatic'
14439
 
      ;;
14440
 
 
14441
 
    sysv4*MP*)
14442
 
      if test -d /usr/nec ;then
14443
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14444
 
        lt_prog_compiler_static_F77='-Bstatic'
14445
 
      fi
14446
 
      ;;
14447
 
 
14448
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14449
 
      lt_prog_compiler_wl_F77='-Wl,'
14450
 
      lt_prog_compiler_pic_F77='-KPIC'
14451
 
      lt_prog_compiler_static_F77='-Bstatic'
14452
 
      ;;
14453
 
 
14454
 
    unicos*)
14455
 
      lt_prog_compiler_wl_F77='-Wl,'
14456
 
      lt_prog_compiler_can_build_shared_F77=no
14457
 
      ;;
14458
 
 
14459
 
    uts4*)
14460
 
      lt_prog_compiler_pic_F77='-pic'
14461
 
      lt_prog_compiler_static_F77='-Bstatic'
14462
 
      ;;
14463
 
 
14464
 
    *)
14465
 
      lt_prog_compiler_can_build_shared_F77=no
14466
 
      ;;
14467
 
    esac
14468
 
  fi
14469
 
 
14470
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14471
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14472
 
 
14473
 
#
14474
 
# Check to make sure the PIC flag actually works.
14475
 
#
14476
 
if test -n "$lt_prog_compiler_pic_F77"; then
14477
 
 
14478
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14479
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14480
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14482
 
else
14483
 
  lt_cv_prog_compiler_pic_works_F77=no
14484
 
  ac_outfile=conftest.$ac_objext
14485
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14487
 
   # Insert the option either (1) after the last *FLAGS variable, or
14488
 
   # (2) before a word containing "conftest.", or (3) at the end.
14489
 
   # Note that $ac_compile itself does not contain backslashes and begins
14490
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14491
 
   # The option is referenced via a variable to avoid confusing sed.
14492
 
   lt_compile=`echo "$ac_compile" | $SED \
14493
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495
 
   -e 's:$: $lt_compiler_flag:'`
14496
 
   (eval echo "\"\$as_me:14496: $lt_compile\"" >&5)
14497
 
   (eval "$lt_compile" 2>conftest.err)
14498
 
   ac_status=$?
14499
 
   cat conftest.err >&5
14500
 
   echo "$as_me:14500: \$? = $ac_status" >&5
14501
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14502
 
     # The compiler can only warn and ignore the option if not recognized
14503
 
     # So say no if there are warnings other than the usual output.
14504
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507
 
       lt_cv_prog_compiler_pic_works_F77=yes
14508
 
     fi
14509
 
   fi
14510
 
   $rm conftest*
14511
 
 
14512
 
fi
14513
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14514
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14515
 
 
14516
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14517
 
    case $lt_prog_compiler_pic_F77 in
14518
 
     "" | " "*) ;;
14519
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14520
 
     esac
14521
 
else
14522
 
    lt_prog_compiler_pic_F77=
14523
 
     lt_prog_compiler_can_build_shared_F77=no
14524
 
fi
14525
 
 
14526
 
fi
14527
 
case $host_os in
14528
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14529
 
  *djgpp*)
14530
 
    lt_prog_compiler_pic_F77=
14531
 
    ;;
14532
 
  *)
14533
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14534
 
    ;;
14535
 
esac
14536
 
 
14537
 
#
14538
 
# Check to make sure the static flag actually works.
14539
 
#
14540
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14541
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14543
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14544
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14545
 
else
14546
 
  lt_cv_prog_compiler_static_works_F77=no
14547
 
   save_LDFLAGS="$LDFLAGS"
14548
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551
 
     # The linker can only warn and ignore the option if not recognized
14552
 
     # So say no if there are warnings
14553
 
     if test -s conftest.err; then
14554
 
       # Append any errors to the config.log.
14555
 
       cat conftest.err 1>&5
14556
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14557
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14559
 
         lt_cv_prog_compiler_static_works_F77=yes
14560
 
       fi
14561
 
     else
14562
 
       lt_cv_prog_compiler_static_works_F77=yes
14563
 
     fi
14564
 
   fi
14565
 
   $rm -r conftest*
14566
 
   LDFLAGS="$save_LDFLAGS"
14567
 
 
14568
 
fi
14569
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14570
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14571
 
 
14572
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14573
 
    :
14574
 
else
14575
 
    lt_prog_compiler_static_F77=
14576
 
fi
14577
 
 
14578
 
 
14579
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14580
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14581
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14583
 
else
14584
 
  lt_cv_prog_compiler_c_o_F77=no
14585
 
   $rm -r conftest 2>/dev/null
14586
 
   mkdir conftest
14587
 
   cd conftest
14588
 
   mkdir out
14589
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14590
 
 
14591
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14592
 
   # Insert the option either (1) after the last *FLAGS variable, or
14593
 
   # (2) before a word containing "conftest.", or (3) at the end.
14594
 
   # Note that $ac_compile itself does not contain backslashes and begins
14595
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14596
 
   lt_compile=`echo "$ac_compile" | $SED \
14597
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14598
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14599
 
   -e 's:$: $lt_compiler_flag:'`
14600
 
   (eval echo "\"\$as_me:14600: $lt_compile\"" >&5)
14601
 
   (eval "$lt_compile" 2>out/conftest.err)
14602
 
   ac_status=$?
14603
 
   cat out/conftest.err >&5
14604
 
   echo "$as_me:14604: \$? = $ac_status" >&5
14605
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14606
 
   then
14607
 
     # The compiler can only warn and ignore the option if not recognized
14608
 
     # So say no if there are warnings
14609
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14610
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14611
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14612
 
       lt_cv_prog_compiler_c_o_F77=yes
14613
 
     fi
14614
 
   fi
14615
 
   chmod u+w . 2>&5
14616
 
   $rm conftest*
14617
 
   # SGI C++ compiler will create directory out/ii_files/ for
14618
 
   # template instantiation
14619
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14620
 
   $rm out/* && rmdir out
14621
 
   cd ..
14622
 
   rmdir conftest
14623
 
   $rm conftest*
14624
 
 
14625
 
fi
14626
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14627
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14628
 
 
14629
 
 
14630
 
hard_links="nottested"
14631
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14632
 
  # do not overwrite the value of need_locks provided by the user
14633
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14634
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14635
 
  hard_links=yes
14636
 
  $rm conftest*
14637
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14638
 
  touch conftest.a
14639
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14640
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14642
 
echo "${ECHO_T}$hard_links" >&6; }
14643
 
  if test "$hard_links" = no; then
14644
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14645
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14646
 
    need_locks=warn
14647
 
  fi
14648
 
else
14649
 
  need_locks=no
14650
 
fi
14651
 
 
14652
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14653
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14654
 
 
14655
 
  runpath_var=
14656
 
  allow_undefined_flag_F77=
14657
 
  enable_shared_with_static_runtimes_F77=no
14658
 
  archive_cmds_F77=
14659
 
  archive_expsym_cmds_F77=
14660
 
  old_archive_From_new_cmds_F77=
14661
 
  old_archive_from_expsyms_cmds_F77=
14662
 
  export_dynamic_flag_spec_F77=
14663
 
  whole_archive_flag_spec_F77=
14664
 
  thread_safe_flag_spec_F77=
14665
 
  hardcode_libdir_flag_spec_F77=
14666
 
  hardcode_libdir_flag_spec_ld_F77=
14667
 
  hardcode_libdir_separator_F77=
14668
 
  hardcode_direct_F77=no
14669
 
  hardcode_minus_L_F77=no
14670
 
  hardcode_shlibpath_var_F77=unsupported
14671
 
  link_all_deplibs_F77=unknown
14672
 
  hardcode_automatic_F77=no
14673
 
  module_cmds_F77=
14674
 
  module_expsym_cmds_F77=
14675
 
  always_export_symbols_F77=no
14676
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14678
 
  # included in the symbol list
14679
 
  include_expsyms_F77=
14680
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14681
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14682
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14683
 
  # as well as any symbol that contains `d'.
14684
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14685
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14686
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14687
 
  # the symbol is explicitly referenced.  Since portable code cannot
14688
 
  # rely on this symbol name, it's probably fine to never include it in
14689
 
  # preloaded symbol tables.
14690
 
  # Exclude shared library initialization/finalization symbols.
14691
 
  extract_expsyms_cmds=
14692
 
  # Just being paranoid about ensuring that cc_basename is set.
14693
 
  for cc_temp in $compiler""; do
14694
 
  case $cc_temp in
14695
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14696
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14697
 
    \-*) ;;
14698
 
    *) break;;
14699
 
  esac
14700
 
done
14701
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14702
 
 
14703
 
  case $host_os in
14704
 
  cygwin* | mingw* | pw32*)
14705
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14706
 
    # When not using gcc, we currently assume that we are using
14707
 
    # Microsoft Visual C++.
14708
 
    if test "$GCC" != yes; then
14709
 
      with_gnu_ld=no
14710
 
    fi
14711
 
    ;;
14712
 
  interix*)
14713
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14714
 
    with_gnu_ld=yes
14715
 
    ;;
14716
 
  openbsd*)
14717
 
    with_gnu_ld=no
14718
 
    ;;
14719
 
  esac
14720
 
 
14721
 
  ld_shlibs_F77=yes
14722
 
  if test "$with_gnu_ld" = yes; then
14723
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14724
 
    wlarc='${wl}'
14725
 
 
14726
 
    # Set some defaults for GNU ld with shared library support. These
14727
 
    # are reset later if shared libraries are not supported. Putting them
14728
 
    # here allows them to be overridden if necessary.
14729
 
    runpath_var=LD_RUN_PATH
14730
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14731
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14732
 
    # ancient GNU ld didn't support --whole-archive et. al.
14733
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14734
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14735
 
      else
14736
 
        whole_archive_flag_spec_F77=
14737
 
    fi
14738
 
    supports_anon_versioning=no
14739
 
    case `$LD -v 2>/dev/null` in
14740
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14741
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14742
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14743
 
      *\ 2.11.*) ;; # other 2.11 versions
14744
 
      *) supports_anon_versioning=yes ;;
14745
 
    esac
14746
 
 
14747
 
    # See if GNU ld supports shared libraries.
14748
 
    case $host_os in
14749
 
    aix[3-9]*)
14750
 
      # On AIX/PPC, the GNU linker is very broken
14751
 
      if test "$host_cpu" != ia64; then
14752
 
        ld_shlibs_F77=no
14753
 
        cat <<EOF 1>&2
14754
 
 
14755
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14756
 
*** to be unable to reliably create shared libraries on AIX.
14757
 
*** Therefore, libtool is disabling shared libraries support.  If you
14758
 
*** really care for shared libraries, you may want to modify your PATH
14759
 
*** so that a non-GNU linker is found, and then restart.
14760
 
 
14761
 
EOF
14762
 
      fi
14763
 
      ;;
14764
 
 
14765
 
    amigaos*)
14766
 
      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)'
14767
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14768
 
      hardcode_minus_L_F77=yes
14769
 
 
14770
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14771
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14772
 
      # to version 4, is to share data among multiple programs linked
14773
 
      # with the same dynamic library.  Since this doesn't match the
14774
 
      # behavior of shared libraries on other platforms, we can't use
14775
 
      # them.
14776
 
      ld_shlibs_F77=no
14777
 
      ;;
14778
 
 
14779
 
    beos*)
14780
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14781
 
        allow_undefined_flag_F77=unsupported
14782
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14783
 
        # support --undefined.  This deserves some investigation.  FIXME
14784
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785
 
      else
14786
 
        ld_shlibs_F77=no
14787
 
      fi
14788
 
      ;;
14789
 
 
14790
 
    cygwin* | mingw* | pw32*)
14791
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14792
 
      # as there is no search path for DLLs.
14793
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14794
 
      allow_undefined_flag_F77=unsupported
14795
 
      always_export_symbols_F77=no
14796
 
      enable_shared_with_static_runtimes_F77=yes
14797
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14798
 
 
14799
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14800
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14801
 
        # If the export-symbols file already is a .def file (1st line
14802
 
        # is EXPORTS), use it as is; otherwise, prepend...
14803
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14804
 
          cp $export_symbols $output_objdir/$soname.def;
14805
 
        else
14806
 
          echo EXPORTS > $output_objdir/$soname.def;
14807
 
          cat $export_symbols >> $output_objdir/$soname.def;
14808
 
        fi~
14809
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14810
 
      else
14811
 
        ld_shlibs_F77=no
14812
 
      fi
14813
 
      ;;
14814
 
 
14815
 
    interix[3-9]*)
14816
 
      hardcode_direct_F77=no
14817
 
      hardcode_shlibpath_var_F77=no
14818
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14819
 
      export_dynamic_flag_spec_F77='${wl}-E'
14820
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14821
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14822
 
      # default) and relocated if they conflict, which is a slow very memory
14823
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14824
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14825
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14826
 
      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'
14827
 
      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'
14828
 
      ;;
14829
 
 
14830
 
    gnu* | linux* | k*bsd*-gnu)
14831
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832
 
        tmp_addflag=
14833
 
        case $cc_basename,$host_cpu in
14834
 
        pgcc*)                          # Portland Group C compiler
14835
 
          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'
14836
 
          tmp_addflag=' $pic_flag'
14837
 
          ;;
14838
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14839
 
          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'
14840
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14841
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14842
 
          tmp_addflag=' -i_dynamic' ;;
14843
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14844
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14845
 
        ifc* | ifort*)                  # Intel Fortran compiler
14846
 
          tmp_addflag=' -nofor_main' ;;
14847
 
        esac
14848
 
        case `$CC -V 2>&1 | sed 5q` in
14849
 
        *Sun\ C*)                       # Sun C 5.9
14850
 
          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'
14851
 
          tmp_sharedflag='-G' ;;
14852
 
        *Sun\ F*)                       # Sun Fortran 8.3
14853
 
          tmp_sharedflag='-G' ;;
14854
 
        *)
14855
 
          tmp_sharedflag='-shared' ;;
14856
 
        esac
14857
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14858
 
 
14859
 
        if test $supports_anon_versioning = yes; then
14860
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14861
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14862
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14863
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14864
 
        fi
14865
 
        link_all_deplibs_F77=no
14866
 
      else
14867
 
        ld_shlibs_F77=no
14868
 
      fi
14869
 
      ;;
14870
 
 
14871
 
    netbsd* | netbsdelf*-gnu)
14872
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14874
 
        wlarc=
14875
 
      else
14876
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878
 
      fi
14879
 
      ;;
14880
 
 
14881
 
    solaris*)
14882
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14883
 
        ld_shlibs_F77=no
14884
 
        cat <<EOF 1>&2
14885
 
 
14886
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14888
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14889
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14890
 
*** your PATH or compiler configuration so that the native linker is
14891
 
*** used, and then restart.
14892
 
 
14893
 
EOF
14894
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897
 
      else
14898
 
        ld_shlibs_F77=no
14899
 
      fi
14900
 
      ;;
14901
 
 
14902
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903
 
      case `$LD -v 2>&1` in
14904
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14905
 
        ld_shlibs_F77=no
14906
 
        cat <<_LT_EOF 1>&2
14907
 
 
14908
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14910
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14911
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14912
 
*** your PATH or compiler configuration so that the native linker is
14913
 
*** used, and then restart.
14914
 
 
14915
 
_LT_EOF
14916
 
        ;;
14917
 
        *)
14918
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14922
 
          else
14923
 
            ld_shlibs_F77=no
14924
 
          fi
14925
 
        ;;
14926
 
      esac
14927
 
      ;;
14928
 
 
14929
 
    sunos4*)
14930
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931
 
      wlarc=
14932
 
      hardcode_direct_F77=yes
14933
 
      hardcode_shlibpath_var_F77=no
14934
 
      ;;
14935
 
 
14936
 
    *)
14937
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940
 
      else
14941
 
        ld_shlibs_F77=no
14942
 
      fi
14943
 
      ;;
14944
 
    esac
14945
 
 
14946
 
    if test "$ld_shlibs_F77" = no; then
14947
 
      runpath_var=
14948
 
      hardcode_libdir_flag_spec_F77=
14949
 
      export_dynamic_flag_spec_F77=
14950
 
      whole_archive_flag_spec_F77=
14951
 
    fi
14952
 
  else
14953
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14954
 
    case $host_os in
14955
 
    aix3*)
14956
 
      allow_undefined_flag_F77=unsupported
14957
 
      always_export_symbols_F77=yes
14958
 
      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'
14959
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14960
 
      # are no directories specified by -L.
14961
 
      hardcode_minus_L_F77=yes
14962
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963
 
        # Neither direct hardcoding nor static linking is supported with a
14964
 
        # broken collect2.
14965
 
        hardcode_direct_F77=unsupported
14966
 
      fi
14967
 
      ;;
14968
 
 
14969
 
    aix[4-9]*)
14970
 
      if test "$host_cpu" = ia64; then
14971
 
        # On IA64, the linker does run time linking by default, so we don't
14972
 
        # have to do anything special.
14973
 
        aix_use_runtimelinking=no
14974
 
        exp_sym_flag='-Bexport'
14975
 
        no_entry_flag=""
14976
 
      else
14977
 
        # If we're using GNU nm, then we don't want the "-C" option.
14978
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14979
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980
 
          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'
14981
 
        else
14982
 
          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'
14983
 
        fi
14984
 
        aix_use_runtimelinking=no
14985
 
 
14986
 
        # Test if we are trying to use run time linking or normal
14987
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988
 
        # need to do runtime linking.
14989
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14990
 
          for ld_flag in $LDFLAGS; do
14991
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992
 
            aix_use_runtimelinking=yes
14993
 
            break
14994
 
          fi
14995
 
          done
14996
 
          ;;
14997
 
        esac
14998
 
 
14999
 
        exp_sym_flag='-bexport'
15000
 
        no_entry_flag='-bnoentry'
15001
 
      fi
15002
 
 
15003
 
      # When large executables or shared objects are built, AIX ld can
15004
 
      # have problems creating the table of contents.  If linking a library
15005
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15006
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15007
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15008
 
 
15009
 
      archive_cmds_F77=''
15010
 
      hardcode_direct_F77=yes
15011
 
      hardcode_libdir_separator_F77=':'
15012
 
      link_all_deplibs_F77=yes
15013
 
 
15014
 
      if test "$GCC" = yes; then
15015
 
        case $host_os in aix4.[012]|aix4.[012].*)
15016
 
        # We only want to do this on AIX 4.2 and lower, the check
15017
 
        # below for broken collect2 doesn't work under 4.3+
15018
 
          collect2name=`${CC} -print-prog-name=collect2`
15019
 
          if test -f "$collect2name" && \
15020
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15021
 
          then
15022
 
          # We have reworked collect2
15023
 
          :
15024
 
          else
15025
 
          # We have old collect2
15026
 
          hardcode_direct_F77=unsupported
15027
 
          # It fails to find uninstalled libraries when the uninstalled
15028
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15029
 
          # to unsupported forces relinking
15030
 
          hardcode_minus_L_F77=yes
15031
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15032
 
          hardcode_libdir_separator_F77=
15033
 
          fi
15034
 
          ;;
15035
 
        esac
15036
 
        shared_flag='-shared'
15037
 
        if test "$aix_use_runtimelinking" = yes; then
15038
 
          shared_flag="$shared_flag "'${wl}-G'
15039
 
        fi
15040
 
      else
15041
 
        # not using gcc
15042
 
        if test "$host_cpu" = ia64; then
15043
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044
 
        # chokes on -Wl,-G. The following line is correct:
15045
 
          shared_flag='-G'
15046
 
        else
15047
 
          if test "$aix_use_runtimelinking" = yes; then
15048
 
            shared_flag='${wl}-G'
15049
 
          else
15050
 
            shared_flag='${wl}-bM:SRE'
15051
 
          fi
15052
 
        fi
15053
 
      fi
15054
 
 
15055
 
      # It seems that -bexpall does not export symbols beginning with
15056
 
      # underscore (_), so it is better to generate a list of symbols to export.
15057
 
      always_export_symbols_F77=yes
15058
 
      if test "$aix_use_runtimelinking" = yes; then
15059
 
        # Warning - without using the other runtime loading flags (-brtl),
15060
 
        # -berok will link without error, but may produce a broken library.
15061
 
        allow_undefined_flag_F77='-berok'
15062
 
       # Determine the default libpath from the value encoded in an empty executable.
15063
 
       cat >conftest.$ac_ext <<_ACEOF
15064
 
      program main
15065
 
 
15066
 
      end
15067
 
_ACEOF
15068
 
rm -f conftest.$ac_objext conftest$ac_exeext
15069
 
if { (ac_try="$ac_link"
15070
 
case "(($ac_try" in
15071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072
 
  *) ac_try_echo=$ac_try;;
15073
 
esac
15074
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075
 
  (eval "$ac_link") 2>conftest.er1
15076
 
  ac_status=$?
15077
 
  grep -v '^ *+' conftest.er1 >conftest.err
15078
 
  rm -f conftest.er1
15079
 
  cat conftest.err >&5
15080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081
 
  (exit $ac_status); } && {
15082
 
         test -z "$ac_f77_werror_flag" ||
15083
 
         test ! -s conftest.err
15084
 
       } && test -s conftest$ac_exeext &&
15085
 
       $as_test_x conftest$ac_exeext; then
15086
 
 
15087
 
lt_aix_libpath_sed='
15088
 
    /Import File Strings/,/^$/ {
15089
 
        /^0/ {
15090
 
            s/^0  *\(.*\)$/\1/
15091
 
            p
15092
 
        }
15093
 
    }'
15094
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095
 
# Check for a 64-bit object if we didn't find anything.
15096
 
if test -z "$aix_libpath"; then
15097
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15098
 
fi
15099
 
else
15100
 
  echo "$as_me: failed program was:" >&5
15101
 
sed 's/^/| /' conftest.$ac_ext >&5
15102
 
 
15103
 
 
15104
 
fi
15105
 
 
15106
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107
 
      conftest$ac_exeext conftest.$ac_ext
15108
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15109
 
 
15110
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15111
 
        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"
15112
 
       else
15113
 
        if test "$host_cpu" = ia64; then
15114
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15115
 
          allow_undefined_flag_F77="-z nodefs"
15116
 
          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"
15117
 
        else
15118
 
         # Determine the default libpath from the value encoded in an empty executable.
15119
 
         cat >conftest.$ac_ext <<_ACEOF
15120
 
      program main
15121
 
 
15122
 
      end
15123
 
_ACEOF
15124
 
rm -f conftest.$ac_objext conftest$ac_exeext
15125
 
if { (ac_try="$ac_link"
15126
 
case "(($ac_try" in
15127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128
 
  *) ac_try_echo=$ac_try;;
15129
 
esac
15130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131
 
  (eval "$ac_link") 2>conftest.er1
15132
 
  ac_status=$?
15133
 
  grep -v '^ *+' conftest.er1 >conftest.err
15134
 
  rm -f conftest.er1
15135
 
  cat conftest.err >&5
15136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137
 
  (exit $ac_status); } && {
15138
 
         test -z "$ac_f77_werror_flag" ||
15139
 
         test ! -s conftest.err
15140
 
       } && test -s conftest$ac_exeext &&
15141
 
       $as_test_x conftest$ac_exeext; then
15142
 
 
15143
 
lt_aix_libpath_sed='
15144
 
    /Import File Strings/,/^$/ {
15145
 
        /^0/ {
15146
 
            s/^0  *\(.*\)$/\1/
15147
 
            p
15148
 
        }
15149
 
    }'
15150
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151
 
# Check for a 64-bit object if we didn't find anything.
15152
 
if test -z "$aix_libpath"; then
15153
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15154
 
fi
15155
 
else
15156
 
  echo "$as_me: failed program was:" >&5
15157
 
sed 's/^/| /' conftest.$ac_ext >&5
15158
 
 
15159
 
 
15160
 
fi
15161
 
 
15162
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163
 
      conftest$ac_exeext conftest.$ac_ext
15164
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15165
 
 
15166
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15167
 
          # Warning - without using the other run time loading flags,
15168
 
          # -berok will link without error, but may produce a broken library.
15169
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15170
 
          allow_undefined_flag_F77=' ${wl}-berok'
15171
 
          # Exported symbols can be pulled into shared objects from archives
15172
 
          whole_archive_flag_spec_F77='$convenience'
15173
 
          archive_cmds_need_lc_F77=yes
15174
 
          # This is similar to how AIX traditionally builds its shared libraries.
15175
 
          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'
15176
 
        fi
15177
 
      fi
15178
 
      ;;
15179
 
 
15180
 
    amigaos*)
15181
 
      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)'
15182
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15183
 
      hardcode_minus_L_F77=yes
15184
 
      # see comment about different semantics on the GNU ld section
15185
 
      ld_shlibs_F77=no
15186
 
      ;;
15187
 
 
15188
 
    bsdi[45]*)
15189
 
      export_dynamic_flag_spec_F77=-rdynamic
15190
 
      ;;
15191
 
 
15192
 
    cygwin* | mingw* | pw32*)
15193
 
      # When not using gcc, we currently assume that we are using
15194
 
      # Microsoft Visual C++.
15195
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15196
 
      # no search path for DLLs.
15197
 
      hardcode_libdir_flag_spec_F77=' '
15198
 
      allow_undefined_flag_F77=unsupported
15199
 
      # Tell ltmain to make .lib files, not .a files.
15200
 
      libext=lib
15201
 
      # Tell ltmain to make .dll files, not .so files.
15202
 
      shrext_cmds=".dll"
15203
 
      # FIXME: Setting linknames here is a bad hack.
15204
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15205
 
      # The linker will automatically build a .lib file if we build a DLL.
15206
 
      old_archive_From_new_cmds_F77='true'
15207
 
      # FIXME: Should let the user specify the lib program.
15208
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15209
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15210
 
      enable_shared_with_static_runtimes_F77=yes
15211
 
      ;;
15212
 
 
15213
 
    darwin* | rhapsody*)
15214
 
      case $host_os in
15215
 
        rhapsody* | darwin1.[012])
15216
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15217
 
         ;;
15218
 
       *) # Darwin 1.3 on
15219
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15220
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15221
 
         else
15222
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15223
 
             10.[012])
15224
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225
 
               ;;
15226
 
             10.*)
15227
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15228
 
               ;;
15229
 
           esac
15230
 
         fi
15231
 
         ;;
15232
 
      esac
15233
 
      archive_cmds_need_lc_F77=no
15234
 
      hardcode_direct_F77=no
15235
 
      hardcode_automatic_F77=yes
15236
 
      hardcode_shlibpath_var_F77=unsupported
15237
 
      whole_archive_flag_spec_F77=''
15238
 
      link_all_deplibs_F77=yes
15239
 
    if test "$GCC" = yes ; then
15240
 
        output_verbose_link_cmd='echo'
15241
 
        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}"
15242
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15243
 
        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}"
15244
 
        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}"
15245
 
    else
15246
 
      case $cc_basename in
15247
 
        xlc*)
15248
 
         output_verbose_link_cmd='echo'
15249
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15250
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15251
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15252
 
         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}'
15253
 
          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}'
15254
 
          ;;
15255
 
       *)
15256
 
         ld_shlibs_F77=no
15257
 
          ;;
15258
 
      esac
15259
 
    fi
15260
 
      ;;
15261
 
 
15262
 
    dgux*)
15263
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15265
 
      hardcode_shlibpath_var_F77=no
15266
 
      ;;
15267
 
 
15268
 
    freebsd1*)
15269
 
      ld_shlibs_F77=no
15270
 
      ;;
15271
 
 
15272
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15273
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15274
 
    # does not break anything, and helps significantly (at the cost of a little
15275
 
    # extra space).
15276
 
    freebsd2.2*)
15277
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15278
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15279
 
      hardcode_direct_F77=yes
15280
 
      hardcode_shlibpath_var_F77=no
15281
 
      ;;
15282
 
 
15283
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15284
 
    freebsd2*)
15285
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286
 
      hardcode_direct_F77=yes
15287
 
      hardcode_minus_L_F77=yes
15288
 
      hardcode_shlibpath_var_F77=no
15289
 
      ;;
15290
 
 
15291
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15292
 
    freebsd* | dragonfly*)
15293
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15294
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15295
 
      hardcode_direct_F77=yes
15296
 
      hardcode_shlibpath_var_F77=no
15297
 
      ;;
15298
 
 
15299
 
    hpux9*)
15300
 
      if test "$GCC" = yes; then
15301
 
        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'
15302
 
      else
15303
 
        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'
15304
 
      fi
15305
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15306
 
      hardcode_libdir_separator_F77=:
15307
 
      hardcode_direct_F77=yes
15308
 
 
15309
 
      # hardcode_minus_L: Not really in the search PATH,
15310
 
      # but as the default location of the library.
15311
 
      hardcode_minus_L_F77=yes
15312
 
      export_dynamic_flag_spec_F77='${wl}-E'
15313
 
      ;;
15314
 
 
15315
 
    hpux10*)
15316
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15317
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15318
 
      else
15319
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15320
 
      fi
15321
 
      if test "$with_gnu_ld" = no; then
15322
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323
 
        hardcode_libdir_separator_F77=:
15324
 
 
15325
 
        hardcode_direct_F77=yes
15326
 
        export_dynamic_flag_spec_F77='${wl}-E'
15327
 
 
15328
 
        # hardcode_minus_L: Not really in the search PATH,
15329
 
        # but as the default location of the library.
15330
 
        hardcode_minus_L_F77=yes
15331
 
      fi
15332
 
      ;;
15333
 
 
15334
 
    hpux11*)
15335
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15336
 
        case $host_cpu in
15337
 
        hppa*64*)
15338
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339
 
          ;;
15340
 
        ia64*)
15341
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15342
 
          ;;
15343
 
        *)
15344
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345
 
          ;;
15346
 
        esac
15347
 
      else
15348
 
        case $host_cpu in
15349
 
        hppa*64*)
15350
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351
 
          ;;
15352
 
        ia64*)
15353
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15354
 
          ;;
15355
 
        *)
15356
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357
 
          ;;
15358
 
        esac
15359
 
      fi
15360
 
      if test "$with_gnu_ld" = no; then
15361
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15362
 
        hardcode_libdir_separator_F77=:
15363
 
 
15364
 
        case $host_cpu in
15365
 
        hppa*64*|ia64*)
15366
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15367
 
          hardcode_direct_F77=no
15368
 
          hardcode_shlibpath_var_F77=no
15369
 
          ;;
15370
 
        *)
15371
 
          hardcode_direct_F77=yes
15372
 
          export_dynamic_flag_spec_F77='${wl}-E'
15373
 
 
15374
 
          # hardcode_minus_L: Not really in the search PATH,
15375
 
          # but as the default location of the library.
15376
 
          hardcode_minus_L_F77=yes
15377
 
          ;;
15378
 
        esac
15379
 
      fi
15380
 
      ;;
15381
 
 
15382
 
    irix5* | irix6* | nonstopux*)
15383
 
      if test "$GCC" = yes; then
15384
 
        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'
15385
 
      else
15386
 
        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'
15387
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15388
 
      fi
15389
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15390
 
      hardcode_libdir_separator_F77=:
15391
 
      link_all_deplibs_F77=yes
15392
 
      ;;
15393
 
 
15394
 
    netbsd* | netbsdelf*-gnu)
15395
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15396
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15397
 
      else
15398
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15399
 
      fi
15400
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15401
 
      hardcode_direct_F77=yes
15402
 
      hardcode_shlibpath_var_F77=no
15403
 
      ;;
15404
 
 
15405
 
    newsos6)
15406
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407
 
      hardcode_direct_F77=yes
15408
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409
 
      hardcode_libdir_separator_F77=:
15410
 
      hardcode_shlibpath_var_F77=no
15411
 
      ;;
15412
 
 
15413
 
    openbsd*)
15414
 
      if test -f /usr/libexec/ld.so; then
15415
 
        hardcode_direct_F77=yes
15416
 
        hardcode_shlibpath_var_F77=no
15417
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15418
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15419
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15420
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15421
 
          export_dynamic_flag_spec_F77='${wl}-E'
15422
 
        else
15423
 
          case $host_os in
15424
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15425
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15427
 
             ;;
15428
 
           *)
15429
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15431
 
             ;;
15432
 
          esac
15433
 
        fi
15434
 
      else
15435
 
        ld_shlibs_F77=no
15436
 
      fi
15437
 
      ;;
15438
 
 
15439
 
    os2*)
15440
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15441
 
      hardcode_minus_L_F77=yes
15442
 
      allow_undefined_flag_F77=unsupported
15443
 
      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'
15444
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15445
 
      ;;
15446
 
 
15447
 
    osf3*)
15448
 
      if test "$GCC" = yes; then
15449
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450
 
        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'
15451
 
      else
15452
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15453
 
        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'
15454
 
      fi
15455
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15456
 
      hardcode_libdir_separator_F77=:
15457
 
      ;;
15458
 
 
15459
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15460
 
      if test "$GCC" = yes; then
15461
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15462
 
        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'
15463
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464
 
      else
15465
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15466
 
        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'
15467
 
        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~
15468
 
        $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'
15469
 
 
15470
 
        # Both c and cxx compiler support -rpath directly
15471
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15472
 
      fi
15473
 
      hardcode_libdir_separator_F77=:
15474
 
      ;;
15475
 
 
15476
 
    solaris*)
15477
 
      no_undefined_flag_F77=' -z text'
15478
 
      if test "$GCC" = yes; then
15479
 
        wlarc='${wl}'
15480
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15483
 
      else
15484
 
        wlarc=''
15485
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15488
 
      fi
15489
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15490
 
      hardcode_shlibpath_var_F77=no
15491
 
      case $host_os in
15492
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15493
 
      *)
15494
 
        # The compiler driver will combine and reorder linker options,
15495
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15496
 
        # but is careful enough not to reorder.
15497
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15498
 
        if test "$GCC" = yes; then
15499
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15500
 
        else
15501
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15502
 
        fi
15503
 
        ;;
15504
 
      esac
15505
 
      link_all_deplibs_F77=yes
15506
 
      ;;
15507
 
 
15508
 
    sunos4*)
15509
 
      if test "x$host_vendor" = xsequent; then
15510
 
        # Use $CC to link under sequent, because it throws in some extra .o
15511
 
        # files that make .init and .fini sections work.
15512
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15513
 
      else
15514
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15515
 
      fi
15516
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15517
 
      hardcode_direct_F77=yes
15518
 
      hardcode_minus_L_F77=yes
15519
 
      hardcode_shlibpath_var_F77=no
15520
 
      ;;
15521
 
 
15522
 
    sysv4)
15523
 
      case $host_vendor in
15524
 
        sni)
15525
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526
 
          hardcode_direct_F77=yes # is this really true???
15527
 
        ;;
15528
 
        siemens)
15529
 
          ## LD is ld it makes a PLAMLIB
15530
 
          ## CC just makes a GrossModule.
15531
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15532
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15533
 
          hardcode_direct_F77=no
15534
 
        ;;
15535
 
        motorola)
15536
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15538
 
        ;;
15539
 
      esac
15540
 
      runpath_var='LD_RUN_PATH'
15541
 
      hardcode_shlibpath_var_F77=no
15542
 
      ;;
15543
 
 
15544
 
    sysv4.3*)
15545
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546
 
      hardcode_shlibpath_var_F77=no
15547
 
      export_dynamic_flag_spec_F77='-Bexport'
15548
 
      ;;
15549
 
 
15550
 
    sysv4*MP*)
15551
 
      if test -d /usr/nec; then
15552
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553
 
        hardcode_shlibpath_var_F77=no
15554
 
        runpath_var=LD_RUN_PATH
15555
 
        hardcode_runpath_var=yes
15556
 
        ld_shlibs_F77=yes
15557
 
      fi
15558
 
      ;;
15559
 
 
15560
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15561
 
      no_undefined_flag_F77='${wl}-z,text'
15562
 
      archive_cmds_need_lc_F77=no
15563
 
      hardcode_shlibpath_var_F77=no
15564
 
      runpath_var='LD_RUN_PATH'
15565
 
 
15566
 
      if test "$GCC" = yes; then
15567
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569
 
      else
15570
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572
 
      fi
15573
 
      ;;
15574
 
 
15575
 
    sysv5* | sco3.2v5* | sco5v6*)
15576
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15577
 
      # link with -lc, and that would cause any symbols used from libc to
15578
 
      # always be unresolved, which means just about no library would
15579
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15580
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15581
 
      # as -z defs.
15582
 
      no_undefined_flag_F77='${wl}-z,text'
15583
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15584
 
      archive_cmds_need_lc_F77=no
15585
 
      hardcode_shlibpath_var_F77=no
15586
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15587
 
      hardcode_libdir_separator_F77=':'
15588
 
      link_all_deplibs_F77=yes
15589
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15590
 
      runpath_var='LD_RUN_PATH'
15591
 
 
15592
 
      if test "$GCC" = yes; then
15593
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595
 
      else
15596
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598
 
      fi
15599
 
      ;;
15600
 
 
15601
 
    uts4*)
15602
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15604
 
      hardcode_shlibpath_var_F77=no
15605
 
      ;;
15606
 
 
15607
 
    *)
15608
 
      ld_shlibs_F77=no
15609
 
      ;;
15610
 
    esac
15611
 
  fi
15612
 
 
15613
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15614
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15615
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15616
 
 
15617
 
#
15618
 
# Do we need to explicitly link libc?
15619
 
#
15620
 
case "x$archive_cmds_need_lc_F77" in
15621
 
x|xyes)
15622
 
  # Assume -lc should be added
15623
 
  archive_cmds_need_lc_F77=yes
15624
 
 
15625
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15626
 
    case $archive_cmds_F77 in
15627
 
    *'~'*)
15628
 
      # FIXME: we may have to deal with multi-command sequences.
15629
 
      ;;
15630
 
    '$CC '*)
15631
 
      # Test whether the compiler implicitly links with -lc since on some
15632
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15633
 
      # to ld, don't add -lc before -lgcc.
15634
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15635
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15636
 
      $rm conftest*
15637
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15638
 
 
15639
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640
 
  (eval $ac_compile) 2>&5
15641
 
  ac_status=$?
15642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643
 
  (exit $ac_status); } 2>conftest.err; then
15644
 
        soname=conftest
15645
 
        lib=conftest
15646
 
        libobjs=conftest.$ac_objext
15647
 
        deplibs=
15648
 
        wl=$lt_prog_compiler_wl_F77
15649
 
        pic_flag=$lt_prog_compiler_pic_F77
15650
 
        compiler_flags=-v
15651
 
        linker_flags=-v
15652
 
        verstring=
15653
 
        output_objdir=.
15654
 
        libname=conftest
15655
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15656
 
        allow_undefined_flag_F77=
15657
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15658
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15659
 
  ac_status=$?
15660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661
 
  (exit $ac_status); }
15662
 
        then
15663
 
          archive_cmds_need_lc_F77=no
15664
 
        else
15665
 
          archive_cmds_need_lc_F77=yes
15666
 
        fi
15667
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15668
 
      else
15669
 
        cat conftest.err 1>&5
15670
 
      fi
15671
 
      $rm conftest*
15672
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15673
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15674
 
      ;;
15675
 
    esac
15676
 
  fi
15677
 
  ;;
15678
 
esac
15679
 
 
15680
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15681
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15682
 
library_names_spec=
15683
 
libname_spec='lib$name'
15684
 
soname_spec=
15685
 
shrext_cmds=".so"
15686
 
postinstall_cmds=
15687
 
postuninstall_cmds=
15688
 
finish_cmds=
15689
 
finish_eval=
15690
 
shlibpath_var=
15691
 
shlibpath_overrides_runpath=unknown
15692
 
version_type=none
15693
 
dynamic_linker="$host_os ld.so"
15694
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15695
 
 
15696
 
need_lib_prefix=unknown
15697
 
hardcode_into_libs=no
15698
 
 
15699
 
# when you set need_version to no, make sure it does not cause -set_version
15700
 
# flags to be left without arguments
15701
 
need_version=unknown
15702
 
 
15703
 
case $host_os in
15704
 
aix3*)
15705
 
  version_type=linux
15706
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15707
 
  shlibpath_var=LIBPATH
15708
 
 
15709
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15710
 
  soname_spec='${libname}${release}${shared_ext}$major'
15711
 
  ;;
15712
 
 
15713
 
aix[4-9]*)
15714
 
  version_type=linux
15715
 
  need_lib_prefix=no
15716
 
  need_version=no
15717
 
  hardcode_into_libs=yes
15718
 
  if test "$host_cpu" = ia64; then
15719
 
    # AIX 5 supports IA64
15720
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15721
 
    shlibpath_var=LD_LIBRARY_PATH
15722
 
  else
15723
 
    # With GCC up to 2.95.x, collect2 would create an import file
15724
 
    # for dependence libraries.  The import file would start with
15725
 
    # the line `#! .'.  This would cause the generated library to
15726
 
    # depend on `.', always an invalid library.  This was fixed in
15727
 
    # development snapshots of GCC prior to 3.0.
15728
 
    case $host_os in
15729
 
      aix4 | aix4.[01] | aix4.[01].*)
15730
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15731
 
           echo ' yes '
15732
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15733
 
        :
15734
 
      else
15735
 
        can_build_shared=no
15736
 
      fi
15737
 
      ;;
15738
 
    esac
15739
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15740
 
    # soname into executable. Probably we can add versioning support to
15741
 
    # collect2, so additional links can be useful in future.
15742
 
    if test "$aix_use_runtimelinking" = yes; then
15743
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744
 
      # instead of lib<name>.a to let people know that these are not
15745
 
      # typical AIX shared libraries.
15746
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747
 
    else
15748
 
      # We preserve .a as extension for shared libraries through AIX4.2
15749
 
      # and later when we are not doing run time linking.
15750
 
      library_names_spec='${libname}${release}.a $libname.a'
15751
 
      soname_spec='${libname}${release}${shared_ext}$major'
15752
 
    fi
15753
 
    shlibpath_var=LIBPATH
15754
 
  fi
15755
 
  ;;
15756
 
 
15757
 
amigaos*)
15758
 
  library_names_spec='$libname.ixlibrary $libname.a'
15759
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15760
 
  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'
15761
 
  ;;
15762
 
 
15763
 
beos*)
15764
 
  library_names_spec='${libname}${shared_ext}'
15765
 
  dynamic_linker="$host_os ld.so"
15766
 
  shlibpath_var=LIBRARY_PATH
15767
 
  ;;
15768
 
 
15769
 
bsdi[45]*)
15770
 
  version_type=linux
15771
 
  need_version=no
15772
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773
 
  soname_spec='${libname}${release}${shared_ext}$major'
15774
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15775
 
  shlibpath_var=LD_LIBRARY_PATH
15776
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15777
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15778
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15779
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15780
 
  # libtool to hard-code these into programs
15781
 
  ;;
15782
 
 
15783
 
cygwin* | mingw* | pw32*)
15784
 
  version_type=windows
15785
 
  shrext_cmds=".dll"
15786
 
  need_version=no
15787
 
  need_lib_prefix=no
15788
 
 
15789
 
  case $GCC,$host_os in
15790
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15791
 
    library_names_spec='$libname.dll.a'
15792
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15793
 
    postinstall_cmds='base_file=`basename \${file}`~
15794
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15795
 
      dldir=$destdir/`dirname \$dlpath`~
15796
 
      test -d \$dldir || mkdir -p \$dldir~
15797
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15798
 
      chmod a+x \$dldir/$dlname'
15799
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15800
 
      dlpath=$dir/\$dldll~
15801
 
       $rm \$dlpath'
15802
 
    shlibpath_overrides_runpath=yes
15803
 
 
15804
 
    case $host_os in
15805
 
    cygwin*)
15806
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15807
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15808
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15809
 
      ;;
15810
 
    mingw*)
15811
 
      # MinGW DLLs use traditional 'lib' prefix
15812
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15813
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15814
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15815
 
        # It is most probably a Windows format PATH printed by
15816
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15817
 
        # path with ; separators, and with drive letters. We can handle the
15818
 
        # drive letters (cygwin fileutils understands them), so leave them,
15819
 
        # especially as we might pass files found there to a mingw objdump,
15820
 
        # which wouldn't understand a cygwinified path. Ahh.
15821
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15822
 
      else
15823
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15824
 
      fi
15825
 
      ;;
15826
 
    pw32*)
15827
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15828
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15829
 
      ;;
15830
 
    esac
15831
 
    ;;
15832
 
 
15833
 
  *)
15834
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15835
 
    ;;
15836
 
  esac
15837
 
  dynamic_linker='Win32 ld.exe'
15838
 
  # FIXME: first we should search . and the directory the executable is in
15839
 
  shlibpath_var=PATH
15840
 
  ;;
15841
 
 
15842
 
darwin* | rhapsody*)
15843
 
  dynamic_linker="$host_os dyld"
15844
 
  version_type=darwin
15845
 
  need_lib_prefix=no
15846
 
  need_version=no
15847
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15848
 
  soname_spec='${libname}${release}${major}$shared_ext'
15849
 
  shlibpath_overrides_runpath=yes
15850
 
  shlibpath_var=DYLD_LIBRARY_PATH
15851
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15852
 
 
15853
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15854
 
  ;;
15855
 
 
15856
 
dgux*)
15857
 
  version_type=linux
15858
 
  need_lib_prefix=no
15859
 
  need_version=no
15860
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15861
 
  soname_spec='${libname}${release}${shared_ext}$major'
15862
 
  shlibpath_var=LD_LIBRARY_PATH
15863
 
  ;;
15864
 
 
15865
 
freebsd1*)
15866
 
  dynamic_linker=no
15867
 
  ;;
15868
 
 
15869
 
freebsd* | dragonfly*)
15870
 
  # DragonFly does not have aout.  When/if they implement a new
15871
 
  # versioning mechanism, adjust this.
15872
 
  if test -x /usr/bin/objformat; then
15873
 
    objformat=`/usr/bin/objformat`
15874
 
  else
15875
 
    case $host_os in
15876
 
    freebsd[123]*) objformat=aout ;;
15877
 
    *) objformat=elf ;;
15878
 
    esac
15879
 
  fi
15880
 
  version_type=freebsd-$objformat
15881
 
  case $version_type in
15882
 
    freebsd-elf*)
15883
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15884
 
      need_version=no
15885
 
      need_lib_prefix=no
15886
 
      ;;
15887
 
    freebsd-*)
15888
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15889
 
      need_version=yes
15890
 
      ;;
15891
 
  esac
15892
 
  shlibpath_var=LD_LIBRARY_PATH
15893
 
  case $host_os in
15894
 
  freebsd2*)
15895
 
    shlibpath_overrides_runpath=yes
15896
 
    ;;
15897
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15898
 
    shlibpath_overrides_runpath=yes
15899
 
    hardcode_into_libs=yes
15900
 
    ;;
15901
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15902
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15903
 
    shlibpath_overrides_runpath=no
15904
 
    hardcode_into_libs=yes
15905
 
    ;;
15906
 
  *) # from 4.6 on, and DragonFly
15907
 
    shlibpath_overrides_runpath=yes
15908
 
    hardcode_into_libs=yes
15909
 
    ;;
15910
 
  esac
15911
 
  ;;
15912
 
 
15913
 
gnu*)
15914
 
  version_type=linux
15915
 
  need_lib_prefix=no
15916
 
  need_version=no
15917
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15918
 
  soname_spec='${libname}${release}${shared_ext}$major'
15919
 
  shlibpath_var=LD_LIBRARY_PATH
15920
 
  hardcode_into_libs=yes
15921
 
  ;;
15922
 
 
15923
 
hpux9* | hpux10* | hpux11*)
15924
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15925
 
  # link against other versions.
15926
 
  version_type=sunos
15927
 
  need_lib_prefix=no
15928
 
  need_version=no
15929
 
  case $host_cpu in
15930
 
  ia64*)
15931
 
    shrext_cmds='.so'
15932
 
    hardcode_into_libs=yes
15933
 
    dynamic_linker="$host_os dld.so"
15934
 
    shlibpath_var=LD_LIBRARY_PATH
15935
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15936
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937
 
    soname_spec='${libname}${release}${shared_ext}$major'
15938
 
    if test "X$HPUX_IA64_MODE" = X32; then
15939
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15940
 
    else
15941
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15942
 
    fi
15943
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15944
 
    ;;
15945
 
   hppa*64*)
15946
 
     shrext_cmds='.sl'
15947
 
     hardcode_into_libs=yes
15948
 
     dynamic_linker="$host_os dld.sl"
15949
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15950
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15951
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952
 
     soname_spec='${libname}${release}${shared_ext}$major'
15953
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15954
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15955
 
     ;;
15956
 
   *)
15957
 
    shrext_cmds='.sl'
15958
 
    dynamic_linker="$host_os dld.sl"
15959
 
    shlibpath_var=SHLIB_PATH
15960
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15961
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962
 
    soname_spec='${libname}${release}${shared_ext}$major'
15963
 
    ;;
15964
 
  esac
15965
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15966
 
  postinstall_cmds='chmod 555 $lib'
15967
 
  ;;
15968
 
 
15969
 
interix[3-9]*)
15970
 
  version_type=linux
15971
 
  need_lib_prefix=no
15972
 
  need_version=no
15973
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974
 
  soname_spec='${libname}${release}${shared_ext}$major'
15975
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15976
 
  shlibpath_var=LD_LIBRARY_PATH
15977
 
  shlibpath_overrides_runpath=no
15978
 
  hardcode_into_libs=yes
15979
 
  ;;
15980
 
 
15981
 
irix5* | irix6* | nonstopux*)
15982
 
  case $host_os in
15983
 
    nonstopux*) version_type=nonstopux ;;
15984
 
    *)
15985
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15986
 
                version_type=linux
15987
 
        else
15988
 
                version_type=irix
15989
 
        fi ;;
15990
 
  esac
15991
 
  need_lib_prefix=no
15992
 
  need_version=no
15993
 
  soname_spec='${libname}${release}${shared_ext}$major'
15994
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15995
 
  case $host_os in
15996
 
  irix5* | nonstopux*)
15997
 
    libsuff= shlibsuff=
15998
 
    ;;
15999
 
  *)
16000
 
    case $LD in # libtool.m4 will add one of these switches to LD
16001
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16002
 
      libsuff= shlibsuff= libmagic=32-bit;;
16003
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16004
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16005
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16006
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16007
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16008
 
    esac
16009
 
    ;;
16010
 
  esac
16011
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16012
 
  shlibpath_overrides_runpath=no
16013
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16014
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16015
 
  hardcode_into_libs=yes
16016
 
  ;;
16017
 
 
16018
 
# No shared lib support for Linux oldld, aout, or coff.
16019
 
linux*oldld* | linux*aout* | linux*coff*)
16020
 
  dynamic_linker=no
16021
 
  ;;
16022
 
 
16023
 
# This must be Linux ELF.
16024
 
linux* | k*bsd*-gnu)
16025
 
  version_type=linux
16026
 
  need_lib_prefix=no
16027
 
  need_version=no
16028
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029
 
  soname_spec='${libname}${release}${shared_ext}$major'
16030
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16031
 
  shlibpath_var=LD_LIBRARY_PATH
16032
 
  shlibpath_overrides_runpath=no
16033
 
  # This implies no fast_install, which is unacceptable.
16034
 
  # Some rework will be needed to allow for fast_install
16035
 
  # before this can be enabled.
16036
 
  hardcode_into_libs=yes
16037
 
 
16038
 
  # Append ld.so.conf contents to the search path
16039
 
  if test -f /etc/ld.so.conf; then
16040
 
    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' ' '`
16041
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16042
 
  fi
16043
 
 
16044
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16045
 
  # powerpc, because MkLinux only supported shared libraries with the
16046
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16047
 
  # most powerpc-linux boxes support dynamic linking these days and
16048
 
  # people can always --disable-shared, the test was removed, and we
16049
 
  # assume the GNU/Linux dynamic linker is in use.
16050
 
  dynamic_linker='GNU/Linux ld.so'
16051
 
  ;;
16052
 
 
16053
 
netbsdelf*-gnu)
16054
 
  version_type=linux
16055
 
  need_lib_prefix=no
16056
 
  need_version=no
16057
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16058
 
  soname_spec='${libname}${release}${shared_ext}$major'
16059
 
  shlibpath_var=LD_LIBRARY_PATH
16060
 
  shlibpath_overrides_runpath=no
16061
 
  hardcode_into_libs=yes
16062
 
  dynamic_linker='NetBSD ld.elf_so'
16063
 
  ;;
16064
 
 
16065
 
netbsd*)
16066
 
  version_type=sunos
16067
 
  need_lib_prefix=no
16068
 
  need_version=no
16069
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16070
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072
 
    dynamic_linker='NetBSD (a.out) ld.so'
16073
 
  else
16074
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075
 
    soname_spec='${libname}${release}${shared_ext}$major'
16076
 
    dynamic_linker='NetBSD ld.elf_so'
16077
 
  fi
16078
 
  shlibpath_var=LD_LIBRARY_PATH
16079
 
  shlibpath_overrides_runpath=yes
16080
 
  hardcode_into_libs=yes
16081
 
  ;;
16082
 
 
16083
 
newsos6)
16084
 
  version_type=linux
16085
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086
 
  shlibpath_var=LD_LIBRARY_PATH
16087
 
  shlibpath_overrides_runpath=yes
16088
 
  ;;
16089
 
 
16090
 
nto-qnx*)
16091
 
  version_type=linux
16092
 
  need_lib_prefix=no
16093
 
  need_version=no
16094
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095
 
  soname_spec='${libname}${release}${shared_ext}$major'
16096
 
  shlibpath_var=LD_LIBRARY_PATH
16097
 
  shlibpath_overrides_runpath=yes
16098
 
  ;;
16099
 
 
16100
 
openbsd*)
16101
 
  version_type=sunos
16102
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16103
 
  need_lib_prefix=no
16104
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16105
 
  case $host_os in
16106
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107
 
    *)                         need_version=no  ;;
16108
 
  esac
16109
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111
 
  shlibpath_var=LD_LIBRARY_PATH
16112
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16113
 
    case $host_os in
16114
 
      openbsd2.[89] | openbsd2.[89].*)
16115
 
        shlibpath_overrides_runpath=no
16116
 
        ;;
16117
 
      *)
16118
 
        shlibpath_overrides_runpath=yes
16119
 
        ;;
16120
 
      esac
16121
 
  else
16122
 
    shlibpath_overrides_runpath=yes
16123
 
  fi
16124
 
  ;;
16125
 
 
16126
 
os2*)
16127
 
  libname_spec='$name'
16128
 
  shrext_cmds=".dll"
16129
 
  need_lib_prefix=no
16130
 
  library_names_spec='$libname${shared_ext} $libname.a'
16131
 
  dynamic_linker='OS/2 ld.exe'
16132
 
  shlibpath_var=LIBPATH
16133
 
  ;;
16134
 
 
16135
 
osf3* | osf4* | osf5*)
16136
 
  version_type=osf
16137
 
  need_lib_prefix=no
16138
 
  need_version=no
16139
 
  soname_spec='${libname}${release}${shared_ext}$major'
16140
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141
 
  shlibpath_var=LD_LIBRARY_PATH
16142
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16144
 
  ;;
16145
 
 
16146
 
rdos*)
16147
 
  dynamic_linker=no
16148
 
  ;;
16149
 
 
16150
 
solaris*)
16151
 
  version_type=linux
16152
 
  need_lib_prefix=no
16153
 
  need_version=no
16154
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155
 
  soname_spec='${libname}${release}${shared_ext}$major'
16156
 
  shlibpath_var=LD_LIBRARY_PATH
16157
 
  shlibpath_overrides_runpath=yes
16158
 
  hardcode_into_libs=yes
16159
 
  # ldd complains unless libraries are executable
16160
 
  postinstall_cmds='chmod +x $lib'
16161
 
  ;;
16162
 
 
16163
 
sunos4*)
16164
 
  version_type=sunos
16165
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167
 
  shlibpath_var=LD_LIBRARY_PATH
16168
 
  shlibpath_overrides_runpath=yes
16169
 
  if test "$with_gnu_ld" = yes; then
16170
 
    need_lib_prefix=no
16171
 
  fi
16172
 
  need_version=yes
16173
 
  ;;
16174
 
 
16175
 
sysv4 | sysv4.3*)
16176
 
  version_type=linux
16177
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178
 
  soname_spec='${libname}${release}${shared_ext}$major'
16179
 
  shlibpath_var=LD_LIBRARY_PATH
16180
 
  case $host_vendor in
16181
 
    sni)
16182
 
      shlibpath_overrides_runpath=no
16183
 
      need_lib_prefix=no
16184
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16185
 
      runpath_var=LD_RUN_PATH
16186
 
      ;;
16187
 
    siemens)
16188
 
      need_lib_prefix=no
16189
 
      ;;
16190
 
    motorola)
16191
 
      need_lib_prefix=no
16192
 
      need_version=no
16193
 
      shlibpath_overrides_runpath=no
16194
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16195
 
      ;;
16196
 
  esac
16197
 
  ;;
16198
 
 
16199
 
sysv4*MP*)
16200
 
  if test -d /usr/nec ;then
16201
 
    version_type=linux
16202
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16203
 
    soname_spec='$libname${shared_ext}.$major'
16204
 
    shlibpath_var=LD_LIBRARY_PATH
16205
 
  fi
16206
 
  ;;
16207
 
 
16208
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16209
 
  version_type=freebsd-elf
16210
 
  need_lib_prefix=no
16211
 
  need_version=no
16212
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16213
 
  soname_spec='${libname}${release}${shared_ext}$major'
16214
 
  shlibpath_var=LD_LIBRARY_PATH
16215
 
  hardcode_into_libs=yes
16216
 
  if test "$with_gnu_ld" = yes; then
16217
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218
 
    shlibpath_overrides_runpath=no
16219
 
  else
16220
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16221
 
    shlibpath_overrides_runpath=yes
16222
 
    case $host_os in
16223
 
      sco3.2v5*)
16224
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16225
 
        ;;
16226
 
    esac
16227
 
  fi
16228
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16229
 
  ;;
16230
 
 
16231
 
uts4*)
16232
 
  version_type=linux
16233
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234
 
  soname_spec='${libname}${release}${shared_ext}$major'
16235
 
  shlibpath_var=LD_LIBRARY_PATH
16236
 
  ;;
16237
 
 
16238
 
*)
16239
 
  dynamic_linker=no
16240
 
  ;;
16241
 
esac
16242
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16243
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16244
 
test "$dynamic_linker" = no && can_build_shared=no
16245
 
 
16246
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16248
 
else
16249
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16250
 
fi
16251
 
 
16252
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16253
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16254
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16255
 
else
16256
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16257
 
fi
16258
 
 
16259
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16260
 
 
16261
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262
 
if test "$GCC" = yes; then
16263
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264
 
fi
16265
 
 
16266
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268
 
hardcode_action_F77=
16269
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16270
 
   test -n "$runpath_var_F77" || \
16271
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16272
 
 
16273
 
  # We can hardcode non-existant directories.
16274
 
  if test "$hardcode_direct_F77" != no &&
16275
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276
 
     # have to relink, otherwise we might link with an installed library
16277
 
     # when we should be linking with a yet-to-be-installed one
16278
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279
 
     test "$hardcode_minus_L_F77" != no; then
16280
 
    # Linking always hardcodes the temporary library directory.
16281
 
    hardcode_action_F77=relink
16282
 
  else
16283
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284
 
    hardcode_action_F77=immediate
16285
 
  fi
16286
 
else
16287
 
  # We cannot hardcode anything, or else we can only hardcode existing
16288
 
  # directories.
16289
 
  hardcode_action_F77=unsupported
16290
 
fi
16291
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16293
 
 
16294
 
if test "$hardcode_action_F77" = relink; then
16295
 
  # Fast installation is not supported
16296
 
  enable_fast_install=no
16297
 
elif test "$shlibpath_overrides_runpath" = yes ||
16298
 
     test "$enable_shared" = no; then
16299
 
  # Fast installation is not necessary
16300
 
  enable_fast_install=needless
16301
 
fi
16302
 
 
16303
 
 
16304
 
# The else clause should only fire when bootstrapping the
16305
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16306
 
# with your package, and you will get complaints that there are
16307
 
# no rules to generate ltmain.sh.
16308
 
if test -f "$ltmain"; then
16309
 
  # See if we are running on zsh, and set the options which allow our commands through
16310
 
  # without removal of \ escapes.
16311
 
  if test -n "${ZSH_VERSION+set}" ; then
16312
 
    setopt NO_GLOB_SUBST
16313
 
  fi
16314
 
  # Now quote all the things that may contain metacharacters while being
16315
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16316
 
  # variables and quote the copies for generation of the libtool script.
16317
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16318
 
    SED SHELL STRIP \
16319
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16322
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323
 
    lt_cv_sys_global_symbol_to_c_name_address \
16324
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325
 
    old_postinstall_cmds old_postuninstall_cmds \
16326
 
    compiler_F77 \
16327
 
    CC_F77 \
16328
 
    LD_F77 \
16329
 
    lt_prog_compiler_wl_F77 \
16330
 
    lt_prog_compiler_pic_F77 \
16331
 
    lt_prog_compiler_static_F77 \
16332
 
    lt_prog_compiler_no_builtin_flag_F77 \
16333
 
    export_dynamic_flag_spec_F77 \
16334
 
    thread_safe_flag_spec_F77 \
16335
 
    whole_archive_flag_spec_F77 \
16336
 
    enable_shared_with_static_runtimes_F77 \
16337
 
    old_archive_cmds_F77 \
16338
 
    old_archive_from_new_cmds_F77 \
16339
 
    predep_objects_F77 \
16340
 
    postdep_objects_F77 \
16341
 
    predeps_F77 \
16342
 
    postdeps_F77 \
16343
 
    compiler_lib_search_path_F77 \
16344
 
    compiler_lib_search_dirs_F77 \
16345
 
    archive_cmds_F77 \
16346
 
    archive_expsym_cmds_F77 \
16347
 
    postinstall_cmds_F77 \
16348
 
    postuninstall_cmds_F77 \
16349
 
    old_archive_from_expsyms_cmds_F77 \
16350
 
    allow_undefined_flag_F77 \
16351
 
    no_undefined_flag_F77 \
16352
 
    export_symbols_cmds_F77 \
16353
 
    hardcode_libdir_flag_spec_F77 \
16354
 
    hardcode_libdir_flag_spec_ld_F77 \
16355
 
    hardcode_libdir_separator_F77 \
16356
 
    hardcode_automatic_F77 \
16357
 
    module_cmds_F77 \
16358
 
    module_expsym_cmds_F77 \
16359
 
    lt_cv_prog_compiler_c_o_F77 \
16360
 
    fix_srcfile_path_F77 \
16361
 
    exclude_expsyms_F77 \
16362
 
    include_expsyms_F77; do
16363
 
 
16364
 
    case $var in
16365
 
    old_archive_cmds_F77 | \
16366
 
    old_archive_from_new_cmds_F77 | \
16367
 
    archive_cmds_F77 | \
16368
 
    archive_expsym_cmds_F77 | \
16369
 
    module_cmds_F77 | \
16370
 
    module_expsym_cmds_F77 | \
16371
 
    old_archive_from_expsyms_cmds_F77 | \
16372
 
    export_symbols_cmds_F77 | \
16373
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16374
 
    postinstall_cmds | postuninstall_cmds | \
16375
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16376
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16377
 
      # Double-quote double-evaled strings.
16378
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16379
 
      ;;
16380
 
    *)
16381
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16382
 
      ;;
16383
 
    esac
16384
 
  done
16385
 
 
16386
 
  case $lt_echo in
16387
 
  *'\$0 --fallback-echo"')
16388
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16389
 
    ;;
16390
 
  esac
16391
 
 
16392
 
cfgfile="$ofile"
16393
 
 
16394
 
  cat <<__EOF__ >> "$cfgfile"
16395
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16396
 
 
16397
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16398
 
 
16399
 
# Shell to use when invoking shell scripts.
16400
 
SHELL=$lt_SHELL
16401
 
 
16402
 
# Whether or not to build shared libraries.
16403
 
build_libtool_libs=$enable_shared
16404
 
 
16405
 
# Whether or not to build static libraries.
16406
 
build_old_libs=$enable_static
16407
 
 
16408
 
# Whether or not to add -lc for building shared libraries.
16409
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16410
 
 
16411
 
# Whether or not to disallow shared libs when runtime libs are static
16412
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16413
 
 
16414
 
# Whether or not to optimize for fast installation.
16415
 
fast_install=$enable_fast_install
16416
 
 
16417
 
# The host system.
16418
 
host_alias=$host_alias
16419
 
host=$host
16420
 
host_os=$host_os
16421
 
 
16422
 
# The build system.
16423
 
build_alias=$build_alias
16424
 
build=$build
16425
 
build_os=$build_os
16426
 
 
16427
 
# An echo program that does not interpret backslashes.
16428
 
echo=$lt_echo
16429
 
 
16430
 
# The archiver.
16431
 
AR=$lt_AR
16432
 
AR_FLAGS=$lt_AR_FLAGS
16433
 
 
16434
 
# A C compiler.
16435
 
LTCC=$lt_LTCC
16436
 
 
16437
 
# LTCC compiler flags.
16438
 
LTCFLAGS=$lt_LTCFLAGS
16439
 
 
16440
 
# A language-specific compiler.
16441
 
CC=$lt_compiler_F77
16442
 
 
16443
 
# Is the compiler the GNU C compiler?
16444
 
with_gcc=$GCC_F77
16445
 
 
16446
 
# An ERE matcher.
16447
 
EGREP=$lt_EGREP
16448
 
 
16449
 
# The linker used to build libraries.
16450
 
LD=$lt_LD_F77
16451
 
 
16452
 
# Whether we need hard or soft links.
16453
 
LN_S=$lt_LN_S
16454
 
 
16455
 
# A BSD-compatible nm program.
16456
 
NM=$lt_NM
16457
 
 
16458
 
# A symbol stripping program
16459
 
STRIP=$lt_STRIP
16460
 
 
16461
 
# Used to examine libraries when file_magic_cmd begins "file"
16462
 
MAGIC_CMD=$MAGIC_CMD
16463
 
 
16464
 
# Used on cygwin: DLL creation program.
16465
 
DLLTOOL="$DLLTOOL"
16466
 
 
16467
 
# Used on cygwin: object dumper.
16468
 
OBJDUMP="$OBJDUMP"
16469
 
 
16470
 
# Used on cygwin: assembler.
16471
 
AS="$AS"
16472
 
 
16473
 
# The name of the directory that contains temporary libtool files.
16474
 
objdir=$objdir
16475
 
 
16476
 
# How to create reloadable object files.
16477
 
reload_flag=$lt_reload_flag
16478
 
reload_cmds=$lt_reload_cmds
16479
 
 
16480
 
# How to pass a linker flag through the compiler.
16481
 
wl=$lt_lt_prog_compiler_wl_F77
16482
 
 
16483
 
# Object file suffix (normally "o").
16484
 
objext="$ac_objext"
16485
 
 
16486
 
# Old archive suffix (normally "a").
16487
 
libext="$libext"
16488
 
 
16489
 
# Shared library suffix (normally ".so").
16490
 
shrext_cmds='$shrext_cmds'
16491
 
 
16492
 
# Executable file suffix (normally "").
16493
 
exeext="$exeext"
16494
 
 
16495
 
# Additional compiler flags for building library objects.
16496
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16497
 
pic_mode=$pic_mode
16498
 
 
16499
 
# What is the maximum length of a command?
16500
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16501
 
 
16502
 
# Does compiler simultaneously support -c and -o options?
16503
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16504
 
 
16505
 
# Must we lock files when doing compilation?
16506
 
need_locks=$lt_need_locks
16507
 
 
16508
 
# Do we need the lib prefix for modules?
16509
 
need_lib_prefix=$need_lib_prefix
16510
 
 
16511
 
# Do we need a version for libraries?
16512
 
need_version=$need_version
16513
 
 
16514
 
# Whether dlopen is supported.
16515
 
dlopen_support=$enable_dlopen
16516
 
 
16517
 
# Whether dlopen of programs is supported.
16518
 
dlopen_self=$enable_dlopen_self
16519
 
 
16520
 
# Whether dlopen of statically linked programs is supported.
16521
 
dlopen_self_static=$enable_dlopen_self_static
16522
 
 
16523
 
# Compiler flag to prevent dynamic linking.
16524
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16525
 
 
16526
 
# Compiler flag to turn off builtin functions.
16527
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16528
 
 
16529
 
# Compiler flag to allow reflexive dlopens.
16530
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16531
 
 
16532
 
# Compiler flag to generate shared objects directly from archives.
16533
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16534
 
 
16535
 
# Compiler flag to generate thread-safe objects.
16536
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16537
 
 
16538
 
# Library versioning type.
16539
 
version_type=$version_type
16540
 
 
16541
 
# Format of library name prefix.
16542
 
libname_spec=$lt_libname_spec
16543
 
 
16544
 
# List of archive names.  First name is the real one, the rest are links.
16545
 
# The last name is the one that the linker finds with -lNAME.
16546
 
library_names_spec=$lt_library_names_spec
16547
 
 
16548
 
# The coded name of the library, if different from the real name.
16549
 
soname_spec=$lt_soname_spec
16550
 
 
16551
 
# Commands used to build and install an old-style archive.
16552
 
RANLIB=$lt_RANLIB
16553
 
old_archive_cmds=$lt_old_archive_cmds_F77
16554
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16555
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16556
 
 
16557
 
# Create an old-style archive from a shared archive.
16558
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16559
 
 
16560
 
# Create a temporary old-style archive to link instead of a shared archive.
16561
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16562
 
 
16563
 
# Commands used to build and install a shared archive.
16564
 
archive_cmds=$lt_archive_cmds_F77
16565
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16566
 
postinstall_cmds=$lt_postinstall_cmds
16567
 
postuninstall_cmds=$lt_postuninstall_cmds
16568
 
 
16569
 
# Commands used to build a loadable module (assumed same as above if empty)
16570
 
module_cmds=$lt_module_cmds_F77
16571
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16572
 
 
16573
 
# Commands to strip libraries.
16574
 
old_striplib=$lt_old_striplib
16575
 
striplib=$lt_striplib
16576
 
 
16577
 
# Dependencies to place before the objects being linked to create a
16578
 
# shared library.
16579
 
predep_objects=$lt_predep_objects_F77
16580
 
 
16581
 
# Dependencies to place after the objects being linked to create a
16582
 
# shared library.
16583
 
postdep_objects=$lt_postdep_objects_F77
16584
 
 
16585
 
# Dependencies to place before the objects being linked to create a
16586
 
# shared library.
16587
 
predeps=$lt_predeps_F77
16588
 
 
16589
 
# Dependencies to place after the objects being linked to create a
16590
 
# shared library.
16591
 
postdeps=$lt_postdeps_F77
16592
 
 
16593
 
# The directories searched by this compiler when creating a shared
16594
 
# library
16595
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16596
 
 
16597
 
# The library search path used internally by the compiler when linking
16598
 
# a shared library.
16599
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16600
 
 
16601
 
# Method to check whether dependent libraries are shared objects.
16602
 
deplibs_check_method=$lt_deplibs_check_method
16603
 
 
16604
 
# Command to use when deplibs_check_method == file_magic.
16605
 
file_magic_cmd=$lt_file_magic_cmd
16606
 
 
16607
 
# Flag that allows shared libraries with undefined symbols to be built.
16608
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16609
 
 
16610
 
# Flag that forces no undefined symbols.
16611
 
no_undefined_flag=$lt_no_undefined_flag_F77
16612
 
 
16613
 
# Commands used to finish a libtool library installation in a directory.
16614
 
finish_cmds=$lt_finish_cmds
16615
 
 
16616
 
# Same as above, but a single script fragment to be evaled but not shown.
16617
 
finish_eval=$lt_finish_eval
16618
 
 
16619
 
# Take the output of nm and produce a listing of raw symbols and C names.
16620
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16621
 
 
16622
 
# Transform the output of nm in a proper C declaration
16623
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16624
 
 
16625
 
# Transform the output of nm in a C name address pair
16626
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16627
 
 
16628
 
# This is the shared library runtime path variable.
16629
 
runpath_var=$runpath_var
16630
 
 
16631
 
# This is the shared library path variable.
16632
 
shlibpath_var=$shlibpath_var
16633
 
 
16634
 
# Is shlibpath searched before the hard-coded library search path?
16635
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16636
 
 
16637
 
# How to hardcode a shared library path into an executable.
16638
 
hardcode_action=$hardcode_action_F77
16639
 
 
16640
 
# Whether we should hardcode library paths into libraries.
16641
 
hardcode_into_libs=$hardcode_into_libs
16642
 
 
16643
 
# Flag to hardcode \$libdir into a binary during linking.
16644
 
# This must work even if \$libdir does not exist.
16645
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16646
 
 
16647
 
# If ld is used when linking, flag to hardcode \$libdir into
16648
 
# a binary during linking. This must work even if \$libdir does
16649
 
# not exist.
16650
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16651
 
 
16652
 
# Whether we need a single -rpath flag with a separated argument.
16653
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16654
 
 
16655
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16656
 
# resulting binary.
16657
 
hardcode_direct=$hardcode_direct_F77
16658
 
 
16659
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16660
 
# resulting binary.
16661
 
hardcode_minus_L=$hardcode_minus_L_F77
16662
 
 
16663
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16664
 
# the resulting binary.
16665
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16666
 
 
16667
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16668
 
# and all subsequent libraries and executables linked against it.
16669
 
hardcode_automatic=$hardcode_automatic_F77
16670
 
 
16671
 
# Variables whose values should be saved in libtool wrapper scripts and
16672
 
# restored at relink time.
16673
 
variables_saved_for_relink="$variables_saved_for_relink"
16674
 
 
16675
 
# Whether libtool must link a program against all its dependency libraries.
16676
 
link_all_deplibs=$link_all_deplibs_F77
16677
 
 
16678
 
# Compile-time system search path for libraries
16679
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16680
 
 
16681
 
# Run-time system search path for libraries
16682
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16683
 
 
16684
 
# Fix the shell variable \$srcfile for the compiler.
16685
 
fix_srcfile_path=$lt_fix_srcfile_path
16686
 
 
16687
 
# Set to yes if exported symbols are required.
16688
 
always_export_symbols=$always_export_symbols_F77
16689
 
 
16690
 
# The commands to list exported symbols.
16691
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16692
 
 
16693
 
# The commands to extract the exported symbol list from a shared archive.
16694
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16695
 
 
16696
 
# Symbols that should not be listed in the preloaded symbols.
16697
 
exclude_expsyms=$lt_exclude_expsyms_F77
16698
 
 
16699
 
# Symbols that must always be exported.
16700
 
include_expsyms=$lt_include_expsyms_F77
16701
 
 
16702
 
# ### END LIBTOOL TAG CONFIG: $tagname
16703
 
 
16704
 
__EOF__
16705
 
 
16706
 
 
16707
 
else
16708
 
  # If there is no Makefile yet, we rely on a make rule to execute
16709
 
  # `config.status --recheck' to rerun these tests and create the
16710
 
  # libtool script then.
16711
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16712
 
  if test -f "$ltmain_in"; then
16713
 
    test -f Makefile && make "$ltmain"
16714
 
  fi
16715
 
fi
16716
 
 
16717
 
 
16718
 
ac_ext=c
16719
 
ac_cpp='$CPP $CPPFLAGS'
16720
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723
 
 
16724
 
CC="$lt_save_CC"
16725
 
 
16726
 
        else
16727
 
          tagname=""
16728
 
        fi
16729
 
        ;;
16730
 
 
16731
 
      GCJ)
16732
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16733
 
 
16734
 
 
16735
 
# Source file extension for Java test sources.
16736
 
ac_ext=java
16737
 
 
16738
 
# Object file extension for compiled Java test sources.
16739
 
objext=o
16740
 
objext_GCJ=$objext
16741
 
 
16742
 
# Code to be used in simple compile tests
16743
 
lt_simple_compile_test_code="class foo {}"
16744
 
 
16745
 
# Code to be used in simple link tests
16746
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16747
 
 
16748
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16749
 
 
16750
 
# If no C compiler was specified, use CC.
16751
 
LTCC=${LTCC-"$CC"}
16752
 
 
16753
 
# If no C compiler flags were specified, use CFLAGS.
16754
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16755
 
 
16756
 
# Allow CC to be a program name with arguments.
16757
 
compiler=$CC
16758
 
 
16759
 
 
16760
 
# save warnings/boilerplate of simple test code
16761
 
ac_outfile=conftest.$ac_objext
16762
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16763
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16764
 
_lt_compiler_boilerplate=`cat conftest.err`
16765
 
$rm conftest*
16766
 
 
16767
 
ac_outfile=conftest.$ac_objext
16768
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16769
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770
 
_lt_linker_boilerplate=`cat conftest.err`
16771
 
$rm -r conftest*
16772
 
 
16773
 
 
16774
 
# Allow CC to be a program name with arguments.
16775
 
lt_save_CC="$CC"
16776
 
CC=${GCJ-"gcj"}
16777
 
compiler=$CC
16778
 
compiler_GCJ=$CC
16779
 
for cc_temp in $compiler""; do
16780
 
  case $cc_temp in
16781
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16782
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16783
 
    \-*) ;;
16784
 
    *) break;;
16785
 
  esac
16786
 
done
16787
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16788
 
 
16789
 
 
16790
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16791
 
archive_cmds_need_lc_GCJ=no
16792
 
 
16793
 
old_archive_cmds_GCJ=$old_archive_cmds
16794
 
 
16795
 
 
16796
 
lt_prog_compiler_no_builtin_flag_GCJ=
16797
 
 
16798
 
if test "$GCC" = yes; then
16799
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16800
 
 
16801
 
 
16802
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16803
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16804
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16805
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16806
 
else
16807
 
  lt_cv_prog_compiler_rtti_exceptions=no
16808
 
  ac_outfile=conftest.$ac_objext
16809
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16811
 
   # Insert the option either (1) after the last *FLAGS variable, or
16812
 
   # (2) before a word containing "conftest.", or (3) at the end.
16813
 
   # Note that $ac_compile itself does not contain backslashes and begins
16814
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16815
 
   # The option is referenced via a variable to avoid confusing sed.
16816
 
   lt_compile=`echo "$ac_compile" | $SED \
16817
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16818
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16819
 
   -e 's:$: $lt_compiler_flag:'`
16820
 
   (eval echo "\"\$as_me:16820: $lt_compile\"" >&5)
16821
 
   (eval "$lt_compile" 2>conftest.err)
16822
 
   ac_status=$?
16823
 
   cat conftest.err >&5
16824
 
   echo "$as_me:16824: \$? = $ac_status" >&5
16825
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16826
 
     # The compiler can only warn and ignore the option if not recognized
16827
 
     # So say no if there are warnings other than the usual output.
16828
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16829
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16830
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16831
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16832
 
     fi
16833
 
   fi
16834
 
   $rm conftest*
16835
 
 
16836
 
fi
16837
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16838
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16839
 
 
16840
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16841
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16842
 
else
16843
 
    :
16844
 
fi
16845
 
 
16846
 
fi
16847
 
 
16848
 
lt_prog_compiler_wl_GCJ=
16849
 
lt_prog_compiler_pic_GCJ=
16850
 
lt_prog_compiler_static_GCJ=
16851
 
 
16852
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16853
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16854
 
 
16855
 
  if test "$GCC" = yes; then
16856
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16857
 
    lt_prog_compiler_static_GCJ='-static'
16858
 
 
16859
 
    case $host_os in
16860
 
      aix*)
16861
 
      # All AIX code is PIC.
16862
 
      if test "$host_cpu" = ia64; then
16863
 
        # AIX 5 now supports IA64 processor
16864
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16865
 
      fi
16866
 
      ;;
16867
 
 
16868
 
    amigaos*)
16869
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16870
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16871
 
      # like `-m68040'.
16872
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16873
 
      ;;
16874
 
 
16875
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16876
 
      # PIC is the default for these OSes.
16877
 
      ;;
16878
 
 
16879
 
    mingw* | cygwin* | pw32* | os2*)
16880
 
      # This hack is so that the source file can tell whether it is being
16881
 
      # built for inclusion in a dll (and should export symbols for example).
16882
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16883
 
      # (--disable-auto-import) libraries
16884
 
 
16885
 
      ;;
16886
 
 
16887
 
    darwin* | rhapsody*)
16888
 
      # PIC is the default on this platform
16889
 
      # Common symbols not allowed in MH_DYLIB files
16890
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16891
 
      ;;
16892
 
 
16893
 
    interix[3-9]*)
16894
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16895
 
      # Instead, we relocate shared libraries at runtime.
16896
 
      ;;
16897
 
 
16898
 
    msdosdjgpp*)
16899
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16900
 
      # on systems that don't support them.
16901
 
      lt_prog_compiler_can_build_shared_GCJ=no
16902
 
      enable_shared=no
16903
 
      ;;
16904
 
 
16905
 
    sysv4*MP*)
16906
 
      if test -d /usr/nec; then
16907
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16908
 
      fi
16909
 
      ;;
16910
 
 
16911
 
    hpux*)
16912
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16913
 
      # not for PA HP-UX.
16914
 
      case $host_cpu in
16915
 
      hppa*64*|ia64*)
16916
 
        # +Z the default
16917
 
        ;;
16918
 
      *)
16919
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16920
 
        ;;
16921
 
      esac
16922
 
      ;;
16923
 
 
16924
 
    *)
16925
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16926
 
      ;;
16927
 
    esac
16928
 
  else
16929
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16930
 
    case $host_os in
16931
 
    aix*)
16932
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16933
 
      if test "$host_cpu" = ia64; then
16934
 
        # AIX 5 now supports IA64 processor
16935
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16936
 
      else
16937
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16938
 
      fi
16939
 
      ;;
16940
 
      darwin*)
16941
 
        # PIC is the default on this platform
16942
 
        # Common symbols not allowed in MH_DYLIB files
16943
 
       case $cc_basename in
16944
 
         xlc*)
16945
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16946
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16947
 
         ;;
16948
 
       esac
16949
 
       ;;
16950
 
 
16951
 
    mingw* | cygwin* | pw32* | os2*)
16952
 
      # This hack is so that the source file can tell whether it is being
16953
 
      # built for inclusion in a dll (and should export symbols for example).
16954
 
 
16955
 
      ;;
16956
 
 
16957
 
    hpux9* | hpux10* | hpux11*)
16958
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16959
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16960
 
      # not for PA HP-UX.
16961
 
      case $host_cpu in
16962
 
      hppa*64*|ia64*)
16963
 
        # +Z the default
16964
 
        ;;
16965
 
      *)
16966
 
        lt_prog_compiler_pic_GCJ='+Z'
16967
 
        ;;
16968
 
      esac
16969
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16970
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16971
 
      ;;
16972
 
 
16973
 
    irix5* | irix6* | nonstopux*)
16974
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16975
 
      # PIC (with -KPIC) is the default.
16976
 
      lt_prog_compiler_static_GCJ='-non_shared'
16977
 
      ;;
16978
 
 
16979
 
    newsos6)
16980
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16981
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16982
 
      ;;
16983
 
 
16984
 
    linux* | k*bsd*-gnu)
16985
 
      case $cc_basename in
16986
 
      icc* | ecc*)
16987
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16988
 
        lt_prog_compiler_pic_GCJ='-KPIC'
16989
 
        lt_prog_compiler_static_GCJ='-static'
16990
 
        ;;
16991
 
      pgcc* | pgf77* | pgf90* | pgf95*)
16992
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
16993
 
        # which looks to be a dead project)
16994
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16995
 
        lt_prog_compiler_pic_GCJ='-fpic'
16996
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16997
 
        ;;
16998
 
      ccc*)
16999
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17000
 
        # All Alpha code is PIC.
17001
 
        lt_prog_compiler_static_GCJ='-non_shared'
17002
 
        ;;
17003
 
      *)
17004
 
        case `$CC -V 2>&1 | sed 5q` in
17005
 
        *Sun\ C*)
17006
 
          # Sun C 5.9
17007
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17008
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17009
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17010
 
          ;;
17011
 
        *Sun\ F*)
17012
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17013
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17014
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17015
 
          lt_prog_compiler_wl_GCJ=''
17016
 
          ;;
17017
 
        esac
17018
 
        ;;
17019
 
      esac
17020
 
      ;;
17021
 
 
17022
 
    osf3* | osf4* | osf5*)
17023
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17024
 
      # All OSF/1 code is PIC.
17025
 
      lt_prog_compiler_static_GCJ='-non_shared'
17026
 
      ;;
17027
 
 
17028
 
    rdos*)
17029
 
      lt_prog_compiler_static_GCJ='-non_shared'
17030
 
      ;;
17031
 
 
17032
 
    solaris*)
17033
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17034
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17035
 
      case $cc_basename in
17036
 
      f77* | f90* | f95*)
17037
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17038
 
      *)
17039
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17040
 
      esac
17041
 
      ;;
17042
 
 
17043
 
    sunos4*)
17044
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17045
 
      lt_prog_compiler_pic_GCJ='-PIC'
17046
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17047
 
      ;;
17048
 
 
17049
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17050
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17051
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17052
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17053
 
      ;;
17054
 
 
17055
 
    sysv4*MP*)
17056
 
      if test -d /usr/nec ;then
17057
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17058
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17059
 
      fi
17060
 
      ;;
17061
 
 
17062
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17063
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17064
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17065
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17066
 
      ;;
17067
 
 
17068
 
    unicos*)
17069
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17070
 
      lt_prog_compiler_can_build_shared_GCJ=no
17071
 
      ;;
17072
 
 
17073
 
    uts4*)
17074
 
      lt_prog_compiler_pic_GCJ='-pic'
17075
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17076
 
      ;;
17077
 
 
17078
 
    *)
17079
 
      lt_prog_compiler_can_build_shared_GCJ=no
17080
 
      ;;
17081
 
    esac
17082
 
  fi
17083
 
 
17084
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17085
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17086
 
 
17087
 
#
17088
 
# Check to make sure the PIC flag actually works.
17089
 
#
17090
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17091
 
 
17092
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17093
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17094
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17095
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17096
 
else
17097
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17098
 
  ac_outfile=conftest.$ac_objext
17099
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17101
 
   # Insert the option either (1) after the last *FLAGS variable, or
17102
 
   # (2) before a word containing "conftest.", or (3) at the end.
17103
 
   # Note that $ac_compile itself does not contain backslashes and begins
17104
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17105
 
   # The option is referenced via a variable to avoid confusing sed.
17106
 
   lt_compile=`echo "$ac_compile" | $SED \
17107
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17108
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17109
 
   -e 's:$: $lt_compiler_flag:'`
17110
 
   (eval echo "\"\$as_me:17110: $lt_compile\"" >&5)
17111
 
   (eval "$lt_compile" 2>conftest.err)
17112
 
   ac_status=$?
17113
 
   cat conftest.err >&5
17114
 
   echo "$as_me:17114: \$? = $ac_status" >&5
17115
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17116
 
     # The compiler can only warn and ignore the option if not recognized
17117
 
     # So say no if there are warnings other than the usual output.
17118
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17119
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17120
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17121
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17122
 
     fi
17123
 
   fi
17124
 
   $rm conftest*
17125
 
 
17126
 
fi
17127
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17128
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17129
 
 
17130
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17131
 
    case $lt_prog_compiler_pic_GCJ in
17132
 
     "" | " "*) ;;
17133
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17134
 
     esac
17135
 
else
17136
 
    lt_prog_compiler_pic_GCJ=
17137
 
     lt_prog_compiler_can_build_shared_GCJ=no
17138
 
fi
17139
 
 
17140
 
fi
17141
 
case $host_os in
17142
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17143
 
  *djgpp*)
17144
 
    lt_prog_compiler_pic_GCJ=
17145
 
    ;;
17146
 
  *)
17147
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17148
 
    ;;
17149
 
esac
17150
 
 
17151
 
#
17152
 
# Check to make sure the static flag actually works.
17153
 
#
17154
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17155
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17156
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17157
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17158
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17159
 
else
17160
 
  lt_cv_prog_compiler_static_works_GCJ=no
17161
 
   save_LDFLAGS="$LDFLAGS"
17162
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17163
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17164
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17165
 
     # The linker can only warn and ignore the option if not recognized
17166
 
     # So say no if there are warnings
17167
 
     if test -s conftest.err; then
17168
 
       # Append any errors to the config.log.
17169
 
       cat conftest.err 1>&5
17170
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17171
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17172
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17173
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17174
 
       fi
17175
 
     else
17176
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17177
 
     fi
17178
 
   fi
17179
 
   $rm -r conftest*
17180
 
   LDFLAGS="$save_LDFLAGS"
17181
 
 
17182
 
fi
17183
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17184
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17185
 
 
17186
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17187
 
    :
17188
 
else
17189
 
    lt_prog_compiler_static_GCJ=
17190
 
fi
17191
 
 
17192
 
 
17193
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17194
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17195
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17197
 
else
17198
 
  lt_cv_prog_compiler_c_o_GCJ=no
17199
 
   $rm -r conftest 2>/dev/null
17200
 
   mkdir conftest
17201
 
   cd conftest
17202
 
   mkdir out
17203
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17204
 
 
17205
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17206
 
   # Insert the option either (1) after the last *FLAGS variable, or
17207
 
   # (2) before a word containing "conftest.", or (3) at the end.
17208
 
   # Note that $ac_compile itself does not contain backslashes and begins
17209
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17210
 
   lt_compile=`echo "$ac_compile" | $SED \
17211
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17212
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17213
 
   -e 's:$: $lt_compiler_flag:'`
17214
 
   (eval echo "\"\$as_me:17214: $lt_compile\"" >&5)
17215
 
   (eval "$lt_compile" 2>out/conftest.err)
17216
 
   ac_status=$?
17217
 
   cat out/conftest.err >&5
17218
 
   echo "$as_me:17218: \$? = $ac_status" >&5
17219
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17220
 
   then
17221
 
     # The compiler can only warn and ignore the option if not recognized
17222
 
     # So say no if there are warnings
17223
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17224
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17225
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17226
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17227
 
     fi
17228
 
   fi
17229
 
   chmod u+w . 2>&5
17230
 
   $rm conftest*
17231
 
   # SGI C++ compiler will create directory out/ii_files/ for
17232
 
   # template instantiation
17233
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17234
 
   $rm out/* && rmdir out
17235
 
   cd ..
17236
 
   rmdir conftest
17237
 
   $rm conftest*
17238
 
 
17239
 
fi
17240
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17241
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17242
 
 
17243
 
 
17244
 
hard_links="nottested"
17245
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17246
 
  # do not overwrite the value of need_locks provided by the user
17247
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17248
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17249
 
  hard_links=yes
17250
 
  $rm conftest*
17251
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17252
 
  touch conftest.a
17253
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17254
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17256
 
echo "${ECHO_T}$hard_links" >&6; }
17257
 
  if test "$hard_links" = no; then
17258
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17259
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17260
 
    need_locks=warn
17261
 
  fi
17262
 
else
17263
 
  need_locks=no
17264
 
fi
17265
 
 
17266
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17267
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17268
 
 
17269
 
  runpath_var=
17270
 
  allow_undefined_flag_GCJ=
17271
 
  enable_shared_with_static_runtimes_GCJ=no
17272
 
  archive_cmds_GCJ=
17273
 
  archive_expsym_cmds_GCJ=
17274
 
  old_archive_From_new_cmds_GCJ=
17275
 
  old_archive_from_expsyms_cmds_GCJ=
17276
 
  export_dynamic_flag_spec_GCJ=
17277
 
  whole_archive_flag_spec_GCJ=
17278
 
  thread_safe_flag_spec_GCJ=
17279
 
  hardcode_libdir_flag_spec_GCJ=
17280
 
  hardcode_libdir_flag_spec_ld_GCJ=
17281
 
  hardcode_libdir_separator_GCJ=
17282
 
  hardcode_direct_GCJ=no
17283
 
  hardcode_minus_L_GCJ=no
17284
 
  hardcode_shlibpath_var_GCJ=unsupported
17285
 
  link_all_deplibs_GCJ=unknown
17286
 
  hardcode_automatic_GCJ=no
17287
 
  module_cmds_GCJ=
17288
 
  module_expsym_cmds_GCJ=
17289
 
  always_export_symbols_GCJ=no
17290
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17291
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17292
 
  # included in the symbol list
17293
 
  include_expsyms_GCJ=
17294
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17295
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17296
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17297
 
  # as well as any symbol that contains `d'.
17298
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17299
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17300
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17301
 
  # the symbol is explicitly referenced.  Since portable code cannot
17302
 
  # rely on this symbol name, it's probably fine to never include it in
17303
 
  # preloaded symbol tables.
17304
 
  # Exclude shared library initialization/finalization symbols.
17305
 
  extract_expsyms_cmds=
17306
 
  # Just being paranoid about ensuring that cc_basename is set.
17307
 
  for cc_temp in $compiler""; do
17308
 
  case $cc_temp in
17309
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17310
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17311
 
    \-*) ;;
17312
 
    *) break;;
17313
 
  esac
17314
 
done
17315
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17316
 
 
17317
 
  case $host_os in
17318
 
  cygwin* | mingw* | pw32*)
17319
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17320
 
    # When not using gcc, we currently assume that we are using
17321
 
    # Microsoft Visual C++.
17322
 
    if test "$GCC" != yes; then
17323
 
      with_gnu_ld=no
17324
 
    fi
17325
 
    ;;
17326
 
  interix*)
17327
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17328
 
    with_gnu_ld=yes
17329
 
    ;;
17330
 
  openbsd*)
17331
 
    with_gnu_ld=no
17332
 
    ;;
17333
 
  esac
17334
 
 
17335
 
  ld_shlibs_GCJ=yes
17336
 
  if test "$with_gnu_ld" = yes; then
17337
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17338
 
    wlarc='${wl}'
17339
 
 
17340
 
    # Set some defaults for GNU ld with shared library support. These
17341
 
    # are reset later if shared libraries are not supported. Putting them
17342
 
    # here allows them to be overridden if necessary.
17343
 
    runpath_var=LD_RUN_PATH
17344
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17345
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17346
 
    # ancient GNU ld didn't support --whole-archive et. al.
17347
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17348
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17349
 
      else
17350
 
        whole_archive_flag_spec_GCJ=
17351
 
    fi
17352
 
    supports_anon_versioning=no
17353
 
    case `$LD -v 2>/dev/null` in
17354
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17355
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17356
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17357
 
      *\ 2.11.*) ;; # other 2.11 versions
17358
 
      *) supports_anon_versioning=yes ;;
17359
 
    esac
17360
 
 
17361
 
    # See if GNU ld supports shared libraries.
17362
 
    case $host_os in
17363
 
    aix[3-9]*)
17364
 
      # On AIX/PPC, the GNU linker is very broken
17365
 
      if test "$host_cpu" != ia64; then
17366
 
        ld_shlibs_GCJ=no
17367
 
        cat <<EOF 1>&2
17368
 
 
17369
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17370
 
*** to be unable to reliably create shared libraries on AIX.
17371
 
*** Therefore, libtool is disabling shared libraries support.  If you
17372
 
*** really care for shared libraries, you may want to modify your PATH
17373
 
*** so that a non-GNU linker is found, and then restart.
17374
 
 
17375
 
EOF
17376
 
      fi
17377
 
      ;;
17378
 
 
17379
 
    amigaos*)
17380
 
      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)'
17381
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17382
 
      hardcode_minus_L_GCJ=yes
17383
 
 
17384
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17385
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17386
 
      # to version 4, is to share data among multiple programs linked
17387
 
      # with the same dynamic library.  Since this doesn't match the
17388
 
      # behavior of shared libraries on other platforms, we can't use
17389
 
      # them.
17390
 
      ld_shlibs_GCJ=no
17391
 
      ;;
17392
 
 
17393
 
    beos*)
17394
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395
 
        allow_undefined_flag_GCJ=unsupported
17396
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17397
 
        # support --undefined.  This deserves some investigation.  FIXME
17398
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17399
 
      else
17400
 
        ld_shlibs_GCJ=no
17401
 
      fi
17402
 
      ;;
17403
 
 
17404
 
    cygwin* | mingw* | pw32*)
17405
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17406
 
      # as there is no search path for DLLs.
17407
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408
 
      allow_undefined_flag_GCJ=unsupported
17409
 
      always_export_symbols_GCJ=no
17410
 
      enable_shared_with_static_runtimes_GCJ=yes
17411
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17412
 
 
17413
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17414
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17415
 
        # If the export-symbols file already is a .def file (1st line
17416
 
        # is EXPORTS), use it as is; otherwise, prepend...
17417
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17418
 
          cp $export_symbols $output_objdir/$soname.def;
17419
 
        else
17420
 
          echo EXPORTS > $output_objdir/$soname.def;
17421
 
          cat $export_symbols >> $output_objdir/$soname.def;
17422
 
        fi~
17423
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17424
 
      else
17425
 
        ld_shlibs_GCJ=no
17426
 
      fi
17427
 
      ;;
17428
 
 
17429
 
    interix[3-9]*)
17430
 
      hardcode_direct_GCJ=no
17431
 
      hardcode_shlibpath_var_GCJ=no
17432
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17433
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17434
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17435
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17436
 
      # default) and relocated if they conflict, which is a slow very memory
17437
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17438
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17439
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17440
 
      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'
17441
 
      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'
17442
 
      ;;
17443
 
 
17444
 
    gnu* | linux* | k*bsd*-gnu)
17445
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17446
 
        tmp_addflag=
17447
 
        case $cc_basename,$host_cpu in
17448
 
        pgcc*)                          # Portland Group C compiler
17449
 
          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'
17450
 
          tmp_addflag=' $pic_flag'
17451
 
          ;;
17452
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17453
 
          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'
17454
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17455
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17456
 
          tmp_addflag=' -i_dynamic' ;;
17457
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17458
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17459
 
        ifc* | ifort*)                  # Intel Fortran compiler
17460
 
          tmp_addflag=' -nofor_main' ;;
17461
 
        esac
17462
 
        case `$CC -V 2>&1 | sed 5q` in
17463
 
        *Sun\ C*)                       # Sun C 5.9
17464
 
          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'
17465
 
          tmp_sharedflag='-G' ;;
17466
 
        *Sun\ F*)                       # Sun Fortran 8.3
17467
 
          tmp_sharedflag='-G' ;;
17468
 
        *)
17469
 
          tmp_sharedflag='-shared' ;;
17470
 
        esac
17471
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472
 
 
17473
 
        if test $supports_anon_versioning = yes; then
17474
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17475
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17476
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17477
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17478
 
        fi
17479
 
        link_all_deplibs_GCJ=no
17480
 
      else
17481
 
        ld_shlibs_GCJ=no
17482
 
      fi
17483
 
      ;;
17484
 
 
17485
 
    netbsd* | netbsdelf*-gnu)
17486
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17487
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17488
 
        wlarc=
17489
 
      else
17490
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17492
 
      fi
17493
 
      ;;
17494
 
 
17495
 
    solaris*)
17496
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17497
 
        ld_shlibs_GCJ=no
17498
 
        cat <<EOF 1>&2
17499
 
 
17500
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17501
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17502
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17503
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17504
 
*** your PATH or compiler configuration so that the native linker is
17505
 
*** used, and then restart.
17506
 
 
17507
 
EOF
17508
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17509
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511
 
      else
17512
 
        ld_shlibs_GCJ=no
17513
 
      fi
17514
 
      ;;
17515
 
 
17516
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17517
 
      case `$LD -v 2>&1` in
17518
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17519
 
        ld_shlibs_GCJ=no
17520
 
        cat <<_LT_EOF 1>&2
17521
 
 
17522
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17523
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17524
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17525
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17526
 
*** your PATH or compiler configuration so that the native linker is
17527
 
*** used, and then restart.
17528
 
 
17529
 
_LT_EOF
17530
 
        ;;
17531
 
        *)
17532
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17534
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17535
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17536
 
          else
17537
 
            ld_shlibs_GCJ=no
17538
 
          fi
17539
 
        ;;
17540
 
      esac
17541
 
      ;;
17542
 
 
17543
 
    sunos4*)
17544
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17545
 
      wlarc=
17546
 
      hardcode_direct_GCJ=yes
17547
 
      hardcode_shlibpath_var_GCJ=no
17548
 
      ;;
17549
 
 
17550
 
    *)
17551
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17554
 
      else
17555
 
        ld_shlibs_GCJ=no
17556
 
      fi
17557
 
      ;;
17558
 
    esac
17559
 
 
17560
 
    if test "$ld_shlibs_GCJ" = no; then
17561
 
      runpath_var=
17562
 
      hardcode_libdir_flag_spec_GCJ=
17563
 
      export_dynamic_flag_spec_GCJ=
17564
 
      whole_archive_flag_spec_GCJ=
17565
 
    fi
17566
 
  else
17567
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17568
 
    case $host_os in
17569
 
    aix3*)
17570
 
      allow_undefined_flag_GCJ=unsupported
17571
 
      always_export_symbols_GCJ=yes
17572
 
      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'
17573
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17574
 
      # are no directories specified by -L.
17575
 
      hardcode_minus_L_GCJ=yes
17576
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17577
 
        # Neither direct hardcoding nor static linking is supported with a
17578
 
        # broken collect2.
17579
 
        hardcode_direct_GCJ=unsupported
17580
 
      fi
17581
 
      ;;
17582
 
 
17583
 
    aix[4-9]*)
17584
 
      if test "$host_cpu" = ia64; then
17585
 
        # On IA64, the linker does run time linking by default, so we don't
17586
 
        # have to do anything special.
17587
 
        aix_use_runtimelinking=no
17588
 
        exp_sym_flag='-Bexport'
17589
 
        no_entry_flag=""
17590
 
      else
17591
 
        # If we're using GNU nm, then we don't want the "-C" option.
17592
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17593
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17594
 
          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'
17595
 
        else
17596
 
          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'
17597
 
        fi
17598
 
        aix_use_runtimelinking=no
17599
 
 
17600
 
        # Test if we are trying to use run time linking or normal
17601
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17602
 
        # need to do runtime linking.
17603
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17604
 
          for ld_flag in $LDFLAGS; do
17605
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17606
 
            aix_use_runtimelinking=yes
17607
 
            break
17608
 
          fi
17609
 
          done
17610
 
          ;;
17611
 
        esac
17612
 
 
17613
 
        exp_sym_flag='-bexport'
17614
 
        no_entry_flag='-bnoentry'
17615
 
      fi
17616
 
 
17617
 
      # When large executables or shared objects are built, AIX ld can
17618
 
      # have problems creating the table of contents.  If linking a library
17619
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17620
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17621
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17622
 
 
17623
 
      archive_cmds_GCJ=''
17624
 
      hardcode_direct_GCJ=yes
17625
 
      hardcode_libdir_separator_GCJ=':'
17626
 
      link_all_deplibs_GCJ=yes
17627
 
 
17628
 
      if test "$GCC" = yes; then
17629
 
        case $host_os in aix4.[012]|aix4.[012].*)
17630
 
        # We only want to do this on AIX 4.2 and lower, the check
17631
 
        # below for broken collect2 doesn't work under 4.3+
17632
 
          collect2name=`${CC} -print-prog-name=collect2`
17633
 
          if test -f "$collect2name" && \
17634
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17635
 
          then
17636
 
          # We have reworked collect2
17637
 
          :
17638
 
          else
17639
 
          # We have old collect2
17640
 
          hardcode_direct_GCJ=unsupported
17641
 
          # It fails to find uninstalled libraries when the uninstalled
17642
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17643
 
          # to unsupported forces relinking
17644
 
          hardcode_minus_L_GCJ=yes
17645
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646
 
          hardcode_libdir_separator_GCJ=
17647
 
          fi
17648
 
          ;;
17649
 
        esac
17650
 
        shared_flag='-shared'
17651
 
        if test "$aix_use_runtimelinking" = yes; then
17652
 
          shared_flag="$shared_flag "'${wl}-G'
17653
 
        fi
17654
 
      else
17655
 
        # not using gcc
17656
 
        if test "$host_cpu" = ia64; then
17657
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17658
 
        # chokes on -Wl,-G. The following line is correct:
17659
 
          shared_flag='-G'
17660
 
        else
17661
 
          if test "$aix_use_runtimelinking" = yes; then
17662
 
            shared_flag='${wl}-G'
17663
 
          else
17664
 
            shared_flag='${wl}-bM:SRE'
17665
 
          fi
17666
 
        fi
17667
 
      fi
17668
 
 
17669
 
      # It seems that -bexpall does not export symbols beginning with
17670
 
      # underscore (_), so it is better to generate a list of symbols to export.
17671
 
      always_export_symbols_GCJ=yes
17672
 
      if test "$aix_use_runtimelinking" = yes; then
17673
 
        # Warning - without using the other runtime loading flags (-brtl),
17674
 
        # -berok will link without error, but may produce a broken library.
17675
 
        allow_undefined_flag_GCJ='-berok'
17676
 
       # Determine the default libpath from the value encoded in an empty executable.
17677
 
       cat >conftest.$ac_ext <<_ACEOF
17678
 
/* confdefs.h.  */
17679
 
_ACEOF
17680
 
cat confdefs.h >>conftest.$ac_ext
17681
 
cat >>conftest.$ac_ext <<_ACEOF
17682
 
/* end confdefs.h.  */
17683
 
 
17684
 
int
17685
 
main ()
17686
 
{
17687
 
 
17688
 
  ;
17689
 
  return 0;
17690
 
}
17691
 
_ACEOF
17692
 
rm -f conftest.$ac_objext conftest$ac_exeext
17693
 
if { (ac_try="$ac_link"
17694
 
case "(($ac_try" in
17695
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696
 
  *) ac_try_echo=$ac_try;;
17697
 
esac
17698
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699
 
  (eval "$ac_link") 2>conftest.er1
17700
 
  ac_status=$?
17701
 
  grep -v '^ *+' conftest.er1 >conftest.err
17702
 
  rm -f conftest.er1
17703
 
  cat conftest.err >&5
17704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705
 
  (exit $ac_status); } && {
17706
 
         test -z "$ac_c_werror_flag" ||
17707
 
         test ! -s conftest.err
17708
 
       } && test -s conftest$ac_exeext &&
17709
 
       $as_test_x conftest$ac_exeext; then
17710
 
 
17711
 
lt_aix_libpath_sed='
17712
 
    /Import File Strings/,/^$/ {
17713
 
        /^0/ {
17714
 
            s/^0  *\(.*\)$/\1/
17715
 
            p
17716
 
        }
17717
 
    }'
17718
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17719
 
# Check for a 64-bit object if we didn't find anything.
17720
 
if test -z "$aix_libpath"; then
17721
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17722
 
fi
17723
 
else
17724
 
  echo "$as_me: failed program was:" >&5
17725
 
sed 's/^/| /' conftest.$ac_ext >&5
17726
 
 
17727
 
 
17728
 
fi
17729
 
 
17730
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731
 
      conftest$ac_exeext conftest.$ac_ext
17732
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17733
 
 
17734
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17735
 
        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"
17736
 
       else
17737
 
        if test "$host_cpu" = ia64; then
17738
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17739
 
          allow_undefined_flag_GCJ="-z nodefs"
17740
 
          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"
17741
 
        else
17742
 
         # Determine the default libpath from the value encoded in an empty executable.
17743
 
         cat >conftest.$ac_ext <<_ACEOF
17744
 
/* confdefs.h.  */
17745
 
_ACEOF
17746
 
cat confdefs.h >>conftest.$ac_ext
17747
 
cat >>conftest.$ac_ext <<_ACEOF
17748
 
/* end confdefs.h.  */
17749
 
 
17750
 
int
17751
 
main ()
17752
 
{
17753
 
 
17754
 
  ;
17755
 
  return 0;
17756
 
}
17757
 
_ACEOF
17758
 
rm -f conftest.$ac_objext conftest$ac_exeext
17759
 
if { (ac_try="$ac_link"
17760
 
case "(($ac_try" in
17761
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762
 
  *) ac_try_echo=$ac_try;;
17763
 
esac
17764
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765
 
  (eval "$ac_link") 2>conftest.er1
17766
 
  ac_status=$?
17767
 
  grep -v '^ *+' conftest.er1 >conftest.err
17768
 
  rm -f conftest.er1
17769
 
  cat conftest.err >&5
17770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771
 
  (exit $ac_status); } && {
17772
 
         test -z "$ac_c_werror_flag" ||
17773
 
         test ! -s conftest.err
17774
 
       } && test -s conftest$ac_exeext &&
17775
 
       $as_test_x conftest$ac_exeext; then
17776
 
 
17777
 
lt_aix_libpath_sed='
17778
 
    /Import File Strings/,/^$/ {
17779
 
        /^0/ {
17780
 
            s/^0  *\(.*\)$/\1/
17781
 
            p
17782
 
        }
17783
 
    }'
17784
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785
 
# Check for a 64-bit object if we didn't find anything.
17786
 
if test -z "$aix_libpath"; then
17787
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788
 
fi
17789
 
else
17790
 
  echo "$as_me: failed program was:" >&5
17791
 
sed 's/^/| /' conftest.$ac_ext >&5
17792
 
 
17793
 
 
17794
 
fi
17795
 
 
17796
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797
 
      conftest$ac_exeext conftest.$ac_ext
17798
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17799
 
 
17800
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17801
 
          # Warning - without using the other run time loading flags,
17802
 
          # -berok will link without error, but may produce a broken library.
17803
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17804
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17805
 
          # Exported symbols can be pulled into shared objects from archives
17806
 
          whole_archive_flag_spec_GCJ='$convenience'
17807
 
          archive_cmds_need_lc_GCJ=yes
17808
 
          # This is similar to how AIX traditionally builds its shared libraries.
17809
 
          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'
17810
 
        fi
17811
 
      fi
17812
 
      ;;
17813
 
 
17814
 
    amigaos*)
17815
 
      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)'
17816
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817
 
      hardcode_minus_L_GCJ=yes
17818
 
      # see comment about different semantics on the GNU ld section
17819
 
      ld_shlibs_GCJ=no
17820
 
      ;;
17821
 
 
17822
 
    bsdi[45]*)
17823
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17824
 
      ;;
17825
 
 
17826
 
    cygwin* | mingw* | pw32*)
17827
 
      # When not using gcc, we currently assume that we are using
17828
 
      # Microsoft Visual C++.
17829
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17830
 
      # no search path for DLLs.
17831
 
      hardcode_libdir_flag_spec_GCJ=' '
17832
 
      allow_undefined_flag_GCJ=unsupported
17833
 
      # Tell ltmain to make .lib files, not .a files.
17834
 
      libext=lib
17835
 
      # Tell ltmain to make .dll files, not .so files.
17836
 
      shrext_cmds=".dll"
17837
 
      # FIXME: Setting linknames here is a bad hack.
17838
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17839
 
      # The linker will automatically build a .lib file if we build a DLL.
17840
 
      old_archive_From_new_cmds_GCJ='true'
17841
 
      # FIXME: Should let the user specify the lib program.
17842
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17843
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17844
 
      enable_shared_with_static_runtimes_GCJ=yes
17845
 
      ;;
17846
 
 
17847
 
    darwin* | rhapsody*)
17848
 
      case $host_os in
17849
 
        rhapsody* | darwin1.[012])
17850
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17851
 
         ;;
17852
 
       *) # Darwin 1.3 on
17853
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17854
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17855
 
         else
17856
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17857
 
             10.[012])
17858
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17859
 
               ;;
17860
 
             10.*)
17861
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17862
 
               ;;
17863
 
           esac
17864
 
         fi
17865
 
         ;;
17866
 
      esac
17867
 
      archive_cmds_need_lc_GCJ=no
17868
 
      hardcode_direct_GCJ=no
17869
 
      hardcode_automatic_GCJ=yes
17870
 
      hardcode_shlibpath_var_GCJ=unsupported
17871
 
      whole_archive_flag_spec_GCJ=''
17872
 
      link_all_deplibs_GCJ=yes
17873
 
    if test "$GCC" = yes ; then
17874
 
        output_verbose_link_cmd='echo'
17875
 
        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}"
17876
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17877
 
        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}"
17878
 
        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}"
17879
 
    else
17880
 
      case $cc_basename in
17881
 
        xlc*)
17882
 
         output_verbose_link_cmd='echo'
17883
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17884
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17885
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17886
 
         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}'
17887
 
          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}'
17888
 
          ;;
17889
 
       *)
17890
 
         ld_shlibs_GCJ=no
17891
 
          ;;
17892
 
      esac
17893
 
    fi
17894
 
      ;;
17895
 
 
17896
 
    dgux*)
17897
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17898
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899
 
      hardcode_shlibpath_var_GCJ=no
17900
 
      ;;
17901
 
 
17902
 
    freebsd1*)
17903
 
      ld_shlibs_GCJ=no
17904
 
      ;;
17905
 
 
17906
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17907
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17908
 
    # does not break anything, and helps significantly (at the cost of a little
17909
 
    # extra space).
17910
 
    freebsd2.2*)
17911
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17912
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913
 
      hardcode_direct_GCJ=yes
17914
 
      hardcode_shlibpath_var_GCJ=no
17915
 
      ;;
17916
 
 
17917
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17918
 
    freebsd2*)
17919
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920
 
      hardcode_direct_GCJ=yes
17921
 
      hardcode_minus_L_GCJ=yes
17922
 
      hardcode_shlibpath_var_GCJ=no
17923
 
      ;;
17924
 
 
17925
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17926
 
    freebsd* | dragonfly*)
17927
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17928
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929
 
      hardcode_direct_GCJ=yes
17930
 
      hardcode_shlibpath_var_GCJ=no
17931
 
      ;;
17932
 
 
17933
 
    hpux9*)
17934
 
      if test "$GCC" = yes; then
17935
 
        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'
17936
 
      else
17937
 
        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'
17938
 
      fi
17939
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17940
 
      hardcode_libdir_separator_GCJ=:
17941
 
      hardcode_direct_GCJ=yes
17942
 
 
17943
 
      # hardcode_minus_L: Not really in the search PATH,
17944
 
      # but as the default location of the library.
17945
 
      hardcode_minus_L_GCJ=yes
17946
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17947
 
      ;;
17948
 
 
17949
 
    hpux10*)
17950
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17951
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17952
 
      else
17953
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17954
 
      fi
17955
 
      if test "$with_gnu_ld" = no; then
17956
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957
 
        hardcode_libdir_separator_GCJ=:
17958
 
 
17959
 
        hardcode_direct_GCJ=yes
17960
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17961
 
 
17962
 
        # hardcode_minus_L: Not really in the search PATH,
17963
 
        # but as the default location of the library.
17964
 
        hardcode_minus_L_GCJ=yes
17965
 
      fi
17966
 
      ;;
17967
 
 
17968
 
    hpux11*)
17969
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17970
 
        case $host_cpu in
17971
 
        hppa*64*)
17972
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17973
 
          ;;
17974
 
        ia64*)
17975
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17976
 
          ;;
17977
 
        *)
17978
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17979
 
          ;;
17980
 
        esac
17981
 
      else
17982
 
        case $host_cpu in
17983
 
        hppa*64*)
17984
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985
 
          ;;
17986
 
        ia64*)
17987
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17988
 
          ;;
17989
 
        *)
17990
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17991
 
          ;;
17992
 
        esac
17993
 
      fi
17994
 
      if test "$with_gnu_ld" = no; then
17995
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17996
 
        hardcode_libdir_separator_GCJ=:
17997
 
 
17998
 
        case $host_cpu in
17999
 
        hppa*64*|ia64*)
18000
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18001
 
          hardcode_direct_GCJ=no
18002
 
          hardcode_shlibpath_var_GCJ=no
18003
 
          ;;
18004
 
        *)
18005
 
          hardcode_direct_GCJ=yes
18006
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18007
 
 
18008
 
          # hardcode_minus_L: Not really in the search PATH,
18009
 
          # but as the default location of the library.
18010
 
          hardcode_minus_L_GCJ=yes
18011
 
          ;;
18012
 
        esac
18013
 
      fi
18014
 
      ;;
18015
 
 
18016
 
    irix5* | irix6* | nonstopux*)
18017
 
      if test "$GCC" = yes; then
18018
 
        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'
18019
 
      else
18020
 
        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'
18021
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18022
 
      fi
18023
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18024
 
      hardcode_libdir_separator_GCJ=:
18025
 
      link_all_deplibs_GCJ=yes
18026
 
      ;;
18027
 
 
18028
 
    netbsd* | netbsdelf*-gnu)
18029
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18030
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18031
 
      else
18032
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18033
 
      fi
18034
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035
 
      hardcode_direct_GCJ=yes
18036
 
      hardcode_shlibpath_var_GCJ=no
18037
 
      ;;
18038
 
 
18039
 
    newsos6)
18040
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041
 
      hardcode_direct_GCJ=yes
18042
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18043
 
      hardcode_libdir_separator_GCJ=:
18044
 
      hardcode_shlibpath_var_GCJ=no
18045
 
      ;;
18046
 
 
18047
 
    openbsd*)
18048
 
      if test -f /usr/libexec/ld.so; then
18049
 
        hardcode_direct_GCJ=yes
18050
 
        hardcode_shlibpath_var_GCJ=no
18051
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18056
 
        else
18057
 
          case $host_os in
18058
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061
 
             ;;
18062
 
           *)
18063
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18065
 
             ;;
18066
 
          esac
18067
 
        fi
18068
 
      else
18069
 
        ld_shlibs_GCJ=no
18070
 
      fi
18071
 
      ;;
18072
 
 
18073
 
    os2*)
18074
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075
 
      hardcode_minus_L_GCJ=yes
18076
 
      allow_undefined_flag_GCJ=unsupported
18077
 
      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'
18078
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18079
 
      ;;
18080
 
 
18081
 
    osf3*)
18082
 
      if test "$GCC" = yes; then
18083
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18084
 
        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'
18085
 
      else
18086
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18087
 
        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'
18088
 
      fi
18089
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18090
 
      hardcode_libdir_separator_GCJ=:
18091
 
      ;;
18092
 
 
18093
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18094
 
      if test "$GCC" = yes; then
18095
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18096
 
        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'
18097
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18098
 
      else
18099
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18100
 
        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'
18101
 
        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~
18102
 
        $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'
18103
 
 
18104
 
        # Both c and cxx compiler support -rpath directly
18105
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18106
 
      fi
18107
 
      hardcode_libdir_separator_GCJ=:
18108
 
      ;;
18109
 
 
18110
 
    solaris*)
18111
 
      no_undefined_flag_GCJ=' -z text'
18112
 
      if test "$GCC" = yes; then
18113
 
        wlarc='${wl}'
18114
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18117
 
      else
18118
 
        wlarc=''
18119
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18121
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18122
 
      fi
18123
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124
 
      hardcode_shlibpath_var_GCJ=no
18125
 
      case $host_os in
18126
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18127
 
      *)
18128
 
        # The compiler driver will combine and reorder linker options,
18129
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18130
 
        # but is careful enough not to reorder.
18131
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18132
 
        if test "$GCC" = yes; then
18133
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18134
 
        else
18135
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18136
 
        fi
18137
 
        ;;
18138
 
      esac
18139
 
      link_all_deplibs_GCJ=yes
18140
 
      ;;
18141
 
 
18142
 
    sunos4*)
18143
 
      if test "x$host_vendor" = xsequent; then
18144
 
        # Use $CC to link under sequent, because it throws in some extra .o
18145
 
        # files that make .init and .fini sections work.
18146
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18147
 
      else
18148
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18149
 
      fi
18150
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151
 
      hardcode_direct_GCJ=yes
18152
 
      hardcode_minus_L_GCJ=yes
18153
 
      hardcode_shlibpath_var_GCJ=no
18154
 
      ;;
18155
 
 
18156
 
    sysv4)
18157
 
      case $host_vendor in
18158
 
        sni)
18159
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160
 
          hardcode_direct_GCJ=yes # is this really true???
18161
 
        ;;
18162
 
        siemens)
18163
 
          ## LD is ld it makes a PLAMLIB
18164
 
          ## CC just makes a GrossModule.
18165
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18166
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18167
 
          hardcode_direct_GCJ=no
18168
 
        ;;
18169
 
        motorola)
18170
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18172
 
        ;;
18173
 
      esac
18174
 
      runpath_var='LD_RUN_PATH'
18175
 
      hardcode_shlibpath_var_GCJ=no
18176
 
      ;;
18177
 
 
18178
 
    sysv4.3*)
18179
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180
 
      hardcode_shlibpath_var_GCJ=no
18181
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18182
 
      ;;
18183
 
 
18184
 
    sysv4*MP*)
18185
 
      if test -d /usr/nec; then
18186
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187
 
        hardcode_shlibpath_var_GCJ=no
18188
 
        runpath_var=LD_RUN_PATH
18189
 
        hardcode_runpath_var=yes
18190
 
        ld_shlibs_GCJ=yes
18191
 
      fi
18192
 
      ;;
18193
 
 
18194
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18195
 
      no_undefined_flag_GCJ='${wl}-z,text'
18196
 
      archive_cmds_need_lc_GCJ=no
18197
 
      hardcode_shlibpath_var_GCJ=no
18198
 
      runpath_var='LD_RUN_PATH'
18199
 
 
18200
 
      if test "$GCC" = yes; then
18201
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18202
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18203
 
      else
18204
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18205
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18206
 
      fi
18207
 
      ;;
18208
 
 
18209
 
    sysv5* | sco3.2v5* | sco5v6*)
18210
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18211
 
      # link with -lc, and that would cause any symbols used from libc to
18212
 
      # always be unresolved, which means just about no library would
18213
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18214
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18215
 
      # as -z defs.
18216
 
      no_undefined_flag_GCJ='${wl}-z,text'
18217
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18218
 
      archive_cmds_need_lc_GCJ=no
18219
 
      hardcode_shlibpath_var_GCJ=no
18220
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18221
 
      hardcode_libdir_separator_GCJ=':'
18222
 
      link_all_deplibs_GCJ=yes
18223
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18224
 
      runpath_var='LD_RUN_PATH'
18225
 
 
18226
 
      if test "$GCC" = yes; then
18227
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18228
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18229
 
      else
18230
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18232
 
      fi
18233
 
      ;;
18234
 
 
18235
 
    uts4*)
18236
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18238
 
      hardcode_shlibpath_var_GCJ=no
18239
 
      ;;
18240
 
 
18241
 
    *)
18242
 
      ld_shlibs_GCJ=no
18243
 
      ;;
18244
 
    esac
18245
 
  fi
18246
 
 
18247
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18248
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18249
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18250
 
 
18251
 
#
18252
 
# Do we need to explicitly link libc?
18253
 
#
18254
 
case "x$archive_cmds_need_lc_GCJ" in
18255
 
x|xyes)
18256
 
  # Assume -lc should be added
18257
 
  archive_cmds_need_lc_GCJ=yes
18258
 
 
18259
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18260
 
    case $archive_cmds_GCJ in
18261
 
    *'~'*)
18262
 
      # FIXME: we may have to deal with multi-command sequences.
18263
 
      ;;
18264
 
    '$CC '*)
18265
 
      # Test whether the compiler implicitly links with -lc since on some
18266
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18267
 
      # to ld, don't add -lc before -lgcc.
18268
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18269
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18270
 
      $rm conftest*
18271
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18272
 
 
18273
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274
 
  (eval $ac_compile) 2>&5
18275
 
  ac_status=$?
18276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277
 
  (exit $ac_status); } 2>conftest.err; then
18278
 
        soname=conftest
18279
 
        lib=conftest
18280
 
        libobjs=conftest.$ac_objext
18281
 
        deplibs=
18282
 
        wl=$lt_prog_compiler_wl_GCJ
18283
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18284
 
        compiler_flags=-v
18285
 
        linker_flags=-v
18286
 
        verstring=
18287
 
        output_objdir=.
18288
 
        libname=conftest
18289
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18290
 
        allow_undefined_flag_GCJ=
18291
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18292
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18293
 
  ac_status=$?
18294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295
 
  (exit $ac_status); }
18296
 
        then
18297
 
          archive_cmds_need_lc_GCJ=no
18298
 
        else
18299
 
          archive_cmds_need_lc_GCJ=yes
18300
 
        fi
18301
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18302
 
      else
18303
 
        cat conftest.err 1>&5
18304
 
      fi
18305
 
      $rm conftest*
18306
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18307
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18308
 
      ;;
18309
 
    esac
18310
 
  fi
18311
 
  ;;
18312
 
esac
18313
 
 
18314
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18315
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18316
 
library_names_spec=
18317
 
libname_spec='lib$name'
18318
 
soname_spec=
18319
 
shrext_cmds=".so"
18320
 
postinstall_cmds=
18321
 
postuninstall_cmds=
18322
 
finish_cmds=
18323
 
finish_eval=
18324
 
shlibpath_var=
18325
 
shlibpath_overrides_runpath=unknown
18326
 
version_type=none
18327
 
dynamic_linker="$host_os ld.so"
18328
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18329
 
 
18330
 
need_lib_prefix=unknown
18331
 
hardcode_into_libs=no
18332
 
 
18333
 
# when you set need_version to no, make sure it does not cause -set_version
18334
 
# flags to be left without arguments
18335
 
need_version=unknown
18336
 
 
18337
 
case $host_os in
18338
 
aix3*)
18339
 
  version_type=linux
18340
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18341
 
  shlibpath_var=LIBPATH
18342
 
 
18343
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18344
 
  soname_spec='${libname}${release}${shared_ext}$major'
18345
 
  ;;
18346
 
 
18347
 
aix[4-9]*)
18348
 
  version_type=linux
18349
 
  need_lib_prefix=no
18350
 
  need_version=no
18351
 
  hardcode_into_libs=yes
18352
 
  if test "$host_cpu" = ia64; then
18353
 
    # AIX 5 supports IA64
18354
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18355
 
    shlibpath_var=LD_LIBRARY_PATH
18356
 
  else
18357
 
    # With GCC up to 2.95.x, collect2 would create an import file
18358
 
    # for dependence libraries.  The import file would start with
18359
 
    # the line `#! .'.  This would cause the generated library to
18360
 
    # depend on `.', always an invalid library.  This was fixed in
18361
 
    # development snapshots of GCC prior to 3.0.
18362
 
    case $host_os in
18363
 
      aix4 | aix4.[01] | aix4.[01].*)
18364
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18365
 
           echo ' yes '
18366
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18367
 
        :
18368
 
      else
18369
 
        can_build_shared=no
18370
 
      fi
18371
 
      ;;
18372
 
    esac
18373
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18374
 
    # soname into executable. Probably we can add versioning support to
18375
 
    # collect2, so additional links can be useful in future.
18376
 
    if test "$aix_use_runtimelinking" = yes; then
18377
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18378
 
      # instead of lib<name>.a to let people know that these are not
18379
 
      # typical AIX shared libraries.
18380
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381
 
    else
18382
 
      # We preserve .a as extension for shared libraries through AIX4.2
18383
 
      # and later when we are not doing run time linking.
18384
 
      library_names_spec='${libname}${release}.a $libname.a'
18385
 
      soname_spec='${libname}${release}${shared_ext}$major'
18386
 
    fi
18387
 
    shlibpath_var=LIBPATH
18388
 
  fi
18389
 
  ;;
18390
 
 
18391
 
amigaos*)
18392
 
  library_names_spec='$libname.ixlibrary $libname.a'
18393
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18394
 
  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'
18395
 
  ;;
18396
 
 
18397
 
beos*)
18398
 
  library_names_spec='${libname}${shared_ext}'
18399
 
  dynamic_linker="$host_os ld.so"
18400
 
  shlibpath_var=LIBRARY_PATH
18401
 
  ;;
18402
 
 
18403
 
bsdi[45]*)
18404
 
  version_type=linux
18405
 
  need_version=no
18406
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407
 
  soname_spec='${libname}${release}${shared_ext}$major'
18408
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18409
 
  shlibpath_var=LD_LIBRARY_PATH
18410
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18411
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18412
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18413
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18414
 
  # libtool to hard-code these into programs
18415
 
  ;;
18416
 
 
18417
 
cygwin* | mingw* | pw32*)
18418
 
  version_type=windows
18419
 
  shrext_cmds=".dll"
18420
 
  need_version=no
18421
 
  need_lib_prefix=no
18422
 
 
18423
 
  case $GCC,$host_os in
18424
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18425
 
    library_names_spec='$libname.dll.a'
18426
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18427
 
    postinstall_cmds='base_file=`basename \${file}`~
18428
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18429
 
      dldir=$destdir/`dirname \$dlpath`~
18430
 
      test -d \$dldir || mkdir -p \$dldir~
18431
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18432
 
      chmod a+x \$dldir/$dlname'
18433
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18434
 
      dlpath=$dir/\$dldll~
18435
 
       $rm \$dlpath'
18436
 
    shlibpath_overrides_runpath=yes
18437
 
 
18438
 
    case $host_os in
18439
 
    cygwin*)
18440
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18441
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18443
 
      ;;
18444
 
    mingw*)
18445
 
      # MinGW DLLs use traditional 'lib' prefix
18446
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18448
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18449
 
        # It is most probably a Windows format PATH printed by
18450
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18451
 
        # path with ; separators, and with drive letters. We can handle the
18452
 
        # drive letters (cygwin fileutils understands them), so leave them,
18453
 
        # especially as we might pass files found there to a mingw objdump,
18454
 
        # which wouldn't understand a cygwinified path. Ahh.
18455
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18456
 
      else
18457
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18458
 
      fi
18459
 
      ;;
18460
 
    pw32*)
18461
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18462
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463
 
      ;;
18464
 
    esac
18465
 
    ;;
18466
 
 
18467
 
  *)
18468
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18469
 
    ;;
18470
 
  esac
18471
 
  dynamic_linker='Win32 ld.exe'
18472
 
  # FIXME: first we should search . and the directory the executable is in
18473
 
  shlibpath_var=PATH
18474
 
  ;;
18475
 
 
18476
 
darwin* | rhapsody*)
18477
 
  dynamic_linker="$host_os dyld"
18478
 
  version_type=darwin
18479
 
  need_lib_prefix=no
18480
 
  need_version=no
18481
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18482
 
  soname_spec='${libname}${release}${major}$shared_ext'
18483
 
  shlibpath_overrides_runpath=yes
18484
 
  shlibpath_var=DYLD_LIBRARY_PATH
18485
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18486
 
 
18487
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18488
 
  ;;
18489
 
 
18490
 
dgux*)
18491
 
  version_type=linux
18492
 
  need_lib_prefix=no
18493
 
  need_version=no
18494
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18495
 
  soname_spec='${libname}${release}${shared_ext}$major'
18496
 
  shlibpath_var=LD_LIBRARY_PATH
18497
 
  ;;
18498
 
 
18499
 
freebsd1*)
18500
 
  dynamic_linker=no
18501
 
  ;;
18502
 
 
18503
 
freebsd* | dragonfly*)
18504
 
  # DragonFly does not have aout.  When/if they implement a new
18505
 
  # versioning mechanism, adjust this.
18506
 
  if test -x /usr/bin/objformat; then
18507
 
    objformat=`/usr/bin/objformat`
18508
 
  else
18509
 
    case $host_os in
18510
 
    freebsd[123]*) objformat=aout ;;
18511
 
    *) objformat=elf ;;
18512
 
    esac
18513
 
  fi
18514
 
  version_type=freebsd-$objformat
18515
 
  case $version_type in
18516
 
    freebsd-elf*)
18517
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18518
 
      need_version=no
18519
 
      need_lib_prefix=no
18520
 
      ;;
18521
 
    freebsd-*)
18522
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18523
 
      need_version=yes
18524
 
      ;;
18525
 
  esac
18526
 
  shlibpath_var=LD_LIBRARY_PATH
18527
 
  case $host_os in
18528
 
  freebsd2*)
18529
 
    shlibpath_overrides_runpath=yes
18530
 
    ;;
18531
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18532
 
    shlibpath_overrides_runpath=yes
18533
 
    hardcode_into_libs=yes
18534
 
    ;;
18535
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18536
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18537
 
    shlibpath_overrides_runpath=no
18538
 
    hardcode_into_libs=yes
18539
 
    ;;
18540
 
  *) # from 4.6 on, and DragonFly
18541
 
    shlibpath_overrides_runpath=yes
18542
 
    hardcode_into_libs=yes
18543
 
    ;;
18544
 
  esac
18545
 
  ;;
18546
 
 
18547
 
gnu*)
18548
 
  version_type=linux
18549
 
  need_lib_prefix=no
18550
 
  need_version=no
18551
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18552
 
  soname_spec='${libname}${release}${shared_ext}$major'
18553
 
  shlibpath_var=LD_LIBRARY_PATH
18554
 
  hardcode_into_libs=yes
18555
 
  ;;
18556
 
 
18557
 
hpux9* | hpux10* | hpux11*)
18558
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18559
 
  # link against other versions.
18560
 
  version_type=sunos
18561
 
  need_lib_prefix=no
18562
 
  need_version=no
18563
 
  case $host_cpu in
18564
 
  ia64*)
18565
 
    shrext_cmds='.so'
18566
 
    hardcode_into_libs=yes
18567
 
    dynamic_linker="$host_os dld.so"
18568
 
    shlibpath_var=LD_LIBRARY_PATH
18569
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18570
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571
 
    soname_spec='${libname}${release}${shared_ext}$major'
18572
 
    if test "X$HPUX_IA64_MODE" = X32; then
18573
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18574
 
    else
18575
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18576
 
    fi
18577
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18578
 
    ;;
18579
 
   hppa*64*)
18580
 
     shrext_cmds='.sl'
18581
 
     hardcode_into_libs=yes
18582
 
     dynamic_linker="$host_os dld.sl"
18583
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18584
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18585
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586
 
     soname_spec='${libname}${release}${shared_ext}$major'
18587
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18588
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589
 
     ;;
18590
 
   *)
18591
 
    shrext_cmds='.sl'
18592
 
    dynamic_linker="$host_os dld.sl"
18593
 
    shlibpath_var=SHLIB_PATH
18594
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18595
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596
 
    soname_spec='${libname}${release}${shared_ext}$major'
18597
 
    ;;
18598
 
  esac
18599
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18600
 
  postinstall_cmds='chmod 555 $lib'
18601
 
  ;;
18602
 
 
18603
 
interix[3-9]*)
18604
 
  version_type=linux
18605
 
  need_lib_prefix=no
18606
 
  need_version=no
18607
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608
 
  soname_spec='${libname}${release}${shared_ext}$major'
18609
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18610
 
  shlibpath_var=LD_LIBRARY_PATH
18611
 
  shlibpath_overrides_runpath=no
18612
 
  hardcode_into_libs=yes
18613
 
  ;;
18614
 
 
18615
 
irix5* | irix6* | nonstopux*)
18616
 
  case $host_os in
18617
 
    nonstopux*) version_type=nonstopux ;;
18618
 
    *)
18619
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18620
 
                version_type=linux
18621
 
        else
18622
 
                version_type=irix
18623
 
        fi ;;
18624
 
  esac
18625
 
  need_lib_prefix=no
18626
 
  need_version=no
18627
 
  soname_spec='${libname}${release}${shared_ext}$major'
18628
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18629
 
  case $host_os in
18630
 
  irix5* | nonstopux*)
18631
 
    libsuff= shlibsuff=
18632
 
    ;;
18633
 
  *)
18634
 
    case $LD in # libtool.m4 will add one of these switches to LD
18635
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18636
 
      libsuff= shlibsuff= libmagic=32-bit;;
18637
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18638
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18639
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18640
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18641
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18642
 
    esac
18643
 
    ;;
18644
 
  esac
18645
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18646
 
  shlibpath_overrides_runpath=no
18647
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18648
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18649
 
  hardcode_into_libs=yes
18650
 
  ;;
18651
 
 
18652
 
# No shared lib support for Linux oldld, aout, or coff.
18653
 
linux*oldld* | linux*aout* | linux*coff*)
18654
 
  dynamic_linker=no
18655
 
  ;;
18656
 
 
18657
 
# This must be Linux ELF.
18658
 
linux* | k*bsd*-gnu)
18659
 
  version_type=linux
18660
 
  need_lib_prefix=no
18661
 
  need_version=no
18662
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663
 
  soname_spec='${libname}${release}${shared_ext}$major'
18664
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18665
 
  shlibpath_var=LD_LIBRARY_PATH
18666
 
  shlibpath_overrides_runpath=no
18667
 
  # This implies no fast_install, which is unacceptable.
18668
 
  # Some rework will be needed to allow for fast_install
18669
 
  # before this can be enabled.
18670
 
  hardcode_into_libs=yes
18671
 
 
18672
 
  # Append ld.so.conf contents to the search path
18673
 
  if test -f /etc/ld.so.conf; then
18674
 
    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' ' '`
18675
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18676
 
  fi
18677
 
 
18678
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18679
 
  # powerpc, because MkLinux only supported shared libraries with the
18680
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18681
 
  # most powerpc-linux boxes support dynamic linking these days and
18682
 
  # people can always --disable-shared, the test was removed, and we
18683
 
  # assume the GNU/Linux dynamic linker is in use.
18684
 
  dynamic_linker='GNU/Linux ld.so'
18685
 
  ;;
18686
 
 
18687
 
netbsdelf*-gnu)
18688
 
  version_type=linux
18689
 
  need_lib_prefix=no
18690
 
  need_version=no
18691
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18692
 
  soname_spec='${libname}${release}${shared_ext}$major'
18693
 
  shlibpath_var=LD_LIBRARY_PATH
18694
 
  shlibpath_overrides_runpath=no
18695
 
  hardcode_into_libs=yes
18696
 
  dynamic_linker='NetBSD ld.elf_so'
18697
 
  ;;
18698
 
 
18699
 
netbsd*)
18700
 
  version_type=sunos
18701
 
  need_lib_prefix=no
18702
 
  need_version=no
18703
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18704
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18705
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18706
 
    dynamic_linker='NetBSD (a.out) ld.so'
18707
 
  else
18708
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709
 
    soname_spec='${libname}${release}${shared_ext}$major'
18710
 
    dynamic_linker='NetBSD ld.elf_so'
18711
 
  fi
18712
 
  shlibpath_var=LD_LIBRARY_PATH
18713
 
  shlibpath_overrides_runpath=yes
18714
 
  hardcode_into_libs=yes
18715
 
  ;;
18716
 
 
18717
 
newsos6)
18718
 
  version_type=linux
18719
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720
 
  shlibpath_var=LD_LIBRARY_PATH
18721
 
  shlibpath_overrides_runpath=yes
18722
 
  ;;
18723
 
 
18724
 
nto-qnx*)
18725
 
  version_type=linux
18726
 
  need_lib_prefix=no
18727
 
  need_version=no
18728
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729
 
  soname_spec='${libname}${release}${shared_ext}$major'
18730
 
  shlibpath_var=LD_LIBRARY_PATH
18731
 
  shlibpath_overrides_runpath=yes
18732
 
  ;;
18733
 
 
18734
 
openbsd*)
18735
 
  version_type=sunos
18736
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18737
 
  need_lib_prefix=no
18738
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18739
 
  case $host_os in
18740
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18741
 
    *)                         need_version=no  ;;
18742
 
  esac
18743
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18744
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18745
 
  shlibpath_var=LD_LIBRARY_PATH
18746
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18747
 
    case $host_os in
18748
 
      openbsd2.[89] | openbsd2.[89].*)
18749
 
        shlibpath_overrides_runpath=no
18750
 
        ;;
18751
 
      *)
18752
 
        shlibpath_overrides_runpath=yes
18753
 
        ;;
18754
 
      esac
18755
 
  else
18756
 
    shlibpath_overrides_runpath=yes
18757
 
  fi
18758
 
  ;;
18759
 
 
18760
 
os2*)
18761
 
  libname_spec='$name'
18762
 
  shrext_cmds=".dll"
18763
 
  need_lib_prefix=no
18764
 
  library_names_spec='$libname${shared_ext} $libname.a'
18765
 
  dynamic_linker='OS/2 ld.exe'
18766
 
  shlibpath_var=LIBPATH
18767
 
  ;;
18768
 
 
18769
 
osf3* | osf4* | osf5*)
18770
 
  version_type=osf
18771
 
  need_lib_prefix=no
18772
 
  need_version=no
18773
 
  soname_spec='${libname}${release}${shared_ext}$major'
18774
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775
 
  shlibpath_var=LD_LIBRARY_PATH
18776
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18777
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18778
 
  ;;
18779
 
 
18780
 
rdos*)
18781
 
  dynamic_linker=no
18782
 
  ;;
18783
 
 
18784
 
solaris*)
18785
 
  version_type=linux
18786
 
  need_lib_prefix=no
18787
 
  need_version=no
18788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789
 
  soname_spec='${libname}${release}${shared_ext}$major'
18790
 
  shlibpath_var=LD_LIBRARY_PATH
18791
 
  shlibpath_overrides_runpath=yes
18792
 
  hardcode_into_libs=yes
18793
 
  # ldd complains unless libraries are executable
18794
 
  postinstall_cmds='chmod +x $lib'
18795
 
  ;;
18796
 
 
18797
 
sunos4*)
18798
 
  version_type=sunos
18799
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18800
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18801
 
  shlibpath_var=LD_LIBRARY_PATH
18802
 
  shlibpath_overrides_runpath=yes
18803
 
  if test "$with_gnu_ld" = yes; then
18804
 
    need_lib_prefix=no
18805
 
  fi
18806
 
  need_version=yes
18807
 
  ;;
18808
 
 
18809
 
sysv4 | sysv4.3*)
18810
 
  version_type=linux
18811
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
 
  soname_spec='${libname}${release}${shared_ext}$major'
18813
 
  shlibpath_var=LD_LIBRARY_PATH
18814
 
  case $host_vendor in
18815
 
    sni)
18816
 
      shlibpath_overrides_runpath=no
18817
 
      need_lib_prefix=no
18818
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18819
 
      runpath_var=LD_RUN_PATH
18820
 
      ;;
18821
 
    siemens)
18822
 
      need_lib_prefix=no
18823
 
      ;;
18824
 
    motorola)
18825
 
      need_lib_prefix=no
18826
 
      need_version=no
18827
 
      shlibpath_overrides_runpath=no
18828
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829
 
      ;;
18830
 
  esac
18831
 
  ;;
18832
 
 
18833
 
sysv4*MP*)
18834
 
  if test -d /usr/nec ;then
18835
 
    version_type=linux
18836
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837
 
    soname_spec='$libname${shared_ext}.$major'
18838
 
    shlibpath_var=LD_LIBRARY_PATH
18839
 
  fi
18840
 
  ;;
18841
 
 
18842
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843
 
  version_type=freebsd-elf
18844
 
  need_lib_prefix=no
18845
 
  need_version=no
18846
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847
 
  soname_spec='${libname}${release}${shared_ext}$major'
18848
 
  shlibpath_var=LD_LIBRARY_PATH
18849
 
  hardcode_into_libs=yes
18850
 
  if test "$with_gnu_ld" = yes; then
18851
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18852
 
    shlibpath_overrides_runpath=no
18853
 
  else
18854
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855
 
    shlibpath_overrides_runpath=yes
18856
 
    case $host_os in
18857
 
      sco3.2v5*)
18858
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18859
 
        ;;
18860
 
    esac
18861
 
  fi
18862
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18863
 
  ;;
18864
 
 
18865
 
uts4*)
18866
 
  version_type=linux
18867
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868
 
  soname_spec='${libname}${release}${shared_ext}$major'
18869
 
  shlibpath_var=LD_LIBRARY_PATH
18870
 
  ;;
18871
 
 
18872
 
*)
18873
 
  dynamic_linker=no
18874
 
  ;;
18875
 
esac
18876
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18878
 
test "$dynamic_linker" = no && can_build_shared=no
18879
 
 
18880
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18881
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18882
 
else
18883
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18884
 
fi
18885
 
 
18886
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18887
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18888
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18889
 
else
18890
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18891
 
fi
18892
 
 
18893
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18894
 
 
18895
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18896
 
if test "$GCC" = yes; then
18897
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18898
 
fi
18899
 
 
18900
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18901
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18902
 
hardcode_action_GCJ=
18903
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18904
 
   test -n "$runpath_var_GCJ" || \
18905
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18906
 
 
18907
 
  # We can hardcode non-existant directories.
18908
 
  if test "$hardcode_direct_GCJ" != no &&
18909
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18910
 
     # have to relink, otherwise we might link with an installed library
18911
 
     # when we should be linking with a yet-to-be-installed one
18912
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18913
 
     test "$hardcode_minus_L_GCJ" != no; then
18914
 
    # Linking always hardcodes the temporary library directory.
18915
 
    hardcode_action_GCJ=relink
18916
 
  else
18917
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18918
 
    hardcode_action_GCJ=immediate
18919
 
  fi
18920
 
else
18921
 
  # We cannot hardcode anything, or else we can only hardcode existing
18922
 
  # directories.
18923
 
  hardcode_action_GCJ=unsupported
18924
 
fi
18925
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18926
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18927
 
 
18928
 
if test "$hardcode_action_GCJ" = relink; then
18929
 
  # Fast installation is not supported
18930
 
  enable_fast_install=no
18931
 
elif test "$shlibpath_overrides_runpath" = yes ||
18932
 
     test "$enable_shared" = no; then
18933
 
  # Fast installation is not necessary
18934
 
  enable_fast_install=needless
18935
 
fi
18936
 
 
18937
 
 
18938
 
# The else clause should only fire when bootstrapping the
18939
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18940
 
# with your package, and you will get complaints that there are
18941
 
# no rules to generate ltmain.sh.
18942
 
if test -f "$ltmain"; then
18943
 
  # See if we are running on zsh, and set the options which allow our commands through
18944
 
  # without removal of \ escapes.
18945
 
  if test -n "${ZSH_VERSION+set}" ; then
18946
 
    setopt NO_GLOB_SUBST
18947
 
  fi
18948
 
  # Now quote all the things that may contain metacharacters while being
18949
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18950
 
  # variables and quote the copies for generation of the libtool script.
18951
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18952
 
    SED SHELL STRIP \
18953
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18954
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18955
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18956
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18957
 
    lt_cv_sys_global_symbol_to_c_name_address \
18958
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18959
 
    old_postinstall_cmds old_postuninstall_cmds \
18960
 
    compiler_GCJ \
18961
 
    CC_GCJ \
18962
 
    LD_GCJ \
18963
 
    lt_prog_compiler_wl_GCJ \
18964
 
    lt_prog_compiler_pic_GCJ \
18965
 
    lt_prog_compiler_static_GCJ \
18966
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18967
 
    export_dynamic_flag_spec_GCJ \
18968
 
    thread_safe_flag_spec_GCJ \
18969
 
    whole_archive_flag_spec_GCJ \
18970
 
    enable_shared_with_static_runtimes_GCJ \
18971
 
    old_archive_cmds_GCJ \
18972
 
    old_archive_from_new_cmds_GCJ \
18973
 
    predep_objects_GCJ \
18974
 
    postdep_objects_GCJ \
18975
 
    predeps_GCJ \
18976
 
    postdeps_GCJ \
18977
 
    compiler_lib_search_path_GCJ \
18978
 
    compiler_lib_search_dirs_GCJ \
18979
 
    archive_cmds_GCJ \
18980
 
    archive_expsym_cmds_GCJ \
18981
 
    postinstall_cmds_GCJ \
18982
 
    postuninstall_cmds_GCJ \
18983
 
    old_archive_from_expsyms_cmds_GCJ \
18984
 
    allow_undefined_flag_GCJ \
18985
 
    no_undefined_flag_GCJ \
18986
 
    export_symbols_cmds_GCJ \
18987
 
    hardcode_libdir_flag_spec_GCJ \
18988
 
    hardcode_libdir_flag_spec_ld_GCJ \
18989
 
    hardcode_libdir_separator_GCJ \
18990
 
    hardcode_automatic_GCJ \
18991
 
    module_cmds_GCJ \
18992
 
    module_expsym_cmds_GCJ \
18993
 
    lt_cv_prog_compiler_c_o_GCJ \
18994
 
    fix_srcfile_path_GCJ \
18995
 
    exclude_expsyms_GCJ \
18996
 
    include_expsyms_GCJ; do
18997
 
 
18998
 
    case $var in
18999
 
    old_archive_cmds_GCJ | \
19000
 
    old_archive_from_new_cmds_GCJ | \
19001
 
    archive_cmds_GCJ | \
19002
 
    archive_expsym_cmds_GCJ | \
19003
 
    module_cmds_GCJ | \
19004
 
    module_expsym_cmds_GCJ | \
19005
 
    old_archive_from_expsyms_cmds_GCJ | \
19006
 
    export_symbols_cmds_GCJ | \
19007
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008
 
    postinstall_cmds | postuninstall_cmds | \
19009
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19010
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19011
 
      # Double-quote double-evaled strings.
19012
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19013
 
      ;;
19014
 
    *)
19015
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19016
 
      ;;
19017
 
    esac
19018
 
  done
19019
 
 
19020
 
  case $lt_echo in
19021
 
  *'\$0 --fallback-echo"')
19022
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19023
 
    ;;
19024
 
  esac
19025
 
 
19026
 
cfgfile="$ofile"
19027
 
 
19028
 
  cat <<__EOF__ >> "$cfgfile"
19029
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19030
 
 
19031
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19032
 
 
19033
 
# Shell to use when invoking shell scripts.
19034
 
SHELL=$lt_SHELL
19035
 
 
19036
 
# Whether or not to build shared libraries.
19037
 
build_libtool_libs=$enable_shared
19038
 
 
19039
 
# Whether or not to build static libraries.
19040
 
build_old_libs=$enable_static
19041
 
 
19042
 
# Whether or not to add -lc for building shared libraries.
19043
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19044
 
 
19045
 
# Whether or not to disallow shared libs when runtime libs are static
19046
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19047
 
 
19048
 
# Whether or not to optimize for fast installation.
19049
 
fast_install=$enable_fast_install
19050
 
 
19051
 
# The host system.
19052
 
host_alias=$host_alias
19053
 
host=$host
19054
 
host_os=$host_os
19055
 
 
19056
 
# The build system.
19057
 
build_alias=$build_alias
19058
 
build=$build
19059
 
build_os=$build_os
19060
 
 
19061
 
# An echo program that does not interpret backslashes.
19062
 
echo=$lt_echo
19063
 
 
19064
 
# The archiver.
19065
 
AR=$lt_AR
19066
 
AR_FLAGS=$lt_AR_FLAGS
19067
 
 
19068
 
# A C compiler.
19069
 
LTCC=$lt_LTCC
19070
 
 
19071
 
# LTCC compiler flags.
19072
 
LTCFLAGS=$lt_LTCFLAGS
19073
 
 
19074
 
# A language-specific compiler.
19075
 
CC=$lt_compiler_GCJ
19076
 
 
19077
 
# Is the compiler the GNU C compiler?
19078
 
with_gcc=$GCC_GCJ
19079
 
 
19080
 
# An ERE matcher.
19081
 
EGREP=$lt_EGREP
19082
 
 
19083
 
# The linker used to build libraries.
19084
 
LD=$lt_LD_GCJ
19085
 
 
19086
 
# Whether we need hard or soft links.
19087
 
LN_S=$lt_LN_S
19088
 
 
19089
 
# A BSD-compatible nm program.
19090
 
NM=$lt_NM
19091
 
 
19092
 
# A symbol stripping program
19093
 
STRIP=$lt_STRIP
19094
 
 
19095
 
# Used to examine libraries when file_magic_cmd begins "file"
19096
 
MAGIC_CMD=$MAGIC_CMD
19097
 
 
19098
 
# Used on cygwin: DLL creation program.
19099
 
DLLTOOL="$DLLTOOL"
19100
 
 
19101
 
# Used on cygwin: object dumper.
19102
 
OBJDUMP="$OBJDUMP"
19103
 
 
19104
 
# Used on cygwin: assembler.
19105
 
AS="$AS"
19106
 
 
19107
 
# The name of the directory that contains temporary libtool files.
19108
 
objdir=$objdir
19109
 
 
19110
 
# How to create reloadable object files.
19111
 
reload_flag=$lt_reload_flag
19112
 
reload_cmds=$lt_reload_cmds
19113
 
 
19114
 
# How to pass a linker flag through the compiler.
19115
 
wl=$lt_lt_prog_compiler_wl_GCJ
19116
 
 
19117
 
# Object file suffix (normally "o").
19118
 
objext="$ac_objext"
19119
 
 
19120
 
# Old archive suffix (normally "a").
19121
 
libext="$libext"
19122
 
 
19123
 
# Shared library suffix (normally ".so").
19124
 
shrext_cmds='$shrext_cmds'
19125
 
 
19126
 
# Executable file suffix (normally "").
19127
 
exeext="$exeext"
19128
 
 
19129
 
# Additional compiler flags for building library objects.
19130
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131
 
pic_mode=$pic_mode
19132
 
 
19133
 
# What is the maximum length of a command?
19134
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19135
 
 
19136
 
# Does compiler simultaneously support -c and -o options?
19137
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19138
 
 
19139
 
# Must we lock files when doing compilation?
19140
 
need_locks=$lt_need_locks
19141
 
 
19142
 
# Do we need the lib prefix for modules?
19143
 
need_lib_prefix=$need_lib_prefix
19144
 
 
19145
 
# Do we need a version for libraries?
19146
 
need_version=$need_version
19147
 
 
19148
 
# Whether dlopen is supported.
19149
 
dlopen_support=$enable_dlopen
19150
 
 
19151
 
# Whether dlopen of programs is supported.
19152
 
dlopen_self=$enable_dlopen_self
19153
 
 
19154
 
# Whether dlopen of statically linked programs is supported.
19155
 
dlopen_self_static=$enable_dlopen_self_static
19156
 
 
19157
 
# Compiler flag to prevent dynamic linking.
19158
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19159
 
 
19160
 
# Compiler flag to turn off builtin functions.
19161
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19162
 
 
19163
 
# Compiler flag to allow reflexive dlopens.
19164
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19165
 
 
19166
 
# Compiler flag to generate shared objects directly from archives.
19167
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19168
 
 
19169
 
# Compiler flag to generate thread-safe objects.
19170
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19171
 
 
19172
 
# Library versioning type.
19173
 
version_type=$version_type
19174
 
 
19175
 
# Format of library name prefix.
19176
 
libname_spec=$lt_libname_spec
19177
 
 
19178
 
# List of archive names.  First name is the real one, the rest are links.
19179
 
# The last name is the one that the linker finds with -lNAME.
19180
 
library_names_spec=$lt_library_names_spec
19181
 
 
19182
 
# The coded name of the library, if different from the real name.
19183
 
soname_spec=$lt_soname_spec
19184
 
 
19185
 
# Commands used to build and install an old-style archive.
19186
 
RANLIB=$lt_RANLIB
19187
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19188
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19189
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190
 
 
19191
 
# Create an old-style archive from a shared archive.
19192
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19193
 
 
19194
 
# Create a temporary old-style archive to link instead of a shared archive.
19195
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19196
 
 
19197
 
# Commands used to build and install a shared archive.
19198
 
archive_cmds=$lt_archive_cmds_GCJ
19199
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200
 
postinstall_cmds=$lt_postinstall_cmds
19201
 
postuninstall_cmds=$lt_postuninstall_cmds
19202
 
 
19203
 
# Commands used to build a loadable module (assumed same as above if empty)
19204
 
module_cmds=$lt_module_cmds_GCJ
19205
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19206
 
 
19207
 
# Commands to strip libraries.
19208
 
old_striplib=$lt_old_striplib
19209
 
striplib=$lt_striplib
19210
 
 
19211
 
# Dependencies to place before the objects being linked to create a
19212
 
# shared library.
19213
 
predep_objects=$lt_predep_objects_GCJ
19214
 
 
19215
 
# Dependencies to place after the objects being linked to create a
19216
 
# shared library.
19217
 
postdep_objects=$lt_postdep_objects_GCJ
19218
 
 
19219
 
# Dependencies to place before the objects being linked to create a
19220
 
# shared library.
19221
 
predeps=$lt_predeps_GCJ
19222
 
 
19223
 
# Dependencies to place after the objects being linked to create a
19224
 
# shared library.
19225
 
postdeps=$lt_postdeps_GCJ
19226
 
 
19227
 
# The directories searched by this compiler when creating a shared
19228
 
# library
19229
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19230
 
 
19231
 
# The library search path used internally by the compiler when linking
19232
 
# a shared library.
19233
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19234
 
 
19235
 
# Method to check whether dependent libraries are shared objects.
19236
 
deplibs_check_method=$lt_deplibs_check_method
19237
 
 
19238
 
# Command to use when deplibs_check_method == file_magic.
19239
 
file_magic_cmd=$lt_file_magic_cmd
19240
 
 
19241
 
# Flag that allows shared libraries with undefined symbols to be built.
19242
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19243
 
 
19244
 
# Flag that forces no undefined symbols.
19245
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19246
 
 
19247
 
# Commands used to finish a libtool library installation in a directory.
19248
 
finish_cmds=$lt_finish_cmds
19249
 
 
19250
 
# Same as above, but a single script fragment to be evaled but not shown.
19251
 
finish_eval=$lt_finish_eval
19252
 
 
19253
 
# Take the output of nm and produce a listing of raw symbols and C names.
19254
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19255
 
 
19256
 
# Transform the output of nm in a proper C declaration
19257
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19258
 
 
19259
 
# Transform the output of nm in a C name address pair
19260
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19261
 
 
19262
 
# This is the shared library runtime path variable.
19263
 
runpath_var=$runpath_var
19264
 
 
19265
 
# This is the shared library path variable.
19266
 
shlibpath_var=$shlibpath_var
19267
 
 
19268
 
# Is shlibpath searched before the hard-coded library search path?
19269
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19270
 
 
19271
 
# How to hardcode a shared library path into an executable.
19272
 
hardcode_action=$hardcode_action_GCJ
19273
 
 
19274
 
# Whether we should hardcode library paths into libraries.
19275
 
hardcode_into_libs=$hardcode_into_libs
19276
 
 
19277
 
# Flag to hardcode \$libdir into a binary during linking.
19278
 
# This must work even if \$libdir does not exist.
19279
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19280
 
 
19281
 
# If ld is used when linking, flag to hardcode \$libdir into
19282
 
# a binary during linking. This must work even if \$libdir does
19283
 
# not exist.
19284
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19285
 
 
19286
 
# Whether we need a single -rpath flag with a separated argument.
19287
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19288
 
 
19289
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19290
 
# resulting binary.
19291
 
hardcode_direct=$hardcode_direct_GCJ
19292
 
 
19293
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19294
 
# resulting binary.
19295
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19296
 
 
19297
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19298
 
# the resulting binary.
19299
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19300
 
 
19301
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19302
 
# and all subsequent libraries and executables linked against it.
19303
 
hardcode_automatic=$hardcode_automatic_GCJ
19304
 
 
19305
 
# Variables whose values should be saved in libtool wrapper scripts and
19306
 
# restored at relink time.
19307
 
variables_saved_for_relink="$variables_saved_for_relink"
19308
 
 
19309
 
# Whether libtool must link a program against all its dependency libraries.
19310
 
link_all_deplibs=$link_all_deplibs_GCJ
19311
 
 
19312
 
# Compile-time system search path for libraries
19313
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19314
 
 
19315
 
# Run-time system search path for libraries
19316
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19317
 
 
19318
 
# Fix the shell variable \$srcfile for the compiler.
19319
 
fix_srcfile_path=$lt_fix_srcfile_path
19320
 
 
19321
 
# Set to yes if exported symbols are required.
19322
 
always_export_symbols=$always_export_symbols_GCJ
19323
 
 
19324
 
# The commands to list exported symbols.
19325
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19326
 
 
19327
 
# The commands to extract the exported symbol list from a shared archive.
19328
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19329
 
 
19330
 
# Symbols that should not be listed in the preloaded symbols.
19331
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19332
 
 
19333
 
# Symbols that must always be exported.
19334
 
include_expsyms=$lt_include_expsyms_GCJ
19335
 
 
19336
 
# ### END LIBTOOL TAG CONFIG: $tagname
19337
 
 
19338
 
__EOF__
19339
 
 
19340
 
 
19341
 
else
19342
 
  # If there is no Makefile yet, we rely on a make rule to execute
19343
 
  # `config.status --recheck' to rerun these tests and create the
19344
 
  # libtool script then.
19345
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19346
 
  if test -f "$ltmain_in"; then
19347
 
    test -f Makefile && make "$ltmain"
19348
 
  fi
19349
 
fi
19350
 
 
19351
 
 
19352
 
ac_ext=c
19353
 
ac_cpp='$CPP $CPPFLAGS'
19354
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357
 
 
19358
 
CC="$lt_save_CC"
19359
 
 
19360
 
        else
19361
 
          tagname=""
19362
 
        fi
19363
 
        ;;
19364
 
 
19365
 
      RC)
19366
 
 
19367
 
 
19368
 
# Source file extension for RC test sources.
19369
 
ac_ext=rc
19370
 
 
19371
 
# Object file extension for compiled RC test sources.
19372
 
objext=o
19373
 
objext_RC=$objext
19374
 
 
19375
 
# Code to be used in simple compile tests
19376
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19377
 
 
19378
 
# Code to be used in simple link tests
19379
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19380
 
 
19381
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19382
 
 
19383
 
# If no C compiler was specified, use CC.
19384
 
LTCC=${LTCC-"$CC"}
19385
 
 
19386
 
# If no C compiler flags were specified, use CFLAGS.
19387
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19388
 
 
19389
 
# Allow CC to be a program name with arguments.
19390
 
compiler=$CC
19391
 
 
19392
 
 
19393
 
# save warnings/boilerplate of simple test code
19394
 
ac_outfile=conftest.$ac_objext
19395
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19396
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19397
 
_lt_compiler_boilerplate=`cat conftest.err`
19398
 
$rm conftest*
19399
 
 
19400
 
ac_outfile=conftest.$ac_objext
19401
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19402
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19403
 
_lt_linker_boilerplate=`cat conftest.err`
19404
 
$rm -r conftest*
19405
 
 
19406
 
 
19407
 
# Allow CC to be a program name with arguments.
19408
 
lt_save_CC="$CC"
19409
 
CC=${RC-"windres"}
19410
 
compiler=$CC
19411
 
compiler_RC=$CC
19412
 
for cc_temp in $compiler""; do
19413
 
  case $cc_temp in
19414
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19415
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19416
 
    \-*) ;;
19417
 
    *) break;;
19418
 
  esac
19419
 
done
19420
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19421
 
 
19422
 
lt_cv_prog_compiler_c_o_RC=yes
19423
 
 
19424
 
# The else clause should only fire when bootstrapping the
19425
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19426
 
# with your package, and you will get complaints that there are
19427
 
# no rules to generate ltmain.sh.
19428
 
if test -f "$ltmain"; then
19429
 
  # See if we are running on zsh, and set the options which allow our commands through
19430
 
  # without removal of \ escapes.
19431
 
  if test -n "${ZSH_VERSION+set}" ; then
19432
 
    setopt NO_GLOB_SUBST
19433
 
  fi
19434
 
  # Now quote all the things that may contain metacharacters while being
19435
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19436
 
  # variables and quote the copies for generation of the libtool script.
19437
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19438
 
    SED SHELL STRIP \
19439
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19440
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19441
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19442
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19443
 
    lt_cv_sys_global_symbol_to_c_name_address \
19444
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19445
 
    old_postinstall_cmds old_postuninstall_cmds \
19446
 
    compiler_RC \
19447
 
    CC_RC \
19448
 
    LD_RC \
19449
 
    lt_prog_compiler_wl_RC \
19450
 
    lt_prog_compiler_pic_RC \
19451
 
    lt_prog_compiler_static_RC \
19452
 
    lt_prog_compiler_no_builtin_flag_RC \
19453
 
    export_dynamic_flag_spec_RC \
19454
 
    thread_safe_flag_spec_RC \
19455
 
    whole_archive_flag_spec_RC \
19456
 
    enable_shared_with_static_runtimes_RC \
19457
 
    old_archive_cmds_RC \
19458
 
    old_archive_from_new_cmds_RC \
19459
 
    predep_objects_RC \
19460
 
    postdep_objects_RC \
19461
 
    predeps_RC \
19462
 
    postdeps_RC \
19463
 
    compiler_lib_search_path_RC \
19464
 
    compiler_lib_search_dirs_RC \
19465
 
    archive_cmds_RC \
19466
 
    archive_expsym_cmds_RC \
19467
 
    postinstall_cmds_RC \
19468
 
    postuninstall_cmds_RC \
19469
 
    old_archive_from_expsyms_cmds_RC \
19470
 
    allow_undefined_flag_RC \
19471
 
    no_undefined_flag_RC \
19472
 
    export_symbols_cmds_RC \
19473
 
    hardcode_libdir_flag_spec_RC \
19474
 
    hardcode_libdir_flag_spec_ld_RC \
19475
 
    hardcode_libdir_separator_RC \
19476
 
    hardcode_automatic_RC \
19477
 
    module_cmds_RC \
19478
 
    module_expsym_cmds_RC \
19479
 
    lt_cv_prog_compiler_c_o_RC \
19480
 
    fix_srcfile_path_RC \
19481
 
    exclude_expsyms_RC \
19482
 
    include_expsyms_RC; do
19483
 
 
19484
 
    case $var in
19485
 
    old_archive_cmds_RC | \
19486
 
    old_archive_from_new_cmds_RC | \
19487
 
    archive_cmds_RC | \
19488
 
    archive_expsym_cmds_RC | \
19489
 
    module_cmds_RC | \
19490
 
    module_expsym_cmds_RC | \
19491
 
    old_archive_from_expsyms_cmds_RC | \
19492
 
    export_symbols_cmds_RC | \
19493
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19494
 
    postinstall_cmds | postuninstall_cmds | \
19495
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19496
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19497
 
      # Double-quote double-evaled strings.
19498
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19499
 
      ;;
19500
 
    *)
19501
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19502
 
      ;;
19503
 
    esac
19504
 
  done
19505
 
 
19506
 
  case $lt_echo in
19507
 
  *'\$0 --fallback-echo"')
19508
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19509
 
    ;;
19510
 
  esac
19511
 
 
19512
 
cfgfile="$ofile"
19513
 
 
19514
 
  cat <<__EOF__ >> "$cfgfile"
19515
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19516
 
 
19517
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19518
 
 
19519
 
# Shell to use when invoking shell scripts.
19520
 
SHELL=$lt_SHELL
19521
 
 
19522
 
# Whether or not to build shared libraries.
19523
 
build_libtool_libs=$enable_shared
19524
 
 
19525
 
# Whether or not to build static libraries.
19526
 
build_old_libs=$enable_static
19527
 
 
19528
 
# Whether or not to add -lc for building shared libraries.
19529
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19530
 
 
19531
 
# Whether or not to disallow shared libs when runtime libs are static
19532
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19533
 
 
19534
 
# Whether or not to optimize for fast installation.
19535
 
fast_install=$enable_fast_install
19536
 
 
19537
 
# The host system.
19538
 
host_alias=$host_alias
19539
 
host=$host
19540
 
host_os=$host_os
19541
 
 
19542
 
# The build system.
19543
 
build_alias=$build_alias
19544
 
build=$build
19545
 
build_os=$build_os
19546
 
 
19547
 
# An echo program that does not interpret backslashes.
19548
 
echo=$lt_echo
19549
 
 
19550
 
# The archiver.
19551
 
AR=$lt_AR
19552
 
AR_FLAGS=$lt_AR_FLAGS
19553
 
 
19554
 
# A C compiler.
19555
 
LTCC=$lt_LTCC
19556
 
 
19557
 
# LTCC compiler flags.
19558
 
LTCFLAGS=$lt_LTCFLAGS
19559
 
 
19560
 
# A language-specific compiler.
19561
 
CC=$lt_compiler_RC
19562
 
 
19563
 
# Is the compiler the GNU C compiler?
19564
 
with_gcc=$GCC_RC
19565
 
 
19566
 
# An ERE matcher.
19567
 
EGREP=$lt_EGREP
19568
 
 
19569
 
# The linker used to build libraries.
19570
 
LD=$lt_LD_RC
19571
 
 
19572
 
# Whether we need hard or soft links.
19573
 
LN_S=$lt_LN_S
19574
 
 
19575
 
# A BSD-compatible nm program.
19576
 
NM=$lt_NM
19577
 
 
19578
 
# A symbol stripping program
19579
 
STRIP=$lt_STRIP
19580
 
 
19581
 
# Used to examine libraries when file_magic_cmd begins "file"
19582
 
MAGIC_CMD=$MAGIC_CMD
19583
 
 
19584
 
# Used on cygwin: DLL creation program.
19585
 
DLLTOOL="$DLLTOOL"
19586
 
 
19587
 
# Used on cygwin: object dumper.
19588
 
OBJDUMP="$OBJDUMP"
19589
 
 
19590
 
# Used on cygwin: assembler.
19591
 
AS="$AS"
19592
 
 
19593
 
# The name of the directory that contains temporary libtool files.
19594
 
objdir=$objdir
19595
 
 
19596
 
# How to create reloadable object files.
19597
 
reload_flag=$lt_reload_flag
19598
 
reload_cmds=$lt_reload_cmds
19599
 
 
19600
 
# How to pass a linker flag through the compiler.
19601
 
wl=$lt_lt_prog_compiler_wl_RC
19602
 
 
19603
 
# Object file suffix (normally "o").
19604
 
objext="$ac_objext"
19605
 
 
19606
 
# Old archive suffix (normally "a").
19607
 
libext="$libext"
19608
 
 
19609
 
# Shared library suffix (normally ".so").
19610
 
shrext_cmds='$shrext_cmds'
19611
 
 
19612
 
# Executable file suffix (normally "").
19613
 
exeext="$exeext"
19614
 
 
19615
 
# Additional compiler flags for building library objects.
19616
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19617
 
pic_mode=$pic_mode
19618
 
 
19619
 
# What is the maximum length of a command?
19620
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19621
 
 
19622
 
# Does compiler simultaneously support -c and -o options?
19623
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19624
 
 
19625
 
# Must we lock files when doing compilation?
19626
 
need_locks=$lt_need_locks
19627
 
 
19628
 
# Do we need the lib prefix for modules?
19629
 
need_lib_prefix=$need_lib_prefix
19630
 
 
19631
 
# Do we need a version for libraries?
19632
 
need_version=$need_version
19633
 
 
19634
 
# Whether dlopen is supported.
19635
 
dlopen_support=$enable_dlopen
19636
 
 
19637
 
# Whether dlopen of programs is supported.
19638
 
dlopen_self=$enable_dlopen_self
19639
 
 
19640
 
# Whether dlopen of statically linked programs is supported.
19641
 
dlopen_self_static=$enable_dlopen_self_static
19642
 
 
19643
 
# Compiler flag to prevent dynamic linking.
19644
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19645
 
 
19646
 
# Compiler flag to turn off builtin functions.
19647
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19648
 
 
19649
 
# Compiler flag to allow reflexive dlopens.
19650
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19651
 
 
19652
 
# Compiler flag to generate shared objects directly from archives.
19653
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19654
 
 
19655
 
# Compiler flag to generate thread-safe objects.
19656
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19657
 
 
19658
 
# Library versioning type.
19659
 
version_type=$version_type
19660
 
 
19661
 
# Format of library name prefix.
19662
 
libname_spec=$lt_libname_spec
19663
 
 
19664
 
# List of archive names.  First name is the real one, the rest are links.
19665
 
# The last name is the one that the linker finds with -lNAME.
19666
 
library_names_spec=$lt_library_names_spec
19667
 
 
19668
 
# The coded name of the library, if different from the real name.
19669
 
soname_spec=$lt_soname_spec
19670
 
 
19671
 
# Commands used to build and install an old-style archive.
19672
 
RANLIB=$lt_RANLIB
19673
 
old_archive_cmds=$lt_old_archive_cmds_RC
19674
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19675
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19676
 
 
19677
 
# Create an old-style archive from a shared archive.
19678
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19679
 
 
19680
 
# Create a temporary old-style archive to link instead of a shared archive.
19681
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19682
 
 
19683
 
# Commands used to build and install a shared archive.
19684
 
archive_cmds=$lt_archive_cmds_RC
19685
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19686
 
postinstall_cmds=$lt_postinstall_cmds
19687
 
postuninstall_cmds=$lt_postuninstall_cmds
19688
 
 
19689
 
# Commands used to build a loadable module (assumed same as above if empty)
19690
 
module_cmds=$lt_module_cmds_RC
19691
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19692
 
 
19693
 
# Commands to strip libraries.
19694
 
old_striplib=$lt_old_striplib
19695
 
striplib=$lt_striplib
19696
 
 
19697
 
# Dependencies to place before the objects being linked to create a
19698
 
# shared library.
19699
 
predep_objects=$lt_predep_objects_RC
19700
 
 
19701
 
# Dependencies to place after the objects being linked to create a
19702
 
# shared library.
19703
 
postdep_objects=$lt_postdep_objects_RC
19704
 
 
19705
 
# Dependencies to place before the objects being linked to create a
19706
 
# shared library.
19707
 
predeps=$lt_predeps_RC
19708
 
 
19709
 
# Dependencies to place after the objects being linked to create a
19710
 
# shared library.
19711
 
postdeps=$lt_postdeps_RC
19712
 
 
19713
 
# The directories searched by this compiler when creating a shared
19714
 
# library
19715
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19716
 
 
19717
 
# The library search path used internally by the compiler when linking
19718
 
# a shared library.
19719
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19720
 
 
19721
 
# Method to check whether dependent libraries are shared objects.
19722
 
deplibs_check_method=$lt_deplibs_check_method
19723
 
 
19724
 
# Command to use when deplibs_check_method == file_magic.
19725
 
file_magic_cmd=$lt_file_magic_cmd
19726
 
 
19727
 
# Flag that allows shared libraries with undefined symbols to be built.
19728
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19729
 
 
19730
 
# Flag that forces no undefined symbols.
19731
 
no_undefined_flag=$lt_no_undefined_flag_RC
19732
 
 
19733
 
# Commands used to finish a libtool library installation in a directory.
19734
 
finish_cmds=$lt_finish_cmds
19735
 
 
19736
 
# Same as above, but a single script fragment to be evaled but not shown.
19737
 
finish_eval=$lt_finish_eval
19738
 
 
19739
 
# Take the output of nm and produce a listing of raw symbols and C names.
19740
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19741
 
 
19742
 
# Transform the output of nm in a proper C declaration
19743
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19744
 
 
19745
 
# Transform the output of nm in a C name address pair
19746
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19747
 
 
19748
 
# This is the shared library runtime path variable.
19749
 
runpath_var=$runpath_var
19750
 
 
19751
 
# This is the shared library path variable.
19752
 
shlibpath_var=$shlibpath_var
19753
 
 
19754
 
# Is shlibpath searched before the hard-coded library search path?
19755
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19756
 
 
19757
 
# How to hardcode a shared library path into an executable.
19758
 
hardcode_action=$hardcode_action_RC
19759
 
 
19760
 
# Whether we should hardcode library paths into libraries.
19761
 
hardcode_into_libs=$hardcode_into_libs
19762
 
 
19763
 
# Flag to hardcode \$libdir into a binary during linking.
19764
 
# This must work even if \$libdir does not exist.
19765
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19766
 
 
19767
 
# If ld is used when linking, flag to hardcode \$libdir into
19768
 
# a binary during linking. This must work even if \$libdir does
19769
 
# not exist.
19770
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19771
 
 
19772
 
# Whether we need a single -rpath flag with a separated argument.
19773
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19774
 
 
19775
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19776
 
# resulting binary.
19777
 
hardcode_direct=$hardcode_direct_RC
19778
 
 
19779
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19780
 
# resulting binary.
19781
 
hardcode_minus_L=$hardcode_minus_L_RC
19782
 
 
19783
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19784
 
# the resulting binary.
19785
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19786
 
 
19787
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19788
 
# and all subsequent libraries and executables linked against it.
19789
 
hardcode_automatic=$hardcode_automatic_RC
19790
 
 
19791
 
# Variables whose values should be saved in libtool wrapper scripts and
19792
 
# restored at relink time.
19793
 
variables_saved_for_relink="$variables_saved_for_relink"
19794
 
 
19795
 
# Whether libtool must link a program against all its dependency libraries.
19796
 
link_all_deplibs=$link_all_deplibs_RC
19797
 
 
19798
 
# Compile-time system search path for libraries
19799
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19800
 
 
19801
 
# Run-time system search path for libraries
19802
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19803
 
 
19804
 
# Fix the shell variable \$srcfile for the compiler.
19805
 
fix_srcfile_path=$lt_fix_srcfile_path
19806
 
 
19807
 
# Set to yes if exported symbols are required.
19808
 
always_export_symbols=$always_export_symbols_RC
19809
 
 
19810
 
# The commands to list exported symbols.
19811
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19812
 
 
19813
 
# The commands to extract the exported symbol list from a shared archive.
19814
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19815
 
 
19816
 
# Symbols that should not be listed in the preloaded symbols.
19817
 
exclude_expsyms=$lt_exclude_expsyms_RC
19818
 
 
19819
 
# Symbols that must always be exported.
19820
 
include_expsyms=$lt_include_expsyms_RC
19821
 
 
19822
 
# ### END LIBTOOL TAG CONFIG: $tagname
19823
 
 
19824
 
__EOF__
19825
 
 
19826
 
 
19827
 
else
19828
 
  # If there is no Makefile yet, we rely on a make rule to execute
19829
 
  # `config.status --recheck' to rerun these tests and create the
19830
 
  # libtool script then.
19831
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19832
 
  if test -f "$ltmain_in"; then
19833
 
    test -f Makefile && make "$ltmain"
19834
 
  fi
19835
 
fi
19836
 
 
19837
 
 
19838
 
ac_ext=c
19839
 
ac_cpp='$CPP $CPPFLAGS'
19840
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
 
 
19844
 
CC="$lt_save_CC"
19845
 
 
19846
 
        ;;
19847
 
 
19848
 
      *)
19849
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19850
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19851
 
   { (exit 1); exit 1; }; }
19852
 
        ;;
19853
 
      esac
19854
 
 
19855
 
      # Append the new tag name to the list of available tags.
19856
 
      if test -n "$tagname" ; then
19857
 
      available_tags="$available_tags $tagname"
19858
 
    fi
19859
 
    fi
19860
 
  done
19861
 
  IFS="$lt_save_ifs"
19862
 
 
19863
 
  # Now substitute the updated list of available tags.
19864
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19865
 
    mv "${ofile}T" "$ofile"
19866
 
    chmod +x "$ofile"
19867
 
  else
19868
 
    rm -f "${ofile}T"
19869
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19870
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19871
 
   { (exit 1); exit 1; }; }
19872
 
  fi
19873
 
fi
19874
 
 
19875
 
 
19876
 
 
19877
 
# This can be used to rebuild libtool when needed
19878
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19879
 
 
19880
 
# Always use our own libtool.
19881
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19882
 
 
19883
 
# Prevent multiple expansion
19884
 
 
19885
 
 
19886
 
 
19887
 
 
19888
 
 
19889
 
 
19890
 
 
19891
 
 
19892
 
 
19893
 
 
19894
 
 
19895
 
 
19896
 
 
19897
 
 
19898
 
 
19899
 
 
19900
 
 
19901
 
 
19902
 
 
19903
 
 
19904
 
# Extract the first word of "setcap", so it can be a program name with args.
19905
 
set dummy setcap; ac_word=$2
19906
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19907
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19908
 
if test "${ac_cv_prog_SETCAP+set}" = set; then
19909
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19910
 
else
19911
 
  if test -n "$SETCAP"; then
19912
 
  ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
19913
 
else
19914
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915
 
for as_dir in $PATH$PATH_SEPARATOR/sbin
19916
 
do
19917
 
  IFS=$as_save_IFS
19918
 
  test -z "$as_dir" && as_dir=.
19919
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19920
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19921
 
    ac_cv_prog_SETCAP="yes"
19922
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19923
 
    break 2
19924
 
  fi
19925
 
done
19926
 
done
19927
 
IFS=$as_save_IFS
19928
 
 
19929
 
  test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
19930
 
fi
19931
 
fi
19932
 
SETCAP=$ac_cv_prog_SETCAP
19933
 
if test -n "$SETCAP"; then
19934
 
  { echo "$as_me:$LINENO: result: $SETCAP" >&5
19935
 
echo "${ECHO_T}$SETCAP" >&6; }
19936
 
else
19937
 
  { echo "$as_me:$LINENO: result: no" >&5
19938
 
echo "${ECHO_T}no" >&6; }
19939
 
fi
19940
 
 
19941
 
 
19942
 
# Extract the first word of "docbook2man", so it can be a program name with args.
19943
 
set dummy docbook2man; ac_word=$2
19944
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19945
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19946
 
if test "${ac_cv_prog_DOCBOOK+set}" = set; then
19947
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19948
 
else
19949
 
  if test -n "$DOCBOOK"; then
19950
 
  ac_cv_prog_DOCBOOK="$DOCBOOK" # Let the user override the test.
19951
 
else
19952
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19953
 
for as_dir in $PATH
19954
 
do
19955
 
  IFS=$as_save_IFS
19956
 
  test -z "$as_dir" && as_dir=.
19957
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19958
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19959
 
    ac_cv_prog_DOCBOOK="yes"
19960
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19961
 
    break 2
19962
 
  fi
19963
 
done
19964
 
done
19965
 
IFS=$as_save_IFS
19966
 
 
19967
 
  test -z "$ac_cv_prog_DOCBOOK" && ac_cv_prog_DOCBOOK="no"
19968
 
fi
19969
 
fi
19970
 
DOCBOOK=$ac_cv_prog_DOCBOOK
19971
 
if test -n "$DOCBOOK"; then
19972
 
  { echo "$as_me:$LINENO: result: $DOCBOOK" >&5
19973
 
echo "${ECHO_T}$DOCBOOK" >&6; }
19974
 
else
19975
 
  { echo "$as_me:$LINENO: result: no" >&5
19976
 
echo "${ECHO_T}no" >&6; }
19977
 
fi
19978
 
 
19979
 
 
19980
 
 if test x$DOCBOOK = xyes; then
19981
 
  ENABLE_DOCBOOK_TRUE=
19982
 
  ENABLE_DOCBOOK_FALSE='#'
19983
 
else
19984
 
  ENABLE_DOCBOOK_TRUE='#'
19985
 
  ENABLE_DOCBOOK_FALSE=
19986
 
fi
19987
 
 
19988
 
 
19989
 
    EXP_VAR=PREFIX
19990
 
    FROM_VAR=$prefix
19991
 
 
19992
 
        prefix_save=$prefix
19993
 
    exec_prefix_save=$exec_prefix
19994
 
 
19995
 
        if test "x$prefix" = "xNONE"; then
19996
 
        prefix="$ac_default_prefix"
19997
 
    fi
19998
 
        if test "x$exec_prefix" = "xNONE"; then
19999
 
        exec_prefix=$prefix
20000
 
    fi
20001
 
 
20002
 
    full_var="$FROM_VAR"
20003
 
        while true; do
20004
 
        new_full_var="`eval echo $full_var`"
20005
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20006
 
        full_var=$new_full_var
20007
 
    done
20008
 
 
20009
 
        full_var=$new_full_var
20010
 
    PREFIX="$full_var"
20011
 
 
20012
 
 
20013
 
        prefix=$prefix_save
20014
 
    exec_prefix=$exec_prefix_save
20015
 
 
20016
 
 
20017
 
    EXP_VAR=LIBDIR
20018
 
    FROM_VAR=$libdir
20019
 
 
20020
 
        prefix_save=$prefix
20021
 
    exec_prefix_save=$exec_prefix
20022
 
 
20023
 
        if test "x$prefix" = "xNONE"; then
20024
 
        prefix="$ac_default_prefix"
20025
 
    fi
20026
 
        if test "x$exec_prefix" = "xNONE"; then
20027
 
        exec_prefix=$prefix
20028
 
    fi
20029
 
 
20030
 
    full_var="$FROM_VAR"
20031
 
        while true; do
20032
 
        new_full_var="`eval echo $full_var`"
20033
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20034
 
        full_var=$new_full_var
20035
 
    done
20036
 
 
20037
 
        full_var=$new_full_var
20038
 
    LIBDIR="$full_var"
20039
 
 
20040
 
 
20041
 
        prefix=$prefix_save
20042
 
    exec_prefix=$exec_prefix_save
20043
 
 
20044
 
 
20045
 
    EXP_VAR=BINDIR
20046
 
    FROM_VAR=$bindir
20047
 
 
20048
 
        prefix_save=$prefix
20049
 
    exec_prefix_save=$exec_prefix
20050
 
 
20051
 
        if test "x$prefix" = "xNONE"; then
20052
 
        prefix="$ac_default_prefix"
20053
 
    fi
20054
 
        if test "x$exec_prefix" = "xNONE"; then
20055
 
        exec_prefix=$prefix
20056
 
    fi
20057
 
 
20058
 
    full_var="$FROM_VAR"
20059
 
        while true; do
20060
 
        new_full_var="`eval echo $full_var`"
20061
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20062
 
        full_var=$new_full_var
20063
 
    done
20064
 
 
20065
 
        full_var=$new_full_var
20066
 
    BINDIR="$full_var"
20067
 
 
20068
 
 
20069
 
        prefix=$prefix_save
20070
 
    exec_prefix=$exec_prefix_save
20071
 
 
20072
 
 
20073
 
    EXP_VAR=INCLUDEDIR
20074
 
    FROM_VAR=$includedir
20075
 
 
20076
 
        prefix_save=$prefix
20077
 
    exec_prefix_save=$exec_prefix
20078
 
 
20079
 
        if test "x$prefix" = "xNONE"; then
20080
 
        prefix="$ac_default_prefix"
20081
 
    fi
20082
 
        if test "x$exec_prefix" = "xNONE"; then
20083
 
        exec_prefix=$prefix
20084
 
    fi
20085
 
 
20086
 
    full_var="$FROM_VAR"
20087
 
        while true; do
20088
 
        new_full_var="`eval echo $full_var`"
20089
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20090
 
        full_var=$new_full_var
20091
 
    done
20092
 
 
20093
 
        full_var=$new_full_var
20094
 
    INCLUDEDIR="$full_var"
20095
 
 
20096
 
 
20097
 
        prefix=$prefix_save
20098
 
    exec_prefix=$exec_prefix_save
20099
 
 
20100
 
 
20101
 
    EXP_VAR=LIBEXECDIR
20102
 
    FROM_VAR=$libexecdir
20103
 
 
20104
 
        prefix_save=$prefix
20105
 
    exec_prefix_save=$exec_prefix
20106
 
 
20107
 
        if test "x$prefix" = "xNONE"; then
20108
 
        prefix="$ac_default_prefix"
20109
 
    fi
20110
 
        if test "x$exec_prefix" = "xNONE"; then
20111
 
        exec_prefix=$prefix
20112
 
    fi
20113
 
 
20114
 
    full_var="$FROM_VAR"
20115
 
        while true; do
20116
 
        new_full_var="`eval echo $full_var`"
20117
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20118
 
        full_var=$new_full_var
20119
 
    done
20120
 
 
20121
 
        full_var=$new_full_var
20122
 
    LIBEXECDIR="$full_var"
20123
 
 
20124
 
 
20125
 
        prefix=$prefix_save
20126
 
    exec_prefix=$exec_prefix_save
20127
 
 
20128
 
 
20129
 
    EXP_VAR=SYSCONFDIR
20130
 
    FROM_VAR=$sysconfdir
20131
 
 
20132
 
        prefix_save=$prefix
20133
 
    exec_prefix_save=$exec_prefix
20134
 
 
20135
 
        if test "x$prefix" = "xNONE"; then
20136
 
        prefix="$ac_default_prefix"
20137
 
    fi
20138
 
        if test "x$exec_prefix" = "xNONE"; then
20139
 
        exec_prefix=$prefix
20140
 
    fi
20141
 
 
20142
 
    full_var="$FROM_VAR"
20143
 
        while true; do
20144
 
        new_full_var="`eval echo $full_var`"
20145
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20146
 
        full_var=$new_full_var
20147
 
    done
20148
 
 
20149
 
        full_var=$new_full_var
20150
 
    SYSCONFDIR="$full_var"
20151
 
 
20152
 
 
20153
 
        prefix=$prefix_save
20154
 
    exec_prefix=$exec_prefix_save
20155
 
 
20156
 
 
20157
 
    EXP_VAR=DATADIR
20158
 
    FROM_VAR=$datadir
20159
 
 
20160
 
        prefix_save=$prefix
20161
 
    exec_prefix_save=$exec_prefix
20162
 
 
20163
 
        if test "x$prefix" = "xNONE"; then
20164
 
        prefix="$ac_default_prefix"
20165
 
    fi
20166
 
        if test "x$exec_prefix" = "xNONE"; then
20167
 
        exec_prefix=$prefix
20168
 
    fi
20169
 
 
20170
 
    full_var="$FROM_VAR"
20171
 
        while true; do
20172
 
        new_full_var="`eval echo $full_var`"
20173
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20174
 
        full_var=$new_full_var
20175
 
    done
20176
 
 
20177
 
        full_var=$new_full_var
20178
 
    DATADIR="$full_var"
20179
 
 
20180
 
 
20181
 
        prefix=$prefix_save
20182
 
    exec_prefix=$exec_prefix_save
20183
 
 
20184
 
 
20185
 
    EXP_VAR=LOCALSTATEDIR
20186
 
    FROM_VAR=$localstatedir
20187
 
 
20188
 
        prefix_save=$prefix
20189
 
    exec_prefix_save=$exec_prefix
20190
 
 
20191
 
        if test "x$prefix" = "xNONE"; then
20192
 
        prefix="$ac_default_prefix"
20193
 
    fi
20194
 
        if test "x$exec_prefix" = "xNONE"; then
20195
 
        exec_prefix=$prefix
20196
 
    fi
20197
 
 
20198
 
    full_var="$FROM_VAR"
20199
 
        while true; do
20200
 
        new_full_var="`eval echo $full_var`"
20201
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20202
 
        full_var=$new_full_var
20203
 
    done
20204
 
 
20205
 
        full_var=$new_full_var
20206
 
    LOCALSTATEDIR="$full_var"
20207
 
 
20208
 
 
20209
 
        prefix=$prefix_save
20210
 
    exec_prefix=$exec_prefix_save
20211
 
 
20212
 
 
20213
 
    EXP_VAR=LXCPATH
20214
 
    FROM_VAR="${localstatedir}/lib/lxc"
20215
 
 
20216
 
        prefix_save=$prefix
20217
 
    exec_prefix_save=$exec_prefix
20218
 
 
20219
 
        if test "x$prefix" = "xNONE"; then
20220
 
        prefix="$ac_default_prefix"
20221
 
    fi
20222
 
        if test "x$exec_prefix" = "xNONE"; then
20223
 
        exec_prefix=$prefix
20224
 
    fi
20225
 
 
20226
 
    full_var="$FROM_VAR"
20227
 
        while true; do
20228
 
        new_full_var="`eval echo $full_var`"
20229
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20230
 
        full_var=$new_full_var
20231
 
    done
20232
 
 
20233
 
        full_var=$new_full_var
20234
 
    LXCPATH="$full_var"
20235
 
 
20236
 
 
20237
 
        prefix=$prefix_save
20238
 
    exec_prefix=$exec_prefix_save
20239
 
 
20240
 
 
20241
 
    EXP_VAR=LXC_GENERATE_DATE
20242
 
    FROM_VAR="$(date)"
20243
 
 
20244
 
        prefix_save=$prefix
20245
 
    exec_prefix_save=$exec_prefix
20246
 
 
20247
 
        if test "x$prefix" = "xNONE"; then
20248
 
        prefix="$ac_default_prefix"
20249
 
    fi
20250
 
        if test "x$exec_prefix" = "xNONE"; then
20251
 
        exec_prefix=$prefix
20252
 
    fi
20253
 
 
20254
 
    full_var="$FROM_VAR"
20255
 
        while true; do
20256
 
        new_full_var="`eval echo $full_var`"
20257
 
        if test "x$new_full_var" = "x$full_var"; then break; fi
20258
 
        full_var=$new_full_var
20259
 
    done
20260
 
 
20261
 
        full_var=$new_full_var
20262
 
    LXC_GENERATE_DATE="$full_var"
20263
 
 
20264
 
 
20265
 
        prefix=$prefix_save
20266
 
    exec_prefix=$exec_prefix_save
20267
 
 
20268
 
 
20269
 
 
20270
 
 
20271
 
for ac_header in sys/capability.h
20272
 
do
20273
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20274
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20275
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20276
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20278
 
else
20279
 
  cat >conftest.$ac_ext <<_ACEOF
20280
 
/* confdefs.h.  */
20281
 
_ACEOF
20282
 
cat confdefs.h >>conftest.$ac_ext
20283
 
cat >>conftest.$ac_ext <<_ACEOF
20284
 
/* end confdefs.h.  */
20285
 
#include <sys/types.h>
20286
 
#include <sys/capability.h>
20287
 
 
20288
 
#include <$ac_header>
20289
 
_ACEOF
20290
 
rm -f conftest.$ac_objext
20291
 
if { (ac_try="$ac_compile"
20292
 
case "(($ac_try" in
20293
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294
 
  *) ac_try_echo=$ac_try;;
20295
 
esac
20296
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297
 
  (eval "$ac_compile") 2>conftest.er1
20298
 
  ac_status=$?
20299
 
  grep -v '^ *+' conftest.er1 >conftest.err
20300
 
  rm -f conftest.er1
20301
 
  cat conftest.err >&5
20302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303
 
  (exit $ac_status); } && {
20304
 
         test -z "$ac_c_werror_flag" ||
20305
 
         test ! -s conftest.err
20306
 
       } && test -s conftest.$ac_objext; then
20307
 
  eval "$as_ac_Header=yes"
20308
 
else
20309
 
  echo "$as_me: failed program was:" >&5
20310
 
sed 's/^/| /' conftest.$ac_ext >&5
20311
 
 
20312
 
        eval "$as_ac_Header=no"
20313
 
fi
20314
 
 
20315
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316
 
fi
20317
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20318
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20319
 
echo "${ECHO_T}$ac_res" >&6; }
20320
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20321
 
  cat >>confdefs.h <<_ACEOF
20322
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20323
 
_ACEOF
20324
 
 
20325
 
else
20326
 
  { { echo "$as_me:$LINENO: error: please install libcap-devel." >&5
20327
 
echo "$as_me: error: please install libcap-devel." >&2;}
20328
 
   { (exit 1); exit 1; }; }
20329
 
fi
20330
 
 
20331
 
done
20332
 
 
20333
 
 
20334
 
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
20335
 
{ echo "$as_me:$LINENO: checking whether PR_CAPBSET_DROP is declared" >&5
20336
 
echo $ECHO_N "checking whether PR_CAPBSET_DROP is declared... $ECHO_C" >&6; }
20337
 
if test "${ac_cv_have_decl_PR_CAPBSET_DROP+set}" = set; then
20338
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20339
 
else
20340
 
  cat >conftest.$ac_ext <<_ACEOF
20341
 
/* confdefs.h.  */
20342
 
_ACEOF
20343
 
cat confdefs.h >>conftest.$ac_ext
20344
 
cat >>conftest.$ac_ext <<_ACEOF
20345
 
/* end confdefs.h.  */
20346
 
#include <sys/prctl.h>
20347
 
 
20348
 
int
20349
 
main ()
20350
 
{
20351
 
#ifndef PR_CAPBSET_DROP
20352
 
  (void) PR_CAPBSET_DROP;
20353
 
#endif
20354
 
 
20355
 
  ;
20356
 
  return 0;
20357
 
}
20358
 
_ACEOF
20359
 
rm -f conftest.$ac_objext
20360
 
if { (ac_try="$ac_compile"
20361
 
case "(($ac_try" in
20362
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363
 
  *) ac_try_echo=$ac_try;;
20364
 
esac
20365
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366
 
  (eval "$ac_compile") 2>conftest.er1
20367
 
  ac_status=$?
20368
 
  grep -v '^ *+' conftest.er1 >conftest.err
20369
 
  rm -f conftest.er1
20370
 
  cat conftest.err >&5
20371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372
 
  (exit $ac_status); } && {
20373
 
         test -z "$ac_c_werror_flag" ||
20374
 
         test ! -s conftest.err
20375
 
       } && test -s conftest.$ac_objext; then
20376
 
  ac_cv_have_decl_PR_CAPBSET_DROP=yes
20377
 
else
20378
 
  echo "$as_me: failed program was:" >&5
20379
 
sed 's/^/| /' conftest.$ac_ext >&5
20380
 
 
20381
 
        ac_cv_have_decl_PR_CAPBSET_DROP=no
20382
 
fi
20383
 
 
20384
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385
 
fi
20386
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_DROP" >&5
20387
 
echo "${ECHO_T}$ac_cv_have_decl_PR_CAPBSET_DROP" >&6; }
20388
 
if test $ac_cv_have_decl_PR_CAPBSET_DROP = yes; then
20389
 
 
20390
 
cat >>confdefs.h <<_ACEOF
20391
 
#define HAVE_DECL_PR_CAPBSET_DROP 1
20392
 
_ACEOF
20393
 
 
20394
 
 
20395
 
else
20396
 
  cat >>confdefs.h <<_ACEOF
20397
 
#define HAVE_DECL_PR_CAPBSET_DROP 0
20398
 
_ACEOF
20399
 
 
20400
 
 
20401
 
fi
20402
 
 
20403
 
 
20404
 
 
20405
 
 
20406
4840
for ac_header in sys/signalfd.h
20407
4841
do
20408
4842
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598
5032
  CFLAGS="$CFLAGS -Wall"
20599
5033
fi
20600
5034
 
20601
 
LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
20602
 
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
20603
 
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
20604
 
 
20605
 
 
20606
 
# Check whether --with-kernel-release was given.
20607
 
if test "${with_kernel_release+set}" = set; then
20608
 
  withval=$with_kernel_release; KERNEL_RELEASE="${withval}"
20609
 
else
20610
 
  KERNEL_RELEASE=`uname -r`
20611
 
fi
20612
 
 
20613
 
 
20614
 
# Check whether --enable-test was given.
20615
 
if test "${enable_test+set}" = set; then
20616
 
  enableval=$enable_test;
20617
 
else
20618
 
  enable_test=no
20619
 
fi
20620
 
 
20621
 
 if test x$enable_test = xyes; then
20622
 
  ENABLE_TEST_TRUE=
20623
 
  ENABLE_TEST_FALSE='#'
20624
 
else
20625
 
  ENABLE_TEST_TRUE='#'
20626
 
  ENABLE_TEST_FALSE=
20627
 
fi
20628
 
 
20629
 
 
20630
 
 
20631
 
 
20632
 
 
20633
 
 
20634
 
ac_config_files="$ac_config_files Makefile lxc.pc lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc.conf.sgml doc/lxc.sgml doc/common_options.sgml doc/see_also.sgml scripts/Makefile scripts/lxc-debian scripts/lxc-fedora scripts/lxc-sshd src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap src/lxc/lxc-version etc/Makefile etc/lxc-macvlan.conf etc/lxc-no-netns.conf etc/lxc-empty-netns.conf etc/lxc-phys.conf etc/lxc-veth.conf etc/lxc-complex-config test/Makefile"
 
5035
ac_config_files="$ac_config_files Makefile lxc.pc lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc.conf.sgml doc/lxc.sgml doc/common_options.sgml doc/see_also.sgml doc/examples/Makefile doc/examples/lxc-macvlan.conf doc/examples/lxc-no-netns.conf doc/examples/lxc-empty-netns.conf doc/examples/lxc-phys.conf doc/examples/lxc-veth.conf doc/examples/lxc-complex-config scripts/Makefile scripts/lxc-debian scripts/lxc-fedora scripts/lxc-sshd src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap src/lxc/lxc-version src/lxc/lxc-create src/lxc/lxc-destroy"
20635
5036
 
20636
5037
ac_config_commands="$ac_config_commands default"
20637
5038
 
20745
5146
Usually this means the macro was only invoked conditionally." >&2;}
20746
5147
   { (exit 1); exit 1; }; }
20747
5148
fi
20748
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20749
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20750
 
Usually this means the macro was only invoked conditionally." >&5
20751
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20752
 
Usually this means the macro was only invoked conditionally." >&2;}
20753
 
   { (exit 1); exit 1; }; }
20754
 
fi
20755
5149
if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
20756
5150
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCBOOK\" was never defined.
20757
5151
Usually this means the macro was only invoked conditionally." >&5
20759
5153
Usually this means the macro was only invoked conditionally." >&2;}
20760
5154
   { (exit 1); exit 1; }; }
20761
5155
fi
20762
 
if test -z "${ENABLE_TEST_TRUE}" && test -z "${ENABLE_TEST_FALSE}"; then
20763
 
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TEST\" was never defined.
 
5156
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
 
5157
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EXAMPLES\" was never defined.
20764
5158
Usually this means the macro was only invoked conditionally." >&5
20765
 
echo "$as_me: error: conditional \"ENABLE_TEST\" was never defined.
 
5159
echo "$as_me: error: conditional \"ENABLE_EXAMPLES\" was never defined.
20766
5160
Usually this means the macro was only invoked conditionally." >&2;}
20767
5161
   { (exit 1); exit 1; }; }
20768
5162
fi
21066
5460
# report actual input values of CONFIG_FILES etc. instead of their
21067
5461
# values after options handling.
21068
5462
ac_log="
21069
 
This file was extended by lxc $as_me 0.6.3, which was
 
5463
This file was extended by lxc $as_me 0.6.4, which was
21070
5464
generated by GNU Autoconf 2.61.  Invocation command line was
21071
5465
 
21072
5466
  CONFIG_FILES    = $CONFIG_FILES
21119
5513
_ACEOF
21120
5514
cat >>$CONFIG_STATUS <<_ACEOF
21121
5515
ac_cs_version="\\
21122
 
lxc config.status 0.6.3
 
5516
lxc config.status 0.6.4
21123
5517
configured by $0, generated by GNU Autoconf 2.61,
21124
5518
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21125
5519
 
21258
5652
    "doc/lxc.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.sgml" ;;
21259
5653
    "doc/common_options.sgml") CONFIG_FILES="$CONFIG_FILES doc/common_options.sgml" ;;
21260
5654
    "doc/see_also.sgml") CONFIG_FILES="$CONFIG_FILES doc/see_also.sgml" ;;
 
5655
    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
 
5656
    "doc/examples/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-macvlan.conf" ;;
 
5657
    "doc/examples/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-no-netns.conf" ;;
 
5658
    "doc/examples/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-empty-netns.conf" ;;
 
5659
    "doc/examples/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-phys.conf" ;;
 
5660
    "doc/examples/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-veth.conf" ;;
 
5661
    "doc/examples/lxc-complex-config") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-complex-config" ;;
21261
5662
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21262
5663
    "scripts/lxc-debian") CONFIG_FILES="$CONFIG_FILES scripts/lxc-debian" ;;
21263
5664
    "scripts/lxc-fedora") CONFIG_FILES="$CONFIG_FILES scripts/lxc-fedora" ;;
21270
5671
    "src/lxc/lxc-checkconfig") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-checkconfig" ;;
21271
5672
    "src/lxc/lxc-setcap") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setcap" ;;
21272
5673
    "src/lxc/lxc-version") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-version" ;;
21273
 
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21274
 
    "etc/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-macvlan.conf" ;;
21275
 
    "etc/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-no-netns.conf" ;;
21276
 
    "etc/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-empty-netns.conf" ;;
21277
 
    "etc/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-phys.conf" ;;
21278
 
    "etc/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-veth.conf" ;;
21279
 
    "etc/lxc-complex-config") CONFIG_FILES="$CONFIG_FILES etc/lxc-complex-config" ;;
21280
 
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
5674
    "src/lxc/lxc-create") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-create" ;;
 
5675
    "src/lxc/lxc-destroy") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-destroy" ;;
21281
5676
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21282
5677
 
21283
5678
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21424
5819
CCDEPMODE!$CCDEPMODE$ac_delim
21425
5820
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21426
5821
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21427
 
SED!$SED$ac_delim
21428
 
GREP!$GREP$ac_delim
21429
 
EGREP!$EGREP$ac_delim
21430
 
LN_S!$LN_S$ac_delim
21431
 
ECHO!$ECHO$ac_delim
21432
 
AR!$AR$ac_delim
21433
 
RANLIB!$RANLIB$ac_delim
21434
 
DSYMUTIL!$DSYMUTIL$ac_delim
21435
 
NMEDIT!$NMEDIT$ac_delim
21436
 
CPP!$CPP$ac_delim
21437
 
CXX!$CXX$ac_delim
21438
 
CXXFLAGS!$CXXFLAGS$ac_delim
21439
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
21440
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
21441
 
_ACEOF
21442
 
 
21443
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21444
 
    break
21445
 
  elif $ac_last_try; then
21446
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21447
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21448
 
   { (exit 1); exit 1; }; }
21449
 
  else
21450
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21451
 
  fi
21452
 
done
21453
 
 
21454
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21455
 
if test -n "$ac_eof"; then
21456
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21457
 
  ac_eof=`expr $ac_eof + 1`
21458
 
fi
21459
 
 
21460
 
cat >>$CONFIG_STATUS <<_ACEOF
21461
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21462
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21463
 
_ACEOF
21464
 
sed '
21465
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21466
 
s/^/s,@/; s/!/@,|#_!!_#|/
21467
 
:n
21468
 
t n
21469
 
s/'"$ac_delim"'$/,g/; t
21470
 
s/$/\\/; p
21471
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21472
 
' >>$CONFIG_STATUS <conf$$subs.sed
21473
 
rm -f conf$$subs.sed
21474
 
cat >>$CONFIG_STATUS <<_ACEOF
21475
 
CEOF$ac_eof
21476
 
_ACEOF
21477
 
 
21478
 
 
21479
 
ac_delim='%!_!# '
21480
 
for ac_last_try in false false false false false :; do
21481
 
  cat >conf$$subs.sed <<_ACEOF
21482
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21483
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21484
 
CXXCPP!$CXXCPP$ac_delim
21485
 
F77!$F77$ac_delim
21486
 
FFLAGS!$FFLAGS$ac_delim
21487
 
ac_ct_F77!$ac_ct_F77$ac_delim
21488
 
LIBTOOL!$LIBTOOL$ac_delim
21489
5822
SETCAP!$SETCAP$ac_delim
21490
 
DOCBOOK!$DOCBOOK$ac_delim
 
5823
have_docbook!$have_docbook$ac_delim
21491
5824
ENABLE_DOCBOOK_TRUE!$ENABLE_DOCBOOK_TRUE$ac_delim
21492
5825
ENABLE_DOCBOOK_FALSE!$ENABLE_DOCBOOK_FALSE$ac_delim
 
5826
ENABLE_EXAMPLES_TRUE!$ENABLE_EXAMPLES_TRUE$ac_delim
 
5827
ENABLE_EXAMPLES_FALSE!$ENABLE_EXAMPLES_FALSE$ac_delim
21493
5828
PREFIX!$PREFIX$ac_delim
21494
5829
LIBDIR!$LIBDIR$ac_delim
21495
5830
BINDIR!$BINDIR$ac_delim
21498
5833
SYSCONFDIR!$SYSCONFDIR$ac_delim
21499
5834
DATADIR!$DATADIR$ac_delim
21500
5835
LOCALSTATEDIR!$LOCALSTATEDIR$ac_delim
 
5836
_ACEOF
 
5837
 
 
5838
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
5839
    break
 
5840
  elif $ac_last_try; then
 
5841
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
5842
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
5843
   { (exit 1); exit 1; }; }
 
5844
  else
 
5845
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5846
  fi
 
5847
done
 
5848
 
 
5849
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
5850
if test -n "$ac_eof"; then
 
5851
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
5852
  ac_eof=`expr $ac_eof + 1`
 
5853
fi
 
5854
 
 
5855
cat >>$CONFIG_STATUS <<_ACEOF
 
5856
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
5857
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
5858
_ACEOF
 
5859
sed '
 
5860
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
5861
s/^/s,@/; s/!/@,|#_!!_#|/
 
5862
:n
 
5863
t n
 
5864
s/'"$ac_delim"'$/,g/; t
 
5865
s/$/\\/; p
 
5866
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
5867
' >>$CONFIG_STATUS <conf$$subs.sed
 
5868
rm -f conf$$subs.sed
 
5869
cat >>$CONFIG_STATUS <<_ACEOF
 
5870
CEOF$ac_eof
 
5871
_ACEOF
 
5872
 
 
5873
 
 
5874
ac_delim='%!_!# '
 
5875
for ac_last_try in false false false false false :; do
 
5876
  cat >conf$$subs.sed <<_ACEOF
 
5877
DOCDIR!$DOCDIR$ac_delim
 
5878
LXC_GENERATE_DATE!$LXC_GENERATE_DATE$ac_delim
21501
5879
LXCPATH!$LXCPATH$ac_delim
21502
 
LXC_GENERATE_DATE!$LXC_GENERATE_DATE$ac_delim
21503
 
ENABLE_TEST_TRUE!$ENABLE_TEST_TRUE$ac_delim
21504
 
ENABLE_TEST_FALSE!$ENABLE_TEST_FALSE$ac_delim
21505
 
LXC_MAJOR_VERSION!$LXC_MAJOR_VERSION$ac_delim
21506
 
LXC_MINOR_VERSION!$LXC_MINOR_VERSION$ac_delim
21507
 
LXC_MICRO_VERSION!$LXC_MICRO_VERSION$ac_delim
 
5880
CPP!$CPP$ac_delim
 
5881
GREP!$GREP$ac_delim
 
5882
EGREP!$EGREP$ac_delim
21508
5883
LIBOBJS!$LIBOBJS$ac_delim
21509
5884
LTLIBOBJS!$LTLIBOBJS$ac_delim
21510
5885
_ACEOF
21511
5886
 
21512
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
 
5887
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
21513
5888
    break
21514
5889
  elif $ac_last_try; then
21515
5890
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22110
6485
fi
22111
6486
 
22112
6487
 
22113
 
if test "x$DOCBOOK" = "xno"; then
22114
 
   { echo "$as_me:$LINENO:
22115
 
 
22116
 
Warning:
22117
 
--------
22118
 
The docbook tool is not installed, the man pages won't be generated.
22119
 
If you want the man pages, install docbook and rerun 'configure'.
22120
 
 
22121
 
" >&5
22122
 
echo "$as_me:
22123
 
 
22124
 
Warning:
22125
 
--------
22126
 
The docbook tool is not installed, the man pages won't be generated.
22127
 
If you want the man pages, install docbook and rerun 'configure'.
22128
 
 
22129
 
" >&6;}
22130
 
 
22131
 
fi
22132
 
 
22133
6488
if test "x$SETCAP" = "xno"; then
22134
6489
   { echo "$as_me:$LINENO:
22135
6490