~ubuntu-branches/ubuntu/maverick/xdm/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): David Nusinow
  • Date: 2006-06-30 00:42:11 UTC
  • mto: (7.1.1 gutsy)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060630004211-puz2hz052bab3kq9
Tags: upstream-1.0.5
ImportĀ upstreamĀ versionĀ 1.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for xdm 1.0.1.
 
3
# Generated by GNU Autoconf 2.59 for xdm 1.0.5.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
280
280
 
281
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
282
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
284
 
285
285
if test -z "$ECHO"; then
286
286
if test "X${echo_test_string+set}" != Xset; then
287
287
# find a string as large as possible, as long as the shell can cope with it
288
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
292
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
293
    then
294
294
      break
423
423
# Identity of this package.
424
424
PACKAGE_NAME='xdm'
425
425
PACKAGE_TARNAME='xdm'
426
 
PACKAGE_VERSION='1.0.1'
427
 
PACKAGE_STRING='xdm 1.0.1'
 
426
PACKAGE_VERSION='1.0.5'
 
427
PACKAGE_STRING='xdm 1.0.5'
428
428
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
429
 
430
430
# Factoring default headers for most tests.
464
464
# include <unistd.h>
465
465
#endif"
466
466
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RAWCPP RAWCPPFLAGS HAS_SECURE_RPC_TRUE HAS_SECURE_RPC_FALSE SU HAS_ARC4_RANDOM_TRUE HAS_ARC4_RANDOM_FALSE RANDOMMANDEFS HAS_KERBEROS_FIVE_TRUE HAS_KERBEROS_FIVE_FALSE XDMLIBDIR XDMCONFIGDIR XDMSCRIPTDIR XDMLOGDIR XDMPIDDIR DEFAULTVT SERVERSTYPE SHELL_CMD PKG_CONFIG ac_pt_PKG_CONFIG XDM_CFLAGS XDM_LIBS XINERAMA_CFLAGS XINERAMA_LIBS XPM_CFLAGS XPM_LIBS USE_XPM_TRUE USE_XPM_FALSE XDM_PIXMAP XDM_BWPIXMAP XDM_PIXMAPDIR TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE DMCP_CFLAGS DMCP_LIBS XLIB_CFLAGS XLIB_LIBS AUTH_CFLAGS AUTH_LIBS XDMGREET_CFLAGS XDMGREET_LIBS DEF_GREETER_LIB DYNAMIC_GREETER_TRUE DYNAMIC_GREETER_FALSE HAS_XDM_AUTH_TRUE HAS_XDM_AUTH_FALSE XDM_LDFLAGS XT_CFLAGS XT_LIBS XDMSHELL_CFLAGS XDMSHELL_LIBS CHOOSER_CFLAGS CHOOSER_LIBS DEF_SERVER_LINE XRDB_PROGRAM DEF_SESSION DEF_USER_PATH DEF_SYSTEM_PATH DEF_SYSTEM_SHELL DEF_FAILSAFE_CLIENT DEF_XDM_CONFIG DEF_CHOOSER DEF_AUTH_DIR APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RAWCPP RAWCPPFLAGS MKTEMP_COMMAND HAVE_MKTEMP_COMMAND_TRUE HAVE_MKTEMP_COMMAND_FALSE HAS_SECURE_RPC_TRUE HAS_SECURE_RPC_FALSE SU HAS_ARC4_RANDOM_TRUE HAS_ARC4_RANDOM_FALSE RANDOMMANDEFS HAS_KERBEROS_FIVE_TRUE HAS_KERBEROS_FIVE_FALSE XDMLIBDIR XDMCONFIGDIR XDMSCRIPTDIR XDMLOGDIR XDMPIDDIR DEFAULTVT SERVERSTYPE SHELL_CMD PKG_CONFIG ac_pt_PKG_CONFIG XDM_CFLAGS XDM_LIBS XINERAMA_CFLAGS XINERAMA_LIBS XPM_CFLAGS XPM_LIBS USE_XPM_TRUE USE_XPM_FALSE XDM_PIXMAP XDM_BWPIXMAP XDM_PIXMAPDIR TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE DMCP_CFLAGS DMCP_LIBS XLIB_CFLAGS XLIB_LIBS AUTH_CFLAGS AUTH_LIBS XDMGREET_CFLAGS XDMGREET_LIBS DEF_GREETER_LIB DYNAMIC_GREETER_TRUE DYNAMIC_GREETER_FALSE HAS_XDM_AUTH_TRUE HAS_XDM_AUTH_FALSE XDM_LDFLAGS XT_CFLAGS XT_LIBS XDMSHELL_CFLAGS XDMSHELL_LIBS CHOOSER_CFLAGS CHOOSER_LIBS DEF_SERVER_LINE XRDB_PROGRAM DEF_SESSION DEF_USER_PATH DEF_SYSTEM_PATH DEF_SYSTEM_SHELL DEF_FAILSAFE_CLIENT DEF_XDM_CONFIG DEF_CHOOSER DEF_AUTH_DIR APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
468
468
ac_subst_files=''
469
469
 
470
470
# Initialize some variables set by options.
1037
1037
  # Omit some internal or obsolete options to make the list less imposing.
1038
1038
  # This message is too long to be a string in the A/UX 3.1 sh.
1039
1039
  cat <<_ACEOF
1040
 
\`configure' configures xdm 1.0.1 to adapt to many kinds of systems.
 
1040
\`configure' configures xdm 1.0.5 to adapt to many kinds of systems.
1041
1041
 
1042
1042
Usage: $0 [OPTION]... [VAR=VALUE]...
1043
1043
 
1103
1103
 
1104
1104
if test -n "$ac_init_help"; then
1105
1105
  case $ac_init_help in
1106
 
     short | recursive ) echo "Configuration of xdm 1.0.1:";;
 
1106
     short | recursive ) echo "Configuration of xdm 1.0.5:";;
1107
1107
   esac
1108
1108
  cat <<\_ACEOF
1109
1109
 
1110
1110
Optional Features:
1111
1111
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1112
1112
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1113
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1114
 
                          (and sometimes confusing) to the casual installer
1115
 
  --disable-dependency-tracking Speeds up one-time builds
1116
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1113
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1114
                          (and sometimes confusing) to the casual installer
 
1115
  --disable-dependency-tracking  speeds up one-time build
 
1116
  --enable-dependency-tracking   do not reject slow dependency extractors
1117
1117
  --enable-shared[=PKGS]
1118
1118
                          build shared libraries [default=yes]
1119
1119
  --enable-static[=PKGS]
1315
1315
test -n "$ac_init_help" && exit 0
1316
1316
if $ac_init_version; then
1317
1317
  cat <<\_ACEOF
1318
 
xdm configure 1.0.1
 
1318
xdm configure 1.0.5
1319
1319
generated by GNU Autoconf 2.59
1320
1320
 
1321
1321
Copyright (C) 2003 Free Software Foundation, Inc.
1329
1329
This file contains any messages produced by compilers while
1330
1330
running configure, to aid debugging if configure makes a mistake.
1331
1331
 
1332
 
It was created by xdm $as_me 1.0.1, which was
 
1332
It was created by xdm $as_me 1.0.5, which was
1333
1333
generated by GNU Autoconf 2.59.  Invocation command line was
1334
1334
 
1335
1335
  $ $0 $@
1665
1665
 
1666
1666
 
1667
1667
 
1668
 
am__api_version="1.7"
 
1668
am__api_version="1.8"
1669
1669
ac_aux_dir=
1670
1670
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1671
1671
  if test -f $ac_dir/install-sh; then
1828
1828
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829
1829
rm conftest.sed
1830
1830
 
1831
 
 
1832
1831
# expand $ac_aux_dir to an absolute path
1833
1832
am_aux_dir=`cd $ac_aux_dir && pwd`
1834
1833
 
1842
1841
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843
1842
fi
1844
1843
 
 
1844
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1845
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
1846
  # argument.  Indeed, we sometimes output rules like
 
1847
  #   $(mkdir_p) $(somedir)
 
1848
  # where $(somedir) is conditionally defined.
 
1849
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
1850
  # expensive solution, as it forces Make to start a sub-shell.)
 
1851
  mkdir_p='mkdir -p -- .'
 
1852
else
 
1853
  # On NextStep and OpenStep, the `mkdir' command does not
 
1854
  # recognize any option.  It will interpret all options as
 
1855
  # directories to create, and then abort because `.' already
 
1856
  # exists.
 
1857
  for d in ./-p ./--version;
 
1858
  do
 
1859
    test -d $d && rmdir $d
 
1860
  done
 
1861
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1862
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1863
    mkdir_p='$(mkinstalldirs)'
 
1864
  else
 
1865
    mkdir_p='$(install_sh) -d'
 
1866
  fi
 
1867
fi
 
1868
 
1845
1869
for ac_prog in gawk mawk nawk awk
1846
1870
do
1847
1871
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1920
1944
fi
1921
1945
rmdir .tst 2>/dev/null
1922
1946
 
1923
 
 # test to see if srcdir already configured
 
1947
# test to see if srcdir already configured
1924
1948
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1925
1949
   test -f $srcdir/config.status; then
1926
1950
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1940
1964
 
1941
1965
# Define the identity of the package.
1942
1966
 PACKAGE='xdm'
1943
 
 VERSION='1.0.1'
 
1967
 VERSION='1.0.5'
1944
1968
 
1945
1969
 
1946
1970
cat >>confdefs.h <<_ACEOF
3130
3154
    : > sub/conftest.c
3131
3155
    for i in 1 2 3 4 5 6; do
3132
3156
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3133
 
      : > sub/conftst$i.h
 
3157
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3158
      # Solaris 8's {/usr,}/bin/sh.
 
3159
      touch sub/conftst$i.h
3134
3160
    done
3135
3161
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3136
3162
 
3192
3218
 
3193
3219
 
3194
3220
 
 
3221
echo "$as_me:$LINENO: checking for inline" >&5
 
3222
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
3223
if test "${ac_cv_c_inline+set}" = set; then
 
3224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3225
else
 
3226
  ac_cv_c_inline=no
 
3227
for ac_kw in inline __inline__ __inline; do
 
3228
  cat >conftest.$ac_ext <<_ACEOF
 
3229
/* confdefs.h.  */
 
3230
_ACEOF
 
3231
cat confdefs.h >>conftest.$ac_ext
 
3232
cat >>conftest.$ac_ext <<_ACEOF
 
3233
/* end confdefs.h.  */
 
3234
#ifndef __cplusplus
 
3235
typedef int foo_t;
 
3236
static $ac_kw foo_t static_foo () {return 0; }
 
3237
$ac_kw foo_t foo () {return 0; }
 
3238
#endif
 
3239
 
 
3240
_ACEOF
 
3241
rm -f conftest.$ac_objext
 
3242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3243
  (eval $ac_compile) 2>conftest.er1
 
3244
  ac_status=$?
 
3245
  grep -v '^ *+' conftest.er1 >conftest.err
 
3246
  rm -f conftest.er1
 
3247
  cat conftest.err >&5
 
3248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3249
  (exit $ac_status); } &&
 
3250
         { ac_try='test -z "$ac_c_werror_flag"
 
3251
                         || test ! -s conftest.err'
 
3252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3253
  (eval $ac_try) 2>&5
 
3254
  ac_status=$?
 
3255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3256
  (exit $ac_status); }; } &&
 
3257
         { ac_try='test -s conftest.$ac_objext'
 
3258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3259
  (eval $ac_try) 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); }; }; then
 
3263
  ac_cv_c_inline=$ac_kw; break
 
3264
else
 
3265
  echo "$as_me: failed program was:" >&5
 
3266
sed 's/^/| /' conftest.$ac_ext >&5
 
3267
 
 
3268
fi
 
3269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3270
done
 
3271
 
 
3272
fi
 
3273
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
3274
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
3275
 
 
3276
 
 
3277
case $ac_cv_c_inline in
 
3278
  inline | yes) ;;
 
3279
  *)
 
3280
    case $ac_cv_c_inline in
 
3281
      no) ac_val=;;
 
3282
      *) ac_val=$ac_cv_c_inline;;
 
3283
    esac
 
3284
    cat >>confdefs.h <<_ACEOF
 
3285
#ifndef __cplusplus
 
3286
#define inline $ac_val
 
3287
#endif
 
3288
_ACEOF
 
3289
    ;;
 
3290
esac
 
3291
 
 
3292
 
3195
3293
 
3196
3294
# Check whether --enable-shared or --disable-shared was given.
3197
3295
if test "${enable_shared+set}" = set; then
3344
3442
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3345
3443
# along with /bin/sed that truncates output.
3346
3444
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3347
 
  test ! -f $lt_ac_sed && break
 
3445
  test ! -f $lt_ac_sed && continue
3348
3446
  cat /dev/null > conftest.in
3349
3447
  lt_ac_count=0
3350
3448
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3369
3467
    fi
3370
3468
  done
3371
3469
done
 
3470
 
 
3471
fi
 
3472
 
3372
3473
SED=$lt_cv_path_SED
3373
 
 
3374
 
fi
3375
 
 
3376
3474
echo "$as_me:$LINENO: result: $SED" >&5
3377
3475
echo "${ECHO_T}$SED" >&6
3378
3476
 
3449
3547
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3450
3548
      lt_cv_path_LD="$ac_dir/$ac_prog"
3451
3549
      # Check to see if the program is GNU ld.  I'd rather use --version,
3452
 
      # but apparently some GNU ld's only accept -v.
 
3550
      # but apparently some variants of GNU ld only accept -v.
3453
3551
      # Break only if it was the GNU/non-GNU ld that we prefer.
3454
3552
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3455
3553
      *GNU* | *'with BFD'*)
3483
3581
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3484
3582
  echo $ECHO_N "(cached) $ECHO_C" >&6
3485
3583
else
3486
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3584
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3487
3585
case `$LD -v 2>&1 </dev/null` in
3488
3586
*GNU* | *'with BFD'*)
3489
3587
  lt_cv_prog_gnu_ld=yes
3513
3611
*) reload_flag=" $reload_flag" ;;
3514
3612
esac
3515
3613
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3614
case $host_os in
 
3615
  darwin*)
 
3616
    if test "$GCC" = yes; then
 
3617
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3618
    else
 
3619
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3620
    fi
 
3621
    ;;
 
3622
esac
3516
3623
 
3517
3624
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3518
3625
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3523
3630
  # Let the user override the test.
3524
3631
  lt_cv_path_NM="$NM"
3525
3632
else
3526
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3528
 
    IFS="$lt_save_ifs"
3529
 
    test -z "$ac_dir" && ac_dir=.
3530
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3531
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532
 
      # Check to see if the nm accepts a BSD-compat flag.
3533
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534
 
      #   nm: unknown option "B" ignored
3535
 
      # Tru64's nm complains that /dev/null is an invalid object file
3536
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537
 
      */dev/null* | *'Invalid file or object type'*)
3538
 
        lt_cv_path_NM="$tmp_nm -B"
3539
 
        break
3540
 
        ;;
3541
 
      *)
3542
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3543
 
        */dev/null*)
3544
 
          lt_cv_path_NM="$tmp_nm -p"
 
3633
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3634
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3635
    lt_nm_to_check="$lt_nm_to_check nm"
 
3636
  fi
 
3637
  for lt_tmp_nm in $lt_nm_to_check; do
 
3638
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3639
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3640
      IFS="$lt_save_ifs"
 
3641
      test -z "$ac_dir" && ac_dir=.
 
3642
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3643
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3644
        # Check to see if the nm accepts a BSD-compat flag.
 
3645
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3646
        #   nm: unknown option "B" ignored
 
3647
        # Tru64's nm complains that /dev/null is an invalid object file
 
3648
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3649
        */dev/null* | *'Invalid file or object type'*)
 
3650
          lt_cv_path_NM="$tmp_nm -B"
3545
3651
          break
3546
3652
          ;;
3547
3653
        *)
3548
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549
 
          continue # so that we can try to find one that supports BSD flags
 
3654
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3655
          */dev/null*)
 
3656
            lt_cv_path_NM="$tmp_nm -p"
 
3657
            break
 
3658
            ;;
 
3659
          *)
 
3660
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3661
            continue # so that we can try to find one that supports BSD flags
 
3662
            ;;
 
3663
          esac
3550
3664
          ;;
3551
3665
        esac
3552
 
      esac
3553
 
    fi
 
3666
      fi
 
3667
    done
 
3668
    IFS="$lt_save_ifs"
3554
3669
  done
3555
 
  IFS="$lt_save_ifs"
3556
3670
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3557
3671
fi
3558
3672
fi
3599
3713
  lt_cv_deplibs_check_method=pass_all
3600
3714
  ;;
3601
3715
 
3602
 
bsdi4*)
 
3716
bsdi[45]*)
3603
3717
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3604
3718
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3605
3719
  lt_cv_file_magic_test_file=/shlib/libc.so
3622
3736
  lt_cv_deplibs_check_method=pass_all
3623
3737
  ;;
3624
3738
 
3625
 
freebsd* | kfreebsd*-gnu)
 
3739
freebsd* | kfreebsd*-gnu | dragonfly*)
3626
3740
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3627
3741
    case $host_cpu in
3628
3742
    i*86 )
3629
3743
      # Not sure whether the presence of OpenBSD here was a mistake.
3630
3744
      # Let's accept both of them until this is cleared up.
3631
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3745
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3632
3746
      lt_cv_file_magic_cmd=/usr/bin/file
3633
3747
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3634
3748
      ;;
3644
3758
 
3645
3759
hpux10.20* | hpux11*)
3646
3760
  lt_cv_file_magic_cmd=/usr/bin/file
3647
 
  case "$host_cpu" in
 
3761
  case $host_cpu in
3648
3762
  ia64*)
3649
3763
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3650
3764
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3660
3774
  esac
3661
3775
  ;;
3662
3776
 
 
3777
interix3*)
 
3778
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3779
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3780
  ;;
 
3781
 
3663
3782
irix5* | irix6* | nonstopux*)
3664
3783
  case $LD in
3665
3784
  *-32|*"-32 ") libmagic=32-bit;;
3672
3791
 
3673
3792
# This must be Linux ELF.
3674
3793
linux*)
3675
 
  case $host_cpu in
3676
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3677
 
    lt_cv_deplibs_check_method=pass_all ;;
3678
 
  *)
3679
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3680
 
    # this will be overridden with pass_all, but let us keep it just in case
3681
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3682
 
  esac
3683
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3684
3794
  lt_cv_deplibs_check_method=pass_all
3685
3795
  ;;
3686
3796
 
3703
3813
  ;;
3704
3814
 
3705
3815
openbsd*)
3706
 
  lt_cv_file_magic_cmd=/usr/bin/file
3707
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3708
3816
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3709
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3817
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3710
3818
  else
3711
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3819
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3712
3820
  fi
3713
3821
  ;;
3714
3822
 
3716
3824
  lt_cv_deplibs_check_method=pass_all
3717
3825
  ;;
3718
3826
 
3719
 
sco3.2v5*)
3720
 
  lt_cv_deplibs_check_method=pass_all
3721
 
  ;;
3722
 
 
3723
3827
solaris*)
3724
3828
  lt_cv_deplibs_check_method=pass_all
3725
3829
  ;;
3726
3830
 
3727
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3831
sysv4 | sysv4.3*)
3728
3832
  case $host_vendor in
3729
3833
  motorola)
3730
3834
    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]'
3745
3849
  siemens)
3746
3850
    lt_cv_deplibs_check_method=pass_all
3747
3851
    ;;
 
3852
  pc)
 
3853
    lt_cv_deplibs_check_method=pass_all
 
3854
    ;;
3748
3855
  esac
3749
3856
  ;;
3750
3857
 
3751
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3858
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3752
3859
  lt_cv_deplibs_check_method=pass_all
3753
3860
  ;;
3754
3861
esac
3766
3873
# If no C compiler was specified, use CC.
3767
3874
LTCC=${LTCC-"$CC"}
3768
3875
 
 
3876
# If no C compiler flags were specified, use CFLAGS.
 
3877
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3878
 
3769
3879
# Allow CC to be a program name with arguments.
3770
3880
compiler=$CC
3771
3881
 
3772
 
 
3773
3882
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3774
3883
if test "${enable_libtool_lock+set}" = set; then
3775
3884
  enableval="$enable_libtool_lock"
3801
3910
  ;;
3802
3911
*-*-irix6*)
3803
3912
  # Find out which ABI we are using.
3804
 
  echo '#line 3804 "configure"' > conftest.$ac_ext
 
3913
  echo '#line 3913 "configure"' > conftest.$ac_ext
3805
3914
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806
3915
  (eval $ac_compile) 2>&5
3807
3916
  ac_status=$?
3844
3953
  ac_status=$?
3845
3954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
3955
  (exit $ac_status); }; then
3847
 
    case "`/usr/bin/file conftest.o`" in
 
3956
    case `/usr/bin/file conftest.o` in
3848
3957
    *32-bit*)
3849
3958
      case $host in
3850
3959
        x86_64-*linux*)
3957
4066
    CFLAGS="$SAVE_CFLAGS"
3958
4067
  fi
3959
4068
  ;;
 
4069
sparc*-*solaris*)
 
4070
  # Find out which ABI we are using.
 
4071
  echo 'int i;' > conftest.$ac_ext
 
4072
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4073
  (eval $ac_compile) 2>&5
 
4074
  ac_status=$?
 
4075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4076
  (exit $ac_status); }; then
 
4077
    case `/usr/bin/file conftest.o` in
 
4078
    *64-bit*)
 
4079
      case $lt_cv_prog_gnu_ld in
 
4080
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4081
      *)    LD="${LD-ld} -64" ;;
 
4082
      esac
 
4083
      ;;
 
4084
    esac
 
4085
  fi
 
4086
  rm -rf conftest*
 
4087
  ;;
 
4088
 
3960
4089
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3961
4090
  if test -n "$ac_tool_prefix"; then
3962
4091
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5224
5353
    : > sub/conftest.c
5225
5354
    for i in 1 2 3 4 5 6; do
5226
5355
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227
 
      : > sub/conftst$i.h
 
5356
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5357
      # Solaris 8's {/usr,}/bin/sh.
 
5358
      touch sub/conftst$i.h
5228
5359
    done
5229
5360
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5230
5361
 
5285
5416
fi
5286
5417
 
5287
5418
 
5288
 
ac_ext=cc
 
5419
 
 
5420
 
 
5421
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5422
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5423
    (test "X$CXX" != "Xg++"))) ; then
 
5424
  ac_ext=cc
5289
5425
ac_cpp='$CXXCPP $CPPFLAGS'
5290
5426
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291
5427
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515
5651
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516
5652
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5517
5653
 
 
5654
fi
 
5655
 
5518
5656
 
5519
5657
ac_ext=f
5520
5658
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5608
5746
 
5609
5747
 
5610
5748
# Provide some information about the compiler.
5611
 
echo "$as_me:5611:" \
 
5749
echo "$as_me:5749:" \
5612
5750
     "checking for Fortran 77 compiler version" >&5
5613
5751
ac_compiler=`set X $ac_compile; echo $2`
5614
5752
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5798
5936
    lt_cv_sys_max_cmd_len=8192;
5799
5937
    ;;
5800
5938
 
5801
 
 *)
 
5939
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5940
    # This has been around since 386BSD, at least.  Likely further.
 
5941
    if test -x /sbin/sysctl; then
 
5942
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5943
    elif test -x /usr/sbin/sysctl; then
 
5944
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5945
    else
 
5946
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5947
    fi
 
5948
    # And add a safety zone
 
5949
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5950
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5951
    ;;
 
5952
 
 
5953
  interix*)
 
5954
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5955
    lt_cv_sys_max_cmd_len=196608
 
5956
    ;;
 
5957
 
 
5958
  osf*)
 
5959
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5960
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5961
    # nice to cause kernel panics so lets avoid the loop below.
 
5962
    # First set a reasonable default.
 
5963
    lt_cv_sys_max_cmd_len=16384
 
5964
    #
 
5965
    if test -x /sbin/sysconfig; then
 
5966
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5967
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5968
      esac
 
5969
    fi
 
5970
    ;;
 
5971
  sco3.2v5*)
 
5972
    lt_cv_sys_max_cmd_len=102400
 
5973
    ;;
 
5974
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5975
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5976
    if test -n "$kargmax"; then
 
5977
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5978
    else
 
5979
      lt_cv_sys_max_cmd_len=32768
 
5980
    fi
 
5981
    ;;
 
5982
  *)
5802
5983
    # If test is not a shell built-in, we'll probably end up computing a
5803
5984
    # maximum length that is only half of the actual maximum length, but
5804
5985
    # we can't tell.
5805
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5986
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5987
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5806
5988
               = "XX$teststring") >/dev/null 2>&1 &&
5807
5989
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5808
5990
            lt_cv_sys_max_cmd_len=$new_result &&
5848
6030
# Regexp to match symbols that can be accessed directly from C.
5849
6031
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5850
6032
 
5851
 
# Transform the above into a raw symbol and a C symbol.
5852
 
symxfrm='\1 \2\3 \3'
5853
 
 
5854
6033
# Transform an extracted symbol line into a proper C declaration
5855
6034
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5856
6035
 
5872
6051
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5873
6052
  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'"
5874
6053
  ;;
 
6054
linux*)
 
6055
  if test "$host_cpu" = ia64; then
 
6056
    symcode='[ABCDGIRSTW]'
 
6057
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6058
    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'"
 
6059
  fi
 
6060
  ;;
5875
6061
irix* | nonstopux*)
5876
6062
  symcode='[BCDEGRST]'
5877
6063
  ;;
5878
6064
osf*)
5879
6065
  symcode='[BCDEGQRST]'
5880
6066
  ;;
5881
 
solaris* | sysv5*)
 
6067
solaris*)
5882
6068
  symcode='[BDRT]'
5883
6069
  ;;
 
6070
sco3.2v5*)
 
6071
  symcode='[DT]'
 
6072
  ;;
 
6073
sysv4.2uw2*)
 
6074
  symcode='[DT]'
 
6075
  ;;
 
6076
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6077
  symcode='[ABDT]'
 
6078
  ;;
5884
6079
sysv4)
5885
6080
  symcode='[DFNSTU]'
5886
6081
  ;;
5903
6098
# Try without a prefix undercore, then with it.
5904
6099
for ac_symprfx in "" "_"; do
5905
6100
 
 
6101
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6102
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6103
 
5906
6104
  # Write the raw and C identifiers.
5907
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6105
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5908
6106
 
5909
6107
  # Check to see that the pipe works correctly.
5910
6108
  pipe_works=no
6066
6264
 
6067
6265
# Sed substitution that helps us do robust quoting.  It backslashifies
6068
6266
# metacharacters that are still active within double-quoted strings.
6069
 
Xsed='sed -e s/^X//'
 
6267
Xsed='sed -e 1s/^X//'
6070
6268
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6071
6269
 
6072
6270
# Same as above, but do not quote variable references.
6086
6284
default_ofile=libtool
6087
6285
can_build_shared=yes
6088
6286
 
6089
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6287
# All known linkers require a `.a' archive for static linking (except MSVC,
6090
6288
# which needs '.lib').
6091
6289
libext=a
6092
6290
ltmain="$ac_aux_dir/ltmain.sh"
6343
6541
test -z "$AS" && AS=as
6344
6542
test -z "$CC" && CC=cc
6345
6543
test -z "$LTCC" && LTCC=$CC
 
6544
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6346
6545
test -z "$DLLTOOL" && DLLTOOL=dlltool
6347
6546
test -z "$LD" && LD=ld
6348
6547
test -z "$LN_S" && LN_S="ln -s"
6362
6561
if test -n "$RANLIB"; then
6363
6562
  case $host_os in
6364
6563
  openbsd*)
6365
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6564
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6366
6565
    ;;
6367
6566
  *)
6368
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6567
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6369
6568
    ;;
6370
6569
  esac
6371
6570
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6372
6571
fi
6373
6572
 
 
6573
for cc_temp in $compiler""; do
 
6574
  case $cc_temp in
 
6575
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6576
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6577
    \-*) ;;
 
6578
    *) break;;
 
6579
  esac
 
6580
done
 
6581
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6582
 
 
6583
 
6374
6584
# Only perform the check for file, if the check method requires it
6375
6585
case $deplibs_check_method in
6376
6586
file_magic*)
6396
6606
      if test -n "$file_magic_test_file"; then
6397
6607
        case $deplibs_check_method in
6398
6608
        "file_magic "*)
6399
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6609
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6400
6610
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6401
6611
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6402
6612
            $EGREP "$file_magic_regex" > /dev/null; then
6458
6668
      if test -n "$file_magic_test_file"; then
6459
6669
        case $deplibs_check_method in
6460
6670
        "file_magic "*)
6461
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6671
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6462
6672
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6463
6673
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6464
6674
            $EGREP "$file_magic_regex" > /dev/null; then
6553
6763
# If no C compiler was specified, use CC.
6554
6764
LTCC=${LTCC-"$CC"}
6555
6765
 
 
6766
# If no C compiler flags were specified, use CFLAGS.
 
6767
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6768
 
6556
6769
# Allow CC to be a program name with arguments.
6557
6770
compiler=$CC
6558
6771
 
6559
6772
 
6560
 
#
6561
 
# Check for any special shared library compilation flags.
6562
 
#
6563
 
lt_prog_cc_shlib=
6564
 
if test "$GCC" = no; then
6565
 
  case $host_os in
6566
 
  sco3.2v5*)
6567
 
    lt_prog_cc_shlib='-belf'
6568
 
    ;;
6569
 
  esac
6570
 
fi
6571
 
if test -n "$lt_prog_cc_shlib"; then
6572
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6573
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6574
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6575
 
  else
6576
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6577
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6578
 
    lt_cv_prog_cc_can_build_shared=no
6579
 
  fi
6580
 
fi
6581
 
 
6582
 
 
6583
 
#
6584
 
# Check to make sure the static flag actually works.
6585
 
#
6586
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6587
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6588
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6590
 
else
6591
 
  lt_prog_compiler_static_works=no
6592
 
   save_LDFLAGS="$LDFLAGS"
6593
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6594
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6595
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6596
 
     # The compiler can only warn and ignore the option if not recognized
6597
 
     # So say no if there are warnings
6598
 
     if test -s conftest.err; then
6599
 
       # Append any errors to the config.log.
6600
 
       cat conftest.err 1>&5
6601
 
     else
6602
 
       lt_prog_compiler_static_works=yes
6603
 
     fi
6604
 
   fi
6605
 
   $rm conftest*
6606
 
   LDFLAGS="$save_LDFLAGS"
6607
 
 
6608
 
fi
6609
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6610
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6611
 
 
6612
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6613
 
    :
6614
 
else
6615
 
    lt_prog_compiler_static=
6616
 
fi
6617
 
 
 
6773
# save warnings/boilerplate of simple test code
 
6774
ac_outfile=conftest.$ac_objext
 
6775
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6776
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6777
_lt_compiler_boilerplate=`cat conftest.err`
 
6778
$rm conftest*
 
6779
 
 
6780
ac_outfile=conftest.$ac_objext
 
6781
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6782
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6783
_lt_linker_boilerplate=`cat conftest.err`
 
6784
$rm conftest*
6618
6785
 
6619
6786
 
6620
6787
 
6639
6806
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6640
6807
   # The option is referenced via a variable to avoid confusing sed.
6641
6808
   lt_compile=`echo "$ac_compile" | $SED \
6642
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6809
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6643
6810
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6644
6811
   -e 's:$: $lt_compiler_flag:'`
6645
 
   (eval echo "\"\$as_me:6645: $lt_compile\"" >&5)
 
6812
   (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6646
6813
   (eval "$lt_compile" 2>conftest.err)
6647
6814
   ac_status=$?
6648
6815
   cat conftest.err >&5
6649
 
   echo "$as_me:6649: \$? = $ac_status" >&5
 
6816
   echo "$as_me:6816: \$? = $ac_status" >&5
6650
6817
   if (exit $ac_status) && test -s "$ac_outfile"; then
6651
6818
     # The compiler can only warn and ignore the option if not recognized
6652
 
     # So say no if there are warnings
6653
 
     if test ! -s conftest.err; then
 
6819
     # So say no if there are warnings other than the usual output.
 
6820
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6821
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6822
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6654
6823
       lt_cv_prog_compiler_rtti_exceptions=yes
6655
6824
     fi
6656
6825
   fi
6711
6880
      lt_prog_compiler_pic='-fno-common'
6712
6881
      ;;
6713
6882
 
 
6883
    interix3*)
 
6884
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6885
      # Instead, we relocate shared libraries at runtime.
 
6886
      ;;
 
6887
 
6714
6888
    msdosdjgpp*)
6715
6889
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6716
6890
      # on systems that don't support them.
6727
6901
    hpux*)
6728
6902
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6729
6903
      # not for PA HP-UX.
6730
 
      case "$host_cpu" in
 
6904
      case $host_cpu in
6731
6905
      hppa*64*|ia64*)
6732
6906
        # +Z the default
6733
6907
        ;;
6753
6927
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6754
6928
      fi
6755
6929
      ;;
 
6930
      darwin*)
 
6931
        # PIC is the default on this platform
 
6932
        # Common symbols not allowed in MH_DYLIB files
 
6933
       case $cc_basename in
 
6934
         xlc*)
 
6935
         lt_prog_compiler_pic='-qnocommon'
 
6936
         lt_prog_compiler_wl='-Wl,'
 
6937
         ;;
 
6938
       esac
 
6939
       ;;
6756
6940
 
6757
6941
    mingw* | pw32* | os2*)
6758
6942
      # This hack is so that the source file can tell whether it is being
6764
6948
      lt_prog_compiler_wl='-Wl,'
6765
6949
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6766
6950
      # not for PA HP-UX.
6767
 
      case "$host_cpu" in
 
6951
      case $host_cpu in
6768
6952
      hppa*64*|ia64*)
6769
6953
        # +Z the default
6770
6954
        ;;
6788
6972
      ;;
6789
6973
 
6790
6974
    linux*)
6791
 
      case $CC in
 
6975
      case $cc_basename in
6792
6976
      icc* | ecc*)
6793
6977
        lt_prog_compiler_wl='-Wl,'
6794
6978
        lt_prog_compiler_pic='-KPIC'
6795
6979
        lt_prog_compiler_static='-static'
6796
6980
        ;;
 
6981
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6982
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6983
        # which looks to be a dead project)
 
6984
        lt_prog_compiler_wl='-Wl,'
 
6985
        lt_prog_compiler_pic='-fpic'
 
6986
        lt_prog_compiler_static='-Bstatic'
 
6987
        ;;
6797
6988
      ccc*)
6798
6989
        lt_prog_compiler_wl='-Wl,'
6799
6990
        # All Alpha code is PIC.
6808
6999
      lt_prog_compiler_static='-non_shared'
6809
7000
      ;;
6810
7001
 
6811
 
    sco3.2v5*)
6812
 
      lt_prog_compiler_pic='-Kpic'
6813
 
      lt_prog_compiler_static='-dn'
6814
 
      ;;
6815
 
 
6816
7002
    solaris*)
6817
 
      lt_prog_compiler_wl='-Wl,'
6818
7003
      lt_prog_compiler_pic='-KPIC'
6819
7004
      lt_prog_compiler_static='-Bstatic'
 
7005
      case $cc_basename in
 
7006
      f77* | f90* | f95*)
 
7007
        lt_prog_compiler_wl='-Qoption ld ';;
 
7008
      *)
 
7009
        lt_prog_compiler_wl='-Wl,';;
 
7010
      esac
6820
7011
      ;;
6821
7012
 
6822
7013
    sunos4*)
6825
7016
      lt_prog_compiler_static='-Bstatic'
6826
7017
      ;;
6827
7018
 
6828
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7019
    sysv4 | sysv4.2uw2* | sysv4.3*)
6829
7020
      lt_prog_compiler_wl='-Wl,'
6830
7021
      lt_prog_compiler_pic='-KPIC'
6831
7022
      lt_prog_compiler_static='-Bstatic'
6838
7029
      fi
6839
7030
      ;;
6840
7031
 
 
7032
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7033
      lt_prog_compiler_wl='-Wl,'
 
7034
      lt_prog_compiler_pic='-KPIC'
 
7035
      lt_prog_compiler_static='-Bstatic'
 
7036
      ;;
 
7037
 
 
7038
    unicos*)
 
7039
      lt_prog_compiler_wl='-Wl,'
 
7040
      lt_prog_compiler_can_build_shared=no
 
7041
      ;;
 
7042
 
6841
7043
    uts4*)
6842
7044
      lt_prog_compiler_pic='-pic'
6843
7045
      lt_prog_compiler_static='-Bstatic'
6872
7074
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6873
7075
   # The option is referenced via a variable to avoid confusing sed.
6874
7076
   lt_compile=`echo "$ac_compile" | $SED \
6875
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7077
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6876
7078
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6877
7079
   -e 's:$: $lt_compiler_flag:'`
6878
 
   (eval echo "\"\$as_me:6878: $lt_compile\"" >&5)
 
7080
   (eval echo "\"\$as_me:7080: $lt_compile\"" >&5)
6879
7081
   (eval "$lt_compile" 2>conftest.err)
6880
7082
   ac_status=$?
6881
7083
   cat conftest.err >&5
6882
 
   echo "$as_me:6882: \$? = $ac_status" >&5
 
7084
   echo "$as_me:7084: \$? = $ac_status" >&5
6883
7085
   if (exit $ac_status) && test -s "$ac_outfile"; then
6884
7086
     # The compiler can only warn and ignore the option if not recognized
6885
 
     # So say no if there are warnings
6886
 
     if test ! -s conftest.err; then
 
7087
     # So say no if there are warnings other than the usual output.
 
7088
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7089
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7090
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6887
7091
       lt_prog_compiler_pic_works=yes
6888
7092
     fi
6889
7093
   fi
6904
7108
fi
6905
7109
 
6906
7110
fi
6907
 
case "$host_os" in
 
7111
case $host_os in
6908
7112
  # For platforms which do not support PIC, -DPIC is meaningless:
6909
7113
  *djgpp*)
6910
7114
    lt_prog_compiler_pic=
6914
7118
    ;;
6915
7119
esac
6916
7120
 
 
7121
#
 
7122
# Check to make sure the static flag actually works.
 
7123
#
 
7124
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7125
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7126
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
7127
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7129
else
 
7130
  lt_prog_compiler_static_works=no
 
7131
   save_LDFLAGS="$LDFLAGS"
 
7132
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7133
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7134
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7135
     # The linker can only warn and ignore the option if not recognized
 
7136
     # So say no if there are warnings
 
7137
     if test -s conftest.err; then
 
7138
       # Append any errors to the config.log.
 
7139
       cat conftest.err 1>&5
 
7140
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7141
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7142
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7143
         lt_prog_compiler_static_works=yes
 
7144
       fi
 
7145
     else
 
7146
       lt_prog_compiler_static_works=yes
 
7147
     fi
 
7148
   fi
 
7149
   $rm conftest*
 
7150
   LDFLAGS="$save_LDFLAGS"
 
7151
 
 
7152
fi
 
7153
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7154
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7155
 
 
7156
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7157
    :
 
7158
else
 
7159
    lt_prog_compiler_static=
 
7160
fi
 
7161
 
 
7162
 
6917
7163
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6918
7164
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6919
7165
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6932
7178
   # Note that $ac_compile itself does not contain backslashes and begins
6933
7179
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6934
7180
   lt_compile=`echo "$ac_compile" | $SED \
6935
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7181
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6936
7182
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6937
7183
   -e 's:$: $lt_compiler_flag:'`
6938
 
   (eval echo "\"\$as_me:6938: $lt_compile\"" >&5)
 
7184
   (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
6939
7185
   (eval "$lt_compile" 2>out/conftest.err)
6940
7186
   ac_status=$?
6941
7187
   cat out/conftest.err >&5
6942
 
   echo "$as_me:6942: \$? = $ac_status" >&5
 
7188
   echo "$as_me:7188: \$? = $ac_status" >&5
6943
7189
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6944
7190
   then
6945
7191
     # The compiler can only warn and ignore the option if not recognized
6946
7192
     # So say no if there are warnings
6947
 
     if test ! -s out/conftest.err; then
 
7193
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7194
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7195
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6948
7196
       lt_cv_prog_compiler_c_o=yes
6949
7197
     fi
6950
7198
   fi
6951
 
   chmod u+w .
 
7199
   chmod u+w . 2>&5
6952
7200
   $rm conftest*
6953
7201
   # SGI C++ compiler will create directory out/ii_files/ for
6954
7202
   # template instantiation
7024
7272
  # rely on this symbol name, it's probably fine to never include it in
7025
7273
  # preloaded symbol tables.
7026
7274
  extract_expsyms_cmds=
 
7275
  # Just being paranoid about ensuring that cc_basename is set.
 
7276
  for cc_temp in $compiler""; do
 
7277
  case $cc_temp in
 
7278
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7279
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7280
    \-*) ;;
 
7281
    *) break;;
 
7282
  esac
 
7283
done
 
7284
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7027
7285
 
7028
7286
  case $host_os in
7029
7287
  cygwin* | mingw* | pw32*)
7034
7292
      with_gnu_ld=no
7035
7293
    fi
7036
7294
    ;;
 
7295
  interix*)
 
7296
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7297
    with_gnu_ld=yes
 
7298
    ;;
7037
7299
  openbsd*)
7038
7300
    with_gnu_ld=no
7039
7301
    ;;
7044
7306
    # If archive_cmds runs LD, not CC, wlarc should be empty
7045
7307
    wlarc='${wl}'
7046
7308
 
 
7309
    # Set some defaults for GNU ld with shared library support. These
 
7310
    # are reset later if shared libraries are not supported. Putting them
 
7311
    # here allows them to be overridden if necessary.
 
7312
    runpath_var=LD_RUN_PATH
 
7313
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7314
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7315
    # ancient GNU ld didn't support --whole-archive et. al.
 
7316
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7317
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7318
      else
 
7319
        whole_archive_flag_spec=
 
7320
    fi
 
7321
    supports_anon_versioning=no
 
7322
    case `$LD -v 2>/dev/null` in
 
7323
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7324
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7325
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7326
      *\ 2.11.*) ;; # other 2.11 versions
 
7327
      *) supports_anon_versioning=yes ;;
 
7328
    esac
 
7329
 
7047
7330
    # See if GNU ld supports shared libraries.
7048
7331
    case $host_os in
7049
7332
    aix3* | aix4* | aix5*)
7094
7377
      allow_undefined_flag=unsupported
7095
7378
      always_export_symbols=no
7096
7379
      enable_shared_with_static_runtimes=yes
7097
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7380
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7098
7381
 
7099
7382
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7100
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7383
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7101
7384
        # If the export-symbols file already is a .def file (1st line
7102
7385
        # is EXPORTS), use it as is; otherwise, prepend...
7103
7386
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7106
7389
          echo EXPORTS > $output_objdir/$soname.def;
7107
7390
          cat $export_symbols >> $output_objdir/$soname.def;
7108
7391
        fi~
7109
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7392
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7393
      else
 
7394
        ld_shlibs=no
 
7395
      fi
 
7396
      ;;
 
7397
 
 
7398
    interix3*)
 
7399
      hardcode_direct=no
 
7400
      hardcode_shlibpath_var=no
 
7401
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7402
      export_dynamic_flag_spec='${wl}-E'
 
7403
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7404
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7405
      # default) and relocated if they conflict, which is a slow very memory
 
7406
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7407
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7408
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7409
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7410
      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'
 
7411
      ;;
 
7412
 
 
7413
    linux*)
 
7414
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7415
        tmp_addflag=
 
7416
        case $cc_basename,$host_cpu in
 
7417
        pgcc*)                          # Portland Group C compiler
 
7418
          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'
 
7419
          tmp_addflag=' $pic_flag'
 
7420
          ;;
 
7421
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7422
          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'
 
7423
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7424
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7425
          tmp_addflag=' -i_dynamic' ;;
 
7426
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7427
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7428
        ifc* | ifort*)                  # Intel Fortran compiler
 
7429
          tmp_addflag=' -nofor_main' ;;
 
7430
        esac
 
7431
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7432
 
 
7433
        if test $supports_anon_versioning = yes; then
 
7434
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7435
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7436
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7437
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7438
        fi
7110
7439
      else
7111
7440
        ld_shlibs=no
7112
7441
      fi
7122
7451
      fi
7123
7452
      ;;
7124
7453
 
7125
 
    solaris* | sysv5*)
 
7454
    solaris*)
7126
7455
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7127
7456
        ld_shlibs=no
7128
7457
        cat <<EOF 1>&2
7143
7472
      fi
7144
7473
      ;;
7145
7474
 
 
7475
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7476
      case `$LD -v 2>&1` in
 
7477
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7478
        ld_shlibs=no
 
7479
        cat <<_LT_EOF 1>&2
 
7480
 
 
7481
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7482
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7483
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7484
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7485
*** your PATH or compiler configuration so that the native linker is
 
7486
*** used, and then restart.
 
7487
 
 
7488
_LT_EOF
 
7489
        ;;
 
7490
        *)
 
7491
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7492
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7493
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7494
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7495
          else
 
7496
            ld_shlibs=no
 
7497
          fi
 
7498
        ;;
 
7499
      esac
 
7500
      ;;
 
7501
 
7146
7502
    sunos4*)
7147
7503
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7148
7504
      wlarc=
7150
7506
      hardcode_shlibpath_var=no
7151
7507
      ;;
7152
7508
 
7153
 
  linux*)
7154
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7155
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7156
 
        archive_cmds="$tmp_archive_cmds"
7157
 
      supports_anon_versioning=no
7158
 
      case `$LD -v 2>/dev/null` in
7159
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7160
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7161
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7162
 
        *\ 2.11.*) ;; # other 2.11 versions
7163
 
        *) supports_anon_versioning=yes ;;
7164
 
      esac
7165
 
      if test $supports_anon_versioning = yes; then
7166
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7167
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7168
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
7169
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7170
 
      else
7171
 
        archive_expsym_cmds="$tmp_archive_cmds"
7172
 
      fi
7173
 
    else
7174
 
      ld_shlibs=no
7175
 
    fi
7176
 
    ;;
7177
 
 
7178
7509
    *)
7179
7510
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7180
7511
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185
7516
      ;;
7186
7517
    esac
7187
7518
 
7188
 
    if test "$ld_shlibs" = yes; then
7189
 
      runpath_var=LD_RUN_PATH
7190
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7191
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
7192
 
      # ancient GNU ld didn't support --whole-archive et. al.
7193
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7194
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7195
 
      else
7196
 
        whole_archive_flag_spec=
7197
 
      fi
 
7519
    if test "$ld_shlibs" = no; then
 
7520
      runpath_var=
 
7521
      hardcode_libdir_flag_spec=
 
7522
      export_dynamic_flag_spec=
 
7523
      whole_archive_flag_spec=
7198
7524
    fi
7199
7525
  else
7200
7526
    # PORTME fill in a description of your system's linker (not GNU ld)
7206
7532
      # Note: this linker hardcodes the directories in LIBPATH if there
7207
7533
      # are no directories specified by -L.
7208
7534
      hardcode_minus_L=yes
7209
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7535
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7210
7536
        # Neither direct hardcoding nor static linking is supported with a
7211
7537
        # broken collect2.
7212
7538
        hardcode_direct=unsupported
7240
7566
            break
7241
7567
          fi
7242
7568
          done
 
7569
          ;;
7243
7570
        esac
7244
7571
 
7245
7572
        exp_sym_flag='-bexport'
7258
7585
      link_all_deplibs=yes
7259
7586
 
7260
7587
      if test "$GCC" = yes; then
7261
 
        case $host_os in aix4.012|aix4.012.*)
 
7588
        case $host_os in aix4.[012]|aix4.[012].*)
7262
7589
        # We only want to do this on AIX 4.2 and lower, the check
7263
7590
        # below for broken collect2 doesn't work under 4.3+
7264
7591
          collect2name=`${CC} -print-prog-name=collect2`
7277
7604
          hardcode_libdir_flag_spec='-L$libdir'
7278
7605
          hardcode_libdir_separator=
7279
7606
          fi
 
7607
          ;;
7280
7608
        esac
7281
7609
        shared_flag='-shared'
 
7610
        if test "$aix_use_runtimelinking" = yes; then
 
7611
          shared_flag="$shared_flag "'${wl}-G'
 
7612
        fi
7282
7613
      else
7283
7614
        # not using gcc
7284
7615
        if test "$host_cpu" = ia64; then
7286
7617
        # chokes on -Wl,-G. The following line is correct:
7287
7618
          shared_flag='-G'
7288
7619
        else
7289
 
        if test "$aix_use_runtimelinking" = yes; then
 
7620
          if test "$aix_use_runtimelinking" = yes; then
7290
7621
            shared_flag='${wl}-G'
7291
7622
          else
7292
7623
            shared_flag='${wl}-bM:SRE'
7293
 
        fi
 
7624
          fi
7294
7625
        fi
7295
7626
      fi
7296
7627
 
7355
7686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7356
7687
 
7357
7688
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7358
 
        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"
 
7689
        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"
7359
7690
       else
7360
7691
        if test "$host_cpu" = ia64; then
7361
7692
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7362
7693
          allow_undefined_flag="-z nodefs"
7363
 
          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"
 
7694
          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"
7364
7695
        else
7365
7696
         # Determine the default libpath from the value encoded in an empty executable.
7366
7697
         cat >conftest.$ac_ext <<_ACEOF
7420
7751
          # -berok will link without error, but may produce a broken library.
7421
7752
          no_undefined_flag=' ${wl}-bernotok'
7422
7753
          allow_undefined_flag=' ${wl}-berok'
7423
 
          # -bexpall does not export symbols beginning with underscore (_)
7424
 
          always_export_symbols=yes
7425
7754
          # Exported symbols can be pulled into shared objects from archives
7426
 
          whole_archive_flag_spec=' '
 
7755
          whole_archive_flag_spec='$convenience'
7427
7756
          archive_cmds_need_lc=yes
7428
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7429
 
          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'
 
7757
          # This is similar to how AIX traditionally builds its shared libraries.
 
7758
          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'
7430
7759
        fi
7431
7760
      fi
7432
7761
      ;;
7439
7768
      ld_shlibs=no
7440
7769
      ;;
7441
7770
 
7442
 
    bsdi4*)
 
7771
    bsdi[45]*)
7443
7772
      export_dynamic_flag_spec=-rdynamic
7444
7773
      ;;
7445
7774
 
7465
7794
      ;;
7466
7795
 
7467
7796
    darwin* | rhapsody*)
7468
 
    if test "$GXX" = yes ; then
 
7797
      case $host_os in
 
7798
        rhapsody* | darwin1.[012])
 
7799
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7800
         ;;
 
7801
       *) # Darwin 1.3 on
 
7802
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7803
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7804
         else
 
7805
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7806
             10.[012])
 
7807
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7808
               ;;
 
7809
             10.*)
 
7810
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7811
               ;;
 
7812
           esac
 
7813
         fi
 
7814
         ;;
 
7815
      esac
7469
7816
      archive_cmds_need_lc=no
7470
 
      case "$host_os" in
7471
 
      rhapsody* | darwin1.[012])
7472
 
        allow_undefined_flag='-undefined suppress'
7473
 
        ;;
7474
 
      *) # Darwin 1.3 on
7475
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7476
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7477
 
      else
7478
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7479
 
          10.[012])
7480
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7481
 
            ;;
7482
 
          10.*)
7483
 
            allow_undefined_flag='-undefined dynamic_lookup'
7484
 
            ;;
7485
 
        esac
7486
 
      fi
7487
 
        ;;
7488
 
      esac
7489
 
        lt_int_apple_cc_single_mod=no
7490
 
        output_verbose_link_cmd='echo'
7491
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7492
 
          lt_int_apple_cc_single_mod=yes
7493
 
        fi
7494
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7495
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7496
 
        else
7497
 
        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'
7498
 
      fi
7499
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7500
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7501
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7502
 
          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}'
7503
 
        else
7504
 
          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}'
7505
 
        fi
7506
 
          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}'
7507
7817
      hardcode_direct=no
7508
7818
      hardcode_automatic=yes
7509
7819
      hardcode_shlibpath_var=unsupported
7510
 
      whole_archive_flag_spec='-all_load $convenience'
 
7820
      whole_archive_flag_spec=''
7511
7821
      link_all_deplibs=yes
 
7822
    if test "$GCC" = yes ; then
 
7823
        output_verbose_link_cmd='echo'
 
7824
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7825
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7826
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7827
      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}'
 
7828
      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}'
7512
7829
    else
7513
 
      ld_shlibs=no
 
7830
      case $cc_basename in
 
7831
        xlc*)
 
7832
         output_verbose_link_cmd='echo'
 
7833
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7834
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7835
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7836
         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}'
 
7837
          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}'
 
7838
          ;;
 
7839
       *)
 
7840
         ld_shlibs=no
 
7841
          ;;
 
7842
      esac
7514
7843
    fi
7515
7844
      ;;
7516
7845
 
7544
7873
      ;;
7545
7874
 
7546
7875
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7547
 
    freebsd* | kfreebsd*-gnu)
 
7876
    freebsd* | kfreebsd*-gnu | dragonfly*)
7548
7877
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7549
7878
      hardcode_libdir_flag_spec='-R$libdir'
7550
7879
      hardcode_direct=yes
7567
7896
      export_dynamic_flag_spec='${wl}-E'
7568
7897
      ;;
7569
7898
 
7570
 
    hpux10* | hpux11*)
7571
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7572
 
        case "$host_cpu" in
7573
 
        hppa*64*|ia64*)
 
7899
    hpux10*)
 
7900
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7901
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7902
      else
 
7903
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7904
      fi
 
7905
      if test "$with_gnu_ld" = no; then
 
7906
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7907
        hardcode_libdir_separator=:
 
7908
 
 
7909
        hardcode_direct=yes
 
7910
        export_dynamic_flag_spec='${wl}-E'
 
7911
 
 
7912
        # hardcode_minus_L: Not really in the search PATH,
 
7913
        # but as the default location of the library.
 
7914
        hardcode_minus_L=yes
 
7915
      fi
 
7916
      ;;
 
7917
 
 
7918
    hpux11*)
 
7919
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7920
        case $host_cpu in
 
7921
        hppa*64*)
7574
7922
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7575
7923
          ;;
 
7924
        ia64*)
 
7925
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7926
          ;;
7576
7927
        *)
7577
7928
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7578
7929
          ;;
7579
7930
        esac
7580
7931
      else
7581
 
        case "$host_cpu" in
7582
 
        hppa*64*|ia64*)
7583
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7932
        case $host_cpu in
 
7933
        hppa*64*)
 
7934
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7935
          ;;
 
7936
        ia64*)
 
7937
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7584
7938
          ;;
7585
7939
        *)
7586
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7940
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7587
7941
          ;;
7588
7942
        esac
7589
7943
      fi
7590
7944
      if test "$with_gnu_ld" = no; then
7591
 
        case "$host_cpu" in
7592
 
        hppa*64*)
7593
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7945
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7946
        hardcode_libdir_separator=:
 
7947
 
 
7948
        case $host_cpu in
 
7949
        hppa*64*|ia64*)
7594
7950
          hardcode_libdir_flag_spec_ld='+b $libdir'
7595
 
          hardcode_libdir_separator=:
7596
 
          hardcode_direct=no
7597
 
          hardcode_shlibpath_var=no
7598
 
          ;;
7599
 
        ia64*)
7600
 
          hardcode_libdir_flag_spec='-L$libdir'
7601
 
          hardcode_direct=no
7602
 
          hardcode_shlibpath_var=no
7603
 
 
7604
 
          # hardcode_minus_L: Not really in the search PATH,
7605
 
          # but as the default location of the library.
7606
 
          hardcode_minus_L=yes
 
7951
          hardcode_direct=no
 
7952
          hardcode_shlibpath_var=no
7607
7953
          ;;
7608
7954
        *)
7609
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7610
 
          hardcode_libdir_separator=:
7611
7955
          hardcode_direct=yes
7612
7956
          export_dynamic_flag_spec='${wl}-E'
7613
7957
 
7655
7999
      hardcode_shlibpath_var=no
7656
8000
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7657
8001
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8002
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7658
8003
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7659
8004
        export_dynamic_flag_spec='${wl}-E'
7660
8005
      else
7700
8045
        allow_undefined_flag=' -expect_unresolved \*'
7701
8046
        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'
7702
8047
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7703
 
        $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'
 
8048
        $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'
7704
8049
 
7705
8050
        # Both c and cxx compiler support -rpath directly
7706
8051
        hardcode_libdir_flag_spec='-rpath $libdir'
7708
8053
      hardcode_libdir_separator=:
7709
8054
      ;;
7710
8055
 
7711
 
    sco3.2v5*)
7712
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713
 
      hardcode_shlibpath_var=no
7714
 
      export_dynamic_flag_spec='${wl}-Bexport'
7715
 
      runpath_var=LD_RUN_PATH
7716
 
      hardcode_runpath_var=yes
7717
 
      ;;
7718
 
 
7719
8056
    solaris*)
7720
8057
      no_undefined_flag=' -z text'
7721
8058
      if test "$GCC" = yes; then
 
8059
        wlarc='${wl}'
7722
8060
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723
8061
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7724
8062
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7725
8063
      else
 
8064
        wlarc=''
7726
8065
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727
8066
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7728
8067
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7731
8070
      hardcode_shlibpath_var=no
7732
8071
      case $host_os in
7733
8072
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7734
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7735
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8073
      *)
 
8074
        # The compiler driver will combine linker options so we
 
8075
        # cannot just pass the convience library names through
 
8076
        # without $wl, iff we do not link with $LD.
 
8077
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8078
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8079
        case $wlarc in
 
8080
        '')
 
8081
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8082
        *)
 
8083
          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' ;;
 
8084
        esac ;;
7736
8085
      esac
7737
8086
      link_all_deplibs=yes
7738
8087
      ;;
7789
8138
      fi
7790
8139
      ;;
7791
8140
 
7792
 
    sysv4.2uw2*)
7793
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7794
 
      hardcode_direct=yes
7795
 
      hardcode_minus_L=no
7796
 
      hardcode_shlibpath_var=no
7797
 
      hardcode_runpath_var=yes
7798
 
      runpath_var=LD_RUN_PATH
7799
 
      ;;
7800
 
 
7801
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7802
 
      no_undefined_flag='${wl}-z ${wl}text'
7803
 
      if test "$GCC" = yes; then
7804
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7805
 
      else
7806
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7807
 
      fi
7808
 
      runpath_var='LD_RUN_PATH'
7809
 
      hardcode_shlibpath_var=no
7810
 
      ;;
7811
 
 
7812
 
    sysv5*)
7813
 
      no_undefined_flag=' -z text'
7814
 
      # $CC -shared without GNU ld will not create a library from C++
7815
 
      # object files and a static libstdc++, better avoid it by now
7816
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7818
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7819
 
      hardcode_libdir_flag_spec=
7820
 
      hardcode_shlibpath_var=no
7821
 
      runpath_var='LD_RUN_PATH'
 
8141
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8142
      no_undefined_flag='${wl}-z,text'
 
8143
      archive_cmds_need_lc=no
 
8144
      hardcode_shlibpath_var=no
 
8145
      runpath_var='LD_RUN_PATH'
 
8146
 
 
8147
      if test "$GCC" = yes; then
 
8148
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8149
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8150
      else
 
8151
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8152
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8153
      fi
 
8154
      ;;
 
8155
 
 
8156
    sysv5* | sco3.2v5* | sco5v6*)
 
8157
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8158
      # link with -lc, and that would cause any symbols used from libc to
 
8159
      # always be unresolved, which means just about no library would
 
8160
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8161
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8162
      # as -z defs.
 
8163
      no_undefined_flag='${wl}-z,text'
 
8164
      allow_undefined_flag='${wl}-z,nodefs'
 
8165
      archive_cmds_need_lc=no
 
8166
      hardcode_shlibpath_var=no
 
8167
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8168
      hardcode_libdir_separator=':'
 
8169
      link_all_deplibs=yes
 
8170
      export_dynamic_flag_spec='${wl}-Bexport'
 
8171
      runpath_var='LD_RUN_PATH'
 
8172
 
 
8173
      if test "$GCC" = yes; then
 
8174
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8175
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8176
      else
 
8177
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8178
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8179
      fi
7822
8180
      ;;
7823
8181
 
7824
8182
    uts4*)
7837
8195
echo "${ECHO_T}$ld_shlibs" >&6
7838
8196
test "$ld_shlibs" = no && can_build_shared=no
7839
8197
 
7840
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7841
 
if test "$GCC" = yes; then
7842
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7843
 
fi
7844
 
 
7845
8198
#
7846
8199
# Do we need to explicitly link libc?
7847
8200
#
7874
8227
        libobjs=conftest.$ac_objext
7875
8228
        deplibs=
7876
8229
        wl=$lt_prog_compiler_wl
 
8230
        pic_flag=$lt_prog_compiler_pic
7877
8231
        compiler_flags=-v
7878
8232
        linker_flags=-v
7879
8233
        verstring=
8006
8360
  shlibpath_var=LIBRARY_PATH
8007
8361
  ;;
8008
8362
 
8009
 
bsdi4*)
 
8363
bsdi[45]*)
8010
8364
  version_type=linux
8011
8365
  need_version=no
8012
8366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034
8388
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8035
8389
      dldir=$destdir/`dirname \$dlpath`~
8036
8390
      test -d \$dldir || mkdir -p \$dldir~
8037
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8391
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8392
      chmod a+x \$dldir/$dlname'
8038
8393
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8039
8394
      dlpath=$dir/\$dldll~
8040
8395
       $rm \$dlpath'
8064
8419
      ;;
8065
8420
    pw32*)
8066
8421
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8067
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8422
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8068
8423
      ;;
8069
8424
    esac
8070
8425
    ;;
8087
8442
  soname_spec='${libname}${release}${major}$shared_ext'
8088
8443
  shlibpath_overrides_runpath=yes
8089
8444
  shlibpath_var=DYLD_LIBRARY_PATH
8090
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8445
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8091
8446
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8092
8447
  if test "$GCC" = yes; then
8093
8448
    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"`
8122
8477
  dynamic_linker='GNU ld.so'
8123
8478
  ;;
8124
8479
 
8125
 
freebsd*)
8126
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8480
freebsd* | dragonfly*)
 
8481
  # DragonFly does not have aout.  When/if they implement a new
 
8482
  # versioning mechanism, adjust this.
 
8483
  if test -x /usr/bin/objformat; then
 
8484
    objformat=`/usr/bin/objformat`
 
8485
  else
 
8486
    case $host_os in
 
8487
    freebsd[123]*) objformat=aout ;;
 
8488
    *) objformat=elf ;;
 
8489
    esac
 
8490
  fi
8127
8491
  version_type=freebsd-$objformat
8128
8492
  case $version_type in
8129
8493
    freebsd-elf*)
8141
8505
  freebsd2*)
8142
8506
    shlibpath_overrides_runpath=yes
8143
8507
    ;;
8144
 
  freebsd3.01* | freebsdelf3.01*)
 
8508
  freebsd3.[01]* | freebsdelf3.[01]*)
8145
8509
    shlibpath_overrides_runpath=yes
8146
8510
    hardcode_into_libs=yes
8147
8511
    ;;
8148
 
  *) # from 3.2 on
 
8512
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8513
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8149
8514
    shlibpath_overrides_runpath=no
8150
8515
    hardcode_into_libs=yes
8151
8516
    ;;
 
8517
  freebsd*) # from 4.6 on
 
8518
    shlibpath_overrides_runpath=yes
 
8519
    hardcode_into_libs=yes
 
8520
    ;;
8152
8521
  esac
8153
8522
  ;;
8154
8523
 
8168
8537
  version_type=sunos
8169
8538
  need_lib_prefix=no
8170
8539
  need_version=no
8171
 
  case "$host_cpu" in
 
8540
  case $host_cpu in
8172
8541
  ia64*)
8173
8542
    shrext_cmds='.so'
8174
8543
    hardcode_into_libs=yes
8208
8577
  postinstall_cmds='chmod 555 $lib'
8209
8578
  ;;
8210
8579
 
 
8580
interix3*)
 
8581
  version_type=linux
 
8582
  need_lib_prefix=no
 
8583
  need_version=no
 
8584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8585
  soname_spec='${libname}${release}${shared_ext}$major'
 
8586
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8587
  shlibpath_var=LD_LIBRARY_PATH
 
8588
  shlibpath_overrides_runpath=no
 
8589
  hardcode_into_libs=yes
 
8590
  ;;
 
8591
 
8211
8592
irix5* | irix6* | nonstopux*)
8212
8593
  case $host_os in
8213
8594
    nonstopux*) version_type=nonstopux ;;
8265
8646
  # before this can be enabled.
8266
8647
  hardcode_into_libs=yes
8267
8648
 
8268
 
  # find out which ABI we are using
8269
 
  libsuff=
8270
 
  case "$host_cpu" in
8271
 
  x86_64*|s390x*|powerpc64*)
8272
 
    echo '#line 8272 "configure"' > conftest.$ac_ext
8273
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274
 
  (eval $ac_compile) 2>&5
8275
 
  ac_status=$?
8276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277
 
  (exit $ac_status); }; then
8278
 
      case `/usr/bin/file conftest.$ac_objext` in
8279
 
      *64-bit*)
8280
 
        libsuff=64
8281
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8282
 
        ;;
8283
 
      esac
8284
 
    fi
8285
 
    rm -rf conftest*
8286
 
    ;;
8287
 
  esac
8288
 
 
8289
8649
  # Append ld.so.conf contents to the search path
8290
8650
  if test -f /etc/ld.so.conf; then
8291
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8292
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8651
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8652
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8293
8653
  fi
8294
8654
 
8295
8655
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8350
8710
 
8351
8711
openbsd*)
8352
8712
  version_type=sunos
 
8713
  sys_lib_dlsearch_path_spec="/usr/lib"
8353
8714
  need_lib_prefix=no
8354
 
  need_version=yes
 
8715
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8716
  case $host_os in
 
8717
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8718
    *)                         need_version=no  ;;
 
8719
  esac
8355
8720
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8356
8721
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8357
8722
  shlibpath_var=LD_LIBRARY_PATH
8389
8754
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8390
8755
  ;;
8391
8756
 
8392
 
sco3.2v5*)
8393
 
  version_type=osf
8394
 
  soname_spec='${libname}${release}${shared_ext}$major'
8395
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8396
 
  shlibpath_var=LD_LIBRARY_PATH
8397
 
  ;;
8398
 
 
8399
8757
solaris*)
8400
8758
  version_type=linux
8401
8759
  need_lib_prefix=no
8421
8779
  need_version=yes
8422
8780
  ;;
8423
8781
 
8424
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8782
sysv4 | sysv4.3*)
8425
8783
  version_type=linux
8426
8784
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8427
8785
  soname_spec='${libname}${release}${shared_ext}$major'
8454
8812
  fi
8455
8813
  ;;
8456
8814
 
 
8815
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8816
  version_type=freebsd-elf
 
8817
  need_lib_prefix=no
 
8818
  need_version=no
 
8819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8820
  soname_spec='${libname}${release}${shared_ext}$major'
 
8821
  shlibpath_var=LD_LIBRARY_PATH
 
8822
  hardcode_into_libs=yes
 
8823
  if test "$with_gnu_ld" = yes; then
 
8824
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8825
    shlibpath_overrides_runpath=no
 
8826
  else
 
8827
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8828
    shlibpath_overrides_runpath=yes
 
8829
    case $host_os in
 
8830
      sco3.2v5*)
 
8831
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8832
        ;;
 
8833
    esac
 
8834
  fi
 
8835
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8836
  ;;
 
8837
 
8457
8838
uts4*)
8458
8839
  version_type=linux
8459
8840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469
8850
echo "${ECHO_T}$dynamic_linker" >&6
8470
8851
test "$dynamic_linker" = no && can_build_shared=no
8471
8852
 
 
8853
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8854
if test "$GCC" = yes; then
 
8855
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8856
fi
 
8857
 
8472
8858
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8473
8859
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8474
8860
hardcode_action=
8475
8861
if test -n "$hardcode_libdir_flag_spec" || \
8476
 
   test -n "$runpath_var " || \
8477
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8862
   test -n "$runpath_var" || \
 
8863
   test "X$hardcode_automatic" = "Xyes" ; then
8478
8864
 
8479
8865
  # We can hardcode non-existant directories.
8480
8866
  if test "$hardcode_direct" != no &&
9124
9510
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9125
9511
 
9126
9512
    save_LDFLAGS="$LDFLAGS"
9127
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9513
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9128
9514
 
9129
9515
    save_LIBS="$LIBS"
9130
9516
    LIBS="$lt_cv_dlopen_libs $LIBS"
9140
9526
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9141
9527
  lt_status=$lt_dlunknown
9142
9528
  cat > conftest.$ac_ext <<EOF
9143
 
#line 9143 "configure"
 
9529
#line 9529 "configure"
9144
9530
#include "confdefs.h"
9145
9531
 
9146
9532
#if HAVE_DLFCN_H
9197
9583
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9198
9584
      /* dlclose (self); */
9199
9585
    }
 
9586
  else
 
9587
    puts (dlerror ());
9200
9588
 
9201
9589
    exit (status);
9202
9590
}
9206
9594
  ac_status=$?
9207
9595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208
9596
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9209
 
    (./conftest; exit; ) 2>/dev/null
 
9597
    (./conftest; exit; ) >&5 2>/dev/null
9210
9598
    lt_status=$?
9211
9599
    case x$lt_status in
9212
9600
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9213
9601
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9214
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9602
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9215
9603
    esac
9216
9604
  else :
9217
9605
    # compilation failed
9226
9614
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9227
9615
 
9228
9616
    if test "x$lt_cv_dlopen_self" = xyes; then
9229
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9617
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9230
9618
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9231
9619
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9232
9620
if test "${lt_cv_dlopen_self_static+set}" = set; then
9238
9626
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9239
9627
  lt_status=$lt_dlunknown
9240
9628
  cat > conftest.$ac_ext <<EOF
9241
 
#line 9241 "configure"
 
9629
#line 9629 "configure"
9242
9630
#include "confdefs.h"
9243
9631
 
9244
9632
#if HAVE_DLFCN_H
9295
9683
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9296
9684
      /* dlclose (self); */
9297
9685
    }
 
9686
  else
 
9687
    puts (dlerror ());
9298
9688
 
9299
9689
    exit (status);
9300
9690
}
9304
9694
  ac_status=$?
9305
9695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306
9696
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9307
 
    (./conftest; exit; ) 2>/dev/null
 
9697
    (./conftest; exit; ) >&5 2>/dev/null
9308
9698
    lt_status=$?
9309
9699
    case x$lt_status in
9310
9700
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9311
9701
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9312
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9702
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9313
9703
    esac
9314
9704
  else :
9315
9705
    # compilation failed
9342
9732
fi
9343
9733
 
9344
9734
 
9345
 
# Report which librarie types wil actually be built
 
9735
# Report which library types will actually be built
9346
9736
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9347
9737
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9348
9738
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9354
9744
 
9355
9745
# On AIX, shared libraries and static libraries use the same namespace, and
9356
9746
# are all built from PIC.
9357
 
case "$host_os" in
 
9747
case $host_os in
9358
9748
aix3*)
9359
9749
  test "$enable_shared" = yes && enable_static=no
9360
9750
  if test -n "$RANLIB"; then
9367
9757
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9368
9758
    test "$enable_shared" = yes && enable_static=no
9369
9759
  fi
9370
 
  ;;
9371
 
  darwin* | rhapsody*)
9372
 
  if test "$GCC" = yes; then
9373
 
    archive_cmds_need_lc=no
9374
 
    case "$host_os" in
9375
 
    rhapsody* | darwin1.[012])
9376
 
      allow_undefined_flag='-undefined suppress'
9377
 
      ;;
9378
 
    *) # Darwin 1.3 on
9379
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9380
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9381
 
      else
9382
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9383
 
          10.[012])
9384
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9385
 
            ;;
9386
 
          10.*)
9387
 
            allow_undefined_flag='-undefined dynamic_lookup'
9388
 
            ;;
9389
 
        esac
9390
 
      fi
9391
 
      ;;
9392
 
    esac
9393
 
    output_verbose_link_cmd='echo'
9394
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9395
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9396
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9397
 
    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}'
9398
 
    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}'
9399
 
    hardcode_direct=no
9400
 
    hardcode_automatic=yes
9401
 
    hardcode_shlibpath_var=unsupported
9402
 
    whole_archive_flag_spec='-all_load $convenience'
9403
 
    link_all_deplibs=yes
9404
 
  else
9405
 
    ld_shlibs=no
9406
 
  fi
9407
9760
    ;;
9408
9761
esac
9409
9762
echo "$as_me:$LINENO: result: $enable_shared" >&5
9429
9782
  # Now quote all the things that may contain metacharacters while being
9430
9783
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9431
9784
  # variables and quote the copies for generation of the libtool script.
9432
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9785
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9433
9786
    SED SHELL STRIP \
9434
9787
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9435
9788
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9533
9886
#
9534
9887
# You should have received a copy of the GNU General Public License
9535
9888
# along with this program; if not, write to the Free Software
9536
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9889
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9537
9890
#
9538
9891
# As a special exception to the GNU General Public License, if you
9539
9892
# distribute this file as part of a program that contains a
9544
9897
SED=$lt_SED
9545
9898
 
9546
9899
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9547
 
Xsed="$SED -e s/^X//"
 
9900
Xsed="$SED -e 1s/^X//"
9548
9901
 
9549
9902
# The HP-UX ksh and POSIX shell print the target directory to stdout
9550
9903
# if CDPATH is set.
9551
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9904
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9552
9905
 
9553
9906
# The names of the tagged configurations supported by this script.
9554
9907
available_tags=
9578
9931
# The host system.
9579
9932
host_alias=$host_alias
9580
9933
host=$host
 
9934
host_os=$host_os
 
9935
 
 
9936
# The build system.
 
9937
build_alias=$build_alias
 
9938
build=$build
 
9939
build_os=$build_os
9581
9940
 
9582
9941
# An echo program that does not interpret backslashes.
9583
9942
echo=$lt_echo
9589
9948
# A C compiler.
9590
9949
LTCC=$lt_LTCC
9591
9950
 
 
9951
# LTCC compiler flags.
 
9952
LTCFLAGS=$lt_LTCFLAGS
 
9953
 
9592
9954
# A language-specific compiler.
9593
9955
CC=$lt_compiler
9594
9956
 
9654
10016
# Does compiler simultaneously support -c and -o options?
9655
10017
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9656
10018
 
9657
 
# Must we lock files when doing compilation ?
 
10019
# Must we lock files when doing compilation?
9658
10020
need_locks=$lt_need_locks
9659
10021
 
9660
10022
# Do we need the lib prefix for modules?
9919
10281
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9920
10282
    fi
9921
10283
  fi
 
10284
  if test -z "$LTCFLAGS"; then
 
10285
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10286
  fi
9922
10287
 
9923
10288
  # Extract list of available tagged configurations in $ofile.
9924
10289
  # Note that this assumes the entire list is on one line.
9949
10314
 
9950
10315
      case $tagname in
9951
10316
      CXX)
9952
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10317
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10318
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10319
            (test "X$CXX" != "Xg++"))) ; then
9953
10320
          ac_ext=cc
9954
10321
ac_cpp='$CXXCPP $CPPFLAGS'
9955
10322
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969
10336
hardcode_libdir_flag_spec_ld_CXX=
9970
10337
hardcode_libdir_separator_CXX=
9971
10338
hardcode_minus_L_CXX=no
 
10339
hardcode_shlibpath_var_CXX=unsupported
9972
10340
hardcode_automatic_CXX=no
9973
10341
module_cmds_CXX=
9974
10342
module_expsym_cmds_CXX=
9986
10354
compiler_lib_search_path_CXX=
9987
10355
 
9988
10356
# Source file extension for C++ test sources.
9989
 
ac_ext=cc
 
10357
ac_ext=cpp
9990
10358
 
9991
10359
# Object file extension for compiled C++ test sources.
9992
10360
objext=o
9996
10364
lt_simple_compile_test_code="int some_variable = 0;\n"
9997
10365
 
9998
10366
# Code to be used in simple link tests
9999
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10367
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10000
10368
 
10001
10369
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10002
10370
 
10003
10371
# If no C compiler was specified, use CC.
10004
10372
LTCC=${LTCC-"$CC"}
10005
10373
 
 
10374
# If no C compiler flags were specified, use CFLAGS.
 
10375
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10376
 
10006
10377
# Allow CC to be a program name with arguments.
10007
10378
compiler=$CC
10008
10379
 
10009
10380
 
 
10381
# save warnings/boilerplate of simple test code
 
10382
ac_outfile=conftest.$ac_objext
 
10383
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10384
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10385
_lt_compiler_boilerplate=`cat conftest.err`
 
10386
$rm conftest*
 
10387
 
 
10388
ac_outfile=conftest.$ac_objext
 
10389
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10390
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10391
_lt_linker_boilerplate=`cat conftest.err`
 
10392
$rm conftest*
 
10393
 
 
10394
 
10010
10395
# Allow CC to be a program name with arguments.
10011
10396
lt_save_CC=$CC
10012
10397
lt_save_LD=$LD
10017
10402
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10018
10403
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10019
10404
else
10020
 
  unset lt_cv_prog_gnu_ld
 
10405
  $as_unset lt_cv_prog_gnu_ld
10021
10406
fi
10022
10407
if test -n "${lt_cv_path_LDCXX+set}"; then
10023
10408
  lt_cv_path_LD=$lt_cv_path_LDCXX
10024
10409
else
10025
 
  unset lt_cv_path_LD
 
10410
  $as_unset lt_cv_path_LD
10026
10411
fi
10027
10412
test -z "${LDCXX+set}" || LD=$LDCXX
10028
10413
CC=${CXX-"c++"}
10029
10414
compiler=$CC
10030
10415
compiler_CXX=$CC
10031
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10416
for cc_temp in $compiler""; do
 
10417
  case $cc_temp in
 
10418
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10419
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10420
    \-*) ;;
 
10421
    *) break;;
 
10422
  esac
 
10423
done
 
10424
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10425
 
10032
10426
 
10033
10427
# We don't want -fno-exception wen compiling C++ code, so set the
10034
10428
# no_builtin_flag separately
10099
10493
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10100
10494
      lt_cv_path_LD="$ac_dir/$ac_prog"
10101
10495
      # Check to see if the program is GNU ld.  I'd rather use --version,
10102
 
      # but apparently some GNU ld's only accept -v.
 
10496
      # but apparently some variants of GNU ld only accept -v.
10103
10497
      # Break only if it was the GNU/non-GNU ld that we prefer.
10104
10498
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10105
10499
      *GNU* | *'with BFD'*)
10133
10527
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10134
10528
  echo $ECHO_N "(cached) $ECHO_C" >&6
10135
10529
else
10136
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10530
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10137
10531
case `$LD -v 2>&1 </dev/null` in
10138
10532
*GNU* | *'with BFD'*)
10139
10533
  lt_cv_prog_gnu_ld=yes
10224
10618
            ;;
10225
10619
          esac
10226
10620
        done
 
10621
        ;;
10227
10622
      esac
10228
10623
 
10229
10624
      exp_sym_flag='-bexport'
10242
10637
    link_all_deplibs_CXX=yes
10243
10638
 
10244
10639
    if test "$GXX" = yes; then
10245
 
      case $host_os in aix4.012|aix4.012.*)
 
10640
      case $host_os in aix4.[012]|aix4.[012].*)
10246
10641
      # We only want to do this on AIX 4.2 and lower, the check
10247
10642
      # below for broken collect2 doesn't work under 4.3+
10248
10643
        collect2name=`${CC} -print-prog-name=collect2`
10261
10656
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10262
10657
          hardcode_libdir_separator_CXX=
10263
10658
        fi
 
10659
        ;;
10264
10660
      esac
10265
10661
      shared_flag='-shared'
 
10662
      if test "$aix_use_runtimelinking" = yes; then
 
10663
        shared_flag="$shared_flag "'${wl}-G'
 
10664
      fi
10266
10665
    else
10267
10666
      # not using gcc
10268
10667
      if test "$host_cpu" = ia64; then
10340
10739
 
10341
10740
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10342
10741
 
10343
 
      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"
 
10742
      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"
10344
10743
     else
10345
10744
      if test "$host_cpu" = ia64; then
10346
10745
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10347
10746
        allow_undefined_flag_CXX="-z nodefs"
10348
 
        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"
 
10747
        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"
10349
10748
      else
10350
10749
        # Determine the default libpath from the value encoded in an empty executable.
10351
10750
        cat >conftest.$ac_ext <<_ACEOF
10405
10804
        # -berok will link without error, but may produce a broken library.
10406
10805
        no_undefined_flag_CXX=' ${wl}-bernotok'
10407
10806
        allow_undefined_flag_CXX=' ${wl}-berok'
10408
 
        # -bexpall does not export symbols beginning with underscore (_)
10409
 
        always_export_symbols_CXX=yes
10410
10807
        # Exported symbols can be pulled into shared objects from archives
10411
 
        whole_archive_flag_spec_CXX=' '
 
10808
        whole_archive_flag_spec_CXX='$convenience'
10412
10809
        archive_cmds_need_lc_CXX=yes
10413
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10414
 
        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'
 
10810
        # This is similar to how AIX traditionally builds its shared libraries.
 
10811
        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'
10415
10812
      fi
10416
10813
    fi
10417
10814
    ;;
 
10815
 
 
10816
  beos*)
 
10817
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10818
      allow_undefined_flag_CXX=unsupported
 
10819
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10820
      # support --undefined.  This deserves some investigation.  FIXME
 
10821
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10822
    else
 
10823
      ld_shlibs_CXX=no
 
10824
    fi
 
10825
    ;;
 
10826
 
10418
10827
  chorus*)
10419
10828
    case $cc_basename in
10420
10829
      *)
10433
10842
    enable_shared_with_static_runtimes_CXX=yes
10434
10843
 
10435
10844
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10436
 
      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'
 
10845
      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'
10437
10846
      # If the export-symbols file already is a .def file (1st line
10438
10847
      # is EXPORTS), use it as is; otherwise, prepend...
10439
10848
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10442
10851
        echo EXPORTS > $output_objdir/$soname.def;
10443
10852
        cat $export_symbols >> $output_objdir/$soname.def;
10444
10853
      fi~
10445
 
      $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'
 
10854
      $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'
10446
10855
    else
10447
10856
      ld_shlibs_CXX=no
10448
10857
    fi
10449
10858
  ;;
10450
 
 
10451
 
  darwin* | rhapsody*)
10452
 
  if test "$GXX" = yes; then
10453
 
    archive_cmds_need_lc_CXX=no
10454
 
    case "$host_os" in
10455
 
    rhapsody* | darwin1.[012])
10456
 
      allow_undefined_flag_CXX='-undefined suppress'
10457
 
      ;;
10458
 
    *) # Darwin 1.3 on
10459
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10460
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10461
 
      else
10462
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10463
 
          10.[012])
10464
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10465
 
            ;;
10466
 
          10.*)
10467
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10468
 
            ;;
 
10859
      darwin* | rhapsody*)
 
10860
        case $host_os in
 
10861
        rhapsody* | darwin1.[012])
 
10862
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10863
         ;;
 
10864
       *) # Darwin 1.3 on
 
10865
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10866
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10867
         else
 
10868
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10869
             10.[012])
 
10870
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10871
               ;;
 
10872
             10.*)
 
10873
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10874
               ;;
 
10875
           esac
 
10876
         fi
 
10877
         ;;
10469
10878
        esac
10470
 
      fi
10471
 
      ;;
10472
 
    esac
10473
 
    lt_int_apple_cc_single_mod=no
10474
 
    output_verbose_link_cmd='echo'
10475
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10476
 
      lt_int_apple_cc_single_mod=yes
10477
 
    fi
10478
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10479
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10480
 
    else
10481
 
      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'
10482
 
    fi
10483
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10879
      archive_cmds_need_lc_CXX=no
 
10880
      hardcode_direct_CXX=no
 
10881
      hardcode_automatic_CXX=yes
 
10882
      hardcode_shlibpath_var_CXX=unsupported
 
10883
      whole_archive_flag_spec_CXX=''
 
10884
      link_all_deplibs_CXX=yes
10484
10885
 
10485
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10486
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10487
 
      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}'
10488
 
    else
10489
 
      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}'
10490
 
    fi
10491
 
    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}'
10492
 
    hardcode_direct_CXX=no
10493
 
    hardcode_automatic_CXX=yes
10494
 
    hardcode_shlibpath_var_CXX=unsupported
10495
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10496
 
    link_all_deplibs_CXX=yes
10497
 
  else
10498
 
    ld_shlibs_CXX=no
10499
 
  fi
10500
 
    ;;
 
10886
    if test "$GXX" = yes ; then
 
10887
      lt_int_apple_cc_single_mod=no
 
10888
      output_verbose_link_cmd='echo'
 
10889
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10890
       lt_int_apple_cc_single_mod=yes
 
10891
      fi
 
10892
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10893
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10894
      else
 
10895
          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'
 
10896
        fi
 
10897
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10898
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10899
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10900
            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}'
 
10901
          else
 
10902
            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}'
 
10903
          fi
 
10904
            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}'
 
10905
      else
 
10906
      case $cc_basename in
 
10907
        xlc*)
 
10908
         output_verbose_link_cmd='echo'
 
10909
          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'
 
10910
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10911
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10912
          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}'
 
10913
          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}'
 
10914
          ;;
 
10915
       *)
 
10916
         ld_shlibs_CXX=no
 
10917
          ;;
 
10918
      esac
 
10919
      fi
 
10920
        ;;
10501
10921
 
10502
10922
  dgux*)
10503
10923
    case $cc_basename in
10504
 
      ec++)
 
10924
      ec++*)
10505
10925
        # FIXME: insert proper C++ library support
10506
10926
        ld_shlibs_CXX=no
10507
10927
        ;;
10508
 
      ghcx)
 
10928
      ghcx*)
10509
10929
        # Green Hills C++ Compiler
10510
10930
        # FIXME: insert proper C++ library support
10511
10931
        ld_shlibs_CXX=no
10516
10936
        ;;
10517
10937
    esac
10518
10938
    ;;
10519
 
  freebsd12*)
 
10939
  freebsd[12]*)
10520
10940
    # C++ shared libraries reported to be fairly broken before switch to ELF
10521
10941
    ld_shlibs_CXX=no
10522
10942
    ;;
10523
10943
  freebsd-elf*)
10524
10944
    archive_cmds_need_lc_CXX=no
10525
10945
    ;;
10526
 
  freebsd* | kfreebsd*-gnu)
 
10946
  freebsd* | kfreebsd*-gnu | dragonfly*)
10527
10947
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10528
10948
    # conventions
10529
10949
    ld_shlibs_CXX=yes
10540
10960
                                # location of the library.
10541
10961
 
10542
10962
    case $cc_basename in
10543
 
    CC)
 
10963
    CC*)
10544
10964
      # FIXME: insert proper C++ library support
10545
10965
      ld_shlibs_CXX=no
10546
10966
      ;;
10547
 
    aCC)
 
10967
    aCC*)
10548
10968
      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'
10549
10969
      # Commands to make compiler produce verbose output that lists
10550
10970
      # what "hidden" libraries, object files and flags are used when
10554
10974
      # explicitly linking system object files so we need to strip them
10555
10975
      # from the output so that they don't get included in the library
10556
10976
      # dependencies.
10557
 
      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'
 
10977
      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'
10558
10978
      ;;
10559
10979
    *)
10560
10980
      if test "$GXX" = yes; then
10568
10988
    ;;
10569
10989
  hpux10*|hpux11*)
10570
10990
    if test $with_gnu_ld = no; then
10571
 
      case "$host_cpu" in
10572
 
      hppa*64*)
10573
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10991
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10992
      hardcode_libdir_separator_CXX=:
 
10993
 
 
10994
      case $host_cpu in
 
10995
      hppa*64*|ia64*)
10574
10996
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10575
 
        hardcode_libdir_separator_CXX=:
10576
 
        ;;
10577
 
      ia64*)
10578
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10579
10997
        ;;
10580
10998
      *)
10581
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10582
 
        hardcode_libdir_separator_CXX=:
10583
10999
        export_dynamic_flag_spec_CXX='${wl}-E'
10584
11000
        ;;
10585
11001
      esac
10586
11002
    fi
10587
 
    case "$host_cpu" in
10588
 
    hppa*64*)
10589
 
      hardcode_direct_CXX=no
10590
 
      hardcode_shlibpath_var_CXX=no
10591
 
      ;;
10592
 
    ia64*)
10593
 
      hardcode_direct_CXX=no
10594
 
      hardcode_shlibpath_var_CXX=no
10595
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10596
 
                                              # but as the default
10597
 
                                              # location of the library.
 
11003
    case $host_cpu in
 
11004
    hppa*64*|ia64*)
 
11005
      hardcode_direct_CXX=no
 
11006
      hardcode_shlibpath_var_CXX=no
10598
11007
      ;;
10599
11008
    *)
10600
11009
      hardcode_direct_CXX=yes
10605
11014
    esac
10606
11015
 
10607
11016
    case $cc_basename in
10608
 
      CC)
 
11017
      CC*)
10609
11018
        # FIXME: insert proper C++ library support
10610
11019
        ld_shlibs_CXX=no
10611
11020
        ;;
10612
 
      aCC)
10613
 
        case "$host_cpu" in
10614
 
        hppa*64*|ia64*)
10615
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11021
      aCC*)
 
11022
        case $host_cpu in
 
11023
        hppa*64*)
 
11024
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11025
          ;;
 
11026
        ia64*)
 
11027
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10616
11028
          ;;
10617
11029
        *)
10618
11030
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10631
11043
      *)
10632
11044
        if test "$GXX" = yes; then
10633
11045
          if test $with_gnu_ld = no; then
10634
 
            case "$host_cpu" in
10635
 
            ia64*|hppa*64*)
10636
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11046
            case $host_cpu in
 
11047
            hppa*64*)
 
11048
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11049
              ;;
 
11050
            ia64*)
 
11051
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10637
11052
              ;;
10638
11053
            *)
10639
11054
              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'
10647
11062
        ;;
10648
11063
    esac
10649
11064
    ;;
 
11065
  interix3*)
 
11066
    hardcode_direct_CXX=no
 
11067
    hardcode_shlibpath_var_CXX=no
 
11068
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11069
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11070
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11071
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11072
    # default) and relocated if they conflict, which is a slow very memory
 
11073
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11074
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11075
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11076
    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'
 
11077
    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'
 
11078
    ;;
10650
11079
  irix5* | irix6*)
10651
11080
    case $cc_basename in
10652
 
      CC)
 
11081
      CC*)
10653
11082
        # SGI C++
10654
 
        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'
 
11083
        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'
10655
11084
 
10656
11085
        # Archives containing C++ object files must be created using
10657
11086
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10662
11091
      *)
10663
11092
        if test "$GXX" = yes; then
10664
11093
          if test "$with_gnu_ld" = no; then
10665
 
            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'
 
11094
            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'
10666
11095
          else
10667
11096
            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'
10668
11097
          fi
10675
11104
    ;;
10676
11105
  linux*)
10677
11106
    case $cc_basename in
10678
 
      KCC)
 
11107
      KCC*)
10679
11108
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10680
11109
 
10681
11110
        # KCC will only create a shared library if the output file
10700
11129
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10701
11130
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10702
11131
        ;;
10703
 
      icpc)
 
11132
      icpc*)
10704
11133
        # Intel C++
10705
11134
        with_gnu_ld=yes
 
11135
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11136
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11137
        # earlier do not add the objects themselves.
 
11138
        case `$CC -V 2>&1` in
 
11139
        *"Version 7."*)
 
11140
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11141
          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'
 
11142
          ;;
 
11143
        *)  # Version 8.0 or newer
 
11144
          tmp_idyn=
 
11145
          case $host_cpu in
 
11146
            ia64*) tmp_idyn=' -i_dynamic';;
 
11147
          esac
 
11148
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11149
          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'
 
11150
          ;;
 
11151
        esac
10706
11152
        archive_cmds_need_lc_CXX=no
10707
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10708
 
        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'
10709
11153
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710
11154
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711
11155
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10712
11156
        ;;
10713
 
      cxx)
 
11157
      pgCC*)
 
11158
        # Portland Group C++ compiler
 
11159
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11160
        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'
 
11161
 
 
11162
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11163
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11164
        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'
 
11165
        ;;
 
11166
      cxx*)
10714
11167
        # Compaq C++
10715
11168
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716
11169
        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'
10741
11194
    ;;
10742
11195
  mvs*)
10743
11196
    case $cc_basename in
10744
 
      cxx)
 
11197
      cxx*)
10745
11198
        # FIXME: insert proper C++ library support
10746
11199
        ld_shlibs_CXX=no
10747
11200
        ;;
10762
11215
    # Workaround some broken pre-1.5 toolchains
10763
11216
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10764
11217
    ;;
 
11218
  openbsd2*)
 
11219
    # C++ shared libraries are fairly broken
 
11220
    ld_shlibs_CXX=no
 
11221
    ;;
 
11222
  openbsd*)
 
11223
    hardcode_direct_CXX=yes
 
11224
    hardcode_shlibpath_var_CXX=no
 
11225
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11226
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11227
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11228
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11229
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11230
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11231
    fi
 
11232
    output_verbose_link_cmd='echo'
 
11233
    ;;
10765
11234
  osf3*)
10766
11235
    case $cc_basename in
10767
 
      KCC)
 
11236
      KCC*)
10768
11237
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10769
11238
 
10770
11239
        # KCC will only create a shared library if the output file
10780
11249
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10781
11250
 
10782
11251
        ;;
10783
 
      RCC)
 
11252
      RCC*)
10784
11253
        # Rational C++ 2.4.1
10785
11254
        # FIXME: insert proper C++ library support
10786
11255
        ld_shlibs_CXX=no
10787
11256
        ;;
10788
 
      cxx)
 
11257
      cxx*)
10789
11258
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10790
 
        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'
 
11259
        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'
10791
11260
 
10792
11261
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10793
11262
        hardcode_libdir_separator_CXX=:
10805
11274
      *)
10806
11275
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10807
11276
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10808
 
          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'
 
11277
          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'
10809
11278
 
10810
11279
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10811
11280
          hardcode_libdir_separator_CXX=:
10824
11293
    ;;
10825
11294
  osf4* | osf5*)
10826
11295
    case $cc_basename in
10827
 
      KCC)
 
11296
      KCC*)
10828
11297
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10829
11298
 
10830
11299
        # KCC will only create a shared library if the output file
10839
11308
        # the KAI C++ compiler.
10840
11309
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10841
11310
        ;;
10842
 
      RCC)
 
11311
      RCC*)
10843
11312
        # Rational C++ 2.4.1
10844
11313
        # FIXME: insert proper C++ library support
10845
11314
        ld_shlibs_CXX=no
10846
11315
        ;;
10847
 
      cxx)
 
11316
      cxx*)
10848
11317
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10849
 
        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'
 
11318
        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'
10850
11319
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10851
11320
          echo "-hidden">> $lib.exp~
10852
 
          $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~
 
11321
          $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~
10853
11322
          $rm $lib.exp'
10854
11323
 
10855
11324
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10868
11337
      *)
10869
11338
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10870
11339
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10871
 
         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'
 
11340
         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'
10872
11341
 
10873
11342
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10874
11343
          hardcode_libdir_separator_CXX=:
10889
11358
    # FIXME: insert proper C++ library support
10890
11359
    ld_shlibs_CXX=no
10891
11360
    ;;
10892
 
  sco*)
10893
 
    archive_cmds_need_lc_CXX=no
10894
 
    case $cc_basename in
10895
 
      CC)
10896
 
        # FIXME: insert proper C++ library support
10897
 
        ld_shlibs_CXX=no
10898
 
        ;;
10899
 
      *)
10900
 
        # FIXME: insert proper C++ library support
10901
 
        ld_shlibs_CXX=no
10902
 
        ;;
10903
 
    esac
10904
 
    ;;
10905
11361
  sunos4*)
10906
11362
    case $cc_basename in
10907
 
      CC)
 
11363
      CC*)
10908
11364
        # Sun C++ 4.x
10909
11365
        # FIXME: insert proper C++ library support
10910
11366
        ld_shlibs_CXX=no
10911
11367
        ;;
10912
 
      lcc)
 
11368
      lcc*)
10913
11369
        # Lucid
10914
11370
        # FIXME: insert proper C++ library support
10915
11371
        ld_shlibs_CXX=no
10922
11378
    ;;
10923
11379
  solaris*)
10924
11380
    case $cc_basename in
10925
 
      CC)
 
11381
      CC*)
10926
11382
        # Sun C++ 4.2, 5.x and Centerline C++
 
11383
        archive_cmds_need_lc_CXX=yes
10927
11384
        no_undefined_flag_CXX=' -zdefs'
10928
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11385
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10929
11386
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10930
 
        $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'
 
11387
        $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'
10931
11388
 
10932
11389
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10933
11390
        hardcode_shlibpath_var_CXX=no
10934
11391
        case $host_os in
10935
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11392
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10936
11393
          *)
10937
11394
            # The C++ compiler is used as linker so we must use $wl
10938
11395
            # flag to pass the commands to the underlying system
10939
 
            # linker.
 
11396
            # linker. We must also pass each convience library through
 
11397
            # to the system linker between allextract/defaultextract.
 
11398
            # The C++ compiler will combine linker options so we
 
11399
            # cannot just pass the convience library names through
 
11400
            # without $wl.
10940
11401
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10941
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11402
            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'
10942
11403
            ;;
10943
11404
        esac
10944
11405
        link_all_deplibs_CXX=yes
10945
11406
 
10946
 
        # Commands to make compiler produce verbose output that lists
10947
 
        # what "hidden" libraries, object files and flags are used when
10948
 
        # linking a shared library.
10949
 
        #
10950
 
        # There doesn't appear to be a way to prevent this compiler from
10951
 
        # explicitly linking system object files so we need to strip them
10952
 
        # from the output so that they don't get included in the library
10953
 
        # dependencies.
10954
 
        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'
 
11407
        output_verbose_link_cmd='echo'
10955
11408
 
10956
11409
        # Archives containing C++ object files must be created using
10957
11410
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10959
11412
        # in the archive.
10960
11413
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10961
11414
        ;;
10962
 
      gcx)
 
11415
      gcx*)
10963
11416
        # Green Hills C++ Compiler
10964
11417
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10965
11418
 
10997
11450
        ;;
10998
11451
    esac
10999
11452
    ;;
11000
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11001
 
    archive_cmds_need_lc_CXX=no
 
11453
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11454
    no_undefined_flag_CXX='${wl}-z,text'
 
11455
    archive_cmds_need_lc_CXX=no
 
11456
    hardcode_shlibpath_var_CXX=no
 
11457
    runpath_var='LD_RUN_PATH'
 
11458
 
 
11459
    case $cc_basename in
 
11460
      CC*)
 
11461
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11462
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11463
        ;;
 
11464
      *)
 
11465
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11466
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11467
        ;;
 
11468
    esac
 
11469
    ;;
 
11470
  sysv5* | sco3.2v5* | sco5v6*)
 
11471
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11472
    # link with -lc, and that would cause any symbols used from libc to
 
11473
    # always be unresolved, which means just about no library would
 
11474
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11475
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11476
    # as -z defs.
 
11477
    # For security reasons, it is highly recommended that you always
 
11478
    # use absolute paths for naming shared libraries, and exclude the
 
11479
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11480
    # requires that you compile everything twice, which is a pain.
 
11481
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11482
    # non-empty value in the environment.  Most likely only useful for
 
11483
    # creating official distributions of packages.
 
11484
    # This is a hack until libtool officially supports absolute path
 
11485
    # names for shared libraries.
 
11486
    no_undefined_flag_CXX='${wl}-z,text'
 
11487
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11488
    archive_cmds_need_lc_CXX=no
 
11489
    hardcode_shlibpath_var_CXX=no
 
11490
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11491
    hardcode_libdir_separator_CXX=':'
 
11492
    link_all_deplibs_CXX=yes
 
11493
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11494
    runpath_var='LD_RUN_PATH'
 
11495
 
 
11496
    case $cc_basename in
 
11497
      CC*)
 
11498
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11499
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11500
        ;;
 
11501
      *)
 
11502
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11503
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11504
        ;;
 
11505
    esac
11002
11506
    ;;
11003
11507
  tandem*)
11004
11508
    case $cc_basename in
11005
 
      NCC)
 
11509
      NCC*)
11006
11510
        # NonStop-UX NCC 3.20
11007
11511
        # FIXME: insert proper C++ library support
11008
11512
        ld_shlibs_CXX=no
11055
11559
  # The `*' in the case matches for architectures that use `case' in
11056
11560
  # $output_verbose_cmd can trigger glob expansion during the loop
11057
11561
  # eval without this substitution.
11058
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11562
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11059
11563
 
11060
11564
  for p in `eval $output_verbose_link_cmd`; do
11061
11565
    case $p in
11131
11635
 
11132
11636
$rm -f confest.$objext
11133
11637
 
 
11638
# PORTME: override above test on systems where it is broken
 
11639
case $host_os in
 
11640
interix3*)
 
11641
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11642
  # hack all around it, let's just trust "g++" to DTRT.
 
11643
  predep_objects_CXX=
 
11644
  postdep_objects_CXX=
 
11645
  postdeps_CXX=
 
11646
  ;;
 
11647
 
 
11648
solaris*)
 
11649
  case $cc_basename in
 
11650
  CC*)
 
11651
    # Adding this requires a known-good setup of shared libraries for
 
11652
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11653
    # archive will be linked into the output, leading to subtle bugs.
 
11654
    postdeps_CXX='-lCstd -lCrun'
 
11655
    ;;
 
11656
  esac
 
11657
  ;;
 
11658
esac
 
11659
 
 
11660
 
11134
11661
case " $postdeps_CXX " in
11135
11662
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11136
11663
esac
11178
11705
      # DJGPP does not support shared libraries at all
11179
11706
      lt_prog_compiler_pic_CXX=
11180
11707
      ;;
 
11708
    interix3*)
 
11709
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11710
      # Instead, we relocate shared libraries at runtime.
 
11711
      ;;
11181
11712
    sysv4*MP*)
11182
11713
      if test -d /usr/nec; then
11183
11714
        lt_prog_compiler_pic_CXX=-Kconform_pic
11186
11717
    hpux*)
11187
11718
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11188
11719
      # not for PA HP-UX.
11189
 
      case "$host_cpu" in
 
11720
      case $host_cpu in
11190
11721
      hppa*64*|ia64*)
11191
11722
        ;;
11192
11723
      *)
11211
11742
        ;;
11212
11743
      chorus*)
11213
11744
        case $cc_basename in
11214
 
        cxch68)
 
11745
        cxch68*)
11215
11746
          # Green Hills C++ Compiler
11216
11747
          # _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"
11217
11748
          ;;
11218
11749
        esac
11219
11750
        ;;
 
11751
       darwin*)
 
11752
         # PIC is the default on this platform
 
11753
         # Common symbols not allowed in MH_DYLIB files
 
11754
         case $cc_basename in
 
11755
           xlc*)
 
11756
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11757
           lt_prog_compiler_wl_CXX='-Wl,'
 
11758
           ;;
 
11759
         esac
 
11760
       ;;
11220
11761
      dgux*)
11221
11762
        case $cc_basename in
11222
 
          ec++)
 
11763
          ec++*)
11223
11764
            lt_prog_compiler_pic_CXX='-KPIC'
11224
11765
            ;;
11225
 
          ghcx)
 
11766
          ghcx*)
11226
11767
            # Green Hills C++ Compiler
11227
11768
            lt_prog_compiler_pic_CXX='-pic'
11228
11769
            ;;
11230
11771
            ;;
11231
11772
        esac
11232
11773
        ;;
11233
 
      freebsd* | kfreebsd*-gnu)
 
11774
      freebsd* | kfreebsd*-gnu | dragonfly*)
11234
11775
        # FreeBSD uses GNU C++
11235
11776
        ;;
11236
11777
      hpux9* | hpux10* | hpux11*)
11237
11778
        case $cc_basename in
11238
 
          CC)
 
11779
          CC*)
11239
11780
            lt_prog_compiler_wl_CXX='-Wl,'
11240
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11781
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11241
11782
            if test "$host_cpu" != ia64; then
11242
11783
              lt_prog_compiler_pic_CXX='+Z'
11243
11784
            fi
11244
11785
            ;;
11245
 
          aCC)
 
11786
          aCC*)
11246
11787
            lt_prog_compiler_wl_CXX='-Wl,'
11247
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11248
 
            case "$host_cpu" in
 
11788
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11789
            case $host_cpu in
11249
11790
            hppa*64*|ia64*)
11250
11791
              # +Z the default
11251
11792
              ;;
11258
11799
            ;;
11259
11800
        esac
11260
11801
        ;;
 
11802
      interix*)
 
11803
        # This is c89, which is MS Visual C++ (no shared libs)
 
11804
        # Anyone wants to do a port?
 
11805
        ;;
11261
11806
      irix5* | irix6* | nonstopux*)
11262
11807
        case $cc_basename in
11263
 
          CC)
 
11808
          CC*)
11264
11809
            lt_prog_compiler_wl_CXX='-Wl,'
11265
11810
            lt_prog_compiler_static_CXX='-non_shared'
11266
11811
            # CC pic flag -KPIC is the default.
11271
11816
        ;;
11272
11817
      linux*)
11273
11818
        case $cc_basename in
11274
 
          KCC)
 
11819
          KCC*)
11275
11820
            # KAI C++ Compiler
11276
11821
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11277
11822
            lt_prog_compiler_pic_CXX='-fPIC'
11278
11823
            ;;
11279
 
          icpc)
 
11824
          icpc* | ecpc*)
11280
11825
            # Intel C++
11281
11826
            lt_prog_compiler_wl_CXX='-Wl,'
11282
11827
            lt_prog_compiler_pic_CXX='-KPIC'
11283
11828
            lt_prog_compiler_static_CXX='-static'
11284
11829
            ;;
11285
 
          cxx)
 
11830
          pgCC*)
 
11831
            # Portland Group C++ compiler.
 
11832
            lt_prog_compiler_wl_CXX='-Wl,'
 
11833
            lt_prog_compiler_pic_CXX='-fpic'
 
11834
            lt_prog_compiler_static_CXX='-Bstatic'
 
11835
            ;;
 
11836
          cxx*)
11286
11837
            # Compaq C++
11287
11838
            # Make sure the PIC flag is empty.  It appears that all Alpha
11288
11839
            # Linux and Compaq Tru64 Unix objects are PIC.
11299
11850
        ;;
11300
11851
      mvs*)
11301
11852
        case $cc_basename in
11302
 
          cxx)
 
11853
          cxx*)
11303
11854
            lt_prog_compiler_pic_CXX='-W c,exportall'
11304
11855
            ;;
11305
11856
          *)
11310
11861
        ;;
11311
11862
      osf3* | osf4* | osf5*)
11312
11863
        case $cc_basename in
11313
 
          KCC)
 
11864
          KCC*)
11314
11865
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11315
11866
            ;;
11316
 
          RCC)
 
11867
          RCC*)
11317
11868
            # Rational C++ 2.4.1
11318
11869
            lt_prog_compiler_pic_CXX='-pic'
11319
11870
            ;;
11320
 
          cxx)
 
11871
          cxx*)
11321
11872
            # Digital/Compaq C++
11322
11873
            lt_prog_compiler_wl_CXX='-Wl,'
11323
11874
            # Make sure the PIC flag is empty.  It appears that all Alpha
11331
11882
        ;;
11332
11883
      psos*)
11333
11884
        ;;
11334
 
      sco*)
11335
 
        case $cc_basename in
11336
 
          CC)
11337
 
            lt_prog_compiler_pic_CXX='-fPIC'
11338
 
            ;;
11339
 
          *)
11340
 
            ;;
11341
 
        esac
11342
 
        ;;
11343
11885
      solaris*)
11344
11886
        case $cc_basename in
11345
 
          CC)
 
11887
          CC*)
11346
11888
            # Sun C++ 4.2, 5.x and Centerline C++
11347
11889
            lt_prog_compiler_pic_CXX='-KPIC'
11348
11890
            lt_prog_compiler_static_CXX='-Bstatic'
11349
11891
            lt_prog_compiler_wl_CXX='-Qoption ld '
11350
11892
            ;;
11351
 
          gcx)
 
11893
          gcx*)
11352
11894
            # Green Hills C++ Compiler
11353
11895
            lt_prog_compiler_pic_CXX='-PIC'
11354
11896
            ;;
11358
11900
        ;;
11359
11901
      sunos4*)
11360
11902
        case $cc_basename in
11361
 
          CC)
 
11903
          CC*)
11362
11904
            # Sun C++ 4.x
11363
11905
            lt_prog_compiler_pic_CXX='-pic'
11364
11906
            lt_prog_compiler_static_CXX='-Bstatic'
11365
11907
            ;;
11366
 
          lcc)
 
11908
          lcc*)
11367
11909
            # Lucid
11368
11910
            lt_prog_compiler_pic_CXX='-pic'
11369
11911
            ;;
11373
11915
        ;;
11374
11916
      tandem*)
11375
11917
        case $cc_basename in
11376
 
          NCC)
 
11918
          NCC*)
11377
11919
            # NonStop-UX NCC 3.20
11378
11920
            lt_prog_compiler_pic_CXX='-KPIC'
11379
11921
            ;;
11381
11923
            ;;
11382
11924
        esac
11383
11925
        ;;
11384
 
      unixware*)
 
11926
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11927
        case $cc_basename in
 
11928
          CC*)
 
11929
            lt_prog_compiler_wl_CXX='-Wl,'
 
11930
            lt_prog_compiler_pic_CXX='-KPIC'
 
11931
            lt_prog_compiler_static_CXX='-Bstatic'
 
11932
            ;;
 
11933
        esac
11385
11934
        ;;
11386
11935
      vxworks*)
11387
11936
        ;;
11414
11963
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11415
11964
   # The option is referenced via a variable to avoid confusing sed.
11416
11965
   lt_compile=`echo "$ac_compile" | $SED \
11417
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11966
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11418
11967
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11419
11968
   -e 's:$: $lt_compiler_flag:'`
11420
 
   (eval echo "\"\$as_me:11420: $lt_compile\"" >&5)
 
11969
   (eval echo "\"\$as_me:11969: $lt_compile\"" >&5)
11421
11970
   (eval "$lt_compile" 2>conftest.err)
11422
11971
   ac_status=$?
11423
11972
   cat conftest.err >&5
11424
 
   echo "$as_me:11424: \$? = $ac_status" >&5
 
11973
   echo "$as_me:11973: \$? = $ac_status" >&5
11425
11974
   if (exit $ac_status) && test -s "$ac_outfile"; then
11426
11975
     # The compiler can only warn and ignore the option if not recognized
11427
 
     # So say no if there are warnings
11428
 
     if test ! -s conftest.err; then
 
11976
     # So say no if there are warnings other than the usual output.
 
11977
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11978
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11979
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11429
11980
       lt_prog_compiler_pic_works_CXX=yes
11430
11981
     fi
11431
11982
   fi
11446
11997
fi
11447
11998
 
11448
11999
fi
11449
 
case "$host_os" in
 
12000
case $host_os in
11450
12001
  # For platforms which do not support PIC, -DPIC is meaningless:
11451
12002
  *djgpp*)
11452
12003
    lt_prog_compiler_pic_CXX=
11456
12007
    ;;
11457
12008
esac
11458
12009
 
 
12010
#
 
12011
# Check to make sure the static flag actually works.
 
12012
#
 
12013
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12014
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12015
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
12016
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12018
else
 
12019
  lt_prog_compiler_static_works_CXX=no
 
12020
   save_LDFLAGS="$LDFLAGS"
 
12021
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12022
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12023
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12024
     # The linker can only warn and ignore the option if not recognized
 
12025
     # So say no if there are warnings
 
12026
     if test -s conftest.err; then
 
12027
       # Append any errors to the config.log.
 
12028
       cat conftest.err 1>&5
 
12029
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12030
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12031
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12032
         lt_prog_compiler_static_works_CXX=yes
 
12033
       fi
 
12034
     else
 
12035
       lt_prog_compiler_static_works_CXX=yes
 
12036
     fi
 
12037
   fi
 
12038
   $rm conftest*
 
12039
   LDFLAGS="$save_LDFLAGS"
 
12040
 
 
12041
fi
 
12042
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12043
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
12044
 
 
12045
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12046
    :
 
12047
else
 
12048
    lt_prog_compiler_static_CXX=
 
12049
fi
 
12050
 
 
12051
 
11459
12052
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11460
12053
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11461
12054
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11474
12067
   # Note that $ac_compile itself does not contain backslashes and begins
11475
12068
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11476
12069
   lt_compile=`echo "$ac_compile" | $SED \
11477
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12070
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11478
12071
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11479
12072
   -e 's:$: $lt_compiler_flag:'`
11480
 
   (eval echo "\"\$as_me:11480: $lt_compile\"" >&5)
 
12073
   (eval echo "\"\$as_me:12073: $lt_compile\"" >&5)
11481
12074
   (eval "$lt_compile" 2>out/conftest.err)
11482
12075
   ac_status=$?
11483
12076
   cat out/conftest.err >&5
11484
 
   echo "$as_me:11484: \$? = $ac_status" >&5
 
12077
   echo "$as_me:12077: \$? = $ac_status" >&5
11485
12078
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11486
12079
   then
11487
12080
     # The compiler can only warn and ignore the option if not recognized
11488
12081
     # So say no if there are warnings
11489
 
     if test ! -s out/conftest.err; then
 
12082
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12083
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12084
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11490
12085
       lt_cv_prog_compiler_c_o_CXX=yes
11491
12086
     fi
11492
12087
   fi
11493
 
   chmod u+w .
 
12088
   chmod u+w . 2>&5
11494
12089
   $rm conftest*
11495
12090
   # SGI C++ compiler will create directory out/ii_files/ for
11496
12091
   # template instantiation
11545
12140
    export_symbols_cmds_CXX="$ltdll_cmds"
11546
12141
  ;;
11547
12142
  cygwin* | mingw*)
11548
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12143
    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'
11549
12144
  ;;
11550
12145
  *)
11551
12146
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11556
12151
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11557
12152
test "$ld_shlibs_CXX" = no && can_build_shared=no
11558
12153
 
11559
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11560
 
if test "$GCC" = yes; then
11561
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11562
 
fi
11563
 
 
11564
12154
#
11565
12155
# Do we need to explicitly link libc?
11566
12156
#
11593
12183
        libobjs=conftest.$ac_objext
11594
12184
        deplibs=
11595
12185
        wl=$lt_prog_compiler_wl_CXX
 
12186
        pic_flag=$lt_prog_compiler_pic_CXX
11596
12187
        compiler_flags=-v
11597
12188
        linker_flags=-v
11598
12189
        verstring=
11725
12316
  shlibpath_var=LIBRARY_PATH
11726
12317
  ;;
11727
12318
 
11728
 
bsdi4*)
 
12319
bsdi[45]*)
11729
12320
  version_type=linux
11730
12321
  need_version=no
11731
12322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753
12344
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11754
12345
      dldir=$destdir/`dirname \$dlpath`~
11755
12346
      test -d \$dldir || mkdir -p \$dldir~
11756
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12347
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12348
      chmod a+x \$dldir/$dlname'
11757
12349
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11758
12350
      dlpath=$dir/\$dldll~
11759
12351
       $rm \$dlpath'
11783
12375
      ;;
11784
12376
    pw32*)
11785
12377
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11786
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12378
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11787
12379
      ;;
11788
12380
    esac
11789
12381
    ;;
11806
12398
  soname_spec='${libname}${release}${major}$shared_ext'
11807
12399
  shlibpath_overrides_runpath=yes
11808
12400
  shlibpath_var=DYLD_LIBRARY_PATH
11809
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12401
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11810
12402
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11811
12403
  if test "$GCC" = yes; then
11812
12404
    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"`
11841
12433
  dynamic_linker='GNU ld.so'
11842
12434
  ;;
11843
12435
 
11844
 
freebsd*)
11845
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12436
freebsd* | dragonfly*)
 
12437
  # DragonFly does not have aout.  When/if they implement a new
 
12438
  # versioning mechanism, adjust this.
 
12439
  if test -x /usr/bin/objformat; then
 
12440
    objformat=`/usr/bin/objformat`
 
12441
  else
 
12442
    case $host_os in
 
12443
    freebsd[123]*) objformat=aout ;;
 
12444
    *) objformat=elf ;;
 
12445
    esac
 
12446
  fi
11846
12447
  version_type=freebsd-$objformat
11847
12448
  case $version_type in
11848
12449
    freebsd-elf*)
11860
12461
  freebsd2*)
11861
12462
    shlibpath_overrides_runpath=yes
11862
12463
    ;;
11863
 
  freebsd3.01* | freebsdelf3.01*)
 
12464
  freebsd3.[01]* | freebsdelf3.[01]*)
11864
12465
    shlibpath_overrides_runpath=yes
11865
12466
    hardcode_into_libs=yes
11866
12467
    ;;
11867
 
  *) # from 3.2 on
 
12468
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12469
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11868
12470
    shlibpath_overrides_runpath=no
11869
12471
    hardcode_into_libs=yes
11870
12472
    ;;
 
12473
  freebsd*) # from 4.6 on
 
12474
    shlibpath_overrides_runpath=yes
 
12475
    hardcode_into_libs=yes
 
12476
    ;;
11871
12477
  esac
11872
12478
  ;;
11873
12479
 
11887
12493
  version_type=sunos
11888
12494
  need_lib_prefix=no
11889
12495
  need_version=no
11890
 
  case "$host_cpu" in
 
12496
  case $host_cpu in
11891
12497
  ia64*)
11892
12498
    shrext_cmds='.so'
11893
12499
    hardcode_into_libs=yes
11927
12533
  postinstall_cmds='chmod 555 $lib'
11928
12534
  ;;
11929
12535
 
 
12536
interix3*)
 
12537
  version_type=linux
 
12538
  need_lib_prefix=no
 
12539
  need_version=no
 
12540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12541
  soname_spec='${libname}${release}${shared_ext}$major'
 
12542
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12543
  shlibpath_var=LD_LIBRARY_PATH
 
12544
  shlibpath_overrides_runpath=no
 
12545
  hardcode_into_libs=yes
 
12546
  ;;
 
12547
 
11930
12548
irix5* | irix6* | nonstopux*)
11931
12549
  case $host_os in
11932
12550
    nonstopux*) version_type=nonstopux ;;
11984
12602
  # before this can be enabled.
11985
12603
  hardcode_into_libs=yes
11986
12604
 
11987
 
  # find out which ABI we are using
11988
 
  libsuff=
11989
 
  case "$host_cpu" in
11990
 
  x86_64*|s390x*|powerpc64*)
11991
 
    echo '#line 11991 "configure"' > conftest.$ac_ext
11992
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11993
 
  (eval $ac_compile) 2>&5
11994
 
  ac_status=$?
11995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996
 
  (exit $ac_status); }; then
11997
 
      case `/usr/bin/file conftest.$ac_objext` in
11998
 
      *64-bit*)
11999
 
        libsuff=64
12000
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12001
 
        ;;
12002
 
      esac
12003
 
    fi
12004
 
    rm -rf conftest*
12005
 
    ;;
12006
 
  esac
12007
 
 
12008
12605
  # Append ld.so.conf contents to the search path
12009
12606
  if test -f /etc/ld.so.conf; then
12010
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12011
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12607
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12608
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12012
12609
  fi
12013
12610
 
12014
12611
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12069
12666
 
12070
12667
openbsd*)
12071
12668
  version_type=sunos
 
12669
  sys_lib_dlsearch_path_spec="/usr/lib"
12072
12670
  need_lib_prefix=no
12073
 
  need_version=yes
 
12671
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12672
  case $host_os in
 
12673
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12674
    *)                         need_version=no  ;;
 
12675
  esac
12074
12676
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12075
12677
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12076
12678
  shlibpath_var=LD_LIBRARY_PATH
12108
12710
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12109
12711
  ;;
12110
12712
 
12111
 
sco3.2v5*)
12112
 
  version_type=osf
12113
 
  soname_spec='${libname}${release}${shared_ext}$major'
12114
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115
 
  shlibpath_var=LD_LIBRARY_PATH
12116
 
  ;;
12117
 
 
12118
12713
solaris*)
12119
12714
  version_type=linux
12120
12715
  need_lib_prefix=no
12140
12735
  need_version=yes
12141
12736
  ;;
12142
12737
 
12143
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12738
sysv4 | sysv4.3*)
12144
12739
  version_type=linux
12145
12740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146
12741
  soname_spec='${libname}${release}${shared_ext}$major'
12173
12768
  fi
12174
12769
  ;;
12175
12770
 
 
12771
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12772
  version_type=freebsd-elf
 
12773
  need_lib_prefix=no
 
12774
  need_version=no
 
12775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12776
  soname_spec='${libname}${release}${shared_ext}$major'
 
12777
  shlibpath_var=LD_LIBRARY_PATH
 
12778
  hardcode_into_libs=yes
 
12779
  if test "$with_gnu_ld" = yes; then
 
12780
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12781
    shlibpath_overrides_runpath=no
 
12782
  else
 
12783
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12784
    shlibpath_overrides_runpath=yes
 
12785
    case $host_os in
 
12786
      sco3.2v5*)
 
12787
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12788
        ;;
 
12789
    esac
 
12790
  fi
 
12791
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12792
  ;;
 
12793
 
12176
12794
uts4*)
12177
12795
  version_type=linux
12178
12796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188
12806
echo "${ECHO_T}$dynamic_linker" >&6
12189
12807
test "$dynamic_linker" = no && can_build_shared=no
12190
12808
 
 
12809
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12810
if test "$GCC" = yes; then
 
12811
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12812
fi
 
12813
 
12191
12814
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12192
12815
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12193
12816
hardcode_action_CXX=
12194
12817
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12195
 
   test -n "$runpath_var CXX" || \
12196
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12818
   test -n "$runpath_var_CXX" || \
 
12819
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12197
12820
 
12198
12821
  # We can hardcode non-existant directories.
12199
12822
  if test "$hardcode_direct_CXX" != no &&
12225
12848
  enable_fast_install=needless
12226
12849
fi
12227
12850
 
12228
 
striplib=
12229
 
old_striplib=
12230
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12231
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12232
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12233
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12234
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12235
 
  echo "$as_me:$LINENO: result: yes" >&5
12236
 
echo "${ECHO_T}yes" >&6
12237
 
else
12238
 
# FIXME - insert some real tests, host_os isn't really good enough
12239
 
  case $host_os in
12240
 
   darwin*)
12241
 
       if test -n "$STRIP" ; then
12242
 
         striplib="$STRIP -x"
12243
 
         echo "$as_me:$LINENO: result: yes" >&5
12244
 
echo "${ECHO_T}yes" >&6
12245
 
       else
12246
 
  echo "$as_me:$LINENO: result: no" >&5
12247
 
echo "${ECHO_T}no" >&6
12248
 
fi
12249
 
       ;;
12250
 
   *)
12251
 
  echo "$as_me:$LINENO: result: no" >&5
12252
 
echo "${ECHO_T}no" >&6
12253
 
    ;;
12254
 
  esac
12255
 
fi
12256
 
 
12257
 
if test "x$enable_dlopen" != xyes; then
12258
 
  enable_dlopen=unknown
12259
 
  enable_dlopen_self=unknown
12260
 
  enable_dlopen_self_static=unknown
12261
 
else
12262
 
  lt_cv_dlopen=no
12263
 
  lt_cv_dlopen_libs=
12264
 
 
12265
 
  case $host_os in
12266
 
  beos*)
12267
 
    lt_cv_dlopen="load_add_on"
12268
 
    lt_cv_dlopen_libs=
12269
 
    lt_cv_dlopen_self=yes
12270
 
    ;;
12271
 
 
12272
 
  mingw* | pw32*)
12273
 
    lt_cv_dlopen="LoadLibrary"
12274
 
    lt_cv_dlopen_libs=
12275
 
   ;;
12276
 
 
12277
 
  cygwin*)
12278
 
    lt_cv_dlopen="dlopen"
12279
 
    lt_cv_dlopen_libs=
12280
 
   ;;
12281
 
 
12282
 
  darwin*)
12283
 
  # if libdl is installed we need to link against it
12284
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12285
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12286
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12288
 
else
12289
 
  ac_check_lib_save_LIBS=$LIBS
12290
 
LIBS="-ldl  $LIBS"
12291
 
cat >conftest.$ac_ext <<_ACEOF
12292
 
/* confdefs.h.  */
12293
 
_ACEOF
12294
 
cat confdefs.h >>conftest.$ac_ext
12295
 
cat >>conftest.$ac_ext <<_ACEOF
12296
 
/* end confdefs.h.  */
12297
 
 
12298
 
/* Override any gcc2 internal prototype to avoid an error.  */
12299
 
#ifdef __cplusplus
12300
 
extern "C"
12301
 
#endif
12302
 
/* We use char because int might match the return type of a gcc2
12303
 
   builtin and then its argument prototype would still apply.  */
12304
 
char dlopen ();
12305
 
int
12306
 
main ()
12307
 
{
12308
 
dlopen ();
12309
 
  ;
12310
 
  return 0;
12311
 
}
12312
 
_ACEOF
12313
 
rm -f conftest.$ac_objext conftest$ac_exeext
12314
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315
 
  (eval $ac_link) 2>conftest.er1
12316
 
  ac_status=$?
12317
 
  grep -v '^ *+' conftest.er1 >conftest.err
12318
 
  rm -f conftest.er1
12319
 
  cat conftest.err >&5
12320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321
 
  (exit $ac_status); } &&
12322
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12323
 
                         || test ! -s conftest.err'
12324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325
 
  (eval $ac_try) 2>&5
12326
 
  ac_status=$?
12327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328
 
  (exit $ac_status); }; } &&
12329
 
         { ac_try='test -s conftest$ac_exeext'
12330
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331
 
  (eval $ac_try) 2>&5
12332
 
  ac_status=$?
12333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
 
  (exit $ac_status); }; }; then
12335
 
  ac_cv_lib_dl_dlopen=yes
12336
 
else
12337
 
  echo "$as_me: failed program was:" >&5
12338
 
sed 's/^/| /' conftest.$ac_ext >&5
12339
 
 
12340
 
ac_cv_lib_dl_dlopen=no
12341
 
fi
12342
 
rm -f conftest.err conftest.$ac_objext \
12343
 
      conftest$ac_exeext conftest.$ac_ext
12344
 
LIBS=$ac_check_lib_save_LIBS
12345
 
fi
12346
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348
 
if test $ac_cv_lib_dl_dlopen = yes; then
12349
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12350
 
else
12351
 
 
12352
 
    lt_cv_dlopen="dyld"
12353
 
    lt_cv_dlopen_libs=
12354
 
    lt_cv_dlopen_self=yes
12355
 
 
12356
 
fi
12357
 
 
12358
 
   ;;
12359
 
 
12360
 
  *)
12361
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12362
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363
 
if test "${ac_cv_func_shl_load+set}" = set; then
12364
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12365
 
else
12366
 
  cat >conftest.$ac_ext <<_ACEOF
12367
 
/* confdefs.h.  */
12368
 
_ACEOF
12369
 
cat confdefs.h >>conftest.$ac_ext
12370
 
cat >>conftest.$ac_ext <<_ACEOF
12371
 
/* end confdefs.h.  */
12372
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12373
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12374
 
#define shl_load innocuous_shl_load
12375
 
 
12376
 
/* System header to define __stub macros and hopefully few prototypes,
12377
 
    which can conflict with char shl_load (); below.
12378
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12379
 
    <limits.h> exists even on freestanding compilers.  */
12380
 
 
12381
 
#ifdef __STDC__
12382
 
# include <limits.h>
12383
 
#else
12384
 
# include <assert.h>
12385
 
#endif
12386
 
 
12387
 
#undef shl_load
12388
 
 
12389
 
/* Override any gcc2 internal prototype to avoid an error.  */
12390
 
#ifdef __cplusplus
12391
 
extern "C"
12392
 
{
12393
 
#endif
12394
 
/* We use char because int might match the return type of a gcc2
12395
 
   builtin and then its argument prototype would still apply.  */
12396
 
char shl_load ();
12397
 
/* The GNU C library defines this for functions which it implements
12398
 
    to always fail with ENOSYS.  Some functions are actually named
12399
 
    something starting with __ and the normal name is an alias.  */
12400
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12401
 
choke me
12402
 
#else
12403
 
char (*f) () = shl_load;
12404
 
#endif
12405
 
#ifdef __cplusplus
12406
 
}
12407
 
#endif
12408
 
 
12409
 
int
12410
 
main ()
12411
 
{
12412
 
return f != shl_load;
12413
 
  ;
12414
 
  return 0;
12415
 
}
12416
 
_ACEOF
12417
 
rm -f conftest.$ac_objext conftest$ac_exeext
12418
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419
 
  (eval $ac_link) 2>conftest.er1
12420
 
  ac_status=$?
12421
 
  grep -v '^ *+' conftest.er1 >conftest.err
12422
 
  rm -f conftest.er1
12423
 
  cat conftest.err >&5
12424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
 
  (exit $ac_status); } &&
12426
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12427
 
                         || test ! -s conftest.err'
12428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429
 
  (eval $ac_try) 2>&5
12430
 
  ac_status=$?
12431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
 
  (exit $ac_status); }; } &&
12433
 
         { ac_try='test -s conftest$ac_exeext'
12434
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435
 
  (eval $ac_try) 2>&5
12436
 
  ac_status=$?
12437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
 
  (exit $ac_status); }; }; then
12439
 
  ac_cv_func_shl_load=yes
12440
 
else
12441
 
  echo "$as_me: failed program was:" >&5
12442
 
sed 's/^/| /' conftest.$ac_ext >&5
12443
 
 
12444
 
ac_cv_func_shl_load=no
12445
 
fi
12446
 
rm -f conftest.err conftest.$ac_objext \
12447
 
      conftest$ac_exeext conftest.$ac_ext
12448
 
fi
12449
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12450
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12451
 
if test $ac_cv_func_shl_load = yes; then
12452
 
  lt_cv_dlopen="shl_load"
12453
 
else
12454
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12455
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12456
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12458
 
else
12459
 
  ac_check_lib_save_LIBS=$LIBS
12460
 
LIBS="-ldld  $LIBS"
12461
 
cat >conftest.$ac_ext <<_ACEOF
12462
 
/* confdefs.h.  */
12463
 
_ACEOF
12464
 
cat confdefs.h >>conftest.$ac_ext
12465
 
cat >>conftest.$ac_ext <<_ACEOF
12466
 
/* end confdefs.h.  */
12467
 
 
12468
 
/* Override any gcc2 internal prototype to avoid an error.  */
12469
 
#ifdef __cplusplus
12470
 
extern "C"
12471
 
#endif
12472
 
/* We use char because int might match the return type of a gcc2
12473
 
   builtin and then its argument prototype would still apply.  */
12474
 
char shl_load ();
12475
 
int
12476
 
main ()
12477
 
{
12478
 
shl_load ();
12479
 
  ;
12480
 
  return 0;
12481
 
}
12482
 
_ACEOF
12483
 
rm -f conftest.$ac_objext conftest$ac_exeext
12484
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485
 
  (eval $ac_link) 2>conftest.er1
12486
 
  ac_status=$?
12487
 
  grep -v '^ *+' conftest.er1 >conftest.err
12488
 
  rm -f conftest.er1
12489
 
  cat conftest.err >&5
12490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
 
  (exit $ac_status); } &&
12492
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12493
 
                         || test ! -s conftest.err'
12494
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495
 
  (eval $ac_try) 2>&5
12496
 
  ac_status=$?
12497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498
 
  (exit $ac_status); }; } &&
12499
 
         { ac_try='test -s conftest$ac_exeext'
12500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501
 
  (eval $ac_try) 2>&5
12502
 
  ac_status=$?
12503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
 
  (exit $ac_status); }; }; then
12505
 
  ac_cv_lib_dld_shl_load=yes
12506
 
else
12507
 
  echo "$as_me: failed program was:" >&5
12508
 
sed 's/^/| /' conftest.$ac_ext >&5
12509
 
 
12510
 
ac_cv_lib_dld_shl_load=no
12511
 
fi
12512
 
rm -f conftest.err conftest.$ac_objext \
12513
 
      conftest$ac_exeext conftest.$ac_ext
12514
 
LIBS=$ac_check_lib_save_LIBS
12515
 
fi
12516
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12517
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12518
 
if test $ac_cv_lib_dld_shl_load = yes; then
12519
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12520
 
else
12521
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12522
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12523
 
if test "${ac_cv_func_dlopen+set}" = set; then
12524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12525
 
else
12526
 
  cat >conftest.$ac_ext <<_ACEOF
12527
 
/* confdefs.h.  */
12528
 
_ACEOF
12529
 
cat confdefs.h >>conftest.$ac_ext
12530
 
cat >>conftest.$ac_ext <<_ACEOF
12531
 
/* end confdefs.h.  */
12532
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12533
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12534
 
#define dlopen innocuous_dlopen
12535
 
 
12536
 
/* System header to define __stub macros and hopefully few prototypes,
12537
 
    which can conflict with char dlopen (); below.
12538
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539
 
    <limits.h> exists even on freestanding compilers.  */
12540
 
 
12541
 
#ifdef __STDC__
12542
 
# include <limits.h>
12543
 
#else
12544
 
# include <assert.h>
12545
 
#endif
12546
 
 
12547
 
#undef dlopen
12548
 
 
12549
 
/* Override any gcc2 internal prototype to avoid an error.  */
12550
 
#ifdef __cplusplus
12551
 
extern "C"
12552
 
{
12553
 
#endif
12554
 
/* We use char because int might match the return type of a gcc2
12555
 
   builtin and then its argument prototype would still apply.  */
12556
 
char dlopen ();
12557
 
/* The GNU C library defines this for functions which it implements
12558
 
    to always fail with ENOSYS.  Some functions are actually named
12559
 
    something starting with __ and the normal name is an alias.  */
12560
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12561
 
choke me
12562
 
#else
12563
 
char (*f) () = dlopen;
12564
 
#endif
12565
 
#ifdef __cplusplus
12566
 
}
12567
 
#endif
12568
 
 
12569
 
int
12570
 
main ()
12571
 
{
12572
 
return f != dlopen;
12573
 
  ;
12574
 
  return 0;
12575
 
}
12576
 
_ACEOF
12577
 
rm -f conftest.$ac_objext conftest$ac_exeext
12578
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579
 
  (eval $ac_link) 2>conftest.er1
12580
 
  ac_status=$?
12581
 
  grep -v '^ *+' conftest.er1 >conftest.err
12582
 
  rm -f conftest.er1
12583
 
  cat conftest.err >&5
12584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585
 
  (exit $ac_status); } &&
12586
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12587
 
                         || test ! -s conftest.err'
12588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589
 
  (eval $ac_try) 2>&5
12590
 
  ac_status=$?
12591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592
 
  (exit $ac_status); }; } &&
12593
 
         { ac_try='test -s conftest$ac_exeext'
12594
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595
 
  (eval $ac_try) 2>&5
12596
 
  ac_status=$?
12597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
 
  (exit $ac_status); }; }; then
12599
 
  ac_cv_func_dlopen=yes
12600
 
else
12601
 
  echo "$as_me: failed program was:" >&5
12602
 
sed 's/^/| /' conftest.$ac_ext >&5
12603
 
 
12604
 
ac_cv_func_dlopen=no
12605
 
fi
12606
 
rm -f conftest.err conftest.$ac_objext \
12607
 
      conftest$ac_exeext conftest.$ac_ext
12608
 
fi
12609
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12610
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12611
 
if test $ac_cv_func_dlopen = yes; then
12612
 
  lt_cv_dlopen="dlopen"
12613
 
else
12614
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12615
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12616
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12618
 
else
12619
 
  ac_check_lib_save_LIBS=$LIBS
12620
 
LIBS="-ldl  $LIBS"
12621
 
cat >conftest.$ac_ext <<_ACEOF
12622
 
/* confdefs.h.  */
12623
 
_ACEOF
12624
 
cat confdefs.h >>conftest.$ac_ext
12625
 
cat >>conftest.$ac_ext <<_ACEOF
12626
 
/* end confdefs.h.  */
12627
 
 
12628
 
/* Override any gcc2 internal prototype to avoid an error.  */
12629
 
#ifdef __cplusplus
12630
 
extern "C"
12631
 
#endif
12632
 
/* We use char because int might match the return type of a gcc2
12633
 
   builtin and then its argument prototype would still apply.  */
12634
 
char dlopen ();
12635
 
int
12636
 
main ()
12637
 
{
12638
 
dlopen ();
12639
 
  ;
12640
 
  return 0;
12641
 
}
12642
 
_ACEOF
12643
 
rm -f conftest.$ac_objext conftest$ac_exeext
12644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
 
  (eval $ac_link) 2>conftest.er1
12646
 
  ac_status=$?
12647
 
  grep -v '^ *+' conftest.er1 >conftest.err
12648
 
  rm -f conftest.er1
12649
 
  cat conftest.err >&5
12650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651
 
  (exit $ac_status); } &&
12652
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12653
 
                         || test ! -s conftest.err'
12654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655
 
  (eval $ac_try) 2>&5
12656
 
  ac_status=$?
12657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658
 
  (exit $ac_status); }; } &&
12659
 
         { ac_try='test -s conftest$ac_exeext'
12660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661
 
  (eval $ac_try) 2>&5
12662
 
  ac_status=$?
12663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664
 
  (exit $ac_status); }; }; then
12665
 
  ac_cv_lib_dl_dlopen=yes
12666
 
else
12667
 
  echo "$as_me: failed program was:" >&5
12668
 
sed 's/^/| /' conftest.$ac_ext >&5
12669
 
 
12670
 
ac_cv_lib_dl_dlopen=no
12671
 
fi
12672
 
rm -f conftest.err conftest.$ac_objext \
12673
 
      conftest$ac_exeext conftest.$ac_ext
12674
 
LIBS=$ac_check_lib_save_LIBS
12675
 
fi
12676
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12677
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12678
 
if test $ac_cv_lib_dl_dlopen = yes; then
12679
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12680
 
else
12681
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12682
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12683
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12685
 
else
12686
 
  ac_check_lib_save_LIBS=$LIBS
12687
 
LIBS="-lsvld  $LIBS"
12688
 
cat >conftest.$ac_ext <<_ACEOF
12689
 
/* confdefs.h.  */
12690
 
_ACEOF
12691
 
cat confdefs.h >>conftest.$ac_ext
12692
 
cat >>conftest.$ac_ext <<_ACEOF
12693
 
/* end confdefs.h.  */
12694
 
 
12695
 
/* Override any gcc2 internal prototype to avoid an error.  */
12696
 
#ifdef __cplusplus
12697
 
extern "C"
12698
 
#endif
12699
 
/* We use char because int might match the return type of a gcc2
12700
 
   builtin and then its argument prototype would still apply.  */
12701
 
char dlopen ();
12702
 
int
12703
 
main ()
12704
 
{
12705
 
dlopen ();
12706
 
  ;
12707
 
  return 0;
12708
 
}
12709
 
_ACEOF
12710
 
rm -f conftest.$ac_objext conftest$ac_exeext
12711
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712
 
  (eval $ac_link) 2>conftest.er1
12713
 
  ac_status=$?
12714
 
  grep -v '^ *+' conftest.er1 >conftest.err
12715
 
  rm -f conftest.er1
12716
 
  cat conftest.err >&5
12717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718
 
  (exit $ac_status); } &&
12719
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12720
 
                         || test ! -s conftest.err'
12721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722
 
  (eval $ac_try) 2>&5
12723
 
  ac_status=$?
12724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
 
  (exit $ac_status); }; } &&
12726
 
         { ac_try='test -s conftest$ac_exeext'
12727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728
 
  (eval $ac_try) 2>&5
12729
 
  ac_status=$?
12730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
 
  (exit $ac_status); }; }; then
12732
 
  ac_cv_lib_svld_dlopen=yes
12733
 
else
12734
 
  echo "$as_me: failed program was:" >&5
12735
 
sed 's/^/| /' conftest.$ac_ext >&5
12736
 
 
12737
 
ac_cv_lib_svld_dlopen=no
12738
 
fi
12739
 
rm -f conftest.err conftest.$ac_objext \
12740
 
      conftest$ac_exeext conftest.$ac_ext
12741
 
LIBS=$ac_check_lib_save_LIBS
12742
 
fi
12743
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12744
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12745
 
if test $ac_cv_lib_svld_dlopen = yes; then
12746
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12747
 
else
12748
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12749
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12750
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12752
 
else
12753
 
  ac_check_lib_save_LIBS=$LIBS
12754
 
LIBS="-ldld  $LIBS"
12755
 
cat >conftest.$ac_ext <<_ACEOF
12756
 
/* confdefs.h.  */
12757
 
_ACEOF
12758
 
cat confdefs.h >>conftest.$ac_ext
12759
 
cat >>conftest.$ac_ext <<_ACEOF
12760
 
/* end confdefs.h.  */
12761
 
 
12762
 
/* Override any gcc2 internal prototype to avoid an error.  */
12763
 
#ifdef __cplusplus
12764
 
extern "C"
12765
 
#endif
12766
 
/* We use char because int might match the return type of a gcc2
12767
 
   builtin and then its argument prototype would still apply.  */
12768
 
char dld_link ();
12769
 
int
12770
 
main ()
12771
 
{
12772
 
dld_link ();
12773
 
  ;
12774
 
  return 0;
12775
 
}
12776
 
_ACEOF
12777
 
rm -f conftest.$ac_objext conftest$ac_exeext
12778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779
 
  (eval $ac_link) 2>conftest.er1
12780
 
  ac_status=$?
12781
 
  grep -v '^ *+' conftest.er1 >conftest.err
12782
 
  rm -f conftest.er1
12783
 
  cat conftest.err >&5
12784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
 
  (exit $ac_status); } &&
12786
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12787
 
                         || test ! -s conftest.err'
12788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789
 
  (eval $ac_try) 2>&5
12790
 
  ac_status=$?
12791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792
 
  (exit $ac_status); }; } &&
12793
 
         { ac_try='test -s conftest$ac_exeext'
12794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795
 
  (eval $ac_try) 2>&5
12796
 
  ac_status=$?
12797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
 
  (exit $ac_status); }; }; then
12799
 
  ac_cv_lib_dld_dld_link=yes
12800
 
else
12801
 
  echo "$as_me: failed program was:" >&5
12802
 
sed 's/^/| /' conftest.$ac_ext >&5
12803
 
 
12804
 
ac_cv_lib_dld_dld_link=no
12805
 
fi
12806
 
rm -f conftest.err conftest.$ac_objext \
12807
 
      conftest$ac_exeext conftest.$ac_ext
12808
 
LIBS=$ac_check_lib_save_LIBS
12809
 
fi
12810
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12811
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12812
 
if test $ac_cv_lib_dld_dld_link = yes; then
12813
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12814
 
fi
12815
 
 
12816
 
 
12817
 
fi
12818
 
 
12819
 
 
12820
 
fi
12821
 
 
12822
 
 
12823
 
fi
12824
 
 
12825
 
 
12826
 
fi
12827
 
 
12828
 
 
12829
 
fi
12830
 
 
12831
 
    ;;
12832
 
  esac
12833
 
 
12834
 
  if test "x$lt_cv_dlopen" != xno; then
12835
 
    enable_dlopen=yes
12836
 
  else
12837
 
    enable_dlopen=no
12838
 
  fi
12839
 
 
12840
 
  case $lt_cv_dlopen in
12841
 
  dlopen)
12842
 
    save_CPPFLAGS="$CPPFLAGS"
12843
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12844
 
 
12845
 
    save_LDFLAGS="$LDFLAGS"
12846
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12847
 
 
12848
 
    save_LIBS="$LIBS"
12849
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12850
 
 
12851
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12852
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12853
 
if test "${lt_cv_dlopen_self+set}" = set; then
12854
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12855
 
else
12856
 
          if test "$cross_compiling" = yes; then :
12857
 
  lt_cv_dlopen_self=cross
12858
 
else
12859
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860
 
  lt_status=$lt_dlunknown
12861
 
  cat > conftest.$ac_ext <<EOF
12862
 
#line 12862 "configure"
12863
 
#include "confdefs.h"
12864
 
 
12865
 
#if HAVE_DLFCN_H
12866
 
#include <dlfcn.h>
12867
 
#endif
12868
 
 
12869
 
#include <stdio.h>
12870
 
 
12871
 
#ifdef RTLD_GLOBAL
12872
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12873
 
#else
12874
 
#  ifdef DL_GLOBAL
12875
 
#    define LT_DLGLOBAL         DL_GLOBAL
12876
 
#  else
12877
 
#    define LT_DLGLOBAL         0
12878
 
#  endif
12879
 
#endif
12880
 
 
12881
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882
 
   find out it does not work in some platform. */
12883
 
#ifndef LT_DLLAZY_OR_NOW
12884
 
#  ifdef RTLD_LAZY
12885
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12886
 
#  else
12887
 
#    ifdef DL_LAZY
12888
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12889
 
#    else
12890
 
#      ifdef RTLD_NOW
12891
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12892
 
#      else
12893
 
#        ifdef DL_NOW
12894
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12895
 
#        else
12896
 
#          define LT_DLLAZY_OR_NOW      0
12897
 
#        endif
12898
 
#      endif
12899
 
#    endif
12900
 
#  endif
12901
 
#endif
12902
 
 
12903
 
#ifdef __cplusplus
12904
 
extern "C" void exit (int);
12905
 
#endif
12906
 
 
12907
 
void fnord() { int i=42;}
12908
 
int main ()
12909
 
{
12910
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911
 
  int status = $lt_dlunknown;
12912
 
 
12913
 
  if (self)
12914
 
    {
12915
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12916
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917
 
      /* dlclose (self); */
12918
 
    }
12919
 
 
12920
 
    exit (status);
12921
 
}
12922
 
EOF
12923
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924
 
  (eval $ac_link) 2>&5
12925
 
  ac_status=$?
12926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12928
 
    (./conftest; exit; ) 2>/dev/null
12929
 
    lt_status=$?
12930
 
    case x$lt_status in
12931
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12932
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12933
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12934
 
    esac
12935
 
  else :
12936
 
    # compilation failed
12937
 
    lt_cv_dlopen_self=no
12938
 
  fi
12939
 
fi
12940
 
rm -fr conftest*
12941
 
 
12942
 
 
12943
 
fi
12944
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12945
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12946
 
 
12947
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12948
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12949
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12950
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12951
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12952
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12953
 
else
12954
 
          if test "$cross_compiling" = yes; then :
12955
 
  lt_cv_dlopen_self_static=cross
12956
 
else
12957
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12958
 
  lt_status=$lt_dlunknown
12959
 
  cat > conftest.$ac_ext <<EOF
12960
 
#line 12960 "configure"
12961
 
#include "confdefs.h"
12962
 
 
12963
 
#if HAVE_DLFCN_H
12964
 
#include <dlfcn.h>
12965
 
#endif
12966
 
 
12967
 
#include <stdio.h>
12968
 
 
12969
 
#ifdef RTLD_GLOBAL
12970
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12971
 
#else
12972
 
#  ifdef DL_GLOBAL
12973
 
#    define LT_DLGLOBAL         DL_GLOBAL
12974
 
#  else
12975
 
#    define LT_DLGLOBAL         0
12976
 
#  endif
12977
 
#endif
12978
 
 
12979
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12980
 
   find out it does not work in some platform. */
12981
 
#ifndef LT_DLLAZY_OR_NOW
12982
 
#  ifdef RTLD_LAZY
12983
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12984
 
#  else
12985
 
#    ifdef DL_LAZY
12986
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12987
 
#    else
12988
 
#      ifdef RTLD_NOW
12989
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12990
 
#      else
12991
 
#        ifdef DL_NOW
12992
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12993
 
#        else
12994
 
#          define LT_DLLAZY_OR_NOW      0
12995
 
#        endif
12996
 
#      endif
12997
 
#    endif
12998
 
#  endif
12999
 
#endif
13000
 
 
13001
 
#ifdef __cplusplus
13002
 
extern "C" void exit (int);
13003
 
#endif
13004
 
 
13005
 
void fnord() { int i=42;}
13006
 
int main ()
13007
 
{
13008
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009
 
  int status = $lt_dlunknown;
13010
 
 
13011
 
  if (self)
13012
 
    {
13013
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13014
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13015
 
      /* dlclose (self); */
13016
 
    }
13017
 
 
13018
 
    exit (status);
13019
 
}
13020
 
EOF
13021
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022
 
  (eval $ac_link) 2>&5
13023
 
  ac_status=$?
13024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13026
 
    (./conftest; exit; ) 2>/dev/null
13027
 
    lt_status=$?
13028
 
    case x$lt_status in
13029
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13030
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13031
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13032
 
    esac
13033
 
  else :
13034
 
    # compilation failed
13035
 
    lt_cv_dlopen_self_static=no
13036
 
  fi
13037
 
fi
13038
 
rm -fr conftest*
13039
 
 
13040
 
 
13041
 
fi
13042
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13043
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13044
 
    fi
13045
 
 
13046
 
    CPPFLAGS="$save_CPPFLAGS"
13047
 
    LDFLAGS="$save_LDFLAGS"
13048
 
    LIBS="$save_LIBS"
13049
 
    ;;
13050
 
  esac
13051
 
 
13052
 
  case $lt_cv_dlopen_self in
13053
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13054
 
  *) enable_dlopen_self=unknown ;;
13055
 
  esac
13056
 
 
13057
 
  case $lt_cv_dlopen_self_static in
13058
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13059
 
  *) enable_dlopen_self_static=unknown ;;
13060
 
  esac
13061
 
fi
13062
 
 
13063
12851
 
13064
12852
# The else clause should only fire when bootstrapping the
13065
12853
# libtool distribution, otherwise you forgot to ship ltmain.sh
13074
12862
  # Now quote all the things that may contain metacharacters while being
13075
12863
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13076
12864
  # variables and quote the copies for generation of the libtool script.
13077
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12865
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13078
12866
    SED SHELL STRIP \
13079
12867
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13080
12868
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13175
12963
# The host system.
13176
12964
host_alias=$host_alias
13177
12965
host=$host
 
12966
host_os=$host_os
 
12967
 
 
12968
# The build system.
 
12969
build_alias=$build_alias
 
12970
build=$build
 
12971
build_os=$build_os
13178
12972
 
13179
12973
# An echo program that does not interpret backslashes.
13180
12974
echo=$lt_echo
13186
12980
# A C compiler.
13187
12981
LTCC=$lt_LTCC
13188
12982
 
 
12983
# LTCC compiler flags.
 
12984
LTCFLAGS=$lt_LTCFLAGS
 
12985
 
13189
12986
# A language-specific compiler.
13190
12987
CC=$lt_compiler_CXX
13191
12988
 
13251
13048
# Does compiler simultaneously support -c and -o options?
13252
13049
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13253
13050
 
13254
 
# Must we lock files when doing compilation ?
 
13051
# Must we lock files when doing compilation?
13255
13052
need_locks=$lt_need_locks
13256
13053
 
13257
13054
# Do we need the lib prefix for modules?
13528
13325
# If no C compiler was specified, use CC.
13529
13326
LTCC=${LTCC-"$CC"}
13530
13327
 
 
13328
# If no C compiler flags were specified, use CFLAGS.
 
13329
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13330
 
13531
13331
# Allow CC to be a program name with arguments.
13532
13332
compiler=$CC
13533
13333
 
13534
13334
 
 
13335
# save warnings/boilerplate of simple test code
 
13336
ac_outfile=conftest.$ac_objext
 
13337
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13338
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13339
_lt_compiler_boilerplate=`cat conftest.err`
 
13340
$rm conftest*
 
13341
 
 
13342
ac_outfile=conftest.$ac_objext
 
13343
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13344
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13345
_lt_linker_boilerplate=`cat conftest.err`
 
13346
$rm conftest*
 
13347
 
 
13348
 
13535
13349
# Allow CC to be a program name with arguments.
13536
13350
lt_save_CC="$CC"
13537
13351
CC=${F77-"f77"}
13538
13352
compiler=$CC
13539
13353
compiler_F77=$CC
13540
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13354
for cc_temp in $compiler""; do
 
13355
  case $cc_temp in
 
13356
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13357
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13358
    \-*) ;;
 
13359
    *) break;;
 
13360
  esac
 
13361
done
 
13362
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13363
 
13541
13364
 
13542
13365
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13543
13366
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13550
13373
 
13551
13374
# On AIX, shared libraries and static libraries use the same namespace, and
13552
13375
# are all built from PIC.
13553
 
case "$host_os" in
 
13376
case $host_os in
13554
13377
aix3*)
13555
13378
  test "$enable_shared" = yes && enable_static=no
13556
13379
  if test -n "$RANLIB"; then
13559
13382
  fi
13560
13383
  ;;
13561
13384
aix4* | aix5*)
13562
 
  test "$enable_shared" = yes && enable_static=no
 
13385
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13386
    test "$enable_shared" = yes && enable_static=no
 
13387
  fi
13563
13388
  ;;
13564
13389
esac
13565
13390
echo "$as_me:$LINENO: result: $enable_shared" >&5
13572
13397
echo "$as_me:$LINENO: result: $enable_static" >&5
13573
13398
echo "${ECHO_T}$enable_static" >&6
13574
13399
 
13575
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13576
 
 
13577
13400
GCC_F77="$G77"
13578
13401
LD_F77="$LD"
13579
13402
 
13620
13443
      lt_prog_compiler_pic_F77='-fno-common'
13621
13444
      ;;
13622
13445
 
 
13446
    interix3*)
 
13447
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13448
      # Instead, we relocate shared libraries at runtime.
 
13449
      ;;
 
13450
 
13623
13451
    msdosdjgpp*)
13624
13452
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13625
13453
      # on systems that don't support them.
13636
13464
    hpux*)
13637
13465
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13638
13466
      # not for PA HP-UX.
13639
 
      case "$host_cpu" in
 
13467
      case $host_cpu in
13640
13468
      hppa*64*|ia64*)
13641
13469
        # +Z the default
13642
13470
        ;;
13662
13490
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13663
13491
      fi
13664
13492
      ;;
 
13493
      darwin*)
 
13494
        # PIC is the default on this platform
 
13495
        # Common symbols not allowed in MH_DYLIB files
 
13496
       case $cc_basename in
 
13497
         xlc*)
 
13498
         lt_prog_compiler_pic_F77='-qnocommon'
 
13499
         lt_prog_compiler_wl_F77='-Wl,'
 
13500
         ;;
 
13501
       esac
 
13502
       ;;
13665
13503
 
13666
13504
    mingw* | pw32* | os2*)
13667
13505
      # This hack is so that the source file can tell whether it is being
13673
13511
      lt_prog_compiler_wl_F77='-Wl,'
13674
13512
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675
13513
      # not for PA HP-UX.
13676
 
      case "$host_cpu" in
 
13514
      case $host_cpu in
13677
13515
      hppa*64*|ia64*)
13678
13516
        # +Z the default
13679
13517
        ;;
13697
13535
      ;;
13698
13536
 
13699
13537
    linux*)
13700
 
      case $CC in
 
13538
      case $cc_basename in
13701
13539
      icc* | ecc*)
13702
13540
        lt_prog_compiler_wl_F77='-Wl,'
13703
13541
        lt_prog_compiler_pic_F77='-KPIC'
13704
13542
        lt_prog_compiler_static_F77='-static'
13705
13543
        ;;
 
13544
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13545
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13546
        # which looks to be a dead project)
 
13547
        lt_prog_compiler_wl_F77='-Wl,'
 
13548
        lt_prog_compiler_pic_F77='-fpic'
 
13549
        lt_prog_compiler_static_F77='-Bstatic'
 
13550
        ;;
13706
13551
      ccc*)
13707
13552
        lt_prog_compiler_wl_F77='-Wl,'
13708
13553
        # All Alpha code is PIC.
13717
13562
      lt_prog_compiler_static_F77='-non_shared'
13718
13563
      ;;
13719
13564
 
13720
 
    sco3.2v5*)
13721
 
      lt_prog_compiler_pic_F77='-Kpic'
13722
 
      lt_prog_compiler_static_F77='-dn'
13723
 
      ;;
13724
 
 
13725
13565
    solaris*)
13726
 
      lt_prog_compiler_wl_F77='-Wl,'
13727
13566
      lt_prog_compiler_pic_F77='-KPIC'
13728
13567
      lt_prog_compiler_static_F77='-Bstatic'
 
13568
      case $cc_basename in
 
13569
      f77* | f90* | f95*)
 
13570
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13571
      *)
 
13572
        lt_prog_compiler_wl_F77='-Wl,';;
 
13573
      esac
13729
13574
      ;;
13730
13575
 
13731
13576
    sunos4*)
13734
13579
      lt_prog_compiler_static_F77='-Bstatic'
13735
13580
      ;;
13736
13581
 
13737
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13582
    sysv4 | sysv4.2uw2* | sysv4.3*)
13738
13583
      lt_prog_compiler_wl_F77='-Wl,'
13739
13584
      lt_prog_compiler_pic_F77='-KPIC'
13740
13585
      lt_prog_compiler_static_F77='-Bstatic'
13747
13592
      fi
13748
13593
      ;;
13749
13594
 
 
13595
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13596
      lt_prog_compiler_wl_F77='-Wl,'
 
13597
      lt_prog_compiler_pic_F77='-KPIC'
 
13598
      lt_prog_compiler_static_F77='-Bstatic'
 
13599
      ;;
 
13600
 
 
13601
    unicos*)
 
13602
      lt_prog_compiler_wl_F77='-Wl,'
 
13603
      lt_prog_compiler_can_build_shared_F77=no
 
13604
      ;;
 
13605
 
13750
13606
    uts4*)
13751
13607
      lt_prog_compiler_pic_F77='-pic'
13752
13608
      lt_prog_compiler_static_F77='-Bstatic'
13781
13637
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13782
13638
   # The option is referenced via a variable to avoid confusing sed.
13783
13639
   lt_compile=`echo "$ac_compile" | $SED \
13784
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13785
13641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786
13642
   -e 's:$: $lt_compiler_flag:'`
13787
 
   (eval echo "\"\$as_me:13787: $lt_compile\"" >&5)
 
13643
   (eval echo "\"\$as_me:13643: $lt_compile\"" >&5)
13788
13644
   (eval "$lt_compile" 2>conftest.err)
13789
13645
   ac_status=$?
13790
13646
   cat conftest.err >&5
13791
 
   echo "$as_me:13791: \$? = $ac_status" >&5
 
13647
   echo "$as_me:13647: \$? = $ac_status" >&5
13792
13648
   if (exit $ac_status) && test -s "$ac_outfile"; then
13793
13649
     # The compiler can only warn and ignore the option if not recognized
13794
 
     # So say no if there are warnings
13795
 
     if test ! -s conftest.err; then
 
13650
     # So say no if there are warnings other than the usual output.
 
13651
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13652
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13653
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13796
13654
       lt_prog_compiler_pic_works_F77=yes
13797
13655
     fi
13798
13656
   fi
13813
13671
fi
13814
13672
 
13815
13673
fi
13816
 
case "$host_os" in
 
13674
case $host_os in
13817
13675
  # For platforms which do not support PIC, -DPIC is meaningless:
13818
13676
  *djgpp*)
13819
13677
    lt_prog_compiler_pic_F77=
13823
13681
    ;;
13824
13682
esac
13825
13683
 
 
13684
#
 
13685
# Check to make sure the static flag actually works.
 
13686
#
 
13687
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13688
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13689
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13690
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13692
else
 
13693
  lt_prog_compiler_static_works_F77=no
 
13694
   save_LDFLAGS="$LDFLAGS"
 
13695
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13696
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13697
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13698
     # The linker can only warn and ignore the option if not recognized
 
13699
     # So say no if there are warnings
 
13700
     if test -s conftest.err; then
 
13701
       # Append any errors to the config.log.
 
13702
       cat conftest.err 1>&5
 
13703
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13704
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13705
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13706
         lt_prog_compiler_static_works_F77=yes
 
13707
       fi
 
13708
     else
 
13709
       lt_prog_compiler_static_works_F77=yes
 
13710
     fi
 
13711
   fi
 
13712
   $rm conftest*
 
13713
   LDFLAGS="$save_LDFLAGS"
 
13714
 
 
13715
fi
 
13716
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13717
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13718
 
 
13719
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13720
    :
 
13721
else
 
13722
    lt_prog_compiler_static_F77=
 
13723
fi
 
13724
 
 
13725
 
13826
13726
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13827
13727
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13828
13728
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13841
13741
   # Note that $ac_compile itself does not contain backslashes and begins
13842
13742
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13843
13743
   lt_compile=`echo "$ac_compile" | $SED \
13844
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13744
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13845
13745
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846
13746
   -e 's:$: $lt_compiler_flag:'`
13847
 
   (eval echo "\"\$as_me:13847: $lt_compile\"" >&5)
 
13747
   (eval echo "\"\$as_me:13747: $lt_compile\"" >&5)
13848
13748
   (eval "$lt_compile" 2>out/conftest.err)
13849
13749
   ac_status=$?
13850
13750
   cat out/conftest.err >&5
13851
 
   echo "$as_me:13851: \$? = $ac_status" >&5
 
13751
   echo "$as_me:13751: \$? = $ac_status" >&5
13852
13752
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13853
13753
   then
13854
13754
     # The compiler can only warn and ignore the option if not recognized
13855
13755
     # So say no if there are warnings
13856
 
     if test ! -s out/conftest.err; then
 
13756
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13757
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13758
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13857
13759
       lt_cv_prog_compiler_c_o_F77=yes
13858
13760
     fi
13859
13761
   fi
13860
 
   chmod u+w .
 
13762
   chmod u+w . 2>&5
13861
13763
   $rm conftest*
13862
13764
   # SGI C++ compiler will create directory out/ii_files/ for
13863
13765
   # template instantiation
13933
13835
  # rely on this symbol name, it's probably fine to never include it in
13934
13836
  # preloaded symbol tables.
13935
13837
  extract_expsyms_cmds=
 
13838
  # Just being paranoid about ensuring that cc_basename is set.
 
13839
  for cc_temp in $compiler""; do
 
13840
  case $cc_temp in
 
13841
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13842
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13843
    \-*) ;;
 
13844
    *) break;;
 
13845
  esac
 
13846
done
 
13847
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13936
13848
 
13937
13849
  case $host_os in
13938
13850
  cygwin* | mingw* | pw32*)
13943
13855
      with_gnu_ld=no
13944
13856
    fi
13945
13857
    ;;
 
13858
  interix*)
 
13859
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13860
    with_gnu_ld=yes
 
13861
    ;;
13946
13862
  openbsd*)
13947
13863
    with_gnu_ld=no
13948
13864
    ;;
13953
13869
    # If archive_cmds runs LD, not CC, wlarc should be empty
13954
13870
    wlarc='${wl}'
13955
13871
 
 
13872
    # Set some defaults for GNU ld with shared library support. These
 
13873
    # are reset later if shared libraries are not supported. Putting them
 
13874
    # here allows them to be overridden if necessary.
 
13875
    runpath_var=LD_RUN_PATH
 
13876
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13877
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13878
    # ancient GNU ld didn't support --whole-archive et. al.
 
13879
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13880
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13881
      else
 
13882
        whole_archive_flag_spec_F77=
 
13883
    fi
 
13884
    supports_anon_versioning=no
 
13885
    case `$LD -v 2>/dev/null` in
 
13886
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13887
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13888
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13889
      *\ 2.11.*) ;; # other 2.11 versions
 
13890
      *) supports_anon_versioning=yes ;;
 
13891
    esac
 
13892
 
13956
13893
    # See if GNU ld supports shared libraries.
13957
13894
    case $host_os in
13958
13895
    aix3* | aix4* | aix5*)
14003
13940
      allow_undefined_flag_F77=unsupported
14004
13941
      always_export_symbols_F77=no
14005
13942
      enable_shared_with_static_runtimes_F77=yes
14006
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13943
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14007
13944
 
14008
13945
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14009
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13946
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14010
13947
        # If the export-symbols file already is a .def file (1st line
14011
13948
        # is EXPORTS), use it as is; otherwise, prepend...
14012
13949
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14015
13952
          echo EXPORTS > $output_objdir/$soname.def;
14016
13953
          cat $export_symbols >> $output_objdir/$soname.def;
14017
13954
        fi~
14018
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14019
 
      else
14020
 
        ld_shlibs=no
 
13955
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13956
      else
 
13957
        ld_shlibs_F77=no
 
13958
      fi
 
13959
      ;;
 
13960
 
 
13961
    interix3*)
 
13962
      hardcode_direct_F77=no
 
13963
      hardcode_shlibpath_var_F77=no
 
13964
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13965
      export_dynamic_flag_spec_F77='${wl}-E'
 
13966
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13967
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13968
      # default) and relocated if they conflict, which is a slow very memory
 
13969
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13970
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13971
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13972
      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'
 
13973
      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'
 
13974
      ;;
 
13975
 
 
13976
    linux*)
 
13977
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13978
        tmp_addflag=
 
13979
        case $cc_basename,$host_cpu in
 
13980
        pgcc*)                          # Portland Group C compiler
 
13981
          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'
 
13982
          tmp_addflag=' $pic_flag'
 
13983
          ;;
 
13984
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13985
          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'
 
13986
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13987
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13988
          tmp_addflag=' -i_dynamic' ;;
 
13989
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13990
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13991
        ifc* | ifort*)                  # Intel Fortran compiler
 
13992
          tmp_addflag=' -nofor_main' ;;
 
13993
        esac
 
13994
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13995
 
 
13996
        if test $supports_anon_versioning = yes; then
 
13997
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13998
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13999
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14000
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14001
        fi
 
14002
      else
 
14003
        ld_shlibs_F77=no
14021
14004
      fi
14022
14005
      ;;
14023
14006
 
14031
14014
      fi
14032
14015
      ;;
14033
14016
 
14034
 
    solaris* | sysv5*)
 
14017
    solaris*)
14035
14018
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14036
14019
        ld_shlibs_F77=no
14037
14020
        cat <<EOF 1>&2
14052
14035
      fi
14053
14036
      ;;
14054
14037
 
 
14038
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14039
      case `$LD -v 2>&1` in
 
14040
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14041
        ld_shlibs_F77=no
 
14042
        cat <<_LT_EOF 1>&2
 
14043
 
 
14044
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14045
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14046
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14047
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14048
*** your PATH or compiler configuration so that the native linker is
 
14049
*** used, and then restart.
 
14050
 
 
14051
_LT_EOF
 
14052
        ;;
 
14053
        *)
 
14054
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14055
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14056
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14057
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14058
          else
 
14059
            ld_shlibs_F77=no
 
14060
          fi
 
14061
        ;;
 
14062
      esac
 
14063
      ;;
 
14064
 
14055
14065
    sunos4*)
14056
14066
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14057
14067
      wlarc=
14059
14069
      hardcode_shlibpath_var_F77=no
14060
14070
      ;;
14061
14071
 
14062
 
  linux*)
14063
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14064
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065
 
        archive_cmds_F77="$tmp_archive_cmds"
14066
 
      supports_anon_versioning=no
14067
 
      case `$LD -v 2>/dev/null` in
14068
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14069
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14070
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14071
 
        *\ 2.11.*) ;; # other 2.11 versions
14072
 
        *) supports_anon_versioning=yes ;;
14073
 
      esac
14074
 
      if test $supports_anon_versioning = yes; then
14075
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14076
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
14078
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14079
 
      else
14080
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
14081
 
      fi
14082
 
    else
14083
 
      ld_shlibs_F77=no
14084
 
    fi
14085
 
    ;;
14086
 
 
14087
14072
    *)
14088
14073
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14089
14074
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094
14079
      ;;
14095
14080
    esac
14096
14081
 
14097
 
    if test "$ld_shlibs_F77" = yes; then
14098
 
      runpath_var=LD_RUN_PATH
14099
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14100
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14101
 
      # ancient GNU ld didn't support --whole-archive et. al.
14102
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14103
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14104
 
      else
14105
 
        whole_archive_flag_spec_F77=
14106
 
      fi
 
14082
    if test "$ld_shlibs_F77" = no; then
 
14083
      runpath_var=
 
14084
      hardcode_libdir_flag_spec_F77=
 
14085
      export_dynamic_flag_spec_F77=
 
14086
      whole_archive_flag_spec_F77=
14107
14087
    fi
14108
14088
  else
14109
14089
    # PORTME fill in a description of your system's linker (not GNU ld)
14115
14095
      # Note: this linker hardcodes the directories in LIBPATH if there
14116
14096
      # are no directories specified by -L.
14117
14097
      hardcode_minus_L_F77=yes
14118
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14098
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14119
14099
        # Neither direct hardcoding nor static linking is supported with a
14120
14100
        # broken collect2.
14121
14101
        hardcode_direct_F77=unsupported
14149
14129
            break
14150
14130
          fi
14151
14131
          done
 
14132
          ;;
14152
14133
        esac
14153
14134
 
14154
14135
        exp_sym_flag='-bexport'
14167
14148
      link_all_deplibs_F77=yes
14168
14149
 
14169
14150
      if test "$GCC" = yes; then
14170
 
        case $host_os in aix4.012|aix4.012.*)
 
14151
        case $host_os in aix4.[012]|aix4.[012].*)
14171
14152
        # We only want to do this on AIX 4.2 and lower, the check
14172
14153
        # below for broken collect2 doesn't work under 4.3+
14173
14154
          collect2name=`${CC} -print-prog-name=collect2`
14186
14167
          hardcode_libdir_flag_spec_F77='-L$libdir'
14187
14168
          hardcode_libdir_separator_F77=
14188
14169
          fi
 
14170
          ;;
14189
14171
        esac
14190
14172
        shared_flag='-shared'
 
14173
        if test "$aix_use_runtimelinking" = yes; then
 
14174
          shared_flag="$shared_flag "'${wl}-G'
 
14175
        fi
14191
14176
      else
14192
14177
        # not using gcc
14193
14178
        if test "$host_cpu" = ia64; then
14195
14180
        # chokes on -Wl,-G. The following line is correct:
14196
14181
          shared_flag='-G'
14197
14182
        else
14198
 
        if test "$aix_use_runtimelinking" = yes; then
 
14183
          if test "$aix_use_runtimelinking" = yes; then
14199
14184
            shared_flag='${wl}-G'
14200
14185
          else
14201
14186
            shared_flag='${wl}-bM:SRE'
14202
 
        fi
 
14187
          fi
14203
14188
        fi
14204
14189
      fi
14205
14190
 
14254
14239
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
14240
 
14256
14241
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257
 
        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"
 
14242
        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"
14258
14243
       else
14259
14244
        if test "$host_cpu" = ia64; then
14260
14245
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14261
14246
          allow_undefined_flag_F77="-z nodefs"
14262
 
          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"
 
14247
          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"
14263
14248
        else
14264
14249
         # Determine the default libpath from the value encoded in an empty executable.
14265
14250
         cat >conftest.$ac_ext <<_ACEOF
14309
14294
          # -berok will link without error, but may produce a broken library.
14310
14295
          no_undefined_flag_F77=' ${wl}-bernotok'
14311
14296
          allow_undefined_flag_F77=' ${wl}-berok'
14312
 
          # -bexpall does not export symbols beginning with underscore (_)
14313
 
          always_export_symbols_F77=yes
14314
14297
          # Exported symbols can be pulled into shared objects from archives
14315
 
          whole_archive_flag_spec_F77=' '
 
14298
          whole_archive_flag_spec_F77='$convenience'
14316
14299
          archive_cmds_need_lc_F77=yes
14317
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14318
 
          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'
 
14300
          # This is similar to how AIX traditionally builds its shared libraries.
 
14301
          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'
14319
14302
        fi
14320
14303
      fi
14321
14304
      ;;
14328
14311
      ld_shlibs_F77=no
14329
14312
      ;;
14330
14313
 
14331
 
    bsdi4*)
 
14314
    bsdi[45]*)
14332
14315
      export_dynamic_flag_spec_F77=-rdynamic
14333
14316
      ;;
14334
14317
 
14349
14332
      old_archive_From_new_cmds_F77='true'
14350
14333
      # FIXME: Should let the user specify the lib program.
14351
14334
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14352
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14335
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14353
14336
      enable_shared_with_static_runtimes_F77=yes
14354
14337
      ;;
14355
14338
 
14356
14339
    darwin* | rhapsody*)
14357
 
    if test "$GXX" = yes ; then
 
14340
      case $host_os in
 
14341
        rhapsody* | darwin1.[012])
 
14342
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14343
         ;;
 
14344
       *) # Darwin 1.3 on
 
14345
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14346
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14347
         else
 
14348
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14349
             10.[012])
 
14350
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14351
               ;;
 
14352
             10.*)
 
14353
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14354
               ;;
 
14355
           esac
 
14356
         fi
 
14357
         ;;
 
14358
      esac
14358
14359
      archive_cmds_need_lc_F77=no
14359
 
      case "$host_os" in
14360
 
      rhapsody* | darwin1.[012])
14361
 
        allow_undefined_flag_F77='-undefined suppress'
14362
 
        ;;
14363
 
      *) # Darwin 1.3 on
14364
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14365
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14366
 
      else
14367
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
14368
 
          10.[012])
14369
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14370
 
            ;;
14371
 
          10.*)
14372
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
14373
 
            ;;
14374
 
        esac
14375
 
      fi
14376
 
        ;;
14377
 
      esac
14378
 
        lt_int_apple_cc_single_mod=no
14379
 
        output_verbose_link_cmd='echo'
14380
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14381
 
          lt_int_apple_cc_single_mod=yes
14382
 
        fi
14383
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14384
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14385
 
        else
14386
 
        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'
14387
 
      fi
14388
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14389
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14390
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14391
 
          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}'
14392
 
        else
14393
 
          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}'
14394
 
        fi
14395
 
          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}'
14396
14360
      hardcode_direct_F77=no
14397
14361
      hardcode_automatic_F77=yes
14398
14362
      hardcode_shlibpath_var_F77=unsupported
14399
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14363
      whole_archive_flag_spec_F77=''
14400
14364
      link_all_deplibs_F77=yes
 
14365
    if test "$GCC" = yes ; then
 
14366
        output_verbose_link_cmd='echo'
 
14367
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14368
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14369
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14370
      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}'
 
14371
      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}'
14401
14372
    else
14402
 
      ld_shlibs_F77=no
 
14373
      case $cc_basename in
 
14374
        xlc*)
 
14375
         output_verbose_link_cmd='echo'
 
14376
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14377
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14378
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14379
         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}'
 
14380
          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}'
 
14381
          ;;
 
14382
       *)
 
14383
         ld_shlibs_F77=no
 
14384
          ;;
 
14385
      esac
14403
14386
    fi
14404
14387
      ;;
14405
14388
 
14433
14416
      ;;
14434
14417
 
14435
14418
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14436
 
    freebsd* | kfreebsd*-gnu)
 
14419
    freebsd* | kfreebsd*-gnu | dragonfly*)
14437
14420
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14438
14421
      hardcode_libdir_flag_spec_F77='-R$libdir'
14439
14422
      hardcode_direct_F77=yes
14456
14439
      export_dynamic_flag_spec_F77='${wl}-E'
14457
14440
      ;;
14458
14441
 
14459
 
    hpux10* | hpux11*)
14460
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14461
 
        case "$host_cpu" in
14462
 
        hppa*64*|ia64*)
 
14442
    hpux10*)
 
14443
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14444
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14445
      else
 
14446
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14447
      fi
 
14448
      if test "$with_gnu_ld" = no; then
 
14449
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14450
        hardcode_libdir_separator_F77=:
 
14451
 
 
14452
        hardcode_direct_F77=yes
 
14453
        export_dynamic_flag_spec_F77='${wl}-E'
 
14454
 
 
14455
        # hardcode_minus_L: Not really in the search PATH,
 
14456
        # but as the default location of the library.
 
14457
        hardcode_minus_L_F77=yes
 
14458
      fi
 
14459
      ;;
 
14460
 
 
14461
    hpux11*)
 
14462
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14463
        case $host_cpu in
 
14464
        hppa*64*)
14463
14465
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14464
14466
          ;;
 
14467
        ia64*)
 
14468
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14469
          ;;
14465
14470
        *)
14466
14471
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14467
14472
          ;;
14468
14473
        esac
14469
14474
      else
14470
 
        case "$host_cpu" in
14471
 
        hppa*64*|ia64*)
14472
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14475
        case $host_cpu in
 
14476
        hppa*64*)
 
14477
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14478
          ;;
 
14479
        ia64*)
 
14480
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14473
14481
          ;;
14474
14482
        *)
14475
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14483
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14476
14484
          ;;
14477
14485
        esac
14478
14486
      fi
14479
14487
      if test "$with_gnu_ld" = no; then
14480
 
        case "$host_cpu" in
14481
 
        hppa*64*)
14482
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14488
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14489
        hardcode_libdir_separator_F77=:
 
14490
 
 
14491
        case $host_cpu in
 
14492
        hppa*64*|ia64*)
14483
14493
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14484
 
          hardcode_libdir_separator_F77=:
14485
 
          hardcode_direct_F77=no
14486
 
          hardcode_shlibpath_var_F77=no
14487
 
          ;;
14488
 
        ia64*)
14489
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14490
 
          hardcode_direct_F77=no
14491
 
          hardcode_shlibpath_var_F77=no
14492
 
 
14493
 
          # hardcode_minus_L: Not really in the search PATH,
14494
 
          # but as the default location of the library.
14495
 
          hardcode_minus_L_F77=yes
 
14494
          hardcode_direct_F77=no
 
14495
          hardcode_shlibpath_var_F77=no
14496
14496
          ;;
14497
14497
        *)
14498
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14499
 
          hardcode_libdir_separator_F77=:
14500
14498
          hardcode_direct_F77=yes
14501
14499
          export_dynamic_flag_spec_F77='${wl}-E'
14502
14500
 
14544
14542
      hardcode_shlibpath_var_F77=no
14545
14543
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546
14544
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14545
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14547
14546
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14548
14547
        export_dynamic_flag_spec_F77='${wl}-E'
14549
14548
      else
14589
14588
        allow_undefined_flag_F77=' -expect_unresolved \*'
14590
14589
        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'
14591
14590
        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~
14592
 
        $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'
 
14591
        $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'
14593
14592
 
14594
14593
        # Both c and cxx compiler support -rpath directly
14595
14594
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14597
14596
      hardcode_libdir_separator_F77=:
14598
14597
      ;;
14599
14598
 
14600
 
    sco3.2v5*)
14601
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602
 
      hardcode_shlibpath_var_F77=no
14603
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14604
 
      runpath_var=LD_RUN_PATH
14605
 
      hardcode_runpath_var=yes
14606
 
      ;;
14607
 
 
14608
14599
    solaris*)
14609
14600
      no_undefined_flag_F77=' -z text'
14610
14601
      if test "$GCC" = yes; then
 
14602
        wlarc='${wl}'
14611
14603
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14612
14604
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14613
14605
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14614
14606
      else
 
14607
        wlarc=''
14615
14608
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616
14609
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14617
14610
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14620
14613
      hardcode_shlibpath_var_F77=no
14621
14614
      case $host_os in
14622
14615
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14623
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14624
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14616
      *)
 
14617
        # The compiler driver will combine linker options so we
 
14618
        # cannot just pass the convience library names through
 
14619
        # without $wl, iff we do not link with $LD.
 
14620
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14621
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14622
        case $wlarc in
 
14623
        '')
 
14624
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14625
        *)
 
14626
          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' ;;
 
14627
        esac ;;
14625
14628
      esac
14626
14629
      link_all_deplibs_F77=yes
14627
14630
      ;;
14678
14681
      fi
14679
14682
      ;;
14680
14683
 
14681
 
    sysv4.2uw2*)
14682
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14683
 
      hardcode_direct_F77=yes
14684
 
      hardcode_minus_L_F77=no
14685
 
      hardcode_shlibpath_var_F77=no
14686
 
      hardcode_runpath_var=yes
14687
 
      runpath_var=LD_RUN_PATH
14688
 
      ;;
14689
 
 
14690
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14691
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14692
 
      if test "$GCC" = yes; then
14693
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694
 
      else
14695
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14696
 
      fi
14697
 
      runpath_var='LD_RUN_PATH'
14698
 
      hardcode_shlibpath_var_F77=no
14699
 
      ;;
14700
 
 
14701
 
    sysv5*)
14702
 
      no_undefined_flag_F77=' -z text'
14703
 
      # $CC -shared without GNU ld will not create a library from C++
14704
 
      # object files and a static libstdc++, better avoid it by now
14705
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14707
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14708
 
      hardcode_libdir_flag_spec_F77=
14709
 
      hardcode_shlibpath_var_F77=no
14710
 
      runpath_var='LD_RUN_PATH'
 
14684
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14685
      no_undefined_flag_F77='${wl}-z,text'
 
14686
      archive_cmds_need_lc_F77=no
 
14687
      hardcode_shlibpath_var_F77=no
 
14688
      runpath_var='LD_RUN_PATH'
 
14689
 
 
14690
      if test "$GCC" = yes; then
 
14691
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14692
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14693
      else
 
14694
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14695
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14696
      fi
 
14697
      ;;
 
14698
 
 
14699
    sysv5* | sco3.2v5* | sco5v6*)
 
14700
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14701
      # link with -lc, and that would cause any symbols used from libc to
 
14702
      # always be unresolved, which means just about no library would
 
14703
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14704
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14705
      # as -z defs.
 
14706
      no_undefined_flag_F77='${wl}-z,text'
 
14707
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14708
      archive_cmds_need_lc_F77=no
 
14709
      hardcode_shlibpath_var_F77=no
 
14710
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14711
      hardcode_libdir_separator_F77=':'
 
14712
      link_all_deplibs_F77=yes
 
14713
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14714
      runpath_var='LD_RUN_PATH'
 
14715
 
 
14716
      if test "$GCC" = yes; then
 
14717
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14718
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14719
      else
 
14720
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14721
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14722
      fi
14711
14723
      ;;
14712
14724
 
14713
14725
    uts4*)
14726
14738
echo "${ECHO_T}$ld_shlibs_F77" >&6
14727
14739
test "$ld_shlibs_F77" = no && can_build_shared=no
14728
14740
 
14729
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14730
 
if test "$GCC" = yes; then
14731
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14732
 
fi
14733
 
 
14734
14741
#
14735
14742
# Do we need to explicitly link libc?
14736
14743
#
14763
14770
        libobjs=conftest.$ac_objext
14764
14771
        deplibs=
14765
14772
        wl=$lt_prog_compiler_wl_F77
 
14773
        pic_flag=$lt_prog_compiler_pic_F77
14766
14774
        compiler_flags=-v
14767
14775
        linker_flags=-v
14768
14776
        verstring=
14895
14903
  shlibpath_var=LIBRARY_PATH
14896
14904
  ;;
14897
14905
 
14898
 
bsdi4*)
 
14906
bsdi[45]*)
14899
14907
  version_type=linux
14900
14908
  need_version=no
14901
14909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923
14931
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14924
14932
      dldir=$destdir/`dirname \$dlpath`~
14925
14933
      test -d \$dldir || mkdir -p \$dldir~
14926
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14934
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14935
      chmod a+x \$dldir/$dlname'
14927
14936
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14928
14937
      dlpath=$dir/\$dldll~
14929
14938
       $rm \$dlpath'
14953
14962
      ;;
14954
14963
    pw32*)
14955
14964
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14956
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14965
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14957
14966
      ;;
14958
14967
    esac
14959
14968
    ;;
14976
14985
  soname_spec='${libname}${release}${major}$shared_ext'
14977
14986
  shlibpath_overrides_runpath=yes
14978
14987
  shlibpath_var=DYLD_LIBRARY_PATH
14979
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14988
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14980
14989
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14981
14990
  if test "$GCC" = yes; then
14982
14991
    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"`
15011
15020
  dynamic_linker='GNU ld.so'
15012
15021
  ;;
15013
15022
 
15014
 
freebsd*)
15015
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15023
freebsd* | dragonfly*)
 
15024
  # DragonFly does not have aout.  When/if they implement a new
 
15025
  # versioning mechanism, adjust this.
 
15026
  if test -x /usr/bin/objformat; then
 
15027
    objformat=`/usr/bin/objformat`
 
15028
  else
 
15029
    case $host_os in
 
15030
    freebsd[123]*) objformat=aout ;;
 
15031
    *) objformat=elf ;;
 
15032
    esac
 
15033
  fi
15016
15034
  version_type=freebsd-$objformat
15017
15035
  case $version_type in
15018
15036
    freebsd-elf*)
15030
15048
  freebsd2*)
15031
15049
    shlibpath_overrides_runpath=yes
15032
15050
    ;;
15033
 
  freebsd3.01* | freebsdelf3.01*)
 
15051
  freebsd3.[01]* | freebsdelf3.[01]*)
15034
15052
    shlibpath_overrides_runpath=yes
15035
15053
    hardcode_into_libs=yes
15036
15054
    ;;
15037
 
  *) # from 3.2 on
 
15055
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15056
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15038
15057
    shlibpath_overrides_runpath=no
15039
15058
    hardcode_into_libs=yes
15040
15059
    ;;
 
15060
  freebsd*) # from 4.6 on
 
15061
    shlibpath_overrides_runpath=yes
 
15062
    hardcode_into_libs=yes
 
15063
    ;;
15041
15064
  esac
15042
15065
  ;;
15043
15066
 
15057
15080
  version_type=sunos
15058
15081
  need_lib_prefix=no
15059
15082
  need_version=no
15060
 
  case "$host_cpu" in
 
15083
  case $host_cpu in
15061
15084
  ia64*)
15062
15085
    shrext_cmds='.so'
15063
15086
    hardcode_into_libs=yes
15097
15120
  postinstall_cmds='chmod 555 $lib'
15098
15121
  ;;
15099
15122
 
 
15123
interix3*)
 
15124
  version_type=linux
 
15125
  need_lib_prefix=no
 
15126
  need_version=no
 
15127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15128
  soname_spec='${libname}${release}${shared_ext}$major'
 
15129
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15130
  shlibpath_var=LD_LIBRARY_PATH
 
15131
  shlibpath_overrides_runpath=no
 
15132
  hardcode_into_libs=yes
 
15133
  ;;
 
15134
 
15100
15135
irix5* | irix6* | nonstopux*)
15101
15136
  case $host_os in
15102
15137
    nonstopux*) version_type=nonstopux ;;
15154
15189
  # before this can be enabled.
15155
15190
  hardcode_into_libs=yes
15156
15191
 
15157
 
  # find out which ABI we are using
15158
 
  libsuff=
15159
 
  case "$host_cpu" in
15160
 
  x86_64*|s390x*|powerpc64*)
15161
 
    echo '#line 15161 "configure"' > conftest.$ac_ext
15162
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163
 
  (eval $ac_compile) 2>&5
15164
 
  ac_status=$?
15165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166
 
  (exit $ac_status); }; then
15167
 
      case `/usr/bin/file conftest.$ac_objext` in
15168
 
      *64-bit*)
15169
 
        libsuff=64
15170
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15171
 
        ;;
15172
 
      esac
15173
 
    fi
15174
 
    rm -rf conftest*
15175
 
    ;;
15176
 
  esac
15177
 
 
15178
15192
  # Append ld.so.conf contents to the search path
15179
15193
  if test -f /etc/ld.so.conf; then
15180
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15181
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15194
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15195
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15182
15196
  fi
15183
15197
 
15184
15198
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15239
15253
 
15240
15254
openbsd*)
15241
15255
  version_type=sunos
 
15256
  sys_lib_dlsearch_path_spec="/usr/lib"
15242
15257
  need_lib_prefix=no
15243
 
  need_version=yes
 
15258
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15259
  case $host_os in
 
15260
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15261
    *)                         need_version=no  ;;
 
15262
  esac
15244
15263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15245
15264
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15246
15265
  shlibpath_var=LD_LIBRARY_PATH
15278
15297
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15279
15298
  ;;
15280
15299
 
15281
 
sco3.2v5*)
15282
 
  version_type=osf
15283
 
  soname_spec='${libname}${release}${shared_ext}$major'
15284
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285
 
  shlibpath_var=LD_LIBRARY_PATH
15286
 
  ;;
15287
 
 
15288
15300
solaris*)
15289
15301
  version_type=linux
15290
15302
  need_lib_prefix=no
15310
15322
  need_version=yes
15311
15323
  ;;
15312
15324
 
15313
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15325
sysv4 | sysv4.3*)
15314
15326
  version_type=linux
15315
15327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316
15328
  soname_spec='${libname}${release}${shared_ext}$major'
15343
15355
  fi
15344
15356
  ;;
15345
15357
 
 
15358
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15359
  version_type=freebsd-elf
 
15360
  need_lib_prefix=no
 
15361
  need_version=no
 
15362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15363
  soname_spec='${libname}${release}${shared_ext}$major'
 
15364
  shlibpath_var=LD_LIBRARY_PATH
 
15365
  hardcode_into_libs=yes
 
15366
  if test "$with_gnu_ld" = yes; then
 
15367
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15368
    shlibpath_overrides_runpath=no
 
15369
  else
 
15370
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15371
    shlibpath_overrides_runpath=yes
 
15372
    case $host_os in
 
15373
      sco3.2v5*)
 
15374
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15375
        ;;
 
15376
    esac
 
15377
  fi
 
15378
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15379
  ;;
 
15380
 
15346
15381
uts4*)
15347
15382
  version_type=linux
15348
15383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358
15393
echo "${ECHO_T}$dynamic_linker" >&6
15359
15394
test "$dynamic_linker" = no && can_build_shared=no
15360
15395
 
 
15396
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15397
if test "$GCC" = yes; then
 
15398
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15399
fi
 
15400
 
15361
15401
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15362
15402
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15363
15403
hardcode_action_F77=
15364
15404
if test -n "$hardcode_libdir_flag_spec_F77" || \
15365
 
   test -n "$runpath_var F77" || \
15366
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15405
   test -n "$runpath_var_F77" || \
 
15406
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15367
15407
 
15368
15408
  # We can hardcode non-existant directories.
15369
15409
  if test "$hardcode_direct_F77" != no &&
15395
15435
  enable_fast_install=needless
15396
15436
fi
15397
15437
 
15398
 
striplib=
15399
 
old_striplib=
15400
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15401
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15402
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15403
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15404
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15405
 
  echo "$as_me:$LINENO: result: yes" >&5
15406
 
echo "${ECHO_T}yes" >&6
15407
 
else
15408
 
# FIXME - insert some real tests, host_os isn't really good enough
15409
 
  case $host_os in
15410
 
   darwin*)
15411
 
       if test -n "$STRIP" ; then
15412
 
         striplib="$STRIP -x"
15413
 
         echo "$as_me:$LINENO: result: yes" >&5
15414
 
echo "${ECHO_T}yes" >&6
15415
 
       else
15416
 
  echo "$as_me:$LINENO: result: no" >&5
15417
 
echo "${ECHO_T}no" >&6
15418
 
fi
15419
 
       ;;
15420
 
   *)
15421
 
  echo "$as_me:$LINENO: result: no" >&5
15422
 
echo "${ECHO_T}no" >&6
15423
 
    ;;
15424
 
  esac
15425
 
fi
15426
 
 
15427
 
 
15428
15438
 
15429
15439
# The else clause should only fire when bootstrapping the
15430
15440
# libtool distribution, otherwise you forgot to ship ltmain.sh
15439
15449
  # Now quote all the things that may contain metacharacters while being
15440
15450
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15441
15451
  # variables and quote the copies for generation of the libtool script.
15442
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15452
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15443
15453
    SED SHELL STRIP \
15444
15454
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15445
15455
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15540
15550
# The host system.
15541
15551
host_alias=$host_alias
15542
15552
host=$host
 
15553
host_os=$host_os
 
15554
 
 
15555
# The build system.
 
15556
build_alias=$build_alias
 
15557
build=$build
 
15558
build_os=$build_os
15543
15559
 
15544
15560
# An echo program that does not interpret backslashes.
15545
15561
echo=$lt_echo
15551
15567
# A C compiler.
15552
15568
LTCC=$lt_LTCC
15553
15569
 
 
15570
# LTCC compiler flags.
 
15571
LTCFLAGS=$lt_LTCFLAGS
 
15572
 
15554
15573
# A language-specific compiler.
15555
15574
CC=$lt_compiler_F77
15556
15575
 
15616
15635
# Does compiler simultaneously support -c and -o options?
15617
15636
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15618
15637
 
15619
 
# Must we lock files when doing compilation ?
 
15638
# Must we lock files when doing compilation?
15620
15639
need_locks=$lt_need_locks
15621
15640
 
15622
15641
# Do we need the lib prefix for modules?
15854
15873
lt_simple_compile_test_code="class foo {}\n"
15855
15874
 
15856
15875
# Code to be used in simple link tests
15857
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15876
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15858
15877
 
15859
15878
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15860
15879
 
15861
15880
# If no C compiler was specified, use CC.
15862
15881
LTCC=${LTCC-"$CC"}
15863
15882
 
 
15883
# If no C compiler flags were specified, use CFLAGS.
 
15884
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15885
 
15864
15886
# Allow CC to be a program name with arguments.
15865
15887
compiler=$CC
15866
15888
 
15867
15889
 
 
15890
# save warnings/boilerplate of simple test code
 
15891
ac_outfile=conftest.$ac_objext
 
15892
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15893
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15894
_lt_compiler_boilerplate=`cat conftest.err`
 
15895
$rm conftest*
 
15896
 
 
15897
ac_outfile=conftest.$ac_objext
 
15898
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15899
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15900
_lt_linker_boilerplate=`cat conftest.err`
 
15901
$rm conftest*
 
15902
 
 
15903
 
15868
15904
# Allow CC to be a program name with arguments.
15869
15905
lt_save_CC="$CC"
15870
15906
CC=${GCJ-"gcj"}
15871
15907
compiler=$CC
15872
15908
compiler_GCJ=$CC
 
15909
for cc_temp in $compiler""; do
 
15910
  case $cc_temp in
 
15911
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15912
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15913
    \-*) ;;
 
15914
    *) break;;
 
15915
  esac
 
15916
done
 
15917
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15918
 
15873
15919
 
15874
15920
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15875
15921
archive_cmds_need_lc_GCJ=no
15876
15922
 
 
15923
old_archive_cmds_GCJ=$old_archive_cmds
 
15924
 
15877
15925
 
15878
15926
lt_prog_compiler_no_builtin_flag_GCJ=
15879
15927
 
15896
15944
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15897
15945
   # The option is referenced via a variable to avoid confusing sed.
15898
15946
   lt_compile=`echo "$ac_compile" | $SED \
15899
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15947
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15900
15948
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15901
15949
   -e 's:$: $lt_compiler_flag:'`
15902
 
   (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
 
15950
   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
15903
15951
   (eval "$lt_compile" 2>conftest.err)
15904
15952
   ac_status=$?
15905
15953
   cat conftest.err >&5
15906
 
   echo "$as_me:15906: \$? = $ac_status" >&5
 
15954
   echo "$as_me:15954: \$? = $ac_status" >&5
15907
15955
   if (exit $ac_status) && test -s "$ac_outfile"; then
15908
15956
     # The compiler can only warn and ignore the option if not recognized
15909
 
     # So say no if there are warnings
15910
 
     if test ! -s conftest.err; then
 
15957
     # So say no if there are warnings other than the usual output.
 
15958
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15959
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15960
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15911
15961
       lt_cv_prog_compiler_rtti_exceptions=yes
15912
15962
     fi
15913
15963
   fi
15968
16018
      lt_prog_compiler_pic_GCJ='-fno-common'
15969
16019
      ;;
15970
16020
 
 
16021
    interix3*)
 
16022
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16023
      # Instead, we relocate shared libraries at runtime.
 
16024
      ;;
 
16025
 
15971
16026
    msdosdjgpp*)
15972
16027
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15973
16028
      # on systems that don't support them.
15984
16039
    hpux*)
15985
16040
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15986
16041
      # not for PA HP-UX.
15987
 
      case "$host_cpu" in
 
16042
      case $host_cpu in
15988
16043
      hppa*64*|ia64*)
15989
16044
        # +Z the default
15990
16045
        ;;
16010
16065
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16011
16066
      fi
16012
16067
      ;;
 
16068
      darwin*)
 
16069
        # PIC is the default on this platform
 
16070
        # Common symbols not allowed in MH_DYLIB files
 
16071
       case $cc_basename in
 
16072
         xlc*)
 
16073
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16074
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16075
         ;;
 
16076
       esac
 
16077
       ;;
16013
16078
 
16014
16079
    mingw* | pw32* | os2*)
16015
16080
      # This hack is so that the source file can tell whether it is being
16021
16086
      lt_prog_compiler_wl_GCJ='-Wl,'
16022
16087
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16023
16088
      # not for PA HP-UX.
16024
 
      case "$host_cpu" in
 
16089
      case $host_cpu in
16025
16090
      hppa*64*|ia64*)
16026
16091
        # +Z the default
16027
16092
        ;;
16045
16110
      ;;
16046
16111
 
16047
16112
    linux*)
16048
 
      case $CC in
 
16113
      case $cc_basename in
16049
16114
      icc* | ecc*)
16050
16115
        lt_prog_compiler_wl_GCJ='-Wl,'
16051
16116
        lt_prog_compiler_pic_GCJ='-KPIC'
16052
16117
        lt_prog_compiler_static_GCJ='-static'
16053
16118
        ;;
 
16119
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16120
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16121
        # which looks to be a dead project)
 
16122
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16123
        lt_prog_compiler_pic_GCJ='-fpic'
 
16124
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16125
        ;;
16054
16126
      ccc*)
16055
16127
        lt_prog_compiler_wl_GCJ='-Wl,'
16056
16128
        # All Alpha code is PIC.
16065
16137
      lt_prog_compiler_static_GCJ='-non_shared'
16066
16138
      ;;
16067
16139
 
16068
 
    sco3.2v5*)
16069
 
      lt_prog_compiler_pic_GCJ='-Kpic'
16070
 
      lt_prog_compiler_static_GCJ='-dn'
16071
 
      ;;
16072
 
 
16073
16140
    solaris*)
16074
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16075
16141
      lt_prog_compiler_pic_GCJ='-KPIC'
16076
16142
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16143
      case $cc_basename in
 
16144
      f77* | f90* | f95*)
 
16145
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16146
      *)
 
16147
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16148
      esac
16077
16149
      ;;
16078
16150
 
16079
16151
    sunos4*)
16082
16154
      lt_prog_compiler_static_GCJ='-Bstatic'
16083
16155
      ;;
16084
16156
 
16085
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16157
    sysv4 | sysv4.2uw2* | sysv4.3*)
16086
16158
      lt_prog_compiler_wl_GCJ='-Wl,'
16087
16159
      lt_prog_compiler_pic_GCJ='-KPIC'
16088
16160
      lt_prog_compiler_static_GCJ='-Bstatic'
16095
16167
      fi
16096
16168
      ;;
16097
16169
 
 
16170
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16171
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16172
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16173
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16174
      ;;
 
16175
 
 
16176
    unicos*)
 
16177
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16178
      lt_prog_compiler_can_build_shared_GCJ=no
 
16179
      ;;
 
16180
 
16098
16181
    uts4*)
16099
16182
      lt_prog_compiler_pic_GCJ='-pic'
16100
16183
      lt_prog_compiler_static_GCJ='-Bstatic'
16129
16212
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16130
16213
   # The option is referenced via a variable to avoid confusing sed.
16131
16214
   lt_compile=`echo "$ac_compile" | $SED \
16132
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16215
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16133
16216
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16134
16217
   -e 's:$: $lt_compiler_flag:'`
16135
 
   (eval echo "\"\$as_me:16135: $lt_compile\"" >&5)
 
16218
   (eval echo "\"\$as_me:16218: $lt_compile\"" >&5)
16136
16219
   (eval "$lt_compile" 2>conftest.err)
16137
16220
   ac_status=$?
16138
16221
   cat conftest.err >&5
16139
 
   echo "$as_me:16139: \$? = $ac_status" >&5
 
16222
   echo "$as_me:16222: \$? = $ac_status" >&5
16140
16223
   if (exit $ac_status) && test -s "$ac_outfile"; then
16141
16224
     # The compiler can only warn and ignore the option if not recognized
16142
 
     # So say no if there are warnings
16143
 
     if test ! -s conftest.err; then
 
16225
     # So say no if there are warnings other than the usual output.
 
16226
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16227
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16228
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16144
16229
       lt_prog_compiler_pic_works_GCJ=yes
16145
16230
     fi
16146
16231
   fi
16161
16246
fi
16162
16247
 
16163
16248
fi
16164
 
case "$host_os" in
 
16249
case $host_os in
16165
16250
  # For platforms which do not support PIC, -DPIC is meaningless:
16166
16251
  *djgpp*)
16167
16252
    lt_prog_compiler_pic_GCJ=
16171
16256
    ;;
16172
16257
esac
16173
16258
 
 
16259
#
 
16260
# Check to make sure the static flag actually works.
 
16261
#
 
16262
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16263
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16264
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
16265
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16267
else
 
16268
  lt_prog_compiler_static_works_GCJ=no
 
16269
   save_LDFLAGS="$LDFLAGS"
 
16270
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16271
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16272
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16273
     # The linker can only warn and ignore the option if not recognized
 
16274
     # So say no if there are warnings
 
16275
     if test -s conftest.err; then
 
16276
       # Append any errors to the config.log.
 
16277
       cat conftest.err 1>&5
 
16278
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16279
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16280
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16281
         lt_prog_compiler_static_works_GCJ=yes
 
16282
       fi
 
16283
     else
 
16284
       lt_prog_compiler_static_works_GCJ=yes
 
16285
     fi
 
16286
   fi
 
16287
   $rm conftest*
 
16288
   LDFLAGS="$save_LDFLAGS"
 
16289
 
 
16290
fi
 
16291
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16292
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
16293
 
 
16294
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16295
    :
 
16296
else
 
16297
    lt_prog_compiler_static_GCJ=
 
16298
fi
 
16299
 
 
16300
 
16174
16301
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16175
16302
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16176
16303
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16189
16316
   # Note that $ac_compile itself does not contain backslashes and begins
16190
16317
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16191
16318
   lt_compile=`echo "$ac_compile" | $SED \
16192
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16319
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16193
16320
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16194
16321
   -e 's:$: $lt_compiler_flag:'`
16195
 
   (eval echo "\"\$as_me:16195: $lt_compile\"" >&5)
 
16322
   (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
16196
16323
   (eval "$lt_compile" 2>out/conftest.err)
16197
16324
   ac_status=$?
16198
16325
   cat out/conftest.err >&5
16199
 
   echo "$as_me:16199: \$? = $ac_status" >&5
 
16326
   echo "$as_me:16326: \$? = $ac_status" >&5
16200
16327
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16201
16328
   then
16202
16329
     # The compiler can only warn and ignore the option if not recognized
16203
16330
     # So say no if there are warnings
16204
 
     if test ! -s out/conftest.err; then
 
16331
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16332
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16333
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16205
16334
       lt_cv_prog_compiler_c_o_GCJ=yes
16206
16335
     fi
16207
16336
   fi
16208
 
   chmod u+w .
 
16337
   chmod u+w . 2>&5
16209
16338
   $rm conftest*
16210
16339
   # SGI C++ compiler will create directory out/ii_files/ for
16211
16340
   # template instantiation
16281
16410
  # rely on this symbol name, it's probably fine to never include it in
16282
16411
  # preloaded symbol tables.
16283
16412
  extract_expsyms_cmds=
 
16413
  # Just being paranoid about ensuring that cc_basename is set.
 
16414
  for cc_temp in $compiler""; do
 
16415
  case $cc_temp in
 
16416
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16417
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16418
    \-*) ;;
 
16419
    *) break;;
 
16420
  esac
 
16421
done
 
16422
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16284
16423
 
16285
16424
  case $host_os in
16286
16425
  cygwin* | mingw* | pw32*)
16291
16430
      with_gnu_ld=no
16292
16431
    fi
16293
16432
    ;;
 
16433
  interix*)
 
16434
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16435
    with_gnu_ld=yes
 
16436
    ;;
16294
16437
  openbsd*)
16295
16438
    with_gnu_ld=no
16296
16439
    ;;
16301
16444
    # If archive_cmds runs LD, not CC, wlarc should be empty
16302
16445
    wlarc='${wl}'
16303
16446
 
 
16447
    # Set some defaults for GNU ld with shared library support. These
 
16448
    # are reset later if shared libraries are not supported. Putting them
 
16449
    # here allows them to be overridden if necessary.
 
16450
    runpath_var=LD_RUN_PATH
 
16451
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16452
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16453
    # ancient GNU ld didn't support --whole-archive et. al.
 
16454
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16455
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16456
      else
 
16457
        whole_archive_flag_spec_GCJ=
 
16458
    fi
 
16459
    supports_anon_versioning=no
 
16460
    case `$LD -v 2>/dev/null` in
 
16461
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16462
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16463
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16464
      *\ 2.11.*) ;; # other 2.11 versions
 
16465
      *) supports_anon_versioning=yes ;;
 
16466
    esac
 
16467
 
16304
16468
    # See if GNU ld supports shared libraries.
16305
16469
    case $host_os in
16306
16470
    aix3* | aix4* | aix5*)
16351
16515
      allow_undefined_flag_GCJ=unsupported
16352
16516
      always_export_symbols_GCJ=no
16353
16517
      enable_shared_with_static_runtimes_GCJ=yes
16354
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16518
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16355
16519
 
16356
16520
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16357
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16521
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16358
16522
        # If the export-symbols file already is a .def file (1st line
16359
16523
        # is EXPORTS), use it as is; otherwise, prepend...
16360
16524
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16363
16527
          echo EXPORTS > $output_objdir/$soname.def;
16364
16528
          cat $export_symbols >> $output_objdir/$soname.def;
16365
16529
        fi~
16366
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16367
 
      else
16368
 
        ld_shlibs=no
 
16530
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16531
      else
 
16532
        ld_shlibs_GCJ=no
 
16533
      fi
 
16534
      ;;
 
16535
 
 
16536
    interix3*)
 
16537
      hardcode_direct_GCJ=no
 
16538
      hardcode_shlibpath_var_GCJ=no
 
16539
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16540
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16541
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16542
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16543
      # default) and relocated if they conflict, which is a slow very memory
 
16544
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16545
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16546
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16547
      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'
 
16548
      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'
 
16549
      ;;
 
16550
 
 
16551
    linux*)
 
16552
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16553
        tmp_addflag=
 
16554
        case $cc_basename,$host_cpu in
 
16555
        pgcc*)                          # Portland Group C compiler
 
16556
          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'
 
16557
          tmp_addflag=' $pic_flag'
 
16558
          ;;
 
16559
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16560
          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'
 
16561
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16562
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16563
          tmp_addflag=' -i_dynamic' ;;
 
16564
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16565
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16566
        ifc* | ifort*)                  # Intel Fortran compiler
 
16567
          tmp_addflag=' -nofor_main' ;;
 
16568
        esac
 
16569
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16570
 
 
16571
        if test $supports_anon_versioning = yes; then
 
16572
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16573
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16574
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16575
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16576
        fi
 
16577
      else
 
16578
        ld_shlibs_GCJ=no
16369
16579
      fi
16370
16580
      ;;
16371
16581
 
16379
16589
      fi
16380
16590
      ;;
16381
16591
 
16382
 
    solaris* | sysv5*)
 
16592
    solaris*)
16383
16593
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16384
16594
        ld_shlibs_GCJ=no
16385
16595
        cat <<EOF 1>&2
16400
16610
      fi
16401
16611
      ;;
16402
16612
 
 
16613
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16614
      case `$LD -v 2>&1` in
 
16615
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16616
        ld_shlibs_GCJ=no
 
16617
        cat <<_LT_EOF 1>&2
 
16618
 
 
16619
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16620
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16621
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16622
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16623
*** your PATH or compiler configuration so that the native linker is
 
16624
*** used, and then restart.
 
16625
 
 
16626
_LT_EOF
 
16627
        ;;
 
16628
        *)
 
16629
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16630
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16631
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16632
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16633
          else
 
16634
            ld_shlibs_GCJ=no
 
16635
          fi
 
16636
        ;;
 
16637
      esac
 
16638
      ;;
 
16639
 
16403
16640
    sunos4*)
16404
16641
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16405
16642
      wlarc=
16407
16644
      hardcode_shlibpath_var_GCJ=no
16408
16645
      ;;
16409
16646
 
16410
 
  linux*)
16411
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16412
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16414
 
      supports_anon_versioning=no
16415
 
      case `$LD -v 2>/dev/null` in
16416
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16417
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16418
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16419
 
        *\ 2.11.*) ;; # other 2.11 versions
16420
 
        *) supports_anon_versioning=yes ;;
16421
 
      esac
16422
 
      if test $supports_anon_versioning = yes; then
16423
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16424
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16425
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16426
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16427
 
      else
16428
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16429
 
      fi
16430
 
    else
16431
 
      ld_shlibs_GCJ=no
16432
 
    fi
16433
 
    ;;
16434
 
 
16435
16647
    *)
16436
16648
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16437
16649
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442
16654
      ;;
16443
16655
    esac
16444
16656
 
16445
 
    if test "$ld_shlibs_GCJ" = yes; then
16446
 
      runpath_var=LD_RUN_PATH
16447
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16448
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16449
 
      # ancient GNU ld didn't support --whole-archive et. al.
16450
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16451
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16452
 
      else
16453
 
        whole_archive_flag_spec_GCJ=
16454
 
      fi
 
16657
    if test "$ld_shlibs_GCJ" = no; then
 
16658
      runpath_var=
 
16659
      hardcode_libdir_flag_spec_GCJ=
 
16660
      export_dynamic_flag_spec_GCJ=
 
16661
      whole_archive_flag_spec_GCJ=
16455
16662
    fi
16456
16663
  else
16457
16664
    # PORTME fill in a description of your system's linker (not GNU ld)
16463
16670
      # Note: this linker hardcodes the directories in LIBPATH if there
16464
16671
      # are no directories specified by -L.
16465
16672
      hardcode_minus_L_GCJ=yes
16466
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16673
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16467
16674
        # Neither direct hardcoding nor static linking is supported with a
16468
16675
        # broken collect2.
16469
16676
        hardcode_direct_GCJ=unsupported
16497
16704
            break
16498
16705
          fi
16499
16706
          done
 
16707
          ;;
16500
16708
        esac
16501
16709
 
16502
16710
        exp_sym_flag='-bexport'
16515
16723
      link_all_deplibs_GCJ=yes
16516
16724
 
16517
16725
      if test "$GCC" = yes; then
16518
 
        case $host_os in aix4.012|aix4.012.*)
 
16726
        case $host_os in aix4.[012]|aix4.[012].*)
16519
16727
        # We only want to do this on AIX 4.2 and lower, the check
16520
16728
        # below for broken collect2 doesn't work under 4.3+
16521
16729
          collect2name=`${CC} -print-prog-name=collect2`
16534
16742
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16535
16743
          hardcode_libdir_separator_GCJ=
16536
16744
          fi
 
16745
          ;;
16537
16746
        esac
16538
16747
        shared_flag='-shared'
 
16748
        if test "$aix_use_runtimelinking" = yes; then
 
16749
          shared_flag="$shared_flag "'${wl}-G'
 
16750
        fi
16539
16751
      else
16540
16752
        # not using gcc
16541
16753
        if test "$host_cpu" = ia64; then
16543
16755
        # chokes on -Wl,-G. The following line is correct:
16544
16756
          shared_flag='-G'
16545
16757
        else
16546
 
        if test "$aix_use_runtimelinking" = yes; then
 
16758
          if test "$aix_use_runtimelinking" = yes; then
16547
16759
            shared_flag='${wl}-G'
16548
16760
          else
16549
16761
            shared_flag='${wl}-bM:SRE'
16550
 
        fi
 
16762
          fi
16551
16763
        fi
16552
16764
      fi
16553
16765
 
16612
16824
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16613
16825
 
16614
16826
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16615
 
        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"
 
16827
        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"
16616
16828
       else
16617
16829
        if test "$host_cpu" = ia64; then
16618
16830
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16619
16831
          allow_undefined_flag_GCJ="-z nodefs"
16620
 
          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"
 
16832
          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"
16621
16833
        else
16622
16834
         # Determine the default libpath from the value encoded in an empty executable.
16623
16835
         cat >conftest.$ac_ext <<_ACEOF
16677
16889
          # -berok will link without error, but may produce a broken library.
16678
16890
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16679
16891
          allow_undefined_flag_GCJ=' ${wl}-berok'
16680
 
          # -bexpall does not export symbols beginning with underscore (_)
16681
 
          always_export_symbols_GCJ=yes
16682
16892
          # Exported symbols can be pulled into shared objects from archives
16683
 
          whole_archive_flag_spec_GCJ=' '
 
16893
          whole_archive_flag_spec_GCJ='$convenience'
16684
16894
          archive_cmds_need_lc_GCJ=yes
16685
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16686
 
          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'
 
16895
          # This is similar to how AIX traditionally builds its shared libraries.
 
16896
          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'
16687
16897
        fi
16688
16898
      fi
16689
16899
      ;;
16696
16906
      ld_shlibs_GCJ=no
16697
16907
      ;;
16698
16908
 
16699
 
    bsdi4*)
 
16909
    bsdi[45]*)
16700
16910
      export_dynamic_flag_spec_GCJ=-rdynamic
16701
16911
      ;;
16702
16912
 
16717
16927
      old_archive_From_new_cmds_GCJ='true'
16718
16928
      # FIXME: Should let the user specify the lib program.
16719
16929
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16720
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16930
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16721
16931
      enable_shared_with_static_runtimes_GCJ=yes
16722
16932
      ;;
16723
16933
 
16724
16934
    darwin* | rhapsody*)
16725
 
    if test "$GXX" = yes ; then
 
16935
      case $host_os in
 
16936
        rhapsody* | darwin1.[012])
 
16937
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16938
         ;;
 
16939
       *) # Darwin 1.3 on
 
16940
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16941
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16942
         else
 
16943
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16944
             10.[012])
 
16945
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16946
               ;;
 
16947
             10.*)
 
16948
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16949
               ;;
 
16950
           esac
 
16951
         fi
 
16952
         ;;
 
16953
      esac
16726
16954
      archive_cmds_need_lc_GCJ=no
16727
 
      case "$host_os" in
16728
 
      rhapsody* | darwin1.[012])
16729
 
        allow_undefined_flag_GCJ='-undefined suppress'
16730
 
        ;;
16731
 
      *) # Darwin 1.3 on
16732
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16733
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16734
 
      else
16735
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16736
 
          10.[012])
16737
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16738
 
            ;;
16739
 
          10.*)
16740
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16741
 
            ;;
16742
 
        esac
16743
 
      fi
16744
 
        ;;
16745
 
      esac
16746
 
        lt_int_apple_cc_single_mod=no
16747
 
        output_verbose_link_cmd='echo'
16748
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16749
 
          lt_int_apple_cc_single_mod=yes
16750
 
        fi
16751
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16752
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16753
 
        else
16754
 
        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'
16755
 
      fi
16756
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16757
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16758
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16759
 
          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}'
16760
 
        else
16761
 
          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}'
16762
 
        fi
16763
 
          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}'
16764
16955
      hardcode_direct_GCJ=no
16765
16956
      hardcode_automatic_GCJ=yes
16766
16957
      hardcode_shlibpath_var_GCJ=unsupported
16767
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16958
      whole_archive_flag_spec_GCJ=''
16768
16959
      link_all_deplibs_GCJ=yes
 
16960
    if test "$GCC" = yes ; then
 
16961
        output_verbose_link_cmd='echo'
 
16962
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16963
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16964
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16965
      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}'
 
16966
      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}'
16769
16967
    else
16770
 
      ld_shlibs_GCJ=no
 
16968
      case $cc_basename in
 
16969
        xlc*)
 
16970
         output_verbose_link_cmd='echo'
 
16971
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16972
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16973
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16974
         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}'
 
16975
          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}'
 
16976
          ;;
 
16977
       *)
 
16978
         ld_shlibs_GCJ=no
 
16979
          ;;
 
16980
      esac
16771
16981
    fi
16772
16982
      ;;
16773
16983
 
16801
17011
      ;;
16802
17012
 
16803
17013
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16804
 
    freebsd* | kfreebsd*-gnu)
 
17014
    freebsd* | kfreebsd*-gnu | dragonfly*)
16805
17015
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16806
17016
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16807
17017
      hardcode_direct_GCJ=yes
16824
17034
      export_dynamic_flag_spec_GCJ='${wl}-E'
16825
17035
      ;;
16826
17036
 
16827
 
    hpux10* | hpux11*)
16828
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16829
 
        case "$host_cpu" in
16830
 
        hppa*64*|ia64*)
 
17037
    hpux10*)
 
17038
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17039
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17040
      else
 
17041
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17042
      fi
 
17043
      if test "$with_gnu_ld" = no; then
 
17044
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17045
        hardcode_libdir_separator_GCJ=:
 
17046
 
 
17047
        hardcode_direct_GCJ=yes
 
17048
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17049
 
 
17050
        # hardcode_minus_L: Not really in the search PATH,
 
17051
        # but as the default location of the library.
 
17052
        hardcode_minus_L_GCJ=yes
 
17053
      fi
 
17054
      ;;
 
17055
 
 
17056
    hpux11*)
 
17057
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17058
        case $host_cpu in
 
17059
        hppa*64*)
16831
17060
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16832
17061
          ;;
 
17062
        ia64*)
 
17063
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17064
          ;;
16833
17065
        *)
16834
17066
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16835
17067
          ;;
16836
17068
        esac
16837
17069
      else
16838
 
        case "$host_cpu" in
16839
 
        hppa*64*|ia64*)
16840
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17070
        case $host_cpu in
 
17071
        hppa*64*)
 
17072
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17073
          ;;
 
17074
        ia64*)
 
17075
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16841
17076
          ;;
16842
17077
        *)
16843
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17078
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16844
17079
          ;;
16845
17080
        esac
16846
17081
      fi
16847
17082
      if test "$with_gnu_ld" = no; then
16848
 
        case "$host_cpu" in
16849
 
        hppa*64*)
16850
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17083
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17084
        hardcode_libdir_separator_GCJ=:
 
17085
 
 
17086
        case $host_cpu in
 
17087
        hppa*64*|ia64*)
16851
17088
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16852
 
          hardcode_libdir_separator_GCJ=:
16853
 
          hardcode_direct_GCJ=no
16854
 
          hardcode_shlibpath_var_GCJ=no
16855
 
          ;;
16856
 
        ia64*)
16857
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16858
 
          hardcode_direct_GCJ=no
16859
 
          hardcode_shlibpath_var_GCJ=no
16860
 
 
16861
 
          # hardcode_minus_L: Not really in the search PATH,
16862
 
          # but as the default location of the library.
16863
 
          hardcode_minus_L_GCJ=yes
 
17089
          hardcode_direct_GCJ=no
 
17090
          hardcode_shlibpath_var_GCJ=no
16864
17091
          ;;
16865
17092
        *)
16866
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16867
 
          hardcode_libdir_separator_GCJ=:
16868
17093
          hardcode_direct_GCJ=yes
16869
17094
          export_dynamic_flag_spec_GCJ='${wl}-E'
16870
17095
 
16912
17137
      hardcode_shlibpath_var_GCJ=no
16913
17138
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16914
17139
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17140
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16915
17141
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16916
17142
        export_dynamic_flag_spec_GCJ='${wl}-E'
16917
17143
      else
16957
17183
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16958
17184
        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'
16959
17185
        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~
16960
 
        $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'
 
17186
        $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'
16961
17187
 
16962
17188
        # Both c and cxx compiler support -rpath directly
16963
17189
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16965
17191
      hardcode_libdir_separator_GCJ=:
16966
17192
      ;;
16967
17193
 
16968
 
    sco3.2v5*)
16969
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970
 
      hardcode_shlibpath_var_GCJ=no
16971
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16972
 
      runpath_var=LD_RUN_PATH
16973
 
      hardcode_runpath_var=yes
16974
 
      ;;
16975
 
 
16976
17194
    solaris*)
16977
17195
      no_undefined_flag_GCJ=' -z text'
16978
17196
      if test "$GCC" = yes; then
 
17197
        wlarc='${wl}'
16979
17198
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980
17199
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16981
17200
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16982
17201
      else
 
17202
        wlarc=''
16983
17203
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984
17204
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16985
17205
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16988
17208
      hardcode_shlibpath_var_GCJ=no
16989
17209
      case $host_os in
16990
17210
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16991
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16992
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17211
      *)
 
17212
        # The compiler driver will combine linker options so we
 
17213
        # cannot just pass the convience library names through
 
17214
        # without $wl, iff we do not link with $LD.
 
17215
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17216
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17217
        case $wlarc in
 
17218
        '')
 
17219
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17220
        *)
 
17221
          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' ;;
 
17222
        esac ;;
16993
17223
      esac
16994
17224
      link_all_deplibs_GCJ=yes
16995
17225
      ;;
17046
17276
      fi
17047
17277
      ;;
17048
17278
 
17049
 
    sysv4.2uw2*)
17050
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17051
 
      hardcode_direct_GCJ=yes
17052
 
      hardcode_minus_L_GCJ=no
17053
 
      hardcode_shlibpath_var_GCJ=no
17054
 
      hardcode_runpath_var=yes
17055
 
      runpath_var=LD_RUN_PATH
17056
 
      ;;
17057
 
 
17058
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17059
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17060
 
      if test "$GCC" = yes; then
17061
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17062
 
      else
17063
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064
 
      fi
17065
 
      runpath_var='LD_RUN_PATH'
17066
 
      hardcode_shlibpath_var_GCJ=no
17067
 
      ;;
17068
 
 
17069
 
    sysv5*)
17070
 
      no_undefined_flag_GCJ=' -z text'
17071
 
      # $CC -shared without GNU ld will not create a library from C++
17072
 
      # object files and a static libstdc++, better avoid it by now
17073
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17075
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17076
 
      hardcode_libdir_flag_spec_GCJ=
17077
 
      hardcode_shlibpath_var_GCJ=no
17078
 
      runpath_var='LD_RUN_PATH'
 
17279
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17280
      no_undefined_flag_GCJ='${wl}-z,text'
 
17281
      archive_cmds_need_lc_GCJ=no
 
17282
      hardcode_shlibpath_var_GCJ=no
 
17283
      runpath_var='LD_RUN_PATH'
 
17284
 
 
17285
      if test "$GCC" = yes; then
 
17286
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17287
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17288
      else
 
17289
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17290
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17291
      fi
 
17292
      ;;
 
17293
 
 
17294
    sysv5* | sco3.2v5* | sco5v6*)
 
17295
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17296
      # link with -lc, and that would cause any symbols used from libc to
 
17297
      # always be unresolved, which means just about no library would
 
17298
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17299
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17300
      # as -z defs.
 
17301
      no_undefined_flag_GCJ='${wl}-z,text'
 
17302
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17303
      archive_cmds_need_lc_GCJ=no
 
17304
      hardcode_shlibpath_var_GCJ=no
 
17305
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17306
      hardcode_libdir_separator_GCJ=':'
 
17307
      link_all_deplibs_GCJ=yes
 
17308
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17309
      runpath_var='LD_RUN_PATH'
 
17310
 
 
17311
      if test "$GCC" = yes; then
 
17312
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17313
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17314
      else
 
17315
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17316
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17317
      fi
17079
17318
      ;;
17080
17319
 
17081
17320
    uts4*)
17094
17333
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17095
17334
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17096
17335
 
17097
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17098
 
if test "$GCC" = yes; then
17099
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17100
 
fi
17101
 
 
17102
17336
#
17103
17337
# Do we need to explicitly link libc?
17104
17338
#
17131
17365
        libobjs=conftest.$ac_objext
17132
17366
        deplibs=
17133
17367
        wl=$lt_prog_compiler_wl_GCJ
 
17368
        pic_flag=$lt_prog_compiler_pic_GCJ
17134
17369
        compiler_flags=-v
17135
17370
        linker_flags=-v
17136
17371
        verstring=
17263
17498
  shlibpath_var=LIBRARY_PATH
17264
17499
  ;;
17265
17500
 
17266
 
bsdi4*)
 
17501
bsdi[45]*)
17267
17502
  version_type=linux
17268
17503
  need_version=no
17269
17504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291
17526
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17292
17527
      dldir=$destdir/`dirname \$dlpath`~
17293
17528
      test -d \$dldir || mkdir -p \$dldir~
17294
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17529
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17530
      chmod a+x \$dldir/$dlname'
17295
17531
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17296
17532
      dlpath=$dir/\$dldll~
17297
17533
       $rm \$dlpath'
17321
17557
      ;;
17322
17558
    pw32*)
17323
17559
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17324
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17560
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17325
17561
      ;;
17326
17562
    esac
17327
17563
    ;;
17344
17580
  soname_spec='${libname}${release}${major}$shared_ext'
17345
17581
  shlibpath_overrides_runpath=yes
17346
17582
  shlibpath_var=DYLD_LIBRARY_PATH
17347
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17583
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17348
17584
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17349
17585
  if test "$GCC" = yes; then
17350
17586
    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"`
17379
17615
  dynamic_linker='GNU ld.so'
17380
17616
  ;;
17381
17617
 
17382
 
freebsd*)
17383
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17618
freebsd* | dragonfly*)
 
17619
  # DragonFly does not have aout.  When/if they implement a new
 
17620
  # versioning mechanism, adjust this.
 
17621
  if test -x /usr/bin/objformat; then
 
17622
    objformat=`/usr/bin/objformat`
 
17623
  else
 
17624
    case $host_os in
 
17625
    freebsd[123]*) objformat=aout ;;
 
17626
    *) objformat=elf ;;
 
17627
    esac
 
17628
  fi
17384
17629
  version_type=freebsd-$objformat
17385
17630
  case $version_type in
17386
17631
    freebsd-elf*)
17398
17643
  freebsd2*)
17399
17644
    shlibpath_overrides_runpath=yes
17400
17645
    ;;
17401
 
  freebsd3.01* | freebsdelf3.01*)
 
17646
  freebsd3.[01]* | freebsdelf3.[01]*)
17402
17647
    shlibpath_overrides_runpath=yes
17403
17648
    hardcode_into_libs=yes
17404
17649
    ;;
17405
 
  *) # from 3.2 on
 
17650
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17651
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17406
17652
    shlibpath_overrides_runpath=no
17407
17653
    hardcode_into_libs=yes
17408
17654
    ;;
 
17655
  freebsd*) # from 4.6 on
 
17656
    shlibpath_overrides_runpath=yes
 
17657
    hardcode_into_libs=yes
 
17658
    ;;
17409
17659
  esac
17410
17660
  ;;
17411
17661
 
17425
17675
  version_type=sunos
17426
17676
  need_lib_prefix=no
17427
17677
  need_version=no
17428
 
  case "$host_cpu" in
 
17678
  case $host_cpu in
17429
17679
  ia64*)
17430
17680
    shrext_cmds='.so'
17431
17681
    hardcode_into_libs=yes
17465
17715
  postinstall_cmds='chmod 555 $lib'
17466
17716
  ;;
17467
17717
 
 
17718
interix3*)
 
17719
  version_type=linux
 
17720
  need_lib_prefix=no
 
17721
  need_version=no
 
17722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17723
  soname_spec='${libname}${release}${shared_ext}$major'
 
17724
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17725
  shlibpath_var=LD_LIBRARY_PATH
 
17726
  shlibpath_overrides_runpath=no
 
17727
  hardcode_into_libs=yes
 
17728
  ;;
 
17729
 
17468
17730
irix5* | irix6* | nonstopux*)
17469
17731
  case $host_os in
17470
17732
    nonstopux*) version_type=nonstopux ;;
17522
17784
  # before this can be enabled.
17523
17785
  hardcode_into_libs=yes
17524
17786
 
17525
 
  # find out which ABI we are using
17526
 
  libsuff=
17527
 
  case "$host_cpu" in
17528
 
  x86_64*|s390x*|powerpc64*)
17529
 
    echo '#line 17529 "configure"' > conftest.$ac_ext
17530
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531
 
  (eval $ac_compile) 2>&5
17532
 
  ac_status=$?
17533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534
 
  (exit $ac_status); }; then
17535
 
      case `/usr/bin/file conftest.$ac_objext` in
17536
 
      *64-bit*)
17537
 
        libsuff=64
17538
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17539
 
        ;;
17540
 
      esac
17541
 
    fi
17542
 
    rm -rf conftest*
17543
 
    ;;
17544
 
  esac
17545
 
 
17546
17787
  # Append ld.so.conf contents to the search path
17547
17788
  if test -f /etc/ld.so.conf; then
17548
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17549
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17789
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17790
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17550
17791
  fi
17551
17792
 
17552
17793
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17607
17848
 
17608
17849
openbsd*)
17609
17850
  version_type=sunos
 
17851
  sys_lib_dlsearch_path_spec="/usr/lib"
17610
17852
  need_lib_prefix=no
17611
 
  need_version=yes
 
17853
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17854
  case $host_os in
 
17855
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17856
    *)                         need_version=no  ;;
 
17857
  esac
17612
17858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17613
17859
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17614
17860
  shlibpath_var=LD_LIBRARY_PATH
17646
17892
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17647
17893
  ;;
17648
17894
 
17649
 
sco3.2v5*)
17650
 
  version_type=osf
17651
 
  soname_spec='${libname}${release}${shared_ext}$major'
17652
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653
 
  shlibpath_var=LD_LIBRARY_PATH
17654
 
  ;;
17655
 
 
17656
17895
solaris*)
17657
17896
  version_type=linux
17658
17897
  need_lib_prefix=no
17678
17917
  need_version=yes
17679
17918
  ;;
17680
17919
 
17681
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17920
sysv4 | sysv4.3*)
17682
17921
  version_type=linux
17683
17922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684
17923
  soname_spec='${libname}${release}${shared_ext}$major'
17711
17950
  fi
17712
17951
  ;;
17713
17952
 
 
17953
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17954
  version_type=freebsd-elf
 
17955
  need_lib_prefix=no
 
17956
  need_version=no
 
17957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17958
  soname_spec='${libname}${release}${shared_ext}$major'
 
17959
  shlibpath_var=LD_LIBRARY_PATH
 
17960
  hardcode_into_libs=yes
 
17961
  if test "$with_gnu_ld" = yes; then
 
17962
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17963
    shlibpath_overrides_runpath=no
 
17964
  else
 
17965
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17966
    shlibpath_overrides_runpath=yes
 
17967
    case $host_os in
 
17968
      sco3.2v5*)
 
17969
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17970
        ;;
 
17971
    esac
 
17972
  fi
 
17973
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17974
  ;;
 
17975
 
17714
17976
uts4*)
17715
17977
  version_type=linux
17716
17978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726
17988
echo "${ECHO_T}$dynamic_linker" >&6
17727
17989
test "$dynamic_linker" = no && can_build_shared=no
17728
17990
 
 
17991
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17992
if test "$GCC" = yes; then
 
17993
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17994
fi
 
17995
 
17729
17996
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17730
17997
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17731
17998
hardcode_action_GCJ=
17732
17999
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17733
 
   test -n "$runpath_var GCJ" || \
17734
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18000
   test -n "$runpath_var_GCJ" || \
 
18001
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17735
18002
 
17736
18003
  # We can hardcode non-existant directories.
17737
18004
  if test "$hardcode_direct_GCJ" != no &&
17763
18030
  enable_fast_install=needless
17764
18031
fi
17765
18032
 
17766
 
striplib=
17767
 
old_striplib=
17768
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17769
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17770
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17771
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17772
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17773
 
  echo "$as_me:$LINENO: result: yes" >&5
17774
 
echo "${ECHO_T}yes" >&6
17775
 
else
17776
 
# FIXME - insert some real tests, host_os isn't really good enough
17777
 
  case $host_os in
17778
 
   darwin*)
17779
 
       if test -n "$STRIP" ; then
17780
 
         striplib="$STRIP -x"
17781
 
         echo "$as_me:$LINENO: result: yes" >&5
17782
 
echo "${ECHO_T}yes" >&6
17783
 
       else
17784
 
  echo "$as_me:$LINENO: result: no" >&5
17785
 
echo "${ECHO_T}no" >&6
17786
 
fi
17787
 
       ;;
17788
 
   *)
17789
 
  echo "$as_me:$LINENO: result: no" >&5
17790
 
echo "${ECHO_T}no" >&6
17791
 
    ;;
17792
 
  esac
17793
 
fi
17794
 
 
17795
 
if test "x$enable_dlopen" != xyes; then
17796
 
  enable_dlopen=unknown
17797
 
  enable_dlopen_self=unknown
17798
 
  enable_dlopen_self_static=unknown
17799
 
else
17800
 
  lt_cv_dlopen=no
17801
 
  lt_cv_dlopen_libs=
17802
 
 
17803
 
  case $host_os in
17804
 
  beos*)
17805
 
    lt_cv_dlopen="load_add_on"
17806
 
    lt_cv_dlopen_libs=
17807
 
    lt_cv_dlopen_self=yes
17808
 
    ;;
17809
 
 
17810
 
  mingw* | pw32*)
17811
 
    lt_cv_dlopen="LoadLibrary"
17812
 
    lt_cv_dlopen_libs=
17813
 
   ;;
17814
 
 
17815
 
  cygwin*)
17816
 
    lt_cv_dlopen="dlopen"
17817
 
    lt_cv_dlopen_libs=
17818
 
   ;;
17819
 
 
17820
 
  darwin*)
17821
 
  # if libdl is installed we need to link against it
17822
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17823
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17824
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17826
 
else
17827
 
  ac_check_lib_save_LIBS=$LIBS
17828
 
LIBS="-ldl  $LIBS"
17829
 
cat >conftest.$ac_ext <<_ACEOF
17830
 
/* confdefs.h.  */
17831
 
_ACEOF
17832
 
cat confdefs.h >>conftest.$ac_ext
17833
 
cat >>conftest.$ac_ext <<_ACEOF
17834
 
/* end confdefs.h.  */
17835
 
 
17836
 
/* Override any gcc2 internal prototype to avoid an error.  */
17837
 
#ifdef __cplusplus
17838
 
extern "C"
17839
 
#endif
17840
 
/* We use char because int might match the return type of a gcc2
17841
 
   builtin and then its argument prototype would still apply.  */
17842
 
char dlopen ();
17843
 
int
17844
 
main ()
17845
 
{
17846
 
dlopen ();
17847
 
  ;
17848
 
  return 0;
17849
 
}
17850
 
_ACEOF
17851
 
rm -f conftest.$ac_objext conftest$ac_exeext
17852
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17853
 
  (eval $ac_link) 2>conftest.er1
17854
 
  ac_status=$?
17855
 
  grep -v '^ *+' conftest.er1 >conftest.err
17856
 
  rm -f conftest.er1
17857
 
  cat conftest.err >&5
17858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859
 
  (exit $ac_status); } &&
17860
 
         { ac_try='test -z "$ac_c_werror_flag"
17861
 
                         || test ! -s conftest.err'
17862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
 
  (eval $ac_try) 2>&5
17864
 
  ac_status=$?
17865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
 
  (exit $ac_status); }; } &&
17867
 
         { ac_try='test -s conftest$ac_exeext'
17868
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869
 
  (eval $ac_try) 2>&5
17870
 
  ac_status=$?
17871
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872
 
  (exit $ac_status); }; }; then
17873
 
  ac_cv_lib_dl_dlopen=yes
17874
 
else
17875
 
  echo "$as_me: failed program was:" >&5
17876
 
sed 's/^/| /' conftest.$ac_ext >&5
17877
 
 
17878
 
ac_cv_lib_dl_dlopen=no
17879
 
fi
17880
 
rm -f conftest.err conftest.$ac_objext \
17881
 
      conftest$ac_exeext conftest.$ac_ext
17882
 
LIBS=$ac_check_lib_save_LIBS
17883
 
fi
17884
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17885
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17886
 
if test $ac_cv_lib_dl_dlopen = yes; then
17887
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17888
 
else
17889
 
 
17890
 
    lt_cv_dlopen="dyld"
17891
 
    lt_cv_dlopen_libs=
17892
 
    lt_cv_dlopen_self=yes
17893
 
 
17894
 
fi
17895
 
 
17896
 
   ;;
17897
 
 
17898
 
  *)
17899
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17900
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17901
 
if test "${ac_cv_func_shl_load+set}" = set; then
17902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17903
 
else
17904
 
  cat >conftest.$ac_ext <<_ACEOF
17905
 
/* confdefs.h.  */
17906
 
_ACEOF
17907
 
cat confdefs.h >>conftest.$ac_ext
17908
 
cat >>conftest.$ac_ext <<_ACEOF
17909
 
/* end confdefs.h.  */
17910
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17911
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17912
 
#define shl_load innocuous_shl_load
17913
 
 
17914
 
/* System header to define __stub macros and hopefully few prototypes,
17915
 
    which can conflict with char shl_load (); below.
17916
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917
 
    <limits.h> exists even on freestanding compilers.  */
17918
 
 
17919
 
#ifdef __STDC__
17920
 
# include <limits.h>
17921
 
#else
17922
 
# include <assert.h>
17923
 
#endif
17924
 
 
17925
 
#undef shl_load
17926
 
 
17927
 
/* Override any gcc2 internal prototype to avoid an error.  */
17928
 
#ifdef __cplusplus
17929
 
extern "C"
17930
 
{
17931
 
#endif
17932
 
/* We use char because int might match the return type of a gcc2
17933
 
   builtin and then its argument prototype would still apply.  */
17934
 
char shl_load ();
17935
 
/* The GNU C library defines this for functions which it implements
17936
 
    to always fail with ENOSYS.  Some functions are actually named
17937
 
    something starting with __ and the normal name is an alias.  */
17938
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17939
 
choke me
17940
 
#else
17941
 
char (*f) () = shl_load;
17942
 
#endif
17943
 
#ifdef __cplusplus
17944
 
}
17945
 
#endif
17946
 
 
17947
 
int
17948
 
main ()
17949
 
{
17950
 
return f != shl_load;
17951
 
  ;
17952
 
  return 0;
17953
 
}
17954
 
_ACEOF
17955
 
rm -f conftest.$ac_objext conftest$ac_exeext
17956
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
 
  (eval $ac_link) 2>conftest.er1
17958
 
  ac_status=$?
17959
 
  grep -v '^ *+' conftest.er1 >conftest.err
17960
 
  rm -f conftest.er1
17961
 
  cat conftest.err >&5
17962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963
 
  (exit $ac_status); } &&
17964
 
         { ac_try='test -z "$ac_c_werror_flag"
17965
 
                         || test ! -s conftest.err'
17966
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967
 
  (eval $ac_try) 2>&5
17968
 
  ac_status=$?
17969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
 
  (exit $ac_status); }; } &&
17971
 
         { ac_try='test -s conftest$ac_exeext'
17972
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973
 
  (eval $ac_try) 2>&5
17974
 
  ac_status=$?
17975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976
 
  (exit $ac_status); }; }; then
17977
 
  ac_cv_func_shl_load=yes
17978
 
else
17979
 
  echo "$as_me: failed program was:" >&5
17980
 
sed 's/^/| /' conftest.$ac_ext >&5
17981
 
 
17982
 
ac_cv_func_shl_load=no
17983
 
fi
17984
 
rm -f conftest.err conftest.$ac_objext \
17985
 
      conftest$ac_exeext conftest.$ac_ext
17986
 
fi
17987
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17988
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17989
 
if test $ac_cv_func_shl_load = yes; then
17990
 
  lt_cv_dlopen="shl_load"
17991
 
else
17992
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17993
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17994
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17996
 
else
17997
 
  ac_check_lib_save_LIBS=$LIBS
17998
 
LIBS="-ldld  $LIBS"
17999
 
cat >conftest.$ac_ext <<_ACEOF
18000
 
/* confdefs.h.  */
18001
 
_ACEOF
18002
 
cat confdefs.h >>conftest.$ac_ext
18003
 
cat >>conftest.$ac_ext <<_ACEOF
18004
 
/* end confdefs.h.  */
18005
 
 
18006
 
/* Override any gcc2 internal prototype to avoid an error.  */
18007
 
#ifdef __cplusplus
18008
 
extern "C"
18009
 
#endif
18010
 
/* We use char because int might match the return type of a gcc2
18011
 
   builtin and then its argument prototype would still apply.  */
18012
 
char shl_load ();
18013
 
int
18014
 
main ()
18015
 
{
18016
 
shl_load ();
18017
 
  ;
18018
 
  return 0;
18019
 
}
18020
 
_ACEOF
18021
 
rm -f conftest.$ac_objext conftest$ac_exeext
18022
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023
 
  (eval $ac_link) 2>conftest.er1
18024
 
  ac_status=$?
18025
 
  grep -v '^ *+' conftest.er1 >conftest.err
18026
 
  rm -f conftest.er1
18027
 
  cat conftest.err >&5
18028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
 
  (exit $ac_status); } &&
18030
 
         { ac_try='test -z "$ac_c_werror_flag"
18031
 
                         || test ! -s conftest.err'
18032
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033
 
  (eval $ac_try) 2>&5
18034
 
  ac_status=$?
18035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036
 
  (exit $ac_status); }; } &&
18037
 
         { ac_try='test -s conftest$ac_exeext'
18038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039
 
  (eval $ac_try) 2>&5
18040
 
  ac_status=$?
18041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042
 
  (exit $ac_status); }; }; then
18043
 
  ac_cv_lib_dld_shl_load=yes
18044
 
else
18045
 
  echo "$as_me: failed program was:" >&5
18046
 
sed 's/^/| /' conftest.$ac_ext >&5
18047
 
 
18048
 
ac_cv_lib_dld_shl_load=no
18049
 
fi
18050
 
rm -f conftest.err conftest.$ac_objext \
18051
 
      conftest$ac_exeext conftest.$ac_ext
18052
 
LIBS=$ac_check_lib_save_LIBS
18053
 
fi
18054
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18055
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18056
 
if test $ac_cv_lib_dld_shl_load = yes; then
18057
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18058
 
else
18059
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
18060
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18061
 
if test "${ac_cv_func_dlopen+set}" = set; then
18062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18063
 
else
18064
 
  cat >conftest.$ac_ext <<_ACEOF
18065
 
/* confdefs.h.  */
18066
 
_ACEOF
18067
 
cat confdefs.h >>conftest.$ac_ext
18068
 
cat >>conftest.$ac_ext <<_ACEOF
18069
 
/* end confdefs.h.  */
18070
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18071
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18072
 
#define dlopen innocuous_dlopen
18073
 
 
18074
 
/* System header to define __stub macros and hopefully few prototypes,
18075
 
    which can conflict with char dlopen (); below.
18076
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077
 
    <limits.h> exists even on freestanding compilers.  */
18078
 
 
18079
 
#ifdef __STDC__
18080
 
# include <limits.h>
18081
 
#else
18082
 
# include <assert.h>
18083
 
#endif
18084
 
 
18085
 
#undef dlopen
18086
 
 
18087
 
/* Override any gcc2 internal prototype to avoid an error.  */
18088
 
#ifdef __cplusplus
18089
 
extern "C"
18090
 
{
18091
 
#endif
18092
 
/* We use char because int might match the return type of a gcc2
18093
 
   builtin and then its argument prototype would still apply.  */
18094
 
char dlopen ();
18095
 
/* The GNU C library defines this for functions which it implements
18096
 
    to always fail with ENOSYS.  Some functions are actually named
18097
 
    something starting with __ and the normal name is an alias.  */
18098
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18099
 
choke me
18100
 
#else
18101
 
char (*f) () = dlopen;
18102
 
#endif
18103
 
#ifdef __cplusplus
18104
 
}
18105
 
#endif
18106
 
 
18107
 
int
18108
 
main ()
18109
 
{
18110
 
return f != dlopen;
18111
 
  ;
18112
 
  return 0;
18113
 
}
18114
 
_ACEOF
18115
 
rm -f conftest.$ac_objext conftest$ac_exeext
18116
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117
 
  (eval $ac_link) 2>conftest.er1
18118
 
  ac_status=$?
18119
 
  grep -v '^ *+' conftest.er1 >conftest.err
18120
 
  rm -f conftest.er1
18121
 
  cat conftest.err >&5
18122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123
 
  (exit $ac_status); } &&
18124
 
         { ac_try='test -z "$ac_c_werror_flag"
18125
 
                         || test ! -s conftest.err'
18126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127
 
  (eval $ac_try) 2>&5
18128
 
  ac_status=$?
18129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
 
  (exit $ac_status); }; } &&
18131
 
         { ac_try='test -s conftest$ac_exeext'
18132
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133
 
  (eval $ac_try) 2>&5
18134
 
  ac_status=$?
18135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
 
  (exit $ac_status); }; }; then
18137
 
  ac_cv_func_dlopen=yes
18138
 
else
18139
 
  echo "$as_me: failed program was:" >&5
18140
 
sed 's/^/| /' conftest.$ac_ext >&5
18141
 
 
18142
 
ac_cv_func_dlopen=no
18143
 
fi
18144
 
rm -f conftest.err conftest.$ac_objext \
18145
 
      conftest$ac_exeext conftest.$ac_ext
18146
 
fi
18147
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18148
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18149
 
if test $ac_cv_func_dlopen = yes; then
18150
 
  lt_cv_dlopen="dlopen"
18151
 
else
18152
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18153
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18154
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18155
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18156
 
else
18157
 
  ac_check_lib_save_LIBS=$LIBS
18158
 
LIBS="-ldl  $LIBS"
18159
 
cat >conftest.$ac_ext <<_ACEOF
18160
 
/* confdefs.h.  */
18161
 
_ACEOF
18162
 
cat confdefs.h >>conftest.$ac_ext
18163
 
cat >>conftest.$ac_ext <<_ACEOF
18164
 
/* end confdefs.h.  */
18165
 
 
18166
 
/* Override any gcc2 internal prototype to avoid an error.  */
18167
 
#ifdef __cplusplus
18168
 
extern "C"
18169
 
#endif
18170
 
/* We use char because int might match the return type of a gcc2
18171
 
   builtin and then its argument prototype would still apply.  */
18172
 
char dlopen ();
18173
 
int
18174
 
main ()
18175
 
{
18176
 
dlopen ();
18177
 
  ;
18178
 
  return 0;
18179
 
}
18180
 
_ACEOF
18181
 
rm -f conftest.$ac_objext conftest$ac_exeext
18182
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183
 
  (eval $ac_link) 2>conftest.er1
18184
 
  ac_status=$?
18185
 
  grep -v '^ *+' conftest.er1 >conftest.err
18186
 
  rm -f conftest.er1
18187
 
  cat conftest.err >&5
18188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189
 
  (exit $ac_status); } &&
18190
 
         { ac_try='test -z "$ac_c_werror_flag"
18191
 
                         || test ! -s conftest.err'
18192
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193
 
  (eval $ac_try) 2>&5
18194
 
  ac_status=$?
18195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196
 
  (exit $ac_status); }; } &&
18197
 
         { ac_try='test -s conftest$ac_exeext'
18198
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199
 
  (eval $ac_try) 2>&5
18200
 
  ac_status=$?
18201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202
 
  (exit $ac_status); }; }; then
18203
 
  ac_cv_lib_dl_dlopen=yes
18204
 
else
18205
 
  echo "$as_me: failed program was:" >&5
18206
 
sed 's/^/| /' conftest.$ac_ext >&5
18207
 
 
18208
 
ac_cv_lib_dl_dlopen=no
18209
 
fi
18210
 
rm -f conftest.err conftest.$ac_objext \
18211
 
      conftest$ac_exeext conftest.$ac_ext
18212
 
LIBS=$ac_check_lib_save_LIBS
18213
 
fi
18214
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18215
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18216
 
if test $ac_cv_lib_dl_dlopen = yes; then
18217
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18218
 
else
18219
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18220
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18221
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18222
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18223
 
else
18224
 
  ac_check_lib_save_LIBS=$LIBS
18225
 
LIBS="-lsvld  $LIBS"
18226
 
cat >conftest.$ac_ext <<_ACEOF
18227
 
/* confdefs.h.  */
18228
 
_ACEOF
18229
 
cat confdefs.h >>conftest.$ac_ext
18230
 
cat >>conftest.$ac_ext <<_ACEOF
18231
 
/* end confdefs.h.  */
18232
 
 
18233
 
/* Override any gcc2 internal prototype to avoid an error.  */
18234
 
#ifdef __cplusplus
18235
 
extern "C"
18236
 
#endif
18237
 
/* We use char because int might match the return type of a gcc2
18238
 
   builtin and then its argument prototype would still apply.  */
18239
 
char dlopen ();
18240
 
int
18241
 
main ()
18242
 
{
18243
 
dlopen ();
18244
 
  ;
18245
 
  return 0;
18246
 
}
18247
 
_ACEOF
18248
 
rm -f conftest.$ac_objext conftest$ac_exeext
18249
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250
 
  (eval $ac_link) 2>conftest.er1
18251
 
  ac_status=$?
18252
 
  grep -v '^ *+' conftest.er1 >conftest.err
18253
 
  rm -f conftest.er1
18254
 
  cat conftest.err >&5
18255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256
 
  (exit $ac_status); } &&
18257
 
         { ac_try='test -z "$ac_c_werror_flag"
18258
 
                         || test ! -s conftest.err'
18259
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260
 
  (eval $ac_try) 2>&5
18261
 
  ac_status=$?
18262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263
 
  (exit $ac_status); }; } &&
18264
 
         { ac_try='test -s conftest$ac_exeext'
18265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266
 
  (eval $ac_try) 2>&5
18267
 
  ac_status=$?
18268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269
 
  (exit $ac_status); }; }; then
18270
 
  ac_cv_lib_svld_dlopen=yes
18271
 
else
18272
 
  echo "$as_me: failed program was:" >&5
18273
 
sed 's/^/| /' conftest.$ac_ext >&5
18274
 
 
18275
 
ac_cv_lib_svld_dlopen=no
18276
 
fi
18277
 
rm -f conftest.err conftest.$ac_objext \
18278
 
      conftest$ac_exeext conftest.$ac_ext
18279
 
LIBS=$ac_check_lib_save_LIBS
18280
 
fi
18281
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18282
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18283
 
if test $ac_cv_lib_svld_dlopen = yes; then
18284
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18285
 
else
18286
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18287
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18288
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18289
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18290
 
else
18291
 
  ac_check_lib_save_LIBS=$LIBS
18292
 
LIBS="-ldld  $LIBS"
18293
 
cat >conftest.$ac_ext <<_ACEOF
18294
 
/* confdefs.h.  */
18295
 
_ACEOF
18296
 
cat confdefs.h >>conftest.$ac_ext
18297
 
cat >>conftest.$ac_ext <<_ACEOF
18298
 
/* end confdefs.h.  */
18299
 
 
18300
 
/* Override any gcc2 internal prototype to avoid an error.  */
18301
 
#ifdef __cplusplus
18302
 
extern "C"
18303
 
#endif
18304
 
/* We use char because int might match the return type of a gcc2
18305
 
   builtin and then its argument prototype would still apply.  */
18306
 
char dld_link ();
18307
 
int
18308
 
main ()
18309
 
{
18310
 
dld_link ();
18311
 
  ;
18312
 
  return 0;
18313
 
}
18314
 
_ACEOF
18315
 
rm -f conftest.$ac_objext conftest$ac_exeext
18316
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317
 
  (eval $ac_link) 2>conftest.er1
18318
 
  ac_status=$?
18319
 
  grep -v '^ *+' conftest.er1 >conftest.err
18320
 
  rm -f conftest.er1
18321
 
  cat conftest.err >&5
18322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323
 
  (exit $ac_status); } &&
18324
 
         { ac_try='test -z "$ac_c_werror_flag"
18325
 
                         || test ! -s conftest.err'
18326
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327
 
  (eval $ac_try) 2>&5
18328
 
  ac_status=$?
18329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330
 
  (exit $ac_status); }; } &&
18331
 
         { ac_try='test -s conftest$ac_exeext'
18332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333
 
  (eval $ac_try) 2>&5
18334
 
  ac_status=$?
18335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336
 
  (exit $ac_status); }; }; then
18337
 
  ac_cv_lib_dld_dld_link=yes
18338
 
else
18339
 
  echo "$as_me: failed program was:" >&5
18340
 
sed 's/^/| /' conftest.$ac_ext >&5
18341
 
 
18342
 
ac_cv_lib_dld_dld_link=no
18343
 
fi
18344
 
rm -f conftest.err conftest.$ac_objext \
18345
 
      conftest$ac_exeext conftest.$ac_ext
18346
 
LIBS=$ac_check_lib_save_LIBS
18347
 
fi
18348
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18349
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18350
 
if test $ac_cv_lib_dld_dld_link = yes; then
18351
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18352
 
fi
18353
 
 
18354
 
 
18355
 
fi
18356
 
 
18357
 
 
18358
 
fi
18359
 
 
18360
 
 
18361
 
fi
18362
 
 
18363
 
 
18364
 
fi
18365
 
 
18366
 
 
18367
 
fi
18368
 
 
18369
 
    ;;
18370
 
  esac
18371
 
 
18372
 
  if test "x$lt_cv_dlopen" != xno; then
18373
 
    enable_dlopen=yes
18374
 
  else
18375
 
    enable_dlopen=no
18376
 
  fi
18377
 
 
18378
 
  case $lt_cv_dlopen in
18379
 
  dlopen)
18380
 
    save_CPPFLAGS="$CPPFLAGS"
18381
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18382
 
 
18383
 
    save_LDFLAGS="$LDFLAGS"
18384
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18385
 
 
18386
 
    save_LIBS="$LIBS"
18387
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18388
 
 
18389
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18390
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18391
 
if test "${lt_cv_dlopen_self+set}" = set; then
18392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18393
 
else
18394
 
          if test "$cross_compiling" = yes; then :
18395
 
  lt_cv_dlopen_self=cross
18396
 
else
18397
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18398
 
  lt_status=$lt_dlunknown
18399
 
  cat > conftest.$ac_ext <<EOF
18400
 
#line 18400 "configure"
18401
 
#include "confdefs.h"
18402
 
 
18403
 
#if HAVE_DLFCN_H
18404
 
#include <dlfcn.h>
18405
 
#endif
18406
 
 
18407
 
#include <stdio.h>
18408
 
 
18409
 
#ifdef RTLD_GLOBAL
18410
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18411
 
#else
18412
 
#  ifdef DL_GLOBAL
18413
 
#    define LT_DLGLOBAL         DL_GLOBAL
18414
 
#  else
18415
 
#    define LT_DLGLOBAL         0
18416
 
#  endif
18417
 
#endif
18418
 
 
18419
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18420
 
   find out it does not work in some platform. */
18421
 
#ifndef LT_DLLAZY_OR_NOW
18422
 
#  ifdef RTLD_LAZY
18423
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18424
 
#  else
18425
 
#    ifdef DL_LAZY
18426
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18427
 
#    else
18428
 
#      ifdef RTLD_NOW
18429
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18430
 
#      else
18431
 
#        ifdef DL_NOW
18432
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18433
 
#        else
18434
 
#          define LT_DLLAZY_OR_NOW      0
18435
 
#        endif
18436
 
#      endif
18437
 
#    endif
18438
 
#  endif
18439
 
#endif
18440
 
 
18441
 
#ifdef __cplusplus
18442
 
extern "C" void exit (int);
18443
 
#endif
18444
 
 
18445
 
void fnord() { int i=42;}
18446
 
int main ()
18447
 
{
18448
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18449
 
  int status = $lt_dlunknown;
18450
 
 
18451
 
  if (self)
18452
 
    {
18453
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18454
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18455
 
      /* dlclose (self); */
18456
 
    }
18457
 
 
18458
 
    exit (status);
18459
 
}
18460
 
EOF
18461
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462
 
  (eval $ac_link) 2>&5
18463
 
  ac_status=$?
18464
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18466
 
    (./conftest; exit; ) 2>/dev/null
18467
 
    lt_status=$?
18468
 
    case x$lt_status in
18469
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18470
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18471
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18472
 
    esac
18473
 
  else :
18474
 
    # compilation failed
18475
 
    lt_cv_dlopen_self=no
18476
 
  fi
18477
 
fi
18478
 
rm -fr conftest*
18479
 
 
18480
 
 
18481
 
fi
18482
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18483
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18484
 
 
18485
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18486
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18487
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18488
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18489
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18490
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18491
 
else
18492
 
          if test "$cross_compiling" = yes; then :
18493
 
  lt_cv_dlopen_self_static=cross
18494
 
else
18495
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496
 
  lt_status=$lt_dlunknown
18497
 
  cat > conftest.$ac_ext <<EOF
18498
 
#line 18498 "configure"
18499
 
#include "confdefs.h"
18500
 
 
18501
 
#if HAVE_DLFCN_H
18502
 
#include <dlfcn.h>
18503
 
#endif
18504
 
 
18505
 
#include <stdio.h>
18506
 
 
18507
 
#ifdef RTLD_GLOBAL
18508
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18509
 
#else
18510
 
#  ifdef DL_GLOBAL
18511
 
#    define LT_DLGLOBAL         DL_GLOBAL
18512
 
#  else
18513
 
#    define LT_DLGLOBAL         0
18514
 
#  endif
18515
 
#endif
18516
 
 
18517
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518
 
   find out it does not work in some platform. */
18519
 
#ifndef LT_DLLAZY_OR_NOW
18520
 
#  ifdef RTLD_LAZY
18521
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18522
 
#  else
18523
 
#    ifdef DL_LAZY
18524
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18525
 
#    else
18526
 
#      ifdef RTLD_NOW
18527
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18528
 
#      else
18529
 
#        ifdef DL_NOW
18530
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18531
 
#        else
18532
 
#          define LT_DLLAZY_OR_NOW      0
18533
 
#        endif
18534
 
#      endif
18535
 
#    endif
18536
 
#  endif
18537
 
#endif
18538
 
 
18539
 
#ifdef __cplusplus
18540
 
extern "C" void exit (int);
18541
 
#endif
18542
 
 
18543
 
void fnord() { int i=42;}
18544
 
int main ()
18545
 
{
18546
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18547
 
  int status = $lt_dlunknown;
18548
 
 
18549
 
  if (self)
18550
 
    {
18551
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18552
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553
 
      /* dlclose (self); */
18554
 
    }
18555
 
 
18556
 
    exit (status);
18557
 
}
18558
 
EOF
18559
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560
 
  (eval $ac_link) 2>&5
18561
 
  ac_status=$?
18562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18564
 
    (./conftest; exit; ) 2>/dev/null
18565
 
    lt_status=$?
18566
 
    case x$lt_status in
18567
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18568
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18569
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18570
 
    esac
18571
 
  else :
18572
 
    # compilation failed
18573
 
    lt_cv_dlopen_self_static=no
18574
 
  fi
18575
 
fi
18576
 
rm -fr conftest*
18577
 
 
18578
 
 
18579
 
fi
18580
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18581
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18582
 
    fi
18583
 
 
18584
 
    CPPFLAGS="$save_CPPFLAGS"
18585
 
    LDFLAGS="$save_LDFLAGS"
18586
 
    LIBS="$save_LIBS"
18587
 
    ;;
18588
 
  esac
18589
 
 
18590
 
  case $lt_cv_dlopen_self in
18591
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18592
 
  *) enable_dlopen_self=unknown ;;
18593
 
  esac
18594
 
 
18595
 
  case $lt_cv_dlopen_self_static in
18596
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18597
 
  *) enable_dlopen_self_static=unknown ;;
18598
 
  esac
18599
 
fi
18600
 
 
18601
18033
 
18602
18034
# The else clause should only fire when bootstrapping the
18603
18035
# libtool distribution, otherwise you forgot to ship ltmain.sh
18612
18044
  # Now quote all the things that may contain metacharacters while being
18613
18045
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18614
18046
  # variables and quote the copies for generation of the libtool script.
18615
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18047
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18616
18048
    SED SHELL STRIP \
18617
18049
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18618
18050
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18713
18145
# The host system.
18714
18146
host_alias=$host_alias
18715
18147
host=$host
 
18148
host_os=$host_os
 
18149
 
 
18150
# The build system.
 
18151
build_alias=$build_alias
 
18152
build=$build
 
18153
build_os=$build_os
18716
18154
 
18717
18155
# An echo program that does not interpret backslashes.
18718
18156
echo=$lt_echo
18724
18162
# A C compiler.
18725
18163
LTCC=$lt_LTCC
18726
18164
 
 
18165
# LTCC compiler flags.
 
18166
LTCFLAGS=$lt_LTCFLAGS
 
18167
 
18727
18168
# A language-specific compiler.
18728
18169
CC=$lt_compiler_GCJ
18729
18170
 
18789
18230
# Does compiler simultaneously support -c and -o options?
18790
18231
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18791
18232
 
18792
 
# Must we lock files when doing compilation ?
 
18233
# Must we lock files when doing compilation?
18793
18234
need_locks=$lt_need_locks
18794
18235
 
18795
18236
# Do we need the lib prefix for modules?
19033
18474
# If no C compiler was specified, use CC.
19034
18475
LTCC=${LTCC-"$CC"}
19035
18476
 
 
18477
# If no C compiler flags were specified, use CFLAGS.
 
18478
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18479
 
19036
18480
# Allow CC to be a program name with arguments.
19037
18481
compiler=$CC
19038
18482
 
19039
18483
 
 
18484
# save warnings/boilerplate of simple test code
 
18485
ac_outfile=conftest.$ac_objext
 
18486
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18487
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18488
_lt_compiler_boilerplate=`cat conftest.err`
 
18489
$rm conftest*
 
18490
 
 
18491
ac_outfile=conftest.$ac_objext
 
18492
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18493
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18494
_lt_linker_boilerplate=`cat conftest.err`
 
18495
$rm conftest*
 
18496
 
 
18497
 
19040
18498
# Allow CC to be a program name with arguments.
19041
18499
lt_save_CC="$CC"
19042
18500
CC=${RC-"windres"}
19043
18501
compiler=$CC
19044
18502
compiler_RC=$CC
 
18503
for cc_temp in $compiler""; do
 
18504
  case $cc_temp in
 
18505
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18506
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18507
    \-*) ;;
 
18508
    *) break;;
 
18509
  esac
 
18510
done
 
18511
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18512
 
19045
18513
lt_cv_prog_compiler_c_o_RC=yes
19046
18514
 
19047
18515
# The else clause should only fire when bootstrapping the
19057
18525
  # Now quote all the things that may contain metacharacters while being
19058
18526
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19059
18527
  # variables and quote the copies for generation of the libtool script.
19060
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18528
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19061
18529
    SED SHELL STRIP \
19062
18530
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19063
18531
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19158
18626
# The host system.
19159
18627
host_alias=$host_alias
19160
18628
host=$host
 
18629
host_os=$host_os
 
18630
 
 
18631
# The build system.
 
18632
build_alias=$build_alias
 
18633
build=$build
 
18634
build_os=$build_os
19161
18635
 
19162
18636
# An echo program that does not interpret backslashes.
19163
18637
echo=$lt_echo
19169
18643
# A C compiler.
19170
18644
LTCC=$lt_LTCC
19171
18645
 
 
18646
# LTCC compiler flags.
 
18647
LTCFLAGS=$lt_LTCFLAGS
 
18648
 
19172
18649
# A language-specific compiler.
19173
18650
CC=$lt_compiler_RC
19174
18651
 
19234
18711
# Does compiler simultaneously support -c and -o options?
19235
18712
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19236
18713
 
19237
 
# Must we lock files when doing compilation ?
 
18714
# Must we lock files when doing compilation?
19238
18715
need_locks=$lt_need_locks
19239
18716
 
19240
18717
# Do we need the lib prefix for modules?
19685
19162
 
19686
19163
 
19687
19164
 
 
19165
# Check for mktemp to prevent security issue noted in Xorg bug #5898
 
19166
# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
 
19167
# Extract the first word of "mktemp", so it can be a program name with args.
 
19168
set dummy mktemp; ac_word=$2
 
19169
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19171
if test "${ac_cv_path_MKTEMP_COMMAND+set}" = set; then
 
19172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19173
else
 
19174
  case $MKTEMP_COMMAND in
 
19175
  [\\/]* | ?:[\\/]*)
 
19176
  ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
 
19177
  ;;
 
19178
  *)
 
19179
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19180
for as_dir in $PATH
 
19181
do
 
19182
  IFS=$as_save_IFS
 
19183
  test -z "$as_dir" && as_dir=.
 
19184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19185
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19186
    ac_cv_path_MKTEMP_COMMAND="$as_dir/$ac_word$ac_exec_ext"
 
19187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19188
    break 2
 
19189
  fi
 
19190
done
 
19191
done
 
19192
 
 
19193
  ;;
 
19194
esac
 
19195
fi
 
19196
MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
 
19197
 
 
19198
if test -n "$MKTEMP_COMMAND"; then
 
19199
  echo "$as_me:$LINENO: result: $MKTEMP_COMMAND" >&5
 
19200
echo "${ECHO_T}$MKTEMP_COMMAND" >&6
 
19201
else
 
19202
  echo "$as_me:$LINENO: result: no" >&5
 
19203
echo "${ECHO_T}no" >&6
 
19204
fi
 
19205
 
 
19206
 
 
19207
 
 
19208
if test x$MKTEMP_COMMAND != x; then
 
19209
  HAVE_MKTEMP_COMMAND_TRUE=
 
19210
  HAVE_MKTEMP_COMMAND_FALSE='#'
 
19211
else
 
19212
  HAVE_MKTEMP_COMMAND_TRUE='#'
 
19213
  HAVE_MKTEMP_COMMAND_FALSE=
 
19214
fi
 
19215
 
 
19216
 
19688
19217
echo "$as_me:$LINENO: checking for pid_t" >&5
19689
19218
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19690
19219
if test "${ac_cv_type_pid_t+set}" = set; then
20877
20406
 
20878
20407
fi
20879
20408
 
 
20409
 
 
20410
for ac_func in daemon
 
20411
do
 
20412
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20413
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20414
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20415
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20417
else
 
20418
  cat >conftest.$ac_ext <<_ACEOF
 
20419
/* confdefs.h.  */
 
20420
_ACEOF
 
20421
cat confdefs.h >>conftest.$ac_ext
 
20422
cat >>conftest.$ac_ext <<_ACEOF
 
20423
/* end confdefs.h.  */
 
20424
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20425
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20426
#define $ac_func innocuous_$ac_func
 
20427
 
 
20428
/* System header to define __stub macros and hopefully few prototypes,
 
20429
    which can conflict with char $ac_func (); below.
 
20430
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20431
    <limits.h> exists even on freestanding compilers.  */
 
20432
 
 
20433
#ifdef __STDC__
 
20434
# include <limits.h>
 
20435
#else
 
20436
# include <assert.h>
 
20437
#endif
 
20438
 
 
20439
#undef $ac_func
 
20440
 
 
20441
/* Override any gcc2 internal prototype to avoid an error.  */
 
20442
#ifdef __cplusplus
 
20443
extern "C"
 
20444
{
 
20445
#endif
 
20446
/* We use char because int might match the return type of a gcc2
 
20447
   builtin and then its argument prototype would still apply.  */
 
20448
char $ac_func ();
 
20449
/* The GNU C library defines this for functions which it implements
 
20450
    to always fail with ENOSYS.  Some functions are actually named
 
20451
    something starting with __ and the normal name is an alias.  */
 
20452
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20453
choke me
 
20454
#else
 
20455
char (*f) () = $ac_func;
 
20456
#endif
 
20457
#ifdef __cplusplus
 
20458
}
 
20459
#endif
 
20460
 
 
20461
int
 
20462
main ()
 
20463
{
 
20464
return f != $ac_func;
 
20465
  ;
 
20466
  return 0;
 
20467
}
 
20468
_ACEOF
 
20469
rm -f conftest.$ac_objext conftest$ac_exeext
 
20470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20471
  (eval $ac_link) 2>conftest.er1
 
20472
  ac_status=$?
 
20473
  grep -v '^ *+' conftest.er1 >conftest.err
 
20474
  rm -f conftest.er1
 
20475
  cat conftest.err >&5
 
20476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20477
  (exit $ac_status); } &&
 
20478
         { ac_try='test -z "$ac_c_werror_flag"
 
20479
                         || test ! -s conftest.err'
 
20480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20481
  (eval $ac_try) 2>&5
 
20482
  ac_status=$?
 
20483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20484
  (exit $ac_status); }; } &&
 
20485
         { ac_try='test -s conftest$ac_exeext'
 
20486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20487
  (eval $ac_try) 2>&5
 
20488
  ac_status=$?
 
20489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20490
  (exit $ac_status); }; }; then
 
20491
  eval "$as_ac_var=yes"
 
20492
else
 
20493
  echo "$as_me: failed program was:" >&5
 
20494
sed 's/^/| /' conftest.$ac_ext >&5
 
20495
 
 
20496
eval "$as_ac_var=no"
 
20497
fi
 
20498
rm -f conftest.err conftest.$ac_objext \
 
20499
      conftest$ac_exeext conftest.$ac_ext
 
20500
fi
 
20501
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20502
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20503
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20504
  cat >>confdefs.h <<_ACEOF
 
20505
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20506
_ACEOF
 
20507
 
 
20508
fi
 
20509
done
 
20510
 
 
20511
 
 
20512
for ac_header in grp.h
 
20513
do
 
20514
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20515
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20516
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20517
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20518
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20520
fi
 
20521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20522
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20523
else
 
20524
  # Is the header compilable?
 
20525
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20526
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20527
cat >conftest.$ac_ext <<_ACEOF
 
20528
/* confdefs.h.  */
 
20529
_ACEOF
 
20530
cat confdefs.h >>conftest.$ac_ext
 
20531
cat >>conftest.$ac_ext <<_ACEOF
 
20532
/* end confdefs.h.  */
 
20533
$ac_includes_default
 
20534
#include <$ac_header>
 
20535
_ACEOF
 
20536
rm -f conftest.$ac_objext
 
20537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20538
  (eval $ac_compile) 2>conftest.er1
 
20539
  ac_status=$?
 
20540
  grep -v '^ *+' conftest.er1 >conftest.err
 
20541
  rm -f conftest.er1
 
20542
  cat conftest.err >&5
 
20543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20544
  (exit $ac_status); } &&
 
20545
         { ac_try='test -z "$ac_c_werror_flag"
 
20546
                         || test ! -s conftest.err'
 
20547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20548
  (eval $ac_try) 2>&5
 
20549
  ac_status=$?
 
20550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20551
  (exit $ac_status); }; } &&
 
20552
         { ac_try='test -s conftest.$ac_objext'
 
20553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20554
  (eval $ac_try) 2>&5
 
20555
  ac_status=$?
 
20556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20557
  (exit $ac_status); }; }; then
 
20558
  ac_header_compiler=yes
 
20559
else
 
20560
  echo "$as_me: failed program was:" >&5
 
20561
sed 's/^/| /' conftest.$ac_ext >&5
 
20562
 
 
20563
ac_header_compiler=no
 
20564
fi
 
20565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20566
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20567
echo "${ECHO_T}$ac_header_compiler" >&6
 
20568
 
 
20569
# Is the header present?
 
20570
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20571
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20572
cat >conftest.$ac_ext <<_ACEOF
 
20573
/* confdefs.h.  */
 
20574
_ACEOF
 
20575
cat confdefs.h >>conftest.$ac_ext
 
20576
cat >>conftest.$ac_ext <<_ACEOF
 
20577
/* end confdefs.h.  */
 
20578
#include <$ac_header>
 
20579
_ACEOF
 
20580
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20581
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20582
  ac_status=$?
 
20583
  grep -v '^ *+' conftest.er1 >conftest.err
 
20584
  rm -f conftest.er1
 
20585
  cat conftest.err >&5
 
20586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20587
  (exit $ac_status); } >/dev/null; then
 
20588
  if test -s conftest.err; then
 
20589
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20590
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20591
  else
 
20592
    ac_cpp_err=
 
20593
  fi
 
20594
else
 
20595
  ac_cpp_err=yes
 
20596
fi
 
20597
if test -z "$ac_cpp_err"; then
 
20598
  ac_header_preproc=yes
 
20599
else
 
20600
  echo "$as_me: failed program was:" >&5
 
20601
sed 's/^/| /' conftest.$ac_ext >&5
 
20602
 
 
20603
  ac_header_preproc=no
 
20604
fi
 
20605
rm -f conftest.err conftest.$ac_ext
 
20606
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20607
echo "${ECHO_T}$ac_header_preproc" >&6
 
20608
 
 
20609
# So?  What about this header?
 
20610
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20611
  yes:no: )
 
20612
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20613
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20614
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20615
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20616
    ac_header_preproc=yes
 
20617
    ;;
 
20618
  no:yes:* )
 
20619
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20620
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20621
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20622
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20623
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20624
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20625
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20626
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20627
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20628
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20629
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20630
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20631
    (
 
20632
      cat <<\_ASBOX
 
20633
## ---------------------------------------------------------------------- ##
 
20634
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
20635
## ---------------------------------------------------------------------- ##
 
20636
_ASBOX
 
20637
    ) |
 
20638
      sed "s/^/$as_me: WARNING:     /" >&2
 
20639
    ;;
 
20640
esac
 
20641
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20642
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20643
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20645
else
 
20646
  eval "$as_ac_Header=\$ac_header_preproc"
 
20647
fi
 
20648
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20649
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20650
 
 
20651
fi
 
20652
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20653
  cat >>confdefs.h <<_ACEOF
 
20654
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20655
_ACEOF
 
20656
 
 
20657
fi
 
20658
 
 
20659
done
 
20660
 
 
20661
 
20880
20662
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20881
20663
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20882
20664
if test "${ac_cv_type_signal+set}" = set; then
21749
21531
fi
21750
21532
 
21751
21533
 
 
21534
echo "$as_me:$LINENO: checking whether key_setnet is declared" >&5
 
21535
echo $ECHO_N "checking whether key_setnet is declared... $ECHO_C" >&6
 
21536
if test "${ac_cv_have_decl_key_setnet+set}" = set; then
 
21537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21538
else
 
21539
  cat >conftest.$ac_ext <<_ACEOF
 
21540
/* confdefs.h.  */
 
21541
_ACEOF
 
21542
cat confdefs.h >>conftest.$ac_ext
 
21543
cat >>conftest.$ac_ext <<_ACEOF
 
21544
/* end confdefs.h.  */
 
21545
 
 
21546
#include <rpc/rpc.h>
 
21547
#include <rpc/key_prot.h>
 
21548
 
 
21549
 
 
21550
int
 
21551
main ()
 
21552
{
 
21553
#ifndef key_setnet
 
21554
  char *p = (char *) key_setnet;
 
21555
#endif
 
21556
 
 
21557
  ;
 
21558
  return 0;
 
21559
}
 
21560
_ACEOF
 
21561
rm -f conftest.$ac_objext
 
21562
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21563
  (eval $ac_compile) 2>conftest.er1
 
21564
  ac_status=$?
 
21565
  grep -v '^ *+' conftest.er1 >conftest.err
 
21566
  rm -f conftest.er1
 
21567
  cat conftest.err >&5
 
21568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21569
  (exit $ac_status); } &&
 
21570
         { ac_try='test -z "$ac_c_werror_flag"
 
21571
                         || test ! -s conftest.err'
 
21572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21573
  (eval $ac_try) 2>&5
 
21574
  ac_status=$?
 
21575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21576
  (exit $ac_status); }; } &&
 
21577
         { ac_try='test -s conftest.$ac_objext'
 
21578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21579
  (eval $ac_try) 2>&5
 
21580
  ac_status=$?
 
21581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21582
  (exit $ac_status); }; }; then
 
21583
  ac_cv_have_decl_key_setnet=yes
 
21584
else
 
21585
  echo "$as_me: failed program was:" >&5
 
21586
sed 's/^/| /' conftest.$ac_ext >&5
 
21587
 
 
21588
ac_cv_have_decl_key_setnet=no
 
21589
fi
 
21590
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21591
fi
 
21592
echo "$as_me:$LINENO: result: $ac_cv_have_decl_key_setnet" >&5
 
21593
echo "${ECHO_T}$ac_cv_have_decl_key_setnet" >&6
 
21594
if test $ac_cv_have_decl_key_setnet = yes; then
 
21595
 
 
21596
cat >>confdefs.h <<\_ACEOF
 
21597
#define HAVE_DECL_KEY_SETNET 1
 
21598
_ACEOF
 
21599
 
 
21600
fi
 
21601
 
 
21602
 
21752
21603
# darwin could have PAM support, but not yet
21753
21604
case $host_os in
21754
21605
    darwin*)
22015
21866
        OS_CFLAGS="-D__DARWIN__ -DNO_LASTLOG"
22016
21867
        SU="su -m"
22017
21868
        ;;
22018
 
    *bsd*)
 
21869
    *bsd*|dragonfly*)
22019
21870
        OS_CFLAGS="-DCSRG_BASED"
22020
21871
        SU="su -m"
22021
21872
        ;;
22309
22160
 
22310
22161
 
22311
22162
case $host_os in
22312
 
    *sco*)      SHELL_CMD="/bin/ksh"    ;;
 
22163
    *sco*|*solaris*)
 
22164
                SHELL_CMD="/bin/ksh"    ;;
22313
22165
    *)          SHELL_CMD="/bin/sh"     ;;
22314
22166
esac
22315
22167
 
22427
22279
echo $ECHO_N "checking for XDM... $ECHO_C" >&6
22428
22280
 
22429
22281
if test -n "$PKG_CONFIG"; then
22430
 
    if test -n "$XDM_CFLAGS"; then
22431
 
        pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
22432
 
    else
22433
22282
        if test -n "$PKG_CONFIG" && \
22434
22283
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\"") >&5
22435
22284
  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
22440
22289
else
22441
22290
  pkg_failed=yes
22442
22291
fi
22443
 
    fi
22444
22292
else
22445
22293
        pkg_failed=untried
22446
22294
fi
22447
22295
if test -n "$PKG_CONFIG"; then
22448
 
    if test -n "$XDM_LIBS"; then
22449
 
        pkg_cv_XDM_LIBS="$XDM_LIBS"
22450
 
    else
22451
22296
        if test -n "$PKG_CONFIG" && \
22452
22297
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\"") >&5
22453
22298
  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
22458
22303
else
22459
22304
  pkg_failed=yes
22460
22305
fi
22461
 
    fi
22462
22306
else
22463
22307
        pkg_failed=untried
22464
22308
fi
22465
22309
 
22466
 
 
22467
 
 
22468
22310
if test $pkg_failed = yes; then
22469
 
 
22470
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22471
 
        _pkg_short_errors_supported=yes
22472
 
else
22473
 
        _pkg_short_errors_supported=no
22474
 
fi
22475
 
        if test $_pkg_short_errors_supported = yes; then
22476
 
                XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmu x11 xau"`
22477
 
        else
22478
 
                XDM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu x11 xau"`
22479
 
        fi
 
22311
        XDM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu x11 xau"`
22480
22312
        # Put the nasty error message in config.log where it belongs
22481
 
        echo "$XDM_PKG_ERRORS" >&5
22482
 
 
22483
 
        { { echo "$as_me:$LINENO: error: Package requirements (xmu x11 xau) were not met:
22484
 
 
22485
 
$XDM_PKG_ERRORS
22486
 
 
22487
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22488
 
installed software in a non-standard prefix.
22489
 
 
22490
 
Alternatively, you may set the environment variables XDM_CFLAGS
22491
 
and XDM_LIBS to avoid the need to call pkg-config.
22492
 
See the pkg-config man page for more details.
22493
 
" >&5
22494
 
echo "$as_me: error: Package requirements (xmu x11 xau) were not met:
22495
 
 
22496
 
$XDM_PKG_ERRORS
22497
 
 
22498
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22499
 
installed software in a non-standard prefix.
22500
 
 
22501
 
Alternatively, you may set the environment variables XDM_CFLAGS
22502
 
and XDM_LIBS to avoid the need to call pkg-config.
22503
 
See the pkg-config man page for more details.
22504
 
" >&2;}
 
22313
        echo "$XDM_PKG_ERRORS" 1>&5
 
22314
 
 
22315
        { { echo "$as_me:$LINENO: error: Package requirements (xmu x11 xau) were not met.
 
22316
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22317
installed software in a non-standard prefix.
 
22318
 
 
22319
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
 
22320
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22321
more details." >&5
 
22322
echo "$as_me: error: Package requirements (xmu x11 xau) were not met.
 
22323
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22324
installed software in a non-standard prefix.
 
22325
 
 
22326
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
 
22327
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22328
more details." >&2;}
22505
22329
   { (exit 1); exit 1; }; }
22506
22330
elif test $pkg_failed = untried; then
22507
22331
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22508
22332
is in your PATH or set the PKG_CONFIG environment variable to the full
22509
22333
path to pkg-config.
22510
22334
 
22511
 
Alternatively, you may set the environment variables XDM_CFLAGS
22512
 
and XDM_LIBS to avoid the need to call pkg-config.
22513
 
See the pkg-config man page for more details.
 
22335
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
 
22336
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22337
more details.
22514
22338
 
22515
22339
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22516
22340
See \`config.log' for more details." >&5
22518
22342
is in your PATH or set the PKG_CONFIG environment variable to the full
22519
22343
path to pkg-config.
22520
22344
 
22521
 
Alternatively, you may set the environment variables XDM_CFLAGS
22522
 
and XDM_LIBS to avoid the need to call pkg-config.
22523
 
See the pkg-config man page for more details.
 
22345
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
 
22346
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22347
more details.
22524
22348
 
22525
22349
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22526
22350
See \`config.log' for more details." >&2;}
22553
22377
echo $ECHO_N "checking for XINERAMA... $ECHO_C" >&6
22554
22378
 
22555
22379
if test -n "$PKG_CONFIG"; then
22556
 
    if test -n "$XINERAMA_CFLAGS"; then
22557
 
        pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
22558
 
    else
22559
22380
        if test -n "$PKG_CONFIG" && \
22560
22381
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xinerama\"") >&5
22561
22382
  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22566
22387
else
22567
22388
  pkg_failed=yes
22568
22389
fi
22569
 
    fi
22570
22390
else
22571
22391
        pkg_failed=untried
22572
22392
fi
22573
22393
if test -n "$PKG_CONFIG"; then
22574
 
    if test -n "$XINERAMA_LIBS"; then
22575
 
        pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
22576
 
    else
22577
22394
        if test -n "$PKG_CONFIG" && \
22578
22395
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xinerama\"") >&5
22579
22396
  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22584
22401
else
22585
22402
  pkg_failed=yes
22586
22403
fi
22587
 
    fi
22588
22404
else
22589
22405
        pkg_failed=untried
22590
22406
fi
22591
22407
 
22592
 
 
22593
 
 
22594
22408
if test $pkg_failed = yes; then
22595
 
 
22596
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22597
 
        _pkg_short_errors_supported=yes
22598
 
else
22599
 
        _pkg_short_errors_supported=no
22600
 
fi
22601
 
        if test $_pkg_short_errors_supported = yes; then
22602
 
                XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xinerama"`
22603
 
        else
22604
 
                XINERAMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama"`
22605
 
        fi
 
22409
        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama"`
22606
22410
        # Put the nasty error message in config.log where it belongs
22607
 
        echo "$XINERAMA_PKG_ERRORS" >&5
22608
 
 
22609
 
        { { echo "$as_me:$LINENO: error: Package requirements (xinerama) were not met:
22610
 
 
22611
 
$XINERAMA_PKG_ERRORS
22612
 
 
22613
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22614
 
installed software in a non-standard prefix.
22615
 
 
22616
 
Alternatively, you may set the environment variables XINERAMA_CFLAGS
22617
 
and XINERAMA_LIBS to avoid the need to call pkg-config.
22618
 
See the pkg-config man page for more details.
22619
 
" >&5
22620
 
echo "$as_me: error: Package requirements (xinerama) were not met:
22621
 
 
22622
 
$XINERAMA_PKG_ERRORS
22623
 
 
22624
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22625
 
installed software in a non-standard prefix.
22626
 
 
22627
 
Alternatively, you may set the environment variables XINERAMA_CFLAGS
22628
 
and XINERAMA_LIBS to avoid the need to call pkg-config.
22629
 
See the pkg-config man page for more details.
22630
 
" >&2;}
 
22411
        echo "$XINERAMA_PKG_ERRORS" 1>&5
 
22412
 
 
22413
        { { echo "$as_me:$LINENO: error: Package requirements (xinerama) were not met.
 
22414
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22415
installed software in a non-standard prefix.
 
22416
 
 
22417
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
 
22418
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22419
more details." >&5
 
22420
echo "$as_me: error: Package requirements (xinerama) were not met.
 
22421
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22422
installed software in a non-standard prefix.
 
22423
 
 
22424
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
 
22425
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22426
more details." >&2;}
22631
22427
   { (exit 1); exit 1; }; }
22632
22428
elif test $pkg_failed = untried; then
22633
22429
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22634
22430
is in your PATH or set the PKG_CONFIG environment variable to the full
22635
22431
path to pkg-config.
22636
22432
 
22637
 
Alternatively, you may set the environment variables XINERAMA_CFLAGS
22638
 
and XINERAMA_LIBS to avoid the need to call pkg-config.
22639
 
See the pkg-config man page for more details.
 
22433
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
 
22434
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22435
more details.
22640
22436
 
22641
22437
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22642
22438
See \`config.log' for more details." >&5
22644
22440
is in your PATH or set the PKG_CONFIG environment variable to the full
22645
22441
path to pkg-config.
22646
22442
 
22647
 
Alternatively, you may set the environment variables XINERAMA_CFLAGS
22648
 
and XINERAMA_LIBS to avoid the need to call pkg-config.
22649
 
See the pkg-config man page for more details.
 
22443
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
 
22444
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22445
more details.
22650
22446
 
22651
22447
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22652
22448
See \`config.log' for more details." >&2;}
22691
22487
echo $ECHO_N "checking for XPM... $ECHO_C" >&6
22692
22488
 
22693
22489
if test -n "$PKG_CONFIG"; then
22694
 
    if test -n "$XPM_CFLAGS"; then
22695
 
        pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
22696
 
    else
22697
22490
        if test -n "$PKG_CONFIG" && \
22698
22491
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xpm\"") >&5
22699
22492
  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22704
22497
else
22705
22498
  pkg_failed=yes
22706
22499
fi
22707
 
    fi
22708
22500
else
22709
22501
        pkg_failed=untried
22710
22502
fi
22711
22503
if test -n "$PKG_CONFIG"; then
22712
 
    if test -n "$XPM_LIBS"; then
22713
 
        pkg_cv_XPM_LIBS="$XPM_LIBS"
22714
 
    else
22715
22504
        if test -n "$PKG_CONFIG" && \
22716
22505
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xpm\"") >&5
22717
22506
  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22722
22511
else
22723
22512
  pkg_failed=yes
22724
22513
fi
22725
 
    fi
22726
22514
else
22727
22515
        pkg_failed=untried
22728
22516
fi
22729
22517
 
22730
 
 
22731
 
 
22732
22518
if test $pkg_failed = yes; then
22733
 
 
22734
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22735
 
        _pkg_short_errors_supported=yes
22736
 
else
22737
 
        _pkg_short_errors_supported=no
22738
 
fi
22739
 
        if test $_pkg_short_errors_supported = yes; then
22740
 
                XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xpm"`
22741
 
        else
22742
 
                XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xpm"`
22743
 
        fi
 
22519
        XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xpm"`
22744
22520
        # Put the nasty error message in config.log where it belongs
22745
 
        echo "$XPM_PKG_ERRORS" >&5
22746
 
 
22747
 
        { { echo "$as_me:$LINENO: error: Package requirements (xpm) were not met:
22748
 
 
22749
 
$XPM_PKG_ERRORS
22750
 
 
22751
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22752
 
installed software in a non-standard prefix.
22753
 
 
22754
 
Alternatively, you may set the environment variables XPM_CFLAGS
22755
 
and XPM_LIBS to avoid the need to call pkg-config.
22756
 
See the pkg-config man page for more details.
22757
 
" >&5
22758
 
echo "$as_me: error: Package requirements (xpm) were not met:
22759
 
 
22760
 
$XPM_PKG_ERRORS
22761
 
 
22762
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22763
 
installed software in a non-standard prefix.
22764
 
 
22765
 
Alternatively, you may set the environment variables XPM_CFLAGS
22766
 
and XPM_LIBS to avoid the need to call pkg-config.
22767
 
See the pkg-config man page for more details.
22768
 
" >&2;}
 
22521
        echo "$XPM_PKG_ERRORS" 1>&5
 
22522
 
 
22523
        { { echo "$as_me:$LINENO: error: Package requirements (xpm) were not met.
 
22524
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22525
installed software in a non-standard prefix.
 
22526
 
 
22527
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
22528
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22529
more details." >&5
 
22530
echo "$as_me: error: Package requirements (xpm) were not met.
 
22531
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22532
installed software in a non-standard prefix.
 
22533
 
 
22534
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
22535
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22536
more details." >&2;}
22769
22537
   { (exit 1); exit 1; }; }
22770
22538
elif test $pkg_failed = untried; then
22771
22539
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22772
22540
is in your PATH or set the PKG_CONFIG environment variable to the full
22773
22541
path to pkg-config.
22774
22542
 
22775
 
Alternatively, you may set the environment variables XPM_CFLAGS
22776
 
and XPM_LIBS to avoid the need to call pkg-config.
22777
 
See the pkg-config man page for more details.
 
22543
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
22544
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22545
more details.
22778
22546
 
22779
22547
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22780
22548
See \`config.log' for more details." >&5
22782
22550
is in your PATH or set the PKG_CONFIG environment variable to the full
22783
22551
path to pkg-config.
22784
22552
 
22785
 
Alternatively, you may set the environment variables XPM_CFLAGS
22786
 
and XPM_LIBS to avoid the need to call pkg-config.
22787
 
See the pkg-config man page for more details.
 
22553
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
22554
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22555
more details.
22788
22556
 
22789
22557
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22790
22558
See \`config.log' for more details." >&2;}
22876
22644
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
22877
22645
 
22878
22646
if test -n "$PKG_CONFIG"; then
22879
 
    if test -n "$TMP_XAW_CFLAGS"; then
22880
 
        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
22881
 
    else
22882
22647
        if test -n "$PKG_CONFIG" && \
22883
22648
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
22884
22649
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
22889
22654
else
22890
22655
  pkg_failed=yes
22891
22656
fi
22892
 
    fi
22893
22657
else
22894
22658
        pkg_failed=untried
22895
22659
fi
22896
22660
if test -n "$PKG_CONFIG"; then
22897
 
    if test -n "$TMP_XAW_LIBS"; then
22898
 
        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
22899
 
    else
22900
22661
        if test -n "$PKG_CONFIG" && \
22901
22662
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
22902
22663
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
22907
22668
else
22908
22669
  pkg_failed=yes
22909
22670
fi
22910
 
    fi
22911
22671
else
22912
22672
        pkg_failed=untried
22913
22673
fi
22914
22674
 
22915
 
 
22916
 
 
22917
22675
if test $pkg_failed = yes; then
22918
 
 
22919
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22920
 
        _pkg_short_errors_supported=yes
22921
 
else
22922
 
        _pkg_short_errors_supported=no
22923
 
fi
22924
 
        if test $_pkg_short_errors_supported = yes; then
22925
 
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"`
22926
 
        else
22927
 
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
22928
 
        fi
 
22676
        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
22929
22677
        # Put the nasty error message in config.log where it belongs
22930
 
        echo "$TMP_XAW_PKG_ERRORS" >&5
 
22678
        echo "$TMP_XAW_PKG_ERRORS" 1>&5
22931
22679
 
22932
22680
        success=no
22933
22681
elif test $pkg_failed = untried; then
22947
22695
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
22948
22696
 
22949
22697
if test -n "$PKG_CONFIG"; then
22950
 
    if test -n "$TMP_XAW_CFLAGS"; then
22951
 
        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
22952
 
    else
22953
22698
        if test -n "$PKG_CONFIG" && \
22954
22699
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
22955
22700
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
22960
22705
else
22961
22706
  pkg_failed=yes
22962
22707
fi
22963
 
    fi
22964
22708
else
22965
22709
        pkg_failed=untried
22966
22710
fi
22967
22711
if test -n "$PKG_CONFIG"; then
22968
 
    if test -n "$TMP_XAW_LIBS"; then
22969
 
        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
22970
 
    else
22971
22712
        if test -n "$PKG_CONFIG" && \
22972
22713
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
22973
22714
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
22978
22719
else
22979
22720
  pkg_failed=yes
22980
22721
fi
22981
 
    fi
22982
22722
else
22983
22723
        pkg_failed=untried
22984
22724
fi
22985
22725
 
22986
 
 
22987
 
 
22988
22726
if test $pkg_failed = yes; then
22989
 
 
22990
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22991
 
        _pkg_short_errors_supported=yes
22992
 
else
22993
 
        _pkg_short_errors_supported=no
22994
 
fi
22995
 
        if test $_pkg_short_errors_supported = yes; then
22996
 
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"`
22997
 
        else
22998
 
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
22999
 
        fi
 
22727
        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
23000
22728
        # Put the nasty error message in config.log where it belongs
23001
 
        echo "$TMP_XAW_PKG_ERRORS" >&5
 
22729
        echo "$TMP_XAW_PKG_ERRORS" 1>&5
23002
22730
 
23003
22731
        success=no
23004
22732
elif test $pkg_failed = untried; then
23040
22768
echo $ECHO_N "checking for DMCP... $ECHO_C" >&6
23041
22769
 
23042
22770
if test -n "$PKG_CONFIG"; then
23043
 
    if test -n "$DMCP_CFLAGS"; then
23044
 
        pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
23045
 
    else
23046
22771
        if test -n "$PKG_CONFIG" && \
23047
22772
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
23048
22773
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
23053
22778
else
23054
22779
  pkg_failed=yes
23055
22780
fi
23056
 
    fi
23057
22781
else
23058
22782
        pkg_failed=untried
23059
22783
fi
23060
22784
if test -n "$PKG_CONFIG"; then
23061
 
    if test -n "$DMCP_LIBS"; then
23062
 
        pkg_cv_DMCP_LIBS="$DMCP_LIBS"
23063
 
    else
23064
22785
        if test -n "$PKG_CONFIG" && \
23065
22786
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
23066
22787
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
23071
22792
else
23072
22793
  pkg_failed=yes
23073
22794
fi
23074
 
    fi
23075
22795
else
23076
22796
        pkg_failed=untried
23077
22797
fi
23078
22798
 
23079
 
 
23080
 
 
23081
22799
if test $pkg_failed = yes; then
23082
 
 
23083
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23084
 
        _pkg_short_errors_supported=yes
23085
 
else
23086
 
        _pkg_short_errors_supported=no
23087
 
fi
23088
 
        if test $_pkg_short_errors_supported = yes; then
23089
 
                DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
23090
 
        else
23091
 
                DMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
23092
 
        fi
 
22800
        DMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
23093
22801
        # Put the nasty error message in config.log where it belongs
23094
 
        echo "$DMCP_PKG_ERRORS" >&5
23095
 
 
23096
 
        { { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
23097
 
 
23098
 
$DMCP_PKG_ERRORS
23099
 
 
23100
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23101
 
installed software in a non-standard prefix.
23102
 
 
23103
 
Alternatively, you may set the environment variables DMCP_CFLAGS
23104
 
and DMCP_LIBS to avoid the need to call pkg-config.
23105
 
See the pkg-config man page for more details.
23106
 
" >&5
23107
 
echo "$as_me: error: Package requirements (xdmcp) were not met:
23108
 
 
23109
 
$DMCP_PKG_ERRORS
23110
 
 
23111
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23112
 
installed software in a non-standard prefix.
23113
 
 
23114
 
Alternatively, you may set the environment variables DMCP_CFLAGS
23115
 
and DMCP_LIBS to avoid the need to call pkg-config.
23116
 
See the pkg-config man page for more details.
23117
 
" >&2;}
 
22802
        echo "$DMCP_PKG_ERRORS" 1>&5
 
22803
 
 
22804
        { { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met.
 
22805
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22806
installed software in a non-standard prefix.
 
22807
 
 
22808
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
 
22809
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22810
more details." >&5
 
22811
echo "$as_me: error: Package requirements (xdmcp) were not met.
 
22812
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22813
installed software in a non-standard prefix.
 
22814
 
 
22815
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
 
22816
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22817
more details." >&2;}
23118
22818
   { (exit 1); exit 1; }; }
23119
22819
elif test $pkg_failed = untried; then
23120
22820
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23121
22821
is in your PATH or set the PKG_CONFIG environment variable to the full
23122
22822
path to pkg-config.
23123
22823
 
23124
 
Alternatively, you may set the environment variables DMCP_CFLAGS
23125
 
and DMCP_LIBS to avoid the need to call pkg-config.
23126
 
See the pkg-config man page for more details.
 
22824
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
 
22825
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22826
more details.
23127
22827
 
23128
22828
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23129
22829
See \`config.log' for more details." >&5
23131
22831
is in your PATH or set the PKG_CONFIG environment variable to the full
23132
22832
path to pkg-config.
23133
22833
 
23134
 
Alternatively, you may set the environment variables DMCP_CFLAGS
23135
 
and DMCP_LIBS to avoid the need to call pkg-config.
23136
 
See the pkg-config man page for more details.
 
22834
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
 
22835
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22836
more details.
23137
22837
 
23138
22838
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23139
22839
See \`config.log' for more details." >&2;}
23151
22851
echo $ECHO_N "checking for XLIB... $ECHO_C" >&6
23152
22852
 
23153
22853
if test -n "$PKG_CONFIG"; then
23154
 
    if test -n "$XLIB_CFLAGS"; then
23155
 
        pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
23156
 
    else
23157
22854
        if test -n "$PKG_CONFIG" && \
23158
22855
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
23159
22856
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
23164
22861
else
23165
22862
  pkg_failed=yes
23166
22863
fi
23167
 
    fi
23168
22864
else
23169
22865
        pkg_failed=untried
23170
22866
fi
23171
22867
if test -n "$PKG_CONFIG"; then
23172
 
    if test -n "$XLIB_LIBS"; then
23173
 
        pkg_cv_XLIB_LIBS="$XLIB_LIBS"
23174
 
    else
23175
22868
        if test -n "$PKG_CONFIG" && \
23176
22869
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
23177
22870
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
23182
22875
else
23183
22876
  pkg_failed=yes
23184
22877
fi
23185
 
    fi
23186
22878
else
23187
22879
        pkg_failed=untried
23188
22880
fi
23189
22881
 
23190
 
 
23191
 
 
23192
22882
if test $pkg_failed = yes; then
23193
 
 
23194
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23195
 
        _pkg_short_errors_supported=yes
23196
 
else
23197
 
        _pkg_short_errors_supported=no
23198
 
fi
23199
 
        if test $_pkg_short_errors_supported = yes; then
23200
 
                XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
23201
 
        else
23202
 
                XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
23203
 
        fi
 
22883
        XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
23204
22884
        # Put the nasty error message in config.log where it belongs
23205
 
        echo "$XLIB_PKG_ERRORS" >&5
23206
 
 
23207
 
        { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
23208
 
 
23209
 
$XLIB_PKG_ERRORS
23210
 
 
23211
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23212
 
installed software in a non-standard prefix.
23213
 
 
23214
 
Alternatively, you may set the environment variables XLIB_CFLAGS
23215
 
and XLIB_LIBS to avoid the need to call pkg-config.
23216
 
See the pkg-config man page for more details.
23217
 
" >&5
23218
 
echo "$as_me: error: Package requirements (x11) were not met:
23219
 
 
23220
 
$XLIB_PKG_ERRORS
23221
 
 
23222
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23223
 
installed software in a non-standard prefix.
23224
 
 
23225
 
Alternatively, you may set the environment variables XLIB_CFLAGS
23226
 
and XLIB_LIBS to avoid the need to call pkg-config.
23227
 
See the pkg-config man page for more details.
23228
 
" >&2;}
 
22885
        echo "$XLIB_PKG_ERRORS" 1>&5
 
22886
 
 
22887
        { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met.
 
22888
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22889
installed software in a non-standard prefix.
 
22890
 
 
22891
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
 
22892
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22893
more details." >&5
 
22894
echo "$as_me: error: Package requirements (x11) were not met.
 
22895
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22896
installed software in a non-standard prefix.
 
22897
 
 
22898
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
 
22899
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22900
more details." >&2;}
23229
22901
   { (exit 1); exit 1; }; }
23230
22902
elif test $pkg_failed = untried; then
23231
22903
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23232
22904
is in your PATH or set the PKG_CONFIG environment variable to the full
23233
22905
path to pkg-config.
23234
22906
 
23235
 
Alternatively, you may set the environment variables XLIB_CFLAGS
23236
 
and XLIB_LIBS to avoid the need to call pkg-config.
23237
 
See the pkg-config man page for more details.
 
22907
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
 
22908
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22909
more details.
23238
22910
 
23239
22911
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23240
22912
See \`config.log' for more details." >&5
23242
22914
is in your PATH or set the PKG_CONFIG environment variable to the full
23243
22915
path to pkg-config.
23244
22916
 
23245
 
Alternatively, you may set the environment variables XLIB_CFLAGS
23246
 
and XLIB_LIBS to avoid the need to call pkg-config.
23247
 
See the pkg-config man page for more details.
 
22917
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
 
22918
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22919
more details.
23248
22920
 
23249
22921
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23250
22922
See \`config.log' for more details." >&2;}
23262
22934
echo $ECHO_N "checking for AUTH... $ECHO_C" >&6
23263
22935
 
23264
22936
if test -n "$PKG_CONFIG"; then
23265
 
    if test -n "$AUTH_CFLAGS"; then
23266
 
        pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
23267
 
    else
23268
22937
        if test -n "$PKG_CONFIG" && \
23269
22938
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xau\"") >&5
23270
22939
  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
23275
22944
else
23276
22945
  pkg_failed=yes
23277
22946
fi
23278
 
    fi
23279
22947
else
23280
22948
        pkg_failed=untried
23281
22949
fi
23282
22950
if test -n "$PKG_CONFIG"; then
23283
 
    if test -n "$AUTH_LIBS"; then
23284
 
        pkg_cv_AUTH_LIBS="$AUTH_LIBS"
23285
 
    else
23286
22951
        if test -n "$PKG_CONFIG" && \
23287
22952
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xau\"") >&5
23288
22953
  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
23293
22958
else
23294
22959
  pkg_failed=yes
23295
22960
fi
23296
 
    fi
23297
22961
else
23298
22962
        pkg_failed=untried
23299
22963
fi
23300
22964
 
23301
 
 
23302
 
 
23303
22965
if test $pkg_failed = yes; then
23304
 
 
23305
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23306
 
        _pkg_short_errors_supported=yes
23307
 
else
23308
 
        _pkg_short_errors_supported=no
23309
 
fi
23310
 
        if test $_pkg_short_errors_supported = yes; then
23311
 
                AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xau"`
23312
 
        else
23313
 
                AUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xau"`
23314
 
        fi
 
22966
        AUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xau"`
23315
22967
        # Put the nasty error message in config.log where it belongs
23316
 
        echo "$AUTH_PKG_ERRORS" >&5
23317
 
 
23318
 
        { { echo "$as_me:$LINENO: error: Package requirements (xau) were not met:
23319
 
 
23320
 
$AUTH_PKG_ERRORS
23321
 
 
23322
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23323
 
installed software in a non-standard prefix.
23324
 
 
23325
 
Alternatively, you may set the environment variables AUTH_CFLAGS
23326
 
and AUTH_LIBS to avoid the need to call pkg-config.
23327
 
See the pkg-config man page for more details.
23328
 
" >&5
23329
 
echo "$as_me: error: Package requirements (xau) were not met:
23330
 
 
23331
 
$AUTH_PKG_ERRORS
23332
 
 
23333
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23334
 
installed software in a non-standard prefix.
23335
 
 
23336
 
Alternatively, you may set the environment variables AUTH_CFLAGS
23337
 
and AUTH_LIBS to avoid the need to call pkg-config.
23338
 
See the pkg-config man page for more details.
23339
 
" >&2;}
 
22968
        echo "$AUTH_PKG_ERRORS" 1>&5
 
22969
 
 
22970
        { { echo "$as_me:$LINENO: error: Package requirements (xau) were not met.
 
22971
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22972
installed software in a non-standard prefix.
 
22973
 
 
22974
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
 
22975
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22976
more details." >&5
 
22977
echo "$as_me: error: Package requirements (xau) were not met.
 
22978
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22979
installed software in a non-standard prefix.
 
22980
 
 
22981
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
 
22982
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22983
more details." >&2;}
23340
22984
   { (exit 1); exit 1; }; }
23341
22985
elif test $pkg_failed = untried; then
23342
22986
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23343
22987
is in your PATH or set the PKG_CONFIG environment variable to the full
23344
22988
path to pkg-config.
23345
22989
 
23346
 
Alternatively, you may set the environment variables AUTH_CFLAGS
23347
 
and AUTH_LIBS to avoid the need to call pkg-config.
23348
 
See the pkg-config man page for more details.
 
22990
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
 
22991
to avoid the need to call pkg-config.  See the pkg-config man page for
 
22992
more details.
23349
22993
 
23350
22994
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23351
22995
See \`config.log' for more details." >&5
23353
22997
is in your PATH or set the PKG_CONFIG environment variable to the full
23354
22998
path to pkg-config.
23355
22999
 
23356
 
Alternatively, you may set the environment variables AUTH_CFLAGS
23357
 
and AUTH_LIBS to avoid the need to call pkg-config.
23358
 
See the pkg-config man page for more details.
 
23000
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
 
23001
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23002
more details.
23359
23003
 
23360
23004
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23361
23005
See \`config.log' for more details." >&2;}
23413
23057
echo $ECHO_N "checking for XDMGREET... $ECHO_C" >&6
23414
23058
 
23415
23059
if test -n "$PKG_CONFIG"; then
23416
 
    if test -n "$XDMGREET_CFLAGS"; then
23417
 
        pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
23418
 
    else
23419
23060
        if test -n "$PKG_CONFIG" && \
23420
23061
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\"") >&5
23421
23062
  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
23426
23067
else
23427
23068
  pkg_failed=yes
23428
23069
fi
23429
 
    fi
23430
23070
else
23431
23071
        pkg_failed=untried
23432
23072
fi
23433
23073
if test -n "$PKG_CONFIG"; then
23434
 
    if test -n "$XDMGREET_LIBS"; then
23435
 
        pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
23436
 
    else
23437
23074
        if test -n "$PKG_CONFIG" && \
23438
23075
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\"") >&5
23439
23076
  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
23444
23081
else
23445
23082
  pkg_failed=yes
23446
23083
fi
23447
 
    fi
23448
23084
else
23449
23085
        pkg_failed=untried
23450
23086
fi
23451
23087
 
23452
 
 
23453
 
 
23454
23088
if test $pkg_failed = yes; then
23455
 
 
23456
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23457
 
        _pkg_short_errors_supported=yes
23458
 
else
23459
 
        _pkg_short_errors_supported=no
23460
 
fi
23461
 
        if test $_pkg_short_errors_supported = yes; then
23462
 
                XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt x11 xext"`
23463
 
        else
23464
 
                XDMGREET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt x11 xext"`
23465
 
        fi
 
23089
        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt x11 xext"`
23466
23090
        # Put the nasty error message in config.log where it belongs
23467
 
        echo "$XDMGREET_PKG_ERRORS" >&5
23468
 
 
23469
 
        { { echo "$as_me:$LINENO: error: Package requirements (xt x11 xext) were not met:
23470
 
 
23471
 
$XDMGREET_PKG_ERRORS
23472
 
 
23473
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23474
 
installed software in a non-standard prefix.
23475
 
 
23476
 
Alternatively, you may set the environment variables XDMGREET_CFLAGS
23477
 
and XDMGREET_LIBS to avoid the need to call pkg-config.
23478
 
See the pkg-config man page for more details.
23479
 
" >&5
23480
 
echo "$as_me: error: Package requirements (xt x11 xext) were not met:
23481
 
 
23482
 
$XDMGREET_PKG_ERRORS
23483
 
 
23484
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23485
 
installed software in a non-standard prefix.
23486
 
 
23487
 
Alternatively, you may set the environment variables XDMGREET_CFLAGS
23488
 
and XDMGREET_LIBS to avoid the need to call pkg-config.
23489
 
See the pkg-config man page for more details.
23490
 
" >&2;}
 
23091
        echo "$XDMGREET_PKG_ERRORS" 1>&5
 
23092
 
 
23093
        { { echo "$as_me:$LINENO: error: Package requirements (xt x11 xext) were not met.
 
23094
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23095
installed software in a non-standard prefix.
 
23096
 
 
23097
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
 
23098
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23099
more details." >&5
 
23100
echo "$as_me: error: Package requirements (xt x11 xext) were not met.
 
23101
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23102
installed software in a non-standard prefix.
 
23103
 
 
23104
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
 
23105
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23106
more details." >&2;}
23491
23107
   { (exit 1); exit 1; }; }
23492
23108
elif test $pkg_failed = untried; then
23493
23109
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23494
23110
is in your PATH or set the PKG_CONFIG environment variable to the full
23495
23111
path to pkg-config.
23496
23112
 
23497
 
Alternatively, you may set the environment variables XDMGREET_CFLAGS
23498
 
and XDMGREET_LIBS to avoid the need to call pkg-config.
23499
 
See the pkg-config man page for more details.
 
23113
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
 
23114
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23115
more details.
23500
23116
 
23501
23117
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23502
23118
See \`config.log' for more details." >&5
23504
23120
is in your PATH or set the PKG_CONFIG environment variable to the full
23505
23121
path to pkg-config.
23506
23122
 
23507
 
Alternatively, you may set the environment variables XDMGREET_CFLAGS
23508
 
and XDMGREET_LIBS to avoid the need to call pkg-config.
23509
 
See the pkg-config man page for more details.
 
23123
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
 
23124
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23125
more details.
23510
23126
 
23511
23127
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23512
23128
See \`config.log' for more details." >&2;}
23787
23403
echo $ECHO_N "checking for XT... $ECHO_C" >&6
23788
23404
 
23789
23405
if test -n "$PKG_CONFIG"; then
23790
 
    if test -n "$XT_CFLAGS"; then
23791
 
        pkg_cv_XT_CFLAGS="$XT_CFLAGS"
23792
 
    else
23793
23406
        if test -n "$PKG_CONFIG" && \
23794
23407
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
23795
23408
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23800
23413
else
23801
23414
  pkg_failed=yes
23802
23415
fi
23803
 
    fi
23804
23416
else
23805
23417
        pkg_failed=untried
23806
23418
fi
23807
23419
if test -n "$PKG_CONFIG"; then
23808
 
    if test -n "$XT_LIBS"; then
23809
 
        pkg_cv_XT_LIBS="$XT_LIBS"
23810
 
    else
23811
23420
        if test -n "$PKG_CONFIG" && \
23812
23421
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
23813
23422
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23818
23427
else
23819
23428
  pkg_failed=yes
23820
23429
fi
23821
 
    fi
23822
23430
else
23823
23431
        pkg_failed=untried
23824
23432
fi
23825
23433
 
23826
 
 
23827
 
 
23828
23434
if test $pkg_failed = yes; then
23829
 
 
23830
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23831
 
        _pkg_short_errors_supported=yes
23832
 
else
23833
 
        _pkg_short_errors_supported=no
23834
 
fi
23835
 
        if test $_pkg_short_errors_supported = yes; then
23836
 
                XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
23837
 
        else
23838
 
                XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
23839
 
        fi
 
23435
        XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
23840
23436
        # Put the nasty error message in config.log where it belongs
23841
 
        echo "$XT_PKG_ERRORS" >&5
23842
 
 
23843
 
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
23844
 
 
23845
 
$XT_PKG_ERRORS
23846
 
 
23847
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23848
 
installed software in a non-standard prefix.
23849
 
 
23850
 
Alternatively, you may set the environment variables XT_CFLAGS
23851
 
and XT_LIBS to avoid the need to call pkg-config.
23852
 
See the pkg-config man page for more details.
23853
 
" >&5
23854
 
echo "$as_me: error: Package requirements (xt) were not met:
23855
 
 
23856
 
$XT_PKG_ERRORS
23857
 
 
23858
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23859
 
installed software in a non-standard prefix.
23860
 
 
23861
 
Alternatively, you may set the environment variables XT_CFLAGS
23862
 
and XT_LIBS to avoid the need to call pkg-config.
23863
 
See the pkg-config man page for more details.
23864
 
" >&2;}
 
23437
        echo "$XT_PKG_ERRORS" 1>&5
 
23438
 
 
23439
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met.
 
23440
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23441
installed software in a non-standard prefix.
 
23442
 
 
23443
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
 
23444
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23445
more details." >&5
 
23446
echo "$as_me: error: Package requirements (xt) were not met.
 
23447
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23448
installed software in a non-standard prefix.
 
23449
 
 
23450
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
 
23451
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23452
more details." >&2;}
23865
23453
   { (exit 1); exit 1; }; }
23866
23454
elif test $pkg_failed = untried; then
23867
23455
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23868
23456
is in your PATH or set the PKG_CONFIG environment variable to the full
23869
23457
path to pkg-config.
23870
23458
 
23871
 
Alternatively, you may set the environment variables XT_CFLAGS
23872
 
and XT_LIBS to avoid the need to call pkg-config.
23873
 
See the pkg-config man page for more details.
 
23459
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
 
23460
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23461
more details.
23874
23462
 
23875
23463
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23876
23464
See \`config.log' for more details." >&5
23878
23466
is in your PATH or set the PKG_CONFIG environment variable to the full
23879
23467
path to pkg-config.
23880
23468
 
23881
 
Alternatively, you may set the environment variables XT_CFLAGS
23882
 
and XT_LIBS to avoid the need to call pkg-config.
23883
 
See the pkg-config man page for more details.
 
23469
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
 
23470
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23471
more details.
23884
23472
 
23885
23473
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23886
23474
See \`config.log' for more details." >&2;}
24171
23759
echo $ECHO_N "checking for APPDEFS... $ECHO_C" >&6
24172
23760
 
24173
23761
if test -n "$PKG_CONFIG"; then
24174
 
    if test -n "$APPDEFS_CFLAGS"; then
24175
 
        pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
24176
 
    else
24177
23762
        if test -n "$PKG_CONFIG" && \
24178
23763
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
24179
23764
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
24184
23769
else
24185
23770
  pkg_failed=yes
24186
23771
fi
24187
 
    fi
24188
23772
else
24189
23773
        pkg_failed=untried
24190
23774
fi
24191
23775
if test -n "$PKG_CONFIG"; then
24192
 
    if test -n "$APPDEFS_LIBS"; then
24193
 
        pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
24194
 
    else
24195
23776
        if test -n "$PKG_CONFIG" && \
24196
23777
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
24197
23778
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
24202
23783
else
24203
23784
  pkg_failed=yes
24204
23785
fi
24205
 
    fi
24206
23786
else
24207
23787
        pkg_failed=untried
24208
23788
fi
24209
23789
 
24210
 
 
24211
 
 
24212
23790
if test $pkg_failed = yes; then
24213
 
 
24214
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24215
 
        _pkg_short_errors_supported=yes
24216
 
else
24217
 
        _pkg_short_errors_supported=no
24218
 
fi
24219
 
        if test $_pkg_short_errors_supported = yes; then
24220
 
                APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
24221
 
        else
24222
 
                APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
24223
 
        fi
 
23791
        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
24224
23792
        # Put the nasty error message in config.log where it belongs
24225
 
        echo "$APPDEFS_PKG_ERRORS" >&5
24226
 
 
24227
 
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
24228
 
 
24229
 
$APPDEFS_PKG_ERRORS
24230
 
 
24231
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
24232
 
installed software in a non-standard prefix.
24233
 
 
24234
 
Alternatively, you may set the environment variables APPDEFS_CFLAGS
24235
 
and APPDEFS_LIBS to avoid the need to call pkg-config.
24236
 
See the pkg-config man page for more details.
24237
 
" >&5
24238
 
echo "$as_me: error: Package requirements (xt) were not met:
24239
 
 
24240
 
$APPDEFS_PKG_ERRORS
24241
 
 
24242
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
24243
 
installed software in a non-standard prefix.
24244
 
 
24245
 
Alternatively, you may set the environment variables APPDEFS_CFLAGS
24246
 
and APPDEFS_LIBS to avoid the need to call pkg-config.
24247
 
See the pkg-config man page for more details.
24248
 
" >&2;}
 
23793
        echo "$APPDEFS_PKG_ERRORS" 1>&5
 
23794
 
 
23795
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met.
 
23796
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23797
installed software in a non-standard prefix.
 
23798
 
 
23799
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
 
23800
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23801
more details." >&5
 
23802
echo "$as_me: error: Package requirements (xt) were not met.
 
23803
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23804
installed software in a non-standard prefix.
 
23805
 
 
23806
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
 
23807
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23808
more details." >&2;}
24249
23809
   { (exit 1); exit 1; }; }
24250
23810
elif test $pkg_failed = untried; then
24251
23811
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24252
23812
is in your PATH or set the PKG_CONFIG environment variable to the full
24253
23813
path to pkg-config.
24254
23814
 
24255
 
Alternatively, you may set the environment variables APPDEFS_CFLAGS
24256
 
and APPDEFS_LIBS to avoid the need to call pkg-config.
24257
 
See the pkg-config man page for more details.
 
23815
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
 
23816
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23817
more details.
24258
23818
 
24259
23819
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24260
23820
See \`config.log' for more details." >&5
24262
23822
is in your PATH or set the PKG_CONFIG environment variable to the full
24263
23823
path to pkg-config.
24264
23824
 
24265
 
Alternatively, you may set the environment variables APPDEFS_CFLAGS
24266
 
and APPDEFS_LIBS to avoid the need to call pkg-config.
24267
 
See the pkg-config man page for more details.
 
23825
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
 
23826
to avoid the need to call pkg-config.  See the pkg-config man page for
 
23827
more details.
24268
23828
 
24269
23829
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24270
23830
See \`config.log' for more details." >&2;}
24282
23842
 
24283
23843
 
24284
23844
 
 
23845
 
24285
23846
if test x$APP_MAN_SUFFIX = x    ; then
24286
23847
    case $host_os in
24287
 
        linux*) APP_MAN_SUFFIX=1x ;;
 
23848
        linux* | k*bsd*-gnu)    APP_MAN_SUFFIX=1x ;;
24288
23849
        *)      APP_MAN_SUFFIX=1  ;;
24289
23850
    esac
24290
23851
fi
24291
23852
if test x$APP_MAN_DIR = x    ; then
24292
23853
    case $host_os in
24293
 
        linux*) APP_MAN_DIR='$(mandir)/man1' ;;
 
23854
        linux* | k*bsd*-gnu)    APP_MAN_DIR='$(mandir)/man1' ;;
24294
23855
        *)      APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
24295
23856
    esac
24296
23857
fi
24297
23858
 
24298
23859
if test x$LIB_MAN_SUFFIX = x    ; then
24299
23860
    case $host_os in
24300
 
        linux*) LIB_MAN_SUFFIX=3x ;;
 
23861
        linux* | k*bsd*-gnu)    LIB_MAN_SUFFIX=3x ;;
24301
23862
        *)      LIB_MAN_SUFFIX=3  ;;
24302
23863
    esac
24303
23864
fi
24304
23865
if test x$LIB_MAN_DIR = x    ; then
24305
23866
    case $host_os in
24306
 
        linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
 
23867
        linux* | k*bsd*-gnu)    LIB_MAN_DIR='$(mandir)/man3' ;;
24307
23868
        *)      LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
24308
23869
    esac
24309
23870
fi
24310
23871
 
24311
23872
if test x$FILE_MAN_SUFFIX = x    ; then
24312
23873
    case $host_os in
24313
 
        linux*)         FILE_MAN_SUFFIX=5x ;;
 
23874
        linux* | k*bsd*-gnu)            FILE_MAN_SUFFIX=5x ;;
24314
23875
        solaris*)       FILE_MAN_SUFFIX=4  ;;
24315
23876
        *)              FILE_MAN_SUFFIX=5  ;;
24316
23877
    esac
24317
23878
fi
24318
23879
if test x$FILE_MAN_DIR = x    ; then
24319
23880
    case $host_os in
24320
 
        linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
 
23881
        linux* | k*bsd*-gnu)    FILE_MAN_DIR='$(mandir)/man5' ;;
24321
23882
        *)      FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
24322
23883
    esac
24323
23884
fi
24326
23887
# LinuxDebian, not other Linuxes, so we leave it unchanged here
24327
23888
if test x$MISC_MAN_SUFFIX = x    ; then
24328
23889
    case $host_os in
24329
 
#       linux*)         MISC_MAN_SUFFIX=7x ;;
 
23890
#       linux* | k*bsd*-gnu)            MISC_MAN_SUFFIX=7x ;;
24330
23891
        solaris*)       MISC_MAN_SUFFIX=5  ;;
24331
23892
        *)              MISC_MAN_SUFFIX=7  ;;
24332
23893
    esac
24333
23894
fi
24334
23895
if test x$MISC_MAN_DIR = x    ; then
24335
23896
    case $host_os in
24336
 
#       linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
 
23897
#       linux* | k*bsd*-gnu)    MISC_MAN_DIR='$(mandir)/man7' ;;
24337
23898
        *)      MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
24338
23899
    esac
24339
23900
fi
24342
23903
# LinuxDebian, not other Linuxes, so we leave it unchanged here
24343
23904
if test x$DRIVER_MAN_SUFFIX = x    ; then
24344
23905
    case $host_os in
24345
 
#       linux*)         DRIVER_MAN_SUFFIX=4x ;;
 
23906
#       linux* | k*bsd*-gnu)            DRIVER_MAN_SUFFIX=4x ;;
24346
23907
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
24347
23908
        *)              DRIVER_MAN_SUFFIX=4  ;;
24348
23909
    esac
24349
23910
fi
24350
23911
if test x$DRIVER_MAN_DIR = x    ; then
24351
23912
    case $host_os in
24352
 
#       linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
 
23913
#       linux* | k*bsd*-gnu)    DRIVER_MAN_DIR='$(mandir)/man4' ;;
24353
23914
        *)      DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
24354
23915
    esac
24355
23916
fi
24515
24076
Usually this means the macro was only invoked conditionally." >&2;}
24516
24077
   { (exit 1); exit 1; }; }
24517
24078
fi
 
24079
if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
 
24080
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
 
24081
Usually this means the macro was only invoked conditionally." >&5
 
24082
echo "$as_me: error: conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
 
24083
Usually this means the macro was only invoked conditionally." >&2;}
 
24084
   { (exit 1); exit 1; }; }
 
24085
fi
24518
24086
if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
24519
24087
  { { echo "$as_me:$LINENO: error: conditional \"HAS_SECURE_RPC\" was never defined.
24520
24088
Usually this means the macro was only invoked conditionally." >&5
24835
24403
} >&5
24836
24404
cat >&5 <<_CSEOF
24837
24405
 
24838
 
This file was extended by xdm $as_me 1.0.1, which was
 
24406
This file was extended by xdm $as_me 1.0.5, which was
24839
24407
generated by GNU Autoconf 2.59.  Invocation command line was
24840
24408
 
24841
24409
  CONFIG_FILES    = $CONFIG_FILES
24898
24466
 
24899
24467
cat >>$CONFIG_STATUS <<_ACEOF
24900
24468
ac_cs_version="\\
24901
 
xdm config.status 1.0.1
 
24469
xdm config.status 1.0.5
24902
24470
configured by $0, generated by GNU Autoconf 2.59,
24903
24471
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24904
24472
 
25114
24682
s,@STRIP@,$STRIP,;t t
25115
24683
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25116
24684
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
24685
s,@mkdir_p@,$mkdir_p,;t t
25117
24686
s,@AWK@,$AWK,;t t
25118
24687
s,@SET_MAKE@,$SET_MAKE,;t t
25119
24688
s,@am__leading_dot@,$am__leading_dot,;t t
25171
24740
s,@LIBTOOL@,$LIBTOOL,;t t
25172
24741
s,@RAWCPP@,$RAWCPP,;t t
25173
24742
s,@RAWCPPFLAGS@,$RAWCPPFLAGS,;t t
 
24743
s,@MKTEMP_COMMAND@,$MKTEMP_COMMAND,;t t
 
24744
s,@HAVE_MKTEMP_COMMAND_TRUE@,$HAVE_MKTEMP_COMMAND_TRUE,;t t
 
24745
s,@HAVE_MKTEMP_COMMAND_FALSE@,$HAVE_MKTEMP_COMMAND_FALSE,;t t
25174
24746
s,@HAS_SECURE_RPC_TRUE@,$HAS_SECURE_RPC_TRUE,;t t
25175
24747
s,@HAS_SECURE_RPC_FALSE@,$HAS_SECURE_RPC_FALSE,;t t
25176
24748
s,@SU@,$SU,;t t
25876
25448
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25877
25449
  # Extract the definition of DEP_FILES from the Makefile without
25878
25450
  # running `make'.
25879
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
25451
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25880
25452
  test -z "$DEPDIR" && continue
25881
25453
  # When using ansi2knr, U may be empty or an underscore; expand it
25882
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
25454
  U=`sed -n 's/^U = //p' < "$mf"`
25883
25455
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25884
25456
  # We invoke sed twice because it is the simplest approach to
25885
25457
  # changing $(DEPDIR) to its actual value in the expansion.
25886
 
  for file in `sed -n -e '
 
25458
  for file in `sed -n '
25887
25459
    /^DEP_FILES = .*\\\\$/ {
25888
25460
      s/^DEP_FILES = //
25889
25461
      :loop