~ubuntu-branches/ubuntu/intrepid/gnome-nettool/intrepid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-02-27 19:51:44 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060227195144-zwwxr8y9h1v8ktq1
Tags: 2.13.91-0ubuntu1
* New upstream release:
  - Marked missing strings for translation (Malone: #22427)
  - Updated translations: cy, ja
* debian/patches/03_autoconf.patch:
  - updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1830
1830
 
1831
1831
# Define the identity of the package.
1832
1832
 PACKAGE=gnome-nettool
1833
 
 VERSION=2.13.90
 
1833
 VERSION=2.13.91
1834
1834
 
1835
1835
 
1836
1836
cat >>confdefs.h <<_ACEOF
5305
5305
case $host_os in
5306
5306
  darwin*)
5307
5307
    if test "$GCC" = yes; then
5308
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5308
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5309
5309
    else
5310
5310
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311
5311
    fi
5321
5321
  # Let the user override the test.
5322
5322
  lt_cv_path_NM="$NM"
5323
5323
else
5324
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5325
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5326
 
    IFS="$lt_save_ifs"
5327
 
    test -z "$ac_dir" && ac_dir=.
5328
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5329
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5330
 
      # Check to see if the nm accepts a BSD-compat flag.
5331
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5332
 
      #   nm: unknown option "B" ignored
5333
 
      # Tru64's nm complains that /dev/null is an invalid object file
5334
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5335
 
      */dev/null* | *'Invalid file or object type'*)
5336
 
        lt_cv_path_NM="$tmp_nm -B"
5337
 
        break
5338
 
        ;;
5339
 
      *)
5340
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5341
 
        */dev/null*)
5342
 
          lt_cv_path_NM="$tmp_nm -p"
 
5324
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5325
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5326
    lt_nm_to_check="$lt_nm_to_check nm"
 
5327
  fi
 
5328
  for lt_tmp_nm in $lt_nm_to_check; do
 
5329
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5330
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5331
      IFS="$lt_save_ifs"
 
5332
      test -z "$ac_dir" && ac_dir=.
 
5333
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5334
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5335
        # Check to see if the nm accepts a BSD-compat flag.
 
5336
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5337
        #   nm: unknown option "B" ignored
 
5338
        # Tru64's nm complains that /dev/null is an invalid object file
 
5339
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5340
        */dev/null* | *'Invalid file or object type'*)
 
5341
          lt_cv_path_NM="$tmp_nm -B"
5343
5342
          break
5344
5343
          ;;
5345
5344
        *)
5346
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5347
 
          continue # so that we can try to find one that supports BSD flags
 
5345
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5346
          */dev/null*)
 
5347
            lt_cv_path_NM="$tmp_nm -p"
 
5348
            break
 
5349
            ;;
 
5350
          *)
 
5351
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5352
            continue # so that we can try to find one that supports BSD flags
 
5353
            ;;
 
5354
          esac
5348
5355
          ;;
5349
5356
        esac
5350
 
      esac
5351
 
    fi
 
5357
      fi
 
5358
    done
 
5359
    IFS="$lt_save_ifs"
5352
5360
  done
5353
 
  IFS="$lt_save_ifs"
5354
5361
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5355
5362
fi
5356
5363
fi
5458
5465
  esac
5459
5466
  ;;
5460
5467
 
 
5468
interix3*)
 
5469
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5470
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5471
  ;;
 
5472
 
5461
5473
irix5* | irix6* | nonstopux*)
5462
5474
  case $LD in
5463
5475
  *-32|*"-32 ") libmagic=32-bit;;
5503
5515
  lt_cv_deplibs_check_method=pass_all
5504
5516
  ;;
5505
5517
 
5506
 
sco3.2v5*)
5507
 
  lt_cv_deplibs_check_method=pass_all
5508
 
  ;;
5509
 
 
5510
5518
solaris*)
5511
5519
  lt_cv_deplibs_check_method=pass_all
5512
5520
  ;;
5513
5521
 
5514
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5522
sysv4 | sysv4.3*)
5515
5523
  case $host_vendor in
5516
5524
  motorola)
5517
5525
    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]'
5532
5540
  siemens)
5533
5541
    lt_cv_deplibs_check_method=pass_all
5534
5542
    ;;
 
5543
  pc)
 
5544
    lt_cv_deplibs_check_method=pass_all
 
5545
    ;;
5535
5546
  esac
5536
5547
  ;;
5537
5548
 
5538
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5549
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5539
5550
  lt_cv_deplibs_check_method=pass_all
5540
5551
  ;;
5541
5552
esac
5553
5564
# If no C compiler was specified, use CC.
5554
5565
LTCC=${LTCC-"$CC"}
5555
5566
 
 
5567
# If no C compiler flags were specified, use CFLAGS.
 
5568
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5569
 
5556
5570
# Allow CC to be a program name with arguments.
5557
5571
compiler=$CC
5558
5572
 
5587
5601
  ;;
5588
5602
*-*-irix6*)
5589
5603
  # Find out which ABI we are using.
5590
 
  echo '#line 5590 "configure"' > conftest.$ac_ext
 
5604
  echo '#line 5604 "configure"' > conftest.$ac_ext
5591
5605
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592
5606
  (eval $ac_compile) 2>&5
5593
5607
  ac_status=$?
5743
5757
    CFLAGS="$SAVE_CFLAGS"
5744
5758
  fi
5745
5759
  ;;
 
5760
sparc*-*solaris*)
 
5761
  # Find out which ABI we are using.
 
5762
  echo 'int i;' > conftest.$ac_ext
 
5763
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5764
  (eval $ac_compile) 2>&5
 
5765
  ac_status=$?
 
5766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5767
  (exit $ac_status); }; then
 
5768
    case `/usr/bin/file conftest.o` in
 
5769
    *64-bit*)
 
5770
      case $lt_cv_prog_gnu_ld in
 
5771
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5772
      *)    LD="${LD-ld} -64" ;;
 
5773
      esac
 
5774
      ;;
 
5775
    esac
 
5776
  fi
 
5777
  rm -rf conftest*
 
5778
  ;;
 
5779
 
5746
5780
 
5747
5781
esac
5748
5782
 
6693
6727
 
6694
6728
 
6695
6729
# Provide some information about the compiler.
6696
 
echo "$as_me:6696:" \
 
6730
echo "$as_me:6730:" \
6697
6731
     "checking for Fortran 77 compiler version" >&5
6698
6732
ac_compiler=`set X $ac_compile; echo $2`
6699
6733
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6896
6930
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6897
6931
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6898
6932
    ;;
 
6933
 
 
6934
  interix*)
 
6935
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6936
    lt_cv_sys_max_cmd_len=196608
 
6937
    ;;
 
6938
 
6899
6939
  osf*)
6900
6940
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6901
6941
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6909
6949
      esac
6910
6950
    fi
6911
6951
    ;;
 
6952
  sco3.2v5*)
 
6953
    lt_cv_sys_max_cmd_len=102400
 
6954
    ;;
 
6955
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6956
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6957
    if test -n "$kargmax"; then
 
6958
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6959
    else
 
6960
      lt_cv_sys_max_cmd_len=32768
 
6961
    fi
 
6962
    ;;
6912
6963
  *)
6913
6964
    # If test is not a shell built-in, we'll probably end up computing a
6914
6965
    # maximum length that is only half of the actual maximum length, but
6994
7045
osf*)
6995
7046
  symcode='[BCDEGQRST]'
6996
7047
  ;;
6997
 
solaris* | sysv5*)
 
7048
solaris*)
6998
7049
  symcode='[BDRT]'
6999
7050
  ;;
 
7051
sco3.2v5*)
 
7052
  symcode='[DT]'
 
7053
  ;;
 
7054
sysv4.2uw2*)
 
7055
  symcode='[DT]'
 
7056
  ;;
 
7057
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7058
  symcode='[ABDT]'
 
7059
  ;;
7000
7060
sysv4)
7001
7061
  symcode='[DFNSTU]'
7002
7062
  ;;
7462
7522
test -z "$AS" && AS=as
7463
7523
test -z "$CC" && CC=cc
7464
7524
test -z "$LTCC" && LTCC=$CC
 
7525
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7465
7526
test -z "$DLLTOOL" && DLLTOOL=dlltool
7466
7527
test -z "$LD" && LD=ld
7467
7528
test -z "$LN_S" && LN_S="ln -s"
7481
7542
if test -n "$RANLIB"; then
7482
7543
  case $host_os in
7483
7544
  openbsd*)
7484
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7545
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7485
7546
    ;;
7486
7547
  *)
7487
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7548
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7488
7549
    ;;
7489
7550
  esac
7490
7551
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7683
7744
# If no C compiler was specified, use CC.
7684
7745
LTCC=${LTCC-"$CC"}
7685
7746
 
 
7747
# If no C compiler flags were specified, use CFLAGS.
 
7748
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7749
 
7686
7750
# Allow CC to be a program name with arguments.
7687
7751
compiler=$CC
7688
7752
 
7690
7754
# save warnings/boilerplate of simple test code
7691
7755
ac_outfile=conftest.$ac_objext
7692
7756
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7693
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7757
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694
7758
_lt_compiler_boilerplate=`cat conftest.err`
7695
7759
$rm conftest*
7696
7760
 
7697
7761
ac_outfile=conftest.$ac_objext
7698
7762
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7699
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7763
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7700
7764
_lt_linker_boilerplate=`cat conftest.err`
7701
7765
$rm conftest*
7702
7766
 
7703
7767
 
7704
 
#
7705
 
# Check for any special shared library compilation flags.
7706
 
#
7707
 
lt_prog_cc_shlib=
7708
 
if test "$GCC" = no; then
7709
 
  case $host_os in
7710
 
  sco3.2v5*)
7711
 
    lt_prog_cc_shlib='-belf'
7712
 
    ;;
7713
 
  esac
7714
 
fi
7715
 
if test -n "$lt_prog_cc_shlib"; then
7716
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7717
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7718
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7719
 
  else
7720
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7721
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7722
 
    lt_cv_prog_cc_can_build_shared=no
7723
 
  fi
7724
 
fi
7725
 
 
7726
 
 
7727
 
#
7728
 
# Check to make sure the static flag actually works.
7729
 
#
7730
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7731
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7732
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7733
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7734
 
else
7735
 
  lt_prog_compiler_static_works=no
7736
 
   save_LDFLAGS="$LDFLAGS"
7737
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7738
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7739
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7740
 
     # The linker can only warn and ignore the option if not recognized
7741
 
     # So say no if there are warnings
7742
 
     if test -s conftest.err; then
7743
 
       # Append any errors to the config.log.
7744
 
       cat conftest.err 1>&5
7745
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7746
 
       $SED '/^$/d' conftest.err >conftest.er2
7747
 
       if diff conftest.exp conftest.er2 >/dev/null; then
7748
 
         lt_prog_compiler_static_works=yes
7749
 
       fi
7750
 
     else
7751
 
       lt_prog_compiler_static_works=yes
7752
 
     fi
7753
 
   fi
7754
 
   $rm conftest*
7755
 
   LDFLAGS="$save_LDFLAGS"
7756
 
 
7757
 
fi
7758
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7759
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7760
 
 
7761
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7762
 
    :
7763
 
else
7764
 
    lt_prog_compiler_static=
7765
 
fi
7766
 
 
7767
 
 
7768
 
 
7769
7768
 
7770
7769
lt_prog_compiler_no_builtin_flag=
7771
7770
 
7791
7790
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7792
7791
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7793
7792
   -e 's:$: $lt_compiler_flag:'`
7794
 
   (eval echo "\"\$as_me:7794: $lt_compile\"" >&5)
 
7793
   (eval echo "\"\$as_me:7793: $lt_compile\"" >&5)
7795
7794
   (eval "$lt_compile" 2>conftest.err)
7796
7795
   ac_status=$?
7797
7796
   cat conftest.err >&5
7798
 
   echo "$as_me:7798: \$? = $ac_status" >&5
 
7797
   echo "$as_me:7797: \$? = $ac_status" >&5
7799
7798
   if (exit $ac_status) && test -s "$ac_outfile"; then
7800
7799
     # The compiler can only warn and ignore the option if not recognized
7801
7800
     # So say no if there are warnings other than the usual output.
7802
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7803
 
     $SED '/^$/d' conftest.err >conftest.er2
7804
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
7801
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7802
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7803
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7805
7804
       lt_cv_prog_compiler_rtti_exceptions=yes
7806
7805
     fi
7807
7806
   fi
7862
7861
      lt_prog_compiler_pic='-fno-common'
7863
7862
      ;;
7864
7863
 
 
7864
    interix3*)
 
7865
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7866
      # Instead, we relocate shared libraries at runtime.
 
7867
      ;;
 
7868
 
7865
7869
    msdosdjgpp*)
7866
7870
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7867
7871
      # on systems that don't support them.
7976
7980
      lt_prog_compiler_static='-non_shared'
7977
7981
      ;;
7978
7982
 
7979
 
    sco3.2v5*)
7980
 
      lt_prog_compiler_pic='-Kpic'
7981
 
      lt_prog_compiler_static='-dn'
7982
 
      ;;
7983
 
 
7984
7983
    solaris*)
7985
7984
      lt_prog_compiler_pic='-KPIC'
7986
7985
      lt_prog_compiler_static='-Bstatic'
7998
7997
      lt_prog_compiler_static='-Bstatic'
7999
7998
      ;;
8000
7999
 
8001
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8000
    sysv4 | sysv4.2uw2* | sysv4.3*)
8002
8001
      lt_prog_compiler_wl='-Wl,'
8003
8002
      lt_prog_compiler_pic='-KPIC'
8004
8003
      lt_prog_compiler_static='-Bstatic'
8011
8010
      fi
8012
8011
      ;;
8013
8012
 
 
8013
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8014
      lt_prog_compiler_wl='-Wl,'
 
8015
      lt_prog_compiler_pic='-KPIC'
 
8016
      lt_prog_compiler_static='-Bstatic'
 
8017
      ;;
 
8018
 
8014
8019
    unicos*)
8015
8020
      lt_prog_compiler_wl='-Wl,'
8016
8021
      lt_prog_compiler_can_build_shared=no
8053
8058
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8054
8059
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8055
8060
   -e 's:$: $lt_compiler_flag:'`
8056
 
   (eval echo "\"\$as_me:8056: $lt_compile\"" >&5)
 
8061
   (eval echo "\"\$as_me:8061: $lt_compile\"" >&5)
8057
8062
   (eval "$lt_compile" 2>conftest.err)
8058
8063
   ac_status=$?
8059
8064
   cat conftest.err >&5
8060
 
   echo "$as_me:8060: \$? = $ac_status" >&5
 
8065
   echo "$as_me:8065: \$? = $ac_status" >&5
8061
8066
   if (exit $ac_status) && test -s "$ac_outfile"; then
8062
8067
     # The compiler can only warn and ignore the option if not recognized
8063
8068
     # So say no if there are warnings other than the usual output.
8064
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8065
 
     $SED '/^$/d' conftest.err >conftest.er2
8066
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
8069
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8070
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8071
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8067
8072
       lt_prog_compiler_pic_works=yes
8068
8073
     fi
8069
8074
   fi
8094
8099
    ;;
8095
8100
esac
8096
8101
 
 
8102
#
 
8103
# Check to make sure the static flag actually works.
 
8104
#
 
8105
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8106
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8107
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
8108
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8110
else
 
8111
  lt_prog_compiler_static_works=no
 
8112
   save_LDFLAGS="$LDFLAGS"
 
8113
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8114
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8115
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8116
     # The linker can only warn and ignore the option if not recognized
 
8117
     # So say no if there are warnings
 
8118
     if test -s conftest.err; then
 
8119
       # Append any errors to the config.log.
 
8120
       cat conftest.err 1>&5
 
8121
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8122
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8123
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8124
         lt_prog_compiler_static_works=yes
 
8125
       fi
 
8126
     else
 
8127
       lt_prog_compiler_static_works=yes
 
8128
     fi
 
8129
   fi
 
8130
   $rm conftest*
 
8131
   LDFLAGS="$save_LDFLAGS"
 
8132
 
 
8133
fi
 
8134
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8135
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8136
 
 
8137
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8138
    :
 
8139
else
 
8140
    lt_prog_compiler_static=
 
8141
fi
 
8142
 
 
8143
 
8097
8144
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8098
8145
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8099
8146
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8115
8162
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8116
8163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8117
8164
   -e 's:$: $lt_compiler_flag:'`
8118
 
   (eval echo "\"\$as_me:8118: $lt_compile\"" >&5)
 
8165
   (eval echo "\"\$as_me:8165: $lt_compile\"" >&5)
8119
8166
   (eval "$lt_compile" 2>out/conftest.err)
8120
8167
   ac_status=$?
8121
8168
   cat out/conftest.err >&5
8122
 
   echo "$as_me:8122: \$? = $ac_status" >&5
 
8169
   echo "$as_me:8169: \$? = $ac_status" >&5
8123
8170
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8124
8171
   then
8125
8172
     # The compiler can only warn and ignore the option if not recognized
8126
8173
     # So say no if there are warnings
8127
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8128
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
8129
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8174
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8175
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8176
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8130
8177
       lt_cv_prog_compiler_c_o=yes
8131
8178
     fi
8132
8179
   fi
8226
8273
      with_gnu_ld=no
8227
8274
    fi
8228
8275
    ;;
 
8276
  interix*)
 
8277
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8278
    with_gnu_ld=yes
 
8279
    ;;
8229
8280
  openbsd*)
8230
8281
    with_gnu_ld=no
8231
8282
    ;;
8310
8361
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8311
8362
 
8312
8363
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8313
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8364
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8314
8365
        # If the export-symbols file already is a .def file (1st line
8315
8366
        # is EXPORTS), use it as is; otherwise, prepend...
8316
8367
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8319
8370
          echo EXPORTS > $output_objdir/$soname.def;
8320
8371
          cat $export_symbols >> $output_objdir/$soname.def;
8321
8372
        fi~
8322
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8373
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8323
8374
      else
8324
8375
        ld_shlibs=no
8325
8376
      fi
8326
8377
      ;;
8327
8378
 
 
8379
    interix3*)
 
8380
      hardcode_direct=no
 
8381
      hardcode_shlibpath_var=no
 
8382
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8383
      export_dynamic_flag_spec='${wl}-E'
 
8384
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8385
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8386
      # default) and relocated if they conflict, which is a slow very memory
 
8387
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8388
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8389
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8390
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8391
      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'
 
8392
      ;;
 
8393
 
8328
8394
    linux*)
8329
8395
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8330
8396
        tmp_addflag=
8366
8432
      fi
8367
8433
      ;;
8368
8434
 
8369
 
    solaris* | sysv5*)
 
8435
    solaris*)
8370
8436
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8371
8437
        ld_shlibs=no
8372
8438
        cat <<EOF 1>&2
8387
8453
      fi
8388
8454
      ;;
8389
8455
 
 
8456
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8457
      case `$LD -v 2>&1` in
 
8458
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8459
        ld_shlibs=no
 
8460
        cat <<_LT_EOF 1>&2
 
8461
 
 
8462
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8463
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8464
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8465
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8466
*** your PATH or compiler configuration so that the native linker is
 
8467
*** used, and then restart.
 
8468
 
 
8469
_LT_EOF
 
8470
        ;;
 
8471
        *)
 
8472
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8473
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8474
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8475
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8476
          else
 
8477
            ld_shlibs=no
 
8478
          fi
 
8479
        ;;
 
8480
      esac
 
8481
      ;;
 
8482
 
8390
8483
    sunos4*)
8391
8484
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392
8485
      wlarc=
8420
8513
      # Note: this linker hardcodes the directories in LIBPATH if there
8421
8514
      # are no directories specified by -L.
8422
8515
      hardcode_minus_L=yes
8423
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8516
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8424
8517
        # Neither direct hardcoding nor static linking is supported with a
8425
8518
        # broken collect2.
8426
8519
        hardcode_direct=unsupported
8454
8547
            break
8455
8548
          fi
8456
8549
          done
 
8550
          ;;
8457
8551
        esac
8458
8552
 
8459
8553
        exp_sym_flag='-bexport'
8491
8585
          hardcode_libdir_flag_spec='-L$libdir'
8492
8586
          hardcode_libdir_separator=
8493
8587
          fi
 
8588
          ;;
8494
8589
        esac
8495
8590
        shared_flag='-shared'
8496
8591
        if test "$aix_use_runtimelinking" = yes; then
8503
8598
        # chokes on -Wl,-G. The following line is correct:
8504
8599
          shared_flag='-G'
8505
8600
        else
8506
 
        if test "$aix_use_runtimelinking" = yes; then
 
8601
          if test "$aix_use_runtimelinking" = yes; then
8507
8602
            shared_flag='${wl}-G'
8508
8603
          else
8509
8604
            shared_flag='${wl}-bM:SRE'
8510
 
        fi
 
8605
          fi
8511
8606
        fi
8512
8607
      fi
8513
8608
 
8572
8667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8573
8668
 
8574
8669
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8575
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8670
        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"
8576
8671
       else
8577
8672
        if test "$host_cpu" = ia64; then
8578
8673
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8579
8674
          allow_undefined_flag="-z nodefs"
8580
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8675
          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"
8581
8676
        else
8582
8677
         # Determine the default libpath from the value encoded in an empty executable.
8583
8678
         cat >conftest.$ac_ext <<_ACEOF
8637
8732
          # -berok will link without error, but may produce a broken library.
8638
8733
          no_undefined_flag=' ${wl}-bernotok'
8639
8734
          allow_undefined_flag=' ${wl}-berok'
8640
 
          # -bexpall does not export symbols beginning with underscore (_)
8641
 
          always_export_symbols=yes
8642
8735
          # Exported symbols can be pulled into shared objects from archives
8643
 
          whole_archive_flag_spec=' '
 
8736
          whole_archive_flag_spec='$convenience'
8644
8737
          archive_cmds_need_lc=yes
8645
8738
          # This is similar to how AIX traditionally builds its shared libraries.
8646
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8739
          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'
8647
8740
        fi
8648
8741
      fi
8649
8742
      ;;
8784
8877
      export_dynamic_flag_spec='${wl}-E'
8785
8878
      ;;
8786
8879
 
8787
 
    hpux10* | hpux11*)
 
8880
    hpux10*)
 
8881
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8882
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8883
      else
 
8884
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8885
      fi
 
8886
      if test "$with_gnu_ld" = no; then
 
8887
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8888
        hardcode_libdir_separator=:
 
8889
 
 
8890
        hardcode_direct=yes
 
8891
        export_dynamic_flag_spec='${wl}-E'
 
8892
 
 
8893
        # hardcode_minus_L: Not really in the search PATH,
 
8894
        # but as the default location of the library.
 
8895
        hardcode_minus_L=yes
 
8896
      fi
 
8897
      ;;
 
8898
 
 
8899
    hpux11*)
8788
8900
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8789
8901
        case $host_cpu in
8790
 
        hppa*64*|ia64*)
 
8902
        hppa*64*)
8791
8903
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8792
8904
          ;;
 
8905
        ia64*)
 
8906
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8907
          ;;
8793
8908
        *)
8794
8909
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795
8910
          ;;
8796
8911
        esac
8797
8912
      else
8798
8913
        case $host_cpu in
8799
 
        hppa*64*|ia64*)
8800
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8914
        hppa*64*)
 
8915
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8916
          ;;
 
8917
        ia64*)
 
8918
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8801
8919
          ;;
8802
8920
        *)
8803
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8921
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804
8922
          ;;
8805
8923
        esac
8806
8924
      fi
8807
8925
      if test "$with_gnu_ld" = no; then
 
8926
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8927
        hardcode_libdir_separator=:
 
8928
 
8808
8929
        case $host_cpu in
8809
 
        hppa*64*)
8810
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8930
        hppa*64*|ia64*)
8811
8931
          hardcode_libdir_flag_spec_ld='+b $libdir'
8812
 
          hardcode_libdir_separator=:
8813
 
          hardcode_direct=no
8814
 
          hardcode_shlibpath_var=no
8815
 
          ;;
8816
 
        ia64*)
8817
 
          hardcode_libdir_flag_spec='-L$libdir'
8818
 
          hardcode_direct=no
8819
 
          hardcode_shlibpath_var=no
8820
 
 
8821
 
          # hardcode_minus_L: Not really in the search PATH,
8822
 
          # but as the default location of the library.
8823
 
          hardcode_minus_L=yes
 
8932
          hardcode_direct=no
 
8933
          hardcode_shlibpath_var=no
8824
8934
          ;;
8825
8935
        *)
8826
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8827
 
          hardcode_libdir_separator=:
8828
8936
          hardcode_direct=yes
8829
8937
          export_dynamic_flag_spec='${wl}-E'
8830
8938
 
8926
9034
      hardcode_libdir_separator=:
8927
9035
      ;;
8928
9036
 
8929
 
    sco3.2v5*)
8930
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931
 
      hardcode_shlibpath_var=no
8932
 
      export_dynamic_flag_spec='${wl}-Bexport'
8933
 
      runpath_var=LD_RUN_PATH
8934
 
      hardcode_runpath_var=yes
8935
 
      ;;
8936
 
 
8937
9037
    solaris*)
8938
9038
      no_undefined_flag=' -z text'
8939
9039
      if test "$GCC" = yes; then
9019
9119
      fi
9020
9120
      ;;
9021
9121
 
9022
 
    sysv4.2uw2*)
9023
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9024
 
      hardcode_direct=yes
9025
 
      hardcode_minus_L=no
9026
 
      hardcode_shlibpath_var=no
9027
 
      hardcode_runpath_var=yes
9028
 
      runpath_var=LD_RUN_PATH
9029
 
      ;;
9030
 
 
9031
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9032
 
      no_undefined_flag='${wl}-z ${wl}text'
9033
 
      if test "$GCC" = yes; then
9034
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035
 
      else
9036
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037
 
      fi
9038
 
      runpath_var='LD_RUN_PATH'
9039
 
      hardcode_shlibpath_var=no
9040
 
      ;;
9041
 
 
9042
 
    sysv5*)
9043
 
      no_undefined_flag=' -z text'
9044
 
      # $CC -shared without GNU ld will not create a library from C++
9045
 
      # object files and a static libstdc++, better avoid it by now
9046
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9048
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9049
 
      hardcode_libdir_flag_spec=
9050
 
      hardcode_shlibpath_var=no
9051
 
      runpath_var='LD_RUN_PATH'
 
9122
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9123
      no_undefined_flag='${wl}-z,text'
 
9124
      archive_cmds_need_lc=no
 
9125
      hardcode_shlibpath_var=no
 
9126
      runpath_var='LD_RUN_PATH'
 
9127
 
 
9128
      if test "$GCC" = yes; then
 
9129
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9130
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9131
      else
 
9132
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9133
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9134
      fi
 
9135
      ;;
 
9136
 
 
9137
    sysv5* | sco3.2v5* | sco5v6*)
 
9138
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9139
      # link with -lc, and that would cause any symbols used from libc to
 
9140
      # always be unresolved, which means just about no library would
 
9141
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9142
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9143
      # as -z defs.
 
9144
      no_undefined_flag='${wl}-z,text'
 
9145
      allow_undefined_flag='${wl}-z,nodefs'
 
9146
      archive_cmds_need_lc=no
 
9147
      hardcode_shlibpath_var=no
 
9148
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9149
      hardcode_libdir_separator=':'
 
9150
      link_all_deplibs=yes
 
9151
      export_dynamic_flag_spec='${wl}-Bexport'
 
9152
      runpath_var='LD_RUN_PATH'
 
9153
 
 
9154
      if test "$GCC" = yes; then
 
9155
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9156
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9157
      else
 
9158
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9159
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9160
      fi
9052
9161
      ;;
9053
9162
 
9054
9163
    uts4*)
9067
9176
echo "${ECHO_T}$ld_shlibs" >&6
9068
9177
test "$ld_shlibs" = no && can_build_shared=no
9069
9178
 
9070
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9071
 
if test "$GCC" = yes; then
9072
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9073
 
fi
9074
 
 
9075
9179
#
9076
9180
# Do we need to explicitly link libc?
9077
9181
#
9104
9208
        libobjs=conftest.$ac_objext
9105
9209
        deplibs=
9106
9210
        wl=$lt_prog_compiler_wl
 
9211
        pic_flag=$lt_prog_compiler_pic
9107
9212
        compiler_flags=-v
9108
9213
        linker_flags=-v
9109
9214
        verstring=
9385
9490
    shlibpath_overrides_runpath=yes
9386
9491
    hardcode_into_libs=yes
9387
9492
    ;;
9388
 
  *) # from 3.2 on
 
9493
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9494
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9389
9495
    shlibpath_overrides_runpath=no
9390
9496
    hardcode_into_libs=yes
9391
9497
    ;;
 
9498
  freebsd*) # from 4.6 on
 
9499
    shlibpath_overrides_runpath=yes
 
9500
    hardcode_into_libs=yes
 
9501
    ;;
9392
9502
  esac
9393
9503
  ;;
9394
9504
 
9448
9558
  postinstall_cmds='chmod 555 $lib'
9449
9559
  ;;
9450
9560
 
 
9561
interix3*)
 
9562
  version_type=linux
 
9563
  need_lib_prefix=no
 
9564
  need_version=no
 
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
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9568
  shlibpath_var=LD_LIBRARY_PATH
 
9569
  shlibpath_overrides_runpath=no
 
9570
  hardcode_into_libs=yes
 
9571
  ;;
 
9572
 
9451
9573
irix5* | irix6* | nonstopux*)
9452
9574
  case $host_os in
9453
9575
    nonstopux*) version_type=nonstopux ;;
9569
9691
 
9570
9692
openbsd*)
9571
9693
  version_type=sunos
 
9694
  sys_lib_dlsearch_path_spec="/usr/lib"
9572
9695
  need_lib_prefix=no
9573
9696
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9574
9697
  case $host_os in
9612
9735
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9613
9736
  ;;
9614
9737
 
9615
 
sco3.2v5*)
9616
 
  version_type=osf
9617
 
  soname_spec='${libname}${release}${shared_ext}$major'
9618
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619
 
  shlibpath_var=LD_LIBRARY_PATH
9620
 
  ;;
9621
 
 
9622
9738
solaris*)
9623
9739
  version_type=linux
9624
9740
  need_lib_prefix=no
9644
9760
  need_version=yes
9645
9761
  ;;
9646
9762
 
9647
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9763
sysv4 | sysv4.3*)
9648
9764
  version_type=linux
9649
9765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650
9766
  soname_spec='${libname}${release}${shared_ext}$major'
9677
9793
  fi
9678
9794
  ;;
9679
9795
 
 
9796
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9797
  version_type=freebsd-elf
 
9798
  need_lib_prefix=no
 
9799
  need_version=no
 
9800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9801
  soname_spec='${libname}${release}${shared_ext}$major'
 
9802
  shlibpath_var=LD_LIBRARY_PATH
 
9803
  hardcode_into_libs=yes
 
9804
  if test "$with_gnu_ld" = yes; then
 
9805
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9806
    shlibpath_overrides_runpath=no
 
9807
  else
 
9808
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9809
    shlibpath_overrides_runpath=yes
 
9810
    case $host_os in
 
9811
      sco3.2v5*)
 
9812
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9813
        ;;
 
9814
    esac
 
9815
  fi
 
9816
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9817
  ;;
 
9818
 
9680
9819
uts4*)
9681
9820
  version_type=linux
9682
9821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692
9831
echo "${ECHO_T}$dynamic_linker" >&6
9693
9832
test "$dynamic_linker" = no && can_build_shared=no
9694
9833
 
 
9834
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9835
if test "$GCC" = yes; then
 
9836
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9837
fi
 
9838
 
9695
9839
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9696
9840
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9697
9841
hardcode_action=
10347
10491
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10348
10492
 
10349
10493
    save_LDFLAGS="$LDFLAGS"
10350
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10494
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10351
10495
 
10352
10496
    save_LIBS="$LIBS"
10353
10497
    LIBS="$lt_cv_dlopen_libs $LIBS"
10363
10507
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364
10508
  lt_status=$lt_dlunknown
10365
10509
  cat > conftest.$ac_ext <<EOF
10366
 
#line 10366 "configure"
 
10510
#line 10510 "configure"
10367
10511
#include "confdefs.h"
10368
10512
 
10369
10513
#if HAVE_DLFCN_H
10420
10564
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421
10565
      /* dlclose (self); */
10422
10566
    }
 
10567
  else
 
10568
    puts (dlerror ());
10423
10569
 
10424
10570
    exit (status);
10425
10571
}
10434
10580
    case x$lt_status in
10435
10581
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10436
10582
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10437
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10583
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10438
10584
    esac
10439
10585
  else :
10440
10586
    # compilation failed
10449
10595
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10450
10596
 
10451
10597
    if test "x$lt_cv_dlopen_self" = xyes; then
10452
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10598
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10453
10599
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10454
10600
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10455
10601
if test "${lt_cv_dlopen_self_static+set}" = set; then
10461
10607
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462
10608
  lt_status=$lt_dlunknown
10463
10609
  cat > conftest.$ac_ext <<EOF
10464
 
#line 10464 "configure"
 
10610
#line 10610 "configure"
10465
10611
#include "confdefs.h"
10466
10612
 
10467
10613
#if HAVE_DLFCN_H
10518
10664
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519
10665
      /* dlclose (self); */
10520
10666
    }
 
10667
  else
 
10668
    puts (dlerror ());
10521
10669
 
10522
10670
    exit (status);
10523
10671
}
10532
10680
    case x$lt_status in
10533
10681
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10534
10682
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10535
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10683
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10536
10684
    esac
10537
10685
  else :
10538
10686
    # compilation failed
10565
10713
fi
10566
10714
 
10567
10715
 
10568
 
# Report which librarie types wil actually be built
 
10716
# Report which library types will actually be built
10569
10717
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10570
10718
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10571
10719
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10615
10763
  # Now quote all the things that may contain metacharacters while being
10616
10764
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10617
10765
  # variables and quote the copies for generation of the libtool script.
10618
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10766
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10619
10767
    SED SHELL STRIP \
10620
10768
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10621
10769
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10781
10929
# A C compiler.
10782
10930
LTCC=$lt_LTCC
10783
10931
 
 
10932
# LTCC compiler flags.
 
10933
LTCFLAGS=$lt_LTCFLAGS
 
10934
 
10784
10935
# A language-specific compiler.
10785
10936
CC=$lt_compiler
10786
10937
 
11111
11262
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11112
11263
    fi
11113
11264
  fi
 
11265
  if test -z "$LTCFLAGS"; then
 
11266
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11267
  fi
11114
11268
 
11115
11269
  # Extract list of available tagged configurations in $ofile.
11116
11270
  # Note that this assumes the entire list is on one line.
11163
11317
hardcode_libdir_flag_spec_ld_CXX=
11164
11318
hardcode_libdir_separator_CXX=
11165
11319
hardcode_minus_L_CXX=no
 
11320
hardcode_shlibpath_var_CXX=unsupported
11166
11321
hardcode_automatic_CXX=no
11167
11322
module_cmds_CXX=
11168
11323
module_expsym_cmds_CXX=
11190
11345
lt_simple_compile_test_code="int some_variable = 0;\n"
11191
11346
 
11192
11347
# Code to be used in simple link tests
11193
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11348
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11194
11349
 
11195
11350
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11196
11351
 
11197
11352
# If no C compiler was specified, use CC.
11198
11353
LTCC=${LTCC-"$CC"}
11199
11354
 
 
11355
# If no C compiler flags were specified, use CFLAGS.
 
11356
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11357
 
11200
11358
# Allow CC to be a program name with arguments.
11201
11359
compiler=$CC
11202
11360
 
11204
11362
# save warnings/boilerplate of simple test code
11205
11363
ac_outfile=conftest.$ac_objext
11206
11364
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11207
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
11365
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11208
11366
_lt_compiler_boilerplate=`cat conftest.err`
11209
11367
$rm conftest*
11210
11368
 
11211
11369
ac_outfile=conftest.$ac_objext
11212
11370
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11213
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
11371
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11214
11372
_lt_linker_boilerplate=`cat conftest.err`
11215
11373
$rm conftest*
11216
11374
 
11225
11383
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11226
11384
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11227
11385
else
11228
 
  unset lt_cv_prog_gnu_ld
 
11386
  $as_unset lt_cv_prog_gnu_ld
11229
11387
fi
11230
11388
if test -n "${lt_cv_path_LDCXX+set}"; then
11231
11389
  lt_cv_path_LD=$lt_cv_path_LDCXX
11232
11390
else
11233
 
  unset lt_cv_path_LD
 
11391
  $as_unset lt_cv_path_LD
11234
11392
fi
11235
11393
test -z "${LDCXX+set}" || LD=$LDCXX
11236
11394
CC=${CXX-"c++"}
11441
11599
            ;;
11442
11600
          esac
11443
11601
        done
 
11602
        ;;
11444
11603
      esac
11445
11604
 
11446
11605
      exp_sym_flag='-bexport'
11478
11637
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11479
11638
          hardcode_libdir_separator_CXX=
11480
11639
        fi
 
11640
        ;;
11481
11641
      esac
11482
11642
      shared_flag='-shared'
11483
11643
      if test "$aix_use_runtimelinking" = yes; then
11560
11720
 
11561
11721
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11562
11722
 
11563
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11723
      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"
11564
11724
     else
11565
11725
      if test "$host_cpu" = ia64; then
11566
11726
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11567
11727
        allow_undefined_flag_CXX="-z nodefs"
11568
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
11728
        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"
11569
11729
      else
11570
11730
        # Determine the default libpath from the value encoded in an empty executable.
11571
11731
        cat >conftest.$ac_ext <<_ACEOF
11625
11785
        # -berok will link without error, but may produce a broken library.
11626
11786
        no_undefined_flag_CXX=' ${wl}-bernotok'
11627
11787
        allow_undefined_flag_CXX=' ${wl}-berok'
11628
 
        # -bexpall does not export symbols beginning with underscore (_)
11629
 
        always_export_symbols_CXX=yes
11630
11788
        # Exported symbols can be pulled into shared objects from archives
11631
 
        whole_archive_flag_spec_CXX=' '
 
11789
        whole_archive_flag_spec_CXX='$convenience'
11632
11790
        archive_cmds_need_lc_CXX=yes
11633
11791
        # This is similar to how AIX traditionally builds its shared libraries.
11634
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11792
        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'
11635
11793
      fi
11636
11794
    fi
11637
11795
    ;;
 
11796
 
 
11797
  beos*)
 
11798
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11799
      allow_undefined_flag_CXX=unsupported
 
11800
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11801
      # support --undefined.  This deserves some investigation.  FIXME
 
11802
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11803
    else
 
11804
      ld_shlibs_CXX=no
 
11805
    fi
 
11806
    ;;
 
11807
 
11638
11808
  chorus*)
11639
11809
    case $cc_basename in
11640
11810
      *)
11644
11814
    esac
11645
11815
    ;;
11646
11816
 
11647
 
 
11648
11817
  cygwin* | mingw* | pw32*)
11649
11818
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11650
11819
    # as there is no search path for DLLs.
11654
11823
    enable_shared_with_static_runtimes_CXX=yes
11655
11824
 
11656
11825
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11657
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11826
      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'
11658
11827
      # If the export-symbols file already is a .def file (1st line
11659
11828
      # is EXPORTS), use it as is; otherwise, prepend...
11660
11829
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11663
11832
        echo EXPORTS > $output_objdir/$soname.def;
11664
11833
        cat $export_symbols >> $output_objdir/$soname.def;
11665
11834
      fi~
11666
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11835
      $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'
11667
11836
    else
11668
11837
      ld_shlibs_CXX=no
11669
11838
    fi
11800
11969
    ;;
11801
11970
  hpux10*|hpux11*)
11802
11971
    if test $with_gnu_ld = no; then
 
11972
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11973
      hardcode_libdir_separator_CXX=:
 
11974
 
11803
11975
      case $host_cpu in
11804
 
      hppa*64*)
11805
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11976
      hppa*64*|ia64*)
11806
11977
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11807
 
        hardcode_libdir_separator_CXX=:
11808
 
        ;;
11809
 
      ia64*)
11810
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11811
11978
        ;;
11812
11979
      *)
11813
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814
 
        hardcode_libdir_separator_CXX=:
11815
11980
        export_dynamic_flag_spec_CXX='${wl}-E'
11816
11981
        ;;
11817
11982
      esac
11818
11983
    fi
11819
11984
    case $host_cpu in
11820
 
    hppa*64*)
11821
 
      hardcode_direct_CXX=no
11822
 
      hardcode_shlibpath_var_CXX=no
11823
 
      ;;
11824
 
    ia64*)
11825
 
      hardcode_direct_CXX=no
11826
 
      hardcode_shlibpath_var_CXX=no
11827
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11828
 
                                              # but as the default
11829
 
                                              # location of the library.
 
11985
    hppa*64*|ia64*)
 
11986
      hardcode_direct_CXX=no
 
11987
      hardcode_shlibpath_var_CXX=no
11830
11988
      ;;
11831
11989
    *)
11832
11990
      hardcode_direct_CXX=yes
11843
12001
        ;;
11844
12002
      aCC*)
11845
12003
        case $host_cpu in
11846
 
        hppa*64*|ia64*)
11847
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12004
        hppa*64*)
 
12005
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12006
          ;;
 
12007
        ia64*)
 
12008
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848
12009
          ;;
11849
12010
        *)
11850
12011
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11864
12025
        if test "$GXX" = yes; then
11865
12026
          if test $with_gnu_ld = no; then
11866
12027
            case $host_cpu in
11867
 
            ia64*|hppa*64*)
11868
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12028
            hppa*64*)
 
12029
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12030
              ;;
 
12031
            ia64*)
 
12032
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11869
12033
              ;;
11870
12034
            *)
11871
12035
              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'
11879
12043
        ;;
11880
12044
    esac
11881
12045
    ;;
 
12046
  interix3*)
 
12047
    hardcode_direct_CXX=no
 
12048
    hardcode_shlibpath_var_CXX=no
 
12049
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12050
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12051
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12052
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12053
    # default) and relocated if they conflict, which is a slow very memory
 
12054
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12055
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12056
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12057
    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'
 
12058
    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'
 
12059
    ;;
11882
12060
  irix5* | irix6*)
11883
12061
    case $cc_basename in
11884
12062
      CC*)
12161
12339
    # FIXME: insert proper C++ library support
12162
12340
    ld_shlibs_CXX=no
12163
12341
    ;;
12164
 
  sco*)
12165
 
    archive_cmds_need_lc_CXX=no
12166
 
    case $cc_basename in
12167
 
      CC*)
12168
 
        # FIXME: insert proper C++ library support
12169
 
        ld_shlibs_CXX=no
12170
 
        ;;
12171
 
      *)
12172
 
        # FIXME: insert proper C++ library support
12173
 
        ld_shlibs_CXX=no
12174
 
        ;;
12175
 
    esac
12176
 
    ;;
12177
12342
  sunos4*)
12178
12343
    case $cc_basename in
12179
12344
      CC*)
12266
12431
        ;;
12267
12432
    esac
12268
12433
    ;;
12269
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12270
 
    archive_cmds_need_lc_CXX=no
 
12434
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12435
    no_undefined_flag_CXX='${wl}-z,text'
 
12436
    archive_cmds_need_lc_CXX=no
 
12437
    hardcode_shlibpath_var_CXX=no
 
12438
    runpath_var='LD_RUN_PATH'
 
12439
 
 
12440
    case $cc_basename in
 
12441
      CC*)
 
12442
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12443
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12444
        ;;
 
12445
      *)
 
12446
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12447
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12448
        ;;
 
12449
    esac
 
12450
    ;;
 
12451
  sysv5* | sco3.2v5* | sco5v6*)
 
12452
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12453
    # link with -lc, and that would cause any symbols used from libc to
 
12454
    # always be unresolved, which means just about no library would
 
12455
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12456
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12457
    # as -z defs.
 
12458
    # For security reasons, it is highly recommended that you always
 
12459
    # use absolute paths for naming shared libraries, and exclude the
 
12460
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12461
    # requires that you compile everything twice, which is a pain.
 
12462
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12463
    # non-empty value in the environment.  Most likely only useful for
 
12464
    # creating official distributions of packages.
 
12465
    # This is a hack until libtool officially supports absolute path
 
12466
    # names for shared libraries.
 
12467
    no_undefined_flag_CXX='${wl}-z,text'
 
12468
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12469
    archive_cmds_need_lc_CXX=no
 
12470
    hardcode_shlibpath_var_CXX=no
 
12471
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12472
    hardcode_libdir_separator_CXX=':'
 
12473
    link_all_deplibs_CXX=yes
 
12474
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12475
    runpath_var='LD_RUN_PATH'
 
12476
 
 
12477
    case $cc_basename in
 
12478
      CC*)
 
12479
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12480
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12481
        ;;
 
12482
      *)
 
12483
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12484
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12485
        ;;
 
12486
    esac
12271
12487
    ;;
12272
12488
  tandem*)
12273
12489
    case $cc_basename in
12402
12618
 
12403
12619
# PORTME: override above test on systems where it is broken
12404
12620
case $host_os in
 
12621
interix3*)
 
12622
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12623
  # hack all around it, let's just trust "g++" to DTRT.
 
12624
  predep_objects_CXX=
 
12625
  postdep_objects_CXX=
 
12626
  postdeps_CXX=
 
12627
  ;;
 
12628
 
12405
12629
solaris*)
12406
12630
  case $cc_basename in
12407
12631
  CC*)
12411
12635
    postdeps_CXX='-lCstd -lCrun'
12412
12636
    ;;
12413
12637
  esac
 
12638
  ;;
12414
12639
esac
12415
12640
 
12416
12641
 
12461
12686
      # DJGPP does not support shared libraries at all
12462
12687
      lt_prog_compiler_pic_CXX=
12463
12688
      ;;
 
12689
    interix3*)
 
12690
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12691
      # Instead, we relocate shared libraries at runtime.
 
12692
      ;;
12464
12693
    sysv4*MP*)
12465
12694
      if test -d /usr/nec; then
12466
12695
        lt_prog_compiler_pic_CXX=-Kconform_pic
12530
12759
        case $cc_basename in
12531
12760
          CC*)
12532
12761
            lt_prog_compiler_wl_CXX='-Wl,'
12533
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12762
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12534
12763
            if test "$host_cpu" != ia64; then
12535
12764
              lt_prog_compiler_pic_CXX='+Z'
12536
12765
            fi
12537
12766
            ;;
12538
12767
          aCC*)
12539
12768
            lt_prog_compiler_wl_CXX='-Wl,'
12540
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12769
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12541
12770
            case $host_cpu in
12542
12771
            hppa*64*|ia64*)
12543
12772
              # +Z the default
12551
12780
            ;;
12552
12781
        esac
12553
12782
        ;;
 
12783
      interix*)
 
12784
        # This is c89, which is MS Visual C++ (no shared libs)
 
12785
        # Anyone wants to do a port?
 
12786
        ;;
12554
12787
      irix5* | irix6* | nonstopux*)
12555
12788
        case $cc_basename in
12556
12789
          CC*)
12630
12863
        ;;
12631
12864
      psos*)
12632
12865
        ;;
12633
 
      sco*)
12634
 
        case $cc_basename in
12635
 
          CC*)
12636
 
            lt_prog_compiler_pic_CXX='-fPIC'
12637
 
            ;;
12638
 
          *)
12639
 
            ;;
12640
 
        esac
12641
 
        ;;
12642
12866
      solaris*)
12643
12867
        case $cc_basename in
12644
12868
          CC*)
12680
12904
            ;;
12681
12905
        esac
12682
12906
        ;;
12683
 
      unixware*)
 
12907
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12908
        case $cc_basename in
 
12909
          CC*)
 
12910
            lt_prog_compiler_wl_CXX='-Wl,'
 
12911
            lt_prog_compiler_pic_CXX='-KPIC'
 
12912
            lt_prog_compiler_static_CXX='-Bstatic'
 
12913
            ;;
 
12914
        esac
12684
12915
        ;;
12685
12916
      vxworks*)
12686
12917
        ;;
12716
12947
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12717
12948
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12718
12949
   -e 's:$: $lt_compiler_flag:'`
12719
 
   (eval echo "\"\$as_me:12719: $lt_compile\"" >&5)
 
12950
   (eval echo "\"\$as_me:12950: $lt_compile\"" >&5)
12720
12951
   (eval "$lt_compile" 2>conftest.err)
12721
12952
   ac_status=$?
12722
12953
   cat conftest.err >&5
12723
 
   echo "$as_me:12723: \$? = $ac_status" >&5
 
12954
   echo "$as_me:12954: \$? = $ac_status" >&5
12724
12955
   if (exit $ac_status) && test -s "$ac_outfile"; then
12725
12956
     # The compiler can only warn and ignore the option if not recognized
12726
12957
     # So say no if there are warnings other than the usual output.
12727
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12728
 
     $SED '/^$/d' conftest.err >conftest.er2
12729
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
12958
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12959
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12960
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12730
12961
       lt_prog_compiler_pic_works_CXX=yes
12731
12962
     fi
12732
12963
   fi
12757
12988
    ;;
12758
12989
esac
12759
12990
 
 
12991
#
 
12992
# Check to make sure the static flag actually works.
 
12993
#
 
12994
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12995
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12996
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
12997
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12999
else
 
13000
  lt_prog_compiler_static_works_CXX=no
 
13001
   save_LDFLAGS="$LDFLAGS"
 
13002
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13003
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13004
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13005
     # The linker can only warn and ignore the option if not recognized
 
13006
     # So say no if there are warnings
 
13007
     if test -s conftest.err; then
 
13008
       # Append any errors to the config.log.
 
13009
       cat conftest.err 1>&5
 
13010
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13011
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13012
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13013
         lt_prog_compiler_static_works_CXX=yes
 
13014
       fi
 
13015
     else
 
13016
       lt_prog_compiler_static_works_CXX=yes
 
13017
     fi
 
13018
   fi
 
13019
   $rm conftest*
 
13020
   LDFLAGS="$save_LDFLAGS"
 
13021
 
 
13022
fi
 
13023
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
13024
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
13025
 
 
13026
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13027
    :
 
13028
else
 
13029
    lt_prog_compiler_static_CXX=
 
13030
fi
 
13031
 
 
13032
 
12760
13033
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12761
13034
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12762
13035
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12778
13051
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12779
13052
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12780
13053
   -e 's:$: $lt_compiler_flag:'`
12781
 
   (eval echo "\"\$as_me:12781: $lt_compile\"" >&5)
 
13054
   (eval echo "\"\$as_me:13054: $lt_compile\"" >&5)
12782
13055
   (eval "$lt_compile" 2>out/conftest.err)
12783
13056
   ac_status=$?
12784
13057
   cat out/conftest.err >&5
12785
 
   echo "$as_me:12785: \$? = $ac_status" >&5
 
13058
   echo "$as_me:13058: \$? = $ac_status" >&5
12786
13059
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12787
13060
   then
12788
13061
     # The compiler can only warn and ignore the option if not recognized
12789
13062
     # So say no if there are warnings
12790
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12791
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
12792
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13063
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13064
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13065
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12793
13066
       lt_cv_prog_compiler_c_o_CXX=yes
12794
13067
     fi
12795
13068
   fi
12859
13132
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12860
13133
test "$ld_shlibs_CXX" = no && can_build_shared=no
12861
13134
 
12862
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12863
 
if test "$GCC" = yes; then
12864
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12865
 
fi
12866
 
 
12867
13135
#
12868
13136
# Do we need to explicitly link libc?
12869
13137
#
12896
13164
        libobjs=conftest.$ac_objext
12897
13165
        deplibs=
12898
13166
        wl=$lt_prog_compiler_wl_CXX
 
13167
        pic_flag=$lt_prog_compiler_pic_CXX
12899
13168
        compiler_flags=-v
12900
13169
        linker_flags=-v
12901
13170
        verstring=
13177
13446
    shlibpath_overrides_runpath=yes
13178
13447
    hardcode_into_libs=yes
13179
13448
    ;;
13180
 
  *) # from 3.2 on
 
13449
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13450
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13181
13451
    shlibpath_overrides_runpath=no
13182
13452
    hardcode_into_libs=yes
13183
13453
    ;;
 
13454
  freebsd*) # from 4.6 on
 
13455
    shlibpath_overrides_runpath=yes
 
13456
    hardcode_into_libs=yes
 
13457
    ;;
13184
13458
  esac
13185
13459
  ;;
13186
13460
 
13240
13514
  postinstall_cmds='chmod 555 $lib'
13241
13515
  ;;
13242
13516
 
 
13517
interix3*)
 
13518
  version_type=linux
 
13519
  need_lib_prefix=no
 
13520
  need_version=no
 
13521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13522
  soname_spec='${libname}${release}${shared_ext}$major'
 
13523
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13524
  shlibpath_var=LD_LIBRARY_PATH
 
13525
  shlibpath_overrides_runpath=no
 
13526
  hardcode_into_libs=yes
 
13527
  ;;
 
13528
 
13243
13529
irix5* | irix6* | nonstopux*)
13244
13530
  case $host_os in
13245
13531
    nonstopux*) version_type=nonstopux ;;
13361
13647
 
13362
13648
openbsd*)
13363
13649
  version_type=sunos
 
13650
  sys_lib_dlsearch_path_spec="/usr/lib"
13364
13651
  need_lib_prefix=no
13365
13652
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13366
13653
  case $host_os in
13404
13691
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13405
13692
  ;;
13406
13693
 
13407
 
sco3.2v5*)
13408
 
  version_type=osf
13409
 
  soname_spec='${libname}${release}${shared_ext}$major'
13410
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13411
 
  shlibpath_var=LD_LIBRARY_PATH
13412
 
  ;;
13413
 
 
13414
13694
solaris*)
13415
13695
  version_type=linux
13416
13696
  need_lib_prefix=no
13436
13716
  need_version=yes
13437
13717
  ;;
13438
13718
 
13439
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13719
sysv4 | sysv4.3*)
13440
13720
  version_type=linux
13441
13721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442
13722
  soname_spec='${libname}${release}${shared_ext}$major'
13469
13749
  fi
13470
13750
  ;;
13471
13751
 
 
13752
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13753
  version_type=freebsd-elf
 
13754
  need_lib_prefix=no
 
13755
  need_version=no
 
13756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13757
  soname_spec='${libname}${release}${shared_ext}$major'
 
13758
  shlibpath_var=LD_LIBRARY_PATH
 
13759
  hardcode_into_libs=yes
 
13760
  if test "$with_gnu_ld" = yes; then
 
13761
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13762
    shlibpath_overrides_runpath=no
 
13763
  else
 
13764
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13765
    shlibpath_overrides_runpath=yes
 
13766
    case $host_os in
 
13767
      sco3.2v5*)
 
13768
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13769
        ;;
 
13770
    esac
 
13771
  fi
 
13772
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13773
  ;;
 
13774
 
13472
13775
uts4*)
13473
13776
  version_type=linux
13474
13777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484
13787
echo "${ECHO_T}$dynamic_linker" >&6
13485
13788
test "$dynamic_linker" = no && can_build_shared=no
13486
13789
 
 
13790
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13791
if test "$GCC" = yes; then
 
13792
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13793
fi
 
13794
 
13487
13795
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13488
13796
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13489
13797
hardcode_action_CXX=
13521
13829
  enable_fast_install=needless
13522
13830
fi
13523
13831
 
13524
 
striplib=
13525
 
old_striplib=
13526
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13527
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13528
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13529
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13530
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13531
 
  echo "$as_me:$LINENO: result: yes" >&5
13532
 
echo "${ECHO_T}yes" >&6
13533
 
else
13534
 
# FIXME - insert some real tests, host_os isn't really good enough
13535
 
  case $host_os in
13536
 
   darwin*)
13537
 
       if test -n "$STRIP" ; then
13538
 
         striplib="$STRIP -x"
13539
 
         echo "$as_me:$LINENO: result: yes" >&5
13540
 
echo "${ECHO_T}yes" >&6
13541
 
       else
13542
 
  echo "$as_me:$LINENO: result: no" >&5
13543
 
echo "${ECHO_T}no" >&6
13544
 
fi
13545
 
       ;;
13546
 
   *)
13547
 
  echo "$as_me:$LINENO: result: no" >&5
13548
 
echo "${ECHO_T}no" >&6
13549
 
    ;;
13550
 
  esac
13551
 
fi
13552
 
 
13553
 
if test "x$enable_dlopen" != xyes; then
13554
 
  enable_dlopen=unknown
13555
 
  enable_dlopen_self=unknown
13556
 
  enable_dlopen_self_static=unknown
13557
 
else
13558
 
  lt_cv_dlopen=no
13559
 
  lt_cv_dlopen_libs=
13560
 
 
13561
 
  case $host_os in
13562
 
  beos*)
13563
 
    lt_cv_dlopen="load_add_on"
13564
 
    lt_cv_dlopen_libs=
13565
 
    lt_cv_dlopen_self=yes
13566
 
    ;;
13567
 
 
13568
 
  mingw* | pw32*)
13569
 
    lt_cv_dlopen="LoadLibrary"
13570
 
    lt_cv_dlopen_libs=
13571
 
   ;;
13572
 
 
13573
 
  cygwin*)
13574
 
    lt_cv_dlopen="dlopen"
13575
 
    lt_cv_dlopen_libs=
13576
 
   ;;
13577
 
 
13578
 
  darwin*)
13579
 
  # if libdl is installed we need to link against it
13580
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13581
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13582
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13584
 
else
13585
 
  ac_check_lib_save_LIBS=$LIBS
13586
 
LIBS="-ldl  $LIBS"
13587
 
cat >conftest.$ac_ext <<_ACEOF
13588
 
/* confdefs.h.  */
13589
 
_ACEOF
13590
 
cat confdefs.h >>conftest.$ac_ext
13591
 
cat >>conftest.$ac_ext <<_ACEOF
13592
 
/* end confdefs.h.  */
13593
 
 
13594
 
/* Override any gcc2 internal prototype to avoid an error.  */
13595
 
#ifdef __cplusplus
13596
 
extern "C"
13597
 
#endif
13598
 
/* We use char because int might match the return type of a gcc2
13599
 
   builtin and then its argument prototype would still apply.  */
13600
 
char dlopen ();
13601
 
int
13602
 
main ()
13603
 
{
13604
 
dlopen ();
13605
 
  ;
13606
 
  return 0;
13607
 
}
13608
 
_ACEOF
13609
 
rm -f conftest.$ac_objext conftest$ac_exeext
13610
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13611
 
  (eval $ac_link) 2>conftest.er1
13612
 
  ac_status=$?
13613
 
  grep -v '^ *+' conftest.er1 >conftest.err
13614
 
  rm -f conftest.er1
13615
 
  cat conftest.err >&5
13616
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617
 
  (exit $ac_status); } &&
13618
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13619
 
                         || test ! -s conftest.err'
13620
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621
 
  (eval $ac_try) 2>&5
13622
 
  ac_status=$?
13623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624
 
  (exit $ac_status); }; } &&
13625
 
         { ac_try='test -s conftest$ac_exeext'
13626
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627
 
  (eval $ac_try) 2>&5
13628
 
  ac_status=$?
13629
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630
 
  (exit $ac_status); }; }; then
13631
 
  ac_cv_lib_dl_dlopen=yes
13632
 
else
13633
 
  echo "$as_me: failed program was:" >&5
13634
 
sed 's/^/| /' conftest.$ac_ext >&5
13635
 
 
13636
 
ac_cv_lib_dl_dlopen=no
13637
 
fi
13638
 
rm -f conftest.err conftest.$ac_objext \
13639
 
      conftest$ac_exeext conftest.$ac_ext
13640
 
LIBS=$ac_check_lib_save_LIBS
13641
 
fi
13642
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13643
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13644
 
if test $ac_cv_lib_dl_dlopen = yes; then
13645
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13646
 
else
13647
 
 
13648
 
    lt_cv_dlopen="dyld"
13649
 
    lt_cv_dlopen_libs=
13650
 
    lt_cv_dlopen_self=yes
13651
 
 
13652
 
fi
13653
 
 
13654
 
   ;;
13655
 
 
13656
 
  *)
13657
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
13658
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13659
 
if test "${ac_cv_func_shl_load+set}" = set; then
13660
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13661
 
else
13662
 
  cat >conftest.$ac_ext <<_ACEOF
13663
 
/* confdefs.h.  */
13664
 
_ACEOF
13665
 
cat confdefs.h >>conftest.$ac_ext
13666
 
cat >>conftest.$ac_ext <<_ACEOF
13667
 
/* end confdefs.h.  */
13668
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13669
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13670
 
#define shl_load innocuous_shl_load
13671
 
 
13672
 
/* System header to define __stub macros and hopefully few prototypes,
13673
 
    which can conflict with char shl_load (); below.
13674
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13675
 
    <limits.h> exists even on freestanding compilers.  */
13676
 
 
13677
 
#ifdef __STDC__
13678
 
# include <limits.h>
13679
 
#else
13680
 
# include <assert.h>
13681
 
#endif
13682
 
 
13683
 
#undef shl_load
13684
 
 
13685
 
/* Override any gcc2 internal prototype to avoid an error.  */
13686
 
#ifdef __cplusplus
13687
 
extern "C"
13688
 
{
13689
 
#endif
13690
 
/* We use char because int might match the return type of a gcc2
13691
 
   builtin and then its argument prototype would still apply.  */
13692
 
char shl_load ();
13693
 
/* The GNU C library defines this for functions which it implements
13694
 
    to always fail with ENOSYS.  Some functions are actually named
13695
 
    something starting with __ and the normal name is an alias.  */
13696
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13697
 
choke me
13698
 
#else
13699
 
char (*f) () = shl_load;
13700
 
#endif
13701
 
#ifdef __cplusplus
13702
 
}
13703
 
#endif
13704
 
 
13705
 
int
13706
 
main ()
13707
 
{
13708
 
return f != shl_load;
13709
 
  ;
13710
 
  return 0;
13711
 
}
13712
 
_ACEOF
13713
 
rm -f conftest.$ac_objext conftest$ac_exeext
13714
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13715
 
  (eval $ac_link) 2>conftest.er1
13716
 
  ac_status=$?
13717
 
  grep -v '^ *+' conftest.er1 >conftest.err
13718
 
  rm -f conftest.er1
13719
 
  cat conftest.err >&5
13720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721
 
  (exit $ac_status); } &&
13722
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13723
 
                         || test ! -s conftest.err'
13724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725
 
  (eval $ac_try) 2>&5
13726
 
  ac_status=$?
13727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728
 
  (exit $ac_status); }; } &&
13729
 
         { ac_try='test -s conftest$ac_exeext'
13730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731
 
  (eval $ac_try) 2>&5
13732
 
  ac_status=$?
13733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
 
  (exit $ac_status); }; }; then
13735
 
  ac_cv_func_shl_load=yes
13736
 
else
13737
 
  echo "$as_me: failed program was:" >&5
13738
 
sed 's/^/| /' conftest.$ac_ext >&5
13739
 
 
13740
 
ac_cv_func_shl_load=no
13741
 
fi
13742
 
rm -f conftest.err conftest.$ac_objext \
13743
 
      conftest$ac_exeext conftest.$ac_ext
13744
 
fi
13745
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13746
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13747
 
if test $ac_cv_func_shl_load = yes; then
13748
 
  lt_cv_dlopen="shl_load"
13749
 
else
13750
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13751
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13752
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13753
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13754
 
else
13755
 
  ac_check_lib_save_LIBS=$LIBS
13756
 
LIBS="-ldld  $LIBS"
13757
 
cat >conftest.$ac_ext <<_ACEOF
13758
 
/* confdefs.h.  */
13759
 
_ACEOF
13760
 
cat confdefs.h >>conftest.$ac_ext
13761
 
cat >>conftest.$ac_ext <<_ACEOF
13762
 
/* end confdefs.h.  */
13763
 
 
13764
 
/* Override any gcc2 internal prototype to avoid an error.  */
13765
 
#ifdef __cplusplus
13766
 
extern "C"
13767
 
#endif
13768
 
/* We use char because int might match the return type of a gcc2
13769
 
   builtin and then its argument prototype would still apply.  */
13770
 
char shl_load ();
13771
 
int
13772
 
main ()
13773
 
{
13774
 
shl_load ();
13775
 
  ;
13776
 
  return 0;
13777
 
}
13778
 
_ACEOF
13779
 
rm -f conftest.$ac_objext conftest$ac_exeext
13780
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781
 
  (eval $ac_link) 2>conftest.er1
13782
 
  ac_status=$?
13783
 
  grep -v '^ *+' conftest.er1 >conftest.err
13784
 
  rm -f conftest.er1
13785
 
  cat conftest.err >&5
13786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787
 
  (exit $ac_status); } &&
13788
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13789
 
                         || test ! -s conftest.err'
13790
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791
 
  (eval $ac_try) 2>&5
13792
 
  ac_status=$?
13793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794
 
  (exit $ac_status); }; } &&
13795
 
         { ac_try='test -s conftest$ac_exeext'
13796
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797
 
  (eval $ac_try) 2>&5
13798
 
  ac_status=$?
13799
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800
 
  (exit $ac_status); }; }; then
13801
 
  ac_cv_lib_dld_shl_load=yes
13802
 
else
13803
 
  echo "$as_me: failed program was:" >&5
13804
 
sed 's/^/| /' conftest.$ac_ext >&5
13805
 
 
13806
 
ac_cv_lib_dld_shl_load=no
13807
 
fi
13808
 
rm -f conftest.err conftest.$ac_objext \
13809
 
      conftest$ac_exeext conftest.$ac_ext
13810
 
LIBS=$ac_check_lib_save_LIBS
13811
 
fi
13812
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13813
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13814
 
if test $ac_cv_lib_dld_shl_load = yes; then
13815
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13816
 
else
13817
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
13818
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13819
 
if test "${ac_cv_func_dlopen+set}" = set; then
13820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13821
 
else
13822
 
  cat >conftest.$ac_ext <<_ACEOF
13823
 
/* confdefs.h.  */
13824
 
_ACEOF
13825
 
cat confdefs.h >>conftest.$ac_ext
13826
 
cat >>conftest.$ac_ext <<_ACEOF
13827
 
/* end confdefs.h.  */
13828
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13829
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13830
 
#define dlopen innocuous_dlopen
13831
 
 
13832
 
/* System header to define __stub macros and hopefully few prototypes,
13833
 
    which can conflict with char dlopen (); below.
13834
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13835
 
    <limits.h> exists even on freestanding compilers.  */
13836
 
 
13837
 
#ifdef __STDC__
13838
 
# include <limits.h>
13839
 
#else
13840
 
# include <assert.h>
13841
 
#endif
13842
 
 
13843
 
#undef dlopen
13844
 
 
13845
 
/* Override any gcc2 internal prototype to avoid an error.  */
13846
 
#ifdef __cplusplus
13847
 
extern "C"
13848
 
{
13849
 
#endif
13850
 
/* We use char because int might match the return type of a gcc2
13851
 
   builtin and then its argument prototype would still apply.  */
13852
 
char dlopen ();
13853
 
/* The GNU C library defines this for functions which it implements
13854
 
    to always fail with ENOSYS.  Some functions are actually named
13855
 
    something starting with __ and the normal name is an alias.  */
13856
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13857
 
choke me
13858
 
#else
13859
 
char (*f) () = dlopen;
13860
 
#endif
13861
 
#ifdef __cplusplus
13862
 
}
13863
 
#endif
13864
 
 
13865
 
int
13866
 
main ()
13867
 
{
13868
 
return f != dlopen;
13869
 
  ;
13870
 
  return 0;
13871
 
}
13872
 
_ACEOF
13873
 
rm -f conftest.$ac_objext conftest$ac_exeext
13874
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875
 
  (eval $ac_link) 2>conftest.er1
13876
 
  ac_status=$?
13877
 
  grep -v '^ *+' conftest.er1 >conftest.err
13878
 
  rm -f conftest.er1
13879
 
  cat conftest.err >&5
13880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881
 
  (exit $ac_status); } &&
13882
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13883
 
                         || test ! -s conftest.err'
13884
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885
 
  (eval $ac_try) 2>&5
13886
 
  ac_status=$?
13887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888
 
  (exit $ac_status); }; } &&
13889
 
         { ac_try='test -s conftest$ac_exeext'
13890
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891
 
  (eval $ac_try) 2>&5
13892
 
  ac_status=$?
13893
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894
 
  (exit $ac_status); }; }; then
13895
 
  ac_cv_func_dlopen=yes
13896
 
else
13897
 
  echo "$as_me: failed program was:" >&5
13898
 
sed 's/^/| /' conftest.$ac_ext >&5
13899
 
 
13900
 
ac_cv_func_dlopen=no
13901
 
fi
13902
 
rm -f conftest.err conftest.$ac_objext \
13903
 
      conftest$ac_exeext conftest.$ac_ext
13904
 
fi
13905
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13906
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13907
 
if test $ac_cv_func_dlopen = yes; then
13908
 
  lt_cv_dlopen="dlopen"
13909
 
else
13910
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13911
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13912
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13914
 
else
13915
 
  ac_check_lib_save_LIBS=$LIBS
13916
 
LIBS="-ldl  $LIBS"
13917
 
cat >conftest.$ac_ext <<_ACEOF
13918
 
/* confdefs.h.  */
13919
 
_ACEOF
13920
 
cat confdefs.h >>conftest.$ac_ext
13921
 
cat >>conftest.$ac_ext <<_ACEOF
13922
 
/* end confdefs.h.  */
13923
 
 
13924
 
/* Override any gcc2 internal prototype to avoid an error.  */
13925
 
#ifdef __cplusplus
13926
 
extern "C"
13927
 
#endif
13928
 
/* We use char because int might match the return type of a gcc2
13929
 
   builtin and then its argument prototype would still apply.  */
13930
 
char dlopen ();
13931
 
int
13932
 
main ()
13933
 
{
13934
 
dlopen ();
13935
 
  ;
13936
 
  return 0;
13937
 
}
13938
 
_ACEOF
13939
 
rm -f conftest.$ac_objext conftest$ac_exeext
13940
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941
 
  (eval $ac_link) 2>conftest.er1
13942
 
  ac_status=$?
13943
 
  grep -v '^ *+' conftest.er1 >conftest.err
13944
 
  rm -f conftest.er1
13945
 
  cat conftest.err >&5
13946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947
 
  (exit $ac_status); } &&
13948
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13949
 
                         || test ! -s conftest.err'
13950
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951
 
  (eval $ac_try) 2>&5
13952
 
  ac_status=$?
13953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954
 
  (exit $ac_status); }; } &&
13955
 
         { ac_try='test -s conftest$ac_exeext'
13956
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957
 
  (eval $ac_try) 2>&5
13958
 
  ac_status=$?
13959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960
 
  (exit $ac_status); }; }; then
13961
 
  ac_cv_lib_dl_dlopen=yes
13962
 
else
13963
 
  echo "$as_me: failed program was:" >&5
13964
 
sed 's/^/| /' conftest.$ac_ext >&5
13965
 
 
13966
 
ac_cv_lib_dl_dlopen=no
13967
 
fi
13968
 
rm -f conftest.err conftest.$ac_objext \
13969
 
      conftest$ac_exeext conftest.$ac_ext
13970
 
LIBS=$ac_check_lib_save_LIBS
13971
 
fi
13972
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13973
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13974
 
if test $ac_cv_lib_dl_dlopen = yes; then
13975
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13976
 
else
13977
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13978
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13979
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13981
 
else
13982
 
  ac_check_lib_save_LIBS=$LIBS
13983
 
LIBS="-lsvld  $LIBS"
13984
 
cat >conftest.$ac_ext <<_ACEOF
13985
 
/* confdefs.h.  */
13986
 
_ACEOF
13987
 
cat confdefs.h >>conftest.$ac_ext
13988
 
cat >>conftest.$ac_ext <<_ACEOF
13989
 
/* end confdefs.h.  */
13990
 
 
13991
 
/* Override any gcc2 internal prototype to avoid an error.  */
13992
 
#ifdef __cplusplus
13993
 
extern "C"
13994
 
#endif
13995
 
/* We use char because int might match the return type of a gcc2
13996
 
   builtin and then its argument prototype would still apply.  */
13997
 
char dlopen ();
13998
 
int
13999
 
main ()
14000
 
{
14001
 
dlopen ();
14002
 
  ;
14003
 
  return 0;
14004
 
}
14005
 
_ACEOF
14006
 
rm -f conftest.$ac_objext conftest$ac_exeext
14007
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008
 
  (eval $ac_link) 2>conftest.er1
14009
 
  ac_status=$?
14010
 
  grep -v '^ *+' conftest.er1 >conftest.err
14011
 
  rm -f conftest.er1
14012
 
  cat conftest.err >&5
14013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014
 
  (exit $ac_status); } &&
14015
 
         { ac_try='test -z "$ac_cxx_werror_flag"
14016
 
                         || test ! -s conftest.err'
14017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018
 
  (eval $ac_try) 2>&5
14019
 
  ac_status=$?
14020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021
 
  (exit $ac_status); }; } &&
14022
 
         { ac_try='test -s conftest$ac_exeext'
14023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024
 
  (eval $ac_try) 2>&5
14025
 
  ac_status=$?
14026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027
 
  (exit $ac_status); }; }; then
14028
 
  ac_cv_lib_svld_dlopen=yes
14029
 
else
14030
 
  echo "$as_me: failed program was:" >&5
14031
 
sed 's/^/| /' conftest.$ac_ext >&5
14032
 
 
14033
 
ac_cv_lib_svld_dlopen=no
14034
 
fi
14035
 
rm -f conftest.err conftest.$ac_objext \
14036
 
      conftest$ac_exeext conftest.$ac_ext
14037
 
LIBS=$ac_check_lib_save_LIBS
14038
 
fi
14039
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14040
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14041
 
if test $ac_cv_lib_svld_dlopen = yes; then
14042
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14043
 
else
14044
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14045
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14046
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14048
 
else
14049
 
  ac_check_lib_save_LIBS=$LIBS
14050
 
LIBS="-ldld  $LIBS"
14051
 
cat >conftest.$ac_ext <<_ACEOF
14052
 
/* confdefs.h.  */
14053
 
_ACEOF
14054
 
cat confdefs.h >>conftest.$ac_ext
14055
 
cat >>conftest.$ac_ext <<_ACEOF
14056
 
/* end confdefs.h.  */
14057
 
 
14058
 
/* Override any gcc2 internal prototype to avoid an error.  */
14059
 
#ifdef __cplusplus
14060
 
extern "C"
14061
 
#endif
14062
 
/* We use char because int might match the return type of a gcc2
14063
 
   builtin and then its argument prototype would still apply.  */
14064
 
char dld_link ();
14065
 
int
14066
 
main ()
14067
 
{
14068
 
dld_link ();
14069
 
  ;
14070
 
  return 0;
14071
 
}
14072
 
_ACEOF
14073
 
rm -f conftest.$ac_objext conftest$ac_exeext
14074
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075
 
  (eval $ac_link) 2>conftest.er1
14076
 
  ac_status=$?
14077
 
  grep -v '^ *+' conftest.er1 >conftest.err
14078
 
  rm -f conftest.er1
14079
 
  cat conftest.err >&5
14080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081
 
  (exit $ac_status); } &&
14082
 
         { ac_try='test -z "$ac_cxx_werror_flag"
14083
 
                         || test ! -s conftest.err'
14084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085
 
  (eval $ac_try) 2>&5
14086
 
  ac_status=$?
14087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088
 
  (exit $ac_status); }; } &&
14089
 
         { ac_try='test -s conftest$ac_exeext'
14090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091
 
  (eval $ac_try) 2>&5
14092
 
  ac_status=$?
14093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094
 
  (exit $ac_status); }; }; then
14095
 
  ac_cv_lib_dld_dld_link=yes
14096
 
else
14097
 
  echo "$as_me: failed program was:" >&5
14098
 
sed 's/^/| /' conftest.$ac_ext >&5
14099
 
 
14100
 
ac_cv_lib_dld_dld_link=no
14101
 
fi
14102
 
rm -f conftest.err conftest.$ac_objext \
14103
 
      conftest$ac_exeext conftest.$ac_ext
14104
 
LIBS=$ac_check_lib_save_LIBS
14105
 
fi
14106
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14107
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14108
 
if test $ac_cv_lib_dld_dld_link = yes; then
14109
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14110
 
fi
14111
 
 
14112
 
 
14113
 
fi
14114
 
 
14115
 
 
14116
 
fi
14117
 
 
14118
 
 
14119
 
fi
14120
 
 
14121
 
 
14122
 
fi
14123
 
 
14124
 
 
14125
 
fi
14126
 
 
14127
 
    ;;
14128
 
  esac
14129
 
 
14130
 
  if test "x$lt_cv_dlopen" != xno; then
14131
 
    enable_dlopen=yes
14132
 
  else
14133
 
    enable_dlopen=no
14134
 
  fi
14135
 
 
14136
 
  case $lt_cv_dlopen in
14137
 
  dlopen)
14138
 
    save_CPPFLAGS="$CPPFLAGS"
14139
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14140
 
 
14141
 
    save_LDFLAGS="$LDFLAGS"
14142
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14143
 
 
14144
 
    save_LIBS="$LIBS"
14145
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
14146
 
 
14147
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14148
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14149
 
if test "${lt_cv_dlopen_self+set}" = set; then
14150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14151
 
else
14152
 
          if test "$cross_compiling" = yes; then :
14153
 
  lt_cv_dlopen_self=cross
14154
 
else
14155
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14156
 
  lt_status=$lt_dlunknown
14157
 
  cat > conftest.$ac_ext <<EOF
14158
 
#line 14158 "configure"
14159
 
#include "confdefs.h"
14160
 
 
14161
 
#if HAVE_DLFCN_H
14162
 
#include <dlfcn.h>
14163
 
#endif
14164
 
 
14165
 
#include <stdio.h>
14166
 
 
14167
 
#ifdef RTLD_GLOBAL
14168
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
14169
 
#else
14170
 
#  ifdef DL_GLOBAL
14171
 
#    define LT_DLGLOBAL         DL_GLOBAL
14172
 
#  else
14173
 
#    define LT_DLGLOBAL         0
14174
 
#  endif
14175
 
#endif
14176
 
 
14177
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14178
 
   find out it does not work in some platform. */
14179
 
#ifndef LT_DLLAZY_OR_NOW
14180
 
#  ifdef RTLD_LAZY
14181
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14182
 
#  else
14183
 
#    ifdef DL_LAZY
14184
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
14185
 
#    else
14186
 
#      ifdef RTLD_NOW
14187
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
14188
 
#      else
14189
 
#        ifdef DL_NOW
14190
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
14191
 
#        else
14192
 
#          define LT_DLLAZY_OR_NOW      0
14193
 
#        endif
14194
 
#      endif
14195
 
#    endif
14196
 
#  endif
14197
 
#endif
14198
 
 
14199
 
#ifdef __cplusplus
14200
 
extern "C" void exit (int);
14201
 
#endif
14202
 
 
14203
 
void fnord() { int i=42;}
14204
 
int main ()
14205
 
{
14206
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14207
 
  int status = $lt_dlunknown;
14208
 
 
14209
 
  if (self)
14210
 
    {
14211
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14212
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14213
 
      /* dlclose (self); */
14214
 
    }
14215
 
 
14216
 
    exit (status);
14217
 
}
14218
 
EOF
14219
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14220
 
  (eval $ac_link) 2>&5
14221
 
  ac_status=$?
14222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14224
 
    (./conftest; exit; ) >&5 2>/dev/null
14225
 
    lt_status=$?
14226
 
    case x$lt_status in
14227
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14228
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14229
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14230
 
    esac
14231
 
  else :
14232
 
    # compilation failed
14233
 
    lt_cv_dlopen_self=no
14234
 
  fi
14235
 
fi
14236
 
rm -fr conftest*
14237
 
 
14238
 
 
14239
 
fi
14240
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14241
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14242
 
 
14243
 
    if test "x$lt_cv_dlopen_self" = xyes; then
14244
 
      LDFLAGS="$LDFLAGS $link_static_flag"
14245
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14246
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14247
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
14248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14249
 
else
14250
 
          if test "$cross_compiling" = yes; then :
14251
 
  lt_cv_dlopen_self_static=cross
14252
 
else
14253
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14254
 
  lt_status=$lt_dlunknown
14255
 
  cat > conftest.$ac_ext <<EOF
14256
 
#line 14256 "configure"
14257
 
#include "confdefs.h"
14258
 
 
14259
 
#if HAVE_DLFCN_H
14260
 
#include <dlfcn.h>
14261
 
#endif
14262
 
 
14263
 
#include <stdio.h>
14264
 
 
14265
 
#ifdef RTLD_GLOBAL
14266
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
14267
 
#else
14268
 
#  ifdef DL_GLOBAL
14269
 
#    define LT_DLGLOBAL         DL_GLOBAL
14270
 
#  else
14271
 
#    define LT_DLGLOBAL         0
14272
 
#  endif
14273
 
#endif
14274
 
 
14275
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14276
 
   find out it does not work in some platform. */
14277
 
#ifndef LT_DLLAZY_OR_NOW
14278
 
#  ifdef RTLD_LAZY
14279
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14280
 
#  else
14281
 
#    ifdef DL_LAZY
14282
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
14283
 
#    else
14284
 
#      ifdef RTLD_NOW
14285
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
14286
 
#      else
14287
 
#        ifdef DL_NOW
14288
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
14289
 
#        else
14290
 
#          define LT_DLLAZY_OR_NOW      0
14291
 
#        endif
14292
 
#      endif
14293
 
#    endif
14294
 
#  endif
14295
 
#endif
14296
 
 
14297
 
#ifdef __cplusplus
14298
 
extern "C" void exit (int);
14299
 
#endif
14300
 
 
14301
 
void fnord() { int i=42;}
14302
 
int main ()
14303
 
{
14304
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14305
 
  int status = $lt_dlunknown;
14306
 
 
14307
 
  if (self)
14308
 
    {
14309
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14310
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14311
 
      /* dlclose (self); */
14312
 
    }
14313
 
 
14314
 
    exit (status);
14315
 
}
14316
 
EOF
14317
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318
 
  (eval $ac_link) 2>&5
14319
 
  ac_status=$?
14320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14322
 
    (./conftest; exit; ) >&5 2>/dev/null
14323
 
    lt_status=$?
14324
 
    case x$lt_status in
14325
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14326
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14327
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14328
 
    esac
14329
 
  else :
14330
 
    # compilation failed
14331
 
    lt_cv_dlopen_self_static=no
14332
 
  fi
14333
 
fi
14334
 
rm -fr conftest*
14335
 
 
14336
 
 
14337
 
fi
14338
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14339
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14340
 
    fi
14341
 
 
14342
 
    CPPFLAGS="$save_CPPFLAGS"
14343
 
    LDFLAGS="$save_LDFLAGS"
14344
 
    LIBS="$save_LIBS"
14345
 
    ;;
14346
 
  esac
14347
 
 
14348
 
  case $lt_cv_dlopen_self in
14349
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14350
 
  *) enable_dlopen_self=unknown ;;
14351
 
  esac
14352
 
 
14353
 
  case $lt_cv_dlopen_self_static in
14354
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14355
 
  *) enable_dlopen_self_static=unknown ;;
14356
 
  esac
14357
 
fi
14358
 
 
14359
13832
 
14360
13833
# The else clause should only fire when bootstrapping the
14361
13834
# libtool distribution, otherwise you forgot to ship ltmain.sh
14370
13843
  # Now quote all the things that may contain metacharacters while being
14371
13844
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14372
13845
  # variables and quote the copies for generation of the libtool script.
14373
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13846
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14374
13847
    SED SHELL STRIP \
14375
13848
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14376
13849
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14488
13961
# A C compiler.
14489
13962
LTCC=$lt_LTCC
14490
13963
 
 
13964
# LTCC compiler flags.
 
13965
LTCFLAGS=$lt_LTCFLAGS
 
13966
 
14491
13967
# A language-specific compiler.
14492
13968
CC=$lt_compiler_CXX
14493
13969
 
14830
14306
# If no C compiler was specified, use CC.
14831
14307
LTCC=${LTCC-"$CC"}
14832
14308
 
 
14309
# If no C compiler flags were specified, use CFLAGS.
 
14310
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14311
 
14833
14312
# Allow CC to be a program name with arguments.
14834
14313
compiler=$CC
14835
14314
 
14837
14316
# save warnings/boilerplate of simple test code
14838
14317
ac_outfile=conftest.$ac_objext
14839
14318
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14840
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
14319
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14841
14320
_lt_compiler_boilerplate=`cat conftest.err`
14842
14321
$rm conftest*
14843
14322
 
14844
14323
ac_outfile=conftest.$ac_objext
14845
14324
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14846
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
14325
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14847
14326
_lt_linker_boilerplate=`cat conftest.err`
14848
14327
$rm conftest*
14849
14328
 
14899
14378
echo "$as_me:$LINENO: result: $enable_static" >&5
14900
14379
echo "${ECHO_T}$enable_static" >&6
14901
14380
 
14902
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14903
 
 
14904
14381
GCC_F77="$G77"
14905
14382
LD_F77="$LD"
14906
14383
 
14947
14424
      lt_prog_compiler_pic_F77='-fno-common'
14948
14425
      ;;
14949
14426
 
 
14427
    interix3*)
 
14428
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14429
      # Instead, we relocate shared libraries at runtime.
 
14430
      ;;
 
14431
 
14950
14432
    msdosdjgpp*)
14951
14433
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14952
14434
      # on systems that don't support them.
15061
14543
      lt_prog_compiler_static_F77='-non_shared'
15062
14544
      ;;
15063
14545
 
15064
 
    sco3.2v5*)
15065
 
      lt_prog_compiler_pic_F77='-Kpic'
15066
 
      lt_prog_compiler_static_F77='-dn'
15067
 
      ;;
15068
 
 
15069
14546
    solaris*)
15070
14547
      lt_prog_compiler_pic_F77='-KPIC'
15071
14548
      lt_prog_compiler_static_F77='-Bstatic'
15083
14560
      lt_prog_compiler_static_F77='-Bstatic'
15084
14561
      ;;
15085
14562
 
15086
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14563
    sysv4 | sysv4.2uw2* | sysv4.3*)
15087
14564
      lt_prog_compiler_wl_F77='-Wl,'
15088
14565
      lt_prog_compiler_pic_F77='-KPIC'
15089
14566
      lt_prog_compiler_static_F77='-Bstatic'
15096
14573
      fi
15097
14574
      ;;
15098
14575
 
 
14576
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14577
      lt_prog_compiler_wl_F77='-Wl,'
 
14578
      lt_prog_compiler_pic_F77='-KPIC'
 
14579
      lt_prog_compiler_static_F77='-Bstatic'
 
14580
      ;;
 
14581
 
15099
14582
    unicos*)
15100
14583
      lt_prog_compiler_wl_F77='-Wl,'
15101
14584
      lt_prog_compiler_can_build_shared_F77=no
15138
14621
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15139
14622
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140
14623
   -e 's:$: $lt_compiler_flag:'`
15141
 
   (eval echo "\"\$as_me:15141: $lt_compile\"" >&5)
 
14624
   (eval echo "\"\$as_me:14624: $lt_compile\"" >&5)
15142
14625
   (eval "$lt_compile" 2>conftest.err)
15143
14626
   ac_status=$?
15144
14627
   cat conftest.err >&5
15145
 
   echo "$as_me:15145: \$? = $ac_status" >&5
 
14628
   echo "$as_me:14628: \$? = $ac_status" >&5
15146
14629
   if (exit $ac_status) && test -s "$ac_outfile"; then
15147
14630
     # The compiler can only warn and ignore the option if not recognized
15148
14631
     # So say no if there are warnings other than the usual output.
15149
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15150
 
     $SED '/^$/d' conftest.err >conftest.er2
15151
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
14632
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14633
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14634
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15152
14635
       lt_prog_compiler_pic_works_F77=yes
15153
14636
     fi
15154
14637
   fi
15179
14662
    ;;
15180
14663
esac
15181
14664
 
 
14665
#
 
14666
# Check to make sure the static flag actually works.
 
14667
#
 
14668
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14669
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14670
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
14671
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14673
else
 
14674
  lt_prog_compiler_static_works_F77=no
 
14675
   save_LDFLAGS="$LDFLAGS"
 
14676
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14677
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14678
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14679
     # The linker can only warn and ignore the option if not recognized
 
14680
     # So say no if there are warnings
 
14681
     if test -s conftest.err; then
 
14682
       # Append any errors to the config.log.
 
14683
       cat conftest.err 1>&5
 
14684
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14685
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14686
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14687
         lt_prog_compiler_static_works_F77=yes
 
14688
       fi
 
14689
     else
 
14690
       lt_prog_compiler_static_works_F77=yes
 
14691
     fi
 
14692
   fi
 
14693
   $rm conftest*
 
14694
   LDFLAGS="$save_LDFLAGS"
 
14695
 
 
14696
fi
 
14697
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14698
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
14699
 
 
14700
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14701
    :
 
14702
else
 
14703
    lt_prog_compiler_static_F77=
 
14704
fi
 
14705
 
 
14706
 
15182
14707
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15183
14708
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15184
14709
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15200
14725
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15201
14726
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15202
14727
   -e 's:$: $lt_compiler_flag:'`
15203
 
   (eval echo "\"\$as_me:15203: $lt_compile\"" >&5)
 
14728
   (eval echo "\"\$as_me:14728: $lt_compile\"" >&5)
15204
14729
   (eval "$lt_compile" 2>out/conftest.err)
15205
14730
   ac_status=$?
15206
14731
   cat out/conftest.err >&5
15207
 
   echo "$as_me:15207: \$? = $ac_status" >&5
 
14732
   echo "$as_me:14732: \$? = $ac_status" >&5
15208
14733
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15209
14734
   then
15210
14735
     # The compiler can only warn and ignore the option if not recognized
15211
14736
     # So say no if there are warnings
15212
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15213
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
15214
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14737
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14738
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14739
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15215
14740
       lt_cv_prog_compiler_c_o_F77=yes
15216
14741
     fi
15217
14742
   fi
15311
14836
      with_gnu_ld=no
15312
14837
    fi
15313
14838
    ;;
 
14839
  interix*)
 
14840
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14841
    with_gnu_ld=yes
 
14842
    ;;
15314
14843
  openbsd*)
15315
14844
    with_gnu_ld=no
15316
14845
    ;;
15395
14924
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15396
14925
 
15397
14926
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15398
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14927
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15399
14928
        # If the export-symbols file already is a .def file (1st line
15400
14929
        # is EXPORTS), use it as is; otherwise, prepend...
15401
14930
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15404
14933
          echo EXPORTS > $output_objdir/$soname.def;
15405
14934
          cat $export_symbols >> $output_objdir/$soname.def;
15406
14935
        fi~
15407
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14936
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15408
14937
      else
15409
14938
        ld_shlibs_F77=no
15410
14939
      fi
15411
14940
      ;;
15412
14941
 
 
14942
    interix3*)
 
14943
      hardcode_direct_F77=no
 
14944
      hardcode_shlibpath_var_F77=no
 
14945
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14946
      export_dynamic_flag_spec_F77='${wl}-E'
 
14947
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14948
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14949
      # default) and relocated if they conflict, which is a slow very memory
 
14950
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14951
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14952
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14953
      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'
 
14954
      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'
 
14955
      ;;
 
14956
 
15413
14957
    linux*)
15414
14958
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15415
14959
        tmp_addflag=
15451
14995
      fi
15452
14996
      ;;
15453
14997
 
15454
 
    solaris* | sysv5*)
 
14998
    solaris*)
15455
14999
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15456
15000
        ld_shlibs_F77=no
15457
15001
        cat <<EOF 1>&2
15472
15016
      fi
15473
15017
      ;;
15474
15018
 
 
15019
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15020
      case `$LD -v 2>&1` in
 
15021
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15022
        ld_shlibs_F77=no
 
15023
        cat <<_LT_EOF 1>&2
 
15024
 
 
15025
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15026
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15027
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15028
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15029
*** your PATH or compiler configuration so that the native linker is
 
15030
*** used, and then restart.
 
15031
 
 
15032
_LT_EOF
 
15033
        ;;
 
15034
        *)
 
15035
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15036
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15037
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15038
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15039
          else
 
15040
            ld_shlibs_F77=no
 
15041
          fi
 
15042
        ;;
 
15043
      esac
 
15044
      ;;
 
15045
 
15475
15046
    sunos4*)
15476
15047
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15477
15048
      wlarc=
15505
15076
      # Note: this linker hardcodes the directories in LIBPATH if there
15506
15077
      # are no directories specified by -L.
15507
15078
      hardcode_minus_L_F77=yes
15508
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15079
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15509
15080
        # Neither direct hardcoding nor static linking is supported with a
15510
15081
        # broken collect2.
15511
15082
        hardcode_direct_F77=unsupported
15539
15110
            break
15540
15111
          fi
15541
15112
          done
 
15113
          ;;
15542
15114
        esac
15543
15115
 
15544
15116
        exp_sym_flag='-bexport'
15576
15148
          hardcode_libdir_flag_spec_F77='-L$libdir'
15577
15149
          hardcode_libdir_separator_F77=
15578
15150
          fi
 
15151
          ;;
15579
15152
        esac
15580
15153
        shared_flag='-shared'
15581
15154
        if test "$aix_use_runtimelinking" = yes; then
15588
15161
        # chokes on -Wl,-G. The following line is correct:
15589
15162
          shared_flag='-G'
15590
15163
        else
15591
 
        if test "$aix_use_runtimelinking" = yes; then
 
15164
          if test "$aix_use_runtimelinking" = yes; then
15592
15165
            shared_flag='${wl}-G'
15593
15166
          else
15594
15167
            shared_flag='${wl}-bM:SRE'
15595
 
        fi
 
15168
          fi
15596
15169
        fi
15597
15170
      fi
15598
15171
 
15647
15220
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15648
15221
 
15649
15222
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15650
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15223
        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"
15651
15224
       else
15652
15225
        if test "$host_cpu" = ia64; then
15653
15226
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15654
15227
          allow_undefined_flag_F77="-z nodefs"
15655
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
15228
          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"
15656
15229
        else
15657
15230
         # Determine the default libpath from the value encoded in an empty executable.
15658
15231
         cat >conftest.$ac_ext <<_ACEOF
15702
15275
          # -berok will link without error, but may produce a broken library.
15703
15276
          no_undefined_flag_F77=' ${wl}-bernotok'
15704
15277
          allow_undefined_flag_F77=' ${wl}-berok'
15705
 
          # -bexpall does not export symbols beginning with underscore (_)
15706
 
          always_export_symbols_F77=yes
15707
15278
          # Exported symbols can be pulled into shared objects from archives
15708
 
          whole_archive_flag_spec_F77=' '
 
15279
          whole_archive_flag_spec_F77='$convenience'
15709
15280
          archive_cmds_need_lc_F77=yes
15710
15281
          # This is similar to how AIX traditionally builds its shared libraries.
15711
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15282
          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'
15712
15283
        fi
15713
15284
      fi
15714
15285
      ;;
15849
15420
      export_dynamic_flag_spec_F77='${wl}-E'
15850
15421
      ;;
15851
15422
 
15852
 
    hpux10* | hpux11*)
 
15423
    hpux10*)
 
15424
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15425
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15426
      else
 
15427
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15428
      fi
 
15429
      if test "$with_gnu_ld" = no; then
 
15430
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15431
        hardcode_libdir_separator_F77=:
 
15432
 
 
15433
        hardcode_direct_F77=yes
 
15434
        export_dynamic_flag_spec_F77='${wl}-E'
 
15435
 
 
15436
        # hardcode_minus_L: Not really in the search PATH,
 
15437
        # but as the default location of the library.
 
15438
        hardcode_minus_L_F77=yes
 
15439
      fi
 
15440
      ;;
 
15441
 
 
15442
    hpux11*)
15853
15443
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15854
15444
        case $host_cpu in
15855
 
        hppa*64*|ia64*)
 
15445
        hppa*64*)
15856
15446
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857
15447
          ;;
 
15448
        ia64*)
 
15449
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15450
          ;;
15858
15451
        *)
15859
15452
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15860
15453
          ;;
15861
15454
        esac
15862
15455
      else
15863
15456
        case $host_cpu in
15864
 
        hppa*64*|ia64*)
15865
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15457
        hppa*64*)
 
15458
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15459
          ;;
 
15460
        ia64*)
 
15461
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15866
15462
          ;;
15867
15463
        *)
15868
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15464
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15869
15465
          ;;
15870
15466
        esac
15871
15467
      fi
15872
15468
      if test "$with_gnu_ld" = no; then
 
15469
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15470
        hardcode_libdir_separator_F77=:
 
15471
 
15873
15472
        case $host_cpu in
15874
 
        hppa*64*)
15875
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15473
        hppa*64*|ia64*)
15876
15474
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15877
 
          hardcode_libdir_separator_F77=:
15878
 
          hardcode_direct_F77=no
15879
 
          hardcode_shlibpath_var_F77=no
15880
 
          ;;
15881
 
        ia64*)
15882
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15883
 
          hardcode_direct_F77=no
15884
 
          hardcode_shlibpath_var_F77=no
15885
 
 
15886
 
          # hardcode_minus_L: Not really in the search PATH,
15887
 
          # but as the default location of the library.
15888
 
          hardcode_minus_L_F77=yes
 
15475
          hardcode_direct_F77=no
 
15476
          hardcode_shlibpath_var_F77=no
15889
15477
          ;;
15890
15478
        *)
15891
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15892
 
          hardcode_libdir_separator_F77=:
15893
15479
          hardcode_direct_F77=yes
15894
15480
          export_dynamic_flag_spec_F77='${wl}-E'
15895
15481
 
15991
15577
      hardcode_libdir_separator_F77=:
15992
15578
      ;;
15993
15579
 
15994
 
    sco3.2v5*)
15995
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996
 
      hardcode_shlibpath_var_F77=no
15997
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15998
 
      runpath_var=LD_RUN_PATH
15999
 
      hardcode_runpath_var=yes
16000
 
      ;;
16001
 
 
16002
15580
    solaris*)
16003
15581
      no_undefined_flag_F77=' -z text'
16004
15582
      if test "$GCC" = yes; then
16084
15662
      fi
16085
15663
      ;;
16086
15664
 
16087
 
    sysv4.2uw2*)
16088
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16089
 
      hardcode_direct_F77=yes
16090
 
      hardcode_minus_L_F77=no
16091
 
      hardcode_shlibpath_var_F77=no
16092
 
      hardcode_runpath_var=yes
16093
 
      runpath_var=LD_RUN_PATH
16094
 
      ;;
16095
 
 
16096
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16097
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
16098
 
      if test "$GCC" = yes; then
16099
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16100
 
      else
16101
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16102
 
      fi
16103
 
      runpath_var='LD_RUN_PATH'
16104
 
      hardcode_shlibpath_var_F77=no
16105
 
      ;;
16106
 
 
16107
 
    sysv5*)
16108
 
      no_undefined_flag_F77=' -z text'
16109
 
      # $CC -shared without GNU ld will not create a library from C++
16110
 
      # object files and a static libstdc++, better avoid it by now
16111
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16113
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16114
 
      hardcode_libdir_flag_spec_F77=
16115
 
      hardcode_shlibpath_var_F77=no
16116
 
      runpath_var='LD_RUN_PATH'
 
15665
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15666
      no_undefined_flag_F77='${wl}-z,text'
 
15667
      archive_cmds_need_lc_F77=no
 
15668
      hardcode_shlibpath_var_F77=no
 
15669
      runpath_var='LD_RUN_PATH'
 
15670
 
 
15671
      if test "$GCC" = yes; then
 
15672
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15673
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15674
      else
 
15675
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15676
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15677
      fi
 
15678
      ;;
 
15679
 
 
15680
    sysv5* | sco3.2v5* | sco5v6*)
 
15681
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15682
      # link with -lc, and that would cause any symbols used from libc to
 
15683
      # always be unresolved, which means just about no library would
 
15684
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15685
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15686
      # as -z defs.
 
15687
      no_undefined_flag_F77='${wl}-z,text'
 
15688
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15689
      archive_cmds_need_lc_F77=no
 
15690
      hardcode_shlibpath_var_F77=no
 
15691
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15692
      hardcode_libdir_separator_F77=':'
 
15693
      link_all_deplibs_F77=yes
 
15694
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15695
      runpath_var='LD_RUN_PATH'
 
15696
 
 
15697
      if test "$GCC" = yes; then
 
15698
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15699
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15700
      else
 
15701
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15702
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15703
      fi
16117
15704
      ;;
16118
15705
 
16119
15706
    uts4*)
16132
15719
echo "${ECHO_T}$ld_shlibs_F77" >&6
16133
15720
test "$ld_shlibs_F77" = no && can_build_shared=no
16134
15721
 
16135
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16136
 
if test "$GCC" = yes; then
16137
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16138
 
fi
16139
 
 
16140
15722
#
16141
15723
# Do we need to explicitly link libc?
16142
15724
#
16169
15751
        libobjs=conftest.$ac_objext
16170
15752
        deplibs=
16171
15753
        wl=$lt_prog_compiler_wl_F77
 
15754
        pic_flag=$lt_prog_compiler_pic_F77
16172
15755
        compiler_flags=-v
16173
15756
        linker_flags=-v
16174
15757
        verstring=
16450
16033
    shlibpath_overrides_runpath=yes
16451
16034
    hardcode_into_libs=yes
16452
16035
    ;;
16453
 
  *) # from 3.2 on
 
16036
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16037
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16454
16038
    shlibpath_overrides_runpath=no
16455
16039
    hardcode_into_libs=yes
16456
16040
    ;;
 
16041
  freebsd*) # from 4.6 on
 
16042
    shlibpath_overrides_runpath=yes
 
16043
    hardcode_into_libs=yes
 
16044
    ;;
16457
16045
  esac
16458
16046
  ;;
16459
16047
 
16513
16101
  postinstall_cmds='chmod 555 $lib'
16514
16102
  ;;
16515
16103
 
 
16104
interix3*)
 
16105
  version_type=linux
 
16106
  need_lib_prefix=no
 
16107
  need_version=no
 
16108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16109
  soname_spec='${libname}${release}${shared_ext}$major'
 
16110
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16111
  shlibpath_var=LD_LIBRARY_PATH
 
16112
  shlibpath_overrides_runpath=no
 
16113
  hardcode_into_libs=yes
 
16114
  ;;
 
16115
 
16516
16116
irix5* | irix6* | nonstopux*)
16517
16117
  case $host_os in
16518
16118
    nonstopux*) version_type=nonstopux ;;
16634
16234
 
16635
16235
openbsd*)
16636
16236
  version_type=sunos
 
16237
  sys_lib_dlsearch_path_spec="/usr/lib"
16637
16238
  need_lib_prefix=no
16638
16239
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16639
16240
  case $host_os in
16677
16278
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16678
16279
  ;;
16679
16280
 
16680
 
sco3.2v5*)
16681
 
  version_type=osf
16682
 
  soname_spec='${libname}${release}${shared_ext}$major'
16683
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684
 
  shlibpath_var=LD_LIBRARY_PATH
16685
 
  ;;
16686
 
 
16687
16281
solaris*)
16688
16282
  version_type=linux
16689
16283
  need_lib_prefix=no
16709
16303
  need_version=yes
16710
16304
  ;;
16711
16305
 
16712
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16306
sysv4 | sysv4.3*)
16713
16307
  version_type=linux
16714
16308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715
16309
  soname_spec='${libname}${release}${shared_ext}$major'
16742
16336
  fi
16743
16337
  ;;
16744
16338
 
 
16339
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16340
  version_type=freebsd-elf
 
16341
  need_lib_prefix=no
 
16342
  need_version=no
 
16343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16344
  soname_spec='${libname}${release}${shared_ext}$major'
 
16345
  shlibpath_var=LD_LIBRARY_PATH
 
16346
  hardcode_into_libs=yes
 
16347
  if test "$with_gnu_ld" = yes; then
 
16348
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16349
    shlibpath_overrides_runpath=no
 
16350
  else
 
16351
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16352
    shlibpath_overrides_runpath=yes
 
16353
    case $host_os in
 
16354
      sco3.2v5*)
 
16355
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16356
        ;;
 
16357
    esac
 
16358
  fi
 
16359
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16360
  ;;
 
16361
 
16745
16362
uts4*)
16746
16363
  version_type=linux
16747
16364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757
16374
echo "${ECHO_T}$dynamic_linker" >&6
16758
16375
test "$dynamic_linker" = no && can_build_shared=no
16759
16376
 
 
16377
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16378
if test "$GCC" = yes; then
 
16379
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16380
fi
 
16381
 
16760
16382
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16761
16383
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16762
16384
hardcode_action_F77=
16794
16416
  enable_fast_install=needless
16795
16417
fi
16796
16418
 
16797
 
striplib=
16798
 
old_striplib=
16799
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16800
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16801
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16802
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16803
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16804
 
  echo "$as_me:$LINENO: result: yes" >&5
16805
 
echo "${ECHO_T}yes" >&6
16806
 
else
16807
 
# FIXME - insert some real tests, host_os isn't really good enough
16808
 
  case $host_os in
16809
 
   darwin*)
16810
 
       if test -n "$STRIP" ; then
16811
 
         striplib="$STRIP -x"
16812
 
         echo "$as_me:$LINENO: result: yes" >&5
16813
 
echo "${ECHO_T}yes" >&6
16814
 
       else
16815
 
  echo "$as_me:$LINENO: result: no" >&5
16816
 
echo "${ECHO_T}no" >&6
16817
 
fi
16818
 
       ;;
16819
 
   *)
16820
 
  echo "$as_me:$LINENO: result: no" >&5
16821
 
echo "${ECHO_T}no" >&6
16822
 
    ;;
16823
 
  esac
16824
 
fi
16825
 
 
16826
 
 
16827
16419
 
16828
16420
# The else clause should only fire when bootstrapping the
16829
16421
# libtool distribution, otherwise you forgot to ship ltmain.sh
16838
16430
  # Now quote all the things that may contain metacharacters while being
16839
16431
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16840
16432
  # variables and quote the copies for generation of the libtool script.
16841
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16433
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16842
16434
    SED SHELL STRIP \
16843
16435
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16844
16436
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16956
16548
# A C compiler.
16957
16549
LTCC=$lt_LTCC
16958
16550
 
 
16551
# LTCC compiler flags.
 
16552
LTCFLAGS=$lt_LTCFLAGS
 
16553
 
16959
16554
# A language-specific compiler.
16960
16555
CC=$lt_compiler_F77
16961
16556
 
17266
16861
# If no C compiler was specified, use CC.
17267
16862
LTCC=${LTCC-"$CC"}
17268
16863
 
 
16864
# If no C compiler flags were specified, use CFLAGS.
 
16865
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16866
 
17269
16867
# Allow CC to be a program name with arguments.
17270
16868
compiler=$CC
17271
16869
 
17273
16871
# save warnings/boilerplate of simple test code
17274
16872
ac_outfile=conftest.$ac_objext
17275
16873
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17276
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
16874
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17277
16875
_lt_compiler_boilerplate=`cat conftest.err`
17278
16876
$rm conftest*
17279
16877
 
17280
16878
ac_outfile=conftest.$ac_objext
17281
16879
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17282
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
16880
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17283
16881
_lt_linker_boilerplate=`cat conftest.err`
17284
16882
$rm conftest*
17285
16883
 
17330
16928
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17331
16929
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17332
16930
   -e 's:$: $lt_compiler_flag:'`
17333
 
   (eval echo "\"\$as_me:17333: $lt_compile\"" >&5)
 
16931
   (eval echo "\"\$as_me:16931: $lt_compile\"" >&5)
17334
16932
   (eval "$lt_compile" 2>conftest.err)
17335
16933
   ac_status=$?
17336
16934
   cat conftest.err >&5
17337
 
   echo "$as_me:17337: \$? = $ac_status" >&5
 
16935
   echo "$as_me:16935: \$? = $ac_status" >&5
17338
16936
   if (exit $ac_status) && test -s "$ac_outfile"; then
17339
16937
     # The compiler can only warn and ignore the option if not recognized
17340
16938
     # So say no if there are warnings other than the usual output.
17341
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17342
 
     $SED '/^$/d' conftest.err >conftest.er2
17343
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16939
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16940
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16941
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17344
16942
       lt_cv_prog_compiler_rtti_exceptions=yes
17345
16943
     fi
17346
16944
   fi
17401
16999
      lt_prog_compiler_pic_GCJ='-fno-common'
17402
17000
      ;;
17403
17001
 
 
17002
    interix3*)
 
17003
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17004
      # Instead, we relocate shared libraries at runtime.
 
17005
      ;;
 
17006
 
17404
17007
    msdosdjgpp*)
17405
17008
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17406
17009
      # on systems that don't support them.
17515
17118
      lt_prog_compiler_static_GCJ='-non_shared'
17516
17119
      ;;
17517
17120
 
17518
 
    sco3.2v5*)
17519
 
      lt_prog_compiler_pic_GCJ='-Kpic'
17520
 
      lt_prog_compiler_static_GCJ='-dn'
17521
 
      ;;
17522
 
 
17523
17121
    solaris*)
17524
17122
      lt_prog_compiler_pic_GCJ='-KPIC'
17525
17123
      lt_prog_compiler_static_GCJ='-Bstatic'
17537
17135
      lt_prog_compiler_static_GCJ='-Bstatic'
17538
17136
      ;;
17539
17137
 
17540
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17138
    sysv4 | sysv4.2uw2* | sysv4.3*)
17541
17139
      lt_prog_compiler_wl_GCJ='-Wl,'
17542
17140
      lt_prog_compiler_pic_GCJ='-KPIC'
17543
17141
      lt_prog_compiler_static_GCJ='-Bstatic'
17550
17148
      fi
17551
17149
      ;;
17552
17150
 
 
17151
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17152
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17153
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17154
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17155
      ;;
 
17156
 
17553
17157
    unicos*)
17554
17158
      lt_prog_compiler_wl_GCJ='-Wl,'
17555
17159
      lt_prog_compiler_can_build_shared_GCJ=no
17592
17196
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17593
17197
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17594
17198
   -e 's:$: $lt_compiler_flag:'`
17595
 
   (eval echo "\"\$as_me:17595: $lt_compile\"" >&5)
 
17199
   (eval echo "\"\$as_me:17199: $lt_compile\"" >&5)
17596
17200
   (eval "$lt_compile" 2>conftest.err)
17597
17201
   ac_status=$?
17598
17202
   cat conftest.err >&5
17599
 
   echo "$as_me:17599: \$? = $ac_status" >&5
 
17203
   echo "$as_me:17203: \$? = $ac_status" >&5
17600
17204
   if (exit $ac_status) && test -s "$ac_outfile"; then
17601
17205
     # The compiler can only warn and ignore the option if not recognized
17602
17206
     # So say no if there are warnings other than the usual output.
17603
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17604
 
     $SED '/^$/d' conftest.err >conftest.er2
17605
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
17207
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17208
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17209
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17606
17210
       lt_prog_compiler_pic_works_GCJ=yes
17607
17211
     fi
17608
17212
   fi
17633
17237
    ;;
17634
17238
esac
17635
17239
 
 
17240
#
 
17241
# Check to make sure the static flag actually works.
 
17242
#
 
17243
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17244
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17245
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
17246
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17248
else
 
17249
  lt_prog_compiler_static_works_GCJ=no
 
17250
   save_LDFLAGS="$LDFLAGS"
 
17251
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17252
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17253
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17254
     # The linker can only warn and ignore the option if not recognized
 
17255
     # So say no if there are warnings
 
17256
     if test -s conftest.err; then
 
17257
       # Append any errors to the config.log.
 
17258
       cat conftest.err 1>&5
 
17259
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17260
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17261
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17262
         lt_prog_compiler_static_works_GCJ=yes
 
17263
       fi
 
17264
     else
 
17265
       lt_prog_compiler_static_works_GCJ=yes
 
17266
     fi
 
17267
   fi
 
17268
   $rm conftest*
 
17269
   LDFLAGS="$save_LDFLAGS"
 
17270
 
 
17271
fi
 
17272
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17273
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
17274
 
 
17275
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17276
    :
 
17277
else
 
17278
    lt_prog_compiler_static_GCJ=
 
17279
fi
 
17280
 
 
17281
 
17636
17282
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17637
17283
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17638
17284
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17654
17300
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17655
17301
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17656
17302
   -e 's:$: $lt_compiler_flag:'`
17657
 
   (eval echo "\"\$as_me:17657: $lt_compile\"" >&5)
 
17303
   (eval echo "\"\$as_me:17303: $lt_compile\"" >&5)
17658
17304
   (eval "$lt_compile" 2>out/conftest.err)
17659
17305
   ac_status=$?
17660
17306
   cat out/conftest.err >&5
17661
 
   echo "$as_me:17661: \$? = $ac_status" >&5
 
17307
   echo "$as_me:17307: \$? = $ac_status" >&5
17662
17308
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17663
17309
   then
17664
17310
     # The compiler can only warn and ignore the option if not recognized
17665
17311
     # So say no if there are warnings
17666
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17667
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
17668
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17312
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17313
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17314
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17669
17315
       lt_cv_prog_compiler_c_o_GCJ=yes
17670
17316
     fi
17671
17317
   fi
17765
17411
      with_gnu_ld=no
17766
17412
    fi
17767
17413
    ;;
 
17414
  interix*)
 
17415
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17416
    with_gnu_ld=yes
 
17417
    ;;
17768
17418
  openbsd*)
17769
17419
    with_gnu_ld=no
17770
17420
    ;;
17849
17499
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17850
17500
 
17851
17501
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17852
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17502
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17853
17503
        # If the export-symbols file already is a .def file (1st line
17854
17504
        # is EXPORTS), use it as is; otherwise, prepend...
17855
17505
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17858
17508
          echo EXPORTS > $output_objdir/$soname.def;
17859
17509
          cat $export_symbols >> $output_objdir/$soname.def;
17860
17510
        fi~
17861
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17511
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17862
17512
      else
17863
17513
        ld_shlibs_GCJ=no
17864
17514
      fi
17865
17515
      ;;
17866
17516
 
 
17517
    interix3*)
 
17518
      hardcode_direct_GCJ=no
 
17519
      hardcode_shlibpath_var_GCJ=no
 
17520
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17521
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17522
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17523
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17524
      # default) and relocated if they conflict, which is a slow very memory
 
17525
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17526
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17527
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17528
      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'
 
17529
      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'
 
17530
      ;;
 
17531
 
17867
17532
    linux*)
17868
17533
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17869
17534
        tmp_addflag=
17905
17570
      fi
17906
17571
      ;;
17907
17572
 
17908
 
    solaris* | sysv5*)
 
17573
    solaris*)
17909
17574
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17910
17575
        ld_shlibs_GCJ=no
17911
17576
        cat <<EOF 1>&2
17926
17591
      fi
17927
17592
      ;;
17928
17593
 
 
17594
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17595
      case `$LD -v 2>&1` in
 
17596
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17597
        ld_shlibs_GCJ=no
 
17598
        cat <<_LT_EOF 1>&2
 
17599
 
 
17600
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17601
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17602
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17603
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17604
*** your PATH or compiler configuration so that the native linker is
 
17605
*** used, and then restart.
 
17606
 
 
17607
_LT_EOF
 
17608
        ;;
 
17609
        *)
 
17610
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17611
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17612
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17613
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17614
          else
 
17615
            ld_shlibs_GCJ=no
 
17616
          fi
 
17617
        ;;
 
17618
      esac
 
17619
      ;;
 
17620
 
17929
17621
    sunos4*)
17930
17622
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17931
17623
      wlarc=
17959
17651
      # Note: this linker hardcodes the directories in LIBPATH if there
17960
17652
      # are no directories specified by -L.
17961
17653
      hardcode_minus_L_GCJ=yes
17962
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17654
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17963
17655
        # Neither direct hardcoding nor static linking is supported with a
17964
17656
        # broken collect2.
17965
17657
        hardcode_direct_GCJ=unsupported
17993
17685
            break
17994
17686
          fi
17995
17687
          done
 
17688
          ;;
17996
17689
        esac
17997
17690
 
17998
17691
        exp_sym_flag='-bexport'
18030
17723
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18031
17724
          hardcode_libdir_separator_GCJ=
18032
17725
          fi
 
17726
          ;;
18033
17727
        esac
18034
17728
        shared_flag='-shared'
18035
17729
        if test "$aix_use_runtimelinking" = yes; then
18042
17736
        # chokes on -Wl,-G. The following line is correct:
18043
17737
          shared_flag='-G'
18044
17738
        else
18045
 
        if test "$aix_use_runtimelinking" = yes; then
 
17739
          if test "$aix_use_runtimelinking" = yes; then
18046
17740
            shared_flag='${wl}-G'
18047
17741
          else
18048
17742
            shared_flag='${wl}-bM:SRE'
18049
 
        fi
 
17743
          fi
18050
17744
        fi
18051
17745
      fi
18052
17746
 
18111
17805
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18112
17806
 
18113
17807
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18114
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17808
        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"
18115
17809
       else
18116
17810
        if test "$host_cpu" = ia64; then
18117
17811
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18118
17812
          allow_undefined_flag_GCJ="-z nodefs"
18119
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17813
          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"
18120
17814
        else
18121
17815
         # Determine the default libpath from the value encoded in an empty executable.
18122
17816
         cat >conftest.$ac_ext <<_ACEOF
18176
17870
          # -berok will link without error, but may produce a broken library.
18177
17871
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18178
17872
          allow_undefined_flag_GCJ=' ${wl}-berok'
18179
 
          # -bexpall does not export symbols beginning with underscore (_)
18180
 
          always_export_symbols_GCJ=yes
18181
17873
          # Exported symbols can be pulled into shared objects from archives
18182
 
          whole_archive_flag_spec_GCJ=' '
 
17874
          whole_archive_flag_spec_GCJ='$convenience'
18183
17875
          archive_cmds_need_lc_GCJ=yes
18184
17876
          # This is similar to how AIX traditionally builds its shared libraries.
18185
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17877
          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'
18186
17878
        fi
18187
17879
      fi
18188
17880
      ;;
18323
18015
      export_dynamic_flag_spec_GCJ='${wl}-E'
18324
18016
      ;;
18325
18017
 
18326
 
    hpux10* | hpux11*)
 
18018
    hpux10*)
 
18019
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18020
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18021
      else
 
18022
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18023
      fi
 
18024
      if test "$with_gnu_ld" = no; then
 
18025
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18026
        hardcode_libdir_separator_GCJ=:
 
18027
 
 
18028
        hardcode_direct_GCJ=yes
 
18029
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18030
 
 
18031
        # hardcode_minus_L: Not really in the search PATH,
 
18032
        # but as the default location of the library.
 
18033
        hardcode_minus_L_GCJ=yes
 
18034
      fi
 
18035
      ;;
 
18036
 
 
18037
    hpux11*)
18327
18038
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18328
18039
        case $host_cpu in
18329
 
        hppa*64*|ia64*)
 
18040
        hppa*64*)
18330
18041
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18331
18042
          ;;
 
18043
        ia64*)
 
18044
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18045
          ;;
18332
18046
        *)
18333
18047
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18334
18048
          ;;
18335
18049
        esac
18336
18050
      else
18337
18051
        case $host_cpu in
18338
 
        hppa*64*|ia64*)
18339
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18052
        hppa*64*)
 
18053
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18054
          ;;
 
18055
        ia64*)
 
18056
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18340
18057
          ;;
18341
18058
        *)
18342
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18059
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18343
18060
          ;;
18344
18061
        esac
18345
18062
      fi
18346
18063
      if test "$with_gnu_ld" = no; then
 
18064
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18065
        hardcode_libdir_separator_GCJ=:
 
18066
 
18347
18067
        case $host_cpu in
18348
 
        hppa*64*)
18349
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18068
        hppa*64*|ia64*)
18350
18069
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18351
 
          hardcode_libdir_separator_GCJ=:
18352
 
          hardcode_direct_GCJ=no
18353
 
          hardcode_shlibpath_var_GCJ=no
18354
 
          ;;
18355
 
        ia64*)
18356
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18357
 
          hardcode_direct_GCJ=no
18358
 
          hardcode_shlibpath_var_GCJ=no
18359
 
 
18360
 
          # hardcode_minus_L: Not really in the search PATH,
18361
 
          # but as the default location of the library.
18362
 
          hardcode_minus_L_GCJ=yes
 
18070
          hardcode_direct_GCJ=no
 
18071
          hardcode_shlibpath_var_GCJ=no
18363
18072
          ;;
18364
18073
        *)
18365
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18366
 
          hardcode_libdir_separator_GCJ=:
18367
18074
          hardcode_direct_GCJ=yes
18368
18075
          export_dynamic_flag_spec_GCJ='${wl}-E'
18369
18076
 
18465
18172
      hardcode_libdir_separator_GCJ=:
18466
18173
      ;;
18467
18174
 
18468
 
    sco3.2v5*)
18469
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18470
 
      hardcode_shlibpath_var_GCJ=no
18471
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18472
 
      runpath_var=LD_RUN_PATH
18473
 
      hardcode_runpath_var=yes
18474
 
      ;;
18475
 
 
18476
18175
    solaris*)
18477
18176
      no_undefined_flag_GCJ=' -z text'
18478
18177
      if test "$GCC" = yes; then
18558
18257
      fi
18559
18258
      ;;
18560
18259
 
18561
 
    sysv4.2uw2*)
18562
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18563
 
      hardcode_direct_GCJ=yes
18564
 
      hardcode_minus_L_GCJ=no
18565
 
      hardcode_shlibpath_var_GCJ=no
18566
 
      hardcode_runpath_var=yes
18567
 
      runpath_var=LD_RUN_PATH
18568
 
      ;;
18569
 
 
18570
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18571
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18572
 
      if test "$GCC" = yes; then
18573
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18574
 
      else
18575
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18576
 
      fi
18577
 
      runpath_var='LD_RUN_PATH'
18578
 
      hardcode_shlibpath_var_GCJ=no
18579
 
      ;;
18580
 
 
18581
 
    sysv5*)
18582
 
      no_undefined_flag_GCJ=' -z text'
18583
 
      # $CC -shared without GNU ld will not create a library from C++
18584
 
      # object files and a static libstdc++, better avoid it by now
18585
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18587
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18588
 
      hardcode_libdir_flag_spec_GCJ=
18589
 
      hardcode_shlibpath_var_GCJ=no
18590
 
      runpath_var='LD_RUN_PATH'
 
18260
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18261
      no_undefined_flag_GCJ='${wl}-z,text'
 
18262
      archive_cmds_need_lc_GCJ=no
 
18263
      hardcode_shlibpath_var_GCJ=no
 
18264
      runpath_var='LD_RUN_PATH'
 
18265
 
 
18266
      if test "$GCC" = yes; then
 
18267
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18268
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18269
      else
 
18270
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18271
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18272
      fi
 
18273
      ;;
 
18274
 
 
18275
    sysv5* | sco3.2v5* | sco5v6*)
 
18276
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18277
      # link with -lc, and that would cause any symbols used from libc to
 
18278
      # always be unresolved, which means just about no library would
 
18279
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18280
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18281
      # as -z defs.
 
18282
      no_undefined_flag_GCJ='${wl}-z,text'
 
18283
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18284
      archive_cmds_need_lc_GCJ=no
 
18285
      hardcode_shlibpath_var_GCJ=no
 
18286
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18287
      hardcode_libdir_separator_GCJ=':'
 
18288
      link_all_deplibs_GCJ=yes
 
18289
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18290
      runpath_var='LD_RUN_PATH'
 
18291
 
 
18292
      if test "$GCC" = yes; then
 
18293
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18294
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18295
      else
 
18296
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18297
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18298
      fi
18591
18299
      ;;
18592
18300
 
18593
18301
    uts4*)
18606
18314
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18607
18315
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18608
18316
 
18609
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18610
 
if test "$GCC" = yes; then
18611
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18612
 
fi
18613
 
 
18614
18317
#
18615
18318
# Do we need to explicitly link libc?
18616
18319
#
18643
18346
        libobjs=conftest.$ac_objext
18644
18347
        deplibs=
18645
18348
        wl=$lt_prog_compiler_wl_GCJ
 
18349
        pic_flag=$lt_prog_compiler_pic_GCJ
18646
18350
        compiler_flags=-v
18647
18351
        linker_flags=-v
18648
18352
        verstring=
18924
18628
    shlibpath_overrides_runpath=yes
18925
18629
    hardcode_into_libs=yes
18926
18630
    ;;
18927
 
  *) # from 3.2 on
 
18631
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18632
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18928
18633
    shlibpath_overrides_runpath=no
18929
18634
    hardcode_into_libs=yes
18930
18635
    ;;
 
18636
  freebsd*) # from 4.6 on
 
18637
    shlibpath_overrides_runpath=yes
 
18638
    hardcode_into_libs=yes
 
18639
    ;;
18931
18640
  esac
18932
18641
  ;;
18933
18642
 
18987
18696
  postinstall_cmds='chmod 555 $lib'
18988
18697
  ;;
18989
18698
 
 
18699
interix3*)
 
18700
  version_type=linux
 
18701
  need_lib_prefix=no
 
18702
  need_version=no
 
18703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18704
  soname_spec='${libname}${release}${shared_ext}$major'
 
18705
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18706
  shlibpath_var=LD_LIBRARY_PATH
 
18707
  shlibpath_overrides_runpath=no
 
18708
  hardcode_into_libs=yes
 
18709
  ;;
 
18710
 
18990
18711
irix5* | irix6* | nonstopux*)
18991
18712
  case $host_os in
18992
18713
    nonstopux*) version_type=nonstopux ;;
19108
18829
 
19109
18830
openbsd*)
19110
18831
  version_type=sunos
 
18832
  sys_lib_dlsearch_path_spec="/usr/lib"
19111
18833
  need_lib_prefix=no
19112
18834
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19113
18835
  case $host_os in
19151
18873
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19152
18874
  ;;
19153
18875
 
19154
 
sco3.2v5*)
19155
 
  version_type=osf
19156
 
  soname_spec='${libname}${release}${shared_ext}$major'
19157
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158
 
  shlibpath_var=LD_LIBRARY_PATH
19159
 
  ;;
19160
 
 
19161
18876
solaris*)
19162
18877
  version_type=linux
19163
18878
  need_lib_prefix=no
19183
18898
  need_version=yes
19184
18899
  ;;
19185
18900
 
19186
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18901
sysv4 | sysv4.3*)
19187
18902
  version_type=linux
19188
18903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19189
18904
  soname_spec='${libname}${release}${shared_ext}$major'
19216
18931
  fi
19217
18932
  ;;
19218
18933
 
 
18934
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18935
  version_type=freebsd-elf
 
18936
  need_lib_prefix=no
 
18937
  need_version=no
 
18938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18939
  soname_spec='${libname}${release}${shared_ext}$major'
 
18940
  shlibpath_var=LD_LIBRARY_PATH
 
18941
  hardcode_into_libs=yes
 
18942
  if test "$with_gnu_ld" = yes; then
 
18943
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18944
    shlibpath_overrides_runpath=no
 
18945
  else
 
18946
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18947
    shlibpath_overrides_runpath=yes
 
18948
    case $host_os in
 
18949
      sco3.2v5*)
 
18950
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18951
        ;;
 
18952
    esac
 
18953
  fi
 
18954
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18955
  ;;
 
18956
 
19219
18957
uts4*)
19220
18958
  version_type=linux
19221
18959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231
18969
echo "${ECHO_T}$dynamic_linker" >&6
19232
18970
test "$dynamic_linker" = no && can_build_shared=no
19233
18971
 
 
18972
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18973
if test "$GCC" = yes; then
 
18974
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18975
fi
 
18976
 
19234
18977
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19235
18978
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19236
18979
hardcode_action_GCJ=
19268
19011
  enable_fast_install=needless
19269
19012
fi
19270
19013
 
19271
 
striplib=
19272
 
old_striplib=
19273
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19274
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19275
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19276
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19277
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19278
 
  echo "$as_me:$LINENO: result: yes" >&5
19279
 
echo "${ECHO_T}yes" >&6
19280
 
else
19281
 
# FIXME - insert some real tests, host_os isn't really good enough
19282
 
  case $host_os in
19283
 
   darwin*)
19284
 
       if test -n "$STRIP" ; then
19285
 
         striplib="$STRIP -x"
19286
 
         echo "$as_me:$LINENO: result: yes" >&5
19287
 
echo "${ECHO_T}yes" >&6
19288
 
       else
19289
 
  echo "$as_me:$LINENO: result: no" >&5
19290
 
echo "${ECHO_T}no" >&6
19291
 
fi
19292
 
       ;;
19293
 
   *)
19294
 
  echo "$as_me:$LINENO: result: no" >&5
19295
 
echo "${ECHO_T}no" >&6
19296
 
    ;;
19297
 
  esac
19298
 
fi
19299
 
 
19300
 
if test "x$enable_dlopen" != xyes; then
19301
 
  enable_dlopen=unknown
19302
 
  enable_dlopen_self=unknown
19303
 
  enable_dlopen_self_static=unknown
19304
 
else
19305
 
  lt_cv_dlopen=no
19306
 
  lt_cv_dlopen_libs=
19307
 
 
19308
 
  case $host_os in
19309
 
  beos*)
19310
 
    lt_cv_dlopen="load_add_on"
19311
 
    lt_cv_dlopen_libs=
19312
 
    lt_cv_dlopen_self=yes
19313
 
    ;;
19314
 
 
19315
 
  mingw* | pw32*)
19316
 
    lt_cv_dlopen="LoadLibrary"
19317
 
    lt_cv_dlopen_libs=
19318
 
   ;;
19319
 
 
19320
 
  cygwin*)
19321
 
    lt_cv_dlopen="dlopen"
19322
 
    lt_cv_dlopen_libs=
19323
 
   ;;
19324
 
 
19325
 
  darwin*)
19326
 
  # if libdl is installed we need to link against it
19327
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19328
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19329
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19331
 
else
19332
 
  ac_check_lib_save_LIBS=$LIBS
19333
 
LIBS="-ldl  $LIBS"
19334
 
cat >conftest.$ac_ext <<_ACEOF
19335
 
/* confdefs.h.  */
19336
 
_ACEOF
19337
 
cat confdefs.h >>conftest.$ac_ext
19338
 
cat >>conftest.$ac_ext <<_ACEOF
19339
 
/* end confdefs.h.  */
19340
 
 
19341
 
/* Override any gcc2 internal prototype to avoid an error.  */
19342
 
#ifdef __cplusplus
19343
 
extern "C"
19344
 
#endif
19345
 
/* We use char because int might match the return type of a gcc2
19346
 
   builtin and then its argument prototype would still apply.  */
19347
 
char dlopen ();
19348
 
int
19349
 
main ()
19350
 
{
19351
 
dlopen ();
19352
 
  ;
19353
 
  return 0;
19354
 
}
19355
 
_ACEOF
19356
 
rm -f conftest.$ac_objext conftest$ac_exeext
19357
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358
 
  (eval $ac_link) 2>conftest.er1
19359
 
  ac_status=$?
19360
 
  grep -v '^ *+' conftest.er1 >conftest.err
19361
 
  rm -f conftest.er1
19362
 
  cat conftest.err >&5
19363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364
 
  (exit $ac_status); } &&
19365
 
         { ac_try='test -z "$ac_c_werror_flag"
19366
 
                         || test ! -s conftest.err'
19367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368
 
  (eval $ac_try) 2>&5
19369
 
  ac_status=$?
19370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371
 
  (exit $ac_status); }; } &&
19372
 
         { ac_try='test -s conftest$ac_exeext'
19373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374
 
  (eval $ac_try) 2>&5
19375
 
  ac_status=$?
19376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377
 
  (exit $ac_status); }; }; then
19378
 
  ac_cv_lib_dl_dlopen=yes
19379
 
else
19380
 
  echo "$as_me: failed program was:" >&5
19381
 
sed 's/^/| /' conftest.$ac_ext >&5
19382
 
 
19383
 
ac_cv_lib_dl_dlopen=no
19384
 
fi
19385
 
rm -f conftest.err conftest.$ac_objext \
19386
 
      conftest$ac_exeext conftest.$ac_ext
19387
 
LIBS=$ac_check_lib_save_LIBS
19388
 
fi
19389
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19390
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19391
 
if test $ac_cv_lib_dl_dlopen = yes; then
19392
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19393
 
else
19394
 
 
19395
 
    lt_cv_dlopen="dyld"
19396
 
    lt_cv_dlopen_libs=
19397
 
    lt_cv_dlopen_self=yes
19398
 
 
19399
 
fi
19400
 
 
19401
 
   ;;
19402
 
 
19403
 
  *)
19404
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
19405
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19406
 
if test "${ac_cv_func_shl_load+set}" = set; then
19407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19408
 
else
19409
 
  cat >conftest.$ac_ext <<_ACEOF
19410
 
/* confdefs.h.  */
19411
 
_ACEOF
19412
 
cat confdefs.h >>conftest.$ac_ext
19413
 
cat >>conftest.$ac_ext <<_ACEOF
19414
 
/* end confdefs.h.  */
19415
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19416
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19417
 
#define shl_load innocuous_shl_load
19418
 
 
19419
 
/* System header to define __stub macros and hopefully few prototypes,
19420
 
    which can conflict with char shl_load (); below.
19421
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422
 
    <limits.h> exists even on freestanding compilers.  */
19423
 
 
19424
 
#ifdef __STDC__
19425
 
# include <limits.h>
19426
 
#else
19427
 
# include <assert.h>
19428
 
#endif
19429
 
 
19430
 
#undef shl_load
19431
 
 
19432
 
/* Override any gcc2 internal prototype to avoid an error.  */
19433
 
#ifdef __cplusplus
19434
 
extern "C"
19435
 
{
19436
 
#endif
19437
 
/* We use char because int might match the return type of a gcc2
19438
 
   builtin and then its argument prototype would still apply.  */
19439
 
char shl_load ();
19440
 
/* The GNU C library defines this for functions which it implements
19441
 
    to always fail with ENOSYS.  Some functions are actually named
19442
 
    something starting with __ and the normal name is an alias.  */
19443
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19444
 
choke me
19445
 
#else
19446
 
char (*f) () = shl_load;
19447
 
#endif
19448
 
#ifdef __cplusplus
19449
 
}
19450
 
#endif
19451
 
 
19452
 
int
19453
 
main ()
19454
 
{
19455
 
return f != shl_load;
19456
 
  ;
19457
 
  return 0;
19458
 
}
19459
 
_ACEOF
19460
 
rm -f conftest.$ac_objext conftest$ac_exeext
19461
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462
 
  (eval $ac_link) 2>conftest.er1
19463
 
  ac_status=$?
19464
 
  grep -v '^ *+' conftest.er1 >conftest.err
19465
 
  rm -f conftest.er1
19466
 
  cat conftest.err >&5
19467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468
 
  (exit $ac_status); } &&
19469
 
         { ac_try='test -z "$ac_c_werror_flag"
19470
 
                         || test ! -s conftest.err'
19471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472
 
  (eval $ac_try) 2>&5
19473
 
  ac_status=$?
19474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475
 
  (exit $ac_status); }; } &&
19476
 
         { ac_try='test -s conftest$ac_exeext'
19477
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478
 
  (eval $ac_try) 2>&5
19479
 
  ac_status=$?
19480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481
 
  (exit $ac_status); }; }; then
19482
 
  ac_cv_func_shl_load=yes
19483
 
else
19484
 
  echo "$as_me: failed program was:" >&5
19485
 
sed 's/^/| /' conftest.$ac_ext >&5
19486
 
 
19487
 
ac_cv_func_shl_load=no
19488
 
fi
19489
 
rm -f conftest.err conftest.$ac_objext \
19490
 
      conftest$ac_exeext conftest.$ac_ext
19491
 
fi
19492
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19493
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19494
 
if test $ac_cv_func_shl_load = yes; then
19495
 
  lt_cv_dlopen="shl_load"
19496
 
else
19497
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19498
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19499
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19500
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19501
 
else
19502
 
  ac_check_lib_save_LIBS=$LIBS
19503
 
LIBS="-ldld  $LIBS"
19504
 
cat >conftest.$ac_ext <<_ACEOF
19505
 
/* confdefs.h.  */
19506
 
_ACEOF
19507
 
cat confdefs.h >>conftest.$ac_ext
19508
 
cat >>conftest.$ac_ext <<_ACEOF
19509
 
/* end confdefs.h.  */
19510
 
 
19511
 
/* Override any gcc2 internal prototype to avoid an error.  */
19512
 
#ifdef __cplusplus
19513
 
extern "C"
19514
 
#endif
19515
 
/* We use char because int might match the return type of a gcc2
19516
 
   builtin and then its argument prototype would still apply.  */
19517
 
char shl_load ();
19518
 
int
19519
 
main ()
19520
 
{
19521
 
shl_load ();
19522
 
  ;
19523
 
  return 0;
19524
 
}
19525
 
_ACEOF
19526
 
rm -f conftest.$ac_objext conftest$ac_exeext
19527
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528
 
  (eval $ac_link) 2>conftest.er1
19529
 
  ac_status=$?
19530
 
  grep -v '^ *+' conftest.er1 >conftest.err
19531
 
  rm -f conftest.er1
19532
 
  cat conftest.err >&5
19533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534
 
  (exit $ac_status); } &&
19535
 
         { ac_try='test -z "$ac_c_werror_flag"
19536
 
                         || test ! -s conftest.err'
19537
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538
 
  (eval $ac_try) 2>&5
19539
 
  ac_status=$?
19540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541
 
  (exit $ac_status); }; } &&
19542
 
         { ac_try='test -s conftest$ac_exeext'
19543
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544
 
  (eval $ac_try) 2>&5
19545
 
  ac_status=$?
19546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547
 
  (exit $ac_status); }; }; then
19548
 
  ac_cv_lib_dld_shl_load=yes
19549
 
else
19550
 
  echo "$as_me: failed program was:" >&5
19551
 
sed 's/^/| /' conftest.$ac_ext >&5
19552
 
 
19553
 
ac_cv_lib_dld_shl_load=no
19554
 
fi
19555
 
rm -f conftest.err conftest.$ac_objext \
19556
 
      conftest$ac_exeext conftest.$ac_ext
19557
 
LIBS=$ac_check_lib_save_LIBS
19558
 
fi
19559
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19560
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19561
 
if test $ac_cv_lib_dld_shl_load = yes; then
19562
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19563
 
else
19564
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
19565
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19566
 
if test "${ac_cv_func_dlopen+set}" = set; then
19567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19568
 
else
19569
 
  cat >conftest.$ac_ext <<_ACEOF
19570
 
/* confdefs.h.  */
19571
 
_ACEOF
19572
 
cat confdefs.h >>conftest.$ac_ext
19573
 
cat >>conftest.$ac_ext <<_ACEOF
19574
 
/* end confdefs.h.  */
19575
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19576
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19577
 
#define dlopen innocuous_dlopen
19578
 
 
19579
 
/* System header to define __stub macros and hopefully few prototypes,
19580
 
    which can conflict with char dlopen (); below.
19581
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19582
 
    <limits.h> exists even on freestanding compilers.  */
19583
 
 
19584
 
#ifdef __STDC__
19585
 
# include <limits.h>
19586
 
#else
19587
 
# include <assert.h>
19588
 
#endif
19589
 
 
19590
 
#undef dlopen
19591
 
 
19592
 
/* Override any gcc2 internal prototype to avoid an error.  */
19593
 
#ifdef __cplusplus
19594
 
extern "C"
19595
 
{
19596
 
#endif
19597
 
/* We use char because int might match the return type of a gcc2
19598
 
   builtin and then its argument prototype would still apply.  */
19599
 
char dlopen ();
19600
 
/* The GNU C library defines this for functions which it implements
19601
 
    to always fail with ENOSYS.  Some functions are actually named
19602
 
    something starting with __ and the normal name is an alias.  */
19603
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19604
 
choke me
19605
 
#else
19606
 
char (*f) () = dlopen;
19607
 
#endif
19608
 
#ifdef __cplusplus
19609
 
}
19610
 
#endif
19611
 
 
19612
 
int
19613
 
main ()
19614
 
{
19615
 
return f != dlopen;
19616
 
  ;
19617
 
  return 0;
19618
 
}
19619
 
_ACEOF
19620
 
rm -f conftest.$ac_objext conftest$ac_exeext
19621
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622
 
  (eval $ac_link) 2>conftest.er1
19623
 
  ac_status=$?
19624
 
  grep -v '^ *+' conftest.er1 >conftest.err
19625
 
  rm -f conftest.er1
19626
 
  cat conftest.err >&5
19627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628
 
  (exit $ac_status); } &&
19629
 
         { ac_try='test -z "$ac_c_werror_flag"
19630
 
                         || test ! -s conftest.err'
19631
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632
 
  (eval $ac_try) 2>&5
19633
 
  ac_status=$?
19634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635
 
  (exit $ac_status); }; } &&
19636
 
         { ac_try='test -s conftest$ac_exeext'
19637
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638
 
  (eval $ac_try) 2>&5
19639
 
  ac_status=$?
19640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641
 
  (exit $ac_status); }; }; then
19642
 
  ac_cv_func_dlopen=yes
19643
 
else
19644
 
  echo "$as_me: failed program was:" >&5
19645
 
sed 's/^/| /' conftest.$ac_ext >&5
19646
 
 
19647
 
ac_cv_func_dlopen=no
19648
 
fi
19649
 
rm -f conftest.err conftest.$ac_objext \
19650
 
      conftest$ac_exeext conftest.$ac_ext
19651
 
fi
19652
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19653
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19654
 
if test $ac_cv_func_dlopen = yes; then
19655
 
  lt_cv_dlopen="dlopen"
19656
 
else
19657
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19658
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19659
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19660
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19661
 
else
19662
 
  ac_check_lib_save_LIBS=$LIBS
19663
 
LIBS="-ldl  $LIBS"
19664
 
cat >conftest.$ac_ext <<_ACEOF
19665
 
/* confdefs.h.  */
19666
 
_ACEOF
19667
 
cat confdefs.h >>conftest.$ac_ext
19668
 
cat >>conftest.$ac_ext <<_ACEOF
19669
 
/* end confdefs.h.  */
19670
 
 
19671
 
/* Override any gcc2 internal prototype to avoid an error.  */
19672
 
#ifdef __cplusplus
19673
 
extern "C"
19674
 
#endif
19675
 
/* We use char because int might match the return type of a gcc2
19676
 
   builtin and then its argument prototype would still apply.  */
19677
 
char dlopen ();
19678
 
int
19679
 
main ()
19680
 
{
19681
 
dlopen ();
19682
 
  ;
19683
 
  return 0;
19684
 
}
19685
 
_ACEOF
19686
 
rm -f conftest.$ac_objext conftest$ac_exeext
19687
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19688
 
  (eval $ac_link) 2>conftest.er1
19689
 
  ac_status=$?
19690
 
  grep -v '^ *+' conftest.er1 >conftest.err
19691
 
  rm -f conftest.er1
19692
 
  cat conftest.err >&5
19693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694
 
  (exit $ac_status); } &&
19695
 
         { ac_try='test -z "$ac_c_werror_flag"
19696
 
                         || test ! -s conftest.err'
19697
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698
 
  (eval $ac_try) 2>&5
19699
 
  ac_status=$?
19700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
 
  (exit $ac_status); }; } &&
19702
 
         { ac_try='test -s conftest$ac_exeext'
19703
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704
 
  (eval $ac_try) 2>&5
19705
 
  ac_status=$?
19706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707
 
  (exit $ac_status); }; }; then
19708
 
  ac_cv_lib_dl_dlopen=yes
19709
 
else
19710
 
  echo "$as_me: failed program was:" >&5
19711
 
sed 's/^/| /' conftest.$ac_ext >&5
19712
 
 
19713
 
ac_cv_lib_dl_dlopen=no
19714
 
fi
19715
 
rm -f conftest.err conftest.$ac_objext \
19716
 
      conftest$ac_exeext conftest.$ac_ext
19717
 
LIBS=$ac_check_lib_save_LIBS
19718
 
fi
19719
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19720
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19721
 
if test $ac_cv_lib_dl_dlopen = yes; then
19722
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19723
 
else
19724
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19725
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19726
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19728
 
else
19729
 
  ac_check_lib_save_LIBS=$LIBS
19730
 
LIBS="-lsvld  $LIBS"
19731
 
cat >conftest.$ac_ext <<_ACEOF
19732
 
/* confdefs.h.  */
19733
 
_ACEOF
19734
 
cat confdefs.h >>conftest.$ac_ext
19735
 
cat >>conftest.$ac_ext <<_ACEOF
19736
 
/* end confdefs.h.  */
19737
 
 
19738
 
/* Override any gcc2 internal prototype to avoid an error.  */
19739
 
#ifdef __cplusplus
19740
 
extern "C"
19741
 
#endif
19742
 
/* We use char because int might match the return type of a gcc2
19743
 
   builtin and then its argument prototype would still apply.  */
19744
 
char dlopen ();
19745
 
int
19746
 
main ()
19747
 
{
19748
 
dlopen ();
19749
 
  ;
19750
 
  return 0;
19751
 
}
19752
 
_ACEOF
19753
 
rm -f conftest.$ac_objext conftest$ac_exeext
19754
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755
 
  (eval $ac_link) 2>conftest.er1
19756
 
  ac_status=$?
19757
 
  grep -v '^ *+' conftest.er1 >conftest.err
19758
 
  rm -f conftest.er1
19759
 
  cat conftest.err >&5
19760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761
 
  (exit $ac_status); } &&
19762
 
         { ac_try='test -z "$ac_c_werror_flag"
19763
 
                         || test ! -s conftest.err'
19764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765
 
  (eval $ac_try) 2>&5
19766
 
  ac_status=$?
19767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768
 
  (exit $ac_status); }; } &&
19769
 
         { ac_try='test -s conftest$ac_exeext'
19770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771
 
  (eval $ac_try) 2>&5
19772
 
  ac_status=$?
19773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774
 
  (exit $ac_status); }; }; then
19775
 
  ac_cv_lib_svld_dlopen=yes
19776
 
else
19777
 
  echo "$as_me: failed program was:" >&5
19778
 
sed 's/^/| /' conftest.$ac_ext >&5
19779
 
 
19780
 
ac_cv_lib_svld_dlopen=no
19781
 
fi
19782
 
rm -f conftest.err conftest.$ac_objext \
19783
 
      conftest$ac_exeext conftest.$ac_ext
19784
 
LIBS=$ac_check_lib_save_LIBS
19785
 
fi
19786
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19787
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19788
 
if test $ac_cv_lib_svld_dlopen = yes; then
19789
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19790
 
else
19791
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19792
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19793
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19795
 
else
19796
 
  ac_check_lib_save_LIBS=$LIBS
19797
 
LIBS="-ldld  $LIBS"
19798
 
cat >conftest.$ac_ext <<_ACEOF
19799
 
/* confdefs.h.  */
19800
 
_ACEOF
19801
 
cat confdefs.h >>conftest.$ac_ext
19802
 
cat >>conftest.$ac_ext <<_ACEOF
19803
 
/* end confdefs.h.  */
19804
 
 
19805
 
/* Override any gcc2 internal prototype to avoid an error.  */
19806
 
#ifdef __cplusplus
19807
 
extern "C"
19808
 
#endif
19809
 
/* We use char because int might match the return type of a gcc2
19810
 
   builtin and then its argument prototype would still apply.  */
19811
 
char dld_link ();
19812
 
int
19813
 
main ()
19814
 
{
19815
 
dld_link ();
19816
 
  ;
19817
 
  return 0;
19818
 
}
19819
 
_ACEOF
19820
 
rm -f conftest.$ac_objext conftest$ac_exeext
19821
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19822
 
  (eval $ac_link) 2>conftest.er1
19823
 
  ac_status=$?
19824
 
  grep -v '^ *+' conftest.er1 >conftest.err
19825
 
  rm -f conftest.er1
19826
 
  cat conftest.err >&5
19827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828
 
  (exit $ac_status); } &&
19829
 
         { ac_try='test -z "$ac_c_werror_flag"
19830
 
                         || test ! -s conftest.err'
19831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832
 
  (eval $ac_try) 2>&5
19833
 
  ac_status=$?
19834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835
 
  (exit $ac_status); }; } &&
19836
 
         { ac_try='test -s conftest$ac_exeext'
19837
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838
 
  (eval $ac_try) 2>&5
19839
 
  ac_status=$?
19840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841
 
  (exit $ac_status); }; }; then
19842
 
  ac_cv_lib_dld_dld_link=yes
19843
 
else
19844
 
  echo "$as_me: failed program was:" >&5
19845
 
sed 's/^/| /' conftest.$ac_ext >&5
19846
 
 
19847
 
ac_cv_lib_dld_dld_link=no
19848
 
fi
19849
 
rm -f conftest.err conftest.$ac_objext \
19850
 
      conftest$ac_exeext conftest.$ac_ext
19851
 
LIBS=$ac_check_lib_save_LIBS
19852
 
fi
19853
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19854
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19855
 
if test $ac_cv_lib_dld_dld_link = yes; then
19856
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19857
 
fi
19858
 
 
19859
 
 
19860
 
fi
19861
 
 
19862
 
 
19863
 
fi
19864
 
 
19865
 
 
19866
 
fi
19867
 
 
19868
 
 
19869
 
fi
19870
 
 
19871
 
 
19872
 
fi
19873
 
 
19874
 
    ;;
19875
 
  esac
19876
 
 
19877
 
  if test "x$lt_cv_dlopen" != xno; then
19878
 
    enable_dlopen=yes
19879
 
  else
19880
 
    enable_dlopen=no
19881
 
  fi
19882
 
 
19883
 
  case $lt_cv_dlopen in
19884
 
  dlopen)
19885
 
    save_CPPFLAGS="$CPPFLAGS"
19886
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19887
 
 
19888
 
    save_LDFLAGS="$LDFLAGS"
19889
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19890
 
 
19891
 
    save_LIBS="$LIBS"
19892
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19893
 
 
19894
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19895
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19896
 
if test "${lt_cv_dlopen_self+set}" = set; then
19897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19898
 
else
19899
 
          if test "$cross_compiling" = yes; then :
19900
 
  lt_cv_dlopen_self=cross
19901
 
else
19902
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19903
 
  lt_status=$lt_dlunknown
19904
 
  cat > conftest.$ac_ext <<EOF
19905
 
#line 19905 "configure"
19906
 
#include "confdefs.h"
19907
 
 
19908
 
#if HAVE_DLFCN_H
19909
 
#include <dlfcn.h>
19910
 
#endif
19911
 
 
19912
 
#include <stdio.h>
19913
 
 
19914
 
#ifdef RTLD_GLOBAL
19915
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19916
 
#else
19917
 
#  ifdef DL_GLOBAL
19918
 
#    define LT_DLGLOBAL         DL_GLOBAL
19919
 
#  else
19920
 
#    define LT_DLGLOBAL         0
19921
 
#  endif
19922
 
#endif
19923
 
 
19924
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19925
 
   find out it does not work in some platform. */
19926
 
#ifndef LT_DLLAZY_OR_NOW
19927
 
#  ifdef RTLD_LAZY
19928
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19929
 
#  else
19930
 
#    ifdef DL_LAZY
19931
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19932
 
#    else
19933
 
#      ifdef RTLD_NOW
19934
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19935
 
#      else
19936
 
#        ifdef DL_NOW
19937
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19938
 
#        else
19939
 
#          define LT_DLLAZY_OR_NOW      0
19940
 
#        endif
19941
 
#      endif
19942
 
#    endif
19943
 
#  endif
19944
 
#endif
19945
 
 
19946
 
#ifdef __cplusplus
19947
 
extern "C" void exit (int);
19948
 
#endif
19949
 
 
19950
 
void fnord() { int i=42;}
19951
 
int main ()
19952
 
{
19953
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19954
 
  int status = $lt_dlunknown;
19955
 
 
19956
 
  if (self)
19957
 
    {
19958
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19959
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19960
 
      /* dlclose (self); */
19961
 
    }
19962
 
 
19963
 
    exit (status);
19964
 
}
19965
 
EOF
19966
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967
 
  (eval $ac_link) 2>&5
19968
 
  ac_status=$?
19969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19971
 
    (./conftest; exit; ) >&5 2>/dev/null
19972
 
    lt_status=$?
19973
 
    case x$lt_status in
19974
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19975
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19976
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19977
 
    esac
19978
 
  else :
19979
 
    # compilation failed
19980
 
    lt_cv_dlopen_self=no
19981
 
  fi
19982
 
fi
19983
 
rm -fr conftest*
19984
 
 
19985
 
 
19986
 
fi
19987
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19988
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19989
 
 
19990
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19991
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19992
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19993
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19994
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19996
 
else
19997
 
          if test "$cross_compiling" = yes; then :
19998
 
  lt_cv_dlopen_self_static=cross
19999
 
else
20000
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20001
 
  lt_status=$lt_dlunknown
20002
 
  cat > conftest.$ac_ext <<EOF
20003
 
#line 20003 "configure"
20004
 
#include "confdefs.h"
20005
 
 
20006
 
#if HAVE_DLFCN_H
20007
 
#include <dlfcn.h>
20008
 
#endif
20009
 
 
20010
 
#include <stdio.h>
20011
 
 
20012
 
#ifdef RTLD_GLOBAL
20013
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
20014
 
#else
20015
 
#  ifdef DL_GLOBAL
20016
 
#    define LT_DLGLOBAL         DL_GLOBAL
20017
 
#  else
20018
 
#    define LT_DLGLOBAL         0
20019
 
#  endif
20020
 
#endif
20021
 
 
20022
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20023
 
   find out it does not work in some platform. */
20024
 
#ifndef LT_DLLAZY_OR_NOW
20025
 
#  ifdef RTLD_LAZY
20026
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20027
 
#  else
20028
 
#    ifdef DL_LAZY
20029
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
20030
 
#    else
20031
 
#      ifdef RTLD_NOW
20032
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
20033
 
#      else
20034
 
#        ifdef DL_NOW
20035
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
20036
 
#        else
20037
 
#          define LT_DLLAZY_OR_NOW      0
20038
 
#        endif
20039
 
#      endif
20040
 
#    endif
20041
 
#  endif
20042
 
#endif
20043
 
 
20044
 
#ifdef __cplusplus
20045
 
extern "C" void exit (int);
20046
 
#endif
20047
 
 
20048
 
void fnord() { int i=42;}
20049
 
int main ()
20050
 
{
20051
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20052
 
  int status = $lt_dlunknown;
20053
 
 
20054
 
  if (self)
20055
 
    {
20056
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20057
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20058
 
      /* dlclose (self); */
20059
 
    }
20060
 
 
20061
 
    exit (status);
20062
 
}
20063
 
EOF
20064
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20065
 
  (eval $ac_link) 2>&5
20066
 
  ac_status=$?
20067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20069
 
    (./conftest; exit; ) >&5 2>/dev/null
20070
 
    lt_status=$?
20071
 
    case x$lt_status in
20072
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20073
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20074
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20075
 
    esac
20076
 
  else :
20077
 
    # compilation failed
20078
 
    lt_cv_dlopen_self_static=no
20079
 
  fi
20080
 
fi
20081
 
rm -fr conftest*
20082
 
 
20083
 
 
20084
 
fi
20085
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20086
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20087
 
    fi
20088
 
 
20089
 
    CPPFLAGS="$save_CPPFLAGS"
20090
 
    LDFLAGS="$save_LDFLAGS"
20091
 
    LIBS="$save_LIBS"
20092
 
    ;;
20093
 
  esac
20094
 
 
20095
 
  case $lt_cv_dlopen_self in
20096
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20097
 
  *) enable_dlopen_self=unknown ;;
20098
 
  esac
20099
 
 
20100
 
  case $lt_cv_dlopen_self_static in
20101
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20102
 
  *) enable_dlopen_self_static=unknown ;;
20103
 
  esac
20104
 
fi
20105
 
 
20106
19014
 
20107
19015
# The else clause should only fire when bootstrapping the
20108
19016
# libtool distribution, otherwise you forgot to ship ltmain.sh
20117
19025
  # Now quote all the things that may contain metacharacters while being
20118
19026
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20119
19027
  # variables and quote the copies for generation of the libtool script.
20120
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19028
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20121
19029
    SED SHELL STRIP \
20122
19030
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20123
19031
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20235
19143
# A C compiler.
20236
19144
LTCC=$lt_LTCC
20237
19145
 
 
19146
# LTCC compiler flags.
 
19147
LTCFLAGS=$lt_LTCFLAGS
 
19148
 
20238
19149
# A language-specific compiler.
20239
19150
CC=$lt_compiler_GCJ
20240
19151
 
20544
19455
# If no C compiler was specified, use CC.
20545
19456
LTCC=${LTCC-"$CC"}
20546
19457
 
 
19458
# If no C compiler flags were specified, use CFLAGS.
 
19459
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19460
 
20547
19461
# Allow CC to be a program name with arguments.
20548
19462
compiler=$CC
20549
19463
 
20551
19465
# save warnings/boilerplate of simple test code
20552
19466
ac_outfile=conftest.$ac_objext
20553
19467
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20554
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19468
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20555
19469
_lt_compiler_boilerplate=`cat conftest.err`
20556
19470
$rm conftest*
20557
19471
 
20558
19472
ac_outfile=conftest.$ac_objext
20559
19473
printf "$lt_simple_link_test_code" >conftest.$ac_ext
20560
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19474
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20561
19475
_lt_linker_boilerplate=`cat conftest.err`
20562
19476
$rm conftest*
20563
19477
 
20592
19506
  # Now quote all the things that may contain metacharacters while being
20593
19507
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20594
19508
  # variables and quote the copies for generation of the libtool script.
20595
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19509
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20596
19510
    SED SHELL STRIP \
20597
19511
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20598
19512
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20710
19624
# A C compiler.
20711
19625
LTCC=$lt_LTCC
20712
19626
 
 
19627
# LTCC compiler flags.
 
19628
LTCFLAGS=$lt_LTCFLAGS
 
19629
 
20713
19630
# A language-specific compiler.
20714
19631
CC=$lt_compiler_RC
20715
19632