~ubuntu-branches/debian/jessie/gamin/jessie

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2007-03-23 14:43:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070323144349-1inpdk22uaneks9h
Tags: 0.1.8-2
* debian/control: Improve long description. (Closes: #405347)
* debian/patches/14_nfs-fix.patch: Fix gam_server startup for Thunar.
  Thanks to Maximiliano Curia. (Closes: #403247)

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
 
279
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
280
# if CDPATH is set.
281
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
282
 
283
283
if test -z "$ECHO"; then
284
284
if test "X${echo_test_string+set}" != Xset; then
285
285
# find a string as large as possible, as long as the shell can cope with it
286
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
290
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
291
    then
292
292
      break
391
391
 
392
392
 
393
393
 
394
 
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
 
394
tagnames=${tagnames+${tagnames},}CXX
395
395
 
396
 
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
 
396
tagnames=${tagnames+${tagnames},}F77
397
397
 
398
398
# Name of the host.
399
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
463
463
# include <unistd.h>
464
464
#endif"
465
465
 
466
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GAMIN_MAJOR_VERSION GAMIN_MINOR_VERSION GAMIN_MICRO_VERSION GAMIN_VERSION GAMIN_VERSION_INFO FAM_VERSION_INFO 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELDATE HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE PKG_CONFIG DAEMON_CFLAGS DAEMON_LIBS LIBGAMIN_CFLAGS LIBGAMIN_LIBS TEST_CFLAGS TEST_LIBS GAMIN_DEBUG_TRUE GAMIN_DEBUG_FALSE BUILD_DOCS_TRUE BUILD_DOCS_FALSE HAVE_LINUX_TRUE HAVE_LINUX_FALSE ENABLE_DNOTIFY_TRUE ENABLE_DNOTIFY_FALSE ENABLE_INOTIFY_TRUE ENABLE_INOTIFY_FALSE LIBOBJS LTLIBOBJS'
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GAMIN_MAJOR_VERSION GAMIN_MINOR_VERSION GAMIN_MICRO_VERSION GAMIN_VERSION GAMIN_VERSION_INFO FAM_VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELDATE BUILD_DOCS_TRUE BUILD_DOCS_FALSE HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG DAEMON_CFLAGS DAEMON_LIBS LIBGAMIN_CFLAGS LIBGAMIN_LIBS TEST_CFLAGS TEST_LIBS GAMIN_DEBUG_TRUE GAMIN_DEBUG_FALSE ENABLE_INOTIFY_TRUE ENABLE_INOTIFY_FALSE ENABLE_DNOTIFY_TRUE ENABLE_DNOTIFY_FALSE ENABLE_KQUEUE_TRUE ENABLE_KQUEUE_FALSE THREAD_LIBS WITH_THREADS ENABLE_HURD_MACH_NOTIFY_TRUE ENABLE_HURD_MACH_NOTIFY_FALSE MIG ac_ct_MIG PYTHON WITH_PYTHON_TRUE WITH_PYTHON_FALSE pythondir PYTHON_SUBDIR PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES LIBOBJS LTLIBOBJS'
467
467
ac_subst_files=''
468
468
 
469
469
# Initialize some variables set by options.
944
944
ac_env_FFLAGS_value=$FFLAGS
945
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
948
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
949
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
950
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
951
ac_env_DAEMON_CFLAGS_set=${DAEMON_CFLAGS+set}
 
952
ac_env_DAEMON_CFLAGS_value=$DAEMON_CFLAGS
 
953
ac_cv_env_DAEMON_CFLAGS_set=${DAEMON_CFLAGS+set}
 
954
ac_cv_env_DAEMON_CFLAGS_value=$DAEMON_CFLAGS
 
955
ac_env_DAEMON_LIBS_set=${DAEMON_LIBS+set}
 
956
ac_env_DAEMON_LIBS_value=$DAEMON_LIBS
 
957
ac_cv_env_DAEMON_LIBS_set=${DAEMON_LIBS+set}
 
958
ac_cv_env_DAEMON_LIBS_value=$DAEMON_LIBS
 
959
ac_env_LIBGAMIN_CFLAGS_set=${LIBGAMIN_CFLAGS+set}
 
960
ac_env_LIBGAMIN_CFLAGS_value=$LIBGAMIN_CFLAGS
 
961
ac_cv_env_LIBGAMIN_CFLAGS_set=${LIBGAMIN_CFLAGS+set}
 
962
ac_cv_env_LIBGAMIN_CFLAGS_value=$LIBGAMIN_CFLAGS
 
963
ac_env_LIBGAMIN_LIBS_set=${LIBGAMIN_LIBS+set}
 
964
ac_env_LIBGAMIN_LIBS_value=$LIBGAMIN_LIBS
 
965
ac_cv_env_LIBGAMIN_LIBS_set=${LIBGAMIN_LIBS+set}
 
966
ac_cv_env_LIBGAMIN_LIBS_value=$LIBGAMIN_LIBS
 
967
ac_env_TEST_CFLAGS_set=${TEST_CFLAGS+set}
 
968
ac_env_TEST_CFLAGS_value=$TEST_CFLAGS
 
969
ac_cv_env_TEST_CFLAGS_set=${TEST_CFLAGS+set}
 
970
ac_cv_env_TEST_CFLAGS_value=$TEST_CFLAGS
 
971
ac_env_TEST_LIBS_set=${TEST_LIBS+set}
 
972
ac_env_TEST_LIBS_value=$TEST_LIBS
 
973
ac_cv_env_TEST_LIBS_set=${TEST_LIBS+set}
 
974
ac_cv_env_TEST_LIBS_value=$TEST_LIBS
947
975
 
948
976
#
949
977
# Report the --help message.
1033
1061
  --disable-dependency-tracking  speeds up one-time build
1034
1062
  --enable-dependency-tracking   do not reject slow dependency extractors
1035
1063
  --disable-libtool-lock  avoid locking (might break parallel builds)
1036
 
  --enable-gtk-doc  Use gtk-doc to build documentation default=auto
1037
 
  --enable-more-warnings  Maximum compiler warnings
1038
 
  --enable-debug  Enable debugging messages
1039
 
  --enable-docs   Build documentation (requires Doxygen)
1040
 
  --disable-kernel Use polling regardless of what kernel-level systems are available
1041
 
  --disable-dnotify Disable the DNotify backend
1042
 
  --disable-inotify Disable the INotify backend
 
1064
  --enable-docs           Build documentation (requires Doxygen)
 
1065
  --enable-gtk-doc        Use gtk-doc to build documentation (default=auto)
 
1066
  --disable-more-warnings Minimum compiler warnings
 
1067
#       AC_HELP_STRING([--enable-debug], [Enable debugging support]),
 
1068
#       [debug=$enableval], [
 
1069
#       if test -d $srcdir/CVS; then
 
1070
#               debug=yes
 
1071
#       else
 
1072
#               debug=no
 
1073
#       fi
 
1074
#       ])
 
1075
          --disable-debug         Disable debugging support
 
1076
  --enable-debug-api      Enable debugging API
 
1077
  --disable-kernel        Use polling regardless of what kernel-level systems
 
1078
                          are available
 
1079
  --disable-inotify       Disable the INotify backend
 
1080
  --disable-dnotify       Disable the DNotify backend
 
1081
  --disable-kqueue        Disable the KQueue backend
 
1082
  --disable-hurd_mach_notify
 
1083
                          Disable the Hurd Mach Notify backend
1043
1084
 
1044
1085
Optional Packages:
1045
1086
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050
1091
  --with-tags[=TAGS]
1051
1092
                          include additional configurations [automatic]
1052
1093
  --with-html-dir=PATH path to installed docs
 
1094
  --with-threads          add multithread support(on)
 
1095
  --with-python[=DIR]     build Python bindings if found
1053
1096
 
1054
1097
Some influential environment variables:
1055
1098
  CC          C compiler command
1064
1107
  CXXCPP      C++ preprocessor
1065
1108
  F77         Fortran 77 compiler command
1066
1109
  FFLAGS      Fortran 77 compiler flags
 
1110
  PKG_CONFIG  path to pkg-config utility
 
1111
  DAEMON_CFLAGS
 
1112
              C compiler flags for DAEMON, overriding pkg-config
 
1113
  DAEMON_LIBS linker flags for DAEMON, overriding pkg-config
 
1114
  LIBGAMIN_CFLAGS
 
1115
              C compiler flags for LIBGAMIN, overriding pkg-config
 
1116
  LIBGAMIN_LIBS
 
1117
              linker flags for LIBGAMIN, overriding pkg-config
 
1118
  TEST_CFLAGS C compiler flags for TEST, overriding pkg-config
 
1119
  TEST_LIBS   linker flags for TEST, overriding pkg-config
1067
1120
 
1068
1121
Use these variables to override the choices made by `configure' or to help
1069
1122
it to find libraries and programs with nonstandard names/locations.
1614
1667
  program_prefix=${target_alias}-
1615
1668
 
1616
1669
GAMIN_MAJOR_VERSION=0
1617
 
GAMIN_MINOR_VERSION=0
1618
 
GAMIN_MICRO_VERSION=14
 
1670
GAMIN_MINOR_VERSION=1
 
1671
GAMIN_MICRO_VERSION=8
1619
1672
GAMIN_VERSION=$GAMIN_MAJOR_VERSION.$GAMIN_MINOR_VERSION.$GAMIN_MICRO_VERSION$GAMIN_MICRO_VERSION_SUFFIX
1620
1673
GAMIN_VERSION_INFO=`expr $GAMIN_MAJOR_VERSION + $GAMIN_MINOR_VERSION`:$GAMIN_MICRO_VERSION:$GAMIN_MINOR_VERSION
1621
1674
 
1631
1684
 
1632
1685
VERSION=${GAMIN_VERSION}
1633
1686
 
1634
 
am__api_version="1.8"
 
1687
am__api_version="1.9"
1635
1688
# Find a good install program.  We prefer a C program (faster),
1636
1689
# so one script is as good as another.  But avoid the broken or
1637
1690
# incompatible versions:
1782
1835
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1783
1836
fi
1784
1837
 
1785
 
if mkdir -p -- . 2>/dev/null; then
1786
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1787
 
  # argument.  Indeed, we sometimes output rules like
 
1838
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1839
  # We used to keeping the `.' as first argument, in order to
 
1840
  # allow $(mkdir_p) to be used without argument.  As in
1788
1841
  #   $(mkdir_p) $(somedir)
1789
 
  # where $(somedir) is conditionally defined.
1790
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1791
 
  # expensive solution, as it forces Make to start a sub-shell.)
1792
 
  mkdir_p='mkdir -p -- .'
 
1842
  # where $(somedir) is conditionally defined.  However this is wrong
 
1843
  # for two reasons:
 
1844
  #  1. if the package is installed by a user who cannot write `.'
 
1845
  #     make install will fail,
 
1846
  #  2. the above comment should most certainly read
 
1847
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1848
  #     so it does not work when $(somedir) is undefined and
 
1849
  #     $(DESTDIR) is not.
 
1850
  #  To support the latter case, we have to write
 
1851
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1852
  #  so the `.' trick is pointless.
 
1853
  mkdir_p='mkdir -p --'
1793
1854
else
1794
1855
  # On NextStep and OpenStep, the `mkdir' command does not
1795
1856
  # recognize any option.  It will interpret all options as
1796
1857
  # directories to create, and then abort because `.' already
1797
1858
  # exists.
1798
 
  for d in ./-p ./--;
 
1859
  for d in ./-p ./--version;
1799
1860
  do
1800
1861
    test -d $d && rmdir $d
1801
1862
  done
1933
1994
 
1934
1995
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1935
1996
 
1936
 
 
1937
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1938
 
 
1939
1997
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1940
1998
 
1941
1999
# Installed binaries are usually stripped using `strip' when the user
2028
2086
 
2029
2087
# We need awk for the "check" target.  The system "awk" is bad on
2030
2088
# some platforms.
 
2089
# Always define AMTAR for backward compatibility.
 
2090
 
 
2091
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2092
 
 
2093
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2094
 
 
2095
 
2031
2096
 
2032
2097
 
2033
2098
 
3140
3205
    : > sub/conftest.c
3141
3206
    for i in 1 2 3 4 5 6; do
3142
3207
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143
 
      : > sub/conftst$i.h
 
3208
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3209
      # Solaris 8's {/usr,}/bin/sh.
 
3210
      touch sub/conftst$i.h
3144
3211
    done
3145
3212
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3146
3213
 
3168
3235
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3169
3236
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3170
3237
      # icc doesn't choke on unknown options, it will just issue warnings
3171
 
      # (even with -Werror).  So we grep stderr for any message
3172
 
      # that says an option was ignored.
3173
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3238
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3239
      # that says an option was ignored or not supported.
 
3240
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3241
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3242
      # The diagnosis changed in icc 8.0:
 
3243
      #   icc: Command line remark: option '-MP' not supported
 
3244
      if (grep 'ignoring option' conftest.err ||
 
3245
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3174
3246
        am_cv_CC_dependencies_compiler_type=$depmode
3175
3247
        break
3176
3248
      fi
3221
3293
    done
3222
3294
  done
3223
3295
done
 
3296
IFS=$as_save_IFS
3224
3297
lt_ac_max=0
3225
3298
lt_ac_count=0
3226
3299
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3227
3300
# along with /bin/sed that truncates output.
3228
3301
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3229
 
  test ! -f $lt_ac_sed && break
 
3302
  test ! -f $lt_ac_sed && continue
3230
3303
  cat /dev/null > conftest.in
3231
3304
  lt_ac_count=0
3232
3305
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3251
3324
    fi
3252
3325
  done
3253
3326
done
 
3327
 
 
3328
fi
 
3329
 
3254
3330
SED=$lt_cv_path_SED
3255
3331
 
3256
 
fi
3257
 
 
3258
3332
echo "$as_me:$LINENO: result: $SED" >&5
3259
3333
echo "${ECHO_T}$SED" >&6
3260
3334
 
3297
3371
    # Accept absolute paths.
3298
3372
    [\\/]* | ?:[\\/]*)
3299
3373
      re_direlt='/[^/][^/]*/\.\./'
3300
 
      # Canonicalize the path of ld
 
3374
      # Canonicalize the pathname of ld
3301
3375
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3302
3376
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3303
3377
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3331
3405
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3332
3406
      lt_cv_path_LD="$ac_dir/$ac_prog"
3333
3407
      # Check to see if the program is GNU ld.  I'd rather use --version,
3334
 
      # but apparently some GNU ld's only accept -v.
 
3408
      # but apparently some variants of GNU ld only accept -v.
3335
3409
      # Break only if it was the GNU/non-GNU ld that we prefer.
3336
3410
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3337
3411
      *GNU* | *'with BFD'*)
3365
3439
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3366
3440
  echo $ECHO_N "(cached) $ECHO_C" >&6
3367
3441
else
3368
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3442
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3369
3443
case `$LD -v 2>&1 </dev/null` in
3370
3444
*GNU* | *'with BFD'*)
3371
3445
  lt_cv_prog_gnu_ld=yes
3395
3469
*) reload_flag=" $reload_flag" ;;
3396
3470
esac
3397
3471
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3472
case $host_os in
 
3473
  darwin*)
 
3474
    if test "$GCC" = yes; then
 
3475
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3476
    else
 
3477
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3478
    fi
 
3479
    ;;
 
3480
esac
3398
3481
 
3399
3482
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3400
3483
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3405
3488
  # Let the user override the test.
3406
3489
  lt_cv_path_NM="$NM"
3407
3490
else
3408
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3409
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3410
 
    IFS="$lt_save_ifs"
3411
 
    test -z "$ac_dir" && ac_dir=.
3412
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3413
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3414
 
      # Check to see if the nm accepts a BSD-compat flag.
3415
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3416
 
      #   nm: unknown option "B" ignored
3417
 
      # Tru64's nm complains that /dev/null is an invalid object file
3418
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3419
 
      */dev/null* | *'Invalid file or object type'*)
3420
 
        lt_cv_path_NM="$tmp_nm -B"
3421
 
        break
3422
 
        ;;
3423
 
      *)
3424
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3425
 
        */dev/null*)
3426
 
          lt_cv_path_NM="$tmp_nm -p"
 
3491
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3492
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3493
    lt_nm_to_check="$lt_nm_to_check nm"
 
3494
  fi
 
3495
  for lt_tmp_nm in $lt_nm_to_check; do
 
3496
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3497
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3498
      IFS="$lt_save_ifs"
 
3499
      test -z "$ac_dir" && ac_dir=.
 
3500
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3501
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3502
        # Check to see if the nm accepts a BSD-compat flag.
 
3503
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3504
        #   nm: unknown option "B" ignored
 
3505
        # Tru64's nm complains that /dev/null is an invalid object file
 
3506
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3507
        */dev/null* | *'Invalid file or object type'*)
 
3508
          lt_cv_path_NM="$tmp_nm -B"
3427
3509
          break
3428
3510
          ;;
3429
3511
        *)
3430
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3431
 
          continue # so that we can try to find one that supports BSD flags
 
3512
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3513
          */dev/null*)
 
3514
            lt_cv_path_NM="$tmp_nm -p"
 
3515
            break
 
3516
            ;;
 
3517
          *)
 
3518
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3519
            continue # so that we can try to find one that supports BSD flags
 
3520
            ;;
 
3521
          esac
3432
3522
          ;;
3433
3523
        esac
3434
 
      esac
3435
 
    fi
 
3524
      fi
 
3525
    done
 
3526
    IFS="$lt_save_ifs"
3436
3527
  done
3437
 
  IFS="$lt_save_ifs"
3438
3528
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3439
3529
fi
3440
3530
fi
3481
3571
  lt_cv_deplibs_check_method=pass_all
3482
3572
  ;;
3483
3573
 
3484
 
bsdi4*)
 
3574
bsdi[45]*)
3485
3575
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3486
3576
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3487
3577
  lt_cv_file_magic_test_file=/shlib/libc.so
3488
3578
  ;;
3489
3579
 
3490
 
cygwin* | mingw* | pw32*)
3491
 
  # win32_libid is a shell function defined in ltmain.sh
 
3580
cygwin*)
 
3581
  # func_win32_libid is a shell function defined in ltmain.sh
3492
3582
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3493
 
  lt_cv_file_magic_cmd='win32_libid'
 
3583
  lt_cv_file_magic_cmd='func_win32_libid'
 
3584
  ;;
 
3585
 
 
3586
mingw* | pw32*)
 
3587
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3588
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3589
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3590
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3494
3591
  ;;
3495
3592
 
3496
3593
darwin* | rhapsody*)
3497
 
  # this will be overwritten by pass_all, but leave it in just in case
3498
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3499
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3500
 
  case "$host_os" in
3501
 
  rhapsody* | darwin1.[012])
3502
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3503
 
    ;;
3504
 
  *) # Darwin 1.3 on
3505
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3506
 
    ;;
3507
 
  esac
3508
3594
  lt_cv_deplibs_check_method=pass_all
3509
3595
  ;;
3510
3596
 
3511
 
freebsd*)
 
3597
freebsd* | kfreebsd*-gnu | dragonfly*)
3512
3598
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3513
3599
    case $host_cpu in
3514
3600
    i*86 )
3515
3601
      # Not sure whether the presence of OpenBSD here was a mistake.
3516
3602
      # Let's accept both of them until this is cleared up.
3517
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3603
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3518
3604
      lt_cv_file_magic_cmd=/usr/bin/file
3519
3605
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3520
3606
      ;;
3530
3616
 
3531
3617
hpux10.20* | hpux11*)
3532
3618
  lt_cv_file_magic_cmd=/usr/bin/file
3533
 
  case "$host_cpu" in
 
3619
  case $host_cpu in
3534
3620
  ia64*)
3535
3621
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3536
3622
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3546
3632
  esac
3547
3633
  ;;
3548
3634
 
 
3635
interix3*)
 
3636
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3637
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3638
  ;;
 
3639
 
3549
3640
irix5* | irix6* | nonstopux*)
3550
 
  case $host_os in
3551
 
  irix5* | nonstopux*)
3552
 
    # this will be overridden with pass_all, but let us keep it just in case
3553
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3554
 
    ;;
3555
 
  *)
3556
 
    case $LD in
3557
 
    *-32|*"-32 ") libmagic=32-bit;;
3558
 
    *-n32|*"-n32 ") libmagic=N32;;
3559
 
    *-64|*"-64 ") libmagic=64-bit;;
3560
 
    *) libmagic=never-match;;
3561
 
    esac
3562
 
    # this will be overridden with pass_all, but let us keep it just in case
3563
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3564
 
    ;;
 
3641
  case $LD in
 
3642
  *-32|*"-32 ") libmagic=32-bit;;
 
3643
  *-n32|*"-n32 ") libmagic=N32;;
 
3644
  *-64|*"-64 ") libmagic=64-bit;;
 
3645
  *) libmagic=never-match;;
3565
3646
  esac
3566
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3567
3647
  lt_cv_deplibs_check_method=pass_all
3568
3648
  ;;
3569
3649
 
3570
3650
# This must be Linux ELF.
3571
3651
linux*)
3572
 
  case $host_cpu in
3573
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
3574
 
    lt_cv_deplibs_check_method=pass_all ;;
3575
 
  *)
3576
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3577
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3578
 
  esac
3579
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3652
  lt_cv_deplibs_check_method=pass_all
3580
3653
  ;;
3581
3654
 
3582
3655
netbsd*)
3593
3666
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3594
3667
  ;;
3595
3668
 
3596
 
nto-qnx)
 
3669
nto-qnx*)
3597
3670
  lt_cv_deplibs_check_method=unknown
3598
3671
  ;;
3599
3672
 
3600
3673
openbsd*)
3601
 
  lt_cv_file_magic_cmd=/usr/bin/file
3602
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3603
3674
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3604
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3675
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3605
3676
  else
3606
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3677
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3607
3678
  fi
3608
3679
  ;;
3609
3680
 
3610
3681
osf3* | osf4* | osf5*)
3611
 
  # this will be overridden with pass_all, but let us keep it just in case
3612
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3613
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3614
 
  lt_cv_deplibs_check_method=pass_all
3615
 
  ;;
3616
 
 
3617
 
sco3.2v5*)
3618
3682
  lt_cv_deplibs_check_method=pass_all
3619
3683
  ;;
3620
3684
 
3621
3685
solaris*)
3622
3686
  lt_cv_deplibs_check_method=pass_all
3623
 
  lt_cv_file_magic_test_file=/lib/libc.so
3624
3687
  ;;
3625
3688
 
3626
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3689
sysv4 | sysv4.3*)
3627
3690
  case $host_vendor in
3628
3691
  motorola)
3629
3692
    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]'
3644
3707
  siemens)
3645
3708
    lt_cv_deplibs_check_method=pass_all
3646
3709
    ;;
 
3710
  pc)
 
3711
    lt_cv_deplibs_check_method=pass_all
 
3712
    ;;
3647
3713
  esac
3648
3714
  ;;
3649
3715
 
3650
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3716
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3651
3717
  lt_cv_deplibs_check_method=pass_all
3652
3718
  ;;
3653
3719
esac
3665
3731
# If no C compiler was specified, use CC.
3666
3732
LTCC=${LTCC-"$CC"}
3667
3733
 
 
3734
# If no C compiler flags were specified, use CFLAGS.
 
3735
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3736
 
3668
3737
# Allow CC to be a program name with arguments.
3669
3738
compiler=$CC
3670
3739
 
3700
3769
  ;;
3701
3770
*-*-irix6*)
3702
3771
  # Find out which ABI we are using.
3703
 
  echo '#line 3703 "configure"' > conftest.$ac_ext
 
3772
  echo '#line 3772 "configure"' > conftest.$ac_ext
3704
3773
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705
3774
  (eval $ac_compile) 2>&5
3706
3775
  ac_status=$?
3743
3812
  ac_status=$?
3744
3813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
3814
  (exit $ac_status); }; then
3746
 
    case "`/usr/bin/file conftest.o`" in
 
3815
    case `/usr/bin/file conftest.o` in
3747
3816
    *32-bit*)
3748
3817
      case $host in
3749
3818
        x86_64-*linux*)
3750
3819
          LD="${LD-ld} -m elf_i386"
3751
3820
          ;;
3752
 
        ppc64-*linux*)
 
3821
        ppc64-*linux*|powerpc64-*linux*)
3753
3822
          LD="${LD-ld} -m elf32ppclinux"
3754
3823
          ;;
3755
3824
        s390x-*linux*)
3856
3925
    CFLAGS="$SAVE_CFLAGS"
3857
3926
  fi
3858
3927
  ;;
 
3928
sparc*-*solaris*)
 
3929
  # Find out which ABI we are using.
 
3930
  echo 'int i;' > conftest.$ac_ext
 
3931
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3932
  (eval $ac_compile) 2>&5
 
3933
  ac_status=$?
 
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3935
  (exit $ac_status); }; then
 
3936
    case `/usr/bin/file conftest.o` in
 
3937
    *64-bit*)
 
3938
      case $lt_cv_prog_gnu_ld in
 
3939
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3940
      *)    LD="${LD-ld} -64" ;;
 
3941
      esac
 
3942
      ;;
 
3943
    esac
 
3944
  fi
 
3945
  rm -rf conftest*
 
3946
  ;;
 
3947
 
3859
3948
 
3860
3949
esac
3861
3950
 
4881
4970
    : > sub/conftest.c
4882
4971
    for i in 1 2 3 4 5 6; do
4883
4972
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884
 
      : > sub/conftst$i.h
 
4973
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4974
      # Solaris 8's {/usr,}/bin/sh.
 
4975
      touch sub/conftst$i.h
4885
4976
    done
4886
4977
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4978
 
4909
5000
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4910
5001
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4911
5002
      # icc doesn't choke on unknown options, it will just issue warnings
4912
 
      # (even with -Werror).  So we grep stderr for any message
4913
 
      # that says an option was ignored.
4914
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5003
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5004
      # that says an option was ignored or not supported.
 
5005
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5006
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5007
      # The diagnosis changed in icc 8.0:
 
5008
      #   icc: Command line remark: option '-MP' not supported
 
5009
      if (grep 'ignoring option' conftest.err ||
 
5010
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915
5011
        am_cv_CXX_dependencies_compiler_type=$depmode
4916
5012
        break
4917
5013
      fi
4942
5038
fi
4943
5039
 
4944
5040
 
4945
 
ac_ext=cc
 
5041
 
 
5042
 
 
5043
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5044
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5045
    (test "X$CXX" != "Xg++"))) ; then
 
5046
  ac_ext=cc
4946
5047
ac_cpp='$CXXCPP $CPPFLAGS'
4947
5048
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948
5049
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172
5273
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173
5274
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5174
5275
 
 
5276
fi
 
5277
 
5175
5278
 
5176
5279
ac_ext=f
5177
5280
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5265
5368
 
5266
5369
 
5267
5370
# Provide some information about the compiler.
5268
 
echo "$as_me:5268:" \
 
5371
echo "$as_me:5371:" \
5269
5372
     "checking for Fortran 77 compiler version" >&5
5270
5373
ac_compiler=`set X $ac_compile; echo $2`
5271
5374
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5420
5523
  echo $ECHO_N "(cached) $ECHO_C" >&6
5421
5524
else
5422
5525
    i=0
5423
 
  testring="ABCD"
 
5526
  teststring="ABCD"
5424
5527
 
5425
5528
  case $build_os in
5426
5529
  msdosdjgpp*)
5449
5552
    lt_cv_sys_max_cmd_len=8192;
5450
5553
    ;;
5451
5554
 
5452
 
 *)
 
5555
  amigaos*)
 
5556
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5557
    # So we just punt and use a minimum line length of 8192.
 
5558
    lt_cv_sys_max_cmd_len=8192;
 
5559
    ;;
 
5560
 
 
5561
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5562
    # This has been around since 386BSD, at least.  Likely further.
 
5563
    if test -x /sbin/sysctl; then
 
5564
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5565
    elif test -x /usr/sbin/sysctl; then
 
5566
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5567
    else
 
5568
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5569
    fi
 
5570
    # And add a safety zone
 
5571
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5572
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5573
    ;;
 
5574
 
 
5575
  interix*)
 
5576
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5577
    lt_cv_sys_max_cmd_len=196608
 
5578
    ;;
 
5579
 
 
5580
  osf*)
 
5581
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5582
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5583
    # nice to cause kernel panics so lets avoid the loop below.
 
5584
    # First set a reasonable default.
 
5585
    lt_cv_sys_max_cmd_len=16384
 
5586
    #
 
5587
    if test -x /sbin/sysconfig; then
 
5588
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5589
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5590
      esac
 
5591
    fi
 
5592
    ;;
 
5593
  sco3.2v5*)
 
5594
    lt_cv_sys_max_cmd_len=102400
 
5595
    ;;
 
5596
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5597
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5598
    if test -n "$kargmax"; then
 
5599
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5600
    else
 
5601
      lt_cv_sys_max_cmd_len=32768
 
5602
    fi
 
5603
    ;;
 
5604
  *)
5453
5605
    # If test is not a shell built-in, we'll probably end up computing a
5454
5606
    # maximum length that is only half of the actual maximum length, but
5455
5607
    # we can't tell.
5456
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5457
 
               = "XX$testring") >/dev/null 2>&1 &&
5458
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
5608
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5609
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5610
               = "XX$teststring") >/dev/null 2>&1 &&
 
5611
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5459
5612
            lt_cv_sys_max_cmd_len=$new_result &&
5460
5613
            test $i != 17 # 1/2 MB should be enough
5461
5614
    do
5462
5615
      i=`expr $i + 1`
5463
 
      testring=$testring$testring
 
5616
      teststring=$teststring$teststring
5464
5617
    done
5465
 
    testring=
 
5618
    teststring=
5466
5619
    # Add a significant safety factor because C++ compilers can tack on massive
5467
5620
    # amounts of additional arguments before passing them to the linker.
5468
5621
    # It appears as though 1/2 is a usable value.
5499
5652
# Regexp to match symbols that can be accessed directly from C.
5500
5653
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5501
5654
 
5502
 
# Transform the above into a raw symbol and a C symbol.
5503
 
symxfrm='\1 \2\3 \3'
5504
 
 
5505
5655
# Transform an extracted symbol line into a proper C declaration
5506
5656
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5507
5657
 
5523
5673
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5524
5674
  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'"
5525
5675
  ;;
 
5676
linux*)
 
5677
  if test "$host_cpu" = ia64; then
 
5678
    symcode='[ABCDGIRSTW]'
 
5679
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5680
    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'"
 
5681
  fi
 
5682
  ;;
5526
5683
irix* | nonstopux*)
5527
5684
  symcode='[BCDEGRST]'
5528
5685
  ;;
5529
5686
osf*)
5530
5687
  symcode='[BCDEGQRST]'
5531
5688
  ;;
5532
 
solaris* | sysv5*)
 
5689
solaris*)
5533
5690
  symcode='[BDRT]'
5534
5691
  ;;
 
5692
sco3.2v5*)
 
5693
  symcode='[DT]'
 
5694
  ;;
 
5695
sysv4.2uw2*)
 
5696
  symcode='[DT]'
 
5697
  ;;
 
5698
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5699
  symcode='[ABDT]'
 
5700
  ;;
5535
5701
sysv4)
5536
5702
  symcode='[DFNSTU]'
5537
5703
  ;;
5554
5720
# Try without a prefix undercore, then with it.
5555
5721
for ac_symprfx in "" "_"; do
5556
5722
 
 
5723
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5724
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5725
 
5557
5726
  # Write the raw and C identifiers.
5558
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5727
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5559
5728
 
5560
5729
  # Check to see that the pipe works correctly.
5561
5730
  pipe_works=no
5717
5886
 
5718
5887
# Sed substitution that helps us do robust quoting.  It backslashifies
5719
5888
# metacharacters that are still active within double-quoted strings.
5720
 
Xsed='sed -e s/^X//'
 
5889
Xsed='sed -e 1s/^X//'
5721
5890
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5722
5891
 
5723
5892
# Same as above, but do not quote variable references.
5737
5906
default_ofile=libtool
5738
5907
can_build_shared=yes
5739
5908
 
5740
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5909
# All known linkers require a `.a' archive for static linking (except MSVC,
5741
5910
# which needs '.lib').
5742
5911
libext=a
5743
5912
ltmain="$ac_aux_dir/ltmain.sh"
5994
6163
test -z "$AS" && AS=as
5995
6164
test -z "$CC" && CC=cc
5996
6165
test -z "$LTCC" && LTCC=$CC
 
6166
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5997
6167
test -z "$DLLTOOL" && DLLTOOL=dlltool
5998
6168
test -z "$LD" && LD=ld
5999
6169
test -z "$LN_S" && LN_S="ln -s"
6013
6183
if test -n "$RANLIB"; then
6014
6184
  case $host_os in
6015
6185
  openbsd*)
6016
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6186
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6017
6187
    ;;
6018
6188
  *)
6019
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6020
6190
    ;;
6021
6191
  esac
6022
6192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6023
6193
fi
6024
6194
 
 
6195
for cc_temp in $compiler""; do
 
6196
  case $cc_temp in
 
6197
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6198
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6199
    \-*) ;;
 
6200
    *) break;;
 
6201
  esac
 
6202
done
 
6203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6204
 
 
6205
 
6025
6206
# Only perform the check for file, if the check method requires it
6026
6207
case $deplibs_check_method in
6027
6208
file_magic*)
6047
6228
      if test -n "$file_magic_test_file"; then
6048
6229
        case $deplibs_check_method in
6049
6230
        "file_magic "*)
6050
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6231
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6051
6232
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6052
6233
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6053
6234
            $EGREP "$file_magic_regex" > /dev/null; then
6109
6290
      if test -n "$file_magic_test_file"; then
6110
6291
        case $deplibs_check_method in
6111
6292
        "file_magic "*)
6112
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6293
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6113
6294
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6114
6295
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6115
6296
            $EGREP "$file_magic_regex" > /dev/null; then
6204
6385
# If no C compiler was specified, use CC.
6205
6386
LTCC=${LTCC-"$CC"}
6206
6387
 
 
6388
# If no C compiler flags were specified, use CFLAGS.
 
6389
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6390
 
6207
6391
# Allow CC to be a program name with arguments.
6208
6392
compiler=$CC
6209
6393
 
6210
6394
 
6211
 
#
6212
 
# Check for any special shared library compilation flags.
6213
 
#
6214
 
lt_prog_cc_shlib=
6215
 
if test "$GCC" = no; then
6216
 
  case $host_os in
6217
 
  sco3.2v5*)
6218
 
    lt_prog_cc_shlib='-belf'
6219
 
    ;;
6220
 
  esac
6221
 
fi
6222
 
if test -n "$lt_prog_cc_shlib"; then
6223
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6224
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6225
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6226
 
  else
6227
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6228
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6229
 
    lt_cv_prog_cc_can_build_shared=no
6230
 
  fi
6231
 
fi
6232
 
 
6233
 
 
6234
 
#
6235
 
# Check to make sure the static flag actually works.
6236
 
#
6237
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6238
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6239
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6241
 
else
6242
 
  lt_prog_compiler_static_works=no
6243
 
   save_LDFLAGS="$LDFLAGS"
6244
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6245
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6246
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6247
 
     # The compiler can only warn and ignore the option if not recognized
6248
 
     # So say no if there are warnings
6249
 
     if test -s conftest.err; then
6250
 
       # Append any errors to the config.log.
6251
 
       cat conftest.err 1>&5
6252
 
     else
6253
 
       lt_prog_compiler_static_works=yes
6254
 
     fi
6255
 
   fi
6256
 
   $rm conftest*
6257
 
   LDFLAGS="$save_LDFLAGS"
6258
 
 
6259
 
fi
6260
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6261
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6262
 
 
6263
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6264
 
    :
6265
 
else
6266
 
    lt_prog_compiler_static=
6267
 
fi
6268
 
 
 
6395
# save warnings/boilerplate of simple test code
 
6396
ac_outfile=conftest.$ac_objext
 
6397
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6398
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6399
_lt_compiler_boilerplate=`cat conftest.err`
 
6400
$rm conftest*
 
6401
 
 
6402
ac_outfile=conftest.$ac_objext
 
6403
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6404
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6405
_lt_linker_boilerplate=`cat conftest.err`
 
6406
$rm conftest*
6269
6407
 
6270
6408
 
6271
6409
 
6274
6412
if test "$GCC" = yes; then
6275
6413
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6276
6414
 
6277
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6415
 
 
6416
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6278
6417
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6279
6418
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6280
6419
  echo $ECHO_N "(cached) $ECHO_C" >&6
6289
6428
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6290
6429
   # The option is referenced via a variable to avoid confusing sed.
6291
6430
   lt_compile=`echo "$ac_compile" | $SED \
6292
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6431
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6293
6432
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6294
6433
   -e 's:$: $lt_compiler_flag:'`
6295
 
   (eval echo "\"\$as_me:6295: $lt_compile\"" >&5)
 
6434
   (eval echo "\"\$as_me:6434: $lt_compile\"" >&5)
6296
6435
   (eval "$lt_compile" 2>conftest.err)
6297
6436
   ac_status=$?
6298
6437
   cat conftest.err >&5
6299
 
   echo "$as_me:6299: \$? = $ac_status" >&5
 
6438
   echo "$as_me:6438: \$? = $ac_status" >&5
6300
6439
   if (exit $ac_status) && test -s "$ac_outfile"; then
6301
6440
     # The compiler can only warn and ignore the option if not recognized
6302
 
     # So say no if there are warnings
6303
 
     if test ! -s conftest.err; then
 
6441
     # So say no if there are warnings other than the usual output.
 
6442
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6443
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6444
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6304
6445
       lt_cv_prog_compiler_rtti_exceptions=yes
6305
6446
     fi
6306
6447
   fi
6361
6502
      lt_prog_compiler_pic='-fno-common'
6362
6503
      ;;
6363
6504
 
 
6505
    interix3*)
 
6506
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6507
      # Instead, we relocate shared libraries at runtime.
 
6508
      ;;
 
6509
 
6364
6510
    msdosdjgpp*)
6365
6511
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6366
6512
      # on systems that don't support them.
6377
6523
    hpux*)
6378
6524
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6379
6525
      # not for PA HP-UX.
6380
 
      case "$host_cpu" in
 
6526
      case $host_cpu in
6381
6527
      hppa*64*|ia64*)
6382
6528
        # +Z the default
6383
6529
        ;;
6403
6549
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6404
6550
      fi
6405
6551
      ;;
 
6552
      darwin*)
 
6553
        # PIC is the default on this platform
 
6554
        # Common symbols not allowed in MH_DYLIB files
 
6555
       case $cc_basename in
 
6556
         xlc*)
 
6557
         lt_prog_compiler_pic='-qnocommon'
 
6558
         lt_prog_compiler_wl='-Wl,'
 
6559
         ;;
 
6560
       esac
 
6561
       ;;
6406
6562
 
6407
6563
    mingw* | pw32* | os2*)
6408
6564
      # This hack is so that the source file can tell whether it is being
6414
6570
      lt_prog_compiler_wl='-Wl,'
6415
6571
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6416
6572
      # not for PA HP-UX.
6417
 
      case "$host_cpu" in
 
6573
      case $host_cpu in
6418
6574
      hppa*64*|ia64*)
6419
6575
        # +Z the default
6420
6576
        ;;
6438
6594
      ;;
6439
6595
 
6440
6596
    linux*)
6441
 
      case $CC in
6442
 
      icc|ecc)
 
6597
      case $cc_basename in
 
6598
      icc* | ecc*)
6443
6599
        lt_prog_compiler_wl='-Wl,'
6444
6600
        lt_prog_compiler_pic='-KPIC'
6445
6601
        lt_prog_compiler_static='-static'
6446
6602
        ;;
6447
 
      ccc)
 
6603
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6604
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6605
        # which looks to be a dead project)
 
6606
        lt_prog_compiler_wl='-Wl,'
 
6607
        lt_prog_compiler_pic='-fpic'
 
6608
        lt_prog_compiler_static='-Bstatic'
 
6609
        ;;
 
6610
      ccc*)
6448
6611
        lt_prog_compiler_wl='-Wl,'
6449
6612
        # All Alpha code is PIC.
6450
6613
        lt_prog_compiler_static='-non_shared'
6458
6621
      lt_prog_compiler_static='-non_shared'
6459
6622
      ;;
6460
6623
 
6461
 
    sco3.2v5*)
6462
 
      lt_prog_compiler_pic='-Kpic'
6463
 
      lt_prog_compiler_static='-dn'
6464
 
      ;;
6465
 
 
6466
6624
    solaris*)
6467
 
      lt_prog_compiler_wl='-Wl,'
6468
6625
      lt_prog_compiler_pic='-KPIC'
6469
6626
      lt_prog_compiler_static='-Bstatic'
 
6627
      case $cc_basename in
 
6628
      f77* | f90* | f95*)
 
6629
        lt_prog_compiler_wl='-Qoption ld ';;
 
6630
      *)
 
6631
        lt_prog_compiler_wl='-Wl,';;
 
6632
      esac
6470
6633
      ;;
6471
6634
 
6472
6635
    sunos4*)
6475
6638
      lt_prog_compiler_static='-Bstatic'
6476
6639
      ;;
6477
6640
 
6478
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6641
    sysv4 | sysv4.2uw2* | sysv4.3*)
6479
6642
      lt_prog_compiler_wl='-Wl,'
6480
6643
      lt_prog_compiler_pic='-KPIC'
6481
6644
      lt_prog_compiler_static='-Bstatic'
6488
6651
      fi
6489
6652
      ;;
6490
6653
 
 
6654
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6655
      lt_prog_compiler_wl='-Wl,'
 
6656
      lt_prog_compiler_pic='-KPIC'
 
6657
      lt_prog_compiler_static='-Bstatic'
 
6658
      ;;
 
6659
 
 
6660
    unicos*)
 
6661
      lt_prog_compiler_wl='-Wl,'
 
6662
      lt_prog_compiler_can_build_shared=no
 
6663
      ;;
 
6664
 
6491
6665
    uts4*)
6492
6666
      lt_prog_compiler_pic='-pic'
6493
6667
      lt_prog_compiler_static='-Bstatic'
6506
6680
# Check to make sure the PIC flag actually works.
6507
6681
#
6508
6682
if test -n "$lt_prog_compiler_pic"; then
6509
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6683
 
 
6684
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6510
6685
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6511
6686
if test "${lt_prog_compiler_pic_works+set}" = set; then
6512
6687
  echo $ECHO_N "(cached) $ECHO_C" >&6
6521
6696
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6522
6697
   # The option is referenced via a variable to avoid confusing sed.
6523
6698
   lt_compile=`echo "$ac_compile" | $SED \
6524
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6699
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6525
6700
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6526
6701
   -e 's:$: $lt_compiler_flag:'`
6527
 
   (eval echo "\"\$as_me:6527: $lt_compile\"" >&5)
 
6702
   (eval echo "\"\$as_me:6702: $lt_compile\"" >&5)
6528
6703
   (eval "$lt_compile" 2>conftest.err)
6529
6704
   ac_status=$?
6530
6705
   cat conftest.err >&5
6531
 
   echo "$as_me:6531: \$? = $ac_status" >&5
 
6706
   echo "$as_me:6706: \$? = $ac_status" >&5
6532
6707
   if (exit $ac_status) && test -s "$ac_outfile"; then
6533
6708
     # The compiler can only warn and ignore the option if not recognized
6534
 
     # So say no if there are warnings
6535
 
     if test ! -s conftest.err; then
 
6709
     # So say no if there are warnings other than the usual output.
 
6710
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6711
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6712
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6536
6713
       lt_prog_compiler_pic_works=yes
6537
6714
     fi
6538
6715
   fi
6553
6730
fi
6554
6731
 
6555
6732
fi
6556
 
case "$host_os" in
 
6733
case $host_os in
6557
6734
  # For platforms which do not support PIC, -DPIC is meaningless:
6558
6735
  *djgpp*)
6559
6736
    lt_prog_compiler_pic=
6563
6740
    ;;
6564
6741
esac
6565
6742
 
 
6743
#
 
6744
# Check to make sure the static flag actually works.
 
6745
#
 
6746
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6747
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6748
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6749
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6751
else
 
6752
  lt_prog_compiler_static_works=no
 
6753
   save_LDFLAGS="$LDFLAGS"
 
6754
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6755
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6756
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6757
     # The linker can only warn and ignore the option if not recognized
 
6758
     # So say no if there are warnings
 
6759
     if test -s conftest.err; then
 
6760
       # Append any errors to the config.log.
 
6761
       cat conftest.err 1>&5
 
6762
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6763
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6764
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6765
         lt_prog_compiler_static_works=yes
 
6766
       fi
 
6767
     else
 
6768
       lt_prog_compiler_static_works=yes
 
6769
     fi
 
6770
   fi
 
6771
   $rm conftest*
 
6772
   LDFLAGS="$save_LDFLAGS"
 
6773
 
 
6774
fi
 
6775
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6776
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6777
 
 
6778
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6779
    :
 
6780
else
 
6781
    lt_prog_compiler_static=
 
6782
fi
 
6783
 
 
6784
 
6566
6785
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6567
6786
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6568
6787
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6575
6794
   mkdir out
6576
6795
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6577
6796
 
6578
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6579
 
   # that will create temporary files in the current directory regardless of
6580
 
   # the output directory.  Thus, making CWD read-only will cause this test
6581
 
   # to fail, enabling locking or at least warning the user not to do parallel
6582
 
   # builds.
6583
 
   chmod -w .
6584
 
 
6585
6797
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6586
6798
   # Insert the option either (1) after the last *FLAGS variable, or
6587
6799
   # (2) before a word containing "conftest.", or (3) at the end.
6588
6800
   # Note that $ac_compile itself does not contain backslashes and begins
6589
6801
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6590
6802
   lt_compile=`echo "$ac_compile" | $SED \
6591
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6803
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6592
6804
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593
6805
   -e 's:$: $lt_compiler_flag:'`
6594
 
   (eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
 
6806
   (eval echo "\"\$as_me:6806: $lt_compile\"" >&5)
6595
6807
   (eval "$lt_compile" 2>out/conftest.err)
6596
6808
   ac_status=$?
6597
6809
   cat out/conftest.err >&5
6598
 
   echo "$as_me:6598: \$? = $ac_status" >&5
 
6810
   echo "$as_me:6810: \$? = $ac_status" >&5
6599
6811
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600
6812
   then
6601
6813
     # The compiler can only warn and ignore the option if not recognized
6602
6814
     # So say no if there are warnings
6603
 
     if test ! -s out/conftest.err; then
 
6815
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6816
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6817
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6604
6818
       lt_cv_prog_compiler_c_o=yes
6605
6819
     fi
6606
6820
   fi
6607
 
   chmod u+w .
6608
 
   $rm conftest* out/*
6609
 
   rmdir out
 
6821
   chmod u+w . 2>&5
 
6822
   $rm conftest*
 
6823
   # SGI C++ compiler will create directory out/ii_files/ for
 
6824
   # template instantiation
 
6825
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6826
   $rm out/* && rmdir out
6610
6827
   cd ..
6611
6828
   rmdir conftest
6612
6829
   $rm conftest*
6677
6894
  # rely on this symbol name, it's probably fine to never include it in
6678
6895
  # preloaded symbol tables.
6679
6896
  extract_expsyms_cmds=
 
6897
  # Just being paranoid about ensuring that cc_basename is set.
 
6898
  for cc_temp in $compiler""; do
 
6899
  case $cc_temp in
 
6900
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6901
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6902
    \-*) ;;
 
6903
    *) break;;
 
6904
  esac
 
6905
done
 
6906
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6680
6907
 
6681
6908
  case $host_os in
6682
6909
  cygwin* | mingw* | pw32*)
6687
6914
      with_gnu_ld=no
6688
6915
    fi
6689
6916
    ;;
 
6917
  interix*)
 
6918
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6919
    with_gnu_ld=yes
 
6920
    ;;
6690
6921
  openbsd*)
6691
6922
    with_gnu_ld=no
6692
6923
    ;;
6697
6928
    # If archive_cmds runs LD, not CC, wlarc should be empty
6698
6929
    wlarc='${wl}'
6699
6930
 
 
6931
    # Set some defaults for GNU ld with shared library support. These
 
6932
    # are reset later if shared libraries are not supported. Putting them
 
6933
    # here allows them to be overridden if necessary.
 
6934
    runpath_var=LD_RUN_PATH
 
6935
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6936
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6937
    # ancient GNU ld didn't support --whole-archive et. al.
 
6938
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6939
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6940
      else
 
6941
        whole_archive_flag_spec=
 
6942
    fi
 
6943
    supports_anon_versioning=no
 
6944
    case `$LD -v 2>/dev/null` in
 
6945
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6946
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6947
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6948
      *\ 2.11.*) ;; # other 2.11 versions
 
6949
      *) supports_anon_versioning=yes ;;
 
6950
    esac
 
6951
 
6700
6952
    # See if GNU ld supports shared libraries.
6701
6953
    case $host_os in
6702
6954
    aix3* | aix4* | aix5*)
6747
6999
      allow_undefined_flag=unsupported
6748
7000
      always_export_symbols=no
6749
7001
      enable_shared_with_static_runtimes=yes
6750
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7002
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6751
7003
 
6752
7004
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6753
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7005
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6754
7006
        # If the export-symbols file already is a .def file (1st line
6755
7007
        # is EXPORTS), use it as is; otherwise, prepend...
6756
7008
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759
7011
          echo EXPORTS > $output_objdir/$soname.def;
6760
7012
          cat $export_symbols >> $output_objdir/$soname.def;
6761
7013
        fi~
6762
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7014
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7015
      else
 
7016
        ld_shlibs=no
 
7017
      fi
 
7018
      ;;
 
7019
 
 
7020
    interix3*)
 
7021
      hardcode_direct=no
 
7022
      hardcode_shlibpath_var=no
 
7023
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7024
      export_dynamic_flag_spec='${wl}-E'
 
7025
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7026
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7027
      # default) and relocated if they conflict, which is a slow very memory
 
7028
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7029
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7030
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7031
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7032
      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'
 
7033
      ;;
 
7034
 
 
7035
    linux*)
 
7036
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7037
        tmp_addflag=
 
7038
        case $cc_basename,$host_cpu in
 
7039
        pgcc*)                          # Portland Group C compiler
 
7040
          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'
 
7041
          tmp_addflag=' $pic_flag'
 
7042
          ;;
 
7043
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7044
          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'
 
7045
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7046
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7047
          tmp_addflag=' -i_dynamic' ;;
 
7048
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7049
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7050
        ifc* | ifort*)                  # Intel Fortran compiler
 
7051
          tmp_addflag=' -nofor_main' ;;
 
7052
        esac
 
7053
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7054
 
 
7055
        if test $supports_anon_versioning = yes; then
 
7056
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7057
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7058
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7059
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7060
        fi
6763
7061
      else
6764
7062
        ld_shlibs=no
6765
7063
      fi
6775
7073
      fi
6776
7074
      ;;
6777
7075
 
6778
 
    solaris* | sysv5*)
 
7076
    solaris*)
6779
7077
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6780
7078
        ld_shlibs=no
6781
7079
        cat <<EOF 1>&2
6796
7094
      fi
6797
7095
      ;;
6798
7096
 
 
7097
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7098
      case `$LD -v 2>&1` in
 
7099
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7100
        ld_shlibs=no
 
7101
        cat <<_LT_EOF 1>&2
 
7102
 
 
7103
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7104
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7105
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7106
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7107
*** your PATH or compiler configuration so that the native linker is
 
7108
*** used, and then restart.
 
7109
 
 
7110
_LT_EOF
 
7111
        ;;
 
7112
        *)
 
7113
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7114
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7115
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7116
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7117
          else
 
7118
            ld_shlibs=no
 
7119
          fi
 
7120
        ;;
 
7121
      esac
 
7122
      ;;
 
7123
 
6799
7124
    sunos4*)
6800
7125
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6801
7126
      wlarc=
6803
7128
      hardcode_shlibpath_var=no
6804
7129
      ;;
6805
7130
 
6806
 
  linux*)
6807
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6808
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809
 
        archive_cmds="$tmp_archive_cmds"
6810
 
      supports_anon_versioning=no
6811
 
      case `$LD -v 2>/dev/null` in
6812
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6813
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6814
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6815
 
        *\ 2.11.*) ;; # other 2.11 versions
6816
 
        *) supports_anon_versioning=yes ;;
6817
 
      esac
6818
 
      if test $supports_anon_versioning = yes; then
6819
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6820
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6821
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6822
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6823
 
      else
6824
 
        archive_expsym_cmds="$tmp_archive_cmds"
6825
 
      fi
6826
 
    else
6827
 
      ld_shlibs=no
6828
 
    fi
6829
 
    ;;
6830
 
 
6831
7131
    *)
6832
7132
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6833
7133
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838
7138
      ;;
6839
7139
    esac
6840
7140
 
6841
 
    if test "$ld_shlibs" = yes; then
6842
 
      runpath_var=LD_RUN_PATH
6843
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6844
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6845
 
      # ancient GNU ld didn't support --whole-archive et. al.
6846
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6847
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6848
 
      else
6849
 
        whole_archive_flag_spec=
6850
 
      fi
 
7141
    if test "$ld_shlibs" = no; then
 
7142
      runpath_var=
 
7143
      hardcode_libdir_flag_spec=
 
7144
      export_dynamic_flag_spec=
 
7145
      whole_archive_flag_spec=
6851
7146
    fi
6852
7147
  else
6853
7148
    # PORTME fill in a description of your system's linker (not GNU ld)
6859
7154
      # Note: this linker hardcodes the directories in LIBPATH if there
6860
7155
      # are no directories specified by -L.
6861
7156
      hardcode_minus_L=yes
6862
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7157
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6863
7158
        # Neither direct hardcoding nor static linking is supported with a
6864
7159
        # broken collect2.
6865
7160
        hardcode_direct=unsupported
6893
7188
            break
6894
7189
          fi
6895
7190
          done
 
7191
          ;;
6896
7192
        esac
6897
7193
 
6898
7194
        exp_sym_flag='-bexport'
6911
7207
      link_all_deplibs=yes
6912
7208
 
6913
7209
      if test "$GCC" = yes; then
6914
 
        case $host_os in aix4.012|aix4.012.*)
 
7210
        case $host_os in aix4.[012]|aix4.[012].*)
6915
7211
        # We only want to do this on AIX 4.2 and lower, the check
6916
7212
        # below for broken collect2 doesn't work under 4.3+
6917
7213
          collect2name=`${CC} -print-prog-name=collect2`
6930
7226
          hardcode_libdir_flag_spec='-L$libdir'
6931
7227
          hardcode_libdir_separator=
6932
7228
          fi
 
7229
          ;;
6933
7230
        esac
6934
7231
        shared_flag='-shared'
 
7232
        if test "$aix_use_runtimelinking" = yes; then
 
7233
          shared_flag="$shared_flag "'${wl}-G'
 
7234
        fi
6935
7235
      else
6936
7236
        # not using gcc
6937
7237
        if test "$host_cpu" = ia64; then
6939
7239
        # chokes on -Wl,-G. The following line is correct:
6940
7240
          shared_flag='-G'
6941
7241
        else
6942
 
        if test "$aix_use_runtimelinking" = yes; then
 
7242
          if test "$aix_use_runtimelinking" = yes; then
6943
7243
            shared_flag='${wl}-G'
6944
7244
          else
6945
7245
            shared_flag='${wl}-bM:SRE'
6946
 
        fi
 
7246
          fi
6947
7247
        fi
6948
7248
      fi
6949
7249
 
7008
7308
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7009
7309
 
7010
7310
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7011
 
        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"
 
7311
        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"
7012
7312
       else
7013
7313
        if test "$host_cpu" = ia64; then
7014
7314
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7015
7315
          allow_undefined_flag="-z nodefs"
7016
 
          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"
 
7316
          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"
7017
7317
        else
7018
7318
         # Determine the default libpath from the value encoded in an empty executable.
7019
7319
         cat >conftest.$ac_ext <<_ACEOF
7073
7373
          # -berok will link without error, but may produce a broken library.
7074
7374
          no_undefined_flag=' ${wl}-bernotok'
7075
7375
          allow_undefined_flag=' ${wl}-berok'
7076
 
          # -bexpall does not export symbols beginning with underscore (_)
7077
 
          always_export_symbols=yes
7078
7376
          # Exported symbols can be pulled into shared objects from archives
7079
 
          whole_archive_flag_spec=' '
 
7377
          whole_archive_flag_spec='$convenience'
7080
7378
          archive_cmds_need_lc=yes
7081
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7082
 
          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'
 
7379
          # This is similar to how AIX traditionally builds its shared libraries.
 
7380
          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'
7083
7381
        fi
7084
7382
      fi
7085
7383
      ;;
7092
7390
      ld_shlibs=no
7093
7391
      ;;
7094
7392
 
7095
 
    bsdi4*)
 
7393
    bsdi[45]*)
7096
7394
      export_dynamic_flag_spec=-rdynamic
7097
7395
      ;;
7098
7396
 
7106
7404
      # Tell ltmain to make .lib files, not .a files.
7107
7405
      libext=lib
7108
7406
      # Tell ltmain to make .dll files, not .so files.
7109
 
      shrext=".dll"
 
7407
      shrext_cmds=".dll"
7110
7408
      # FIXME: Setting linknames here is a bad hack.
7111
7409
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7112
7410
      # The linker will automatically build a .lib file if we build a DLL.
7118
7416
      ;;
7119
7417
 
7120
7418
    darwin* | rhapsody*)
7121
 
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
7419
      case $host_os in
 
7420
        rhapsody* | darwin1.[012])
 
7421
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7422
         ;;
 
7423
       *) # Darwin 1.3 on
 
7424
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7425
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7426
         else
 
7427
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7428
             10.[012])
 
7429
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7430
               ;;
 
7431
             10.*)
 
7432
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7433
               ;;
 
7434
           esac
 
7435
         fi
 
7436
         ;;
 
7437
      esac
7122
7438
      archive_cmds_need_lc=no
7123
 
      case "$host_os" in
7124
 
      rhapsody* | darwin1.[012])
7125
 
        allow_undefined_flag='-undefined suppress'
7126
 
        ;;
7127
 
      *) # Darwin 1.3 on
7128
 
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7129
 
        ;;
7130
 
      esac
7131
 
      # FIXME: Relying on posixy $() will cause problems for
7132
 
      #        cross-compilation, but unfortunately the echo tests do not
7133
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7134
 
      #        `"' quotes if we put them in here... so don't!
7135
 
        lt_int_apple_cc_single_mod=no
7136
 
        output_verbose_link_cmd='echo'
7137
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7138
 
          lt_int_apple_cc_single_mod=yes
7139
 
        fi
7140
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7142
 
        else
7143
 
        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'
7144
 
      fi
7145
 
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7146
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7147
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7148
 
          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}'
7149
 
        else
7150
 
          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}'
7151
 
        fi
7152
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7153
7439
      hardcode_direct=no
7154
7440
      hardcode_automatic=yes
7155
7441
      hardcode_shlibpath_var=unsupported
7156
 
      whole_archive_flag_spec='-all_load $convenience'
 
7442
      whole_archive_flag_spec=''
7157
7443
      link_all_deplibs=yes
 
7444
    if test "$GCC" = yes ; then
 
7445
        output_verbose_link_cmd='echo'
 
7446
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7447
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7448
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7449
      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}'
 
7450
      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}'
 
7451
    else
 
7452
      case $cc_basename in
 
7453
        xlc*)
 
7454
         output_verbose_link_cmd='echo'
 
7455
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7456
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7457
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7458
         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}'
 
7459
          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}'
 
7460
          ;;
 
7461
       *)
 
7462
         ld_shlibs=no
 
7463
          ;;
 
7464
      esac
7158
7465
    fi
7159
7466
      ;;
7160
7467
 
7188
7495
      ;;
7189
7496
 
7190
7497
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7191
 
    freebsd*)
 
7498
    freebsd* | kfreebsd*-gnu | dragonfly*)
7192
7499
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7193
7500
      hardcode_libdir_flag_spec='-R$libdir'
7194
7501
      hardcode_direct=yes
7211
7518
      export_dynamic_flag_spec='${wl}-E'
7212
7519
      ;;
7213
7520
 
7214
 
    hpux10* | hpux11*)
7215
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7216
 
        case "$host_cpu" in
7217
 
        hppa*64*|ia64*)
 
7521
    hpux10*)
 
7522
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7523
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7524
      else
 
7525
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7526
      fi
 
7527
      if test "$with_gnu_ld" = no; then
 
7528
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7529
        hardcode_libdir_separator=:
 
7530
 
 
7531
        hardcode_direct=yes
 
7532
        export_dynamic_flag_spec='${wl}-E'
 
7533
 
 
7534
        # hardcode_minus_L: Not really in the search PATH,
 
7535
        # but as the default location of the library.
 
7536
        hardcode_minus_L=yes
 
7537
      fi
 
7538
      ;;
 
7539
 
 
7540
    hpux11*)
 
7541
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7542
        case $host_cpu in
 
7543
        hppa*64*)
7218
7544
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219
7545
          ;;
 
7546
        ia64*)
 
7547
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7548
          ;;
7220
7549
        *)
7221
7550
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7222
7551
          ;;
7223
7552
        esac
7224
7553
      else
7225
 
        case "$host_cpu" in
7226
 
        hppa*64*|ia64*)
7227
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7554
        case $host_cpu in
 
7555
        hppa*64*)
 
7556
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7557
          ;;
 
7558
        ia64*)
 
7559
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7228
7560
          ;;
7229
7561
        *)
7230
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7562
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7231
7563
          ;;
7232
7564
        esac
7233
7565
      fi
7234
7566
      if test "$with_gnu_ld" = no; then
7235
 
        case "$host_cpu" in
7236
 
        hppa*64*)
7237
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7567
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7568
        hardcode_libdir_separator=:
 
7569
 
 
7570
        case $host_cpu in
 
7571
        hppa*64*|ia64*)
7238
7572
          hardcode_libdir_flag_spec_ld='+b $libdir'
7239
 
          hardcode_libdir_separator=:
7240
 
          hardcode_direct=no
7241
 
          hardcode_shlibpath_var=no
7242
 
          ;;
7243
 
        ia64*)
7244
 
          hardcode_libdir_flag_spec='-L$libdir'
7245
 
          hardcode_direct=no
7246
 
          hardcode_shlibpath_var=no
7247
 
 
7248
 
          # hardcode_minus_L: Not really in the search PATH,
7249
 
          # but as the default location of the library.
7250
 
          hardcode_minus_L=yes
 
7573
          hardcode_direct=no
 
7574
          hardcode_shlibpath_var=no
7251
7575
          ;;
7252
7576
        *)
7253
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7254
 
          hardcode_libdir_separator=:
7255
7577
          hardcode_direct=yes
7256
7578
          export_dynamic_flag_spec='${wl}-E'
7257
7579
 
7299
7621
      hardcode_shlibpath_var=no
7300
7622
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301
7623
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7624
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7302
7625
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7303
7626
        export_dynamic_flag_spec='${wl}-E'
7304
7627
      else
7344
7667
        allow_undefined_flag=' -expect_unresolved \*'
7345
7668
        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'
7346
7669
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7347
 
        $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'
 
7670
        $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'
7348
7671
 
7349
7672
        # Both c and cxx compiler support -rpath directly
7350
7673
        hardcode_libdir_flag_spec='-rpath $libdir'
7352
7675
      hardcode_libdir_separator=:
7353
7676
      ;;
7354
7677
 
7355
 
    sco3.2v5*)
7356
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357
 
      hardcode_shlibpath_var=no
7358
 
      export_dynamic_flag_spec='${wl}-Bexport'
7359
 
      runpath_var=LD_RUN_PATH
7360
 
      hardcode_runpath_var=yes
7361
 
      ;;
7362
 
 
7363
7678
    solaris*)
7364
7679
      no_undefined_flag=' -z text'
7365
7680
      if test "$GCC" = yes; then
 
7681
        wlarc='${wl}'
7366
7682
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7367
7683
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7368
7684
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7369
7685
      else
 
7686
        wlarc=''
7370
7687
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371
7688
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7372
7689
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7375
7692
      hardcode_shlibpath_var=no
7376
7693
      case $host_os in
7377
7694
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7378
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7379
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7695
      *)
 
7696
        # The compiler driver will combine linker options so we
 
7697
        # cannot just pass the convience library names through
 
7698
        # without $wl, iff we do not link with $LD.
 
7699
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7700
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7701
        case $wlarc in
 
7702
        '')
 
7703
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7704
        *)
 
7705
          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' ;;
 
7706
        esac ;;
7380
7707
      esac
7381
7708
      link_all_deplibs=yes
7382
7709
      ;;
7433
7760
      fi
7434
7761
      ;;
7435
7762
 
7436
 
    sysv4.2uw2*)
7437
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438
 
      hardcode_direct=yes
7439
 
      hardcode_minus_L=no
7440
 
      hardcode_shlibpath_var=no
7441
 
      hardcode_runpath_var=yes
7442
 
      runpath_var=LD_RUN_PATH
7443
 
      ;;
7444
 
 
7445
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7446
 
      no_undefined_flag='${wl}-z ${wl}text'
7447
 
      if test "$GCC" = yes; then
7448
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449
 
      else
7450
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7451
 
      fi
7452
 
      runpath_var='LD_RUN_PATH'
7453
 
      hardcode_shlibpath_var=no
7454
 
      ;;
7455
 
 
7456
 
    sysv5*)
7457
 
      no_undefined_flag=' -z text'
7458
 
      # $CC -shared without GNU ld will not create a library from C++
7459
 
      # object files and a static libstdc++, better avoid it by now
7460
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7462
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7463
 
      hardcode_libdir_flag_spec=
7464
 
      hardcode_shlibpath_var=no
7465
 
      runpath_var='LD_RUN_PATH'
 
7763
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7764
      no_undefined_flag='${wl}-z,text'
 
7765
      archive_cmds_need_lc=no
 
7766
      hardcode_shlibpath_var=no
 
7767
      runpath_var='LD_RUN_PATH'
 
7768
 
 
7769
      if test "$GCC" = yes; then
 
7770
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7771
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7772
      else
 
7773
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7774
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7775
      fi
 
7776
      ;;
 
7777
 
 
7778
    sysv5* | sco3.2v5* | sco5v6*)
 
7779
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7780
      # link with -lc, and that would cause any symbols used from libc to
 
7781
      # always be unresolved, which means just about no library would
 
7782
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7783
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7784
      # as -z defs.
 
7785
      no_undefined_flag='${wl}-z,text'
 
7786
      allow_undefined_flag='${wl}-z,nodefs'
 
7787
      archive_cmds_need_lc=no
 
7788
      hardcode_shlibpath_var=no
 
7789
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7790
      hardcode_libdir_separator=':'
 
7791
      link_all_deplibs=yes
 
7792
      export_dynamic_flag_spec='${wl}-Bexport'
 
7793
      runpath_var='LD_RUN_PATH'
 
7794
 
 
7795
      if test "$GCC" = yes; then
 
7796
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7797
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7798
      else
 
7799
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7800
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7801
      fi
7466
7802
      ;;
7467
7803
 
7468
7804
    uts4*)
7481
7817
echo "${ECHO_T}$ld_shlibs" >&6
7482
7818
test "$ld_shlibs" = no && can_build_shared=no
7483
7819
 
7484
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7485
 
if test "$GCC" = yes; then
7486
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7487
 
fi
7488
 
 
7489
7820
#
7490
7821
# Do we need to explicitly link libc?
7491
7822
#
7518
7849
        libobjs=conftest.$ac_objext
7519
7850
        deplibs=
7520
7851
        wl=$lt_prog_compiler_wl
 
7852
        pic_flag=$lt_prog_compiler_pic
7521
7853
        compiler_flags=-v
7522
7854
        linker_flags=-v
7523
7855
        verstring=
7548
7880
  ;;
7549
7881
esac
7550
7882
 
 
7883
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7884
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7885
library_names_spec=
 
7886
libname_spec='lib$name'
 
7887
soname_spec=
 
7888
shrext_cmds=".so"
 
7889
postinstall_cmds=
 
7890
postuninstall_cmds=
 
7891
finish_cmds=
 
7892
finish_eval=
 
7893
shlibpath_var=
 
7894
shlibpath_overrides_runpath=unknown
 
7895
version_type=none
 
7896
dynamic_linker="$host_os ld.so"
 
7897
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7898
if test "$GCC" = yes; then
 
7899
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7900
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7901
    # if the path contains ";" then we assume it to be the separator
 
7902
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7903
    # assumed that no part of a normal pathname contains ";" but that should
 
7904
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7905
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7906
  else
 
7907
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7908
  fi
 
7909
else
 
7910
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7911
fi
 
7912
need_lib_prefix=unknown
 
7913
hardcode_into_libs=no
 
7914
 
 
7915
# when you set need_version to no, make sure it does not cause -set_version
 
7916
# flags to be left without arguments
 
7917
need_version=unknown
 
7918
 
 
7919
case $host_os in
 
7920
aix3*)
 
7921
  version_type=linux
 
7922
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7923
  shlibpath_var=LIBPATH
 
7924
 
 
7925
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7926
  soname_spec='${libname}${release}${shared_ext}$major'
 
7927
  ;;
 
7928
 
 
7929
aix4* | aix5*)
 
7930
  version_type=linux
 
7931
  need_lib_prefix=no
 
7932
  need_version=no
 
7933
  hardcode_into_libs=yes
 
7934
  if test "$host_cpu" = ia64; then
 
7935
    # AIX 5 supports IA64
 
7936
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7937
    shlibpath_var=LD_LIBRARY_PATH
 
7938
  else
 
7939
    # With GCC up to 2.95.x, collect2 would create an import file
 
7940
    # for dependence libraries.  The import file would start with
 
7941
    # the line `#! .'.  This would cause the generated library to
 
7942
    # depend on `.', always an invalid library.  This was fixed in
 
7943
    # development snapshots of GCC prior to 3.0.
 
7944
    case $host_os in
 
7945
      aix4 | aix4.[01] | aix4.[01].*)
 
7946
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7947
           echo ' yes '
 
7948
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7949
        :
 
7950
      else
 
7951
        can_build_shared=no
 
7952
      fi
 
7953
      ;;
 
7954
    esac
 
7955
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7956
    # soname into executable. Probably we can add versioning support to
 
7957
    # collect2, so additional links can be useful in future.
 
7958
    if test "$aix_use_runtimelinking" = yes; then
 
7959
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7960
      # instead of lib<name>.a to let people know that these are not
 
7961
      # typical AIX shared libraries.
 
7962
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7963
    else
 
7964
      # We preserve .a as extension for shared libraries through AIX4.2
 
7965
      # and later when we are not doing run time linking.
 
7966
      library_names_spec='${libname}${release}.a $libname.a'
 
7967
      soname_spec='${libname}${release}${shared_ext}$major'
 
7968
    fi
 
7969
    shlibpath_var=LIBPATH
 
7970
  fi
 
7971
  ;;
 
7972
 
 
7973
amigaos*)
 
7974
  library_names_spec='$libname.ixlibrary $libname.a'
 
7975
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7976
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
7977
  ;;
 
7978
 
 
7979
beos*)
 
7980
  library_names_spec='${libname}${shared_ext}'
 
7981
  dynamic_linker="$host_os ld.so"
 
7982
  shlibpath_var=LIBRARY_PATH
 
7983
  ;;
 
7984
 
 
7985
bsdi[45]*)
 
7986
  version_type=linux
 
7987
  need_version=no
 
7988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7989
  soname_spec='${libname}${release}${shared_ext}$major'
 
7990
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7991
  shlibpath_var=LD_LIBRARY_PATH
 
7992
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7993
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7994
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7995
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7996
  # libtool to hard-code these into programs
 
7997
  ;;
 
7998
 
 
7999
cygwin* | mingw* | pw32*)
 
8000
  version_type=windows
 
8001
  shrext_cmds=".dll"
 
8002
  need_version=no
 
8003
  need_lib_prefix=no
 
8004
 
 
8005
  case $GCC,$host_os in
 
8006
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8007
    library_names_spec='$libname.dll.a'
 
8008
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8009
    postinstall_cmds='base_file=`basename \${file}`~
 
8010
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8011
      dldir=$destdir/`dirname \$dlpath`~
 
8012
      test -d \$dldir || mkdir -p \$dldir~
 
8013
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8014
      chmod a+x \$dldir/$dlname'
 
8015
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8016
      dlpath=$dir/\$dldll~
 
8017
       $rm \$dlpath'
 
8018
    shlibpath_overrides_runpath=yes
 
8019
 
 
8020
    case $host_os in
 
8021
    cygwin*)
 
8022
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8023
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8024
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8025
      ;;
 
8026
    mingw*)
 
8027
      # MinGW DLLs use traditional 'lib' prefix
 
8028
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8029
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8030
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8031
        # It is most probably a Windows format PATH printed by
 
8032
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8033
        # path with ; separators, and with drive letters. We can handle the
 
8034
        # drive letters (cygwin fileutils understands them), so leave them,
 
8035
        # especially as we might pass files found there to a mingw objdump,
 
8036
        # which wouldn't understand a cygwinified path. Ahh.
 
8037
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8038
      else
 
8039
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8040
      fi
 
8041
      ;;
 
8042
    pw32*)
 
8043
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8044
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8045
      ;;
 
8046
    esac
 
8047
    ;;
 
8048
 
 
8049
  *)
 
8050
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8051
    ;;
 
8052
  esac
 
8053
  dynamic_linker='Win32 ld.exe'
 
8054
  # FIXME: first we should search . and the directory the executable is in
 
8055
  shlibpath_var=PATH
 
8056
  ;;
 
8057
 
 
8058
darwin* | rhapsody*)
 
8059
  dynamic_linker="$host_os dyld"
 
8060
  version_type=darwin
 
8061
  need_lib_prefix=no
 
8062
  need_version=no
 
8063
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8064
  soname_spec='${libname}${release}${major}$shared_ext'
 
8065
  shlibpath_overrides_runpath=yes
 
8066
  shlibpath_var=DYLD_LIBRARY_PATH
 
8067
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8068
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8069
  if test "$GCC" = yes; then
 
8070
    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"`
 
8071
  else
 
8072
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8073
  fi
 
8074
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8075
  ;;
 
8076
 
 
8077
dgux*)
 
8078
  version_type=linux
 
8079
  need_lib_prefix=no
 
8080
  need_version=no
 
8081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8082
  soname_spec='${libname}${release}${shared_ext}$major'
 
8083
  shlibpath_var=LD_LIBRARY_PATH
 
8084
  ;;
 
8085
 
 
8086
freebsd1*)
 
8087
  dynamic_linker=no
 
8088
  ;;
 
8089
 
 
8090
kfreebsd*-gnu)
 
8091
  version_type=linux
 
8092
  need_lib_prefix=no
 
8093
  need_version=no
 
8094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8095
  soname_spec='${libname}${release}${shared_ext}$major'
 
8096
  shlibpath_var=LD_LIBRARY_PATH
 
8097
  shlibpath_overrides_runpath=no
 
8098
  hardcode_into_libs=yes
 
8099
  dynamic_linker='GNU ld.so'
 
8100
  ;;
 
8101
 
 
8102
freebsd* | dragonfly*)
 
8103
  # DragonFly does not have aout.  When/if they implement a new
 
8104
  # versioning mechanism, adjust this.
 
8105
  if test -x /usr/bin/objformat; then
 
8106
    objformat=`/usr/bin/objformat`
 
8107
  else
 
8108
    case $host_os in
 
8109
    freebsd[123]*) objformat=aout ;;
 
8110
    *) objformat=elf ;;
 
8111
    esac
 
8112
  fi
 
8113
  version_type=freebsd-$objformat
 
8114
  case $version_type in
 
8115
    freebsd-elf*)
 
8116
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8117
      need_version=no
 
8118
      need_lib_prefix=no
 
8119
      ;;
 
8120
    freebsd-*)
 
8121
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8122
      need_version=yes
 
8123
      ;;
 
8124
  esac
 
8125
  shlibpath_var=LD_LIBRARY_PATH
 
8126
  case $host_os in
 
8127
  freebsd2*)
 
8128
    shlibpath_overrides_runpath=yes
 
8129
    ;;
 
8130
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8131
    shlibpath_overrides_runpath=yes
 
8132
    hardcode_into_libs=yes
 
8133
    ;;
 
8134
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8135
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8136
    shlibpath_overrides_runpath=no
 
8137
    hardcode_into_libs=yes
 
8138
    ;;
 
8139
  freebsd*) # from 4.6 on
 
8140
    shlibpath_overrides_runpath=yes
 
8141
    hardcode_into_libs=yes
 
8142
    ;;
 
8143
  esac
 
8144
  ;;
 
8145
 
 
8146
gnu*)
 
8147
  version_type=linux
 
8148
  need_lib_prefix=no
 
8149
  need_version=no
 
8150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8151
  soname_spec='${libname}${release}${shared_ext}$major'
 
8152
  shlibpath_var=LD_LIBRARY_PATH
 
8153
  hardcode_into_libs=yes
 
8154
  ;;
 
8155
 
 
8156
hpux9* | hpux10* | hpux11*)
 
8157
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8158
  # link against other versions.
 
8159
  version_type=sunos
 
8160
  need_lib_prefix=no
 
8161
  need_version=no
 
8162
  case $host_cpu in
 
8163
  ia64*)
 
8164
    shrext_cmds='.so'
 
8165
    hardcode_into_libs=yes
 
8166
    dynamic_linker="$host_os dld.so"
 
8167
    shlibpath_var=LD_LIBRARY_PATH
 
8168
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8169
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8170
    soname_spec='${libname}${release}${shared_ext}$major'
 
8171
    if test "X$HPUX_IA64_MODE" = X32; then
 
8172
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8173
    else
 
8174
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8175
    fi
 
8176
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8177
    ;;
 
8178
   hppa*64*)
 
8179
     shrext_cmds='.sl'
 
8180
     hardcode_into_libs=yes
 
8181
     dynamic_linker="$host_os dld.sl"
 
8182
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8183
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8184
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8185
     soname_spec='${libname}${release}${shared_ext}$major'
 
8186
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8187
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8188
     ;;
 
8189
   *)
 
8190
    shrext_cmds='.sl'
 
8191
    dynamic_linker="$host_os dld.sl"
 
8192
    shlibpath_var=SHLIB_PATH
 
8193
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8194
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8195
    soname_spec='${libname}${release}${shared_ext}$major'
 
8196
    ;;
 
8197
  esac
 
8198
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8199
  postinstall_cmds='chmod 555 $lib'
 
8200
  ;;
 
8201
 
 
8202
interix3*)
 
8203
  version_type=linux
 
8204
  need_lib_prefix=no
 
8205
  need_version=no
 
8206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8207
  soname_spec='${libname}${release}${shared_ext}$major'
 
8208
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8209
  shlibpath_var=LD_LIBRARY_PATH
 
8210
  shlibpath_overrides_runpath=no
 
8211
  hardcode_into_libs=yes
 
8212
  ;;
 
8213
 
 
8214
irix5* | irix6* | nonstopux*)
 
8215
  case $host_os in
 
8216
    nonstopux*) version_type=nonstopux ;;
 
8217
    *)
 
8218
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8219
                version_type=linux
 
8220
        else
 
8221
                version_type=irix
 
8222
        fi ;;
 
8223
  esac
 
8224
  need_lib_prefix=no
 
8225
  need_version=no
 
8226
  soname_spec='${libname}${release}${shared_ext}$major'
 
8227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8228
  case $host_os in
 
8229
  irix5* | nonstopux*)
 
8230
    libsuff= shlibsuff=
 
8231
    ;;
 
8232
  *)
 
8233
    case $LD in # libtool.m4 will add one of these switches to LD
 
8234
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8235
      libsuff= shlibsuff= libmagic=32-bit;;
 
8236
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8237
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8238
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8239
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8240
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8241
    esac
 
8242
    ;;
 
8243
  esac
 
8244
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8245
  shlibpath_overrides_runpath=no
 
8246
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8247
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8248
  hardcode_into_libs=yes
 
8249
  ;;
 
8250
 
 
8251
# No shared lib support for Linux oldld, aout, or coff.
 
8252
linux*oldld* | linux*aout* | linux*coff*)
 
8253
  dynamic_linker=no
 
8254
  ;;
 
8255
 
 
8256
# This must be Linux ELF.
 
8257
linux*)
 
8258
  version_type=linux
 
8259
  need_lib_prefix=no
 
8260
  need_version=no
 
8261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8262
  soname_spec='${libname}${release}${shared_ext}$major'
 
8263
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8264
  shlibpath_var=LD_LIBRARY_PATH
 
8265
  shlibpath_overrides_runpath=no
 
8266
  # This implies no fast_install, which is unacceptable.
 
8267
  # Some rework will be needed to allow for fast_install
 
8268
  # before this can be enabled.
 
8269
  hardcode_into_libs=yes
 
8270
 
 
8271
  # find out which ABI we are using
 
8272
  libsuff=
 
8273
  case "$host_cpu" in
 
8274
  x86_64*|s390x*|powerpc64*)
 
8275
    echo '#line 8275 "configure"' > conftest.$ac_ext
 
8276
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8277
  (eval $ac_compile) 2>&5
 
8278
  ac_status=$?
 
8279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8280
  (exit $ac_status); }; then
 
8281
      case `/usr/bin/file conftest.$ac_objext` in
 
8282
      *64-bit*)
 
8283
        libsuff=64
 
8284
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8285
        ;;
 
8286
      esac
 
8287
    fi
 
8288
    rm -rf conftest*
 
8289
    ;;
 
8290
  esac
 
8291
 
 
8292
  # Append ld.so.conf contents to the search path
 
8293
  if test -f /etc/ld.so.conf; then
 
8294
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8295
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8296
  fi
 
8297
 
 
8298
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8299
  # powerpc, because MkLinux only supported shared libraries with the
 
8300
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8301
  # most powerpc-linux boxes support dynamic linking these days and
 
8302
  # people can always --disable-shared, the test was removed, and we
 
8303
  # assume the GNU/Linux dynamic linker is in use.
 
8304
  dynamic_linker='GNU/Linux ld.so'
 
8305
  ;;
 
8306
 
 
8307
knetbsd*-gnu)
 
8308
  version_type=linux
 
8309
  need_lib_prefix=no
 
8310
  need_version=no
 
8311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8312
  soname_spec='${libname}${release}${shared_ext}$major'
 
8313
  shlibpath_var=LD_LIBRARY_PATH
 
8314
  shlibpath_overrides_runpath=no
 
8315
  hardcode_into_libs=yes
 
8316
  dynamic_linker='GNU ld.so'
 
8317
  ;;
 
8318
 
 
8319
netbsd*)
 
8320
  version_type=sunos
 
8321
  need_lib_prefix=no
 
8322
  need_version=no
 
8323
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8324
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8325
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8326
    dynamic_linker='NetBSD (a.out) ld.so'
 
8327
  else
 
8328
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8329
    soname_spec='${libname}${release}${shared_ext}$major'
 
8330
    dynamic_linker='NetBSD ld.elf_so'
 
8331
  fi
 
8332
  shlibpath_var=LD_LIBRARY_PATH
 
8333
  shlibpath_overrides_runpath=yes
 
8334
  hardcode_into_libs=yes
 
8335
  ;;
 
8336
 
 
8337
newsos6)
 
8338
  version_type=linux
 
8339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8340
  shlibpath_var=LD_LIBRARY_PATH
 
8341
  shlibpath_overrides_runpath=yes
 
8342
  ;;
 
8343
 
 
8344
nto-qnx*)
 
8345
  version_type=linux
 
8346
  need_lib_prefix=no
 
8347
  need_version=no
 
8348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8349
  soname_spec='${libname}${release}${shared_ext}$major'
 
8350
  shlibpath_var=LD_LIBRARY_PATH
 
8351
  shlibpath_overrides_runpath=yes
 
8352
  ;;
 
8353
 
 
8354
openbsd*)
 
8355
  version_type=sunos
 
8356
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8357
  need_lib_prefix=no
 
8358
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8359
  case $host_os in
 
8360
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8361
    *)                         need_version=no  ;;
 
8362
  esac
 
8363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8364
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8365
  shlibpath_var=LD_LIBRARY_PATH
 
8366
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8367
    case $host_os in
 
8368
      openbsd2.[89] | openbsd2.[89].*)
 
8369
        shlibpath_overrides_runpath=no
 
8370
        ;;
 
8371
      *)
 
8372
        shlibpath_overrides_runpath=yes
 
8373
        ;;
 
8374
      esac
 
8375
  else
 
8376
    shlibpath_overrides_runpath=yes
 
8377
  fi
 
8378
  ;;
 
8379
 
 
8380
os2*)
 
8381
  libname_spec='$name'
 
8382
  shrext_cmds=".dll"
 
8383
  need_lib_prefix=no
 
8384
  library_names_spec='$libname${shared_ext} $libname.a'
 
8385
  dynamic_linker='OS/2 ld.exe'
 
8386
  shlibpath_var=LIBPATH
 
8387
  ;;
 
8388
 
 
8389
osf3* | osf4* | osf5*)
 
8390
  version_type=osf
 
8391
  need_lib_prefix=no
 
8392
  need_version=no
 
8393
  soname_spec='${libname}${release}${shared_ext}$major'
 
8394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8395
  shlibpath_var=LD_LIBRARY_PATH
 
8396
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8397
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8398
  ;;
 
8399
 
 
8400
solaris*)
 
8401
  version_type=linux
 
8402
  need_lib_prefix=no
 
8403
  need_version=no
 
8404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8405
  soname_spec='${libname}${release}${shared_ext}$major'
 
8406
  shlibpath_var=LD_LIBRARY_PATH
 
8407
  shlibpath_overrides_runpath=yes
 
8408
  hardcode_into_libs=yes
 
8409
  # ldd complains unless libraries are executable
 
8410
  postinstall_cmds='chmod +x $lib'
 
8411
  ;;
 
8412
 
 
8413
sunos4*)
 
8414
  version_type=sunos
 
8415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8416
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8417
  shlibpath_var=LD_LIBRARY_PATH
 
8418
  shlibpath_overrides_runpath=yes
 
8419
  if test "$with_gnu_ld" = yes; then
 
8420
    need_lib_prefix=no
 
8421
  fi
 
8422
  need_version=yes
 
8423
  ;;
 
8424
 
 
8425
sysv4 | sysv4.3*)
 
8426
  version_type=linux
 
8427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8428
  soname_spec='${libname}${release}${shared_ext}$major'
 
8429
  shlibpath_var=LD_LIBRARY_PATH
 
8430
  case $host_vendor in
 
8431
    sni)
 
8432
      shlibpath_overrides_runpath=no
 
8433
      need_lib_prefix=no
 
8434
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8435
      runpath_var=LD_RUN_PATH
 
8436
      ;;
 
8437
    siemens)
 
8438
      need_lib_prefix=no
 
8439
      ;;
 
8440
    motorola)
 
8441
      need_lib_prefix=no
 
8442
      need_version=no
 
8443
      shlibpath_overrides_runpath=no
 
8444
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8445
      ;;
 
8446
  esac
 
8447
  ;;
 
8448
 
 
8449
sysv4*MP*)
 
8450
  if test -d /usr/nec ;then
 
8451
    version_type=linux
 
8452
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8453
    soname_spec='$libname${shared_ext}.$major'
 
8454
    shlibpath_var=LD_LIBRARY_PATH
 
8455
  fi
 
8456
  ;;
 
8457
 
 
8458
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8459
  version_type=freebsd-elf
 
8460
  need_lib_prefix=no
 
8461
  need_version=no
 
8462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8463
  soname_spec='${libname}${release}${shared_ext}$major'
 
8464
  shlibpath_var=LD_LIBRARY_PATH
 
8465
  hardcode_into_libs=yes
 
8466
  if test "$with_gnu_ld" = yes; then
 
8467
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8468
    shlibpath_overrides_runpath=no
 
8469
  else
 
8470
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8471
    shlibpath_overrides_runpath=yes
 
8472
    case $host_os in
 
8473
      sco3.2v5*)
 
8474
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8475
        ;;
 
8476
    esac
 
8477
  fi
 
8478
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8479
  ;;
 
8480
 
 
8481
uts4*)
 
8482
  version_type=linux
 
8483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8484
  soname_spec='${libname}${release}${shared_ext}$major'
 
8485
  shlibpath_var=LD_LIBRARY_PATH
 
8486
  ;;
 
8487
 
 
8488
*)
 
8489
  dynamic_linker=no
 
8490
  ;;
 
8491
esac
 
8492
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8493
echo "${ECHO_T}$dynamic_linker" >&6
 
8494
test "$dynamic_linker" = no && can_build_shared=no
 
8495
 
 
8496
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8497
if test "$GCC" = yes; then
 
8498
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8499
fi
 
8500
 
7551
8501
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7552
8502
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7553
8503
hardcode_action=
7554
8504
if test -n "$hardcode_libdir_flag_spec" || \
7555
 
   test -n "$runpath_var " || \
7556
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8505
   test -n "$runpath_var" || \
 
8506
   test "X$hardcode_automatic" = "Xyes" ; then
7557
8507
 
7558
8508
  # We can hardcode non-existant directories.
7559
8509
  if test "$hardcode_direct" != no &&
7614
8564
  esac
7615
8565
fi
7616
8566
 
7617
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7618
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7619
 
library_names_spec=
7620
 
libname_spec='lib$name'
7621
 
soname_spec=
7622
 
shrext=".so"
7623
 
postinstall_cmds=
7624
 
postuninstall_cmds=
7625
 
finish_cmds=
7626
 
finish_eval=
7627
 
shlibpath_var=
7628
 
shlibpath_overrides_runpath=unknown
7629
 
version_type=none
7630
 
dynamic_linker="$host_os ld.so"
7631
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7632
 
if test "$GCC" = yes; then
7633
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7634
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7635
 
    # if the path contains ";" then we assume it to be the separator
7636
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7637
 
    # assumed that no part of a normal pathname contains ";" but that should
7638
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7639
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7640
 
  else
7641
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7642
 
  fi
7643
 
else
7644
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7645
 
fi
7646
 
need_lib_prefix=unknown
7647
 
hardcode_into_libs=no
7648
 
 
7649
 
# when you set need_version to no, make sure it does not cause -set_version
7650
 
# flags to be left without arguments
7651
 
need_version=unknown
7652
 
 
7653
 
case $host_os in
7654
 
aix3*)
7655
 
  version_type=linux
7656
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7657
 
  shlibpath_var=LIBPATH
7658
 
 
7659
 
  # AIX 3 has no versioning support, so we append a major version to the name.
7660
 
  soname_spec='${libname}${release}${shared_ext}$major'
7661
 
  ;;
7662
 
 
7663
 
aix4* | aix5*)
7664
 
  version_type=linux
7665
 
  need_lib_prefix=no
7666
 
  need_version=no
7667
 
  hardcode_into_libs=yes
7668
 
  if test "$host_cpu" = ia64; then
7669
 
    # AIX 5 supports IA64
7670
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7671
 
    shlibpath_var=LD_LIBRARY_PATH
7672
 
  else
7673
 
    # With GCC up to 2.95.x, collect2 would create an import file
7674
 
    # for dependence libraries.  The import file would start with
7675
 
    # the line `#! .'.  This would cause the generated library to
7676
 
    # depend on `.', always an invalid library.  This was fixed in
7677
 
    # development snapshots of GCC prior to 3.0.
7678
 
    case $host_os in
7679
 
      aix4 | aix4.[01] | aix4.[01].*)
7680
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7681
 
           echo ' yes '
7682
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7683
 
        :
7684
 
      else
7685
 
        can_build_shared=no
7686
 
      fi
7687
 
      ;;
7688
 
    esac
7689
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7690
 
    # soname into executable. Probably we can add versioning support to
7691
 
    # collect2, so additional links can be useful in future.
7692
 
    if test "$aix_use_runtimelinking" = yes; then
7693
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7694
 
      # instead of lib<name>.a to let people know that these are not
7695
 
      # typical AIX shared libraries.
7696
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7697
 
    else
7698
 
      # We preserve .a as extension for shared libraries through AIX4.2
7699
 
      # and later when we are not doing run time linking.
7700
 
      library_names_spec='${libname}${release}.a $libname.a'
7701
 
      soname_spec='${libname}${release}${shared_ext}$major'
7702
 
    fi
7703
 
    shlibpath_var=LIBPATH
7704
 
  fi
7705
 
  ;;
7706
 
 
7707
 
amigaos*)
7708
 
  library_names_spec='$libname.ixlibrary $libname.a'
7709
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7710
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7711
 
  ;;
7712
 
 
7713
 
beos*)
7714
 
  library_names_spec='${libname}${shared_ext}'
7715
 
  dynamic_linker="$host_os ld.so"
7716
 
  shlibpath_var=LIBRARY_PATH
7717
 
  ;;
7718
 
 
7719
 
bsdi4*)
7720
 
  version_type=linux
7721
 
  need_version=no
7722
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723
 
  soname_spec='${libname}${release}${shared_ext}$major'
7724
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7725
 
  shlibpath_var=LD_LIBRARY_PATH
7726
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7727
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7728
 
  # the default ld.so.conf also contains /usr/contrib/lib and
7729
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7730
 
  # libtool to hard-code these into programs
7731
 
  ;;
7732
 
 
7733
 
cygwin* | mingw* | pw32*)
7734
 
  version_type=windows
7735
 
  shrext=".dll"
7736
 
  need_version=no
7737
 
  need_lib_prefix=no
7738
 
 
7739
 
  case $GCC,$host_os in
7740
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
7741
 
    library_names_spec='$libname.dll.a'
7742
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7743
 
    postinstall_cmds='base_file=`basename \${file}`~
7744
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7745
 
      dldir=$destdir/`dirname \$dlpath`~
7746
 
      test -d \$dldir || mkdir -p \$dldir~
7747
 
      $install_prog $dir/$dlname \$dldir/$dlname'
7748
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7749
 
      dlpath=$dir/\$dldll~
7750
 
       $rm \$dlpath'
7751
 
    shlibpath_overrides_runpath=yes
7752
 
 
7753
 
    case $host_os in
7754
 
    cygwin*)
7755
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7756
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7757
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7758
 
      ;;
7759
 
    mingw*)
7760
 
      # MinGW DLLs use traditional 'lib' prefix
7761
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7762
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7763
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7764
 
        # It is most probably a Windows format PATH printed by
7765
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7766
 
        # path with ; separators, and with drive letters. We can handle the
7767
 
        # drive letters (cygwin fileutils understands them), so leave them,
7768
 
        # especially as we might pass files found there to a mingw objdump,
7769
 
        # which wouldn't understand a cygwinified path. Ahh.
7770
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7771
 
      else
7772
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7773
 
      fi
7774
 
      ;;
7775
 
    pw32*)
7776
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7777
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7778
 
      ;;
7779
 
    esac
7780
 
    ;;
7781
 
 
7782
 
  *)
7783
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7784
 
    ;;
7785
 
  esac
7786
 
  dynamic_linker='Win32 ld.exe'
7787
 
  # FIXME: first we should search . and the directory the executable is in
7788
 
  shlibpath_var=PATH
7789
 
  ;;
7790
 
 
7791
 
darwin* | rhapsody*)
7792
 
  dynamic_linker="$host_os dyld"
7793
 
  version_type=darwin
7794
 
  need_lib_prefix=no
7795
 
  need_version=no
7796
 
  # FIXME: Relying on posixy $() will cause problems for
7797
 
  #        cross-compilation, but unfortunately the echo tests do not
7798
 
  #        yet detect zsh echo's removal of \ escapes.
7799
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7800
 
  soname_spec='${libname}${release}${major}$shared_ext'
7801
 
  shlibpath_overrides_runpath=yes
7802
 
  shlibpath_var=DYLD_LIBRARY_PATH
7803
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7804
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7805
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7806
 
  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"`
7807
 
  fi
7808
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7809
 
  ;;
7810
 
 
7811
 
dgux*)
7812
 
  version_type=linux
7813
 
  need_lib_prefix=no
7814
 
  need_version=no
7815
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7816
 
  soname_spec='${libname}${release}${shared_ext}$major'
7817
 
  shlibpath_var=LD_LIBRARY_PATH
7818
 
  ;;
7819
 
 
7820
 
freebsd1*)
7821
 
  dynamic_linker=no
7822
 
  ;;
7823
 
 
7824
 
freebsd*)
7825
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7826
 
  version_type=freebsd-$objformat
7827
 
  case $version_type in
7828
 
    freebsd-elf*)
7829
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7830
 
      need_version=no
7831
 
      need_lib_prefix=no
7832
 
      ;;
7833
 
    freebsd-*)
7834
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7835
 
      need_version=yes
7836
 
      ;;
7837
 
  esac
7838
 
  shlibpath_var=LD_LIBRARY_PATH
7839
 
  case $host_os in
7840
 
  freebsd2*)
7841
 
    shlibpath_overrides_runpath=yes
7842
 
    ;;
7843
 
  freebsd3.01* | freebsdelf3.01*)
7844
 
    shlibpath_overrides_runpath=yes
7845
 
    hardcode_into_libs=yes
7846
 
    ;;
7847
 
  *) # from 3.2 on
7848
 
    shlibpath_overrides_runpath=no
7849
 
    hardcode_into_libs=yes
7850
 
    ;;
7851
 
  esac
7852
 
  ;;
7853
 
 
7854
 
gnu*)
7855
 
  version_type=linux
7856
 
  need_lib_prefix=no
7857
 
  need_version=no
7858
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7859
 
  soname_spec='${libname}${release}${shared_ext}$major'
7860
 
  shlibpath_var=LD_LIBRARY_PATH
7861
 
  hardcode_into_libs=yes
7862
 
  ;;
7863
 
 
7864
 
hpux9* | hpux10* | hpux11*)
7865
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
7866
 
  # link against other versions.
7867
 
  version_type=sunos
7868
 
  need_lib_prefix=no
7869
 
  need_version=no
7870
 
  case "$host_cpu" in
7871
 
  ia64*)
7872
 
    shrext='.so'
7873
 
    hardcode_into_libs=yes
7874
 
    dynamic_linker="$host_os dld.so"
7875
 
    shlibpath_var=LD_LIBRARY_PATH
7876
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7877
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878
 
    soname_spec='${libname}${release}${shared_ext}$major'
7879
 
    if test "X$HPUX_IA64_MODE" = X32; then
7880
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7881
 
    else
7882
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7883
 
    fi
7884
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7885
 
    ;;
7886
 
   hppa*64*)
7887
 
     shrext='.sl'
7888
 
     hardcode_into_libs=yes
7889
 
     dynamic_linker="$host_os dld.sl"
7890
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7891
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7892
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893
 
     soname_spec='${libname}${release}${shared_ext}$major'
7894
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7895
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7896
 
     ;;
7897
 
   *)
7898
 
    shrext='.sl'
7899
 
    dynamic_linker="$host_os dld.sl"
7900
 
    shlibpath_var=SHLIB_PATH
7901
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7902
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903
 
    soname_spec='${libname}${release}${shared_ext}$major'
7904
 
    ;;
7905
 
  esac
7906
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7907
 
  postinstall_cmds='chmod 555 $lib'
7908
 
  ;;
7909
 
 
7910
 
irix5* | irix6* | nonstopux*)
7911
 
  case $host_os in
7912
 
    nonstopux*) version_type=nonstopux ;;
7913
 
    *)
7914
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
7915
 
                version_type=linux
7916
 
        else
7917
 
                version_type=irix
7918
 
        fi ;;
7919
 
  esac
7920
 
  need_lib_prefix=no
7921
 
  need_version=no
7922
 
  soname_spec='${libname}${release}${shared_ext}$major'
7923
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7924
 
  case $host_os in
7925
 
  irix5* | nonstopux*)
7926
 
    libsuff= shlibsuff=
7927
 
    ;;
7928
 
  *)
7929
 
    case $LD in # libtool.m4 will add one of these switches to LD
7930
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7931
 
      libsuff= shlibsuff= libmagic=32-bit;;
7932
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7933
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
7934
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7935
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7936
 
    *) libsuff= shlibsuff= libmagic=never-match;;
7937
 
    esac
7938
 
    ;;
7939
 
  esac
7940
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7941
 
  shlibpath_overrides_runpath=no
7942
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7943
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7944
 
  hardcode_into_libs=yes
7945
 
  ;;
7946
 
 
7947
 
# No shared lib support for Linux oldld, aout, or coff.
7948
 
linux*oldld* | linux*aout* | linux*coff*)
7949
 
  dynamic_linker=no
7950
 
  ;;
7951
 
 
7952
 
# This must be Linux ELF.
7953
 
linux*)
7954
 
  version_type=linux
7955
 
  need_lib_prefix=no
7956
 
  need_version=no
7957
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958
 
  soname_spec='${libname}${release}${shared_ext}$major'
7959
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7960
 
  shlibpath_var=LD_LIBRARY_PATH
7961
 
  shlibpath_overrides_runpath=no
7962
 
  # This implies no fast_install, which is unacceptable.
7963
 
  # Some rework will be needed to allow for fast_install
7964
 
  # before this can be enabled.
7965
 
  hardcode_into_libs=yes
7966
 
 
7967
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7968
 
  # powerpc, because MkLinux only supported shared libraries with the
7969
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
7970
 
  # most powerpc-linux boxes support dynamic linking these days and
7971
 
  # people can always --disable-shared, the test was removed, and we
7972
 
  # assume the GNU/Linux dynamic linker is in use.
7973
 
  dynamic_linker='GNU/Linux ld.so'
7974
 
 
7975
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
7976
 
  libsuff=
7977
 
  case "$host_cpu" in
7978
 
  x86_64*|s390x*|powerpc64*)
7979
 
    echo '#line 7979 "configure"' > conftest.$ac_ext
7980
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981
 
  (eval $ac_compile) 2>&5
7982
 
  ac_status=$?
7983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984
 
  (exit $ac_status); }; then
7985
 
      case `/usr/bin/file conftest.$ac_objext` in
7986
 
      *64-bit*)
7987
 
        libsuff=64
7988
 
        ;;
7989
 
      esac
7990
 
    fi
7991
 
    rm -rf conftest*
7992
 
    ;;
7993
 
  *)
7994
 
    ;;
7995
 
  esac
7996
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7997
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7998
 
  ;;
7999
 
 
8000
 
netbsd*)
8001
 
  version_type=sunos
8002
 
  need_lib_prefix=no
8003
 
  need_version=no
8004
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8005
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8006
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8007
 
    dynamic_linker='NetBSD (a.out) ld.so'
8008
 
  else
8009
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8010
 
    soname_spec='${libname}${release}${shared_ext}$major'
8011
 
    dynamic_linker='NetBSD ld.elf_so'
8012
 
  fi
8013
 
  shlibpath_var=LD_LIBRARY_PATH
8014
 
  shlibpath_overrides_runpath=yes
8015
 
  hardcode_into_libs=yes
8016
 
  ;;
8017
 
 
8018
 
newsos6)
8019
 
  version_type=linux
8020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021
 
  shlibpath_var=LD_LIBRARY_PATH
8022
 
  shlibpath_overrides_runpath=yes
8023
 
  ;;
8024
 
 
8025
 
nto-qnx)
8026
 
  version_type=linux
8027
 
  need_lib_prefix=no
8028
 
  need_version=no
8029
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030
 
  soname_spec='${libname}${release}${shared_ext}$major'
8031
 
  shlibpath_var=LD_LIBRARY_PATH
8032
 
  shlibpath_overrides_runpath=yes
8033
 
  ;;
8034
 
 
8035
 
openbsd*)
8036
 
  version_type=sunos
8037
 
  need_lib_prefix=no
8038
 
  need_version=no
8039
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8040
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8041
 
  shlibpath_var=LD_LIBRARY_PATH
8042
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8043
 
    case $host_os in
8044
 
      openbsd2.[89] | openbsd2.[89].*)
8045
 
        shlibpath_overrides_runpath=no
8046
 
        ;;
8047
 
      *)
8048
 
        shlibpath_overrides_runpath=yes
8049
 
        ;;
8050
 
      esac
8051
 
  else
8052
 
    shlibpath_overrides_runpath=yes
8053
 
  fi
8054
 
  ;;
8055
 
 
8056
 
os2*)
8057
 
  libname_spec='$name'
8058
 
  shrext=".dll"
8059
 
  need_lib_prefix=no
8060
 
  library_names_spec='$libname${shared_ext} $libname.a'
8061
 
  dynamic_linker='OS/2 ld.exe'
8062
 
  shlibpath_var=LIBPATH
8063
 
  ;;
8064
 
 
8065
 
osf3* | osf4* | osf5*)
8066
 
  version_type=osf
8067
 
  need_lib_prefix=no
8068
 
  need_version=no
8069
 
  soname_spec='${libname}${release}${shared_ext}$major'
8070
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071
 
  shlibpath_var=LD_LIBRARY_PATH
8072
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8073
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8074
 
  ;;
8075
 
 
8076
 
sco3.2v5*)
8077
 
  version_type=osf
8078
 
  soname_spec='${libname}${release}${shared_ext}$major'
8079
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080
 
  shlibpath_var=LD_LIBRARY_PATH
8081
 
  ;;
8082
 
 
8083
 
solaris*)
8084
 
  version_type=linux
8085
 
  need_lib_prefix=no
8086
 
  need_version=no
8087
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088
 
  soname_spec='${libname}${release}${shared_ext}$major'
8089
 
  shlibpath_var=LD_LIBRARY_PATH
8090
 
  shlibpath_overrides_runpath=yes
8091
 
  hardcode_into_libs=yes
8092
 
  # ldd complains unless libraries are executable
8093
 
  postinstall_cmds='chmod +x $lib'
8094
 
  ;;
8095
 
 
8096
 
sunos4*)
8097
 
  version_type=sunos
8098
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8099
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8100
 
  shlibpath_var=LD_LIBRARY_PATH
8101
 
  shlibpath_overrides_runpath=yes
8102
 
  if test "$with_gnu_ld" = yes; then
8103
 
    need_lib_prefix=no
8104
 
  fi
8105
 
  need_version=yes
8106
 
  ;;
8107
 
 
8108
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8109
 
  version_type=linux
8110
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111
 
  soname_spec='${libname}${release}${shared_ext}$major'
8112
 
  shlibpath_var=LD_LIBRARY_PATH
8113
 
  case $host_vendor in
8114
 
    sni)
8115
 
      shlibpath_overrides_runpath=no
8116
 
      need_lib_prefix=no
8117
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8118
 
      runpath_var=LD_RUN_PATH
8119
 
      ;;
8120
 
    siemens)
8121
 
      need_lib_prefix=no
8122
 
      ;;
8123
 
    motorola)
8124
 
      need_lib_prefix=no
8125
 
      need_version=no
8126
 
      shlibpath_overrides_runpath=no
8127
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8128
 
      ;;
8129
 
  esac
8130
 
  ;;
8131
 
 
8132
 
sysv4*MP*)
8133
 
  if test -d /usr/nec ;then
8134
 
    version_type=linux
8135
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8136
 
    soname_spec='$libname${shared_ext}.$major'
8137
 
    shlibpath_var=LD_LIBRARY_PATH
8138
 
  fi
8139
 
  ;;
8140
 
 
8141
 
uts4*)
8142
 
  version_type=linux
8143
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8144
 
  soname_spec='${libname}${release}${shared_ext}$major'
8145
 
  shlibpath_var=LD_LIBRARY_PATH
8146
 
  ;;
8147
 
 
8148
 
*)
8149
 
  dynamic_linker=no
8150
 
  ;;
8151
 
esac
8152
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8153
 
echo "${ECHO_T}$dynamic_linker" >&6
8154
 
test "$dynamic_linker" = no && can_build_shared=no
8155
 
 
8156
8567
if test "x$enable_dlopen" != xyes; then
8157
8568
  enable_dlopen=unknown
8158
8569
  enable_dlopen_self=unknown
8742
9153
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8743
9154
 
8744
9155
    save_LDFLAGS="$LDFLAGS"
8745
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9156
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8746
9157
 
8747
9158
    save_LIBS="$LIBS"
8748
9159
    LIBS="$lt_cv_dlopen_libs $LIBS"
8758
9169
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8759
9170
  lt_status=$lt_dlunknown
8760
9171
  cat > conftest.$ac_ext <<EOF
8761
 
#line 8761 "configure"
 
9172
#line 9172 "configure"
8762
9173
#include "confdefs.h"
8763
9174
 
8764
9175
#if HAVE_DLFCN_H
8815
9226
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8816
9227
      /* dlclose (self); */
8817
9228
    }
 
9229
  else
 
9230
    puts (dlerror ());
8818
9231
 
8819
9232
    exit (status);
8820
9233
}
8824
9237
  ac_status=$?
8825
9238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826
9239
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8827
 
    (./conftest; exit; ) 2>/dev/null
 
9240
    (./conftest; exit; ) >&5 2>/dev/null
8828
9241
    lt_status=$?
8829
9242
    case x$lt_status in
8830
9243
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8831
9244
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8832
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9245
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8833
9246
    esac
8834
9247
  else :
8835
9248
    # compilation failed
8844
9257
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8845
9258
 
8846
9259
    if test "x$lt_cv_dlopen_self" = xyes; then
8847
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9260
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8848
9261
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8849
9262
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8850
9263
if test "${lt_cv_dlopen_self_static+set}" = set; then
8856
9269
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8857
9270
  lt_status=$lt_dlunknown
8858
9271
  cat > conftest.$ac_ext <<EOF
8859
 
#line 8859 "configure"
 
9272
#line 9272 "configure"
8860
9273
#include "confdefs.h"
8861
9274
 
8862
9275
#if HAVE_DLFCN_H
8913
9326
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8914
9327
      /* dlclose (self); */
8915
9328
    }
 
9329
  else
 
9330
    puts (dlerror ());
8916
9331
 
8917
9332
    exit (status);
8918
9333
}
8922
9337
  ac_status=$?
8923
9338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924
9339
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8925
 
    (./conftest; exit; ) 2>/dev/null
 
9340
    (./conftest; exit; ) >&5 2>/dev/null
8926
9341
    lt_status=$?
8927
9342
    case x$lt_status in
8928
9343
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8929
9344
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8930
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9345
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8931
9346
    esac
8932
9347
  else :
8933
9348
    # compilation failed
8960
9375
fi
8961
9376
 
8962
9377
 
8963
 
# Report which librarie types wil actually be built
 
9378
# Report which library types will actually be built
8964
9379
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8965
9380
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8966
9381
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8972
9387
 
8973
9388
# On AIX, shared libraries and static libraries use the same namespace, and
8974
9389
# are all built from PIC.
8975
 
case "$host_os" in
 
9390
case $host_os in
8976
9391
aix3*)
8977
9392
  test "$enable_shared" = yes && enable_static=no
8978
9393
  if test -n "$RANLIB"; then
8981
9396
  fi
8982
9397
  ;;
8983
9398
 
8984
 
aix4*)
 
9399
aix4* | aix5*)
8985
9400
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8986
9401
    test "$enable_shared" = yes && enable_static=no
8987
9402
  fi
8988
 
  ;;
8989
 
  darwin* | rhapsody*)
8990
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8991
 
    archive_cmds_need_lc=no
8992
 
    case "$host_os" in
8993
 
    rhapsody* | darwin1.[012])
8994
 
      allow_undefined_flag='-undefined suppress'
8995
 
      ;;
8996
 
    *) # Darwin 1.3 on
8997
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8998
 
      ;;
8999
 
    esac
9000
 
    # FIXME: Relying on posixy $() will cause problems for
9001
 
    #        cross-compilation, but unfortunately the echo tests do not
9002
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
9003
 
    #          `"' quotes if we put them in here... so don't!
9004
 
                output_verbose_link_cmd='echo'
9005
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9006
 
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9007
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9008
 
                  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}'
9009
 
                  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9010
 
    hardcode_direct=no
9011
 
    hardcode_automatic=yes
9012
 
    hardcode_shlibpath_var=unsupported
9013
 
    whole_archive_flag_spec='-all_load $convenience'
9014
 
    link_all_deplibs=yes
9015
 
    fi
9016
9403
    ;;
9017
9404
esac
9018
9405
echo "$as_me:$LINENO: result: $enable_shared" >&5
9038
9425
  # Now quote all the things that may contain metacharacters while being
9039
9426
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9040
9427
  # variables and quote the copies for generation of the libtool script.
9041
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
9428
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9429
    SED SHELL STRIP \
9042
9430
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9043
9431
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9044
9432
    deplibs_check_method reload_flag reload_cmds need_locks \
9141
9529
#
9142
9530
# You should have received a copy of the GNU General Public License
9143
9531
# along with this program; if not, write to the Free Software
9144
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9532
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9145
9533
#
9146
9534
# As a special exception to the GNU General Public License, if you
9147
9535
# distribute this file as part of a program that contains a
9152
9540
SED=$lt_SED
9153
9541
 
9154
9542
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9155
 
Xsed="$SED -e s/^X//"
 
9543
Xsed="$SED -e 1s/^X//"
9156
9544
 
9157
9545
# The HP-UX ksh and POSIX shell print the target directory to stdout
9158
9546
# if CDPATH is set.
9159
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9547
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9160
9548
 
9161
9549
# The names of the tagged configurations supported by this script.
9162
9550
available_tags=
9186
9574
# The host system.
9187
9575
host_alias=$host_alias
9188
9576
host=$host
 
9577
host_os=$host_os
 
9578
 
 
9579
# The build system.
 
9580
build_alias=$build_alias
 
9581
build=$build
 
9582
build_os=$build_os
9189
9583
 
9190
9584
# An echo program that does not interpret backslashes.
9191
9585
echo=$lt_echo
9197
9591
# A C compiler.
9198
9592
LTCC=$lt_LTCC
9199
9593
 
 
9594
# LTCC compiler flags.
 
9595
LTCFLAGS=$lt_LTCFLAGS
 
9596
 
9200
9597
# A language-specific compiler.
9201
9598
CC=$lt_compiler
9202
9599
 
9203
9600
# Is the compiler the GNU C compiler?
9204
9601
with_gcc=$GCC
9205
9602
 
 
9603
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
9604
gcc_ver=\`gcc -dumpversion\`
 
9605
 
9206
9606
# An ERE matcher.
9207
9607
EGREP=$lt_EGREP
9208
9608
 
9216
9616
NM=$lt_NM
9217
9617
 
9218
9618
# A symbol stripping program
9219
 
STRIP=$STRIP
 
9619
STRIP=$lt_STRIP
9220
9620
 
9221
9621
# Used to examine libraries when file_magic_cmd begins "file"
9222
9622
MAGIC_CMD=$MAGIC_CMD
9247
9647
libext="$libext"
9248
9648
 
9249
9649
# Shared library suffix (normally ".so").
9250
 
shrext='$shrext'
 
9650
shrext_cmds='$shrext_cmds'
9251
9651
 
9252
9652
# Executable file suffix (normally "").
9253
9653
exeext="$exeext"
9262
9662
# Does compiler simultaneously support -c and -o options?
9263
9663
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9264
9664
 
9265
 
# Must we lock files when doing compilation ?
 
9665
# Must we lock files when doing compilation?
9266
9666
need_locks=$lt_need_locks
9267
9667
 
9268
9668
# Do we need the lib prefix for modules?
9336
9736
 
9337
9737
# Dependencies to place before the objects being linked to create a
9338
9738
# shared library.
9339
 
predep_objects=$lt_predep_objects
 
9739
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9340
9740
 
9341
9741
# Dependencies to place after the objects being linked to create a
9342
9742
# shared library.
9343
 
postdep_objects=$lt_postdep_objects
 
9743
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9344
9744
 
9345
9745
# Dependencies to place before the objects being linked to create a
9346
9746
# shared library.
9352
9752
 
9353
9753
# The library search path used internally by the compiler when linking
9354
9754
# a shared library.
9355
 
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9755
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9356
9756
 
9357
9757
# Method to check whether dependent libraries are shared objects.
9358
9758
deplibs_check_method=$lt_deplibs_check_method
9432
9832
link_all_deplibs=$link_all_deplibs
9433
9833
 
9434
9834
# Compile-time system search path for libraries
9435
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9835
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9436
9836
 
9437
9837
# Run-time system search path for libraries
9438
9838
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9489
9889
  # If there is no Makefile yet, we rely on a make rule to execute
9490
9890
  # `config.status --recheck' to rerun these tests and create the
9491
9891
  # libtool script then.
9492
 
  test -f Makefile && make "$ltmain"
 
9892
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9893
  if test -f "$ltmain_in"; then
 
9894
    test -f Makefile && make "$ltmain"
 
9895
  fi
9493
9896
fi
9494
9897
 
9495
9898
 
9524
9927
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9525
9928
    fi
9526
9929
  fi
 
9930
  if test -z "$LTCFLAGS"; then
 
9931
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9932
  fi
9527
9933
 
9528
9934
  # Extract list of available tagged configurations in $ofile.
9529
9935
  # Note that this assumes the entire list is on one line.
9554
9960
 
9555
9961
      case $tagname in
9556
9962
      CXX)
9557
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9963
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9964
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9965
            (test "X$CXX" != "Xg++"))) ; then
9558
9966
          ac_ext=cc
9559
9967
ac_cpp='$CXXCPP $CPPFLAGS'
9560
9968
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574
9982
hardcode_libdir_flag_spec_ld_CXX=
9575
9983
hardcode_libdir_separator_CXX=
9576
9984
hardcode_minus_L_CXX=no
 
9985
hardcode_shlibpath_var_CXX=unsupported
9577
9986
hardcode_automatic_CXX=no
9578
9987
module_cmds_CXX=
9579
9988
module_expsym_cmds_CXX=
9591
10000
compiler_lib_search_path_CXX=
9592
10001
 
9593
10002
# Source file extension for C++ test sources.
9594
 
ac_ext=cc
 
10003
ac_ext=cpp
9595
10004
 
9596
10005
# Object file extension for compiled C++ test sources.
9597
10006
objext=o
9601
10010
lt_simple_compile_test_code="int some_variable = 0;\n"
9602
10011
 
9603
10012
# Code to be used in simple link tests
9604
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10013
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9605
10014
 
9606
10015
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9607
10016
 
9608
10017
# If no C compiler was specified, use CC.
9609
10018
LTCC=${LTCC-"$CC"}
9610
10019
 
 
10020
# If no C compiler flags were specified, use CFLAGS.
 
10021
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10022
 
9611
10023
# Allow CC to be a program name with arguments.
9612
10024
compiler=$CC
9613
10025
 
9614
10026
 
 
10027
# save warnings/boilerplate of simple test code
 
10028
ac_outfile=conftest.$ac_objext
 
10029
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10030
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10031
_lt_compiler_boilerplate=`cat conftest.err`
 
10032
$rm conftest*
 
10033
 
 
10034
ac_outfile=conftest.$ac_objext
 
10035
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10036
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10037
_lt_linker_boilerplate=`cat conftest.err`
 
10038
$rm conftest*
 
10039
 
 
10040
 
9615
10041
# Allow CC to be a program name with arguments.
9616
10042
lt_save_CC=$CC
9617
10043
lt_save_LD=$LD
9622
10048
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9623
10049
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9624
10050
else
9625
 
  unset lt_cv_prog_gnu_ld
 
10051
  $as_unset lt_cv_prog_gnu_ld
9626
10052
fi
9627
10053
if test -n "${lt_cv_path_LDCXX+set}"; then
9628
10054
  lt_cv_path_LD=$lt_cv_path_LDCXX
9629
10055
else
9630
 
  unset lt_cv_path_LD
 
10056
  $as_unset lt_cv_path_LD
9631
10057
fi
9632
10058
test -z "${LDCXX+set}" || LD=$LDCXX
9633
10059
CC=${CXX-"c++"}
9634
10060
compiler=$CC
9635
10061
compiler_CXX=$CC
9636
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10062
for cc_temp in $compiler""; do
 
10063
  case $cc_temp in
 
10064
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10065
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10066
    \-*) ;;
 
10067
    *) break;;
 
10068
  esac
 
10069
done
 
10070
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10071
 
9637
10072
 
9638
10073
# We don't want -fno-exception wen compiling C++ code, so set the
9639
10074
# no_builtin_flag separately
9670
10105
    # Accept absolute paths.
9671
10106
    [\\/]* | ?:[\\/]*)
9672
10107
      re_direlt='/[^/][^/]*/\.\./'
9673
 
      # Canonicalize the path of ld
 
10108
      # Canonicalize the pathname of ld
9674
10109
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9675
10110
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9676
10111
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9704
10139
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9705
10140
      lt_cv_path_LD="$ac_dir/$ac_prog"
9706
10141
      # Check to see if the program is GNU ld.  I'd rather use --version,
9707
 
      # but apparently some GNU ld's only accept -v.
 
10142
      # but apparently some variants of GNU ld only accept -v.
9708
10143
      # Break only if it was the GNU/non-GNU ld that we prefer.
9709
10144
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9710
10145
      *GNU* | *'with BFD'*)
9738
10173
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9739
10174
  echo $ECHO_N "(cached) $ECHO_C" >&6
9740
10175
else
9741
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10176
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9742
10177
case `$LD -v 2>&1 </dev/null` in
9743
10178
*GNU* | *'with BFD'*)
9744
10179
  lt_cv_prog_gnu_ld=yes
9829
10264
            ;;
9830
10265
          esac
9831
10266
        done
 
10267
        ;;
9832
10268
      esac
9833
10269
 
9834
10270
      exp_sym_flag='-bexport'
9847
10283
    link_all_deplibs_CXX=yes
9848
10284
 
9849
10285
    if test "$GXX" = yes; then
9850
 
      case $host_os in aix4.012|aix4.012.*)
 
10286
      case $host_os in aix4.[012]|aix4.[012].*)
9851
10287
      # We only want to do this on AIX 4.2 and lower, the check
9852
10288
      # below for broken collect2 doesn't work under 4.3+
9853
10289
        collect2name=`${CC} -print-prog-name=collect2`
9866
10302
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9867
10303
          hardcode_libdir_separator_CXX=
9868
10304
        fi
 
10305
        ;;
9869
10306
      esac
9870
10307
      shared_flag='-shared'
 
10308
      if test "$aix_use_runtimelinking" = yes; then
 
10309
        shared_flag="$shared_flag "'${wl}-G'
 
10310
      fi
9871
10311
    else
9872
10312
      # not using gcc
9873
10313
      if test "$host_cpu" = ia64; then
9945
10385
 
9946
10386
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9947
10387
 
9948
 
      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"
 
10388
      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"
9949
10389
     else
9950
10390
      if test "$host_cpu" = ia64; then
9951
10391
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9952
10392
        allow_undefined_flag_CXX="-z nodefs"
9953
 
        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"
 
10393
        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"
9954
10394
      else
9955
10395
        # Determine the default libpath from the value encoded in an empty executable.
9956
10396
        cat >conftest.$ac_ext <<_ACEOF
10010
10450
        # -berok will link without error, but may produce a broken library.
10011
10451
        no_undefined_flag_CXX=' ${wl}-bernotok'
10012
10452
        allow_undefined_flag_CXX=' ${wl}-berok'
10013
 
        # -bexpall does not export symbols beginning with underscore (_)
10014
 
        always_export_symbols_CXX=yes
10015
10453
        # Exported symbols can be pulled into shared objects from archives
10016
 
        whole_archive_flag_spec_CXX=' '
 
10454
        whole_archive_flag_spec_CXX='$convenience'
10017
10455
        archive_cmds_need_lc_CXX=yes
10018
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10019
 
        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'
 
10456
        # This is similar to how AIX traditionally builds its shared libraries.
 
10457
        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'
10020
10458
      fi
10021
10459
    fi
10022
10460
    ;;
 
10461
 
 
10462
  beos*)
 
10463
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10464
      allow_undefined_flag_CXX=unsupported
 
10465
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10466
      # support --undefined.  This deserves some investigation.  FIXME
 
10467
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10468
    else
 
10469
      ld_shlibs_CXX=no
 
10470
    fi
 
10471
    ;;
 
10472
 
10023
10473
  chorus*)
10024
10474
    case $cc_basename in
10025
10475
      *)
10038
10488
    enable_shared_with_static_runtimes_CXX=yes
10039
10489
 
10040
10490
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10041
 
      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'
 
10491
      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'
10042
10492
      # If the export-symbols file already is a .def file (1st line
10043
10493
      # is EXPORTS), use it as is; otherwise, prepend...
10044
10494
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10047
10497
        echo EXPORTS > $output_objdir/$soname.def;
10048
10498
        cat $export_symbols >> $output_objdir/$soname.def;
10049
10499
      fi~
10050
 
      $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'
 
10500
      $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'
10051
10501
    else
10052
10502
      ld_shlibs_CXX=no
10053
10503
    fi
10054
10504
  ;;
 
10505
      darwin* | rhapsody*)
 
10506
        case $host_os in
 
10507
        rhapsody* | darwin1.[012])
 
10508
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10509
         ;;
 
10510
       *) # Darwin 1.3 on
 
10511
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10512
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10513
         else
 
10514
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10515
             10.[012])
 
10516
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10517
               ;;
 
10518
             10.*)
 
10519
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10520
               ;;
 
10521
           esac
 
10522
         fi
 
10523
         ;;
 
10524
        esac
 
10525
      archive_cmds_need_lc_CXX=no
 
10526
      hardcode_direct_CXX=no
 
10527
      hardcode_automatic_CXX=yes
 
10528
      hardcode_shlibpath_var_CXX=unsupported
 
10529
      whole_archive_flag_spec_CXX=''
 
10530
      link_all_deplibs_CXX=yes
10055
10531
 
10056
 
  darwin* | rhapsody*)
10057
 
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10058
 
    archive_cmds_need_lc_CXX=no
10059
 
    case "$host_os" in
10060
 
    rhapsody* | darwin1.[012])
10061
 
      allow_undefined_flag_CXX='-undefined suppress'
10062
 
      ;;
10063
 
    *) # Darwin 1.3 on
10064
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10065
 
      ;;
10066
 
    esac
10067
 
        lt_int_apple_cc_single_mod=no
10068
 
        output_verbose_link_cmd='echo'
10069
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10070
 
          lt_int_apple_cc_single_mod=yes
10071
 
        fi
10072
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10073
 
          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10074
 
        else
10075
 
        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'
 
10532
    if test "$GXX" = yes ; then
 
10533
      lt_int_apple_cc_single_mod=no
 
10534
      output_verbose_link_cmd='echo'
 
10535
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10536
       lt_int_apple_cc_single_mod=yes
10076
10537
      fi
10077
 
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10078
 
 
10079
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10080
10538
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10081
 
        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}'
10082
 
      else
10083
 
        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}'
 
10539
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10540
      else
 
10541
          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'
 
10542
        fi
 
10543
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10544
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10545
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10546
            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}'
 
10547
          else
 
10548
            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}'
 
10549
          fi
 
10550
            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}'
 
10551
      else
 
10552
      case $cc_basename in
 
10553
        xlc*)
 
10554
         output_verbose_link_cmd='echo'
 
10555
          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'
 
10556
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10557
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10558
          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}'
 
10559
          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}'
 
10560
          ;;
 
10561
       *)
 
10562
         ld_shlibs_CXX=no
 
10563
          ;;
 
10564
      esac
10084
10565
      fi
10085
 
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10086
 
    hardcode_direct_CXX=no
10087
 
    hardcode_automatic_CXX=yes
10088
 
    hardcode_shlibpath_var_CXX=unsupported
10089
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10090
 
    link_all_deplibs_CXX=yes
10091
 
   fi
10092
 
    ;;
 
10566
        ;;
10093
10567
 
10094
10568
  dgux*)
10095
10569
    case $cc_basename in
10096
 
      ec++)
 
10570
      ec++*)
10097
10571
        # FIXME: insert proper C++ library support
10098
10572
        ld_shlibs_CXX=no
10099
10573
        ;;
10100
 
      ghcx)
 
10574
      ghcx*)
10101
10575
        # Green Hills C++ Compiler
10102
10576
        # FIXME: insert proper C++ library support
10103
10577
        ld_shlibs_CXX=no
10108
10582
        ;;
10109
10583
    esac
10110
10584
    ;;
10111
 
  freebsd12*)
 
10585
  freebsd[12]*)
10112
10586
    # C++ shared libraries reported to be fairly broken before switch to ELF
10113
10587
    ld_shlibs_CXX=no
10114
10588
    ;;
10115
10589
  freebsd-elf*)
10116
10590
    archive_cmds_need_lc_CXX=no
10117
10591
    ;;
10118
 
  freebsd*)
 
10592
  freebsd* | kfreebsd*-gnu | dragonfly*)
10119
10593
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10120
10594
    # conventions
10121
10595
    ld_shlibs_CXX=yes
10132
10606
                                # location of the library.
10133
10607
 
10134
10608
    case $cc_basename in
10135
 
    CC)
 
10609
    CC*)
10136
10610
      # FIXME: insert proper C++ library support
10137
10611
      ld_shlibs_CXX=no
10138
10612
      ;;
10139
 
    aCC)
 
10613
    aCC*)
10140
10614
      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'
10141
10615
      # Commands to make compiler produce verbose output that lists
10142
10616
      # what "hidden" libraries, object files and flags are used when
10146
10620
      # explicitly linking system object files so we need to strip them
10147
10621
      # from the output so that they don't get included in the library
10148
10622
      # dependencies.
10149
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10623
      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'
10150
10624
      ;;
10151
10625
    *)
10152
10626
      if test "$GXX" = yes; then
10160
10634
    ;;
10161
10635
  hpux10*|hpux11*)
10162
10636
    if test $with_gnu_ld = no; then
10163
 
      case "$host_cpu" in
10164
 
      hppa*64*)
10165
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10637
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10638
      hardcode_libdir_separator_CXX=:
 
10639
 
 
10640
      case $host_cpu in
 
10641
      hppa*64*|ia64*)
10166
10642
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10167
 
        hardcode_libdir_separator_CXX=:
10168
 
        ;;
10169
 
      ia64*)
10170
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10171
10643
        ;;
10172
10644
      *)
10173
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10174
 
        hardcode_libdir_separator_CXX=:
10175
10645
        export_dynamic_flag_spec_CXX='${wl}-E'
10176
10646
        ;;
10177
10647
      esac
10178
10648
    fi
10179
 
    case "$host_cpu" in
10180
 
    hppa*64*)
10181
 
      hardcode_direct_CXX=no
10182
 
      hardcode_shlibpath_var_CXX=no
10183
 
      ;;
10184
 
    ia64*)
10185
 
      hardcode_direct_CXX=no
10186
 
      hardcode_shlibpath_var_CXX=no
10187
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10188
 
                                              # but as the default
10189
 
                                              # location of the library.
 
10649
    case $host_cpu in
 
10650
    hppa*64*|ia64*)
 
10651
      hardcode_direct_CXX=no
 
10652
      hardcode_shlibpath_var_CXX=no
10190
10653
      ;;
10191
10654
    *)
10192
10655
      hardcode_direct_CXX=yes
10197
10660
    esac
10198
10661
 
10199
10662
    case $cc_basename in
10200
 
      CC)
 
10663
      CC*)
10201
10664
        # FIXME: insert proper C++ library support
10202
10665
        ld_shlibs_CXX=no
10203
10666
        ;;
10204
 
      aCC)
10205
 
        case "$host_cpu" in
10206
 
        hppa*64*|ia64*)
10207
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10667
      aCC*)
 
10668
        case $host_cpu in
 
10669
        hppa*64*)
 
10670
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10671
          ;;
 
10672
        ia64*)
 
10673
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10208
10674
          ;;
10209
10675
        *)
10210
10676
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10223
10689
      *)
10224
10690
        if test "$GXX" = yes; then
10225
10691
          if test $with_gnu_ld = no; then
10226
 
            case "$host_cpu" in
10227
 
            ia64*|hppa*64*)
10228
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10692
            case $host_cpu in
 
10693
            hppa*64*)
 
10694
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10695
              ;;
 
10696
            ia64*)
 
10697
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10229
10698
              ;;
10230
10699
            *)
10231
10700
              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'
10239
10708
        ;;
10240
10709
    esac
10241
10710
    ;;
 
10711
  interix3*)
 
10712
    hardcode_direct_CXX=no
 
10713
    hardcode_shlibpath_var_CXX=no
 
10714
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10715
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10716
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10717
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10718
    # default) and relocated if they conflict, which is a slow very memory
 
10719
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10720
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10721
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10722
    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'
 
10723
    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'
 
10724
    ;;
10242
10725
  irix5* | irix6*)
10243
10726
    case $cc_basename in
10244
 
      CC)
 
10727
      CC*)
10245
10728
        # SGI C++
10246
 
        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'
 
10729
        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'
10247
10730
 
10248
10731
        # Archives containing C++ object files must be created using
10249
10732
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10254
10737
      *)
10255
10738
        if test "$GXX" = yes; then
10256
10739
          if test "$with_gnu_ld" = no; then
10257
 
            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'
 
10740
            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'
10258
10741
          else
10259
10742
            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'
10260
10743
          fi
10267
10750
    ;;
10268
10751
  linux*)
10269
10752
    case $cc_basename in
10270
 
      KCC)
 
10753
      KCC*)
10271
10754
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10272
10755
 
10273
10756
        # KCC will only create a shared library if the output file
10292
10775
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10293
10776
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10294
10777
        ;;
10295
 
      icpc)
 
10778
      icpc*)
10296
10779
        # Intel C++
10297
10780
        with_gnu_ld=yes
 
10781
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10782
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10783
        # earlier do not add the objects themselves.
 
10784
        case `$CC -V 2>&1` in
 
10785
        *"Version 7."*)
 
10786
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10787
          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'
 
10788
          ;;
 
10789
        *)  # Version 8.0 or newer
 
10790
          tmp_idyn=
 
10791
          case $host_cpu in
 
10792
            ia64*) tmp_idyn=' -i_dynamic';;
 
10793
          esac
 
10794
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10795
          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'
 
10796
          ;;
 
10797
        esac
10298
10798
        archive_cmds_need_lc_CXX=no
10299
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300
 
        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'
10301
10799
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10302
10800
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10303
10801
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10304
10802
        ;;
10305
 
      cxx)
 
10803
      pgCC*)
 
10804
        # Portland Group C++ compiler
 
10805
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10806
        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'
 
10807
 
 
10808
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10809
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10810
        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'
 
10811
        ;;
 
10812
      cxx*)
10306
10813
        # Compaq C++
10307
10814
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308
10815
        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'
10333
10840
    ;;
10334
10841
  mvs*)
10335
10842
    case $cc_basename in
10336
 
      cxx)
 
10843
      cxx*)
10337
10844
        # FIXME: insert proper C++ library support
10338
10845
        ld_shlibs_CXX=no
10339
10846
        ;;
10354
10861
    # Workaround some broken pre-1.5 toolchains
10355
10862
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10356
10863
    ;;
 
10864
  openbsd2*)
 
10865
    # C++ shared libraries are fairly broken
 
10866
    ld_shlibs_CXX=no
 
10867
    ;;
 
10868
  openbsd*)
 
10869
    hardcode_direct_CXX=yes
 
10870
    hardcode_shlibpath_var_CXX=no
 
10871
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10872
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10873
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10874
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10875
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10876
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10877
    fi
 
10878
    output_verbose_link_cmd='echo'
 
10879
    ;;
10357
10880
  osf3*)
10358
10881
    case $cc_basename in
10359
 
      KCC)
 
10882
      KCC*)
10360
10883
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10361
10884
 
10362
10885
        # KCC will only create a shared library if the output file
10372
10895
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10373
10896
 
10374
10897
        ;;
10375
 
      RCC)
 
10898
      RCC*)
10376
10899
        # Rational C++ 2.4.1
10377
10900
        # FIXME: insert proper C++ library support
10378
10901
        ld_shlibs_CXX=no
10379
10902
        ;;
10380
 
      cxx)
 
10903
      cxx*)
10381
10904
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10382
 
        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'
 
10905
        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'
10383
10906
 
10384
10907
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10385
10908
        hardcode_libdir_separator_CXX=:
10397
10920
      *)
10398
10921
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10399
10922
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10400
 
          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'
 
10923
          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'
10401
10924
 
10402
10925
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10403
10926
          hardcode_libdir_separator_CXX=:
10416
10939
    ;;
10417
10940
  osf4* | osf5*)
10418
10941
    case $cc_basename in
10419
 
      KCC)
 
10942
      KCC*)
10420
10943
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10421
10944
 
10422
10945
        # KCC will only create a shared library if the output file
10431
10954
        # the KAI C++ compiler.
10432
10955
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10433
10956
        ;;
10434
 
      RCC)
 
10957
      RCC*)
10435
10958
        # Rational C++ 2.4.1
10436
10959
        # FIXME: insert proper C++ library support
10437
10960
        ld_shlibs_CXX=no
10438
10961
        ;;
10439
 
      cxx)
 
10962
      cxx*)
10440
10963
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10441
 
        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'
 
10964
        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'
10442
10965
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10443
10966
          echo "-hidden">> $lib.exp~
10444
 
          $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~
 
10967
          $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~
10445
10968
          $rm $lib.exp'
10446
10969
 
10447
10970
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10460
10983
      *)
10461
10984
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10462
10985
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10463
 
         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'
 
10986
         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'
10464
10987
 
10465
10988
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10466
10989
          hardcode_libdir_separator_CXX=:
10481
11004
    # FIXME: insert proper C++ library support
10482
11005
    ld_shlibs_CXX=no
10483
11006
    ;;
10484
 
  sco*)
10485
 
    archive_cmds_need_lc_CXX=no
10486
 
    case $cc_basename in
10487
 
      CC)
10488
 
        # FIXME: insert proper C++ library support
10489
 
        ld_shlibs_CXX=no
10490
 
        ;;
10491
 
      *)
10492
 
        # FIXME: insert proper C++ library support
10493
 
        ld_shlibs_CXX=no
10494
 
        ;;
10495
 
    esac
10496
 
    ;;
10497
11007
  sunos4*)
10498
11008
    case $cc_basename in
10499
 
      CC)
 
11009
      CC*)
10500
11010
        # Sun C++ 4.x
10501
11011
        # FIXME: insert proper C++ library support
10502
11012
        ld_shlibs_CXX=no
10503
11013
        ;;
10504
 
      lcc)
 
11014
      lcc*)
10505
11015
        # Lucid
10506
11016
        # FIXME: insert proper C++ library support
10507
11017
        ld_shlibs_CXX=no
10514
11024
    ;;
10515
11025
  solaris*)
10516
11026
    case $cc_basename in
10517
 
      CC)
 
11027
      CC*)
10518
11028
        # Sun C++ 4.2, 5.x and Centerline C++
 
11029
        archive_cmds_need_lc_CXX=yes
10519
11030
        no_undefined_flag_CXX=' -zdefs'
10520
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11031
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10521
11032
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10522
 
        $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'
 
11033
        $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'
10523
11034
 
10524
11035
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10525
11036
        hardcode_shlibpath_var_CXX=no
10526
11037
        case $host_os in
10527
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11038
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10528
11039
          *)
10529
11040
            # The C++ compiler is used as linker so we must use $wl
10530
11041
            # flag to pass the commands to the underlying system
10531
 
            # linker.
 
11042
            # linker. We must also pass each convience library through
 
11043
            # to the system linker between allextract/defaultextract.
 
11044
            # The C++ compiler will combine linker options so we
 
11045
            # cannot just pass the convience library names through
 
11046
            # without $wl.
10532
11047
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10533
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11048
            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'
10534
11049
            ;;
10535
11050
        esac
10536
11051
        link_all_deplibs_CXX=yes
10537
11052
 
10538
 
        # Commands to make compiler produce verbose output that lists
10539
 
        # what "hidden" libraries, object files and flags are used when
10540
 
        # linking a shared library.
10541
 
        #
10542
 
        # There doesn't appear to be a way to prevent this compiler from
10543
 
        # explicitly linking system object files so we need to strip them
10544
 
        # from the output so that they don't get included in the library
10545
 
        # dependencies.
10546
 
        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'
 
11053
        output_verbose_link_cmd='echo'
10547
11054
 
10548
11055
        # Archives containing C++ object files must be created using
10549
11056
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10551
11058
        # in the archive.
10552
11059
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10553
11060
        ;;
10554
 
      gcx)
 
11061
      gcx*)
10555
11062
        # Green Hills C++ Compiler
10556
11063
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10557
11064
 
10589
11096
        ;;
10590
11097
    esac
10591
11098
    ;;
10592
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10593
 
    archive_cmds_need_lc_CXX=no
 
11099
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11100
    no_undefined_flag_CXX='${wl}-z,text'
 
11101
    archive_cmds_need_lc_CXX=no
 
11102
    hardcode_shlibpath_var_CXX=no
 
11103
    runpath_var='LD_RUN_PATH'
 
11104
 
 
11105
    case $cc_basename in
 
11106
      CC*)
 
11107
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11108
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11109
        ;;
 
11110
      *)
 
11111
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11112
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11113
        ;;
 
11114
    esac
 
11115
    ;;
 
11116
  sysv5* | sco3.2v5* | sco5v6*)
 
11117
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11118
    # link with -lc, and that would cause any symbols used from libc to
 
11119
    # always be unresolved, which means just about no library would
 
11120
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11121
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11122
    # as -z defs.
 
11123
    # For security reasons, it is highly recommended that you always
 
11124
    # use absolute paths for naming shared libraries, and exclude the
 
11125
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11126
    # requires that you compile everything twice, which is a pain.
 
11127
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11128
    # non-empty value in the environment.  Most likely only useful for
 
11129
    # creating official distributions of packages.
 
11130
    # This is a hack until libtool officially supports absolute path
 
11131
    # names for shared libraries.
 
11132
    no_undefined_flag_CXX='${wl}-z,text'
 
11133
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11134
    archive_cmds_need_lc_CXX=no
 
11135
    hardcode_shlibpath_var_CXX=no
 
11136
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11137
    hardcode_libdir_separator_CXX=':'
 
11138
    link_all_deplibs_CXX=yes
 
11139
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11140
    runpath_var='LD_RUN_PATH'
 
11141
 
 
11142
    case $cc_basename in
 
11143
      CC*)
 
11144
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11145
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11146
        ;;
 
11147
      *)
 
11148
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11149
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11150
        ;;
 
11151
    esac
10594
11152
    ;;
10595
11153
  tandem*)
10596
11154
    case $cc_basename in
10597
 
      NCC)
 
11155
      NCC*)
10598
11156
        # NonStop-UX NCC 3.20
10599
11157
        # FIXME: insert proper C++ library support
10600
11158
        ld_shlibs_CXX=no
10647
11205
  # The `*' in the case matches for architectures that use `case' in
10648
11206
  # $output_verbose_cmd can trigger glob expansion during the loop
10649
11207
  # eval without this substitution.
10650
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11208
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10651
11209
 
10652
11210
  for p in `eval $output_verbose_link_cmd`; do
10653
11211
    case $p in
10723
11281
 
10724
11282
$rm -f confest.$objext
10725
11283
 
 
11284
# PORTME: override above test on systems where it is broken
 
11285
case $host_os in
 
11286
interix3*)
 
11287
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11288
  # hack all around it, let's just trust "g++" to DTRT.
 
11289
  predep_objects_CXX=
 
11290
  postdep_objects_CXX=
 
11291
  postdeps_CXX=
 
11292
  ;;
 
11293
 
 
11294
solaris*)
 
11295
  case $cc_basename in
 
11296
  CC*)
 
11297
    # Adding this requires a known-good setup of shared libraries for
 
11298
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11299
    # archive will be linked into the output, leading to subtle bugs.
 
11300
    postdeps_CXX='-lCstd -lCrun'
 
11301
    ;;
 
11302
  esac
 
11303
  ;;
 
11304
esac
 
11305
 
 
11306
 
10726
11307
case " $postdeps_CXX " in
10727
11308
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10728
11309
esac
10770
11351
      # DJGPP does not support shared libraries at all
10771
11352
      lt_prog_compiler_pic_CXX=
10772
11353
      ;;
 
11354
    interix3*)
 
11355
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11356
      # Instead, we relocate shared libraries at runtime.
 
11357
      ;;
10773
11358
    sysv4*MP*)
10774
11359
      if test -d /usr/nec; then
10775
11360
        lt_prog_compiler_pic_CXX=-Kconform_pic
10778
11363
    hpux*)
10779
11364
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10780
11365
      # not for PA HP-UX.
10781
 
      case "$host_cpu" in
 
11366
      case $host_cpu in
10782
11367
      hppa*64*|ia64*)
10783
11368
        ;;
10784
11369
      *)
10803
11388
        ;;
10804
11389
      chorus*)
10805
11390
        case $cc_basename in
10806
 
        cxch68)
 
11391
        cxch68*)
10807
11392
          # Green Hills C++ Compiler
10808
11393
          # _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"
10809
11394
          ;;
10810
11395
        esac
10811
11396
        ;;
 
11397
       darwin*)
 
11398
         # PIC is the default on this platform
 
11399
         # Common symbols not allowed in MH_DYLIB files
 
11400
         case $cc_basename in
 
11401
           xlc*)
 
11402
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11403
           lt_prog_compiler_wl_CXX='-Wl,'
 
11404
           ;;
 
11405
         esac
 
11406
       ;;
10812
11407
      dgux*)
10813
11408
        case $cc_basename in
10814
 
          ec++)
 
11409
          ec++*)
10815
11410
            lt_prog_compiler_pic_CXX='-KPIC'
10816
11411
            ;;
10817
 
          ghcx)
 
11412
          ghcx*)
10818
11413
            # Green Hills C++ Compiler
10819
11414
            lt_prog_compiler_pic_CXX='-pic'
10820
11415
            ;;
10822
11417
            ;;
10823
11418
        esac
10824
11419
        ;;
10825
 
      freebsd*)
 
11420
      freebsd* | kfreebsd*-gnu | dragonfly*)
10826
11421
        # FreeBSD uses GNU C++
10827
11422
        ;;
10828
11423
      hpux9* | hpux10* | hpux11*)
10829
11424
        case $cc_basename in
10830
 
          CC)
 
11425
          CC*)
10831
11426
            lt_prog_compiler_wl_CXX='-Wl,'
10832
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11427
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10833
11428
            if test "$host_cpu" != ia64; then
10834
11429
              lt_prog_compiler_pic_CXX='+Z'
10835
11430
            fi
10836
11431
            ;;
10837
 
          aCC)
 
11432
          aCC*)
10838
11433
            lt_prog_compiler_wl_CXX='-Wl,'
10839
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10840
 
            case "$host_cpu" in
 
11434
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11435
            case $host_cpu in
10841
11436
            hppa*64*|ia64*)
10842
11437
              # +Z the default
10843
11438
              ;;
10850
11445
            ;;
10851
11446
        esac
10852
11447
        ;;
 
11448
      interix*)
 
11449
        # This is c89, which is MS Visual C++ (no shared libs)
 
11450
        # Anyone wants to do a port?
 
11451
        ;;
10853
11452
      irix5* | irix6* | nonstopux*)
10854
11453
        case $cc_basename in
10855
 
          CC)
 
11454
          CC*)
10856
11455
            lt_prog_compiler_wl_CXX='-Wl,'
10857
11456
            lt_prog_compiler_static_CXX='-non_shared'
10858
11457
            # CC pic flag -KPIC is the default.
10863
11462
        ;;
10864
11463
      linux*)
10865
11464
        case $cc_basename in
10866
 
          KCC)
 
11465
          KCC*)
10867
11466
            # KAI C++ Compiler
10868
11467
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10869
11468
            lt_prog_compiler_pic_CXX='-fPIC'
10870
11469
            ;;
10871
 
          icpc)
 
11470
          icpc* | ecpc*)
10872
11471
            # Intel C++
10873
11472
            lt_prog_compiler_wl_CXX='-Wl,'
10874
11473
            lt_prog_compiler_pic_CXX='-KPIC'
10875
11474
            lt_prog_compiler_static_CXX='-static'
10876
11475
            ;;
10877
 
          cxx)
 
11476
          pgCC*)
 
11477
            # Portland Group C++ compiler.
 
11478
            lt_prog_compiler_wl_CXX='-Wl,'
 
11479
            lt_prog_compiler_pic_CXX='-fpic'
 
11480
            lt_prog_compiler_static_CXX='-Bstatic'
 
11481
            ;;
 
11482
          cxx*)
10878
11483
            # Compaq C++
10879
11484
            # Make sure the PIC flag is empty.  It appears that all Alpha
10880
11485
            # Linux and Compaq Tru64 Unix objects are PIC.
10891
11496
        ;;
10892
11497
      mvs*)
10893
11498
        case $cc_basename in
10894
 
          cxx)
 
11499
          cxx*)
10895
11500
            lt_prog_compiler_pic_CXX='-W c,exportall'
10896
11501
            ;;
10897
11502
          *)
10902
11507
        ;;
10903
11508
      osf3* | osf4* | osf5*)
10904
11509
        case $cc_basename in
10905
 
          KCC)
 
11510
          KCC*)
10906
11511
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10907
11512
            ;;
10908
 
          RCC)
 
11513
          RCC*)
10909
11514
            # Rational C++ 2.4.1
10910
11515
            lt_prog_compiler_pic_CXX='-pic'
10911
11516
            ;;
10912
 
          cxx)
 
11517
          cxx*)
10913
11518
            # Digital/Compaq C++
10914
11519
            lt_prog_compiler_wl_CXX='-Wl,'
10915
11520
            # Make sure the PIC flag is empty.  It appears that all Alpha
10923
11528
        ;;
10924
11529
      psos*)
10925
11530
        ;;
10926
 
      sco*)
10927
 
        case $cc_basename in
10928
 
          CC)
10929
 
            lt_prog_compiler_pic_CXX='-fPIC'
10930
 
            ;;
10931
 
          *)
10932
 
            ;;
10933
 
        esac
10934
 
        ;;
10935
11531
      solaris*)
10936
11532
        case $cc_basename in
10937
 
          CC)
 
11533
          CC*)
10938
11534
            # Sun C++ 4.2, 5.x and Centerline C++
10939
11535
            lt_prog_compiler_pic_CXX='-KPIC'
10940
11536
            lt_prog_compiler_static_CXX='-Bstatic'
10941
11537
            lt_prog_compiler_wl_CXX='-Qoption ld '
10942
11538
            ;;
10943
 
          gcx)
 
11539
          gcx*)
10944
11540
            # Green Hills C++ Compiler
10945
11541
            lt_prog_compiler_pic_CXX='-PIC'
10946
11542
            ;;
10950
11546
        ;;
10951
11547
      sunos4*)
10952
11548
        case $cc_basename in
10953
 
          CC)
 
11549
          CC*)
10954
11550
            # Sun C++ 4.x
10955
11551
            lt_prog_compiler_pic_CXX='-pic'
10956
11552
            lt_prog_compiler_static_CXX='-Bstatic'
10957
11553
            ;;
10958
 
          lcc)
 
11554
          lcc*)
10959
11555
            # Lucid
10960
11556
            lt_prog_compiler_pic_CXX='-pic'
10961
11557
            ;;
10965
11561
        ;;
10966
11562
      tandem*)
10967
11563
        case $cc_basename in
10968
 
          NCC)
 
11564
          NCC*)
10969
11565
            # NonStop-UX NCC 3.20
10970
11566
            lt_prog_compiler_pic_CXX='-KPIC'
10971
11567
            ;;
10973
11569
            ;;
10974
11570
        esac
10975
11571
        ;;
10976
 
      unixware*)
 
11572
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11573
        case $cc_basename in
 
11574
          CC*)
 
11575
            lt_prog_compiler_wl_CXX='-Wl,'
 
11576
            lt_prog_compiler_pic_CXX='-KPIC'
 
11577
            lt_prog_compiler_static_CXX='-Bstatic'
 
11578
            ;;
 
11579
        esac
10977
11580
        ;;
10978
11581
      vxworks*)
10979
11582
        ;;
10990
11593
# Check to make sure the PIC flag actually works.
10991
11594
#
10992
11595
if test -n "$lt_prog_compiler_pic_CXX"; then
10993
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11596
 
 
11597
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10994
11598
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10995
11599
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10996
11600
  echo $ECHO_N "(cached) $ECHO_C" >&6
11005
11609
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11006
11610
   # The option is referenced via a variable to avoid confusing sed.
11007
11611
   lt_compile=`echo "$ac_compile" | $SED \
11008
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11612
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11009
11613
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11010
11614
   -e 's:$: $lt_compiler_flag:'`
11011
 
   (eval echo "\"\$as_me:11011: $lt_compile\"" >&5)
 
11615
   (eval echo "\"\$as_me:11615: $lt_compile\"" >&5)
11012
11616
   (eval "$lt_compile" 2>conftest.err)
11013
11617
   ac_status=$?
11014
11618
   cat conftest.err >&5
11015
 
   echo "$as_me:11015: \$? = $ac_status" >&5
 
11619
   echo "$as_me:11619: \$? = $ac_status" >&5
11016
11620
   if (exit $ac_status) && test -s "$ac_outfile"; then
11017
11621
     # The compiler can only warn and ignore the option if not recognized
11018
 
     # So say no if there are warnings
11019
 
     if test ! -s conftest.err; then
 
11622
     # So say no if there are warnings other than the usual output.
 
11623
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11624
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11625
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11020
11626
       lt_prog_compiler_pic_works_CXX=yes
11021
11627
     fi
11022
11628
   fi
11037
11643
fi
11038
11644
 
11039
11645
fi
11040
 
case "$host_os" in
 
11646
case $host_os in
11041
11647
  # For platforms which do not support PIC, -DPIC is meaningless:
11042
11648
  *djgpp*)
11043
11649
    lt_prog_compiler_pic_CXX=
11047
11653
    ;;
11048
11654
esac
11049
11655
 
 
11656
#
 
11657
# Check to make sure the static flag actually works.
 
11658
#
 
11659
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11660
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11661
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11662
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11664
else
 
11665
  lt_prog_compiler_static_works_CXX=no
 
11666
   save_LDFLAGS="$LDFLAGS"
 
11667
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11668
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11669
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11670
     # The linker can only warn and ignore the option if not recognized
 
11671
     # So say no if there are warnings
 
11672
     if test -s conftest.err; then
 
11673
       # Append any errors to the config.log.
 
11674
       cat conftest.err 1>&5
 
11675
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11676
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11677
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11678
         lt_prog_compiler_static_works_CXX=yes
 
11679
       fi
 
11680
     else
 
11681
       lt_prog_compiler_static_works_CXX=yes
 
11682
     fi
 
11683
   fi
 
11684
   $rm conftest*
 
11685
   LDFLAGS="$save_LDFLAGS"
 
11686
 
 
11687
fi
 
11688
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11689
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11690
 
 
11691
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11692
    :
 
11693
else
 
11694
    lt_prog_compiler_static_CXX=
 
11695
fi
 
11696
 
 
11697
 
11050
11698
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11051
11699
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11052
11700
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11059
11707
   mkdir out
11060
11708
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061
11709
 
11062
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11063
 
   # that will create temporary files in the current directory regardless of
11064
 
   # the output directory.  Thus, making CWD read-only will cause this test
11065
 
   # to fail, enabling locking or at least warning the user not to do parallel
11066
 
   # builds.
11067
 
   chmod -w .
11068
 
 
11069
11710
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11070
11711
   # Insert the option either (1) after the last *FLAGS variable, or
11071
11712
   # (2) before a word containing "conftest.", or (3) at the end.
11072
11713
   # Note that $ac_compile itself does not contain backslashes and begins
11073
11714
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11074
11715
   lt_compile=`echo "$ac_compile" | $SED \
11075
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11716
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11076
11717
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11077
11718
   -e 's:$: $lt_compiler_flag:'`
11078
 
   (eval echo "\"\$as_me:11078: $lt_compile\"" >&5)
 
11719
   (eval echo "\"\$as_me:11719: $lt_compile\"" >&5)
11079
11720
   (eval "$lt_compile" 2>out/conftest.err)
11080
11721
   ac_status=$?
11081
11722
   cat out/conftest.err >&5
11082
 
   echo "$as_me:11082: \$? = $ac_status" >&5
 
11723
   echo "$as_me:11723: \$? = $ac_status" >&5
11083
11724
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11084
11725
   then
11085
11726
     # The compiler can only warn and ignore the option if not recognized
11086
11727
     # So say no if there are warnings
11087
 
     if test ! -s out/conftest.err; then
 
11728
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11729
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11730
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11088
11731
       lt_cv_prog_compiler_c_o_CXX=yes
11089
11732
     fi
11090
11733
   fi
11091
 
   chmod u+w .
11092
 
   $rm conftest* out/*
11093
 
   rmdir out
 
11734
   chmod u+w . 2>&5
 
11735
   $rm conftest*
 
11736
   # SGI C++ compiler will create directory out/ii_files/ for
 
11737
   # template instantiation
 
11738
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11739
   $rm out/* && rmdir out
11094
11740
   cd ..
11095
11741
   rmdir conftest
11096
11742
   $rm conftest*
11140
11786
    export_symbols_cmds_CXX="$ltdll_cmds"
11141
11787
  ;;
11142
11788
  cygwin* | mingw*)
11143
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11789
    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'
11144
11790
  ;;
11145
11791
  *)
11146
11792
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11151
11797
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11152
11798
test "$ld_shlibs_CXX" = no && can_build_shared=no
11153
11799
 
11154
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11155
 
if test "$GCC" = yes; then
11156
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11157
 
fi
11158
 
 
11159
11800
#
11160
11801
# Do we need to explicitly link libc?
11161
11802
#
11188
11829
        libobjs=conftest.$ac_objext
11189
11830
        deplibs=
11190
11831
        wl=$lt_prog_compiler_wl_CXX
 
11832
        pic_flag=$lt_prog_compiler_pic_CXX
11191
11833
        compiler_flags=-v
11192
11834
        linker_flags=-v
11193
11835
        verstring=
11218
11860
  ;;
11219
11861
esac
11220
11862
 
 
11863
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11864
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11865
library_names_spec=
 
11866
libname_spec='lib$name'
 
11867
soname_spec=
 
11868
shrext_cmds=".so"
 
11869
postinstall_cmds=
 
11870
postuninstall_cmds=
 
11871
finish_cmds=
 
11872
finish_eval=
 
11873
shlibpath_var=
 
11874
shlibpath_overrides_runpath=unknown
 
11875
version_type=none
 
11876
dynamic_linker="$host_os ld.so"
 
11877
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11878
if test "$GCC" = yes; then
 
11879
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11880
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11881
    # if the path contains ";" then we assume it to be the separator
 
11882
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11883
    # assumed that no part of a normal pathname contains ";" but that should
 
11884
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11885
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11886
  else
 
11887
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11888
  fi
 
11889
else
 
11890
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11891
fi
 
11892
need_lib_prefix=unknown
 
11893
hardcode_into_libs=no
 
11894
 
 
11895
# when you set need_version to no, make sure it does not cause -set_version
 
11896
# flags to be left without arguments
 
11897
need_version=unknown
 
11898
 
 
11899
case $host_os in
 
11900
aix3*)
 
11901
  version_type=linux
 
11902
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11903
  shlibpath_var=LIBPATH
 
11904
 
 
11905
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11906
  soname_spec='${libname}${release}${shared_ext}$major'
 
11907
  ;;
 
11908
 
 
11909
aix4* | aix5*)
 
11910
  version_type=linux
 
11911
  need_lib_prefix=no
 
11912
  need_version=no
 
11913
  hardcode_into_libs=yes
 
11914
  if test "$host_cpu" = ia64; then
 
11915
    # AIX 5 supports IA64
 
11916
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11917
    shlibpath_var=LD_LIBRARY_PATH
 
11918
  else
 
11919
    # With GCC up to 2.95.x, collect2 would create an import file
 
11920
    # for dependence libraries.  The import file would start with
 
11921
    # the line `#! .'.  This would cause the generated library to
 
11922
    # depend on `.', always an invalid library.  This was fixed in
 
11923
    # development snapshots of GCC prior to 3.0.
 
11924
    case $host_os in
 
11925
      aix4 | aix4.[01] | aix4.[01].*)
 
11926
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11927
           echo ' yes '
 
11928
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11929
        :
 
11930
      else
 
11931
        can_build_shared=no
 
11932
      fi
 
11933
      ;;
 
11934
    esac
 
11935
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11936
    # soname into executable. Probably we can add versioning support to
 
11937
    # collect2, so additional links can be useful in future.
 
11938
    if test "$aix_use_runtimelinking" = yes; then
 
11939
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11940
      # instead of lib<name>.a to let people know that these are not
 
11941
      # typical AIX shared libraries.
 
11942
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11943
    else
 
11944
      # We preserve .a as extension for shared libraries through AIX4.2
 
11945
      # and later when we are not doing run time linking.
 
11946
      library_names_spec='${libname}${release}.a $libname.a'
 
11947
      soname_spec='${libname}${release}${shared_ext}$major'
 
11948
    fi
 
11949
    shlibpath_var=LIBPATH
 
11950
  fi
 
11951
  ;;
 
11952
 
 
11953
amigaos*)
 
11954
  library_names_spec='$libname.ixlibrary $libname.a'
 
11955
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11956
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
11957
  ;;
 
11958
 
 
11959
beos*)
 
11960
  library_names_spec='${libname}${shared_ext}'
 
11961
  dynamic_linker="$host_os ld.so"
 
11962
  shlibpath_var=LIBRARY_PATH
 
11963
  ;;
 
11964
 
 
11965
bsdi[45]*)
 
11966
  version_type=linux
 
11967
  need_version=no
 
11968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11969
  soname_spec='${libname}${release}${shared_ext}$major'
 
11970
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11971
  shlibpath_var=LD_LIBRARY_PATH
 
11972
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11973
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11974
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11975
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11976
  # libtool to hard-code these into programs
 
11977
  ;;
 
11978
 
 
11979
cygwin* | mingw* | pw32*)
 
11980
  version_type=windows
 
11981
  shrext_cmds=".dll"
 
11982
  need_version=no
 
11983
  need_lib_prefix=no
 
11984
 
 
11985
  case $GCC,$host_os in
 
11986
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11987
    library_names_spec='$libname.dll.a'
 
11988
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11989
    postinstall_cmds='base_file=`basename \${file}`~
 
11990
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11991
      dldir=$destdir/`dirname \$dlpath`~
 
11992
      test -d \$dldir || mkdir -p \$dldir~
 
11993
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11994
      chmod a+x \$dldir/$dlname'
 
11995
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11996
      dlpath=$dir/\$dldll~
 
11997
       $rm \$dlpath'
 
11998
    shlibpath_overrides_runpath=yes
 
11999
 
 
12000
    case $host_os in
 
12001
    cygwin*)
 
12002
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12003
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12004
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12005
      ;;
 
12006
    mingw*)
 
12007
      # MinGW DLLs use traditional 'lib' prefix
 
12008
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12009
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12010
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12011
        # It is most probably a Windows format PATH printed by
 
12012
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12013
        # path with ; separators, and with drive letters. We can handle the
 
12014
        # drive letters (cygwin fileutils understands them), so leave them,
 
12015
        # especially as we might pass files found there to a mingw objdump,
 
12016
        # which wouldn't understand a cygwinified path. Ahh.
 
12017
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12018
      else
 
12019
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12020
      fi
 
12021
      ;;
 
12022
    pw32*)
 
12023
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12024
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12025
      ;;
 
12026
    esac
 
12027
    ;;
 
12028
 
 
12029
  *)
 
12030
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12031
    ;;
 
12032
  esac
 
12033
  dynamic_linker='Win32 ld.exe'
 
12034
  # FIXME: first we should search . and the directory the executable is in
 
12035
  shlibpath_var=PATH
 
12036
  ;;
 
12037
 
 
12038
darwin* | rhapsody*)
 
12039
  dynamic_linker="$host_os dyld"
 
12040
  version_type=darwin
 
12041
  need_lib_prefix=no
 
12042
  need_version=no
 
12043
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12044
  soname_spec='${libname}${release}${major}$shared_ext'
 
12045
  shlibpath_overrides_runpath=yes
 
12046
  shlibpath_var=DYLD_LIBRARY_PATH
 
12047
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12048
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12049
  if test "$GCC" = yes; then
 
12050
    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"`
 
12051
  else
 
12052
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12053
  fi
 
12054
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12055
  ;;
 
12056
 
 
12057
dgux*)
 
12058
  version_type=linux
 
12059
  need_lib_prefix=no
 
12060
  need_version=no
 
12061
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12062
  soname_spec='${libname}${release}${shared_ext}$major'
 
12063
  shlibpath_var=LD_LIBRARY_PATH
 
12064
  ;;
 
12065
 
 
12066
freebsd1*)
 
12067
  dynamic_linker=no
 
12068
  ;;
 
12069
 
 
12070
kfreebsd*-gnu)
 
12071
  version_type=linux
 
12072
  need_lib_prefix=no
 
12073
  need_version=no
 
12074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12075
  soname_spec='${libname}${release}${shared_ext}$major'
 
12076
  shlibpath_var=LD_LIBRARY_PATH
 
12077
  shlibpath_overrides_runpath=no
 
12078
  hardcode_into_libs=yes
 
12079
  dynamic_linker='GNU ld.so'
 
12080
  ;;
 
12081
 
 
12082
freebsd* | dragonfly*)
 
12083
  # DragonFly does not have aout.  When/if they implement a new
 
12084
  # versioning mechanism, adjust this.
 
12085
  if test -x /usr/bin/objformat; then
 
12086
    objformat=`/usr/bin/objformat`
 
12087
  else
 
12088
    case $host_os in
 
12089
    freebsd[123]*) objformat=aout ;;
 
12090
    *) objformat=elf ;;
 
12091
    esac
 
12092
  fi
 
12093
  version_type=freebsd-$objformat
 
12094
  case $version_type in
 
12095
    freebsd-elf*)
 
12096
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12097
      need_version=no
 
12098
      need_lib_prefix=no
 
12099
      ;;
 
12100
    freebsd-*)
 
12101
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12102
      need_version=yes
 
12103
      ;;
 
12104
  esac
 
12105
  shlibpath_var=LD_LIBRARY_PATH
 
12106
  case $host_os in
 
12107
  freebsd2*)
 
12108
    shlibpath_overrides_runpath=yes
 
12109
    ;;
 
12110
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12111
    shlibpath_overrides_runpath=yes
 
12112
    hardcode_into_libs=yes
 
12113
    ;;
 
12114
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12115
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12116
    shlibpath_overrides_runpath=no
 
12117
    hardcode_into_libs=yes
 
12118
    ;;
 
12119
  freebsd*) # from 4.6 on
 
12120
    shlibpath_overrides_runpath=yes
 
12121
    hardcode_into_libs=yes
 
12122
    ;;
 
12123
  esac
 
12124
  ;;
 
12125
 
 
12126
gnu*)
 
12127
  version_type=linux
 
12128
  need_lib_prefix=no
 
12129
  need_version=no
 
12130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12131
  soname_spec='${libname}${release}${shared_ext}$major'
 
12132
  shlibpath_var=LD_LIBRARY_PATH
 
12133
  hardcode_into_libs=yes
 
12134
  ;;
 
12135
 
 
12136
hpux9* | hpux10* | hpux11*)
 
12137
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12138
  # link against other versions.
 
12139
  version_type=sunos
 
12140
  need_lib_prefix=no
 
12141
  need_version=no
 
12142
  case $host_cpu in
 
12143
  ia64*)
 
12144
    shrext_cmds='.so'
 
12145
    hardcode_into_libs=yes
 
12146
    dynamic_linker="$host_os dld.so"
 
12147
    shlibpath_var=LD_LIBRARY_PATH
 
12148
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12149
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12150
    soname_spec='${libname}${release}${shared_ext}$major'
 
12151
    if test "X$HPUX_IA64_MODE" = X32; then
 
12152
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12153
    else
 
12154
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12155
    fi
 
12156
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12157
    ;;
 
12158
   hppa*64*)
 
12159
     shrext_cmds='.sl'
 
12160
     hardcode_into_libs=yes
 
12161
     dynamic_linker="$host_os dld.sl"
 
12162
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12163
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12164
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12165
     soname_spec='${libname}${release}${shared_ext}$major'
 
12166
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12167
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12168
     ;;
 
12169
   *)
 
12170
    shrext_cmds='.sl'
 
12171
    dynamic_linker="$host_os dld.sl"
 
12172
    shlibpath_var=SHLIB_PATH
 
12173
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12174
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12175
    soname_spec='${libname}${release}${shared_ext}$major'
 
12176
    ;;
 
12177
  esac
 
12178
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12179
  postinstall_cmds='chmod 555 $lib'
 
12180
  ;;
 
12181
 
 
12182
interix3*)
 
12183
  version_type=linux
 
12184
  need_lib_prefix=no
 
12185
  need_version=no
 
12186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12187
  soname_spec='${libname}${release}${shared_ext}$major'
 
12188
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12189
  shlibpath_var=LD_LIBRARY_PATH
 
12190
  shlibpath_overrides_runpath=no
 
12191
  hardcode_into_libs=yes
 
12192
  ;;
 
12193
 
 
12194
irix5* | irix6* | nonstopux*)
 
12195
  case $host_os in
 
12196
    nonstopux*) version_type=nonstopux ;;
 
12197
    *)
 
12198
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12199
                version_type=linux
 
12200
        else
 
12201
                version_type=irix
 
12202
        fi ;;
 
12203
  esac
 
12204
  need_lib_prefix=no
 
12205
  need_version=no
 
12206
  soname_spec='${libname}${release}${shared_ext}$major'
 
12207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12208
  case $host_os in
 
12209
  irix5* | nonstopux*)
 
12210
    libsuff= shlibsuff=
 
12211
    ;;
 
12212
  *)
 
12213
    case $LD in # libtool.m4 will add one of these switches to LD
 
12214
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12215
      libsuff= shlibsuff= libmagic=32-bit;;
 
12216
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12217
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12218
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12219
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12220
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12221
    esac
 
12222
    ;;
 
12223
  esac
 
12224
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12225
  shlibpath_overrides_runpath=no
 
12226
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12227
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12228
  hardcode_into_libs=yes
 
12229
  ;;
 
12230
 
 
12231
# No shared lib support for Linux oldld, aout, or coff.
 
12232
linux*oldld* | linux*aout* | linux*coff*)
 
12233
  dynamic_linker=no
 
12234
  ;;
 
12235
 
 
12236
# This must be Linux ELF.
 
12237
linux*)
 
12238
  version_type=linux
 
12239
  need_lib_prefix=no
 
12240
  need_version=no
 
12241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12242
  soname_spec='${libname}${release}${shared_ext}$major'
 
12243
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12244
  shlibpath_var=LD_LIBRARY_PATH
 
12245
  shlibpath_overrides_runpath=no
 
12246
  # This implies no fast_install, which is unacceptable.
 
12247
  # Some rework will be needed to allow for fast_install
 
12248
  # before this can be enabled.
 
12249
  hardcode_into_libs=yes
 
12250
 
 
12251
  # find out which ABI we are using
 
12252
  libsuff=
 
12253
  case "$host_cpu" in
 
12254
  x86_64*|s390x*|powerpc64*)
 
12255
    echo '#line 12255 "configure"' > conftest.$ac_ext
 
12256
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12257
  (eval $ac_compile) 2>&5
 
12258
  ac_status=$?
 
12259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12260
  (exit $ac_status); }; then
 
12261
      case `/usr/bin/file conftest.$ac_objext` in
 
12262
      *64-bit*)
 
12263
        libsuff=64
 
12264
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12265
        ;;
 
12266
      esac
 
12267
    fi
 
12268
    rm -rf conftest*
 
12269
    ;;
 
12270
  esac
 
12271
 
 
12272
  # Append ld.so.conf contents to the search path
 
12273
  if test -f /etc/ld.so.conf; then
 
12274
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12275
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12276
  fi
 
12277
 
 
12278
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12279
  # powerpc, because MkLinux only supported shared libraries with the
 
12280
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12281
  # most powerpc-linux boxes support dynamic linking these days and
 
12282
  # people can always --disable-shared, the test was removed, and we
 
12283
  # assume the GNU/Linux dynamic linker is in use.
 
12284
  dynamic_linker='GNU/Linux ld.so'
 
12285
  ;;
 
12286
 
 
12287
knetbsd*-gnu)
 
12288
  version_type=linux
 
12289
  need_lib_prefix=no
 
12290
  need_version=no
 
12291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12292
  soname_spec='${libname}${release}${shared_ext}$major'
 
12293
  shlibpath_var=LD_LIBRARY_PATH
 
12294
  shlibpath_overrides_runpath=no
 
12295
  hardcode_into_libs=yes
 
12296
  dynamic_linker='GNU ld.so'
 
12297
  ;;
 
12298
 
 
12299
netbsd*)
 
12300
  version_type=sunos
 
12301
  need_lib_prefix=no
 
12302
  need_version=no
 
12303
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12305
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12306
    dynamic_linker='NetBSD (a.out) ld.so'
 
12307
  else
 
12308
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12309
    soname_spec='${libname}${release}${shared_ext}$major'
 
12310
    dynamic_linker='NetBSD ld.elf_so'
 
12311
  fi
 
12312
  shlibpath_var=LD_LIBRARY_PATH
 
12313
  shlibpath_overrides_runpath=yes
 
12314
  hardcode_into_libs=yes
 
12315
  ;;
 
12316
 
 
12317
newsos6)
 
12318
  version_type=linux
 
12319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12320
  shlibpath_var=LD_LIBRARY_PATH
 
12321
  shlibpath_overrides_runpath=yes
 
12322
  ;;
 
12323
 
 
12324
nto-qnx*)
 
12325
  version_type=linux
 
12326
  need_lib_prefix=no
 
12327
  need_version=no
 
12328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12329
  soname_spec='${libname}${release}${shared_ext}$major'
 
12330
  shlibpath_var=LD_LIBRARY_PATH
 
12331
  shlibpath_overrides_runpath=yes
 
12332
  ;;
 
12333
 
 
12334
openbsd*)
 
12335
  version_type=sunos
 
12336
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12337
  need_lib_prefix=no
 
12338
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12339
  case $host_os in
 
12340
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12341
    *)                         need_version=no  ;;
 
12342
  esac
 
12343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12344
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12345
  shlibpath_var=LD_LIBRARY_PATH
 
12346
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12347
    case $host_os in
 
12348
      openbsd2.[89] | openbsd2.[89].*)
 
12349
        shlibpath_overrides_runpath=no
 
12350
        ;;
 
12351
      *)
 
12352
        shlibpath_overrides_runpath=yes
 
12353
        ;;
 
12354
      esac
 
12355
  else
 
12356
    shlibpath_overrides_runpath=yes
 
12357
  fi
 
12358
  ;;
 
12359
 
 
12360
os2*)
 
12361
  libname_spec='$name'
 
12362
  shrext_cmds=".dll"
 
12363
  need_lib_prefix=no
 
12364
  library_names_spec='$libname${shared_ext} $libname.a'
 
12365
  dynamic_linker='OS/2 ld.exe'
 
12366
  shlibpath_var=LIBPATH
 
12367
  ;;
 
12368
 
 
12369
osf3* | osf4* | osf5*)
 
12370
  version_type=osf
 
12371
  need_lib_prefix=no
 
12372
  need_version=no
 
12373
  soname_spec='${libname}${release}${shared_ext}$major'
 
12374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12375
  shlibpath_var=LD_LIBRARY_PATH
 
12376
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12377
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12378
  ;;
 
12379
 
 
12380
solaris*)
 
12381
  version_type=linux
 
12382
  need_lib_prefix=no
 
12383
  need_version=no
 
12384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12385
  soname_spec='${libname}${release}${shared_ext}$major'
 
12386
  shlibpath_var=LD_LIBRARY_PATH
 
12387
  shlibpath_overrides_runpath=yes
 
12388
  hardcode_into_libs=yes
 
12389
  # ldd complains unless libraries are executable
 
12390
  postinstall_cmds='chmod +x $lib'
 
12391
  ;;
 
12392
 
 
12393
sunos4*)
 
12394
  version_type=sunos
 
12395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12396
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12397
  shlibpath_var=LD_LIBRARY_PATH
 
12398
  shlibpath_overrides_runpath=yes
 
12399
  if test "$with_gnu_ld" = yes; then
 
12400
    need_lib_prefix=no
 
12401
  fi
 
12402
  need_version=yes
 
12403
  ;;
 
12404
 
 
12405
sysv4 | sysv4.3*)
 
12406
  version_type=linux
 
12407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12408
  soname_spec='${libname}${release}${shared_ext}$major'
 
12409
  shlibpath_var=LD_LIBRARY_PATH
 
12410
  case $host_vendor in
 
12411
    sni)
 
12412
      shlibpath_overrides_runpath=no
 
12413
      need_lib_prefix=no
 
12414
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12415
      runpath_var=LD_RUN_PATH
 
12416
      ;;
 
12417
    siemens)
 
12418
      need_lib_prefix=no
 
12419
      ;;
 
12420
    motorola)
 
12421
      need_lib_prefix=no
 
12422
      need_version=no
 
12423
      shlibpath_overrides_runpath=no
 
12424
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12425
      ;;
 
12426
  esac
 
12427
  ;;
 
12428
 
 
12429
sysv4*MP*)
 
12430
  if test -d /usr/nec ;then
 
12431
    version_type=linux
 
12432
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12433
    soname_spec='$libname${shared_ext}.$major'
 
12434
    shlibpath_var=LD_LIBRARY_PATH
 
12435
  fi
 
12436
  ;;
 
12437
 
 
12438
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12439
  version_type=freebsd-elf
 
12440
  need_lib_prefix=no
 
12441
  need_version=no
 
12442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12443
  soname_spec='${libname}${release}${shared_ext}$major'
 
12444
  shlibpath_var=LD_LIBRARY_PATH
 
12445
  hardcode_into_libs=yes
 
12446
  if test "$with_gnu_ld" = yes; then
 
12447
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12448
    shlibpath_overrides_runpath=no
 
12449
  else
 
12450
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12451
    shlibpath_overrides_runpath=yes
 
12452
    case $host_os in
 
12453
      sco3.2v5*)
 
12454
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12455
        ;;
 
12456
    esac
 
12457
  fi
 
12458
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12459
  ;;
 
12460
 
 
12461
uts4*)
 
12462
  version_type=linux
 
12463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12464
  soname_spec='${libname}${release}${shared_ext}$major'
 
12465
  shlibpath_var=LD_LIBRARY_PATH
 
12466
  ;;
 
12467
 
 
12468
*)
 
12469
  dynamic_linker=no
 
12470
  ;;
 
12471
esac
 
12472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12473
echo "${ECHO_T}$dynamic_linker" >&6
 
12474
test "$dynamic_linker" = no && can_build_shared=no
 
12475
 
 
12476
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12477
if test "$GCC" = yes; then
 
12478
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12479
fi
 
12480
 
11221
12481
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11222
12482
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11223
12483
hardcode_action_CXX=
11224
12484
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11225
 
   test -n "$runpath_var CXX" || \
11226
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12485
   test -n "$runpath_var_CXX" || \
 
12486
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11227
12487
 
11228
12488
  # We can hardcode non-existant directories.
11229
12489
  if test "$hardcode_direct_CXX" != no &&
11255
12515
  enable_fast_install=needless
11256
12516
fi
11257
12517
 
11258
 
striplib=
11259
 
old_striplib=
11260
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11261
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11262
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11263
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11264
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11265
 
  echo "$as_me:$LINENO: result: yes" >&5
11266
 
echo "${ECHO_T}yes" >&6
11267
 
else
11268
 
# FIXME - insert some real tests, host_os isn't really good enough
11269
 
  case $host_os in
11270
 
   darwin*)
11271
 
       if test -n "$STRIP" ; then
11272
 
         striplib="$STRIP -x"
11273
 
         echo "$as_me:$LINENO: result: yes" >&5
11274
 
echo "${ECHO_T}yes" >&6
11275
 
       else
11276
 
  echo "$as_me:$LINENO: result: no" >&5
11277
 
echo "${ECHO_T}no" >&6
11278
 
fi
11279
 
       ;;
11280
 
   *)
11281
 
  echo "$as_me:$LINENO: result: no" >&5
11282
 
echo "${ECHO_T}no" >&6
11283
 
    ;;
11284
 
  esac
11285
 
fi
11286
 
 
11287
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11288
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11289
 
library_names_spec=
11290
 
libname_spec='lib$name'
11291
 
soname_spec=
11292
 
shrext=".so"
11293
 
postinstall_cmds=
11294
 
postuninstall_cmds=
11295
 
finish_cmds=
11296
 
finish_eval=
11297
 
shlibpath_var=
11298
 
shlibpath_overrides_runpath=unknown
11299
 
version_type=none
11300
 
dynamic_linker="$host_os ld.so"
11301
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302
 
if test "$GCC" = yes; then
11303
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11305
 
    # if the path contains ";" then we assume it to be the separator
11306
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11307
 
    # assumed that no part of a normal pathname contains ";" but that should
11308
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11309
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11310
 
  else
11311
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11312
 
  fi
11313
 
else
11314
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11315
 
fi
11316
 
need_lib_prefix=unknown
11317
 
hardcode_into_libs=no
11318
 
 
11319
 
# when you set need_version to no, make sure it does not cause -set_version
11320
 
# flags to be left without arguments
11321
 
need_version=unknown
11322
 
 
11323
 
case $host_os in
11324
 
aix3*)
11325
 
  version_type=linux
11326
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11327
 
  shlibpath_var=LIBPATH
11328
 
 
11329
 
  # AIX 3 has no versioning support, so we append a major version to the name.
11330
 
  soname_spec='${libname}${release}${shared_ext}$major'
11331
 
  ;;
11332
 
 
11333
 
aix4* | aix5*)
11334
 
  version_type=linux
11335
 
  need_lib_prefix=no
11336
 
  need_version=no
11337
 
  hardcode_into_libs=yes
11338
 
  if test "$host_cpu" = ia64; then
11339
 
    # AIX 5 supports IA64
11340
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11341
 
    shlibpath_var=LD_LIBRARY_PATH
11342
 
  else
11343
 
    # With GCC up to 2.95.x, collect2 would create an import file
11344
 
    # for dependence libraries.  The import file would start with
11345
 
    # the line `#! .'.  This would cause the generated library to
11346
 
    # depend on `.', always an invalid library.  This was fixed in
11347
 
    # development snapshots of GCC prior to 3.0.
11348
 
    case $host_os in
11349
 
      aix4 | aix4.[01] | aix4.[01].*)
11350
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11351
 
           echo ' yes '
11352
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11353
 
        :
11354
 
      else
11355
 
        can_build_shared=no
11356
 
      fi
11357
 
      ;;
11358
 
    esac
11359
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11360
 
    # soname into executable. Probably we can add versioning support to
11361
 
    # collect2, so additional links can be useful in future.
11362
 
    if test "$aix_use_runtimelinking" = yes; then
11363
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11364
 
      # instead of lib<name>.a to let people know that these are not
11365
 
      # typical AIX shared libraries.
11366
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367
 
    else
11368
 
      # We preserve .a as extension for shared libraries through AIX4.2
11369
 
      # and later when we are not doing run time linking.
11370
 
      library_names_spec='${libname}${release}.a $libname.a'
11371
 
      soname_spec='${libname}${release}${shared_ext}$major'
11372
 
    fi
11373
 
    shlibpath_var=LIBPATH
11374
 
  fi
11375
 
  ;;
11376
 
 
11377
 
amigaos*)
11378
 
  library_names_spec='$libname.ixlibrary $libname.a'
11379
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11380
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
11381
 
  ;;
11382
 
 
11383
 
beos*)
11384
 
  library_names_spec='${libname}${shared_ext}'
11385
 
  dynamic_linker="$host_os ld.so"
11386
 
  shlibpath_var=LIBRARY_PATH
11387
 
  ;;
11388
 
 
11389
 
bsdi4*)
11390
 
  version_type=linux
11391
 
  need_version=no
11392
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393
 
  soname_spec='${libname}${release}${shared_ext}$major'
11394
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11395
 
  shlibpath_var=LD_LIBRARY_PATH
11396
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11397
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11398
 
  # the default ld.so.conf also contains /usr/contrib/lib and
11399
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11400
 
  # libtool to hard-code these into programs
11401
 
  ;;
11402
 
 
11403
 
cygwin* | mingw* | pw32*)
11404
 
  version_type=windows
11405
 
  shrext=".dll"
11406
 
  need_version=no
11407
 
  need_lib_prefix=no
11408
 
 
11409
 
  case $GCC,$host_os in
11410
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
11411
 
    library_names_spec='$libname.dll.a'
11412
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11413
 
    postinstall_cmds='base_file=`basename \${file}`~
11414
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11415
 
      dldir=$destdir/`dirname \$dlpath`~
11416
 
      test -d \$dldir || mkdir -p \$dldir~
11417
 
      $install_prog $dir/$dlname \$dldir/$dlname'
11418
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11419
 
      dlpath=$dir/\$dldll~
11420
 
       $rm \$dlpath'
11421
 
    shlibpath_overrides_runpath=yes
11422
 
 
11423
 
    case $host_os in
11424
 
    cygwin*)
11425
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11426
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11428
 
      ;;
11429
 
    mingw*)
11430
 
      # MinGW DLLs use traditional 'lib' prefix
11431
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11432
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11433
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11434
 
        # It is most probably a Windows format PATH printed by
11435
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11436
 
        # path with ; separators, and with drive letters. We can handle the
11437
 
        # drive letters (cygwin fileutils understands them), so leave them,
11438
 
        # especially as we might pass files found there to a mingw objdump,
11439
 
        # which wouldn't understand a cygwinified path. Ahh.
11440
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11441
 
      else
11442
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11443
 
      fi
11444
 
      ;;
11445
 
    pw32*)
11446
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11447
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11448
 
      ;;
11449
 
    esac
11450
 
    ;;
11451
 
 
11452
 
  *)
11453
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11454
 
    ;;
11455
 
  esac
11456
 
  dynamic_linker='Win32 ld.exe'
11457
 
  # FIXME: first we should search . and the directory the executable is in
11458
 
  shlibpath_var=PATH
11459
 
  ;;
11460
 
 
11461
 
darwin* | rhapsody*)
11462
 
  dynamic_linker="$host_os dyld"
11463
 
  version_type=darwin
11464
 
  need_lib_prefix=no
11465
 
  need_version=no
11466
 
  # FIXME: Relying on posixy $() will cause problems for
11467
 
  #        cross-compilation, but unfortunately the echo tests do not
11468
 
  #        yet detect zsh echo's removal of \ escapes.
11469
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470
 
  soname_spec='${libname}${release}${major}$shared_ext'
11471
 
  shlibpath_overrides_runpath=yes
11472
 
  shlibpath_var=DYLD_LIBRARY_PATH
11473
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11474
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11475
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11476
 
  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"`
11477
 
  fi
11478
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11479
 
  ;;
11480
 
 
11481
 
dgux*)
11482
 
  version_type=linux
11483
 
  need_lib_prefix=no
11484
 
  need_version=no
11485
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11486
 
  soname_spec='${libname}${release}${shared_ext}$major'
11487
 
  shlibpath_var=LD_LIBRARY_PATH
11488
 
  ;;
11489
 
 
11490
 
freebsd1*)
11491
 
  dynamic_linker=no
11492
 
  ;;
11493
 
 
11494
 
freebsd*)
11495
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11496
 
  version_type=freebsd-$objformat
11497
 
  case $version_type in
11498
 
    freebsd-elf*)
11499
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11500
 
      need_version=no
11501
 
      need_lib_prefix=no
11502
 
      ;;
11503
 
    freebsd-*)
11504
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11505
 
      need_version=yes
11506
 
      ;;
11507
 
  esac
11508
 
  shlibpath_var=LD_LIBRARY_PATH
11509
 
  case $host_os in
11510
 
  freebsd2*)
11511
 
    shlibpath_overrides_runpath=yes
11512
 
    ;;
11513
 
  freebsd3.01* | freebsdelf3.01*)
11514
 
    shlibpath_overrides_runpath=yes
11515
 
    hardcode_into_libs=yes
11516
 
    ;;
11517
 
  *) # from 3.2 on
11518
 
    shlibpath_overrides_runpath=no
11519
 
    hardcode_into_libs=yes
11520
 
    ;;
11521
 
  esac
11522
 
  ;;
11523
 
 
11524
 
gnu*)
11525
 
  version_type=linux
11526
 
  need_lib_prefix=no
11527
 
  need_version=no
11528
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11529
 
  soname_spec='${libname}${release}${shared_ext}$major'
11530
 
  shlibpath_var=LD_LIBRARY_PATH
11531
 
  hardcode_into_libs=yes
11532
 
  ;;
11533
 
 
11534
 
hpux9* | hpux10* | hpux11*)
11535
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
11536
 
  # link against other versions.
11537
 
  version_type=sunos
11538
 
  need_lib_prefix=no
11539
 
  need_version=no
11540
 
  case "$host_cpu" in
11541
 
  ia64*)
11542
 
    shrext='.so'
11543
 
    hardcode_into_libs=yes
11544
 
    dynamic_linker="$host_os dld.so"
11545
 
    shlibpath_var=LD_LIBRARY_PATH
11546
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548
 
    soname_spec='${libname}${release}${shared_ext}$major'
11549
 
    if test "X$HPUX_IA64_MODE" = X32; then
11550
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11551
 
    else
11552
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11553
 
    fi
11554
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11555
 
    ;;
11556
 
   hppa*64*)
11557
 
     shrext='.sl'
11558
 
     hardcode_into_libs=yes
11559
 
     dynamic_linker="$host_os dld.sl"
11560
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11561
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11562
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563
 
     soname_spec='${libname}${release}${shared_ext}$major'
11564
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11565
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566
 
     ;;
11567
 
   *)
11568
 
    shrext='.sl'
11569
 
    dynamic_linker="$host_os dld.sl"
11570
 
    shlibpath_var=SHLIB_PATH
11571
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11572
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573
 
    soname_spec='${libname}${release}${shared_ext}$major'
11574
 
    ;;
11575
 
  esac
11576
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11577
 
  postinstall_cmds='chmod 555 $lib'
11578
 
  ;;
11579
 
 
11580
 
irix5* | irix6* | nonstopux*)
11581
 
  case $host_os in
11582
 
    nonstopux*) version_type=nonstopux ;;
11583
 
    *)
11584
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
11585
 
                version_type=linux
11586
 
        else
11587
 
                version_type=irix
11588
 
        fi ;;
11589
 
  esac
11590
 
  need_lib_prefix=no
11591
 
  need_version=no
11592
 
  soname_spec='${libname}${release}${shared_ext}$major'
11593
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11594
 
  case $host_os in
11595
 
  irix5* | nonstopux*)
11596
 
    libsuff= shlibsuff=
11597
 
    ;;
11598
 
  *)
11599
 
    case $LD in # libtool.m4 will add one of these switches to LD
11600
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11601
 
      libsuff= shlibsuff= libmagic=32-bit;;
11602
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11603
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11604
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11605
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11606
 
    *) libsuff= shlibsuff= libmagic=never-match;;
11607
 
    esac
11608
 
    ;;
11609
 
  esac
11610
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11611
 
  shlibpath_overrides_runpath=no
11612
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11613
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11614
 
  hardcode_into_libs=yes
11615
 
  ;;
11616
 
 
11617
 
# No shared lib support for Linux oldld, aout, or coff.
11618
 
linux*oldld* | linux*aout* | linux*coff*)
11619
 
  dynamic_linker=no
11620
 
  ;;
11621
 
 
11622
 
# This must be Linux ELF.
11623
 
linux*)
11624
 
  version_type=linux
11625
 
  need_lib_prefix=no
11626
 
  need_version=no
11627
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628
 
  soname_spec='${libname}${release}${shared_ext}$major'
11629
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11630
 
  shlibpath_var=LD_LIBRARY_PATH
11631
 
  shlibpath_overrides_runpath=no
11632
 
  # This implies no fast_install, which is unacceptable.
11633
 
  # Some rework will be needed to allow for fast_install
11634
 
  # before this can be enabled.
11635
 
  hardcode_into_libs=yes
11636
 
 
11637
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11638
 
  # powerpc, because MkLinux only supported shared libraries with the
11639
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11640
 
  # most powerpc-linux boxes support dynamic linking these days and
11641
 
  # people can always --disable-shared, the test was removed, and we
11642
 
  # assume the GNU/Linux dynamic linker is in use.
11643
 
  dynamic_linker='GNU/Linux ld.so'
11644
 
 
11645
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
11646
 
  libsuff=
11647
 
  case "$host_cpu" in
11648
 
  x86_64*|s390x*|powerpc64*)
11649
 
    echo '#line 11649 "configure"' > conftest.$ac_ext
11650
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651
 
  (eval $ac_compile) 2>&5
11652
 
  ac_status=$?
11653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
 
  (exit $ac_status); }; then
11655
 
      case `/usr/bin/file conftest.$ac_objext` in
11656
 
      *64-bit*)
11657
 
        libsuff=64
11658
 
        ;;
11659
 
      esac
11660
 
    fi
11661
 
    rm -rf conftest*
11662
 
    ;;
11663
 
  *)
11664
 
    ;;
11665
 
  esac
11666
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11667
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11668
 
  ;;
11669
 
 
11670
 
netbsd*)
11671
 
  version_type=sunos
11672
 
  need_lib_prefix=no
11673
 
  need_version=no
11674
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11675
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11676
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11677
 
    dynamic_linker='NetBSD (a.out) ld.so'
11678
 
  else
11679
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11680
 
    soname_spec='${libname}${release}${shared_ext}$major'
11681
 
    dynamic_linker='NetBSD ld.elf_so'
11682
 
  fi
11683
 
  shlibpath_var=LD_LIBRARY_PATH
11684
 
  shlibpath_overrides_runpath=yes
11685
 
  hardcode_into_libs=yes
11686
 
  ;;
11687
 
 
11688
 
newsos6)
11689
 
  version_type=linux
11690
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691
 
  shlibpath_var=LD_LIBRARY_PATH
11692
 
  shlibpath_overrides_runpath=yes
11693
 
  ;;
11694
 
 
11695
 
nto-qnx)
11696
 
  version_type=linux
11697
 
  need_lib_prefix=no
11698
 
  need_version=no
11699
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700
 
  soname_spec='${libname}${release}${shared_ext}$major'
11701
 
  shlibpath_var=LD_LIBRARY_PATH
11702
 
  shlibpath_overrides_runpath=yes
11703
 
  ;;
11704
 
 
11705
 
openbsd*)
11706
 
  version_type=sunos
11707
 
  need_lib_prefix=no
11708
 
  need_version=no
11709
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11710
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11711
 
  shlibpath_var=LD_LIBRARY_PATH
11712
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11713
 
    case $host_os in
11714
 
      openbsd2.[89] | openbsd2.[89].*)
11715
 
        shlibpath_overrides_runpath=no
11716
 
        ;;
11717
 
      *)
11718
 
        shlibpath_overrides_runpath=yes
11719
 
        ;;
11720
 
      esac
11721
 
  else
11722
 
    shlibpath_overrides_runpath=yes
11723
 
  fi
11724
 
  ;;
11725
 
 
11726
 
os2*)
11727
 
  libname_spec='$name'
11728
 
  shrext=".dll"
11729
 
  need_lib_prefix=no
11730
 
  library_names_spec='$libname${shared_ext} $libname.a'
11731
 
  dynamic_linker='OS/2 ld.exe'
11732
 
  shlibpath_var=LIBPATH
11733
 
  ;;
11734
 
 
11735
 
osf3* | osf4* | osf5*)
11736
 
  version_type=osf
11737
 
  need_lib_prefix=no
11738
 
  need_version=no
11739
 
  soname_spec='${libname}${release}${shared_ext}$major'
11740
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741
 
  shlibpath_var=LD_LIBRARY_PATH
11742
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11743
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11744
 
  ;;
11745
 
 
11746
 
sco3.2v5*)
11747
 
  version_type=osf
11748
 
  soname_spec='${libname}${release}${shared_ext}$major'
11749
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750
 
  shlibpath_var=LD_LIBRARY_PATH
11751
 
  ;;
11752
 
 
11753
 
solaris*)
11754
 
  version_type=linux
11755
 
  need_lib_prefix=no
11756
 
  need_version=no
11757
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758
 
  soname_spec='${libname}${release}${shared_ext}$major'
11759
 
  shlibpath_var=LD_LIBRARY_PATH
11760
 
  shlibpath_overrides_runpath=yes
11761
 
  hardcode_into_libs=yes
11762
 
  # ldd complains unless libraries are executable
11763
 
  postinstall_cmds='chmod +x $lib'
11764
 
  ;;
11765
 
 
11766
 
sunos4*)
11767
 
  version_type=sunos
11768
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11769
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11770
 
  shlibpath_var=LD_LIBRARY_PATH
11771
 
  shlibpath_overrides_runpath=yes
11772
 
  if test "$with_gnu_ld" = yes; then
11773
 
    need_lib_prefix=no
11774
 
  fi
11775
 
  need_version=yes
11776
 
  ;;
11777
 
 
11778
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11779
 
  version_type=linux
11780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781
 
  soname_spec='${libname}${release}${shared_ext}$major'
11782
 
  shlibpath_var=LD_LIBRARY_PATH
11783
 
  case $host_vendor in
11784
 
    sni)
11785
 
      shlibpath_overrides_runpath=no
11786
 
      need_lib_prefix=no
11787
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
11788
 
      runpath_var=LD_RUN_PATH
11789
 
      ;;
11790
 
    siemens)
11791
 
      need_lib_prefix=no
11792
 
      ;;
11793
 
    motorola)
11794
 
      need_lib_prefix=no
11795
 
      need_version=no
11796
 
      shlibpath_overrides_runpath=no
11797
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11798
 
      ;;
11799
 
  esac
11800
 
  ;;
11801
 
 
11802
 
sysv4*MP*)
11803
 
  if test -d /usr/nec ;then
11804
 
    version_type=linux
11805
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11806
 
    soname_spec='$libname${shared_ext}.$major'
11807
 
    shlibpath_var=LD_LIBRARY_PATH
11808
 
  fi
11809
 
  ;;
11810
 
 
11811
 
uts4*)
11812
 
  version_type=linux
11813
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814
 
  soname_spec='${libname}${release}${shared_ext}$major'
11815
 
  shlibpath_var=LD_LIBRARY_PATH
11816
 
  ;;
11817
 
 
11818
 
*)
11819
 
  dynamic_linker=no
11820
 
  ;;
11821
 
esac
11822
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11823
 
echo "${ECHO_T}$dynamic_linker" >&6
11824
 
test "$dynamic_linker" = no && can_build_shared=no
11825
 
 
11826
 
if test "x$enable_dlopen" != xyes; then
11827
 
  enable_dlopen=unknown
11828
 
  enable_dlopen_self=unknown
11829
 
  enable_dlopen_self_static=unknown
11830
 
else
11831
 
  lt_cv_dlopen=no
11832
 
  lt_cv_dlopen_libs=
11833
 
 
11834
 
  case $host_os in
11835
 
  beos*)
11836
 
    lt_cv_dlopen="load_add_on"
11837
 
    lt_cv_dlopen_libs=
11838
 
    lt_cv_dlopen_self=yes
11839
 
    ;;
11840
 
 
11841
 
  mingw* | pw32*)
11842
 
    lt_cv_dlopen="LoadLibrary"
11843
 
    lt_cv_dlopen_libs=
11844
 
   ;;
11845
 
 
11846
 
  cygwin*)
11847
 
    lt_cv_dlopen="dlopen"
11848
 
    lt_cv_dlopen_libs=
11849
 
   ;;
11850
 
 
11851
 
  darwin*)
11852
 
  # if libdl is installed we need to link against it
11853
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11854
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11855
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11857
 
else
11858
 
  ac_check_lib_save_LIBS=$LIBS
11859
 
LIBS="-ldl  $LIBS"
11860
 
cat >conftest.$ac_ext <<_ACEOF
11861
 
/* confdefs.h.  */
11862
 
_ACEOF
11863
 
cat confdefs.h >>conftest.$ac_ext
11864
 
cat >>conftest.$ac_ext <<_ACEOF
11865
 
/* end confdefs.h.  */
11866
 
 
11867
 
/* Override any gcc2 internal prototype to avoid an error.  */
11868
 
#ifdef __cplusplus
11869
 
extern "C"
11870
 
#endif
11871
 
/* We use char because int might match the return type of a gcc2
11872
 
   builtin and then its argument prototype would still apply.  */
11873
 
char dlopen ();
11874
 
int
11875
 
main ()
11876
 
{
11877
 
dlopen ();
11878
 
  ;
11879
 
  return 0;
11880
 
}
11881
 
_ACEOF
11882
 
rm -f conftest.$ac_objext conftest$ac_exeext
11883
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884
 
  (eval $ac_link) 2>conftest.er1
11885
 
  ac_status=$?
11886
 
  grep -v '^ *+' conftest.er1 >conftest.err
11887
 
  rm -f conftest.er1
11888
 
  cat conftest.err >&5
11889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890
 
  (exit $ac_status); } &&
11891
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11892
 
                         || test ! -s conftest.err'
11893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894
 
  (eval $ac_try) 2>&5
11895
 
  ac_status=$?
11896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897
 
  (exit $ac_status); }; } &&
11898
 
         { ac_try='test -s conftest$ac_exeext'
11899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900
 
  (eval $ac_try) 2>&5
11901
 
  ac_status=$?
11902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
 
  (exit $ac_status); }; }; then
11904
 
  ac_cv_lib_dl_dlopen=yes
11905
 
else
11906
 
  echo "$as_me: failed program was:" >&5
11907
 
sed 's/^/| /' conftest.$ac_ext >&5
11908
 
 
11909
 
ac_cv_lib_dl_dlopen=no
11910
 
fi
11911
 
rm -f conftest.err conftest.$ac_objext \
11912
 
      conftest$ac_exeext conftest.$ac_ext
11913
 
LIBS=$ac_check_lib_save_LIBS
11914
 
fi
11915
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11916
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11917
 
if test $ac_cv_lib_dl_dlopen = yes; then
11918
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11919
 
else
11920
 
 
11921
 
    lt_cv_dlopen="dyld"
11922
 
    lt_cv_dlopen_libs=
11923
 
    lt_cv_dlopen_self=yes
11924
 
 
11925
 
fi
11926
 
 
11927
 
   ;;
11928
 
 
11929
 
  *)
11930
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11931
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11932
 
if test "${ac_cv_func_shl_load+set}" = set; then
11933
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11934
 
else
11935
 
  cat >conftest.$ac_ext <<_ACEOF
11936
 
/* confdefs.h.  */
11937
 
_ACEOF
11938
 
cat confdefs.h >>conftest.$ac_ext
11939
 
cat >>conftest.$ac_ext <<_ACEOF
11940
 
/* end confdefs.h.  */
11941
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11942
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11943
 
#define shl_load innocuous_shl_load
11944
 
 
11945
 
/* System header to define __stub macros and hopefully few prototypes,
11946
 
    which can conflict with char shl_load (); below.
11947
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948
 
    <limits.h> exists even on freestanding compilers.  */
11949
 
 
11950
 
#ifdef __STDC__
11951
 
# include <limits.h>
11952
 
#else
11953
 
# include <assert.h>
11954
 
#endif
11955
 
 
11956
 
#undef shl_load
11957
 
 
11958
 
/* Override any gcc2 internal prototype to avoid an error.  */
11959
 
#ifdef __cplusplus
11960
 
extern "C"
11961
 
{
11962
 
#endif
11963
 
/* We use char because int might match the return type of a gcc2
11964
 
   builtin and then its argument prototype would still apply.  */
11965
 
char shl_load ();
11966
 
/* The GNU C library defines this for functions which it implements
11967
 
    to always fail with ENOSYS.  Some functions are actually named
11968
 
    something starting with __ and the normal name is an alias.  */
11969
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11970
 
choke me
11971
 
#else
11972
 
char (*f) () = shl_load;
11973
 
#endif
11974
 
#ifdef __cplusplus
11975
 
}
11976
 
#endif
11977
 
 
11978
 
int
11979
 
main ()
11980
 
{
11981
 
return f != shl_load;
11982
 
  ;
11983
 
  return 0;
11984
 
}
11985
 
_ACEOF
11986
 
rm -f conftest.$ac_objext conftest$ac_exeext
11987
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988
 
  (eval $ac_link) 2>conftest.er1
11989
 
  ac_status=$?
11990
 
  grep -v '^ *+' conftest.er1 >conftest.err
11991
 
  rm -f conftest.er1
11992
 
  cat conftest.err >&5
11993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994
 
  (exit $ac_status); } &&
11995
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11996
 
                         || test ! -s conftest.err'
11997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998
 
  (eval $ac_try) 2>&5
11999
 
  ac_status=$?
12000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001
 
  (exit $ac_status); }; } &&
12002
 
         { ac_try='test -s conftest$ac_exeext'
12003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004
 
  (eval $ac_try) 2>&5
12005
 
  ac_status=$?
12006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007
 
  (exit $ac_status); }; }; then
12008
 
  ac_cv_func_shl_load=yes
12009
 
else
12010
 
  echo "$as_me: failed program was:" >&5
12011
 
sed 's/^/| /' conftest.$ac_ext >&5
12012
 
 
12013
 
ac_cv_func_shl_load=no
12014
 
fi
12015
 
rm -f conftest.err conftest.$ac_objext \
12016
 
      conftest$ac_exeext conftest.$ac_ext
12017
 
fi
12018
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12019
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12020
 
if test $ac_cv_func_shl_load = yes; then
12021
 
  lt_cv_dlopen="shl_load"
12022
 
else
12023
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12024
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12025
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12026
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12027
 
else
12028
 
  ac_check_lib_save_LIBS=$LIBS
12029
 
LIBS="-ldld  $LIBS"
12030
 
cat >conftest.$ac_ext <<_ACEOF
12031
 
/* confdefs.h.  */
12032
 
_ACEOF
12033
 
cat confdefs.h >>conftest.$ac_ext
12034
 
cat >>conftest.$ac_ext <<_ACEOF
12035
 
/* end confdefs.h.  */
12036
 
 
12037
 
/* Override any gcc2 internal prototype to avoid an error.  */
12038
 
#ifdef __cplusplus
12039
 
extern "C"
12040
 
#endif
12041
 
/* We use char because int might match the return type of a gcc2
12042
 
   builtin and then its argument prototype would still apply.  */
12043
 
char shl_load ();
12044
 
int
12045
 
main ()
12046
 
{
12047
 
shl_load ();
12048
 
  ;
12049
 
  return 0;
12050
 
}
12051
 
_ACEOF
12052
 
rm -f conftest.$ac_objext conftest$ac_exeext
12053
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054
 
  (eval $ac_link) 2>conftest.er1
12055
 
  ac_status=$?
12056
 
  grep -v '^ *+' conftest.er1 >conftest.err
12057
 
  rm -f conftest.er1
12058
 
  cat conftest.err >&5
12059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
 
  (exit $ac_status); } &&
12061
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12062
 
                         || test ! -s conftest.err'
12063
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064
 
  (eval $ac_try) 2>&5
12065
 
  ac_status=$?
12066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067
 
  (exit $ac_status); }; } &&
12068
 
         { ac_try='test -s conftest$ac_exeext'
12069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070
 
  (eval $ac_try) 2>&5
12071
 
  ac_status=$?
12072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073
 
  (exit $ac_status); }; }; then
12074
 
  ac_cv_lib_dld_shl_load=yes
12075
 
else
12076
 
  echo "$as_me: failed program was:" >&5
12077
 
sed 's/^/| /' conftest.$ac_ext >&5
12078
 
 
12079
 
ac_cv_lib_dld_shl_load=no
12080
 
fi
12081
 
rm -f conftest.err conftest.$ac_objext \
12082
 
      conftest$ac_exeext conftest.$ac_ext
12083
 
LIBS=$ac_check_lib_save_LIBS
12084
 
fi
12085
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12086
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12087
 
if test $ac_cv_lib_dld_shl_load = yes; then
12088
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12089
 
else
12090
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12091
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12092
 
if test "${ac_cv_func_dlopen+set}" = set; then
12093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12094
 
else
12095
 
  cat >conftest.$ac_ext <<_ACEOF
12096
 
/* confdefs.h.  */
12097
 
_ACEOF
12098
 
cat confdefs.h >>conftest.$ac_ext
12099
 
cat >>conftest.$ac_ext <<_ACEOF
12100
 
/* end confdefs.h.  */
12101
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12102
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12103
 
#define dlopen innocuous_dlopen
12104
 
 
12105
 
/* System header to define __stub macros and hopefully few prototypes,
12106
 
    which can conflict with char dlopen (); below.
12107
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108
 
    <limits.h> exists even on freestanding compilers.  */
12109
 
 
12110
 
#ifdef __STDC__
12111
 
# include <limits.h>
12112
 
#else
12113
 
# include <assert.h>
12114
 
#endif
12115
 
 
12116
 
#undef dlopen
12117
 
 
12118
 
/* Override any gcc2 internal prototype to avoid an error.  */
12119
 
#ifdef __cplusplus
12120
 
extern "C"
12121
 
{
12122
 
#endif
12123
 
/* We use char because int might match the return type of a gcc2
12124
 
   builtin and then its argument prototype would still apply.  */
12125
 
char dlopen ();
12126
 
/* The GNU C library defines this for functions which it implements
12127
 
    to always fail with ENOSYS.  Some functions are actually named
12128
 
    something starting with __ and the normal name is an alias.  */
12129
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12130
 
choke me
12131
 
#else
12132
 
char (*f) () = dlopen;
12133
 
#endif
12134
 
#ifdef __cplusplus
12135
 
}
12136
 
#endif
12137
 
 
12138
 
int
12139
 
main ()
12140
 
{
12141
 
return f != dlopen;
12142
 
  ;
12143
 
  return 0;
12144
 
}
12145
 
_ACEOF
12146
 
rm -f conftest.$ac_objext conftest$ac_exeext
12147
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148
 
  (eval $ac_link) 2>conftest.er1
12149
 
  ac_status=$?
12150
 
  grep -v '^ *+' conftest.er1 >conftest.err
12151
 
  rm -f conftest.er1
12152
 
  cat conftest.err >&5
12153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154
 
  (exit $ac_status); } &&
12155
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12156
 
                         || test ! -s conftest.err'
12157
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158
 
  (eval $ac_try) 2>&5
12159
 
  ac_status=$?
12160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
 
  (exit $ac_status); }; } &&
12162
 
         { ac_try='test -s conftest$ac_exeext'
12163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164
 
  (eval $ac_try) 2>&5
12165
 
  ac_status=$?
12166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
 
  (exit $ac_status); }; }; then
12168
 
  ac_cv_func_dlopen=yes
12169
 
else
12170
 
  echo "$as_me: failed program was:" >&5
12171
 
sed 's/^/| /' conftest.$ac_ext >&5
12172
 
 
12173
 
ac_cv_func_dlopen=no
12174
 
fi
12175
 
rm -f conftest.err conftest.$ac_objext \
12176
 
      conftest$ac_exeext conftest.$ac_ext
12177
 
fi
12178
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12179
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12180
 
if test $ac_cv_func_dlopen = yes; then
12181
 
  lt_cv_dlopen="dlopen"
12182
 
else
12183
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12184
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12185
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12187
 
else
12188
 
  ac_check_lib_save_LIBS=$LIBS
12189
 
LIBS="-ldl  $LIBS"
12190
 
cat >conftest.$ac_ext <<_ACEOF
12191
 
/* confdefs.h.  */
12192
 
_ACEOF
12193
 
cat confdefs.h >>conftest.$ac_ext
12194
 
cat >>conftest.$ac_ext <<_ACEOF
12195
 
/* end confdefs.h.  */
12196
 
 
12197
 
/* Override any gcc2 internal prototype to avoid an error.  */
12198
 
#ifdef __cplusplus
12199
 
extern "C"
12200
 
#endif
12201
 
/* We use char because int might match the return type of a gcc2
12202
 
   builtin and then its argument prototype would still apply.  */
12203
 
char dlopen ();
12204
 
int
12205
 
main ()
12206
 
{
12207
 
dlopen ();
12208
 
  ;
12209
 
  return 0;
12210
 
}
12211
 
_ACEOF
12212
 
rm -f conftest.$ac_objext conftest$ac_exeext
12213
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214
 
  (eval $ac_link) 2>conftest.er1
12215
 
  ac_status=$?
12216
 
  grep -v '^ *+' conftest.er1 >conftest.err
12217
 
  rm -f conftest.er1
12218
 
  cat conftest.err >&5
12219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220
 
  (exit $ac_status); } &&
12221
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12222
 
                         || test ! -s conftest.err'
12223
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224
 
  (eval $ac_try) 2>&5
12225
 
  ac_status=$?
12226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227
 
  (exit $ac_status); }; } &&
12228
 
         { ac_try='test -s conftest$ac_exeext'
12229
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230
 
  (eval $ac_try) 2>&5
12231
 
  ac_status=$?
12232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
 
  (exit $ac_status); }; }; then
12234
 
  ac_cv_lib_dl_dlopen=yes
12235
 
else
12236
 
  echo "$as_me: failed program was:" >&5
12237
 
sed 's/^/| /' conftest.$ac_ext >&5
12238
 
 
12239
 
ac_cv_lib_dl_dlopen=no
12240
 
fi
12241
 
rm -f conftest.err conftest.$ac_objext \
12242
 
      conftest$ac_exeext conftest.$ac_ext
12243
 
LIBS=$ac_check_lib_save_LIBS
12244
 
fi
12245
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12246
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12247
 
if test $ac_cv_lib_dl_dlopen = yes; then
12248
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12249
 
else
12250
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12251
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12252
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12254
 
else
12255
 
  ac_check_lib_save_LIBS=$LIBS
12256
 
LIBS="-lsvld  $LIBS"
12257
 
cat >conftest.$ac_ext <<_ACEOF
12258
 
/* confdefs.h.  */
12259
 
_ACEOF
12260
 
cat confdefs.h >>conftest.$ac_ext
12261
 
cat >>conftest.$ac_ext <<_ACEOF
12262
 
/* end confdefs.h.  */
12263
 
 
12264
 
/* Override any gcc2 internal prototype to avoid an error.  */
12265
 
#ifdef __cplusplus
12266
 
extern "C"
12267
 
#endif
12268
 
/* We use char because int might match the return type of a gcc2
12269
 
   builtin and then its argument prototype would still apply.  */
12270
 
char dlopen ();
12271
 
int
12272
 
main ()
12273
 
{
12274
 
dlopen ();
12275
 
  ;
12276
 
  return 0;
12277
 
}
12278
 
_ACEOF
12279
 
rm -f conftest.$ac_objext conftest$ac_exeext
12280
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281
 
  (eval $ac_link) 2>conftest.er1
12282
 
  ac_status=$?
12283
 
  grep -v '^ *+' conftest.er1 >conftest.err
12284
 
  rm -f conftest.er1
12285
 
  cat conftest.err >&5
12286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
 
  (exit $ac_status); } &&
12288
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12289
 
                         || test ! -s conftest.err'
12290
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291
 
  (eval $ac_try) 2>&5
12292
 
  ac_status=$?
12293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294
 
  (exit $ac_status); }; } &&
12295
 
         { ac_try='test -s conftest$ac_exeext'
12296
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297
 
  (eval $ac_try) 2>&5
12298
 
  ac_status=$?
12299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300
 
  (exit $ac_status); }; }; then
12301
 
  ac_cv_lib_svld_dlopen=yes
12302
 
else
12303
 
  echo "$as_me: failed program was:" >&5
12304
 
sed 's/^/| /' conftest.$ac_ext >&5
12305
 
 
12306
 
ac_cv_lib_svld_dlopen=no
12307
 
fi
12308
 
rm -f conftest.err conftest.$ac_objext \
12309
 
      conftest$ac_exeext conftest.$ac_ext
12310
 
LIBS=$ac_check_lib_save_LIBS
12311
 
fi
12312
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12313
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12314
 
if test $ac_cv_lib_svld_dlopen = yes; then
12315
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12316
 
else
12317
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12318
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12319
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12320
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12321
 
else
12322
 
  ac_check_lib_save_LIBS=$LIBS
12323
 
LIBS="-ldld  $LIBS"
12324
 
cat >conftest.$ac_ext <<_ACEOF
12325
 
/* confdefs.h.  */
12326
 
_ACEOF
12327
 
cat confdefs.h >>conftest.$ac_ext
12328
 
cat >>conftest.$ac_ext <<_ACEOF
12329
 
/* end confdefs.h.  */
12330
 
 
12331
 
/* Override any gcc2 internal prototype to avoid an error.  */
12332
 
#ifdef __cplusplus
12333
 
extern "C"
12334
 
#endif
12335
 
/* We use char because int might match the return type of a gcc2
12336
 
   builtin and then its argument prototype would still apply.  */
12337
 
char dld_link ();
12338
 
int
12339
 
main ()
12340
 
{
12341
 
dld_link ();
12342
 
  ;
12343
 
  return 0;
12344
 
}
12345
 
_ACEOF
12346
 
rm -f conftest.$ac_objext conftest$ac_exeext
12347
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348
 
  (eval $ac_link) 2>conftest.er1
12349
 
  ac_status=$?
12350
 
  grep -v '^ *+' conftest.er1 >conftest.err
12351
 
  rm -f conftest.er1
12352
 
  cat conftest.err >&5
12353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
 
  (exit $ac_status); } &&
12355
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12356
 
                         || test ! -s conftest.err'
12357
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358
 
  (eval $ac_try) 2>&5
12359
 
  ac_status=$?
12360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361
 
  (exit $ac_status); }; } &&
12362
 
         { ac_try='test -s conftest$ac_exeext'
12363
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364
 
  (eval $ac_try) 2>&5
12365
 
  ac_status=$?
12366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367
 
  (exit $ac_status); }; }; then
12368
 
  ac_cv_lib_dld_dld_link=yes
12369
 
else
12370
 
  echo "$as_me: failed program was:" >&5
12371
 
sed 's/^/| /' conftest.$ac_ext >&5
12372
 
 
12373
 
ac_cv_lib_dld_dld_link=no
12374
 
fi
12375
 
rm -f conftest.err conftest.$ac_objext \
12376
 
      conftest$ac_exeext conftest.$ac_ext
12377
 
LIBS=$ac_check_lib_save_LIBS
12378
 
fi
12379
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12380
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12381
 
if test $ac_cv_lib_dld_dld_link = yes; then
12382
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12383
 
fi
12384
 
 
12385
 
 
12386
 
fi
12387
 
 
12388
 
 
12389
 
fi
12390
 
 
12391
 
 
12392
 
fi
12393
 
 
12394
 
 
12395
 
fi
12396
 
 
12397
 
 
12398
 
fi
12399
 
 
12400
 
    ;;
12401
 
  esac
12402
 
 
12403
 
  if test "x$lt_cv_dlopen" != xno; then
12404
 
    enable_dlopen=yes
12405
 
  else
12406
 
    enable_dlopen=no
12407
 
  fi
12408
 
 
12409
 
  case $lt_cv_dlopen in
12410
 
  dlopen)
12411
 
    save_CPPFLAGS="$CPPFLAGS"
12412
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12413
 
 
12414
 
    save_LDFLAGS="$LDFLAGS"
12415
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12416
 
 
12417
 
    save_LIBS="$LIBS"
12418
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12419
 
 
12420
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12421
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12422
 
if test "${lt_cv_dlopen_self+set}" = set; then
12423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12424
 
else
12425
 
          if test "$cross_compiling" = yes; then :
12426
 
  lt_cv_dlopen_self=cross
12427
 
else
12428
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12429
 
  lt_status=$lt_dlunknown
12430
 
  cat > conftest.$ac_ext <<EOF
12431
 
#line 12431 "configure"
12432
 
#include "confdefs.h"
12433
 
 
12434
 
#if HAVE_DLFCN_H
12435
 
#include <dlfcn.h>
12436
 
#endif
12437
 
 
12438
 
#include <stdio.h>
12439
 
 
12440
 
#ifdef RTLD_GLOBAL
12441
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12442
 
#else
12443
 
#  ifdef DL_GLOBAL
12444
 
#    define LT_DLGLOBAL         DL_GLOBAL
12445
 
#  else
12446
 
#    define LT_DLGLOBAL         0
12447
 
#  endif
12448
 
#endif
12449
 
 
12450
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12451
 
   find out it does not work in some platform. */
12452
 
#ifndef LT_DLLAZY_OR_NOW
12453
 
#  ifdef RTLD_LAZY
12454
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12455
 
#  else
12456
 
#    ifdef DL_LAZY
12457
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12458
 
#    else
12459
 
#      ifdef RTLD_NOW
12460
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12461
 
#      else
12462
 
#        ifdef DL_NOW
12463
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12464
 
#        else
12465
 
#          define LT_DLLAZY_OR_NOW      0
12466
 
#        endif
12467
 
#      endif
12468
 
#    endif
12469
 
#  endif
12470
 
#endif
12471
 
 
12472
 
#ifdef __cplusplus
12473
 
extern "C" void exit (int);
12474
 
#endif
12475
 
 
12476
 
void fnord() { int i=42;}
12477
 
int main ()
12478
 
{
12479
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12480
 
  int status = $lt_dlunknown;
12481
 
 
12482
 
  if (self)
12483
 
    {
12484
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12485
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12486
 
      /* dlclose (self); */
12487
 
    }
12488
 
 
12489
 
    exit (status);
12490
 
}
12491
 
EOF
12492
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493
 
  (eval $ac_link) 2>&5
12494
 
  ac_status=$?
12495
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12497
 
    (./conftest; exit; ) 2>/dev/null
12498
 
    lt_status=$?
12499
 
    case x$lt_status in
12500
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12501
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12502
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12503
 
    esac
12504
 
  else :
12505
 
    # compilation failed
12506
 
    lt_cv_dlopen_self=no
12507
 
  fi
12508
 
fi
12509
 
rm -fr conftest*
12510
 
 
12511
 
 
12512
 
fi
12513
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12514
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12515
 
 
12516
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12517
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12518
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12519
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12520
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12521
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12522
 
else
12523
 
          if test "$cross_compiling" = yes; then :
12524
 
  lt_cv_dlopen_self_static=cross
12525
 
else
12526
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12527
 
  lt_status=$lt_dlunknown
12528
 
  cat > conftest.$ac_ext <<EOF
12529
 
#line 12529 "configure"
12530
 
#include "confdefs.h"
12531
 
 
12532
 
#if HAVE_DLFCN_H
12533
 
#include <dlfcn.h>
12534
 
#endif
12535
 
 
12536
 
#include <stdio.h>
12537
 
 
12538
 
#ifdef RTLD_GLOBAL
12539
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12540
 
#else
12541
 
#  ifdef DL_GLOBAL
12542
 
#    define LT_DLGLOBAL         DL_GLOBAL
12543
 
#  else
12544
 
#    define LT_DLGLOBAL         0
12545
 
#  endif
12546
 
#endif
12547
 
 
12548
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12549
 
   find out it does not work in some platform. */
12550
 
#ifndef LT_DLLAZY_OR_NOW
12551
 
#  ifdef RTLD_LAZY
12552
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12553
 
#  else
12554
 
#    ifdef DL_LAZY
12555
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12556
 
#    else
12557
 
#      ifdef RTLD_NOW
12558
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12559
 
#      else
12560
 
#        ifdef DL_NOW
12561
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12562
 
#        else
12563
 
#          define LT_DLLAZY_OR_NOW      0
12564
 
#        endif
12565
 
#      endif
12566
 
#    endif
12567
 
#  endif
12568
 
#endif
12569
 
 
12570
 
#ifdef __cplusplus
12571
 
extern "C" void exit (int);
12572
 
#endif
12573
 
 
12574
 
void fnord() { int i=42;}
12575
 
int main ()
12576
 
{
12577
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12578
 
  int status = $lt_dlunknown;
12579
 
 
12580
 
  if (self)
12581
 
    {
12582
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12583
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12584
 
      /* dlclose (self); */
12585
 
    }
12586
 
 
12587
 
    exit (status);
12588
 
}
12589
 
EOF
12590
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12591
 
  (eval $ac_link) 2>&5
12592
 
  ac_status=$?
12593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12595
 
    (./conftest; exit; ) 2>/dev/null
12596
 
    lt_status=$?
12597
 
    case x$lt_status in
12598
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12599
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12600
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12601
 
    esac
12602
 
  else :
12603
 
    # compilation failed
12604
 
    lt_cv_dlopen_self_static=no
12605
 
  fi
12606
 
fi
12607
 
rm -fr conftest*
12608
 
 
12609
 
 
12610
 
fi
12611
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12612
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12613
 
    fi
12614
 
 
12615
 
    CPPFLAGS="$save_CPPFLAGS"
12616
 
    LDFLAGS="$save_LDFLAGS"
12617
 
    LIBS="$save_LIBS"
12618
 
    ;;
12619
 
  esac
12620
 
 
12621
 
  case $lt_cv_dlopen_self in
12622
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12623
 
  *) enable_dlopen_self=unknown ;;
12624
 
  esac
12625
 
 
12626
 
  case $lt_cv_dlopen_self_static in
12627
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12628
 
  *) enable_dlopen_self_static=unknown ;;
12629
 
  esac
12630
 
fi
12631
 
 
12632
12518
 
12633
12519
# The else clause should only fire when bootstrapping the
12634
12520
# libtool distribution, otherwise you forgot to ship ltmain.sh
12643
12529
  # Now quote all the things that may contain metacharacters while being
12644
12530
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12645
12531
  # variables and quote the copies for generation of the libtool script.
12646
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
12532
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12533
    SED SHELL STRIP \
12647
12534
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12648
12535
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12649
12536
    deplibs_check_method reload_flag reload_cmds need_locks \
12743
12630
# The host system.
12744
12631
host_alias=$host_alias
12745
12632
host=$host
 
12633
host_os=$host_os
 
12634
 
 
12635
# The build system.
 
12636
build_alias=$build_alias
 
12637
build=$build
 
12638
build_os=$build_os
12746
12639
 
12747
12640
# An echo program that does not interpret backslashes.
12748
12641
echo=$lt_echo
12754
12647
# A C compiler.
12755
12648
LTCC=$lt_LTCC
12756
12649
 
 
12650
# LTCC compiler flags.
 
12651
LTCFLAGS=$lt_LTCFLAGS
 
12652
 
12757
12653
# A language-specific compiler.
12758
12654
CC=$lt_compiler_CXX
12759
12655
 
12760
12656
# Is the compiler the GNU C compiler?
12761
12657
with_gcc=$GCC_CXX
12762
12658
 
 
12659
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
12660
gcc_ver=\`gcc -dumpversion\`
 
12661
 
12763
12662
# An ERE matcher.
12764
12663
EGREP=$lt_EGREP
12765
12664
 
12773
12672
NM=$lt_NM
12774
12673
 
12775
12674
# A symbol stripping program
12776
 
STRIP=$STRIP
 
12675
STRIP=$lt_STRIP
12777
12676
 
12778
12677
# Used to examine libraries when file_magic_cmd begins "file"
12779
12678
MAGIC_CMD=$MAGIC_CMD
12804
12703
libext="$libext"
12805
12704
 
12806
12705
# Shared library suffix (normally ".so").
12807
 
shrext='$shrext'
 
12706
shrext_cmds='$shrext_cmds'
12808
12707
 
12809
12708
# Executable file suffix (normally "").
12810
12709
exeext="$exeext"
12819
12718
# Does compiler simultaneously support -c and -o options?
12820
12719
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12821
12720
 
12822
 
# Must we lock files when doing compilation ?
 
12721
# Must we lock files when doing compilation?
12823
12722
need_locks=$lt_need_locks
12824
12723
 
12825
12724
# Do we need the lib prefix for modules?
12893
12792
 
12894
12793
# Dependencies to place before the objects being linked to create a
12895
12794
# shared library.
12896
 
predep_objects=$lt_predep_objects_CXX
 
12795
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12897
12796
 
12898
12797
# Dependencies to place after the objects being linked to create a
12899
12798
# shared library.
12900
 
postdep_objects=$lt_postdep_objects_CXX
 
12799
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12901
12800
 
12902
12801
# Dependencies to place before the objects being linked to create a
12903
12802
# shared library.
12909
12808
 
12910
12809
# The library search path used internally by the compiler when linking
12911
12810
# a shared library.
12912
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12811
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12913
12812
 
12914
12813
# Method to check whether dependent libraries are shared objects.
12915
12814
deplibs_check_method=$lt_deplibs_check_method
12989
12888
link_all_deplibs=$link_all_deplibs_CXX
12990
12889
 
12991
12890
# Compile-time system search path for libraries
12992
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12891
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12993
12892
 
12994
12893
# Run-time system search path for libraries
12995
12894
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13021
12920
  # If there is no Makefile yet, we rely on a make rule to execute
13022
12921
  # `config.status --recheck' to rerun these tests and create the
13023
12922
  # libtool script then.
13024
 
  test -f Makefile && make "$ltmain"
 
12923
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12924
  if test -f "$ltmain_in"; then
 
12925
    test -f Makefile && make "$ltmain"
 
12926
  fi
13025
12927
fi
13026
12928
 
13027
12929
 
13093
12995
# If no C compiler was specified, use CC.
13094
12996
LTCC=${LTCC-"$CC"}
13095
12997
 
 
12998
# If no C compiler flags were specified, use CFLAGS.
 
12999
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13000
 
13096
13001
# Allow CC to be a program name with arguments.
13097
13002
compiler=$CC
13098
13003
 
13099
13004
 
 
13005
# save warnings/boilerplate of simple test code
 
13006
ac_outfile=conftest.$ac_objext
 
13007
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13008
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13009
_lt_compiler_boilerplate=`cat conftest.err`
 
13010
$rm conftest*
 
13011
 
 
13012
ac_outfile=conftest.$ac_objext
 
13013
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13014
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13015
_lt_linker_boilerplate=`cat conftest.err`
 
13016
$rm conftest*
 
13017
 
 
13018
 
13100
13019
# Allow CC to be a program name with arguments.
13101
13020
lt_save_CC="$CC"
13102
13021
CC=${F77-"f77"}
13103
13022
compiler=$CC
13104
13023
compiler_F77=$CC
13105
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13024
for cc_temp in $compiler""; do
 
13025
  case $cc_temp in
 
13026
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13027
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13028
    \-*) ;;
 
13029
    *) break;;
 
13030
  esac
 
13031
done
 
13032
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13033
 
13106
13034
 
13107
13035
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13108
13036
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13115
13043
 
13116
13044
# On AIX, shared libraries and static libraries use the same namespace, and
13117
13045
# are all built from PIC.
13118
 
case "$host_os" in
 
13046
case $host_os in
13119
13047
aix3*)
13120
13048
  test "$enable_shared" = yes && enable_static=no
13121
13049
  if test -n "$RANLIB"; then
13123
13051
    postinstall_cmds='$RANLIB $lib'
13124
13052
  fi
13125
13053
  ;;
13126
 
aix4*)
13127
 
  test "$enable_shared" = yes && enable_static=no
 
13054
aix4* | aix5*)
 
13055
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13056
    test "$enable_shared" = yes && enable_static=no
 
13057
  fi
13128
13058
  ;;
13129
13059
esac
13130
13060
echo "$as_me:$LINENO: result: $enable_shared" >&5
13137
13067
echo "$as_me:$LINENO: result: $enable_static" >&5
13138
13068
echo "${ECHO_T}$enable_static" >&6
13139
13069
 
13140
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13141
 
 
13142
13070
GCC_F77="$G77"
13143
13071
LD_F77="$LD"
13144
13072
 
13185
13113
      lt_prog_compiler_pic_F77='-fno-common'
13186
13114
      ;;
13187
13115
 
 
13116
    interix3*)
 
13117
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13118
      # Instead, we relocate shared libraries at runtime.
 
13119
      ;;
 
13120
 
13188
13121
    msdosdjgpp*)
13189
13122
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13190
13123
      # on systems that don't support them.
13201
13134
    hpux*)
13202
13135
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13203
13136
      # not for PA HP-UX.
13204
 
      case "$host_cpu" in
 
13137
      case $host_cpu in
13205
13138
      hppa*64*|ia64*)
13206
13139
        # +Z the default
13207
13140
        ;;
13227
13160
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13228
13161
      fi
13229
13162
      ;;
 
13163
      darwin*)
 
13164
        # PIC is the default on this platform
 
13165
        # Common symbols not allowed in MH_DYLIB files
 
13166
       case $cc_basename in
 
13167
         xlc*)
 
13168
         lt_prog_compiler_pic_F77='-qnocommon'
 
13169
         lt_prog_compiler_wl_F77='-Wl,'
 
13170
         ;;
 
13171
       esac
 
13172
       ;;
13230
13173
 
13231
13174
    mingw* | pw32* | os2*)
13232
13175
      # This hack is so that the source file can tell whether it is being
13238
13181
      lt_prog_compiler_wl_F77='-Wl,'
13239
13182
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240
13183
      # not for PA HP-UX.
13241
 
      case "$host_cpu" in
 
13184
      case $host_cpu in
13242
13185
      hppa*64*|ia64*)
13243
13186
        # +Z the default
13244
13187
        ;;
13262
13205
      ;;
13263
13206
 
13264
13207
    linux*)
13265
 
      case $CC in
13266
 
      icc|ecc)
 
13208
      case $cc_basename in
 
13209
      icc* | ecc*)
13267
13210
        lt_prog_compiler_wl_F77='-Wl,'
13268
13211
        lt_prog_compiler_pic_F77='-KPIC'
13269
13212
        lt_prog_compiler_static_F77='-static'
13270
13213
        ;;
13271
 
      ccc)
 
13214
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13215
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13216
        # which looks to be a dead project)
 
13217
        lt_prog_compiler_wl_F77='-Wl,'
 
13218
        lt_prog_compiler_pic_F77='-fpic'
 
13219
        lt_prog_compiler_static_F77='-Bstatic'
 
13220
        ;;
 
13221
      ccc*)
13272
13222
        lt_prog_compiler_wl_F77='-Wl,'
13273
13223
        # All Alpha code is PIC.
13274
13224
        lt_prog_compiler_static_F77='-non_shared'
13282
13232
      lt_prog_compiler_static_F77='-non_shared'
13283
13233
      ;;
13284
13234
 
13285
 
    sco3.2v5*)
13286
 
      lt_prog_compiler_pic_F77='-Kpic'
13287
 
      lt_prog_compiler_static_F77='-dn'
13288
 
      ;;
13289
 
 
13290
13235
    solaris*)
13291
 
      lt_prog_compiler_wl_F77='-Wl,'
13292
13236
      lt_prog_compiler_pic_F77='-KPIC'
13293
13237
      lt_prog_compiler_static_F77='-Bstatic'
 
13238
      case $cc_basename in
 
13239
      f77* | f90* | f95*)
 
13240
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13241
      *)
 
13242
        lt_prog_compiler_wl_F77='-Wl,';;
 
13243
      esac
13294
13244
      ;;
13295
13245
 
13296
13246
    sunos4*)
13299
13249
      lt_prog_compiler_static_F77='-Bstatic'
13300
13250
      ;;
13301
13251
 
13302
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13252
    sysv4 | sysv4.2uw2* | sysv4.3*)
13303
13253
      lt_prog_compiler_wl_F77='-Wl,'
13304
13254
      lt_prog_compiler_pic_F77='-KPIC'
13305
13255
      lt_prog_compiler_static_F77='-Bstatic'
13312
13262
      fi
13313
13263
      ;;
13314
13264
 
 
13265
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13266
      lt_prog_compiler_wl_F77='-Wl,'
 
13267
      lt_prog_compiler_pic_F77='-KPIC'
 
13268
      lt_prog_compiler_static_F77='-Bstatic'
 
13269
      ;;
 
13270
 
 
13271
    unicos*)
 
13272
      lt_prog_compiler_wl_F77='-Wl,'
 
13273
      lt_prog_compiler_can_build_shared_F77=no
 
13274
      ;;
 
13275
 
13315
13276
    uts4*)
13316
13277
      lt_prog_compiler_pic_F77='-pic'
13317
13278
      lt_prog_compiler_static_F77='-Bstatic'
13330
13291
# Check to make sure the PIC flag actually works.
13331
13292
#
13332
13293
if test -n "$lt_prog_compiler_pic_F77"; then
13333
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13294
 
 
13295
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13334
13296
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13335
13297
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13336
13298
  echo $ECHO_N "(cached) $ECHO_C" >&6
13345
13307
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13346
13308
   # The option is referenced via a variable to avoid confusing sed.
13347
13309
   lt_compile=`echo "$ac_compile" | $SED \
13348
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13310
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13349
13311
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350
13312
   -e 's:$: $lt_compiler_flag:'`
13351
 
   (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
 
13313
   (eval echo "\"\$as_me:13313: $lt_compile\"" >&5)
13352
13314
   (eval "$lt_compile" 2>conftest.err)
13353
13315
   ac_status=$?
13354
13316
   cat conftest.err >&5
13355
 
   echo "$as_me:13355: \$? = $ac_status" >&5
 
13317
   echo "$as_me:13317: \$? = $ac_status" >&5
13356
13318
   if (exit $ac_status) && test -s "$ac_outfile"; then
13357
13319
     # The compiler can only warn and ignore the option if not recognized
13358
 
     # So say no if there are warnings
13359
 
     if test ! -s conftest.err; then
 
13320
     # So say no if there are warnings other than the usual output.
 
13321
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13322
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13323
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13360
13324
       lt_prog_compiler_pic_works_F77=yes
13361
13325
     fi
13362
13326
   fi
13377
13341
fi
13378
13342
 
13379
13343
fi
13380
 
case "$host_os" in
 
13344
case $host_os in
13381
13345
  # For platforms which do not support PIC, -DPIC is meaningless:
13382
13346
  *djgpp*)
13383
13347
    lt_prog_compiler_pic_F77=
13387
13351
    ;;
13388
13352
esac
13389
13353
 
 
13354
#
 
13355
# Check to make sure the static flag actually works.
 
13356
#
 
13357
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13358
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13359
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13360
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13362
else
 
13363
  lt_prog_compiler_static_works_F77=no
 
13364
   save_LDFLAGS="$LDFLAGS"
 
13365
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13366
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13367
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13368
     # The linker can only warn and ignore the option if not recognized
 
13369
     # So say no if there are warnings
 
13370
     if test -s conftest.err; then
 
13371
       # Append any errors to the config.log.
 
13372
       cat conftest.err 1>&5
 
13373
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13374
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13375
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13376
         lt_prog_compiler_static_works_F77=yes
 
13377
       fi
 
13378
     else
 
13379
       lt_prog_compiler_static_works_F77=yes
 
13380
     fi
 
13381
   fi
 
13382
   $rm conftest*
 
13383
   LDFLAGS="$save_LDFLAGS"
 
13384
 
 
13385
fi
 
13386
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13387
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13388
 
 
13389
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13390
    :
 
13391
else
 
13392
    lt_prog_compiler_static_F77=
 
13393
fi
 
13394
 
 
13395
 
13390
13396
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13391
13397
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13392
13398
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13399
13405
   mkdir out
13400
13406
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
13407
 
13402
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13403
 
   # that will create temporary files in the current directory regardless of
13404
 
   # the output directory.  Thus, making CWD read-only will cause this test
13405
 
   # to fail, enabling locking or at least warning the user not to do parallel
13406
 
   # builds.
13407
 
   chmod -w .
13408
 
 
13409
13408
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13410
13409
   # Insert the option either (1) after the last *FLAGS variable, or
13411
13410
   # (2) before a word containing "conftest.", or (3) at the end.
13412
13411
   # Note that $ac_compile itself does not contain backslashes and begins
13413
13412
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13414
13413
   lt_compile=`echo "$ac_compile" | $SED \
13415
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13414
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13416
13415
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417
13416
   -e 's:$: $lt_compiler_flag:'`
13418
 
   (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
 
13417
   (eval echo "\"\$as_me:13417: $lt_compile\"" >&5)
13419
13418
   (eval "$lt_compile" 2>out/conftest.err)
13420
13419
   ac_status=$?
13421
13420
   cat out/conftest.err >&5
13422
 
   echo "$as_me:13422: \$? = $ac_status" >&5
 
13421
   echo "$as_me:13421: \$? = $ac_status" >&5
13423
13422
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13424
13423
   then
13425
13424
     # The compiler can only warn and ignore the option if not recognized
13426
13425
     # So say no if there are warnings
13427
 
     if test ! -s out/conftest.err; then
 
13426
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13427
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13428
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13428
13429
       lt_cv_prog_compiler_c_o_F77=yes
13429
13430
     fi
13430
13431
   fi
13431
 
   chmod u+w .
13432
 
   $rm conftest* out/*
13433
 
   rmdir out
 
13432
   chmod u+w . 2>&5
 
13433
   $rm conftest*
 
13434
   # SGI C++ compiler will create directory out/ii_files/ for
 
13435
   # template instantiation
 
13436
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13437
   $rm out/* && rmdir out
13434
13438
   cd ..
13435
13439
   rmdir conftest
13436
13440
   $rm conftest*
13501
13505
  # rely on this symbol name, it's probably fine to never include it in
13502
13506
  # preloaded symbol tables.
13503
13507
  extract_expsyms_cmds=
 
13508
  # Just being paranoid about ensuring that cc_basename is set.
 
13509
  for cc_temp in $compiler""; do
 
13510
  case $cc_temp in
 
13511
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13512
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13513
    \-*) ;;
 
13514
    *) break;;
 
13515
  esac
 
13516
done
 
13517
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13504
13518
 
13505
13519
  case $host_os in
13506
13520
  cygwin* | mingw* | pw32*)
13511
13525
      with_gnu_ld=no
13512
13526
    fi
13513
13527
    ;;
 
13528
  interix*)
 
13529
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13530
    with_gnu_ld=yes
 
13531
    ;;
13514
13532
  openbsd*)
13515
13533
    with_gnu_ld=no
13516
13534
    ;;
13521
13539
    # If archive_cmds runs LD, not CC, wlarc should be empty
13522
13540
    wlarc='${wl}'
13523
13541
 
 
13542
    # Set some defaults for GNU ld with shared library support. These
 
13543
    # are reset later if shared libraries are not supported. Putting them
 
13544
    # here allows them to be overridden if necessary.
 
13545
    runpath_var=LD_RUN_PATH
 
13546
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13547
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13548
    # ancient GNU ld didn't support --whole-archive et. al.
 
13549
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13550
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13551
      else
 
13552
        whole_archive_flag_spec_F77=
 
13553
    fi
 
13554
    supports_anon_versioning=no
 
13555
    case `$LD -v 2>/dev/null` in
 
13556
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13557
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13558
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13559
      *\ 2.11.*) ;; # other 2.11 versions
 
13560
      *) supports_anon_versioning=yes ;;
 
13561
    esac
 
13562
 
13524
13563
    # See if GNU ld supports shared libraries.
13525
13564
    case $host_os in
13526
13565
    aix3* | aix4* | aix5*)
13571
13610
      allow_undefined_flag_F77=unsupported
13572
13611
      always_export_symbols_F77=no
13573
13612
      enable_shared_with_static_runtimes_F77=yes
13574
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13613
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13575
13614
 
13576
13615
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13577
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13616
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13578
13617
        # If the export-symbols file already is a .def file (1st line
13579
13618
        # is EXPORTS), use it as is; otherwise, prepend...
13580
13619
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13583
13622
          echo EXPORTS > $output_objdir/$soname.def;
13584
13623
          cat $export_symbols >> $output_objdir/$soname.def;
13585
13624
        fi~
13586
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13587
 
      else
13588
 
        ld_shlibs=no
 
13625
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13626
      else
 
13627
        ld_shlibs_F77=no
 
13628
      fi
 
13629
      ;;
 
13630
 
 
13631
    interix3*)
 
13632
      hardcode_direct_F77=no
 
13633
      hardcode_shlibpath_var_F77=no
 
13634
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13635
      export_dynamic_flag_spec_F77='${wl}-E'
 
13636
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13637
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13638
      # default) and relocated if they conflict, which is a slow very memory
 
13639
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13640
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13641
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13642
      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'
 
13643
      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'
 
13644
      ;;
 
13645
 
 
13646
    linux*)
 
13647
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13648
        tmp_addflag=
 
13649
        case $cc_basename,$host_cpu in
 
13650
        pgcc*)                          # Portland Group C compiler
 
13651
          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'
 
13652
          tmp_addflag=' $pic_flag'
 
13653
          ;;
 
13654
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13655
          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'
 
13656
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13657
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13658
          tmp_addflag=' -i_dynamic' ;;
 
13659
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13660
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13661
        ifc* | ifort*)                  # Intel Fortran compiler
 
13662
          tmp_addflag=' -nofor_main' ;;
 
13663
        esac
 
13664
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13665
 
 
13666
        if test $supports_anon_versioning = yes; then
 
13667
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13668
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13669
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13670
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13671
        fi
 
13672
      else
 
13673
        ld_shlibs_F77=no
13589
13674
      fi
13590
13675
      ;;
13591
13676
 
13599
13684
      fi
13600
13685
      ;;
13601
13686
 
13602
 
    solaris* | sysv5*)
 
13687
    solaris*)
13603
13688
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13604
13689
        ld_shlibs_F77=no
13605
13690
        cat <<EOF 1>&2
13620
13705
      fi
13621
13706
      ;;
13622
13707
 
 
13708
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13709
      case `$LD -v 2>&1` in
 
13710
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13711
        ld_shlibs_F77=no
 
13712
        cat <<_LT_EOF 1>&2
 
13713
 
 
13714
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13715
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13716
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13717
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13718
*** your PATH or compiler configuration so that the native linker is
 
13719
*** used, and then restart.
 
13720
 
 
13721
_LT_EOF
 
13722
        ;;
 
13723
        *)
 
13724
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13725
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13726
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13727
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13728
          else
 
13729
            ld_shlibs_F77=no
 
13730
          fi
 
13731
        ;;
 
13732
      esac
 
13733
      ;;
 
13734
 
13623
13735
    sunos4*)
13624
13736
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13625
13737
      wlarc=
13627
13739
      hardcode_shlibpath_var_F77=no
13628
13740
      ;;
13629
13741
 
13630
 
  linux*)
13631
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13632
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633
 
        archive_cmds_F77="$tmp_archive_cmds"
13634
 
      supports_anon_versioning=no
13635
 
      case `$LD -v 2>/dev/null` in
13636
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13637
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13638
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13639
 
        *\ 2.11.*) ;; # other 2.11 versions
13640
 
        *) supports_anon_versioning=yes ;;
13641
 
      esac
13642
 
      if test $supports_anon_versioning = yes; then
13643
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13644
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13645
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13646
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13647
 
      else
13648
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13649
 
      fi
13650
 
    else
13651
 
      ld_shlibs_F77=no
13652
 
    fi
13653
 
    ;;
13654
 
 
13655
13742
    *)
13656
13743
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13657
13744
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662
13749
      ;;
13663
13750
    esac
13664
13751
 
13665
 
    if test "$ld_shlibs_F77" = yes; then
13666
 
      runpath_var=LD_RUN_PATH
13667
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13668
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13669
 
      # ancient GNU ld didn't support --whole-archive et. al.
13670
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13671
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13672
 
      else
13673
 
        whole_archive_flag_spec_F77=
13674
 
      fi
 
13752
    if test "$ld_shlibs_F77" = no; then
 
13753
      runpath_var=
 
13754
      hardcode_libdir_flag_spec_F77=
 
13755
      export_dynamic_flag_spec_F77=
 
13756
      whole_archive_flag_spec_F77=
13675
13757
    fi
13676
13758
  else
13677
13759
    # PORTME fill in a description of your system's linker (not GNU ld)
13683
13765
      # Note: this linker hardcodes the directories in LIBPATH if there
13684
13766
      # are no directories specified by -L.
13685
13767
      hardcode_minus_L_F77=yes
13686
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13768
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13687
13769
        # Neither direct hardcoding nor static linking is supported with a
13688
13770
        # broken collect2.
13689
13771
        hardcode_direct_F77=unsupported
13717
13799
            break
13718
13800
          fi
13719
13801
          done
 
13802
          ;;
13720
13803
        esac
13721
13804
 
13722
13805
        exp_sym_flag='-bexport'
13735
13818
      link_all_deplibs_F77=yes
13736
13819
 
13737
13820
      if test "$GCC" = yes; then
13738
 
        case $host_os in aix4.012|aix4.012.*)
 
13821
        case $host_os in aix4.[012]|aix4.[012].*)
13739
13822
        # We only want to do this on AIX 4.2 and lower, the check
13740
13823
        # below for broken collect2 doesn't work under 4.3+
13741
13824
          collect2name=`${CC} -print-prog-name=collect2`
13754
13837
          hardcode_libdir_flag_spec_F77='-L$libdir'
13755
13838
          hardcode_libdir_separator_F77=
13756
13839
          fi
 
13840
          ;;
13757
13841
        esac
13758
13842
        shared_flag='-shared'
 
13843
        if test "$aix_use_runtimelinking" = yes; then
 
13844
          shared_flag="$shared_flag "'${wl}-G'
 
13845
        fi
13759
13846
      else
13760
13847
        # not using gcc
13761
13848
        if test "$host_cpu" = ia64; then
13763
13850
        # chokes on -Wl,-G. The following line is correct:
13764
13851
          shared_flag='-G'
13765
13852
        else
13766
 
        if test "$aix_use_runtimelinking" = yes; then
 
13853
          if test "$aix_use_runtimelinking" = yes; then
13767
13854
            shared_flag='${wl}-G'
13768
13855
          else
13769
13856
            shared_flag='${wl}-bM:SRE'
13770
 
        fi
 
13857
          fi
13771
13858
        fi
13772
13859
      fi
13773
13860
 
13822
13909
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13823
13910
 
13824
13911
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13825
 
        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"
 
13912
        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"
13826
13913
       else
13827
13914
        if test "$host_cpu" = ia64; then
13828
13915
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13829
13916
          allow_undefined_flag_F77="-z nodefs"
13830
 
          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"
 
13917
          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"
13831
13918
        else
13832
13919
         # Determine the default libpath from the value encoded in an empty executable.
13833
13920
         cat >conftest.$ac_ext <<_ACEOF
13877
13964
          # -berok will link without error, but may produce a broken library.
13878
13965
          no_undefined_flag_F77=' ${wl}-bernotok'
13879
13966
          allow_undefined_flag_F77=' ${wl}-berok'
13880
 
          # -bexpall does not export symbols beginning with underscore (_)
13881
 
          always_export_symbols_F77=yes
13882
13967
          # Exported symbols can be pulled into shared objects from archives
13883
 
          whole_archive_flag_spec_F77=' '
 
13968
          whole_archive_flag_spec_F77='$convenience'
13884
13969
          archive_cmds_need_lc_F77=yes
13885
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13886
 
          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'
 
13970
          # This is similar to how AIX traditionally builds its shared libraries.
 
13971
          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'
13887
13972
        fi
13888
13973
      fi
13889
13974
      ;;
13896
13981
      ld_shlibs_F77=no
13897
13982
      ;;
13898
13983
 
13899
 
    bsdi4*)
 
13984
    bsdi[45]*)
13900
13985
      export_dynamic_flag_spec_F77=-rdynamic
13901
13986
      ;;
13902
13987
 
13910
13995
      # Tell ltmain to make .lib files, not .a files.
13911
13996
      libext=lib
13912
13997
      # Tell ltmain to make .dll files, not .so files.
13913
 
      shrext=".dll"
 
13998
      shrext_cmds=".dll"
13914
13999
      # FIXME: Setting linknames here is a bad hack.
13915
14000
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13916
14001
      # The linker will automatically build a .lib file if we build a DLL.
13917
14002
      old_archive_From_new_cmds_F77='true'
13918
14003
      # FIXME: Should let the user specify the lib program.
13919
14004
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13920
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14005
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13921
14006
      enable_shared_with_static_runtimes_F77=yes
13922
14007
      ;;
13923
14008
 
13924
14009
    darwin* | rhapsody*)
13925
 
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
14010
      case $host_os in
 
14011
        rhapsody* | darwin1.[012])
 
14012
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14013
         ;;
 
14014
       *) # Darwin 1.3 on
 
14015
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14016
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14017
         else
 
14018
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14019
             10.[012])
 
14020
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14021
               ;;
 
14022
             10.*)
 
14023
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14024
               ;;
 
14025
           esac
 
14026
         fi
 
14027
         ;;
 
14028
      esac
13926
14029
      archive_cmds_need_lc_F77=no
13927
 
      case "$host_os" in
13928
 
      rhapsody* | darwin1.[012])
13929
 
        allow_undefined_flag_F77='-undefined suppress'
13930
 
        ;;
13931
 
      *) # Darwin 1.3 on
13932
 
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13933
 
        ;;
13934
 
      esac
13935
 
      # FIXME: Relying on posixy $() will cause problems for
13936
 
      #        cross-compilation, but unfortunately the echo tests do not
13937
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13938
 
      #        `"' quotes if we put them in here... so don't!
13939
 
        lt_int_apple_cc_single_mod=no
13940
 
        output_verbose_link_cmd='echo'
13941
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13942
 
          lt_int_apple_cc_single_mod=yes
13943
 
        fi
13944
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13945
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13946
 
        else
13947
 
        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'
13948
 
      fi
13949
 
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13950
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13951
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13952
 
          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}'
13953
 
        else
13954
 
          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}'
13955
 
        fi
13956
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13957
14030
      hardcode_direct_F77=no
13958
14031
      hardcode_automatic_F77=yes
13959
14032
      hardcode_shlibpath_var_F77=unsupported
13960
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14033
      whole_archive_flag_spec_F77=''
13961
14034
      link_all_deplibs_F77=yes
 
14035
    if test "$GCC" = yes ; then
 
14036
        output_verbose_link_cmd='echo'
 
14037
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14038
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14039
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14040
      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}'
 
14041
      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}'
 
14042
    else
 
14043
      case $cc_basename in
 
14044
        xlc*)
 
14045
         output_verbose_link_cmd='echo'
 
14046
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14047
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14048
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14049
         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}'
 
14050
          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}'
 
14051
          ;;
 
14052
       *)
 
14053
         ld_shlibs_F77=no
 
14054
          ;;
 
14055
      esac
13962
14056
    fi
13963
14057
      ;;
13964
14058
 
13992
14086
      ;;
13993
14087
 
13994
14088
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13995
 
    freebsd*)
 
14089
    freebsd* | kfreebsd*-gnu | dragonfly*)
13996
14090
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13997
14091
      hardcode_libdir_flag_spec_F77='-R$libdir'
13998
14092
      hardcode_direct_F77=yes
14015
14109
      export_dynamic_flag_spec_F77='${wl}-E'
14016
14110
      ;;
14017
14111
 
14018
 
    hpux10* | hpux11*)
14019
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14020
 
        case "$host_cpu" in
14021
 
        hppa*64*|ia64*)
 
14112
    hpux10*)
 
14113
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14114
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14115
      else
 
14116
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14117
      fi
 
14118
      if test "$with_gnu_ld" = no; then
 
14119
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14120
        hardcode_libdir_separator_F77=:
 
14121
 
 
14122
        hardcode_direct_F77=yes
 
14123
        export_dynamic_flag_spec_F77='${wl}-E'
 
14124
 
 
14125
        # hardcode_minus_L: Not really in the search PATH,
 
14126
        # but as the default location of the library.
 
14127
        hardcode_minus_L_F77=yes
 
14128
      fi
 
14129
      ;;
 
14130
 
 
14131
    hpux11*)
 
14132
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14133
        case $host_cpu in
 
14134
        hppa*64*)
14022
14135
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14023
14136
          ;;
 
14137
        ia64*)
 
14138
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14139
          ;;
14024
14140
        *)
14025
14141
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14026
14142
          ;;
14027
14143
        esac
14028
14144
      else
14029
 
        case "$host_cpu" in
14030
 
        hppa*64*|ia64*)
14031
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14145
        case $host_cpu in
 
14146
        hppa*64*)
 
14147
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14148
          ;;
 
14149
        ia64*)
 
14150
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14032
14151
          ;;
14033
14152
        *)
14034
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14153
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14035
14154
          ;;
14036
14155
        esac
14037
14156
      fi
14038
14157
      if test "$with_gnu_ld" = no; then
14039
 
        case "$host_cpu" in
14040
 
        hppa*64*)
14041
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14158
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14159
        hardcode_libdir_separator_F77=:
 
14160
 
 
14161
        case $host_cpu in
 
14162
        hppa*64*|ia64*)
14042
14163
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14043
 
          hardcode_libdir_separator_F77=:
14044
 
          hardcode_direct_F77=no
14045
 
          hardcode_shlibpath_var_F77=no
14046
 
          ;;
14047
 
        ia64*)
14048
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14049
 
          hardcode_direct_F77=no
14050
 
          hardcode_shlibpath_var_F77=no
14051
 
 
14052
 
          # hardcode_minus_L: Not really in the search PATH,
14053
 
          # but as the default location of the library.
14054
 
          hardcode_minus_L_F77=yes
 
14164
          hardcode_direct_F77=no
 
14165
          hardcode_shlibpath_var_F77=no
14055
14166
          ;;
14056
14167
        *)
14057
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14058
 
          hardcode_libdir_separator_F77=:
14059
14168
          hardcode_direct_F77=yes
14060
14169
          export_dynamic_flag_spec_F77='${wl}-E'
14061
14170
 
14103
14212
      hardcode_shlibpath_var_F77=no
14104
14213
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14105
14214
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14215
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14106
14216
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14107
14217
        export_dynamic_flag_spec_F77='${wl}-E'
14108
14218
      else
14148
14258
        allow_undefined_flag_F77=' -expect_unresolved \*'
14149
14259
        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'
14150
14260
        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~
14151
 
        $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'
 
14261
        $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'
14152
14262
 
14153
14263
        # Both c and cxx compiler support -rpath directly
14154
14264
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14156
14266
      hardcode_libdir_separator_F77=:
14157
14267
      ;;
14158
14268
 
14159
 
    sco3.2v5*)
14160
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14161
 
      hardcode_shlibpath_var_F77=no
14162
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14163
 
      runpath_var=LD_RUN_PATH
14164
 
      hardcode_runpath_var=yes
14165
 
      ;;
14166
 
 
14167
14269
    solaris*)
14168
14270
      no_undefined_flag_F77=' -z text'
14169
14271
      if test "$GCC" = yes; then
 
14272
        wlarc='${wl}'
14170
14273
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14171
14274
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14172
14275
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14173
14276
      else
 
14277
        wlarc=''
14174
14278
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175
14279
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14176
14280
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14179
14283
      hardcode_shlibpath_var_F77=no
14180
14284
      case $host_os in
14181
14285
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14182
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14183
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14286
      *)
 
14287
        # The compiler driver will combine linker options so we
 
14288
        # cannot just pass the convience library names through
 
14289
        # without $wl, iff we do not link with $LD.
 
14290
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14291
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14292
        case $wlarc in
 
14293
        '')
 
14294
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14295
        *)
 
14296
          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' ;;
 
14297
        esac ;;
14184
14298
      esac
14185
14299
      link_all_deplibs_F77=yes
14186
14300
      ;;
14237
14351
      fi
14238
14352
      ;;
14239
14353
 
14240
 
    sysv4.2uw2*)
14241
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14242
 
      hardcode_direct_F77=yes
14243
 
      hardcode_minus_L_F77=no
14244
 
      hardcode_shlibpath_var_F77=no
14245
 
      hardcode_runpath_var=yes
14246
 
      runpath_var=LD_RUN_PATH
14247
 
      ;;
14248
 
 
14249
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14250
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14251
 
      if test "$GCC" = yes; then
14252
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14253
 
      else
14254
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14255
 
      fi
14256
 
      runpath_var='LD_RUN_PATH'
14257
 
      hardcode_shlibpath_var_F77=no
14258
 
      ;;
14259
 
 
14260
 
    sysv5*)
14261
 
      no_undefined_flag_F77=' -z text'
14262
 
      # $CC -shared without GNU ld will not create a library from C++
14263
 
      # object files and a static libstdc++, better avoid it by now
14264
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14265
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14266
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14267
 
      hardcode_libdir_flag_spec_F77=
14268
 
      hardcode_shlibpath_var_F77=no
14269
 
      runpath_var='LD_RUN_PATH'
 
14354
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14355
      no_undefined_flag_F77='${wl}-z,text'
 
14356
      archive_cmds_need_lc_F77=no
 
14357
      hardcode_shlibpath_var_F77=no
 
14358
      runpath_var='LD_RUN_PATH'
 
14359
 
 
14360
      if test "$GCC" = yes; then
 
14361
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14362
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14363
      else
 
14364
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14365
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14366
      fi
 
14367
      ;;
 
14368
 
 
14369
    sysv5* | sco3.2v5* | sco5v6*)
 
14370
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14371
      # link with -lc, and that would cause any symbols used from libc to
 
14372
      # always be unresolved, which means just about no library would
 
14373
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14374
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14375
      # as -z defs.
 
14376
      no_undefined_flag_F77='${wl}-z,text'
 
14377
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14378
      archive_cmds_need_lc_F77=no
 
14379
      hardcode_shlibpath_var_F77=no
 
14380
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14381
      hardcode_libdir_separator_F77=':'
 
14382
      link_all_deplibs_F77=yes
 
14383
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14384
      runpath_var='LD_RUN_PATH'
 
14385
 
 
14386
      if test "$GCC" = yes; then
 
14387
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14388
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14389
      else
 
14390
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14391
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14392
      fi
14270
14393
      ;;
14271
14394
 
14272
14395
    uts4*)
14285
14408
echo "${ECHO_T}$ld_shlibs_F77" >&6
14286
14409
test "$ld_shlibs_F77" = no && can_build_shared=no
14287
14410
 
14288
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14289
 
if test "$GCC" = yes; then
14290
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14291
 
fi
14292
 
 
14293
14411
#
14294
14412
# Do we need to explicitly link libc?
14295
14413
#
14322
14440
        libobjs=conftest.$ac_objext
14323
14441
        deplibs=
14324
14442
        wl=$lt_prog_compiler_wl_F77
 
14443
        pic_flag=$lt_prog_compiler_pic_F77
14325
14444
        compiler_flags=-v
14326
14445
        linker_flags=-v
14327
14446
        verstring=
14352
14471
  ;;
14353
14472
esac
14354
14473
 
 
14474
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14475
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14476
library_names_spec=
 
14477
libname_spec='lib$name'
 
14478
soname_spec=
 
14479
shrext_cmds=".so"
 
14480
postinstall_cmds=
 
14481
postuninstall_cmds=
 
14482
finish_cmds=
 
14483
finish_eval=
 
14484
shlibpath_var=
 
14485
shlibpath_overrides_runpath=unknown
 
14486
version_type=none
 
14487
dynamic_linker="$host_os ld.so"
 
14488
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14489
if test "$GCC" = yes; then
 
14490
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14491
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14492
    # if the path contains ";" then we assume it to be the separator
 
14493
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14494
    # assumed that no part of a normal pathname contains ";" but that should
 
14495
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14496
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14497
  else
 
14498
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14499
  fi
 
14500
else
 
14501
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14502
fi
 
14503
need_lib_prefix=unknown
 
14504
hardcode_into_libs=no
 
14505
 
 
14506
# when you set need_version to no, make sure it does not cause -set_version
 
14507
# flags to be left without arguments
 
14508
need_version=unknown
 
14509
 
 
14510
case $host_os in
 
14511
aix3*)
 
14512
  version_type=linux
 
14513
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14514
  shlibpath_var=LIBPATH
 
14515
 
 
14516
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14517
  soname_spec='${libname}${release}${shared_ext}$major'
 
14518
  ;;
 
14519
 
 
14520
aix4* | aix5*)
 
14521
  version_type=linux
 
14522
  need_lib_prefix=no
 
14523
  need_version=no
 
14524
  hardcode_into_libs=yes
 
14525
  if test "$host_cpu" = ia64; then
 
14526
    # AIX 5 supports IA64
 
14527
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14528
    shlibpath_var=LD_LIBRARY_PATH
 
14529
  else
 
14530
    # With GCC up to 2.95.x, collect2 would create an import file
 
14531
    # for dependence libraries.  The import file would start with
 
14532
    # the line `#! .'.  This would cause the generated library to
 
14533
    # depend on `.', always an invalid library.  This was fixed in
 
14534
    # development snapshots of GCC prior to 3.0.
 
14535
    case $host_os in
 
14536
      aix4 | aix4.[01] | aix4.[01].*)
 
14537
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14538
           echo ' yes '
 
14539
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14540
        :
 
14541
      else
 
14542
        can_build_shared=no
 
14543
      fi
 
14544
      ;;
 
14545
    esac
 
14546
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14547
    # soname into executable. Probably we can add versioning support to
 
14548
    # collect2, so additional links can be useful in future.
 
14549
    if test "$aix_use_runtimelinking" = yes; then
 
14550
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14551
      # instead of lib<name>.a to let people know that these are not
 
14552
      # typical AIX shared libraries.
 
14553
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14554
    else
 
14555
      # We preserve .a as extension for shared libraries through AIX4.2
 
14556
      # and later when we are not doing run time linking.
 
14557
      library_names_spec='${libname}${release}.a $libname.a'
 
14558
      soname_spec='${libname}${release}${shared_ext}$major'
 
14559
    fi
 
14560
    shlibpath_var=LIBPATH
 
14561
  fi
 
14562
  ;;
 
14563
 
 
14564
amigaos*)
 
14565
  library_names_spec='$libname.ixlibrary $libname.a'
 
14566
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14567
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14568
  ;;
 
14569
 
 
14570
beos*)
 
14571
  library_names_spec='${libname}${shared_ext}'
 
14572
  dynamic_linker="$host_os ld.so"
 
14573
  shlibpath_var=LIBRARY_PATH
 
14574
  ;;
 
14575
 
 
14576
bsdi[45]*)
 
14577
  version_type=linux
 
14578
  need_version=no
 
14579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14580
  soname_spec='${libname}${release}${shared_ext}$major'
 
14581
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14582
  shlibpath_var=LD_LIBRARY_PATH
 
14583
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14584
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14585
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14586
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14587
  # libtool to hard-code these into programs
 
14588
  ;;
 
14589
 
 
14590
cygwin* | mingw* | pw32*)
 
14591
  version_type=windows
 
14592
  shrext_cmds=".dll"
 
14593
  need_version=no
 
14594
  need_lib_prefix=no
 
14595
 
 
14596
  case $GCC,$host_os in
 
14597
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14598
    library_names_spec='$libname.dll.a'
 
14599
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14600
    postinstall_cmds='base_file=`basename \${file}`~
 
14601
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14602
      dldir=$destdir/`dirname \$dlpath`~
 
14603
      test -d \$dldir || mkdir -p \$dldir~
 
14604
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14605
      chmod a+x \$dldir/$dlname'
 
14606
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14607
      dlpath=$dir/\$dldll~
 
14608
       $rm \$dlpath'
 
14609
    shlibpath_overrides_runpath=yes
 
14610
 
 
14611
    case $host_os in
 
14612
    cygwin*)
 
14613
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14614
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14615
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14616
      ;;
 
14617
    mingw*)
 
14618
      # MinGW DLLs use traditional 'lib' prefix
 
14619
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14620
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14621
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14622
        # It is most probably a Windows format PATH printed by
 
14623
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14624
        # path with ; separators, and with drive letters. We can handle the
 
14625
        # drive letters (cygwin fileutils understands them), so leave them,
 
14626
        # especially as we might pass files found there to a mingw objdump,
 
14627
        # which wouldn't understand a cygwinified path. Ahh.
 
14628
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14629
      else
 
14630
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14631
      fi
 
14632
      ;;
 
14633
    pw32*)
 
14634
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14635
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14636
      ;;
 
14637
    esac
 
14638
    ;;
 
14639
 
 
14640
  *)
 
14641
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14642
    ;;
 
14643
  esac
 
14644
  dynamic_linker='Win32 ld.exe'
 
14645
  # FIXME: first we should search . and the directory the executable is in
 
14646
  shlibpath_var=PATH
 
14647
  ;;
 
14648
 
 
14649
darwin* | rhapsody*)
 
14650
  dynamic_linker="$host_os dyld"
 
14651
  version_type=darwin
 
14652
  need_lib_prefix=no
 
14653
  need_version=no
 
14654
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14655
  soname_spec='${libname}${release}${major}$shared_ext'
 
14656
  shlibpath_overrides_runpath=yes
 
14657
  shlibpath_var=DYLD_LIBRARY_PATH
 
14658
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14659
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14660
  if test "$GCC" = yes; then
 
14661
    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"`
 
14662
  else
 
14663
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14664
  fi
 
14665
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14666
  ;;
 
14667
 
 
14668
dgux*)
 
14669
  version_type=linux
 
14670
  need_lib_prefix=no
 
14671
  need_version=no
 
14672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14673
  soname_spec='${libname}${release}${shared_ext}$major'
 
14674
  shlibpath_var=LD_LIBRARY_PATH
 
14675
  ;;
 
14676
 
 
14677
freebsd1*)
 
14678
  dynamic_linker=no
 
14679
  ;;
 
14680
 
 
14681
kfreebsd*-gnu)
 
14682
  version_type=linux
 
14683
  need_lib_prefix=no
 
14684
  need_version=no
 
14685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14686
  soname_spec='${libname}${release}${shared_ext}$major'
 
14687
  shlibpath_var=LD_LIBRARY_PATH
 
14688
  shlibpath_overrides_runpath=no
 
14689
  hardcode_into_libs=yes
 
14690
  dynamic_linker='GNU ld.so'
 
14691
  ;;
 
14692
 
 
14693
freebsd* | dragonfly*)
 
14694
  # DragonFly does not have aout.  When/if they implement a new
 
14695
  # versioning mechanism, adjust this.
 
14696
  if test -x /usr/bin/objformat; then
 
14697
    objformat=`/usr/bin/objformat`
 
14698
  else
 
14699
    case $host_os in
 
14700
    freebsd[123]*) objformat=aout ;;
 
14701
    *) objformat=elf ;;
 
14702
    esac
 
14703
  fi
 
14704
  version_type=freebsd-$objformat
 
14705
  case $version_type in
 
14706
    freebsd-elf*)
 
14707
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14708
      need_version=no
 
14709
      need_lib_prefix=no
 
14710
      ;;
 
14711
    freebsd-*)
 
14712
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14713
      need_version=yes
 
14714
      ;;
 
14715
  esac
 
14716
  shlibpath_var=LD_LIBRARY_PATH
 
14717
  case $host_os in
 
14718
  freebsd2*)
 
14719
    shlibpath_overrides_runpath=yes
 
14720
    ;;
 
14721
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14722
    shlibpath_overrides_runpath=yes
 
14723
    hardcode_into_libs=yes
 
14724
    ;;
 
14725
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14726
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14727
    shlibpath_overrides_runpath=no
 
14728
    hardcode_into_libs=yes
 
14729
    ;;
 
14730
  freebsd*) # from 4.6 on
 
14731
    shlibpath_overrides_runpath=yes
 
14732
    hardcode_into_libs=yes
 
14733
    ;;
 
14734
  esac
 
14735
  ;;
 
14736
 
 
14737
gnu*)
 
14738
  version_type=linux
 
14739
  need_lib_prefix=no
 
14740
  need_version=no
 
14741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14742
  soname_spec='${libname}${release}${shared_ext}$major'
 
14743
  shlibpath_var=LD_LIBRARY_PATH
 
14744
  hardcode_into_libs=yes
 
14745
  ;;
 
14746
 
 
14747
hpux9* | hpux10* | hpux11*)
 
14748
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14749
  # link against other versions.
 
14750
  version_type=sunos
 
14751
  need_lib_prefix=no
 
14752
  need_version=no
 
14753
  case $host_cpu in
 
14754
  ia64*)
 
14755
    shrext_cmds='.so'
 
14756
    hardcode_into_libs=yes
 
14757
    dynamic_linker="$host_os dld.so"
 
14758
    shlibpath_var=LD_LIBRARY_PATH
 
14759
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14760
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14761
    soname_spec='${libname}${release}${shared_ext}$major'
 
14762
    if test "X$HPUX_IA64_MODE" = X32; then
 
14763
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14764
    else
 
14765
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14766
    fi
 
14767
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14768
    ;;
 
14769
   hppa*64*)
 
14770
     shrext_cmds='.sl'
 
14771
     hardcode_into_libs=yes
 
14772
     dynamic_linker="$host_os dld.sl"
 
14773
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14774
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14775
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14776
     soname_spec='${libname}${release}${shared_ext}$major'
 
14777
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14778
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14779
     ;;
 
14780
   *)
 
14781
    shrext_cmds='.sl'
 
14782
    dynamic_linker="$host_os dld.sl"
 
14783
    shlibpath_var=SHLIB_PATH
 
14784
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14785
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14786
    soname_spec='${libname}${release}${shared_ext}$major'
 
14787
    ;;
 
14788
  esac
 
14789
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14790
  postinstall_cmds='chmod 555 $lib'
 
14791
  ;;
 
14792
 
 
14793
interix3*)
 
14794
  version_type=linux
 
14795
  need_lib_prefix=no
 
14796
  need_version=no
 
14797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14798
  soname_spec='${libname}${release}${shared_ext}$major'
 
14799
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14800
  shlibpath_var=LD_LIBRARY_PATH
 
14801
  shlibpath_overrides_runpath=no
 
14802
  hardcode_into_libs=yes
 
14803
  ;;
 
14804
 
 
14805
irix5* | irix6* | nonstopux*)
 
14806
  case $host_os in
 
14807
    nonstopux*) version_type=nonstopux ;;
 
14808
    *)
 
14809
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14810
                version_type=linux
 
14811
        else
 
14812
                version_type=irix
 
14813
        fi ;;
 
14814
  esac
 
14815
  need_lib_prefix=no
 
14816
  need_version=no
 
14817
  soname_spec='${libname}${release}${shared_ext}$major'
 
14818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14819
  case $host_os in
 
14820
  irix5* | nonstopux*)
 
14821
    libsuff= shlibsuff=
 
14822
    ;;
 
14823
  *)
 
14824
    case $LD in # libtool.m4 will add one of these switches to LD
 
14825
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14826
      libsuff= shlibsuff= libmagic=32-bit;;
 
14827
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14828
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14829
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14830
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14831
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14832
    esac
 
14833
    ;;
 
14834
  esac
 
14835
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14836
  shlibpath_overrides_runpath=no
 
14837
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14838
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14839
  hardcode_into_libs=yes
 
14840
  ;;
 
14841
 
 
14842
# No shared lib support for Linux oldld, aout, or coff.
 
14843
linux*oldld* | linux*aout* | linux*coff*)
 
14844
  dynamic_linker=no
 
14845
  ;;
 
14846
 
 
14847
# This must be Linux ELF.
 
14848
linux*)
 
14849
  version_type=linux
 
14850
  need_lib_prefix=no
 
14851
  need_version=no
 
14852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14853
  soname_spec='${libname}${release}${shared_ext}$major'
 
14854
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14855
  shlibpath_var=LD_LIBRARY_PATH
 
14856
  shlibpath_overrides_runpath=no
 
14857
  # This implies no fast_install, which is unacceptable.
 
14858
  # Some rework will be needed to allow for fast_install
 
14859
  # before this can be enabled.
 
14860
  hardcode_into_libs=yes
 
14861
 
 
14862
  # find out which ABI we are using
 
14863
  libsuff=
 
14864
  case "$host_cpu" in
 
14865
  x86_64*|s390x*|powerpc64*)
 
14866
    echo '#line 14866 "configure"' > conftest.$ac_ext
 
14867
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14868
  (eval $ac_compile) 2>&5
 
14869
  ac_status=$?
 
14870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14871
  (exit $ac_status); }; then
 
14872
      case `/usr/bin/file conftest.$ac_objext` in
 
14873
      *64-bit*)
 
14874
        libsuff=64
 
14875
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14876
        ;;
 
14877
      esac
 
14878
    fi
 
14879
    rm -rf conftest*
 
14880
    ;;
 
14881
  esac
 
14882
 
 
14883
  # Append ld.so.conf contents to the search path
 
14884
  if test -f /etc/ld.so.conf; then
 
14885
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14886
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
14887
  fi
 
14888
 
 
14889
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14890
  # powerpc, because MkLinux only supported shared libraries with the
 
14891
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14892
  # most powerpc-linux boxes support dynamic linking these days and
 
14893
  # people can always --disable-shared, the test was removed, and we
 
14894
  # assume the GNU/Linux dynamic linker is in use.
 
14895
  dynamic_linker='GNU/Linux ld.so'
 
14896
  ;;
 
14897
 
 
14898
knetbsd*-gnu)
 
14899
  version_type=linux
 
14900
  need_lib_prefix=no
 
14901
  need_version=no
 
14902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14903
  soname_spec='${libname}${release}${shared_ext}$major'
 
14904
  shlibpath_var=LD_LIBRARY_PATH
 
14905
  shlibpath_overrides_runpath=no
 
14906
  hardcode_into_libs=yes
 
14907
  dynamic_linker='GNU ld.so'
 
14908
  ;;
 
14909
 
 
14910
netbsd*)
 
14911
  version_type=sunos
 
14912
  need_lib_prefix=no
 
14913
  need_version=no
 
14914
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14915
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14916
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14917
    dynamic_linker='NetBSD (a.out) ld.so'
 
14918
  else
 
14919
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14920
    soname_spec='${libname}${release}${shared_ext}$major'
 
14921
    dynamic_linker='NetBSD ld.elf_so'
 
14922
  fi
 
14923
  shlibpath_var=LD_LIBRARY_PATH
 
14924
  shlibpath_overrides_runpath=yes
 
14925
  hardcode_into_libs=yes
 
14926
  ;;
 
14927
 
 
14928
newsos6)
 
14929
  version_type=linux
 
14930
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14931
  shlibpath_var=LD_LIBRARY_PATH
 
14932
  shlibpath_overrides_runpath=yes
 
14933
  ;;
 
14934
 
 
14935
nto-qnx*)
 
14936
  version_type=linux
 
14937
  need_lib_prefix=no
 
14938
  need_version=no
 
14939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14940
  soname_spec='${libname}${release}${shared_ext}$major'
 
14941
  shlibpath_var=LD_LIBRARY_PATH
 
14942
  shlibpath_overrides_runpath=yes
 
14943
  ;;
 
14944
 
 
14945
openbsd*)
 
14946
  version_type=sunos
 
14947
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14948
  need_lib_prefix=no
 
14949
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14950
  case $host_os in
 
14951
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14952
    *)                         need_version=no  ;;
 
14953
  esac
 
14954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14955
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14956
  shlibpath_var=LD_LIBRARY_PATH
 
14957
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14958
    case $host_os in
 
14959
      openbsd2.[89] | openbsd2.[89].*)
 
14960
        shlibpath_overrides_runpath=no
 
14961
        ;;
 
14962
      *)
 
14963
        shlibpath_overrides_runpath=yes
 
14964
        ;;
 
14965
      esac
 
14966
  else
 
14967
    shlibpath_overrides_runpath=yes
 
14968
  fi
 
14969
  ;;
 
14970
 
 
14971
os2*)
 
14972
  libname_spec='$name'
 
14973
  shrext_cmds=".dll"
 
14974
  need_lib_prefix=no
 
14975
  library_names_spec='$libname${shared_ext} $libname.a'
 
14976
  dynamic_linker='OS/2 ld.exe'
 
14977
  shlibpath_var=LIBPATH
 
14978
  ;;
 
14979
 
 
14980
osf3* | osf4* | osf5*)
 
14981
  version_type=osf
 
14982
  need_lib_prefix=no
 
14983
  need_version=no
 
14984
  soname_spec='${libname}${release}${shared_ext}$major'
 
14985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14986
  shlibpath_var=LD_LIBRARY_PATH
 
14987
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14988
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14989
  ;;
 
14990
 
 
14991
solaris*)
 
14992
  version_type=linux
 
14993
  need_lib_prefix=no
 
14994
  need_version=no
 
14995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14996
  soname_spec='${libname}${release}${shared_ext}$major'
 
14997
  shlibpath_var=LD_LIBRARY_PATH
 
14998
  shlibpath_overrides_runpath=yes
 
14999
  hardcode_into_libs=yes
 
15000
  # ldd complains unless libraries are executable
 
15001
  postinstall_cmds='chmod +x $lib'
 
15002
  ;;
 
15003
 
 
15004
sunos4*)
 
15005
  version_type=sunos
 
15006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15007
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15008
  shlibpath_var=LD_LIBRARY_PATH
 
15009
  shlibpath_overrides_runpath=yes
 
15010
  if test "$with_gnu_ld" = yes; then
 
15011
    need_lib_prefix=no
 
15012
  fi
 
15013
  need_version=yes
 
15014
  ;;
 
15015
 
 
15016
sysv4 | sysv4.3*)
 
15017
  version_type=linux
 
15018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15019
  soname_spec='${libname}${release}${shared_ext}$major'
 
15020
  shlibpath_var=LD_LIBRARY_PATH
 
15021
  case $host_vendor in
 
15022
    sni)
 
15023
      shlibpath_overrides_runpath=no
 
15024
      need_lib_prefix=no
 
15025
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15026
      runpath_var=LD_RUN_PATH
 
15027
      ;;
 
15028
    siemens)
 
15029
      need_lib_prefix=no
 
15030
      ;;
 
15031
    motorola)
 
15032
      need_lib_prefix=no
 
15033
      need_version=no
 
15034
      shlibpath_overrides_runpath=no
 
15035
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15036
      ;;
 
15037
  esac
 
15038
  ;;
 
15039
 
 
15040
sysv4*MP*)
 
15041
  if test -d /usr/nec ;then
 
15042
    version_type=linux
 
15043
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15044
    soname_spec='$libname${shared_ext}.$major'
 
15045
    shlibpath_var=LD_LIBRARY_PATH
 
15046
  fi
 
15047
  ;;
 
15048
 
 
15049
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15050
  version_type=freebsd-elf
 
15051
  need_lib_prefix=no
 
15052
  need_version=no
 
15053
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15054
  soname_spec='${libname}${release}${shared_ext}$major'
 
15055
  shlibpath_var=LD_LIBRARY_PATH
 
15056
  hardcode_into_libs=yes
 
15057
  if test "$with_gnu_ld" = yes; then
 
15058
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15059
    shlibpath_overrides_runpath=no
 
15060
  else
 
15061
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15062
    shlibpath_overrides_runpath=yes
 
15063
    case $host_os in
 
15064
      sco3.2v5*)
 
15065
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15066
        ;;
 
15067
    esac
 
15068
  fi
 
15069
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15070
  ;;
 
15071
 
 
15072
uts4*)
 
15073
  version_type=linux
 
15074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15075
  soname_spec='${libname}${release}${shared_ext}$major'
 
15076
  shlibpath_var=LD_LIBRARY_PATH
 
15077
  ;;
 
15078
 
 
15079
*)
 
15080
  dynamic_linker=no
 
15081
  ;;
 
15082
esac
 
15083
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15084
echo "${ECHO_T}$dynamic_linker" >&6
 
15085
test "$dynamic_linker" = no && can_build_shared=no
 
15086
 
 
15087
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15088
if test "$GCC" = yes; then
 
15089
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15090
fi
 
15091
 
14355
15092
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14356
15093
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14357
15094
hardcode_action_F77=
14358
15095
if test -n "$hardcode_libdir_flag_spec_F77" || \
14359
 
   test -n "$runpath_var F77" || \
14360
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15096
   test -n "$runpath_var_F77" || \
 
15097
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14361
15098
 
14362
15099
  # We can hardcode non-existant directories.
14363
15100
  if test "$hardcode_direct_F77" != no &&
14389
15126
  enable_fast_install=needless
14390
15127
fi
14391
15128
 
14392
 
striplib=
14393
 
old_striplib=
14394
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14395
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14396
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14397
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14398
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14399
 
  echo "$as_me:$LINENO: result: yes" >&5
14400
 
echo "${ECHO_T}yes" >&6
14401
 
else
14402
 
# FIXME - insert some real tests, host_os isn't really good enough
14403
 
  case $host_os in
14404
 
   darwin*)
14405
 
       if test -n "$STRIP" ; then
14406
 
         striplib="$STRIP -x"
14407
 
         echo "$as_me:$LINENO: result: yes" >&5
14408
 
echo "${ECHO_T}yes" >&6
14409
 
       else
14410
 
  echo "$as_me:$LINENO: result: no" >&5
14411
 
echo "${ECHO_T}no" >&6
14412
 
fi
14413
 
       ;;
14414
 
   *)
14415
 
  echo "$as_me:$LINENO: result: no" >&5
14416
 
echo "${ECHO_T}no" >&6
14417
 
    ;;
14418
 
  esac
14419
 
fi
14420
 
 
14421
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423
 
library_names_spec=
14424
 
libname_spec='lib$name'
14425
 
soname_spec=
14426
 
shrext=".so"
14427
 
postinstall_cmds=
14428
 
postuninstall_cmds=
14429
 
finish_cmds=
14430
 
finish_eval=
14431
 
shlibpath_var=
14432
 
shlibpath_overrides_runpath=unknown
14433
 
version_type=none
14434
 
dynamic_linker="$host_os ld.so"
14435
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436
 
if test "$GCC" = yes; then
14437
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439
 
    # if the path contains ";" then we assume it to be the separator
14440
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14441
 
    # assumed that no part of a normal pathname contains ";" but that should
14442
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14443
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14444
 
  else
14445
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14446
 
  fi
14447
 
else
14448
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14449
 
fi
14450
 
need_lib_prefix=unknown
14451
 
hardcode_into_libs=no
14452
 
 
14453
 
# when you set need_version to no, make sure it does not cause -set_version
14454
 
# flags to be left without arguments
14455
 
need_version=unknown
14456
 
 
14457
 
case $host_os in
14458
 
aix3*)
14459
 
  version_type=linux
14460
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461
 
  shlibpath_var=LIBPATH
14462
 
 
14463
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14464
 
  soname_spec='${libname}${release}${shared_ext}$major'
14465
 
  ;;
14466
 
 
14467
 
aix4* | aix5*)
14468
 
  version_type=linux
14469
 
  need_lib_prefix=no
14470
 
  need_version=no
14471
 
  hardcode_into_libs=yes
14472
 
  if test "$host_cpu" = ia64; then
14473
 
    # AIX 5 supports IA64
14474
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475
 
    shlibpath_var=LD_LIBRARY_PATH
14476
 
  else
14477
 
    # With GCC up to 2.95.x, collect2 would create an import file
14478
 
    # for dependence libraries.  The import file would start with
14479
 
    # the line `#! .'.  This would cause the generated library to
14480
 
    # depend on `.', always an invalid library.  This was fixed in
14481
 
    # development snapshots of GCC prior to 3.0.
14482
 
    case $host_os in
14483
 
      aix4 | aix4.[01] | aix4.[01].*)
14484
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14485
 
           echo ' yes '
14486
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14487
 
        :
14488
 
      else
14489
 
        can_build_shared=no
14490
 
      fi
14491
 
      ;;
14492
 
    esac
14493
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494
 
    # soname into executable. Probably we can add versioning support to
14495
 
    # collect2, so additional links can be useful in future.
14496
 
    if test "$aix_use_runtimelinking" = yes; then
14497
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498
 
      # instead of lib<name>.a to let people know that these are not
14499
 
      # typical AIX shared libraries.
14500
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501
 
    else
14502
 
      # We preserve .a as extension for shared libraries through AIX4.2
14503
 
      # and later when we are not doing run time linking.
14504
 
      library_names_spec='${libname}${release}.a $libname.a'
14505
 
      soname_spec='${libname}${release}${shared_ext}$major'
14506
 
    fi
14507
 
    shlibpath_var=LIBPATH
14508
 
  fi
14509
 
  ;;
14510
 
 
14511
 
amigaos*)
14512
 
  library_names_spec='$libname.ixlibrary $libname.a'
14513
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
14515
 
  ;;
14516
 
 
14517
 
beos*)
14518
 
  library_names_spec='${libname}${shared_ext}'
14519
 
  dynamic_linker="$host_os ld.so"
14520
 
  shlibpath_var=LIBRARY_PATH
14521
 
  ;;
14522
 
 
14523
 
bsdi4*)
14524
 
  version_type=linux
14525
 
  need_version=no
14526
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527
 
  soname_spec='${libname}${release}${shared_ext}$major'
14528
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529
 
  shlibpath_var=LD_LIBRARY_PATH
14530
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14533
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534
 
  # libtool to hard-code these into programs
14535
 
  ;;
14536
 
 
14537
 
cygwin* | mingw* | pw32*)
14538
 
  version_type=windows
14539
 
  shrext=".dll"
14540
 
  need_version=no
14541
 
  need_lib_prefix=no
14542
 
 
14543
 
  case $GCC,$host_os in
14544
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14545
 
    library_names_spec='$libname.dll.a'
14546
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14547
 
    postinstall_cmds='base_file=`basename \${file}`~
14548
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549
 
      dldir=$destdir/`dirname \$dlpath`~
14550
 
      test -d \$dldir || mkdir -p \$dldir~
14551
 
      $install_prog $dir/$dlname \$dldir/$dlname'
14552
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553
 
      dlpath=$dir/\$dldll~
14554
 
       $rm \$dlpath'
14555
 
    shlibpath_overrides_runpath=yes
14556
 
 
14557
 
    case $host_os in
14558
 
    cygwin*)
14559
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14562
 
      ;;
14563
 
    mingw*)
14564
 
      # MinGW DLLs use traditional 'lib' prefix
14565
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568
 
        # It is most probably a Windows format PATH printed by
14569
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14570
 
        # path with ; separators, and with drive letters. We can handle the
14571
 
        # drive letters (cygwin fileutils understands them), so leave them,
14572
 
        # especially as we might pass files found there to a mingw objdump,
14573
 
        # which wouldn't understand a cygwinified path. Ahh.
14574
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14575
 
      else
14576
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14577
 
      fi
14578
 
      ;;
14579
 
    pw32*)
14580
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14581
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14582
 
      ;;
14583
 
    esac
14584
 
    ;;
14585
 
 
14586
 
  *)
14587
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14588
 
    ;;
14589
 
  esac
14590
 
  dynamic_linker='Win32 ld.exe'
14591
 
  # FIXME: first we should search . and the directory the executable is in
14592
 
  shlibpath_var=PATH
14593
 
  ;;
14594
 
 
14595
 
darwin* | rhapsody*)
14596
 
  dynamic_linker="$host_os dyld"
14597
 
  version_type=darwin
14598
 
  need_lib_prefix=no
14599
 
  need_version=no
14600
 
  # FIXME: Relying on posixy $() will cause problems for
14601
 
  #        cross-compilation, but unfortunately the echo tests do not
14602
 
  #        yet detect zsh echo's removal of \ escapes.
14603
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14604
 
  soname_spec='${libname}${release}${major}$shared_ext'
14605
 
  shlibpath_overrides_runpath=yes
14606
 
  shlibpath_var=DYLD_LIBRARY_PATH
14607
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14608
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14609
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14610
 
  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"`
14611
 
  fi
14612
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14613
 
  ;;
14614
 
 
14615
 
dgux*)
14616
 
  version_type=linux
14617
 
  need_lib_prefix=no
14618
 
  need_version=no
14619
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14620
 
  soname_spec='${libname}${release}${shared_ext}$major'
14621
 
  shlibpath_var=LD_LIBRARY_PATH
14622
 
  ;;
14623
 
 
14624
 
freebsd1*)
14625
 
  dynamic_linker=no
14626
 
  ;;
14627
 
 
14628
 
freebsd*)
14629
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14630
 
  version_type=freebsd-$objformat
14631
 
  case $version_type in
14632
 
    freebsd-elf*)
14633
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14634
 
      need_version=no
14635
 
      need_lib_prefix=no
14636
 
      ;;
14637
 
    freebsd-*)
14638
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14639
 
      need_version=yes
14640
 
      ;;
14641
 
  esac
14642
 
  shlibpath_var=LD_LIBRARY_PATH
14643
 
  case $host_os in
14644
 
  freebsd2*)
14645
 
    shlibpath_overrides_runpath=yes
14646
 
    ;;
14647
 
  freebsd3.01* | freebsdelf3.01*)
14648
 
    shlibpath_overrides_runpath=yes
14649
 
    hardcode_into_libs=yes
14650
 
    ;;
14651
 
  *) # from 3.2 on
14652
 
    shlibpath_overrides_runpath=no
14653
 
    hardcode_into_libs=yes
14654
 
    ;;
14655
 
  esac
14656
 
  ;;
14657
 
 
14658
 
gnu*)
14659
 
  version_type=linux
14660
 
  need_lib_prefix=no
14661
 
  need_version=no
14662
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663
 
  soname_spec='${libname}${release}${shared_ext}$major'
14664
 
  shlibpath_var=LD_LIBRARY_PATH
14665
 
  hardcode_into_libs=yes
14666
 
  ;;
14667
 
 
14668
 
hpux9* | hpux10* | hpux11*)
14669
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14670
 
  # link against other versions.
14671
 
  version_type=sunos
14672
 
  need_lib_prefix=no
14673
 
  need_version=no
14674
 
  case "$host_cpu" in
14675
 
  ia64*)
14676
 
    shrext='.so'
14677
 
    hardcode_into_libs=yes
14678
 
    dynamic_linker="$host_os dld.so"
14679
 
    shlibpath_var=LD_LIBRARY_PATH
14680
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682
 
    soname_spec='${libname}${release}${shared_ext}$major'
14683
 
    if test "X$HPUX_IA64_MODE" = X32; then
14684
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14685
 
    else
14686
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14687
 
    fi
14688
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14689
 
    ;;
14690
 
   hppa*64*)
14691
 
     shrext='.sl'
14692
 
     hardcode_into_libs=yes
14693
 
     dynamic_linker="$host_os dld.sl"
14694
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14695
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14696
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697
 
     soname_spec='${libname}${release}${shared_ext}$major'
14698
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14699
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700
 
     ;;
14701
 
   *)
14702
 
    shrext='.sl'
14703
 
    dynamic_linker="$host_os dld.sl"
14704
 
    shlibpath_var=SHLIB_PATH
14705
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14706
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707
 
    soname_spec='${libname}${release}${shared_ext}$major'
14708
 
    ;;
14709
 
  esac
14710
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14711
 
  postinstall_cmds='chmod 555 $lib'
14712
 
  ;;
14713
 
 
14714
 
irix5* | irix6* | nonstopux*)
14715
 
  case $host_os in
14716
 
    nonstopux*) version_type=nonstopux ;;
14717
 
    *)
14718
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14719
 
                version_type=linux
14720
 
        else
14721
 
                version_type=irix
14722
 
        fi ;;
14723
 
  esac
14724
 
  need_lib_prefix=no
14725
 
  need_version=no
14726
 
  soname_spec='${libname}${release}${shared_ext}$major'
14727
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14728
 
  case $host_os in
14729
 
  irix5* | nonstopux*)
14730
 
    libsuff= shlibsuff=
14731
 
    ;;
14732
 
  *)
14733
 
    case $LD in # libtool.m4 will add one of these switches to LD
14734
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14735
 
      libsuff= shlibsuff= libmagic=32-bit;;
14736
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14737
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14738
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14739
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14740
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14741
 
    esac
14742
 
    ;;
14743
 
  esac
14744
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14745
 
  shlibpath_overrides_runpath=no
14746
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14747
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14748
 
  hardcode_into_libs=yes
14749
 
  ;;
14750
 
 
14751
 
# No shared lib support for Linux oldld, aout, or coff.
14752
 
linux*oldld* | linux*aout* | linux*coff*)
14753
 
  dynamic_linker=no
14754
 
  ;;
14755
 
 
14756
 
# This must be Linux ELF.
14757
 
linux*)
14758
 
  version_type=linux
14759
 
  need_lib_prefix=no
14760
 
  need_version=no
14761
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762
 
  soname_spec='${libname}${release}${shared_ext}$major'
14763
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14764
 
  shlibpath_var=LD_LIBRARY_PATH
14765
 
  shlibpath_overrides_runpath=no
14766
 
  # This implies no fast_install, which is unacceptable.
14767
 
  # Some rework will be needed to allow for fast_install
14768
 
  # before this can be enabled.
14769
 
  hardcode_into_libs=yes
14770
 
 
14771
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14772
 
  # powerpc, because MkLinux only supported shared libraries with the
14773
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14774
 
  # most powerpc-linux boxes support dynamic linking these days and
14775
 
  # people can always --disable-shared, the test was removed, and we
14776
 
  # assume the GNU/Linux dynamic linker is in use.
14777
 
  dynamic_linker='GNU/Linux ld.so'
14778
 
 
14779
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
14780
 
  libsuff=
14781
 
  case "$host_cpu" in
14782
 
  x86_64*|s390x*|powerpc64*)
14783
 
    echo '#line 14783 "configure"' > conftest.$ac_ext
14784
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785
 
  (eval $ac_compile) 2>&5
14786
 
  ac_status=$?
14787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788
 
  (exit $ac_status); }; then
14789
 
      case `/usr/bin/file conftest.$ac_objext` in
14790
 
      *64-bit*)
14791
 
        libsuff=64
14792
 
        ;;
14793
 
      esac
14794
 
    fi
14795
 
    rm -rf conftest*
14796
 
    ;;
14797
 
  *)
14798
 
    ;;
14799
 
  esac
14800
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14801
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14802
 
  ;;
14803
 
 
14804
 
netbsd*)
14805
 
  version_type=sunos
14806
 
  need_lib_prefix=no
14807
 
  need_version=no
14808
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14809
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811
 
    dynamic_linker='NetBSD (a.out) ld.so'
14812
 
  else
14813
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14814
 
    soname_spec='${libname}${release}${shared_ext}$major'
14815
 
    dynamic_linker='NetBSD ld.elf_so'
14816
 
  fi
14817
 
  shlibpath_var=LD_LIBRARY_PATH
14818
 
  shlibpath_overrides_runpath=yes
14819
 
  hardcode_into_libs=yes
14820
 
  ;;
14821
 
 
14822
 
newsos6)
14823
 
  version_type=linux
14824
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825
 
  shlibpath_var=LD_LIBRARY_PATH
14826
 
  shlibpath_overrides_runpath=yes
14827
 
  ;;
14828
 
 
14829
 
nto-qnx)
14830
 
  version_type=linux
14831
 
  need_lib_prefix=no
14832
 
  need_version=no
14833
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834
 
  soname_spec='${libname}${release}${shared_ext}$major'
14835
 
  shlibpath_var=LD_LIBRARY_PATH
14836
 
  shlibpath_overrides_runpath=yes
14837
 
  ;;
14838
 
 
14839
 
openbsd*)
14840
 
  version_type=sunos
14841
 
  need_lib_prefix=no
14842
 
  need_version=no
14843
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14844
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14845
 
  shlibpath_var=LD_LIBRARY_PATH
14846
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14847
 
    case $host_os in
14848
 
      openbsd2.[89] | openbsd2.[89].*)
14849
 
        shlibpath_overrides_runpath=no
14850
 
        ;;
14851
 
      *)
14852
 
        shlibpath_overrides_runpath=yes
14853
 
        ;;
14854
 
      esac
14855
 
  else
14856
 
    shlibpath_overrides_runpath=yes
14857
 
  fi
14858
 
  ;;
14859
 
 
14860
 
os2*)
14861
 
  libname_spec='$name'
14862
 
  shrext=".dll"
14863
 
  need_lib_prefix=no
14864
 
  library_names_spec='$libname${shared_ext} $libname.a'
14865
 
  dynamic_linker='OS/2 ld.exe'
14866
 
  shlibpath_var=LIBPATH
14867
 
  ;;
14868
 
 
14869
 
osf3* | osf4* | osf5*)
14870
 
  version_type=osf
14871
 
  need_lib_prefix=no
14872
 
  need_version=no
14873
 
  soname_spec='${libname}${release}${shared_ext}$major'
14874
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875
 
  shlibpath_var=LD_LIBRARY_PATH
14876
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14877
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14878
 
  ;;
14879
 
 
14880
 
sco3.2v5*)
14881
 
  version_type=osf
14882
 
  soname_spec='${libname}${release}${shared_ext}$major'
14883
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884
 
  shlibpath_var=LD_LIBRARY_PATH
14885
 
  ;;
14886
 
 
14887
 
solaris*)
14888
 
  version_type=linux
14889
 
  need_lib_prefix=no
14890
 
  need_version=no
14891
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892
 
  soname_spec='${libname}${release}${shared_ext}$major'
14893
 
  shlibpath_var=LD_LIBRARY_PATH
14894
 
  shlibpath_overrides_runpath=yes
14895
 
  hardcode_into_libs=yes
14896
 
  # ldd complains unless libraries are executable
14897
 
  postinstall_cmds='chmod +x $lib'
14898
 
  ;;
14899
 
 
14900
 
sunos4*)
14901
 
  version_type=sunos
14902
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14904
 
  shlibpath_var=LD_LIBRARY_PATH
14905
 
  shlibpath_overrides_runpath=yes
14906
 
  if test "$with_gnu_ld" = yes; then
14907
 
    need_lib_prefix=no
14908
 
  fi
14909
 
  need_version=yes
14910
 
  ;;
14911
 
 
14912
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14913
 
  version_type=linux
14914
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915
 
  soname_spec='${libname}${release}${shared_ext}$major'
14916
 
  shlibpath_var=LD_LIBRARY_PATH
14917
 
  case $host_vendor in
14918
 
    sni)
14919
 
      shlibpath_overrides_runpath=no
14920
 
      need_lib_prefix=no
14921
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14922
 
      runpath_var=LD_RUN_PATH
14923
 
      ;;
14924
 
    siemens)
14925
 
      need_lib_prefix=no
14926
 
      ;;
14927
 
    motorola)
14928
 
      need_lib_prefix=no
14929
 
      need_version=no
14930
 
      shlibpath_overrides_runpath=no
14931
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14932
 
      ;;
14933
 
  esac
14934
 
  ;;
14935
 
 
14936
 
sysv4*MP*)
14937
 
  if test -d /usr/nec ;then
14938
 
    version_type=linux
14939
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14940
 
    soname_spec='$libname${shared_ext}.$major'
14941
 
    shlibpath_var=LD_LIBRARY_PATH
14942
 
  fi
14943
 
  ;;
14944
 
 
14945
 
uts4*)
14946
 
  version_type=linux
14947
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948
 
  soname_spec='${libname}${release}${shared_ext}$major'
14949
 
  shlibpath_var=LD_LIBRARY_PATH
14950
 
  ;;
14951
 
 
14952
 
*)
14953
 
  dynamic_linker=no
14954
 
  ;;
14955
 
esac
14956
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14957
 
echo "${ECHO_T}$dynamic_linker" >&6
14958
 
test "$dynamic_linker" = no && can_build_shared=no
14959
 
 
14960
15129
 
14961
15130
# The else clause should only fire when bootstrapping the
14962
15131
# libtool distribution, otherwise you forgot to ship ltmain.sh
14971
15140
  # Now quote all the things that may contain metacharacters while being
14972
15141
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14973
15142
  # variables and quote the copies for generation of the libtool script.
14974
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
15143
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15144
    SED SHELL STRIP \
14975
15145
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14976
15146
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14977
15147
    deplibs_check_method reload_flag reload_cmds need_locks \
15071
15241
# The host system.
15072
15242
host_alias=$host_alias
15073
15243
host=$host
 
15244
host_os=$host_os
 
15245
 
 
15246
# The build system.
 
15247
build_alias=$build_alias
 
15248
build=$build
 
15249
build_os=$build_os
15074
15250
 
15075
15251
# An echo program that does not interpret backslashes.
15076
15252
echo=$lt_echo
15082
15258
# A C compiler.
15083
15259
LTCC=$lt_LTCC
15084
15260
 
 
15261
# LTCC compiler flags.
 
15262
LTCFLAGS=$lt_LTCFLAGS
 
15263
 
15085
15264
# A language-specific compiler.
15086
15265
CC=$lt_compiler_F77
15087
15266
 
15088
15267
# Is the compiler the GNU C compiler?
15089
15268
with_gcc=$GCC_F77
15090
15269
 
 
15270
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
15271
gcc_ver=\`gcc -dumpversion\`
 
15272
 
15091
15273
# An ERE matcher.
15092
15274
EGREP=$lt_EGREP
15093
15275
 
15101
15283
NM=$lt_NM
15102
15284
 
15103
15285
# A symbol stripping program
15104
 
STRIP=$STRIP
 
15286
STRIP=$lt_STRIP
15105
15287
 
15106
15288
# Used to examine libraries when file_magic_cmd begins "file"
15107
15289
MAGIC_CMD=$MAGIC_CMD
15132
15314
libext="$libext"
15133
15315
 
15134
15316
# Shared library suffix (normally ".so").
15135
 
shrext='$shrext'
 
15317
shrext_cmds='$shrext_cmds'
15136
15318
 
15137
15319
# Executable file suffix (normally "").
15138
15320
exeext="$exeext"
15147
15329
# Does compiler simultaneously support -c and -o options?
15148
15330
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15149
15331
 
15150
 
# Must we lock files when doing compilation ?
 
15332
# Must we lock files when doing compilation?
15151
15333
need_locks=$lt_need_locks
15152
15334
 
15153
15335
# Do we need the lib prefix for modules?
15221
15403
 
15222
15404
# Dependencies to place before the objects being linked to create a
15223
15405
# shared library.
15224
 
predep_objects=$lt_predep_objects_F77
 
15406
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15225
15407
 
15226
15408
# Dependencies to place after the objects being linked to create a
15227
15409
# shared library.
15228
 
postdep_objects=$lt_postdep_objects_F77
 
15410
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15229
15411
 
15230
15412
# Dependencies to place before the objects being linked to create a
15231
15413
# shared library.
15237
15419
 
15238
15420
# The library search path used internally by the compiler when linking
15239
15421
# a shared library.
15240
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15422
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15241
15423
 
15242
15424
# Method to check whether dependent libraries are shared objects.
15243
15425
deplibs_check_method=$lt_deplibs_check_method
15317
15499
link_all_deplibs=$link_all_deplibs_F77
15318
15500
 
15319
15501
# Compile-time system search path for libraries
15320
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15502
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15321
15503
 
15322
15504
# Run-time system search path for libraries
15323
15505
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15349
15531
  # If there is no Makefile yet, we rely on a make rule to execute
15350
15532
  # `config.status --recheck' to rerun these tests and create the
15351
15533
  # libtool script then.
15352
 
  test -f Makefile && make "$ltmain"
 
15534
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15535
  if test -f "$ltmain_in"; then
 
15536
    test -f Makefile && make "$ltmain"
 
15537
  fi
15353
15538
fi
15354
15539
 
15355
15540
 
15382
15567
lt_simple_compile_test_code="class foo {}\n"
15383
15568
 
15384
15569
# Code to be used in simple link tests
15385
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15570
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15386
15571
 
15387
15572
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15388
15573
 
15389
15574
# If no C compiler was specified, use CC.
15390
15575
LTCC=${LTCC-"$CC"}
15391
15576
 
 
15577
# If no C compiler flags were specified, use CFLAGS.
 
15578
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15579
 
15392
15580
# Allow CC to be a program name with arguments.
15393
15581
compiler=$CC
15394
15582
 
15395
15583
 
 
15584
# save warnings/boilerplate of simple test code
 
15585
ac_outfile=conftest.$ac_objext
 
15586
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15587
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15588
_lt_compiler_boilerplate=`cat conftest.err`
 
15589
$rm conftest*
 
15590
 
 
15591
ac_outfile=conftest.$ac_objext
 
15592
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15593
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15594
_lt_linker_boilerplate=`cat conftest.err`
 
15595
$rm conftest*
 
15596
 
 
15597
 
15396
15598
# Allow CC to be a program name with arguments.
15397
15599
lt_save_CC="$CC"
15398
15600
CC=${GCJ-"gcj"}
15399
15601
compiler=$CC
15400
15602
compiler_GCJ=$CC
 
15603
for cc_temp in $compiler""; do
 
15604
  case $cc_temp in
 
15605
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15606
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15607
    \-*) ;;
 
15608
    *) break;;
 
15609
  esac
 
15610
done
 
15611
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15612
 
15401
15613
 
15402
15614
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15403
15615
archive_cmds_need_lc_GCJ=no
15404
15616
 
 
15617
old_archive_cmds_GCJ=$old_archive_cmds
 
15618
 
15405
15619
 
15406
15620
lt_prog_compiler_no_builtin_flag_GCJ=
15407
15621
 
15408
15622
if test "$GCC" = yes; then
15409
15623
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15410
15624
 
15411
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15625
 
 
15626
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15412
15627
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15413
15628
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15414
15629
  echo $ECHO_N "(cached) $ECHO_C" >&6
15423
15638
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15424
15639
   # The option is referenced via a variable to avoid confusing sed.
15425
15640
   lt_compile=`echo "$ac_compile" | $SED \
15426
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15641
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15427
15642
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15428
15643
   -e 's:$: $lt_compiler_flag:'`
15429
 
   (eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
 
15644
   (eval echo "\"\$as_me:15644: $lt_compile\"" >&5)
15430
15645
   (eval "$lt_compile" 2>conftest.err)
15431
15646
   ac_status=$?
15432
15647
   cat conftest.err >&5
15433
 
   echo "$as_me:15433: \$? = $ac_status" >&5
 
15648
   echo "$as_me:15648: \$? = $ac_status" >&5
15434
15649
   if (exit $ac_status) && test -s "$ac_outfile"; then
15435
15650
     # The compiler can only warn and ignore the option if not recognized
15436
 
     # So say no if there are warnings
15437
 
     if test ! -s conftest.err; then
 
15651
     # So say no if there are warnings other than the usual output.
 
15652
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15653
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15654
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15438
15655
       lt_cv_prog_compiler_rtti_exceptions=yes
15439
15656
     fi
15440
15657
   fi
15495
15712
      lt_prog_compiler_pic_GCJ='-fno-common'
15496
15713
      ;;
15497
15714
 
 
15715
    interix3*)
 
15716
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15717
      # Instead, we relocate shared libraries at runtime.
 
15718
      ;;
 
15719
 
15498
15720
    msdosdjgpp*)
15499
15721
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15500
15722
      # on systems that don't support them.
15511
15733
    hpux*)
15512
15734
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513
15735
      # not for PA HP-UX.
15514
 
      case "$host_cpu" in
 
15736
      case $host_cpu in
15515
15737
      hppa*64*|ia64*)
15516
15738
        # +Z the default
15517
15739
        ;;
15537
15759
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15538
15760
      fi
15539
15761
      ;;
 
15762
      darwin*)
 
15763
        # PIC is the default on this platform
 
15764
        # Common symbols not allowed in MH_DYLIB files
 
15765
       case $cc_basename in
 
15766
         xlc*)
 
15767
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15768
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15769
         ;;
 
15770
       esac
 
15771
       ;;
15540
15772
 
15541
15773
    mingw* | pw32* | os2*)
15542
15774
      # This hack is so that the source file can tell whether it is being
15548
15780
      lt_prog_compiler_wl_GCJ='-Wl,'
15549
15781
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15550
15782
      # not for PA HP-UX.
15551
 
      case "$host_cpu" in
 
15783
      case $host_cpu in
15552
15784
      hppa*64*|ia64*)
15553
15785
        # +Z the default
15554
15786
        ;;
15572
15804
      ;;
15573
15805
 
15574
15806
    linux*)
15575
 
      case $CC in
15576
 
      icc|ecc)
 
15807
      case $cc_basename in
 
15808
      icc* | ecc*)
15577
15809
        lt_prog_compiler_wl_GCJ='-Wl,'
15578
15810
        lt_prog_compiler_pic_GCJ='-KPIC'
15579
15811
        lt_prog_compiler_static_GCJ='-static'
15580
15812
        ;;
15581
 
      ccc)
 
15813
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15814
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15815
        # which looks to be a dead project)
 
15816
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15817
        lt_prog_compiler_pic_GCJ='-fpic'
 
15818
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15819
        ;;
 
15820
      ccc*)
15582
15821
        lt_prog_compiler_wl_GCJ='-Wl,'
15583
15822
        # All Alpha code is PIC.
15584
15823
        lt_prog_compiler_static_GCJ='-non_shared'
15592
15831
      lt_prog_compiler_static_GCJ='-non_shared'
15593
15832
      ;;
15594
15833
 
15595
 
    sco3.2v5*)
15596
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15597
 
      lt_prog_compiler_static_GCJ='-dn'
15598
 
      ;;
15599
 
 
15600
15834
    solaris*)
15601
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15602
15835
      lt_prog_compiler_pic_GCJ='-KPIC'
15603
15836
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15837
      case $cc_basename in
 
15838
      f77* | f90* | f95*)
 
15839
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15840
      *)
 
15841
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15842
      esac
15604
15843
      ;;
15605
15844
 
15606
15845
    sunos4*)
15609
15848
      lt_prog_compiler_static_GCJ='-Bstatic'
15610
15849
      ;;
15611
15850
 
15612
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15851
    sysv4 | sysv4.2uw2* | sysv4.3*)
15613
15852
      lt_prog_compiler_wl_GCJ='-Wl,'
15614
15853
      lt_prog_compiler_pic_GCJ='-KPIC'
15615
15854
      lt_prog_compiler_static_GCJ='-Bstatic'
15622
15861
      fi
15623
15862
      ;;
15624
15863
 
 
15864
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15865
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15866
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15867
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15868
      ;;
 
15869
 
 
15870
    unicos*)
 
15871
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15872
      lt_prog_compiler_can_build_shared_GCJ=no
 
15873
      ;;
 
15874
 
15625
15875
    uts4*)
15626
15876
      lt_prog_compiler_pic_GCJ='-pic'
15627
15877
      lt_prog_compiler_static_GCJ='-Bstatic'
15640
15890
# Check to make sure the PIC flag actually works.
15641
15891
#
15642
15892
if test -n "$lt_prog_compiler_pic_GCJ"; then
15643
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15893
 
 
15894
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15644
15895
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15645
15896
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15646
15897
  echo $ECHO_N "(cached) $ECHO_C" >&6
15655
15906
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15656
15907
   # The option is referenced via a variable to avoid confusing sed.
15657
15908
   lt_compile=`echo "$ac_compile" | $SED \
15658
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15909
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15659
15910
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15660
15911
   -e 's:$: $lt_compiler_flag:'`
15661
 
   (eval echo "\"\$as_me:15661: $lt_compile\"" >&5)
 
15912
   (eval echo "\"\$as_me:15912: $lt_compile\"" >&5)
15662
15913
   (eval "$lt_compile" 2>conftest.err)
15663
15914
   ac_status=$?
15664
15915
   cat conftest.err >&5
15665
 
   echo "$as_me:15665: \$? = $ac_status" >&5
 
15916
   echo "$as_me:15916: \$? = $ac_status" >&5
15666
15917
   if (exit $ac_status) && test -s "$ac_outfile"; then
15667
15918
     # The compiler can only warn and ignore the option if not recognized
15668
 
     # So say no if there are warnings
15669
 
     if test ! -s conftest.err; then
 
15919
     # So say no if there are warnings other than the usual output.
 
15920
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15921
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15922
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15670
15923
       lt_prog_compiler_pic_works_GCJ=yes
15671
15924
     fi
15672
15925
   fi
15687
15940
fi
15688
15941
 
15689
15942
fi
15690
 
case "$host_os" in
 
15943
case $host_os in
15691
15944
  # For platforms which do not support PIC, -DPIC is meaningless:
15692
15945
  *djgpp*)
15693
15946
    lt_prog_compiler_pic_GCJ=
15697
15950
    ;;
15698
15951
esac
15699
15952
 
 
15953
#
 
15954
# Check to make sure the static flag actually works.
 
15955
#
 
15956
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15957
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15958
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15959
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15961
else
 
15962
  lt_prog_compiler_static_works_GCJ=no
 
15963
   save_LDFLAGS="$LDFLAGS"
 
15964
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15965
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15966
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15967
     # The linker can only warn and ignore the option if not recognized
 
15968
     # So say no if there are warnings
 
15969
     if test -s conftest.err; then
 
15970
       # Append any errors to the config.log.
 
15971
       cat conftest.err 1>&5
 
15972
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15973
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15974
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15975
         lt_prog_compiler_static_works_GCJ=yes
 
15976
       fi
 
15977
     else
 
15978
       lt_prog_compiler_static_works_GCJ=yes
 
15979
     fi
 
15980
   fi
 
15981
   $rm conftest*
 
15982
   LDFLAGS="$save_LDFLAGS"
 
15983
 
 
15984
fi
 
15985
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15986
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15987
 
 
15988
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15989
    :
 
15990
else
 
15991
    lt_prog_compiler_static_GCJ=
 
15992
fi
 
15993
 
 
15994
 
15700
15995
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15701
15996
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15702
15997
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15709
16004
   mkdir out
15710
16005
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15711
16006
 
15712
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15713
 
   # that will create temporary files in the current directory regardless of
15714
 
   # the output directory.  Thus, making CWD read-only will cause this test
15715
 
   # to fail, enabling locking or at least warning the user not to do parallel
15716
 
   # builds.
15717
 
   chmod -w .
15718
 
 
15719
16007
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15720
16008
   # Insert the option either (1) after the last *FLAGS variable, or
15721
16009
   # (2) before a word containing "conftest.", or (3) at the end.
15722
16010
   # Note that $ac_compile itself does not contain backslashes and begins
15723
16011
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15724
16012
   lt_compile=`echo "$ac_compile" | $SED \
15725
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15726
16014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15727
16015
   -e 's:$: $lt_compiler_flag:'`
15728
 
   (eval echo "\"\$as_me:15728: $lt_compile\"" >&5)
 
16016
   (eval echo "\"\$as_me:16016: $lt_compile\"" >&5)
15729
16017
   (eval "$lt_compile" 2>out/conftest.err)
15730
16018
   ac_status=$?
15731
16019
   cat out/conftest.err >&5
15732
 
   echo "$as_me:15732: \$? = $ac_status" >&5
 
16020
   echo "$as_me:16020: \$? = $ac_status" >&5
15733
16021
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15734
16022
   then
15735
16023
     # The compiler can only warn and ignore the option if not recognized
15736
16024
     # So say no if there are warnings
15737
 
     if test ! -s out/conftest.err; then
 
16025
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16026
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16027
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15738
16028
       lt_cv_prog_compiler_c_o_GCJ=yes
15739
16029
     fi
15740
16030
   fi
15741
 
   chmod u+w .
15742
 
   $rm conftest* out/*
15743
 
   rmdir out
 
16031
   chmod u+w . 2>&5
 
16032
   $rm conftest*
 
16033
   # SGI C++ compiler will create directory out/ii_files/ for
 
16034
   # template instantiation
 
16035
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16036
   $rm out/* && rmdir out
15744
16037
   cd ..
15745
16038
   rmdir conftest
15746
16039
   $rm conftest*
15811
16104
  # rely on this symbol name, it's probably fine to never include it in
15812
16105
  # preloaded symbol tables.
15813
16106
  extract_expsyms_cmds=
 
16107
  # Just being paranoid about ensuring that cc_basename is set.
 
16108
  for cc_temp in $compiler""; do
 
16109
  case $cc_temp in
 
16110
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16111
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16112
    \-*) ;;
 
16113
    *) break;;
 
16114
  esac
 
16115
done
 
16116
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15814
16117
 
15815
16118
  case $host_os in
15816
16119
  cygwin* | mingw* | pw32*)
15821
16124
      with_gnu_ld=no
15822
16125
    fi
15823
16126
    ;;
 
16127
  interix*)
 
16128
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16129
    with_gnu_ld=yes
 
16130
    ;;
15824
16131
  openbsd*)
15825
16132
    with_gnu_ld=no
15826
16133
    ;;
15831
16138
    # If archive_cmds runs LD, not CC, wlarc should be empty
15832
16139
    wlarc='${wl}'
15833
16140
 
 
16141
    # Set some defaults for GNU ld with shared library support. These
 
16142
    # are reset later if shared libraries are not supported. Putting them
 
16143
    # here allows them to be overridden if necessary.
 
16144
    runpath_var=LD_RUN_PATH
 
16145
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16146
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16147
    # ancient GNU ld didn't support --whole-archive et. al.
 
16148
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16149
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16150
      else
 
16151
        whole_archive_flag_spec_GCJ=
 
16152
    fi
 
16153
    supports_anon_versioning=no
 
16154
    case `$LD -v 2>/dev/null` in
 
16155
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16156
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16157
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16158
      *\ 2.11.*) ;; # other 2.11 versions
 
16159
      *) supports_anon_versioning=yes ;;
 
16160
    esac
 
16161
 
15834
16162
    # See if GNU ld supports shared libraries.
15835
16163
    case $host_os in
15836
16164
    aix3* | aix4* | aix5*)
15881
16209
      allow_undefined_flag_GCJ=unsupported
15882
16210
      always_export_symbols_GCJ=no
15883
16211
      enable_shared_with_static_runtimes_GCJ=yes
15884
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16212
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15885
16213
 
15886
16214
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15887
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16215
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15888
16216
        # If the export-symbols file already is a .def file (1st line
15889
16217
        # is EXPORTS), use it as is; otherwise, prepend...
15890
16218
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15893
16221
          echo EXPORTS > $output_objdir/$soname.def;
15894
16222
          cat $export_symbols >> $output_objdir/$soname.def;
15895
16223
        fi~
15896
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15897
 
      else
15898
 
        ld_shlibs=no
 
16224
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16225
      else
 
16226
        ld_shlibs_GCJ=no
 
16227
      fi
 
16228
      ;;
 
16229
 
 
16230
    interix3*)
 
16231
      hardcode_direct_GCJ=no
 
16232
      hardcode_shlibpath_var_GCJ=no
 
16233
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16234
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16235
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16236
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16237
      # default) and relocated if they conflict, which is a slow very memory
 
16238
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16239
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16240
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16241
      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'
 
16242
      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'
 
16243
      ;;
 
16244
 
 
16245
    linux*)
 
16246
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16247
        tmp_addflag=
 
16248
        case $cc_basename,$host_cpu in
 
16249
        pgcc*)                          # Portland Group C compiler
 
16250
          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'
 
16251
          tmp_addflag=' $pic_flag'
 
16252
          ;;
 
16253
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16254
          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'
 
16255
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16256
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16257
          tmp_addflag=' -i_dynamic' ;;
 
16258
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16259
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16260
        ifc* | ifort*)                  # Intel Fortran compiler
 
16261
          tmp_addflag=' -nofor_main' ;;
 
16262
        esac
 
16263
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16264
 
 
16265
        if test $supports_anon_versioning = yes; then
 
16266
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16267
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16268
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16269
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16270
        fi
 
16271
      else
 
16272
        ld_shlibs_GCJ=no
15899
16273
      fi
15900
16274
      ;;
15901
16275
 
15909
16283
      fi
15910
16284
      ;;
15911
16285
 
15912
 
    solaris* | sysv5*)
 
16286
    solaris*)
15913
16287
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15914
16288
        ld_shlibs_GCJ=no
15915
16289
        cat <<EOF 1>&2
15930
16304
      fi
15931
16305
      ;;
15932
16306
 
 
16307
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16308
      case `$LD -v 2>&1` in
 
16309
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16310
        ld_shlibs_GCJ=no
 
16311
        cat <<_LT_EOF 1>&2
 
16312
 
 
16313
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16314
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16315
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16316
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16317
*** your PATH or compiler configuration so that the native linker is
 
16318
*** used, and then restart.
 
16319
 
 
16320
_LT_EOF
 
16321
        ;;
 
16322
        *)
 
16323
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16324
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16325
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16326
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16327
          else
 
16328
            ld_shlibs_GCJ=no
 
16329
          fi
 
16330
        ;;
 
16331
      esac
 
16332
      ;;
 
16333
 
15933
16334
    sunos4*)
15934
16335
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15935
16336
      wlarc=
15937
16338
      hardcode_shlibpath_var_GCJ=no
15938
16339
      ;;
15939
16340
 
15940
 
  linux*)
15941
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15942
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943
 
        archive_cmds_GCJ="$tmp_archive_cmds"
15944
 
      supports_anon_versioning=no
15945
 
      case `$LD -v 2>/dev/null` in
15946
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15947
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15948
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15949
 
        *\ 2.11.*) ;; # other 2.11 versions
15950
 
        *) supports_anon_versioning=yes ;;
15951
 
      esac
15952
 
      if test $supports_anon_versioning = yes; then
15953
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15954
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15955
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15956
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15957
 
      else
15958
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15959
 
      fi
15960
 
    else
15961
 
      ld_shlibs_GCJ=no
15962
 
    fi
15963
 
    ;;
15964
 
 
15965
16341
    *)
15966
16342
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967
16343
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15972
16348
      ;;
15973
16349
    esac
15974
16350
 
15975
 
    if test "$ld_shlibs_GCJ" = yes; then
15976
 
      runpath_var=LD_RUN_PATH
15977
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15978
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15979
 
      # ancient GNU ld didn't support --whole-archive et. al.
15980
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15981
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15982
 
      else
15983
 
        whole_archive_flag_spec_GCJ=
15984
 
      fi
 
16351
    if test "$ld_shlibs_GCJ" = no; then
 
16352
      runpath_var=
 
16353
      hardcode_libdir_flag_spec_GCJ=
 
16354
      export_dynamic_flag_spec_GCJ=
 
16355
      whole_archive_flag_spec_GCJ=
15985
16356
    fi
15986
16357
  else
15987
16358
    # PORTME fill in a description of your system's linker (not GNU ld)
15993
16364
      # Note: this linker hardcodes the directories in LIBPATH if there
15994
16365
      # are no directories specified by -L.
15995
16366
      hardcode_minus_L_GCJ=yes
15996
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16367
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15997
16368
        # Neither direct hardcoding nor static linking is supported with a
15998
16369
        # broken collect2.
15999
16370
        hardcode_direct_GCJ=unsupported
16027
16398
            break
16028
16399
          fi
16029
16400
          done
 
16401
          ;;
16030
16402
        esac
16031
16403
 
16032
16404
        exp_sym_flag='-bexport'
16045
16417
      link_all_deplibs_GCJ=yes
16046
16418
 
16047
16419
      if test "$GCC" = yes; then
16048
 
        case $host_os in aix4.012|aix4.012.*)
 
16420
        case $host_os in aix4.[012]|aix4.[012].*)
16049
16421
        # We only want to do this on AIX 4.2 and lower, the check
16050
16422
        # below for broken collect2 doesn't work under 4.3+
16051
16423
          collect2name=`${CC} -print-prog-name=collect2`
16064
16436
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16065
16437
          hardcode_libdir_separator_GCJ=
16066
16438
          fi
 
16439
          ;;
16067
16440
        esac
16068
16441
        shared_flag='-shared'
 
16442
        if test "$aix_use_runtimelinking" = yes; then
 
16443
          shared_flag="$shared_flag "'${wl}-G'
 
16444
        fi
16069
16445
      else
16070
16446
        # not using gcc
16071
16447
        if test "$host_cpu" = ia64; then
16073
16449
        # chokes on -Wl,-G. The following line is correct:
16074
16450
          shared_flag='-G'
16075
16451
        else
16076
 
        if test "$aix_use_runtimelinking" = yes; then
 
16452
          if test "$aix_use_runtimelinking" = yes; then
16077
16453
            shared_flag='${wl}-G'
16078
16454
          else
16079
16455
            shared_flag='${wl}-bM:SRE'
16080
 
        fi
 
16456
          fi
16081
16457
        fi
16082
16458
      fi
16083
16459
 
16142
16518
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16143
16519
 
16144
16520
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16145
 
        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"
 
16521
        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"
16146
16522
       else
16147
16523
        if test "$host_cpu" = ia64; then
16148
16524
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16149
16525
          allow_undefined_flag_GCJ="-z nodefs"
16150
 
          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"
 
16526
          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"
16151
16527
        else
16152
16528
         # Determine the default libpath from the value encoded in an empty executable.
16153
16529
         cat >conftest.$ac_ext <<_ACEOF
16207
16583
          # -berok will link without error, but may produce a broken library.
16208
16584
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16209
16585
          allow_undefined_flag_GCJ=' ${wl}-berok'
16210
 
          # -bexpall does not export symbols beginning with underscore (_)
16211
 
          always_export_symbols_GCJ=yes
16212
16586
          # Exported symbols can be pulled into shared objects from archives
16213
 
          whole_archive_flag_spec_GCJ=' '
 
16587
          whole_archive_flag_spec_GCJ='$convenience'
16214
16588
          archive_cmds_need_lc_GCJ=yes
16215
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16216
 
          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'
 
16589
          # This is similar to how AIX traditionally builds its shared libraries.
 
16590
          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'
16217
16591
        fi
16218
16592
      fi
16219
16593
      ;;
16226
16600
      ld_shlibs_GCJ=no
16227
16601
      ;;
16228
16602
 
16229
 
    bsdi4*)
 
16603
    bsdi[45]*)
16230
16604
      export_dynamic_flag_spec_GCJ=-rdynamic
16231
16605
      ;;
16232
16606
 
16240
16614
      # Tell ltmain to make .lib files, not .a files.
16241
16615
      libext=lib
16242
16616
      # Tell ltmain to make .dll files, not .so files.
16243
 
      shrext=".dll"
 
16617
      shrext_cmds=".dll"
16244
16618
      # FIXME: Setting linknames here is a bad hack.
16245
16619
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16246
16620
      # The linker will automatically build a .lib file if we build a DLL.
16247
16621
      old_archive_From_new_cmds_GCJ='true'
16248
16622
      # FIXME: Should let the user specify the lib program.
16249
16623
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16250
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16624
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16251
16625
      enable_shared_with_static_runtimes_GCJ=yes
16252
16626
      ;;
16253
16627
 
16254
16628
    darwin* | rhapsody*)
16255
 
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
16629
      case $host_os in
 
16630
        rhapsody* | darwin1.[012])
 
16631
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16632
         ;;
 
16633
       *) # Darwin 1.3 on
 
16634
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16635
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16636
         else
 
16637
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16638
             10.[012])
 
16639
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16640
               ;;
 
16641
             10.*)
 
16642
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16643
               ;;
 
16644
           esac
 
16645
         fi
 
16646
         ;;
 
16647
      esac
16256
16648
      archive_cmds_need_lc_GCJ=no
16257
 
      case "$host_os" in
16258
 
      rhapsody* | darwin1.[012])
16259
 
        allow_undefined_flag_GCJ='-undefined suppress'
16260
 
        ;;
16261
 
      *) # Darwin 1.3 on
16262
 
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16263
 
        ;;
16264
 
      esac
16265
 
      # FIXME: Relying on posixy $() will cause problems for
16266
 
      #        cross-compilation, but unfortunately the echo tests do not
16267
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16268
 
      #        `"' quotes if we put them in here... so don't!
16269
 
        lt_int_apple_cc_single_mod=no
16270
 
        output_verbose_link_cmd='echo'
16271
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16272
 
          lt_int_apple_cc_single_mod=yes
16273
 
        fi
16274
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16275
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16276
 
        else
16277
 
        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'
16278
 
      fi
16279
 
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16280
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16281
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16282
 
          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}'
16283
 
        else
16284
 
          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}'
16285
 
        fi
16286
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16287
16649
      hardcode_direct_GCJ=no
16288
16650
      hardcode_automatic_GCJ=yes
16289
16651
      hardcode_shlibpath_var_GCJ=unsupported
16290
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16652
      whole_archive_flag_spec_GCJ=''
16291
16653
      link_all_deplibs_GCJ=yes
 
16654
    if test "$GCC" = yes ; then
 
16655
        output_verbose_link_cmd='echo'
 
16656
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16657
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16658
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16659
      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}'
 
16660
      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}'
 
16661
    else
 
16662
      case $cc_basename in
 
16663
        xlc*)
 
16664
         output_verbose_link_cmd='echo'
 
16665
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16666
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16667
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16668
         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}'
 
16669
          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}'
 
16670
          ;;
 
16671
       *)
 
16672
         ld_shlibs_GCJ=no
 
16673
          ;;
 
16674
      esac
16292
16675
    fi
16293
16676
      ;;
16294
16677
 
16322
16705
      ;;
16323
16706
 
16324
16707
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16325
 
    freebsd*)
 
16708
    freebsd* | kfreebsd*-gnu | dragonfly*)
16326
16709
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16327
16710
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16328
16711
      hardcode_direct_GCJ=yes
16345
16728
      export_dynamic_flag_spec_GCJ='${wl}-E'
16346
16729
      ;;
16347
16730
 
16348
 
    hpux10* | hpux11*)
16349
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16350
 
        case "$host_cpu" in
16351
 
        hppa*64*|ia64*)
 
16731
    hpux10*)
 
16732
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16733
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16734
      else
 
16735
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16736
      fi
 
16737
      if test "$with_gnu_ld" = no; then
 
16738
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16739
        hardcode_libdir_separator_GCJ=:
 
16740
 
 
16741
        hardcode_direct_GCJ=yes
 
16742
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16743
 
 
16744
        # hardcode_minus_L: Not really in the search PATH,
 
16745
        # but as the default location of the library.
 
16746
        hardcode_minus_L_GCJ=yes
 
16747
      fi
 
16748
      ;;
 
16749
 
 
16750
    hpux11*)
 
16751
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16752
        case $host_cpu in
 
16753
        hppa*64*)
16352
16754
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16353
16755
          ;;
 
16756
        ia64*)
 
16757
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16758
          ;;
16354
16759
        *)
16355
16760
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16356
16761
          ;;
16357
16762
        esac
16358
16763
      else
16359
 
        case "$host_cpu" in
16360
 
        hppa*64*|ia64*)
16361
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16764
        case $host_cpu in
 
16765
        hppa*64*)
 
16766
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16767
          ;;
 
16768
        ia64*)
 
16769
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16362
16770
          ;;
16363
16771
        *)
16364
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16772
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16365
16773
          ;;
16366
16774
        esac
16367
16775
      fi
16368
16776
      if test "$with_gnu_ld" = no; then
16369
 
        case "$host_cpu" in
16370
 
        hppa*64*)
16371
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16777
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16778
        hardcode_libdir_separator_GCJ=:
 
16779
 
 
16780
        case $host_cpu in
 
16781
        hppa*64*|ia64*)
16372
16782
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16373
 
          hardcode_libdir_separator_GCJ=:
16374
 
          hardcode_direct_GCJ=no
16375
 
          hardcode_shlibpath_var_GCJ=no
16376
 
          ;;
16377
 
        ia64*)
16378
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16379
 
          hardcode_direct_GCJ=no
16380
 
          hardcode_shlibpath_var_GCJ=no
16381
 
 
16382
 
          # hardcode_minus_L: Not really in the search PATH,
16383
 
          # but as the default location of the library.
16384
 
          hardcode_minus_L_GCJ=yes
 
16783
          hardcode_direct_GCJ=no
 
16784
          hardcode_shlibpath_var_GCJ=no
16385
16785
          ;;
16386
16786
        *)
16387
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16388
 
          hardcode_libdir_separator_GCJ=:
16389
16787
          hardcode_direct_GCJ=yes
16390
16788
          export_dynamic_flag_spec_GCJ='${wl}-E'
16391
16789
 
16433
16831
      hardcode_shlibpath_var_GCJ=no
16434
16832
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435
16833
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16834
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16436
16835
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16437
16836
        export_dynamic_flag_spec_GCJ='${wl}-E'
16438
16837
      else
16478
16877
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16479
16878
        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'
16480
16879
        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~
16481
 
        $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'
 
16880
        $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'
16482
16881
 
16483
16882
        # Both c and cxx compiler support -rpath directly
16484
16883
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16486
16885
      hardcode_libdir_separator_GCJ=:
16487
16886
      ;;
16488
16887
 
16489
 
    sco3.2v5*)
16490
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491
 
      hardcode_shlibpath_var_GCJ=no
16492
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16493
 
      runpath_var=LD_RUN_PATH
16494
 
      hardcode_runpath_var=yes
16495
 
      ;;
16496
 
 
16497
16888
    solaris*)
16498
16889
      no_undefined_flag_GCJ=' -z text'
16499
16890
      if test "$GCC" = yes; then
 
16891
        wlarc='${wl}'
16500
16892
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16501
16893
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16502
16894
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16503
16895
      else
 
16896
        wlarc=''
16504
16897
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505
16898
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16506
16899
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16509
16902
      hardcode_shlibpath_var_GCJ=no
16510
16903
      case $host_os in
16511
16904
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16512
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16513
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16905
      *)
 
16906
        # The compiler driver will combine linker options so we
 
16907
        # cannot just pass the convience library names through
 
16908
        # without $wl, iff we do not link with $LD.
 
16909
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16910
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16911
        case $wlarc in
 
16912
        '')
 
16913
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16914
        *)
 
16915
          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' ;;
 
16916
        esac ;;
16514
16917
      esac
16515
16918
      link_all_deplibs_GCJ=yes
16516
16919
      ;;
16567
16970
      fi
16568
16971
      ;;
16569
16972
 
16570
 
    sysv4.2uw2*)
16571
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16572
 
      hardcode_direct_GCJ=yes
16573
 
      hardcode_minus_L_GCJ=no
16574
 
      hardcode_shlibpath_var_GCJ=no
16575
 
      hardcode_runpath_var=yes
16576
 
      runpath_var=LD_RUN_PATH
16577
 
      ;;
16578
 
 
16579
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16580
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16581
 
      if test "$GCC" = yes; then
16582
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583
 
      else
16584
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585
 
      fi
16586
 
      runpath_var='LD_RUN_PATH'
16587
 
      hardcode_shlibpath_var_GCJ=no
16588
 
      ;;
16589
 
 
16590
 
    sysv5*)
16591
 
      no_undefined_flag_GCJ=' -z text'
16592
 
      # $CC -shared without GNU ld will not create a library from C++
16593
 
      # object files and a static libstdc++, better avoid it by now
16594
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16596
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16597
 
      hardcode_libdir_flag_spec_GCJ=
16598
 
      hardcode_shlibpath_var_GCJ=no
16599
 
      runpath_var='LD_RUN_PATH'
 
16973
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16974
      no_undefined_flag_GCJ='${wl}-z,text'
 
16975
      archive_cmds_need_lc_GCJ=no
 
16976
      hardcode_shlibpath_var_GCJ=no
 
16977
      runpath_var='LD_RUN_PATH'
 
16978
 
 
16979
      if test "$GCC" = yes; then
 
16980
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16981
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16982
      else
 
16983
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16984
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16985
      fi
 
16986
      ;;
 
16987
 
 
16988
    sysv5* | sco3.2v5* | sco5v6*)
 
16989
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16990
      # link with -lc, and that would cause any symbols used from libc to
 
16991
      # always be unresolved, which means just about no library would
 
16992
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16993
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16994
      # as -z defs.
 
16995
      no_undefined_flag_GCJ='${wl}-z,text'
 
16996
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16997
      archive_cmds_need_lc_GCJ=no
 
16998
      hardcode_shlibpath_var_GCJ=no
 
16999
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17000
      hardcode_libdir_separator_GCJ=':'
 
17001
      link_all_deplibs_GCJ=yes
 
17002
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17003
      runpath_var='LD_RUN_PATH'
 
17004
 
 
17005
      if test "$GCC" = yes; then
 
17006
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17007
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17008
      else
 
17009
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17010
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17011
      fi
16600
17012
      ;;
16601
17013
 
16602
17014
    uts4*)
16615
17027
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16616
17028
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16617
17029
 
16618
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16619
 
if test "$GCC" = yes; then
16620
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16621
 
fi
16622
 
 
16623
17030
#
16624
17031
# Do we need to explicitly link libc?
16625
17032
#
16652
17059
        libobjs=conftest.$ac_objext
16653
17060
        deplibs=
16654
17061
        wl=$lt_prog_compiler_wl_GCJ
 
17062
        pic_flag=$lt_prog_compiler_pic_GCJ
16655
17063
        compiler_flags=-v
16656
17064
        linker_flags=-v
16657
17065
        verstring=
16682
17090
  ;;
16683
17091
esac
16684
17092
 
 
17093
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17094
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17095
library_names_spec=
 
17096
libname_spec='lib$name'
 
17097
soname_spec=
 
17098
shrext_cmds=".so"
 
17099
postinstall_cmds=
 
17100
postuninstall_cmds=
 
17101
finish_cmds=
 
17102
finish_eval=
 
17103
shlibpath_var=
 
17104
shlibpath_overrides_runpath=unknown
 
17105
version_type=none
 
17106
dynamic_linker="$host_os ld.so"
 
17107
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17108
if test "$GCC" = yes; then
 
17109
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17110
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17111
    # if the path contains ";" then we assume it to be the separator
 
17112
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17113
    # assumed that no part of a normal pathname contains ";" but that should
 
17114
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17115
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17116
  else
 
17117
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17118
  fi
 
17119
else
 
17120
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17121
fi
 
17122
need_lib_prefix=unknown
 
17123
hardcode_into_libs=no
 
17124
 
 
17125
# when you set need_version to no, make sure it does not cause -set_version
 
17126
# flags to be left without arguments
 
17127
need_version=unknown
 
17128
 
 
17129
case $host_os in
 
17130
aix3*)
 
17131
  version_type=linux
 
17132
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17133
  shlibpath_var=LIBPATH
 
17134
 
 
17135
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17136
  soname_spec='${libname}${release}${shared_ext}$major'
 
17137
  ;;
 
17138
 
 
17139
aix4* | aix5*)
 
17140
  version_type=linux
 
17141
  need_lib_prefix=no
 
17142
  need_version=no
 
17143
  hardcode_into_libs=yes
 
17144
  if test "$host_cpu" = ia64; then
 
17145
    # AIX 5 supports IA64
 
17146
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17147
    shlibpath_var=LD_LIBRARY_PATH
 
17148
  else
 
17149
    # With GCC up to 2.95.x, collect2 would create an import file
 
17150
    # for dependence libraries.  The import file would start with
 
17151
    # the line `#! .'.  This would cause the generated library to
 
17152
    # depend on `.', always an invalid library.  This was fixed in
 
17153
    # development snapshots of GCC prior to 3.0.
 
17154
    case $host_os in
 
17155
      aix4 | aix4.[01] | aix4.[01].*)
 
17156
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17157
           echo ' yes '
 
17158
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17159
        :
 
17160
      else
 
17161
        can_build_shared=no
 
17162
      fi
 
17163
      ;;
 
17164
    esac
 
17165
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17166
    # soname into executable. Probably we can add versioning support to
 
17167
    # collect2, so additional links can be useful in future.
 
17168
    if test "$aix_use_runtimelinking" = yes; then
 
17169
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17170
      # instead of lib<name>.a to let people know that these are not
 
17171
      # typical AIX shared libraries.
 
17172
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17173
    else
 
17174
      # We preserve .a as extension for shared libraries through AIX4.2
 
17175
      # and later when we are not doing run time linking.
 
17176
      library_names_spec='${libname}${release}.a $libname.a'
 
17177
      soname_spec='${libname}${release}${shared_ext}$major'
 
17178
    fi
 
17179
    shlibpath_var=LIBPATH
 
17180
  fi
 
17181
  ;;
 
17182
 
 
17183
amigaos*)
 
17184
  library_names_spec='$libname.ixlibrary $libname.a'
 
17185
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17186
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
17187
  ;;
 
17188
 
 
17189
beos*)
 
17190
  library_names_spec='${libname}${shared_ext}'
 
17191
  dynamic_linker="$host_os ld.so"
 
17192
  shlibpath_var=LIBRARY_PATH
 
17193
  ;;
 
17194
 
 
17195
bsdi[45]*)
 
17196
  version_type=linux
 
17197
  need_version=no
 
17198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17199
  soname_spec='${libname}${release}${shared_ext}$major'
 
17200
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17201
  shlibpath_var=LD_LIBRARY_PATH
 
17202
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17203
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17204
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17205
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17206
  # libtool to hard-code these into programs
 
17207
  ;;
 
17208
 
 
17209
cygwin* | mingw* | pw32*)
 
17210
  version_type=windows
 
17211
  shrext_cmds=".dll"
 
17212
  need_version=no
 
17213
  need_lib_prefix=no
 
17214
 
 
17215
  case $GCC,$host_os in
 
17216
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17217
    library_names_spec='$libname.dll.a'
 
17218
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17219
    postinstall_cmds='base_file=`basename \${file}`~
 
17220
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17221
      dldir=$destdir/`dirname \$dlpath`~
 
17222
      test -d \$dldir || mkdir -p \$dldir~
 
17223
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17224
      chmod a+x \$dldir/$dlname'
 
17225
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17226
      dlpath=$dir/\$dldll~
 
17227
       $rm \$dlpath'
 
17228
    shlibpath_overrides_runpath=yes
 
17229
 
 
17230
    case $host_os in
 
17231
    cygwin*)
 
17232
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17233
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17234
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17235
      ;;
 
17236
    mingw*)
 
17237
      # MinGW DLLs use traditional 'lib' prefix
 
17238
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17239
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17240
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17241
        # It is most probably a Windows format PATH printed by
 
17242
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17243
        # path with ; separators, and with drive letters. We can handle the
 
17244
        # drive letters (cygwin fileutils understands them), so leave them,
 
17245
        # especially as we might pass files found there to a mingw objdump,
 
17246
        # which wouldn't understand a cygwinified path. Ahh.
 
17247
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17248
      else
 
17249
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17250
      fi
 
17251
      ;;
 
17252
    pw32*)
 
17253
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17254
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17255
      ;;
 
17256
    esac
 
17257
    ;;
 
17258
 
 
17259
  *)
 
17260
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17261
    ;;
 
17262
  esac
 
17263
  dynamic_linker='Win32 ld.exe'
 
17264
  # FIXME: first we should search . and the directory the executable is in
 
17265
  shlibpath_var=PATH
 
17266
  ;;
 
17267
 
 
17268
darwin* | rhapsody*)
 
17269
  dynamic_linker="$host_os dyld"
 
17270
  version_type=darwin
 
17271
  need_lib_prefix=no
 
17272
  need_version=no
 
17273
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17274
  soname_spec='${libname}${release}${major}$shared_ext'
 
17275
  shlibpath_overrides_runpath=yes
 
17276
  shlibpath_var=DYLD_LIBRARY_PATH
 
17277
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17278
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17279
  if test "$GCC" = yes; then
 
17280
    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"`
 
17281
  else
 
17282
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17283
  fi
 
17284
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17285
  ;;
 
17286
 
 
17287
dgux*)
 
17288
  version_type=linux
 
17289
  need_lib_prefix=no
 
17290
  need_version=no
 
17291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17292
  soname_spec='${libname}${release}${shared_ext}$major'
 
17293
  shlibpath_var=LD_LIBRARY_PATH
 
17294
  ;;
 
17295
 
 
17296
freebsd1*)
 
17297
  dynamic_linker=no
 
17298
  ;;
 
17299
 
 
17300
kfreebsd*-gnu)
 
17301
  version_type=linux
 
17302
  need_lib_prefix=no
 
17303
  need_version=no
 
17304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17305
  soname_spec='${libname}${release}${shared_ext}$major'
 
17306
  shlibpath_var=LD_LIBRARY_PATH
 
17307
  shlibpath_overrides_runpath=no
 
17308
  hardcode_into_libs=yes
 
17309
  dynamic_linker='GNU ld.so'
 
17310
  ;;
 
17311
 
 
17312
freebsd* | dragonfly*)
 
17313
  # DragonFly does not have aout.  When/if they implement a new
 
17314
  # versioning mechanism, adjust this.
 
17315
  if test -x /usr/bin/objformat; then
 
17316
    objformat=`/usr/bin/objformat`
 
17317
  else
 
17318
    case $host_os in
 
17319
    freebsd[123]*) objformat=aout ;;
 
17320
    *) objformat=elf ;;
 
17321
    esac
 
17322
  fi
 
17323
  version_type=freebsd-$objformat
 
17324
  case $version_type in
 
17325
    freebsd-elf*)
 
17326
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17327
      need_version=no
 
17328
      need_lib_prefix=no
 
17329
      ;;
 
17330
    freebsd-*)
 
17331
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17332
      need_version=yes
 
17333
      ;;
 
17334
  esac
 
17335
  shlibpath_var=LD_LIBRARY_PATH
 
17336
  case $host_os in
 
17337
  freebsd2*)
 
17338
    shlibpath_overrides_runpath=yes
 
17339
    ;;
 
17340
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17341
    shlibpath_overrides_runpath=yes
 
17342
    hardcode_into_libs=yes
 
17343
    ;;
 
17344
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17345
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17346
    shlibpath_overrides_runpath=no
 
17347
    hardcode_into_libs=yes
 
17348
    ;;
 
17349
  freebsd*) # from 4.6 on
 
17350
    shlibpath_overrides_runpath=yes
 
17351
    hardcode_into_libs=yes
 
17352
    ;;
 
17353
  esac
 
17354
  ;;
 
17355
 
 
17356
gnu*)
 
17357
  version_type=linux
 
17358
  need_lib_prefix=no
 
17359
  need_version=no
 
17360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17361
  soname_spec='${libname}${release}${shared_ext}$major'
 
17362
  shlibpath_var=LD_LIBRARY_PATH
 
17363
  hardcode_into_libs=yes
 
17364
  ;;
 
17365
 
 
17366
hpux9* | hpux10* | hpux11*)
 
17367
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17368
  # link against other versions.
 
17369
  version_type=sunos
 
17370
  need_lib_prefix=no
 
17371
  need_version=no
 
17372
  case $host_cpu in
 
17373
  ia64*)
 
17374
    shrext_cmds='.so'
 
17375
    hardcode_into_libs=yes
 
17376
    dynamic_linker="$host_os dld.so"
 
17377
    shlibpath_var=LD_LIBRARY_PATH
 
17378
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17379
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17380
    soname_spec='${libname}${release}${shared_ext}$major'
 
17381
    if test "X$HPUX_IA64_MODE" = X32; then
 
17382
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17383
    else
 
17384
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17385
    fi
 
17386
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17387
    ;;
 
17388
   hppa*64*)
 
17389
     shrext_cmds='.sl'
 
17390
     hardcode_into_libs=yes
 
17391
     dynamic_linker="$host_os dld.sl"
 
17392
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17393
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17394
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17395
     soname_spec='${libname}${release}${shared_ext}$major'
 
17396
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17397
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17398
     ;;
 
17399
   *)
 
17400
    shrext_cmds='.sl'
 
17401
    dynamic_linker="$host_os dld.sl"
 
17402
    shlibpath_var=SHLIB_PATH
 
17403
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17404
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17405
    soname_spec='${libname}${release}${shared_ext}$major'
 
17406
    ;;
 
17407
  esac
 
17408
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17409
  postinstall_cmds='chmod 555 $lib'
 
17410
  ;;
 
17411
 
 
17412
interix3*)
 
17413
  version_type=linux
 
17414
  need_lib_prefix=no
 
17415
  need_version=no
 
17416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17417
  soname_spec='${libname}${release}${shared_ext}$major'
 
17418
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17419
  shlibpath_var=LD_LIBRARY_PATH
 
17420
  shlibpath_overrides_runpath=no
 
17421
  hardcode_into_libs=yes
 
17422
  ;;
 
17423
 
 
17424
irix5* | irix6* | nonstopux*)
 
17425
  case $host_os in
 
17426
    nonstopux*) version_type=nonstopux ;;
 
17427
    *)
 
17428
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17429
                version_type=linux
 
17430
        else
 
17431
                version_type=irix
 
17432
        fi ;;
 
17433
  esac
 
17434
  need_lib_prefix=no
 
17435
  need_version=no
 
17436
  soname_spec='${libname}${release}${shared_ext}$major'
 
17437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17438
  case $host_os in
 
17439
  irix5* | nonstopux*)
 
17440
    libsuff= shlibsuff=
 
17441
    ;;
 
17442
  *)
 
17443
    case $LD in # libtool.m4 will add one of these switches to LD
 
17444
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17445
      libsuff= shlibsuff= libmagic=32-bit;;
 
17446
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17447
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17448
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17449
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17450
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17451
    esac
 
17452
    ;;
 
17453
  esac
 
17454
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17455
  shlibpath_overrides_runpath=no
 
17456
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17457
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17458
  hardcode_into_libs=yes
 
17459
  ;;
 
17460
 
 
17461
# No shared lib support for Linux oldld, aout, or coff.
 
17462
linux*oldld* | linux*aout* | linux*coff*)
 
17463
  dynamic_linker=no
 
17464
  ;;
 
17465
 
 
17466
# This must be Linux ELF.
 
17467
linux*)
 
17468
  version_type=linux
 
17469
  need_lib_prefix=no
 
17470
  need_version=no
 
17471
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17472
  soname_spec='${libname}${release}${shared_ext}$major'
 
17473
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17474
  shlibpath_var=LD_LIBRARY_PATH
 
17475
  shlibpath_overrides_runpath=no
 
17476
  # This implies no fast_install, which is unacceptable.
 
17477
  # Some rework will be needed to allow for fast_install
 
17478
  # before this can be enabled.
 
17479
  hardcode_into_libs=yes
 
17480
 
 
17481
  # find out which ABI we are using
 
17482
  libsuff=
 
17483
  case "$host_cpu" in
 
17484
  x86_64*|s390x*|powerpc64*)
 
17485
    echo '#line 17485 "configure"' > conftest.$ac_ext
 
17486
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17487
  (eval $ac_compile) 2>&5
 
17488
  ac_status=$?
 
17489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17490
  (exit $ac_status); }; then
 
17491
      case `/usr/bin/file conftest.$ac_objext` in
 
17492
      *64-bit*)
 
17493
        libsuff=64
 
17494
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17495
        ;;
 
17496
      esac
 
17497
    fi
 
17498
    rm -rf conftest*
 
17499
    ;;
 
17500
  esac
 
17501
 
 
17502
  # Append ld.so.conf contents to the search path
 
17503
  if test -f /etc/ld.so.conf; then
 
17504
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17505
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17506
  fi
 
17507
 
 
17508
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17509
  # powerpc, because MkLinux only supported shared libraries with the
 
17510
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17511
  # most powerpc-linux boxes support dynamic linking these days and
 
17512
  # people can always --disable-shared, the test was removed, and we
 
17513
  # assume the GNU/Linux dynamic linker is in use.
 
17514
  dynamic_linker='GNU/Linux ld.so'
 
17515
  ;;
 
17516
 
 
17517
knetbsd*-gnu)
 
17518
  version_type=linux
 
17519
  need_lib_prefix=no
 
17520
  need_version=no
 
17521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17522
  soname_spec='${libname}${release}${shared_ext}$major'
 
17523
  shlibpath_var=LD_LIBRARY_PATH
 
17524
  shlibpath_overrides_runpath=no
 
17525
  hardcode_into_libs=yes
 
17526
  dynamic_linker='GNU ld.so'
 
17527
  ;;
 
17528
 
 
17529
netbsd*)
 
17530
  version_type=sunos
 
17531
  need_lib_prefix=no
 
17532
  need_version=no
 
17533
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17534
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17535
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17536
    dynamic_linker='NetBSD (a.out) ld.so'
 
17537
  else
 
17538
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17539
    soname_spec='${libname}${release}${shared_ext}$major'
 
17540
    dynamic_linker='NetBSD ld.elf_so'
 
17541
  fi
 
17542
  shlibpath_var=LD_LIBRARY_PATH
 
17543
  shlibpath_overrides_runpath=yes
 
17544
  hardcode_into_libs=yes
 
17545
  ;;
 
17546
 
 
17547
newsos6)
 
17548
  version_type=linux
 
17549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17550
  shlibpath_var=LD_LIBRARY_PATH
 
17551
  shlibpath_overrides_runpath=yes
 
17552
  ;;
 
17553
 
 
17554
nto-qnx*)
 
17555
  version_type=linux
 
17556
  need_lib_prefix=no
 
17557
  need_version=no
 
17558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17559
  soname_spec='${libname}${release}${shared_ext}$major'
 
17560
  shlibpath_var=LD_LIBRARY_PATH
 
17561
  shlibpath_overrides_runpath=yes
 
17562
  ;;
 
17563
 
 
17564
openbsd*)
 
17565
  version_type=sunos
 
17566
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17567
  need_lib_prefix=no
 
17568
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17569
  case $host_os in
 
17570
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17571
    *)                         need_version=no  ;;
 
17572
  esac
 
17573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17574
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17575
  shlibpath_var=LD_LIBRARY_PATH
 
17576
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17577
    case $host_os in
 
17578
      openbsd2.[89] | openbsd2.[89].*)
 
17579
        shlibpath_overrides_runpath=no
 
17580
        ;;
 
17581
      *)
 
17582
        shlibpath_overrides_runpath=yes
 
17583
        ;;
 
17584
      esac
 
17585
  else
 
17586
    shlibpath_overrides_runpath=yes
 
17587
  fi
 
17588
  ;;
 
17589
 
 
17590
os2*)
 
17591
  libname_spec='$name'
 
17592
  shrext_cmds=".dll"
 
17593
  need_lib_prefix=no
 
17594
  library_names_spec='$libname${shared_ext} $libname.a'
 
17595
  dynamic_linker='OS/2 ld.exe'
 
17596
  shlibpath_var=LIBPATH
 
17597
  ;;
 
17598
 
 
17599
osf3* | osf4* | osf5*)
 
17600
  version_type=osf
 
17601
  need_lib_prefix=no
 
17602
  need_version=no
 
17603
  soname_spec='${libname}${release}${shared_ext}$major'
 
17604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17605
  shlibpath_var=LD_LIBRARY_PATH
 
17606
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17607
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17608
  ;;
 
17609
 
 
17610
solaris*)
 
17611
  version_type=linux
 
17612
  need_lib_prefix=no
 
17613
  need_version=no
 
17614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17615
  soname_spec='${libname}${release}${shared_ext}$major'
 
17616
  shlibpath_var=LD_LIBRARY_PATH
 
17617
  shlibpath_overrides_runpath=yes
 
17618
  hardcode_into_libs=yes
 
17619
  # ldd complains unless libraries are executable
 
17620
  postinstall_cmds='chmod +x $lib'
 
17621
  ;;
 
17622
 
 
17623
sunos4*)
 
17624
  version_type=sunos
 
17625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17626
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17627
  shlibpath_var=LD_LIBRARY_PATH
 
17628
  shlibpath_overrides_runpath=yes
 
17629
  if test "$with_gnu_ld" = yes; then
 
17630
    need_lib_prefix=no
 
17631
  fi
 
17632
  need_version=yes
 
17633
  ;;
 
17634
 
 
17635
sysv4 | sysv4.3*)
 
17636
  version_type=linux
 
17637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17638
  soname_spec='${libname}${release}${shared_ext}$major'
 
17639
  shlibpath_var=LD_LIBRARY_PATH
 
17640
  case $host_vendor in
 
17641
    sni)
 
17642
      shlibpath_overrides_runpath=no
 
17643
      need_lib_prefix=no
 
17644
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17645
      runpath_var=LD_RUN_PATH
 
17646
      ;;
 
17647
    siemens)
 
17648
      need_lib_prefix=no
 
17649
      ;;
 
17650
    motorola)
 
17651
      need_lib_prefix=no
 
17652
      need_version=no
 
17653
      shlibpath_overrides_runpath=no
 
17654
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17655
      ;;
 
17656
  esac
 
17657
  ;;
 
17658
 
 
17659
sysv4*MP*)
 
17660
  if test -d /usr/nec ;then
 
17661
    version_type=linux
 
17662
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17663
    soname_spec='$libname${shared_ext}.$major'
 
17664
    shlibpath_var=LD_LIBRARY_PATH
 
17665
  fi
 
17666
  ;;
 
17667
 
 
17668
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17669
  version_type=freebsd-elf
 
17670
  need_lib_prefix=no
 
17671
  need_version=no
 
17672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17673
  soname_spec='${libname}${release}${shared_ext}$major'
 
17674
  shlibpath_var=LD_LIBRARY_PATH
 
17675
  hardcode_into_libs=yes
 
17676
  if test "$with_gnu_ld" = yes; then
 
17677
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17678
    shlibpath_overrides_runpath=no
 
17679
  else
 
17680
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17681
    shlibpath_overrides_runpath=yes
 
17682
    case $host_os in
 
17683
      sco3.2v5*)
 
17684
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17685
        ;;
 
17686
    esac
 
17687
  fi
 
17688
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17689
  ;;
 
17690
 
 
17691
uts4*)
 
17692
  version_type=linux
 
17693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17694
  soname_spec='${libname}${release}${shared_ext}$major'
 
17695
  shlibpath_var=LD_LIBRARY_PATH
 
17696
  ;;
 
17697
 
 
17698
*)
 
17699
  dynamic_linker=no
 
17700
  ;;
 
17701
esac
 
17702
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17703
echo "${ECHO_T}$dynamic_linker" >&6
 
17704
test "$dynamic_linker" = no && can_build_shared=no
 
17705
 
 
17706
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17707
if test "$GCC" = yes; then
 
17708
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17709
fi
 
17710
 
16685
17711
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16686
17712
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16687
17713
hardcode_action_GCJ=
16688
17714
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16689
 
   test -n "$runpath_var GCJ" || \
16690
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17715
   test -n "$runpath_var_GCJ" || \
 
17716
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16691
17717
 
16692
17718
  # We can hardcode non-existant directories.
16693
17719
  if test "$hardcode_direct_GCJ" != no &&
16719
17745
  enable_fast_install=needless
16720
17746
fi
16721
17747
 
16722
 
striplib=
16723
 
old_striplib=
16724
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16725
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16726
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16727
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16728
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16729
 
  echo "$as_me:$LINENO: result: yes" >&5
16730
 
echo "${ECHO_T}yes" >&6
16731
 
else
16732
 
# FIXME - insert some real tests, host_os isn't really good enough
16733
 
  case $host_os in
16734
 
   darwin*)
16735
 
       if test -n "$STRIP" ; then
16736
 
         striplib="$STRIP -x"
16737
 
         echo "$as_me:$LINENO: result: yes" >&5
16738
 
echo "${ECHO_T}yes" >&6
16739
 
       else
16740
 
  echo "$as_me:$LINENO: result: no" >&5
16741
 
echo "${ECHO_T}no" >&6
16742
 
fi
16743
 
       ;;
16744
 
   *)
16745
 
  echo "$as_me:$LINENO: result: no" >&5
16746
 
echo "${ECHO_T}no" >&6
16747
 
    ;;
16748
 
  esac
16749
 
fi
16750
 
 
16751
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16752
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16753
 
library_names_spec=
16754
 
libname_spec='lib$name'
16755
 
soname_spec=
16756
 
shrext=".so"
16757
 
postinstall_cmds=
16758
 
postuninstall_cmds=
16759
 
finish_cmds=
16760
 
finish_eval=
16761
 
shlibpath_var=
16762
 
shlibpath_overrides_runpath=unknown
16763
 
version_type=none
16764
 
dynamic_linker="$host_os ld.so"
16765
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16766
 
if test "$GCC" = yes; then
16767
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16768
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16769
 
    # if the path contains ";" then we assume it to be the separator
16770
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16771
 
    # assumed that no part of a normal pathname contains ";" but that should
16772
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16773
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16774
 
  else
16775
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16776
 
  fi
16777
 
else
16778
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16779
 
fi
16780
 
need_lib_prefix=unknown
16781
 
hardcode_into_libs=no
16782
 
 
16783
 
# when you set need_version to no, make sure it does not cause -set_version
16784
 
# flags to be left without arguments
16785
 
need_version=unknown
16786
 
 
16787
 
case $host_os in
16788
 
aix3*)
16789
 
  version_type=linux
16790
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16791
 
  shlibpath_var=LIBPATH
16792
 
 
16793
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16794
 
  soname_spec='${libname}${release}${shared_ext}$major'
16795
 
  ;;
16796
 
 
16797
 
aix4* | aix5*)
16798
 
  version_type=linux
16799
 
  need_lib_prefix=no
16800
 
  need_version=no
16801
 
  hardcode_into_libs=yes
16802
 
  if test "$host_cpu" = ia64; then
16803
 
    # AIX 5 supports IA64
16804
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16805
 
    shlibpath_var=LD_LIBRARY_PATH
16806
 
  else
16807
 
    # With GCC up to 2.95.x, collect2 would create an import file
16808
 
    # for dependence libraries.  The import file would start with
16809
 
    # the line `#! .'.  This would cause the generated library to
16810
 
    # depend on `.', always an invalid library.  This was fixed in
16811
 
    # development snapshots of GCC prior to 3.0.
16812
 
    case $host_os in
16813
 
      aix4 | aix4.[01] | aix4.[01].*)
16814
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16815
 
           echo ' yes '
16816
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16817
 
        :
16818
 
      else
16819
 
        can_build_shared=no
16820
 
      fi
16821
 
      ;;
16822
 
    esac
16823
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16824
 
    # soname into executable. Probably we can add versioning support to
16825
 
    # collect2, so additional links can be useful in future.
16826
 
    if test "$aix_use_runtimelinking" = yes; then
16827
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16828
 
      # instead of lib<name>.a to let people know that these are not
16829
 
      # typical AIX shared libraries.
16830
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831
 
    else
16832
 
      # We preserve .a as extension for shared libraries through AIX4.2
16833
 
      # and later when we are not doing run time linking.
16834
 
      library_names_spec='${libname}${release}.a $libname.a'
16835
 
      soname_spec='${libname}${release}${shared_ext}$major'
16836
 
    fi
16837
 
    shlibpath_var=LIBPATH
16838
 
  fi
16839
 
  ;;
16840
 
 
16841
 
amigaos*)
16842
 
  library_names_spec='$libname.ixlibrary $libname.a'
16843
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16844
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
16845
 
  ;;
16846
 
 
16847
 
beos*)
16848
 
  library_names_spec='${libname}${shared_ext}'
16849
 
  dynamic_linker="$host_os ld.so"
16850
 
  shlibpath_var=LIBRARY_PATH
16851
 
  ;;
16852
 
 
16853
 
bsdi4*)
16854
 
  version_type=linux
16855
 
  need_version=no
16856
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857
 
  soname_spec='${libname}${release}${shared_ext}$major'
16858
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16859
 
  shlibpath_var=LD_LIBRARY_PATH
16860
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16861
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16862
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16863
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16864
 
  # libtool to hard-code these into programs
16865
 
  ;;
16866
 
 
16867
 
cygwin* | mingw* | pw32*)
16868
 
  version_type=windows
16869
 
  shrext=".dll"
16870
 
  need_version=no
16871
 
  need_lib_prefix=no
16872
 
 
16873
 
  case $GCC,$host_os in
16874
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16875
 
    library_names_spec='$libname.dll.a'
16876
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16877
 
    postinstall_cmds='base_file=`basename \${file}`~
16878
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16879
 
      dldir=$destdir/`dirname \$dlpath`~
16880
 
      test -d \$dldir || mkdir -p \$dldir~
16881
 
      $install_prog $dir/$dlname \$dldir/$dlname'
16882
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16883
 
      dlpath=$dir/\$dldll~
16884
 
       $rm \$dlpath'
16885
 
    shlibpath_overrides_runpath=yes
16886
 
 
16887
 
    case $host_os in
16888
 
    cygwin*)
16889
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16890
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16892
 
      ;;
16893
 
    mingw*)
16894
 
      # MinGW DLLs use traditional 'lib' prefix
16895
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16897
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16898
 
        # It is most probably a Windows format PATH printed by
16899
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16900
 
        # path with ; separators, and with drive letters. We can handle the
16901
 
        # drive letters (cygwin fileutils understands them), so leave them,
16902
 
        # especially as we might pass files found there to a mingw objdump,
16903
 
        # which wouldn't understand a cygwinified path. Ahh.
16904
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16905
 
      else
16906
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16907
 
      fi
16908
 
      ;;
16909
 
    pw32*)
16910
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16911
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16912
 
      ;;
16913
 
    esac
16914
 
    ;;
16915
 
 
16916
 
  *)
16917
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16918
 
    ;;
16919
 
  esac
16920
 
  dynamic_linker='Win32 ld.exe'
16921
 
  # FIXME: first we should search . and the directory the executable is in
16922
 
  shlibpath_var=PATH
16923
 
  ;;
16924
 
 
16925
 
darwin* | rhapsody*)
16926
 
  dynamic_linker="$host_os dyld"
16927
 
  version_type=darwin
16928
 
  need_lib_prefix=no
16929
 
  need_version=no
16930
 
  # FIXME: Relying on posixy $() will cause problems for
16931
 
  #        cross-compilation, but unfortunately the echo tests do not
16932
 
  #        yet detect zsh echo's removal of \ escapes.
16933
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16934
 
  soname_spec='${libname}${release}${major}$shared_ext'
16935
 
  shlibpath_overrides_runpath=yes
16936
 
  shlibpath_var=DYLD_LIBRARY_PATH
16937
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16938
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16939
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16940
 
  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"`
16941
 
  fi
16942
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16943
 
  ;;
16944
 
 
16945
 
dgux*)
16946
 
  version_type=linux
16947
 
  need_lib_prefix=no
16948
 
  need_version=no
16949
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16950
 
  soname_spec='${libname}${release}${shared_ext}$major'
16951
 
  shlibpath_var=LD_LIBRARY_PATH
16952
 
  ;;
16953
 
 
16954
 
freebsd1*)
16955
 
  dynamic_linker=no
16956
 
  ;;
16957
 
 
16958
 
freebsd*)
16959
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16960
 
  version_type=freebsd-$objformat
16961
 
  case $version_type in
16962
 
    freebsd-elf*)
16963
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16964
 
      need_version=no
16965
 
      need_lib_prefix=no
16966
 
      ;;
16967
 
    freebsd-*)
16968
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16969
 
      need_version=yes
16970
 
      ;;
16971
 
  esac
16972
 
  shlibpath_var=LD_LIBRARY_PATH
16973
 
  case $host_os in
16974
 
  freebsd2*)
16975
 
    shlibpath_overrides_runpath=yes
16976
 
    ;;
16977
 
  freebsd3.01* | freebsdelf3.01*)
16978
 
    shlibpath_overrides_runpath=yes
16979
 
    hardcode_into_libs=yes
16980
 
    ;;
16981
 
  *) # from 3.2 on
16982
 
    shlibpath_overrides_runpath=no
16983
 
    hardcode_into_libs=yes
16984
 
    ;;
16985
 
  esac
16986
 
  ;;
16987
 
 
16988
 
gnu*)
16989
 
  version_type=linux
16990
 
  need_lib_prefix=no
16991
 
  need_version=no
16992
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16993
 
  soname_spec='${libname}${release}${shared_ext}$major'
16994
 
  shlibpath_var=LD_LIBRARY_PATH
16995
 
  hardcode_into_libs=yes
16996
 
  ;;
16997
 
 
16998
 
hpux9* | hpux10* | hpux11*)
16999
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17000
 
  # link against other versions.
17001
 
  version_type=sunos
17002
 
  need_lib_prefix=no
17003
 
  need_version=no
17004
 
  case "$host_cpu" in
17005
 
  ia64*)
17006
 
    shrext='.so'
17007
 
    hardcode_into_libs=yes
17008
 
    dynamic_linker="$host_os dld.so"
17009
 
    shlibpath_var=LD_LIBRARY_PATH
17010
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17011
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012
 
    soname_spec='${libname}${release}${shared_ext}$major'
17013
 
    if test "X$HPUX_IA64_MODE" = X32; then
17014
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17015
 
    else
17016
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17017
 
    fi
17018
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17019
 
    ;;
17020
 
   hppa*64*)
17021
 
     shrext='.sl'
17022
 
     hardcode_into_libs=yes
17023
 
     dynamic_linker="$host_os dld.sl"
17024
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17025
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17026
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027
 
     soname_spec='${libname}${release}${shared_ext}$major'
17028
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17029
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17030
 
     ;;
17031
 
   *)
17032
 
    shrext='.sl'
17033
 
    dynamic_linker="$host_os dld.sl"
17034
 
    shlibpath_var=SHLIB_PATH
17035
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17036
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037
 
    soname_spec='${libname}${release}${shared_ext}$major'
17038
 
    ;;
17039
 
  esac
17040
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17041
 
  postinstall_cmds='chmod 555 $lib'
17042
 
  ;;
17043
 
 
17044
 
irix5* | irix6* | nonstopux*)
17045
 
  case $host_os in
17046
 
    nonstopux*) version_type=nonstopux ;;
17047
 
    *)
17048
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17049
 
                version_type=linux
17050
 
        else
17051
 
                version_type=irix
17052
 
        fi ;;
17053
 
  esac
17054
 
  need_lib_prefix=no
17055
 
  need_version=no
17056
 
  soname_spec='${libname}${release}${shared_ext}$major'
17057
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17058
 
  case $host_os in
17059
 
  irix5* | nonstopux*)
17060
 
    libsuff= shlibsuff=
17061
 
    ;;
17062
 
  *)
17063
 
    case $LD in # libtool.m4 will add one of these switches to LD
17064
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17065
 
      libsuff= shlibsuff= libmagic=32-bit;;
17066
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17067
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17068
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17069
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17070
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17071
 
    esac
17072
 
    ;;
17073
 
  esac
17074
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17075
 
  shlibpath_overrides_runpath=no
17076
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17077
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17078
 
  hardcode_into_libs=yes
17079
 
  ;;
17080
 
 
17081
 
# No shared lib support for Linux oldld, aout, or coff.
17082
 
linux*oldld* | linux*aout* | linux*coff*)
17083
 
  dynamic_linker=no
17084
 
  ;;
17085
 
 
17086
 
# This must be Linux ELF.
17087
 
linux*)
17088
 
  version_type=linux
17089
 
  need_lib_prefix=no
17090
 
  need_version=no
17091
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092
 
  soname_spec='${libname}${release}${shared_ext}$major'
17093
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17094
 
  shlibpath_var=LD_LIBRARY_PATH
17095
 
  shlibpath_overrides_runpath=no
17096
 
  # This implies no fast_install, which is unacceptable.
17097
 
  # Some rework will be needed to allow for fast_install
17098
 
  # before this can be enabled.
17099
 
  hardcode_into_libs=yes
17100
 
 
17101
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17102
 
  # powerpc, because MkLinux only supported shared libraries with the
17103
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17104
 
  # most powerpc-linux boxes support dynamic linking these days and
17105
 
  # people can always --disable-shared, the test was removed, and we
17106
 
  # assume the GNU/Linux dynamic linker is in use.
17107
 
  dynamic_linker='GNU/Linux ld.so'
17108
 
 
17109
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
17110
 
  libsuff=
17111
 
  case "$host_cpu" in
17112
 
  x86_64*|s390x*|powerpc64*)
17113
 
    echo '#line 17113 "configure"' > conftest.$ac_ext
17114
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115
 
  (eval $ac_compile) 2>&5
17116
 
  ac_status=$?
17117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118
 
  (exit $ac_status); }; then
17119
 
      case `/usr/bin/file conftest.$ac_objext` in
17120
 
      *64-bit*)
17121
 
        libsuff=64
17122
 
        ;;
17123
 
      esac
17124
 
    fi
17125
 
    rm -rf conftest*
17126
 
    ;;
17127
 
  *)
17128
 
    ;;
17129
 
  esac
17130
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17131
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17132
 
  ;;
17133
 
 
17134
 
netbsd*)
17135
 
  version_type=sunos
17136
 
  need_lib_prefix=no
17137
 
  need_version=no
17138
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141
 
    dynamic_linker='NetBSD (a.out) ld.so'
17142
 
  else
17143
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17144
 
    soname_spec='${libname}${release}${shared_ext}$major'
17145
 
    dynamic_linker='NetBSD ld.elf_so'
17146
 
  fi
17147
 
  shlibpath_var=LD_LIBRARY_PATH
17148
 
  shlibpath_overrides_runpath=yes
17149
 
  hardcode_into_libs=yes
17150
 
  ;;
17151
 
 
17152
 
newsos6)
17153
 
  version_type=linux
17154
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155
 
  shlibpath_var=LD_LIBRARY_PATH
17156
 
  shlibpath_overrides_runpath=yes
17157
 
  ;;
17158
 
 
17159
 
nto-qnx)
17160
 
  version_type=linux
17161
 
  need_lib_prefix=no
17162
 
  need_version=no
17163
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164
 
  soname_spec='${libname}${release}${shared_ext}$major'
17165
 
  shlibpath_var=LD_LIBRARY_PATH
17166
 
  shlibpath_overrides_runpath=yes
17167
 
  ;;
17168
 
 
17169
 
openbsd*)
17170
 
  version_type=sunos
17171
 
  need_lib_prefix=no
17172
 
  need_version=no
17173
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175
 
  shlibpath_var=LD_LIBRARY_PATH
17176
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17177
 
    case $host_os in
17178
 
      openbsd2.[89] | openbsd2.[89].*)
17179
 
        shlibpath_overrides_runpath=no
17180
 
        ;;
17181
 
      *)
17182
 
        shlibpath_overrides_runpath=yes
17183
 
        ;;
17184
 
      esac
17185
 
  else
17186
 
    shlibpath_overrides_runpath=yes
17187
 
  fi
17188
 
  ;;
17189
 
 
17190
 
os2*)
17191
 
  libname_spec='$name'
17192
 
  shrext=".dll"
17193
 
  need_lib_prefix=no
17194
 
  library_names_spec='$libname${shared_ext} $libname.a'
17195
 
  dynamic_linker='OS/2 ld.exe'
17196
 
  shlibpath_var=LIBPATH
17197
 
  ;;
17198
 
 
17199
 
osf3* | osf4* | osf5*)
17200
 
  version_type=osf
17201
 
  need_lib_prefix=no
17202
 
  need_version=no
17203
 
  soname_spec='${libname}${release}${shared_ext}$major'
17204
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205
 
  shlibpath_var=LD_LIBRARY_PATH
17206
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17208
 
  ;;
17209
 
 
17210
 
sco3.2v5*)
17211
 
  version_type=osf
17212
 
  soname_spec='${libname}${release}${shared_ext}$major'
17213
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214
 
  shlibpath_var=LD_LIBRARY_PATH
17215
 
  ;;
17216
 
 
17217
 
solaris*)
17218
 
  version_type=linux
17219
 
  need_lib_prefix=no
17220
 
  need_version=no
17221
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222
 
  soname_spec='${libname}${release}${shared_ext}$major'
17223
 
  shlibpath_var=LD_LIBRARY_PATH
17224
 
  shlibpath_overrides_runpath=yes
17225
 
  hardcode_into_libs=yes
17226
 
  # ldd complains unless libraries are executable
17227
 
  postinstall_cmds='chmod +x $lib'
17228
 
  ;;
17229
 
 
17230
 
sunos4*)
17231
 
  version_type=sunos
17232
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234
 
  shlibpath_var=LD_LIBRARY_PATH
17235
 
  shlibpath_overrides_runpath=yes
17236
 
  if test "$with_gnu_ld" = yes; then
17237
 
    need_lib_prefix=no
17238
 
  fi
17239
 
  need_version=yes
17240
 
  ;;
17241
 
 
17242
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17243
 
  version_type=linux
17244
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245
 
  soname_spec='${libname}${release}${shared_ext}$major'
17246
 
  shlibpath_var=LD_LIBRARY_PATH
17247
 
  case $host_vendor in
17248
 
    sni)
17249
 
      shlibpath_overrides_runpath=no
17250
 
      need_lib_prefix=no
17251
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17252
 
      runpath_var=LD_RUN_PATH
17253
 
      ;;
17254
 
    siemens)
17255
 
      need_lib_prefix=no
17256
 
      ;;
17257
 
    motorola)
17258
 
      need_lib_prefix=no
17259
 
      need_version=no
17260
 
      shlibpath_overrides_runpath=no
17261
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17262
 
      ;;
17263
 
  esac
17264
 
  ;;
17265
 
 
17266
 
sysv4*MP*)
17267
 
  if test -d /usr/nec ;then
17268
 
    version_type=linux
17269
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270
 
    soname_spec='$libname${shared_ext}.$major'
17271
 
    shlibpath_var=LD_LIBRARY_PATH
17272
 
  fi
17273
 
  ;;
17274
 
 
17275
 
uts4*)
17276
 
  version_type=linux
17277
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278
 
  soname_spec='${libname}${release}${shared_ext}$major'
17279
 
  shlibpath_var=LD_LIBRARY_PATH
17280
 
  ;;
17281
 
 
17282
 
*)
17283
 
  dynamic_linker=no
17284
 
  ;;
17285
 
esac
17286
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287
 
echo "${ECHO_T}$dynamic_linker" >&6
17288
 
test "$dynamic_linker" = no && can_build_shared=no
17289
 
 
17290
 
if test "x$enable_dlopen" != xyes; then
17291
 
  enable_dlopen=unknown
17292
 
  enable_dlopen_self=unknown
17293
 
  enable_dlopen_self_static=unknown
17294
 
else
17295
 
  lt_cv_dlopen=no
17296
 
  lt_cv_dlopen_libs=
17297
 
 
17298
 
  case $host_os in
17299
 
  beos*)
17300
 
    lt_cv_dlopen="load_add_on"
17301
 
    lt_cv_dlopen_libs=
17302
 
    lt_cv_dlopen_self=yes
17303
 
    ;;
17304
 
 
17305
 
  mingw* | pw32*)
17306
 
    lt_cv_dlopen="LoadLibrary"
17307
 
    lt_cv_dlopen_libs=
17308
 
   ;;
17309
 
 
17310
 
  cygwin*)
17311
 
    lt_cv_dlopen="dlopen"
17312
 
    lt_cv_dlopen_libs=
17313
 
   ;;
17314
 
 
17315
 
  darwin*)
17316
 
  # if libdl is installed we need to link against it
17317
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17318
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17319
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17320
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17321
 
else
17322
 
  ac_check_lib_save_LIBS=$LIBS
17323
 
LIBS="-ldl  $LIBS"
17324
 
cat >conftest.$ac_ext <<_ACEOF
17325
 
/* confdefs.h.  */
17326
 
_ACEOF
17327
 
cat confdefs.h >>conftest.$ac_ext
17328
 
cat >>conftest.$ac_ext <<_ACEOF
17329
 
/* end confdefs.h.  */
17330
 
 
17331
 
/* Override any gcc2 internal prototype to avoid an error.  */
17332
 
#ifdef __cplusplus
17333
 
extern "C"
17334
 
#endif
17335
 
/* We use char because int might match the return type of a gcc2
17336
 
   builtin and then its argument prototype would still apply.  */
17337
 
char dlopen ();
17338
 
int
17339
 
main ()
17340
 
{
17341
 
dlopen ();
17342
 
  ;
17343
 
  return 0;
17344
 
}
17345
 
_ACEOF
17346
 
rm -f conftest.$ac_objext conftest$ac_exeext
17347
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348
 
  (eval $ac_link) 2>conftest.er1
17349
 
  ac_status=$?
17350
 
  grep -v '^ *+' conftest.er1 >conftest.err
17351
 
  rm -f conftest.er1
17352
 
  cat conftest.err >&5
17353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354
 
  (exit $ac_status); } &&
17355
 
         { ac_try='test -z "$ac_c_werror_flag"
17356
 
                         || test ! -s conftest.err'
17357
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358
 
  (eval $ac_try) 2>&5
17359
 
  ac_status=$?
17360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361
 
  (exit $ac_status); }; } &&
17362
 
         { ac_try='test -s conftest$ac_exeext'
17363
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364
 
  (eval $ac_try) 2>&5
17365
 
  ac_status=$?
17366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
 
  (exit $ac_status); }; }; then
17368
 
  ac_cv_lib_dl_dlopen=yes
17369
 
else
17370
 
  echo "$as_me: failed program was:" >&5
17371
 
sed 's/^/| /' conftest.$ac_ext >&5
17372
 
 
17373
 
ac_cv_lib_dl_dlopen=no
17374
 
fi
17375
 
rm -f conftest.err conftest.$ac_objext \
17376
 
      conftest$ac_exeext conftest.$ac_ext
17377
 
LIBS=$ac_check_lib_save_LIBS
17378
 
fi
17379
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17381
 
if test $ac_cv_lib_dl_dlopen = yes; then
17382
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383
 
else
17384
 
 
17385
 
    lt_cv_dlopen="dyld"
17386
 
    lt_cv_dlopen_libs=
17387
 
    lt_cv_dlopen_self=yes
17388
 
 
17389
 
fi
17390
 
 
17391
 
   ;;
17392
 
 
17393
 
  *)
17394
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17395
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17396
 
if test "${ac_cv_func_shl_load+set}" = set; then
17397
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17398
 
else
17399
 
  cat >conftest.$ac_ext <<_ACEOF
17400
 
/* confdefs.h.  */
17401
 
_ACEOF
17402
 
cat confdefs.h >>conftest.$ac_ext
17403
 
cat >>conftest.$ac_ext <<_ACEOF
17404
 
/* end confdefs.h.  */
17405
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17406
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17407
 
#define shl_load innocuous_shl_load
17408
 
 
17409
 
/* System header to define __stub macros and hopefully few prototypes,
17410
 
    which can conflict with char shl_load (); below.
17411
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17412
 
    <limits.h> exists even on freestanding compilers.  */
17413
 
 
17414
 
#ifdef __STDC__
17415
 
# include <limits.h>
17416
 
#else
17417
 
# include <assert.h>
17418
 
#endif
17419
 
 
17420
 
#undef shl_load
17421
 
 
17422
 
/* Override any gcc2 internal prototype to avoid an error.  */
17423
 
#ifdef __cplusplus
17424
 
extern "C"
17425
 
{
17426
 
#endif
17427
 
/* We use char because int might match the return type of a gcc2
17428
 
   builtin and then its argument prototype would still apply.  */
17429
 
char shl_load ();
17430
 
/* The GNU C library defines this for functions which it implements
17431
 
    to always fail with ENOSYS.  Some functions are actually named
17432
 
    something starting with __ and the normal name is an alias.  */
17433
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17434
 
choke me
17435
 
#else
17436
 
char (*f) () = shl_load;
17437
 
#endif
17438
 
#ifdef __cplusplus
17439
 
}
17440
 
#endif
17441
 
 
17442
 
int
17443
 
main ()
17444
 
{
17445
 
return f != shl_load;
17446
 
  ;
17447
 
  return 0;
17448
 
}
17449
 
_ACEOF
17450
 
rm -f conftest.$ac_objext conftest$ac_exeext
17451
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452
 
  (eval $ac_link) 2>conftest.er1
17453
 
  ac_status=$?
17454
 
  grep -v '^ *+' conftest.er1 >conftest.err
17455
 
  rm -f conftest.er1
17456
 
  cat conftest.err >&5
17457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458
 
  (exit $ac_status); } &&
17459
 
         { ac_try='test -z "$ac_c_werror_flag"
17460
 
                         || test ! -s conftest.err'
17461
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462
 
  (eval $ac_try) 2>&5
17463
 
  ac_status=$?
17464
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465
 
  (exit $ac_status); }; } &&
17466
 
         { ac_try='test -s conftest$ac_exeext'
17467
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468
 
  (eval $ac_try) 2>&5
17469
 
  ac_status=$?
17470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471
 
  (exit $ac_status); }; }; then
17472
 
  ac_cv_func_shl_load=yes
17473
 
else
17474
 
  echo "$as_me: failed program was:" >&5
17475
 
sed 's/^/| /' conftest.$ac_ext >&5
17476
 
 
17477
 
ac_cv_func_shl_load=no
17478
 
fi
17479
 
rm -f conftest.err conftest.$ac_objext \
17480
 
      conftest$ac_exeext conftest.$ac_ext
17481
 
fi
17482
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17483
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17484
 
if test $ac_cv_func_shl_load = yes; then
17485
 
  lt_cv_dlopen="shl_load"
17486
 
else
17487
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17488
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17489
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17490
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17491
 
else
17492
 
  ac_check_lib_save_LIBS=$LIBS
17493
 
LIBS="-ldld  $LIBS"
17494
 
cat >conftest.$ac_ext <<_ACEOF
17495
 
/* confdefs.h.  */
17496
 
_ACEOF
17497
 
cat confdefs.h >>conftest.$ac_ext
17498
 
cat >>conftest.$ac_ext <<_ACEOF
17499
 
/* end confdefs.h.  */
17500
 
 
17501
 
/* Override any gcc2 internal prototype to avoid an error.  */
17502
 
#ifdef __cplusplus
17503
 
extern "C"
17504
 
#endif
17505
 
/* We use char because int might match the return type of a gcc2
17506
 
   builtin and then its argument prototype would still apply.  */
17507
 
char shl_load ();
17508
 
int
17509
 
main ()
17510
 
{
17511
 
shl_load ();
17512
 
  ;
17513
 
  return 0;
17514
 
}
17515
 
_ACEOF
17516
 
rm -f conftest.$ac_objext conftest$ac_exeext
17517
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518
 
  (eval $ac_link) 2>conftest.er1
17519
 
  ac_status=$?
17520
 
  grep -v '^ *+' conftest.er1 >conftest.err
17521
 
  rm -f conftest.er1
17522
 
  cat conftest.err >&5
17523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524
 
  (exit $ac_status); } &&
17525
 
         { ac_try='test -z "$ac_c_werror_flag"
17526
 
                         || test ! -s conftest.err'
17527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528
 
  (eval $ac_try) 2>&5
17529
 
  ac_status=$?
17530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531
 
  (exit $ac_status); }; } &&
17532
 
         { ac_try='test -s conftest$ac_exeext'
17533
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534
 
  (eval $ac_try) 2>&5
17535
 
  ac_status=$?
17536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537
 
  (exit $ac_status); }; }; then
17538
 
  ac_cv_lib_dld_shl_load=yes
17539
 
else
17540
 
  echo "$as_me: failed program was:" >&5
17541
 
sed 's/^/| /' conftest.$ac_ext >&5
17542
 
 
17543
 
ac_cv_lib_dld_shl_load=no
17544
 
fi
17545
 
rm -f conftest.err conftest.$ac_objext \
17546
 
      conftest$ac_exeext conftest.$ac_ext
17547
 
LIBS=$ac_check_lib_save_LIBS
17548
 
fi
17549
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17550
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17551
 
if test $ac_cv_lib_dld_shl_load = yes; then
17552
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17553
 
else
17554
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17555
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17556
 
if test "${ac_cv_func_dlopen+set}" = set; then
17557
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17558
 
else
17559
 
  cat >conftest.$ac_ext <<_ACEOF
17560
 
/* confdefs.h.  */
17561
 
_ACEOF
17562
 
cat confdefs.h >>conftest.$ac_ext
17563
 
cat >>conftest.$ac_ext <<_ACEOF
17564
 
/* end confdefs.h.  */
17565
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17566
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17567
 
#define dlopen innocuous_dlopen
17568
 
 
17569
 
/* System header to define __stub macros and hopefully few prototypes,
17570
 
    which can conflict with char dlopen (); below.
17571
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572
 
    <limits.h> exists even on freestanding compilers.  */
17573
 
 
17574
 
#ifdef __STDC__
17575
 
# include <limits.h>
17576
 
#else
17577
 
# include <assert.h>
17578
 
#endif
17579
 
 
17580
 
#undef dlopen
17581
 
 
17582
 
/* Override any gcc2 internal prototype to avoid an error.  */
17583
 
#ifdef __cplusplus
17584
 
extern "C"
17585
 
{
17586
 
#endif
17587
 
/* We use char because int might match the return type of a gcc2
17588
 
   builtin and then its argument prototype would still apply.  */
17589
 
char dlopen ();
17590
 
/* The GNU C library defines this for functions which it implements
17591
 
    to always fail with ENOSYS.  Some functions are actually named
17592
 
    something starting with __ and the normal name is an alias.  */
17593
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17594
 
choke me
17595
 
#else
17596
 
char (*f) () = dlopen;
17597
 
#endif
17598
 
#ifdef __cplusplus
17599
 
}
17600
 
#endif
17601
 
 
17602
 
int
17603
 
main ()
17604
 
{
17605
 
return f != dlopen;
17606
 
  ;
17607
 
  return 0;
17608
 
}
17609
 
_ACEOF
17610
 
rm -f conftest.$ac_objext conftest$ac_exeext
17611
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612
 
  (eval $ac_link) 2>conftest.er1
17613
 
  ac_status=$?
17614
 
  grep -v '^ *+' conftest.er1 >conftest.err
17615
 
  rm -f conftest.er1
17616
 
  cat conftest.err >&5
17617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618
 
  (exit $ac_status); } &&
17619
 
         { ac_try='test -z "$ac_c_werror_flag"
17620
 
                         || test ! -s conftest.err'
17621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622
 
  (eval $ac_try) 2>&5
17623
 
  ac_status=$?
17624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625
 
  (exit $ac_status); }; } &&
17626
 
         { ac_try='test -s conftest$ac_exeext'
17627
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628
 
  (eval $ac_try) 2>&5
17629
 
  ac_status=$?
17630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631
 
  (exit $ac_status); }; }; then
17632
 
  ac_cv_func_dlopen=yes
17633
 
else
17634
 
  echo "$as_me: failed program was:" >&5
17635
 
sed 's/^/| /' conftest.$ac_ext >&5
17636
 
 
17637
 
ac_cv_func_dlopen=no
17638
 
fi
17639
 
rm -f conftest.err conftest.$ac_objext \
17640
 
      conftest$ac_exeext conftest.$ac_ext
17641
 
fi
17642
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17643
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17644
 
if test $ac_cv_func_dlopen = yes; then
17645
 
  lt_cv_dlopen="dlopen"
17646
 
else
17647
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17648
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17649
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17650
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17651
 
else
17652
 
  ac_check_lib_save_LIBS=$LIBS
17653
 
LIBS="-ldl  $LIBS"
17654
 
cat >conftest.$ac_ext <<_ACEOF
17655
 
/* confdefs.h.  */
17656
 
_ACEOF
17657
 
cat confdefs.h >>conftest.$ac_ext
17658
 
cat >>conftest.$ac_ext <<_ACEOF
17659
 
/* end confdefs.h.  */
17660
 
 
17661
 
/* Override any gcc2 internal prototype to avoid an error.  */
17662
 
#ifdef __cplusplus
17663
 
extern "C"
17664
 
#endif
17665
 
/* We use char because int might match the return type of a gcc2
17666
 
   builtin and then its argument prototype would still apply.  */
17667
 
char dlopen ();
17668
 
int
17669
 
main ()
17670
 
{
17671
 
dlopen ();
17672
 
  ;
17673
 
  return 0;
17674
 
}
17675
 
_ACEOF
17676
 
rm -f conftest.$ac_objext conftest$ac_exeext
17677
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678
 
  (eval $ac_link) 2>conftest.er1
17679
 
  ac_status=$?
17680
 
  grep -v '^ *+' conftest.er1 >conftest.err
17681
 
  rm -f conftest.er1
17682
 
  cat conftest.err >&5
17683
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684
 
  (exit $ac_status); } &&
17685
 
         { ac_try='test -z "$ac_c_werror_flag"
17686
 
                         || test ! -s conftest.err'
17687
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688
 
  (eval $ac_try) 2>&5
17689
 
  ac_status=$?
17690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691
 
  (exit $ac_status); }; } &&
17692
 
         { ac_try='test -s conftest$ac_exeext'
17693
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694
 
  (eval $ac_try) 2>&5
17695
 
  ac_status=$?
17696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697
 
  (exit $ac_status); }; }; then
17698
 
  ac_cv_lib_dl_dlopen=yes
17699
 
else
17700
 
  echo "$as_me: failed program was:" >&5
17701
 
sed 's/^/| /' conftest.$ac_ext >&5
17702
 
 
17703
 
ac_cv_lib_dl_dlopen=no
17704
 
fi
17705
 
rm -f conftest.err conftest.$ac_objext \
17706
 
      conftest$ac_exeext conftest.$ac_ext
17707
 
LIBS=$ac_check_lib_save_LIBS
17708
 
fi
17709
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17710
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17711
 
if test $ac_cv_lib_dl_dlopen = yes; then
17712
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17713
 
else
17714
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17715
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17716
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17717
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17718
 
else
17719
 
  ac_check_lib_save_LIBS=$LIBS
17720
 
LIBS="-lsvld  $LIBS"
17721
 
cat >conftest.$ac_ext <<_ACEOF
17722
 
/* confdefs.h.  */
17723
 
_ACEOF
17724
 
cat confdefs.h >>conftest.$ac_ext
17725
 
cat >>conftest.$ac_ext <<_ACEOF
17726
 
/* end confdefs.h.  */
17727
 
 
17728
 
/* Override any gcc2 internal prototype to avoid an error.  */
17729
 
#ifdef __cplusplus
17730
 
extern "C"
17731
 
#endif
17732
 
/* We use char because int might match the return type of a gcc2
17733
 
   builtin and then its argument prototype would still apply.  */
17734
 
char dlopen ();
17735
 
int
17736
 
main ()
17737
 
{
17738
 
dlopen ();
17739
 
  ;
17740
 
  return 0;
17741
 
}
17742
 
_ACEOF
17743
 
rm -f conftest.$ac_objext conftest$ac_exeext
17744
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745
 
  (eval $ac_link) 2>conftest.er1
17746
 
  ac_status=$?
17747
 
  grep -v '^ *+' conftest.er1 >conftest.err
17748
 
  rm -f conftest.er1
17749
 
  cat conftest.err >&5
17750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751
 
  (exit $ac_status); } &&
17752
 
         { ac_try='test -z "$ac_c_werror_flag"
17753
 
                         || test ! -s conftest.err'
17754
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755
 
  (eval $ac_try) 2>&5
17756
 
  ac_status=$?
17757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
 
  (exit $ac_status); }; } &&
17759
 
         { ac_try='test -s conftest$ac_exeext'
17760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761
 
  (eval $ac_try) 2>&5
17762
 
  ac_status=$?
17763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764
 
  (exit $ac_status); }; }; then
17765
 
  ac_cv_lib_svld_dlopen=yes
17766
 
else
17767
 
  echo "$as_me: failed program was:" >&5
17768
 
sed 's/^/| /' conftest.$ac_ext >&5
17769
 
 
17770
 
ac_cv_lib_svld_dlopen=no
17771
 
fi
17772
 
rm -f conftest.err conftest.$ac_objext \
17773
 
      conftest$ac_exeext conftest.$ac_ext
17774
 
LIBS=$ac_check_lib_save_LIBS
17775
 
fi
17776
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17777
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17778
 
if test $ac_cv_lib_svld_dlopen = yes; then
17779
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17780
 
else
17781
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17782
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17783
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17785
 
else
17786
 
  ac_check_lib_save_LIBS=$LIBS
17787
 
LIBS="-ldld  $LIBS"
17788
 
cat >conftest.$ac_ext <<_ACEOF
17789
 
/* confdefs.h.  */
17790
 
_ACEOF
17791
 
cat confdefs.h >>conftest.$ac_ext
17792
 
cat >>conftest.$ac_ext <<_ACEOF
17793
 
/* end confdefs.h.  */
17794
 
 
17795
 
/* Override any gcc2 internal prototype to avoid an error.  */
17796
 
#ifdef __cplusplus
17797
 
extern "C"
17798
 
#endif
17799
 
/* We use char because int might match the return type of a gcc2
17800
 
   builtin and then its argument prototype would still apply.  */
17801
 
char dld_link ();
17802
 
int
17803
 
main ()
17804
 
{
17805
 
dld_link ();
17806
 
  ;
17807
 
  return 0;
17808
 
}
17809
 
_ACEOF
17810
 
rm -f conftest.$ac_objext conftest$ac_exeext
17811
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812
 
  (eval $ac_link) 2>conftest.er1
17813
 
  ac_status=$?
17814
 
  grep -v '^ *+' conftest.er1 >conftest.err
17815
 
  rm -f conftest.er1
17816
 
  cat conftest.err >&5
17817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818
 
  (exit $ac_status); } &&
17819
 
         { ac_try='test -z "$ac_c_werror_flag"
17820
 
                         || test ! -s conftest.err'
17821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
 
  (eval $ac_try) 2>&5
17823
 
  ac_status=$?
17824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
 
  (exit $ac_status); }; } &&
17826
 
         { ac_try='test -s conftest$ac_exeext'
17827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
 
  (eval $ac_try) 2>&5
17829
 
  ac_status=$?
17830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
 
  (exit $ac_status); }; }; then
17832
 
  ac_cv_lib_dld_dld_link=yes
17833
 
else
17834
 
  echo "$as_me: failed program was:" >&5
17835
 
sed 's/^/| /' conftest.$ac_ext >&5
17836
 
 
17837
 
ac_cv_lib_dld_dld_link=no
17838
 
fi
17839
 
rm -f conftest.err conftest.$ac_objext \
17840
 
      conftest$ac_exeext conftest.$ac_ext
17841
 
LIBS=$ac_check_lib_save_LIBS
17842
 
fi
17843
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17844
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17845
 
if test $ac_cv_lib_dld_dld_link = yes; then
17846
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17847
 
fi
17848
 
 
17849
 
 
17850
 
fi
17851
 
 
17852
 
 
17853
 
fi
17854
 
 
17855
 
 
17856
 
fi
17857
 
 
17858
 
 
17859
 
fi
17860
 
 
17861
 
 
17862
 
fi
17863
 
 
17864
 
    ;;
17865
 
  esac
17866
 
 
17867
 
  if test "x$lt_cv_dlopen" != xno; then
17868
 
    enable_dlopen=yes
17869
 
  else
17870
 
    enable_dlopen=no
17871
 
  fi
17872
 
 
17873
 
  case $lt_cv_dlopen in
17874
 
  dlopen)
17875
 
    save_CPPFLAGS="$CPPFLAGS"
17876
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17877
 
 
17878
 
    save_LDFLAGS="$LDFLAGS"
17879
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17880
 
 
17881
 
    save_LIBS="$LIBS"
17882
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17883
 
 
17884
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17885
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17886
 
if test "${lt_cv_dlopen_self+set}" = set; then
17887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17888
 
else
17889
 
          if test "$cross_compiling" = yes; then :
17890
 
  lt_cv_dlopen_self=cross
17891
 
else
17892
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17893
 
  lt_status=$lt_dlunknown
17894
 
  cat > conftest.$ac_ext <<EOF
17895
 
#line 17895 "configure"
17896
 
#include "confdefs.h"
17897
 
 
17898
 
#if HAVE_DLFCN_H
17899
 
#include <dlfcn.h>
17900
 
#endif
17901
 
 
17902
 
#include <stdio.h>
17903
 
 
17904
 
#ifdef RTLD_GLOBAL
17905
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17906
 
#else
17907
 
#  ifdef DL_GLOBAL
17908
 
#    define LT_DLGLOBAL         DL_GLOBAL
17909
 
#  else
17910
 
#    define LT_DLGLOBAL         0
17911
 
#  endif
17912
 
#endif
17913
 
 
17914
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17915
 
   find out it does not work in some platform. */
17916
 
#ifndef LT_DLLAZY_OR_NOW
17917
 
#  ifdef RTLD_LAZY
17918
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17919
 
#  else
17920
 
#    ifdef DL_LAZY
17921
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17922
 
#    else
17923
 
#      ifdef RTLD_NOW
17924
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17925
 
#      else
17926
 
#        ifdef DL_NOW
17927
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17928
 
#        else
17929
 
#          define LT_DLLAZY_OR_NOW      0
17930
 
#        endif
17931
 
#      endif
17932
 
#    endif
17933
 
#  endif
17934
 
#endif
17935
 
 
17936
 
#ifdef __cplusplus
17937
 
extern "C" void exit (int);
17938
 
#endif
17939
 
 
17940
 
void fnord() { int i=42;}
17941
 
int main ()
17942
 
{
17943
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17944
 
  int status = $lt_dlunknown;
17945
 
 
17946
 
  if (self)
17947
 
    {
17948
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17949
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17950
 
      /* dlclose (self); */
17951
 
    }
17952
 
 
17953
 
    exit (status);
17954
 
}
17955
 
EOF
17956
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
 
  (eval $ac_link) 2>&5
17958
 
  ac_status=$?
17959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17961
 
    (./conftest; exit; ) 2>/dev/null
17962
 
    lt_status=$?
17963
 
    case x$lt_status in
17964
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17965
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17966
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17967
 
    esac
17968
 
  else :
17969
 
    # compilation failed
17970
 
    lt_cv_dlopen_self=no
17971
 
  fi
17972
 
fi
17973
 
rm -fr conftest*
17974
 
 
17975
 
 
17976
 
fi
17977
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17978
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17979
 
 
17980
 
    if test "x$lt_cv_dlopen_self" = xyes; then
17981
 
      LDFLAGS="$LDFLAGS $link_static_flag"
17982
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17983
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17984
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
17985
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17986
 
else
17987
 
          if test "$cross_compiling" = yes; then :
17988
 
  lt_cv_dlopen_self_static=cross
17989
 
else
17990
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991
 
  lt_status=$lt_dlunknown
17992
 
  cat > conftest.$ac_ext <<EOF
17993
 
#line 17993 "configure"
17994
 
#include "confdefs.h"
17995
 
 
17996
 
#if HAVE_DLFCN_H
17997
 
#include <dlfcn.h>
17998
 
#endif
17999
 
 
18000
 
#include <stdio.h>
18001
 
 
18002
 
#ifdef RTLD_GLOBAL
18003
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18004
 
#else
18005
 
#  ifdef DL_GLOBAL
18006
 
#    define LT_DLGLOBAL         DL_GLOBAL
18007
 
#  else
18008
 
#    define LT_DLGLOBAL         0
18009
 
#  endif
18010
 
#endif
18011
 
 
18012
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013
 
   find out it does not work in some platform. */
18014
 
#ifndef LT_DLLAZY_OR_NOW
18015
 
#  ifdef RTLD_LAZY
18016
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18017
 
#  else
18018
 
#    ifdef DL_LAZY
18019
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18020
 
#    else
18021
 
#      ifdef RTLD_NOW
18022
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18023
 
#      else
18024
 
#        ifdef DL_NOW
18025
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18026
 
#        else
18027
 
#          define LT_DLLAZY_OR_NOW      0
18028
 
#        endif
18029
 
#      endif
18030
 
#    endif
18031
 
#  endif
18032
 
#endif
18033
 
 
18034
 
#ifdef __cplusplus
18035
 
extern "C" void exit (int);
18036
 
#endif
18037
 
 
18038
 
void fnord() { int i=42;}
18039
 
int main ()
18040
 
{
18041
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042
 
  int status = $lt_dlunknown;
18043
 
 
18044
 
  if (self)
18045
 
    {
18046
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18047
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18048
 
      /* dlclose (self); */
18049
 
    }
18050
 
 
18051
 
    exit (status);
18052
 
}
18053
 
EOF
18054
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055
 
  (eval $ac_link) 2>&5
18056
 
  ac_status=$?
18057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18059
 
    (./conftest; exit; ) 2>/dev/null
18060
 
    lt_status=$?
18061
 
    case x$lt_status in
18062
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18063
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18064
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18065
 
    esac
18066
 
  else :
18067
 
    # compilation failed
18068
 
    lt_cv_dlopen_self_static=no
18069
 
  fi
18070
 
fi
18071
 
rm -fr conftest*
18072
 
 
18073
 
 
18074
 
fi
18075
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18076
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18077
 
    fi
18078
 
 
18079
 
    CPPFLAGS="$save_CPPFLAGS"
18080
 
    LDFLAGS="$save_LDFLAGS"
18081
 
    LIBS="$save_LIBS"
18082
 
    ;;
18083
 
  esac
18084
 
 
18085
 
  case $lt_cv_dlopen_self in
18086
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18087
 
  *) enable_dlopen_self=unknown ;;
18088
 
  esac
18089
 
 
18090
 
  case $lt_cv_dlopen_self_static in
18091
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18092
 
  *) enable_dlopen_self_static=unknown ;;
18093
 
  esac
18094
 
fi
18095
 
 
18096
17748
 
18097
17749
# The else clause should only fire when bootstrapping the
18098
17750
# libtool distribution, otherwise you forgot to ship ltmain.sh
18107
17759
  # Now quote all the things that may contain metacharacters while being
18108
17760
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18109
17761
  # variables and quote the copies for generation of the libtool script.
18110
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17762
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17763
    SED SHELL STRIP \
18111
17764
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18112
17765
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18113
17766
    deplibs_check_method reload_flag reload_cmds need_locks \
18207
17860
# The host system.
18208
17861
host_alias=$host_alias
18209
17862
host=$host
 
17863
host_os=$host_os
 
17864
 
 
17865
# The build system.
 
17866
build_alias=$build_alias
 
17867
build=$build
 
17868
build_os=$build_os
18210
17869
 
18211
17870
# An echo program that does not interpret backslashes.
18212
17871
echo=$lt_echo
18218
17877
# A C compiler.
18219
17878
LTCC=$lt_LTCC
18220
17879
 
 
17880
# LTCC compiler flags.
 
17881
LTCFLAGS=$lt_LTCFLAGS
 
17882
 
18221
17883
# A language-specific compiler.
18222
17884
CC=$lt_compiler_GCJ
18223
17885
 
18224
17886
# Is the compiler the GNU C compiler?
18225
17887
with_gcc=$GCC_GCJ
18226
17888
 
 
17889
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
17890
gcc_ver=\`gcc -dumpversion\`
 
17891
 
18227
17892
# An ERE matcher.
18228
17893
EGREP=$lt_EGREP
18229
17894
 
18237
17902
NM=$lt_NM
18238
17903
 
18239
17904
# A symbol stripping program
18240
 
STRIP=$STRIP
 
17905
STRIP=$lt_STRIP
18241
17906
 
18242
17907
# Used to examine libraries when file_magic_cmd begins "file"
18243
17908
MAGIC_CMD=$MAGIC_CMD
18268
17933
libext="$libext"
18269
17934
 
18270
17935
# Shared library suffix (normally ".so").
18271
 
shrext='$shrext'
 
17936
shrext_cmds='$shrext_cmds'
18272
17937
 
18273
17938
# Executable file suffix (normally "").
18274
17939
exeext="$exeext"
18283
17948
# Does compiler simultaneously support -c and -o options?
18284
17949
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18285
17950
 
18286
 
# Must we lock files when doing compilation ?
 
17951
# Must we lock files when doing compilation?
18287
17952
need_locks=$lt_need_locks
18288
17953
 
18289
17954
# Do we need the lib prefix for modules?
18357
18022
 
18358
18023
# Dependencies to place before the objects being linked to create a
18359
18024
# shared library.
18360
 
predep_objects=$lt_predep_objects_GCJ
 
18025
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18361
18026
 
18362
18027
# Dependencies to place after the objects being linked to create a
18363
18028
# shared library.
18364
 
postdep_objects=$lt_postdep_objects_GCJ
 
18029
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18365
18030
 
18366
18031
# Dependencies to place before the objects being linked to create a
18367
18032
# shared library.
18373
18038
 
18374
18039
# The library search path used internally by the compiler when linking
18375
18040
# a shared library.
18376
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18041
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18377
18042
 
18378
18043
# Method to check whether dependent libraries are shared objects.
18379
18044
deplibs_check_method=$lt_deplibs_check_method
18453
18118
link_all_deplibs=$link_all_deplibs_GCJ
18454
18119
 
18455
18120
# Compile-time system search path for libraries
18456
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18121
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18457
18122
 
18458
18123
# Run-time system search path for libraries
18459
18124
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18485
18150
  # If there is no Makefile yet, we rely on a make rule to execute
18486
18151
  # `config.status --recheck' to rerun these tests and create the
18487
18152
  # libtool script then.
18488
 
  test -f Makefile && make "$ltmain"
 
18153
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18154
  if test -f "$ltmain_in"; then
 
18155
    test -f Makefile && make "$ltmain"
 
18156
  fi
18489
18157
fi
18490
18158
 
18491
18159
 
18524
18192
# If no C compiler was specified, use CC.
18525
18193
LTCC=${LTCC-"$CC"}
18526
18194
 
 
18195
# If no C compiler flags were specified, use CFLAGS.
 
18196
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18197
 
18527
18198
# Allow CC to be a program name with arguments.
18528
18199
compiler=$CC
18529
18200
 
18530
18201
 
 
18202
# save warnings/boilerplate of simple test code
 
18203
ac_outfile=conftest.$ac_objext
 
18204
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18205
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18206
_lt_compiler_boilerplate=`cat conftest.err`
 
18207
$rm conftest*
 
18208
 
 
18209
ac_outfile=conftest.$ac_objext
 
18210
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18211
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18212
_lt_linker_boilerplate=`cat conftest.err`
 
18213
$rm conftest*
 
18214
 
 
18215
 
18531
18216
# Allow CC to be a program name with arguments.
18532
18217
lt_save_CC="$CC"
18533
18218
CC=${RC-"windres"}
18534
18219
compiler=$CC
18535
18220
compiler_RC=$CC
 
18221
for cc_temp in $compiler""; do
 
18222
  case $cc_temp in
 
18223
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18224
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18225
    \-*) ;;
 
18226
    *) break;;
 
18227
  esac
 
18228
done
 
18229
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18230
 
18536
18231
lt_cv_prog_compiler_c_o_RC=yes
18537
18232
 
18538
18233
# The else clause should only fire when bootstrapping the
18548
18243
  # Now quote all the things that may contain metacharacters while being
18549
18244
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18550
18245
  # variables and quote the copies for generation of the libtool script.
18551
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
18246
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18247
    SED SHELL STRIP \
18552
18248
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18553
18249
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18554
18250
    deplibs_check_method reload_flag reload_cmds need_locks \
18648
18344
# The host system.
18649
18345
host_alias=$host_alias
18650
18346
host=$host
 
18347
host_os=$host_os
 
18348
 
 
18349
# The build system.
 
18350
build_alias=$build_alias
 
18351
build=$build
 
18352
build_os=$build_os
18651
18353
 
18652
18354
# An echo program that does not interpret backslashes.
18653
18355
echo=$lt_echo
18659
18361
# A C compiler.
18660
18362
LTCC=$lt_LTCC
18661
18363
 
 
18364
# LTCC compiler flags.
 
18365
LTCFLAGS=$lt_LTCFLAGS
 
18366
 
18662
18367
# A language-specific compiler.
18663
18368
CC=$lt_compiler_RC
18664
18369
 
18665
18370
# Is the compiler the GNU C compiler?
18666
18371
with_gcc=$GCC_RC
18667
18372
 
 
18373
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
18374
gcc_ver=\`gcc -dumpversion\`
 
18375
 
18668
18376
# An ERE matcher.
18669
18377
EGREP=$lt_EGREP
18670
18378
 
18678
18386
NM=$lt_NM
18679
18387
 
18680
18388
# A symbol stripping program
18681
 
STRIP=$STRIP
 
18389
STRIP=$lt_STRIP
18682
18390
 
18683
18391
# Used to examine libraries when file_magic_cmd begins "file"
18684
18392
MAGIC_CMD=$MAGIC_CMD
18709
18417
libext="$libext"
18710
18418
 
18711
18419
# Shared library suffix (normally ".so").
18712
 
shrext='$shrext'
 
18420
shrext_cmds='$shrext_cmds'
18713
18421
 
18714
18422
# Executable file suffix (normally "").
18715
18423
exeext="$exeext"
18724
18432
# Does compiler simultaneously support -c and -o options?
18725
18433
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18726
18434
 
18727
 
# Must we lock files when doing compilation ?
 
18435
# Must we lock files when doing compilation?
18728
18436
need_locks=$lt_need_locks
18729
18437
 
18730
18438
# Do we need the lib prefix for modules?
18798
18506
 
18799
18507
# Dependencies to place before the objects being linked to create a
18800
18508
# shared library.
18801
 
predep_objects=$lt_predep_objects_RC
 
18509
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18802
18510
 
18803
18511
# Dependencies to place after the objects being linked to create a
18804
18512
# shared library.
18805
 
postdep_objects=$lt_postdep_objects_RC
 
18513
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18806
18514
 
18807
18515
# Dependencies to place before the objects being linked to create a
18808
18516
# shared library.
18814
18522
 
18815
18523
# The library search path used internally by the compiler when linking
18816
18524
# a shared library.
18817
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18525
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18818
18526
 
18819
18527
# Method to check whether dependent libraries are shared objects.
18820
18528
deplibs_check_method=$lt_deplibs_check_method
18894
18602
link_all_deplibs=$link_all_deplibs_RC
18895
18603
 
18896
18604
# Compile-time system search path for libraries
18897
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18605
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18898
18606
 
18899
18607
# Run-time system search path for libraries
18900
18608
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18926
18634
  # If there is no Makefile yet, we rely on a make rule to execute
18927
18635
  # `config.status --recheck' to rerun these tests and create the
18928
18636
  # libtool script then.
18929
 
  test -f Makefile && make "$ltmain"
 
18637
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18638
  if test -f "$ltmain_in"; then
 
18639
    test -f Makefile && make "$ltmain"
 
18640
  fi
18930
18641
fi
18931
18642
 
18932
18643
 
18997
18708
 
18998
18709
 
18999
18710
 
19000
 
echo "$as_me:$LINENO: checking for library containing strerror" >&5
19001
 
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
19002
 
if test "${ac_cv_search_strerror+set}" = set; then
 
18711
 
 
18712
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
18713
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
18714
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19003
18715
  echo $ECHO_N "(cached) $ECHO_C" >&6
19004
18716
else
19005
 
  ac_func_search_save_LIBS=$LIBS
19006
 
ac_cv_search_strerror=no
 
18717
  ac_check_lib_save_LIBS=$LIBS
 
18718
LIBS="-lcposix  $LIBS"
19007
18719
cat >conftest.$ac_ext <<_ACEOF
19008
18720
/* confdefs.h.  */
19009
18721
_ACEOF
19048
18760
  ac_status=$?
19049
18761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050
18762
  (exit $ac_status); }; }; then
19051
 
  ac_cv_search_strerror="none required"
19052
 
else
19053
 
  echo "$as_me: failed program was:" >&5
19054
 
sed 's/^/| /' conftest.$ac_ext >&5
19055
 
 
19056
 
fi
19057
 
rm -f conftest.err conftest.$ac_objext \
19058
 
      conftest$ac_exeext conftest.$ac_ext
19059
 
if test "$ac_cv_search_strerror" = no; then
19060
 
  for ac_lib in cposix; do
19061
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19062
 
    cat >conftest.$ac_ext <<_ACEOF
19063
 
/* confdefs.h.  */
19064
 
_ACEOF
19065
 
cat confdefs.h >>conftest.$ac_ext
19066
 
cat >>conftest.$ac_ext <<_ACEOF
19067
 
/* end confdefs.h.  */
19068
 
 
19069
 
/* Override any gcc2 internal prototype to avoid an error.  */
19070
 
#ifdef __cplusplus
19071
 
extern "C"
19072
 
#endif
19073
 
/* We use char because int might match the return type of a gcc2
19074
 
   builtin and then its argument prototype would still apply.  */
19075
 
char strerror ();
19076
 
int
19077
 
main ()
19078
 
{
19079
 
strerror ();
19080
 
  ;
19081
 
  return 0;
19082
 
}
19083
 
_ACEOF
19084
 
rm -f conftest.$ac_objext conftest$ac_exeext
19085
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086
 
  (eval $ac_link) 2>conftest.er1
19087
 
  ac_status=$?
19088
 
  grep -v '^ *+' conftest.er1 >conftest.err
19089
 
  rm -f conftest.er1
19090
 
  cat conftest.err >&5
19091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092
 
  (exit $ac_status); } &&
19093
 
         { ac_try='test -z "$ac_c_werror_flag"
19094
 
                         || test ! -s conftest.err'
19095
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096
 
  (eval $ac_try) 2>&5
19097
 
  ac_status=$?
19098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099
 
  (exit $ac_status); }; } &&
19100
 
         { ac_try='test -s conftest$ac_exeext'
19101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102
 
  (eval $ac_try) 2>&5
19103
 
  ac_status=$?
19104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105
 
  (exit $ac_status); }; }; then
19106
 
  ac_cv_search_strerror="-l$ac_lib"
19107
 
break
19108
 
else
19109
 
  echo "$as_me: failed program was:" >&5
19110
 
sed 's/^/| /' conftest.$ac_ext >&5
19111
 
 
19112
 
fi
19113
 
rm -f conftest.err conftest.$ac_objext \
19114
 
      conftest$ac_exeext conftest.$ac_ext
19115
 
  done
19116
 
fi
19117
 
LIBS=$ac_func_search_save_LIBS
19118
 
fi
19119
 
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
19120
 
echo "${ECHO_T}$ac_cv_search_strerror" >&6
19121
 
if test "$ac_cv_search_strerror" != no; then
19122
 
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
19123
 
 
19124
 
fi
 
18763
  ac_cv_lib_cposix_strerror=yes
 
18764
else
 
18765
  echo "$as_me: failed program was:" >&5
 
18766
sed 's/^/| /' conftest.$ac_ext >&5
 
18767
 
 
18768
ac_cv_lib_cposix_strerror=no
 
18769
fi
 
18770
rm -f conftest.err conftest.$ac_objext \
 
18771
      conftest$ac_exeext conftest.$ac_ext
 
18772
LIBS=$ac_check_lib_save_LIBS
 
18773
fi
 
18774
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
18775
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
18776
if test $ac_cv_lib_cposix_strerror = yes; then
 
18777
  LIBS="$LIBS -lcposix"
 
18778
fi
 
18779
 
 
18780
 
19125
18781
 
19126
18782
ac_ext=c
19127
18783
ac_cpp='$CPP $CPPFLAGS'
19893
19549
    : > sub/conftest.c
19894
19550
    for i in 1 2 3 4 5 6; do
19895
19551
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19896
 
      : > sub/conftst$i.h
 
19552
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19553
      # Solaris 8's {/usr,}/bin/sh.
 
19554
      touch sub/conftst$i.h
19897
19555
    done
19898
19556
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19899
19557
 
19921
19579
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19922
19580
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19923
19581
      # icc doesn't choke on unknown options, it will just issue warnings
19924
 
      # (even with -Werror).  So we grep stderr for any message
19925
 
      # that says an option was ignored.
19926
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
19582
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19583
      # that says an option was ignored or not supported.
 
19584
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19585
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19586
      # The diagnosis changed in icc 8.0:
 
19587
      #   icc: Command line remark: option '-MP' not supported
 
19588
      if (grep 'ignoring option' conftest.err ||
 
19589
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19927
19590
        am_cv_CC_dependencies_compiler_type=$depmode
19928
19591
        break
19929
19592
      fi
20724
20387
    : > sub/conftest.c
20725
20388
    for i in 1 2 3 4 5 6; do
20726
20389
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20727
 
      : > sub/conftst$i.h
 
20390
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
20391
      # Solaris 8's {/usr,}/bin/sh.
 
20392
      touch sub/conftst$i.h
20728
20393
    done
20729
20394
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20730
20395
 
20752
20417
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20753
20418
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20754
20419
      # icc doesn't choke on unknown options, it will just issue warnings
20755
 
      # (even with -Werror).  So we grep stderr for any message
20756
 
      # that says an option was ignored.
20757
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
20420
      # or remarks (even with -Werror).  So we grep stderr for any message
 
20421
      # that says an option was ignored or not supported.
 
20422
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
20423
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
20424
      # The diagnosis changed in icc 8.0:
 
20425
      #   icc: Command line remark: option '-MP' not supported
 
20426
      if (grep 'ignoring option' conftest.err ||
 
20427
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20758
20428
        am_cv_CC_dependencies_compiler_type=$depmode
20759
20429
        break
20760
20430
      fi
21066
20736
RELDATE=`date +'%a %b %e %Y'`
21067
20737
 
21068
20738
 
 
20739
# Check whether --enable-docs or --disable-docs was given.
 
20740
if test "${enable_docs+set}" = set; then
 
20741
  enableval="$enable_docs"
 
20742
  build_docs="${enableval}"
 
20743
else
 
20744
  build_docs=no
 
20745
fi;
 
20746
 
 
20747
 
 
20748
 
 
20749
if test x$build_docs = xyes; then
 
20750
  BUILD_DOCS_TRUE=
 
20751
  BUILD_DOCS_FALSE='#'
 
20752
else
 
20753
  BUILD_DOCS_TRUE='#'
 
20754
  BUILD_DOCS_FALSE=
 
20755
fi
 
20756
 
 
20757
 
21069
20758
##################################################
21070
20759
# Check for gtk-doc.
21071
20760
##################################################
21106
20795
  enable_gtk_doc=auto
21107
20796
fi;
21108
20797
 
21109
 
if test x$enable_gtk_doc = xauto ; then
 
20798
if test x$enable_gtk_doc = xauto -o x$enable_gtk_doc = xyes ; then
21110
20799
  if test x$GTKDOC = xtrue ; then
21111
20800
    enable_gtk_doc=yes
21112
20801
  else
21128
20817
 
21129
20818
 
21130
20819
 
21131
 
for ac_func in usleep setsid getlogin_r
 
20820
 
 
20821
 
 
20822
for ac_func in usleep setsid setenv putenv getlogin_r
21132
20823
do
21133
20824
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21134
20825
echo "$as_me:$LINENO: checking for $ac_func" >&5
21305
20996
 
21306
20997
 
21307
20998
 
21308
 
  succeeded=no
21309
 
 
21310
 
  if test -z "$PKG_CONFIG"; then
21311
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
21312
 
set dummy pkg-config; ac_word=$2
21313
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
21314
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21315
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21316
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21317
 
else
21318
 
  case $PKG_CONFIG in
21319
 
  [\\/]* | ?:[\\/]*)
21320
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21321
 
  ;;
21322
 
  *)
21323
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324
 
for as_dir in $PATH
21325
 
do
21326
 
  IFS=$as_save_IFS
21327
 
  test -z "$as_dir" && as_dir=.
21328
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21329
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21330
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21331
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21332
 
    break 2
21333
 
  fi
21334
 
done
21335
 
done
21336
 
 
21337
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21338
 
  ;;
21339
 
esac
21340
 
fi
21341
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21342
 
 
21343
 
if test -n "$PKG_CONFIG"; then
21344
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21345
 
echo "${ECHO_T}$PKG_CONFIG" >&6
21346
 
else
21347
 
  echo "$as_me:$LINENO: result: no" >&5
21348
 
echo "${ECHO_T}no" >&6
21349
 
fi
21350
 
 
21351
 
  fi
21352
 
 
21353
 
  if test "$PKG_CONFIG" = "no" ; then
21354
 
     echo "*** The pkg-config script could not be found. Make sure it is"
21355
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
21356
 
     echo "*** to the full path to pkg-config."
21357
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21358
 
  else
21359
 
     PKG_CONFIG_MIN_VERSION=0.9.0
21360
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21361
 
        echo "$as_me:$LINENO: checking for glib-2.0" >&5
21362
 
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21363
 
 
21364
 
        if $PKG_CONFIG --exists "glib-2.0" ; then
21365
 
            echo "$as_me:$LINENO: result: yes" >&5
21366
 
echo "${ECHO_T}yes" >&6
21367
 
            succeeded=yes
21368
 
 
21369
 
            echo "$as_me:$LINENO: checking DAEMON_CFLAGS" >&5
21370
 
echo $ECHO_N "checking DAEMON_CFLAGS... $ECHO_C" >&6
21371
 
            DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21372
 
            echo "$as_me:$LINENO: result: $DAEMON_CFLAGS" >&5
21373
 
echo "${ECHO_T}$DAEMON_CFLAGS" >&6
21374
 
 
21375
 
            echo "$as_me:$LINENO: checking DAEMON_LIBS" >&5
21376
 
echo $ECHO_N "checking DAEMON_LIBS... $ECHO_C" >&6
21377
 
            DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21378
 
            echo "$as_me:$LINENO: result: $DAEMON_LIBS" >&5
21379
 
echo "${ECHO_T}$DAEMON_LIBS" >&6
21380
 
        else
21381
 
            DAEMON_CFLAGS=""
21382
 
            DAEMON_LIBS=""
21383
 
            ## If we have a custom action on failure, don't print errors, but
21384
 
            ## do set a variable so people can do so.
21385
 
            DAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21386
 
            echo $DAEMON_PKG_ERRORS
21387
 
        fi
21388
 
 
21389
 
 
21390
 
 
21391
 
     else
21392
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21393
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21394
 
     fi
21395
 
  fi
21396
 
 
21397
 
  if test $succeeded = yes; then
21398
 
     :
21399
 
  else
21400
 
     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21401
 
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21402
 
   { (exit 1); exit 1; }; }
21403
 
  fi
21404
 
 
21405
 
 
21406
 
 
21407
 
 
21408
 
 
21409
 
  succeeded=no
21410
 
 
21411
 
  if test -z "$PKG_CONFIG"; then
21412
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
21413
 
set dummy pkg-config; ac_word=$2
21414
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
21415
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21416
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21417
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21418
 
else
21419
 
  case $PKG_CONFIG in
21420
 
  [\\/]* | ?:[\\/]*)
21421
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21422
 
  ;;
21423
 
  *)
21424
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425
 
for as_dir in $PATH
21426
 
do
21427
 
  IFS=$as_save_IFS
21428
 
  test -z "$as_dir" && as_dir=.
21429
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21430
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21431
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21432
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21433
 
    break 2
21434
 
  fi
21435
 
done
21436
 
done
21437
 
 
21438
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21439
 
  ;;
21440
 
esac
21441
 
fi
21442
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21443
 
 
21444
 
if test -n "$PKG_CONFIG"; then
21445
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21446
 
echo "${ECHO_T}$PKG_CONFIG" >&6
21447
 
else
21448
 
  echo "$as_me:$LINENO: result: no" >&5
21449
 
echo "${ECHO_T}no" >&6
21450
 
fi
21451
 
 
21452
 
  fi
21453
 
 
21454
 
  if test "$PKG_CONFIG" = "no" ; then
21455
 
     echo "*** The pkg-config script could not be found. Make sure it is"
21456
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
21457
 
     echo "*** to the full path to pkg-config."
21458
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21459
 
  else
21460
 
     PKG_CONFIG_MIN_VERSION=0.9.0
21461
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21462
 
        echo "$as_me:$LINENO: checking for glib-2.0" >&5
21463
 
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21464
 
 
21465
 
        if $PKG_CONFIG --exists "glib-2.0" ; then
21466
 
            echo "$as_me:$LINENO: result: yes" >&5
21467
 
echo "${ECHO_T}yes" >&6
21468
 
            succeeded=yes
21469
 
 
21470
 
            echo "$as_me:$LINENO: checking LIBGAMIN_CFLAGS" >&5
21471
 
echo $ECHO_N "checking LIBGAMIN_CFLAGS... $ECHO_C" >&6
21472
 
            LIBGAMIN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21473
 
            echo "$as_me:$LINENO: result: $LIBGAMIN_CFLAGS" >&5
21474
 
echo "${ECHO_T}$LIBGAMIN_CFLAGS" >&6
21475
 
 
21476
 
            echo "$as_me:$LINENO: checking LIBGAMIN_LIBS" >&5
21477
 
echo $ECHO_N "checking LIBGAMIN_LIBS... $ECHO_C" >&6
21478
 
            LIBGAMIN_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21479
 
            echo "$as_me:$LINENO: result: $LIBGAMIN_LIBS" >&5
21480
 
echo "${ECHO_T}$LIBGAMIN_LIBS" >&6
21481
 
        else
21482
 
            LIBGAMIN_CFLAGS=""
21483
 
            LIBGAMIN_LIBS=""
21484
 
            ## If we have a custom action on failure, don't print errors, but
21485
 
            ## do set a variable so people can do so.
21486
 
            LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21487
 
            echo $LIBGAMIN_PKG_ERRORS
21488
 
        fi
21489
 
 
21490
 
 
21491
 
 
21492
 
     else
21493
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21494
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21495
 
     fi
21496
 
  fi
21497
 
 
21498
 
  if test $succeeded = yes; then
21499
 
     :
21500
 
  else
21501
 
     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21502
 
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21503
 
   { (exit 1); exit 1; }; }
21504
 
  fi
21505
 
 
21506
 
 
21507
 
 
21508
 
 
21509
 
 
21510
 
  succeeded=no
21511
 
 
21512
 
  if test -z "$PKG_CONFIG"; then
21513
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
21514
 
set dummy pkg-config; ac_word=$2
21515
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
21516
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21517
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21518
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21519
 
else
21520
 
  case $PKG_CONFIG in
21521
 
  [\\/]* | ?:[\\/]*)
21522
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21523
 
  ;;
21524
 
  *)
21525
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526
 
for as_dir in $PATH
21527
 
do
21528
 
  IFS=$as_save_IFS
21529
 
  test -z "$as_dir" && as_dir=.
21530
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21531
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21532
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21533
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21534
 
    break 2
21535
 
  fi
21536
 
done
21537
 
done
21538
 
 
21539
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21540
 
  ;;
21541
 
esac
21542
 
fi
21543
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21544
 
 
21545
 
if test -n "$PKG_CONFIG"; then
21546
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21547
 
echo "${ECHO_T}$PKG_CONFIG" >&6
21548
 
else
21549
 
  echo "$as_me:$LINENO: result: no" >&5
21550
 
echo "${ECHO_T}no" >&6
21551
 
fi
21552
 
 
21553
 
  fi
21554
 
 
21555
 
  if test "$PKG_CONFIG" = "no" ; then
21556
 
     echo "*** The pkg-config script could not be found. Make sure it is"
21557
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
21558
 
     echo "*** to the full path to pkg-config."
21559
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21560
 
  else
21561
 
     PKG_CONFIG_MIN_VERSION=0.9.0
21562
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21563
 
        echo "$as_me:$LINENO: checking for glib-2.0" >&5
21564
 
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21565
 
 
21566
 
        if $PKG_CONFIG --exists "glib-2.0" ; then
21567
 
            echo "$as_me:$LINENO: result: yes" >&5
21568
 
echo "${ECHO_T}yes" >&6
21569
 
            succeeded=yes
21570
 
 
21571
 
            echo "$as_me:$LINENO: checking TEST_CFLAGS" >&5
21572
 
echo $ECHO_N "checking TEST_CFLAGS... $ECHO_C" >&6
21573
 
            TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21574
 
            echo "$as_me:$LINENO: result: $TEST_CFLAGS" >&5
21575
 
echo "${ECHO_T}$TEST_CFLAGS" >&6
21576
 
 
21577
 
            echo "$as_me:$LINENO: checking TEST_LIBS" >&5
21578
 
echo $ECHO_N "checking TEST_LIBS... $ECHO_C" >&6
21579
 
            TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21580
 
            echo "$as_me:$LINENO: result: $TEST_LIBS" >&5
21581
 
echo "${ECHO_T}$TEST_LIBS" >&6
21582
 
        else
21583
 
            TEST_CFLAGS=""
21584
 
            TEST_LIBS=""
21585
 
            ## If we have a custom action on failure, don't print errors, but
21586
 
            ## do set a variable so people can do so.
21587
 
            TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21588
 
            echo $TEST_PKG_ERRORS
21589
 
        fi
21590
 
 
21591
 
 
21592
 
 
21593
 
     else
21594
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21595
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21596
 
     fi
21597
 
  fi
21598
 
 
21599
 
  if test $succeeded = yes; then
21600
 
     :
21601
 
  else
21602
 
     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21603
 
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21604
 
   { (exit 1); exit 1; }; }
21605
 
  fi
21606
 
 
21607
 
 
21608
 
 
 
20999
 
 
21000
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
21001
        if test -n "$ac_tool_prefix"; then
 
21002
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
21003
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
21004
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21005
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21006
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21008
else
 
21009
  case $PKG_CONFIG in
 
21010
  [\\/]* | ?:[\\/]*)
 
21011
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21012
  ;;
 
21013
  *)
 
21014
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21015
for as_dir in $PATH
 
21016
do
 
21017
  IFS=$as_save_IFS
 
21018
  test -z "$as_dir" && as_dir=.
 
21019
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21020
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21021
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21022
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21023
    break 2
 
21024
  fi
 
21025
done
 
21026
done
 
21027
 
 
21028
  ;;
 
21029
esac
 
21030
fi
 
21031
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21032
 
 
21033
if test -n "$PKG_CONFIG"; then
 
21034
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21035
echo "${ECHO_T}$PKG_CONFIG" >&6
 
21036
else
 
21037
  echo "$as_me:$LINENO: result: no" >&5
 
21038
echo "${ECHO_T}no" >&6
 
21039
fi
 
21040
 
 
21041
fi
 
21042
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
21043
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
21044
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
21045
set dummy pkg-config; ac_word=$2
 
21046
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21047
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21048
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
21049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21050
else
 
21051
  case $ac_pt_PKG_CONFIG in
 
21052
  [\\/]* | ?:[\\/]*)
 
21053
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
21054
  ;;
 
21055
  *)
 
21056
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21057
for as_dir in $PATH
 
21058
do
 
21059
  IFS=$as_save_IFS
 
21060
  test -z "$as_dir" && as_dir=.
 
21061
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21062
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21063
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21064
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21065
    break 2
 
21066
  fi
 
21067
done
 
21068
done
 
21069
 
 
21070
  ;;
 
21071
esac
 
21072
fi
 
21073
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
21074
 
 
21075
if test -n "$ac_pt_PKG_CONFIG"; then
 
21076
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
21077
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
21078
else
 
21079
  echo "$as_me:$LINENO: result: no" >&5
 
21080
echo "${ECHO_T}no" >&6
 
21081
fi
 
21082
 
 
21083
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
21084
else
 
21085
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
21086
fi
 
21087
 
 
21088
fi
 
21089
if test -n "$PKG_CONFIG"; then
 
21090
        _pkg_min_version=0.9.0
 
21091
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
21092
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
21093
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
21094
                echo "$as_me:$LINENO: result: yes" >&5
 
21095
echo "${ECHO_T}yes" >&6
 
21096
        else
 
21097
                echo "$as_me:$LINENO: result: no" >&5
 
21098
echo "${ECHO_T}no" >&6
 
21099
                PKG_CONFIG=""
 
21100
        fi
 
21101
 
 
21102
fi
 
21103
 
 
21104
pkg_failed=no
 
21105
echo "$as_me:$LINENO: checking for DAEMON" >&5
 
21106
echo $ECHO_N "checking for DAEMON... $ECHO_C" >&6
 
21107
 
 
21108
if test -n "$PKG_CONFIG"; then
 
21109
    if test -n "$DAEMON_CFLAGS"; then
 
21110
        pkg_cv_DAEMON_CFLAGS="$DAEMON_CFLAGS"
 
21111
    else
 
21112
        if test -n "$PKG_CONFIG" && \
 
21113
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21114
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21115
  ac_status=$?
 
21116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); }; then
 
21118
  pkg_cv_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 
21119
else
 
21120
  pkg_failed=yes
 
21121
fi
 
21122
    fi
 
21123
else
 
21124
        pkg_failed=untried
 
21125
fi
 
21126
if test -n "$PKG_CONFIG"; then
 
21127
    if test -n "$DAEMON_LIBS"; then
 
21128
        pkg_cv_DAEMON_LIBS="$DAEMON_LIBS"
 
21129
    else
 
21130
        if test -n "$PKG_CONFIG" && \
 
21131
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21132
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21133
  ac_status=$?
 
21134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21135
  (exit $ac_status); }; then
 
21136
  pkg_cv_DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 
21137
else
 
21138
  pkg_failed=yes
 
21139
fi
 
21140
    fi
 
21141
else
 
21142
        pkg_failed=untried
 
21143
fi
 
21144
 
 
21145
 
 
21146
 
 
21147
if test $pkg_failed = yes; then
 
21148
 
 
21149
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21150
        _pkg_short_errors_supported=yes
 
21151
else
 
21152
        _pkg_short_errors_supported=no
 
21153
fi
 
21154
        if test $_pkg_short_errors_supported = yes; then
 
21155
                DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
 
21156
        else
 
21157
                DAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
 
21158
        fi
 
21159
        # Put the nasty error message in config.log where it belongs
 
21160
        echo "$DAEMON_PKG_ERRORS" >&5
 
21161
 
 
21162
        { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 
21163
 
 
21164
$DAEMON_PKG_ERRORS
 
21165
 
 
21166
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21167
installed software in a non-standard prefix.
 
21168
 
 
21169
Alternatively, you may set the environment variables DAEMON_CFLAGS
 
21170
and DAEMON_LIBS to avoid the need to call pkg-config.
 
21171
See the pkg-config man page for more details.
 
21172
" >&5
 
21173
echo "$as_me: error: Package requirements (glib-2.0) were not met:
 
21174
 
 
21175
$DAEMON_PKG_ERRORS
 
21176
 
 
21177
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21178
installed software in a non-standard prefix.
 
21179
 
 
21180
Alternatively, you may set the environment variables DAEMON_CFLAGS
 
21181
and DAEMON_LIBS to avoid the need to call pkg-config.
 
21182
See the pkg-config man page for more details.
 
21183
" >&2;}
 
21184
   { (exit 1); exit 1; }; }
 
21185
elif test $pkg_failed = untried; then
 
21186
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21187
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21188
path to pkg-config.
 
21189
 
 
21190
Alternatively, you may set the environment variables DAEMON_CFLAGS
 
21191
and DAEMON_LIBS to avoid the need to call pkg-config.
 
21192
See the pkg-config man page for more details.
 
21193
 
 
21194
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21195
See \`config.log' for more details." >&5
 
21196
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21197
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21198
path to pkg-config.
 
21199
 
 
21200
Alternatively, you may set the environment variables DAEMON_CFLAGS
 
21201
and DAEMON_LIBS to avoid the need to call pkg-config.
 
21202
See the pkg-config man page for more details.
 
21203
 
 
21204
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21205
See \`config.log' for more details." >&2;}
 
21206
   { (exit 1); exit 1; }; }
 
21207
else
 
21208
        DAEMON_CFLAGS=$pkg_cv_DAEMON_CFLAGS
 
21209
        DAEMON_LIBS=$pkg_cv_DAEMON_LIBS
 
21210
        echo "$as_me:$LINENO: result: yes" >&5
 
21211
echo "${ECHO_T}yes" >&6
 
21212
        :
 
21213
fi
 
21214
 
 
21215
 
 
21216
 
 
21217
 
 
21218
pkg_failed=no
 
21219
echo "$as_me:$LINENO: checking for LIBGAMIN" >&5
 
21220
echo $ECHO_N "checking for LIBGAMIN... $ECHO_C" >&6
 
21221
 
 
21222
if test -n "$PKG_CONFIG"; then
 
21223
    if test -n "$LIBGAMIN_CFLAGS"; then
 
21224
        pkg_cv_LIBGAMIN_CFLAGS="$LIBGAMIN_CFLAGS"
 
21225
    else
 
21226
        if test -n "$PKG_CONFIG" && \
 
21227
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21228
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21229
  ac_status=$?
 
21230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21231
  (exit $ac_status); }; then
 
21232
  pkg_cv_LIBGAMIN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 
21233
else
 
21234
  pkg_failed=yes
 
21235
fi
 
21236
    fi
 
21237
else
 
21238
        pkg_failed=untried
 
21239
fi
 
21240
if test -n "$PKG_CONFIG"; then
 
21241
    if test -n "$LIBGAMIN_LIBS"; then
 
21242
        pkg_cv_LIBGAMIN_LIBS="$LIBGAMIN_LIBS"
 
21243
    else
 
21244
        if test -n "$PKG_CONFIG" && \
 
21245
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21246
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21247
  ac_status=$?
 
21248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21249
  (exit $ac_status); }; then
 
21250
  pkg_cv_LIBGAMIN_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 
21251
else
 
21252
  pkg_failed=yes
 
21253
fi
 
21254
    fi
 
21255
else
 
21256
        pkg_failed=untried
 
21257
fi
 
21258
 
 
21259
 
 
21260
 
 
21261
if test $pkg_failed = yes; then
 
21262
 
 
21263
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21264
        _pkg_short_errors_supported=yes
 
21265
else
 
21266
        _pkg_short_errors_supported=no
 
21267
fi
 
21268
        if test $_pkg_short_errors_supported = yes; then
 
21269
                LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
 
21270
        else
 
21271
                LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
 
21272
        fi
 
21273
        # Put the nasty error message in config.log where it belongs
 
21274
        echo "$LIBGAMIN_PKG_ERRORS" >&5
 
21275
 
 
21276
        { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 
21277
 
 
21278
$LIBGAMIN_PKG_ERRORS
 
21279
 
 
21280
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21281
installed software in a non-standard prefix.
 
21282
 
 
21283
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
 
21284
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
 
21285
See the pkg-config man page for more details.
 
21286
" >&5
 
21287
echo "$as_me: error: Package requirements (glib-2.0) were not met:
 
21288
 
 
21289
$LIBGAMIN_PKG_ERRORS
 
21290
 
 
21291
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21292
installed software in a non-standard prefix.
 
21293
 
 
21294
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
 
21295
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
 
21296
See the pkg-config man page for more details.
 
21297
" >&2;}
 
21298
   { (exit 1); exit 1; }; }
 
21299
elif test $pkg_failed = untried; then
 
21300
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21301
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21302
path to pkg-config.
 
21303
 
 
21304
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
 
21305
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
 
21306
See the pkg-config man page for more details.
 
21307
 
 
21308
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21309
See \`config.log' for more details." >&5
 
21310
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21311
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21312
path to pkg-config.
 
21313
 
 
21314
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
 
21315
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
 
21316
See the pkg-config man page for more details.
 
21317
 
 
21318
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21319
See \`config.log' for more details." >&2;}
 
21320
   { (exit 1); exit 1; }; }
 
21321
else
 
21322
        LIBGAMIN_CFLAGS=$pkg_cv_LIBGAMIN_CFLAGS
 
21323
        LIBGAMIN_LIBS=$pkg_cv_LIBGAMIN_LIBS
 
21324
        echo "$as_me:$LINENO: result: yes" >&5
 
21325
echo "${ECHO_T}yes" >&6
 
21326
        :
 
21327
fi
 
21328
 
 
21329
 
 
21330
 
 
21331
 
 
21332
pkg_failed=no
 
21333
echo "$as_me:$LINENO: checking for TEST" >&5
 
21334
echo $ECHO_N "checking for TEST... $ECHO_C" >&6
 
21335
 
 
21336
if test -n "$PKG_CONFIG"; then
 
21337
    if test -n "$TEST_CFLAGS"; then
 
21338
        pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
 
21339
    else
 
21340
        if test -n "$PKG_CONFIG" && \
 
21341
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21342
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21343
  ac_status=$?
 
21344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21345
  (exit $ac_status); }; then
 
21346
  pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 
21347
else
 
21348
  pkg_failed=yes
 
21349
fi
 
21350
    fi
 
21351
else
 
21352
        pkg_failed=untried
 
21353
fi
 
21354
if test -n "$PKG_CONFIG"; then
 
21355
    if test -n "$TEST_LIBS"; then
 
21356
        pkg_cv_TEST_LIBS="$TEST_LIBS"
 
21357
    else
 
21358
        if test -n "$PKG_CONFIG" && \
 
21359
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 
21360
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 
21361
  ac_status=$?
 
21362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21363
  (exit $ac_status); }; then
 
21364
  pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 
21365
else
 
21366
  pkg_failed=yes
 
21367
fi
 
21368
    fi
 
21369
else
 
21370
        pkg_failed=untried
 
21371
fi
 
21372
 
 
21373
 
 
21374
 
 
21375
if test $pkg_failed = yes; then
 
21376
 
 
21377
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21378
        _pkg_short_errors_supported=yes
 
21379
else
 
21380
        _pkg_short_errors_supported=no
 
21381
fi
 
21382
        if test $_pkg_short_errors_supported = yes; then
 
21383
                TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
 
21384
        else
 
21385
                TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
 
21386
        fi
 
21387
        # Put the nasty error message in config.log where it belongs
 
21388
        echo "$TEST_PKG_ERRORS" >&5
 
21389
 
 
21390
        { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 
21391
 
 
21392
$TEST_PKG_ERRORS
 
21393
 
 
21394
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21395
installed software in a non-standard prefix.
 
21396
 
 
21397
Alternatively, you may set the environment variables TEST_CFLAGS
 
21398
and TEST_LIBS to avoid the need to call pkg-config.
 
21399
See the pkg-config man page for more details.
 
21400
" >&5
 
21401
echo "$as_me: error: Package requirements (glib-2.0) were not met:
 
21402
 
 
21403
$TEST_PKG_ERRORS
 
21404
 
 
21405
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21406
installed software in a non-standard prefix.
 
21407
 
 
21408
Alternatively, you may set the environment variables TEST_CFLAGS
 
21409
and TEST_LIBS to avoid the need to call pkg-config.
 
21410
See the pkg-config man page for more details.
 
21411
" >&2;}
 
21412
   { (exit 1); exit 1; }; }
 
21413
elif test $pkg_failed = untried; then
 
21414
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21415
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21416
path to pkg-config.
 
21417
 
 
21418
Alternatively, you may set the environment variables TEST_CFLAGS
 
21419
and TEST_LIBS to avoid the need to call pkg-config.
 
21420
See the pkg-config man page for more details.
 
21421
 
 
21422
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21423
See \`config.log' for more details." >&5
 
21424
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21425
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21426
path to pkg-config.
 
21427
 
 
21428
Alternatively, you may set the environment variables TEST_CFLAGS
 
21429
and TEST_LIBS to avoid the need to call pkg-config.
 
21430
See the pkg-config man page for more details.
 
21431
 
 
21432
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21433
See \`config.log' for more details." >&2;}
 
21434
   { (exit 1); exit 1; }; }
 
21435
else
 
21436
        TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
 
21437
        TEST_LIBS=$pkg_cv_TEST_LIBS
 
21438
        echo "$as_me:$LINENO: result: yes" >&5
 
21439
echo "${ECHO_T}yes" >&6
 
21440
        :
 
21441
fi
21609
21442
 
21610
21443
 
21611
21444
 
21612
21445
# Check whether --enable-more-warnings or --disable-more-warnings was given.
21613
21446
if test "${enable_more_warnings+set}" = set; then
21614
21447
  enableval="$enable_more_warnings"
21615
 
  set_more_warnings="$enableval"
 
21448
  set_more_warnings="${enableval}"
21616
21449
else
21617
21450
 
21618
 
if test -f $srcdir/CVSVERSION; then
21619
 
        is_cvs_version=true
21620
 
        set_more_warnings=yes
21621
 
else
21622
 
        set_more_warnings=no
21623
 
fi
 
21451
#               if test -d $srcdir/CVS; then
 
21452
                        warnings_default=yes
 
21453
#               else
 
21454
#                       warnings_default=no
 
21455
#               fi
21624
21456
 
21625
21457
fi;
21626
 
echo "$as_me:$LINENO: checking for more warnings" >&5
21627
 
echo $ECHO_N "checking for more warnings... $ECHO_C" >&6
21628
 
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
21629
 
        echo "$as_me:$LINENO: result: yes" >&5
21630
 
echo "${ECHO_T}yes" >&6
21631
 
        CFLAGS="\
21632
 
        -Wall \
21633
 
        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
21634
 
        -Wnested-externs \
21635
 
        -Wsign-compare \
21636
 
        $CFLAGS"
21637
 
 
21638
 
        for option in -Wsign-promo -Wno-sign-compare; do
21639
 
                SAVE_CFLAGS="$CFLAGS"
21640
 
                CFLAGS="$option $CFLAGS"
21641
 
                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
21642
 
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
21643
 
                cat >conftest.$ac_ext <<_ACEOF
21644
 
/* confdefs.h.  */
21645
 
_ACEOF
21646
 
cat confdefs.h >>conftest.$ac_ext
21647
 
cat >>conftest.$ac_ext <<_ACEOF
21648
 
/* end confdefs.h.  */
21649
 
 
21650
 
int
21651
 
main ()
21652
 
{
21653
 
 
21654
 
  ;
21655
 
  return 0;
21656
 
}
21657
 
_ACEOF
21658
 
rm -f conftest.$ac_objext
21659
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660
 
  (eval $ac_compile) 2>conftest.er1
21661
 
  ac_status=$?
21662
 
  grep -v '^ *+' conftest.er1 >conftest.err
21663
 
  rm -f conftest.er1
21664
 
  cat conftest.err >&5
21665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666
 
  (exit $ac_status); } &&
21667
 
         { ac_try='test -z "$ac_c_werror_flag"
21668
 
                         || test ! -s conftest.err'
21669
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670
 
  (eval $ac_try) 2>&5
21671
 
  ac_status=$?
21672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673
 
  (exit $ac_status); }; } &&
21674
 
         { ac_try='test -s conftest.$ac_objext'
21675
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676
 
  (eval $ac_try) 2>&5
21677
 
  ac_status=$?
21678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679
 
  (exit $ac_status); }; }; then
21680
 
  has_option=yes
21681
 
else
21682
 
  echo "$as_me: failed program was:" >&5
21683
 
sed 's/^/| /' conftest.$ac_ext >&5
21684
 
 
21685
 
has_option=no
21686
 
fi
21687
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688
 
                if test $has_option = no; then
21689
 
                        CFLAGS="$SAVE_CFLAGS"
21690
 
                fi
21691
 
                echo "$as_me:$LINENO: result: $has_option" >&5
21692
 
echo "${ECHO_T}$has_option" >&6
21693
 
                unset has_option
21694
 
                unset SAVE_CFLAGS
21695
 
        done
21696
 
        unset option
21697
 
else
21698
 
        echo "$as_me:$LINENO: result: no" >&5
21699
 
echo "${ECHO_T}no" >&6
21700
 
fi
21701
21458
 
21702
21459
# Check whether --enable-debug or --disable-debug was given.
21703
21460
if test "${enable_debug+set}" = set; then
21704
21461
  enableval="$enable_debug"
21705
 
  case "${enableval}" in
21706
 
        yes) debug=yes ;;
21707
 
        no) debug=no ;;
21708
 
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
21709
 
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
21710
 
   { (exit 1); exit 1; }; } ;;
21711
 
esac
 
21462
  debug=$enableval
21712
21463
else
21713
 
  debug=no
 
21464
  debug=yes
21714
21465
fi;
21715
21466
 
 
21467
if test x$debug = xyes ; then
21716
21468
 
21717
21469
cat >>confdefs.h <<\_ACEOF
21718
 
#define GAMIN_DEBUG test x$debug = xyes
 
21470
#define GAMIN_DEBUG
21719
21471
_ACEOF
21720
21472
 
 
21473
fi
 
21474
 
21721
21475
 
21722
21476
 
21723
21477
if test x$debug = xyes; then
21729
21483
fi
21730
21484
 
21731
21485
 
21732
 
# Check whether --enable-docs or --disable-docs was given.
21733
 
if test "${enable_docs+set}" = set; then
21734
 
  enableval="$enable_docs"
21735
 
  case "${enableval}" in
21736
 
  yes) build_docs=yes ;;
21737
 
  no)  build_docs=no ;;
21738
 
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-docs" >&5
21739
 
echo "$as_me: error: bad value ${enableval} for --enable-docs" >&2;}
21740
 
   { (exit 1); exit 1; }; } ;;
21741
 
esac
21742
 
else
21743
 
  build_docs=yes
 
21486
# Check whether --enable-debug_api or --disable-debug_api was given.
 
21487
if test "${enable_debug_api+set}" = set; then
 
21488
  enableval="$enable_debug_api"
 
21489
  debug_api="${enableval}"
21744
21490
fi;
21745
21491
 
21746
 
 
21747
 
if test x$build_docs = xyes; then
21748
 
  BUILD_DOCS_TRUE=
21749
 
  BUILD_DOCS_FALSE='#'
21750
 
else
21751
 
  BUILD_DOCS_TRUE='#'
21752
 
  BUILD_DOCS_FALSE=
21753
 
fi
21754
 
 
 
21492
if test "$debug_api" = "" -a -d $srcdir/CVS; then
 
21493
        echo "Building from CVS, enabling debug api"
 
21494
        debug_api=yes
 
21495
fi
 
21496
 
 
21497
if test x$debug_api = xyes ; then
 
21498
 
 
21499
cat >>confdefs.h <<\_ACEOF
 
21500
#define GAMIN_DEBUG_API
 
21501
_ACEOF
 
21502
 
 
21503
fi
 
21504
 
 
21505
#AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu)
 
21506
if test x$target_os = xlinux-gnu; then
 
21507
 
 
21508
cat >>confdefs.h <<\_ACEOF
 
21509
#define HAVE_LINUX
 
21510
_ACEOF
 
21511
 
 
21512
fi
21755
21513
 
21756
21514
# Check whether --enable-kernel or --disable-kernel was given.
21757
21515
if test "${enable_kernel+set}" = set; then
21758
21516
  enableval="$enable_kernel"
21759
 
  case "${enableval}" in
21760
 
  yes) os=${target_os} ;;
21761
 
  no)  os="BogusOS" ;;
21762
 
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kernel" >&5
 
21517
  os=${enableval}
 
21518
else
 
21519
  os=${target_os}
 
21520
fi;
 
21521
 
 
21522
if test x$os = xyes; then
 
21523
        os=${target_os}
 
21524
elif test x$os = xno; then
 
21525
        os="BogusOS"
 
21526
elif test x$os != x${target_os}; then
 
21527
        { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kernel" >&5
21763
21528
echo "$as_me: error: bad value ${enableval} for --disable-kernel" >&2;}
21764
 
   { (exit 1); exit 1; }; } ;;
21765
 
esac
21766
 
else
21767
 
  os=${target_os}
21768
 
fi;
21769
 
 
21770
 
 
21771
 
 
21772
 
if test x$os = xlinux-gnu; then
21773
 
  HAVE_LINUX_TRUE=
21774
 
  HAVE_LINUX_FALSE='#'
21775
 
else
21776
 
  HAVE_LINUX_TRUE='#'
21777
 
  HAVE_LINUX_FALSE=
 
21529
   { (exit 1); exit 1; }; }
21778
21530
fi
21779
21531
 
21780
21532
 
21781
 
# We use polling no matter what.
21782
 
 
21783
21533
cat >>confdefs.h <<\_ACEOF
21784
21534
#define ENABLE_POLLING 1
21785
21535
_ACEOF
21787
21537
backends="polling"
21788
21538
 
21789
21539
if test x$os = xlinux-gnu; then
21790
 
 
21791
 
cat >>confdefs.h <<\_ACEOF
21792
 
#define HAVE_LINUX
21793
 
_ACEOF
21794
 
 
21795
 
fi
21796
 
 
21797
 
if test x$os = xlinux-gnu; then
21798
 
        # Check whether --enable-dnotify or --disable-dnotify was given.
21799
 
if test "${enable_dnotify+set}" = set; then
21800
 
  enableval="$enable_dnotify"
21801
 
  case "${enableval}" in
21802
 
          yes) dnotify=true ;;
21803
 
          no)  dnotify=false ;;
21804
 
          *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-dnotify" >&5
21805
 
echo "$as_me: error: bad value ${enableval} for --disable-dnotify" >&2;}
21806
 
   { (exit 1); exit 1; }; } ;;
21807
 
        esac
21808
 
else
21809
 
  dnotify=true
21810
 
fi;
21811
 
fi
21812
 
 
21813
 
 
21814
 
 
21815
 
if test x$dnotify = xtrue; then
21816
 
  ENABLE_DNOTIFY_TRUE=
21817
 
  ENABLE_DNOTIFY_FALSE='#'
21818
 
else
21819
 
  ENABLE_DNOTIFY_TRUE='#'
21820
 
  ENABLE_DNOTIFY_FALSE=
21821
 
fi
21822
 
 
21823
 
 
21824
 
if test x$dnotify = xtrue; then
21825
 
 
21826
 
cat >>confdefs.h <<\_ACEOF
21827
 
#define ENABLE_DNOTIFY 1
21828
 
_ACEOF
21829
 
 
21830
 
        backends="${backends}, dnotify"
21831
 
fi
21832
 
 
21833
 
if test x$os = xlinux-gnu; then
21834
21540
        # Check whether --enable-inotify or --disable-inotify was given.
21835
21541
if test "${enable_inotify+set}" = set; then
21836
21542
  enableval="$enable_inotify"
21837
 
  case "${enableval}" in
21838
 
          yes) inotify=true ;;
21839
 
          no) inotify=false;;
21840
 
          *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-inotify" >&5
 
21543
  inotify="${enableval}"
 
21544
else
 
21545
  inotify=true
 
21546
fi;
 
21547
 
 
21548
        if test x$inotify = xyes; then
 
21549
                inotify=true
 
21550
        elif test x$inotify = xno; then
 
21551
                inotify=false
 
21552
        elif test x$inotify != xtrue; then
 
21553
                { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-inotify" >&5
21841
21554
echo "$as_me: error: bad value ${enableval} for --disable-inotify" >&2;}
21842
 
   { (exit 1); exit 1; }; } ;;
21843
 
        esac
21844
 
else
21845
 
  inotify=true
21846
 
fi;
 
21555
   { (exit 1); exit 1; }; }
 
21556
        fi
21847
21557
fi
21848
21558
 
21849
21559
 
21859
21569
 
21860
21570
if test x$inotify = xtrue; then
21861
21571
 
 
21572
for ac_header in linux/types.h
 
21573
do
 
21574
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21575
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21576
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21577
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21580
fi
 
21581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21583
else
 
21584
  # Is the header compilable?
 
21585
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21586
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21587
cat >conftest.$ac_ext <<_ACEOF
 
21588
/* confdefs.h.  */
 
21589
_ACEOF
 
21590
cat confdefs.h >>conftest.$ac_ext
 
21591
cat >>conftest.$ac_ext <<_ACEOF
 
21592
/* end confdefs.h.  */
 
21593
$ac_includes_default
 
21594
#include <$ac_header>
 
21595
_ACEOF
 
21596
rm -f conftest.$ac_objext
 
21597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21598
  (eval $ac_compile) 2>conftest.er1
 
21599
  ac_status=$?
 
21600
  grep -v '^ *+' conftest.er1 >conftest.err
 
21601
  rm -f conftest.er1
 
21602
  cat conftest.err >&5
 
21603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21604
  (exit $ac_status); } &&
 
21605
         { ac_try='test -z "$ac_c_werror_flag"
 
21606
                         || test ! -s conftest.err'
 
21607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21608
  (eval $ac_try) 2>&5
 
21609
  ac_status=$?
 
21610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21611
  (exit $ac_status); }; } &&
 
21612
         { ac_try='test -s conftest.$ac_objext'
 
21613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21614
  (eval $ac_try) 2>&5
 
21615
  ac_status=$?
 
21616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21617
  (exit $ac_status); }; }; then
 
21618
  ac_header_compiler=yes
 
21619
else
 
21620
  echo "$as_me: failed program was:" >&5
 
21621
sed 's/^/| /' conftest.$ac_ext >&5
 
21622
 
 
21623
ac_header_compiler=no
 
21624
fi
 
21625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21626
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21627
echo "${ECHO_T}$ac_header_compiler" >&6
 
21628
 
 
21629
# Is the header present?
 
21630
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21631
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21632
cat >conftest.$ac_ext <<_ACEOF
 
21633
/* confdefs.h.  */
 
21634
_ACEOF
 
21635
cat confdefs.h >>conftest.$ac_ext
 
21636
cat >>conftest.$ac_ext <<_ACEOF
 
21637
/* end confdefs.h.  */
 
21638
#include <$ac_header>
 
21639
_ACEOF
 
21640
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21641
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21642
  ac_status=$?
 
21643
  grep -v '^ *+' conftest.er1 >conftest.err
 
21644
  rm -f conftest.er1
 
21645
  cat conftest.err >&5
 
21646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21647
  (exit $ac_status); } >/dev/null; then
 
21648
  if test -s conftest.err; then
 
21649
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21650
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21651
  else
 
21652
    ac_cpp_err=
 
21653
  fi
 
21654
else
 
21655
  ac_cpp_err=yes
 
21656
fi
 
21657
if test -z "$ac_cpp_err"; then
 
21658
  ac_header_preproc=yes
 
21659
else
 
21660
  echo "$as_me: failed program was:" >&5
 
21661
sed 's/^/| /' conftest.$ac_ext >&5
 
21662
 
 
21663
  ac_header_preproc=no
 
21664
fi
 
21665
rm -f conftest.err conftest.$ac_ext
 
21666
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21667
echo "${ECHO_T}$ac_header_preproc" >&6
 
21668
 
 
21669
# So?  What about this header?
 
21670
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21671
  yes:no: )
 
21672
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21673
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21674
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21675
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21676
    ac_header_preproc=yes
 
21677
    ;;
 
21678
  no:yes:* )
 
21679
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21680
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21681
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21682
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21683
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21684
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21685
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21686
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21687
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21689
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21690
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21691
    (
 
21692
      cat <<\_ASBOX
 
21693
## ------------------------------------------ ##
 
21694
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21695
## ------------------------------------------ ##
 
21696
_ASBOX
 
21697
    ) |
 
21698
      sed "s/^/$as_me: WARNING:     /" >&2
 
21699
    ;;
 
21700
esac
 
21701
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21702
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21703
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21705
else
 
21706
  eval "$as_ac_Header=\$ac_header_preproc"
 
21707
fi
 
21708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21709
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21710
 
 
21711
fi
 
21712
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21713
  cat >>confdefs.h <<_ACEOF
 
21714
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21715
_ACEOF
 
21716
 
 
21717
fi
 
21718
 
 
21719
done
 
21720
 
 
21721
 
21862
21722
for ac_header in linux/inotify.h
21863
21723
do
21864
21724
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22009
21869
done
22010
21870
 
22011
21871
 
 
21872
for ac_header in sys/inotify.h
 
21873
do
 
21874
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21875
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21876
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21877
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21878
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21880
fi
 
21881
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21882
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21883
else
 
21884
  # Is the header compilable?
 
21885
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21886
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21887
cat >conftest.$ac_ext <<_ACEOF
 
21888
/* confdefs.h.  */
 
21889
_ACEOF
 
21890
cat confdefs.h >>conftest.$ac_ext
 
21891
cat >>conftest.$ac_ext <<_ACEOF
 
21892
/* end confdefs.h.  */
 
21893
$ac_includes_default
 
21894
#include <$ac_header>
 
21895
_ACEOF
 
21896
rm -f conftest.$ac_objext
 
21897
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21898
  (eval $ac_compile) 2>conftest.er1
 
21899
  ac_status=$?
 
21900
  grep -v '^ *+' conftest.er1 >conftest.err
 
21901
  rm -f conftest.er1
 
21902
  cat conftest.err >&5
 
21903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21904
  (exit $ac_status); } &&
 
21905
         { ac_try='test -z "$ac_c_werror_flag"
 
21906
                         || test ! -s conftest.err'
 
21907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21908
  (eval $ac_try) 2>&5
 
21909
  ac_status=$?
 
21910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21911
  (exit $ac_status); }; } &&
 
21912
         { ac_try='test -s conftest.$ac_objext'
 
21913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21914
  (eval $ac_try) 2>&5
 
21915
  ac_status=$?
 
21916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21917
  (exit $ac_status); }; }; then
 
21918
  ac_header_compiler=yes
 
21919
else
 
21920
  echo "$as_me: failed program was:" >&5
 
21921
sed 's/^/| /' conftest.$ac_ext >&5
 
21922
 
 
21923
ac_header_compiler=no
 
21924
fi
 
21925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21926
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21927
echo "${ECHO_T}$ac_header_compiler" >&6
 
21928
 
 
21929
# Is the header present?
 
21930
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21931
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21932
cat >conftest.$ac_ext <<_ACEOF
 
21933
/* confdefs.h.  */
 
21934
_ACEOF
 
21935
cat confdefs.h >>conftest.$ac_ext
 
21936
cat >>conftest.$ac_ext <<_ACEOF
 
21937
/* end confdefs.h.  */
 
21938
#include <$ac_header>
 
21939
_ACEOF
 
21940
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21941
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21942
  ac_status=$?
 
21943
  grep -v '^ *+' conftest.er1 >conftest.err
 
21944
  rm -f conftest.er1
 
21945
  cat conftest.err >&5
 
21946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21947
  (exit $ac_status); } >/dev/null; then
 
21948
  if test -s conftest.err; then
 
21949
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21950
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21951
  else
 
21952
    ac_cpp_err=
 
21953
  fi
 
21954
else
 
21955
  ac_cpp_err=yes
 
21956
fi
 
21957
if test -z "$ac_cpp_err"; then
 
21958
  ac_header_preproc=yes
 
21959
else
 
21960
  echo "$as_me: failed program was:" >&5
 
21961
sed 's/^/| /' conftest.$ac_ext >&5
 
21962
 
 
21963
  ac_header_preproc=no
 
21964
fi
 
21965
rm -f conftest.err conftest.$ac_ext
 
21966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21967
echo "${ECHO_T}$ac_header_preproc" >&6
 
21968
 
 
21969
# So?  What about this header?
 
21970
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21971
  yes:no: )
 
21972
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21973
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21974
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21975
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21976
    ac_header_preproc=yes
 
21977
    ;;
 
21978
  no:yes:* )
 
21979
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21980
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21981
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21982
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21983
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21984
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21985
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21986
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21987
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21988
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21989
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21990
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21991
    (
 
21992
      cat <<\_ASBOX
 
21993
## ------------------------------------------ ##
 
21994
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21995
## ------------------------------------------ ##
 
21996
_ASBOX
 
21997
    ) |
 
21998
      sed "s/^/$as_me: WARNING:     /" >&2
 
21999
    ;;
 
22000
esac
 
22001
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22002
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22003
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22005
else
 
22006
  eval "$as_ac_Header=\$ac_header_preproc"
 
22007
fi
 
22008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22009
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22010
 
 
22011
fi
 
22012
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22013
  cat >>confdefs.h <<_ACEOF
 
22014
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22015
_ACEOF
 
22016
 
 
22017
fi
 
22018
 
 
22019
done
 
22020
 
 
22021
 
22012
22022
cat >>confdefs.h <<\_ACEOF
22013
22023
#define ENABLE_INOTIFY 1
22014
22024
_ACEOF
22016
22026
        backends="${backends}, inotify"
22017
22027
fi
22018
22028
 
 
22029
if test x$os = xlinux-gnu; then
 
22030
        # Check whether --enable-dnotify or --disable-dnotify was given.
 
22031
if test "${enable_dnotify+set}" = set; then
 
22032
  enableval="$enable_dnotify"
 
22033
  dnotify="${enableval}"
 
22034
else
 
22035
  dnotify=true
 
22036
fi;
 
22037
 
 
22038
        if test x$dnotify = xyes; then
 
22039
                dnotify=true
 
22040
        elif test x$dnotify = xno; then
 
22041
                dnotify=false
 
22042
        elif test x$dnotify != xtrue; then
 
22043
                { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-dnotify" >&5
 
22044
echo "$as_me: error: bad value ${enableval} for --disable-dnotify" >&2;}
 
22045
   { (exit 1); exit 1; }; }
 
22046
        fi
 
22047
fi
 
22048
 
 
22049
if test x$dnotify = xfalse; then
 
22050
        if test x$inotify = xtrue; then
 
22051
                echo "When using inotify, gamin sometimes needs dnotify as a fallback"
 
22052
                echo "so dnotify support will be enabled"
 
22053
                dnotify=true
 
22054
        fi
 
22055
fi
 
22056
 
 
22057
 
 
22058
 
 
22059
if test x$dnotify = xtrue; then
 
22060
  ENABLE_DNOTIFY_TRUE=
 
22061
  ENABLE_DNOTIFY_FALSE='#'
 
22062
else
 
22063
  ENABLE_DNOTIFY_TRUE='#'
 
22064
  ENABLE_DNOTIFY_FALSE=
 
22065
fi
 
22066
 
 
22067
 
 
22068
if test x$dnotify = xtrue; then
 
22069
 
 
22070
cat >>confdefs.h <<\_ACEOF
 
22071
#define ENABLE_DNOTIFY 1
 
22072
_ACEOF
 
22073
 
 
22074
        backends="${backends}, dnotify"
 
22075
fi
 
22076
 
 
22077
if test x$os != xBogusOS; then
 
22078
        echo "$as_me:$LINENO: checking for kevent" >&5
 
22079
echo $ECHO_N "checking for kevent... $ECHO_C" >&6
 
22080
if test "${ac_cv_func_kevent+set}" = set; then
 
22081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22082
else
 
22083
  cat >conftest.$ac_ext <<_ACEOF
 
22084
/* confdefs.h.  */
 
22085
_ACEOF
 
22086
cat confdefs.h >>conftest.$ac_ext
 
22087
cat >>conftest.$ac_ext <<_ACEOF
 
22088
/* end confdefs.h.  */
 
22089
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
 
22090
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22091
#define kevent innocuous_kevent
 
22092
 
 
22093
/* System header to define __stub macros and hopefully few prototypes,
 
22094
    which can conflict with char kevent (); below.
 
22095
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22096
    <limits.h> exists even on freestanding compilers.  */
 
22097
 
 
22098
#ifdef __STDC__
 
22099
# include <limits.h>
 
22100
#else
 
22101
# include <assert.h>
 
22102
#endif
 
22103
 
 
22104
#undef kevent
 
22105
 
 
22106
/* Override any gcc2 internal prototype to avoid an error.  */
 
22107
#ifdef __cplusplus
 
22108
extern "C"
 
22109
{
 
22110
#endif
 
22111
/* We use char because int might match the return type of a gcc2
 
22112
   builtin and then its argument prototype would still apply.  */
 
22113
char kevent ();
 
22114
/* The GNU C library defines this for functions which it implements
 
22115
    to always fail with ENOSYS.  Some functions are actually named
 
22116
    something starting with __ and the normal name is an alias.  */
 
22117
#if defined (__stub_kevent) || defined (__stub___kevent)
 
22118
choke me
 
22119
#else
 
22120
char (*f) () = kevent;
 
22121
#endif
 
22122
#ifdef __cplusplus
 
22123
}
 
22124
#endif
 
22125
 
 
22126
int
 
22127
main ()
 
22128
{
 
22129
return f != kevent;
 
22130
  ;
 
22131
  return 0;
 
22132
}
 
22133
_ACEOF
 
22134
rm -f conftest.$ac_objext conftest$ac_exeext
 
22135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22136
  (eval $ac_link) 2>conftest.er1
 
22137
  ac_status=$?
 
22138
  grep -v '^ *+' conftest.er1 >conftest.err
 
22139
  rm -f conftest.er1
 
22140
  cat conftest.err >&5
 
22141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22142
  (exit $ac_status); } &&
 
22143
         { ac_try='test -z "$ac_c_werror_flag"
 
22144
                         || test ! -s conftest.err'
 
22145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22146
  (eval $ac_try) 2>&5
 
22147
  ac_status=$?
 
22148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22149
  (exit $ac_status); }; } &&
 
22150
         { ac_try='test -s conftest$ac_exeext'
 
22151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22152
  (eval $ac_try) 2>&5
 
22153
  ac_status=$?
 
22154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22155
  (exit $ac_status); }; }; then
 
22156
  ac_cv_func_kevent=yes
 
22157
else
 
22158
  echo "$as_me: failed program was:" >&5
 
22159
sed 's/^/| /' conftest.$ac_ext >&5
 
22160
 
 
22161
ac_cv_func_kevent=no
 
22162
fi
 
22163
rm -f conftest.err conftest.$ac_objext \
 
22164
      conftest$ac_exeext conftest.$ac_ext
 
22165
fi
 
22166
echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
 
22167
echo "${ECHO_T}$ac_cv_func_kevent" >&6
 
22168
if test $ac_cv_func_kevent = yes; then
 
22169
  have_kevent=1
 
22170
fi
 
22171
 
 
22172
        if test x$have_kevent = x1 ; then
 
22173
            # Check whether --enable-kqueue or --disable-kqueue was given.
 
22174
if test "${enable_kqueue+set}" = set; then
 
22175
  enableval="$enable_kqueue"
 
22176
  kqueue="${enableval}"
 
22177
else
 
22178
  kqueue=true
 
22179
fi;
 
22180
 
 
22181
                if test x$kqueue = xyes; then
 
22182
                        kqueue=true
 
22183
                elif test x$kqueue = xno; then
 
22184
                        kqueue=false
 
22185
                elif test x$kqueue != xtrue; then
 
22186
                        { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kqueue" >&5
 
22187
echo "$as_me: error: bad value ${enableval} for --disable-kqueue" >&2;}
 
22188
   { (exit 1); exit 1; }; }
 
22189
                fi
 
22190
        fi
 
22191
fi
 
22192
 
 
22193
 
 
22194
 
 
22195
if test x$kqueue = xtrue; then
 
22196
  ENABLE_KQUEUE_TRUE=
 
22197
  ENABLE_KQUEUE_FALSE='#'
 
22198
else
 
22199
  ENABLE_KQUEUE_TRUE='#'
 
22200
  ENABLE_KQUEUE_FALSE=
 
22201
fi
 
22202
 
 
22203
 
 
22204
if test x$kqueue = xtrue; then
 
22205
 
 
22206
for ac_header in sys/event.h
 
22207
do
 
22208
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22209
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22210
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22211
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22214
fi
 
22215
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22216
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22217
else
 
22218
  # Is the header compilable?
 
22219
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22220
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22221
cat >conftest.$ac_ext <<_ACEOF
 
22222
/* confdefs.h.  */
 
22223
_ACEOF
 
22224
cat confdefs.h >>conftest.$ac_ext
 
22225
cat >>conftest.$ac_ext <<_ACEOF
 
22226
/* end confdefs.h.  */
 
22227
$ac_includes_default
 
22228
#include <$ac_header>
 
22229
_ACEOF
 
22230
rm -f conftest.$ac_objext
 
22231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22232
  (eval $ac_compile) 2>conftest.er1
 
22233
  ac_status=$?
 
22234
  grep -v '^ *+' conftest.er1 >conftest.err
 
22235
  rm -f conftest.er1
 
22236
  cat conftest.err >&5
 
22237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22238
  (exit $ac_status); } &&
 
22239
         { ac_try='test -z "$ac_c_werror_flag"
 
22240
                         || test ! -s conftest.err'
 
22241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22242
  (eval $ac_try) 2>&5
 
22243
  ac_status=$?
 
22244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22245
  (exit $ac_status); }; } &&
 
22246
         { ac_try='test -s conftest.$ac_objext'
 
22247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22248
  (eval $ac_try) 2>&5
 
22249
  ac_status=$?
 
22250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22251
  (exit $ac_status); }; }; then
 
22252
  ac_header_compiler=yes
 
22253
else
 
22254
  echo "$as_me: failed program was:" >&5
 
22255
sed 's/^/| /' conftest.$ac_ext >&5
 
22256
 
 
22257
ac_header_compiler=no
 
22258
fi
 
22259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22260
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22261
echo "${ECHO_T}$ac_header_compiler" >&6
 
22262
 
 
22263
# Is the header present?
 
22264
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22265
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22266
cat >conftest.$ac_ext <<_ACEOF
 
22267
/* confdefs.h.  */
 
22268
_ACEOF
 
22269
cat confdefs.h >>conftest.$ac_ext
 
22270
cat >>conftest.$ac_ext <<_ACEOF
 
22271
/* end confdefs.h.  */
 
22272
#include <$ac_header>
 
22273
_ACEOF
 
22274
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22275
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22276
  ac_status=$?
 
22277
  grep -v '^ *+' conftest.er1 >conftest.err
 
22278
  rm -f conftest.er1
 
22279
  cat conftest.err >&5
 
22280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22281
  (exit $ac_status); } >/dev/null; then
 
22282
  if test -s conftest.err; then
 
22283
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22284
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22285
  else
 
22286
    ac_cpp_err=
 
22287
  fi
 
22288
else
 
22289
  ac_cpp_err=yes
 
22290
fi
 
22291
if test -z "$ac_cpp_err"; then
 
22292
  ac_header_preproc=yes
 
22293
else
 
22294
  echo "$as_me: failed program was:" >&5
 
22295
sed 's/^/| /' conftest.$ac_ext >&5
 
22296
 
 
22297
  ac_header_preproc=no
 
22298
fi
 
22299
rm -f conftest.err conftest.$ac_ext
 
22300
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22301
echo "${ECHO_T}$ac_header_preproc" >&6
 
22302
 
 
22303
# So?  What about this header?
 
22304
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22305
  yes:no: )
 
22306
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22307
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22308
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22309
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22310
    ac_header_preproc=yes
 
22311
    ;;
 
22312
  no:yes:* )
 
22313
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22314
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22315
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22316
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22317
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22318
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22319
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22320
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22321
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22322
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22323
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22324
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22325
    (
 
22326
      cat <<\_ASBOX
 
22327
## ------------------------------------------ ##
 
22328
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22329
## ------------------------------------------ ##
 
22330
_ASBOX
 
22331
    ) |
 
22332
      sed "s/^/$as_me: WARNING:     /" >&2
 
22333
    ;;
 
22334
esac
 
22335
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22339
else
 
22340
  eval "$as_ac_Header=\$ac_header_preproc"
 
22341
fi
 
22342
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22343
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22344
 
 
22345
fi
 
22346
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22347
  cat >>confdefs.h <<_ACEOF
 
22348
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22349
_ACEOF
 
22350
 
 
22351
fi
 
22352
 
 
22353
done
 
22354
 
 
22355
 
 
22356
cat >>confdefs.h <<\_ACEOF
 
22357
#define ENABLE_KQUEUE 1
 
22358
_ACEOF
 
22359
 
 
22360
        backends="${backends}, kqueue"
 
22361
fi
 
22362
 
 
22363
 
 
22364
# Check whether --with-threads or --without-threads was given.
 
22365
if test "${with_threads+set}" = set; then
 
22366
  withval="$with_threads"
 
22367
 
 
22368
fi;
 
22369
 
 
22370
if test "$with_threads" = "no" ; then
 
22371
    echo Disabling multithreaded support
 
22372
else
 
22373
    echo Enabling multithreaded support
 
22374
 
 
22375
    if test "${ac_cv_header_pthread_h+set}" = set; then
 
22376
  echo "$as_me:$LINENO: checking for pthread.h" >&5
 
22377
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
 
22378
if test "${ac_cv_header_pthread_h+set}" = set; then
 
22379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22380
fi
 
22381
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
22382
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
 
22383
else
 
22384
  # Is the header compilable?
 
22385
echo "$as_me:$LINENO: checking pthread.h usability" >&5
 
22386
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
 
22387
cat >conftest.$ac_ext <<_ACEOF
 
22388
/* confdefs.h.  */
 
22389
_ACEOF
 
22390
cat confdefs.h >>conftest.$ac_ext
 
22391
cat >>conftest.$ac_ext <<_ACEOF
 
22392
/* end confdefs.h.  */
 
22393
$ac_includes_default
 
22394
#include <pthread.h>
 
22395
_ACEOF
 
22396
rm -f conftest.$ac_objext
 
22397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22398
  (eval $ac_compile) 2>conftest.er1
 
22399
  ac_status=$?
 
22400
  grep -v '^ *+' conftest.er1 >conftest.err
 
22401
  rm -f conftest.er1
 
22402
  cat conftest.err >&5
 
22403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22404
  (exit $ac_status); } &&
 
22405
         { ac_try='test -z "$ac_c_werror_flag"
 
22406
                         || test ! -s conftest.err'
 
22407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22408
  (eval $ac_try) 2>&5
 
22409
  ac_status=$?
 
22410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22411
  (exit $ac_status); }; } &&
 
22412
         { ac_try='test -s conftest.$ac_objext'
 
22413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22414
  (eval $ac_try) 2>&5
 
22415
  ac_status=$?
 
22416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22417
  (exit $ac_status); }; }; then
 
22418
  ac_header_compiler=yes
 
22419
else
 
22420
  echo "$as_me: failed program was:" >&5
 
22421
sed 's/^/| /' conftest.$ac_ext >&5
 
22422
 
 
22423
ac_header_compiler=no
 
22424
fi
 
22425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22426
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22427
echo "${ECHO_T}$ac_header_compiler" >&6
 
22428
 
 
22429
# Is the header present?
 
22430
echo "$as_me:$LINENO: checking pthread.h presence" >&5
 
22431
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
 
22432
cat >conftest.$ac_ext <<_ACEOF
 
22433
/* confdefs.h.  */
 
22434
_ACEOF
 
22435
cat confdefs.h >>conftest.$ac_ext
 
22436
cat >>conftest.$ac_ext <<_ACEOF
 
22437
/* end confdefs.h.  */
 
22438
#include <pthread.h>
 
22439
_ACEOF
 
22440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22441
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22442
  ac_status=$?
 
22443
  grep -v '^ *+' conftest.er1 >conftest.err
 
22444
  rm -f conftest.er1
 
22445
  cat conftest.err >&5
 
22446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22447
  (exit $ac_status); } >/dev/null; then
 
22448
  if test -s conftest.err; then
 
22449
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22450
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22451
  else
 
22452
    ac_cpp_err=
 
22453
  fi
 
22454
else
 
22455
  ac_cpp_err=yes
 
22456
fi
 
22457
if test -z "$ac_cpp_err"; then
 
22458
  ac_header_preproc=yes
 
22459
else
 
22460
  echo "$as_me: failed program was:" >&5
 
22461
sed 's/^/| /' conftest.$ac_ext >&5
 
22462
 
 
22463
  ac_header_preproc=no
 
22464
fi
 
22465
rm -f conftest.err conftest.$ac_ext
 
22466
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22467
echo "${ECHO_T}$ac_header_preproc" >&6
 
22468
 
 
22469
# So?  What about this header?
 
22470
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22471
  yes:no: )
 
22472
    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22473
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22474
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
 
22475
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
 
22476
    ac_header_preproc=yes
 
22477
    ;;
 
22478
  no:yes:* )
 
22479
    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
 
22480
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
 
22481
    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
 
22482
echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
 
22483
    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
 
22484
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
 
22485
    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22486
echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22487
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
 
22488
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
 
22489
    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
 
22490
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
 
22491
    (
 
22492
      cat <<\_ASBOX
 
22493
## ------------------------------------------ ##
 
22494
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22495
## ------------------------------------------ ##
 
22496
_ASBOX
 
22497
    ) |
 
22498
      sed "s/^/$as_me: WARNING:     /" >&2
 
22499
    ;;
 
22500
esac
 
22501
echo "$as_me:$LINENO: checking for pthread.h" >&5
 
22502
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
 
22503
if test "${ac_cv_header_pthread_h+set}" = set; then
 
22504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22505
else
 
22506
  ac_cv_header_pthread_h=$ac_header_preproc
 
22507
fi
 
22508
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
22509
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
 
22510
 
 
22511
fi
 
22512
if test $ac_cv_header_pthread_h = yes; then
 
22513
  echo "$as_me:$LINENO: checking for pthread_mutexattr_settype in -lpthread" >&5
 
22514
echo $ECHO_N "checking for pthread_mutexattr_settype in -lpthread... $ECHO_C" >&6
 
22515
if test "${ac_cv_lib_pthread_pthread_mutexattr_settype+set}" = set; then
 
22516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22517
else
 
22518
  ac_check_lib_save_LIBS=$LIBS
 
22519
LIBS="-lpthread  $LIBS"
 
22520
cat >conftest.$ac_ext <<_ACEOF
 
22521
/* confdefs.h.  */
 
22522
_ACEOF
 
22523
cat confdefs.h >>conftest.$ac_ext
 
22524
cat >>conftest.$ac_ext <<_ACEOF
 
22525
/* end confdefs.h.  */
 
22526
 
 
22527
/* Override any gcc2 internal prototype to avoid an error.  */
 
22528
#ifdef __cplusplus
 
22529
extern "C"
 
22530
#endif
 
22531
/* We use char because int might match the return type of a gcc2
 
22532
   builtin and then its argument prototype would still apply.  */
 
22533
char pthread_mutexattr_settype ();
 
22534
int
 
22535
main ()
 
22536
{
 
22537
pthread_mutexattr_settype ();
 
22538
  ;
 
22539
  return 0;
 
22540
}
 
22541
_ACEOF
 
22542
rm -f conftest.$ac_objext conftest$ac_exeext
 
22543
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22544
  (eval $ac_link) 2>conftest.er1
 
22545
  ac_status=$?
 
22546
  grep -v '^ *+' conftest.er1 >conftest.err
 
22547
  rm -f conftest.er1
 
22548
  cat conftest.err >&5
 
22549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22550
  (exit $ac_status); } &&
 
22551
         { ac_try='test -z "$ac_c_werror_flag"
 
22552
                         || test ! -s conftest.err'
 
22553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22554
  (eval $ac_try) 2>&5
 
22555
  ac_status=$?
 
22556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22557
  (exit $ac_status); }; } &&
 
22558
         { ac_try='test -s conftest$ac_exeext'
 
22559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22560
  (eval $ac_try) 2>&5
 
22561
  ac_status=$?
 
22562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22563
  (exit $ac_status); }; }; then
 
22564
  ac_cv_lib_pthread_pthread_mutexattr_settype=yes
 
22565
else
 
22566
  echo "$as_me: failed program was:" >&5
 
22567
sed 's/^/| /' conftest.$ac_ext >&5
 
22568
 
 
22569
ac_cv_lib_pthread_pthread_mutexattr_settype=no
 
22570
fi
 
22571
rm -f conftest.err conftest.$ac_objext \
 
22572
      conftest$ac_exeext conftest.$ac_ext
 
22573
LIBS=$ac_check_lib_save_LIBS
 
22574
fi
 
22575
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_settype" >&5
 
22576
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_settype" >&6
 
22577
if test $ac_cv_lib_pthread_pthread_mutexattr_settype = yes; then
 
22578
 
 
22579
           THREAD_LIBS="-lpthread"
 
22580
 
 
22581
cat >>confdefs.h <<\_ACEOF
 
22582
#define HAVE_LIBPTHREAD
 
22583
_ACEOF
 
22584
 
 
22585
 
 
22586
cat >>confdefs.h <<\_ACEOF
 
22587
#define HAVE_PTHREAD_H
 
22588
_ACEOF
 
22589
 
 
22590
           WITH_THREADS="1"
 
22591
fi
 
22592
 
 
22593
fi
 
22594
 
 
22595
 
 
22596
fi
 
22597
 
 
22598
if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
 
22599
    if test "${CC}" = "gcc" ; then
 
22600
        echo Use weak symbols !
 
22601
        THREAD_LIBS=
 
22602
    fi
 
22603
fi
 
22604
 
 
22605
 
 
22606
 
 
22607
# It may just be gnu but it could also be gnu0.3, etc.
 
22608
#   if echo x$os | grep -E -e '^xgnu[0-9]*\.?[0-9]*$' >/dev/null;
 
22609
# won't work as m4 eats the []s.
 
22610
if case x$os in xgnu*) true;; *) false;; esac; then
 
22611
        # Check whether --enable-kqueue or --disable-kqueue was given.
 
22612
if test "${enable_kqueue+set}" = set; then
 
22613
  enableval="$enable_kqueue"
 
22614
  hurd_mach_notify="${enableval}"
 
22615
else
 
22616
  hurd_mach_notify=true
 
22617
fi;
 
22618
 
 
22619
        if test x$hurd_mach_notify = xyes; then
 
22620
                hurd_mach_notify=true
 
22621
        elif test x$hurd_mach_notify = xno; then
 
22622
                hurd_mach_notify=false
 
22623
        elif test x$hurd_mach_notify != xtrue; then
 
22624
                { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-hurd_mach_notify" >&5
 
22625
echo "$as_me: error: bad value ${enableval} for --disable-hurd_mach_notify" >&2;}
 
22626
   { (exit 1); exit 1; }; }
 
22627
        fi
 
22628
fi
 
22629
 
 
22630
 
 
22631
 
 
22632
if test x$hurd_mach_notify = xtrue; then
 
22633
  ENABLE_HURD_MACH_NOTIFY_TRUE=
 
22634
  ENABLE_HURD_MACH_NOTIFY_FALSE='#'
 
22635
else
 
22636
  ENABLE_HURD_MACH_NOTIFY_TRUE='#'
 
22637
  ENABLE_HURD_MACH_NOTIFY_FALSE=
 
22638
fi
 
22639
 
 
22640
 
 
22641
if test x$hurd_mach_notify = xtrue; then
 
22642
        # <hurd/ports.h> requires _GNU_SOURCE.
 
22643
        old_CPPFLAGS="$CPPFLAGS"
 
22644
        CPPFLAGS="$old_CPPFLAGS -D_GNU_SOURCE"
 
22645
 
 
22646
for ac_header in hurd/ports.h
 
22647
do
 
22648
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22650
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22651
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22652
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22654
fi
 
22655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22657
else
 
22658
  # Is the header compilable?
 
22659
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22660
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22661
cat >conftest.$ac_ext <<_ACEOF
 
22662
/* confdefs.h.  */
 
22663
_ACEOF
 
22664
cat confdefs.h >>conftest.$ac_ext
 
22665
cat >>conftest.$ac_ext <<_ACEOF
 
22666
/* end confdefs.h.  */
 
22667
$ac_includes_default
 
22668
#include <$ac_header>
 
22669
_ACEOF
 
22670
rm -f conftest.$ac_objext
 
22671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22672
  (eval $ac_compile) 2>conftest.er1
 
22673
  ac_status=$?
 
22674
  grep -v '^ *+' conftest.er1 >conftest.err
 
22675
  rm -f conftest.er1
 
22676
  cat conftest.err >&5
 
22677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22678
  (exit $ac_status); } &&
 
22679
         { ac_try='test -z "$ac_c_werror_flag"
 
22680
                         || test ! -s conftest.err'
 
22681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22682
  (eval $ac_try) 2>&5
 
22683
  ac_status=$?
 
22684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22685
  (exit $ac_status); }; } &&
 
22686
         { ac_try='test -s conftest.$ac_objext'
 
22687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22688
  (eval $ac_try) 2>&5
 
22689
  ac_status=$?
 
22690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22691
  (exit $ac_status); }; }; then
 
22692
  ac_header_compiler=yes
 
22693
else
 
22694
  echo "$as_me: failed program was:" >&5
 
22695
sed 's/^/| /' conftest.$ac_ext >&5
 
22696
 
 
22697
ac_header_compiler=no
 
22698
fi
 
22699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22700
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22701
echo "${ECHO_T}$ac_header_compiler" >&6
 
22702
 
 
22703
# Is the header present?
 
22704
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22705
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22706
cat >conftest.$ac_ext <<_ACEOF
 
22707
/* confdefs.h.  */
 
22708
_ACEOF
 
22709
cat confdefs.h >>conftest.$ac_ext
 
22710
cat >>conftest.$ac_ext <<_ACEOF
 
22711
/* end confdefs.h.  */
 
22712
#include <$ac_header>
 
22713
_ACEOF
 
22714
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22715
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22716
  ac_status=$?
 
22717
  grep -v '^ *+' conftest.er1 >conftest.err
 
22718
  rm -f conftest.er1
 
22719
  cat conftest.err >&5
 
22720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22721
  (exit $ac_status); } >/dev/null; then
 
22722
  if test -s conftest.err; then
 
22723
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22724
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22725
  else
 
22726
    ac_cpp_err=
 
22727
  fi
 
22728
else
 
22729
  ac_cpp_err=yes
 
22730
fi
 
22731
if test -z "$ac_cpp_err"; then
 
22732
  ac_header_preproc=yes
 
22733
else
 
22734
  echo "$as_me: failed program was:" >&5
 
22735
sed 's/^/| /' conftest.$ac_ext >&5
 
22736
 
 
22737
  ac_header_preproc=no
 
22738
fi
 
22739
rm -f conftest.err conftest.$ac_ext
 
22740
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22741
echo "${ECHO_T}$ac_header_preproc" >&6
 
22742
 
 
22743
# So?  What about this header?
 
22744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22745
  yes:no: )
 
22746
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22747
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22748
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22749
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22750
    ac_header_preproc=yes
 
22751
    ;;
 
22752
  no:yes:* )
 
22753
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22754
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22755
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22756
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22757
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22758
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22759
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22760
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22761
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22762
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22763
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22764
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22765
    (
 
22766
      cat <<\_ASBOX
 
22767
## ------------------------------------------ ##
 
22768
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22769
## ------------------------------------------ ##
 
22770
_ASBOX
 
22771
    ) |
 
22772
      sed "s/^/$as_me: WARNING:     /" >&2
 
22773
    ;;
 
22774
esac
 
22775
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22779
else
 
22780
  eval "$as_ac_Header=\$ac_header_preproc"
 
22781
fi
 
22782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22784
 
 
22785
fi
 
22786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22787
  cat >>confdefs.h <<_ACEOF
 
22788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22789
_ACEOF
 
22790
 
 
22791
else
 
22792
  { { echo "$as_me:$LINENO: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&5
 
22793
echo "$as_me: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&2;}
 
22794
   { (exit 1); exit 1; }; }
 
22795
fi
 
22796
 
 
22797
done
 
22798
 
 
22799
        CPPFLAGS="$old_CPPFLAGS"
 
22800
 
 
22801
        echo "$as_me:$LINENO: checking for ports_create_port in -lports" >&5
 
22802
echo $ECHO_N "checking for ports_create_port in -lports... $ECHO_C" >&6
 
22803
if test "${ac_cv_lib_ports_ports_create_port+set}" = set; then
 
22804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22805
else
 
22806
  ac_check_lib_save_LIBS=$LIBS
 
22807
LIBS="-lports -lthreads $LIBS"
 
22808
cat >conftest.$ac_ext <<_ACEOF
 
22809
/* confdefs.h.  */
 
22810
_ACEOF
 
22811
cat confdefs.h >>conftest.$ac_ext
 
22812
cat >>conftest.$ac_ext <<_ACEOF
 
22813
/* end confdefs.h.  */
 
22814
 
 
22815
/* Override any gcc2 internal prototype to avoid an error.  */
 
22816
#ifdef __cplusplus
 
22817
extern "C"
 
22818
#endif
 
22819
/* We use char because int might match the return type of a gcc2
 
22820
   builtin and then its argument prototype would still apply.  */
 
22821
char ports_create_port ();
 
22822
int
 
22823
main ()
 
22824
{
 
22825
ports_create_port ();
 
22826
  ;
 
22827
  return 0;
 
22828
}
 
22829
_ACEOF
 
22830
rm -f conftest.$ac_objext conftest$ac_exeext
 
22831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22832
  (eval $ac_link) 2>conftest.er1
 
22833
  ac_status=$?
 
22834
  grep -v '^ *+' conftest.er1 >conftest.err
 
22835
  rm -f conftest.er1
 
22836
  cat conftest.err >&5
 
22837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22838
  (exit $ac_status); } &&
 
22839
         { ac_try='test -z "$ac_c_werror_flag"
 
22840
                         || test ! -s conftest.err'
 
22841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22842
  (eval $ac_try) 2>&5
 
22843
  ac_status=$?
 
22844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22845
  (exit $ac_status); }; } &&
 
22846
         { ac_try='test -s conftest$ac_exeext'
 
22847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22848
  (eval $ac_try) 2>&5
 
22849
  ac_status=$?
 
22850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22851
  (exit $ac_status); }; }; then
 
22852
  ac_cv_lib_ports_ports_create_port=yes
 
22853
else
 
22854
  echo "$as_me: failed program was:" >&5
 
22855
sed 's/^/| /' conftest.$ac_ext >&5
 
22856
 
 
22857
ac_cv_lib_ports_ports_create_port=no
 
22858
fi
 
22859
rm -f conftest.err conftest.$ac_objext \
 
22860
      conftest$ac_exeext conftest.$ac_ext
 
22861
LIBS=$ac_check_lib_save_LIBS
 
22862
fi
 
22863
echo "$as_me:$LINENO: result: $ac_cv_lib_ports_ports_create_port" >&5
 
22864
echo "${ECHO_T}$ac_cv_lib_ports_ports_create_port" >&6
 
22865
if test $ac_cv_lib_ports_ports_create_port = yes; then
 
22866
  :
 
22867
else
 
22868
  { { echo "$as_me:$LINENO: error: libports not found but required to build hurd_mach_notify backend." >&5
 
22869
echo "$as_me: error: libports not found but required to build hurd_mach_notify backend." >&2;}
 
22870
   { (exit 1); exit 1; }; }
 
22871
fi
 
22872
 
 
22873
 
 
22874
        if test -n "$ac_tool_prefix"; then
 
22875
  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
 
22876
set dummy ${ac_tool_prefix}mig; ac_word=$2
 
22877
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22879
if test "${ac_cv_prog_MIG+set}" = set; then
 
22880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22881
else
 
22882
  if test -n "$MIG"; then
 
22883
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
 
22884
else
 
22885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22886
for as_dir in $PATH
 
22887
do
 
22888
  IFS=$as_save_IFS
 
22889
  test -z "$as_dir" && as_dir=.
 
22890
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22892
    ac_cv_prog_MIG="${ac_tool_prefix}mig"
 
22893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22894
    break 2
 
22895
  fi
 
22896
done
 
22897
done
 
22898
 
 
22899
fi
 
22900
fi
 
22901
MIG=$ac_cv_prog_MIG
 
22902
if test -n "$MIG"; then
 
22903
  echo "$as_me:$LINENO: result: $MIG" >&5
 
22904
echo "${ECHO_T}$MIG" >&6
 
22905
else
 
22906
  echo "$as_me:$LINENO: result: no" >&5
 
22907
echo "${ECHO_T}no" >&6
 
22908
fi
 
22909
 
 
22910
fi
 
22911
if test -z "$ac_cv_prog_MIG"; then
 
22912
  ac_ct_MIG=$MIG
 
22913
  # Extract the first word of "mig", so it can be a program name with args.
 
22914
set dummy mig; ac_word=$2
 
22915
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22916
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22917
if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
 
22918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22919
else
 
22920
  if test -n "$ac_ct_MIG"; then
 
22921
  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
 
22922
else
 
22923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22924
for as_dir in $PATH
 
22925
do
 
22926
  IFS=$as_save_IFS
 
22927
  test -z "$as_dir" && as_dir=.
 
22928
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22929
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22930
    ac_cv_prog_ac_ct_MIG="mig"
 
22931
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22932
    break 2
 
22933
  fi
 
22934
done
 
22935
done
 
22936
 
 
22937
  test -z "$ac_cv_prog_ac_ct_MIG" && ac_cv_prog_ac_ct_MIG="{ { echo "$as_me:$LINENO: error: mig not found but required to build hurd_mach_notify backend." >&5
 
22938
echo "$as_me: error: mig not found but required to build hurd_mach_notify backend." >&2;}
 
22939
   { (exit 1); exit 1; }; }"
 
22940
fi
 
22941
fi
 
22942
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
 
22943
if test -n "$ac_ct_MIG"; then
 
22944
  echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
 
22945
echo "${ECHO_T}$ac_ct_MIG" >&6
 
22946
else
 
22947
  echo "$as_me:$LINENO: result: no" >&5
 
22948
echo "${ECHO_T}no" >&6
 
22949
fi
 
22950
 
 
22951
  MIG=$ac_ct_MIG
 
22952
else
 
22953
  MIG="$ac_cv_prog_MIG"
 
22954
fi
 
22955
 
 
22956
 
 
22957
 
 
22958
 
 
22959
cat >>confdefs.h <<\_ACEOF
 
22960
#define ENABLE_HURD_MACH_NOTIFY 1
 
22961
_ACEOF
 
22962
 
 
22963
        backends="${backends}, hurd_mach_notify"
 
22964
fi
 
22965
 
22019
22966
echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5
22020
22967
echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6
22021
22968
cat >conftest.$ac_ext <<_ACEOF
22322
23269
 
22323
23270
 
22324
23271
 
22325
 
 
22326
 
                                                                                ac_config_files="$ac_config_files Makefile lib/Makefile libgamin/Makefile server/Makefile tests/Makefile doc/Makefile gamin.pc gamin.spec"
 
23272
# Check whether --with-python or --without-python was given.
 
23273
if test "${with_python+set}" = set; then
 
23274
  withval="$with_python"
 
23275
 
 
23276
fi;
 
23277
 
 
23278
PYTHON_VERSION=
 
23279
PYTHON_INCLUDES=
 
23280
PYTHON_SITE_PACKAGES=
 
23281
PYTHON_TESTS=
 
23282
pythondir=
 
23283
if test "$with_python" != "no" ; then
 
23284
    if test -x "$with_python/bin/python"
 
23285
    then
 
23286
        echo Found python in $with_python/bin/python
 
23287
        PYTHON="$with_python/bin/python"
 
23288
    else
 
23289
        if test -x "$with_python"
 
23290
        then
 
23291
            echo Found python in $with_python
 
23292
            PYTHON="$with_python"
 
23293
        else
 
23294
            if test -x "$PYTHON"
 
23295
            then
 
23296
                echo Found python in environment PYTHON=$PYTHON
 
23297
                with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
 
23298
            else
 
23299
                # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
 
23300
set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
 
23301
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23303
if test "${ac_cv_path_PYTHON+set}" = set; then
 
23304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23305
else
 
23306
  case $PYTHON in
 
23307
  [\\/]* | ?:[\\/]*)
 
23308
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
23309
  ;;
 
23310
  *)
 
23311
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23312
for as_dir in $PATH
 
23313
do
 
23314
  IFS=$as_save_IFS
 
23315
  test -z "$as_dir" && as_dir=.
 
23316
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23317
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23318
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
23319
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23320
    break 2
 
23321
  fi
 
23322
done
 
23323
done
 
23324
 
 
23325
  ;;
 
23326
esac
 
23327
fi
 
23328
PYTHON=$ac_cv_path_PYTHON
 
23329
 
 
23330
if test -n "$PYTHON"; then
 
23331
  echo "$as_me:$LINENO: result: $PYTHON" >&5
 
23332
echo "${ECHO_T}$PYTHON" >&6
 
23333
else
 
23334
  echo "$as_me:$LINENO: result: no" >&5
 
23335
echo "${ECHO_T}no" >&6
 
23336
fi
 
23337
 
 
23338
            fi
 
23339
        fi
 
23340
    fi
 
23341
    if test "$PYTHON" != ""
 
23342
    then
 
23343
        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
 
23344
        echo Found Python version $PYTHON_VERSION
 
23345
    fi
 
23346
    if test "$PYTHON_VERSION" != ""
 
23347
    then
 
23348
        if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
 
23349
           -d $with_python/lib/python$PYTHON_VERSION/site-packages
 
23350
        then
 
23351
            PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
 
23352
            PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
 
23353
        else
 
23354
            if test -r $prefix/include/python$PYTHON_VERSION/Python.h
 
23355
            then
 
23356
                PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
 
23357
                PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
 
23358
            else
 
23359
                if test -r /usr/include/python$PYTHON_VERSION/Python.h
 
23360
                then
 
23361
                    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
 
23362
                    PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
 
23363
                else
 
23364
                    echo could not find python$PYTHON_VERSION/Python.h
 
23365
                fi
 
23366
            fi
 
23367
            if test ! -d "$PYTHON_SITE_PACKAGES"
 
23368
            then
 
23369
                    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
 
23370
            fi
 
23371
        fi
 
23372
    fi
 
23373
    if test "$with_python" != ""
 
23374
    then
 
23375
        pythondir='$(PYTHON_SITE_PACKAGES)'
 
23376
    else
 
23377
        pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
 
23378
    fi
 
23379
else
 
23380
    PYTHON=
 
23381
fi
 
23382
 
 
23383
 
 
23384
if test "$PYTHON_INCLUDES" != ""; then
 
23385
  WITH_PYTHON_TRUE=
 
23386
  WITH_PYTHON_FALSE='#'
 
23387
else
 
23388
  WITH_PYTHON_TRUE='#'
 
23389
  WITH_PYTHON_FALSE=
 
23390
fi
 
23391
 
 
23392
if test "$PYTHON_INCLUDES" != ""
 
23393
then
 
23394
    PYTHON_SUBDIR=python
 
23395
else
 
23396
    PYTHON_SUBDIR=
 
23397
fi
 
23398
 
 
23399
 
 
23400
 
 
23401
 
 
23402
 
 
23403
 
 
23404
 
 
23405
 
 
23406
 
 
23407
echo "$as_me:$LINENO: checking for more compiler warnings" >&5
 
23408
echo $ECHO_N "checking for more compiler warnings... $ECHO_C" >&6
 
23409
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 
23410
        echo "$as_me:$LINENO: result: yes" >&5
 
23411
echo "${ECHO_T}yes" >&6
 
23412
        CFLAGS="\
 
23413
 -Wall\
 
23414
 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes\
 
23415
 -Wnested-externs\
 
23416
 -Wsign-compare"
 
23417
 
 
23418
        for option in -Wno-sign-compare; do
 
23419
                SAVE_CFLAGS="$CFLAGS"
 
23420
                CFLAGS="$CFLAGS $option"
 
23421
                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
 
23422
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
 
23423
                cat >conftest.$ac_ext <<_ACEOF
 
23424
/* confdefs.h.  */
 
23425
_ACEOF
 
23426
cat confdefs.h >>conftest.$ac_ext
 
23427
cat >>conftest.$ac_ext <<_ACEOF
 
23428
/* end confdefs.h.  */
 
23429
 
 
23430
int
 
23431
main ()
 
23432
{
 
23433
 
 
23434
  ;
 
23435
  return 0;
 
23436
}
 
23437
_ACEOF
 
23438
rm -f conftest.$ac_objext
 
23439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23440
  (eval $ac_compile) 2>conftest.er1
 
23441
  ac_status=$?
 
23442
  grep -v '^ *+' conftest.er1 >conftest.err
 
23443
  rm -f conftest.er1
 
23444
  cat conftest.err >&5
 
23445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23446
  (exit $ac_status); } &&
 
23447
         { ac_try='test -z "$ac_c_werror_flag"
 
23448
                         || test ! -s conftest.err'
 
23449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23450
  (eval $ac_try) 2>&5
 
23451
  ac_status=$?
 
23452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23453
  (exit $ac_status); }; } &&
 
23454
         { ac_try='test -s conftest.$ac_objext'
 
23455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23456
  (eval $ac_try) 2>&5
 
23457
  ac_status=$?
 
23458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23459
  (exit $ac_status); }; }; then
 
23460
  has_option=yes
 
23461
else
 
23462
  echo "$as_me: failed program was:" >&5
 
23463
sed 's/^/| /' conftest.$ac_ext >&5
 
23464
 
 
23465
has_option=no
 
23466
fi
 
23467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23468
                if test $has_option = no; then
 
23469
                        CFLAGS="$SAVE_CFLAGS"
 
23470
                fi
 
23471
                echo "$as_me:$LINENO: result: $has_option" >&5
 
23472
echo "${ECHO_T}$has_option" >&6
 
23473
                unset has_option
 
23474
                unset SAVE_CFLAGS
 
23475
        done
 
23476
        unset option
 
23477
else
 
23478
        echo "$as_me:$LINENO: result: no" >&5
 
23479
echo "${ECHO_T}no" >&6
 
23480
        unset CFLAGS
 
23481
fi
 
23482
 
 
23483
if test "$GCC" = "yes"; then
 
23484
        if test "$debug" = "yes"; then
 
23485
                CFLAGS="$CFLAGS -g"
 
23486
        else
 
23487
                #don't optimise with -g
 
23488
                if test -z "$ENV_CFLAGS"; then
 
23489
                        ENV_CFLAGS="-O2"
 
23490
                fi
 
23491
        fi
 
23492
fi
 
23493
 
 
23494
CFLAGS="$CFLAGS $ENV_CFLAGS"
 
23495
 
 
23496
 
 
23497
                                                                                                    ac_config_files="$ac_config_files Makefile lib/Makefile libgamin/Makefile server/Makefile tests/Makefile python/Makefile python/tests/Makefile doc/Makefile gamin.pc gamin.spec"
22327
23498
cat >confcache <<\_ACEOF
22328
23499
# This file is a shell script that caches the results of configure
22329
23500
# tests run on this system so they can be shared between configure
22450
23621
Usually this means the macro was only invoked conditionally." >&2;}
22451
23622
   { (exit 1); exit 1; }; }
22452
23623
fi
 
23624
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
 
23625
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
 
23626
Usually this means the macro was only invoked conditionally." >&5
 
23627
echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
 
23628
Usually this means the macro was only invoked conditionally." >&2;}
 
23629
   { (exit 1); exit 1; }; }
 
23630
fi
22453
23631
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22454
23632
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22455
23633
Usually this means the macro was only invoked conditionally." >&5
22464
23642
Usually this means the macro was only invoked conditionally." >&2;}
22465
23643
   { (exit 1); exit 1; }; }
22466
23644
fi
22467
 
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
22468
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
22469
 
Usually this means the macro was only invoked conditionally." >&5
22470
 
echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
22471
 
Usually this means the macro was only invoked conditionally." >&2;}
22472
 
   { (exit 1); exit 1; }; }
22473
 
fi
22474
 
if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
22475
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LINUX\" was never defined.
22476
 
Usually this means the macro was only invoked conditionally." >&5
22477
 
echo "$as_me: error: conditional \"HAVE_LINUX\" was never defined.
 
23645
if test -z "${ENABLE_INOTIFY_TRUE}" && test -z "${ENABLE_INOTIFY_FALSE}"; then
 
23646
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_INOTIFY\" was never defined.
 
23647
Usually this means the macro was only invoked conditionally." >&5
 
23648
echo "$as_me: error: conditional \"ENABLE_INOTIFY\" was never defined.
22478
23649
Usually this means the macro was only invoked conditionally." >&2;}
22479
23650
   { (exit 1); exit 1; }; }
22480
23651
fi
22485
23656
Usually this means the macro was only invoked conditionally." >&2;}
22486
23657
   { (exit 1); exit 1; }; }
22487
23658
fi
22488
 
if test -z "${ENABLE_INOTIFY_TRUE}" && test -z "${ENABLE_INOTIFY_FALSE}"; then
22489
 
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_INOTIFY\" was never defined.
22490
 
Usually this means the macro was only invoked conditionally." >&5
22491
 
echo "$as_me: error: conditional \"ENABLE_INOTIFY\" was never defined.
 
23659
if test -z "${ENABLE_KQUEUE_TRUE}" && test -z "${ENABLE_KQUEUE_FALSE}"; then
 
23660
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_KQUEUE\" was never defined.
 
23661
Usually this means the macro was only invoked conditionally." >&5
 
23662
echo "$as_me: error: conditional \"ENABLE_KQUEUE\" was never defined.
 
23663
Usually this means the macro was only invoked conditionally." >&2;}
 
23664
   { (exit 1); exit 1; }; }
 
23665
fi
 
23666
if test -z "${ENABLE_HURD_MACH_NOTIFY_TRUE}" && test -z "${ENABLE_HURD_MACH_NOTIFY_FALSE}"; then
 
23667
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
 
23668
Usually this means the macro was only invoked conditionally." >&5
 
23669
echo "$as_me: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
 
23670
Usually this means the macro was only invoked conditionally." >&2;}
 
23671
   { (exit 1); exit 1; }; }
 
23672
fi
 
23673
if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
 
23674
  { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
 
23675
Usually this means the macro was only invoked conditionally." >&5
 
23676
echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
22492
23677
Usually this means the macro was only invoked conditionally." >&2;}
22493
23678
   { (exit 1); exit 1; }; }
22494
23679
fi
22941
24126
  "libgamin/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgamin/Makefile" ;;
22942
24127
  "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
22943
24128
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
24129
  "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
 
24130
  "python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
22944
24131
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22945
24132
  "gamin.pc" ) CONFIG_FILES="$CONFIG_FILES gamin.pc" ;;
22946
24133
  "gamin.spec" ) CONFIG_FILES="$CONFIG_FILES gamin.spec" ;;
23060
24247
s,@AUTOMAKE@,$AUTOMAKE,;t t
23061
24248
s,@AUTOHEADER@,$AUTOHEADER,;t t
23062
24249
s,@MAKEINFO@,$MAKEINFO,;t t
23063
 
s,@AMTAR@,$AMTAR,;t t
23064
24250
s,@install_sh@,$install_sh,;t t
23065
24251
s,@STRIP@,$STRIP,;t t
23066
24252
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23069
24255
s,@AWK@,$AWK,;t t
23070
24256
s,@SET_MAKE@,$SET_MAKE,;t t
23071
24257
s,@am__leading_dot@,$am__leading_dot,;t t
 
24258
s,@AMTAR@,$AMTAR,;t t
 
24259
s,@am__tar@,$am__tar,;t t
 
24260
s,@am__untar@,$am__untar,;t t
23072
24261
s,@CC@,$CC,;t t
23073
24262
s,@CFLAGS@,$CFLAGS,;t t
23074
24263
s,@LDFLAGS@,$LDFLAGS,;t t
23085
24274
s,@CCDEPMODE@,$CCDEPMODE,;t t
23086
24275
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23087
24276
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
24277
s,@SED@,$SED,;t t
23088
24278
s,@EGREP@,$EGREP,;t t
23089
24279
s,@LN_S@,$LN_S,;t t
23090
24280
s,@ECHO@,$ECHO,;t t
23105
24295
s,@ac_ct_F77@,$ac_ct_F77,;t t
23106
24296
s,@LIBTOOL@,$LIBTOOL,;t t
23107
24297
s,@RELDATE@,$RELDATE,;t t
 
24298
s,@BUILD_DOCS_TRUE@,$BUILD_DOCS_TRUE,;t t
 
24299
s,@BUILD_DOCS_FALSE@,$BUILD_DOCS_FALSE,;t t
23108
24300
s,@HTML_DIR@,$HTML_DIR,;t t
23109
24301
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
23110
24302
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
23111
24303
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
24304
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23112
24305
s,@DAEMON_CFLAGS@,$DAEMON_CFLAGS,;t t
23113
24306
s,@DAEMON_LIBS@,$DAEMON_LIBS,;t t
23114
24307
s,@LIBGAMIN_CFLAGS@,$LIBGAMIN_CFLAGS,;t t
23117
24310
s,@TEST_LIBS@,$TEST_LIBS,;t t
23118
24311
s,@GAMIN_DEBUG_TRUE@,$GAMIN_DEBUG_TRUE,;t t
23119
24312
s,@GAMIN_DEBUG_FALSE@,$GAMIN_DEBUG_FALSE,;t t
23120
 
s,@BUILD_DOCS_TRUE@,$BUILD_DOCS_TRUE,;t t
23121
 
s,@BUILD_DOCS_FALSE@,$BUILD_DOCS_FALSE,;t t
23122
 
s,@HAVE_LINUX_TRUE@,$HAVE_LINUX_TRUE,;t t
23123
 
s,@HAVE_LINUX_FALSE@,$HAVE_LINUX_FALSE,;t t
 
24313
s,@ENABLE_INOTIFY_TRUE@,$ENABLE_INOTIFY_TRUE,;t t
 
24314
s,@ENABLE_INOTIFY_FALSE@,$ENABLE_INOTIFY_FALSE,;t t
23124
24315
s,@ENABLE_DNOTIFY_TRUE@,$ENABLE_DNOTIFY_TRUE,;t t
23125
24316
s,@ENABLE_DNOTIFY_FALSE@,$ENABLE_DNOTIFY_FALSE,;t t
23126
 
s,@ENABLE_INOTIFY_TRUE@,$ENABLE_INOTIFY_TRUE,;t t
23127
 
s,@ENABLE_INOTIFY_FALSE@,$ENABLE_INOTIFY_FALSE,;t t
 
24317
s,@ENABLE_KQUEUE_TRUE@,$ENABLE_KQUEUE_TRUE,;t t
 
24318
s,@ENABLE_KQUEUE_FALSE@,$ENABLE_KQUEUE_FALSE,;t t
 
24319
s,@THREAD_LIBS@,$THREAD_LIBS,;t t
 
24320
s,@WITH_THREADS@,$WITH_THREADS,;t t
 
24321
s,@ENABLE_HURD_MACH_NOTIFY_TRUE@,$ENABLE_HURD_MACH_NOTIFY_TRUE,;t t
 
24322
s,@ENABLE_HURD_MACH_NOTIFY_FALSE@,$ENABLE_HURD_MACH_NOTIFY_FALSE,;t t
 
24323
s,@MIG@,$MIG,;t t
 
24324
s,@ac_ct_MIG@,$ac_ct_MIG,;t t
 
24325
s,@PYTHON@,$PYTHON,;t t
 
24326
s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
 
24327
s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
 
24328
s,@pythondir@,$pythondir,;t t
 
24329
s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t
 
24330
s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
 
24331
s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
 
24332
s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
23128
24333
s,@LIBOBJS@,$LIBOBJS,;t t
23129
24334
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23130
24335
CEOF
23749
24954
  else
23750
24955
    continue
23751
24956
  fi
23752
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23753
 
  # Extract the definition of DEP_FILES from the Makefile without
23754
 
  # running `make'.
23755
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
24957
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24958
  # from the Makefile without running `make'.
 
24959
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23756
24960
  test -z "$DEPDIR" && continue
 
24961
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24962
  test -z "am__include" && continue
 
24963
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23757
24964
  # When using ansi2knr, U may be empty or an underscore; expand it
23758
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
23759
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23760
 
  # We invoke sed twice because it is the simplest approach to
23761
 
  # changing $(DEPDIR) to its actual value in the expansion.
23762
 
  for file in `sed -n -e '
23763
 
    /^DEP_FILES = .*\\\\$/ {
23764
 
      s/^DEP_FILES = //
23765
 
      :loop
23766
 
        s/\\\\$//
23767
 
        p
23768
 
        n
23769
 
        /\\\\$/ b loop
23770
 
      p
23771
 
    }
23772
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24965
  U=`sed -n 's/^U = //p' < "$mf"`
 
24966
  # Find all dependency output files, they are included files with
 
24967
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24968
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24969
  # expansion.
 
24970
  for file in `sed -n "
 
24971
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23773
24972
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23774
24973
    # Make sure the directory exists.
23775
24974
    test -f "$dirpart/$file" && continue
23858
25057
        prefix:                   ${prefix}
23859
25058
        source code location:     ${srcdir}
23860
25059
        compiler:                 ${CC}
 
25060
        compiler flags:           ${CFLAGS}
23861
25061
 
23862
25062
        backends:                 ${backends}
23863
25063
        build documentation:      ${build_docs}
 
25064
        debug support:            ${debug}
23864
25065
"