~ubuntu-branches/ubuntu/intrepid/sage/intrepid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Veri
  • Date: 2007-06-05 11:34:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070605113418-a6yf4uicvk66s5w6
Tags: 0.2.0-2ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Added alternative Build-Dep on libglu1-mesa-dev.
  - Updated Standards-Version to 3.7.2
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for sage 0.1.2.
 
3
# Generated by GNU Autoconf 2.59 for sage 0.2.0.
4
4
#
5
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
6
# This configure script is free software; the Free Software Foundation
285
285
# find a string as large as possible, as long as the shell can cope with it
286
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
290
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
291
    then
292
292
      break
421
421
# Identity of this package.
422
422
PACKAGE_NAME='sage'
423
423
PACKAGE_TARNAME='sage'
424
 
PACKAGE_VERSION='0.1.2'
425
 
PACKAGE_STRING='sage 0.1.2'
 
424
PACKAGE_VERSION='0.2.0'
 
425
PACKAGE_STRING='sage 0.2.0'
426
426
PACKAGE_BUGREPORT=''
427
427
 
428
428
# Factoring default headers for most tests.
462
462
# include <unistd.h>
463
463
#endif"
464
464
 
465
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SAGE_VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SAGE_DLL DLLWRAP ac_ct_DLLWRAP BUILD_DLL_TRUE BUILD_DLL_FALSE BUILD_IT SDL_VERSION SDL_CONFIG SDL_CFLAGS SDL_LIBS BUILD_WGL_TRUE BUILD_WGL_FALSE BUILD_GLX_TRUE BUILD_GLX_FALSE SAGE_REQUIRES SAGE_LIBS SAGE_CFLAGS PREFIX LIBOBJS LTLIBOBJS'
 
465
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SAGE_VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SAGE_DLL DLLWRAP ac_ct_DLLWRAP BUILD_DLL_TRUE BUILD_DLL_FALSE BUILD_IT SDL_VERSION SDL_CONFIG SDL_CFLAGS SDL_LIBS BUILD_WGL_TRUE BUILD_WGL_FALSE BUILD_GLX_TRUE BUILD_GLX_FALSE SAGE_REQUIRES SAGE_LIBS SAGE_CFLAGS PREFIX LIBOBJS LTLIBOBJS'
466
466
ac_subst_files=''
467
467
 
468
468
# Initialize some variables set by options.
951
951
  # Omit some internal or obsolete options to make the list less imposing.
952
952
  # This message is too long to be a string in the A/UX 3.1 sh.
953
953
  cat <<_ACEOF
954
 
\`configure' configures sage 0.1.2 to adapt to many kinds of systems.
 
954
\`configure' configures sage 0.2.0 to adapt to many kinds of systems.
955
955
 
956
956
Usage: $0 [OPTION]... [VAR=VALUE]...
957
957
 
1022
1022
 
1023
1023
if test -n "$ac_init_help"; then
1024
1024
  case $ac_init_help in
1025
 
     short | recursive ) echo "Configuration of sage 0.1.2:";;
 
1025
     short | recursive ) echo "Configuration of sage 0.2.0:";;
1026
1026
   esac
1027
1027
  cat <<\_ACEOF
1028
1028
 
1165
1165
test -n "$ac_init_help" && exit 0
1166
1166
if $ac_init_version; then
1167
1167
  cat <<\_ACEOF
1168
 
sage configure 0.1.2
 
1168
sage configure 0.2.0
1169
1169
generated by GNU Autoconf 2.59
1170
1170
 
1171
1171
Copyright (C) 2003 Free Software Foundation, Inc.
1179
1179
This file contains any messages produced by compilers while
1180
1180
running configure, to aid debugging if configure makes a mistake.
1181
1181
 
1182
 
It was created by sage $as_me 0.1.2, which was
 
1182
It was created by sage $as_me 0.2.0, which was
1183
1183
generated by GNU Autoconf 2.59.  Invocation command line was
1184
1184
 
1185
1185
  $ $0 $@
1626
1626
    NONENONEs,x,x, &&
1627
1627
  program_prefix=${target_alias}-
1628
1628
 
1629
 
SAGE_CURRENT=1
 
1629
SAGE_CURRENT=2
1630
1630
SAGE_REVISION=0
1631
 
SAGE_AGE=1
 
1631
SAGE_AGE=0
1632
1632
SAGE_VERSION_INFO=$SAGE_CURRENT:$SAGE_REVISION:$SAGE_AGE
1633
1633
 
1634
1634
 
1917
1917
 
1918
1918
# Define the identity of the package.
1919
1919
 PACKAGE='sage'
1920
 
 VERSION='0.1.2'
 
1920
 VERSION='0.2.0'
1921
1921
 
1922
1922
 
1923
1923
cat >>confdefs.h <<_ACEOF
3246
3246
    done
3247
3247
  done
3248
3248
done
 
3249
IFS=$as_save_IFS
3249
3250
lt_ac_max=0
3250
3251
lt_ac_count=0
3251
3252
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3280
3281
fi
3281
3282
 
3282
3283
SED=$lt_cv_path_SED
 
3284
 
3283
3285
echo "$as_me:$LINENO: result: $SED" >&5
3284
3286
echo "${ECHO_T}$SED" >&6
3285
3287
 
3356
3358
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3357
3359
      lt_cv_path_LD="$ac_dir/$ac_prog"
3358
3360
      # Check to see if the program is GNU ld.  I'd rather use --version,
3359
 
      # but apparently some GNU ld's only accept -v.
 
3361
      # but apparently some variants of GNU ld only accept -v.
3360
3362
      # Break only if it was the GNU/non-GNU ld that we prefer.
3361
3363
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3362
3364
      *GNU* | *'with BFD'*)
3390
3392
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391
3393
  echo $ECHO_N "(cached) $ECHO_C" >&6
3392
3394
else
3393
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3395
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3394
3396
case `$LD -v 2>&1 </dev/null` in
3395
3397
*GNU* | *'with BFD'*)
3396
3398
  lt_cv_prog_gnu_ld=yes
3423
3425
case $host_os in
3424
3426
  darwin*)
3425
3427
    if test "$GCC" = yes; then
3426
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3428
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3427
3429
    else
3428
3430
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3429
3431
    fi
3439
3441
  # Let the user override the test.
3440
3442
  lt_cv_path_NM="$NM"
3441
3443
else
3442
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3443
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3444
 
    IFS="$lt_save_ifs"
3445
 
    test -z "$ac_dir" && ac_dir=.
3446
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3447
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3448
 
      # Check to see if the nm accepts a BSD-compat flag.
3449
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3450
 
      #   nm: unknown option "B" ignored
3451
 
      # Tru64's nm complains that /dev/null is an invalid object file
3452
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3453
 
      */dev/null* | *'Invalid file or object type'*)
3454
 
        lt_cv_path_NM="$tmp_nm -B"
3455
 
        break
3456
 
        ;;
3457
 
      *)
3458
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3459
 
        */dev/null*)
3460
 
          lt_cv_path_NM="$tmp_nm -p"
 
3444
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3445
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3446
    lt_nm_to_check="$lt_nm_to_check nm"
 
3447
  fi
 
3448
  for lt_tmp_nm in $lt_nm_to_check; do
 
3449
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3450
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3451
      IFS="$lt_save_ifs"
 
3452
      test -z "$ac_dir" && ac_dir=.
 
3453
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3454
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3455
        # Check to see if the nm accepts a BSD-compat flag.
 
3456
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3457
        #   nm: unknown option "B" ignored
 
3458
        # Tru64's nm complains that /dev/null is an invalid object file
 
3459
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3460
        */dev/null* | *'Invalid file or object type'*)
 
3461
          lt_cv_path_NM="$tmp_nm -B"
3461
3462
          break
3462
3463
          ;;
3463
3464
        *)
3464
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3465
 
          continue # so that we can try to find one that supports BSD flags
 
3465
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3466
          */dev/null*)
 
3467
            lt_cv_path_NM="$tmp_nm -p"
 
3468
            break
 
3469
            ;;
 
3470
          *)
 
3471
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3472
            continue # so that we can try to find one that supports BSD flags
 
3473
            ;;
 
3474
          esac
3466
3475
          ;;
3467
3476
        esac
3468
 
      esac
3469
 
    fi
 
3477
      fi
 
3478
    done
 
3479
    IFS="$lt_save_ifs"
3470
3480
  done
3471
 
  IFS="$lt_save_ifs"
3472
3481
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3473
3482
fi
3474
3483
fi
3560
3569
 
3561
3570
hpux10.20* | hpux11*)
3562
3571
  lt_cv_file_magic_cmd=/usr/bin/file
3563
 
  case "$host_cpu" in
 
3572
  case $host_cpu in
3564
3573
  ia64*)
3565
3574
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3566
3575
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3576
3585
  esac
3577
3586
  ;;
3578
3587
 
 
3588
interix3*)
 
3589
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3590
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3591
  ;;
 
3592
 
3579
3593
irix5* | irix6* | nonstopux*)
3580
3594
  case $LD in
3581
3595
  *-32|*"-32 ") libmagic=32-bit;;
3621
3635
  lt_cv_deplibs_check_method=pass_all
3622
3636
  ;;
3623
3637
 
3624
 
sco3.2v5*)
3625
 
  lt_cv_deplibs_check_method=pass_all
3626
 
  ;;
3627
 
 
3628
3638
solaris*)
3629
3639
  lt_cv_deplibs_check_method=pass_all
3630
3640
  ;;
3631
3641
 
3632
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3642
sysv4 | sysv4.3*)
3633
3643
  case $host_vendor in
3634
3644
  motorola)
3635
3645
    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]'
3650
3660
  siemens)
3651
3661
    lt_cv_deplibs_check_method=pass_all
3652
3662
    ;;
 
3663
  pc)
 
3664
    lt_cv_deplibs_check_method=pass_all
 
3665
    ;;
3653
3666
  esac
3654
3667
  ;;
3655
3668
 
3656
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3669
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3657
3670
  lt_cv_deplibs_check_method=pass_all
3658
3671
  ;;
3659
3672
esac
3671
3684
# If no C compiler was specified, use CC.
3672
3685
LTCC=${LTCC-"$CC"}
3673
3686
 
 
3687
# If no C compiler flags were specified, use CFLAGS.
 
3688
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3689
 
3674
3690
# Allow CC to be a program name with arguments.
3675
3691
compiler=$CC
3676
3692
 
3706
3722
  ;;
3707
3723
*-*-irix6*)
3708
3724
  # Find out which ABI we are using.
3709
 
  echo '#line 3709 "configure"' > conftest.$ac_ext
 
3725
  echo '#line 3725 "configure"' > conftest.$ac_ext
3710
3726
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711
3727
  (eval $ac_compile) 2>&5
3712
3728
  ac_status=$?
3749
3765
  ac_status=$?
3750
3766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
3767
  (exit $ac_status); }; then
3752
 
    case "`/usr/bin/file conftest.o`" in
 
3768
    case `/usr/bin/file conftest.o` in
3753
3769
    *32-bit*)
3754
3770
      case $host in
3755
3771
        x86_64-*linux*)
3862
3878
    CFLAGS="$SAVE_CFLAGS"
3863
3879
  fi
3864
3880
  ;;
 
3881
sparc*-*solaris*)
 
3882
  # Find out which ABI we are using.
 
3883
  echo 'int i;' > conftest.$ac_ext
 
3884
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3885
  (eval $ac_compile) 2>&5
 
3886
  ac_status=$?
 
3887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3888
  (exit $ac_status); }; then
 
3889
    case `/usr/bin/file conftest.o` in
 
3890
    *64-bit*)
 
3891
      case $lt_cv_prog_gnu_ld in
 
3892
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3893
      *)    LD="${LD-ld} -64" ;;
 
3894
      esac
 
3895
      ;;
 
3896
    esac
 
3897
  fi
 
3898
  rm -rf conftest*
 
3899
  ;;
 
3900
 
3865
3901
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3866
3902
  if test -n "$ac_tool_prefix"; then
3867
3903
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5527
5563
 
5528
5564
 
5529
5565
# Provide some information about the compiler.
5530
 
echo "$as_me:5530:" \
 
5566
echo "$as_me:5566:" \
5531
5567
     "checking for Fortran 77 compiler version" >&5
5532
5568
ac_compiler=`set X $ac_compile; echo $2`
5533
5569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5724
5760
    elif test -x /usr/sbin/sysctl; then
5725
5761
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5726
5762
    else
5727
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
5763
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5728
5764
    fi
5729
5765
    # And add a safety zone
5730
5766
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5731
5767
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5732
5768
    ;;
 
5769
 
 
5770
  interix*)
 
5771
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5772
    lt_cv_sys_max_cmd_len=196608
 
5773
    ;;
 
5774
 
5733
5775
  osf*)
5734
5776
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5735
5777
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5743
5785
      esac
5744
5786
    fi
5745
5787
    ;;
 
5788
  sco3.2v5*)
 
5789
    lt_cv_sys_max_cmd_len=102400
 
5790
    ;;
 
5791
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5792
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5793
    if test -n "$kargmax"; then
 
5794
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5795
    else
 
5796
      lt_cv_sys_max_cmd_len=32768
 
5797
    fi
 
5798
    ;;
5746
5799
  *)
5747
5800
    # If test is not a shell built-in, we'll probably end up computing a
5748
5801
    # maximum length that is only half of the actual maximum length, but
5828
5881
osf*)
5829
5882
  symcode='[BCDEGQRST]'
5830
5883
  ;;
5831
 
solaris* | sysv5*)
 
5884
solaris*)
5832
5885
  symcode='[BDRT]'
5833
5886
  ;;
 
5887
sco3.2v5*)
 
5888
  symcode='[DT]'
 
5889
  ;;
 
5890
sysv4.2uw2*)
 
5891
  symcode='[DT]'
 
5892
  ;;
 
5893
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5894
  symcode='[ABDT]'
 
5895
  ;;
5834
5896
sysv4)
5835
5897
  symcode='[DFNSTU]'
5836
5898
  ;;
6039
6101
default_ofile=libtool
6040
6102
can_build_shared=yes
6041
6103
 
6042
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6104
# All known linkers require a `.a' archive for static linking (except MSVC,
6043
6105
# which needs '.lib').
6044
6106
libext=a
6045
6107
ltmain="$ac_aux_dir/ltmain.sh"
6296
6358
test -z "$AS" && AS=as
6297
6359
test -z "$CC" && CC=cc
6298
6360
test -z "$LTCC" && LTCC=$CC
 
6361
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6299
6362
test -z "$DLLTOOL" && DLLTOOL=dlltool
6300
6363
test -z "$LD" && LD=ld
6301
6364
test -z "$LN_S" && LN_S="ln -s"
6315
6378
if test -n "$RANLIB"; then
6316
6379
  case $host_os in
6317
6380
  openbsd*)
6318
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6381
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6319
6382
    ;;
6320
6383
  *)
6321
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6384
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6322
6385
    ;;
6323
6386
  esac
6324
6387
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6360
6423
      if test -n "$file_magic_test_file"; then
6361
6424
        case $deplibs_check_method in
6362
6425
        "file_magic "*)
6363
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6426
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6364
6427
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6365
6428
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6366
6429
            $EGREP "$file_magic_regex" > /dev/null; then
6422
6485
      if test -n "$file_magic_test_file"; then
6423
6486
        case $deplibs_check_method in
6424
6487
        "file_magic "*)
6425
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6488
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6426
6489
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6427
6490
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6428
6491
            $EGREP "$file_magic_regex" > /dev/null; then
6517
6580
# If no C compiler was specified, use CC.
6518
6581
LTCC=${LTCC-"$CC"}
6519
6582
 
 
6583
# If no C compiler flags were specified, use CFLAGS.
 
6584
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6585
 
6520
6586
# Allow CC to be a program name with arguments.
6521
6587
compiler=$CC
6522
6588
 
6524
6590
# save warnings/boilerplate of simple test code
6525
6591
ac_outfile=conftest.$ac_objext
6526
6592
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6527
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6593
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6528
6594
_lt_compiler_boilerplate=`cat conftest.err`
6529
6595
$rm conftest*
6530
6596
 
6531
6597
ac_outfile=conftest.$ac_objext
6532
6598
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6533
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6599
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6534
6600
_lt_linker_boilerplate=`cat conftest.err`
6535
6601
$rm conftest*
6536
6602
 
6537
6603
 
6538
 
#
6539
 
# Check for any special shared library compilation flags.
6540
 
#
6541
 
lt_prog_cc_shlib=
6542
 
if test "$GCC" = no; then
6543
 
  case $host_os in
6544
 
  sco3.2v5*)
6545
 
    lt_prog_cc_shlib='-belf'
6546
 
    ;;
6547
 
  esac
6548
 
fi
6549
 
if test -n "$lt_prog_cc_shlib"; then
6550
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6551
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6552
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6553
 
  else
6554
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6555
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6556
 
    lt_cv_prog_cc_can_build_shared=no
6557
 
  fi
6558
 
fi
6559
 
 
6560
 
 
6561
 
#
6562
 
# Check to make sure the static flag actually works.
6563
 
#
6564
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6565
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6566
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6568
 
else
6569
 
  lt_prog_compiler_static_works=no
6570
 
   save_LDFLAGS="$LDFLAGS"
6571
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6572
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6573
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6574
 
     # The compiler can only warn and ignore the option if not recognized
6575
 
     # So say no if there are warnings
6576
 
     if test -s conftest.err; then
6577
 
       # Append any errors to the config.log.
6578
 
       cat conftest.err 1>&5
6579
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6580
 
       $SED '/^$/d' conftest.err >conftest.er2
6581
 
       if diff conftest.exp conftest.er2 >/dev/null; then
6582
 
         lt_prog_compiler_static_works=yes
6583
 
       fi
6584
 
     else
6585
 
       lt_prog_compiler_static_works=yes
6586
 
     fi
6587
 
   fi
6588
 
   $rm conftest*
6589
 
   LDFLAGS="$save_LDFLAGS"
6590
 
 
6591
 
fi
6592
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6593
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6594
 
 
6595
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6596
 
    :
6597
 
else
6598
 
    lt_prog_compiler_static=
6599
 
fi
6600
 
 
6601
 
 
6602
 
 
6603
6604
 
6604
6605
lt_prog_compiler_no_builtin_flag=
6605
6606
 
6622
6623
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6623
6624
   # The option is referenced via a variable to avoid confusing sed.
6624
6625
   lt_compile=`echo "$ac_compile" | $SED \
6625
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6626
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6626
6627
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6627
6628
   -e 's:$: $lt_compiler_flag:'`
6628
 
   (eval echo "\"\$as_me:6628: $lt_compile\"" >&5)
 
6629
   (eval echo "\"\$as_me:6629: $lt_compile\"" >&5)
6629
6630
   (eval "$lt_compile" 2>conftest.err)
6630
6631
   ac_status=$?
6631
6632
   cat conftest.err >&5
6632
 
   echo "$as_me:6632: \$? = $ac_status" >&5
 
6633
   echo "$as_me:6633: \$? = $ac_status" >&5
6633
6634
   if (exit $ac_status) && test -s "$ac_outfile"; then
6634
6635
     # The compiler can only warn and ignore the option if not recognized
6635
6636
     # So say no if there are warnings other than the usual output.
6636
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6637
 
     $SED '/^$/d' conftest.err >conftest.er2
6638
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6637
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6638
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6639
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6639
6640
       lt_cv_prog_compiler_rtti_exceptions=yes
6640
6641
     fi
6641
6642
   fi
6696
6697
      lt_prog_compiler_pic='-fno-common'
6697
6698
      ;;
6698
6699
 
 
6700
    interix3*)
 
6701
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6702
      # Instead, we relocate shared libraries at runtime.
 
6703
      ;;
 
6704
 
6699
6705
    msdosdjgpp*)
6700
6706
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6701
6707
      # on systems that don't support them.
6712
6718
    hpux*)
6713
6719
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6714
6720
      # not for PA HP-UX.
6715
 
      case "$host_cpu" in
 
6721
      case $host_cpu in
6716
6722
      hppa*64*|ia64*)
6717
6723
        # +Z the default
6718
6724
        ;;
6759
6765
      lt_prog_compiler_wl='-Wl,'
6760
6766
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6761
6767
      # not for PA HP-UX.
6762
 
      case "$host_cpu" in
 
6768
      case $host_cpu in
6763
6769
      hppa*64*|ia64*)
6764
6770
        # +Z the default
6765
6771
        ;;
6789
6795
        lt_prog_compiler_pic='-KPIC'
6790
6796
        lt_prog_compiler_static='-static'
6791
6797
        ;;
6792
 
      pgcc* | pgf77* | pgf90*)
 
6798
      pgcc* | pgf77* | pgf90* | pgf95*)
6793
6799
        # Portland Group compilers (*not* the Pentium gcc compiler,
6794
6800
        # which looks to be a dead project)
6795
6801
        lt_prog_compiler_wl='-Wl,'
6796
6802
        lt_prog_compiler_pic='-fpic'
6797
 
        lt_prog_compiler_static='-static'
 
6803
        lt_prog_compiler_static='-Bstatic'
6798
6804
        ;;
6799
6805
      ccc*)
6800
6806
        lt_prog_compiler_wl='-Wl,'
6810
6816
      lt_prog_compiler_static='-non_shared'
6811
6817
      ;;
6812
6818
 
6813
 
    sco3.2v5*)
6814
 
      lt_prog_compiler_pic='-Kpic'
6815
 
      lt_prog_compiler_static='-dn'
6816
 
      ;;
6817
 
 
6818
6819
    solaris*)
6819
6820
      lt_prog_compiler_pic='-KPIC'
6820
6821
      lt_prog_compiler_static='-Bstatic'
6832
6833
      lt_prog_compiler_static='-Bstatic'
6833
6834
      ;;
6834
6835
 
6835
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6836
    sysv4 | sysv4.2uw2* | sysv4.3*)
6836
6837
      lt_prog_compiler_wl='-Wl,'
6837
6838
      lt_prog_compiler_pic='-KPIC'
6838
6839
      lt_prog_compiler_static='-Bstatic'
6845
6846
      fi
6846
6847
      ;;
6847
6848
 
 
6849
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6850
      lt_prog_compiler_wl='-Wl,'
 
6851
      lt_prog_compiler_pic='-KPIC'
 
6852
      lt_prog_compiler_static='-Bstatic'
 
6853
      ;;
 
6854
 
6848
6855
    unicos*)
6849
6856
      lt_prog_compiler_wl='-Wl,'
6850
6857
      lt_prog_compiler_can_build_shared=no
6884
6891
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6885
6892
   # The option is referenced via a variable to avoid confusing sed.
6886
6893
   lt_compile=`echo "$ac_compile" | $SED \
6887
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6894
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6888
6895
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6889
6896
   -e 's:$: $lt_compiler_flag:'`
6890
 
   (eval echo "\"\$as_me:6890: $lt_compile\"" >&5)
 
6897
   (eval echo "\"\$as_me:6897: $lt_compile\"" >&5)
6891
6898
   (eval "$lt_compile" 2>conftest.err)
6892
6899
   ac_status=$?
6893
6900
   cat conftest.err >&5
6894
 
   echo "$as_me:6894: \$? = $ac_status" >&5
 
6901
   echo "$as_me:6901: \$? = $ac_status" >&5
6895
6902
   if (exit $ac_status) && test -s "$ac_outfile"; then
6896
6903
     # The compiler can only warn and ignore the option if not recognized
6897
6904
     # So say no if there are warnings other than the usual output.
6898
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6899
 
     $SED '/^$/d' conftest.err >conftest.er2
6900
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6905
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6906
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6907
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6901
6908
       lt_prog_compiler_pic_works=yes
6902
6909
     fi
6903
6910
   fi
6918
6925
fi
6919
6926
 
6920
6927
fi
6921
 
case "$host_os" in
 
6928
case $host_os in
6922
6929
  # For platforms which do not support PIC, -DPIC is meaningless:
6923
6930
  *djgpp*)
6924
6931
    lt_prog_compiler_pic=
6928
6935
    ;;
6929
6936
esac
6930
6937
 
 
6938
#
 
6939
# Check to make sure the static flag actually works.
 
6940
#
 
6941
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6942
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6943
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6944
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6946
else
 
6947
  lt_prog_compiler_static_works=no
 
6948
   save_LDFLAGS="$LDFLAGS"
 
6949
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6950
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6951
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6952
     # The linker can only warn and ignore the option if not recognized
 
6953
     # So say no if there are warnings
 
6954
     if test -s conftest.err; then
 
6955
       # Append any errors to the config.log.
 
6956
       cat conftest.err 1>&5
 
6957
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6958
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6959
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6960
         lt_prog_compiler_static_works=yes
 
6961
       fi
 
6962
     else
 
6963
       lt_prog_compiler_static_works=yes
 
6964
     fi
 
6965
   fi
 
6966
   $rm conftest*
 
6967
   LDFLAGS="$save_LDFLAGS"
 
6968
 
 
6969
fi
 
6970
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6971
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6972
 
 
6973
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6974
    :
 
6975
else
 
6976
    lt_prog_compiler_static=
 
6977
fi
 
6978
 
 
6979
 
6931
6980
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6932
6981
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6933
6982
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6946
6995
   # Note that $ac_compile itself does not contain backslashes and begins
6947
6996
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6948
6997
   lt_compile=`echo "$ac_compile" | $SED \
6949
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6998
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6950
6999
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6951
7000
   -e 's:$: $lt_compiler_flag:'`
6952
 
   (eval echo "\"\$as_me:6952: $lt_compile\"" >&5)
 
7001
   (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
6953
7002
   (eval "$lt_compile" 2>out/conftest.err)
6954
7003
   ac_status=$?
6955
7004
   cat out/conftest.err >&5
6956
 
   echo "$as_me:6956: \$? = $ac_status" >&5
 
7005
   echo "$as_me:7005: \$? = $ac_status" >&5
6957
7006
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6958
7007
   then
6959
7008
     # The compiler can only warn and ignore the option if not recognized
6960
7009
     # So say no if there are warnings
6961
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6962
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
6963
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7010
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7011
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7012
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6964
7013
       lt_cv_prog_compiler_c_o=yes
6965
7014
     fi
6966
7015
   fi
6967
 
   chmod u+w .
 
7016
   chmod u+w . 2>&5
6968
7017
   $rm conftest*
6969
7018
   # SGI C++ compiler will create directory out/ii_files/ for
6970
7019
   # template instantiation
7060
7109
      with_gnu_ld=no
7061
7110
    fi
7062
7111
    ;;
 
7112
  interix*)
 
7113
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7114
    with_gnu_ld=yes
 
7115
    ;;
7063
7116
  openbsd*)
7064
7117
    with_gnu_ld=no
7065
7118
    ;;
7144
7197
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7145
7198
 
7146
7199
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7147
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7200
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7148
7201
        # If the export-symbols file already is a .def file (1st line
7149
7202
        # is EXPORTS), use it as is; otherwise, prepend...
7150
7203
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7153
7206
          echo EXPORTS > $output_objdir/$soname.def;
7154
7207
          cat $export_symbols >> $output_objdir/$soname.def;
7155
7208
        fi~
7156
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7209
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7157
7210
      else
7158
7211
        ld_shlibs=no
7159
7212
      fi
7160
7213
      ;;
7161
7214
 
 
7215
    interix3*)
 
7216
      hardcode_direct=no
 
7217
      hardcode_shlibpath_var=no
 
7218
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7219
      export_dynamic_flag_spec='${wl}-E'
 
7220
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7221
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7222
      # default) and relocated if they conflict, which is a slow very memory
 
7223
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7224
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7225
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7226
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7227
      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'
 
7228
      ;;
 
7229
 
7162
7230
    linux*)
7163
7231
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7164
7232
        tmp_addflag=
7165
7233
        case $cc_basename,$host_cpu in
7166
7234
        pgcc*)                          # Portland Group C compiler
7167
 
          whole_archive_flag_spec=
 
7235
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7236
          tmp_addflag=' $pic_flag'
7168
7237
          ;;
7169
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7170
 
          whole_archive_flag_spec=
7171
 
          tmp_addflag=' -fpic -Mnomain' ;;
 
7238
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7239
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7240
          tmp_addflag=' $pic_flag -Mnomain' ;;
7172
7241
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7173
7242
          tmp_addflag=' -i_dynamic' ;;
7174
7243
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7199
7268
      fi
7200
7269
      ;;
7201
7270
 
7202
 
    solaris* | sysv5*)
 
7271
    solaris*)
7203
7272
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7204
7273
        ld_shlibs=no
7205
7274
        cat <<EOF 1>&2
7220
7289
      fi
7221
7290
      ;;
7222
7291
 
 
7292
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7293
      case `$LD -v 2>&1` in
 
7294
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7295
        ld_shlibs=no
 
7296
        cat <<_LT_EOF 1>&2
 
7297
 
 
7298
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7299
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7300
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7301
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7302
*** your PATH or compiler configuration so that the native linker is
 
7303
*** used, and then restart.
 
7304
 
 
7305
_LT_EOF
 
7306
        ;;
 
7307
        *)
 
7308
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7309
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7310
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7311
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7312
          else
 
7313
            ld_shlibs=no
 
7314
          fi
 
7315
        ;;
 
7316
      esac
 
7317
      ;;
 
7318
 
7223
7319
    sunos4*)
7224
7320
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225
7321
      wlarc=
7253
7349
      # Note: this linker hardcodes the directories in LIBPATH if there
7254
7350
      # are no directories specified by -L.
7255
7351
      hardcode_minus_L=yes
7256
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7352
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7257
7353
        # Neither direct hardcoding nor static linking is supported with a
7258
7354
        # broken collect2.
7259
7355
        hardcode_direct=unsupported
7287
7383
            break
7288
7384
          fi
7289
7385
          done
 
7386
          ;;
7290
7387
        esac
7291
7388
 
7292
7389
        exp_sym_flag='-bexport'
7324
7421
          hardcode_libdir_flag_spec='-L$libdir'
7325
7422
          hardcode_libdir_separator=
7326
7423
          fi
 
7424
          ;;
7327
7425
        esac
7328
7426
        shared_flag='-shared'
7329
7427
        if test "$aix_use_runtimelinking" = yes; then
7336
7434
        # chokes on -Wl,-G. The following line is correct:
7337
7435
          shared_flag='-G'
7338
7436
        else
7339
 
        if test "$aix_use_runtimelinking" = yes; then
 
7437
          if test "$aix_use_runtimelinking" = yes; then
7340
7438
            shared_flag='${wl}-G'
7341
7439
          else
7342
7440
            shared_flag='${wl}-bM:SRE'
7343
 
        fi
 
7441
          fi
7344
7442
        fi
7345
7443
      fi
7346
7444
 
7405
7503
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7406
7504
 
7407
7505
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7408
 
        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"
 
7506
        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"
7409
7507
       else
7410
7508
        if test "$host_cpu" = ia64; then
7411
7509
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7412
7510
          allow_undefined_flag="-z nodefs"
7413
 
          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"
 
7511
          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"
7414
7512
        else
7415
7513
         # Determine the default libpath from the value encoded in an empty executable.
7416
7514
         cat >conftest.$ac_ext <<_ACEOF
7470
7568
          # -berok will link without error, but may produce a broken library.
7471
7569
          no_undefined_flag=' ${wl}-bernotok'
7472
7570
          allow_undefined_flag=' ${wl}-berok'
7473
 
          # -bexpall does not export symbols beginning with underscore (_)
7474
 
          always_export_symbols=yes
7475
7571
          # Exported symbols can be pulled into shared objects from archives
7476
 
          whole_archive_flag_spec=' '
 
7572
          whole_archive_flag_spec='$convenience'
7477
7573
          archive_cmds_need_lc=yes
7478
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7479
 
          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'
 
7574
          # This is similar to how AIX traditionally builds its shared libraries.
 
7575
          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'
7480
7576
        fi
7481
7577
      fi
7482
7578
      ;;
7515
7611
      ;;
7516
7612
 
7517
7613
    darwin* | rhapsody*)
7518
 
      case "$host_os" in
 
7614
      case $host_os in
7519
7615
        rhapsody* | darwin1.[012])
7520
7616
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7521
7617
         ;;
7544
7640
        output_verbose_link_cmd='echo'
7545
7641
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7546
7642
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7547
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7643
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7548
7644
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7549
7645
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7550
7646
    else
7553
7649
         output_verbose_link_cmd='echo'
7554
7650
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7555
7651
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7556
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7652
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7557
7653
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7558
7654
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7559
7655
          ;;
7617
7713
      export_dynamic_flag_spec='${wl}-E'
7618
7714
      ;;
7619
7715
 
7620
 
    hpux10* | hpux11*)
7621
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7622
 
        case "$host_cpu" in
7623
 
        hppa*64*|ia64*)
 
7716
    hpux10*)
 
7717
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7718
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7719
      else
 
7720
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7721
      fi
 
7722
      if test "$with_gnu_ld" = no; then
 
7723
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7724
        hardcode_libdir_separator=:
 
7725
 
 
7726
        hardcode_direct=yes
 
7727
        export_dynamic_flag_spec='${wl}-E'
 
7728
 
 
7729
        # hardcode_minus_L: Not really in the search PATH,
 
7730
        # but as the default location of the library.
 
7731
        hardcode_minus_L=yes
 
7732
      fi
 
7733
      ;;
 
7734
 
 
7735
    hpux11*)
 
7736
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7737
        case $host_cpu in
 
7738
        hppa*64*)
7624
7739
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7625
7740
          ;;
 
7741
        ia64*)
 
7742
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7743
          ;;
7626
7744
        *)
7627
7745
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7628
7746
          ;;
7629
7747
        esac
7630
7748
      else
7631
 
        case "$host_cpu" in
7632
 
        hppa*64*|ia64*)
7633
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7749
        case $host_cpu in
 
7750
        hppa*64*)
 
7751
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7752
          ;;
 
7753
        ia64*)
 
7754
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7634
7755
          ;;
7635
7756
        *)
7636
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7757
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7637
7758
          ;;
7638
7759
        esac
7639
7760
      fi
7640
7761
      if test "$with_gnu_ld" = no; then
7641
 
        case "$host_cpu" in
7642
 
        hppa*64*)
7643
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7762
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7763
        hardcode_libdir_separator=:
 
7764
 
 
7765
        case $host_cpu in
 
7766
        hppa*64*|ia64*)
7644
7767
          hardcode_libdir_flag_spec_ld='+b $libdir'
7645
 
          hardcode_libdir_separator=:
7646
 
          hardcode_direct=no
7647
 
          hardcode_shlibpath_var=no
7648
 
          ;;
7649
 
        ia64*)
7650
 
          hardcode_libdir_flag_spec='-L$libdir'
7651
 
          hardcode_direct=no
7652
 
          hardcode_shlibpath_var=no
7653
 
 
7654
 
          # hardcode_minus_L: Not really in the search PATH,
7655
 
          # but as the default location of the library.
7656
 
          hardcode_minus_L=yes
 
7768
          hardcode_direct=no
 
7769
          hardcode_shlibpath_var=no
7657
7770
          ;;
7658
7771
        *)
7659
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7660
 
          hardcode_libdir_separator=:
7661
7772
          hardcode_direct=yes
7662
7773
          export_dynamic_flag_spec='${wl}-E'
7663
7774
 
7759
7870
      hardcode_libdir_separator=:
7760
7871
      ;;
7761
7872
 
7762
 
    sco3.2v5*)
7763
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764
 
      hardcode_shlibpath_var=no
7765
 
      export_dynamic_flag_spec='${wl}-Bexport'
7766
 
      runpath_var=LD_RUN_PATH
7767
 
      hardcode_runpath_var=yes
7768
 
      ;;
7769
 
 
7770
7873
    solaris*)
7771
7874
      no_undefined_flag=' -z text'
7772
7875
      if test "$GCC" = yes; then
7852
7955
      fi
7853
7956
      ;;
7854
7957
 
7855
 
    sysv4.2uw2*)
7856
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7857
 
      hardcode_direct=yes
7858
 
      hardcode_minus_L=no
7859
 
      hardcode_shlibpath_var=no
7860
 
      hardcode_runpath_var=yes
7861
 
      runpath_var=LD_RUN_PATH
7862
 
      ;;
7863
 
 
7864
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7865
 
      no_undefined_flag='${wl}-z ${wl}text'
7866
 
      if test "$GCC" = yes; then
7867
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7868
 
      else
7869
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7870
 
      fi
7871
 
      runpath_var='LD_RUN_PATH'
7872
 
      hardcode_shlibpath_var=no
7873
 
      ;;
7874
 
 
7875
 
    sysv5*)
7876
 
      no_undefined_flag=' -z text'
7877
 
      # $CC -shared without GNU ld will not create a library from C++
7878
 
      # object files and a static libstdc++, better avoid it by now
7879
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7881
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7882
 
      hardcode_libdir_flag_spec=
7883
 
      hardcode_shlibpath_var=no
7884
 
      runpath_var='LD_RUN_PATH'
 
7958
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7959
      no_undefined_flag='${wl}-z,text'
 
7960
      archive_cmds_need_lc=no
 
7961
      hardcode_shlibpath_var=no
 
7962
      runpath_var='LD_RUN_PATH'
 
7963
 
 
7964
      if test "$GCC" = yes; then
 
7965
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7966
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7967
      else
 
7968
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7969
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7970
      fi
 
7971
      ;;
 
7972
 
 
7973
    sysv5* | sco3.2v5* | sco5v6*)
 
7974
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7975
      # link with -lc, and that would cause any symbols used from libc to
 
7976
      # always be unresolved, which means just about no library would
 
7977
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7978
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7979
      # as -z defs.
 
7980
      no_undefined_flag='${wl}-z,text'
 
7981
      allow_undefined_flag='${wl}-z,nodefs'
 
7982
      archive_cmds_need_lc=no
 
7983
      hardcode_shlibpath_var=no
 
7984
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7985
      hardcode_libdir_separator=':'
 
7986
      link_all_deplibs=yes
 
7987
      export_dynamic_flag_spec='${wl}-Bexport'
 
7988
      runpath_var='LD_RUN_PATH'
 
7989
 
 
7990
      if test "$GCC" = yes; then
 
7991
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7992
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7993
      else
 
7994
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7995
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7996
      fi
7885
7997
      ;;
7886
7998
 
7887
7999
    uts4*)
7900
8012
echo "${ECHO_T}$ld_shlibs" >&6
7901
8013
test "$ld_shlibs" = no && can_build_shared=no
7902
8014
 
7903
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7904
 
if test "$GCC" = yes; then
7905
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7906
 
fi
7907
 
 
7908
8015
#
7909
8016
# Do we need to explicitly link libc?
7910
8017
#
7937
8044
        libobjs=conftest.$ac_objext
7938
8045
        deplibs=
7939
8046
        wl=$lt_prog_compiler_wl
 
8047
        pic_flag=$lt_prog_compiler_pic
7940
8048
        compiler_flags=-v
7941
8049
        linker_flags=-v
7942
8050
        verstring=
8097
8205
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8098
8206
      dldir=$destdir/`dirname \$dlpath`~
8099
8207
      test -d \$dldir || mkdir -p \$dldir~
8100
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8208
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8209
      chmod a+x \$dldir/$dlname'
8101
8210
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8102
8211
      dlpath=$dir/\$dldll~
8103
8212
       $rm \$dlpath'
8150
8259
  soname_spec='${libname}${release}${major}$shared_ext'
8151
8260
  shlibpath_overrides_runpath=yes
8152
8261
  shlibpath_var=DYLD_LIBRARY_PATH
8153
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8262
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8154
8263
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8155
8264
  if test "$GCC" = yes; then
8156
8265
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8188
8297
freebsd* | dragonfly*)
8189
8298
  # DragonFly does not have aout.  When/if they implement a new
8190
8299
  # versioning mechanism, adjust this.
8191
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8300
  if test -x /usr/bin/objformat; then
 
8301
    objformat=`/usr/bin/objformat`
 
8302
  else
 
8303
    case $host_os in
 
8304
    freebsd[123]*) objformat=aout ;;
 
8305
    *) objformat=elf ;;
 
8306
    esac
 
8307
  fi
8192
8308
  version_type=freebsd-$objformat
8193
8309
  case $version_type in
8194
8310
    freebsd-elf*)
8210
8326
    shlibpath_overrides_runpath=yes
8211
8327
    hardcode_into_libs=yes
8212
8328
    ;;
8213
 
  *) # from 3.2 on
 
8329
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8330
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8214
8331
    shlibpath_overrides_runpath=no
8215
8332
    hardcode_into_libs=yes
8216
8333
    ;;
 
8334
  freebsd*) # from 4.6 on
 
8335
    shlibpath_overrides_runpath=yes
 
8336
    hardcode_into_libs=yes
 
8337
    ;;
8217
8338
  esac
8218
8339
  ;;
8219
8340
 
8233
8354
  version_type=sunos
8234
8355
  need_lib_prefix=no
8235
8356
  need_version=no
8236
 
  case "$host_cpu" in
 
8357
  case $host_cpu in
8237
8358
  ia64*)
8238
8359
    shrext_cmds='.so'
8239
8360
    hardcode_into_libs=yes
8273
8394
  postinstall_cmds='chmod 555 $lib'
8274
8395
  ;;
8275
8396
 
 
8397
interix3*)
 
8398
  version_type=linux
 
8399
  need_lib_prefix=no
 
8400
  need_version=no
 
8401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8402
  soname_spec='${libname}${release}${shared_ext}$major'
 
8403
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8404
  shlibpath_var=LD_LIBRARY_PATH
 
8405
  shlibpath_overrides_runpath=no
 
8406
  hardcode_into_libs=yes
 
8407
  ;;
 
8408
 
8276
8409
irix5* | irix6* | nonstopux*)
8277
8410
  case $host_os in
8278
8411
    nonstopux*) version_type=nonstopux ;;
8334
8467
  libsuff=
8335
8468
  case "$host_cpu" in
8336
8469
  x86_64*|s390x*|powerpc64*)
8337
 
    echo '#line 8337 "configure"' > conftest.$ac_ext
 
8470
    echo '#line 8470 "configure"' > conftest.$ac_ext
8338
8471
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339
8472
  (eval $ac_compile) 2>&5
8340
8473
  ac_status=$?
8353
8486
 
8354
8487
  # Append ld.so.conf contents to the search path
8355
8488
  if test -f /etc/ld.so.conf; then
8356
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8489
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8357
8490
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8358
8491
  fi
8359
8492
 
8415
8548
 
8416
8549
openbsd*)
8417
8550
  version_type=sunos
 
8551
  sys_lib_dlsearch_path_spec="/usr/lib"
8418
8552
  need_lib_prefix=no
8419
 
  need_version=no
 
8553
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8554
  case $host_os in
 
8555
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8556
    *)                         need_version=no  ;;
 
8557
  esac
8420
8558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8421
8559
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8422
8560
  shlibpath_var=LD_LIBRARY_PATH
8454
8592
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8455
8593
  ;;
8456
8594
 
8457
 
sco3.2v5*)
8458
 
  version_type=osf
8459
 
  soname_spec='${libname}${release}${shared_ext}$major'
8460
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461
 
  shlibpath_var=LD_LIBRARY_PATH
8462
 
  ;;
8463
 
 
8464
8595
solaris*)
8465
8596
  version_type=linux
8466
8597
  need_lib_prefix=no
8486
8617
  need_version=yes
8487
8618
  ;;
8488
8619
 
8489
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8620
sysv4 | sysv4.3*)
8490
8621
  version_type=linux
8491
8622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492
8623
  soname_spec='${libname}${release}${shared_ext}$major'
8519
8650
  fi
8520
8651
  ;;
8521
8652
 
 
8653
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8654
  version_type=freebsd-elf
 
8655
  need_lib_prefix=no
 
8656
  need_version=no
 
8657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8658
  soname_spec='${libname}${release}${shared_ext}$major'
 
8659
  shlibpath_var=LD_LIBRARY_PATH
 
8660
  hardcode_into_libs=yes
 
8661
  if test "$with_gnu_ld" = yes; then
 
8662
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8663
    shlibpath_overrides_runpath=no
 
8664
  else
 
8665
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8666
    shlibpath_overrides_runpath=yes
 
8667
    case $host_os in
 
8668
      sco3.2v5*)
 
8669
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8670
        ;;
 
8671
    esac
 
8672
  fi
 
8673
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8674
  ;;
 
8675
 
8522
8676
uts4*)
8523
8677
  version_type=linux
8524
8678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534
8688
echo "${ECHO_T}$dynamic_linker" >&6
8535
8689
test "$dynamic_linker" = no && can_build_shared=no
8536
8690
 
 
8691
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8692
if test "$GCC" = yes; then
 
8693
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8694
fi
 
8695
 
8537
8696
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8538
8697
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8539
8698
hardcode_action=
9189
9348
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9190
9349
 
9191
9350
    save_LDFLAGS="$LDFLAGS"
9192
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9351
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9193
9352
 
9194
9353
    save_LIBS="$LIBS"
9195
9354
    LIBS="$lt_cv_dlopen_libs $LIBS"
9205
9364
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9206
9365
  lt_status=$lt_dlunknown
9207
9366
  cat > conftest.$ac_ext <<EOF
9208
 
#line 9208 "configure"
 
9367
#line 9367 "configure"
9209
9368
#include "confdefs.h"
9210
9369
 
9211
9370
#if HAVE_DLFCN_H
9262
9421
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9263
9422
      /* dlclose (self); */
9264
9423
    }
 
9424
  else
 
9425
    puts (dlerror ());
9265
9426
 
9266
9427
    exit (status);
9267
9428
}
9271
9432
  ac_status=$?
9272
9433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273
9434
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9274
 
    (./conftest; exit; ) 2>/dev/null
 
9435
    (./conftest; exit; ) >&5 2>/dev/null
9275
9436
    lt_status=$?
9276
9437
    case x$lt_status in
9277
9438
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9278
9439
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9279
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9440
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9280
9441
    esac
9281
9442
  else :
9282
9443
    # compilation failed
9291
9452
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9292
9453
 
9293
9454
    if test "x$lt_cv_dlopen_self" = xyes; then
9294
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9455
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9295
9456
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9296
9457
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9297
9458
if test "${lt_cv_dlopen_self_static+set}" = set; then
9303
9464
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9304
9465
  lt_status=$lt_dlunknown
9305
9466
  cat > conftest.$ac_ext <<EOF
9306
 
#line 9306 "configure"
 
9467
#line 9467 "configure"
9307
9468
#include "confdefs.h"
9308
9469
 
9309
9470
#if HAVE_DLFCN_H
9360
9521
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9361
9522
      /* dlclose (self); */
9362
9523
    }
 
9524
  else
 
9525
    puts (dlerror ());
9363
9526
 
9364
9527
    exit (status);
9365
9528
}
9369
9532
  ac_status=$?
9370
9533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371
9534
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9372
 
    (./conftest; exit; ) 2>/dev/null
 
9535
    (./conftest; exit; ) >&5 2>/dev/null
9373
9536
    lt_status=$?
9374
9537
    case x$lt_status in
9375
9538
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9376
9539
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9377
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9540
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9378
9541
    esac
9379
9542
  else :
9380
9543
    # compilation failed
9407
9570
fi
9408
9571
 
9409
9572
 
9410
 
# Report which librarie types wil actually be built
 
9573
# Report which library types will actually be built
9411
9574
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9412
9575
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9413
9576
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9419
9582
 
9420
9583
# On AIX, shared libraries and static libraries use the same namespace, and
9421
9584
# are all built from PIC.
9422
 
case "$host_os" in
 
9585
case $host_os in
9423
9586
aix3*)
9424
9587
  test "$enable_shared" = yes && enable_static=no
9425
9588
  if test -n "$RANLIB"; then
9457
9620
  # Now quote all the things that may contain metacharacters while being
9458
9621
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9459
9622
  # variables and quote the copies for generation of the libtool script.
9460
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9623
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9461
9624
    SED SHELL STRIP \
9462
9625
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9463
9626
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9623
9786
# A C compiler.
9624
9787
LTCC=$lt_LTCC
9625
9788
 
 
9789
# LTCC compiler flags.
 
9790
LTCFLAGS=$lt_LTCFLAGS
 
9791
 
9626
9792
# A language-specific compiler.
9627
9793
CC=$lt_compiler
9628
9794
 
9629
9795
# Is the compiler the GNU C compiler?
9630
9796
with_gcc=$GCC
9631
9797
 
 
9798
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
9799
gcc_ver=\`gcc -dumpversion\`
 
9800
 
9632
9801
# An ERE matcher.
9633
9802
EGREP=$lt_EGREP
9634
9803
 
9762
9931
 
9763
9932
# Dependencies to place before the objects being linked to create a
9764
9933
# shared library.
9765
 
predep_objects=$lt_predep_objects
 
9934
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9766
9935
 
9767
9936
# Dependencies to place after the objects being linked to create a
9768
9937
# shared library.
9769
 
postdep_objects=$lt_postdep_objects
 
9938
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9770
9939
 
9771
9940
# Dependencies to place before the objects being linked to create a
9772
9941
# shared library.
9778
9947
 
9779
9948
# The library search path used internally by the compiler when linking
9780
9949
# a shared library.
9781
 
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9950
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9782
9951
 
9783
9952
# Method to check whether dependent libraries are shared objects.
9784
9953
deplibs_check_method=$lt_deplibs_check_method
9858
10027
link_all_deplibs=$link_all_deplibs
9859
10028
 
9860
10029
# Compile-time system search path for libraries
9861
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10030
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9862
10031
 
9863
10032
# Run-time system search path for libraries
9864
10033
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9953
10122
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9954
10123
    fi
9955
10124
  fi
 
10125
  if test -z "$LTCFLAGS"; then
 
10126
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10127
  fi
9956
10128
 
9957
10129
  # Extract list of available tagged configurations in $ofile.
9958
10130
  # Note that this assumes the entire list is on one line.
10005
10177
hardcode_libdir_flag_spec_ld_CXX=
10006
10178
hardcode_libdir_separator_CXX=
10007
10179
hardcode_minus_L_CXX=no
 
10180
hardcode_shlibpath_var_CXX=unsupported
10008
10181
hardcode_automatic_CXX=no
10009
10182
module_cmds_CXX=
10010
10183
module_expsym_cmds_CXX=
10022
10195
compiler_lib_search_path_CXX=
10023
10196
 
10024
10197
# Source file extension for C++ test sources.
10025
 
ac_ext=cc
 
10198
ac_ext=cpp
10026
10199
 
10027
10200
# Object file extension for compiled C++ test sources.
10028
10201
objext=o
10032
10205
lt_simple_compile_test_code="int some_variable = 0;\n"
10033
10206
 
10034
10207
# Code to be used in simple link tests
10035
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10208
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10036
10209
 
10037
10210
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10038
10211
 
10039
10212
# If no C compiler was specified, use CC.
10040
10213
LTCC=${LTCC-"$CC"}
10041
10214
 
 
10215
# If no C compiler flags were specified, use CFLAGS.
 
10216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10217
 
10042
10218
# Allow CC to be a program name with arguments.
10043
10219
compiler=$CC
10044
10220
 
10046
10222
# save warnings/boilerplate of simple test code
10047
10223
ac_outfile=conftest.$ac_objext
10048
10224
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10049
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10225
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10050
10226
_lt_compiler_boilerplate=`cat conftest.err`
10051
10227
$rm conftest*
10052
10228
 
10053
10229
ac_outfile=conftest.$ac_objext
10054
10230
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10055
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10231
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10056
10232
_lt_linker_boilerplate=`cat conftest.err`
10057
10233
$rm conftest*
10058
10234
 
10067
10243
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10068
10244
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10069
10245
else
10070
 
  unset lt_cv_prog_gnu_ld
 
10246
  $as_unset lt_cv_prog_gnu_ld
10071
10247
fi
10072
10248
if test -n "${lt_cv_path_LDCXX+set}"; then
10073
10249
  lt_cv_path_LD=$lt_cv_path_LDCXX
10074
10250
else
10075
 
  unset lt_cv_path_LD
 
10251
  $as_unset lt_cv_path_LD
10076
10252
fi
10077
10253
test -z "${LDCXX+set}" || LD=$LDCXX
10078
10254
CC=${CXX-"c++"}
10158
10334
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10159
10335
      lt_cv_path_LD="$ac_dir/$ac_prog"
10160
10336
      # Check to see if the program is GNU ld.  I'd rather use --version,
10161
 
      # but apparently some GNU ld's only accept -v.
 
10337
      # but apparently some variants of GNU ld only accept -v.
10162
10338
      # Break only if it was the GNU/non-GNU ld that we prefer.
10163
10339
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10164
10340
      *GNU* | *'with BFD'*)
10192
10368
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10193
10369
  echo $ECHO_N "(cached) $ECHO_C" >&6
10194
10370
else
10195
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10371
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10196
10372
case `$LD -v 2>&1 </dev/null` in
10197
10373
*GNU* | *'with BFD'*)
10198
10374
  lt_cv_prog_gnu_ld=yes
10283
10459
            ;;
10284
10460
          esac
10285
10461
        done
 
10462
        ;;
10286
10463
      esac
10287
10464
 
10288
10465
      exp_sym_flag='-bexport'
10320
10497
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10321
10498
          hardcode_libdir_separator_CXX=
10322
10499
        fi
 
10500
        ;;
10323
10501
      esac
10324
10502
      shared_flag='-shared'
10325
10503
      if test "$aix_use_runtimelinking" = yes; then
10402
10580
 
10403
10581
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10404
10582
 
10405
 
      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"
 
10583
      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"
10406
10584
     else
10407
10585
      if test "$host_cpu" = ia64; then
10408
10586
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10409
10587
        allow_undefined_flag_CXX="-z nodefs"
10410
 
        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"
 
10588
        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"
10411
10589
      else
10412
10590
        # Determine the default libpath from the value encoded in an empty executable.
10413
10591
        cat >conftest.$ac_ext <<_ACEOF
10467
10645
        # -berok will link without error, but may produce a broken library.
10468
10646
        no_undefined_flag_CXX=' ${wl}-bernotok'
10469
10647
        allow_undefined_flag_CXX=' ${wl}-berok'
10470
 
        # -bexpall does not export symbols beginning with underscore (_)
10471
 
        always_export_symbols_CXX=yes
10472
10648
        # Exported symbols can be pulled into shared objects from archives
10473
 
        whole_archive_flag_spec_CXX=' '
 
10649
        whole_archive_flag_spec_CXX='$convenience'
10474
10650
        archive_cmds_need_lc_CXX=yes
10475
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10476
 
        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'
 
10651
        # This is similar to how AIX traditionally builds its shared libraries.
 
10652
        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'
10477
10653
      fi
10478
10654
    fi
10479
10655
    ;;
 
10656
 
 
10657
  beos*)
 
10658
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10659
      allow_undefined_flag_CXX=unsupported
 
10660
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10661
      # support --undefined.  This deserves some investigation.  FIXME
 
10662
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10663
    else
 
10664
      ld_shlibs_CXX=no
 
10665
    fi
 
10666
    ;;
 
10667
 
10480
10668
  chorus*)
10481
10669
    case $cc_basename in
10482
10670
      *)
10486
10674
    esac
10487
10675
    ;;
10488
10676
 
10489
 
 
10490
10677
  cygwin* | mingw* | pw32*)
10491
10678
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10492
10679
    # as there is no search path for DLLs.
10496
10683
    enable_shared_with_static_runtimes_CXX=yes
10497
10684
 
10498
10685
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10499
 
      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'
 
10686
      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'
10500
10687
      # If the export-symbols file already is a .def file (1st line
10501
10688
      # is EXPORTS), use it as is; otherwise, prepend...
10502
10689
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10505
10692
        echo EXPORTS > $output_objdir/$soname.def;
10506
10693
        cat $export_symbols >> $output_objdir/$soname.def;
10507
10694
      fi~
10508
 
      $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'
 
10695
      $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'
10509
10696
    else
10510
10697
      ld_shlibs_CXX=no
10511
10698
    fi
10512
10699
  ;;
10513
10700
      darwin* | rhapsody*)
10514
 
        case "$host_os" in
 
10701
        case $host_os in
10515
10702
        rhapsody* | darwin1.[012])
10516
10703
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10517
10704
         ;;
10549
10736
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10550
10737
        fi
10551
10738
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10552
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10739
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10553
10740
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10554
10741
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10555
10742
          else
10562
10749
         output_verbose_link_cmd='echo'
10563
10750
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10564
10751
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10565
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10752
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10566
10753
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10567
10754
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10568
10755
          ;;
10642
10829
    ;;
10643
10830
  hpux10*|hpux11*)
10644
10831
    if test $with_gnu_ld = no; then
10645
 
      case "$host_cpu" in
10646
 
      hppa*64*)
10647
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10832
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10833
      hardcode_libdir_separator_CXX=:
 
10834
 
 
10835
      case $host_cpu in
 
10836
      hppa*64*|ia64*)
10648
10837
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10649
 
        hardcode_libdir_separator_CXX=:
10650
 
        ;;
10651
 
      ia64*)
10652
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10653
10838
        ;;
10654
10839
      *)
10655
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10656
 
        hardcode_libdir_separator_CXX=:
10657
10840
        export_dynamic_flag_spec_CXX='${wl}-E'
10658
10841
        ;;
10659
10842
      esac
10660
10843
    fi
10661
 
    case "$host_cpu" in
10662
 
    hppa*64*)
10663
 
      hardcode_direct_CXX=no
10664
 
      hardcode_shlibpath_var_CXX=no
10665
 
      ;;
10666
 
    ia64*)
10667
 
      hardcode_direct_CXX=no
10668
 
      hardcode_shlibpath_var_CXX=no
10669
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10670
 
                                              # but as the default
10671
 
                                              # location of the library.
 
10844
    case $host_cpu in
 
10845
    hppa*64*|ia64*)
 
10846
      hardcode_direct_CXX=no
 
10847
      hardcode_shlibpath_var_CXX=no
10672
10848
      ;;
10673
10849
    *)
10674
10850
      hardcode_direct_CXX=yes
10684
10860
        ld_shlibs_CXX=no
10685
10861
        ;;
10686
10862
      aCC*)
10687
 
        case "$host_cpu" in
10688
 
        hppa*64*|ia64*)
10689
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10863
        case $host_cpu in
 
10864
        hppa*64*)
 
10865
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10866
          ;;
 
10867
        ia64*)
 
10868
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10690
10869
          ;;
10691
10870
        *)
10692
10871
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10705
10884
      *)
10706
10885
        if test "$GXX" = yes; then
10707
10886
          if test $with_gnu_ld = no; then
10708
 
            case "$host_cpu" in
10709
 
            ia64*|hppa*64*)
10710
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10887
            case $host_cpu in
 
10888
            hppa*64*)
 
10889
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10890
              ;;
 
10891
            ia64*)
 
10892
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10711
10893
              ;;
10712
10894
            *)
10713
10895
              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'
10721
10903
        ;;
10722
10904
    esac
10723
10905
    ;;
 
10906
  interix3*)
 
10907
    hardcode_direct_CXX=no
 
10908
    hardcode_shlibpath_var_CXX=no
 
10909
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10910
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10911
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10912
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10913
    # default) and relocated if they conflict, which is a slow very memory
 
10914
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10915
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10916
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10917
    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'
 
10918
    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'
 
10919
    ;;
10724
10920
  irix5* | irix6*)
10725
10921
    case $cc_basename in
10726
10922
      CC*)
10801
10997
        ;;
10802
10998
      pgCC*)
10803
10999
        # Portland Group C++ compiler
10804
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10805
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11000
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11001
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10806
11002
 
10807
11003
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10808
11004
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10809
 
        whole_archive_flag_spec_CXX=''
 
11005
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10810
11006
        ;;
10811
11007
      cxx*)
10812
11008
        # Compaq C++
11003
11199
    # FIXME: insert proper C++ library support
11004
11200
    ld_shlibs_CXX=no
11005
11201
    ;;
11006
 
  sco*)
11007
 
    archive_cmds_need_lc_CXX=no
11008
 
    case $cc_basename in
11009
 
      CC*)
11010
 
        # FIXME: insert proper C++ library support
11011
 
        ld_shlibs_CXX=no
11012
 
        ;;
11013
 
      *)
11014
 
        # FIXME: insert proper C++ library support
11015
 
        ld_shlibs_CXX=no
11016
 
        ;;
11017
 
    esac
11018
 
    ;;
11019
11202
  sunos4*)
11020
11203
    case $cc_basename in
11021
11204
      CC*)
11038
11221
    case $cc_basename in
11039
11222
      CC*)
11040
11223
        # Sun C++ 4.2, 5.x and Centerline C++
 
11224
        archive_cmds_need_lc_CXX=yes
11041
11225
        no_undefined_flag_CXX=' -zdefs'
11042
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11226
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11043
11227
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11044
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11228
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11045
11229
 
11046
11230
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11047
11231
        hardcode_shlibpath_var_CXX=no
11061
11245
        esac
11062
11246
        link_all_deplibs_CXX=yes
11063
11247
 
11064
 
        # Commands to make compiler produce verbose output that lists
11065
 
        # what "hidden" libraries, object files and flags are used when
11066
 
        # linking a shared library.
11067
 
        #
11068
 
        # There doesn't appear to be a way to prevent this compiler from
11069
 
        # explicitly linking system object files so we need to strip them
11070
 
        # from the output so that they don't get included in the library
11071
 
        # dependencies.
11072
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11248
        output_verbose_link_cmd='echo'
11073
11249
 
11074
11250
        # Archives containing C++ object files must be created using
11075
11251
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11115
11291
        ;;
11116
11292
    esac
11117
11293
    ;;
11118
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11119
 
    archive_cmds_need_lc_CXX=no
 
11294
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11295
    no_undefined_flag_CXX='${wl}-z,text'
 
11296
    archive_cmds_need_lc_CXX=no
 
11297
    hardcode_shlibpath_var_CXX=no
 
11298
    runpath_var='LD_RUN_PATH'
 
11299
 
 
11300
    case $cc_basename in
 
11301
      CC*)
 
11302
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11303
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11304
        ;;
 
11305
      *)
 
11306
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11307
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11308
        ;;
 
11309
    esac
 
11310
    ;;
 
11311
  sysv5* | sco3.2v5* | sco5v6*)
 
11312
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11313
    # link with -lc, and that would cause any symbols used from libc to
 
11314
    # always be unresolved, which means just about no library would
 
11315
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11316
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11317
    # as -z defs.
 
11318
    # For security reasons, it is highly recommended that you always
 
11319
    # use absolute paths for naming shared libraries, and exclude the
 
11320
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11321
    # requires that you compile everything twice, which is a pain.
 
11322
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11323
    # non-empty value in the environment.  Most likely only useful for
 
11324
    # creating official distributions of packages.
 
11325
    # This is a hack until libtool officially supports absolute path
 
11326
    # names for shared libraries.
 
11327
    no_undefined_flag_CXX='${wl}-z,text'
 
11328
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11329
    archive_cmds_need_lc_CXX=no
 
11330
    hardcode_shlibpath_var_CXX=no
 
11331
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11332
    hardcode_libdir_separator_CXX=':'
 
11333
    link_all_deplibs_CXX=yes
 
11334
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11335
    runpath_var='LD_RUN_PATH'
 
11336
 
 
11337
    case $cc_basename in
 
11338
      CC*)
 
11339
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11340
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11341
        ;;
 
11342
      *)
 
11343
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11344
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11345
        ;;
 
11346
    esac
11120
11347
    ;;
11121
11348
  tandem*)
11122
11349
    case $cc_basename in
11173
11400
  # The `*' in the case matches for architectures that use `case' in
11174
11401
  # $output_verbose_cmd can trigger glob expansion during the loop
11175
11402
  # eval without this substitution.
11176
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11403
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11177
11404
 
11178
11405
  for p in `eval $output_verbose_link_cmd`; do
11179
11406
    case $p in
11249
11476
 
11250
11477
$rm -f confest.$objext
11251
11478
 
 
11479
# PORTME: override above test on systems where it is broken
 
11480
case $host_os in
 
11481
interix3*)
 
11482
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11483
  # hack all around it, let's just trust "g++" to DTRT.
 
11484
  predep_objects_CXX=
 
11485
  postdep_objects_CXX=
 
11486
  postdeps_CXX=
 
11487
  ;;
 
11488
 
 
11489
solaris*)
 
11490
  case $cc_basename in
 
11491
  CC*)
 
11492
    # Adding this requires a known-good setup of shared libraries for
 
11493
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11494
    # archive will be linked into the output, leading to subtle bugs.
 
11495
    postdeps_CXX='-lCstd -lCrun'
 
11496
    ;;
 
11497
  esac
 
11498
  ;;
 
11499
esac
 
11500
 
 
11501
 
11252
11502
case " $postdeps_CXX " in
11253
11503
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11254
11504
esac
11296
11546
      # DJGPP does not support shared libraries at all
11297
11547
      lt_prog_compiler_pic_CXX=
11298
11548
      ;;
 
11549
    interix3*)
 
11550
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11551
      # Instead, we relocate shared libraries at runtime.
 
11552
      ;;
11299
11553
    sysv4*MP*)
11300
11554
      if test -d /usr/nec; then
11301
11555
        lt_prog_compiler_pic_CXX=-Kconform_pic
11304
11558
    hpux*)
11305
11559
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11306
11560
      # not for PA HP-UX.
11307
 
      case "$host_cpu" in
 
11561
      case $host_cpu in
11308
11562
      hppa*64*|ia64*)
11309
11563
        ;;
11310
11564
      *)
11365
11619
        case $cc_basename in
11366
11620
          CC*)
11367
11621
            lt_prog_compiler_wl_CXX='-Wl,'
11368
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11622
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11369
11623
            if test "$host_cpu" != ia64; then
11370
11624
              lt_prog_compiler_pic_CXX='+Z'
11371
11625
            fi
11372
11626
            ;;
11373
11627
          aCC*)
11374
11628
            lt_prog_compiler_wl_CXX='-Wl,'
11375
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11376
 
            case "$host_cpu" in
 
11629
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11630
            case $host_cpu in
11377
11631
            hppa*64*|ia64*)
11378
11632
              # +Z the default
11379
11633
              ;;
11386
11640
            ;;
11387
11641
        esac
11388
11642
        ;;
 
11643
      interix*)
 
11644
        # This is c89, which is MS Visual C++ (no shared libs)
 
11645
        # Anyone wants to do a port?
 
11646
        ;;
11389
11647
      irix5* | irix6* | nonstopux*)
11390
11648
        case $cc_basename in
11391
11649
          CC*)
11414
11672
            # Portland Group C++ compiler.
11415
11673
            lt_prog_compiler_wl_CXX='-Wl,'
11416
11674
            lt_prog_compiler_pic_CXX='-fpic'
11417
 
            lt_prog_compiler_static_CXX='-static'
 
11675
            lt_prog_compiler_static_CXX='-Bstatic'
11418
11676
            ;;
11419
11677
          cxx*)
11420
11678
            # Compaq C++
11465
11723
        ;;
11466
11724
      psos*)
11467
11725
        ;;
11468
 
      sco*)
11469
 
        case $cc_basename in
11470
 
          CC*)
11471
 
            lt_prog_compiler_pic_CXX='-fPIC'
11472
 
            ;;
11473
 
          *)
11474
 
            ;;
11475
 
        esac
11476
 
        ;;
11477
11726
      solaris*)
11478
11727
        case $cc_basename in
11479
11728
          CC*)
11515
11764
            ;;
11516
11765
        esac
11517
11766
        ;;
11518
 
      unixware*)
 
11767
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11768
        case $cc_basename in
 
11769
          CC*)
 
11770
            lt_prog_compiler_wl_CXX='-Wl,'
 
11771
            lt_prog_compiler_pic_CXX='-KPIC'
 
11772
            lt_prog_compiler_static_CXX='-Bstatic'
 
11773
            ;;
 
11774
        esac
11519
11775
        ;;
11520
11776
      vxworks*)
11521
11777
        ;;
11548
11804
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11549
11805
   # The option is referenced via a variable to avoid confusing sed.
11550
11806
   lt_compile=`echo "$ac_compile" | $SED \
11551
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11807
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11552
11808
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11553
11809
   -e 's:$: $lt_compiler_flag:'`
11554
 
   (eval echo "\"\$as_me:11554: $lt_compile\"" >&5)
 
11810
   (eval echo "\"\$as_me:11810: $lt_compile\"" >&5)
11555
11811
   (eval "$lt_compile" 2>conftest.err)
11556
11812
   ac_status=$?
11557
11813
   cat conftest.err >&5
11558
 
   echo "$as_me:11558: \$? = $ac_status" >&5
 
11814
   echo "$as_me:11814: \$? = $ac_status" >&5
11559
11815
   if (exit $ac_status) && test -s "$ac_outfile"; then
11560
11816
     # The compiler can only warn and ignore the option if not recognized
11561
11817
     # So say no if there are warnings other than the usual output.
11562
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11563
 
     $SED '/^$/d' conftest.err >conftest.er2
11564
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
11818
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11819
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11820
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11565
11821
       lt_prog_compiler_pic_works_CXX=yes
11566
11822
     fi
11567
11823
   fi
11582
11838
fi
11583
11839
 
11584
11840
fi
11585
 
case "$host_os" in
 
11841
case $host_os in
11586
11842
  # For platforms which do not support PIC, -DPIC is meaningless:
11587
11843
  *djgpp*)
11588
11844
    lt_prog_compiler_pic_CXX=
11592
11848
    ;;
11593
11849
esac
11594
11850
 
 
11851
#
 
11852
# Check to make sure the static flag actually works.
 
11853
#
 
11854
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11855
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11856
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11857
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11859
else
 
11860
  lt_prog_compiler_static_works_CXX=no
 
11861
   save_LDFLAGS="$LDFLAGS"
 
11862
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11863
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11864
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11865
     # The linker can only warn and ignore the option if not recognized
 
11866
     # So say no if there are warnings
 
11867
     if test -s conftest.err; then
 
11868
       # Append any errors to the config.log.
 
11869
       cat conftest.err 1>&5
 
11870
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11871
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11872
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11873
         lt_prog_compiler_static_works_CXX=yes
 
11874
       fi
 
11875
     else
 
11876
       lt_prog_compiler_static_works_CXX=yes
 
11877
     fi
 
11878
   fi
 
11879
   $rm conftest*
 
11880
   LDFLAGS="$save_LDFLAGS"
 
11881
 
 
11882
fi
 
11883
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11884
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11885
 
 
11886
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11887
    :
 
11888
else
 
11889
    lt_prog_compiler_static_CXX=
 
11890
fi
 
11891
 
 
11892
 
11595
11893
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11596
11894
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11597
11895
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11610
11908
   # Note that $ac_compile itself does not contain backslashes and begins
11611
11909
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11612
11910
   lt_compile=`echo "$ac_compile" | $SED \
11613
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11614
11912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11615
11913
   -e 's:$: $lt_compiler_flag:'`
11616
 
   (eval echo "\"\$as_me:11616: $lt_compile\"" >&5)
 
11914
   (eval echo "\"\$as_me:11914: $lt_compile\"" >&5)
11617
11915
   (eval "$lt_compile" 2>out/conftest.err)
11618
11916
   ac_status=$?
11619
11917
   cat out/conftest.err >&5
11620
 
   echo "$as_me:11620: \$? = $ac_status" >&5
 
11918
   echo "$as_me:11918: \$? = $ac_status" >&5
11621
11919
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11622
11920
   then
11623
11921
     # The compiler can only warn and ignore the option if not recognized
11624
11922
     # So say no if there are warnings
11625
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11626
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
11627
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11923
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11924
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11925
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11628
11926
       lt_cv_prog_compiler_c_o_CXX=yes
11629
11927
     fi
11630
11928
   fi
11631
 
   chmod u+w .
 
11929
   chmod u+w . 2>&5
11632
11930
   $rm conftest*
11633
11931
   # SGI C++ compiler will create directory out/ii_files/ for
11634
11932
   # template instantiation
11694
11992
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11695
11993
test "$ld_shlibs_CXX" = no && can_build_shared=no
11696
11994
 
11697
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11698
 
if test "$GCC" = yes; then
11699
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11700
 
fi
11701
 
 
11702
11995
#
11703
11996
# Do we need to explicitly link libc?
11704
11997
#
11731
12024
        libobjs=conftest.$ac_objext
11732
12025
        deplibs=
11733
12026
        wl=$lt_prog_compiler_wl_CXX
 
12027
        pic_flag=$lt_prog_compiler_pic_CXX
11734
12028
        compiler_flags=-v
11735
12029
        linker_flags=-v
11736
12030
        verstring=
11891
12185
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11892
12186
      dldir=$destdir/`dirname \$dlpath`~
11893
12187
      test -d \$dldir || mkdir -p \$dldir~
11894
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12188
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12189
      chmod a+x \$dldir/$dlname'
11895
12190
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11896
12191
      dlpath=$dir/\$dldll~
11897
12192
       $rm \$dlpath'
11944
12239
  soname_spec='${libname}${release}${major}$shared_ext'
11945
12240
  shlibpath_overrides_runpath=yes
11946
12241
  shlibpath_var=DYLD_LIBRARY_PATH
11947
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12242
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11948
12243
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11949
12244
  if test "$GCC" = yes; then
11950
12245
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11982
12277
freebsd* | dragonfly*)
11983
12278
  # DragonFly does not have aout.  When/if they implement a new
11984
12279
  # versioning mechanism, adjust this.
11985
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12280
  if test -x /usr/bin/objformat; then
 
12281
    objformat=`/usr/bin/objformat`
 
12282
  else
 
12283
    case $host_os in
 
12284
    freebsd[123]*) objformat=aout ;;
 
12285
    *) objformat=elf ;;
 
12286
    esac
 
12287
  fi
11986
12288
  version_type=freebsd-$objformat
11987
12289
  case $version_type in
11988
12290
    freebsd-elf*)
12004
12306
    shlibpath_overrides_runpath=yes
12005
12307
    hardcode_into_libs=yes
12006
12308
    ;;
12007
 
  *) # from 3.2 on
 
12309
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12310
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008
12311
    shlibpath_overrides_runpath=no
12009
12312
    hardcode_into_libs=yes
12010
12313
    ;;
 
12314
  freebsd*) # from 4.6 on
 
12315
    shlibpath_overrides_runpath=yes
 
12316
    hardcode_into_libs=yes
 
12317
    ;;
12011
12318
  esac
12012
12319
  ;;
12013
12320
 
12027
12334
  version_type=sunos
12028
12335
  need_lib_prefix=no
12029
12336
  need_version=no
12030
 
  case "$host_cpu" in
 
12337
  case $host_cpu in
12031
12338
  ia64*)
12032
12339
    shrext_cmds='.so'
12033
12340
    hardcode_into_libs=yes
12067
12374
  postinstall_cmds='chmod 555 $lib'
12068
12375
  ;;
12069
12376
 
 
12377
interix3*)
 
12378
  version_type=linux
 
12379
  need_lib_prefix=no
 
12380
  need_version=no
 
12381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12382
  soname_spec='${libname}${release}${shared_ext}$major'
 
12383
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12384
  shlibpath_var=LD_LIBRARY_PATH
 
12385
  shlibpath_overrides_runpath=no
 
12386
  hardcode_into_libs=yes
 
12387
  ;;
 
12388
 
12070
12389
irix5* | irix6* | nonstopux*)
12071
12390
  case $host_os in
12072
12391
    nonstopux*) version_type=nonstopux ;;
12128
12447
  libsuff=
12129
12448
  case "$host_cpu" in
12130
12449
  x86_64*|s390x*|powerpc64*)
12131
 
    echo '#line 12131 "configure"' > conftest.$ac_ext
 
12450
    echo '#line 12450 "configure"' > conftest.$ac_ext
12132
12451
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133
12452
  (eval $ac_compile) 2>&5
12134
12453
  ac_status=$?
12147
12466
 
12148
12467
  # Append ld.so.conf contents to the search path
12149
12468
  if test -f /etc/ld.so.conf; then
12150
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12469
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12151
12470
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12152
12471
  fi
12153
12472
 
12209
12528
 
12210
12529
openbsd*)
12211
12530
  version_type=sunos
 
12531
  sys_lib_dlsearch_path_spec="/usr/lib"
12212
12532
  need_lib_prefix=no
12213
 
  need_version=no
 
12533
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12534
  case $host_os in
 
12535
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12536
    *)                         need_version=no  ;;
 
12537
  esac
12214
12538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12215
12539
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12216
12540
  shlibpath_var=LD_LIBRARY_PATH
12248
12572
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12249
12573
  ;;
12250
12574
 
12251
 
sco3.2v5*)
12252
 
  version_type=osf
12253
 
  soname_spec='${libname}${release}${shared_ext}$major'
12254
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255
 
  shlibpath_var=LD_LIBRARY_PATH
12256
 
  ;;
12257
 
 
12258
12575
solaris*)
12259
12576
  version_type=linux
12260
12577
  need_lib_prefix=no
12280
12597
  need_version=yes
12281
12598
  ;;
12282
12599
 
12283
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12600
sysv4 | sysv4.3*)
12284
12601
  version_type=linux
12285
12602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286
12603
  soname_spec='${libname}${release}${shared_ext}$major'
12313
12630
  fi
12314
12631
  ;;
12315
12632
 
 
12633
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12634
  version_type=freebsd-elf
 
12635
  need_lib_prefix=no
 
12636
  need_version=no
 
12637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12638
  soname_spec='${libname}${release}${shared_ext}$major'
 
12639
  shlibpath_var=LD_LIBRARY_PATH
 
12640
  hardcode_into_libs=yes
 
12641
  if test "$with_gnu_ld" = yes; then
 
12642
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12643
    shlibpath_overrides_runpath=no
 
12644
  else
 
12645
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12646
    shlibpath_overrides_runpath=yes
 
12647
    case $host_os in
 
12648
      sco3.2v5*)
 
12649
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12650
        ;;
 
12651
    esac
 
12652
  fi
 
12653
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12654
  ;;
 
12655
 
12316
12656
uts4*)
12317
12657
  version_type=linux
12318
12658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328
12668
echo "${ECHO_T}$dynamic_linker" >&6
12329
12669
test "$dynamic_linker" = no && can_build_shared=no
12330
12670
 
 
12671
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12672
if test "$GCC" = yes; then
 
12673
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12674
fi
 
12675
 
12331
12676
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12332
12677
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12333
12678
hardcode_action_CXX=
12365
12710
  enable_fast_install=needless
12366
12711
fi
12367
12712
 
12368
 
striplib=
12369
 
old_striplib=
12370
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12371
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12372
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12373
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12374
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12375
 
  echo "$as_me:$LINENO: result: yes" >&5
12376
 
echo "${ECHO_T}yes" >&6
12377
 
else
12378
 
# FIXME - insert some real tests, host_os isn't really good enough
12379
 
  case $host_os in
12380
 
   darwin*)
12381
 
       if test -n "$STRIP" ; then
12382
 
         striplib="$STRIP -x"
12383
 
         echo "$as_me:$LINENO: result: yes" >&5
12384
 
echo "${ECHO_T}yes" >&6
12385
 
       else
12386
 
  echo "$as_me:$LINENO: result: no" >&5
12387
 
echo "${ECHO_T}no" >&6
12388
 
fi
12389
 
       ;;
12390
 
   *)
12391
 
  echo "$as_me:$LINENO: result: no" >&5
12392
 
echo "${ECHO_T}no" >&6
12393
 
    ;;
12394
 
  esac
12395
 
fi
12396
 
 
12397
 
if test "x$enable_dlopen" != xyes; then
12398
 
  enable_dlopen=unknown
12399
 
  enable_dlopen_self=unknown
12400
 
  enable_dlopen_self_static=unknown
12401
 
else
12402
 
  lt_cv_dlopen=no
12403
 
  lt_cv_dlopen_libs=
12404
 
 
12405
 
  case $host_os in
12406
 
  beos*)
12407
 
    lt_cv_dlopen="load_add_on"
12408
 
    lt_cv_dlopen_libs=
12409
 
    lt_cv_dlopen_self=yes
12410
 
    ;;
12411
 
 
12412
 
  mingw* | pw32*)
12413
 
    lt_cv_dlopen="LoadLibrary"
12414
 
    lt_cv_dlopen_libs=
12415
 
   ;;
12416
 
 
12417
 
  cygwin*)
12418
 
    lt_cv_dlopen="dlopen"
12419
 
    lt_cv_dlopen_libs=
12420
 
   ;;
12421
 
 
12422
 
  darwin*)
12423
 
  # if libdl is installed we need to link against it
12424
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12425
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12426
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12427
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12428
 
else
12429
 
  ac_check_lib_save_LIBS=$LIBS
12430
 
LIBS="-ldl  $LIBS"
12431
 
cat >conftest.$ac_ext <<_ACEOF
12432
 
/* confdefs.h.  */
12433
 
_ACEOF
12434
 
cat confdefs.h >>conftest.$ac_ext
12435
 
cat >>conftest.$ac_ext <<_ACEOF
12436
 
/* end confdefs.h.  */
12437
 
 
12438
 
/* Override any gcc2 internal prototype to avoid an error.  */
12439
 
#ifdef __cplusplus
12440
 
extern "C"
12441
 
#endif
12442
 
/* We use char because int might match the return type of a gcc2
12443
 
   builtin and then its argument prototype would still apply.  */
12444
 
char dlopen ();
12445
 
int
12446
 
main ()
12447
 
{
12448
 
dlopen ();
12449
 
  ;
12450
 
  return 0;
12451
 
}
12452
 
_ACEOF
12453
 
rm -f conftest.$ac_objext conftest$ac_exeext
12454
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455
 
  (eval $ac_link) 2>conftest.er1
12456
 
  ac_status=$?
12457
 
  grep -v '^ *+' conftest.er1 >conftest.err
12458
 
  rm -f conftest.er1
12459
 
  cat conftest.err >&5
12460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461
 
  (exit $ac_status); } &&
12462
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12463
 
                         || test ! -s conftest.err'
12464
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465
 
  (eval $ac_try) 2>&5
12466
 
  ac_status=$?
12467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468
 
  (exit $ac_status); }; } &&
12469
 
         { ac_try='test -s conftest$ac_exeext'
12470
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471
 
  (eval $ac_try) 2>&5
12472
 
  ac_status=$?
12473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474
 
  (exit $ac_status); }; }; then
12475
 
  ac_cv_lib_dl_dlopen=yes
12476
 
else
12477
 
  echo "$as_me: failed program was:" >&5
12478
 
sed 's/^/| /' conftest.$ac_ext >&5
12479
 
 
12480
 
ac_cv_lib_dl_dlopen=no
12481
 
fi
12482
 
rm -f conftest.err conftest.$ac_objext \
12483
 
      conftest$ac_exeext conftest.$ac_ext
12484
 
LIBS=$ac_check_lib_save_LIBS
12485
 
fi
12486
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12487
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12488
 
if test $ac_cv_lib_dl_dlopen = yes; then
12489
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12490
 
else
12491
 
 
12492
 
    lt_cv_dlopen="dyld"
12493
 
    lt_cv_dlopen_libs=
12494
 
    lt_cv_dlopen_self=yes
12495
 
 
12496
 
fi
12497
 
 
12498
 
   ;;
12499
 
 
12500
 
  *)
12501
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12502
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12503
 
if test "${ac_cv_func_shl_load+set}" = set; then
12504
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12505
 
else
12506
 
  cat >conftest.$ac_ext <<_ACEOF
12507
 
/* confdefs.h.  */
12508
 
_ACEOF
12509
 
cat confdefs.h >>conftest.$ac_ext
12510
 
cat >>conftest.$ac_ext <<_ACEOF
12511
 
/* end confdefs.h.  */
12512
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12513
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12514
 
#define shl_load innocuous_shl_load
12515
 
 
12516
 
/* System header to define __stub macros and hopefully few prototypes,
12517
 
    which can conflict with char shl_load (); below.
12518
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519
 
    <limits.h> exists even on freestanding compilers.  */
12520
 
 
12521
 
#ifdef __STDC__
12522
 
# include <limits.h>
12523
 
#else
12524
 
# include <assert.h>
12525
 
#endif
12526
 
 
12527
 
#undef shl_load
12528
 
 
12529
 
/* Override any gcc2 internal prototype to avoid an error.  */
12530
 
#ifdef __cplusplus
12531
 
extern "C"
12532
 
{
12533
 
#endif
12534
 
/* We use char because int might match the return type of a gcc2
12535
 
   builtin and then its argument prototype would still apply.  */
12536
 
char shl_load ();
12537
 
/* The GNU C library defines this for functions which it implements
12538
 
    to always fail with ENOSYS.  Some functions are actually named
12539
 
    something starting with __ and the normal name is an alias.  */
12540
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12541
 
choke me
12542
 
#else
12543
 
char (*f) () = shl_load;
12544
 
#endif
12545
 
#ifdef __cplusplus
12546
 
}
12547
 
#endif
12548
 
 
12549
 
int
12550
 
main ()
12551
 
{
12552
 
return f != shl_load;
12553
 
  ;
12554
 
  return 0;
12555
 
}
12556
 
_ACEOF
12557
 
rm -f conftest.$ac_objext conftest$ac_exeext
12558
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559
 
  (eval $ac_link) 2>conftest.er1
12560
 
  ac_status=$?
12561
 
  grep -v '^ *+' conftest.er1 >conftest.err
12562
 
  rm -f conftest.er1
12563
 
  cat conftest.err >&5
12564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565
 
  (exit $ac_status); } &&
12566
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12567
 
                         || test ! -s conftest.err'
12568
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569
 
  (eval $ac_try) 2>&5
12570
 
  ac_status=$?
12571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572
 
  (exit $ac_status); }; } &&
12573
 
         { ac_try='test -s conftest$ac_exeext'
12574
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575
 
  (eval $ac_try) 2>&5
12576
 
  ac_status=$?
12577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578
 
  (exit $ac_status); }; }; then
12579
 
  ac_cv_func_shl_load=yes
12580
 
else
12581
 
  echo "$as_me: failed program was:" >&5
12582
 
sed 's/^/| /' conftest.$ac_ext >&5
12583
 
 
12584
 
ac_cv_func_shl_load=no
12585
 
fi
12586
 
rm -f conftest.err conftest.$ac_objext \
12587
 
      conftest$ac_exeext conftest.$ac_ext
12588
 
fi
12589
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12590
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12591
 
if test $ac_cv_func_shl_load = yes; then
12592
 
  lt_cv_dlopen="shl_load"
12593
 
else
12594
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12595
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12596
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12597
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12598
 
else
12599
 
  ac_check_lib_save_LIBS=$LIBS
12600
 
LIBS="-ldld  $LIBS"
12601
 
cat >conftest.$ac_ext <<_ACEOF
12602
 
/* confdefs.h.  */
12603
 
_ACEOF
12604
 
cat confdefs.h >>conftest.$ac_ext
12605
 
cat >>conftest.$ac_ext <<_ACEOF
12606
 
/* end confdefs.h.  */
12607
 
 
12608
 
/* Override any gcc2 internal prototype to avoid an error.  */
12609
 
#ifdef __cplusplus
12610
 
extern "C"
12611
 
#endif
12612
 
/* We use char because int might match the return type of a gcc2
12613
 
   builtin and then its argument prototype would still apply.  */
12614
 
char shl_load ();
12615
 
int
12616
 
main ()
12617
 
{
12618
 
shl_load ();
12619
 
  ;
12620
 
  return 0;
12621
 
}
12622
 
_ACEOF
12623
 
rm -f conftest.$ac_objext conftest$ac_exeext
12624
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625
 
  (eval $ac_link) 2>conftest.er1
12626
 
  ac_status=$?
12627
 
  grep -v '^ *+' conftest.er1 >conftest.err
12628
 
  rm -f conftest.er1
12629
 
  cat conftest.err >&5
12630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631
 
  (exit $ac_status); } &&
12632
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12633
 
                         || test ! -s conftest.err'
12634
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635
 
  (eval $ac_try) 2>&5
12636
 
  ac_status=$?
12637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638
 
  (exit $ac_status); }; } &&
12639
 
         { ac_try='test -s conftest$ac_exeext'
12640
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641
 
  (eval $ac_try) 2>&5
12642
 
  ac_status=$?
12643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644
 
  (exit $ac_status); }; }; then
12645
 
  ac_cv_lib_dld_shl_load=yes
12646
 
else
12647
 
  echo "$as_me: failed program was:" >&5
12648
 
sed 's/^/| /' conftest.$ac_ext >&5
12649
 
 
12650
 
ac_cv_lib_dld_shl_load=no
12651
 
fi
12652
 
rm -f conftest.err conftest.$ac_objext \
12653
 
      conftest$ac_exeext conftest.$ac_ext
12654
 
LIBS=$ac_check_lib_save_LIBS
12655
 
fi
12656
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12657
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12658
 
if test $ac_cv_lib_dld_shl_load = yes; then
12659
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12660
 
else
12661
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12662
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12663
 
if test "${ac_cv_func_dlopen+set}" = set; then
12664
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12665
 
else
12666
 
  cat >conftest.$ac_ext <<_ACEOF
12667
 
/* confdefs.h.  */
12668
 
_ACEOF
12669
 
cat confdefs.h >>conftest.$ac_ext
12670
 
cat >>conftest.$ac_ext <<_ACEOF
12671
 
/* end confdefs.h.  */
12672
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12673
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12674
 
#define dlopen innocuous_dlopen
12675
 
 
12676
 
/* System header to define __stub macros and hopefully few prototypes,
12677
 
    which can conflict with char dlopen (); below.
12678
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12679
 
    <limits.h> exists even on freestanding compilers.  */
12680
 
 
12681
 
#ifdef __STDC__
12682
 
# include <limits.h>
12683
 
#else
12684
 
# include <assert.h>
12685
 
#endif
12686
 
 
12687
 
#undef dlopen
12688
 
 
12689
 
/* Override any gcc2 internal prototype to avoid an error.  */
12690
 
#ifdef __cplusplus
12691
 
extern "C"
12692
 
{
12693
 
#endif
12694
 
/* We use char because int might match the return type of a gcc2
12695
 
   builtin and then its argument prototype would still apply.  */
12696
 
char dlopen ();
12697
 
/* The GNU C library defines this for functions which it implements
12698
 
    to always fail with ENOSYS.  Some functions are actually named
12699
 
    something starting with __ and the normal name is an alias.  */
12700
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12701
 
choke me
12702
 
#else
12703
 
char (*f) () = dlopen;
12704
 
#endif
12705
 
#ifdef __cplusplus
12706
 
}
12707
 
#endif
12708
 
 
12709
 
int
12710
 
main ()
12711
 
{
12712
 
return f != dlopen;
12713
 
  ;
12714
 
  return 0;
12715
 
}
12716
 
_ACEOF
12717
 
rm -f conftest.$ac_objext conftest$ac_exeext
12718
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719
 
  (eval $ac_link) 2>conftest.er1
12720
 
  ac_status=$?
12721
 
  grep -v '^ *+' conftest.er1 >conftest.err
12722
 
  rm -f conftest.er1
12723
 
  cat conftest.err >&5
12724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
 
  (exit $ac_status); } &&
12726
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12727
 
                         || test ! -s conftest.err'
12728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729
 
  (eval $ac_try) 2>&5
12730
 
  ac_status=$?
12731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732
 
  (exit $ac_status); }; } &&
12733
 
         { ac_try='test -s conftest$ac_exeext'
12734
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735
 
  (eval $ac_try) 2>&5
12736
 
  ac_status=$?
12737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738
 
  (exit $ac_status); }; }; then
12739
 
  ac_cv_func_dlopen=yes
12740
 
else
12741
 
  echo "$as_me: failed program was:" >&5
12742
 
sed 's/^/| /' conftest.$ac_ext >&5
12743
 
 
12744
 
ac_cv_func_dlopen=no
12745
 
fi
12746
 
rm -f conftest.err conftest.$ac_objext \
12747
 
      conftest$ac_exeext conftest.$ac_ext
12748
 
fi
12749
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12750
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12751
 
if test $ac_cv_func_dlopen = yes; then
12752
 
  lt_cv_dlopen="dlopen"
12753
 
else
12754
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12755
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12756
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12757
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12758
 
else
12759
 
  ac_check_lib_save_LIBS=$LIBS
12760
 
LIBS="-ldl  $LIBS"
12761
 
cat >conftest.$ac_ext <<_ACEOF
12762
 
/* confdefs.h.  */
12763
 
_ACEOF
12764
 
cat confdefs.h >>conftest.$ac_ext
12765
 
cat >>conftest.$ac_ext <<_ACEOF
12766
 
/* end confdefs.h.  */
12767
 
 
12768
 
/* Override any gcc2 internal prototype to avoid an error.  */
12769
 
#ifdef __cplusplus
12770
 
extern "C"
12771
 
#endif
12772
 
/* We use char because int might match the return type of a gcc2
12773
 
   builtin and then its argument prototype would still apply.  */
12774
 
char dlopen ();
12775
 
int
12776
 
main ()
12777
 
{
12778
 
dlopen ();
12779
 
  ;
12780
 
  return 0;
12781
 
}
12782
 
_ACEOF
12783
 
rm -f conftest.$ac_objext conftest$ac_exeext
12784
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785
 
  (eval $ac_link) 2>conftest.er1
12786
 
  ac_status=$?
12787
 
  grep -v '^ *+' conftest.er1 >conftest.err
12788
 
  rm -f conftest.er1
12789
 
  cat conftest.err >&5
12790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791
 
  (exit $ac_status); } &&
12792
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12793
 
                         || test ! -s conftest.err'
12794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795
 
  (eval $ac_try) 2>&5
12796
 
  ac_status=$?
12797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
 
  (exit $ac_status); }; } &&
12799
 
         { ac_try='test -s conftest$ac_exeext'
12800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801
 
  (eval $ac_try) 2>&5
12802
 
  ac_status=$?
12803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804
 
  (exit $ac_status); }; }; then
12805
 
  ac_cv_lib_dl_dlopen=yes
12806
 
else
12807
 
  echo "$as_me: failed program was:" >&5
12808
 
sed 's/^/| /' conftest.$ac_ext >&5
12809
 
 
12810
 
ac_cv_lib_dl_dlopen=no
12811
 
fi
12812
 
rm -f conftest.err conftest.$ac_objext \
12813
 
      conftest$ac_exeext conftest.$ac_ext
12814
 
LIBS=$ac_check_lib_save_LIBS
12815
 
fi
12816
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12817
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12818
 
if test $ac_cv_lib_dl_dlopen = yes; then
12819
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12820
 
else
12821
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12822
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12823
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12824
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12825
 
else
12826
 
  ac_check_lib_save_LIBS=$LIBS
12827
 
LIBS="-lsvld  $LIBS"
12828
 
cat >conftest.$ac_ext <<_ACEOF
12829
 
/* confdefs.h.  */
12830
 
_ACEOF
12831
 
cat confdefs.h >>conftest.$ac_ext
12832
 
cat >>conftest.$ac_ext <<_ACEOF
12833
 
/* end confdefs.h.  */
12834
 
 
12835
 
/* Override any gcc2 internal prototype to avoid an error.  */
12836
 
#ifdef __cplusplus
12837
 
extern "C"
12838
 
#endif
12839
 
/* We use char because int might match the return type of a gcc2
12840
 
   builtin and then its argument prototype would still apply.  */
12841
 
char dlopen ();
12842
 
int
12843
 
main ()
12844
 
{
12845
 
dlopen ();
12846
 
  ;
12847
 
  return 0;
12848
 
}
12849
 
_ACEOF
12850
 
rm -f conftest.$ac_objext conftest$ac_exeext
12851
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852
 
  (eval $ac_link) 2>conftest.er1
12853
 
  ac_status=$?
12854
 
  grep -v '^ *+' conftest.er1 >conftest.err
12855
 
  rm -f conftest.er1
12856
 
  cat conftest.err >&5
12857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858
 
  (exit $ac_status); } &&
12859
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12860
 
                         || test ! -s conftest.err'
12861
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862
 
  (eval $ac_try) 2>&5
12863
 
  ac_status=$?
12864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865
 
  (exit $ac_status); }; } &&
12866
 
         { ac_try='test -s conftest$ac_exeext'
12867
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868
 
  (eval $ac_try) 2>&5
12869
 
  ac_status=$?
12870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871
 
  (exit $ac_status); }; }; then
12872
 
  ac_cv_lib_svld_dlopen=yes
12873
 
else
12874
 
  echo "$as_me: failed program was:" >&5
12875
 
sed 's/^/| /' conftest.$ac_ext >&5
12876
 
 
12877
 
ac_cv_lib_svld_dlopen=no
12878
 
fi
12879
 
rm -f conftest.err conftest.$ac_objext \
12880
 
      conftest$ac_exeext conftest.$ac_ext
12881
 
LIBS=$ac_check_lib_save_LIBS
12882
 
fi
12883
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12884
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12885
 
if test $ac_cv_lib_svld_dlopen = yes; then
12886
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12887
 
else
12888
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12889
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12890
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12892
 
else
12893
 
  ac_check_lib_save_LIBS=$LIBS
12894
 
LIBS="-ldld  $LIBS"
12895
 
cat >conftest.$ac_ext <<_ACEOF
12896
 
/* confdefs.h.  */
12897
 
_ACEOF
12898
 
cat confdefs.h >>conftest.$ac_ext
12899
 
cat >>conftest.$ac_ext <<_ACEOF
12900
 
/* end confdefs.h.  */
12901
 
 
12902
 
/* Override any gcc2 internal prototype to avoid an error.  */
12903
 
#ifdef __cplusplus
12904
 
extern "C"
12905
 
#endif
12906
 
/* We use char because int might match the return type of a gcc2
12907
 
   builtin and then its argument prototype would still apply.  */
12908
 
char dld_link ();
12909
 
int
12910
 
main ()
12911
 
{
12912
 
dld_link ();
12913
 
  ;
12914
 
  return 0;
12915
 
}
12916
 
_ACEOF
12917
 
rm -f conftest.$ac_objext conftest$ac_exeext
12918
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919
 
  (eval $ac_link) 2>conftest.er1
12920
 
  ac_status=$?
12921
 
  grep -v '^ *+' conftest.er1 >conftest.err
12922
 
  rm -f conftest.er1
12923
 
  cat conftest.err >&5
12924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925
 
  (exit $ac_status); } &&
12926
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12927
 
                         || test ! -s conftest.err'
12928
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929
 
  (eval $ac_try) 2>&5
12930
 
  ac_status=$?
12931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932
 
  (exit $ac_status); }; } &&
12933
 
         { ac_try='test -s conftest$ac_exeext'
12934
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935
 
  (eval $ac_try) 2>&5
12936
 
  ac_status=$?
12937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
 
  (exit $ac_status); }; }; then
12939
 
  ac_cv_lib_dld_dld_link=yes
12940
 
else
12941
 
  echo "$as_me: failed program was:" >&5
12942
 
sed 's/^/| /' conftest.$ac_ext >&5
12943
 
 
12944
 
ac_cv_lib_dld_dld_link=no
12945
 
fi
12946
 
rm -f conftest.err conftest.$ac_objext \
12947
 
      conftest$ac_exeext conftest.$ac_ext
12948
 
LIBS=$ac_check_lib_save_LIBS
12949
 
fi
12950
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12951
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12952
 
if test $ac_cv_lib_dld_dld_link = yes; then
12953
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12954
 
fi
12955
 
 
12956
 
 
12957
 
fi
12958
 
 
12959
 
 
12960
 
fi
12961
 
 
12962
 
 
12963
 
fi
12964
 
 
12965
 
 
12966
 
fi
12967
 
 
12968
 
 
12969
 
fi
12970
 
 
12971
 
    ;;
12972
 
  esac
12973
 
 
12974
 
  if test "x$lt_cv_dlopen" != xno; then
12975
 
    enable_dlopen=yes
12976
 
  else
12977
 
    enable_dlopen=no
12978
 
  fi
12979
 
 
12980
 
  case $lt_cv_dlopen in
12981
 
  dlopen)
12982
 
    save_CPPFLAGS="$CPPFLAGS"
12983
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12984
 
 
12985
 
    save_LDFLAGS="$LDFLAGS"
12986
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12987
 
 
12988
 
    save_LIBS="$LIBS"
12989
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12990
 
 
12991
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12992
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12993
 
if test "${lt_cv_dlopen_self+set}" = set; then
12994
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12995
 
else
12996
 
          if test "$cross_compiling" = yes; then :
12997
 
  lt_cv_dlopen_self=cross
12998
 
else
12999
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000
 
  lt_status=$lt_dlunknown
13001
 
  cat > conftest.$ac_ext <<EOF
13002
 
#line 13002 "configure"
13003
 
#include "confdefs.h"
13004
 
 
13005
 
#if HAVE_DLFCN_H
13006
 
#include <dlfcn.h>
13007
 
#endif
13008
 
 
13009
 
#include <stdio.h>
13010
 
 
13011
 
#ifdef RTLD_GLOBAL
13012
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13013
 
#else
13014
 
#  ifdef DL_GLOBAL
13015
 
#    define LT_DLGLOBAL         DL_GLOBAL
13016
 
#  else
13017
 
#    define LT_DLGLOBAL         0
13018
 
#  endif
13019
 
#endif
13020
 
 
13021
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022
 
   find out it does not work in some platform. */
13023
 
#ifndef LT_DLLAZY_OR_NOW
13024
 
#  ifdef RTLD_LAZY
13025
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13026
 
#  else
13027
 
#    ifdef DL_LAZY
13028
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13029
 
#    else
13030
 
#      ifdef RTLD_NOW
13031
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13032
 
#      else
13033
 
#        ifdef DL_NOW
13034
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13035
 
#        else
13036
 
#          define LT_DLLAZY_OR_NOW      0
13037
 
#        endif
13038
 
#      endif
13039
 
#    endif
13040
 
#  endif
13041
 
#endif
13042
 
 
13043
 
#ifdef __cplusplus
13044
 
extern "C" void exit (int);
13045
 
#endif
13046
 
 
13047
 
void fnord() { int i=42;}
13048
 
int main ()
13049
 
{
13050
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13051
 
  int status = $lt_dlunknown;
13052
 
 
13053
 
  if (self)
13054
 
    {
13055
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13056
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13057
 
      /* dlclose (self); */
13058
 
    }
13059
 
 
13060
 
    exit (status);
13061
 
}
13062
 
EOF
13063
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064
 
  (eval $ac_link) 2>&5
13065
 
  ac_status=$?
13066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13068
 
    (./conftest; exit; ) 2>/dev/null
13069
 
    lt_status=$?
13070
 
    case x$lt_status in
13071
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13072
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13073
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13074
 
    esac
13075
 
  else :
13076
 
    # compilation failed
13077
 
    lt_cv_dlopen_self=no
13078
 
  fi
13079
 
fi
13080
 
rm -fr conftest*
13081
 
 
13082
 
 
13083
 
fi
13084
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13085
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13086
 
 
13087
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13088
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13089
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13090
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13091
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13093
 
else
13094
 
          if test "$cross_compiling" = yes; then :
13095
 
  lt_cv_dlopen_self_static=cross
13096
 
else
13097
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13098
 
  lt_status=$lt_dlunknown
13099
 
  cat > conftest.$ac_ext <<EOF
13100
 
#line 13100 "configure"
13101
 
#include "confdefs.h"
13102
 
 
13103
 
#if HAVE_DLFCN_H
13104
 
#include <dlfcn.h>
13105
 
#endif
13106
 
 
13107
 
#include <stdio.h>
13108
 
 
13109
 
#ifdef RTLD_GLOBAL
13110
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13111
 
#else
13112
 
#  ifdef DL_GLOBAL
13113
 
#    define LT_DLGLOBAL         DL_GLOBAL
13114
 
#  else
13115
 
#    define LT_DLGLOBAL         0
13116
 
#  endif
13117
 
#endif
13118
 
 
13119
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13120
 
   find out it does not work in some platform. */
13121
 
#ifndef LT_DLLAZY_OR_NOW
13122
 
#  ifdef RTLD_LAZY
13123
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13124
 
#  else
13125
 
#    ifdef DL_LAZY
13126
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13127
 
#    else
13128
 
#      ifdef RTLD_NOW
13129
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13130
 
#      else
13131
 
#        ifdef DL_NOW
13132
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13133
 
#        else
13134
 
#          define LT_DLLAZY_OR_NOW      0
13135
 
#        endif
13136
 
#      endif
13137
 
#    endif
13138
 
#  endif
13139
 
#endif
13140
 
 
13141
 
#ifdef __cplusplus
13142
 
extern "C" void exit (int);
13143
 
#endif
13144
 
 
13145
 
void fnord() { int i=42;}
13146
 
int main ()
13147
 
{
13148
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13149
 
  int status = $lt_dlunknown;
13150
 
 
13151
 
  if (self)
13152
 
    {
13153
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13154
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13155
 
      /* dlclose (self); */
13156
 
    }
13157
 
 
13158
 
    exit (status);
13159
 
}
13160
 
EOF
13161
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162
 
  (eval $ac_link) 2>&5
13163
 
  ac_status=$?
13164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13166
 
    (./conftest; exit; ) 2>/dev/null
13167
 
    lt_status=$?
13168
 
    case x$lt_status in
13169
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13170
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13171
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13172
 
    esac
13173
 
  else :
13174
 
    # compilation failed
13175
 
    lt_cv_dlopen_self_static=no
13176
 
  fi
13177
 
fi
13178
 
rm -fr conftest*
13179
 
 
13180
 
 
13181
 
fi
13182
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13183
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13184
 
    fi
13185
 
 
13186
 
    CPPFLAGS="$save_CPPFLAGS"
13187
 
    LDFLAGS="$save_LDFLAGS"
13188
 
    LIBS="$save_LIBS"
13189
 
    ;;
13190
 
  esac
13191
 
 
13192
 
  case $lt_cv_dlopen_self in
13193
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13194
 
  *) enable_dlopen_self=unknown ;;
13195
 
  esac
13196
 
 
13197
 
  case $lt_cv_dlopen_self_static in
13198
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13199
 
  *) enable_dlopen_self_static=unknown ;;
13200
 
  esac
13201
 
fi
13202
 
 
13203
12713
 
13204
12714
# The else clause should only fire when bootstrapping the
13205
12715
# libtool distribution, otherwise you forgot to ship ltmain.sh
13214
12724
  # Now quote all the things that may contain metacharacters while being
13215
12725
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13216
12726
  # variables and quote the copies for generation of the libtool script.
13217
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12727
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13218
12728
    SED SHELL STRIP \
13219
12729
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13220
12730
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13332
12842
# A C compiler.
13333
12843
LTCC=$lt_LTCC
13334
12844
 
 
12845
# LTCC compiler flags.
 
12846
LTCFLAGS=$lt_LTCFLAGS
 
12847
 
13335
12848
# A language-specific compiler.
13336
12849
CC=$lt_compiler_CXX
13337
12850
 
13338
12851
# Is the compiler the GNU C compiler?
13339
12852
with_gcc=$GCC_CXX
13340
12853
 
 
12854
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
12855
gcc_ver=\`gcc -dumpversion\`
 
12856
 
13341
12857
# An ERE matcher.
13342
12858
EGREP=$lt_EGREP
13343
12859
 
13471
12987
 
13472
12988
# Dependencies to place before the objects being linked to create a
13473
12989
# shared library.
13474
 
predep_objects=$lt_predep_objects_CXX
 
12990
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13475
12991
 
13476
12992
# Dependencies to place after the objects being linked to create a
13477
12993
# shared library.
13478
 
postdep_objects=$lt_postdep_objects_CXX
 
12994
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13479
12995
 
13480
12996
# Dependencies to place before the objects being linked to create a
13481
12997
# shared library.
13487
13003
 
13488
13004
# The library search path used internally by the compiler when linking
13489
13005
# a shared library.
13490
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13006
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13491
13007
 
13492
13008
# Method to check whether dependent libraries are shared objects.
13493
13009
deplibs_check_method=$lt_deplibs_check_method
13567
13083
link_all_deplibs=$link_all_deplibs_CXX
13568
13084
 
13569
13085
# Compile-time system search path for libraries
13570
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13086
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13571
13087
 
13572
13088
# Run-time system search path for libraries
13573
13089
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13674
13190
# If no C compiler was specified, use CC.
13675
13191
LTCC=${LTCC-"$CC"}
13676
13192
 
 
13193
# If no C compiler flags were specified, use CFLAGS.
 
13194
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13195
 
13677
13196
# Allow CC to be a program name with arguments.
13678
13197
compiler=$CC
13679
13198
 
13681
13200
# save warnings/boilerplate of simple test code
13682
13201
ac_outfile=conftest.$ac_objext
13683
13202
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13684
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13203
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13685
13204
_lt_compiler_boilerplate=`cat conftest.err`
13686
13205
$rm conftest*
13687
13206
 
13688
13207
ac_outfile=conftest.$ac_objext
13689
13208
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13690
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13209
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13691
13210
_lt_linker_boilerplate=`cat conftest.err`
13692
13211
$rm conftest*
13693
13212
 
13719
13238
 
13720
13239
# On AIX, shared libraries and static libraries use the same namespace, and
13721
13240
# are all built from PIC.
13722
 
case "$host_os" in
 
13241
case $host_os in
13723
13242
aix3*)
13724
13243
  test "$enable_shared" = yes && enable_static=no
13725
13244
  if test -n "$RANLIB"; then
13743
13262
echo "$as_me:$LINENO: result: $enable_static" >&5
13744
13263
echo "${ECHO_T}$enable_static" >&6
13745
13264
 
13746
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13747
 
 
13748
13265
GCC_F77="$G77"
13749
13266
LD_F77="$LD"
13750
13267
 
13791
13308
      lt_prog_compiler_pic_F77='-fno-common'
13792
13309
      ;;
13793
13310
 
 
13311
    interix3*)
 
13312
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13313
      # Instead, we relocate shared libraries at runtime.
 
13314
      ;;
 
13315
 
13794
13316
    msdosdjgpp*)
13795
13317
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13796
13318
      # on systems that don't support them.
13807
13329
    hpux*)
13808
13330
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13809
13331
      # not for PA HP-UX.
13810
 
      case "$host_cpu" in
 
13332
      case $host_cpu in
13811
13333
      hppa*64*|ia64*)
13812
13334
        # +Z the default
13813
13335
        ;;
13854
13376
      lt_prog_compiler_wl_F77='-Wl,'
13855
13377
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13856
13378
      # not for PA HP-UX.
13857
 
      case "$host_cpu" in
 
13379
      case $host_cpu in
13858
13380
      hppa*64*|ia64*)
13859
13381
        # +Z the default
13860
13382
        ;;
13884
13406
        lt_prog_compiler_pic_F77='-KPIC'
13885
13407
        lt_prog_compiler_static_F77='-static'
13886
13408
        ;;
13887
 
      pgcc* | pgf77* | pgf90*)
 
13409
      pgcc* | pgf77* | pgf90* | pgf95*)
13888
13410
        # Portland Group compilers (*not* the Pentium gcc compiler,
13889
13411
        # which looks to be a dead project)
13890
13412
        lt_prog_compiler_wl_F77='-Wl,'
13891
13413
        lt_prog_compiler_pic_F77='-fpic'
13892
 
        lt_prog_compiler_static_F77='-static'
 
13414
        lt_prog_compiler_static_F77='-Bstatic'
13893
13415
        ;;
13894
13416
      ccc*)
13895
13417
        lt_prog_compiler_wl_F77='-Wl,'
13905
13427
      lt_prog_compiler_static_F77='-non_shared'
13906
13428
      ;;
13907
13429
 
13908
 
    sco3.2v5*)
13909
 
      lt_prog_compiler_pic_F77='-Kpic'
13910
 
      lt_prog_compiler_static_F77='-dn'
13911
 
      ;;
13912
 
 
13913
13430
    solaris*)
13914
13431
      lt_prog_compiler_pic_F77='-KPIC'
13915
13432
      lt_prog_compiler_static_F77='-Bstatic'
13927
13444
      lt_prog_compiler_static_F77='-Bstatic'
13928
13445
      ;;
13929
13446
 
13930
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13447
    sysv4 | sysv4.2uw2* | sysv4.3*)
13931
13448
      lt_prog_compiler_wl_F77='-Wl,'
13932
13449
      lt_prog_compiler_pic_F77='-KPIC'
13933
13450
      lt_prog_compiler_static_F77='-Bstatic'
13940
13457
      fi
13941
13458
      ;;
13942
13459
 
 
13460
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13461
      lt_prog_compiler_wl_F77='-Wl,'
 
13462
      lt_prog_compiler_pic_F77='-KPIC'
 
13463
      lt_prog_compiler_static_F77='-Bstatic'
 
13464
      ;;
 
13465
 
13943
13466
    unicos*)
13944
13467
      lt_prog_compiler_wl_F77='-Wl,'
13945
13468
      lt_prog_compiler_can_build_shared_F77=no
13979
13502
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13980
13503
   # The option is referenced via a variable to avoid confusing sed.
13981
13504
   lt_compile=`echo "$ac_compile" | $SED \
13982
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13505
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13983
13506
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13984
13507
   -e 's:$: $lt_compiler_flag:'`
13985
 
   (eval echo "\"\$as_me:13985: $lt_compile\"" >&5)
 
13508
   (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
13986
13509
   (eval "$lt_compile" 2>conftest.err)
13987
13510
   ac_status=$?
13988
13511
   cat conftest.err >&5
13989
 
   echo "$as_me:13989: \$? = $ac_status" >&5
 
13512
   echo "$as_me:13512: \$? = $ac_status" >&5
13990
13513
   if (exit $ac_status) && test -s "$ac_outfile"; then
13991
13514
     # The compiler can only warn and ignore the option if not recognized
13992
13515
     # So say no if there are warnings other than the usual output.
13993
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13994
 
     $SED '/^$/d' conftest.err >conftest.er2
13995
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13516
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13517
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13518
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13996
13519
       lt_prog_compiler_pic_works_F77=yes
13997
13520
     fi
13998
13521
   fi
14013
13536
fi
14014
13537
 
14015
13538
fi
14016
 
case "$host_os" in
 
13539
case $host_os in
14017
13540
  # For platforms which do not support PIC, -DPIC is meaningless:
14018
13541
  *djgpp*)
14019
13542
    lt_prog_compiler_pic_F77=
14023
13546
    ;;
14024
13547
esac
14025
13548
 
 
13549
#
 
13550
# Check to make sure the static flag actually works.
 
13551
#
 
13552
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13553
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13554
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13555
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13557
else
 
13558
  lt_prog_compiler_static_works_F77=no
 
13559
   save_LDFLAGS="$LDFLAGS"
 
13560
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13561
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13562
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13563
     # The linker can only warn and ignore the option if not recognized
 
13564
     # So say no if there are warnings
 
13565
     if test -s conftest.err; then
 
13566
       # Append any errors to the config.log.
 
13567
       cat conftest.err 1>&5
 
13568
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13569
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13570
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13571
         lt_prog_compiler_static_works_F77=yes
 
13572
       fi
 
13573
     else
 
13574
       lt_prog_compiler_static_works_F77=yes
 
13575
     fi
 
13576
   fi
 
13577
   $rm conftest*
 
13578
   LDFLAGS="$save_LDFLAGS"
 
13579
 
 
13580
fi
 
13581
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13582
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13583
 
 
13584
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13585
    :
 
13586
else
 
13587
    lt_prog_compiler_static_F77=
 
13588
fi
 
13589
 
 
13590
 
14026
13591
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14027
13592
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14028
13593
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14041
13606
   # Note that $ac_compile itself does not contain backslashes and begins
14042
13607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14043
13608
   lt_compile=`echo "$ac_compile" | $SED \
14044
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13609
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14045
13610
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14046
13611
   -e 's:$: $lt_compiler_flag:'`
14047
 
   (eval echo "\"\$as_me:14047: $lt_compile\"" >&5)
 
13612
   (eval echo "\"\$as_me:13612: $lt_compile\"" >&5)
14048
13613
   (eval "$lt_compile" 2>out/conftest.err)
14049
13614
   ac_status=$?
14050
13615
   cat out/conftest.err >&5
14051
 
   echo "$as_me:14051: \$? = $ac_status" >&5
 
13616
   echo "$as_me:13616: \$? = $ac_status" >&5
14052
13617
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14053
13618
   then
14054
13619
     # The compiler can only warn and ignore the option if not recognized
14055
13620
     # So say no if there are warnings
14056
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14057
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
14058
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13621
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13622
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13623
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14059
13624
       lt_cv_prog_compiler_c_o_F77=yes
14060
13625
     fi
14061
13626
   fi
14062
 
   chmod u+w .
 
13627
   chmod u+w . 2>&5
14063
13628
   $rm conftest*
14064
13629
   # SGI C++ compiler will create directory out/ii_files/ for
14065
13630
   # template instantiation
14155
13720
      with_gnu_ld=no
14156
13721
    fi
14157
13722
    ;;
 
13723
  interix*)
 
13724
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13725
    with_gnu_ld=yes
 
13726
    ;;
14158
13727
  openbsd*)
14159
13728
    with_gnu_ld=no
14160
13729
    ;;
14239
13808
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14240
13809
 
14241
13810
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14242
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13811
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243
13812
        # If the export-symbols file already is a .def file (1st line
14244
13813
        # is EXPORTS), use it as is; otherwise, prepend...
14245
13814
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14248
13817
          echo EXPORTS > $output_objdir/$soname.def;
14249
13818
          cat $export_symbols >> $output_objdir/$soname.def;
14250
13819
        fi~
14251
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13820
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14252
13821
      else
14253
13822
        ld_shlibs_F77=no
14254
13823
      fi
14255
13824
      ;;
14256
13825
 
 
13826
    interix3*)
 
13827
      hardcode_direct_F77=no
 
13828
      hardcode_shlibpath_var_F77=no
 
13829
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13830
      export_dynamic_flag_spec_F77='${wl}-E'
 
13831
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13832
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13833
      # default) and relocated if they conflict, which is a slow very memory
 
13834
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13835
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13836
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13837
      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'
 
13838
      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'
 
13839
      ;;
 
13840
 
14257
13841
    linux*)
14258
13842
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14259
13843
        tmp_addflag=
14260
13844
        case $cc_basename,$host_cpu in
14261
13845
        pgcc*)                          # Portland Group C compiler
14262
 
          whole_archive_flag_spec_F77=
 
13846
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13847
          tmp_addflag=' $pic_flag'
14263
13848
          ;;
14264
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14265
 
          whole_archive_flag_spec_F77=
14266
 
          tmp_addflag=' -fpic -Mnomain' ;;
 
13849
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13850
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13851
          tmp_addflag=' $pic_flag -Mnomain' ;;
14267
13852
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14268
13853
          tmp_addflag=' -i_dynamic' ;;
14269
13854
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14294
13879
      fi
14295
13880
      ;;
14296
13881
 
14297
 
    solaris* | sysv5*)
 
13882
    solaris*)
14298
13883
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14299
13884
        ld_shlibs_F77=no
14300
13885
        cat <<EOF 1>&2
14315
13900
      fi
14316
13901
      ;;
14317
13902
 
 
13903
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13904
      case `$LD -v 2>&1` in
 
13905
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13906
        ld_shlibs_F77=no
 
13907
        cat <<_LT_EOF 1>&2
 
13908
 
 
13909
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13910
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13911
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13912
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13913
*** your PATH or compiler configuration so that the native linker is
 
13914
*** used, and then restart.
 
13915
 
 
13916
_LT_EOF
 
13917
        ;;
 
13918
        *)
 
13919
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13920
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13921
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13922
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13923
          else
 
13924
            ld_shlibs_F77=no
 
13925
          fi
 
13926
        ;;
 
13927
      esac
 
13928
      ;;
 
13929
 
14318
13930
    sunos4*)
14319
13931
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14320
13932
      wlarc=
14348
13960
      # Note: this linker hardcodes the directories in LIBPATH if there
14349
13961
      # are no directories specified by -L.
14350
13962
      hardcode_minus_L_F77=yes
14351
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13963
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14352
13964
        # Neither direct hardcoding nor static linking is supported with a
14353
13965
        # broken collect2.
14354
13966
        hardcode_direct_F77=unsupported
14382
13994
            break
14383
13995
          fi
14384
13996
          done
 
13997
          ;;
14385
13998
        esac
14386
13999
 
14387
14000
        exp_sym_flag='-bexport'
14419
14032
          hardcode_libdir_flag_spec_F77='-L$libdir'
14420
14033
          hardcode_libdir_separator_F77=
14421
14034
          fi
 
14035
          ;;
14422
14036
        esac
14423
14037
        shared_flag='-shared'
14424
14038
        if test "$aix_use_runtimelinking" = yes; then
14431
14045
        # chokes on -Wl,-G. The following line is correct:
14432
14046
          shared_flag='-G'
14433
14047
        else
14434
 
        if test "$aix_use_runtimelinking" = yes; then
 
14048
          if test "$aix_use_runtimelinking" = yes; then
14435
14049
            shared_flag='${wl}-G'
14436
14050
          else
14437
14051
            shared_flag='${wl}-bM:SRE'
14438
 
        fi
 
14052
          fi
14439
14053
        fi
14440
14054
      fi
14441
14055
 
14490
14104
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14491
14105
 
14492
14106
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14493
 
        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"
 
14107
        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"
14494
14108
       else
14495
14109
        if test "$host_cpu" = ia64; then
14496
14110
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14497
14111
          allow_undefined_flag_F77="-z nodefs"
14498
 
          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"
 
14112
          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"
14499
14113
        else
14500
14114
         # Determine the default libpath from the value encoded in an empty executable.
14501
14115
         cat >conftest.$ac_ext <<_ACEOF
14545
14159
          # -berok will link without error, but may produce a broken library.
14546
14160
          no_undefined_flag_F77=' ${wl}-bernotok'
14547
14161
          allow_undefined_flag_F77=' ${wl}-berok'
14548
 
          # -bexpall does not export symbols beginning with underscore (_)
14549
 
          always_export_symbols_F77=yes
14550
14162
          # Exported symbols can be pulled into shared objects from archives
14551
 
          whole_archive_flag_spec_F77=' '
 
14163
          whole_archive_flag_spec_F77='$convenience'
14552
14164
          archive_cmds_need_lc_F77=yes
14553
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14554
 
          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'
 
14165
          # This is similar to how AIX traditionally builds its shared libraries.
 
14166
          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'
14555
14167
        fi
14556
14168
      fi
14557
14169
      ;;
14590
14202
      ;;
14591
14203
 
14592
14204
    darwin* | rhapsody*)
14593
 
      case "$host_os" in
 
14205
      case $host_os in
14594
14206
        rhapsody* | darwin1.[012])
14595
14207
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14596
14208
         ;;
14619
14231
        output_verbose_link_cmd='echo'
14620
14232
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14621
14233
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14622
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14234
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14623
14235
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14624
14236
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14625
14237
    else
14628
14240
         output_verbose_link_cmd='echo'
14629
14241
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14630
14242
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14631
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14243
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14632
14244
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14633
14245
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14634
14246
          ;;
14692
14304
      export_dynamic_flag_spec_F77='${wl}-E'
14693
14305
      ;;
14694
14306
 
14695
 
    hpux10* | hpux11*)
14696
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14697
 
        case "$host_cpu" in
14698
 
        hppa*64*|ia64*)
 
14307
    hpux10*)
 
14308
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14309
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14310
      else
 
14311
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14312
      fi
 
14313
      if test "$with_gnu_ld" = no; then
 
14314
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14315
        hardcode_libdir_separator_F77=:
 
14316
 
 
14317
        hardcode_direct_F77=yes
 
14318
        export_dynamic_flag_spec_F77='${wl}-E'
 
14319
 
 
14320
        # hardcode_minus_L: Not really in the search PATH,
 
14321
        # but as the default location of the library.
 
14322
        hardcode_minus_L_F77=yes
 
14323
      fi
 
14324
      ;;
 
14325
 
 
14326
    hpux11*)
 
14327
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14328
        case $host_cpu in
 
14329
        hppa*64*)
14699
14330
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14700
14331
          ;;
 
14332
        ia64*)
 
14333
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14334
          ;;
14701
14335
        *)
14702
14336
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14703
14337
          ;;
14704
14338
        esac
14705
14339
      else
14706
 
        case "$host_cpu" in
14707
 
        hppa*64*|ia64*)
14708
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14340
        case $host_cpu in
 
14341
        hppa*64*)
 
14342
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14343
          ;;
 
14344
        ia64*)
 
14345
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14709
14346
          ;;
14710
14347
        *)
14711
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14348
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14712
14349
          ;;
14713
14350
        esac
14714
14351
      fi
14715
14352
      if test "$with_gnu_ld" = no; then
14716
 
        case "$host_cpu" in
14717
 
        hppa*64*)
14718
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14353
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14354
        hardcode_libdir_separator_F77=:
 
14355
 
 
14356
        case $host_cpu in
 
14357
        hppa*64*|ia64*)
14719
14358
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14720
 
          hardcode_libdir_separator_F77=:
14721
 
          hardcode_direct_F77=no
14722
 
          hardcode_shlibpath_var_F77=no
14723
 
          ;;
14724
 
        ia64*)
14725
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14726
 
          hardcode_direct_F77=no
14727
 
          hardcode_shlibpath_var_F77=no
14728
 
 
14729
 
          # hardcode_minus_L: Not really in the search PATH,
14730
 
          # but as the default location of the library.
14731
 
          hardcode_minus_L_F77=yes
 
14359
          hardcode_direct_F77=no
 
14360
          hardcode_shlibpath_var_F77=no
14732
14361
          ;;
14733
14362
        *)
14734
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14735
 
          hardcode_libdir_separator_F77=:
14736
14363
          hardcode_direct_F77=yes
14737
14364
          export_dynamic_flag_spec_F77='${wl}-E'
14738
14365
 
14834
14461
      hardcode_libdir_separator_F77=:
14835
14462
      ;;
14836
14463
 
14837
 
    sco3.2v5*)
14838
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14839
 
      hardcode_shlibpath_var_F77=no
14840
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14841
 
      runpath_var=LD_RUN_PATH
14842
 
      hardcode_runpath_var=yes
14843
 
      ;;
14844
 
 
14845
14464
    solaris*)
14846
14465
      no_undefined_flag_F77=' -z text'
14847
14466
      if test "$GCC" = yes; then
14927
14546
      fi
14928
14547
      ;;
14929
14548
 
14930
 
    sysv4.2uw2*)
14931
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14932
 
      hardcode_direct_F77=yes
14933
 
      hardcode_minus_L_F77=no
14934
 
      hardcode_shlibpath_var_F77=no
14935
 
      hardcode_runpath_var=yes
14936
 
      runpath_var=LD_RUN_PATH
14937
 
      ;;
14938
 
 
14939
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14940
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14941
 
      if test "$GCC" = yes; then
14942
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943
 
      else
14944
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945
 
      fi
14946
 
      runpath_var='LD_RUN_PATH'
14947
 
      hardcode_shlibpath_var_F77=no
14948
 
      ;;
14949
 
 
14950
 
    sysv5*)
14951
 
      no_undefined_flag_F77=' -z text'
14952
 
      # $CC -shared without GNU ld will not create a library from C++
14953
 
      # object files and a static libstdc++, better avoid it by now
14954
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14955
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14956
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14957
 
      hardcode_libdir_flag_spec_F77=
14958
 
      hardcode_shlibpath_var_F77=no
14959
 
      runpath_var='LD_RUN_PATH'
 
14549
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14550
      no_undefined_flag_F77='${wl}-z,text'
 
14551
      archive_cmds_need_lc_F77=no
 
14552
      hardcode_shlibpath_var_F77=no
 
14553
      runpath_var='LD_RUN_PATH'
 
14554
 
 
14555
      if test "$GCC" = yes; then
 
14556
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14557
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14558
      else
 
14559
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14560
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14561
      fi
 
14562
      ;;
 
14563
 
 
14564
    sysv5* | sco3.2v5* | sco5v6*)
 
14565
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14566
      # link with -lc, and that would cause any symbols used from libc to
 
14567
      # always be unresolved, which means just about no library would
 
14568
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14569
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14570
      # as -z defs.
 
14571
      no_undefined_flag_F77='${wl}-z,text'
 
14572
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14573
      archive_cmds_need_lc_F77=no
 
14574
      hardcode_shlibpath_var_F77=no
 
14575
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14576
      hardcode_libdir_separator_F77=':'
 
14577
      link_all_deplibs_F77=yes
 
14578
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14579
      runpath_var='LD_RUN_PATH'
 
14580
 
 
14581
      if test "$GCC" = yes; then
 
14582
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14583
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14584
      else
 
14585
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14586
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14587
      fi
14960
14588
      ;;
14961
14589
 
14962
14590
    uts4*)
14975
14603
echo "${ECHO_T}$ld_shlibs_F77" >&6
14976
14604
test "$ld_shlibs_F77" = no && can_build_shared=no
14977
14605
 
14978
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14979
 
if test "$GCC" = yes; then
14980
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14981
 
fi
14982
 
 
14983
14606
#
14984
14607
# Do we need to explicitly link libc?
14985
14608
#
15012
14635
        libobjs=conftest.$ac_objext
15013
14636
        deplibs=
15014
14637
        wl=$lt_prog_compiler_wl_F77
 
14638
        pic_flag=$lt_prog_compiler_pic_F77
15015
14639
        compiler_flags=-v
15016
14640
        linker_flags=-v
15017
14641
        verstring=
15172
14796
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15173
14797
      dldir=$destdir/`dirname \$dlpath`~
15174
14798
      test -d \$dldir || mkdir -p \$dldir~
15175
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14799
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14800
      chmod a+x \$dldir/$dlname'
15176
14801
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15177
14802
      dlpath=$dir/\$dldll~
15178
14803
       $rm \$dlpath'
15225
14850
  soname_spec='${libname}${release}${major}$shared_ext'
15226
14851
  shlibpath_overrides_runpath=yes
15227
14852
  shlibpath_var=DYLD_LIBRARY_PATH
15228
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14853
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15229
14854
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15230
14855
  if test "$GCC" = yes; then
15231
14856
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15263
14888
freebsd* | dragonfly*)
15264
14889
  # DragonFly does not have aout.  When/if they implement a new
15265
14890
  # versioning mechanism, adjust this.
15266
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14891
  if test -x /usr/bin/objformat; then
 
14892
    objformat=`/usr/bin/objformat`
 
14893
  else
 
14894
    case $host_os in
 
14895
    freebsd[123]*) objformat=aout ;;
 
14896
    *) objformat=elf ;;
 
14897
    esac
 
14898
  fi
15267
14899
  version_type=freebsd-$objformat
15268
14900
  case $version_type in
15269
14901
    freebsd-elf*)
15285
14917
    shlibpath_overrides_runpath=yes
15286
14918
    hardcode_into_libs=yes
15287
14919
    ;;
15288
 
  *) # from 3.2 on
 
14920
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14921
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15289
14922
    shlibpath_overrides_runpath=no
15290
14923
    hardcode_into_libs=yes
15291
14924
    ;;
 
14925
  freebsd*) # from 4.6 on
 
14926
    shlibpath_overrides_runpath=yes
 
14927
    hardcode_into_libs=yes
 
14928
    ;;
15292
14929
  esac
15293
14930
  ;;
15294
14931
 
15308
14945
  version_type=sunos
15309
14946
  need_lib_prefix=no
15310
14947
  need_version=no
15311
 
  case "$host_cpu" in
 
14948
  case $host_cpu in
15312
14949
  ia64*)
15313
14950
    shrext_cmds='.so'
15314
14951
    hardcode_into_libs=yes
15348
14985
  postinstall_cmds='chmod 555 $lib'
15349
14986
  ;;
15350
14987
 
 
14988
interix3*)
 
14989
  version_type=linux
 
14990
  need_lib_prefix=no
 
14991
  need_version=no
 
14992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14993
  soname_spec='${libname}${release}${shared_ext}$major'
 
14994
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14995
  shlibpath_var=LD_LIBRARY_PATH
 
14996
  shlibpath_overrides_runpath=no
 
14997
  hardcode_into_libs=yes
 
14998
  ;;
 
14999
 
15351
15000
irix5* | irix6* | nonstopux*)
15352
15001
  case $host_os in
15353
15002
    nonstopux*) version_type=nonstopux ;;
15409
15058
  libsuff=
15410
15059
  case "$host_cpu" in
15411
15060
  x86_64*|s390x*|powerpc64*)
15412
 
    echo '#line 15412 "configure"' > conftest.$ac_ext
 
15061
    echo '#line 15061 "configure"' > conftest.$ac_ext
15413
15062
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414
15063
  (eval $ac_compile) 2>&5
15415
15064
  ac_status=$?
15428
15077
 
15429
15078
  # Append ld.so.conf contents to the search path
15430
15079
  if test -f /etc/ld.so.conf; then
15431
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15080
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15432
15081
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15433
15082
  fi
15434
15083
 
15490
15139
 
15491
15140
openbsd*)
15492
15141
  version_type=sunos
 
15142
  sys_lib_dlsearch_path_spec="/usr/lib"
15493
15143
  need_lib_prefix=no
15494
 
  need_version=no
 
15144
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15145
  case $host_os in
 
15146
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15147
    *)                         need_version=no  ;;
 
15148
  esac
15495
15149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15496
15150
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15497
15151
  shlibpath_var=LD_LIBRARY_PATH
15529
15183
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15530
15184
  ;;
15531
15185
 
15532
 
sco3.2v5*)
15533
 
  version_type=osf
15534
 
  soname_spec='${libname}${release}${shared_ext}$major'
15535
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536
 
  shlibpath_var=LD_LIBRARY_PATH
15537
 
  ;;
15538
 
 
15539
15186
solaris*)
15540
15187
  version_type=linux
15541
15188
  need_lib_prefix=no
15561
15208
  need_version=yes
15562
15209
  ;;
15563
15210
 
15564
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15211
sysv4 | sysv4.3*)
15565
15212
  version_type=linux
15566
15213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567
15214
  soname_spec='${libname}${release}${shared_ext}$major'
15594
15241
  fi
15595
15242
  ;;
15596
15243
 
 
15244
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15245
  version_type=freebsd-elf
 
15246
  need_lib_prefix=no
 
15247
  need_version=no
 
15248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15249
  soname_spec='${libname}${release}${shared_ext}$major'
 
15250
  shlibpath_var=LD_LIBRARY_PATH
 
15251
  hardcode_into_libs=yes
 
15252
  if test "$with_gnu_ld" = yes; then
 
15253
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15254
    shlibpath_overrides_runpath=no
 
15255
  else
 
15256
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15257
    shlibpath_overrides_runpath=yes
 
15258
    case $host_os in
 
15259
      sco3.2v5*)
 
15260
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15261
        ;;
 
15262
    esac
 
15263
  fi
 
15264
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15265
  ;;
 
15266
 
15597
15267
uts4*)
15598
15268
  version_type=linux
15599
15269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609
15279
echo "${ECHO_T}$dynamic_linker" >&6
15610
15280
test "$dynamic_linker" = no && can_build_shared=no
15611
15281
 
 
15282
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15283
if test "$GCC" = yes; then
 
15284
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15285
fi
 
15286
 
15612
15287
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15613
15288
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15614
15289
hardcode_action_F77=
15646
15321
  enable_fast_install=needless
15647
15322
fi
15648
15323
 
15649
 
striplib=
15650
 
old_striplib=
15651
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15652
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15653
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15654
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15655
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15656
 
  echo "$as_me:$LINENO: result: yes" >&5
15657
 
echo "${ECHO_T}yes" >&6
15658
 
else
15659
 
# FIXME - insert some real tests, host_os isn't really good enough
15660
 
  case $host_os in
15661
 
   darwin*)
15662
 
       if test -n "$STRIP" ; then
15663
 
         striplib="$STRIP -x"
15664
 
         echo "$as_me:$LINENO: result: yes" >&5
15665
 
echo "${ECHO_T}yes" >&6
15666
 
       else
15667
 
  echo "$as_me:$LINENO: result: no" >&5
15668
 
echo "${ECHO_T}no" >&6
15669
 
fi
15670
 
       ;;
15671
 
   *)
15672
 
  echo "$as_me:$LINENO: result: no" >&5
15673
 
echo "${ECHO_T}no" >&6
15674
 
    ;;
15675
 
  esac
15676
 
fi
15677
 
 
15678
 
 
15679
15324
 
15680
15325
# The else clause should only fire when bootstrapping the
15681
15326
# libtool distribution, otherwise you forgot to ship ltmain.sh
15690
15335
  # Now quote all the things that may contain metacharacters while being
15691
15336
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15692
15337
  # variables and quote the copies for generation of the libtool script.
15693
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15338
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15694
15339
    SED SHELL STRIP \
15695
15340
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15696
15341
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15808
15453
# A C compiler.
15809
15454
LTCC=$lt_LTCC
15810
15455
 
 
15456
# LTCC compiler flags.
 
15457
LTCFLAGS=$lt_LTCFLAGS
 
15458
 
15811
15459
# A language-specific compiler.
15812
15460
CC=$lt_compiler_F77
15813
15461
 
15814
15462
# Is the compiler the GNU C compiler?
15815
15463
with_gcc=$GCC_F77
15816
15464
 
 
15465
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
15466
gcc_ver=\`gcc -dumpversion\`
 
15467
 
15817
15468
# An ERE matcher.
15818
15469
EGREP=$lt_EGREP
15819
15470
 
15947
15598
 
15948
15599
# Dependencies to place before the objects being linked to create a
15949
15600
# shared library.
15950
 
predep_objects=$lt_predep_objects_F77
 
15601
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15951
15602
 
15952
15603
# Dependencies to place after the objects being linked to create a
15953
15604
# shared library.
15954
 
postdep_objects=$lt_postdep_objects_F77
 
15605
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15955
15606
 
15956
15607
# Dependencies to place before the objects being linked to create a
15957
15608
# shared library.
15963
15614
 
15964
15615
# The library search path used internally by the compiler when linking
15965
15616
# a shared library.
15966
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15617
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15967
15618
 
15968
15619
# Method to check whether dependent libraries are shared objects.
15969
15620
deplibs_check_method=$lt_deplibs_check_method
16043
15694
link_all_deplibs=$link_all_deplibs_F77
16044
15695
 
16045
15696
# Compile-time system search path for libraries
16046
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15697
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16047
15698
 
16048
15699
# Run-time system search path for libraries
16049
15700
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16118
15769
# If no C compiler was specified, use CC.
16119
15770
LTCC=${LTCC-"$CC"}
16120
15771
 
 
15772
# If no C compiler flags were specified, use CFLAGS.
 
15773
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15774
 
16121
15775
# Allow CC to be a program name with arguments.
16122
15776
compiler=$CC
16123
15777
 
16125
15779
# save warnings/boilerplate of simple test code
16126
15780
ac_outfile=conftest.$ac_objext
16127
15781
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16128
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15782
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16129
15783
_lt_compiler_boilerplate=`cat conftest.err`
16130
15784
$rm conftest*
16131
15785
 
16132
15786
ac_outfile=conftest.$ac_objext
16133
15787
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16134
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15788
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16135
15789
_lt_linker_boilerplate=`cat conftest.err`
16136
15790
$rm conftest*
16137
15791
 
16179
15833
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16180
15834
   # The option is referenced via a variable to avoid confusing sed.
16181
15835
   lt_compile=`echo "$ac_compile" | $SED \
16182
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15836
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16183
15837
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16184
15838
   -e 's:$: $lt_compiler_flag:'`
16185
 
   (eval echo "\"\$as_me:16185: $lt_compile\"" >&5)
 
15839
   (eval echo "\"\$as_me:15839: $lt_compile\"" >&5)
16186
15840
   (eval "$lt_compile" 2>conftest.err)
16187
15841
   ac_status=$?
16188
15842
   cat conftest.err >&5
16189
 
   echo "$as_me:16189: \$? = $ac_status" >&5
 
15843
   echo "$as_me:15843: \$? = $ac_status" >&5
16190
15844
   if (exit $ac_status) && test -s "$ac_outfile"; then
16191
15845
     # The compiler can only warn and ignore the option if not recognized
16192
15846
     # So say no if there are warnings other than the usual output.
16193
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16194
 
     $SED '/^$/d' conftest.err >conftest.er2
16195
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15847
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15848
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15849
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16196
15850
       lt_cv_prog_compiler_rtti_exceptions=yes
16197
15851
     fi
16198
15852
   fi
16253
15907
      lt_prog_compiler_pic_GCJ='-fno-common'
16254
15908
      ;;
16255
15909
 
 
15910
    interix3*)
 
15911
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15912
      # Instead, we relocate shared libraries at runtime.
 
15913
      ;;
 
15914
 
16256
15915
    msdosdjgpp*)
16257
15916
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16258
15917
      # on systems that don't support them.
16269
15928
    hpux*)
16270
15929
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271
15930
      # not for PA HP-UX.
16272
 
      case "$host_cpu" in
 
15931
      case $host_cpu in
16273
15932
      hppa*64*|ia64*)
16274
15933
        # +Z the default
16275
15934
        ;;
16316
15975
      lt_prog_compiler_wl_GCJ='-Wl,'
16317
15976
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16318
15977
      # not for PA HP-UX.
16319
 
      case "$host_cpu" in
 
15978
      case $host_cpu in
16320
15979
      hppa*64*|ia64*)
16321
15980
        # +Z the default
16322
15981
        ;;
16346
16005
        lt_prog_compiler_pic_GCJ='-KPIC'
16347
16006
        lt_prog_compiler_static_GCJ='-static'
16348
16007
        ;;
16349
 
      pgcc* | pgf77* | pgf90*)
 
16008
      pgcc* | pgf77* | pgf90* | pgf95*)
16350
16009
        # Portland Group compilers (*not* the Pentium gcc compiler,
16351
16010
        # which looks to be a dead project)
16352
16011
        lt_prog_compiler_wl_GCJ='-Wl,'
16353
16012
        lt_prog_compiler_pic_GCJ='-fpic'
16354
 
        lt_prog_compiler_static_GCJ='-static'
 
16013
        lt_prog_compiler_static_GCJ='-Bstatic'
16355
16014
        ;;
16356
16015
      ccc*)
16357
16016
        lt_prog_compiler_wl_GCJ='-Wl,'
16367
16026
      lt_prog_compiler_static_GCJ='-non_shared'
16368
16027
      ;;
16369
16028
 
16370
 
    sco3.2v5*)
16371
 
      lt_prog_compiler_pic_GCJ='-Kpic'
16372
 
      lt_prog_compiler_static_GCJ='-dn'
16373
 
      ;;
16374
 
 
16375
16029
    solaris*)
16376
16030
      lt_prog_compiler_pic_GCJ='-KPIC'
16377
16031
      lt_prog_compiler_static_GCJ='-Bstatic'
16389
16043
      lt_prog_compiler_static_GCJ='-Bstatic'
16390
16044
      ;;
16391
16045
 
16392
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16046
    sysv4 | sysv4.2uw2* | sysv4.3*)
16393
16047
      lt_prog_compiler_wl_GCJ='-Wl,'
16394
16048
      lt_prog_compiler_pic_GCJ='-KPIC'
16395
16049
      lt_prog_compiler_static_GCJ='-Bstatic'
16402
16056
      fi
16403
16057
      ;;
16404
16058
 
 
16059
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16060
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16061
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16062
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16063
      ;;
 
16064
 
16405
16065
    unicos*)
16406
16066
      lt_prog_compiler_wl_GCJ='-Wl,'
16407
16067
      lt_prog_compiler_can_build_shared_GCJ=no
16441
16101
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16442
16102
   # The option is referenced via a variable to avoid confusing sed.
16443
16103
   lt_compile=`echo "$ac_compile" | $SED \
16444
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16104
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16445
16105
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16446
16106
   -e 's:$: $lt_compiler_flag:'`
16447
 
   (eval echo "\"\$as_me:16447: $lt_compile\"" >&5)
 
16107
   (eval echo "\"\$as_me:16107: $lt_compile\"" >&5)
16448
16108
   (eval "$lt_compile" 2>conftest.err)
16449
16109
   ac_status=$?
16450
16110
   cat conftest.err >&5
16451
 
   echo "$as_me:16451: \$? = $ac_status" >&5
 
16111
   echo "$as_me:16111: \$? = $ac_status" >&5
16452
16112
   if (exit $ac_status) && test -s "$ac_outfile"; then
16453
16113
     # The compiler can only warn and ignore the option if not recognized
16454
16114
     # So say no if there are warnings other than the usual output.
16455
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16456
 
     $SED '/^$/d' conftest.err >conftest.er2
16457
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16115
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16116
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16117
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16458
16118
       lt_prog_compiler_pic_works_GCJ=yes
16459
16119
     fi
16460
16120
   fi
16475
16135
fi
16476
16136
 
16477
16137
fi
16478
 
case "$host_os" in
 
16138
case $host_os in
16479
16139
  # For platforms which do not support PIC, -DPIC is meaningless:
16480
16140
  *djgpp*)
16481
16141
    lt_prog_compiler_pic_GCJ=
16485
16145
    ;;
16486
16146
esac
16487
16147
 
 
16148
#
 
16149
# Check to make sure the static flag actually works.
 
16150
#
 
16151
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16152
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16153
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
16154
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16156
else
 
16157
  lt_prog_compiler_static_works_GCJ=no
 
16158
   save_LDFLAGS="$LDFLAGS"
 
16159
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16160
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16161
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16162
     # The linker can only warn and ignore the option if not recognized
 
16163
     # So say no if there are warnings
 
16164
     if test -s conftest.err; then
 
16165
       # Append any errors to the config.log.
 
16166
       cat conftest.err 1>&5
 
16167
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16168
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16169
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16170
         lt_prog_compiler_static_works_GCJ=yes
 
16171
       fi
 
16172
     else
 
16173
       lt_prog_compiler_static_works_GCJ=yes
 
16174
     fi
 
16175
   fi
 
16176
   $rm conftest*
 
16177
   LDFLAGS="$save_LDFLAGS"
 
16178
 
 
16179
fi
 
16180
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16181
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
16182
 
 
16183
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16184
    :
 
16185
else
 
16186
    lt_prog_compiler_static_GCJ=
 
16187
fi
 
16188
 
 
16189
 
16488
16190
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16489
16191
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16490
16192
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16503
16205
   # Note that $ac_compile itself does not contain backslashes and begins
16504
16206
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16505
16207
   lt_compile=`echo "$ac_compile" | $SED \
16506
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16208
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16507
16209
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16508
16210
   -e 's:$: $lt_compiler_flag:'`
16509
 
   (eval echo "\"\$as_me:16509: $lt_compile\"" >&5)
 
16211
   (eval echo "\"\$as_me:16211: $lt_compile\"" >&5)
16510
16212
   (eval "$lt_compile" 2>out/conftest.err)
16511
16213
   ac_status=$?
16512
16214
   cat out/conftest.err >&5
16513
 
   echo "$as_me:16513: \$? = $ac_status" >&5
 
16215
   echo "$as_me:16215: \$? = $ac_status" >&5
16514
16216
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16515
16217
   then
16516
16218
     # The compiler can only warn and ignore the option if not recognized
16517
16219
     # So say no if there are warnings
16518
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16519
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
16520
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16220
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16221
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16222
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16521
16223
       lt_cv_prog_compiler_c_o_GCJ=yes
16522
16224
     fi
16523
16225
   fi
16524
 
   chmod u+w .
 
16226
   chmod u+w . 2>&5
16525
16227
   $rm conftest*
16526
16228
   # SGI C++ compiler will create directory out/ii_files/ for
16527
16229
   # template instantiation
16617
16319
      with_gnu_ld=no
16618
16320
    fi
16619
16321
    ;;
 
16322
  interix*)
 
16323
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16324
    with_gnu_ld=yes
 
16325
    ;;
16620
16326
  openbsd*)
16621
16327
    with_gnu_ld=no
16622
16328
    ;;
16701
16407
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16702
16408
 
16703
16409
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16704
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16410
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16705
16411
        # If the export-symbols file already is a .def file (1st line
16706
16412
        # is EXPORTS), use it as is; otherwise, prepend...
16707
16413
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16710
16416
          echo EXPORTS > $output_objdir/$soname.def;
16711
16417
          cat $export_symbols >> $output_objdir/$soname.def;
16712
16418
        fi~
16713
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16419
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16714
16420
      else
16715
16421
        ld_shlibs_GCJ=no
16716
16422
      fi
16717
16423
      ;;
16718
16424
 
 
16425
    interix3*)
 
16426
      hardcode_direct_GCJ=no
 
16427
      hardcode_shlibpath_var_GCJ=no
 
16428
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16429
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16430
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16431
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16432
      # default) and relocated if they conflict, which is a slow very memory
 
16433
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16434
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16435
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16436
      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'
 
16437
      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'
 
16438
      ;;
 
16439
 
16719
16440
    linux*)
16720
16441
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16721
16442
        tmp_addflag=
16722
16443
        case $cc_basename,$host_cpu in
16723
16444
        pgcc*)                          # Portland Group C compiler
16724
 
          whole_archive_flag_spec_GCJ=
 
16445
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16446
          tmp_addflag=' $pic_flag'
16725
16447
          ;;
16726
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16727
 
          whole_archive_flag_spec_GCJ=
16728
 
          tmp_addflag=' -fpic -Mnomain' ;;
 
16448
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16449
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16450
          tmp_addflag=' $pic_flag -Mnomain' ;;
16729
16451
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16730
16452
          tmp_addflag=' -i_dynamic' ;;
16731
16453
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16756
16478
      fi
16757
16479
      ;;
16758
16480
 
16759
 
    solaris* | sysv5*)
 
16481
    solaris*)
16760
16482
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16761
16483
        ld_shlibs_GCJ=no
16762
16484
        cat <<EOF 1>&2
16777
16499
      fi
16778
16500
      ;;
16779
16501
 
 
16502
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16503
      case `$LD -v 2>&1` in
 
16504
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16505
        ld_shlibs_GCJ=no
 
16506
        cat <<_LT_EOF 1>&2
 
16507
 
 
16508
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16509
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16510
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16511
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16512
*** your PATH or compiler configuration so that the native linker is
 
16513
*** used, and then restart.
 
16514
 
 
16515
_LT_EOF
 
16516
        ;;
 
16517
        *)
 
16518
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16519
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16520
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16521
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16522
          else
 
16523
            ld_shlibs_GCJ=no
 
16524
          fi
 
16525
        ;;
 
16526
      esac
 
16527
      ;;
 
16528
 
16780
16529
    sunos4*)
16781
16530
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782
16531
      wlarc=
16810
16559
      # Note: this linker hardcodes the directories in LIBPATH if there
16811
16560
      # are no directories specified by -L.
16812
16561
      hardcode_minus_L_GCJ=yes
16813
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16562
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16814
16563
        # Neither direct hardcoding nor static linking is supported with a
16815
16564
        # broken collect2.
16816
16565
        hardcode_direct_GCJ=unsupported
16844
16593
            break
16845
16594
          fi
16846
16595
          done
 
16596
          ;;
16847
16597
        esac
16848
16598
 
16849
16599
        exp_sym_flag='-bexport'
16881
16631
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882
16632
          hardcode_libdir_separator_GCJ=
16883
16633
          fi
 
16634
          ;;
16884
16635
        esac
16885
16636
        shared_flag='-shared'
16886
16637
        if test "$aix_use_runtimelinking" = yes; then
16893
16644
        # chokes on -Wl,-G. The following line is correct:
16894
16645
          shared_flag='-G'
16895
16646
        else
16896
 
        if test "$aix_use_runtimelinking" = yes; then
 
16647
          if test "$aix_use_runtimelinking" = yes; then
16897
16648
            shared_flag='${wl}-G'
16898
16649
          else
16899
16650
            shared_flag='${wl}-bM:SRE'
16900
 
        fi
 
16651
          fi
16901
16652
        fi
16902
16653
      fi
16903
16654
 
16962
16713
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16963
16714
 
16964
16715
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16965
 
        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"
 
16716
        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"
16966
16717
       else
16967
16718
        if test "$host_cpu" = ia64; then
16968
16719
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16969
16720
          allow_undefined_flag_GCJ="-z nodefs"
16970
 
          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"
 
16721
          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"
16971
16722
        else
16972
16723
         # Determine the default libpath from the value encoded in an empty executable.
16973
16724
         cat >conftest.$ac_ext <<_ACEOF
17027
16778
          # -berok will link without error, but may produce a broken library.
17028
16779
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17029
16780
          allow_undefined_flag_GCJ=' ${wl}-berok'
17030
 
          # -bexpall does not export symbols beginning with underscore (_)
17031
 
          always_export_symbols_GCJ=yes
17032
16781
          # Exported symbols can be pulled into shared objects from archives
17033
 
          whole_archive_flag_spec_GCJ=' '
 
16782
          whole_archive_flag_spec_GCJ='$convenience'
17034
16783
          archive_cmds_need_lc_GCJ=yes
17035
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17036
 
          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'
 
16784
          # This is similar to how AIX traditionally builds its shared libraries.
 
16785
          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'
17037
16786
        fi
17038
16787
      fi
17039
16788
      ;;
17072
16821
      ;;
17073
16822
 
17074
16823
    darwin* | rhapsody*)
17075
 
      case "$host_os" in
 
16824
      case $host_os in
17076
16825
        rhapsody* | darwin1.[012])
17077
16826
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17078
16827
         ;;
17101
16850
        output_verbose_link_cmd='echo'
17102
16851
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17103
16852
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17104
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16853
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17105
16854
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17106
16855
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17107
16856
    else
17110
16859
         output_verbose_link_cmd='echo'
17111
16860
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17112
16861
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17113
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16862
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17114
16863
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17115
16864
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17116
16865
          ;;
17174
16923
      export_dynamic_flag_spec_GCJ='${wl}-E'
17175
16924
      ;;
17176
16925
 
17177
 
    hpux10* | hpux11*)
17178
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17179
 
        case "$host_cpu" in
17180
 
        hppa*64*|ia64*)
 
16926
    hpux10*)
 
16927
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16928
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16929
      else
 
16930
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16931
      fi
 
16932
      if test "$with_gnu_ld" = no; then
 
16933
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16934
        hardcode_libdir_separator_GCJ=:
 
16935
 
 
16936
        hardcode_direct_GCJ=yes
 
16937
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16938
 
 
16939
        # hardcode_minus_L: Not really in the search PATH,
 
16940
        # but as the default location of the library.
 
16941
        hardcode_minus_L_GCJ=yes
 
16942
      fi
 
16943
      ;;
 
16944
 
 
16945
    hpux11*)
 
16946
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16947
        case $host_cpu in
 
16948
        hppa*64*)
17181
16949
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17182
16950
          ;;
 
16951
        ia64*)
 
16952
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16953
          ;;
17183
16954
        *)
17184
16955
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17185
16956
          ;;
17186
16957
        esac
17187
16958
      else
17188
 
        case "$host_cpu" in
17189
 
        hppa*64*|ia64*)
17190
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16959
        case $host_cpu in
 
16960
        hppa*64*)
 
16961
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16962
          ;;
 
16963
        ia64*)
 
16964
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17191
16965
          ;;
17192
16966
        *)
17193
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16967
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17194
16968
          ;;
17195
16969
        esac
17196
16970
      fi
17197
16971
      if test "$with_gnu_ld" = no; then
17198
 
        case "$host_cpu" in
17199
 
        hppa*64*)
17200
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16972
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16973
        hardcode_libdir_separator_GCJ=:
 
16974
 
 
16975
        case $host_cpu in
 
16976
        hppa*64*|ia64*)
17201
16977
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17202
 
          hardcode_libdir_separator_GCJ=:
17203
 
          hardcode_direct_GCJ=no
17204
 
          hardcode_shlibpath_var_GCJ=no
17205
 
          ;;
17206
 
        ia64*)
17207
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208
 
          hardcode_direct_GCJ=no
17209
 
          hardcode_shlibpath_var_GCJ=no
17210
 
 
17211
 
          # hardcode_minus_L: Not really in the search PATH,
17212
 
          # but as the default location of the library.
17213
 
          hardcode_minus_L_GCJ=yes
 
16978
          hardcode_direct_GCJ=no
 
16979
          hardcode_shlibpath_var_GCJ=no
17214
16980
          ;;
17215
16981
        *)
17216
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17217
 
          hardcode_libdir_separator_GCJ=:
17218
16982
          hardcode_direct_GCJ=yes
17219
16983
          export_dynamic_flag_spec_GCJ='${wl}-E'
17220
16984
 
17316
17080
      hardcode_libdir_separator_GCJ=:
17317
17081
      ;;
17318
17082
 
17319
 
    sco3.2v5*)
17320
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17321
 
      hardcode_shlibpath_var_GCJ=no
17322
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17323
 
      runpath_var=LD_RUN_PATH
17324
 
      hardcode_runpath_var=yes
17325
 
      ;;
17326
 
 
17327
17083
    solaris*)
17328
17084
      no_undefined_flag_GCJ=' -z text'
17329
17085
      if test "$GCC" = yes; then
17409
17165
      fi
17410
17166
      ;;
17411
17167
 
17412
 
    sysv4.2uw2*)
17413
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17414
 
      hardcode_direct_GCJ=yes
17415
 
      hardcode_minus_L_GCJ=no
17416
 
      hardcode_shlibpath_var_GCJ=no
17417
 
      hardcode_runpath_var=yes
17418
 
      runpath_var=LD_RUN_PATH
17419
 
      ;;
17420
 
 
17421
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17422
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17423
 
      if test "$GCC" = yes; then
17424
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17425
 
      else
17426
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427
 
      fi
17428
 
      runpath_var='LD_RUN_PATH'
17429
 
      hardcode_shlibpath_var_GCJ=no
17430
 
      ;;
17431
 
 
17432
 
    sysv5*)
17433
 
      no_undefined_flag_GCJ=' -z text'
17434
 
      # $CC -shared without GNU ld will not create a library from C++
17435
 
      # object files and a static libstdc++, better avoid it by now
17436
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17437
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17438
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17439
 
      hardcode_libdir_flag_spec_GCJ=
17440
 
      hardcode_shlibpath_var_GCJ=no
17441
 
      runpath_var='LD_RUN_PATH'
 
17168
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17169
      no_undefined_flag_GCJ='${wl}-z,text'
 
17170
      archive_cmds_need_lc_GCJ=no
 
17171
      hardcode_shlibpath_var_GCJ=no
 
17172
      runpath_var='LD_RUN_PATH'
 
17173
 
 
17174
      if test "$GCC" = yes; then
 
17175
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17176
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17177
      else
 
17178
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17179
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17180
      fi
 
17181
      ;;
 
17182
 
 
17183
    sysv5* | sco3.2v5* | sco5v6*)
 
17184
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17185
      # link with -lc, and that would cause any symbols used from libc to
 
17186
      # always be unresolved, which means just about no library would
 
17187
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17188
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17189
      # as -z defs.
 
17190
      no_undefined_flag_GCJ='${wl}-z,text'
 
17191
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17192
      archive_cmds_need_lc_GCJ=no
 
17193
      hardcode_shlibpath_var_GCJ=no
 
17194
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17195
      hardcode_libdir_separator_GCJ=':'
 
17196
      link_all_deplibs_GCJ=yes
 
17197
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17198
      runpath_var='LD_RUN_PATH'
 
17199
 
 
17200
      if test "$GCC" = yes; then
 
17201
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17202
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17203
      else
 
17204
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17205
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17206
      fi
17442
17207
      ;;
17443
17208
 
17444
17209
    uts4*)
17457
17222
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17458
17223
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17459
17224
 
17460
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17461
 
if test "$GCC" = yes; then
17462
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17463
 
fi
17464
 
 
17465
17225
#
17466
17226
# Do we need to explicitly link libc?
17467
17227
#
17494
17254
        libobjs=conftest.$ac_objext
17495
17255
        deplibs=
17496
17256
        wl=$lt_prog_compiler_wl_GCJ
 
17257
        pic_flag=$lt_prog_compiler_pic_GCJ
17497
17258
        compiler_flags=-v
17498
17259
        linker_flags=-v
17499
17260
        verstring=
17654
17415
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17655
17416
      dldir=$destdir/`dirname \$dlpath`~
17656
17417
      test -d \$dldir || mkdir -p \$dldir~
17657
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17418
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17419
      chmod a+x \$dldir/$dlname'
17658
17420
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17659
17421
      dlpath=$dir/\$dldll~
17660
17422
       $rm \$dlpath'
17707
17469
  soname_spec='${libname}${release}${major}$shared_ext'
17708
17470
  shlibpath_overrides_runpath=yes
17709
17471
  shlibpath_var=DYLD_LIBRARY_PATH
17710
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17472
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17711
17473
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17712
17474
  if test "$GCC" = yes; then
17713
17475
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17745
17507
freebsd* | dragonfly*)
17746
17508
  # DragonFly does not have aout.  When/if they implement a new
17747
17509
  # versioning mechanism, adjust this.
17748
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17510
  if test -x /usr/bin/objformat; then
 
17511
    objformat=`/usr/bin/objformat`
 
17512
  else
 
17513
    case $host_os in
 
17514
    freebsd[123]*) objformat=aout ;;
 
17515
    *) objformat=elf ;;
 
17516
    esac
 
17517
  fi
17749
17518
  version_type=freebsd-$objformat
17750
17519
  case $version_type in
17751
17520
    freebsd-elf*)
17767
17536
    shlibpath_overrides_runpath=yes
17768
17537
    hardcode_into_libs=yes
17769
17538
    ;;
17770
 
  *) # from 3.2 on
 
17539
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17540
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17771
17541
    shlibpath_overrides_runpath=no
17772
17542
    hardcode_into_libs=yes
17773
17543
    ;;
 
17544
  freebsd*) # from 4.6 on
 
17545
    shlibpath_overrides_runpath=yes
 
17546
    hardcode_into_libs=yes
 
17547
    ;;
17774
17548
  esac
17775
17549
  ;;
17776
17550
 
17790
17564
  version_type=sunos
17791
17565
  need_lib_prefix=no
17792
17566
  need_version=no
17793
 
  case "$host_cpu" in
 
17567
  case $host_cpu in
17794
17568
  ia64*)
17795
17569
    shrext_cmds='.so'
17796
17570
    hardcode_into_libs=yes
17830
17604
  postinstall_cmds='chmod 555 $lib'
17831
17605
  ;;
17832
17606
 
 
17607
interix3*)
 
17608
  version_type=linux
 
17609
  need_lib_prefix=no
 
17610
  need_version=no
 
17611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17612
  soname_spec='${libname}${release}${shared_ext}$major'
 
17613
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17614
  shlibpath_var=LD_LIBRARY_PATH
 
17615
  shlibpath_overrides_runpath=no
 
17616
  hardcode_into_libs=yes
 
17617
  ;;
 
17618
 
17833
17619
irix5* | irix6* | nonstopux*)
17834
17620
  case $host_os in
17835
17621
    nonstopux*) version_type=nonstopux ;;
17891
17677
  libsuff=
17892
17678
  case "$host_cpu" in
17893
17679
  x86_64*|s390x*|powerpc64*)
17894
 
    echo '#line 17894 "configure"' > conftest.$ac_ext
 
17680
    echo '#line 17680 "configure"' > conftest.$ac_ext
17895
17681
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17896
17682
  (eval $ac_compile) 2>&5
17897
17683
  ac_status=$?
17910
17696
 
17911
17697
  # Append ld.so.conf contents to the search path
17912
17698
  if test -f /etc/ld.so.conf; then
17913
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17699
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17914
17700
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17915
17701
  fi
17916
17702
 
17972
17758
 
17973
17759
openbsd*)
17974
17760
  version_type=sunos
 
17761
  sys_lib_dlsearch_path_spec="/usr/lib"
17975
17762
  need_lib_prefix=no
17976
 
  need_version=no
 
17763
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17764
  case $host_os in
 
17765
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17766
    *)                         need_version=no  ;;
 
17767
  esac
17977
17768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17978
17769
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17979
17770
  shlibpath_var=LD_LIBRARY_PATH
18011
17802
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18012
17803
  ;;
18013
17804
 
18014
 
sco3.2v5*)
18015
 
  version_type=osf
18016
 
  soname_spec='${libname}${release}${shared_ext}$major'
18017
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018
 
  shlibpath_var=LD_LIBRARY_PATH
18019
 
  ;;
18020
 
 
18021
17805
solaris*)
18022
17806
  version_type=linux
18023
17807
  need_lib_prefix=no
18043
17827
  need_version=yes
18044
17828
  ;;
18045
17829
 
18046
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17830
sysv4 | sysv4.3*)
18047
17831
  version_type=linux
18048
17832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049
17833
  soname_spec='${libname}${release}${shared_ext}$major'
18076
17860
  fi
18077
17861
  ;;
18078
17862
 
 
17863
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17864
  version_type=freebsd-elf
 
17865
  need_lib_prefix=no
 
17866
  need_version=no
 
17867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17868
  soname_spec='${libname}${release}${shared_ext}$major'
 
17869
  shlibpath_var=LD_LIBRARY_PATH
 
17870
  hardcode_into_libs=yes
 
17871
  if test "$with_gnu_ld" = yes; then
 
17872
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17873
    shlibpath_overrides_runpath=no
 
17874
  else
 
17875
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17876
    shlibpath_overrides_runpath=yes
 
17877
    case $host_os in
 
17878
      sco3.2v5*)
 
17879
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17880
        ;;
 
17881
    esac
 
17882
  fi
 
17883
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17884
  ;;
 
17885
 
18079
17886
uts4*)
18080
17887
  version_type=linux
18081
17888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091
17898
echo "${ECHO_T}$dynamic_linker" >&6
18092
17899
test "$dynamic_linker" = no && can_build_shared=no
18093
17900
 
 
17901
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17902
if test "$GCC" = yes; then
 
17903
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17904
fi
 
17905
 
18094
17906
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18095
17907
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18096
17908
hardcode_action_GCJ=
18128
17940
  enable_fast_install=needless
18129
17941
fi
18130
17942
 
18131
 
striplib=
18132
 
old_striplib=
18133
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18134
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18135
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18136
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18137
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18138
 
  echo "$as_me:$LINENO: result: yes" >&5
18139
 
echo "${ECHO_T}yes" >&6
18140
 
else
18141
 
# FIXME - insert some real tests, host_os isn't really good enough
18142
 
  case $host_os in
18143
 
   darwin*)
18144
 
       if test -n "$STRIP" ; then
18145
 
         striplib="$STRIP -x"
18146
 
         echo "$as_me:$LINENO: result: yes" >&5
18147
 
echo "${ECHO_T}yes" >&6
18148
 
       else
18149
 
  echo "$as_me:$LINENO: result: no" >&5
18150
 
echo "${ECHO_T}no" >&6
18151
 
fi
18152
 
       ;;
18153
 
   *)
18154
 
  echo "$as_me:$LINENO: result: no" >&5
18155
 
echo "${ECHO_T}no" >&6
18156
 
    ;;
18157
 
  esac
18158
 
fi
18159
 
 
18160
 
if test "x$enable_dlopen" != xyes; then
18161
 
  enable_dlopen=unknown
18162
 
  enable_dlopen_self=unknown
18163
 
  enable_dlopen_self_static=unknown
18164
 
else
18165
 
  lt_cv_dlopen=no
18166
 
  lt_cv_dlopen_libs=
18167
 
 
18168
 
  case $host_os in
18169
 
  beos*)
18170
 
    lt_cv_dlopen="load_add_on"
18171
 
    lt_cv_dlopen_libs=
18172
 
    lt_cv_dlopen_self=yes
18173
 
    ;;
18174
 
 
18175
 
  mingw* | pw32*)
18176
 
    lt_cv_dlopen="LoadLibrary"
18177
 
    lt_cv_dlopen_libs=
18178
 
   ;;
18179
 
 
18180
 
  cygwin*)
18181
 
    lt_cv_dlopen="dlopen"
18182
 
    lt_cv_dlopen_libs=
18183
 
   ;;
18184
 
 
18185
 
  darwin*)
18186
 
  # if libdl is installed we need to link against it
18187
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18188
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18189
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18191
 
else
18192
 
  ac_check_lib_save_LIBS=$LIBS
18193
 
LIBS="-ldl  $LIBS"
18194
 
cat >conftest.$ac_ext <<_ACEOF
18195
 
/* confdefs.h.  */
18196
 
_ACEOF
18197
 
cat confdefs.h >>conftest.$ac_ext
18198
 
cat >>conftest.$ac_ext <<_ACEOF
18199
 
/* end confdefs.h.  */
18200
 
 
18201
 
/* Override any gcc2 internal prototype to avoid an error.  */
18202
 
#ifdef __cplusplus
18203
 
extern "C"
18204
 
#endif
18205
 
/* We use char because int might match the return type of a gcc2
18206
 
   builtin and then its argument prototype would still apply.  */
18207
 
char dlopen ();
18208
 
int
18209
 
main ()
18210
 
{
18211
 
dlopen ();
18212
 
  ;
18213
 
  return 0;
18214
 
}
18215
 
_ACEOF
18216
 
rm -f conftest.$ac_objext conftest$ac_exeext
18217
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218
 
  (eval $ac_link) 2>conftest.er1
18219
 
  ac_status=$?
18220
 
  grep -v '^ *+' conftest.er1 >conftest.err
18221
 
  rm -f conftest.er1
18222
 
  cat conftest.err >&5
18223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224
 
  (exit $ac_status); } &&
18225
 
         { ac_try='test -z "$ac_c_werror_flag"
18226
 
                         || test ! -s conftest.err'
18227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228
 
  (eval $ac_try) 2>&5
18229
 
  ac_status=$?
18230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231
 
  (exit $ac_status); }; } &&
18232
 
         { ac_try='test -s conftest$ac_exeext'
18233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234
 
  (eval $ac_try) 2>&5
18235
 
  ac_status=$?
18236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237
 
  (exit $ac_status); }; }; then
18238
 
  ac_cv_lib_dl_dlopen=yes
18239
 
else
18240
 
  echo "$as_me: failed program was:" >&5
18241
 
sed 's/^/| /' conftest.$ac_ext >&5
18242
 
 
18243
 
ac_cv_lib_dl_dlopen=no
18244
 
fi
18245
 
rm -f conftest.err conftest.$ac_objext \
18246
 
      conftest$ac_exeext conftest.$ac_ext
18247
 
LIBS=$ac_check_lib_save_LIBS
18248
 
fi
18249
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18250
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18251
 
if test $ac_cv_lib_dl_dlopen = yes; then
18252
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18253
 
else
18254
 
 
18255
 
    lt_cv_dlopen="dyld"
18256
 
    lt_cv_dlopen_libs=
18257
 
    lt_cv_dlopen_self=yes
18258
 
 
18259
 
fi
18260
 
 
18261
 
   ;;
18262
 
 
18263
 
  *)
18264
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
18265
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18266
 
if test "${ac_cv_func_shl_load+set}" = set; then
18267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18268
 
else
18269
 
  cat >conftest.$ac_ext <<_ACEOF
18270
 
/* confdefs.h.  */
18271
 
_ACEOF
18272
 
cat confdefs.h >>conftest.$ac_ext
18273
 
cat >>conftest.$ac_ext <<_ACEOF
18274
 
/* end confdefs.h.  */
18275
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18276
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18277
 
#define shl_load innocuous_shl_load
18278
 
 
18279
 
/* System header to define __stub macros and hopefully few prototypes,
18280
 
    which can conflict with char shl_load (); below.
18281
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18282
 
    <limits.h> exists even on freestanding compilers.  */
18283
 
 
18284
 
#ifdef __STDC__
18285
 
# include <limits.h>
18286
 
#else
18287
 
# include <assert.h>
18288
 
#endif
18289
 
 
18290
 
#undef shl_load
18291
 
 
18292
 
/* Override any gcc2 internal prototype to avoid an error.  */
18293
 
#ifdef __cplusplus
18294
 
extern "C"
18295
 
{
18296
 
#endif
18297
 
/* We use char because int might match the return type of a gcc2
18298
 
   builtin and then its argument prototype would still apply.  */
18299
 
char shl_load ();
18300
 
/* The GNU C library defines this for functions which it implements
18301
 
    to always fail with ENOSYS.  Some functions are actually named
18302
 
    something starting with __ and the normal name is an alias.  */
18303
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18304
 
choke me
18305
 
#else
18306
 
char (*f) () = shl_load;
18307
 
#endif
18308
 
#ifdef __cplusplus
18309
 
}
18310
 
#endif
18311
 
 
18312
 
int
18313
 
main ()
18314
 
{
18315
 
return f != shl_load;
18316
 
  ;
18317
 
  return 0;
18318
 
}
18319
 
_ACEOF
18320
 
rm -f conftest.$ac_objext conftest$ac_exeext
18321
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18322
 
  (eval $ac_link) 2>conftest.er1
18323
 
  ac_status=$?
18324
 
  grep -v '^ *+' conftest.er1 >conftest.err
18325
 
  rm -f conftest.er1
18326
 
  cat conftest.err >&5
18327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328
 
  (exit $ac_status); } &&
18329
 
         { ac_try='test -z "$ac_c_werror_flag"
18330
 
                         || test ! -s conftest.err'
18331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332
 
  (eval $ac_try) 2>&5
18333
 
  ac_status=$?
18334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
 
  (exit $ac_status); }; } &&
18336
 
         { ac_try='test -s conftest$ac_exeext'
18337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338
 
  (eval $ac_try) 2>&5
18339
 
  ac_status=$?
18340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341
 
  (exit $ac_status); }; }; then
18342
 
  ac_cv_func_shl_load=yes
18343
 
else
18344
 
  echo "$as_me: failed program was:" >&5
18345
 
sed 's/^/| /' conftest.$ac_ext >&5
18346
 
 
18347
 
ac_cv_func_shl_load=no
18348
 
fi
18349
 
rm -f conftest.err conftest.$ac_objext \
18350
 
      conftest$ac_exeext conftest.$ac_ext
18351
 
fi
18352
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18353
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18354
 
if test $ac_cv_func_shl_load = yes; then
18355
 
  lt_cv_dlopen="shl_load"
18356
 
else
18357
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18358
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18359
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18360
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18361
 
else
18362
 
  ac_check_lib_save_LIBS=$LIBS
18363
 
LIBS="-ldld  $LIBS"
18364
 
cat >conftest.$ac_ext <<_ACEOF
18365
 
/* confdefs.h.  */
18366
 
_ACEOF
18367
 
cat confdefs.h >>conftest.$ac_ext
18368
 
cat >>conftest.$ac_ext <<_ACEOF
18369
 
/* end confdefs.h.  */
18370
 
 
18371
 
/* Override any gcc2 internal prototype to avoid an error.  */
18372
 
#ifdef __cplusplus
18373
 
extern "C"
18374
 
#endif
18375
 
/* We use char because int might match the return type of a gcc2
18376
 
   builtin and then its argument prototype would still apply.  */
18377
 
char shl_load ();
18378
 
int
18379
 
main ()
18380
 
{
18381
 
shl_load ();
18382
 
  ;
18383
 
  return 0;
18384
 
}
18385
 
_ACEOF
18386
 
rm -f conftest.$ac_objext conftest$ac_exeext
18387
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388
 
  (eval $ac_link) 2>conftest.er1
18389
 
  ac_status=$?
18390
 
  grep -v '^ *+' conftest.er1 >conftest.err
18391
 
  rm -f conftest.er1
18392
 
  cat conftest.err >&5
18393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394
 
  (exit $ac_status); } &&
18395
 
         { ac_try='test -z "$ac_c_werror_flag"
18396
 
                         || test ! -s conftest.err'
18397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398
 
  (eval $ac_try) 2>&5
18399
 
  ac_status=$?
18400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401
 
  (exit $ac_status); }; } &&
18402
 
         { ac_try='test -s conftest$ac_exeext'
18403
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404
 
  (eval $ac_try) 2>&5
18405
 
  ac_status=$?
18406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407
 
  (exit $ac_status); }; }; then
18408
 
  ac_cv_lib_dld_shl_load=yes
18409
 
else
18410
 
  echo "$as_me: failed program was:" >&5
18411
 
sed 's/^/| /' conftest.$ac_ext >&5
18412
 
 
18413
 
ac_cv_lib_dld_shl_load=no
18414
 
fi
18415
 
rm -f conftest.err conftest.$ac_objext \
18416
 
      conftest$ac_exeext conftest.$ac_ext
18417
 
LIBS=$ac_check_lib_save_LIBS
18418
 
fi
18419
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18420
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18421
 
if test $ac_cv_lib_dld_shl_load = yes; then
18422
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18423
 
else
18424
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
18425
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18426
 
if test "${ac_cv_func_dlopen+set}" = set; then
18427
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18428
 
else
18429
 
  cat >conftest.$ac_ext <<_ACEOF
18430
 
/* confdefs.h.  */
18431
 
_ACEOF
18432
 
cat confdefs.h >>conftest.$ac_ext
18433
 
cat >>conftest.$ac_ext <<_ACEOF
18434
 
/* end confdefs.h.  */
18435
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18436
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18437
 
#define dlopen innocuous_dlopen
18438
 
 
18439
 
/* System header to define __stub macros and hopefully few prototypes,
18440
 
    which can conflict with char dlopen (); below.
18441
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442
 
    <limits.h> exists even on freestanding compilers.  */
18443
 
 
18444
 
#ifdef __STDC__
18445
 
# include <limits.h>
18446
 
#else
18447
 
# include <assert.h>
18448
 
#endif
18449
 
 
18450
 
#undef dlopen
18451
 
 
18452
 
/* Override any gcc2 internal prototype to avoid an error.  */
18453
 
#ifdef __cplusplus
18454
 
extern "C"
18455
 
{
18456
 
#endif
18457
 
/* We use char because int might match the return type of a gcc2
18458
 
   builtin and then its argument prototype would still apply.  */
18459
 
char dlopen ();
18460
 
/* The GNU C library defines this for functions which it implements
18461
 
    to always fail with ENOSYS.  Some functions are actually named
18462
 
    something starting with __ and the normal name is an alias.  */
18463
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18464
 
choke me
18465
 
#else
18466
 
char (*f) () = dlopen;
18467
 
#endif
18468
 
#ifdef __cplusplus
18469
 
}
18470
 
#endif
18471
 
 
18472
 
int
18473
 
main ()
18474
 
{
18475
 
return f != dlopen;
18476
 
  ;
18477
 
  return 0;
18478
 
}
18479
 
_ACEOF
18480
 
rm -f conftest.$ac_objext conftest$ac_exeext
18481
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482
 
  (eval $ac_link) 2>conftest.er1
18483
 
  ac_status=$?
18484
 
  grep -v '^ *+' conftest.er1 >conftest.err
18485
 
  rm -f conftest.er1
18486
 
  cat conftest.err >&5
18487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488
 
  (exit $ac_status); } &&
18489
 
         { ac_try='test -z "$ac_c_werror_flag"
18490
 
                         || test ! -s conftest.err'
18491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492
 
  (eval $ac_try) 2>&5
18493
 
  ac_status=$?
18494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495
 
  (exit $ac_status); }; } &&
18496
 
         { ac_try='test -s conftest$ac_exeext'
18497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498
 
  (eval $ac_try) 2>&5
18499
 
  ac_status=$?
18500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501
 
  (exit $ac_status); }; }; then
18502
 
  ac_cv_func_dlopen=yes
18503
 
else
18504
 
  echo "$as_me: failed program was:" >&5
18505
 
sed 's/^/| /' conftest.$ac_ext >&5
18506
 
 
18507
 
ac_cv_func_dlopen=no
18508
 
fi
18509
 
rm -f conftest.err conftest.$ac_objext \
18510
 
      conftest$ac_exeext conftest.$ac_ext
18511
 
fi
18512
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18513
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18514
 
if test $ac_cv_func_dlopen = yes; then
18515
 
  lt_cv_dlopen="dlopen"
18516
 
else
18517
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18518
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18519
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18521
 
else
18522
 
  ac_check_lib_save_LIBS=$LIBS
18523
 
LIBS="-ldl  $LIBS"
18524
 
cat >conftest.$ac_ext <<_ACEOF
18525
 
/* confdefs.h.  */
18526
 
_ACEOF
18527
 
cat confdefs.h >>conftest.$ac_ext
18528
 
cat >>conftest.$ac_ext <<_ACEOF
18529
 
/* end confdefs.h.  */
18530
 
 
18531
 
/* Override any gcc2 internal prototype to avoid an error.  */
18532
 
#ifdef __cplusplus
18533
 
extern "C"
18534
 
#endif
18535
 
/* We use char because int might match the return type of a gcc2
18536
 
   builtin and then its argument prototype would still apply.  */
18537
 
char dlopen ();
18538
 
int
18539
 
main ()
18540
 
{
18541
 
dlopen ();
18542
 
  ;
18543
 
  return 0;
18544
 
}
18545
 
_ACEOF
18546
 
rm -f conftest.$ac_objext conftest$ac_exeext
18547
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548
 
  (eval $ac_link) 2>conftest.er1
18549
 
  ac_status=$?
18550
 
  grep -v '^ *+' conftest.er1 >conftest.err
18551
 
  rm -f conftest.er1
18552
 
  cat conftest.err >&5
18553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554
 
  (exit $ac_status); } &&
18555
 
         { ac_try='test -z "$ac_c_werror_flag"
18556
 
                         || test ! -s conftest.err'
18557
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558
 
  (eval $ac_try) 2>&5
18559
 
  ac_status=$?
18560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561
 
  (exit $ac_status); }; } &&
18562
 
         { ac_try='test -s conftest$ac_exeext'
18563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564
 
  (eval $ac_try) 2>&5
18565
 
  ac_status=$?
18566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567
 
  (exit $ac_status); }; }; then
18568
 
  ac_cv_lib_dl_dlopen=yes
18569
 
else
18570
 
  echo "$as_me: failed program was:" >&5
18571
 
sed 's/^/| /' conftest.$ac_ext >&5
18572
 
 
18573
 
ac_cv_lib_dl_dlopen=no
18574
 
fi
18575
 
rm -f conftest.err conftest.$ac_objext \
18576
 
      conftest$ac_exeext conftest.$ac_ext
18577
 
LIBS=$ac_check_lib_save_LIBS
18578
 
fi
18579
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18580
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18581
 
if test $ac_cv_lib_dl_dlopen = yes; then
18582
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18583
 
else
18584
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18585
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18586
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18587
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18588
 
else
18589
 
  ac_check_lib_save_LIBS=$LIBS
18590
 
LIBS="-lsvld  $LIBS"
18591
 
cat >conftest.$ac_ext <<_ACEOF
18592
 
/* confdefs.h.  */
18593
 
_ACEOF
18594
 
cat confdefs.h >>conftest.$ac_ext
18595
 
cat >>conftest.$ac_ext <<_ACEOF
18596
 
/* end confdefs.h.  */
18597
 
 
18598
 
/* Override any gcc2 internal prototype to avoid an error.  */
18599
 
#ifdef __cplusplus
18600
 
extern "C"
18601
 
#endif
18602
 
/* We use char because int might match the return type of a gcc2
18603
 
   builtin and then its argument prototype would still apply.  */
18604
 
char dlopen ();
18605
 
int
18606
 
main ()
18607
 
{
18608
 
dlopen ();
18609
 
  ;
18610
 
  return 0;
18611
 
}
18612
 
_ACEOF
18613
 
rm -f conftest.$ac_objext conftest$ac_exeext
18614
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615
 
  (eval $ac_link) 2>conftest.er1
18616
 
  ac_status=$?
18617
 
  grep -v '^ *+' conftest.er1 >conftest.err
18618
 
  rm -f conftest.er1
18619
 
  cat conftest.err >&5
18620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621
 
  (exit $ac_status); } &&
18622
 
         { ac_try='test -z "$ac_c_werror_flag"
18623
 
                         || test ! -s conftest.err'
18624
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625
 
  (eval $ac_try) 2>&5
18626
 
  ac_status=$?
18627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628
 
  (exit $ac_status); }; } &&
18629
 
         { ac_try='test -s conftest$ac_exeext'
18630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631
 
  (eval $ac_try) 2>&5
18632
 
  ac_status=$?
18633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634
 
  (exit $ac_status); }; }; then
18635
 
  ac_cv_lib_svld_dlopen=yes
18636
 
else
18637
 
  echo "$as_me: failed program was:" >&5
18638
 
sed 's/^/| /' conftest.$ac_ext >&5
18639
 
 
18640
 
ac_cv_lib_svld_dlopen=no
18641
 
fi
18642
 
rm -f conftest.err conftest.$ac_objext \
18643
 
      conftest$ac_exeext conftest.$ac_ext
18644
 
LIBS=$ac_check_lib_save_LIBS
18645
 
fi
18646
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18647
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18648
 
if test $ac_cv_lib_svld_dlopen = yes; then
18649
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18650
 
else
18651
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18652
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18653
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18654
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18655
 
else
18656
 
  ac_check_lib_save_LIBS=$LIBS
18657
 
LIBS="-ldld  $LIBS"
18658
 
cat >conftest.$ac_ext <<_ACEOF
18659
 
/* confdefs.h.  */
18660
 
_ACEOF
18661
 
cat confdefs.h >>conftest.$ac_ext
18662
 
cat >>conftest.$ac_ext <<_ACEOF
18663
 
/* end confdefs.h.  */
18664
 
 
18665
 
/* Override any gcc2 internal prototype to avoid an error.  */
18666
 
#ifdef __cplusplus
18667
 
extern "C"
18668
 
#endif
18669
 
/* We use char because int might match the return type of a gcc2
18670
 
   builtin and then its argument prototype would still apply.  */
18671
 
char dld_link ();
18672
 
int
18673
 
main ()
18674
 
{
18675
 
dld_link ();
18676
 
  ;
18677
 
  return 0;
18678
 
}
18679
 
_ACEOF
18680
 
rm -f conftest.$ac_objext conftest$ac_exeext
18681
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682
 
  (eval $ac_link) 2>conftest.er1
18683
 
  ac_status=$?
18684
 
  grep -v '^ *+' conftest.er1 >conftest.err
18685
 
  rm -f conftest.er1
18686
 
  cat conftest.err >&5
18687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688
 
  (exit $ac_status); } &&
18689
 
         { ac_try='test -z "$ac_c_werror_flag"
18690
 
                         || test ! -s conftest.err'
18691
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692
 
  (eval $ac_try) 2>&5
18693
 
  ac_status=$?
18694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695
 
  (exit $ac_status); }; } &&
18696
 
         { ac_try='test -s conftest$ac_exeext'
18697
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698
 
  (eval $ac_try) 2>&5
18699
 
  ac_status=$?
18700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701
 
  (exit $ac_status); }; }; then
18702
 
  ac_cv_lib_dld_dld_link=yes
18703
 
else
18704
 
  echo "$as_me: failed program was:" >&5
18705
 
sed 's/^/| /' conftest.$ac_ext >&5
18706
 
 
18707
 
ac_cv_lib_dld_dld_link=no
18708
 
fi
18709
 
rm -f conftest.err conftest.$ac_objext \
18710
 
      conftest$ac_exeext conftest.$ac_ext
18711
 
LIBS=$ac_check_lib_save_LIBS
18712
 
fi
18713
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18714
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18715
 
if test $ac_cv_lib_dld_dld_link = yes; then
18716
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18717
 
fi
18718
 
 
18719
 
 
18720
 
fi
18721
 
 
18722
 
 
18723
 
fi
18724
 
 
18725
 
 
18726
 
fi
18727
 
 
18728
 
 
18729
 
fi
18730
 
 
18731
 
 
18732
 
fi
18733
 
 
18734
 
    ;;
18735
 
  esac
18736
 
 
18737
 
  if test "x$lt_cv_dlopen" != xno; then
18738
 
    enable_dlopen=yes
18739
 
  else
18740
 
    enable_dlopen=no
18741
 
  fi
18742
 
 
18743
 
  case $lt_cv_dlopen in
18744
 
  dlopen)
18745
 
    save_CPPFLAGS="$CPPFLAGS"
18746
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18747
 
 
18748
 
    save_LDFLAGS="$LDFLAGS"
18749
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18750
 
 
18751
 
    save_LIBS="$LIBS"
18752
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18753
 
 
18754
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18755
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18756
 
if test "${lt_cv_dlopen_self+set}" = set; then
18757
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18758
 
else
18759
 
          if test "$cross_compiling" = yes; then :
18760
 
  lt_cv_dlopen_self=cross
18761
 
else
18762
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18763
 
  lt_status=$lt_dlunknown
18764
 
  cat > conftest.$ac_ext <<EOF
18765
 
#line 18765 "configure"
18766
 
#include "confdefs.h"
18767
 
 
18768
 
#if HAVE_DLFCN_H
18769
 
#include <dlfcn.h>
18770
 
#endif
18771
 
 
18772
 
#include <stdio.h>
18773
 
 
18774
 
#ifdef RTLD_GLOBAL
18775
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18776
 
#else
18777
 
#  ifdef DL_GLOBAL
18778
 
#    define LT_DLGLOBAL         DL_GLOBAL
18779
 
#  else
18780
 
#    define LT_DLGLOBAL         0
18781
 
#  endif
18782
 
#endif
18783
 
 
18784
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18785
 
   find out it does not work in some platform. */
18786
 
#ifndef LT_DLLAZY_OR_NOW
18787
 
#  ifdef RTLD_LAZY
18788
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18789
 
#  else
18790
 
#    ifdef DL_LAZY
18791
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18792
 
#    else
18793
 
#      ifdef RTLD_NOW
18794
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18795
 
#      else
18796
 
#        ifdef DL_NOW
18797
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18798
 
#        else
18799
 
#          define LT_DLLAZY_OR_NOW      0
18800
 
#        endif
18801
 
#      endif
18802
 
#    endif
18803
 
#  endif
18804
 
#endif
18805
 
 
18806
 
#ifdef __cplusplus
18807
 
extern "C" void exit (int);
18808
 
#endif
18809
 
 
18810
 
void fnord() { int i=42;}
18811
 
int main ()
18812
 
{
18813
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18814
 
  int status = $lt_dlunknown;
18815
 
 
18816
 
  if (self)
18817
 
    {
18818
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18819
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18820
 
      /* dlclose (self); */
18821
 
    }
18822
 
 
18823
 
    exit (status);
18824
 
}
18825
 
EOF
18826
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827
 
  (eval $ac_link) 2>&5
18828
 
  ac_status=$?
18829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18831
 
    (./conftest; exit; ) 2>/dev/null
18832
 
    lt_status=$?
18833
 
    case x$lt_status in
18834
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18835
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18836
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18837
 
    esac
18838
 
  else :
18839
 
    # compilation failed
18840
 
    lt_cv_dlopen_self=no
18841
 
  fi
18842
 
fi
18843
 
rm -fr conftest*
18844
 
 
18845
 
 
18846
 
fi
18847
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18848
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18849
 
 
18850
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18851
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18852
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18853
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18854
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18855
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18856
 
else
18857
 
          if test "$cross_compiling" = yes; then :
18858
 
  lt_cv_dlopen_self_static=cross
18859
 
else
18860
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18861
 
  lt_status=$lt_dlunknown
18862
 
  cat > conftest.$ac_ext <<EOF
18863
 
#line 18863 "configure"
18864
 
#include "confdefs.h"
18865
 
 
18866
 
#if HAVE_DLFCN_H
18867
 
#include <dlfcn.h>
18868
 
#endif
18869
 
 
18870
 
#include <stdio.h>
18871
 
 
18872
 
#ifdef RTLD_GLOBAL
18873
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18874
 
#else
18875
 
#  ifdef DL_GLOBAL
18876
 
#    define LT_DLGLOBAL         DL_GLOBAL
18877
 
#  else
18878
 
#    define LT_DLGLOBAL         0
18879
 
#  endif
18880
 
#endif
18881
 
 
18882
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18883
 
   find out it does not work in some platform. */
18884
 
#ifndef LT_DLLAZY_OR_NOW
18885
 
#  ifdef RTLD_LAZY
18886
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18887
 
#  else
18888
 
#    ifdef DL_LAZY
18889
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18890
 
#    else
18891
 
#      ifdef RTLD_NOW
18892
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18893
 
#      else
18894
 
#        ifdef DL_NOW
18895
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18896
 
#        else
18897
 
#          define LT_DLLAZY_OR_NOW      0
18898
 
#        endif
18899
 
#      endif
18900
 
#    endif
18901
 
#  endif
18902
 
#endif
18903
 
 
18904
 
#ifdef __cplusplus
18905
 
extern "C" void exit (int);
18906
 
#endif
18907
 
 
18908
 
void fnord() { int i=42;}
18909
 
int main ()
18910
 
{
18911
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18912
 
  int status = $lt_dlunknown;
18913
 
 
18914
 
  if (self)
18915
 
    {
18916
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18917
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18918
 
      /* dlclose (self); */
18919
 
    }
18920
 
 
18921
 
    exit (status);
18922
 
}
18923
 
EOF
18924
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925
 
  (eval $ac_link) 2>&5
18926
 
  ac_status=$?
18927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18929
 
    (./conftest; exit; ) 2>/dev/null
18930
 
    lt_status=$?
18931
 
    case x$lt_status in
18932
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18933
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18934
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18935
 
    esac
18936
 
  else :
18937
 
    # compilation failed
18938
 
    lt_cv_dlopen_self_static=no
18939
 
  fi
18940
 
fi
18941
 
rm -fr conftest*
18942
 
 
18943
 
 
18944
 
fi
18945
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18946
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18947
 
    fi
18948
 
 
18949
 
    CPPFLAGS="$save_CPPFLAGS"
18950
 
    LDFLAGS="$save_LDFLAGS"
18951
 
    LIBS="$save_LIBS"
18952
 
    ;;
18953
 
  esac
18954
 
 
18955
 
  case $lt_cv_dlopen_self in
18956
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18957
 
  *) enable_dlopen_self=unknown ;;
18958
 
  esac
18959
 
 
18960
 
  case $lt_cv_dlopen_self_static in
18961
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18962
 
  *) enable_dlopen_self_static=unknown ;;
18963
 
  esac
18964
 
fi
18965
 
 
18966
17943
 
18967
17944
# The else clause should only fire when bootstrapping the
18968
17945
# libtool distribution, otherwise you forgot to ship ltmain.sh
18977
17954
  # Now quote all the things that may contain metacharacters while being
18978
17955
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18979
17956
  # variables and quote the copies for generation of the libtool script.
18980
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17957
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18981
17958
    SED SHELL STRIP \
18982
17959
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18983
17960
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19095
18072
# A C compiler.
19096
18073
LTCC=$lt_LTCC
19097
18074
 
 
18075
# LTCC compiler flags.
 
18076
LTCFLAGS=$lt_LTCFLAGS
 
18077
 
19098
18078
# A language-specific compiler.
19099
18079
CC=$lt_compiler_GCJ
19100
18080
 
19101
18081
# Is the compiler the GNU C compiler?
19102
18082
with_gcc=$GCC_GCJ
19103
18083
 
 
18084
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
18085
gcc_ver=\`gcc -dumpversion\`
 
18086
 
19104
18087
# An ERE matcher.
19105
18088
EGREP=$lt_EGREP
19106
18089
 
19234
18217
 
19235
18218
# Dependencies to place before the objects being linked to create a
19236
18219
# shared library.
19237
 
predep_objects=$lt_predep_objects_GCJ
 
18220
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19238
18221
 
19239
18222
# Dependencies to place after the objects being linked to create a
19240
18223
# shared library.
19241
 
postdep_objects=$lt_postdep_objects_GCJ
 
18224
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19242
18225
 
19243
18226
# Dependencies to place before the objects being linked to create a
19244
18227
# shared library.
19250
18233
 
19251
18234
# The library search path used internally by the compiler when linking
19252
18235
# a shared library.
19253
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18236
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19254
18237
 
19255
18238
# Method to check whether dependent libraries are shared objects.
19256
18239
deplibs_check_method=$lt_deplibs_check_method
19330
18313
link_all_deplibs=$link_all_deplibs_GCJ
19331
18314
 
19332
18315
# Compile-time system search path for libraries
19333
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18316
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19334
18317
 
19335
18318
# Run-time system search path for libraries
19336
18319
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19404
18387
# If no C compiler was specified, use CC.
19405
18388
LTCC=${LTCC-"$CC"}
19406
18389
 
 
18390
# If no C compiler flags were specified, use CFLAGS.
 
18391
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18392
 
19407
18393
# Allow CC to be a program name with arguments.
19408
18394
compiler=$CC
19409
18395
 
19411
18397
# save warnings/boilerplate of simple test code
19412
18398
ac_outfile=conftest.$ac_objext
19413
18399
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19414
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18400
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19415
18401
_lt_compiler_boilerplate=`cat conftest.err`
19416
18402
$rm conftest*
19417
18403
 
19418
18404
ac_outfile=conftest.$ac_objext
19419
18405
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19420
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18406
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19421
18407
_lt_linker_boilerplate=`cat conftest.err`
19422
18408
$rm conftest*
19423
18409
 
19452
18438
  # Now quote all the things that may contain metacharacters while being
19453
18439
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19454
18440
  # variables and quote the copies for generation of the libtool script.
19455
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18441
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19456
18442
    SED SHELL STRIP \
19457
18443
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19458
18444
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19570
18556
# A C compiler.
19571
18557
LTCC=$lt_LTCC
19572
18558
 
 
18559
# LTCC compiler flags.
 
18560
LTCFLAGS=$lt_LTCFLAGS
 
18561
 
19573
18562
# A language-specific compiler.
19574
18563
CC=$lt_compiler_RC
19575
18564
 
19576
18565
# Is the compiler the GNU C compiler?
19577
18566
with_gcc=$GCC_RC
19578
18567
 
 
18568
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
18569
gcc_ver=\`gcc -dumpversion\`
 
18570
 
19579
18571
# An ERE matcher.
19580
18572
EGREP=$lt_EGREP
19581
18573
 
19709
18701
 
19710
18702
# Dependencies to place before the objects being linked to create a
19711
18703
# shared library.
19712
 
predep_objects=$lt_predep_objects_RC
 
18704
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19713
18705
 
19714
18706
# Dependencies to place after the objects being linked to create a
19715
18707
# shared library.
19716
 
postdep_objects=$lt_postdep_objects_RC
 
18708
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19717
18709
 
19718
18710
# Dependencies to place before the objects being linked to create a
19719
18711
# shared library.
19725
18717
 
19726
18718
# The library search path used internally by the compiler when linking
19727
18719
# a shared library.
19728
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18720
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19729
18721
 
19730
18722
# Method to check whether dependent libraries are shared objects.
19731
18723
deplibs_check_method=$lt_deplibs_check_method
19805
18797
link_all_deplibs=$link_all_deplibs_RC
19806
18798
 
19807
18799
# Compile-time system search path for libraries
19808
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18800
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19809
18801
 
19810
18802
# Run-time system search path for libraries
19811
18803
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20753
19745
 
20754
19746
 
20755
19747
case "$target" in
 
19748
  *-*-darwin* | *-*-macos*)
 
19749
  cat >conftest.$ac_ext <<_ACEOF
 
19750
/* confdefs.h.  */
 
19751
_ACEOF
 
19752
cat confdefs.h >>conftest.$ac_ext
 
19753
cat >>conftest.$ac_ext <<_ACEOF
 
19754
/* end confdefs.h.  */
 
19755
 
 
19756
    #include <OpenGL/gl.h>
 
19757
 
 
19758
int
 
19759
main ()
 
19760
{
 
19761
 
 
19762
 
 
19763
  ;
 
19764
  return 0;
 
19765
}
 
19766
_ACEOF
 
19767
rm -f conftest.$ac_objext
 
19768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19769
  (eval $ac_compile) 2>conftest.er1
 
19770
  ac_status=$?
 
19771
  grep -v '^ *+' conftest.er1 >conftest.err
 
19772
  rm -f conftest.er1
 
19773
  cat conftest.err >&5
 
19774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19775
  (exit $ac_status); } &&
 
19776
         { ac_try='test -z "$ac_c_werror_flag"
 
19777
                         || test ! -s conftest.err'
 
19778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19779
  (eval $ac_try) 2>&5
 
19780
  ac_status=$?
 
19781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19782
  (exit $ac_status); }; } &&
 
19783
         { ac_try='test -s conftest.$ac_objext'
 
19784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19785
  (eval $ac_try) 2>&5
 
19786
  ac_status=$?
 
19787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19788
  (exit $ac_status); }; }; then
 
19789
 
 
19790
   LIBS="$LIBS -framework OpenGL -framework AGL"
 
19791
 
 
19792
else
 
19793
  echo "$as_me: failed program was:" >&5
 
19794
sed 's/^/| /' conftest.$ac_ext >&5
 
19795
 
 
19796
 
 
19797
    cat >conftest.$ac_ext <<_ACEOF
 
19798
/* confdefs.h.  */
 
19799
_ACEOF
 
19800
cat confdefs.h >>conftest.$ac_ext
 
19801
cat >>conftest.$ac_ext <<_ACEOF
 
19802
/* end confdefs.h.  */
 
19803
 
 
19804
      #include <GL/gl.h>
 
19805
 
 
19806
int
 
19807
main ()
 
19808
{
 
19809
 
 
19810
 
 
19811
  ;
 
19812
  return 0;
 
19813
}
 
19814
_ACEOF
 
19815
rm -f conftest.$ac_objext
 
19816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19817
  (eval $ac_compile) 2>conftest.er1
 
19818
  ac_status=$?
 
19819
  grep -v '^ *+' conftest.er1 >conftest.err
 
19820
  rm -f conftest.er1
 
19821
  cat conftest.err >&5
 
19822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19823
  (exit $ac_status); } &&
 
19824
         { ac_try='test -z "$ac_c_werror_flag"
 
19825
                         || test ! -s conftest.err'
 
19826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19827
  (eval $ac_try) 2>&5
 
19828
  ac_status=$?
 
19829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19830
  (exit $ac_status); }; } &&
 
19831
         { ac_try='test -s conftest.$ac_objext'
 
19832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19833
  (eval $ac_try) 2>&5
 
19834
  ac_status=$?
 
19835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19836
  (exit $ac_status); }; }; then
 
19837
 
 
19838
     LIBS="$LIBS -lGL"
 
19839
 
 
19840
else
 
19841
  echo "$as_me: failed program was:" >&5
 
19842
sed 's/^/| /' conftest.$ac_ext >&5
 
19843
 
 
19844
 
 
19845
      { { echo "$as_me:$LINENO: error: Cannot find OpenGL" >&5
 
19846
echo "$as_me: error: Cannot find OpenGL" >&2;}
 
19847
   { (exit 1); exit 1; }; }
 
19848
 
 
19849
fi
 
19850
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19851
 
 
19852
fi
 
19853
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19854
  ;;
20756
19855
  *-*-linux*)
20757
 
    echo "$as_me:$LINENO: checking for X" >&5
 
19856
  echo "$as_me:$LINENO: checking for X" >&5
20758
19857
echo $ECHO_N "checking for X... $ECHO_C" >&6
20759
19858
 
20760
19859
 
20849
19948
/usr/openwin/share/include'
20850
19949
 
20851
19950
if test "$ac_x_includes" = no; then
20852
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
19951
  # Guess where to find include files, by looking for Xlib.h.
20853
19952
  # First, try using that file with no special directory specified.
20854
19953
  cat >conftest.$ac_ext <<_ACEOF
20855
19954
/* confdefs.h.  */
20857
19956
cat confdefs.h >>conftest.$ac_ext
20858
19957
cat >>conftest.$ac_ext <<_ACEOF
20859
19958
/* end confdefs.h.  */
20860
 
#include <X11/Intrinsic.h>
 
19959
#include <X11/Xlib.h>
20861
19960
_ACEOF
20862
19961
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20863
19962
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20884
19983
sed 's/^/| /' conftest.$ac_ext >&5
20885
19984
 
20886
19985
  for ac_dir in $ac_x_header_dirs; do
20887
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
19986
  if test -r "$ac_dir/X11/Xlib.h"; then
20888
19987
    ac_x_includes=$ac_dir
20889
19988
    break
20890
19989
  fi
20898
19997
  # See if we find them without any special options.
20899
19998
  # Don't add to $LIBS permanently.
20900
19999
  ac_save_LIBS=$LIBS
20901
 
  LIBS="-lXt $LIBS"
 
20000
  LIBS="-lX11 $LIBS"
20902
20001
  cat >conftest.$ac_ext <<_ACEOF
20903
20002
/* confdefs.h.  */
20904
20003
_ACEOF
20905
20004
cat confdefs.h >>conftest.$ac_ext
20906
20005
cat >>conftest.$ac_ext <<_ACEOF
20907
20006
/* end confdefs.h.  */
20908
 
#include <X11/Intrinsic.h>
 
20007
#include <X11/Xlib.h>
20909
20008
int
20910
20009
main ()
20911
20010
{
20912
 
XtMalloc (0)
 
20011
XrmInitialize ()
20913
20012
  ;
20914
20013
  return 0;
20915
20014
}
20988
20087
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20989
20088
fi
20990
20089
 
20991
 
    if test "$no_x" = yes; then
 
20090
  if test "$no_x" = yes; then
20992
20091
  # Not all programs may use this symbol, but it does not hurt to define it.
20993
20092
 
20994
20093
cat >>confdefs.h <<\_ACEOF
22142
21241
 
22143
21242
fi
22144
21243
 
 
21244
 
 
21245
  echo "$as_me:$LINENO: checking for glViewport in -lGL" >&5
 
21246
echo $ECHO_N "checking for glViewport in -lGL... $ECHO_C" >&6
 
21247
if test "${ac_cv_lib_GL_glViewport+set}" = set; then
 
21248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21249
else
 
21250
  ac_check_lib_save_LIBS=$LIBS
 
21251
LIBS="-lGL  $LIBS"
 
21252
cat >conftest.$ac_ext <<_ACEOF
 
21253
/* confdefs.h.  */
 
21254
_ACEOF
 
21255
cat confdefs.h >>conftest.$ac_ext
 
21256
cat >>conftest.$ac_ext <<_ACEOF
 
21257
/* end confdefs.h.  */
 
21258
 
 
21259
/* Override any gcc2 internal prototype to avoid an error.  */
 
21260
#ifdef __cplusplus
 
21261
extern "C"
 
21262
#endif
 
21263
/* We use char because int might match the return type of a gcc2
 
21264
   builtin and then its argument prototype would still apply.  */
 
21265
char glViewport ();
 
21266
int
 
21267
main ()
 
21268
{
 
21269
glViewport ();
 
21270
  ;
 
21271
  return 0;
 
21272
}
 
21273
_ACEOF
 
21274
rm -f conftest.$ac_objext conftest$ac_exeext
 
21275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21276
  (eval $ac_link) 2>conftest.er1
 
21277
  ac_status=$?
 
21278
  grep -v '^ *+' conftest.er1 >conftest.err
 
21279
  rm -f conftest.er1
 
21280
  cat conftest.err >&5
 
21281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21282
  (exit $ac_status); } &&
 
21283
         { ac_try='test -z "$ac_c_werror_flag"
 
21284
                         || test ! -s conftest.err'
 
21285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21286
  (eval $ac_try) 2>&5
 
21287
  ac_status=$?
 
21288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21289
  (exit $ac_status); }; } &&
 
21290
         { ac_try='test -s conftest$ac_exeext'
 
21291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21292
  (eval $ac_try) 2>&5
 
21293
  ac_status=$?
 
21294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21295
  (exit $ac_status); }; }; then
 
21296
  ac_cv_lib_GL_glViewport=yes
 
21297
else
 
21298
  echo "$as_me: failed program was:" >&5
 
21299
sed 's/^/| /' conftest.$ac_ext >&5
 
21300
 
 
21301
ac_cv_lib_GL_glViewport=no
 
21302
fi
 
21303
rm -f conftest.err conftest.$ac_objext \
 
21304
      conftest$ac_exeext conftest.$ac_ext
 
21305
LIBS=$ac_check_lib_save_LIBS
 
21306
fi
 
21307
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glViewport" >&5
 
21308
echo "${ECHO_T}$ac_cv_lib_GL_glViewport" >&6
 
21309
if test $ac_cv_lib_GL_glViewport = yes; then
 
21310
 
22145
21311
    LIBS="$LIBS -lGL"
22146
 
esac
22147
 
 
22148
 
case "$target" in
22149
 
  *-*-darwin* | *-*-macos*)
22150
 
  cat >conftest.$ac_ext <<_ACEOF
22151
 
/* confdefs.h.  */
22152
 
_ACEOF
22153
 
cat confdefs.h >>conftest.$ac_ext
22154
 
cat >>conftest.$ac_ext <<_ACEOF
22155
 
/* end confdefs.h.  */
22156
 
 
22157
 
    #include <OpenGL/gl.h>
22158
 
 
22159
 
int
22160
 
main ()
22161
 
{
22162
 
 
22163
 
 
22164
 
  ;
22165
 
  return 0;
22166
 
}
22167
 
_ACEOF
22168
 
rm -f conftest.$ac_objext
22169
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22170
 
  (eval $ac_compile) 2>conftest.er1
22171
 
  ac_status=$?
22172
 
  grep -v '^ *+' conftest.er1 >conftest.err
22173
 
  rm -f conftest.er1
22174
 
  cat conftest.err >&5
22175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176
 
  (exit $ac_status); } &&
22177
 
         { ac_try='test -z "$ac_c_werror_flag"
22178
 
                         || test ! -s conftest.err'
22179
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180
 
  (eval $ac_try) 2>&5
22181
 
  ac_status=$?
22182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183
 
  (exit $ac_status); }; } &&
22184
 
         { ac_try='test -s conftest.$ac_objext'
22185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186
 
  (eval $ac_try) 2>&5
22187
 
  ac_status=$?
22188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189
 
  (exit $ac_status); }; }; then
22190
 
 
22191
 
   LIBS="$LIBS -framework OpenGL -framework AGL"
22192
 
 
22193
 
else
22194
 
  echo "$as_me: failed program was:" >&5
22195
 
sed 's/^/| /' conftest.$ac_ext >&5
22196
 
 
22197
 
 
22198
 
    cat >conftest.$ac_ext <<_ACEOF
22199
 
/* confdefs.h.  */
22200
 
_ACEOF
22201
 
cat confdefs.h >>conftest.$ac_ext
22202
 
cat >>conftest.$ac_ext <<_ACEOF
22203
 
/* end confdefs.h.  */
22204
 
 
22205
 
      #include <GL/gl.h>
22206
 
 
22207
 
int
22208
 
main ()
22209
 
{
22210
 
 
22211
 
 
22212
 
  ;
22213
 
  return 0;
22214
 
}
22215
 
_ACEOF
22216
 
rm -f conftest.$ac_objext
22217
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218
 
  (eval $ac_compile) 2>conftest.er1
22219
 
  ac_status=$?
22220
 
  grep -v '^ *+' conftest.er1 >conftest.err
22221
 
  rm -f conftest.er1
22222
 
  cat conftest.err >&5
22223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224
 
  (exit $ac_status); } &&
22225
 
         { ac_try='test -z "$ac_c_werror_flag"
22226
 
                         || test ! -s conftest.err'
22227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228
 
  (eval $ac_try) 2>&5
22229
 
  ac_status=$?
22230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231
 
  (exit $ac_status); }; } &&
22232
 
         { ac_try='test -s conftest.$ac_objext'
22233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234
 
  (eval $ac_try) 2>&5
22235
 
  ac_status=$?
22236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237
 
  (exit $ac_status); }; }; then
22238
 
 
22239
 
     LIBS="$LIBS -lGL"
22240
 
 
22241
 
else
22242
 
  echo "$as_me: failed program was:" >&5
22243
 
sed 's/^/| /' conftest.$ac_ext >&5
22244
 
 
22245
 
 
22246
 
      { { echo "$as_me:$LINENO: error: Cannot find OpenGL" >&5
22247
 
echo "$as_me: error: Cannot find OpenGL" >&2;}
 
21312
 
 
21313
else
 
21314
 
 
21315
    { { echo "$as_me:$LINENO: error: Couldn't find OpenGL" >&5
 
21316
echo "$as_me: error: Couldn't find OpenGL" >&2;}
22248
21317
   { (exit 1); exit 1; }; }
22249
21318
 
22250
21319
fi
22251
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252
21320
 
22253
 
fi
22254
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22255
21321
esac
22256
21322
 
22257
21323
case "$host_os" in
22488
21554
fi;
22489
21555
 
22490
21556
  if test x$sdl_exec_prefix != x ; then
22491
 
     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
22492
 
     if test x${SDL_CONFIG+set} != xset ; then
22493
 
        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
22494
 
     fi
 
21557
    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
 
21558
    if test x${SDL_CONFIG+set} != xset ; then
 
21559
      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
 
21560
    fi
22495
21561
  fi
22496
21562
  if test x$sdl_prefix != x ; then
22497
 
     sdl_args="$sdl_args --prefix=$sdl_prefix"
22498
 
     if test x${SDL_CONFIG+set} != xset ; then
22499
 
        SDL_CONFIG=$sdl_prefix/bin/sdl-config
22500
 
     fi
22501
 
  fi
22502
 
 
22503
 
 
22504
 
  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
 
21563
    sdl_args="$sdl_args --prefix=$sdl_prefix"
 
21564
    if test x${SDL_CONFIG+set} != xset ; then
 
21565
      SDL_CONFIG=$sdl_prefix/bin/sdl-config
 
21566
    fi
 
21567
  fi
 
21568
 
 
21569
  if test "x$prefix" != xNONE; then
 
21570
    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
 
21571
  fi
22505
21572
  # Extract the first word of "sdl-config", so it can be a program name with args.
22506
21573
set dummy sdl-config; ac_word=$2
22507
21574
echo "$as_me:$LINENO: checking for $ac_word" >&5
23370
22437
} >&5
23371
22438
cat >&5 <<_CSEOF
23372
22439
 
23373
 
This file was extended by sage $as_me 0.1.2, which was
 
22440
This file was extended by sage $as_me 0.2.0, which was
23374
22441
generated by GNU Autoconf 2.59.  Invocation command line was
23375
22442
 
23376
22443
  CONFIG_FILES    = $CONFIG_FILES
23433
22500
 
23434
22501
cat >>$CONFIG_STATUS <<_ACEOF
23435
22502
ac_cs_version="\\
23436
 
sage config.status 0.1.2
 
22503
sage config.status 0.2.0
23437
22504
configured by $0, generated by GNU Autoconf 2.59,
23438
22505
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23439
22506
 
23689
22756
s,@CCDEPMODE@,$CCDEPMODE,;t t
23690
22757
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23691
22758
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22759
s,@SED@,$SED,;t t
23692
22760
s,@EGREP@,$EGREP,;t t
23693
22761
s,@LN_S@,$LN_S,;t t
23694
22762
s,@ECHO@,$ECHO,;t t