~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to libltdl/configure

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
 
281
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
282
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
284
 
285
285
if test -z "$ECHO"; then
286
286
if test "X${echo_test_string+set}" != Xset; then
287
287
# find a string as large as possible, as long as the shell can cope with it
288
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
292
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
293
    then
294
294
      break
465
465
# include <unistd.h>
466
466
#endif"
467
467
 
468
 
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
 
468
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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469
469
ac_subst_files=''
470
470
 
471
471
# Initialize some variables set by options.
1027
1027
Optional Features:
1028
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1031
 
                          (and sometimes confusing) to the casual installer
1032
1030
  --disable-dependency-tracking  speeds up one-time build
1033
1031
  --enable-dependency-tracking   do not reject slow dependency extractors
1034
1032
  --enable-shared[=PKGS]
1155
1153
    else
1156
1154
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157
1155
    fi
1158
 
    cd "$ac_popdir"
 
1156
    cd $ac_popdir
1159
1157
  done
1160
1158
fi
1161
1159
 
1565
1563
## ------------------------ ##
1566
1564
## Automake Initialisation. ##
1567
1565
## ------------------------ ##
1568
 
am__api_version="1.8"
 
1566
am__api_version="1.9"
1569
1567
# Find a good install program.  We prefer a C program (faster),
1570
1568
# so one script is as good as another.  But avoid the broken or
1571
1569
# incompatible versions:
1717
1715
fi
1718
1716
 
1719
1717
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1720
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1721
 
  # argument.  Indeed, we sometimes output rules like
 
1718
  # We used to keeping the `.' as first argument, in order to
 
1719
  # allow $(mkdir_p) to be used without argument.  As in
1722
1720
  #   $(mkdir_p) $(somedir)
1723
 
  # where $(somedir) is conditionally defined.
1724
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1725
 
  # expensive solution, as it forces Make to start a sub-shell.)
1726
 
  mkdir_p='mkdir -p -- .'
 
1721
  # where $(somedir) is conditionally defined.  However this is wrong
 
1722
  # for two reasons:
 
1723
  #  1. if the package is installed by a user who cannot write `.'
 
1724
  #     make install will fail,
 
1725
  #  2. the above comment should most certainly read
 
1726
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1727
  #     so it does not work when $(somedir) is undefined and
 
1728
  #     $(DESTDIR) is not.
 
1729
  #  To support the latter case, we have to write
 
1730
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1731
  #  so the `.' trick is pointless.
 
1732
  mkdir_p='mkdir -p --'
1727
1733
else
1728
1734
  # On NextStep and OpenStep, the `mkdir' command does not
1729
1735
  # recognize any option.  It will interpret all options as
1858
1864
 
1859
1865
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1860
1866
 
1861
 
 
1862
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1863
 
 
1864
1867
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1865
1868
 
1866
1869
# Installed binaries are usually stripped using `strip' when the user
1953
1956
 
1954
1957
# We need awk for the "check" target.  The system "awk" is bad on
1955
1958
# some platforms.
 
1959
# Always define AMTAR for backward compatibility.
 
1960
 
 
1961
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1962
 
 
1963
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1964
 
 
1965
 
1956
1966
 
1957
1967
 
1958
1968
 
1959
1969
          ac_config_headers="$ac_config_headers config.h:config-h.in"
1960
1970
 
1961
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1962
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1963
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1964
 
if test "${enable_maintainer_mode+set}" = set; then
1965
 
  enableval="$enable_maintainer_mode"
1966
 
  USE_MAINTAINER_MODE=$enableval
1967
 
else
1968
 
  USE_MAINTAINER_MODE=no
1969
 
fi;
1970
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1971
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1972
 
 
1973
 
 
1974
 
if test $USE_MAINTAINER_MODE = yes; then
1975
 
  MAINTAINER_MODE_TRUE=
1976
 
  MAINTAINER_MODE_FALSE='#'
1977
 
else
1978
 
  MAINTAINER_MODE_TRUE='#'
1979
 
  MAINTAINER_MODE_FALSE=
1980
 
fi
1981
 
 
1982
 
  MAINT=$MAINTAINER_MODE_TRUE
1983
 
 
1984
 
 
1985
1971
 
1986
1972
 
1987
1973
## ------------------ ##
2555
2541
  cat conftest.err >&5
2556
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
2543
  (exit $ac_status); } &&
2558
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2544
         { ac_try='test -z "$ac_c_werror_flag"
 
2545
                         || test ! -s conftest.err'
2559
2546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560
2547
  (eval $ac_try) 2>&5
2561
2548
  ac_status=$?
2613
2600
  cat conftest.err >&5
2614
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615
2602
  (exit $ac_status); } &&
2616
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2603
         { ac_try='test -z "$ac_c_werror_flag"
 
2604
                         || test ! -s conftest.err'
2617
2605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618
2606
  (eval $ac_try) 2>&5
2619
2607
  ac_status=$?
2729
2717
  cat conftest.err >&5
2730
2718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
2719
  (exit $ac_status); } &&
2732
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2720
         { ac_try='test -z "$ac_c_werror_flag"
 
2721
                         || test ! -s conftest.err'
2733
2722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734
2723
  (eval $ac_try) 2>&5
2735
2724
  ac_status=$?
2783
2772
  cat conftest.err >&5
2784
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
2774
  (exit $ac_status); } &&
2786
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2775
         { ac_try='test -z "$ac_c_werror_flag"
 
2776
                         || test ! -s conftest.err'
2787
2777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788
2778
  (eval $ac_try) 2>&5
2789
2779
  ac_status=$?
2828
2818
  cat conftest.err >&5
2829
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830
2820
  (exit $ac_status); } &&
2831
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2821
         { ac_try='test -z "$ac_c_werror_flag"
 
2822
                         || test ! -s conftest.err'
2832
2823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833
2824
  (eval $ac_try) 2>&5
2834
2825
  ac_status=$?
2872
2863
  cat conftest.err >&5
2873
2864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874
2865
  (exit $ac_status); } &&
2875
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2866
         { ac_try='test -z "$ac_c_werror_flag"
 
2867
                         || test ! -s conftest.err'
2876
2868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877
2869
  (eval $ac_try) 2>&5
2878
2870
  ac_status=$?
3161
3153
  cat conftest.err >&5
3162
3154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
3155
  (exit $ac_status); } &&
3164
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3156
         { ac_try='test -z "$ac_c_werror_flag"
 
3157
                         || test ! -s conftest.err'
3165
3158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166
3159
  (eval $ac_try) 2>&5
3167
3160
  ac_status=$?
3221
3214
  cat conftest.err >&5
3222
3215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223
3216
  (exit $ac_status); } &&
3224
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3217
         { ac_try='test -z "$ac_c_werror_flag"
 
3218
                         || test ! -s conftest.err'
3225
3219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226
3220
  (eval $ac_try) 2>&5
3227
3221
  ac_status=$?
3420
3414
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3421
3415
# along with /bin/sed that truncates output.
3422
3416
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3423
 
  test ! -f $lt_ac_sed && break
 
3417
  test ! -f $lt_ac_sed && continue
3424
3418
  cat /dev/null > conftest.in
3425
3419
  lt_ac_count=0
3426
3420
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3445
3439
    fi
3446
3440
  done
3447
3441
done
 
3442
 
 
3443
fi
 
3444
 
3448
3445
SED=$lt_cv_path_SED
3449
 
 
3450
 
fi
3451
 
 
3452
3446
echo "$as_me:$LINENO: result: $SED" >&5
3453
3447
echo "${ECHO_T}$SED" >&6
3454
3448
 
3525
3519
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526
3520
      lt_cv_path_LD="$ac_dir/$ac_prog"
3527
3521
      # Check to see if the program is GNU ld.  I'd rather use --version,
3528
 
      # but apparently some GNU ld's only accept -v.
 
3522
      # but apparently some variants of GNU ld only accept -v.
3529
3523
      # Break only if it was the GNU/non-GNU ld that we prefer.
3530
3524
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531
3525
      *GNU* | *'with BFD'*)
3559
3553
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3560
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
3561
3555
else
3562
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3556
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3563
3557
case `$LD -v 2>&1 </dev/null` in
3564
3558
*GNU* | *'with BFD'*)
3565
3559
  lt_cv_prog_gnu_ld=yes
3589
3583
*) reload_flag=" $reload_flag" ;;
3590
3584
esac
3591
3585
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3586
case $host_os in
 
3587
  darwin*)
 
3588
    if test "$GCC" = yes; then
 
3589
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3590
    else
 
3591
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3592
    fi
 
3593
    ;;
 
3594
esac
3592
3595
 
3593
3596
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3594
3597
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3599
3602
  # Let the user override the test.
3600
3603
  lt_cv_path_NM="$NM"
3601
3604
else
3602
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3603
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3604
 
    IFS="$lt_save_ifs"
3605
 
    test -z "$ac_dir" && ac_dir=.
3606
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3607
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3608
 
      # Check to see if the nm accepts a BSD-compat flag.
3609
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3610
 
      #   nm: unknown option "B" ignored
3611
 
      # Tru64's nm complains that /dev/null is an invalid object file
3612
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3613
 
      */dev/null* | *'Invalid file or object type'*)
3614
 
        lt_cv_path_NM="$tmp_nm -B"
3615
 
        break
3616
 
        ;;
3617
 
      *)
3618
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3619
 
        */dev/null*)
3620
 
          lt_cv_path_NM="$tmp_nm -p"
 
3605
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3606
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3607
    lt_nm_to_check="$lt_nm_to_check nm"
 
3608
  fi
 
3609
  for lt_tmp_nm in $lt_nm_to_check; do
 
3610
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3611
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3612
      IFS="$lt_save_ifs"
 
3613
      test -z "$ac_dir" && ac_dir=.
 
3614
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3615
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3616
        # Check to see if the nm accepts a BSD-compat flag.
 
3617
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3618
        #   nm: unknown option "B" ignored
 
3619
        # Tru64's nm complains that /dev/null is an invalid object file
 
3620
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3621
        */dev/null* | *'Invalid file or object type'*)
 
3622
          lt_cv_path_NM="$tmp_nm -B"
3621
3623
          break
3622
3624
          ;;
3623
3625
        *)
3624
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3625
 
          continue # so that we can try to find one that supports BSD flags
 
3626
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3627
          */dev/null*)
 
3628
            lt_cv_path_NM="$tmp_nm -p"
 
3629
            break
 
3630
            ;;
 
3631
          *)
 
3632
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3633
            continue # so that we can try to find one that supports BSD flags
 
3634
            ;;
 
3635
          esac
3626
3636
          ;;
3627
3637
        esac
3628
 
      esac
3629
 
    fi
 
3638
      fi
 
3639
    done
 
3640
    IFS="$lt_save_ifs"
3630
3641
  done
3631
 
  IFS="$lt_save_ifs"
3632
3642
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3633
3643
fi
3634
3644
fi
3675
3685
  lt_cv_deplibs_check_method=pass_all
3676
3686
  ;;
3677
3687
 
3678
 
bsdi4*)
 
3688
bsdi[45]*)
3679
3689
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3680
3690
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3681
3691
  lt_cv_file_magic_test_file=/shlib/libc.so
3698
3708
  lt_cv_deplibs_check_method=pass_all
3699
3709
  ;;
3700
3710
 
3701
 
freebsd* | kfreebsd*-gnu)
 
3711
freebsd* | kfreebsd*-gnu | dragonfly*)
3702
3712
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3703
3713
    case $host_cpu in
3704
3714
    i*86 )
3705
3715
      # Not sure whether the presence of OpenBSD here was a mistake.
3706
3716
      # Let's accept both of them until this is cleared up.
3707
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3717
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3708
3718
      lt_cv_file_magic_cmd=/usr/bin/file
3709
3719
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3710
3720
      ;;
3720
3730
 
3721
3731
hpux10.20* | hpux11*)
3722
3732
  lt_cv_file_magic_cmd=/usr/bin/file
3723
 
  case "$host_cpu" in
 
3733
  case $host_cpu in
3724
3734
  ia64*)
3725
3735
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3726
3736
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3736
3746
  esac
3737
3747
  ;;
3738
3748
 
 
3749
interix3*)
 
3750
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3751
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3752
  ;;
 
3753
 
3739
3754
irix5* | irix6* | nonstopux*)
3740
3755
  case $LD in
3741
3756
  *-32|*"-32 ") libmagic=32-bit;;
3751
3766
  lt_cv_deplibs_check_method=pass_all
3752
3767
  ;;
3753
3768
 
3754
 
netbsd* | knetbsd*-gnu)
 
3769
netbsd*)
3755
3770
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3756
3771
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3757
3772
  else
3770
3785
  ;;
3771
3786
 
3772
3787
openbsd*)
3773
 
  lt_cv_file_magic_cmd=/usr/bin/file
3774
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3775
3788
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3776
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3789
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3777
3790
  else
3778
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3791
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3779
3792
  fi
3780
3793
  ;;
3781
3794
 
3783
3796
  lt_cv_deplibs_check_method=pass_all
3784
3797
  ;;
3785
3798
 
3786
 
sco3.2v5*)
3787
 
  lt_cv_deplibs_check_method=pass_all
3788
 
  ;;
3789
 
 
3790
3799
solaris*)
3791
3800
  lt_cv_deplibs_check_method=pass_all
3792
3801
  ;;
3793
3802
 
3794
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3803
sysv4 | sysv4.3*)
3795
3804
  case $host_vendor in
3796
3805
  motorola)
3797
3806
    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]'
3812
3821
  siemens)
3813
3822
    lt_cv_deplibs_check_method=pass_all
3814
3823
    ;;
 
3824
  pc)
 
3825
    lt_cv_deplibs_check_method=pass_all
 
3826
    ;;
3815
3827
  esac
3816
3828
  ;;
3817
3829
 
3818
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3830
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3819
3831
  lt_cv_deplibs_check_method=pass_all
3820
3832
  ;;
3821
3833
esac
3833
3845
# If no C compiler was specified, use CC.
3834
3846
LTCC=${LTCC-"$CC"}
3835
3847
 
 
3848
# If no C compiler flags were specified, use CFLAGS.
 
3849
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3850
 
3836
3851
# Allow CC to be a program name with arguments.
3837
3852
compiler=$CC
3838
3853
 
3867
3882
  ;;
3868
3883
*-*-irix6*)
3869
3884
  # Find out which ABI we are using.
3870
 
  echo '#line 3870 "configure"' > conftest.$ac_ext
 
3885
  echo '#line 3885 "configure"' > conftest.$ac_ext
3871
3886
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872
3887
  (eval $ac_compile) 2>&5
3873
3888
  ac_status=$?
3910
3925
  ac_status=$?
3911
3926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912
3927
  (exit $ac_status); }; then
3913
 
    case "`/usr/bin/file conftest.o`" in
 
3928
    case `/usr/bin/file conftest.o` in
3914
3929
    *32-bit*)
3915
3930
      case $host in
3916
3931
        x86_64-*linux*)
3987
4002
  cat conftest.err >&5
3988
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989
4004
  (exit $ac_status); } &&
3990
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4005
         { ac_try='test -z "$ac_c_werror_flag"
 
4006
                         || test ! -s conftest.err'
3991
4007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992
4008
  (eval $ac_try) 2>&5
3993
4009
  ac_status=$?
4022
4038
    CFLAGS="$SAVE_CFLAGS"
4023
4039
  fi
4024
4040
  ;;
 
4041
sparc*-*solaris*)
 
4042
  # Find out which ABI we are using.
 
4043
  echo 'int i;' > conftest.$ac_ext
 
4044
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4045
  (eval $ac_compile) 2>&5
 
4046
  ac_status=$?
 
4047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4048
  (exit $ac_status); }; then
 
4049
    case `/usr/bin/file conftest.o` in
 
4050
    *64-bit*)
 
4051
      case $lt_cv_prog_gnu_ld in
 
4052
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4053
      *)    LD="${LD-ld} -64" ;;
 
4054
      esac
 
4055
      ;;
 
4056
    esac
 
4057
  fi
 
4058
  rm -rf conftest*
 
4059
  ;;
 
4060
 
4025
4061
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4026
4062
  if test -n "$ac_tool_prefix"; then
4027
4063
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4538
4574
  cat conftest.err >&5
4539
4575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540
4576
  (exit $ac_status); } &&
4541
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4577
         { ac_try='test -z "$ac_c_werror_flag"
 
4578
                         || test ! -s conftest.err'
4542
4579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543
4580
  (eval $ac_try) 2>&5
4544
4581
  ac_status=$?
4708
4745
  cat conftest.err >&5
4709
4746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710
4747
  (exit $ac_status); } &&
4711
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4748
         { ac_try='test -z "$ac_c_werror_flag"
 
4749
                         || test ! -s conftest.err'
4712
4750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713
4751
  (eval $ac_try) 2>&5
4714
4752
  ac_status=$?
4775
4813
  cat conftest.err >&5
4776
4814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
4815
  (exit $ac_status); } &&
4778
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4816
         { ac_try='test -z "$ac_c_werror_flag"
 
4817
                         || test ! -s conftest.err'
4779
4818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780
4819
  (eval $ac_try) 2>&5
4781
4820
  ac_status=$?
5035
5074
  cat conftest.err >&5
5036
5075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037
5076
  (exit $ac_status); } &&
5038
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5077
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5078
                         || test ! -s conftest.err'
5039
5079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040
5080
  (eval $ac_try) 2>&5
5041
5081
  ac_status=$?
5093
5133
  cat conftest.err >&5
5094
5134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095
5135
  (exit $ac_status); } &&
5096
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5136
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5137
                         || test ! -s conftest.err'
5097
5138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098
5139
  (eval $ac_try) 2>&5
5099
5140
  ac_status=$?
5164
5205
  cat conftest.err >&5
5165
5206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166
5207
  (exit $ac_status); } &&
5167
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5208
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5209
                         || test ! -s conftest.err'
5168
5210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169
5211
  (eval $ac_try) 2>&5
5170
5212
  ac_status=$?
5208
5250
  cat conftest.err >&5
5209
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210
5252
  (exit $ac_status); } &&
5211
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5253
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5254
                         || test ! -s conftest.err'
5212
5255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213
5256
  (eval $ac_try) 2>&5
5214
5257
  ac_status=$?
5350
5393
fi
5351
5394
 
5352
5395
 
5353
 
ac_ext=cc
 
5396
 
 
5397
 
 
5398
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5399
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5400
    (test "X$CXX" != "Xg++"))) ; then
 
5401
  ac_ext=cc
5354
5402
ac_cpp='$CXXCPP $CPPFLAGS'
5355
5403
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356
5404
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580
5628
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581
5629
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582
5630
 
 
5631
fi
 
5632
 
5583
5633
 
5584
5634
ac_ext=f
5585
5635
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5673
5723
 
5674
5724
 
5675
5725
# Provide some information about the compiler.
5676
 
echo "$as_me:5676:" \
 
5726
echo "$as_me:5726:" \
5677
5727
     "checking for Fortran 77 compiler version" >&5
5678
5728
ac_compiler=`set X $ac_compile; echo $2`
5679
5729
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5719
5769
  cat conftest.err >&5
5720
5770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721
5771
  (exit $ac_status); } &&
5722
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5772
         { ac_try='test -z "$ac_f77_werror_flag"
 
5773
                         || test ! -s conftest.err'
5723
5774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724
5775
  (eval $ac_try) 2>&5
5725
5776
  ac_status=$?
5768
5819
  cat conftest.err >&5
5769
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770
5821
  (exit $ac_status); } &&
5771
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5822
         { ac_try='test -z "$ac_f77_werror_flag"
 
5823
                         || test ! -s conftest.err'
5772
5824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773
5825
  (eval $ac_try) 2>&5
5774
5826
  ac_status=$?
5861
5913
    lt_cv_sys_max_cmd_len=8192;
5862
5914
    ;;
5863
5915
 
5864
 
 *)
 
5916
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5917
    # This has been around since 386BSD, at least.  Likely further.
 
5918
    if test -x /sbin/sysctl; then
 
5919
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5920
    elif test -x /usr/sbin/sysctl; then
 
5921
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5922
    else
 
5923
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5924
    fi
 
5925
    # And add a safety zone
 
5926
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5927
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5928
    ;;
 
5929
 
 
5930
  interix*)
 
5931
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5932
    lt_cv_sys_max_cmd_len=196608
 
5933
    ;;
 
5934
 
 
5935
  osf*)
 
5936
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5937
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5938
    # nice to cause kernel panics so lets avoid the loop below.
 
5939
    # First set a reasonable default.
 
5940
    lt_cv_sys_max_cmd_len=16384
 
5941
    #
 
5942
    if test -x /sbin/sysconfig; then
 
5943
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5944
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5945
      esac
 
5946
    fi
 
5947
    ;;
 
5948
  sco3.2v5*)
 
5949
    lt_cv_sys_max_cmd_len=102400
 
5950
    ;;
 
5951
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5952
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5953
    if test -n "$kargmax"; then
 
5954
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5955
    else
 
5956
      lt_cv_sys_max_cmd_len=32768
 
5957
    fi
 
5958
    ;;
 
5959
  *)
5865
5960
    # If test is not a shell built-in, we'll probably end up computing a
5866
5961
    # maximum length that is only half of the actual maximum length, but
5867
5962
    # we can't tell.
5868
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5963
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5964
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5869
5965
               = "XX$teststring") >/dev/null 2>&1 &&
5870
5966
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5871
5967
            lt_cv_sys_max_cmd_len=$new_result &&
5911
6007
# Regexp to match symbols that can be accessed directly from C.
5912
6008
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913
6009
 
5914
 
# Transform the above into a raw symbol and a C symbol.
5915
 
symxfrm='\1 \2\3 \3'
5916
 
 
5917
6010
# Transform an extracted symbol line into a proper C declaration
5918
6011
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5919
6012
 
5935
6028
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936
6029
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5937
6030
  ;;
 
6031
linux*)
 
6032
  if test "$host_cpu" = ia64; then
 
6033
    symcode='[ABCDGIRSTW]'
 
6034
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6035
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6036
  fi
 
6037
  ;;
5938
6038
irix* | nonstopux*)
5939
6039
  symcode='[BCDEGRST]'
5940
6040
  ;;
5941
6041
osf*)
5942
6042
  symcode='[BCDEGQRST]'
5943
6043
  ;;
5944
 
solaris* | sysv5*)
 
6044
solaris*)
5945
6045
  symcode='[BDRT]'
5946
6046
  ;;
 
6047
sco3.2v5*)
 
6048
  symcode='[DT]'
 
6049
  ;;
 
6050
sysv4.2uw2*)
 
6051
  symcode='[DT]'
 
6052
  ;;
 
6053
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6054
  symcode='[ABDT]'
 
6055
  ;;
5947
6056
sysv4)
5948
6057
  symcode='[DFNSTU]'
5949
6058
  ;;
5966
6075
# Try without a prefix undercore, then with it.
5967
6076
for ac_symprfx in "" "_"; do
5968
6077
 
 
6078
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6079
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6080
 
5969
6081
  # Write the raw and C identifiers.
5970
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6082
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5971
6083
 
5972
6084
  # Check to see that the pipe works correctly.
5973
6085
  pipe_works=no
6129
6241
 
6130
6242
# Sed substitution that helps us do robust quoting.  It backslashifies
6131
6243
# metacharacters that are still active within double-quoted strings.
6132
 
Xsed='sed -e s/^X//'
 
6244
Xsed='sed -e 1s/^X//'
6133
6245
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6134
6246
 
6135
6247
# Same as above, but do not quote variable references.
6149
6261
default_ofile=libtool
6150
6262
can_build_shared=yes
6151
6263
 
6152
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6264
# All known linkers require a `.a' archive for static linking (except MSVC,
6153
6265
# which needs '.lib').
6154
6266
libext=a
6155
6267
ltmain="$ac_aux_dir/ltmain.sh"
6406
6518
test -z "$AS" && AS=as
6407
6519
test -z "$CC" && CC=cc
6408
6520
test -z "$LTCC" && LTCC=$CC
 
6521
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6409
6522
test -z "$DLLTOOL" && DLLTOOL=dlltool
6410
6523
test -z "$LD" && LD=ld
6411
6524
test -z "$LN_S" && LN_S="ln -s"
6425
6538
if test -n "$RANLIB"; then
6426
6539
  case $host_os in
6427
6540
  openbsd*)
6428
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6541
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6429
6542
    ;;
6430
6543
  *)
6431
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6544
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6432
6545
    ;;
6433
6546
  esac
6434
6547
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435
6548
fi
6436
6549
 
 
6550
for cc_temp in $compiler""; do
 
6551
  case $cc_temp in
 
6552
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6553
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6554
    \-*) ;;
 
6555
    *) break;;
 
6556
  esac
 
6557
done
 
6558
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6559
 
 
6560
 
6437
6561
# Only perform the check for file, if the check method requires it
6438
6562
case $deplibs_check_method in
6439
6563
file_magic*)
6459
6583
      if test -n "$file_magic_test_file"; then
6460
6584
        case $deplibs_check_method in
6461
6585
        "file_magic "*)
6462
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6586
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6463
6587
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6464
6588
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6465
6589
            $EGREP "$file_magic_regex" > /dev/null; then
6521
6645
      if test -n "$file_magic_test_file"; then
6522
6646
        case $deplibs_check_method in
6523
6647
        "file_magic "*)
6524
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6648
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525
6649
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526
6650
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527
6651
            $EGREP "$file_magic_regex" > /dev/null; then
6616
6740
# If no C compiler was specified, use CC.
6617
6741
LTCC=${LTCC-"$CC"}
6618
6742
 
 
6743
# If no C compiler flags were specified, use CFLAGS.
 
6744
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6745
 
6619
6746
# Allow CC to be a program name with arguments.
6620
6747
compiler=$CC
6621
6748
 
6622
6749
 
6623
 
#
6624
 
# Check for any special shared library compilation flags.
6625
 
#
6626
 
lt_prog_cc_shlib=
6627
 
if test "$GCC" = no; then
6628
 
  case $host_os in
6629
 
  sco3.2v5*)
6630
 
    lt_prog_cc_shlib='-belf'
6631
 
    ;;
6632
 
  esac
6633
 
fi
6634
 
if test -n "$lt_prog_cc_shlib"; then
6635
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6636
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6637
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6638
 
  else
6639
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6640
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6641
 
    lt_cv_prog_cc_can_build_shared=no
6642
 
  fi
6643
 
fi
6644
 
 
6645
 
 
6646
 
#
6647
 
# Check to make sure the static flag actually works.
6648
 
#
6649
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6650
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6651
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6653
 
else
6654
 
  lt_prog_compiler_static_works=no
6655
 
   save_LDFLAGS="$LDFLAGS"
6656
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6657
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6658
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6659
 
     # The compiler can only warn and ignore the option if not recognized
6660
 
     # So say no if there are warnings
6661
 
     if test -s conftest.err; then
6662
 
       # Append any errors to the config.log.
6663
 
       cat conftest.err 1>&5
6664
 
     else
6665
 
       lt_prog_compiler_static_works=yes
6666
 
     fi
6667
 
   fi
6668
 
   $rm conftest*
6669
 
   LDFLAGS="$save_LDFLAGS"
6670
 
 
6671
 
fi
6672
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6673
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6674
 
 
6675
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6676
 
    :
6677
 
else
6678
 
    lt_prog_compiler_static=
6679
 
fi
6680
 
 
6681
 
 
6682
 
 
 
6750
# save warnings/boilerplate of simple test code
 
6751
ac_outfile=conftest.$ac_objext
 
6752
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6753
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6754
_lt_compiler_boilerplate=`cat conftest.err`
 
6755
$rm conftest*
 
6756
 
 
6757
ac_outfile=conftest.$ac_objext
 
6758
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6759
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6760
_lt_linker_boilerplate=`cat conftest.err`
 
6761
$rm conftest*
 
6762
 
 
6763
 
 
6764
## CAVEAT EMPTOR:
 
6765
## There is no encapsulation within the following macros, do not change
 
6766
## the running order or otherwise move them around unless you know exactly
 
6767
## what you are doing...
6683
6768
 
6684
6769
lt_prog_compiler_no_builtin_flag=
6685
6770
 
6702
6787
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6703
6788
   # The option is referenced via a variable to avoid confusing sed.
6704
6789
   lt_compile=`echo "$ac_compile" | $SED \
6705
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6790
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6706
6791
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6707
6792
   -e 's:$: $lt_compiler_flag:'`
6708
 
   (eval echo "\"\$as_me:6708: $lt_compile\"" >&5)
 
6793
   (eval echo "\"\$as_me:6793: $lt_compile\"" >&5)
6709
6794
   (eval "$lt_compile" 2>conftest.err)
6710
6795
   ac_status=$?
6711
6796
   cat conftest.err >&5
6712
 
   echo "$as_me:6712: \$? = $ac_status" >&5
 
6797
   echo "$as_me:6797: \$? = $ac_status" >&5
6713
6798
   if (exit $ac_status) && test -s "$ac_outfile"; then
6714
6799
     # The compiler can only warn and ignore the option if not recognized
6715
 
     # So say no if there are warnings
6716
 
     if test ! -s conftest.err; then
 
6800
     # So say no if there are warnings other than the usual output.
 
6801
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6802
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6803
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6717
6804
       lt_cv_prog_compiler_rtti_exceptions=yes
6718
6805
     fi
6719
6806
   fi
6774
6861
      lt_prog_compiler_pic='-fno-common'
6775
6862
      ;;
6776
6863
 
 
6864
    interix3*)
 
6865
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6866
      # Instead, we relocate shared libraries at runtime.
 
6867
      ;;
 
6868
 
6777
6869
    msdosdjgpp*)
6778
6870
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6779
6871
      # on systems that don't support them.
6790
6882
    hpux*)
6791
6883
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6792
6884
      # not for PA HP-UX.
6793
 
      case "$host_cpu" in
 
6885
      case $host_cpu in
6794
6886
      hppa*64*|ia64*)
6795
6887
        # +Z the default
6796
6888
        ;;
6816
6908
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6817
6909
      fi
6818
6910
      ;;
 
6911
      darwin*)
 
6912
        # PIC is the default on this platform
 
6913
        # Common symbols not allowed in MH_DYLIB files
 
6914
       case $cc_basename in
 
6915
         xlc*)
 
6916
         lt_prog_compiler_pic='-qnocommon'
 
6917
         lt_prog_compiler_wl='-Wl,'
 
6918
         ;;
 
6919
       esac
 
6920
       ;;
6819
6921
 
6820
6922
    mingw* | pw32* | os2*)
6821
6923
      # This hack is so that the source file can tell whether it is being
6827
6929
      lt_prog_compiler_wl='-Wl,'
6828
6930
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6829
6931
      # not for PA HP-UX.
6830
 
      case "$host_cpu" in
 
6932
      case $host_cpu in
6831
6933
      hppa*64*|ia64*)
6832
6934
        # +Z the default
6833
6935
        ;;
6851
6953
      ;;
6852
6954
 
6853
6955
    linux*)
6854
 
      case $CC in
 
6956
      case $cc_basename in
6855
6957
      icc* | ecc*)
6856
6958
        lt_prog_compiler_wl='-Wl,'
6857
6959
        lt_prog_compiler_pic='-KPIC'
6858
6960
        lt_prog_compiler_static='-static'
6859
6961
        ;;
 
6962
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6963
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6964
        # which looks to be a dead project)
 
6965
        lt_prog_compiler_wl='-Wl,'
 
6966
        lt_prog_compiler_pic='-fpic'
 
6967
        lt_prog_compiler_static='-Bstatic'
 
6968
        ;;
6860
6969
      ccc*)
6861
6970
        lt_prog_compiler_wl='-Wl,'
6862
6971
        # All Alpha code is PIC.
6871
6980
      lt_prog_compiler_static='-non_shared'
6872
6981
      ;;
6873
6982
 
6874
 
    sco3.2v5*)
6875
 
      lt_prog_compiler_pic='-Kpic'
6876
 
      lt_prog_compiler_static='-dn'
6877
 
      ;;
6878
 
 
6879
6983
    solaris*)
6880
 
      lt_prog_compiler_wl='-Wl,'
6881
6984
      lt_prog_compiler_pic='-KPIC'
6882
6985
      lt_prog_compiler_static='-Bstatic'
 
6986
      case $cc_basename in
 
6987
      f77* | f90* | f95*)
 
6988
        lt_prog_compiler_wl='-Qoption ld ';;
 
6989
      *)
 
6990
        lt_prog_compiler_wl='-Wl,';;
 
6991
      esac
6883
6992
      ;;
6884
6993
 
6885
6994
    sunos4*)
6888
6997
      lt_prog_compiler_static='-Bstatic'
6889
6998
      ;;
6890
6999
 
6891
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7000
    sysv4 | sysv4.2uw2* | sysv4.3*)
6892
7001
      lt_prog_compiler_wl='-Wl,'
6893
7002
      lt_prog_compiler_pic='-KPIC'
6894
7003
      lt_prog_compiler_static='-Bstatic'
6901
7010
      fi
6902
7011
      ;;
6903
7012
 
 
7013
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7014
      lt_prog_compiler_wl='-Wl,'
 
7015
      lt_prog_compiler_pic='-KPIC'
 
7016
      lt_prog_compiler_static='-Bstatic'
 
7017
      ;;
 
7018
 
 
7019
    unicos*)
 
7020
      lt_prog_compiler_wl='-Wl,'
 
7021
      lt_prog_compiler_can_build_shared=no
 
7022
      ;;
 
7023
 
6904
7024
    uts4*)
6905
7025
      lt_prog_compiler_pic='-pic'
6906
7026
      lt_prog_compiler_static='-Bstatic'
6935
7055
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6936
7056
   # The option is referenced via a variable to avoid confusing sed.
6937
7057
   lt_compile=`echo "$ac_compile" | $SED \
6938
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7058
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939
7059
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940
7060
   -e 's:$: $lt_compiler_flag:'`
6941
 
   (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
 
7061
   (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
6942
7062
   (eval "$lt_compile" 2>conftest.err)
6943
7063
   ac_status=$?
6944
7064
   cat conftest.err >&5
6945
 
   echo "$as_me:6945: \$? = $ac_status" >&5
 
7065
   echo "$as_me:7065: \$? = $ac_status" >&5
6946
7066
   if (exit $ac_status) && test -s "$ac_outfile"; then
6947
7067
     # The compiler can only warn and ignore the option if not recognized
6948
 
     # So say no if there are warnings
6949
 
     if test ! -s conftest.err; then
 
7068
     # So say no if there are warnings other than the usual output.
 
7069
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7070
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7071
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6950
7072
       lt_prog_compiler_pic_works=yes
6951
7073
     fi
6952
7074
   fi
6967
7089
fi
6968
7090
 
6969
7091
fi
6970
 
case "$host_os" in
 
7092
case $host_os in
6971
7093
  # For platforms which do not support PIC, -DPIC is meaningless:
6972
7094
  *djgpp*)
6973
7095
    lt_prog_compiler_pic=
6977
7099
    ;;
6978
7100
esac
6979
7101
 
 
7102
#
 
7103
# Check to make sure the static flag actually works.
 
7104
#
 
7105
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7106
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7107
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
7108
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7110
else
 
7111
  lt_prog_compiler_static_works=no
 
7112
   save_LDFLAGS="$LDFLAGS"
 
7113
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7114
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7115
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7116
     # The linker can only warn and ignore the option if not recognized
 
7117
     # So say no if there are warnings
 
7118
     if test -s conftest.err; then
 
7119
       # Append any errors to the config.log.
 
7120
       cat conftest.err 1>&5
 
7121
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7122
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7123
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7124
         lt_prog_compiler_static_works=yes
 
7125
       fi
 
7126
     else
 
7127
       lt_prog_compiler_static_works=yes
 
7128
     fi
 
7129
   fi
 
7130
   $rm conftest*
 
7131
   LDFLAGS="$save_LDFLAGS"
 
7132
 
 
7133
fi
 
7134
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7135
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7136
 
 
7137
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7138
    :
 
7139
else
 
7140
    lt_prog_compiler_static=
 
7141
fi
 
7142
 
 
7143
 
6980
7144
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6981
7145
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6982
7146
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6995
7159
   # Note that $ac_compile itself does not contain backslashes and begins
6996
7160
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6997
7161
   lt_compile=`echo "$ac_compile" | $SED \
6998
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7162
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999
7163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000
7164
   -e 's:$: $lt_compiler_flag:'`
7001
 
   (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
 
7165
   (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7002
7166
   (eval "$lt_compile" 2>out/conftest.err)
7003
7167
   ac_status=$?
7004
7168
   cat out/conftest.err >&5
7005
 
   echo "$as_me:7005: \$? = $ac_status" >&5
 
7169
   echo "$as_me:7169: \$? = $ac_status" >&5
7006
7170
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7007
7171
   then
7008
7172
     # The compiler can only warn and ignore the option if not recognized
7009
7173
     # So say no if there are warnings
7010
 
     if test ! -s out/conftest.err; then
 
7174
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7175
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7176
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7011
7177
       lt_cv_prog_compiler_c_o=yes
7012
7178
     fi
7013
7179
   fi
7014
 
   chmod u+w .
 
7180
   chmod u+w . 2>&5
7015
7181
   $rm conftest*
7016
7182
   # SGI C++ compiler will create directory out/ii_files/ for
7017
7183
   # template instantiation
7087
7253
  # rely on this symbol name, it's probably fine to never include it in
7088
7254
  # preloaded symbol tables.
7089
7255
  extract_expsyms_cmds=
 
7256
  # Just being paranoid about ensuring that cc_basename is set.
 
7257
  for cc_temp in $compiler""; do
 
7258
  case $cc_temp in
 
7259
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7260
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7261
    \-*) ;;
 
7262
    *) break;;
 
7263
  esac
 
7264
done
 
7265
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090
7266
 
7091
7267
  case $host_os in
7092
7268
  cygwin* | mingw* | pw32*)
7097
7273
      with_gnu_ld=no
7098
7274
    fi
7099
7275
    ;;
 
7276
  interix*)
 
7277
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7278
    with_gnu_ld=yes
 
7279
    ;;
7100
7280
  openbsd*)
7101
7281
    with_gnu_ld=no
7102
7282
    ;;
7107
7287
    # If archive_cmds runs LD, not CC, wlarc should be empty
7108
7288
    wlarc='${wl}'
7109
7289
 
 
7290
    # Set some defaults for GNU ld with shared library support. These
 
7291
    # are reset later if shared libraries are not supported. Putting them
 
7292
    # here allows them to be overridden if necessary.
 
7293
    runpath_var=LD_RUN_PATH
 
7294
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7295
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7296
    # ancient GNU ld didn't support --whole-archive et. al.
 
7297
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7298
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7299
      else
 
7300
        whole_archive_flag_spec=
 
7301
    fi
 
7302
    supports_anon_versioning=no
 
7303
    case `$LD -v 2>/dev/null` in
 
7304
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7305
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7306
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7307
      *\ 2.11.*) ;; # other 2.11 versions
 
7308
      *) supports_anon_versioning=yes ;;
 
7309
    esac
 
7310
 
7110
7311
    # See if GNU ld supports shared libraries.
7111
7312
    case $host_os in
7112
7313
    aix3* | aix4* | aix5*)
7157
7358
      allow_undefined_flag=unsupported
7158
7359
      always_export_symbols=no
7159
7360
      enable_shared_with_static_runtimes=yes
7160
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7361
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7161
7362
 
7162
7363
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7163
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7364
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7164
7365
        # If the export-symbols file already is a .def file (1st line
7165
7366
        # is EXPORTS), use it as is; otherwise, prepend...
7166
7367
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7169
7370
          echo EXPORTS > $output_objdir/$soname.def;
7170
7371
          cat $export_symbols >> $output_objdir/$soname.def;
7171
7372
        fi~
7172
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7173
 
      else
7174
 
        ld_shlibs=no
7175
 
      fi
7176
 
      ;;
7177
 
 
7178
 
    netbsd* | knetbsd*-gnu)
 
7373
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7374
      else
 
7375
        ld_shlibs=no
 
7376
      fi
 
7377
      ;;
 
7378
 
 
7379
    interix3*)
 
7380
      hardcode_direct=no
 
7381
      hardcode_shlibpath_var=no
 
7382
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7383
      export_dynamic_flag_spec='${wl}-E'
 
7384
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7385
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7386
      # default) and relocated if they conflict, which is a slow very memory
 
7387
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7388
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7389
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7390
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7391
      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'
 
7392
      ;;
 
7393
 
 
7394
    linux*)
 
7395
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7396
        tmp_addflag=
 
7397
        case $cc_basename,$host_cpu in
 
7398
        pgcc*)                          # Portland Group C compiler
 
7399
          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'
 
7400
          tmp_addflag=' $pic_flag'
 
7401
          ;;
 
7402
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7403
          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'
 
7404
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7405
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7406
          tmp_addflag=' -i_dynamic' ;;
 
7407
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7408
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7409
        ifc* | ifort*)                  # Intel Fortran compiler
 
7410
          tmp_addflag=' -nofor_main' ;;
 
7411
        esac
 
7412
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7413
 
 
7414
        if test $supports_anon_versioning = yes; then
 
7415
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7416
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7417
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7418
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7419
        fi
 
7420
      else
 
7421
        ld_shlibs=no
 
7422
      fi
 
7423
      ;;
 
7424
 
 
7425
    netbsd*)
7179
7426
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180
7427
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7181
7428
        wlarc=
7185
7432
      fi
7186
7433
      ;;
7187
7434
 
7188
 
    solaris* | sysv5*)
 
7435
    solaris*)
7189
7436
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7190
7437
        ld_shlibs=no
7191
7438
        cat <<EOF 1>&2
7206
7453
      fi
7207
7454
      ;;
7208
7455
 
 
7456
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7457
      case `$LD -v 2>&1` in
 
7458
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7459
        ld_shlibs=no
 
7460
        cat <<_LT_EOF 1>&2
 
7461
 
 
7462
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7463
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7464
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7465
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7466
*** your PATH or compiler configuration so that the native linker is
 
7467
*** used, and then restart.
 
7468
 
 
7469
_LT_EOF
 
7470
        ;;
 
7471
        *)
 
7472
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7473
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7474
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7475
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7476
          else
 
7477
            ld_shlibs=no
 
7478
          fi
 
7479
        ;;
 
7480
      esac
 
7481
      ;;
 
7482
 
7209
7483
    sunos4*)
7210
7484
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211
7485
      wlarc=
7213
7487
      hardcode_shlibpath_var=no
7214
7488
      ;;
7215
7489
 
7216
 
  linux*)
7217
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7218
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219
 
        archive_cmds="$tmp_archive_cmds"
7220
 
      supports_anon_versioning=no
7221
 
      case `$LD -v 2>/dev/null` in
7222
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7223
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7224
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7225
 
        *\ 2.11.*) ;; # other 2.11 versions
7226
 
        *) supports_anon_versioning=yes ;;
7227
 
      esac
7228
 
      if test $supports_anon_versioning = yes; then
7229
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7230
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7231
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
7232
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7233
 
      else
7234
 
        archive_expsym_cmds="$tmp_archive_cmds"
7235
 
      fi
7236
 
      link_all_deplibs=no
7237
 
    else
7238
 
      ld_shlibs=no
7239
 
    fi
7240
 
    ;;
7241
 
 
7242
7490
    *)
7243
7491
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7244
7492
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7249
7497
      ;;
7250
7498
    esac
7251
7499
 
7252
 
    if test "$ld_shlibs" = yes; then
7253
 
      runpath_var=LD_RUN_PATH
7254
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7255
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
7256
 
      # ancient GNU ld didn't support --whole-archive et. al.
7257
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7258
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7259
 
      else
7260
 
        whole_archive_flag_spec=
7261
 
      fi
 
7500
    if test "$ld_shlibs" = no; then
 
7501
      runpath_var=
 
7502
      hardcode_libdir_flag_spec=
 
7503
      export_dynamic_flag_spec=
 
7504
      whole_archive_flag_spec=
7262
7505
    fi
7263
7506
  else
7264
7507
    # PORTME fill in a description of your system's linker (not GNU ld)
7270
7513
      # Note: this linker hardcodes the directories in LIBPATH if there
7271
7514
      # are no directories specified by -L.
7272
7515
      hardcode_minus_L=yes
7273
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7516
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7274
7517
        # Neither direct hardcoding nor static linking is supported with a
7275
7518
        # broken collect2.
7276
7519
        hardcode_direct=unsupported
7304
7547
            break
7305
7548
          fi
7306
7549
          done
 
7550
          ;;
7307
7551
        esac
7308
7552
 
7309
7553
        exp_sym_flag='-bexport'
7322
7566
      link_all_deplibs=yes
7323
7567
 
7324
7568
      if test "$GCC" = yes; then
7325
 
        case $host_os in aix4.012|aix4.012.*)
 
7569
        case $host_os in aix4.[012]|aix4.[012].*)
7326
7570
        # We only want to do this on AIX 4.2 and lower, the check
7327
7571
        # below for broken collect2 doesn't work under 4.3+
7328
7572
          collect2name=`${CC} -print-prog-name=collect2`
7341
7585
          hardcode_libdir_flag_spec='-L$libdir'
7342
7586
          hardcode_libdir_separator=
7343
7587
          fi
 
7588
          ;;
7344
7589
        esac
7345
7590
        shared_flag='-shared'
 
7591
        if test "$aix_use_runtimelinking" = yes; then
 
7592
          shared_flag="$shared_flag "'${wl}-G'
 
7593
        fi
7346
7594
      else
7347
7595
        # not using gcc
7348
7596
        if test "$host_cpu" = ia64; then
7350
7598
        # chokes on -Wl,-G. The following line is correct:
7351
7599
          shared_flag='-G'
7352
7600
        else
7353
 
        if test "$aix_use_runtimelinking" = yes; then
 
7601
          if test "$aix_use_runtimelinking" = yes; then
7354
7602
            shared_flag='${wl}-G'
7355
7603
          else
7356
7604
            shared_flag='${wl}-bM:SRE'
7357
 
        fi
 
7605
          fi
7358
7606
        fi
7359
7607
      fi
7360
7608
 
7390
7638
  cat conftest.err >&5
7391
7639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392
7640
  (exit $ac_status); } &&
7393
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7641
         { ac_try='test -z "$ac_c_werror_flag"
 
7642
                         || test ! -s conftest.err'
7394
7643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395
7644
  (eval $ac_try) 2>&5
7396
7645
  ac_status=$?
7418
7667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7419
7668
 
7420
7669
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421
 
        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"
 
7670
        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"
7422
7671
       else
7423
7672
        if test "$host_cpu" = ia64; then
7424
7673
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425
7674
          allow_undefined_flag="-z nodefs"
7426
 
          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"
 
7675
          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"
7427
7676
        else
7428
7677
         # Determine the default libpath from the value encoded in an empty executable.
7429
7678
         cat >conftest.$ac_ext <<_ACEOF
7450
7699
  cat conftest.err >&5
7451
7700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452
7701
  (exit $ac_status); } &&
7453
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7702
         { ac_try='test -z "$ac_c_werror_flag"
 
7703
                         || test ! -s conftest.err'
7454
7704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455
7705
  (eval $ac_try) 2>&5
7456
7706
  ac_status=$?
7482
7732
          # -berok will link without error, but may produce a broken library.
7483
7733
          no_undefined_flag=' ${wl}-bernotok'
7484
7734
          allow_undefined_flag=' ${wl}-berok'
7485
 
          # -bexpall does not export symbols beginning with underscore (_)
7486
 
          always_export_symbols=yes
7487
7735
          # Exported symbols can be pulled into shared objects from archives
7488
 
          whole_archive_flag_spec=' '
 
7736
          whole_archive_flag_spec='$convenience'
7489
7737
          archive_cmds_need_lc=yes
7490
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7491
 
          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'
 
7738
          # This is similar to how AIX traditionally builds its shared libraries.
 
7739
          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'
7492
7740
        fi
7493
7741
      fi
7494
7742
      ;;
7501
7749
      ld_shlibs=no
7502
7750
      ;;
7503
7751
 
7504
 
    bsdi4*)
 
7752
    bsdi[45]*)
7505
7753
      export_dynamic_flag_spec=-rdynamic
7506
7754
      ;;
7507
7755
 
7527
7775
      ;;
7528
7776
 
7529
7777
    darwin* | rhapsody*)
7530
 
    if test "$GXX" = yes ; then
 
7778
      case $host_os in
 
7779
        rhapsody* | darwin1.[012])
 
7780
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7781
         ;;
 
7782
       *) # Darwin 1.3 on
 
7783
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7784
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7785
         else
 
7786
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7787
             10.[012])
 
7788
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7789
               ;;
 
7790
             10.*)
 
7791
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7792
               ;;
 
7793
           esac
 
7794
         fi
 
7795
         ;;
 
7796
      esac
7531
7797
      archive_cmds_need_lc=no
7532
 
      case "$host_os" in
7533
 
      rhapsody* | darwin1.[012])
7534
 
        allow_undefined_flag='-undefined suppress'
7535
 
        ;;
7536
 
      *) # Darwin 1.3 on
7537
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7538
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7539
 
      else
7540
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7541
 
          10.[012])
7542
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7543
 
            ;;
7544
 
          10.*)
7545
 
            allow_undefined_flag='-undefined dynamic_lookup'
7546
 
            ;;
7547
 
        esac
7548
 
      fi
7549
 
        ;;
7550
 
      esac
7551
 
        lt_int_apple_cc_single_mod=no
7552
 
        output_verbose_link_cmd='echo'
7553
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554
 
          lt_int_apple_cc_single_mod=yes
7555
 
        fi
7556
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7558
 
        else
7559
 
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7560
 
      fi
7561
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564
 
          archive_expsym_cmds='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}'
7565
 
        else
7566
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7567
 
        fi
7568
 
          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}'
7569
7798
      hardcode_direct=no
7570
7799
      hardcode_automatic=yes
7571
7800
      hardcode_shlibpath_var=unsupported
7572
 
      whole_archive_flag_spec='-all_load $convenience'
 
7801
      whole_archive_flag_spec=''
7573
7802
      link_all_deplibs=yes
 
7803
    if test "$GCC" = yes ; then
 
7804
        output_verbose_link_cmd='echo'
 
7805
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7806
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7807
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7808
      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}'
 
7809
      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}'
7574
7810
    else
7575
 
      ld_shlibs=no
 
7811
      case $cc_basename in
 
7812
        xlc*)
 
7813
         output_verbose_link_cmd='echo'
 
7814
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7815
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7816
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7817
         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}'
 
7818
          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}'
 
7819
          ;;
 
7820
       *)
 
7821
         ld_shlibs=no
 
7822
          ;;
 
7823
      esac
7576
7824
    fi
7577
7825
      ;;
7578
7826
 
7606
7854
      ;;
7607
7855
 
7608
7856
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7609
 
    freebsd* | kfreebsd*-gnu)
 
7857
    freebsd* | kfreebsd*-gnu | dragonfly*)
7610
7858
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7611
7859
      hardcode_libdir_flag_spec='-R$libdir'
7612
7860
      hardcode_direct=yes
7629
7877
      export_dynamic_flag_spec='${wl}-E'
7630
7878
      ;;
7631
7879
 
7632
 
    hpux10* | hpux11*)
7633
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7634
 
        case "$host_cpu" in
7635
 
        hppa*64*|ia64*)
 
7880
    hpux10*)
 
7881
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7882
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7883
      else
 
7884
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7885
      fi
 
7886
      if test "$with_gnu_ld" = no; then
 
7887
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7888
        hardcode_libdir_separator=:
 
7889
 
 
7890
        hardcode_direct=yes
 
7891
        export_dynamic_flag_spec='${wl}-E'
 
7892
 
 
7893
        # hardcode_minus_L: Not really in the search PATH,
 
7894
        # but as the default location of the library.
 
7895
        hardcode_minus_L=yes
 
7896
      fi
 
7897
      ;;
 
7898
 
 
7899
    hpux11*)
 
7900
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7901
        case $host_cpu in
 
7902
        hppa*64*)
7636
7903
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637
7904
          ;;
 
7905
        ia64*)
 
7906
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7907
          ;;
7638
7908
        *)
7639
7909
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7640
7910
          ;;
7641
7911
        esac
7642
7912
      else
7643
 
        case "$host_cpu" in
7644
 
        hppa*64*|ia64*)
7645
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7913
        case $host_cpu in
 
7914
        hppa*64*)
 
7915
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7916
          ;;
 
7917
        ia64*)
 
7918
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7646
7919
          ;;
7647
7920
        *)
7648
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7921
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7649
7922
          ;;
7650
7923
        esac
7651
7924
      fi
7652
7925
      if test "$with_gnu_ld" = no; then
7653
 
        case "$host_cpu" in
7654
 
        hppa*64*)
7655
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7926
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7927
        hardcode_libdir_separator=:
 
7928
 
 
7929
        case $host_cpu in
 
7930
        hppa*64*|ia64*)
7656
7931
          hardcode_libdir_flag_spec_ld='+b $libdir'
7657
 
          hardcode_libdir_separator=:
7658
 
          hardcode_direct=no
7659
 
          hardcode_shlibpath_var=no
7660
 
          ;;
7661
 
        ia64*)
7662
 
          hardcode_libdir_flag_spec='-L$libdir'
7663
 
          hardcode_direct=no
7664
 
          hardcode_shlibpath_var=no
7665
 
 
7666
 
          # hardcode_minus_L: Not really in the search PATH,
7667
 
          # but as the default location of the library.
7668
 
          hardcode_minus_L=yes
 
7932
          hardcode_direct=no
 
7933
          hardcode_shlibpath_var=no
7669
7934
          ;;
7670
7935
        *)
7671
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672
 
          hardcode_libdir_separator=:
7673
7936
          hardcode_direct=yes
7674
7937
          export_dynamic_flag_spec='${wl}-E'
7675
7938
 
7693
7956
      link_all_deplibs=yes
7694
7957
      ;;
7695
7958
 
7696
 
    netbsd* | knetbsd*-gnu)
 
7959
    netbsd*)
7697
7960
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7698
7961
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7699
7962
      else
7717
7980
      hardcode_shlibpath_var=no
7718
7981
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7719
7982
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7983
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7720
7984
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721
7985
        export_dynamic_flag_spec='${wl}-E'
7722
7986
      else
7762
8026
        allow_undefined_flag=' -expect_unresolved \*'
7763
8027
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7764
8028
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
8029
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7766
8030
 
7767
8031
        # Both c and cxx compiler support -rpath directly
7768
8032
        hardcode_libdir_flag_spec='-rpath $libdir'
7770
8034
      hardcode_libdir_separator=:
7771
8035
      ;;
7772
8036
 
7773
 
    sco3.2v5*)
7774
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775
 
      hardcode_shlibpath_var=no
7776
 
      export_dynamic_flag_spec='${wl}-Bexport'
7777
 
      runpath_var=LD_RUN_PATH
7778
 
      hardcode_runpath_var=yes
7779
 
      ;;
7780
 
 
7781
8037
    solaris*)
7782
8038
      no_undefined_flag=' -z text'
7783
8039
      if test "$GCC" = yes; then
 
8040
        wlarc='${wl}'
7784
8041
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785
8042
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786
8043
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787
8044
      else
 
8045
        wlarc=''
7788
8046
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789
8047
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790
8048
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7793
8051
      hardcode_shlibpath_var=no
7794
8052
      case $host_os in
7795
8053
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7796
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7797
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8054
      *)
 
8055
        # The compiler driver will combine linker options so we
 
8056
        # cannot just pass the convience library names through
 
8057
        # without $wl, iff we do not link with $LD.
 
8058
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8059
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8060
        case $wlarc in
 
8061
        '')
 
8062
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8063
        *)
 
8064
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8065
        esac ;;
7798
8066
      esac
7799
8067
      link_all_deplibs=yes
7800
8068
      ;;
7851
8119
      fi
7852
8120
      ;;
7853
8121
 
7854
 
    sysv4.2uw2*)
7855
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7856
 
      hardcode_direct=yes
7857
 
      hardcode_minus_L=no
7858
 
      hardcode_shlibpath_var=no
7859
 
      hardcode_runpath_var=yes
7860
 
      runpath_var=LD_RUN_PATH
7861
 
      ;;
7862
 
 
7863
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7864
 
      no_undefined_flag='${wl}-z ${wl}text'
7865
 
      if test "$GCC" = yes; then
7866
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867
 
      else
7868
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7869
 
      fi
7870
 
      runpath_var='LD_RUN_PATH'
7871
 
      hardcode_shlibpath_var=no
7872
 
      ;;
7873
 
 
7874
 
    sysv5*)
7875
 
      no_undefined_flag=' -z text'
7876
 
      # $CC -shared without GNU ld will not create a library from C++
7877
 
      # object files and a static libstdc++, better avoid it by now
7878
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7880
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7881
 
      hardcode_libdir_flag_spec=
7882
 
      hardcode_shlibpath_var=no
7883
 
      runpath_var='LD_RUN_PATH'
 
8122
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8123
      no_undefined_flag='${wl}-z,text'
 
8124
      archive_cmds_need_lc=no
 
8125
      hardcode_shlibpath_var=no
 
8126
      runpath_var='LD_RUN_PATH'
 
8127
 
 
8128
      if test "$GCC" = yes; then
 
8129
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8130
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8131
      else
 
8132
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8133
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8134
      fi
 
8135
      ;;
 
8136
 
 
8137
    sysv5* | sco3.2v5* | sco5v6*)
 
8138
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8139
      # link with -lc, and that would cause any symbols used from libc to
 
8140
      # always be unresolved, which means just about no library would
 
8141
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8142
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8143
      # as -z defs.
 
8144
      no_undefined_flag='${wl}-z,text'
 
8145
      allow_undefined_flag='${wl}-z,nodefs'
 
8146
      archive_cmds_need_lc=no
 
8147
      hardcode_shlibpath_var=no
 
8148
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8149
      hardcode_libdir_separator=':'
 
8150
      link_all_deplibs=yes
 
8151
      export_dynamic_flag_spec='${wl}-Bexport'
 
8152
      runpath_var='LD_RUN_PATH'
 
8153
 
 
8154
      if test "$GCC" = yes; then
 
8155
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8156
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8157
      else
 
8158
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8159
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8160
      fi
7884
8161
      ;;
7885
8162
 
7886
8163
    uts4*)
7899
8176
echo "${ECHO_T}$ld_shlibs" >&6
7900
8177
test "$ld_shlibs" = no && can_build_shared=no
7901
8178
 
7902
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7903
 
if test "$GCC" = yes; then
7904
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7905
 
fi
7906
 
 
7907
8179
#
7908
8180
# Do we need to explicitly link libc?
7909
8181
#
7936
8208
        libobjs=conftest.$ac_objext
7937
8209
        deplibs=
7938
8210
        wl=$lt_prog_compiler_wl
 
8211
        pic_flag=$lt_prog_compiler_pic
7939
8212
        compiler_flags=-v
7940
8213
        linker_flags=-v
7941
8214
        verstring=
8068
8341
  shlibpath_var=LIBRARY_PATH
8069
8342
  ;;
8070
8343
 
8071
 
bsdi4*)
 
8344
bsdi[45]*)
8072
8345
  version_type=linux
8073
8346
  need_version=no
8074
8347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096
8369
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097
8370
      dldir=$destdir/`dirname \$dlpath`~
8098
8371
      test -d \$dldir || mkdir -p \$dldir~
8099
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8372
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8373
      chmod a+x \$dldir/$dlname'
8100
8374
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101
8375
      dlpath=$dir/\$dldll~
8102
8376
       $rm \$dlpath'
8126
8400
      ;;
8127
8401
    pw32*)
8128
8402
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8129
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8403
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130
8404
      ;;
8131
8405
    esac
8132
8406
    ;;
8149
8423
  soname_spec='${libname}${release}${major}$shared_ext'
8150
8424
  shlibpath_overrides_runpath=yes
8151
8425
  shlibpath_var=DYLD_LIBRARY_PATH
8152
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8426
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8153
8427
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154
8428
  if test "$GCC" = yes; then
8155
8429
    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"`
8184
8458
  dynamic_linker='GNU ld.so'
8185
8459
  ;;
8186
8460
 
8187
 
freebsd*)
8188
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8461
freebsd* | dragonfly*)
 
8462
  # DragonFly does not have aout.  When/if they implement a new
 
8463
  # versioning mechanism, adjust this.
 
8464
  if test -x /usr/bin/objformat; then
 
8465
    objformat=`/usr/bin/objformat`
 
8466
  else
 
8467
    case $host_os in
 
8468
    freebsd[123]*) objformat=aout ;;
 
8469
    *) objformat=elf ;;
 
8470
    esac
 
8471
  fi
8189
8472
  version_type=freebsd-$objformat
8190
8473
  case $version_type in
8191
8474
    freebsd-elf*)
8203
8486
  freebsd2*)
8204
8487
    shlibpath_overrides_runpath=yes
8205
8488
    ;;
8206
 
  freebsd3.01* | freebsdelf3.01*)
 
8489
  freebsd3.[01]* | freebsdelf3.[01]*)
8207
8490
    shlibpath_overrides_runpath=yes
8208
8491
    hardcode_into_libs=yes
8209
8492
    ;;
8210
 
  *) # from 3.2 on
 
8493
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8494
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8211
8495
    shlibpath_overrides_runpath=no
8212
8496
    hardcode_into_libs=yes
8213
8497
    ;;
 
8498
  freebsd*) # from 4.6 on
 
8499
    shlibpath_overrides_runpath=yes
 
8500
    hardcode_into_libs=yes
 
8501
    ;;
8214
8502
  esac
8215
8503
  ;;
8216
8504
 
8230
8518
  version_type=sunos
8231
8519
  need_lib_prefix=no
8232
8520
  need_version=no
8233
 
  case "$host_cpu" in
 
8521
  case $host_cpu in
8234
8522
  ia64*)
8235
8523
    shrext_cmds='.so'
8236
8524
    hardcode_into_libs=yes
8270
8558
  postinstall_cmds='chmod 555 $lib'
8271
8559
  ;;
8272
8560
 
 
8561
interix3*)
 
8562
  version_type=linux
 
8563
  need_lib_prefix=no
 
8564
  need_version=no
 
8565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8566
  soname_spec='${libname}${release}${shared_ext}$major'
 
8567
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8568
  shlibpath_var=LD_LIBRARY_PATH
 
8569
  shlibpath_overrides_runpath=no
 
8570
  hardcode_into_libs=yes
 
8571
  ;;
 
8572
 
8273
8573
irix5* | irix6* | nonstopux*)
8274
8574
  case $host_os in
8275
8575
    nonstopux*) version_type=nonstopux ;;
8329
8629
 
8330
8630
  # Append ld.so.conf contents to the search path
8331
8631
  if test -f /etc/ld.so.conf; then
8332
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8632
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8333
8633
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8334
8634
  fi
8335
8635
 
8391
8691
 
8392
8692
openbsd*)
8393
8693
  version_type=sunos
 
8694
  sys_lib_dlsearch_path_spec="/usr/lib"
8394
8695
  need_lib_prefix=no
8395
 
  need_version=yes
 
8696
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8697
  case $host_os in
 
8698
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8699
    *)                         need_version=no  ;;
 
8700
  esac
8396
8701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8397
8702
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8398
8703
  shlibpath_var=LD_LIBRARY_PATH
8430
8735
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8431
8736
  ;;
8432
8737
 
8433
 
sco3.2v5*)
8434
 
  version_type=osf
8435
 
  soname_spec='${libname}${release}${shared_ext}$major'
8436
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437
 
  shlibpath_var=LD_LIBRARY_PATH
8438
 
  ;;
8439
 
 
8440
8738
solaris*)
8441
8739
  version_type=linux
8442
8740
  need_lib_prefix=no
8462
8760
  need_version=yes
8463
8761
  ;;
8464
8762
 
8465
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8763
sysv4 | sysv4.3*)
8466
8764
  version_type=linux
8467
8765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468
8766
  soname_spec='${libname}${release}${shared_ext}$major'
8495
8793
  fi
8496
8794
  ;;
8497
8795
 
 
8796
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8797
  version_type=freebsd-elf
 
8798
  need_lib_prefix=no
 
8799
  need_version=no
 
8800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8801
  soname_spec='${libname}${release}${shared_ext}$major'
 
8802
  shlibpath_var=LD_LIBRARY_PATH
 
8803
  hardcode_into_libs=yes
 
8804
  if test "$with_gnu_ld" = yes; then
 
8805
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8806
    shlibpath_overrides_runpath=no
 
8807
  else
 
8808
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8809
    shlibpath_overrides_runpath=yes
 
8810
    case $host_os in
 
8811
      sco3.2v5*)
 
8812
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8813
        ;;
 
8814
    esac
 
8815
  fi
 
8816
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8817
  ;;
 
8818
 
8498
8819
uts4*)
8499
8820
  version_type=linux
8500
8821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510
8831
echo "${ECHO_T}$dynamic_linker" >&6
8511
8832
test "$dynamic_linker" = no && can_build_shared=no
8512
8833
 
 
8834
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8835
if test "$GCC" = yes; then
 
8836
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8837
fi
 
8838
 
8513
8839
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8514
8840
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8515
8841
hardcode_action=
8516
8842
if test -n "$hardcode_libdir_flag_spec" || \
8517
 
   test -n "$runpath_var " || \
8518
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8843
   test -n "$runpath_var" || \
 
8844
   test "X$hardcode_automatic" = "Xyes" ; then
8519
8845
 
8520
8846
  # We can hardcode non-existant directories.
8521
8847
  if test "$hardcode_direct" != no &&
8641
8967
  cat conftest.err >&5
8642
8968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643
8969
  (exit $ac_status); } &&
8644
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8970
         { ac_try='test -z "$ac_c_werror_flag"
 
8971
                         || test ! -s conftest.err'
8645
8972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
8973
  (eval $ac_try) 2>&5
8647
8974
  ac_status=$?
8744
9071
  cat conftest.err >&5
8745
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746
9073
  (exit $ac_status); } &&
8747
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9074
         { ac_try='test -z "$ac_c_werror_flag"
 
9075
                         || test ! -s conftest.err'
8748
9076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749
9077
  (eval $ac_try) 2>&5
8750
9078
  ac_status=$?
8809
9137
  cat conftest.err >&5
8810
9138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
9139
  (exit $ac_status); } &&
8812
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9140
         { ac_try='test -z "$ac_c_werror_flag"
 
9141
                         || test ! -s conftest.err'
8813
9142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814
9143
  (eval $ac_try) 2>&5
8815
9144
  ac_status=$?
8902
9231
  cat conftest.err >&5
8903
9232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904
9233
  (exit $ac_status); } &&
8905
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9234
         { ac_try='test -z "$ac_c_werror_flag"
 
9235
                         || test ! -s conftest.err'
8906
9236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907
9237
  (eval $ac_try) 2>&5
8908
9238
  ac_status=$?
8967
9297
  cat conftest.err >&5
8968
9298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
9299
  (exit $ac_status); } &&
8970
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9300
         { ac_try='test -z "$ac_c_werror_flag"
 
9301
                         || test ! -s conftest.err'
8971
9302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972
9303
  (eval $ac_try) 2>&5
8973
9304
  ac_status=$?
9033
9364
  cat conftest.err >&5
9034
9365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035
9366
  (exit $ac_status); } &&
9036
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9367
         { ac_try='test -z "$ac_c_werror_flag"
 
9368
                         || test ! -s conftest.err'
9037
9369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038
9370
  (eval $ac_try) 2>&5
9039
9371
  ac_status=$?
9099
9431
  cat conftest.err >&5
9100
9432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101
9433
  (exit $ac_status); } &&
9102
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9434
         { ac_try='test -z "$ac_c_werror_flag"
 
9435
                         || test ! -s conftest.err'
9103
9436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104
9437
  (eval $ac_try) 2>&5
9105
9438
  ac_status=$?
9158
9491
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9159
9492
 
9160
9493
    save_LDFLAGS="$LDFLAGS"
9161
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9494
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9162
9495
 
9163
9496
    save_LIBS="$LIBS"
9164
9497
    LIBS="$lt_cv_dlopen_libs $LIBS"
9174
9507
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9175
9508
  lt_status=$lt_dlunknown
9176
9509
  cat > conftest.$ac_ext <<EOF
9177
 
#line 9177 "configure"
 
9510
#line 9510 "configure"
9178
9511
#include "confdefs.h"
9179
9512
 
9180
9513
#if HAVE_DLFCN_H
9231
9564
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9232
9565
      /* dlclose (self); */
9233
9566
    }
 
9567
  else
 
9568
    puts (dlerror ());
9234
9569
 
9235
9570
    exit (status);
9236
9571
}
9240
9575
  ac_status=$?
9241
9576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242
9577
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9243
 
    (./conftest; exit; ) 2>/dev/null
 
9578
    (./conftest; exit; ) >&5 2>/dev/null
9244
9579
    lt_status=$?
9245
9580
    case x$lt_status in
9246
9581
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9247
9582
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9248
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9583
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9249
9584
    esac
9250
9585
  else :
9251
9586
    # compilation failed
9260
9595
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9261
9596
 
9262
9597
    if test "x$lt_cv_dlopen_self" = xyes; then
9263
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9598
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9264
9599
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9265
9600
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9266
9601
if test "${lt_cv_dlopen_self_static+set}" = set; then
9272
9607
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9273
9608
  lt_status=$lt_dlunknown
9274
9609
  cat > conftest.$ac_ext <<EOF
9275
 
#line 9275 "configure"
 
9610
#line 9610 "configure"
9276
9611
#include "confdefs.h"
9277
9612
 
9278
9613
#if HAVE_DLFCN_H
9329
9664
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9330
9665
      /* dlclose (self); */
9331
9666
    }
 
9667
  else
 
9668
    puts (dlerror ());
9332
9669
 
9333
9670
    exit (status);
9334
9671
}
9338
9675
  ac_status=$?
9339
9676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340
9677
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9341
 
    (./conftest; exit; ) 2>/dev/null
 
9678
    (./conftest; exit; ) >&5 2>/dev/null
9342
9679
    lt_status=$?
9343
9680
    case x$lt_status in
9344
9681
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9345
9682
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9346
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9683
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9347
9684
    esac
9348
9685
  else :
9349
9686
    # compilation failed
9376
9713
fi
9377
9714
 
9378
9715
 
9379
 
# Report which librarie types wil actually be built
 
9716
# Report which library types will actually be built
9380
9717
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9381
9718
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9382
9719
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9388
9725
 
9389
9726
# On AIX, shared libraries and static libraries use the same namespace, and
9390
9727
# are all built from PIC.
9391
 
case "$host_os" in
 
9728
case $host_os in
9392
9729
aix3*)
9393
9730
  test "$enable_shared" = yes && enable_static=no
9394
9731
  if test -n "$RANLIB"; then
9401
9738
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9402
9739
    test "$enable_shared" = yes && enable_static=no
9403
9740
  fi
9404
 
  ;;
9405
 
  darwin* | rhapsody*)
9406
 
  if test "$GCC" = yes; then
9407
 
    archive_cmds_need_lc=no
9408
 
    case "$host_os" in
9409
 
    rhapsody* | darwin1.[012])
9410
 
      allow_undefined_flag='-undefined suppress'
9411
 
      ;;
9412
 
    *) # Darwin 1.3 on
9413
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9414
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9415
 
      else
9416
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9417
 
          10.[012])
9418
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9419
 
            ;;
9420
 
          10.*)
9421
 
            allow_undefined_flag='-undefined dynamic_lookup'
9422
 
            ;;
9423
 
        esac
9424
 
      fi
9425
 
      ;;
9426
 
    esac
9427
 
    output_verbose_link_cmd='echo'
9428
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9429
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9430
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9431
 
    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}'
9432
 
    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}'
9433
 
    hardcode_direct=no
9434
 
    hardcode_automatic=yes
9435
 
    hardcode_shlibpath_var=unsupported
9436
 
    whole_archive_flag_spec='-all_load $convenience'
9437
 
    link_all_deplibs=yes
9438
 
  else
9439
 
    ld_shlibs=no
9440
 
  fi
9441
9741
    ;;
9442
9742
esac
9443
9743
echo "$as_me:$LINENO: result: $enable_shared" >&5
9463
9763
  # Now quote all the things that may contain metacharacters while being
9464
9764
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9465
9765
  # variables and quote the copies for generation of the libtool script.
9466
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9766
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9467
9767
    SED SHELL STRIP \
9468
9768
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9469
9769
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9567
9867
#
9568
9868
# You should have received a copy of the GNU General Public License
9569
9869
# along with this program; if not, write to the Free Software
9570
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9870
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9571
9871
#
9572
9872
# As a special exception to the GNU General Public License, if you
9573
9873
# distribute this file as part of a program that contains a
9578
9878
SED=$lt_SED
9579
9879
 
9580
9880
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9581
 
Xsed="$SED -e s/^X//"
 
9881
Xsed="$SED -e 1s/^X//"
9582
9882
 
9583
9883
# The HP-UX ksh and POSIX shell print the target directory to stdout
9584
9884
# if CDPATH is set.
9585
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9885
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9586
9886
 
9587
9887
# The names of the tagged configurations supported by this script.
9588
9888
available_tags=
9612
9912
# The host system.
9613
9913
host_alias=$host_alias
9614
9914
host=$host
 
9915
host_os=$host_os
 
9916
 
 
9917
# The build system.
 
9918
build_alias=$build_alias
 
9919
build=$build
 
9920
build_os=$build_os
9615
9921
 
9616
9922
# An echo program that does not interpret backslashes.
9617
9923
echo=$lt_echo
9623
9929
# A C compiler.
9624
9930
LTCC=$lt_LTCC
9625
9931
 
 
9932
# LTCC compiler flags.
 
9933
LTCFLAGS=$lt_LTCFLAGS
 
9934
 
9626
9935
# A language-specific compiler.
9627
9936
CC=$lt_compiler
9628
9937
 
9688
9997
# Does compiler simultaneously support -c and -o options?
9689
9998
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9690
9999
 
9691
 
# Must we lock files when doing compilation ?
 
10000
# Must we lock files when doing compilation?
9692
10001
need_locks=$lt_need_locks
9693
10002
 
9694
10003
# Do we need the lib prefix for modules?
9953
10262
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9954
10263
    fi
9955
10264
  fi
 
10265
  if test -z "$LTCFLAGS"; then
 
10266
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10267
  fi
9956
10268
 
9957
10269
  # Extract list of available tagged configurations in $ofile.
9958
10270
  # Note that this assumes the entire list is on one line.
9983
10295
 
9984
10296
      case $tagname in
9985
10297
      CXX)
9986
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10298
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10299
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10300
            (test "X$CXX" != "Xg++"))) ; then
9987
10301
          ac_ext=cc
9988
10302
ac_cpp='$CXXCPP $CPPFLAGS'
9989
10303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10003
10317
hardcode_libdir_flag_spec_ld_CXX=
10004
10318
hardcode_libdir_separator_CXX=
10005
10319
hardcode_minus_L_CXX=no
 
10320
hardcode_shlibpath_var_CXX=unsupported
10006
10321
hardcode_automatic_CXX=no
10007
10322
module_cmds_CXX=
10008
10323
module_expsym_cmds_CXX=
10020
10335
compiler_lib_search_path_CXX=
10021
10336
 
10022
10337
# Source file extension for C++ test sources.
10023
 
ac_ext=cc
 
10338
ac_ext=cpp
10024
10339
 
10025
10340
# Object file extension for compiled C++ test sources.
10026
10341
objext=o
10030
10345
lt_simple_compile_test_code="int some_variable = 0;\n"
10031
10346
 
10032
10347
# Code to be used in simple link tests
10033
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10348
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10034
10349
 
10035
10350
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10036
10351
 
10037
10352
# If no C compiler was specified, use CC.
10038
10353
LTCC=${LTCC-"$CC"}
10039
10354
 
 
10355
# If no C compiler flags were specified, use CFLAGS.
 
10356
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10357
 
10040
10358
# Allow CC to be a program name with arguments.
10041
10359
compiler=$CC
10042
10360
 
10043
10361
 
 
10362
# save warnings/boilerplate of simple test code
 
10363
ac_outfile=conftest.$ac_objext
 
10364
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10365
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10366
_lt_compiler_boilerplate=`cat conftest.err`
 
10367
$rm conftest*
 
10368
 
 
10369
ac_outfile=conftest.$ac_objext
 
10370
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10371
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10372
_lt_linker_boilerplate=`cat conftest.err`
 
10373
$rm conftest*
 
10374
 
 
10375
 
10044
10376
# Allow CC to be a program name with arguments.
10045
10377
lt_save_CC=$CC
10046
10378
lt_save_LD=$LD
10051
10383
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10052
10384
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10053
10385
else
10054
 
  unset lt_cv_prog_gnu_ld
 
10386
  $as_unset lt_cv_prog_gnu_ld
10055
10387
fi
10056
10388
if test -n "${lt_cv_path_LDCXX+set}"; then
10057
10389
  lt_cv_path_LD=$lt_cv_path_LDCXX
10058
10390
else
10059
 
  unset lt_cv_path_LD
 
10391
  $as_unset lt_cv_path_LD
10060
10392
fi
10061
10393
test -z "${LDCXX+set}" || LD=$LDCXX
10062
10394
CC=${CXX-"c++"}
10063
10395
compiler=$CC
10064
10396
compiler_CXX=$CC
10065
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10397
for cc_temp in $compiler""; do
 
10398
  case $cc_temp in
 
10399
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10400
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10401
    \-*) ;;
 
10402
    *) break;;
 
10403
  esac
 
10404
done
 
10405
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10406
 
10066
10407
 
10067
10408
# We don't want -fno-exception wen compiling C++ code, so set the
10068
10409
# no_builtin_flag separately
10133
10474
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10134
10475
      lt_cv_path_LD="$ac_dir/$ac_prog"
10135
10476
      # Check to see if the program is GNU ld.  I'd rather use --version,
10136
 
      # but apparently some GNU ld's only accept -v.
 
10477
      # but apparently some variants of GNU ld only accept -v.
10137
10478
      # Break only if it was the GNU/non-GNU ld that we prefer.
10138
10479
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10139
10480
      *GNU* | *'with BFD'*)
10167
10508
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10168
10509
  echo $ECHO_N "(cached) $ECHO_C" >&6
10169
10510
else
10170
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10511
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10171
10512
case `$LD -v 2>&1 </dev/null` in
10172
10513
*GNU* | *'with BFD'*)
10173
10514
  lt_cv_prog_gnu_ld=yes
10258
10599
            ;;
10259
10600
          esac
10260
10601
        done
 
10602
        ;;
10261
10603
      esac
10262
10604
 
10263
10605
      exp_sym_flag='-bexport'
10276
10618
    link_all_deplibs_CXX=yes
10277
10619
 
10278
10620
    if test "$GXX" = yes; then
10279
 
      case $host_os in aix4.012|aix4.012.*)
 
10621
      case $host_os in aix4.[012]|aix4.[012].*)
10280
10622
      # We only want to do this on AIX 4.2 and lower, the check
10281
10623
      # below for broken collect2 doesn't work under 4.3+
10282
10624
        collect2name=`${CC} -print-prog-name=collect2`
10295
10637
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10296
10638
          hardcode_libdir_separator_CXX=
10297
10639
        fi
 
10640
        ;;
10298
10641
      esac
10299
10642
      shared_flag='-shared'
 
10643
      if test "$aix_use_runtimelinking" = yes; then
 
10644
        shared_flag="$shared_flag "'${wl}-G'
 
10645
      fi
10300
10646
    else
10301
10647
      # not using gcc
10302
10648
      if test "$host_cpu" = ia64; then
10344
10690
  cat conftest.err >&5
10345
10691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346
10692
  (exit $ac_status); } &&
10347
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10693
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10694
                         || test ! -s conftest.err'
10348
10695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349
10696
  (eval $ac_try) 2>&5
10350
10697
  ac_status=$?
10373
10720
 
10374
10721
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10375
10722
 
10376
 
      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"
 
10723
      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"
10377
10724
     else
10378
10725
      if test "$host_cpu" = ia64; then
10379
10726
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10380
10727
        allow_undefined_flag_CXX="-z nodefs"
10381
 
        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"
 
10728
        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"
10382
10729
      else
10383
10730
        # Determine the default libpath from the value encoded in an empty executable.
10384
10731
        cat >conftest.$ac_ext <<_ACEOF
10405
10752
  cat conftest.err >&5
10406
10753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407
10754
  (exit $ac_status); } &&
10408
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10755
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10756
                         || test ! -s conftest.err'
10409
10757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410
10758
  (eval $ac_try) 2>&5
10411
10759
  ac_status=$?
10437
10785
        # -berok will link without error, but may produce a broken library.
10438
10786
        no_undefined_flag_CXX=' ${wl}-bernotok'
10439
10787
        allow_undefined_flag_CXX=' ${wl}-berok'
10440
 
        # -bexpall does not export symbols beginning with underscore (_)
10441
 
        always_export_symbols_CXX=yes
10442
10788
        # Exported symbols can be pulled into shared objects from archives
10443
 
        whole_archive_flag_spec_CXX=' '
 
10789
        whole_archive_flag_spec_CXX='$convenience'
10444
10790
        archive_cmds_need_lc_CXX=yes
10445
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10446
 
        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'
 
10791
        # This is similar to how AIX traditionally builds its shared libraries.
 
10792
        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'
10447
10793
      fi
10448
10794
    fi
10449
10795
    ;;
 
10796
 
 
10797
  beos*)
 
10798
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10799
      allow_undefined_flag_CXX=unsupported
 
10800
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10801
      # support --undefined.  This deserves some investigation.  FIXME
 
10802
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10803
    else
 
10804
      ld_shlibs_CXX=no
 
10805
    fi
 
10806
    ;;
 
10807
 
10450
10808
  chorus*)
10451
10809
    case $cc_basename in
10452
10810
      *)
10465
10823
    enable_shared_with_static_runtimes_CXX=yes
10466
10824
 
10467
10825
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10468
 
      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'
 
10826
      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'
10469
10827
      # If the export-symbols file already is a .def file (1st line
10470
10828
      # is EXPORTS), use it as is; otherwise, prepend...
10471
10829
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10474
10832
        echo EXPORTS > $output_objdir/$soname.def;
10475
10833
        cat $export_symbols >> $output_objdir/$soname.def;
10476
10834
      fi~
10477
 
      $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'
 
10835
      $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'
10478
10836
    else
10479
10837
      ld_shlibs_CXX=no
10480
10838
    fi
10481
10839
  ;;
10482
 
 
10483
 
  darwin* | rhapsody*)
10484
 
  if test "$GXX" = yes; then
10485
 
    archive_cmds_need_lc_CXX=no
10486
 
    case "$host_os" in
10487
 
    rhapsody* | darwin1.[012])
10488
 
      allow_undefined_flag_CXX='-undefined suppress'
10489
 
      ;;
10490
 
    *) # Darwin 1.3 on
10491
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10492
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10493
 
      else
10494
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10495
 
          10.[012])
10496
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10497
 
            ;;
10498
 
          10.*)
10499
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10500
 
            ;;
 
10840
      darwin* | rhapsody*)
 
10841
        case $host_os in
 
10842
        rhapsody* | darwin1.[012])
 
10843
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10844
         ;;
 
10845
       *) # Darwin 1.3 on
 
10846
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10847
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10848
         else
 
10849
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10850
             10.[012])
 
10851
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10852
               ;;
 
10853
             10.*)
 
10854
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10855
               ;;
 
10856
           esac
 
10857
         fi
 
10858
         ;;
10501
10859
        esac
10502
 
      fi
10503
 
      ;;
10504
 
    esac
10505
 
    lt_int_apple_cc_single_mod=no
10506
 
    output_verbose_link_cmd='echo'
10507
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10508
 
      lt_int_apple_cc_single_mod=yes
10509
 
    fi
10510
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10512
 
    else
10513
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10514
 
    fi
10515
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10860
      archive_cmds_need_lc_CXX=no
 
10861
      hardcode_direct_CXX=no
 
10862
      hardcode_automatic_CXX=yes
 
10863
      hardcode_shlibpath_var_CXX=unsupported
 
10864
      whole_archive_flag_spec_CXX=''
 
10865
      link_all_deplibs_CXX=yes
10516
10866
 
10517
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10518
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10519
 
      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}'
10520
 
    else
10521
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10522
 
    fi
10523
 
    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}'
10524
 
    hardcode_direct_CXX=no
10525
 
    hardcode_automatic_CXX=yes
10526
 
    hardcode_shlibpath_var_CXX=unsupported
10527
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10528
 
    link_all_deplibs_CXX=yes
10529
 
  else
10530
 
    ld_shlibs_CXX=no
10531
 
  fi
10532
 
    ;;
 
10867
    if test "$GXX" = yes ; then
 
10868
      lt_int_apple_cc_single_mod=no
 
10869
      output_verbose_link_cmd='echo'
 
10870
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10871
       lt_int_apple_cc_single_mod=yes
 
10872
      fi
 
10873
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10874
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10875
      else
 
10876
          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'
 
10877
        fi
 
10878
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10879
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10880
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10881
            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}'
 
10882
          else
 
10883
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10884
          fi
 
10885
            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}'
 
10886
      else
 
10887
      case $cc_basename in
 
10888
        xlc*)
 
10889
         output_verbose_link_cmd='echo'
 
10890
          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'
 
10891
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10892
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10893
          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}'
 
10894
          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}'
 
10895
          ;;
 
10896
       *)
 
10897
         ld_shlibs_CXX=no
 
10898
          ;;
 
10899
      esac
 
10900
      fi
 
10901
        ;;
10533
10902
 
10534
10903
  dgux*)
10535
10904
    case $cc_basename in
10536
 
      ec++)
 
10905
      ec++*)
10537
10906
        # FIXME: insert proper C++ library support
10538
10907
        ld_shlibs_CXX=no
10539
10908
        ;;
10540
 
      ghcx)
 
10909
      ghcx*)
10541
10910
        # Green Hills C++ Compiler
10542
10911
        # FIXME: insert proper C++ library support
10543
10912
        ld_shlibs_CXX=no
10548
10917
        ;;
10549
10918
    esac
10550
10919
    ;;
10551
 
  freebsd12*)
 
10920
  freebsd[12]*)
10552
10921
    # C++ shared libraries reported to be fairly broken before switch to ELF
10553
10922
    ld_shlibs_CXX=no
10554
10923
    ;;
10555
10924
  freebsd-elf*)
10556
10925
    archive_cmds_need_lc_CXX=no
10557
10926
    ;;
10558
 
  freebsd* | kfreebsd*-gnu)
 
10927
  freebsd* | kfreebsd*-gnu | dragonfly*)
10559
10928
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10560
10929
    # conventions
10561
10930
    ld_shlibs_CXX=yes
10572
10941
                                # location of the library.
10573
10942
 
10574
10943
    case $cc_basename in
10575
 
    CC)
 
10944
    CC*)
10576
10945
      # FIXME: insert proper C++ library support
10577
10946
      ld_shlibs_CXX=no
10578
10947
      ;;
10579
 
    aCC)
 
10948
    aCC*)
10580
10949
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10581
10950
      # Commands to make compiler produce verbose output that lists
10582
10951
      # what "hidden" libraries, object files and flags are used when
10586
10955
      # explicitly linking system object files so we need to strip them
10587
10956
      # from the output so that they don't get included in the library
10588
10957
      # dependencies.
10589
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10958
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10590
10959
      ;;
10591
10960
    *)
10592
10961
      if test "$GXX" = yes; then
10600
10969
    ;;
10601
10970
  hpux10*|hpux11*)
10602
10971
    if test $with_gnu_ld = no; then
10603
 
      case "$host_cpu" in
10604
 
      hppa*64*)
10605
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10972
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10973
      hardcode_libdir_separator_CXX=:
 
10974
 
 
10975
      case $host_cpu in
 
10976
      hppa*64*|ia64*)
10606
10977
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10607
 
        hardcode_libdir_separator_CXX=:
10608
 
        ;;
10609
 
      ia64*)
10610
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10611
10978
        ;;
10612
10979
      *)
10613
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10614
 
        hardcode_libdir_separator_CXX=:
10615
10980
        export_dynamic_flag_spec_CXX='${wl}-E'
10616
10981
        ;;
10617
10982
      esac
10618
10983
    fi
10619
 
    case "$host_cpu" in
10620
 
    hppa*64*)
10621
 
      hardcode_direct_CXX=no
10622
 
      hardcode_shlibpath_var_CXX=no
10623
 
      ;;
10624
 
    ia64*)
10625
 
      hardcode_direct_CXX=no
10626
 
      hardcode_shlibpath_var_CXX=no
10627
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10628
 
                                              # but as the default
10629
 
                                              # location of the library.
 
10984
    case $host_cpu in
 
10985
    hppa*64*|ia64*)
 
10986
      hardcode_direct_CXX=no
 
10987
      hardcode_shlibpath_var_CXX=no
10630
10988
      ;;
10631
10989
    *)
10632
10990
      hardcode_direct_CXX=yes
10637
10995
    esac
10638
10996
 
10639
10997
    case $cc_basename in
10640
 
      CC)
 
10998
      CC*)
10641
10999
        # FIXME: insert proper C++ library support
10642
11000
        ld_shlibs_CXX=no
10643
11001
        ;;
10644
 
      aCC)
10645
 
        case "$host_cpu" in
10646
 
        hppa*64*|ia64*)
10647
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11002
      aCC*)
 
11003
        case $host_cpu in
 
11004
        hppa*64*)
 
11005
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11006
          ;;
 
11007
        ia64*)
 
11008
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10648
11009
          ;;
10649
11010
        *)
10650
11011
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10663
11024
      *)
10664
11025
        if test "$GXX" = yes; then
10665
11026
          if test $with_gnu_ld = no; then
10666
 
            case "$host_cpu" in
10667
 
            ia64*|hppa*64*)
10668
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11027
            case $host_cpu in
 
11028
            hppa*64*)
 
11029
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11030
              ;;
 
11031
            ia64*)
 
11032
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10669
11033
              ;;
10670
11034
            *)
10671
11035
              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'
10679
11043
        ;;
10680
11044
    esac
10681
11045
    ;;
 
11046
  interix3*)
 
11047
    hardcode_direct_CXX=no
 
11048
    hardcode_shlibpath_var_CXX=no
 
11049
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11050
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11051
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11052
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11053
    # default) and relocated if they conflict, which is a slow very memory
 
11054
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11055
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11056
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11057
    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'
 
11058
    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'
 
11059
    ;;
10682
11060
  irix5* | irix6*)
10683
11061
    case $cc_basename in
10684
 
      CC)
 
11062
      CC*)
10685
11063
        # SGI C++
10686
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11064
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10687
11065
 
10688
11066
        # Archives containing C++ object files must be created using
10689
11067
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10694
11072
      *)
10695
11073
        if test "$GXX" = yes; then
10696
11074
          if test "$with_gnu_ld" = no; then
10697
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11075
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10698
11076
          else
10699
11077
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10700
11078
          fi
10707
11085
    ;;
10708
11086
  linux*)
10709
11087
    case $cc_basename in
10710
 
      KCC)
 
11088
      KCC*)
10711
11089
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10712
11090
 
10713
11091
        # KCC will only create a shared library if the output file
10732
11110
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10733
11111
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10734
11112
        ;;
10735
 
      icpc)
 
11113
      icpc*)
10736
11114
        # Intel C++
10737
11115
        with_gnu_ld=yes
 
11116
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11117
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11118
        # earlier do not add the objects themselves.
 
11119
        case `$CC -V 2>&1` in
 
11120
        *"Version 7."*)
 
11121
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11122
          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'
 
11123
          ;;
 
11124
        *)  # Version 8.0 or newer
 
11125
          tmp_idyn=
 
11126
          case $host_cpu in
 
11127
            ia64*) tmp_idyn=' -i_dynamic';;
 
11128
          esac
 
11129
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11130
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11131
          ;;
 
11132
        esac
10738
11133
        archive_cmds_need_lc_CXX=no
10739
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740
 
        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'
10741
11134
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10742
11135
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10743
11136
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10744
11137
        ;;
10745
 
      cxx)
 
11138
      pgCC*)
 
11139
        # Portland Group C++ compiler
 
11140
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11141
        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'
 
11142
 
 
11143
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11144
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11145
        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'
 
11146
        ;;
 
11147
      cxx*)
10746
11148
        # Compaq C++
10747
11149
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10748
11150
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10773
11175
    ;;
10774
11176
  mvs*)
10775
11177
    case $cc_basename in
10776
 
      cxx)
 
11178
      cxx*)
10777
11179
        # FIXME: insert proper C++ library support
10778
11180
        ld_shlibs_CXX=no
10779
11181
        ;;
10783
11185
        ;;
10784
11186
    esac
10785
11187
    ;;
10786
 
  netbsd* | knetbsd*-gnu)
 
11188
  netbsd*)
10787
11189
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10788
11190
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10789
11191
      wlarc=
10794
11196
    # Workaround some broken pre-1.5 toolchains
10795
11197
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10796
11198
    ;;
 
11199
  openbsd2*)
 
11200
    # C++ shared libraries are fairly broken
 
11201
    ld_shlibs_CXX=no
 
11202
    ;;
 
11203
  openbsd*)
 
11204
    hardcode_direct_CXX=yes
 
11205
    hardcode_shlibpath_var_CXX=no
 
11206
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11207
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11208
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11209
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11210
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11211
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11212
    fi
 
11213
    output_verbose_link_cmd='echo'
 
11214
    ;;
10797
11215
  osf3*)
10798
11216
    case $cc_basename in
10799
 
      KCC)
 
11217
      KCC*)
10800
11218
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10801
11219
 
10802
11220
        # KCC will only create a shared library if the output file
10812
11230
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10813
11231
 
10814
11232
        ;;
10815
 
      RCC)
 
11233
      RCC*)
10816
11234
        # Rational C++ 2.4.1
10817
11235
        # FIXME: insert proper C++ library support
10818
11236
        ld_shlibs_CXX=no
10819
11237
        ;;
10820
 
      cxx)
 
11238
      cxx*)
10821
11239
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10822
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11240
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10823
11241
 
10824
11242
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10825
11243
        hardcode_libdir_separator_CXX=:
10837
11255
      *)
10838
11256
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10839
11257
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10840
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11258
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10841
11259
 
10842
11260
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10843
11261
          hardcode_libdir_separator_CXX=:
10856
11274
    ;;
10857
11275
  osf4* | osf5*)
10858
11276
    case $cc_basename in
10859
 
      KCC)
 
11277
      KCC*)
10860
11278
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10861
11279
 
10862
11280
        # KCC will only create a shared library if the output file
10871
11289
        # the KAI C++ compiler.
10872
11290
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10873
11291
        ;;
10874
 
      RCC)
 
11292
      RCC*)
10875
11293
        # Rational C++ 2.4.1
10876
11294
        # FIXME: insert proper C++ library support
10877
11295
        ld_shlibs_CXX=no
10878
11296
        ;;
10879
 
      cxx)
 
11297
      cxx*)
10880
11298
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10881
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11299
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10882
11300
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10883
11301
          echo "-hidden">> $lib.exp~
10884
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
11302
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10885
11303
          $rm $lib.exp'
10886
11304
 
10887
11305
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10900
11318
      *)
10901
11319
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10902
11320
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10903
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11321
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10904
11322
 
10905
11323
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10906
11324
          hardcode_libdir_separator_CXX=:
10921
11339
    # FIXME: insert proper C++ library support
10922
11340
    ld_shlibs_CXX=no
10923
11341
    ;;
10924
 
  sco*)
10925
 
    archive_cmds_need_lc_CXX=no
10926
 
    case $cc_basename in
10927
 
      CC)
10928
 
        # FIXME: insert proper C++ library support
10929
 
        ld_shlibs_CXX=no
10930
 
        ;;
10931
 
      *)
10932
 
        # FIXME: insert proper C++ library support
10933
 
        ld_shlibs_CXX=no
10934
 
        ;;
10935
 
    esac
10936
 
    ;;
10937
11342
  sunos4*)
10938
11343
    case $cc_basename in
10939
 
      CC)
 
11344
      CC*)
10940
11345
        # Sun C++ 4.x
10941
11346
        # FIXME: insert proper C++ library support
10942
11347
        ld_shlibs_CXX=no
10943
11348
        ;;
10944
 
      lcc)
 
11349
      lcc*)
10945
11350
        # Lucid
10946
11351
        # FIXME: insert proper C++ library support
10947
11352
        ld_shlibs_CXX=no
10954
11359
    ;;
10955
11360
  solaris*)
10956
11361
    case $cc_basename in
10957
 
      CC)
 
11362
      CC*)
10958
11363
        # Sun C++ 4.2, 5.x and Centerline C++
 
11364
        archive_cmds_need_lc_CXX=yes
10959
11365
        no_undefined_flag_CXX=' -zdefs'
10960
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11366
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10961
11367
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10962
 
        $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'
 
11368
        $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'
10963
11369
 
10964
11370
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10965
11371
        hardcode_shlibpath_var_CXX=no
10966
11372
        case $host_os in
10967
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11373
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10968
11374
          *)
10969
11375
            # The C++ compiler is used as linker so we must use $wl
10970
11376
            # flag to pass the commands to the underlying system
10971
 
            # linker.
 
11377
            # linker. We must also pass each convience library through
 
11378
            # to the system linker between allextract/defaultextract.
 
11379
            # The C++ compiler will combine linker options so we
 
11380
            # cannot just pass the convience library names through
 
11381
            # without $wl.
10972
11382
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10973
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11383
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10974
11384
            ;;
10975
11385
        esac
10976
11386
        link_all_deplibs_CXX=yes
10977
11387
 
10978
 
        # Commands to make compiler produce verbose output that lists
10979
 
        # what "hidden" libraries, object files and flags are used when
10980
 
        # linking a shared library.
10981
 
        #
10982
 
        # There doesn't appear to be a way to prevent this compiler from
10983
 
        # explicitly linking system object files so we need to strip them
10984
 
        # from the output so that they don't get included in the library
10985
 
        # dependencies.
10986
 
        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'
 
11388
        output_verbose_link_cmd='echo'
10987
11389
 
10988
11390
        # Archives containing C++ object files must be created using
10989
11391
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10991
11393
        # in the archive.
10992
11394
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10993
11395
        ;;
10994
 
      gcx)
 
11396
      gcx*)
10995
11397
        # Green Hills C++ Compiler
10996
11398
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10997
11399
 
11029
11431
        ;;
11030
11432
    esac
11031
11433
    ;;
11032
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11033
 
    archive_cmds_need_lc_CXX=no
 
11434
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11435
    no_undefined_flag_CXX='${wl}-z,text'
 
11436
    archive_cmds_need_lc_CXX=no
 
11437
    hardcode_shlibpath_var_CXX=no
 
11438
    runpath_var='LD_RUN_PATH'
 
11439
 
 
11440
    case $cc_basename in
 
11441
      CC*)
 
11442
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11443
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11444
        ;;
 
11445
      *)
 
11446
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11447
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11448
        ;;
 
11449
    esac
 
11450
    ;;
 
11451
  sysv5* | sco3.2v5* | sco5v6*)
 
11452
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11453
    # link with -lc, and that would cause any symbols used from libc to
 
11454
    # always be unresolved, which means just about no library would
 
11455
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11456
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11457
    # as -z defs.
 
11458
    # For security reasons, it is highly recommended that you always
 
11459
    # use absolute paths for naming shared libraries, and exclude the
 
11460
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11461
    # requires that you compile everything twice, which is a pain.
 
11462
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11463
    # non-empty value in the environment.  Most likely only useful for
 
11464
    # creating official distributions of packages.
 
11465
    # This is a hack until libtool officially supports absolute path
 
11466
    # names for shared libraries.
 
11467
    no_undefined_flag_CXX='${wl}-z,text'
 
11468
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11469
    archive_cmds_need_lc_CXX=no
 
11470
    hardcode_shlibpath_var_CXX=no
 
11471
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11472
    hardcode_libdir_separator_CXX=':'
 
11473
    link_all_deplibs_CXX=yes
 
11474
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11475
    runpath_var='LD_RUN_PATH'
 
11476
 
 
11477
    case $cc_basename in
 
11478
      CC*)
 
11479
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11480
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11481
        ;;
 
11482
      *)
 
11483
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11484
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11485
        ;;
 
11486
    esac
11034
11487
    ;;
11035
11488
  tandem*)
11036
11489
    case $cc_basename in
11037
 
      NCC)
 
11490
      NCC*)
11038
11491
        # NonStop-UX NCC 3.20
11039
11492
        # FIXME: insert proper C++ library support
11040
11493
        ld_shlibs_CXX=no
11061
11514
GCC_CXX="$GXX"
11062
11515
LD_CXX="$LD"
11063
11516
 
 
11517
## CAVEAT EMPTOR:
 
11518
## There is no encapsulation within the following macros, do not change
 
11519
## the running order or otherwise move them around unless you know exactly
 
11520
## what you are doing...
11064
11521
 
11065
11522
cat > conftest.$ac_ext <<EOF
11066
11523
class Foo
11087
11544
  # The `*' in the case matches for architectures that use `case' in
11088
11545
  # $output_verbose_cmd can trigger glob expansion during the loop
11089
11546
  # eval without this substitution.
11090
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11547
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11091
11548
 
11092
11549
  for p in `eval $output_verbose_link_cmd`; do
11093
11550
    case $p in
11163
11620
 
11164
11621
$rm -f confest.$objext
11165
11622
 
 
11623
# PORTME: override above test on systems where it is broken
 
11624
case $host_os in
 
11625
interix3*)
 
11626
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11627
  # hack all around it, let's just trust "g++" to DTRT.
 
11628
  predep_objects_CXX=
 
11629
  postdep_objects_CXX=
 
11630
  postdeps_CXX=
 
11631
  ;;
 
11632
 
 
11633
solaris*)
 
11634
  case $cc_basename in
 
11635
  CC*)
 
11636
    # Adding this requires a known-good setup of shared libraries for
 
11637
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11638
    # archive will be linked into the output, leading to subtle bugs.
 
11639
    postdeps_CXX='-lCstd -lCrun'
 
11640
    ;;
 
11641
  esac
 
11642
  ;;
 
11643
esac
 
11644
 
 
11645
 
11166
11646
case " $postdeps_CXX " in
11167
11647
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11168
11648
esac
11210
11690
      # DJGPP does not support shared libraries at all
11211
11691
      lt_prog_compiler_pic_CXX=
11212
11692
      ;;
 
11693
    interix3*)
 
11694
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11695
      # Instead, we relocate shared libraries at runtime.
 
11696
      ;;
11213
11697
    sysv4*MP*)
11214
11698
      if test -d /usr/nec; then
11215
11699
        lt_prog_compiler_pic_CXX=-Kconform_pic
11218
11702
    hpux*)
11219
11703
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11220
11704
      # not for PA HP-UX.
11221
 
      case "$host_cpu" in
 
11705
      case $host_cpu in
11222
11706
      hppa*64*|ia64*)
11223
11707
        ;;
11224
11708
      *)
11243
11727
        ;;
11244
11728
      chorus*)
11245
11729
        case $cc_basename in
11246
 
        cxch68)
 
11730
        cxch68*)
11247
11731
          # Green Hills C++ Compiler
11248
11732
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11249
11733
          ;;
11250
11734
        esac
11251
11735
        ;;
 
11736
       darwin*)
 
11737
         # PIC is the default on this platform
 
11738
         # Common symbols not allowed in MH_DYLIB files
 
11739
         case $cc_basename in
 
11740
           xlc*)
 
11741
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11742
           lt_prog_compiler_wl_CXX='-Wl,'
 
11743
           ;;
 
11744
         esac
 
11745
       ;;
11252
11746
      dgux*)
11253
11747
        case $cc_basename in
11254
 
          ec++)
 
11748
          ec++*)
11255
11749
            lt_prog_compiler_pic_CXX='-KPIC'
11256
11750
            ;;
11257
 
          ghcx)
 
11751
          ghcx*)
11258
11752
            # Green Hills C++ Compiler
11259
11753
            lt_prog_compiler_pic_CXX='-pic'
11260
11754
            ;;
11262
11756
            ;;
11263
11757
        esac
11264
11758
        ;;
11265
 
      freebsd* | kfreebsd*-gnu)
 
11759
      freebsd* | kfreebsd*-gnu | dragonfly*)
11266
11760
        # FreeBSD uses GNU C++
11267
11761
        ;;
11268
11762
      hpux9* | hpux10* | hpux11*)
11269
11763
        case $cc_basename in
11270
 
          CC)
 
11764
          CC*)
11271
11765
            lt_prog_compiler_wl_CXX='-Wl,'
11272
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11766
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11273
11767
            if test "$host_cpu" != ia64; then
11274
11768
              lt_prog_compiler_pic_CXX='+Z'
11275
11769
            fi
11276
11770
            ;;
11277
 
          aCC)
 
11771
          aCC*)
11278
11772
            lt_prog_compiler_wl_CXX='-Wl,'
11279
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11280
 
            case "$host_cpu" in
 
11773
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11774
            case $host_cpu in
11281
11775
            hppa*64*|ia64*)
11282
11776
              # +Z the default
11283
11777
              ;;
11290
11784
            ;;
11291
11785
        esac
11292
11786
        ;;
 
11787
      interix*)
 
11788
        # This is c89, which is MS Visual C++ (no shared libs)
 
11789
        # Anyone wants to do a port?
 
11790
        ;;
11293
11791
      irix5* | irix6* | nonstopux*)
11294
11792
        case $cc_basename in
11295
 
          CC)
 
11793
          CC*)
11296
11794
            lt_prog_compiler_wl_CXX='-Wl,'
11297
11795
            lt_prog_compiler_static_CXX='-non_shared'
11298
11796
            # CC pic flag -KPIC is the default.
11303
11801
        ;;
11304
11802
      linux*)
11305
11803
        case $cc_basename in
11306
 
          KCC)
 
11804
          KCC*)
11307
11805
            # KAI C++ Compiler
11308
11806
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11309
11807
            lt_prog_compiler_pic_CXX='-fPIC'
11310
11808
            ;;
11311
 
          icpc)
 
11809
          icpc* | ecpc*)
11312
11810
            # Intel C++
11313
11811
            lt_prog_compiler_wl_CXX='-Wl,'
11314
11812
            lt_prog_compiler_pic_CXX='-KPIC'
11315
11813
            lt_prog_compiler_static_CXX='-static'
11316
11814
            ;;
11317
 
          cxx)
 
11815
          pgCC*)
 
11816
            # Portland Group C++ compiler.
 
11817
            lt_prog_compiler_wl_CXX='-Wl,'
 
11818
            lt_prog_compiler_pic_CXX='-fpic'
 
11819
            lt_prog_compiler_static_CXX='-Bstatic'
 
11820
            ;;
 
11821
          cxx*)
11318
11822
            # Compaq C++
11319
11823
            # Make sure the PIC flag is empty.  It appears that all Alpha
11320
11824
            # Linux and Compaq Tru64 Unix objects are PIC.
11331
11835
        ;;
11332
11836
      mvs*)
11333
11837
        case $cc_basename in
11334
 
          cxx)
 
11838
          cxx*)
11335
11839
            lt_prog_compiler_pic_CXX='-W c,exportall'
11336
11840
            ;;
11337
11841
          *)
11338
11842
            ;;
11339
11843
        esac
11340
11844
        ;;
11341
 
      netbsd* | knetbsd*-gnu)
 
11845
      netbsd*)
11342
11846
        ;;
11343
11847
      osf3* | osf4* | osf5*)
11344
11848
        case $cc_basename in
11345
 
          KCC)
 
11849
          KCC*)
11346
11850
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11347
11851
            ;;
11348
 
          RCC)
 
11852
          RCC*)
11349
11853
            # Rational C++ 2.4.1
11350
11854
            lt_prog_compiler_pic_CXX='-pic'
11351
11855
            ;;
11352
 
          cxx)
 
11856
          cxx*)
11353
11857
            # Digital/Compaq C++
11354
11858
            lt_prog_compiler_wl_CXX='-Wl,'
11355
11859
            # Make sure the PIC flag is empty.  It appears that all Alpha
11363
11867
        ;;
11364
11868
      psos*)
11365
11869
        ;;
11366
 
      sco*)
11367
 
        case $cc_basename in
11368
 
          CC)
11369
 
            lt_prog_compiler_pic_CXX='-fPIC'
11370
 
            ;;
11371
 
          *)
11372
 
            ;;
11373
 
        esac
11374
 
        ;;
11375
11870
      solaris*)
11376
11871
        case $cc_basename in
11377
 
          CC)
 
11872
          CC*)
11378
11873
            # Sun C++ 4.2, 5.x and Centerline C++
11379
11874
            lt_prog_compiler_pic_CXX='-KPIC'
11380
11875
            lt_prog_compiler_static_CXX='-Bstatic'
11381
11876
            lt_prog_compiler_wl_CXX='-Qoption ld '
11382
11877
            ;;
11383
 
          gcx)
 
11878
          gcx*)
11384
11879
            # Green Hills C++ Compiler
11385
11880
            lt_prog_compiler_pic_CXX='-PIC'
11386
11881
            ;;
11390
11885
        ;;
11391
11886
      sunos4*)
11392
11887
        case $cc_basename in
11393
 
          CC)
 
11888
          CC*)
11394
11889
            # Sun C++ 4.x
11395
11890
            lt_prog_compiler_pic_CXX='-pic'
11396
11891
            lt_prog_compiler_static_CXX='-Bstatic'
11397
11892
            ;;
11398
 
          lcc)
 
11893
          lcc*)
11399
11894
            # Lucid
11400
11895
            lt_prog_compiler_pic_CXX='-pic'
11401
11896
            ;;
11405
11900
        ;;
11406
11901
      tandem*)
11407
11902
        case $cc_basename in
11408
 
          NCC)
 
11903
          NCC*)
11409
11904
            # NonStop-UX NCC 3.20
11410
11905
            lt_prog_compiler_pic_CXX='-KPIC'
11411
11906
            ;;
11413
11908
            ;;
11414
11909
        esac
11415
11910
        ;;
11416
 
      unixware*)
 
11911
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11912
        case $cc_basename in
 
11913
          CC*)
 
11914
            lt_prog_compiler_wl_CXX='-Wl,'
 
11915
            lt_prog_compiler_pic_CXX='-KPIC'
 
11916
            lt_prog_compiler_static_CXX='-Bstatic'
 
11917
            ;;
 
11918
        esac
11417
11919
        ;;
11418
11920
      vxworks*)
11419
11921
        ;;
11446
11948
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11447
11949
   # The option is referenced via a variable to avoid confusing sed.
11448
11950
   lt_compile=`echo "$ac_compile" | $SED \
11449
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11951
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11450
11952
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11451
11953
   -e 's:$: $lt_compiler_flag:'`
11452
 
   (eval echo "\"\$as_me:11452: $lt_compile\"" >&5)
 
11954
   (eval echo "\"\$as_me:11954: $lt_compile\"" >&5)
11453
11955
   (eval "$lt_compile" 2>conftest.err)
11454
11956
   ac_status=$?
11455
11957
   cat conftest.err >&5
11456
 
   echo "$as_me:11456: \$? = $ac_status" >&5
 
11958
   echo "$as_me:11958: \$? = $ac_status" >&5
11457
11959
   if (exit $ac_status) && test -s "$ac_outfile"; then
11458
11960
     # The compiler can only warn and ignore the option if not recognized
11459
 
     # So say no if there are warnings
11460
 
     if test ! -s conftest.err; then
 
11961
     # So say no if there are warnings other than the usual output.
 
11962
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11963
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11964
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11461
11965
       lt_prog_compiler_pic_works_CXX=yes
11462
11966
     fi
11463
11967
   fi
11478
11982
fi
11479
11983
 
11480
11984
fi
11481
 
case "$host_os" in
 
11985
case $host_os in
11482
11986
  # For platforms which do not support PIC, -DPIC is meaningless:
11483
11987
  *djgpp*)
11484
11988
    lt_prog_compiler_pic_CXX=
11488
11992
    ;;
11489
11993
esac
11490
11994
 
 
11995
#
 
11996
# Check to make sure the static flag actually works.
 
11997
#
 
11998
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11999
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12000
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
12001
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12003
else
 
12004
  lt_prog_compiler_static_works_CXX=no
 
12005
   save_LDFLAGS="$LDFLAGS"
 
12006
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12007
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12008
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12009
     # The linker can only warn and ignore the option if not recognized
 
12010
     # So say no if there are warnings
 
12011
     if test -s conftest.err; then
 
12012
       # Append any errors to the config.log.
 
12013
       cat conftest.err 1>&5
 
12014
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12015
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12016
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12017
         lt_prog_compiler_static_works_CXX=yes
 
12018
       fi
 
12019
     else
 
12020
       lt_prog_compiler_static_works_CXX=yes
 
12021
     fi
 
12022
   fi
 
12023
   $rm conftest*
 
12024
   LDFLAGS="$save_LDFLAGS"
 
12025
 
 
12026
fi
 
12027
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12028
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
12029
 
 
12030
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12031
    :
 
12032
else
 
12033
    lt_prog_compiler_static_CXX=
 
12034
fi
 
12035
 
 
12036
 
11491
12037
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11492
12038
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11493
12039
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11506
12052
   # Note that $ac_compile itself does not contain backslashes and begins
11507
12053
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11508
12054
   lt_compile=`echo "$ac_compile" | $SED \
11509
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12055
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11510
12056
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511
12057
   -e 's:$: $lt_compiler_flag:'`
11512
 
   (eval echo "\"\$as_me:11512: $lt_compile\"" >&5)
 
12058
   (eval echo "\"\$as_me:12058: $lt_compile\"" >&5)
11513
12059
   (eval "$lt_compile" 2>out/conftest.err)
11514
12060
   ac_status=$?
11515
12061
   cat out/conftest.err >&5
11516
 
   echo "$as_me:11516: \$? = $ac_status" >&5
 
12062
   echo "$as_me:12062: \$? = $ac_status" >&5
11517
12063
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11518
12064
   then
11519
12065
     # The compiler can only warn and ignore the option if not recognized
11520
12066
     # So say no if there are warnings
11521
 
     if test ! -s out/conftest.err; then
 
12067
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12068
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12069
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11522
12070
       lt_cv_prog_compiler_c_o_CXX=yes
11523
12071
     fi
11524
12072
   fi
11525
 
   chmod u+w .
 
12073
   chmod u+w . 2>&5
11526
12074
   $rm conftest*
11527
12075
   # SGI C++ compiler will create directory out/ii_files/ for
11528
12076
   # template instantiation
11577
12125
    export_symbols_cmds_CXX="$ltdll_cmds"
11578
12126
  ;;
11579
12127
  cygwin* | mingw*)
11580
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11581
 
  ;;
11582
 
  linux*)
11583
 
    link_all_deplibs_CXX=no
 
12128
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11584
12129
  ;;
11585
12130
  *)
11586
12131
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11591
12136
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11592
12137
test "$ld_shlibs_CXX" = no && can_build_shared=no
11593
12138
 
11594
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11595
 
if test "$GCC" = yes; then
11596
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11597
 
fi
11598
 
 
11599
12139
#
11600
12140
# Do we need to explicitly link libc?
11601
12141
#
11628
12168
        libobjs=conftest.$ac_objext
11629
12169
        deplibs=
11630
12170
        wl=$lt_prog_compiler_wl_CXX
 
12171
        pic_flag=$lt_prog_compiler_pic_CXX
11631
12172
        compiler_flags=-v
11632
12173
        linker_flags=-v
11633
12174
        verstring=
11760
12301
  shlibpath_var=LIBRARY_PATH
11761
12302
  ;;
11762
12303
 
11763
 
bsdi4*)
 
12304
bsdi[45]*)
11764
12305
  version_type=linux
11765
12306
  need_version=no
11766
12307
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788
12329
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11789
12330
      dldir=$destdir/`dirname \$dlpath`~
11790
12331
      test -d \$dldir || mkdir -p \$dldir~
11791
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12332
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12333
      chmod a+x \$dldir/$dlname'
11792
12334
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11793
12335
      dlpath=$dir/\$dldll~
11794
12336
       $rm \$dlpath'
11818
12360
      ;;
11819
12361
    pw32*)
11820
12362
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11821
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12363
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11822
12364
      ;;
11823
12365
    esac
11824
12366
    ;;
11841
12383
  soname_spec='${libname}${release}${major}$shared_ext'
11842
12384
  shlibpath_overrides_runpath=yes
11843
12385
  shlibpath_var=DYLD_LIBRARY_PATH
11844
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12386
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11845
12387
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11846
12388
  if test "$GCC" = yes; then
11847
12389
    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"`
11876
12418
  dynamic_linker='GNU ld.so'
11877
12419
  ;;
11878
12420
 
11879
 
freebsd*)
11880
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12421
freebsd* | dragonfly*)
 
12422
  # DragonFly does not have aout.  When/if they implement a new
 
12423
  # versioning mechanism, adjust this.
 
12424
  if test -x /usr/bin/objformat; then
 
12425
    objformat=`/usr/bin/objformat`
 
12426
  else
 
12427
    case $host_os in
 
12428
    freebsd[123]*) objformat=aout ;;
 
12429
    *) objformat=elf ;;
 
12430
    esac
 
12431
  fi
11881
12432
  version_type=freebsd-$objformat
11882
12433
  case $version_type in
11883
12434
    freebsd-elf*)
11895
12446
  freebsd2*)
11896
12447
    shlibpath_overrides_runpath=yes
11897
12448
    ;;
11898
 
  freebsd3.01* | freebsdelf3.01*)
 
12449
  freebsd3.[01]* | freebsdelf3.[01]*)
11899
12450
    shlibpath_overrides_runpath=yes
11900
12451
    hardcode_into_libs=yes
11901
12452
    ;;
11902
 
  *) # from 3.2 on
 
12453
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12454
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11903
12455
    shlibpath_overrides_runpath=no
11904
12456
    hardcode_into_libs=yes
11905
12457
    ;;
 
12458
  freebsd*) # from 4.6 on
 
12459
    shlibpath_overrides_runpath=yes
 
12460
    hardcode_into_libs=yes
 
12461
    ;;
11906
12462
  esac
11907
12463
  ;;
11908
12464
 
11922
12478
  version_type=sunos
11923
12479
  need_lib_prefix=no
11924
12480
  need_version=no
11925
 
  case "$host_cpu" in
 
12481
  case $host_cpu in
11926
12482
  ia64*)
11927
12483
    shrext_cmds='.so'
11928
12484
    hardcode_into_libs=yes
11962
12518
  postinstall_cmds='chmod 555 $lib'
11963
12519
  ;;
11964
12520
 
 
12521
interix3*)
 
12522
  version_type=linux
 
12523
  need_lib_prefix=no
 
12524
  need_version=no
 
12525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12526
  soname_spec='${libname}${release}${shared_ext}$major'
 
12527
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12528
  shlibpath_var=LD_LIBRARY_PATH
 
12529
  shlibpath_overrides_runpath=no
 
12530
  hardcode_into_libs=yes
 
12531
  ;;
 
12532
 
11965
12533
irix5* | irix6* | nonstopux*)
11966
12534
  case $host_os in
11967
12535
    nonstopux*) version_type=nonstopux ;;
12021
12589
 
12022
12590
  # Append ld.so.conf contents to the search path
12023
12591
  if test -f /etc/ld.so.conf; then
12024
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12592
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12025
12593
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12026
12594
  fi
12027
12595
 
12083
12651
 
12084
12652
openbsd*)
12085
12653
  version_type=sunos
 
12654
  sys_lib_dlsearch_path_spec="/usr/lib"
12086
12655
  need_lib_prefix=no
12087
 
  need_version=yes
 
12656
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12657
  case $host_os in
 
12658
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12659
    *)                         need_version=no  ;;
 
12660
  esac
12088
12661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12089
12662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12090
12663
  shlibpath_var=LD_LIBRARY_PATH
12122
12695
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12123
12696
  ;;
12124
12697
 
12125
 
sco3.2v5*)
12126
 
  version_type=osf
12127
 
  soname_spec='${libname}${release}${shared_ext}$major'
12128
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129
 
  shlibpath_var=LD_LIBRARY_PATH
12130
 
  ;;
12131
 
 
12132
12698
solaris*)
12133
12699
  version_type=linux
12134
12700
  need_lib_prefix=no
12154
12720
  need_version=yes
12155
12721
  ;;
12156
12722
 
12157
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12723
sysv4 | sysv4.3*)
12158
12724
  version_type=linux
12159
12725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160
12726
  soname_spec='${libname}${release}${shared_ext}$major'
12187
12753
  fi
12188
12754
  ;;
12189
12755
 
 
12756
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12757
  version_type=freebsd-elf
 
12758
  need_lib_prefix=no
 
12759
  need_version=no
 
12760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12761
  soname_spec='${libname}${release}${shared_ext}$major'
 
12762
  shlibpath_var=LD_LIBRARY_PATH
 
12763
  hardcode_into_libs=yes
 
12764
  if test "$with_gnu_ld" = yes; then
 
12765
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12766
    shlibpath_overrides_runpath=no
 
12767
  else
 
12768
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12769
    shlibpath_overrides_runpath=yes
 
12770
    case $host_os in
 
12771
      sco3.2v5*)
 
12772
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12773
        ;;
 
12774
    esac
 
12775
  fi
 
12776
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12777
  ;;
 
12778
 
12190
12779
uts4*)
12191
12780
  version_type=linux
12192
12781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202
12791
echo "${ECHO_T}$dynamic_linker" >&6
12203
12792
test "$dynamic_linker" = no && can_build_shared=no
12204
12793
 
 
12794
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12795
if test "$GCC" = yes; then
 
12796
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12797
fi
 
12798
 
12205
12799
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12206
12800
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12207
12801
hardcode_action_CXX=
12208
12802
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12209
 
   test -n "$runpath_var CXX" || \
12210
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12803
   test -n "$runpath_var_CXX" || \
 
12804
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12211
12805
 
12212
12806
  # We can hardcode non-existant directories.
12213
12807
  if test "$hardcode_direct_CXX" != no &&
12239
12833
  enable_fast_install=needless
12240
12834
fi
12241
12835
 
12242
 
striplib=
12243
 
old_striplib=
12244
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12245
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12246
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12247
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12248
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12249
 
  echo "$as_me:$LINENO: result: yes" >&5
12250
 
echo "${ECHO_T}yes" >&6
12251
 
else
12252
 
# FIXME - insert some real tests, host_os isn't really good enough
12253
 
  case $host_os in
12254
 
   darwin*)
12255
 
       if test -n "$STRIP" ; then
12256
 
         striplib="$STRIP -x"
12257
 
         echo "$as_me:$LINENO: result: yes" >&5
12258
 
echo "${ECHO_T}yes" >&6
12259
 
       else
12260
 
  echo "$as_me:$LINENO: result: no" >&5
12261
 
echo "${ECHO_T}no" >&6
12262
 
fi
12263
 
       ;;
12264
 
   *)
12265
 
  echo "$as_me:$LINENO: result: no" >&5
12266
 
echo "${ECHO_T}no" >&6
12267
 
    ;;
12268
 
  esac
12269
 
fi
12270
 
 
12271
 
if test "x$enable_dlopen" != xyes; then
12272
 
  enable_dlopen=unknown
12273
 
  enable_dlopen_self=unknown
12274
 
  enable_dlopen_self_static=unknown
12275
 
else
12276
 
  lt_cv_dlopen=no
12277
 
  lt_cv_dlopen_libs=
12278
 
 
12279
 
  case $host_os in
12280
 
  beos*)
12281
 
    lt_cv_dlopen="load_add_on"
12282
 
    lt_cv_dlopen_libs=
12283
 
    lt_cv_dlopen_self=yes
12284
 
    ;;
12285
 
 
12286
 
  mingw* | pw32*)
12287
 
    lt_cv_dlopen="LoadLibrary"
12288
 
    lt_cv_dlopen_libs=
12289
 
   ;;
12290
 
 
12291
 
  cygwin*)
12292
 
    lt_cv_dlopen="dlopen"
12293
 
    lt_cv_dlopen_libs=
12294
 
   ;;
12295
 
 
12296
 
  darwin*)
12297
 
  # if libdl is installed we need to link against it
12298
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12299
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12300
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12302
 
else
12303
 
  ac_check_lib_save_LIBS=$LIBS
12304
 
LIBS="-ldl  $LIBS"
12305
 
cat >conftest.$ac_ext <<_ACEOF
12306
 
/* confdefs.h.  */
12307
 
_ACEOF
12308
 
cat confdefs.h >>conftest.$ac_ext
12309
 
cat >>conftest.$ac_ext <<_ACEOF
12310
 
/* end confdefs.h.  */
12311
 
 
12312
 
/* Override any gcc2 internal prototype to avoid an error.  */
12313
 
#ifdef __cplusplus
12314
 
extern "C"
12315
 
#endif
12316
 
/* We use char because int might match the return type of a gcc2
12317
 
   builtin and then its argument prototype would still apply.  */
12318
 
char dlopen ();
12319
 
int
12320
 
main ()
12321
 
{
12322
 
dlopen ();
12323
 
  ;
12324
 
  return 0;
12325
 
}
12326
 
_ACEOF
12327
 
rm -f conftest.$ac_objext conftest$ac_exeext
12328
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329
 
  (eval $ac_link) 2>conftest.er1
12330
 
  ac_status=$?
12331
 
  grep -v '^ *+' conftest.er1 >conftest.err
12332
 
  rm -f conftest.er1
12333
 
  cat conftest.err >&5
12334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335
 
  (exit $ac_status); } &&
12336
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338
 
  (eval $ac_try) 2>&5
12339
 
  ac_status=$?
12340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
 
  (exit $ac_status); }; } &&
12342
 
         { ac_try='test -s conftest$ac_exeext'
12343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
 
  (eval $ac_try) 2>&5
12345
 
  ac_status=$?
12346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
 
  (exit $ac_status); }; }; then
12348
 
  ac_cv_lib_dl_dlopen=yes
12349
 
else
12350
 
  echo "$as_me: failed program was:" >&5
12351
 
sed 's/^/| /' conftest.$ac_ext >&5
12352
 
 
12353
 
ac_cv_lib_dl_dlopen=no
12354
 
fi
12355
 
rm -f conftest.err conftest.$ac_objext \
12356
 
      conftest$ac_exeext conftest.$ac_ext
12357
 
LIBS=$ac_check_lib_save_LIBS
12358
 
fi
12359
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12360
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12361
 
if test $ac_cv_lib_dl_dlopen = yes; then
12362
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12363
 
else
12364
 
 
12365
 
    lt_cv_dlopen="dyld"
12366
 
    lt_cv_dlopen_libs=
12367
 
    lt_cv_dlopen_self=yes
12368
 
 
12369
 
fi
12370
 
 
12371
 
   ;;
12372
 
 
12373
 
  *)
12374
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12375
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12376
 
if test "${ac_cv_func_shl_load+set}" = set; then
12377
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12378
 
else
12379
 
  cat >conftest.$ac_ext <<_ACEOF
12380
 
/* confdefs.h.  */
12381
 
_ACEOF
12382
 
cat confdefs.h >>conftest.$ac_ext
12383
 
cat >>conftest.$ac_ext <<_ACEOF
12384
 
/* end confdefs.h.  */
12385
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12386
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12387
 
#define shl_load innocuous_shl_load
12388
 
 
12389
 
/* System header to define __stub macros and hopefully few prototypes,
12390
 
    which can conflict with char shl_load (); below.
12391
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392
 
    <limits.h> exists even on freestanding compilers.  */
12393
 
 
12394
 
#ifdef __STDC__
12395
 
# include <limits.h>
12396
 
#else
12397
 
# include <assert.h>
12398
 
#endif
12399
 
 
12400
 
#undef shl_load
12401
 
 
12402
 
/* Override any gcc2 internal prototype to avoid an error.  */
12403
 
#ifdef __cplusplus
12404
 
extern "C"
12405
 
{
12406
 
#endif
12407
 
/* We use char because int might match the return type of a gcc2
12408
 
   builtin and then its argument prototype would still apply.  */
12409
 
char shl_load ();
12410
 
/* The GNU C library defines this for functions which it implements
12411
 
    to always fail with ENOSYS.  Some functions are actually named
12412
 
    something starting with __ and the normal name is an alias.  */
12413
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12414
 
choke me
12415
 
#else
12416
 
char (*f) () = shl_load;
12417
 
#endif
12418
 
#ifdef __cplusplus
12419
 
}
12420
 
#endif
12421
 
 
12422
 
int
12423
 
main ()
12424
 
{
12425
 
return f != shl_load;
12426
 
  ;
12427
 
  return 0;
12428
 
}
12429
 
_ACEOF
12430
 
rm -f conftest.$ac_objext conftest$ac_exeext
12431
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432
 
  (eval $ac_link) 2>conftest.er1
12433
 
  ac_status=$?
12434
 
  grep -v '^ *+' conftest.er1 >conftest.err
12435
 
  rm -f conftest.er1
12436
 
  cat conftest.err >&5
12437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
 
  (exit $ac_status); } &&
12439
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12440
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441
 
  (eval $ac_try) 2>&5
12442
 
  ac_status=$?
12443
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444
 
  (exit $ac_status); }; } &&
12445
 
         { ac_try='test -s conftest$ac_exeext'
12446
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447
 
  (eval $ac_try) 2>&5
12448
 
  ac_status=$?
12449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450
 
  (exit $ac_status); }; }; then
12451
 
  ac_cv_func_shl_load=yes
12452
 
else
12453
 
  echo "$as_me: failed program was:" >&5
12454
 
sed 's/^/| /' conftest.$ac_ext >&5
12455
 
 
12456
 
ac_cv_func_shl_load=no
12457
 
fi
12458
 
rm -f conftest.err conftest.$ac_objext \
12459
 
      conftest$ac_exeext conftest.$ac_ext
12460
 
fi
12461
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12462
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12463
 
if test $ac_cv_func_shl_load = yes; then
12464
 
  lt_cv_dlopen="shl_load"
12465
 
else
12466
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12467
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12468
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12470
 
else
12471
 
  ac_check_lib_save_LIBS=$LIBS
12472
 
LIBS="-ldld  $LIBS"
12473
 
cat >conftest.$ac_ext <<_ACEOF
12474
 
/* confdefs.h.  */
12475
 
_ACEOF
12476
 
cat confdefs.h >>conftest.$ac_ext
12477
 
cat >>conftest.$ac_ext <<_ACEOF
12478
 
/* end confdefs.h.  */
12479
 
 
12480
 
/* Override any gcc2 internal prototype to avoid an error.  */
12481
 
#ifdef __cplusplus
12482
 
extern "C"
12483
 
#endif
12484
 
/* We use char because int might match the return type of a gcc2
12485
 
   builtin and then its argument prototype would still apply.  */
12486
 
char shl_load ();
12487
 
int
12488
 
main ()
12489
 
{
12490
 
shl_load ();
12491
 
  ;
12492
 
  return 0;
12493
 
}
12494
 
_ACEOF
12495
 
rm -f conftest.$ac_objext conftest$ac_exeext
12496
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497
 
  (eval $ac_link) 2>conftest.er1
12498
 
  ac_status=$?
12499
 
  grep -v '^ *+' conftest.er1 >conftest.err
12500
 
  rm -f conftest.er1
12501
 
  cat conftest.err >&5
12502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503
 
  (exit $ac_status); } &&
12504
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12505
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506
 
  (eval $ac_try) 2>&5
12507
 
  ac_status=$?
12508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509
 
  (exit $ac_status); }; } &&
12510
 
         { ac_try='test -s conftest$ac_exeext'
12511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512
 
  (eval $ac_try) 2>&5
12513
 
  ac_status=$?
12514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515
 
  (exit $ac_status); }; }; then
12516
 
  ac_cv_lib_dld_shl_load=yes
12517
 
else
12518
 
  echo "$as_me: failed program was:" >&5
12519
 
sed 's/^/| /' conftest.$ac_ext >&5
12520
 
 
12521
 
ac_cv_lib_dld_shl_load=no
12522
 
fi
12523
 
rm -f conftest.err conftest.$ac_objext \
12524
 
      conftest$ac_exeext conftest.$ac_ext
12525
 
LIBS=$ac_check_lib_save_LIBS
12526
 
fi
12527
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12528
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12529
 
if test $ac_cv_lib_dld_shl_load = yes; then
12530
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12531
 
else
12532
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12533
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12534
 
if test "${ac_cv_func_dlopen+set}" = set; then
12535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12536
 
else
12537
 
  cat >conftest.$ac_ext <<_ACEOF
12538
 
/* confdefs.h.  */
12539
 
_ACEOF
12540
 
cat confdefs.h >>conftest.$ac_ext
12541
 
cat >>conftest.$ac_ext <<_ACEOF
12542
 
/* end confdefs.h.  */
12543
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12544
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12545
 
#define dlopen innocuous_dlopen
12546
 
 
12547
 
/* System header to define __stub macros and hopefully few prototypes,
12548
 
    which can conflict with char dlopen (); below.
12549
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12550
 
    <limits.h> exists even on freestanding compilers.  */
12551
 
 
12552
 
#ifdef __STDC__
12553
 
# include <limits.h>
12554
 
#else
12555
 
# include <assert.h>
12556
 
#endif
12557
 
 
12558
 
#undef dlopen
12559
 
 
12560
 
/* Override any gcc2 internal prototype to avoid an error.  */
12561
 
#ifdef __cplusplus
12562
 
extern "C"
12563
 
{
12564
 
#endif
12565
 
/* We use char because int might match the return type of a gcc2
12566
 
   builtin and then its argument prototype would still apply.  */
12567
 
char dlopen ();
12568
 
/* The GNU C library defines this for functions which it implements
12569
 
    to always fail with ENOSYS.  Some functions are actually named
12570
 
    something starting with __ and the normal name is an alias.  */
12571
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12572
 
choke me
12573
 
#else
12574
 
char (*f) () = dlopen;
12575
 
#endif
12576
 
#ifdef __cplusplus
12577
 
}
12578
 
#endif
12579
 
 
12580
 
int
12581
 
main ()
12582
 
{
12583
 
return f != dlopen;
12584
 
  ;
12585
 
  return 0;
12586
 
}
12587
 
_ACEOF
12588
 
rm -f conftest.$ac_objext conftest$ac_exeext
12589
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590
 
  (eval $ac_link) 2>conftest.er1
12591
 
  ac_status=$?
12592
 
  grep -v '^ *+' conftest.er1 >conftest.err
12593
 
  rm -f conftest.er1
12594
 
  cat conftest.err >&5
12595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596
 
  (exit $ac_status); } &&
12597
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12598
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599
 
  (eval $ac_try) 2>&5
12600
 
  ac_status=$?
12601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602
 
  (exit $ac_status); }; } &&
12603
 
         { ac_try='test -s conftest$ac_exeext'
12604
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605
 
  (eval $ac_try) 2>&5
12606
 
  ac_status=$?
12607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608
 
  (exit $ac_status); }; }; then
12609
 
  ac_cv_func_dlopen=yes
12610
 
else
12611
 
  echo "$as_me: failed program was:" >&5
12612
 
sed 's/^/| /' conftest.$ac_ext >&5
12613
 
 
12614
 
ac_cv_func_dlopen=no
12615
 
fi
12616
 
rm -f conftest.err conftest.$ac_objext \
12617
 
      conftest$ac_exeext conftest.$ac_ext
12618
 
fi
12619
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12620
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12621
 
if test $ac_cv_func_dlopen = yes; then
12622
 
  lt_cv_dlopen="dlopen"
12623
 
else
12624
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12625
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12626
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12627
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12628
 
else
12629
 
  ac_check_lib_save_LIBS=$LIBS
12630
 
LIBS="-ldl  $LIBS"
12631
 
cat >conftest.$ac_ext <<_ACEOF
12632
 
/* confdefs.h.  */
12633
 
_ACEOF
12634
 
cat confdefs.h >>conftest.$ac_ext
12635
 
cat >>conftest.$ac_ext <<_ACEOF
12636
 
/* end confdefs.h.  */
12637
 
 
12638
 
/* Override any gcc2 internal prototype to avoid an error.  */
12639
 
#ifdef __cplusplus
12640
 
extern "C"
12641
 
#endif
12642
 
/* We use char because int might match the return type of a gcc2
12643
 
   builtin and then its argument prototype would still apply.  */
12644
 
char dlopen ();
12645
 
int
12646
 
main ()
12647
 
{
12648
 
dlopen ();
12649
 
  ;
12650
 
  return 0;
12651
 
}
12652
 
_ACEOF
12653
 
rm -f conftest.$ac_objext conftest$ac_exeext
12654
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655
 
  (eval $ac_link) 2>conftest.er1
12656
 
  ac_status=$?
12657
 
  grep -v '^ *+' conftest.er1 >conftest.err
12658
 
  rm -f conftest.er1
12659
 
  cat conftest.err >&5
12660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661
 
  (exit $ac_status); } &&
12662
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12663
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664
 
  (eval $ac_try) 2>&5
12665
 
  ac_status=$?
12666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667
 
  (exit $ac_status); }; } &&
12668
 
         { ac_try='test -s conftest$ac_exeext'
12669
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670
 
  (eval $ac_try) 2>&5
12671
 
  ac_status=$?
12672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673
 
  (exit $ac_status); }; }; then
12674
 
  ac_cv_lib_dl_dlopen=yes
12675
 
else
12676
 
  echo "$as_me: failed program was:" >&5
12677
 
sed 's/^/| /' conftest.$ac_ext >&5
12678
 
 
12679
 
ac_cv_lib_dl_dlopen=no
12680
 
fi
12681
 
rm -f conftest.err conftest.$ac_objext \
12682
 
      conftest$ac_exeext conftest.$ac_ext
12683
 
LIBS=$ac_check_lib_save_LIBS
12684
 
fi
12685
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12686
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12687
 
if test $ac_cv_lib_dl_dlopen = yes; then
12688
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12689
 
else
12690
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12691
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12692
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12693
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12694
 
else
12695
 
  ac_check_lib_save_LIBS=$LIBS
12696
 
LIBS="-lsvld  $LIBS"
12697
 
cat >conftest.$ac_ext <<_ACEOF
12698
 
/* confdefs.h.  */
12699
 
_ACEOF
12700
 
cat confdefs.h >>conftest.$ac_ext
12701
 
cat >>conftest.$ac_ext <<_ACEOF
12702
 
/* end confdefs.h.  */
12703
 
 
12704
 
/* Override any gcc2 internal prototype to avoid an error.  */
12705
 
#ifdef __cplusplus
12706
 
extern "C"
12707
 
#endif
12708
 
/* We use char because int might match the return type of a gcc2
12709
 
   builtin and then its argument prototype would still apply.  */
12710
 
char dlopen ();
12711
 
int
12712
 
main ()
12713
 
{
12714
 
dlopen ();
12715
 
  ;
12716
 
  return 0;
12717
 
}
12718
 
_ACEOF
12719
 
rm -f conftest.$ac_objext conftest$ac_exeext
12720
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721
 
  (eval $ac_link) 2>conftest.er1
12722
 
  ac_status=$?
12723
 
  grep -v '^ *+' conftest.er1 >conftest.err
12724
 
  rm -f conftest.er1
12725
 
  cat conftest.err >&5
12726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727
 
  (exit $ac_status); } &&
12728
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12729
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730
 
  (eval $ac_try) 2>&5
12731
 
  ac_status=$?
12732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733
 
  (exit $ac_status); }; } &&
12734
 
         { ac_try='test -s conftest$ac_exeext'
12735
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736
 
  (eval $ac_try) 2>&5
12737
 
  ac_status=$?
12738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739
 
  (exit $ac_status); }; }; then
12740
 
  ac_cv_lib_svld_dlopen=yes
12741
 
else
12742
 
  echo "$as_me: failed program was:" >&5
12743
 
sed 's/^/| /' conftest.$ac_ext >&5
12744
 
 
12745
 
ac_cv_lib_svld_dlopen=no
12746
 
fi
12747
 
rm -f conftest.err conftest.$ac_objext \
12748
 
      conftest$ac_exeext conftest.$ac_ext
12749
 
LIBS=$ac_check_lib_save_LIBS
12750
 
fi
12751
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12752
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12753
 
if test $ac_cv_lib_svld_dlopen = yes; then
12754
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12755
 
else
12756
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12757
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12758
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12760
 
else
12761
 
  ac_check_lib_save_LIBS=$LIBS
12762
 
LIBS="-ldld  $LIBS"
12763
 
cat >conftest.$ac_ext <<_ACEOF
12764
 
/* confdefs.h.  */
12765
 
_ACEOF
12766
 
cat confdefs.h >>conftest.$ac_ext
12767
 
cat >>conftest.$ac_ext <<_ACEOF
12768
 
/* end confdefs.h.  */
12769
 
 
12770
 
/* Override any gcc2 internal prototype to avoid an error.  */
12771
 
#ifdef __cplusplus
12772
 
extern "C"
12773
 
#endif
12774
 
/* We use char because int might match the return type of a gcc2
12775
 
   builtin and then its argument prototype would still apply.  */
12776
 
char dld_link ();
12777
 
int
12778
 
main ()
12779
 
{
12780
 
dld_link ();
12781
 
  ;
12782
 
  return 0;
12783
 
}
12784
 
_ACEOF
12785
 
rm -f conftest.$ac_objext conftest$ac_exeext
12786
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787
 
  (eval $ac_link) 2>conftest.er1
12788
 
  ac_status=$?
12789
 
  grep -v '^ *+' conftest.er1 >conftest.err
12790
 
  rm -f conftest.er1
12791
 
  cat conftest.err >&5
12792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793
 
  (exit $ac_status); } &&
12794
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796
 
  (eval $ac_try) 2>&5
12797
 
  ac_status=$?
12798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799
 
  (exit $ac_status); }; } &&
12800
 
         { ac_try='test -s conftest$ac_exeext'
12801
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802
 
  (eval $ac_try) 2>&5
12803
 
  ac_status=$?
12804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805
 
  (exit $ac_status); }; }; then
12806
 
  ac_cv_lib_dld_dld_link=yes
12807
 
else
12808
 
  echo "$as_me: failed program was:" >&5
12809
 
sed 's/^/| /' conftest.$ac_ext >&5
12810
 
 
12811
 
ac_cv_lib_dld_dld_link=no
12812
 
fi
12813
 
rm -f conftest.err conftest.$ac_objext \
12814
 
      conftest$ac_exeext conftest.$ac_ext
12815
 
LIBS=$ac_check_lib_save_LIBS
12816
 
fi
12817
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12818
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12819
 
if test $ac_cv_lib_dld_dld_link = yes; then
12820
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12821
 
fi
12822
 
 
12823
 
 
12824
 
fi
12825
 
 
12826
 
 
12827
 
fi
12828
 
 
12829
 
 
12830
 
fi
12831
 
 
12832
 
 
12833
 
fi
12834
 
 
12835
 
 
12836
 
fi
12837
 
 
12838
 
    ;;
12839
 
  esac
12840
 
 
12841
 
  if test "x$lt_cv_dlopen" != xno; then
12842
 
    enable_dlopen=yes
12843
 
  else
12844
 
    enable_dlopen=no
12845
 
  fi
12846
 
 
12847
 
  case $lt_cv_dlopen in
12848
 
  dlopen)
12849
 
    save_CPPFLAGS="$CPPFLAGS"
12850
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12851
 
 
12852
 
    save_LDFLAGS="$LDFLAGS"
12853
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12854
 
 
12855
 
    save_LIBS="$LIBS"
12856
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12857
 
 
12858
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12859
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12860
 
if test "${lt_cv_dlopen_self+set}" = set; then
12861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12862
 
else
12863
 
          if test "$cross_compiling" = yes; then :
12864
 
  lt_cv_dlopen_self=cross
12865
 
else
12866
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12867
 
  lt_status=$lt_dlunknown
12868
 
  cat > conftest.$ac_ext <<EOF
12869
 
#line 12869 "configure"
12870
 
#include "confdefs.h"
12871
 
 
12872
 
#if HAVE_DLFCN_H
12873
 
#include <dlfcn.h>
12874
 
#endif
12875
 
 
12876
 
#include <stdio.h>
12877
 
 
12878
 
#ifdef RTLD_GLOBAL
12879
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12880
 
#else
12881
 
#  ifdef DL_GLOBAL
12882
 
#    define LT_DLGLOBAL         DL_GLOBAL
12883
 
#  else
12884
 
#    define LT_DLGLOBAL         0
12885
 
#  endif
12886
 
#endif
12887
 
 
12888
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12889
 
   find out it does not work in some platform. */
12890
 
#ifndef LT_DLLAZY_OR_NOW
12891
 
#  ifdef RTLD_LAZY
12892
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12893
 
#  else
12894
 
#    ifdef DL_LAZY
12895
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12896
 
#    else
12897
 
#      ifdef RTLD_NOW
12898
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12899
 
#      else
12900
 
#        ifdef DL_NOW
12901
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12902
 
#        else
12903
 
#          define LT_DLLAZY_OR_NOW      0
12904
 
#        endif
12905
 
#      endif
12906
 
#    endif
12907
 
#  endif
12908
 
#endif
12909
 
 
12910
 
#ifdef __cplusplus
12911
 
extern "C" void exit (int);
12912
 
#endif
12913
 
 
12914
 
void fnord() { int i=42;}
12915
 
int main ()
12916
 
{
12917
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12918
 
  int status = $lt_dlunknown;
12919
 
 
12920
 
  if (self)
12921
 
    {
12922
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12923
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12924
 
      /* dlclose (self); */
12925
 
    }
12926
 
 
12927
 
    exit (status);
12928
 
}
12929
 
EOF
12930
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931
 
  (eval $ac_link) 2>&5
12932
 
  ac_status=$?
12933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12935
 
    (./conftest; exit; ) 2>/dev/null
12936
 
    lt_status=$?
12937
 
    case x$lt_status in
12938
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12939
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12940
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12941
 
    esac
12942
 
  else :
12943
 
    # compilation failed
12944
 
    lt_cv_dlopen_self=no
12945
 
  fi
12946
 
fi
12947
 
rm -fr conftest*
12948
 
 
12949
 
 
12950
 
fi
12951
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12952
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12953
 
 
12954
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12955
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12956
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12957
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12958
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12960
 
else
12961
 
          if test "$cross_compiling" = yes; then :
12962
 
  lt_cv_dlopen_self_static=cross
12963
 
else
12964
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12965
 
  lt_status=$lt_dlunknown
12966
 
  cat > conftest.$ac_ext <<EOF
12967
 
#line 12967 "configure"
12968
 
#include "confdefs.h"
12969
 
 
12970
 
#if HAVE_DLFCN_H
12971
 
#include <dlfcn.h>
12972
 
#endif
12973
 
 
12974
 
#include <stdio.h>
12975
 
 
12976
 
#ifdef RTLD_GLOBAL
12977
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12978
 
#else
12979
 
#  ifdef DL_GLOBAL
12980
 
#    define LT_DLGLOBAL         DL_GLOBAL
12981
 
#  else
12982
 
#    define LT_DLGLOBAL         0
12983
 
#  endif
12984
 
#endif
12985
 
 
12986
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12987
 
   find out it does not work in some platform. */
12988
 
#ifndef LT_DLLAZY_OR_NOW
12989
 
#  ifdef RTLD_LAZY
12990
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12991
 
#  else
12992
 
#    ifdef DL_LAZY
12993
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12994
 
#    else
12995
 
#      ifdef RTLD_NOW
12996
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12997
 
#      else
12998
 
#        ifdef DL_NOW
12999
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13000
 
#        else
13001
 
#          define LT_DLLAZY_OR_NOW      0
13002
 
#        endif
13003
 
#      endif
13004
 
#    endif
13005
 
#  endif
13006
 
#endif
13007
 
 
13008
 
#ifdef __cplusplus
13009
 
extern "C" void exit (int);
13010
 
#endif
13011
 
 
13012
 
void fnord() { int i=42;}
13013
 
int main ()
13014
 
{
13015
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016
 
  int status = $lt_dlunknown;
13017
 
 
13018
 
  if (self)
13019
 
    {
13020
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13021
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022
 
      /* dlclose (self); */
13023
 
    }
13024
 
 
13025
 
    exit (status);
13026
 
}
13027
 
EOF
13028
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029
 
  (eval $ac_link) 2>&5
13030
 
  ac_status=$?
13031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13033
 
    (./conftest; exit; ) 2>/dev/null
13034
 
    lt_status=$?
13035
 
    case x$lt_status in
13036
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13037
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13038
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13039
 
    esac
13040
 
  else :
13041
 
    # compilation failed
13042
 
    lt_cv_dlopen_self_static=no
13043
 
  fi
13044
 
fi
13045
 
rm -fr conftest*
13046
 
 
13047
 
 
13048
 
fi
13049
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13050
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13051
 
    fi
13052
 
 
13053
 
    CPPFLAGS="$save_CPPFLAGS"
13054
 
    LDFLAGS="$save_LDFLAGS"
13055
 
    LIBS="$save_LIBS"
13056
 
    ;;
13057
 
  esac
13058
 
 
13059
 
  case $lt_cv_dlopen_self in
13060
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13061
 
  *) enable_dlopen_self=unknown ;;
13062
 
  esac
13063
 
 
13064
 
  case $lt_cv_dlopen_self_static in
13065
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13066
 
  *) enable_dlopen_self_static=unknown ;;
13067
 
  esac
13068
 
fi
13069
 
 
13070
12836
 
13071
12837
# The else clause should only fire when bootstrapping the
13072
12838
# libtool distribution, otherwise you forgot to ship ltmain.sh
13081
12847
  # Now quote all the things that may contain metacharacters while being
13082
12848
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13083
12849
  # variables and quote the copies for generation of the libtool script.
13084
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12850
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13085
12851
    SED SHELL STRIP \
13086
12852
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13087
12853
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13182
12948
# The host system.
13183
12949
host_alias=$host_alias
13184
12950
host=$host
 
12951
host_os=$host_os
 
12952
 
 
12953
# The build system.
 
12954
build_alias=$build_alias
 
12955
build=$build
 
12956
build_os=$build_os
13185
12957
 
13186
12958
# An echo program that does not interpret backslashes.
13187
12959
echo=$lt_echo
13193
12965
# A C compiler.
13194
12966
LTCC=$lt_LTCC
13195
12967
 
 
12968
# LTCC compiler flags.
 
12969
LTCFLAGS=$lt_LTCFLAGS
 
12970
 
13196
12971
# A language-specific compiler.
13197
12972
CC=$lt_compiler_CXX
13198
12973
 
13258
13033
# Does compiler simultaneously support -c and -o options?
13259
13034
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13260
13035
 
13261
 
# Must we lock files when doing compilation ?
 
13036
# Must we lock files when doing compilation?
13262
13037
need_locks=$lt_need_locks
13263
13038
 
13264
13039
# Do we need the lib prefix for modules?
13535
13310
# If no C compiler was specified, use CC.
13536
13311
LTCC=${LTCC-"$CC"}
13537
13312
 
 
13313
# If no C compiler flags were specified, use CFLAGS.
 
13314
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13315
 
13538
13316
# Allow CC to be a program name with arguments.
13539
13317
compiler=$CC
13540
13318
 
13541
13319
 
 
13320
# save warnings/boilerplate of simple test code
 
13321
ac_outfile=conftest.$ac_objext
 
13322
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13323
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13324
_lt_compiler_boilerplate=`cat conftest.err`
 
13325
$rm conftest*
 
13326
 
 
13327
ac_outfile=conftest.$ac_objext
 
13328
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13329
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13330
_lt_linker_boilerplate=`cat conftest.err`
 
13331
$rm conftest*
 
13332
 
 
13333
 
13542
13334
# Allow CC to be a program name with arguments.
13543
13335
lt_save_CC="$CC"
13544
13336
CC=${F77-"f77"}
13545
13337
compiler=$CC
13546
13338
compiler_F77=$CC
13547
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13339
for cc_temp in $compiler""; do
 
13340
  case $cc_temp in
 
13341
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13342
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13343
    \-*) ;;
 
13344
    *) break;;
 
13345
  esac
 
13346
done
 
13347
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13348
 
13548
13349
 
13549
13350
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13550
13351
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13557
13358
 
13558
13359
# On AIX, shared libraries and static libraries use the same namespace, and
13559
13360
# are all built from PIC.
13560
 
case "$host_os" in
 
13361
case $host_os in
13561
13362
aix3*)
13562
13363
  test "$enable_shared" = yes && enable_static=no
13563
13364
  if test -n "$RANLIB"; then
13566
13367
  fi
13567
13368
  ;;
13568
13369
aix4* | aix5*)
13569
 
  test "$enable_shared" = yes && enable_static=no
 
13370
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13371
    test "$enable_shared" = yes && enable_static=no
 
13372
  fi
13570
13373
  ;;
13571
13374
esac
13572
13375
echo "$as_me:$LINENO: result: $enable_shared" >&5
13579
13382
echo "$as_me:$LINENO: result: $enable_static" >&5
13580
13383
echo "${ECHO_T}$enable_static" >&6
13581
13384
 
13582
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13583
 
 
13584
13385
GCC_F77="$G77"
13585
13386
LD_F77="$LD"
13586
13387
 
13627
13428
      lt_prog_compiler_pic_F77='-fno-common'
13628
13429
      ;;
13629
13430
 
 
13431
    interix3*)
 
13432
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13433
      # Instead, we relocate shared libraries at runtime.
 
13434
      ;;
 
13435
 
13630
13436
    msdosdjgpp*)
13631
13437
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13632
13438
      # on systems that don't support them.
13643
13449
    hpux*)
13644
13450
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13645
13451
      # not for PA HP-UX.
13646
 
      case "$host_cpu" in
 
13452
      case $host_cpu in
13647
13453
      hppa*64*|ia64*)
13648
13454
        # +Z the default
13649
13455
        ;;
13669
13475
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13670
13476
      fi
13671
13477
      ;;
 
13478
      darwin*)
 
13479
        # PIC is the default on this platform
 
13480
        # Common symbols not allowed in MH_DYLIB files
 
13481
       case $cc_basename in
 
13482
         xlc*)
 
13483
         lt_prog_compiler_pic_F77='-qnocommon'
 
13484
         lt_prog_compiler_wl_F77='-Wl,'
 
13485
         ;;
 
13486
       esac
 
13487
       ;;
13672
13488
 
13673
13489
    mingw* | pw32* | os2*)
13674
13490
      # This hack is so that the source file can tell whether it is being
13680
13496
      lt_prog_compiler_wl_F77='-Wl,'
13681
13497
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13682
13498
      # not for PA HP-UX.
13683
 
      case "$host_cpu" in
 
13499
      case $host_cpu in
13684
13500
      hppa*64*|ia64*)
13685
13501
        # +Z the default
13686
13502
        ;;
13704
13520
      ;;
13705
13521
 
13706
13522
    linux*)
13707
 
      case $CC in
 
13523
      case $cc_basename in
13708
13524
      icc* | ecc*)
13709
13525
        lt_prog_compiler_wl_F77='-Wl,'
13710
13526
        lt_prog_compiler_pic_F77='-KPIC'
13711
13527
        lt_prog_compiler_static_F77='-static'
13712
13528
        ;;
 
13529
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13530
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13531
        # which looks to be a dead project)
 
13532
        lt_prog_compiler_wl_F77='-Wl,'
 
13533
        lt_prog_compiler_pic_F77='-fpic'
 
13534
        lt_prog_compiler_static_F77='-Bstatic'
 
13535
        ;;
13713
13536
      ccc*)
13714
13537
        lt_prog_compiler_wl_F77='-Wl,'
13715
13538
        # All Alpha code is PIC.
13724
13547
      lt_prog_compiler_static_F77='-non_shared'
13725
13548
      ;;
13726
13549
 
13727
 
    sco3.2v5*)
13728
 
      lt_prog_compiler_pic_F77='-Kpic'
13729
 
      lt_prog_compiler_static_F77='-dn'
13730
 
      ;;
13731
 
 
13732
13550
    solaris*)
13733
 
      lt_prog_compiler_wl_F77='-Wl,'
13734
13551
      lt_prog_compiler_pic_F77='-KPIC'
13735
13552
      lt_prog_compiler_static_F77='-Bstatic'
 
13553
      case $cc_basename in
 
13554
      f77* | f90* | f95*)
 
13555
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13556
      *)
 
13557
        lt_prog_compiler_wl_F77='-Wl,';;
 
13558
      esac
13736
13559
      ;;
13737
13560
 
13738
13561
    sunos4*)
13741
13564
      lt_prog_compiler_static_F77='-Bstatic'
13742
13565
      ;;
13743
13566
 
13744
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13567
    sysv4 | sysv4.2uw2* | sysv4.3*)
13745
13568
      lt_prog_compiler_wl_F77='-Wl,'
13746
13569
      lt_prog_compiler_pic_F77='-KPIC'
13747
13570
      lt_prog_compiler_static_F77='-Bstatic'
13754
13577
      fi
13755
13578
      ;;
13756
13579
 
 
13580
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13581
      lt_prog_compiler_wl_F77='-Wl,'
 
13582
      lt_prog_compiler_pic_F77='-KPIC'
 
13583
      lt_prog_compiler_static_F77='-Bstatic'
 
13584
      ;;
 
13585
 
 
13586
    unicos*)
 
13587
      lt_prog_compiler_wl_F77='-Wl,'
 
13588
      lt_prog_compiler_can_build_shared_F77=no
 
13589
      ;;
 
13590
 
13757
13591
    uts4*)
13758
13592
      lt_prog_compiler_pic_F77='-pic'
13759
13593
      lt_prog_compiler_static_F77='-Bstatic'
13788
13622
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13789
13623
   # The option is referenced via a variable to avoid confusing sed.
13790
13624
   lt_compile=`echo "$ac_compile" | $SED \
13791
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13625
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13792
13626
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13793
13627
   -e 's:$: $lt_compiler_flag:'`
13794
 
   (eval echo "\"\$as_me:13794: $lt_compile\"" >&5)
 
13628
   (eval echo "\"\$as_me:13628: $lt_compile\"" >&5)
13795
13629
   (eval "$lt_compile" 2>conftest.err)
13796
13630
   ac_status=$?
13797
13631
   cat conftest.err >&5
13798
 
   echo "$as_me:13798: \$? = $ac_status" >&5
 
13632
   echo "$as_me:13632: \$? = $ac_status" >&5
13799
13633
   if (exit $ac_status) && test -s "$ac_outfile"; then
13800
13634
     # The compiler can only warn and ignore the option if not recognized
13801
 
     # So say no if there are warnings
13802
 
     if test ! -s conftest.err; then
 
13635
     # So say no if there are warnings other than the usual output.
 
13636
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13637
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13638
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13803
13639
       lt_prog_compiler_pic_works_F77=yes
13804
13640
     fi
13805
13641
   fi
13820
13656
fi
13821
13657
 
13822
13658
fi
13823
 
case "$host_os" in
 
13659
case $host_os in
13824
13660
  # For platforms which do not support PIC, -DPIC is meaningless:
13825
13661
  *djgpp*)
13826
13662
    lt_prog_compiler_pic_F77=
13830
13666
    ;;
13831
13667
esac
13832
13668
 
 
13669
#
 
13670
# Check to make sure the static flag actually works.
 
13671
#
 
13672
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13673
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13674
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13675
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13677
else
 
13678
  lt_prog_compiler_static_works_F77=no
 
13679
   save_LDFLAGS="$LDFLAGS"
 
13680
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13681
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13682
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13683
     # The linker can only warn and ignore the option if not recognized
 
13684
     # So say no if there are warnings
 
13685
     if test -s conftest.err; then
 
13686
       # Append any errors to the config.log.
 
13687
       cat conftest.err 1>&5
 
13688
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13689
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13690
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13691
         lt_prog_compiler_static_works_F77=yes
 
13692
       fi
 
13693
     else
 
13694
       lt_prog_compiler_static_works_F77=yes
 
13695
     fi
 
13696
   fi
 
13697
   $rm conftest*
 
13698
   LDFLAGS="$save_LDFLAGS"
 
13699
 
 
13700
fi
 
13701
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13702
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13703
 
 
13704
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13705
    :
 
13706
else
 
13707
    lt_prog_compiler_static_F77=
 
13708
fi
 
13709
 
 
13710
 
13833
13711
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13834
13712
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13835
13713
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13848
13726
   # Note that $ac_compile itself does not contain backslashes and begins
13849
13727
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13850
13728
   lt_compile=`echo "$ac_compile" | $SED \
13851
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13729
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13852
13730
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13853
13731
   -e 's:$: $lt_compiler_flag:'`
13854
 
   (eval echo "\"\$as_me:13854: $lt_compile\"" >&5)
 
13732
   (eval echo "\"\$as_me:13732: $lt_compile\"" >&5)
13855
13733
   (eval "$lt_compile" 2>out/conftest.err)
13856
13734
   ac_status=$?
13857
13735
   cat out/conftest.err >&5
13858
 
   echo "$as_me:13858: \$? = $ac_status" >&5
 
13736
   echo "$as_me:13736: \$? = $ac_status" >&5
13859
13737
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13860
13738
   then
13861
13739
     # The compiler can only warn and ignore the option if not recognized
13862
13740
     # So say no if there are warnings
13863
 
     if test ! -s out/conftest.err; then
 
13741
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13742
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13743
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13864
13744
       lt_cv_prog_compiler_c_o_F77=yes
13865
13745
     fi
13866
13746
   fi
13867
 
   chmod u+w .
 
13747
   chmod u+w . 2>&5
13868
13748
   $rm conftest*
13869
13749
   # SGI C++ compiler will create directory out/ii_files/ for
13870
13750
   # template instantiation
13940
13820
  # rely on this symbol name, it's probably fine to never include it in
13941
13821
  # preloaded symbol tables.
13942
13822
  extract_expsyms_cmds=
 
13823
  # Just being paranoid about ensuring that cc_basename is set.
 
13824
  for cc_temp in $compiler""; do
 
13825
  case $cc_temp in
 
13826
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13827
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13828
    \-*) ;;
 
13829
    *) break;;
 
13830
  esac
 
13831
done
 
13832
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13943
13833
 
13944
13834
  case $host_os in
13945
13835
  cygwin* | mingw* | pw32*)
13950
13840
      with_gnu_ld=no
13951
13841
    fi
13952
13842
    ;;
 
13843
  interix*)
 
13844
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13845
    with_gnu_ld=yes
 
13846
    ;;
13953
13847
  openbsd*)
13954
13848
    with_gnu_ld=no
13955
13849
    ;;
13960
13854
    # If archive_cmds runs LD, not CC, wlarc should be empty
13961
13855
    wlarc='${wl}'
13962
13856
 
 
13857
    # Set some defaults for GNU ld with shared library support. These
 
13858
    # are reset later if shared libraries are not supported. Putting them
 
13859
    # here allows them to be overridden if necessary.
 
13860
    runpath_var=LD_RUN_PATH
 
13861
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13862
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13863
    # ancient GNU ld didn't support --whole-archive et. al.
 
13864
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13865
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13866
      else
 
13867
        whole_archive_flag_spec_F77=
 
13868
    fi
 
13869
    supports_anon_versioning=no
 
13870
    case `$LD -v 2>/dev/null` in
 
13871
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13872
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13873
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13874
      *\ 2.11.*) ;; # other 2.11 versions
 
13875
      *) supports_anon_versioning=yes ;;
 
13876
    esac
 
13877
 
13963
13878
    # See if GNU ld supports shared libraries.
13964
13879
    case $host_os in
13965
13880
    aix3* | aix4* | aix5*)
14010
13925
      allow_undefined_flag_F77=unsupported
14011
13926
      always_export_symbols_F77=no
14012
13927
      enable_shared_with_static_runtimes_F77=yes
14013
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13928
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14014
13929
 
14015
13930
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14016
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13931
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14017
13932
        # If the export-symbols file already is a .def file (1st line
14018
13933
        # is EXPORTS), use it as is; otherwise, prepend...
14019
13934
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14022
13937
          echo EXPORTS > $output_objdir/$soname.def;
14023
13938
          cat $export_symbols >> $output_objdir/$soname.def;
14024
13939
        fi~
14025
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14026
 
      else
14027
 
        ld_shlibs=no
14028
 
      fi
14029
 
      ;;
14030
 
 
14031
 
    netbsd* | knetbsd*-gnu)
 
13940
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13941
      else
 
13942
        ld_shlibs_F77=no
 
13943
      fi
 
13944
      ;;
 
13945
 
 
13946
    interix3*)
 
13947
      hardcode_direct_F77=no
 
13948
      hardcode_shlibpath_var_F77=no
 
13949
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13950
      export_dynamic_flag_spec_F77='${wl}-E'
 
13951
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13952
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13953
      # default) and relocated if they conflict, which is a slow very memory
 
13954
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13955
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13956
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13957
      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'
 
13958
      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'
 
13959
      ;;
 
13960
 
 
13961
    linux*)
 
13962
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13963
        tmp_addflag=
 
13964
        case $cc_basename,$host_cpu in
 
13965
        pgcc*)                          # Portland Group C compiler
 
13966
          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'
 
13967
          tmp_addflag=' $pic_flag'
 
13968
          ;;
 
13969
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13970
          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'
 
13971
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13972
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13973
          tmp_addflag=' -i_dynamic' ;;
 
13974
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13975
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13976
        ifc* | ifort*)                  # Intel Fortran compiler
 
13977
          tmp_addflag=' -nofor_main' ;;
 
13978
        esac
 
13979
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13980
 
 
13981
        if test $supports_anon_versioning = yes; then
 
13982
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13983
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13984
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13985
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13986
        fi
 
13987
      else
 
13988
        ld_shlibs_F77=no
 
13989
      fi
 
13990
      ;;
 
13991
 
 
13992
    netbsd*)
14032
13993
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14033
13994
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14034
13995
        wlarc=
14038
13999
      fi
14039
14000
      ;;
14040
14001
 
14041
 
    solaris* | sysv5*)
 
14002
    solaris*)
14042
14003
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14043
14004
        ld_shlibs_F77=no
14044
14005
        cat <<EOF 1>&2
14059
14020
      fi
14060
14021
      ;;
14061
14022
 
 
14023
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14024
      case `$LD -v 2>&1` in
 
14025
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14026
        ld_shlibs_F77=no
 
14027
        cat <<_LT_EOF 1>&2
 
14028
 
 
14029
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14030
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14031
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14032
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14033
*** your PATH or compiler configuration so that the native linker is
 
14034
*** used, and then restart.
 
14035
 
 
14036
_LT_EOF
 
14037
        ;;
 
14038
        *)
 
14039
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14040
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14041
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14042
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14043
          else
 
14044
            ld_shlibs_F77=no
 
14045
          fi
 
14046
        ;;
 
14047
      esac
 
14048
      ;;
 
14049
 
14062
14050
    sunos4*)
14063
14051
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14064
14052
      wlarc=
14066
14054
      hardcode_shlibpath_var_F77=no
14067
14055
      ;;
14068
14056
 
14069
 
  linux*)
14070
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14071
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14072
 
        archive_cmds_F77="$tmp_archive_cmds"
14073
 
      supports_anon_versioning=no
14074
 
      case `$LD -v 2>/dev/null` in
14075
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14076
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14077
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14078
 
        *\ 2.11.*) ;; # other 2.11 versions
14079
 
        *) supports_anon_versioning=yes ;;
14080
 
      esac
14081
 
      if test $supports_anon_versioning = yes; then
14082
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14083
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14084
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
14085
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14086
 
      else
14087
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
14088
 
      fi
14089
 
      link_all_deplibs_F77=no
14090
 
    else
14091
 
      ld_shlibs_F77=no
14092
 
    fi
14093
 
    ;;
14094
 
 
14095
14057
    *)
14096
14058
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14097
14059
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102
14064
      ;;
14103
14065
    esac
14104
14066
 
14105
 
    if test "$ld_shlibs_F77" = yes; then
14106
 
      runpath_var=LD_RUN_PATH
14107
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14108
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14109
 
      # ancient GNU ld didn't support --whole-archive et. al.
14110
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14111
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14112
 
      else
14113
 
        whole_archive_flag_spec_F77=
14114
 
      fi
 
14067
    if test "$ld_shlibs_F77" = no; then
 
14068
      runpath_var=
 
14069
      hardcode_libdir_flag_spec_F77=
 
14070
      export_dynamic_flag_spec_F77=
 
14071
      whole_archive_flag_spec_F77=
14115
14072
    fi
14116
14073
  else
14117
14074
    # PORTME fill in a description of your system's linker (not GNU ld)
14123
14080
      # Note: this linker hardcodes the directories in LIBPATH if there
14124
14081
      # are no directories specified by -L.
14125
14082
      hardcode_minus_L_F77=yes
14126
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14083
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14127
14084
        # Neither direct hardcoding nor static linking is supported with a
14128
14085
        # broken collect2.
14129
14086
        hardcode_direct_F77=unsupported
14157
14114
            break
14158
14115
          fi
14159
14116
          done
 
14117
          ;;
14160
14118
        esac
14161
14119
 
14162
14120
        exp_sym_flag='-bexport'
14175
14133
      link_all_deplibs_F77=yes
14176
14134
 
14177
14135
      if test "$GCC" = yes; then
14178
 
        case $host_os in aix4.012|aix4.012.*)
 
14136
        case $host_os in aix4.[012]|aix4.[012].*)
14179
14137
        # We only want to do this on AIX 4.2 and lower, the check
14180
14138
        # below for broken collect2 doesn't work under 4.3+
14181
14139
          collect2name=`${CC} -print-prog-name=collect2`
14194
14152
          hardcode_libdir_flag_spec_F77='-L$libdir'
14195
14153
          hardcode_libdir_separator_F77=
14196
14154
          fi
 
14155
          ;;
14197
14156
        esac
14198
14157
        shared_flag='-shared'
 
14158
        if test "$aix_use_runtimelinking" = yes; then
 
14159
          shared_flag="$shared_flag "'${wl}-G'
 
14160
        fi
14199
14161
      else
14200
14162
        # not using gcc
14201
14163
        if test "$host_cpu" = ia64; then
14203
14165
        # chokes on -Wl,-G. The following line is correct:
14204
14166
          shared_flag='-G'
14205
14167
        else
14206
 
        if test "$aix_use_runtimelinking" = yes; then
 
14168
          if test "$aix_use_runtimelinking" = yes; then
14207
14169
            shared_flag='${wl}-G'
14208
14170
          else
14209
14171
            shared_flag='${wl}-bM:SRE'
14210
 
        fi
 
14172
          fi
14211
14173
        fi
14212
14174
      fi
14213
14175
 
14233
14195
  cat conftest.err >&5
14234
14196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235
14197
  (exit $ac_status); } &&
14236
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14198
         { ac_try='test -z "$ac_f77_werror_flag"
 
14199
                         || test ! -s conftest.err'
14237
14200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238
14201
  (eval $ac_try) 2>&5
14239
14202
  ac_status=$?
14261
14224
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14262
14225
 
14263
14226
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14264
 
        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"
 
14227
        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"
14265
14228
       else
14266
14229
        if test "$host_cpu" = ia64; then
14267
14230
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14268
14231
          allow_undefined_flag_F77="-z nodefs"
14269
 
          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"
 
14232
          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"
14270
14233
        else
14271
14234
         # Determine the default libpath from the value encoded in an empty executable.
14272
14235
         cat >conftest.$ac_ext <<_ACEOF
14283
14246
  cat conftest.err >&5
14284
14247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285
14248
  (exit $ac_status); } &&
14286
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14249
         { ac_try='test -z "$ac_f77_werror_flag"
 
14250
                         || test ! -s conftest.err'
14287
14251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288
14252
  (eval $ac_try) 2>&5
14289
14253
  ac_status=$?
14315
14279
          # -berok will link without error, but may produce a broken library.
14316
14280
          no_undefined_flag_F77=' ${wl}-bernotok'
14317
14281
          allow_undefined_flag_F77=' ${wl}-berok'
14318
 
          # -bexpall does not export symbols beginning with underscore (_)
14319
 
          always_export_symbols_F77=yes
14320
14282
          # Exported symbols can be pulled into shared objects from archives
14321
 
          whole_archive_flag_spec_F77=' '
 
14283
          whole_archive_flag_spec_F77='$convenience'
14322
14284
          archive_cmds_need_lc_F77=yes
14323
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14324
 
          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'
 
14285
          # This is similar to how AIX traditionally builds its shared libraries.
 
14286
          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'
14325
14287
        fi
14326
14288
      fi
14327
14289
      ;;
14334
14296
      ld_shlibs_F77=no
14335
14297
      ;;
14336
14298
 
14337
 
    bsdi4*)
 
14299
    bsdi[45]*)
14338
14300
      export_dynamic_flag_spec_F77=-rdynamic
14339
14301
      ;;
14340
14302
 
14355
14317
      old_archive_From_new_cmds_F77='true'
14356
14318
      # FIXME: Should let the user specify the lib program.
14357
14319
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14358
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14320
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14359
14321
      enable_shared_with_static_runtimes_F77=yes
14360
14322
      ;;
14361
14323
 
14362
14324
    darwin* | rhapsody*)
14363
 
    if test "$GXX" = yes ; then
 
14325
      case $host_os in
 
14326
        rhapsody* | darwin1.[012])
 
14327
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14328
         ;;
 
14329
       *) # Darwin 1.3 on
 
14330
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14331
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14332
         else
 
14333
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14334
             10.[012])
 
14335
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14336
               ;;
 
14337
             10.*)
 
14338
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14339
               ;;
 
14340
           esac
 
14341
         fi
 
14342
         ;;
 
14343
      esac
14364
14344
      archive_cmds_need_lc_F77=no
14365
 
      case "$host_os" in
14366
 
      rhapsody* | darwin1.[012])
14367
 
        allow_undefined_flag_F77='-undefined suppress'
14368
 
        ;;
14369
 
      *) # Darwin 1.3 on
14370
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14371
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14372
 
      else
14373
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
14374
 
          10.[012])
14375
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14376
 
            ;;
14377
 
          10.*)
14378
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
14379
 
            ;;
14380
 
        esac
14381
 
      fi
14382
 
        ;;
14383
 
      esac
14384
 
        lt_int_apple_cc_single_mod=no
14385
 
        output_verbose_link_cmd='echo'
14386
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14387
 
          lt_int_apple_cc_single_mod=yes
14388
 
        fi
14389
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14390
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14391
 
        else
14392
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14393
 
      fi
14394
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14395
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14396
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14397
 
          archive_expsym_cmds_F77='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}'
14398
 
        else
14399
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14400
 
        fi
14401
 
          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}'
14402
14345
      hardcode_direct_F77=no
14403
14346
      hardcode_automatic_F77=yes
14404
14347
      hardcode_shlibpath_var_F77=unsupported
14405
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14348
      whole_archive_flag_spec_F77=''
14406
14349
      link_all_deplibs_F77=yes
 
14350
    if test "$GCC" = yes ; then
 
14351
        output_verbose_link_cmd='echo'
 
14352
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14353
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14354
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14355
      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}'
 
14356
      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}'
14407
14357
    else
14408
 
      ld_shlibs_F77=no
 
14358
      case $cc_basename in
 
14359
        xlc*)
 
14360
         output_verbose_link_cmd='echo'
 
14361
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14362
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14363
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14364
         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}'
 
14365
          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}'
 
14366
          ;;
 
14367
       *)
 
14368
         ld_shlibs_F77=no
 
14369
          ;;
 
14370
      esac
14409
14371
    fi
14410
14372
      ;;
14411
14373
 
14439
14401
      ;;
14440
14402
 
14441
14403
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14442
 
    freebsd* | kfreebsd*-gnu)
 
14404
    freebsd* | kfreebsd*-gnu | dragonfly*)
14443
14405
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14444
14406
      hardcode_libdir_flag_spec_F77='-R$libdir'
14445
14407
      hardcode_direct_F77=yes
14462
14424
      export_dynamic_flag_spec_F77='${wl}-E'
14463
14425
      ;;
14464
14426
 
14465
 
    hpux10* | hpux11*)
14466
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14467
 
        case "$host_cpu" in
14468
 
        hppa*64*|ia64*)
 
14427
    hpux10*)
 
14428
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14429
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14430
      else
 
14431
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14432
      fi
 
14433
      if test "$with_gnu_ld" = no; then
 
14434
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14435
        hardcode_libdir_separator_F77=:
 
14436
 
 
14437
        hardcode_direct_F77=yes
 
14438
        export_dynamic_flag_spec_F77='${wl}-E'
 
14439
 
 
14440
        # hardcode_minus_L: Not really in the search PATH,
 
14441
        # but as the default location of the library.
 
14442
        hardcode_minus_L_F77=yes
 
14443
      fi
 
14444
      ;;
 
14445
 
 
14446
    hpux11*)
 
14447
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14448
        case $host_cpu in
 
14449
        hppa*64*)
14469
14450
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14470
14451
          ;;
 
14452
        ia64*)
 
14453
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14454
          ;;
14471
14455
        *)
14472
14456
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14473
14457
          ;;
14474
14458
        esac
14475
14459
      else
14476
 
        case "$host_cpu" in
14477
 
        hppa*64*|ia64*)
14478
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14460
        case $host_cpu in
 
14461
        hppa*64*)
 
14462
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14463
          ;;
 
14464
        ia64*)
 
14465
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14479
14466
          ;;
14480
14467
        *)
14481
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14468
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14482
14469
          ;;
14483
14470
        esac
14484
14471
      fi
14485
14472
      if test "$with_gnu_ld" = no; then
14486
 
        case "$host_cpu" in
14487
 
        hppa*64*)
14488
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14473
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14474
        hardcode_libdir_separator_F77=:
 
14475
 
 
14476
        case $host_cpu in
 
14477
        hppa*64*|ia64*)
14489
14478
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14490
 
          hardcode_libdir_separator_F77=:
14491
 
          hardcode_direct_F77=no
14492
 
          hardcode_shlibpath_var_F77=no
14493
 
          ;;
14494
 
        ia64*)
14495
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14496
 
          hardcode_direct_F77=no
14497
 
          hardcode_shlibpath_var_F77=no
14498
 
 
14499
 
          # hardcode_minus_L: Not really in the search PATH,
14500
 
          # but as the default location of the library.
14501
 
          hardcode_minus_L_F77=yes
 
14479
          hardcode_direct_F77=no
 
14480
          hardcode_shlibpath_var_F77=no
14502
14481
          ;;
14503
14482
        *)
14504
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14505
 
          hardcode_libdir_separator_F77=:
14506
14483
          hardcode_direct_F77=yes
14507
14484
          export_dynamic_flag_spec_F77='${wl}-E'
14508
14485
 
14526
14503
      link_all_deplibs_F77=yes
14527
14504
      ;;
14528
14505
 
14529
 
    netbsd* | knetbsd*-gnu)
 
14506
    netbsd*)
14530
14507
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14531
14508
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14532
14509
      else
14550
14527
      hardcode_shlibpath_var_F77=no
14551
14528
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14552
14529
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14530
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14553
14531
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14554
14532
        export_dynamic_flag_spec_F77='${wl}-E'
14555
14533
      else
14595
14573
        allow_undefined_flag_F77=' -expect_unresolved \*'
14596
14574
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14597
14575
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14598
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14576
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14599
14577
 
14600
14578
        # Both c and cxx compiler support -rpath directly
14601
14579
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14603
14581
      hardcode_libdir_separator_F77=:
14604
14582
      ;;
14605
14583
 
14606
 
    sco3.2v5*)
14607
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608
 
      hardcode_shlibpath_var_F77=no
14609
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14610
 
      runpath_var=LD_RUN_PATH
14611
 
      hardcode_runpath_var=yes
14612
 
      ;;
14613
 
 
14614
14584
    solaris*)
14615
14585
      no_undefined_flag_F77=' -z text'
14616
14586
      if test "$GCC" = yes; then
 
14587
        wlarc='${wl}'
14617
14588
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14618
14589
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14619
14590
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14620
14591
      else
 
14592
        wlarc=''
14621
14593
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14622
14594
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14623
14595
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14626
14598
      hardcode_shlibpath_var_F77=no
14627
14599
      case $host_os in
14628
14600
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14629
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14630
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14601
      *)
 
14602
        # The compiler driver will combine linker options so we
 
14603
        # cannot just pass the convience library names through
 
14604
        # without $wl, iff we do not link with $LD.
 
14605
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14606
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14607
        case $wlarc in
 
14608
        '')
 
14609
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14610
        *)
 
14611
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14612
        esac ;;
14631
14613
      esac
14632
14614
      link_all_deplibs_F77=yes
14633
14615
      ;;
14684
14666
      fi
14685
14667
      ;;
14686
14668
 
14687
 
    sysv4.2uw2*)
14688
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14689
 
      hardcode_direct_F77=yes
14690
 
      hardcode_minus_L_F77=no
14691
 
      hardcode_shlibpath_var_F77=no
14692
 
      hardcode_runpath_var=yes
14693
 
      runpath_var=LD_RUN_PATH
14694
 
      ;;
14695
 
 
14696
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14697
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14698
 
      if test "$GCC" = yes; then
14699
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14700
 
      else
14701
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14702
 
      fi
14703
 
      runpath_var='LD_RUN_PATH'
14704
 
      hardcode_shlibpath_var_F77=no
14705
 
      ;;
14706
 
 
14707
 
    sysv5*)
14708
 
      no_undefined_flag_F77=' -z text'
14709
 
      # $CC -shared without GNU ld will not create a library from C++
14710
 
      # object files and a static libstdc++, better avoid it by now
14711
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14712
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14713
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14714
 
      hardcode_libdir_flag_spec_F77=
14715
 
      hardcode_shlibpath_var_F77=no
14716
 
      runpath_var='LD_RUN_PATH'
 
14669
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14670
      no_undefined_flag_F77='${wl}-z,text'
 
14671
      archive_cmds_need_lc_F77=no
 
14672
      hardcode_shlibpath_var_F77=no
 
14673
      runpath_var='LD_RUN_PATH'
 
14674
 
 
14675
      if test "$GCC" = yes; then
 
14676
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14677
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14678
      else
 
14679
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14680
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14681
      fi
 
14682
      ;;
 
14683
 
 
14684
    sysv5* | sco3.2v5* | sco5v6*)
 
14685
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14686
      # link with -lc, and that would cause any symbols used from libc to
 
14687
      # always be unresolved, which means just about no library would
 
14688
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14689
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14690
      # as -z defs.
 
14691
      no_undefined_flag_F77='${wl}-z,text'
 
14692
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14693
      archive_cmds_need_lc_F77=no
 
14694
      hardcode_shlibpath_var_F77=no
 
14695
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14696
      hardcode_libdir_separator_F77=':'
 
14697
      link_all_deplibs_F77=yes
 
14698
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14699
      runpath_var='LD_RUN_PATH'
 
14700
 
 
14701
      if test "$GCC" = yes; then
 
14702
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14703
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14704
      else
 
14705
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14706
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14707
      fi
14717
14708
      ;;
14718
14709
 
14719
14710
    uts4*)
14732
14723
echo "${ECHO_T}$ld_shlibs_F77" >&6
14733
14724
test "$ld_shlibs_F77" = no && can_build_shared=no
14734
14725
 
14735
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14736
 
if test "$GCC" = yes; then
14737
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14738
 
fi
14739
 
 
14740
14726
#
14741
14727
# Do we need to explicitly link libc?
14742
14728
#
14769
14755
        libobjs=conftest.$ac_objext
14770
14756
        deplibs=
14771
14757
        wl=$lt_prog_compiler_wl_F77
 
14758
        pic_flag=$lt_prog_compiler_pic_F77
14772
14759
        compiler_flags=-v
14773
14760
        linker_flags=-v
14774
14761
        verstring=
14901
14888
  shlibpath_var=LIBRARY_PATH
14902
14889
  ;;
14903
14890
 
14904
 
bsdi4*)
 
14891
bsdi[45]*)
14905
14892
  version_type=linux
14906
14893
  need_version=no
14907
14894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929
14916
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14930
14917
      dldir=$destdir/`dirname \$dlpath`~
14931
14918
      test -d \$dldir || mkdir -p \$dldir~
14932
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14919
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14920
      chmod a+x \$dldir/$dlname'
14933
14921
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934
14922
      dlpath=$dir/\$dldll~
14935
14923
       $rm \$dlpath'
14959
14947
      ;;
14960
14948
    pw32*)
14961
14949
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14962
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14950
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963
14951
      ;;
14964
14952
    esac
14965
14953
    ;;
14982
14970
  soname_spec='${libname}${release}${major}$shared_ext'
14983
14971
  shlibpath_overrides_runpath=yes
14984
14972
  shlibpath_var=DYLD_LIBRARY_PATH
14985
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14973
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14986
14974
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14987
14975
  if test "$GCC" = yes; then
14988
14976
    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"`
15017
15005
  dynamic_linker='GNU ld.so'
15018
15006
  ;;
15019
15007
 
15020
 
freebsd*)
15021
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15008
freebsd* | dragonfly*)
 
15009
  # DragonFly does not have aout.  When/if they implement a new
 
15010
  # versioning mechanism, adjust this.
 
15011
  if test -x /usr/bin/objformat; then
 
15012
    objformat=`/usr/bin/objformat`
 
15013
  else
 
15014
    case $host_os in
 
15015
    freebsd[123]*) objformat=aout ;;
 
15016
    *) objformat=elf ;;
 
15017
    esac
 
15018
  fi
15022
15019
  version_type=freebsd-$objformat
15023
15020
  case $version_type in
15024
15021
    freebsd-elf*)
15036
15033
  freebsd2*)
15037
15034
    shlibpath_overrides_runpath=yes
15038
15035
    ;;
15039
 
  freebsd3.01* | freebsdelf3.01*)
 
15036
  freebsd3.[01]* | freebsdelf3.[01]*)
15040
15037
    shlibpath_overrides_runpath=yes
15041
15038
    hardcode_into_libs=yes
15042
15039
    ;;
15043
 
  *) # from 3.2 on
 
15040
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15041
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15044
15042
    shlibpath_overrides_runpath=no
15045
15043
    hardcode_into_libs=yes
15046
15044
    ;;
 
15045
  freebsd*) # from 4.6 on
 
15046
    shlibpath_overrides_runpath=yes
 
15047
    hardcode_into_libs=yes
 
15048
    ;;
15047
15049
  esac
15048
15050
  ;;
15049
15051
 
15063
15065
  version_type=sunos
15064
15066
  need_lib_prefix=no
15065
15067
  need_version=no
15066
 
  case "$host_cpu" in
 
15068
  case $host_cpu in
15067
15069
  ia64*)
15068
15070
    shrext_cmds='.so'
15069
15071
    hardcode_into_libs=yes
15103
15105
  postinstall_cmds='chmod 555 $lib'
15104
15106
  ;;
15105
15107
 
 
15108
interix3*)
 
15109
  version_type=linux
 
15110
  need_lib_prefix=no
 
15111
  need_version=no
 
15112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15113
  soname_spec='${libname}${release}${shared_ext}$major'
 
15114
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15115
  shlibpath_var=LD_LIBRARY_PATH
 
15116
  shlibpath_overrides_runpath=no
 
15117
  hardcode_into_libs=yes
 
15118
  ;;
 
15119
 
15106
15120
irix5* | irix6* | nonstopux*)
15107
15121
  case $host_os in
15108
15122
    nonstopux*) version_type=nonstopux ;;
15162
15176
 
15163
15177
  # Append ld.so.conf contents to the search path
15164
15178
  if test -f /etc/ld.so.conf; then
15165
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15179
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15166
15180
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15167
15181
  fi
15168
15182
 
15224
15238
 
15225
15239
openbsd*)
15226
15240
  version_type=sunos
 
15241
  sys_lib_dlsearch_path_spec="/usr/lib"
15227
15242
  need_lib_prefix=no
15228
 
  need_version=yes
 
15243
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15244
  case $host_os in
 
15245
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15246
    *)                         need_version=no  ;;
 
15247
  esac
15229
15248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15230
15249
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15231
15250
  shlibpath_var=LD_LIBRARY_PATH
15263
15282
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15264
15283
  ;;
15265
15284
 
15266
 
sco3.2v5*)
15267
 
  version_type=osf
15268
 
  soname_spec='${libname}${release}${shared_ext}$major'
15269
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270
 
  shlibpath_var=LD_LIBRARY_PATH
15271
 
  ;;
15272
 
 
15273
15285
solaris*)
15274
15286
  version_type=linux
15275
15287
  need_lib_prefix=no
15295
15307
  need_version=yes
15296
15308
  ;;
15297
15309
 
15298
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15310
sysv4 | sysv4.3*)
15299
15311
  version_type=linux
15300
15312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301
15313
  soname_spec='${libname}${release}${shared_ext}$major'
15328
15340
  fi
15329
15341
  ;;
15330
15342
 
 
15343
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15344
  version_type=freebsd-elf
 
15345
  need_lib_prefix=no
 
15346
  need_version=no
 
15347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15348
  soname_spec='${libname}${release}${shared_ext}$major'
 
15349
  shlibpath_var=LD_LIBRARY_PATH
 
15350
  hardcode_into_libs=yes
 
15351
  if test "$with_gnu_ld" = yes; then
 
15352
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15353
    shlibpath_overrides_runpath=no
 
15354
  else
 
15355
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15356
    shlibpath_overrides_runpath=yes
 
15357
    case $host_os in
 
15358
      sco3.2v5*)
 
15359
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15360
        ;;
 
15361
    esac
 
15362
  fi
 
15363
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15364
  ;;
 
15365
 
15331
15366
uts4*)
15332
15367
  version_type=linux
15333
15368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343
15378
echo "${ECHO_T}$dynamic_linker" >&6
15344
15379
test "$dynamic_linker" = no && can_build_shared=no
15345
15380
 
 
15381
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15382
if test "$GCC" = yes; then
 
15383
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15384
fi
 
15385
 
15346
15386
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15347
15387
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15348
15388
hardcode_action_F77=
15349
15389
if test -n "$hardcode_libdir_flag_spec_F77" || \
15350
 
   test -n "$runpath_var F77" || \
15351
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15390
   test -n "$runpath_var_F77" || \
 
15391
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15352
15392
 
15353
15393
  # We can hardcode non-existant directories.
15354
15394
  if test "$hardcode_direct_F77" != no &&
15380
15420
  enable_fast_install=needless
15381
15421
fi
15382
15422
 
15383
 
striplib=
15384
 
old_striplib=
15385
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15386
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15387
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15388
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15389
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15390
 
  echo "$as_me:$LINENO: result: yes" >&5
15391
 
echo "${ECHO_T}yes" >&6
15392
 
else
15393
 
# FIXME - insert some real tests, host_os isn't really good enough
15394
 
  case $host_os in
15395
 
   darwin*)
15396
 
       if test -n "$STRIP" ; then
15397
 
         striplib="$STRIP -x"
15398
 
         echo "$as_me:$LINENO: result: yes" >&5
15399
 
echo "${ECHO_T}yes" >&6
15400
 
       else
15401
 
  echo "$as_me:$LINENO: result: no" >&5
15402
 
echo "${ECHO_T}no" >&6
15403
 
fi
15404
 
       ;;
15405
 
   *)
15406
 
  echo "$as_me:$LINENO: result: no" >&5
15407
 
echo "${ECHO_T}no" >&6
15408
 
    ;;
15409
 
  esac
15410
 
fi
15411
 
 
15412
 
 
15413
15423
 
15414
15424
# The else clause should only fire when bootstrapping the
15415
15425
# libtool distribution, otherwise you forgot to ship ltmain.sh
15424
15434
  # Now quote all the things that may contain metacharacters while being
15425
15435
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15426
15436
  # variables and quote the copies for generation of the libtool script.
15427
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15437
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15428
15438
    SED SHELL STRIP \
15429
15439
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15430
15440
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15525
15535
# The host system.
15526
15536
host_alias=$host_alias
15527
15537
host=$host
 
15538
host_os=$host_os
 
15539
 
 
15540
# The build system.
 
15541
build_alias=$build_alias
 
15542
build=$build
 
15543
build_os=$build_os
15528
15544
 
15529
15545
# An echo program that does not interpret backslashes.
15530
15546
echo=$lt_echo
15536
15552
# A C compiler.
15537
15553
LTCC=$lt_LTCC
15538
15554
 
 
15555
# LTCC compiler flags.
 
15556
LTCFLAGS=$lt_LTCFLAGS
 
15557
 
15539
15558
# A language-specific compiler.
15540
15559
CC=$lt_compiler_F77
15541
15560
 
15601
15620
# Does compiler simultaneously support -c and -o options?
15602
15621
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15603
15622
 
15604
 
# Must we lock files when doing compilation ?
 
15623
# Must we lock files when doing compilation?
15605
15624
need_locks=$lt_need_locks
15606
15625
 
15607
15626
# Do we need the lib prefix for modules?
15839
15858
lt_simple_compile_test_code="class foo {}\n"
15840
15859
 
15841
15860
# Code to be used in simple link tests
15842
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15861
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15843
15862
 
15844
15863
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15845
15864
 
15846
15865
# If no C compiler was specified, use CC.
15847
15866
LTCC=${LTCC-"$CC"}
15848
15867
 
 
15868
# If no C compiler flags were specified, use CFLAGS.
 
15869
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15870
 
15849
15871
# Allow CC to be a program name with arguments.
15850
15872
compiler=$CC
15851
15873
 
15852
15874
 
 
15875
# save warnings/boilerplate of simple test code
 
15876
ac_outfile=conftest.$ac_objext
 
15877
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15878
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15879
_lt_compiler_boilerplate=`cat conftest.err`
 
15880
$rm conftest*
 
15881
 
 
15882
ac_outfile=conftest.$ac_objext
 
15883
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15884
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15885
_lt_linker_boilerplate=`cat conftest.err`
 
15886
$rm conftest*
 
15887
 
 
15888
 
15853
15889
# Allow CC to be a program name with arguments.
15854
15890
lt_save_CC="$CC"
15855
15891
CC=${GCJ-"gcj"}
15856
15892
compiler=$CC
15857
15893
compiler_GCJ=$CC
 
15894
for cc_temp in $compiler""; do
 
15895
  case $cc_temp in
 
15896
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15897
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15898
    \-*) ;;
 
15899
    *) break;;
 
15900
  esac
 
15901
done
 
15902
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15903
 
15858
15904
 
15859
15905
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15860
15906
archive_cmds_need_lc_GCJ=no
15861
15907
 
 
15908
old_archive_cmds_GCJ=$old_archive_cmds
 
15909
 
 
15910
## CAVEAT EMPTOR:
 
15911
## There is no encapsulation within the following macros, do not change
 
15912
## the running order or otherwise move them around unless you know exactly
 
15913
## what you are doing...
15862
15914
 
15863
15915
lt_prog_compiler_no_builtin_flag_GCJ=
15864
15916
 
15881
15933
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15882
15934
   # The option is referenced via a variable to avoid confusing sed.
15883
15935
   lt_compile=`echo "$ac_compile" | $SED \
15884
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15936
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15885
15937
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15886
15938
   -e 's:$: $lt_compiler_flag:'`
15887
 
   (eval echo "\"\$as_me:15887: $lt_compile\"" >&5)
 
15939
   (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
15888
15940
   (eval "$lt_compile" 2>conftest.err)
15889
15941
   ac_status=$?
15890
15942
   cat conftest.err >&5
15891
 
   echo "$as_me:15891: \$? = $ac_status" >&5
 
15943
   echo "$as_me:15943: \$? = $ac_status" >&5
15892
15944
   if (exit $ac_status) && test -s "$ac_outfile"; then
15893
15945
     # The compiler can only warn and ignore the option if not recognized
15894
 
     # So say no if there are warnings
15895
 
     if test ! -s conftest.err; then
 
15946
     # So say no if there are warnings other than the usual output.
 
15947
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15948
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15949
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15896
15950
       lt_cv_prog_compiler_rtti_exceptions=yes
15897
15951
     fi
15898
15952
   fi
15953
16007
      lt_prog_compiler_pic_GCJ='-fno-common'
15954
16008
      ;;
15955
16009
 
 
16010
    interix3*)
 
16011
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16012
      # Instead, we relocate shared libraries at runtime.
 
16013
      ;;
 
16014
 
15956
16015
    msdosdjgpp*)
15957
16016
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15958
16017
      # on systems that don't support them.
15969
16028
    hpux*)
15970
16029
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15971
16030
      # not for PA HP-UX.
15972
 
      case "$host_cpu" in
 
16031
      case $host_cpu in
15973
16032
      hppa*64*|ia64*)
15974
16033
        # +Z the default
15975
16034
        ;;
15995
16054
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15996
16055
      fi
15997
16056
      ;;
 
16057
      darwin*)
 
16058
        # PIC is the default on this platform
 
16059
        # Common symbols not allowed in MH_DYLIB files
 
16060
       case $cc_basename in
 
16061
         xlc*)
 
16062
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16063
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16064
         ;;
 
16065
       esac
 
16066
       ;;
15998
16067
 
15999
16068
    mingw* | pw32* | os2*)
16000
16069
      # This hack is so that the source file can tell whether it is being
16006
16075
      lt_prog_compiler_wl_GCJ='-Wl,'
16007
16076
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16008
16077
      # not for PA HP-UX.
16009
 
      case "$host_cpu" in
 
16078
      case $host_cpu in
16010
16079
      hppa*64*|ia64*)
16011
16080
        # +Z the default
16012
16081
        ;;
16030
16099
      ;;
16031
16100
 
16032
16101
    linux*)
16033
 
      case $CC in
 
16102
      case $cc_basename in
16034
16103
      icc* | ecc*)
16035
16104
        lt_prog_compiler_wl_GCJ='-Wl,'
16036
16105
        lt_prog_compiler_pic_GCJ='-KPIC'
16037
16106
        lt_prog_compiler_static_GCJ='-static'
16038
16107
        ;;
 
16108
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16109
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16110
        # which looks to be a dead project)
 
16111
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16112
        lt_prog_compiler_pic_GCJ='-fpic'
 
16113
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16114
        ;;
16039
16115
      ccc*)
16040
16116
        lt_prog_compiler_wl_GCJ='-Wl,'
16041
16117
        # All Alpha code is PIC.
16050
16126
      lt_prog_compiler_static_GCJ='-non_shared'
16051
16127
      ;;
16052
16128
 
16053
 
    sco3.2v5*)
16054
 
      lt_prog_compiler_pic_GCJ='-Kpic'
16055
 
      lt_prog_compiler_static_GCJ='-dn'
16056
 
      ;;
16057
 
 
16058
16129
    solaris*)
16059
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16060
16130
      lt_prog_compiler_pic_GCJ='-KPIC'
16061
16131
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16132
      case $cc_basename in
 
16133
      f77* | f90* | f95*)
 
16134
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16135
      *)
 
16136
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16137
      esac
16062
16138
      ;;
16063
16139
 
16064
16140
    sunos4*)
16067
16143
      lt_prog_compiler_static_GCJ='-Bstatic'
16068
16144
      ;;
16069
16145
 
16070
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16146
    sysv4 | sysv4.2uw2* | sysv4.3*)
16071
16147
      lt_prog_compiler_wl_GCJ='-Wl,'
16072
16148
      lt_prog_compiler_pic_GCJ='-KPIC'
16073
16149
      lt_prog_compiler_static_GCJ='-Bstatic'
16080
16156
      fi
16081
16157
      ;;
16082
16158
 
 
16159
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16160
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16161
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16162
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16163
      ;;
 
16164
 
 
16165
    unicos*)
 
16166
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16167
      lt_prog_compiler_can_build_shared_GCJ=no
 
16168
      ;;
 
16169
 
16083
16170
    uts4*)
16084
16171
      lt_prog_compiler_pic_GCJ='-pic'
16085
16172
      lt_prog_compiler_static_GCJ='-Bstatic'
16114
16201
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16115
16202
   # The option is referenced via a variable to avoid confusing sed.
16116
16203
   lt_compile=`echo "$ac_compile" | $SED \
16117
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16204
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16118
16205
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16119
16206
   -e 's:$: $lt_compiler_flag:'`
16120
 
   (eval echo "\"\$as_me:16120: $lt_compile\"" >&5)
 
16207
   (eval echo "\"\$as_me:16207: $lt_compile\"" >&5)
16121
16208
   (eval "$lt_compile" 2>conftest.err)
16122
16209
   ac_status=$?
16123
16210
   cat conftest.err >&5
16124
 
   echo "$as_me:16124: \$? = $ac_status" >&5
 
16211
   echo "$as_me:16211: \$? = $ac_status" >&5
16125
16212
   if (exit $ac_status) && test -s "$ac_outfile"; then
16126
16213
     # The compiler can only warn and ignore the option if not recognized
16127
 
     # So say no if there are warnings
16128
 
     if test ! -s conftest.err; then
 
16214
     # So say no if there are warnings other than the usual output.
 
16215
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16216
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16217
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16129
16218
       lt_prog_compiler_pic_works_GCJ=yes
16130
16219
     fi
16131
16220
   fi
16146
16235
fi
16147
16236
 
16148
16237
fi
16149
 
case "$host_os" in
 
16238
case $host_os in
16150
16239
  # For platforms which do not support PIC, -DPIC is meaningless:
16151
16240
  *djgpp*)
16152
16241
    lt_prog_compiler_pic_GCJ=
16156
16245
    ;;
16157
16246
esac
16158
16247
 
 
16248
#
 
16249
# Check to make sure the static flag actually works.
 
16250
#
 
16251
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16252
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16253
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
16254
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16256
else
 
16257
  lt_prog_compiler_static_works_GCJ=no
 
16258
   save_LDFLAGS="$LDFLAGS"
 
16259
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16260
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16261
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16262
     # The linker can only warn and ignore the option if not recognized
 
16263
     # So say no if there are warnings
 
16264
     if test -s conftest.err; then
 
16265
       # Append any errors to the config.log.
 
16266
       cat conftest.err 1>&5
 
16267
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16268
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16269
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16270
         lt_prog_compiler_static_works_GCJ=yes
 
16271
       fi
 
16272
     else
 
16273
       lt_prog_compiler_static_works_GCJ=yes
 
16274
     fi
 
16275
   fi
 
16276
   $rm conftest*
 
16277
   LDFLAGS="$save_LDFLAGS"
 
16278
 
 
16279
fi
 
16280
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16281
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
16282
 
 
16283
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16284
    :
 
16285
else
 
16286
    lt_prog_compiler_static_GCJ=
 
16287
fi
 
16288
 
 
16289
 
16159
16290
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16160
16291
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16161
16292
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16174
16305
   # Note that $ac_compile itself does not contain backslashes and begins
16175
16306
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16176
16307
   lt_compile=`echo "$ac_compile" | $SED \
16177
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16308
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16178
16309
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16179
16310
   -e 's:$: $lt_compiler_flag:'`
16180
 
   (eval echo "\"\$as_me:16180: $lt_compile\"" >&5)
 
16311
   (eval echo "\"\$as_me:16311: $lt_compile\"" >&5)
16181
16312
   (eval "$lt_compile" 2>out/conftest.err)
16182
16313
   ac_status=$?
16183
16314
   cat out/conftest.err >&5
16184
 
   echo "$as_me:16184: \$? = $ac_status" >&5
 
16315
   echo "$as_me:16315: \$? = $ac_status" >&5
16185
16316
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16186
16317
   then
16187
16318
     # The compiler can only warn and ignore the option if not recognized
16188
16319
     # So say no if there are warnings
16189
 
     if test ! -s out/conftest.err; then
 
16320
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16321
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16322
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16190
16323
       lt_cv_prog_compiler_c_o_GCJ=yes
16191
16324
     fi
16192
16325
   fi
16193
 
   chmod u+w .
 
16326
   chmod u+w . 2>&5
16194
16327
   $rm conftest*
16195
16328
   # SGI C++ compiler will create directory out/ii_files/ for
16196
16329
   # template instantiation
16266
16399
  # rely on this symbol name, it's probably fine to never include it in
16267
16400
  # preloaded symbol tables.
16268
16401
  extract_expsyms_cmds=
 
16402
  # Just being paranoid about ensuring that cc_basename is set.
 
16403
  for cc_temp in $compiler""; do
 
16404
  case $cc_temp in
 
16405
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16406
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16407
    \-*) ;;
 
16408
    *) break;;
 
16409
  esac
 
16410
done
 
16411
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16269
16412
 
16270
16413
  case $host_os in
16271
16414
  cygwin* | mingw* | pw32*)
16276
16419
      with_gnu_ld=no
16277
16420
    fi
16278
16421
    ;;
 
16422
  interix*)
 
16423
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16424
    with_gnu_ld=yes
 
16425
    ;;
16279
16426
  openbsd*)
16280
16427
    with_gnu_ld=no
16281
16428
    ;;
16286
16433
    # If archive_cmds runs LD, not CC, wlarc should be empty
16287
16434
    wlarc='${wl}'
16288
16435
 
 
16436
    # Set some defaults for GNU ld with shared library support. These
 
16437
    # are reset later if shared libraries are not supported. Putting them
 
16438
    # here allows them to be overridden if necessary.
 
16439
    runpath_var=LD_RUN_PATH
 
16440
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16441
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16442
    # ancient GNU ld didn't support --whole-archive et. al.
 
16443
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16444
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16445
      else
 
16446
        whole_archive_flag_spec_GCJ=
 
16447
    fi
 
16448
    supports_anon_versioning=no
 
16449
    case `$LD -v 2>/dev/null` in
 
16450
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16451
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16452
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16453
      *\ 2.11.*) ;; # other 2.11 versions
 
16454
      *) supports_anon_versioning=yes ;;
 
16455
    esac
 
16456
 
16289
16457
    # See if GNU ld supports shared libraries.
16290
16458
    case $host_os in
16291
16459
    aix3* | aix4* | aix5*)
16336
16504
      allow_undefined_flag_GCJ=unsupported
16337
16505
      always_export_symbols_GCJ=no
16338
16506
      enable_shared_with_static_runtimes_GCJ=yes
16339
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16507
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16340
16508
 
16341
16509
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16342
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16510
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16343
16511
        # If the export-symbols file already is a .def file (1st line
16344
16512
        # is EXPORTS), use it as is; otherwise, prepend...
16345
16513
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16348
16516
          echo EXPORTS > $output_objdir/$soname.def;
16349
16517
          cat $export_symbols >> $output_objdir/$soname.def;
16350
16518
        fi~
16351
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16352
 
      else
16353
 
        ld_shlibs=no
16354
 
      fi
16355
 
      ;;
16356
 
 
16357
 
    netbsd* | knetbsd*-gnu)
 
16519
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16520
      else
 
16521
        ld_shlibs_GCJ=no
 
16522
      fi
 
16523
      ;;
 
16524
 
 
16525
    interix3*)
 
16526
      hardcode_direct_GCJ=no
 
16527
      hardcode_shlibpath_var_GCJ=no
 
16528
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16529
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16530
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16531
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16532
      # default) and relocated if they conflict, which is a slow very memory
 
16533
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16534
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16535
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16536
      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'
 
16537
      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'
 
16538
      ;;
 
16539
 
 
16540
    linux*)
 
16541
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16542
        tmp_addflag=
 
16543
        case $cc_basename,$host_cpu in
 
16544
        pgcc*)                          # Portland Group C compiler
 
16545
          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'
 
16546
          tmp_addflag=' $pic_flag'
 
16547
          ;;
 
16548
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16549
          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'
 
16550
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16551
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16552
          tmp_addflag=' -i_dynamic' ;;
 
16553
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16554
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16555
        ifc* | ifort*)                  # Intel Fortran compiler
 
16556
          tmp_addflag=' -nofor_main' ;;
 
16557
        esac
 
16558
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16559
 
 
16560
        if test $supports_anon_versioning = yes; then
 
16561
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16562
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16563
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16564
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16565
        fi
 
16566
      else
 
16567
        ld_shlibs_GCJ=no
 
16568
      fi
 
16569
      ;;
 
16570
 
 
16571
    netbsd*)
16358
16572
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16359
16573
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16360
16574
        wlarc=
16364
16578
      fi
16365
16579
      ;;
16366
16580
 
16367
 
    solaris* | sysv5*)
 
16581
    solaris*)
16368
16582
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16369
16583
        ld_shlibs_GCJ=no
16370
16584
        cat <<EOF 1>&2
16385
16599
      fi
16386
16600
      ;;
16387
16601
 
 
16602
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16603
      case `$LD -v 2>&1` in
 
16604
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16605
        ld_shlibs_GCJ=no
 
16606
        cat <<_LT_EOF 1>&2
 
16607
 
 
16608
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16609
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16610
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16611
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16612
*** your PATH or compiler configuration so that the native linker is
 
16613
*** used, and then restart.
 
16614
 
 
16615
_LT_EOF
 
16616
        ;;
 
16617
        *)
 
16618
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16619
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16620
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16621
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16622
          else
 
16623
            ld_shlibs_GCJ=no
 
16624
          fi
 
16625
        ;;
 
16626
      esac
 
16627
      ;;
 
16628
 
16388
16629
    sunos4*)
16389
16630
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16390
16631
      wlarc=
16392
16633
      hardcode_shlibpath_var_GCJ=no
16393
16634
      ;;
16394
16635
 
16395
 
  linux*)
16396
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16397
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16398
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16399
 
      supports_anon_versioning=no
16400
 
      case `$LD -v 2>/dev/null` in
16401
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16402
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16403
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16404
 
        *\ 2.11.*) ;; # other 2.11 versions
16405
 
        *) supports_anon_versioning=yes ;;
16406
 
      esac
16407
 
      if test $supports_anon_versioning = yes; then
16408
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16409
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16410
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16411
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16412
 
      else
16413
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16414
 
      fi
16415
 
      link_all_deplibs_GCJ=no
16416
 
    else
16417
 
      ld_shlibs_GCJ=no
16418
 
    fi
16419
 
    ;;
16420
 
 
16421
16636
    *)
16422
16637
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16423
16638
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16428
16643
      ;;
16429
16644
    esac
16430
16645
 
16431
 
    if test "$ld_shlibs_GCJ" = yes; then
16432
 
      runpath_var=LD_RUN_PATH
16433
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16434
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16435
 
      # ancient GNU ld didn't support --whole-archive et. al.
16436
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16437
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16438
 
      else
16439
 
        whole_archive_flag_spec_GCJ=
16440
 
      fi
 
16646
    if test "$ld_shlibs_GCJ" = no; then
 
16647
      runpath_var=
 
16648
      hardcode_libdir_flag_spec_GCJ=
 
16649
      export_dynamic_flag_spec_GCJ=
 
16650
      whole_archive_flag_spec_GCJ=
16441
16651
    fi
16442
16652
  else
16443
16653
    # PORTME fill in a description of your system's linker (not GNU ld)
16449
16659
      # Note: this linker hardcodes the directories in LIBPATH if there
16450
16660
      # are no directories specified by -L.
16451
16661
      hardcode_minus_L_GCJ=yes
16452
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16662
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16453
16663
        # Neither direct hardcoding nor static linking is supported with a
16454
16664
        # broken collect2.
16455
16665
        hardcode_direct_GCJ=unsupported
16483
16693
            break
16484
16694
          fi
16485
16695
          done
 
16696
          ;;
16486
16697
        esac
16487
16698
 
16488
16699
        exp_sym_flag='-bexport'
16501
16712
      link_all_deplibs_GCJ=yes
16502
16713
 
16503
16714
      if test "$GCC" = yes; then
16504
 
        case $host_os in aix4.012|aix4.012.*)
 
16715
        case $host_os in aix4.[012]|aix4.[012].*)
16505
16716
        # We only want to do this on AIX 4.2 and lower, the check
16506
16717
        # below for broken collect2 doesn't work under 4.3+
16507
16718
          collect2name=`${CC} -print-prog-name=collect2`
16520
16731
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16521
16732
          hardcode_libdir_separator_GCJ=
16522
16733
          fi
 
16734
          ;;
16523
16735
        esac
16524
16736
        shared_flag='-shared'
 
16737
        if test "$aix_use_runtimelinking" = yes; then
 
16738
          shared_flag="$shared_flag "'${wl}-G'
 
16739
        fi
16525
16740
      else
16526
16741
        # not using gcc
16527
16742
        if test "$host_cpu" = ia64; then
16529
16744
        # chokes on -Wl,-G. The following line is correct:
16530
16745
          shared_flag='-G'
16531
16746
        else
16532
 
        if test "$aix_use_runtimelinking" = yes; then
 
16747
          if test "$aix_use_runtimelinking" = yes; then
16533
16748
            shared_flag='${wl}-G'
16534
16749
          else
16535
16750
            shared_flag='${wl}-bM:SRE'
16536
 
        fi
 
16751
          fi
16537
16752
        fi
16538
16753
      fi
16539
16754
 
16569
16784
  cat conftest.err >&5
16570
16785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571
16786
  (exit $ac_status); } &&
16572
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16787
         { ac_try='test -z "$ac_c_werror_flag"
 
16788
                         || test ! -s conftest.err'
16573
16789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574
16790
  (eval $ac_try) 2>&5
16575
16791
  ac_status=$?
16597
16813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16598
16814
 
16599
16815
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16600
 
        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"
 
16816
        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"
16601
16817
       else
16602
16818
        if test "$host_cpu" = ia64; then
16603
16819
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16604
16820
          allow_undefined_flag_GCJ="-z nodefs"
16605
 
          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"
 
16821
          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"
16606
16822
        else
16607
16823
         # Determine the default libpath from the value encoded in an empty executable.
16608
16824
         cat >conftest.$ac_ext <<_ACEOF
16629
16845
  cat conftest.err >&5
16630
16846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631
16847
  (exit $ac_status); } &&
16632
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16848
         { ac_try='test -z "$ac_c_werror_flag"
 
16849
                         || test ! -s conftest.err'
16633
16850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634
16851
  (eval $ac_try) 2>&5
16635
16852
  ac_status=$?
16661
16878
          # -berok will link without error, but may produce a broken library.
16662
16879
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16663
16880
          allow_undefined_flag_GCJ=' ${wl}-berok'
16664
 
          # -bexpall does not export symbols beginning with underscore (_)
16665
 
          always_export_symbols_GCJ=yes
16666
16881
          # Exported symbols can be pulled into shared objects from archives
16667
 
          whole_archive_flag_spec_GCJ=' '
 
16882
          whole_archive_flag_spec_GCJ='$convenience'
16668
16883
          archive_cmds_need_lc_GCJ=yes
16669
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16670
 
          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'
 
16884
          # This is similar to how AIX traditionally builds its shared libraries.
 
16885
          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'
16671
16886
        fi
16672
16887
      fi
16673
16888
      ;;
16680
16895
      ld_shlibs_GCJ=no
16681
16896
      ;;
16682
16897
 
16683
 
    bsdi4*)
 
16898
    bsdi[45]*)
16684
16899
      export_dynamic_flag_spec_GCJ=-rdynamic
16685
16900
      ;;
16686
16901
 
16701
16916
      old_archive_From_new_cmds_GCJ='true'
16702
16917
      # FIXME: Should let the user specify the lib program.
16703
16918
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16704
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16919
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16705
16920
      enable_shared_with_static_runtimes_GCJ=yes
16706
16921
      ;;
16707
16922
 
16708
16923
    darwin* | rhapsody*)
16709
 
    if test "$GXX" = yes ; then
 
16924
      case $host_os in
 
16925
        rhapsody* | darwin1.[012])
 
16926
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16927
         ;;
 
16928
       *) # Darwin 1.3 on
 
16929
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16930
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16931
         else
 
16932
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16933
             10.[012])
 
16934
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16935
               ;;
 
16936
             10.*)
 
16937
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16938
               ;;
 
16939
           esac
 
16940
         fi
 
16941
         ;;
 
16942
      esac
16710
16943
      archive_cmds_need_lc_GCJ=no
16711
 
      case "$host_os" in
16712
 
      rhapsody* | darwin1.[012])
16713
 
        allow_undefined_flag_GCJ='-undefined suppress'
16714
 
        ;;
16715
 
      *) # Darwin 1.3 on
16716
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16717
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16718
 
      else
16719
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16720
 
          10.[012])
16721
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16722
 
            ;;
16723
 
          10.*)
16724
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16725
 
            ;;
16726
 
        esac
16727
 
      fi
16728
 
        ;;
16729
 
      esac
16730
 
        lt_int_apple_cc_single_mod=no
16731
 
        output_verbose_link_cmd='echo'
16732
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16733
 
          lt_int_apple_cc_single_mod=yes
16734
 
        fi
16735
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16736
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16737
 
        else
16738
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16739
 
      fi
16740
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16741
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16742
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16743
 
          archive_expsym_cmds_GCJ='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}'
16744
 
        else
16745
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16746
 
        fi
16747
 
          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}'
16748
16944
      hardcode_direct_GCJ=no
16749
16945
      hardcode_automatic_GCJ=yes
16750
16946
      hardcode_shlibpath_var_GCJ=unsupported
16751
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16947
      whole_archive_flag_spec_GCJ=''
16752
16948
      link_all_deplibs_GCJ=yes
 
16949
    if test "$GCC" = yes ; then
 
16950
        output_verbose_link_cmd='echo'
 
16951
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16952
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16953
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16954
      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}'
 
16955
      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}'
16753
16956
    else
16754
 
      ld_shlibs_GCJ=no
 
16957
      case $cc_basename in
 
16958
        xlc*)
 
16959
         output_verbose_link_cmd='echo'
 
16960
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16961
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16962
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16963
         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}'
 
16964
          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}'
 
16965
          ;;
 
16966
       *)
 
16967
         ld_shlibs_GCJ=no
 
16968
          ;;
 
16969
      esac
16755
16970
    fi
16756
16971
      ;;
16757
16972
 
16785
17000
      ;;
16786
17001
 
16787
17002
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16788
 
    freebsd* | kfreebsd*-gnu)
 
17003
    freebsd* | kfreebsd*-gnu | dragonfly*)
16789
17004
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16790
17005
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16791
17006
      hardcode_direct_GCJ=yes
16808
17023
      export_dynamic_flag_spec_GCJ='${wl}-E'
16809
17024
      ;;
16810
17025
 
16811
 
    hpux10* | hpux11*)
16812
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16813
 
        case "$host_cpu" in
16814
 
        hppa*64*|ia64*)
 
17026
    hpux10*)
 
17027
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17028
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17029
      else
 
17030
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17031
      fi
 
17032
      if test "$with_gnu_ld" = no; then
 
17033
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17034
        hardcode_libdir_separator_GCJ=:
 
17035
 
 
17036
        hardcode_direct_GCJ=yes
 
17037
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17038
 
 
17039
        # hardcode_minus_L: Not really in the search PATH,
 
17040
        # but as the default location of the library.
 
17041
        hardcode_minus_L_GCJ=yes
 
17042
      fi
 
17043
      ;;
 
17044
 
 
17045
    hpux11*)
 
17046
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17047
        case $host_cpu in
 
17048
        hppa*64*)
16815
17049
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816
17050
          ;;
 
17051
        ia64*)
 
17052
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17053
          ;;
16817
17054
        *)
16818
17055
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16819
17056
          ;;
16820
17057
        esac
16821
17058
      else
16822
 
        case "$host_cpu" in
16823
 
        hppa*64*|ia64*)
16824
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17059
        case $host_cpu in
 
17060
        hppa*64*)
 
17061
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17062
          ;;
 
17063
        ia64*)
 
17064
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16825
17065
          ;;
16826
17066
        *)
16827
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17067
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16828
17068
          ;;
16829
17069
        esac
16830
17070
      fi
16831
17071
      if test "$with_gnu_ld" = no; then
16832
 
        case "$host_cpu" in
16833
 
        hppa*64*)
16834
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17072
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17073
        hardcode_libdir_separator_GCJ=:
 
17074
 
 
17075
        case $host_cpu in
 
17076
        hppa*64*|ia64*)
16835
17077
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16836
 
          hardcode_libdir_separator_GCJ=:
16837
 
          hardcode_direct_GCJ=no
16838
 
          hardcode_shlibpath_var_GCJ=no
16839
 
          ;;
16840
 
        ia64*)
16841
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16842
 
          hardcode_direct_GCJ=no
16843
 
          hardcode_shlibpath_var_GCJ=no
16844
 
 
16845
 
          # hardcode_minus_L: Not really in the search PATH,
16846
 
          # but as the default location of the library.
16847
 
          hardcode_minus_L_GCJ=yes
 
17078
          hardcode_direct_GCJ=no
 
17079
          hardcode_shlibpath_var_GCJ=no
16848
17080
          ;;
16849
17081
        *)
16850
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16851
 
          hardcode_libdir_separator_GCJ=:
16852
17082
          hardcode_direct_GCJ=yes
16853
17083
          export_dynamic_flag_spec_GCJ='${wl}-E'
16854
17084
 
16872
17102
      link_all_deplibs_GCJ=yes
16873
17103
      ;;
16874
17104
 
16875
 
    netbsd* | knetbsd*-gnu)
 
17105
    netbsd*)
16876
17106
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16877
17107
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16878
17108
      else
16896
17126
      hardcode_shlibpath_var_GCJ=no
16897
17127
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16898
17128
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17129
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16899
17130
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16900
17131
        export_dynamic_flag_spec_GCJ='${wl}-E'
16901
17132
      else
16941
17172
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16942
17173
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16943
17174
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16944
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17175
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16945
17176
 
16946
17177
        # Both c and cxx compiler support -rpath directly
16947
17178
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16949
17180
      hardcode_libdir_separator_GCJ=:
16950
17181
      ;;
16951
17182
 
16952
 
    sco3.2v5*)
16953
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954
 
      hardcode_shlibpath_var_GCJ=no
16955
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16956
 
      runpath_var=LD_RUN_PATH
16957
 
      hardcode_runpath_var=yes
16958
 
      ;;
16959
 
 
16960
17183
    solaris*)
16961
17184
      no_undefined_flag_GCJ=' -z text'
16962
17185
      if test "$GCC" = yes; then
 
17186
        wlarc='${wl}'
16963
17187
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16964
17188
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16965
17189
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16966
17190
      else
 
17191
        wlarc=''
16967
17192
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968
17193
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16969
17194
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16972
17197
      hardcode_shlibpath_var_GCJ=no
16973
17198
      case $host_os in
16974
17199
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16975
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16976
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17200
      *)
 
17201
        # The compiler driver will combine linker options so we
 
17202
        # cannot just pass the convience library names through
 
17203
        # without $wl, iff we do not link with $LD.
 
17204
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17205
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17206
        case $wlarc in
 
17207
        '')
 
17208
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17209
        *)
 
17210
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17211
        esac ;;
16977
17212
      esac
16978
17213
      link_all_deplibs_GCJ=yes
16979
17214
      ;;
17030
17265
      fi
17031
17266
      ;;
17032
17267
 
17033
 
    sysv4.2uw2*)
17034
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17035
 
      hardcode_direct_GCJ=yes
17036
 
      hardcode_minus_L_GCJ=no
17037
 
      hardcode_shlibpath_var_GCJ=no
17038
 
      hardcode_runpath_var=yes
17039
 
      runpath_var=LD_RUN_PATH
17040
 
      ;;
17041
 
 
17042
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17043
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17044
 
      if test "$GCC" = yes; then
17045
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17046
 
      else
17047
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17048
 
      fi
17049
 
      runpath_var='LD_RUN_PATH'
17050
 
      hardcode_shlibpath_var_GCJ=no
17051
 
      ;;
17052
 
 
17053
 
    sysv5*)
17054
 
      no_undefined_flag_GCJ=' -z text'
17055
 
      # $CC -shared without GNU ld will not create a library from C++
17056
 
      # object files and a static libstdc++, better avoid it by now
17057
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17058
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17059
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17060
 
      hardcode_libdir_flag_spec_GCJ=
17061
 
      hardcode_shlibpath_var_GCJ=no
17062
 
      runpath_var='LD_RUN_PATH'
 
17268
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17269
      no_undefined_flag_GCJ='${wl}-z,text'
 
17270
      archive_cmds_need_lc_GCJ=no
 
17271
      hardcode_shlibpath_var_GCJ=no
 
17272
      runpath_var='LD_RUN_PATH'
 
17273
 
 
17274
      if test "$GCC" = yes; then
 
17275
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17276
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17277
      else
 
17278
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17279
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17280
      fi
 
17281
      ;;
 
17282
 
 
17283
    sysv5* | sco3.2v5* | sco5v6*)
 
17284
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17285
      # link with -lc, and that would cause any symbols used from libc to
 
17286
      # always be unresolved, which means just about no library would
 
17287
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17288
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17289
      # as -z defs.
 
17290
      no_undefined_flag_GCJ='${wl}-z,text'
 
17291
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17292
      archive_cmds_need_lc_GCJ=no
 
17293
      hardcode_shlibpath_var_GCJ=no
 
17294
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17295
      hardcode_libdir_separator_GCJ=':'
 
17296
      link_all_deplibs_GCJ=yes
 
17297
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17298
      runpath_var='LD_RUN_PATH'
 
17299
 
 
17300
      if test "$GCC" = yes; then
 
17301
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17302
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17303
      else
 
17304
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17305
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17306
      fi
17063
17307
      ;;
17064
17308
 
17065
17309
    uts4*)
17078
17322
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17079
17323
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17080
17324
 
17081
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17082
 
if test "$GCC" = yes; then
17083
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17084
 
fi
17085
 
 
17086
17325
#
17087
17326
# Do we need to explicitly link libc?
17088
17327
#
17115
17354
        libobjs=conftest.$ac_objext
17116
17355
        deplibs=
17117
17356
        wl=$lt_prog_compiler_wl_GCJ
 
17357
        pic_flag=$lt_prog_compiler_pic_GCJ
17118
17358
        compiler_flags=-v
17119
17359
        linker_flags=-v
17120
17360
        verstring=
17247
17487
  shlibpath_var=LIBRARY_PATH
17248
17488
  ;;
17249
17489
 
17250
 
bsdi4*)
 
17490
bsdi[45]*)
17251
17491
  version_type=linux
17252
17492
  need_version=no
17253
17493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275
17515
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17276
17516
      dldir=$destdir/`dirname \$dlpath`~
17277
17517
      test -d \$dldir || mkdir -p \$dldir~
17278
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17518
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17519
      chmod a+x \$dldir/$dlname'
17279
17520
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17280
17521
      dlpath=$dir/\$dldll~
17281
17522
       $rm \$dlpath'
17305
17546
      ;;
17306
17547
    pw32*)
17307
17548
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17308
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17549
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17309
17550
      ;;
17310
17551
    esac
17311
17552
    ;;
17328
17569
  soname_spec='${libname}${release}${major}$shared_ext'
17329
17570
  shlibpath_overrides_runpath=yes
17330
17571
  shlibpath_var=DYLD_LIBRARY_PATH
17331
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17572
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17332
17573
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17333
17574
  if test "$GCC" = yes; then
17334
17575
    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"`
17363
17604
  dynamic_linker='GNU ld.so'
17364
17605
  ;;
17365
17606
 
17366
 
freebsd*)
17367
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17607
freebsd* | dragonfly*)
 
17608
  # DragonFly does not have aout.  When/if they implement a new
 
17609
  # versioning mechanism, adjust this.
 
17610
  if test -x /usr/bin/objformat; then
 
17611
    objformat=`/usr/bin/objformat`
 
17612
  else
 
17613
    case $host_os in
 
17614
    freebsd[123]*) objformat=aout ;;
 
17615
    *) objformat=elf ;;
 
17616
    esac
 
17617
  fi
17368
17618
  version_type=freebsd-$objformat
17369
17619
  case $version_type in
17370
17620
    freebsd-elf*)
17382
17632
  freebsd2*)
17383
17633
    shlibpath_overrides_runpath=yes
17384
17634
    ;;
17385
 
  freebsd3.01* | freebsdelf3.01*)
 
17635
  freebsd3.[01]* | freebsdelf3.[01]*)
17386
17636
    shlibpath_overrides_runpath=yes
17387
17637
    hardcode_into_libs=yes
17388
17638
    ;;
17389
 
  *) # from 3.2 on
 
17639
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17640
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17390
17641
    shlibpath_overrides_runpath=no
17391
17642
    hardcode_into_libs=yes
17392
17643
    ;;
 
17644
  freebsd*) # from 4.6 on
 
17645
    shlibpath_overrides_runpath=yes
 
17646
    hardcode_into_libs=yes
 
17647
    ;;
17393
17648
  esac
17394
17649
  ;;
17395
17650
 
17409
17664
  version_type=sunos
17410
17665
  need_lib_prefix=no
17411
17666
  need_version=no
17412
 
  case "$host_cpu" in
 
17667
  case $host_cpu in
17413
17668
  ia64*)
17414
17669
    shrext_cmds='.so'
17415
17670
    hardcode_into_libs=yes
17449
17704
  postinstall_cmds='chmod 555 $lib'
17450
17705
  ;;
17451
17706
 
 
17707
interix3*)
 
17708
  version_type=linux
 
17709
  need_lib_prefix=no
 
17710
  need_version=no
 
17711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17712
  soname_spec='${libname}${release}${shared_ext}$major'
 
17713
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17714
  shlibpath_var=LD_LIBRARY_PATH
 
17715
  shlibpath_overrides_runpath=no
 
17716
  hardcode_into_libs=yes
 
17717
  ;;
 
17718
 
17452
17719
irix5* | irix6* | nonstopux*)
17453
17720
  case $host_os in
17454
17721
    nonstopux*) version_type=nonstopux ;;
17508
17775
 
17509
17776
  # Append ld.so.conf contents to the search path
17510
17777
  if test -f /etc/ld.so.conf; then
17511
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17778
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17512
17779
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17513
17780
  fi
17514
17781
 
17570
17837
 
17571
17838
openbsd*)
17572
17839
  version_type=sunos
 
17840
  sys_lib_dlsearch_path_spec="/usr/lib"
17573
17841
  need_lib_prefix=no
17574
 
  need_version=yes
 
17842
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17843
  case $host_os in
 
17844
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17845
    *)                         need_version=no  ;;
 
17846
  esac
17575
17847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17576
17848
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17577
17849
  shlibpath_var=LD_LIBRARY_PATH
17609
17881
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17610
17882
  ;;
17611
17883
 
17612
 
sco3.2v5*)
17613
 
  version_type=osf
17614
 
  soname_spec='${libname}${release}${shared_ext}$major'
17615
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616
 
  shlibpath_var=LD_LIBRARY_PATH
17617
 
  ;;
17618
 
 
17619
17884
solaris*)
17620
17885
  version_type=linux
17621
17886
  need_lib_prefix=no
17641
17906
  need_version=yes
17642
17907
  ;;
17643
17908
 
17644
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17909
sysv4 | sysv4.3*)
17645
17910
  version_type=linux
17646
17911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647
17912
  soname_spec='${libname}${release}${shared_ext}$major'
17674
17939
  fi
17675
17940
  ;;
17676
17941
 
 
17942
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17943
  version_type=freebsd-elf
 
17944
  need_lib_prefix=no
 
17945
  need_version=no
 
17946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17947
  soname_spec='${libname}${release}${shared_ext}$major'
 
17948
  shlibpath_var=LD_LIBRARY_PATH
 
17949
  hardcode_into_libs=yes
 
17950
  if test "$with_gnu_ld" = yes; then
 
17951
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17952
    shlibpath_overrides_runpath=no
 
17953
  else
 
17954
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17955
    shlibpath_overrides_runpath=yes
 
17956
    case $host_os in
 
17957
      sco3.2v5*)
 
17958
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17959
        ;;
 
17960
    esac
 
17961
  fi
 
17962
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17963
  ;;
 
17964
 
17677
17965
uts4*)
17678
17966
  version_type=linux
17679
17967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689
17977
echo "${ECHO_T}$dynamic_linker" >&6
17690
17978
test "$dynamic_linker" = no && can_build_shared=no
17691
17979
 
 
17980
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17981
if test "$GCC" = yes; then
 
17982
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17983
fi
 
17984
 
17692
17985
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17693
17986
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17694
17987
hardcode_action_GCJ=
17695
17988
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17696
 
   test -n "$runpath_var GCJ" || \
17697
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17989
   test -n "$runpath_var_GCJ" || \
 
17990
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17698
17991
 
17699
17992
  # We can hardcode non-existant directories.
17700
17993
  if test "$hardcode_direct_GCJ" != no &&
17726
18019
  enable_fast_install=needless
17727
18020
fi
17728
18021
 
17729
 
striplib=
17730
 
old_striplib=
17731
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17732
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17733
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17734
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17735
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17736
 
  echo "$as_me:$LINENO: result: yes" >&5
17737
 
echo "${ECHO_T}yes" >&6
17738
 
else
17739
 
# FIXME - insert some real tests, host_os isn't really good enough
17740
 
  case $host_os in
17741
 
   darwin*)
17742
 
       if test -n "$STRIP" ; then
17743
 
         striplib="$STRIP -x"
17744
 
         echo "$as_me:$LINENO: result: yes" >&5
17745
 
echo "${ECHO_T}yes" >&6
17746
 
       else
17747
 
  echo "$as_me:$LINENO: result: no" >&5
17748
 
echo "${ECHO_T}no" >&6
17749
 
fi
17750
 
       ;;
17751
 
   *)
17752
 
  echo "$as_me:$LINENO: result: no" >&5
17753
 
echo "${ECHO_T}no" >&6
17754
 
    ;;
17755
 
  esac
17756
 
fi
17757
 
 
17758
 
if test "x$enable_dlopen" != xyes; then
17759
 
  enable_dlopen=unknown
17760
 
  enable_dlopen_self=unknown
17761
 
  enable_dlopen_self_static=unknown
17762
 
else
17763
 
  lt_cv_dlopen=no
17764
 
  lt_cv_dlopen_libs=
17765
 
 
17766
 
  case $host_os in
17767
 
  beos*)
17768
 
    lt_cv_dlopen="load_add_on"
17769
 
    lt_cv_dlopen_libs=
17770
 
    lt_cv_dlopen_self=yes
17771
 
    ;;
17772
 
 
17773
 
  mingw* | pw32*)
17774
 
    lt_cv_dlopen="LoadLibrary"
17775
 
    lt_cv_dlopen_libs=
17776
 
   ;;
17777
 
 
17778
 
  cygwin*)
17779
 
    lt_cv_dlopen="dlopen"
17780
 
    lt_cv_dlopen_libs=
17781
 
   ;;
17782
 
 
17783
 
  darwin*)
17784
 
  # if libdl is installed we need to link against it
17785
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17786
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17787
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17789
 
else
17790
 
  ac_check_lib_save_LIBS=$LIBS
17791
 
LIBS="-ldl  $LIBS"
17792
 
cat >conftest.$ac_ext <<_ACEOF
17793
 
/* confdefs.h.  */
17794
 
_ACEOF
17795
 
cat confdefs.h >>conftest.$ac_ext
17796
 
cat >>conftest.$ac_ext <<_ACEOF
17797
 
/* end confdefs.h.  */
17798
 
 
17799
 
/* Override any gcc2 internal prototype to avoid an error.  */
17800
 
#ifdef __cplusplus
17801
 
extern "C"
17802
 
#endif
17803
 
/* We use char because int might match the return type of a gcc2
17804
 
   builtin and then its argument prototype would still apply.  */
17805
 
char dlopen ();
17806
 
int
17807
 
main ()
17808
 
{
17809
 
dlopen ();
17810
 
  ;
17811
 
  return 0;
17812
 
}
17813
 
_ACEOF
17814
 
rm -f conftest.$ac_objext conftest$ac_exeext
17815
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816
 
  (eval $ac_link) 2>conftest.er1
17817
 
  ac_status=$?
17818
 
  grep -v '^ *+' conftest.er1 >conftest.err
17819
 
  rm -f conftest.er1
17820
 
  cat conftest.err >&5
17821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822
 
  (exit $ac_status); } &&
17823
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17824
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825
 
  (eval $ac_try) 2>&5
17826
 
  ac_status=$?
17827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828
 
  (exit $ac_status); }; } &&
17829
 
         { ac_try='test -s conftest$ac_exeext'
17830
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831
 
  (eval $ac_try) 2>&5
17832
 
  ac_status=$?
17833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834
 
  (exit $ac_status); }; }; then
17835
 
  ac_cv_lib_dl_dlopen=yes
17836
 
else
17837
 
  echo "$as_me: failed program was:" >&5
17838
 
sed 's/^/| /' conftest.$ac_ext >&5
17839
 
 
17840
 
ac_cv_lib_dl_dlopen=no
17841
 
fi
17842
 
rm -f conftest.err conftest.$ac_objext \
17843
 
      conftest$ac_exeext conftest.$ac_ext
17844
 
LIBS=$ac_check_lib_save_LIBS
17845
 
fi
17846
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17847
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17848
 
if test $ac_cv_lib_dl_dlopen = yes; then
17849
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17850
 
else
17851
 
 
17852
 
    lt_cv_dlopen="dyld"
17853
 
    lt_cv_dlopen_libs=
17854
 
    lt_cv_dlopen_self=yes
17855
 
 
17856
 
fi
17857
 
 
17858
 
   ;;
17859
 
 
17860
 
  *)
17861
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17862
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17863
 
if test "${ac_cv_func_shl_load+set}" = set; then
17864
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17865
 
else
17866
 
  cat >conftest.$ac_ext <<_ACEOF
17867
 
/* confdefs.h.  */
17868
 
_ACEOF
17869
 
cat confdefs.h >>conftest.$ac_ext
17870
 
cat >>conftest.$ac_ext <<_ACEOF
17871
 
/* end confdefs.h.  */
17872
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17873
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17874
 
#define shl_load innocuous_shl_load
17875
 
 
17876
 
/* System header to define __stub macros and hopefully few prototypes,
17877
 
    which can conflict with char shl_load (); below.
17878
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17879
 
    <limits.h> exists even on freestanding compilers.  */
17880
 
 
17881
 
#ifdef __STDC__
17882
 
# include <limits.h>
17883
 
#else
17884
 
# include <assert.h>
17885
 
#endif
17886
 
 
17887
 
#undef shl_load
17888
 
 
17889
 
/* Override any gcc2 internal prototype to avoid an error.  */
17890
 
#ifdef __cplusplus
17891
 
extern "C"
17892
 
{
17893
 
#endif
17894
 
/* We use char because int might match the return type of a gcc2
17895
 
   builtin and then its argument prototype would still apply.  */
17896
 
char shl_load ();
17897
 
/* The GNU C library defines this for functions which it implements
17898
 
    to always fail with ENOSYS.  Some functions are actually named
17899
 
    something starting with __ and the normal name is an alias.  */
17900
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17901
 
choke me
17902
 
#else
17903
 
char (*f) () = shl_load;
17904
 
#endif
17905
 
#ifdef __cplusplus
17906
 
}
17907
 
#endif
17908
 
 
17909
 
int
17910
 
main ()
17911
 
{
17912
 
return f != shl_load;
17913
 
  ;
17914
 
  return 0;
17915
 
}
17916
 
_ACEOF
17917
 
rm -f conftest.$ac_objext conftest$ac_exeext
17918
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919
 
  (eval $ac_link) 2>conftest.er1
17920
 
  ac_status=$?
17921
 
  grep -v '^ *+' conftest.er1 >conftest.err
17922
 
  rm -f conftest.er1
17923
 
  cat conftest.err >&5
17924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925
 
  (exit $ac_status); } &&
17926
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17927
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928
 
  (eval $ac_try) 2>&5
17929
 
  ac_status=$?
17930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931
 
  (exit $ac_status); }; } &&
17932
 
         { ac_try='test -s conftest$ac_exeext'
17933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934
 
  (eval $ac_try) 2>&5
17935
 
  ac_status=$?
17936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937
 
  (exit $ac_status); }; }; then
17938
 
  ac_cv_func_shl_load=yes
17939
 
else
17940
 
  echo "$as_me: failed program was:" >&5
17941
 
sed 's/^/| /' conftest.$ac_ext >&5
17942
 
 
17943
 
ac_cv_func_shl_load=no
17944
 
fi
17945
 
rm -f conftest.err conftest.$ac_objext \
17946
 
      conftest$ac_exeext conftest.$ac_ext
17947
 
fi
17948
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17949
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17950
 
if test $ac_cv_func_shl_load = yes; then
17951
 
  lt_cv_dlopen="shl_load"
17952
 
else
17953
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17954
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17955
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17956
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17957
 
else
17958
 
  ac_check_lib_save_LIBS=$LIBS
17959
 
LIBS="-ldld  $LIBS"
17960
 
cat >conftest.$ac_ext <<_ACEOF
17961
 
/* confdefs.h.  */
17962
 
_ACEOF
17963
 
cat confdefs.h >>conftest.$ac_ext
17964
 
cat >>conftest.$ac_ext <<_ACEOF
17965
 
/* end confdefs.h.  */
17966
 
 
17967
 
/* Override any gcc2 internal prototype to avoid an error.  */
17968
 
#ifdef __cplusplus
17969
 
extern "C"
17970
 
#endif
17971
 
/* We use char because int might match the return type of a gcc2
17972
 
   builtin and then its argument prototype would still apply.  */
17973
 
char shl_load ();
17974
 
int
17975
 
main ()
17976
 
{
17977
 
shl_load ();
17978
 
  ;
17979
 
  return 0;
17980
 
}
17981
 
_ACEOF
17982
 
rm -f conftest.$ac_objext conftest$ac_exeext
17983
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984
 
  (eval $ac_link) 2>conftest.er1
17985
 
  ac_status=$?
17986
 
  grep -v '^ *+' conftest.er1 >conftest.err
17987
 
  rm -f conftest.er1
17988
 
  cat conftest.err >&5
17989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990
 
  (exit $ac_status); } &&
17991
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17992
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993
 
  (eval $ac_try) 2>&5
17994
 
  ac_status=$?
17995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996
 
  (exit $ac_status); }; } &&
17997
 
         { ac_try='test -s conftest$ac_exeext'
17998
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999
 
  (eval $ac_try) 2>&5
18000
 
  ac_status=$?
18001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002
 
  (exit $ac_status); }; }; then
18003
 
  ac_cv_lib_dld_shl_load=yes
18004
 
else
18005
 
  echo "$as_me: failed program was:" >&5
18006
 
sed 's/^/| /' conftest.$ac_ext >&5
18007
 
 
18008
 
ac_cv_lib_dld_shl_load=no
18009
 
fi
18010
 
rm -f conftest.err conftest.$ac_objext \
18011
 
      conftest$ac_exeext conftest.$ac_ext
18012
 
LIBS=$ac_check_lib_save_LIBS
18013
 
fi
18014
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18015
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18016
 
if test $ac_cv_lib_dld_shl_load = yes; then
18017
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18018
 
else
18019
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
18020
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18021
 
if test "${ac_cv_func_dlopen+set}" = set; then
18022
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18023
 
else
18024
 
  cat >conftest.$ac_ext <<_ACEOF
18025
 
/* confdefs.h.  */
18026
 
_ACEOF
18027
 
cat confdefs.h >>conftest.$ac_ext
18028
 
cat >>conftest.$ac_ext <<_ACEOF
18029
 
/* end confdefs.h.  */
18030
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18031
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18032
 
#define dlopen innocuous_dlopen
18033
 
 
18034
 
/* System header to define __stub macros and hopefully few prototypes,
18035
 
    which can conflict with char dlopen (); below.
18036
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037
 
    <limits.h> exists even on freestanding compilers.  */
18038
 
 
18039
 
#ifdef __STDC__
18040
 
# include <limits.h>
18041
 
#else
18042
 
# include <assert.h>
18043
 
#endif
18044
 
 
18045
 
#undef dlopen
18046
 
 
18047
 
/* Override any gcc2 internal prototype to avoid an error.  */
18048
 
#ifdef __cplusplus
18049
 
extern "C"
18050
 
{
18051
 
#endif
18052
 
/* We use char because int might match the return type of a gcc2
18053
 
   builtin and then its argument prototype would still apply.  */
18054
 
char dlopen ();
18055
 
/* The GNU C library defines this for functions which it implements
18056
 
    to always fail with ENOSYS.  Some functions are actually named
18057
 
    something starting with __ and the normal name is an alias.  */
18058
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18059
 
choke me
18060
 
#else
18061
 
char (*f) () = dlopen;
18062
 
#endif
18063
 
#ifdef __cplusplus
18064
 
}
18065
 
#endif
18066
 
 
18067
 
int
18068
 
main ()
18069
 
{
18070
 
return f != dlopen;
18071
 
  ;
18072
 
  return 0;
18073
 
}
18074
 
_ACEOF
18075
 
rm -f conftest.$ac_objext conftest$ac_exeext
18076
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18077
 
  (eval $ac_link) 2>conftest.er1
18078
 
  ac_status=$?
18079
 
  grep -v '^ *+' conftest.er1 >conftest.err
18080
 
  rm -f conftest.er1
18081
 
  cat conftest.err >&5
18082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083
 
  (exit $ac_status); } &&
18084
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18085
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086
 
  (eval $ac_try) 2>&5
18087
 
  ac_status=$?
18088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089
 
  (exit $ac_status); }; } &&
18090
 
         { ac_try='test -s conftest$ac_exeext'
18091
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092
 
  (eval $ac_try) 2>&5
18093
 
  ac_status=$?
18094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095
 
  (exit $ac_status); }; }; then
18096
 
  ac_cv_func_dlopen=yes
18097
 
else
18098
 
  echo "$as_me: failed program was:" >&5
18099
 
sed 's/^/| /' conftest.$ac_ext >&5
18100
 
 
18101
 
ac_cv_func_dlopen=no
18102
 
fi
18103
 
rm -f conftest.err conftest.$ac_objext \
18104
 
      conftest$ac_exeext conftest.$ac_ext
18105
 
fi
18106
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18107
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18108
 
if test $ac_cv_func_dlopen = yes; then
18109
 
  lt_cv_dlopen="dlopen"
18110
 
else
18111
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18112
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18113
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18115
 
else
18116
 
  ac_check_lib_save_LIBS=$LIBS
18117
 
LIBS="-ldl  $LIBS"
18118
 
cat >conftest.$ac_ext <<_ACEOF
18119
 
/* confdefs.h.  */
18120
 
_ACEOF
18121
 
cat confdefs.h >>conftest.$ac_ext
18122
 
cat >>conftest.$ac_ext <<_ACEOF
18123
 
/* end confdefs.h.  */
18124
 
 
18125
 
/* Override any gcc2 internal prototype to avoid an error.  */
18126
 
#ifdef __cplusplus
18127
 
extern "C"
18128
 
#endif
18129
 
/* We use char because int might match the return type of a gcc2
18130
 
   builtin and then its argument prototype would still apply.  */
18131
 
char dlopen ();
18132
 
int
18133
 
main ()
18134
 
{
18135
 
dlopen ();
18136
 
  ;
18137
 
  return 0;
18138
 
}
18139
 
_ACEOF
18140
 
rm -f conftest.$ac_objext conftest$ac_exeext
18141
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142
 
  (eval $ac_link) 2>conftest.er1
18143
 
  ac_status=$?
18144
 
  grep -v '^ *+' conftest.er1 >conftest.err
18145
 
  rm -f conftest.er1
18146
 
  cat conftest.err >&5
18147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148
 
  (exit $ac_status); } &&
18149
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151
 
  (eval $ac_try) 2>&5
18152
 
  ac_status=$?
18153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154
 
  (exit $ac_status); }; } &&
18155
 
         { ac_try='test -s conftest$ac_exeext'
18156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157
 
  (eval $ac_try) 2>&5
18158
 
  ac_status=$?
18159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
 
  (exit $ac_status); }; }; then
18161
 
  ac_cv_lib_dl_dlopen=yes
18162
 
else
18163
 
  echo "$as_me: failed program was:" >&5
18164
 
sed 's/^/| /' conftest.$ac_ext >&5
18165
 
 
18166
 
ac_cv_lib_dl_dlopen=no
18167
 
fi
18168
 
rm -f conftest.err conftest.$ac_objext \
18169
 
      conftest$ac_exeext conftest.$ac_ext
18170
 
LIBS=$ac_check_lib_save_LIBS
18171
 
fi
18172
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18173
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18174
 
if test $ac_cv_lib_dl_dlopen = yes; then
18175
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18176
 
else
18177
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18178
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18179
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18180
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18181
 
else
18182
 
  ac_check_lib_save_LIBS=$LIBS
18183
 
LIBS="-lsvld  $LIBS"
18184
 
cat >conftest.$ac_ext <<_ACEOF
18185
 
/* confdefs.h.  */
18186
 
_ACEOF
18187
 
cat confdefs.h >>conftest.$ac_ext
18188
 
cat >>conftest.$ac_ext <<_ACEOF
18189
 
/* end confdefs.h.  */
18190
 
 
18191
 
/* Override any gcc2 internal prototype to avoid an error.  */
18192
 
#ifdef __cplusplus
18193
 
extern "C"
18194
 
#endif
18195
 
/* We use char because int might match the return type of a gcc2
18196
 
   builtin and then its argument prototype would still apply.  */
18197
 
char dlopen ();
18198
 
int
18199
 
main ()
18200
 
{
18201
 
dlopen ();
18202
 
  ;
18203
 
  return 0;
18204
 
}
18205
 
_ACEOF
18206
 
rm -f conftest.$ac_objext conftest$ac_exeext
18207
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208
 
  (eval $ac_link) 2>conftest.er1
18209
 
  ac_status=$?
18210
 
  grep -v '^ *+' conftest.er1 >conftest.err
18211
 
  rm -f conftest.er1
18212
 
  cat conftest.err >&5
18213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214
 
  (exit $ac_status); } &&
18215
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18216
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217
 
  (eval $ac_try) 2>&5
18218
 
  ac_status=$?
18219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220
 
  (exit $ac_status); }; } &&
18221
 
         { ac_try='test -s conftest$ac_exeext'
18222
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223
 
  (eval $ac_try) 2>&5
18224
 
  ac_status=$?
18225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226
 
  (exit $ac_status); }; }; then
18227
 
  ac_cv_lib_svld_dlopen=yes
18228
 
else
18229
 
  echo "$as_me: failed program was:" >&5
18230
 
sed 's/^/| /' conftest.$ac_ext >&5
18231
 
 
18232
 
ac_cv_lib_svld_dlopen=no
18233
 
fi
18234
 
rm -f conftest.err conftest.$ac_objext \
18235
 
      conftest$ac_exeext conftest.$ac_ext
18236
 
LIBS=$ac_check_lib_save_LIBS
18237
 
fi
18238
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18239
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18240
 
if test $ac_cv_lib_svld_dlopen = yes; then
18241
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18242
 
else
18243
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18244
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18245
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18246
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18247
 
else
18248
 
  ac_check_lib_save_LIBS=$LIBS
18249
 
LIBS="-ldld  $LIBS"
18250
 
cat >conftest.$ac_ext <<_ACEOF
18251
 
/* confdefs.h.  */
18252
 
_ACEOF
18253
 
cat confdefs.h >>conftest.$ac_ext
18254
 
cat >>conftest.$ac_ext <<_ACEOF
18255
 
/* end confdefs.h.  */
18256
 
 
18257
 
/* Override any gcc2 internal prototype to avoid an error.  */
18258
 
#ifdef __cplusplus
18259
 
extern "C"
18260
 
#endif
18261
 
/* We use char because int might match the return type of a gcc2
18262
 
   builtin and then its argument prototype would still apply.  */
18263
 
char dld_link ();
18264
 
int
18265
 
main ()
18266
 
{
18267
 
dld_link ();
18268
 
  ;
18269
 
  return 0;
18270
 
}
18271
 
_ACEOF
18272
 
rm -f conftest.$ac_objext conftest$ac_exeext
18273
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274
 
  (eval $ac_link) 2>conftest.er1
18275
 
  ac_status=$?
18276
 
  grep -v '^ *+' conftest.er1 >conftest.err
18277
 
  rm -f conftest.er1
18278
 
  cat conftest.err >&5
18279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280
 
  (exit $ac_status); } &&
18281
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18282
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283
 
  (eval $ac_try) 2>&5
18284
 
  ac_status=$?
18285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286
 
  (exit $ac_status); }; } &&
18287
 
         { ac_try='test -s conftest$ac_exeext'
18288
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289
 
  (eval $ac_try) 2>&5
18290
 
  ac_status=$?
18291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292
 
  (exit $ac_status); }; }; then
18293
 
  ac_cv_lib_dld_dld_link=yes
18294
 
else
18295
 
  echo "$as_me: failed program was:" >&5
18296
 
sed 's/^/| /' conftest.$ac_ext >&5
18297
 
 
18298
 
ac_cv_lib_dld_dld_link=no
18299
 
fi
18300
 
rm -f conftest.err conftest.$ac_objext \
18301
 
      conftest$ac_exeext conftest.$ac_ext
18302
 
LIBS=$ac_check_lib_save_LIBS
18303
 
fi
18304
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18305
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18306
 
if test $ac_cv_lib_dld_dld_link = yes; then
18307
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18308
 
fi
18309
 
 
18310
 
 
18311
 
fi
18312
 
 
18313
 
 
18314
 
fi
18315
 
 
18316
 
 
18317
 
fi
18318
 
 
18319
 
 
18320
 
fi
18321
 
 
18322
 
 
18323
 
fi
18324
 
 
18325
 
    ;;
18326
 
  esac
18327
 
 
18328
 
  if test "x$lt_cv_dlopen" != xno; then
18329
 
    enable_dlopen=yes
18330
 
  else
18331
 
    enable_dlopen=no
18332
 
  fi
18333
 
 
18334
 
  case $lt_cv_dlopen in
18335
 
  dlopen)
18336
 
    save_CPPFLAGS="$CPPFLAGS"
18337
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18338
 
 
18339
 
    save_LDFLAGS="$LDFLAGS"
18340
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18341
 
 
18342
 
    save_LIBS="$LIBS"
18343
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18344
 
 
18345
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18346
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18347
 
if test "${lt_cv_dlopen_self+set}" = set; then
18348
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18349
 
else
18350
 
          if test "$cross_compiling" = yes; then :
18351
 
  lt_cv_dlopen_self=cross
18352
 
else
18353
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18354
 
  lt_status=$lt_dlunknown
18355
 
  cat > conftest.$ac_ext <<EOF
18356
 
#line 18356 "configure"
18357
 
#include "confdefs.h"
18358
 
 
18359
 
#if HAVE_DLFCN_H
18360
 
#include <dlfcn.h>
18361
 
#endif
18362
 
 
18363
 
#include <stdio.h>
18364
 
 
18365
 
#ifdef RTLD_GLOBAL
18366
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18367
 
#else
18368
 
#  ifdef DL_GLOBAL
18369
 
#    define LT_DLGLOBAL         DL_GLOBAL
18370
 
#  else
18371
 
#    define LT_DLGLOBAL         0
18372
 
#  endif
18373
 
#endif
18374
 
 
18375
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18376
 
   find out it does not work in some platform. */
18377
 
#ifndef LT_DLLAZY_OR_NOW
18378
 
#  ifdef RTLD_LAZY
18379
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18380
 
#  else
18381
 
#    ifdef DL_LAZY
18382
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18383
 
#    else
18384
 
#      ifdef RTLD_NOW
18385
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18386
 
#      else
18387
 
#        ifdef DL_NOW
18388
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18389
 
#        else
18390
 
#          define LT_DLLAZY_OR_NOW      0
18391
 
#        endif
18392
 
#      endif
18393
 
#    endif
18394
 
#  endif
18395
 
#endif
18396
 
 
18397
 
#ifdef __cplusplus
18398
 
extern "C" void exit (int);
18399
 
#endif
18400
 
 
18401
 
void fnord() { int i=42;}
18402
 
int main ()
18403
 
{
18404
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18405
 
  int status = $lt_dlunknown;
18406
 
 
18407
 
  if (self)
18408
 
    {
18409
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18410
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18411
 
      /* dlclose (self); */
18412
 
    }
18413
 
 
18414
 
    exit (status);
18415
 
}
18416
 
EOF
18417
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18418
 
  (eval $ac_link) 2>&5
18419
 
  ac_status=$?
18420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18422
 
    (./conftest; exit; ) 2>/dev/null
18423
 
    lt_status=$?
18424
 
    case x$lt_status in
18425
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18426
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18427
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18428
 
    esac
18429
 
  else :
18430
 
    # compilation failed
18431
 
    lt_cv_dlopen_self=no
18432
 
  fi
18433
 
fi
18434
 
rm -fr conftest*
18435
 
 
18436
 
 
18437
 
fi
18438
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18439
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18440
 
 
18441
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18442
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18443
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18444
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18445
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18446
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18447
 
else
18448
 
          if test "$cross_compiling" = yes; then :
18449
 
  lt_cv_dlopen_self_static=cross
18450
 
else
18451
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18452
 
  lt_status=$lt_dlunknown
18453
 
  cat > conftest.$ac_ext <<EOF
18454
 
#line 18454 "configure"
18455
 
#include "confdefs.h"
18456
 
 
18457
 
#if HAVE_DLFCN_H
18458
 
#include <dlfcn.h>
18459
 
#endif
18460
 
 
18461
 
#include <stdio.h>
18462
 
 
18463
 
#ifdef RTLD_GLOBAL
18464
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18465
 
#else
18466
 
#  ifdef DL_GLOBAL
18467
 
#    define LT_DLGLOBAL         DL_GLOBAL
18468
 
#  else
18469
 
#    define LT_DLGLOBAL         0
18470
 
#  endif
18471
 
#endif
18472
 
 
18473
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18474
 
   find out it does not work in some platform. */
18475
 
#ifndef LT_DLLAZY_OR_NOW
18476
 
#  ifdef RTLD_LAZY
18477
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18478
 
#  else
18479
 
#    ifdef DL_LAZY
18480
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18481
 
#    else
18482
 
#      ifdef RTLD_NOW
18483
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18484
 
#      else
18485
 
#        ifdef DL_NOW
18486
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18487
 
#        else
18488
 
#          define LT_DLLAZY_OR_NOW      0
18489
 
#        endif
18490
 
#      endif
18491
 
#    endif
18492
 
#  endif
18493
 
#endif
18494
 
 
18495
 
#ifdef __cplusplus
18496
 
extern "C" void exit (int);
18497
 
#endif
18498
 
 
18499
 
void fnord() { int i=42;}
18500
 
int main ()
18501
 
{
18502
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18503
 
  int status = $lt_dlunknown;
18504
 
 
18505
 
  if (self)
18506
 
    {
18507
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18508
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18509
 
      /* dlclose (self); */
18510
 
    }
18511
 
 
18512
 
    exit (status);
18513
 
}
18514
 
EOF
18515
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516
 
  (eval $ac_link) 2>&5
18517
 
  ac_status=$?
18518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18520
 
    (./conftest; exit; ) 2>/dev/null
18521
 
    lt_status=$?
18522
 
    case x$lt_status in
18523
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18524
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18525
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18526
 
    esac
18527
 
  else :
18528
 
    # compilation failed
18529
 
    lt_cv_dlopen_self_static=no
18530
 
  fi
18531
 
fi
18532
 
rm -fr conftest*
18533
 
 
18534
 
 
18535
 
fi
18536
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18537
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18538
 
    fi
18539
 
 
18540
 
    CPPFLAGS="$save_CPPFLAGS"
18541
 
    LDFLAGS="$save_LDFLAGS"
18542
 
    LIBS="$save_LIBS"
18543
 
    ;;
18544
 
  esac
18545
 
 
18546
 
  case $lt_cv_dlopen_self in
18547
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18548
 
  *) enable_dlopen_self=unknown ;;
18549
 
  esac
18550
 
 
18551
 
  case $lt_cv_dlopen_self_static in
18552
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18553
 
  *) enable_dlopen_self_static=unknown ;;
18554
 
  esac
18555
 
fi
18556
 
 
18557
18022
 
18558
18023
# The else clause should only fire when bootstrapping the
18559
18024
# libtool distribution, otherwise you forgot to ship ltmain.sh
18568
18033
  # Now quote all the things that may contain metacharacters while being
18569
18034
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18570
18035
  # variables and quote the copies for generation of the libtool script.
18571
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18036
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18572
18037
    SED SHELL STRIP \
18573
18038
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18574
18039
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18669
18134
# The host system.
18670
18135
host_alias=$host_alias
18671
18136
host=$host
 
18137
host_os=$host_os
 
18138
 
 
18139
# The build system.
 
18140
build_alias=$build_alias
 
18141
build=$build
 
18142
build_os=$build_os
18672
18143
 
18673
18144
# An echo program that does not interpret backslashes.
18674
18145
echo=$lt_echo
18680
18151
# A C compiler.
18681
18152
LTCC=$lt_LTCC
18682
18153
 
 
18154
# LTCC compiler flags.
 
18155
LTCFLAGS=$lt_LTCFLAGS
 
18156
 
18683
18157
# A language-specific compiler.
18684
18158
CC=$lt_compiler_GCJ
18685
18159
 
18745
18219
# Does compiler simultaneously support -c and -o options?
18746
18220
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18747
18221
 
18748
 
# Must we lock files when doing compilation ?
 
18222
# Must we lock files when doing compilation?
18749
18223
need_locks=$lt_need_locks
18750
18224
 
18751
18225
# Do we need the lib prefix for modules?
18989
18463
# If no C compiler was specified, use CC.
18990
18464
LTCC=${LTCC-"$CC"}
18991
18465
 
 
18466
# If no C compiler flags were specified, use CFLAGS.
 
18467
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18468
 
18992
18469
# Allow CC to be a program name with arguments.
18993
18470
compiler=$CC
18994
18471
 
18995
18472
 
 
18473
# save warnings/boilerplate of simple test code
 
18474
ac_outfile=conftest.$ac_objext
 
18475
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18476
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18477
_lt_compiler_boilerplate=`cat conftest.err`
 
18478
$rm conftest*
 
18479
 
 
18480
ac_outfile=conftest.$ac_objext
 
18481
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18482
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18483
_lt_linker_boilerplate=`cat conftest.err`
 
18484
$rm conftest*
 
18485
 
 
18486
 
18996
18487
# Allow CC to be a program name with arguments.
18997
18488
lt_save_CC="$CC"
18998
18489
CC=${RC-"windres"}
18999
18490
compiler=$CC
19000
18491
compiler_RC=$CC
 
18492
for cc_temp in $compiler""; do
 
18493
  case $cc_temp in
 
18494
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18495
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18496
    \-*) ;;
 
18497
    *) break;;
 
18498
  esac
 
18499
done
 
18500
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18501
 
19001
18502
lt_cv_prog_compiler_c_o_RC=yes
19002
18503
 
19003
18504
# The else clause should only fire when bootstrapping the
19013
18514
  # Now quote all the things that may contain metacharacters while being
19014
18515
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19015
18516
  # variables and quote the copies for generation of the libtool script.
19016
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18517
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19017
18518
    SED SHELL STRIP \
19018
18519
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19019
18520
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114
18615
# The host system.
19115
18616
host_alias=$host_alias
19116
18617
host=$host
 
18618
host_os=$host_os
 
18619
 
 
18620
# The build system.
 
18621
build_alias=$build_alias
 
18622
build=$build
 
18623
build_os=$build_os
19117
18624
 
19118
18625
# An echo program that does not interpret backslashes.
19119
18626
echo=$lt_echo
19125
18632
# A C compiler.
19126
18633
LTCC=$lt_LTCC
19127
18634
 
 
18635
# LTCC compiler flags.
 
18636
LTCFLAGS=$lt_LTCFLAGS
 
18637
 
19128
18638
# A language-specific compiler.
19129
18639
CC=$lt_compiler_RC
19130
18640
 
19190
18700
# Does compiler simultaneously support -c and -o options?
19191
18701
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19192
18702
 
19193
 
# Must we lock files when doing compilation ?
 
18703
# Must we lock files when doing compilation?
19194
18704
need_locks=$lt_need_locks
19195
18705
 
19196
18706
# Do we need the lib prefix for modules?
19507
19017
  cat conftest.err >&5
19508
19018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509
19019
  (exit $ac_status); } &&
19510
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19020
         { ac_try='test -z "$ac_c_werror_flag"
 
19021
                         || test ! -s conftest.err'
19511
19022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512
19023
  (eval $ac_try) 2>&5
19513
19024
  ac_status=$?
19579
19090
  cat conftest.err >&5
19580
19091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581
19092
  (exit $ac_status); } &&
19582
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19093
         { ac_try='test -z "$ac_c_werror_flag"
 
19094
                         || test ! -s conftest.err'
19583
19095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584
19096
  (eval $ac_try) 2>&5
19585
19097
  ac_status=$?
19633
19145
  cat conftest.err >&5
19634
19146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635
19147
  (exit $ac_status); } &&
19636
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19148
         { ac_try='test -z "$ac_c_werror_flag"
 
19149
                         || test ! -s conftest.err'
19637
19150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638
19151
  (eval $ac_try) 2>&5
19639
19152
  ac_status=$?
19704
19217
  cat conftest.err >&5
19705
19218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706
19219
  (exit $ac_status); } &&
19707
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19220
         { ac_try='test -z "$ac_c_werror_flag"
 
19221
                         || test ! -s conftest.err'
19708
19222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709
19223
  (eval $ac_try) 2>&5
19710
19224
  ac_status=$?
19758
19272
  cat conftest.err >&5
19759
19273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760
19274
  (exit $ac_status); } &&
19761
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19275
         { ac_try='test -z "$ac_c_werror_flag"
 
19276
                         || test ! -s conftest.err'
19762
19277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763
19278
  (eval $ac_try) 2>&5
19764
19279
  ac_status=$?
20010
19525
  cat conftest.err >&5
20011
19526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012
19527
  (exit $ac_status); } &&
20013
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19528
         { ac_try='test -z "$ac_c_werror_flag"
 
19529
                         || test ! -s conftest.err'
20014
19530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015
19531
  (eval $ac_try) 2>&5
20016
19532
  ac_status=$?
20079
19595
  cat conftest.err >&5
20080
19596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081
19597
  (exit $ac_status); } &&
20082
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19598
         { ac_try='test -z "$ac_c_werror_flag"
 
19599
                         || test ! -s conftest.err'
20083
19600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084
19601
  (eval $ac_try) 2>&5
20085
19602
  ac_status=$?
20150
19667
  cat conftest.err >&5
20151
19668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152
19669
  (exit $ac_status); } &&
20153
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19670
         { ac_try='test -z "$ac_c_werror_flag"
 
19671
                         || test ! -s conftest.err'
20154
19672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155
19673
  (eval $ac_try) 2>&5
20156
19674
  ac_status=$?
20210
19728
  cat conftest.err >&5
20211
19729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212
19730
  (exit $ac_status); } &&
20213
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19731
         { ac_try='test -z "$ac_c_werror_flag"
 
19732
                         || test ! -s conftest.err'
20214
19733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215
19734
  (eval $ac_try) 2>&5
20216
19735
  ac_status=$?
20269
19788
  cat conftest.err >&5
20270
19789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271
19790
  (exit $ac_status); } &&
20272
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19791
         { ac_try='test -z "$ac_c_werror_flag"
 
19792
                         || test ! -s conftest.err'
20273
19793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274
19794
  (eval $ac_try) 2>&5
20275
19795
  ac_status=$?
20340
19860
  cat conftest.err >&5
20341
19861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342
19862
  (exit $ac_status); } &&
20343
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19863
         { ac_try='test -z "$ac_c_werror_flag"
 
19864
                         || test ! -s conftest.err'
20344
19865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345
19866
  (eval $ac_try) 2>&5
20346
19867
  ac_status=$?
20438
19959
  cat conftest.err >&5
20439
19960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440
19961
  (exit $ac_status); } &&
20441
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19962
         { ac_try='test -z "$ac_c_werror_flag"
 
19963
                         || test ! -s conftest.err'
20442
19964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443
19965
  (eval $ac_try) 2>&5
20444
19966
  ac_status=$?
20563
20085
  cat conftest.err >&5
20564
20086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565
20087
  (exit $ac_status); } &&
20566
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20088
         { ac_try='test -z "$ac_c_werror_flag"
 
20089
                         || test ! -s conftest.err'
20567
20090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568
20091
  (eval $ac_try) 2>&5
20569
20092
  ac_status=$?
20668
20191
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20669
20192
  lt_status=$lt_dlunknown
20670
20193
  cat > conftest.$ac_ext <<EOF
20671
 
#line 20671 "configure"
 
20194
#line 20194 "configure"
20672
20195
#include "confdefs.h"
20673
20196
 
20674
20197
#if HAVE_DLFCN_H
20725
20248
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20726
20249
      /* dlclose (self); */
20727
20250
    }
 
20251
  else
 
20252
    puts (dlerror ());
20728
20253
 
20729
20254
    exit (status);
20730
20255
}
20734
20259
  ac_status=$?
20735
20260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736
20261
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20737
 
    (./conftest; exit; ) 2>/dev/null
 
20262
    (./conftest; exit; ) >&5 2>/dev/null
20738
20263
    lt_status=$?
20739
20264
    case x$lt_status in
20740
20265
      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20741
20266
      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20742
 
      x$lt_unknown|x*)  ;;
 
20267
      x$lt_dlunknown|x*)  ;;
20743
20268
    esac
20744
20269
  else :
20745
20270
    # compilation failed
20796
20321
  hpux10*|hpux11*)
20797
20322
    libltdl_cv_sys_dlopen_deplibs=yes
20798
20323
    ;;
 
20324
  interix*)
 
20325
    libltdl_cv_sys_dlopen_deplibs=yes
 
20326
    ;;
20799
20327
  irix[12345]*|irix6.[01]*)
20800
20328
    # Catch all versions of IRIX before 6.2, and indicate that we don't
20801
20329
    # know how it worked for any of those versions.
20837
20365
  solaris*)
20838
20366
    libltdl_cv_sys_dlopen_deplibs=yes
20839
20367
    ;;
 
20368
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
20369
    libltdl_cv_sys_dlopen_deplibs=yes
 
20370
    ;;
20840
20371
  esac
20841
20372
 
20842
20373
fi
20884
20415
  cat conftest.err >&5
20885
20416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886
20417
  (exit $ac_status); } &&
20887
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20418
         { ac_try='test -z "$ac_c_werror_flag"
 
20419
                         || test ! -s conftest.err'
20888
20420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889
20421
  (eval $ac_try) 2>&5
20890
20422
  ac_status=$?
21035
20567
  cat conftest.err >&5
21036
20568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037
20569
  (exit $ac_status); } &&
21038
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20570
         { ac_try='test -z "$ac_c_werror_flag"
 
20571
                         || test ! -s conftest.err'
21039
20572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040
20573
  (eval $ac_try) 2>&5
21041
20574
  ac_status=$?
21147
20680
  cat conftest.err >&5
21148
20681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149
20682
  (exit $ac_status); } &&
21150
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20683
         { ac_try='test -z "$ac_c_werror_flag"
 
20684
                         || test ! -s conftest.err'
21151
20685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152
20686
  (eval $ac_try) 2>&5
21153
20687
  ac_status=$?
21240
20774
  cat conftest.err >&5
21241
20775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242
20776
  (exit $ac_status); } &&
21243
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20777
         { ac_try='test -z "$ac_c_werror_flag"
 
20778
                         || test ! -s conftest.err'
21244
20779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245
20780
  (eval $ac_try) 2>&5
21246
20781
  ac_status=$?
21392
20927
  cat conftest.err >&5
21393
20928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394
20929
  (exit $ac_status); } &&
21395
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20930
         { ac_try='test -z "$ac_c_werror_flag"
 
20931
                         || test ! -s conftest.err'
21396
20932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397
20933
  (eval $ac_try) 2>&5
21398
20934
  ac_status=$?
21542
21078
  cat conftest.err >&5
21543
21079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544
21080
  (exit $ac_status); } &&
21545
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21081
         { ac_try='test -z "$ac_c_werror_flag"
 
21082
                         || test ! -s conftest.err'
21546
21083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547
21084
  (eval $ac_try) 2>&5
21548
21085
  ac_status=$?
21728
21265
  cat conftest.err >&5
21729
21266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730
21267
  (exit $ac_status); } &&
21731
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21268
         { ac_try='test -z "$ac_c_werror_flag"
 
21269
                         || test ! -s conftest.err'
21732
21270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733
21271
  (eval $ac_try) 2>&5
21734
21272
  ac_status=$?
21830
21368
  cat conftest.err >&5
21831
21369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832
21370
  (exit $ac_status); } &&
21833
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21371
         { ac_try='test -z "$ac_c_werror_flag"
 
21372
                         || test ! -s conftest.err'
21834
21373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835
21374
  (eval $ac_try) 2>&5
21836
21375
  ac_status=$?
21932
21471
  cat conftest.err >&5
21933
21472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934
21473
  (exit $ac_status); } &&
21935
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21474
         { ac_try='test -z "$ac_c_werror_flag"
 
21475
                         || test ! -s conftest.err'
21936
21476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937
21477
  (eval $ac_try) 2>&5
21938
21478
  ac_status=$?
22034
21574
  cat conftest.err >&5
22035
21575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036
21576
  (exit $ac_status); } &&
22037
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21577
         { ac_try='test -z "$ac_c_werror_flag"
 
21578
                         || test ! -s conftest.err'
22038
21579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039
21580
  (eval $ac_try) 2>&5
22040
21581
  ac_status=$?
22137
21678
  cat conftest.err >&5
22138
21679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139
21680
  (exit $ac_status); } &&
22140
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21681
         { ac_try='test -z "$ac_c_werror_flag"
 
21682
                         || test ! -s conftest.err'
22141
21683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142
21684
  (eval $ac_try) 2>&5
22143
21685
  ac_status=$?
22268
21810
LTLIBOBJS=$ac_ltlibobjs
22269
21811
 
22270
21812
 
22271
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22272
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22273
 
Usually this means the macro was only invoked conditionally." >&5
22274
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22275
 
Usually this means the macro was only invoked conditionally." >&2;}
22276
 
   { (exit 1); exit 1; }; }
22277
 
fi
22278
21813
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22279
21814
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22280
21815
Usually this means the macro was only invoked conditionally." >&5
22853
22388
s,@AUTOMAKE@,$AUTOMAKE,;t t
22854
22389
s,@AUTOHEADER@,$AUTOHEADER,;t t
22855
22390
s,@MAKEINFO@,$MAKEINFO,;t t
22856
 
s,@AMTAR@,$AMTAR,;t t
22857
22391
s,@install_sh@,$install_sh,;t t
22858
22392
s,@STRIP@,$STRIP,;t t
22859
22393
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22862
22396
s,@AWK@,$AWK,;t t
22863
22397
s,@SET_MAKE@,$SET_MAKE,;t t
22864
22398
s,@am__leading_dot@,$am__leading_dot,;t t
22865
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22866
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22867
 
s,@MAINT@,$MAINT,;t t
 
22399
s,@AMTAR@,$AMTAR,;t t
 
22400
s,@am__tar@,$am__tar,;t t
 
22401
s,@am__untar@,$am__untar,;t t
22868
22402
s,@CC@,$CC,;t t
22869
22403
s,@CFLAGS@,$CFLAGS,;t t
22870
22404
s,@LDFLAGS@,$LDFLAGS,;t t
23088
22622
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23089
22623
  esac
23090
22624
 
 
22625
  if test x"$ac_file" != x-; then
 
22626
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22627
echo "$as_me: creating $ac_file" >&6;}
 
22628
    rm -f "$ac_file"
 
22629
  fi
23091
22630
  # Let's still pretend it is `configure' which instantiates (i.e., don't
23092
22631
  # use $as_me), people would be surprised to read:
23093
22632
  #    /* config.h.  Generated by config.status.  */
23126
22665
         fi;;
23127
22666
      esac
23128
22667
    done` || { (exit 1); exit 1; }
23129
 
 
23130
 
  if test x"$ac_file" != x-; then
23131
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
23132
 
echo "$as_me: creating $ac_file" >&6;}
23133
 
    rm -f "$ac_file"
23134
 
  fi
23135
22668
_ACEOF
23136
22669
cat >>$CONFIG_STATUS <<_ACEOF
23137
22670
  sed "$ac_vpsub
23545
23078
  else
23546
23079
    continue
23547
23080
  fi
23548
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23549
 
  # Extract the definition of DEP_FILES from the Makefile without
23550
 
  # running `make'.
 
23081
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23082
  # from the Makefile without running `make'.
23551
23083
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23552
23084
  test -z "$DEPDIR" && continue
 
23085
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23086
  test -z "am__include" && continue
 
23087
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23553
23088
  # When using ansi2knr, U may be empty or an underscore; expand it
23554
23089
  U=`sed -n 's/^U = //p' < "$mf"`
23555
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23556
 
  # We invoke sed twice because it is the simplest approach to
23557
 
  # changing $(DEPDIR) to its actual value in the expansion.
23558
 
  for file in `sed -n '
23559
 
    /^DEP_FILES = .*\\\\$/ {
23560
 
      s/^DEP_FILES = //
23561
 
      :loop
23562
 
        s/\\\\$//
23563
 
        p
23564
 
        n
23565
 
        /\\\\$/ b loop
23566
 
      p
23567
 
    }
23568
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
23090
  # Find all dependency output files, they are included files with
 
23091
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23092
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23093
  # expansion.
 
23094
  for file in `sed -n "
 
23095
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23569
23096
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23570
23097
    # Make sure the directory exists.
23571
23098
    test -f "$dirpart/$file" && continue