~ubuntu-branches/ubuntu/natty/libxcomposite/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jamey Sharp
  • Date: 2006-11-27 16:07:41 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061127160741-cm6fow2bv0b0bla4
* calls UnlockDisplay without calling LockDisplay first (Closes:
  #400440)
* Add Josh and myself to Uploaders.
* Enable xsfbs patch application.
* Add quilt to Build-Depends.

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 libXcomposite 0.2.0.
 
3
# Generated by GNU Autoconf 2.59 for libXcomposite 0.3.
4
4
#
5
 
# Report bugs to <keithp@keithp.com>.
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
7
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
8
# This configure script is free software; the Free Software Foundation
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='libXcomposite'
425
425
PACKAGE_TARNAME='libXcomposite'
426
 
PACKAGE_VERSION='0.2.0'
427
 
PACKAGE_STRING='libXcomposite 0.2.0'
428
 
PACKAGE_BUGREPORT='keithp@keithp.com'
 
426
PACKAGE_VERSION='0.3'
 
427
PACKAGE_STRING='libXcomposite 0.3'
 
428
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
429
 
430
430
# Factoring default headers for most tests.
431
431
ac_includes_default="\
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS XCOMPOSITE_CFLAGS XCOMPOSITE_LIBS 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL COMPOSITEEXT_VERSION PKG_CONFIG ac_pt_PKG_CONFIG XCOMPOSITE_CFLAGS XCOMPOSITE_LIBS LIBOBJS LTLIBOBJS'
468
468
ac_subst_files=''
469
469
 
470
470
# Initialize some variables set by options.
949
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
 
ac_env_X_CFLAGS_set=${X_CFLAGS+set}
953
 
ac_env_X_CFLAGS_value=$X_CFLAGS
954
 
ac_cv_env_X_CFLAGS_set=${X_CFLAGS+set}
955
 
ac_cv_env_X_CFLAGS_value=$X_CFLAGS
956
 
ac_env_X_LIBS_set=${X_LIBS+set}
957
 
ac_env_X_LIBS_value=$X_LIBS
958
 
ac_cv_env_X_LIBS_set=${X_LIBS+set}
959
 
ac_cv_env_X_LIBS_value=$X_LIBS
960
952
ac_env_XCOMPOSITE_CFLAGS_set=${XCOMPOSITE_CFLAGS+set}
961
953
ac_env_XCOMPOSITE_CFLAGS_value=$XCOMPOSITE_CFLAGS
962
954
ac_cv_env_XCOMPOSITE_CFLAGS_set=${XCOMPOSITE_CFLAGS+set}
973
965
  # Omit some internal or obsolete options to make the list less imposing.
974
966
  # This message is too long to be a string in the A/UX 3.1 sh.
975
967
  cat <<_ACEOF
976
 
\`configure' configures libXcomposite 0.2.0 to adapt to many kinds of systems.
 
968
\`configure' configures libXcomposite 0.3 to adapt to many kinds of systems.
977
969
 
978
970
Usage: $0 [OPTION]... [VAR=VALUE]...
979
971
 
1031
1023
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1032
1024
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1033
1025
 
1034
 
X features:
1035
 
  --x-includes=DIR    X include files are in DIR
1036
 
  --x-libraries=DIR   X library files are in DIR
1037
 
 
1038
1026
System types:
1039
1027
  --build=BUILD     configure for building on BUILD [guessed]
1040
1028
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1043
1031
 
1044
1032
if test -n "$ac_init_help"; then
1045
1033
  case $ac_init_help in
1046
 
     short | recursive ) echo "Configuration of libXcomposite 0.2.0:";;
 
1034
     short | recursive ) echo "Configuration of libXcomposite 0.3:";;
1047
1035
   esac
1048
1036
  cat <<\_ACEOF
1049
1037
 
1070
1058
                          both]
1071
1059
  --with-tags[=TAGS]
1072
1060
                          include additional configurations [automatic]
1073
 
  --with-x                use the X Window System
 
1061
  --with-release-version=STRING
 
1062
                          Use release version string in package name
1074
1063
 
1075
1064
Some influential environment variables:
1076
1065
  CC          C compiler command
1086
1075
  F77         Fortran 77 compiler command
1087
1076
  FFLAGS      Fortran 77 compiler flags
1088
1077
  PKG_CONFIG  path to pkg-config utility
1089
 
  X_CFLAGS    C compiler flags for X, overriding pkg-config
1090
 
  X_LIBS      linker flags for X, overriding pkg-config
1091
1078
  XCOMPOSITE_CFLAGS
1092
1079
              C compiler flags for XCOMPOSITE, overriding pkg-config
1093
1080
  XCOMPOSITE_LIBS
1096
1083
Use these variables to override the choices made by `configure' or to help
1097
1084
it to find libraries and programs with nonstandard names/locations.
1098
1085
 
1099
 
Report bugs to <keithp@keithp.com>.
 
1086
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1100
1087
_ACEOF
1101
1088
fi
1102
1089
 
1185
1172
    else
1186
1173
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187
1174
    fi
1188
 
    cd "$ac_popdir"
 
1175
    cd $ac_popdir
1189
1176
  done
1190
1177
fi
1191
1178
 
1192
1179
test -n "$ac_init_help" && exit 0
1193
1180
if $ac_init_version; then
1194
1181
  cat <<\_ACEOF
1195
 
libXcomposite configure 0.2.0
 
1182
libXcomposite configure 0.3
1196
1183
generated by GNU Autoconf 2.59
1197
1184
 
1198
1185
Copyright (C) 2003 Free Software Foundation, Inc.
1206
1193
This file contains any messages produced by compilers while
1207
1194
running configure, to aid debugging if configure makes a mistake.
1208
1195
 
1209
 
It was created by libXcomposite $as_me 0.2.0, which was
 
1196
It was created by libXcomposite $as_me 0.3, which was
1210
1197
generated by GNU Autoconf 2.59.  Invocation command line was
1211
1198
 
1212
1199
  $ $0 $@
1849
1836
 
1850
1837
# Define the identity of the package.
1851
1838
 PACKAGE='libXcomposite'
1852
 
 VERSION='0.2.0'
 
1839
 VERSION='0.3'
1853
1840
 
1854
1841
 
1855
1842
cat >>confdefs.h <<_ACEOF
2576
2563
  cat conftest.err >&5
2577
2564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
2565
  (exit $ac_status); } &&
2579
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2566
         { ac_try='test -z "$ac_c_werror_flag"
 
2567
                         || test ! -s conftest.err'
2580
2568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581
2569
  (eval $ac_try) 2>&5
2582
2570
  ac_status=$?
2634
2622
  cat conftest.err >&5
2635
2623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636
2624
  (exit $ac_status); } &&
2637
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2625
         { ac_try='test -z "$ac_c_werror_flag"
 
2626
                         || test ! -s conftest.err'
2638
2627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639
2628
  (eval $ac_try) 2>&5
2640
2629
  ac_status=$?
2750
2739
  cat conftest.err >&5
2751
2740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752
2741
  (exit $ac_status); } &&
2753
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2742
         { ac_try='test -z "$ac_c_werror_flag"
 
2743
                         || test ! -s conftest.err'
2754
2744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755
2745
  (eval $ac_try) 2>&5
2756
2746
  ac_status=$?
2804
2794
  cat conftest.err >&5
2805
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806
2796
  (exit $ac_status); } &&
2807
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2797
         { ac_try='test -z "$ac_c_werror_flag"
 
2798
                         || test ! -s conftest.err'
2808
2799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809
2800
  (eval $ac_try) 2>&5
2810
2801
  ac_status=$?
2849
2840
  cat conftest.err >&5
2850
2841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851
2842
  (exit $ac_status); } &&
2852
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2843
         { ac_try='test -z "$ac_c_werror_flag"
 
2844
                         || test ! -s conftest.err'
2853
2845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854
2846
  (eval $ac_try) 2>&5
2855
2847
  ac_status=$?
2893
2885
  cat conftest.err >&5
2894
2886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895
2887
  (exit $ac_status); } &&
2896
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2888
         { ac_try='test -z "$ac_c_werror_flag"
 
2889
                         || test ! -s conftest.err'
2897
2890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898
2891
  (eval $ac_try) 2>&5
2899
2892
  ac_status=$?
3257
3250
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3258
3251
# along with /bin/sed that truncates output.
3259
3252
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3260
 
  test ! -f $lt_ac_sed && break
 
3253
  test ! -f $lt_ac_sed && continue
3261
3254
  cat /dev/null > conftest.in
3262
3255
  lt_ac_count=0
3263
3256
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3282
3275
    fi
3283
3276
  done
3284
3277
done
 
3278
 
 
3279
fi
 
3280
 
3285
3281
SED=$lt_cv_path_SED
3286
 
 
3287
 
fi
3288
 
 
3289
3282
echo "$as_me:$LINENO: result: $SED" >&5
3290
3283
echo "${ECHO_T}$SED" >&6
3291
3284
 
3362
3355
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3363
3356
      lt_cv_path_LD="$ac_dir/$ac_prog"
3364
3357
      # Check to see if the program is GNU ld.  I'd rather use --version,
3365
 
      # but apparently some GNU ld's only accept -v.
 
3358
      # but apparently some variants of GNU ld only accept -v.
3366
3359
      # Break only if it was the GNU/non-GNU ld that we prefer.
3367
3360
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3368
3361
      *GNU* | *'with BFD'*)
3396
3389
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3397
3390
  echo $ECHO_N "(cached) $ECHO_C" >&6
3398
3391
else
3399
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3392
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3400
3393
case `$LD -v 2>&1 </dev/null` in
3401
3394
*GNU* | *'with BFD'*)
3402
3395
  lt_cv_prog_gnu_ld=yes
3426
3419
*) reload_flag=" $reload_flag" ;;
3427
3420
esac
3428
3421
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3422
case $host_os in
 
3423
  darwin*)
 
3424
    if test "$GCC" = yes; then
 
3425
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3426
    else
 
3427
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3428
    fi
 
3429
    ;;
 
3430
esac
3429
3431
 
3430
3432
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3431
3433
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3436
3438
  # Let the user override the test.
3437
3439
  lt_cv_path_NM="$NM"
3438
3440
else
3439
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3440
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3441
 
    IFS="$lt_save_ifs"
3442
 
    test -z "$ac_dir" && ac_dir=.
3443
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3444
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3445
 
      # Check to see if the nm accepts a BSD-compat flag.
3446
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3447
 
      #   nm: unknown option "B" ignored
3448
 
      # Tru64's nm complains that /dev/null is an invalid object file
3449
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3450
 
      */dev/null* | *'Invalid file or object type'*)
3451
 
        lt_cv_path_NM="$tmp_nm -B"
3452
 
        break
3453
 
        ;;
3454
 
      *)
3455
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3456
 
        */dev/null*)
3457
 
          lt_cv_path_NM="$tmp_nm -p"
 
3441
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3442
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3443
    lt_nm_to_check="$lt_nm_to_check nm"
 
3444
  fi
 
3445
  for lt_tmp_nm in $lt_nm_to_check; do
 
3446
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3447
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3448
      IFS="$lt_save_ifs"
 
3449
      test -z "$ac_dir" && ac_dir=.
 
3450
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3451
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3452
        # Check to see if the nm accepts a BSD-compat flag.
 
3453
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3454
        #   nm: unknown option "B" ignored
 
3455
        # Tru64's nm complains that /dev/null is an invalid object file
 
3456
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3457
        */dev/null* | *'Invalid file or object type'*)
 
3458
          lt_cv_path_NM="$tmp_nm -B"
3458
3459
          break
3459
3460
          ;;
3460
3461
        *)
3461
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3462
 
          continue # so that we can try to find one that supports BSD flags
 
3462
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3463
          */dev/null*)
 
3464
            lt_cv_path_NM="$tmp_nm -p"
 
3465
            break
 
3466
            ;;
 
3467
          *)
 
3468
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3469
            continue # so that we can try to find one that supports BSD flags
 
3470
            ;;
 
3471
          esac
3463
3472
          ;;
3464
3473
        esac
3465
 
      esac
3466
 
    fi
 
3474
      fi
 
3475
    done
 
3476
    IFS="$lt_save_ifs"
3467
3477
  done
3468
 
  IFS="$lt_save_ifs"
3469
3478
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3470
3479
fi
3471
3480
fi
3512
3521
  lt_cv_deplibs_check_method=pass_all
3513
3522
  ;;
3514
3523
 
3515
 
bsdi4*)
 
3524
bsdi[45]*)
3516
3525
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3517
3526
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3518
3527
  lt_cv_file_magic_test_file=/shlib/libc.so
3535
3544
  lt_cv_deplibs_check_method=pass_all
3536
3545
  ;;
3537
3546
 
3538
 
freebsd* | kfreebsd*-gnu)
 
3547
freebsd* | kfreebsd*-gnu | dragonfly*)
3539
3548
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3540
3549
    case $host_cpu in
3541
3550
    i*86 )
3542
3551
      # Not sure whether the presence of OpenBSD here was a mistake.
3543
3552
      # Let's accept both of them until this is cleared up.
3544
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3553
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3545
3554
      lt_cv_file_magic_cmd=/usr/bin/file
3546
3555
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3547
3556
      ;;
3557
3566
 
3558
3567
hpux10.20* | hpux11*)
3559
3568
  lt_cv_file_magic_cmd=/usr/bin/file
3560
 
  case "$host_cpu" in
 
3569
  case $host_cpu in
3561
3570
  ia64*)
3562
3571
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3563
3572
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3573
3582
  esac
3574
3583
  ;;
3575
3584
 
 
3585
interix3*)
 
3586
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3587
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3588
  ;;
 
3589
 
3576
3590
irix5* | irix6* | nonstopux*)
3577
3591
  case $LD in
3578
3592
  *-32|*"-32 ") libmagic=32-bit;;
3588
3602
  lt_cv_deplibs_check_method=pass_all
3589
3603
  ;;
3590
3604
 
3591
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3605
netbsd*)
3592
3606
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593
3607
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3594
3608
  else
3607
3621
  ;;
3608
3622
 
3609
3623
openbsd*)
3610
 
  lt_cv_file_magic_cmd=/usr/bin/file
3611
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3612
3624
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3613
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3625
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3614
3626
  else
3615
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3627
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3616
3628
  fi
3617
3629
  ;;
3618
3630
 
3620
3632
  lt_cv_deplibs_check_method=pass_all
3621
3633
  ;;
3622
3634
 
3623
 
sco3.2v5*)
3624
 
  lt_cv_deplibs_check_method=pass_all
3625
 
  ;;
3626
 
 
3627
3635
solaris*)
3628
3636
  lt_cv_deplibs_check_method=pass_all
3629
3637
  ;;
3630
3638
 
3631
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3639
sysv4 | sysv4.3*)
3632
3640
  case $host_vendor in
3633
3641
  motorola)
3634
3642
    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]'
3649
3657
  siemens)
3650
3658
    lt_cv_deplibs_check_method=pass_all
3651
3659
    ;;
 
3660
  pc)
 
3661
    lt_cv_deplibs_check_method=pass_all
 
3662
    ;;
3652
3663
  esac
3653
3664
  ;;
3654
3665
 
3655
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3666
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3656
3667
  lt_cv_deplibs_check_method=pass_all
3657
3668
  ;;
3658
3669
esac
3670
3681
# If no C compiler was specified, use CC.
3671
3682
LTCC=${LTCC-"$CC"}
3672
3683
 
 
3684
# If no C compiler flags were specified, use CFLAGS.
 
3685
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3686
 
3673
3687
# Allow CC to be a program name with arguments.
3674
3688
compiler=$CC
3675
3689
 
3705
3719
  ;;
3706
3720
*-*-irix6*)
3707
3721
  # Find out which ABI we are using.
3708
 
  echo '#line 3708 "configure"' > conftest.$ac_ext
 
3722
  echo '#line 3722 "configure"' > conftest.$ac_ext
3709
3723
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710
3724
  (eval $ac_compile) 2>&5
3711
3725
  ac_status=$?
3748
3762
  ac_status=$?
3749
3763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
3764
  (exit $ac_status); }; then
3751
 
    case "`/usr/bin/file conftest.o`" in
 
3765
    case `/usr/bin/file conftest.o` in
3752
3766
    *32-bit*)
3753
3767
      case $host in
3754
3768
        x86_64-*linux*)
3825
3839
  cat conftest.err >&5
3826
3840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827
3841
  (exit $ac_status); } &&
3828
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3842
         { ac_try='test -z "$ac_c_werror_flag"
 
3843
                         || test ! -s conftest.err'
3829
3844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830
3845
  (eval $ac_try) 2>&5
3831
3846
  ac_status=$?
3860
3875
    CFLAGS="$SAVE_CFLAGS"
3861
3876
  fi
3862
3877
  ;;
 
3878
sparc*-*solaris*)
 
3879
  # Find out which ABI we are using.
 
3880
  echo 'int i;' > conftest.$ac_ext
 
3881
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3882
  (eval $ac_compile) 2>&5
 
3883
  ac_status=$?
 
3884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3885
  (exit $ac_status); }; then
 
3886
    case `/usr/bin/file conftest.o` in
 
3887
    *64-bit*)
 
3888
      case $lt_cv_prog_gnu_ld in
 
3889
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3890
      *)    LD="${LD-ld} -64" ;;
 
3891
      esac
 
3892
      ;;
 
3893
    esac
 
3894
  fi
 
3895
  rm -rf conftest*
 
3896
  ;;
 
3897
 
3863
3898
 
3864
3899
esac
3865
3900
 
4134
4169
  cat conftest.err >&5
4135
4170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
4171
  (exit $ac_status); } &&
4137
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4172
         { ac_try='test -z "$ac_c_werror_flag"
 
4173
                         || test ! -s conftest.err'
4138
4174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139
4175
  (eval $ac_try) 2>&5
4140
4176
  ac_status=$?
4304
4340
  cat conftest.err >&5
4305
4341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
4342
  (exit $ac_status); } &&
4307
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4343
         { ac_try='test -z "$ac_c_werror_flag"
 
4344
                         || test ! -s conftest.err'
4308
4345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309
4346
  (eval $ac_try) 2>&5
4310
4347
  ac_status=$?
4371
4408
  cat conftest.err >&5
4372
4409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373
4410
  (exit $ac_status); } &&
4374
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4411
         { ac_try='test -z "$ac_c_werror_flag"
 
4412
                         || test ! -s conftest.err'
4375
4413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376
4414
  (eval $ac_try) 2>&5
4377
4415
  ac_status=$?
4458
4496
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4459
4497
    (
4460
4498
      cat <<\_ASBOX
4461
 
## -------------------------------- ##
4462
 
## Report this to keithp@keithp.com ##
4463
 
## -------------------------------- ##
 
4499
## ---------------------------------------------------------------------- ##
 
4500
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
4501
## ---------------------------------------------------------------------- ##
4464
4502
_ASBOX
4465
4503
    ) |
4466
4504
      sed "s/^/$as_me: WARNING:     /" >&2
4631
4669
  cat conftest.err >&5
4632
4670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633
4671
  (exit $ac_status); } &&
4634
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4672
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4673
                         || test ! -s conftest.err'
4635
4674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636
4675
  (eval $ac_try) 2>&5
4637
4676
  ac_status=$?
4689
4728
  cat conftest.err >&5
4690
4729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691
4730
  (exit $ac_status); } &&
4692
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4731
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4732
                         || test ! -s conftest.err'
4693
4733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694
4734
  (eval $ac_try) 2>&5
4695
4735
  ac_status=$?
4760
4800
  cat conftest.err >&5
4761
4801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
4802
  (exit $ac_status); } &&
4763
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4803
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4804
                         || test ! -s conftest.err'
4764
4805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765
4806
  (eval $ac_try) 2>&5
4766
4807
  ac_status=$?
4804
4845
  cat conftest.err >&5
4805
4846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806
4847
  (exit $ac_status); } &&
4807
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4848
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4849
                         || test ! -s conftest.err'
4808
4850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809
4851
  (eval $ac_try) 2>&5
4810
4852
  ac_status=$?
4946
4988
fi
4947
4989
 
4948
4990
 
4949
 
ac_ext=cc
 
4991
 
 
4992
 
 
4993
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4994
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4995
    (test "X$CXX" != "Xg++"))) ; then
 
4996
  ac_ext=cc
4950
4997
ac_cpp='$CXXCPP $CPPFLAGS'
4951
4998
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952
4999
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176
5223
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177
5224
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5178
5225
 
 
5226
fi
 
5227
 
5179
5228
 
5180
5229
ac_ext=f
5181
5230
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5269
5318
 
5270
5319
 
5271
5320
# Provide some information about the compiler.
5272
 
echo "$as_me:5272:" \
 
5321
echo "$as_me:5321:" \
5273
5322
     "checking for Fortran 77 compiler version" >&5
5274
5323
ac_compiler=`set X $ac_compile; echo $2`
5275
5324
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5315
5364
  cat conftest.err >&5
5316
5365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317
5366
  (exit $ac_status); } &&
5318
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5367
         { ac_try='test -z "$ac_f77_werror_flag"
 
5368
                         || test ! -s conftest.err'
5319
5369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320
5370
  (eval $ac_try) 2>&5
5321
5371
  ac_status=$?
5364
5414
  cat conftest.err >&5
5365
5415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366
5416
  (exit $ac_status); } &&
5367
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5417
         { ac_try='test -z "$ac_f77_werror_flag"
 
5418
                         || test ! -s conftest.err'
5368
5419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369
5420
  (eval $ac_try) 2>&5
5370
5421
  ac_status=$?
5457
5508
    lt_cv_sys_max_cmd_len=8192;
5458
5509
    ;;
5459
5510
 
5460
 
 *)
 
5511
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5512
    # This has been around since 386BSD, at least.  Likely further.
 
5513
    if test -x /sbin/sysctl; then
 
5514
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5515
    elif test -x /usr/sbin/sysctl; then
 
5516
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5517
    else
 
5518
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5519
    fi
 
5520
    # And add a safety zone
 
5521
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5522
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5523
    ;;
 
5524
 
 
5525
  interix*)
 
5526
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5527
    lt_cv_sys_max_cmd_len=196608
 
5528
    ;;
 
5529
 
 
5530
  osf*)
 
5531
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5532
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5533
    # nice to cause kernel panics so lets avoid the loop below.
 
5534
    # First set a reasonable default.
 
5535
    lt_cv_sys_max_cmd_len=16384
 
5536
    #
 
5537
    if test -x /sbin/sysconfig; then
 
5538
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5539
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5540
      esac
 
5541
    fi
 
5542
    ;;
 
5543
  sco3.2v5*)
 
5544
    lt_cv_sys_max_cmd_len=102400
 
5545
    ;;
 
5546
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5547
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5548
    if test -n "$kargmax"; then
 
5549
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5550
    else
 
5551
      lt_cv_sys_max_cmd_len=32768
 
5552
    fi
 
5553
    ;;
 
5554
  *)
5461
5555
    # If test is not a shell built-in, we'll probably end up computing a
5462
5556
    # maximum length that is only half of the actual maximum length, but
5463
5557
    # we can't tell.
5464
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5558
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5559
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5465
5560
               = "XX$teststring") >/dev/null 2>&1 &&
5466
5561
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5467
5562
            lt_cv_sys_max_cmd_len=$new_result &&
5507
5602
# Regexp to match symbols that can be accessed directly from C.
5508
5603
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5509
5604
 
5510
 
# Transform the above into a raw symbol and a C symbol.
5511
 
symxfrm='\1 \2\3 \3'
5512
 
 
5513
5605
# Transform an extracted symbol line into a proper C declaration
5514
5606
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5515
5607
 
5531
5623
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5532
5624
  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'"
5533
5625
  ;;
 
5626
linux*)
 
5627
  if test "$host_cpu" = ia64; then
 
5628
    symcode='[ABCDGIRSTW]'
 
5629
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5630
    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'"
 
5631
  fi
 
5632
  ;;
5534
5633
irix* | nonstopux*)
5535
5634
  symcode='[BCDEGRST]'
5536
5635
  ;;
5537
5636
osf*)
5538
5637
  symcode='[BCDEGQRST]'
5539
5638
  ;;
5540
 
solaris* | sysv5*)
 
5639
solaris*)
5541
5640
  symcode='[BDRT]'
5542
5641
  ;;
 
5642
sco3.2v5*)
 
5643
  symcode='[DT]'
 
5644
  ;;
 
5645
sysv4.2uw2*)
 
5646
  symcode='[DT]'
 
5647
  ;;
 
5648
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5649
  symcode='[ABDT]'
 
5650
  ;;
5543
5651
sysv4)
5544
5652
  symcode='[DFNSTU]'
5545
5653
  ;;
5562
5670
# Try without a prefix undercore, then with it.
5563
5671
for ac_symprfx in "" "_"; do
5564
5672
 
 
5673
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5674
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5675
 
5565
5676
  # Write the raw and C identifiers.
5566
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5677
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5567
5678
 
5568
5679
  # Check to see that the pipe works correctly.
5569
5680
  pipe_works=no
5725
5836
 
5726
5837
# Sed substitution that helps us do robust quoting.  It backslashifies
5727
5838
# metacharacters that are still active within double-quoted strings.
5728
 
Xsed='sed -e s/^X//'
 
5839
Xsed='sed -e 1s/^X//'
5729
5840
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5730
5841
 
5731
5842
# Same as above, but do not quote variable references.
5745
5856
default_ofile=libtool
5746
5857
can_build_shared=yes
5747
5858
 
5748
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5859
# All known linkers require a `.a' archive for static linking (except MSVC,
5749
5860
# which needs '.lib').
5750
5861
libext=a
5751
5862
ltmain="$ac_aux_dir/ltmain.sh"
6002
6113
test -z "$AS" && AS=as
6003
6114
test -z "$CC" && CC=cc
6004
6115
test -z "$LTCC" && LTCC=$CC
 
6116
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6005
6117
test -z "$DLLTOOL" && DLLTOOL=dlltool
6006
6118
test -z "$LD" && LD=ld
6007
6119
test -z "$LN_S" && LN_S="ln -s"
6021
6133
if test -n "$RANLIB"; then
6022
6134
  case $host_os in
6023
6135
  openbsd*)
6024
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6136
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6025
6137
    ;;
6026
6138
  *)
6027
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6139
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6028
6140
    ;;
6029
6141
  esac
6030
6142
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6031
6143
fi
6032
6144
 
 
6145
for cc_temp in $compiler""; do
 
6146
  case $cc_temp in
 
6147
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6148
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6149
    \-*) ;;
 
6150
    *) break;;
 
6151
  esac
 
6152
done
 
6153
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6154
 
 
6155
 
6033
6156
# Only perform the check for file, if the check method requires it
6034
6157
case $deplibs_check_method in
6035
6158
file_magic*)
6055
6178
      if test -n "$file_magic_test_file"; then
6056
6179
        case $deplibs_check_method in
6057
6180
        "file_magic "*)
6058
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6181
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6059
6182
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6060
6183
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6061
6184
            $EGREP "$file_magic_regex" > /dev/null; then
6117
6240
      if test -n "$file_magic_test_file"; then
6118
6241
        case $deplibs_check_method in
6119
6242
        "file_magic "*)
6120
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6243
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6121
6244
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122
6245
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6123
6246
            $EGREP "$file_magic_regex" > /dev/null; then
6212
6335
# If no C compiler was specified, use CC.
6213
6336
LTCC=${LTCC-"$CC"}
6214
6337
 
 
6338
# If no C compiler flags were specified, use CFLAGS.
 
6339
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6340
 
6215
6341
# Allow CC to be a program name with arguments.
6216
6342
compiler=$CC
6217
6343
 
6218
6344
 
6219
 
#
6220
 
# Check for any special shared library compilation flags.
6221
 
#
6222
 
lt_prog_cc_shlib=
6223
 
if test "$GCC" = no; then
6224
 
  case $host_os in
6225
 
  sco3.2v5*)
6226
 
    lt_prog_cc_shlib='-belf'
6227
 
    ;;
6228
 
  esac
6229
 
fi
6230
 
if test -n "$lt_prog_cc_shlib"; then
6231
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6232
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6233
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6234
 
  else
6235
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6236
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6237
 
    lt_cv_prog_cc_can_build_shared=no
6238
 
  fi
6239
 
fi
6240
 
 
6241
 
 
6242
 
#
6243
 
# Check to make sure the static flag actually works.
6244
 
#
6245
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6246
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6247
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6249
 
else
6250
 
  lt_prog_compiler_static_works=no
6251
 
   save_LDFLAGS="$LDFLAGS"
6252
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6253
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6254
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6255
 
     # The compiler can only warn and ignore the option if not recognized
6256
 
     # So say no if there are warnings
6257
 
     if test -s conftest.err; then
6258
 
       # Append any errors to the config.log.
6259
 
       cat conftest.err 1>&5
6260
 
     else
6261
 
       lt_prog_compiler_static_works=yes
6262
 
     fi
6263
 
   fi
6264
 
   $rm conftest*
6265
 
   LDFLAGS="$save_LDFLAGS"
6266
 
 
6267
 
fi
6268
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6269
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6270
 
 
6271
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6272
 
    :
6273
 
else
6274
 
    lt_prog_compiler_static=
6275
 
fi
6276
 
 
 
6345
# save warnings/boilerplate of simple test code
 
6346
ac_outfile=conftest.$ac_objext
 
6347
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6348
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6349
_lt_compiler_boilerplate=`cat conftest.err`
 
6350
$rm conftest*
 
6351
 
 
6352
ac_outfile=conftest.$ac_objext
 
6353
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6354
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6355
_lt_linker_boilerplate=`cat conftest.err`
 
6356
$rm conftest*
6277
6357
 
6278
6358
 
6279
6359
 
6298
6378
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6299
6379
   # The option is referenced via a variable to avoid confusing sed.
6300
6380
   lt_compile=`echo "$ac_compile" | $SED \
6301
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6381
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6302
6382
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6303
6383
   -e 's:$: $lt_compiler_flag:'`
6304
 
   (eval echo "\"\$as_me:6304: $lt_compile\"" >&5)
 
6384
   (eval echo "\"\$as_me:6384: $lt_compile\"" >&5)
6305
6385
   (eval "$lt_compile" 2>conftest.err)
6306
6386
   ac_status=$?
6307
6387
   cat conftest.err >&5
6308
 
   echo "$as_me:6308: \$? = $ac_status" >&5
 
6388
   echo "$as_me:6388: \$? = $ac_status" >&5
6309
6389
   if (exit $ac_status) && test -s "$ac_outfile"; then
6310
6390
     # The compiler can only warn and ignore the option if not recognized
6311
 
     # So say no if there are warnings
6312
 
     if test ! -s conftest.err; then
 
6391
     # So say no if there are warnings other than the usual output.
 
6392
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6393
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6394
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6313
6395
       lt_cv_prog_compiler_rtti_exceptions=yes
6314
6396
     fi
6315
6397
   fi
6370
6452
      lt_prog_compiler_pic='-fno-common'
6371
6453
      ;;
6372
6454
 
 
6455
    interix3*)
 
6456
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6457
      # Instead, we relocate shared libraries at runtime.
 
6458
      ;;
 
6459
 
6373
6460
    msdosdjgpp*)
6374
6461
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6375
6462
      # on systems that don't support them.
6386
6473
    hpux*)
6387
6474
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6388
6475
      # not for PA HP-UX.
6389
 
      case "$host_cpu" in
 
6476
      case $host_cpu in
6390
6477
      hppa*64*|ia64*)
6391
6478
        # +Z the default
6392
6479
        ;;
6412
6499
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6413
6500
      fi
6414
6501
      ;;
 
6502
      darwin*)
 
6503
        # PIC is the default on this platform
 
6504
        # Common symbols not allowed in MH_DYLIB files
 
6505
       case $cc_basename in
 
6506
         xlc*)
 
6507
         lt_prog_compiler_pic='-qnocommon'
 
6508
         lt_prog_compiler_wl='-Wl,'
 
6509
         ;;
 
6510
       esac
 
6511
       ;;
6415
6512
 
6416
6513
    mingw* | pw32* | os2*)
6417
6514
      # This hack is so that the source file can tell whether it is being
6423
6520
      lt_prog_compiler_wl='-Wl,'
6424
6521
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6425
6522
      # not for PA HP-UX.
6426
 
      case "$host_cpu" in
 
6523
      case $host_cpu in
6427
6524
      hppa*64*|ia64*)
6428
6525
        # +Z the default
6429
6526
        ;;
6447
6544
      ;;
6448
6545
 
6449
6546
    linux*)
6450
 
      case $CC in
 
6547
      case $cc_basename in
6451
6548
      icc* | ecc*)
6452
6549
        lt_prog_compiler_wl='-Wl,'
6453
6550
        lt_prog_compiler_pic='-KPIC'
6454
6551
        lt_prog_compiler_static='-static'
6455
6552
        ;;
 
6553
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6554
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6555
        # which looks to be a dead project)
 
6556
        lt_prog_compiler_wl='-Wl,'
 
6557
        lt_prog_compiler_pic='-fpic'
 
6558
        lt_prog_compiler_static='-Bstatic'
 
6559
        ;;
6456
6560
      ccc*)
6457
6561
        lt_prog_compiler_wl='-Wl,'
6458
6562
        # All Alpha code is PIC.
6467
6571
      lt_prog_compiler_static='-non_shared'
6468
6572
      ;;
6469
6573
 
6470
 
    sco3.2v5*)
6471
 
      lt_prog_compiler_pic='-Kpic'
6472
 
      lt_prog_compiler_static='-dn'
6473
 
      ;;
6474
 
 
6475
6574
    solaris*)
6476
 
      lt_prog_compiler_wl='-Wl,'
6477
6575
      lt_prog_compiler_pic='-KPIC'
6478
6576
      lt_prog_compiler_static='-Bstatic'
 
6577
      case $cc_basename in
 
6578
      f77* | f90* | f95*)
 
6579
        lt_prog_compiler_wl='-Qoption ld ';;
 
6580
      *)
 
6581
        lt_prog_compiler_wl='-Wl,';;
 
6582
      esac
6479
6583
      ;;
6480
6584
 
6481
6585
    sunos4*)
6484
6588
      lt_prog_compiler_static='-Bstatic'
6485
6589
      ;;
6486
6590
 
6487
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6591
    sysv4 | sysv4.2uw2* | sysv4.3*)
6488
6592
      lt_prog_compiler_wl='-Wl,'
6489
6593
      lt_prog_compiler_pic='-KPIC'
6490
6594
      lt_prog_compiler_static='-Bstatic'
6497
6601
      fi
6498
6602
      ;;
6499
6603
 
 
6604
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6605
      lt_prog_compiler_wl='-Wl,'
 
6606
      lt_prog_compiler_pic='-KPIC'
 
6607
      lt_prog_compiler_static='-Bstatic'
 
6608
      ;;
 
6609
 
 
6610
    unicos*)
 
6611
      lt_prog_compiler_wl='-Wl,'
 
6612
      lt_prog_compiler_can_build_shared=no
 
6613
      ;;
 
6614
 
6500
6615
    uts4*)
6501
6616
      lt_prog_compiler_pic='-pic'
6502
6617
      lt_prog_compiler_static='-Bstatic'
6531
6646
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6532
6647
   # The option is referenced via a variable to avoid confusing sed.
6533
6648
   lt_compile=`echo "$ac_compile" | $SED \
6534
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6649
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6535
6650
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6536
6651
   -e 's:$: $lt_compiler_flag:'`
6537
 
   (eval echo "\"\$as_me:6537: $lt_compile\"" >&5)
 
6652
   (eval echo "\"\$as_me:6652: $lt_compile\"" >&5)
6538
6653
   (eval "$lt_compile" 2>conftest.err)
6539
6654
   ac_status=$?
6540
6655
   cat conftest.err >&5
6541
 
   echo "$as_me:6541: \$? = $ac_status" >&5
 
6656
   echo "$as_me:6656: \$? = $ac_status" >&5
6542
6657
   if (exit $ac_status) && test -s "$ac_outfile"; then
6543
6658
     # The compiler can only warn and ignore the option if not recognized
6544
 
     # So say no if there are warnings
6545
 
     if test ! -s conftest.err; then
 
6659
     # So say no if there are warnings other than the usual output.
 
6660
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6661
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6662
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6546
6663
       lt_prog_compiler_pic_works=yes
6547
6664
     fi
6548
6665
   fi
6563
6680
fi
6564
6681
 
6565
6682
fi
6566
 
case "$host_os" in
 
6683
case $host_os in
6567
6684
  # For platforms which do not support PIC, -DPIC is meaningless:
6568
6685
  *djgpp*)
6569
6686
    lt_prog_compiler_pic=
6573
6690
    ;;
6574
6691
esac
6575
6692
 
 
6693
#
 
6694
# Check to make sure the static flag actually works.
 
6695
#
 
6696
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6697
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6698
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6699
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6701
else
 
6702
  lt_prog_compiler_static_works=no
 
6703
   save_LDFLAGS="$LDFLAGS"
 
6704
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6705
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6706
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6707
     # The linker can only warn and ignore the option if not recognized
 
6708
     # So say no if there are warnings
 
6709
     if test -s conftest.err; then
 
6710
       # Append any errors to the config.log.
 
6711
       cat conftest.err 1>&5
 
6712
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6713
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6714
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6715
         lt_prog_compiler_static_works=yes
 
6716
       fi
 
6717
     else
 
6718
       lt_prog_compiler_static_works=yes
 
6719
     fi
 
6720
   fi
 
6721
   $rm conftest*
 
6722
   LDFLAGS="$save_LDFLAGS"
 
6723
 
 
6724
fi
 
6725
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6726
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6727
 
 
6728
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6729
    :
 
6730
else
 
6731
    lt_prog_compiler_static=
 
6732
fi
 
6733
 
 
6734
 
6576
6735
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6577
6736
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6578
6737
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6591
6750
   # Note that $ac_compile itself does not contain backslashes and begins
6592
6751
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6593
6752
   lt_compile=`echo "$ac_compile" | $SED \
6594
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6753
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6595
6754
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6596
6755
   -e 's:$: $lt_compiler_flag:'`
6597
 
   (eval echo "\"\$as_me:6597: $lt_compile\"" >&5)
 
6756
   (eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
6598
6757
   (eval "$lt_compile" 2>out/conftest.err)
6599
6758
   ac_status=$?
6600
6759
   cat out/conftest.err >&5
6601
 
   echo "$as_me:6601: \$? = $ac_status" >&5
 
6760
   echo "$as_me:6760: \$? = $ac_status" >&5
6602
6761
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6603
6762
   then
6604
6763
     # The compiler can only warn and ignore the option if not recognized
6605
6764
     # So say no if there are warnings
6606
 
     if test ! -s out/conftest.err; then
 
6765
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6766
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6767
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6607
6768
       lt_cv_prog_compiler_c_o=yes
6608
6769
     fi
6609
6770
   fi
6610
 
   chmod u+w .
 
6771
   chmod u+w . 2>&5
6611
6772
   $rm conftest*
6612
6773
   # SGI C++ compiler will create directory out/ii_files/ for
6613
6774
   # template instantiation
6683
6844
  # rely on this symbol name, it's probably fine to never include it in
6684
6845
  # preloaded symbol tables.
6685
6846
  extract_expsyms_cmds=
 
6847
  # Just being paranoid about ensuring that cc_basename is set.
 
6848
  for cc_temp in $compiler""; do
 
6849
  case $cc_temp in
 
6850
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6851
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6852
    \-*) ;;
 
6853
    *) break;;
 
6854
  esac
 
6855
done
 
6856
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6686
6857
 
6687
6858
  case $host_os in
6688
6859
  cygwin* | mingw* | pw32*)
6693
6864
      with_gnu_ld=no
6694
6865
    fi
6695
6866
    ;;
 
6867
  interix*)
 
6868
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6869
    with_gnu_ld=yes
 
6870
    ;;
6696
6871
  openbsd*)
6697
6872
    with_gnu_ld=no
6698
6873
    ;;
6703
6878
    # If archive_cmds runs LD, not CC, wlarc should be empty
6704
6879
    wlarc='${wl}'
6705
6880
 
 
6881
    # Set some defaults for GNU ld with shared library support. These
 
6882
    # are reset later if shared libraries are not supported. Putting them
 
6883
    # here allows them to be overridden if necessary.
 
6884
    runpath_var=LD_RUN_PATH
 
6885
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6886
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6887
    # ancient GNU ld didn't support --whole-archive et. al.
 
6888
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6889
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6890
      else
 
6891
        whole_archive_flag_spec=
 
6892
    fi
 
6893
    supports_anon_versioning=no
 
6894
    case `$LD -v 2>/dev/null` in
 
6895
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6896
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6897
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6898
      *\ 2.11.*) ;; # other 2.11 versions
 
6899
      *) supports_anon_versioning=yes ;;
 
6900
    esac
 
6901
 
6706
6902
    # See if GNU ld supports shared libraries.
6707
6903
    case $host_os in
6708
6904
    aix3* | aix4* | aix5*)
6753
6949
      allow_undefined_flag=unsupported
6754
6950
      always_export_symbols=no
6755
6951
      enable_shared_with_static_runtimes=yes
6756
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6952
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6757
6953
 
6758
6954
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6759
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6955
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6760
6956
        # If the export-symbols file already is a .def file (1st line
6761
6957
        # is EXPORTS), use it as is; otherwise, prepend...
6762
6958
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6765
6961
          echo EXPORTS > $output_objdir/$soname.def;
6766
6962
          cat $export_symbols >> $output_objdir/$soname.def;
6767
6963
        fi~
6768
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6769
 
      else
6770
 
        ld_shlibs=no
6771
 
      fi
6772
 
      ;;
6773
 
 
6774
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6964
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6965
      else
 
6966
        ld_shlibs=no
 
6967
      fi
 
6968
      ;;
 
6969
 
 
6970
    interix3*)
 
6971
      hardcode_direct=no
 
6972
      hardcode_shlibpath_var=no
 
6973
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6974
      export_dynamic_flag_spec='${wl}-E'
 
6975
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6976
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6977
      # default) and relocated if they conflict, which is a slow very memory
 
6978
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6979
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6980
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6981
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6982
      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'
 
6983
      ;;
 
6984
 
 
6985
    linux*)
 
6986
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6987
        tmp_addflag=
 
6988
        case $cc_basename,$host_cpu in
 
6989
        pgcc*)                          # Portland Group C compiler
 
6990
          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'
 
6991
          tmp_addflag=' $pic_flag'
 
6992
          ;;
 
6993
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6994
          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'
 
6995
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6996
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6997
          tmp_addflag=' -i_dynamic' ;;
 
6998
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6999
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7000
        ifc* | ifort*)                  # Intel Fortran compiler
 
7001
          tmp_addflag=' -nofor_main' ;;
 
7002
        esac
 
7003
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7004
 
 
7005
        if test $supports_anon_versioning = yes; then
 
7006
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7007
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7008
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7009
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7010
        fi
 
7011
      else
 
7012
        ld_shlibs=no
 
7013
      fi
 
7014
      ;;
 
7015
 
 
7016
    netbsd*)
6775
7017
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6776
7018
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6777
7019
        wlarc=
6781
7023
      fi
6782
7024
      ;;
6783
7025
 
6784
 
    solaris* | sysv5*)
 
7026
    solaris*)
6785
7027
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6786
7028
        ld_shlibs=no
6787
7029
        cat <<EOF 1>&2
6802
7044
      fi
6803
7045
      ;;
6804
7046
 
 
7047
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7048
      case `$LD -v 2>&1` in
 
7049
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7050
        ld_shlibs=no
 
7051
        cat <<_LT_EOF 1>&2
 
7052
 
 
7053
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7054
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7055
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7056
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7057
*** your PATH or compiler configuration so that the native linker is
 
7058
*** used, and then restart.
 
7059
 
 
7060
_LT_EOF
 
7061
        ;;
 
7062
        *)
 
7063
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7064
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7065
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7066
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7067
          else
 
7068
            ld_shlibs=no
 
7069
          fi
 
7070
        ;;
 
7071
      esac
 
7072
      ;;
 
7073
 
6805
7074
    sunos4*)
6806
7075
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6807
7076
      wlarc=
6809
7078
      hardcode_shlibpath_var=no
6810
7079
      ;;
6811
7080
 
6812
 
  linux*)
6813
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6814
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6815
 
        archive_cmds="$tmp_archive_cmds"
6816
 
      supports_anon_versioning=no
6817
 
      case `$LD -v 2>/dev/null` in
6818
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6819
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6820
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6821
 
        *\ 2.11.*) ;; # other 2.11 versions
6822
 
        *) supports_anon_versioning=yes ;;
6823
 
      esac
6824
 
      if test $supports_anon_versioning = yes; then
6825
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6826
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6827
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6828
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6829
 
      else
6830
 
        archive_expsym_cmds="$tmp_archive_cmds"
6831
 
      fi
6832
 
      link_all_deplibs=no
6833
 
    else
6834
 
      ld_shlibs=no
6835
 
    fi
6836
 
    ;;
6837
 
 
6838
7081
    *)
6839
7082
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6840
7083
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845
7088
      ;;
6846
7089
    esac
6847
7090
 
6848
 
    if test "$ld_shlibs" = yes; then
6849
 
      runpath_var=LD_RUN_PATH
6850
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6851
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6852
 
      # ancient GNU ld didn't support --whole-archive et. al.
6853
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6854
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6855
 
      else
6856
 
        whole_archive_flag_spec=
6857
 
      fi
 
7091
    if test "$ld_shlibs" = no; then
 
7092
      runpath_var=
 
7093
      hardcode_libdir_flag_spec=
 
7094
      export_dynamic_flag_spec=
 
7095
      whole_archive_flag_spec=
6858
7096
    fi
6859
7097
  else
6860
7098
    # PORTME fill in a description of your system's linker (not GNU ld)
6866
7104
      # Note: this linker hardcodes the directories in LIBPATH if there
6867
7105
      # are no directories specified by -L.
6868
7106
      hardcode_minus_L=yes
6869
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7107
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6870
7108
        # Neither direct hardcoding nor static linking is supported with a
6871
7109
        # broken collect2.
6872
7110
        hardcode_direct=unsupported
6900
7138
            break
6901
7139
          fi
6902
7140
          done
 
7141
          ;;
6903
7142
        esac
6904
7143
 
6905
7144
        exp_sym_flag='-bexport'
6918
7157
      link_all_deplibs=yes
6919
7158
 
6920
7159
      if test "$GCC" = yes; then
6921
 
        case $host_os in aix4.012|aix4.012.*)
 
7160
        case $host_os in aix4.[012]|aix4.[012].*)
6922
7161
        # We only want to do this on AIX 4.2 and lower, the check
6923
7162
        # below for broken collect2 doesn't work under 4.3+
6924
7163
          collect2name=`${CC} -print-prog-name=collect2`
6937
7176
          hardcode_libdir_flag_spec='-L$libdir'
6938
7177
          hardcode_libdir_separator=
6939
7178
          fi
 
7179
          ;;
6940
7180
        esac
6941
7181
        shared_flag='-shared'
 
7182
        if test "$aix_use_runtimelinking" = yes; then
 
7183
          shared_flag="$shared_flag "'${wl}-G'
 
7184
        fi
6942
7185
      else
6943
7186
        # not using gcc
6944
7187
        if test "$host_cpu" = ia64; then
6946
7189
        # chokes on -Wl,-G. The following line is correct:
6947
7190
          shared_flag='-G'
6948
7191
        else
6949
 
        if test "$aix_use_runtimelinking" = yes; then
 
7192
          if test "$aix_use_runtimelinking" = yes; then
6950
7193
            shared_flag='${wl}-G'
6951
7194
          else
6952
7195
            shared_flag='${wl}-bM:SRE'
6953
 
        fi
 
7196
          fi
6954
7197
        fi
6955
7198
      fi
6956
7199
 
6986
7229
  cat conftest.err >&5
6987
7230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988
7231
  (exit $ac_status); } &&
6989
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7232
         { ac_try='test -z "$ac_c_werror_flag"
 
7233
                         || test ! -s conftest.err'
6990
7234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991
7235
  (eval $ac_try) 2>&5
6992
7236
  ac_status=$?
7014
7258
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7015
7259
 
7016
7260
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7017
 
        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"
 
7261
        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"
7018
7262
       else
7019
7263
        if test "$host_cpu" = ia64; then
7020
7264
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7021
7265
          allow_undefined_flag="-z nodefs"
7022
 
          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"
 
7266
          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"
7023
7267
        else
7024
7268
         # Determine the default libpath from the value encoded in an empty executable.
7025
7269
         cat >conftest.$ac_ext <<_ACEOF
7046
7290
  cat conftest.err >&5
7047
7291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048
7292
  (exit $ac_status); } &&
7049
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7293
         { ac_try='test -z "$ac_c_werror_flag"
 
7294
                         || test ! -s conftest.err'
7050
7295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051
7296
  (eval $ac_try) 2>&5
7052
7297
  ac_status=$?
7078
7323
          # -berok will link without error, but may produce a broken library.
7079
7324
          no_undefined_flag=' ${wl}-bernotok'
7080
7325
          allow_undefined_flag=' ${wl}-berok'
7081
 
          # -bexpall does not export symbols beginning with underscore (_)
7082
 
          always_export_symbols=yes
7083
7326
          # Exported symbols can be pulled into shared objects from archives
7084
 
          whole_archive_flag_spec=' '
 
7327
          whole_archive_flag_spec='$convenience'
7085
7328
          archive_cmds_need_lc=yes
7086
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7087
 
          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'
 
7329
          # This is similar to how AIX traditionally builds its shared libraries.
 
7330
          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'
7088
7331
        fi
7089
7332
      fi
7090
7333
      ;;
7097
7340
      ld_shlibs=no
7098
7341
      ;;
7099
7342
 
7100
 
    bsdi4*)
 
7343
    bsdi[45]*)
7101
7344
      export_dynamic_flag_spec=-rdynamic
7102
7345
      ;;
7103
7346
 
7123
7366
      ;;
7124
7367
 
7125
7368
    darwin* | rhapsody*)
7126
 
    if test "$GXX" = yes ; then
 
7369
      case $host_os in
 
7370
        rhapsody* | darwin1.[012])
 
7371
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7372
         ;;
 
7373
       *) # Darwin 1.3 on
 
7374
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7375
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7376
         else
 
7377
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7378
             10.[012])
 
7379
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7380
               ;;
 
7381
             10.*)
 
7382
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7383
               ;;
 
7384
           esac
 
7385
         fi
 
7386
         ;;
 
7387
      esac
7127
7388
      archive_cmds_need_lc=no
7128
 
      case "$host_os" in
7129
 
      rhapsody* | darwin1.[012])
7130
 
        allow_undefined_flag='-undefined suppress'
7131
 
        ;;
7132
 
      *) # Darwin 1.3 on
7133
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7134
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7135
 
      else
7136
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7137
 
          10.[012])
7138
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7139
 
            ;;
7140
 
          10.*)
7141
 
            allow_undefined_flag='-undefined dynamic_lookup'
7142
 
            ;;
7143
 
        esac
7144
 
      fi
7145
 
        ;;
7146
 
      esac
7147
 
        lt_int_apple_cc_single_mod=no
7148
 
        output_verbose_link_cmd='echo'
7149
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7150
 
          lt_int_apple_cc_single_mod=yes
7151
 
        fi
7152
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7153
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7154
 
        else
7155
 
        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'
7156
 
      fi
7157
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7158
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7159
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7160
 
          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}'
7161
 
        else
7162
 
          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}'
7163
 
        fi
7164
 
          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}'
7165
7389
      hardcode_direct=no
7166
7390
      hardcode_automatic=yes
7167
7391
      hardcode_shlibpath_var=unsupported
7168
 
      whole_archive_flag_spec='-all_load $convenience'
 
7392
      whole_archive_flag_spec=''
7169
7393
      link_all_deplibs=yes
 
7394
    if test "$GCC" = yes ; then
 
7395
        output_verbose_link_cmd='echo'
 
7396
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7397
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7398
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7399
      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}'
 
7400
      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}'
7170
7401
    else
7171
 
      ld_shlibs=no
 
7402
      case $cc_basename in
 
7403
        xlc*)
 
7404
         output_verbose_link_cmd='echo'
 
7405
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7406
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7407
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7408
         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}'
 
7409
          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}'
 
7410
          ;;
 
7411
       *)
 
7412
         ld_shlibs=no
 
7413
          ;;
 
7414
      esac
7172
7415
    fi
7173
7416
      ;;
7174
7417
 
7202
7445
      ;;
7203
7446
 
7204
7447
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7205
 
    freebsd* | kfreebsd*-gnu)
 
7448
    freebsd* | kfreebsd*-gnu | dragonfly*)
7206
7449
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7207
7450
      hardcode_libdir_flag_spec='-R$libdir'
7208
7451
      hardcode_direct=yes
7225
7468
      export_dynamic_flag_spec='${wl}-E'
7226
7469
      ;;
7227
7470
 
7228
 
    hpux10* | hpux11*)
7229
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7230
 
        case "$host_cpu" in
7231
 
        hppa*64*|ia64*)
 
7471
    hpux10*)
 
7472
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7473
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7474
      else
 
7475
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7476
      fi
 
7477
      if test "$with_gnu_ld" = no; then
 
7478
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7479
        hardcode_libdir_separator=:
 
7480
 
 
7481
        hardcode_direct=yes
 
7482
        export_dynamic_flag_spec='${wl}-E'
 
7483
 
 
7484
        # hardcode_minus_L: Not really in the search PATH,
 
7485
        # but as the default location of the library.
 
7486
        hardcode_minus_L=yes
 
7487
      fi
 
7488
      ;;
 
7489
 
 
7490
    hpux11*)
 
7491
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7492
        case $host_cpu in
 
7493
        hppa*64*)
7232
7494
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7233
7495
          ;;
 
7496
        ia64*)
 
7497
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7498
          ;;
7234
7499
        *)
7235
7500
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7236
7501
          ;;
7237
7502
        esac
7238
7503
      else
7239
 
        case "$host_cpu" in
7240
 
        hppa*64*|ia64*)
7241
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7504
        case $host_cpu in
 
7505
        hppa*64*)
 
7506
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7507
          ;;
 
7508
        ia64*)
 
7509
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7242
7510
          ;;
7243
7511
        *)
7244
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7512
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7245
7513
          ;;
7246
7514
        esac
7247
7515
      fi
7248
7516
      if test "$with_gnu_ld" = no; then
7249
 
        case "$host_cpu" in
7250
 
        hppa*64*)
7251
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7517
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7518
        hardcode_libdir_separator=:
 
7519
 
 
7520
        case $host_cpu in
 
7521
        hppa*64*|ia64*)
7252
7522
          hardcode_libdir_flag_spec_ld='+b $libdir'
7253
 
          hardcode_libdir_separator=:
7254
 
          hardcode_direct=no
7255
 
          hardcode_shlibpath_var=no
7256
 
          ;;
7257
 
        ia64*)
7258
 
          hardcode_libdir_flag_spec='-L$libdir'
7259
 
          hardcode_direct=no
7260
 
          hardcode_shlibpath_var=no
7261
 
 
7262
 
          # hardcode_minus_L: Not really in the search PATH,
7263
 
          # but as the default location of the library.
7264
 
          hardcode_minus_L=yes
 
7523
          hardcode_direct=no
 
7524
          hardcode_shlibpath_var=no
7265
7525
          ;;
7266
7526
        *)
7267
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7268
 
          hardcode_libdir_separator=:
7269
7527
          hardcode_direct=yes
7270
7528
          export_dynamic_flag_spec='${wl}-E'
7271
7529
 
7289
7547
      link_all_deplibs=yes
7290
7548
      ;;
7291
7549
 
7292
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7550
    netbsd*)
7293
7551
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7294
7552
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7295
7553
      else
7313
7571
      hardcode_shlibpath_var=no
7314
7572
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7315
7573
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7574
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7316
7575
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7317
7576
        export_dynamic_flag_spec='${wl}-E'
7318
7577
      else
7358
7617
        allow_undefined_flag=' -expect_unresolved \*'
7359
7618
        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'
7360
7619
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7361
 
        $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'
 
7620
        $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'
7362
7621
 
7363
7622
        # Both c and cxx compiler support -rpath directly
7364
7623
        hardcode_libdir_flag_spec='-rpath $libdir'
7366
7625
      hardcode_libdir_separator=:
7367
7626
      ;;
7368
7627
 
7369
 
    sco3.2v5*)
7370
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371
 
      hardcode_shlibpath_var=no
7372
 
      export_dynamic_flag_spec='${wl}-Bexport'
7373
 
      runpath_var=LD_RUN_PATH
7374
 
      hardcode_runpath_var=yes
7375
 
      ;;
7376
 
 
7377
7628
    solaris*)
7378
7629
      no_undefined_flag=' -z text'
7379
7630
      if test "$GCC" = yes; then
 
7631
        wlarc='${wl}'
7380
7632
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7381
7633
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7382
7634
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7383
7635
      else
 
7636
        wlarc=''
7384
7637
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7385
7638
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7386
7639
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7389
7642
      hardcode_shlibpath_var=no
7390
7643
      case $host_os in
7391
7644
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7392
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7393
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7645
      *)
 
7646
        # The compiler driver will combine linker options so we
 
7647
        # cannot just pass the convience library names through
 
7648
        # without $wl, iff we do not link with $LD.
 
7649
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7650
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7651
        case $wlarc in
 
7652
        '')
 
7653
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7654
        *)
 
7655
          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' ;;
 
7656
        esac ;;
7394
7657
      esac
7395
7658
      link_all_deplibs=yes
7396
7659
      ;;
7447
7710
      fi
7448
7711
      ;;
7449
7712
 
7450
 
    sysv4.2uw2*)
7451
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7452
 
      hardcode_direct=yes
7453
 
      hardcode_minus_L=no
7454
 
      hardcode_shlibpath_var=no
7455
 
      hardcode_runpath_var=yes
7456
 
      runpath_var=LD_RUN_PATH
7457
 
      ;;
7458
 
 
7459
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7460
 
      no_undefined_flag='${wl}-z ${wl}text'
7461
 
      if test "$GCC" = yes; then
7462
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463
 
      else
7464
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7465
 
      fi
7466
 
      runpath_var='LD_RUN_PATH'
7467
 
      hardcode_shlibpath_var=no
7468
 
      ;;
7469
 
 
7470
 
    sysv5*)
7471
 
      no_undefined_flag=' -z text'
7472
 
      # $CC -shared without GNU ld will not create a library from C++
7473
 
      # object files and a static libstdc++, better avoid it by now
7474
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7476
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7477
 
      hardcode_libdir_flag_spec=
7478
 
      hardcode_shlibpath_var=no
7479
 
      runpath_var='LD_RUN_PATH'
 
7713
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7714
      no_undefined_flag='${wl}-z,text'
 
7715
      archive_cmds_need_lc=no
 
7716
      hardcode_shlibpath_var=no
 
7717
      runpath_var='LD_RUN_PATH'
 
7718
 
 
7719
      if test "$GCC" = yes; then
 
7720
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7721
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7722
      else
 
7723
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7724
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7725
      fi
 
7726
      ;;
 
7727
 
 
7728
    sysv5* | sco3.2v5* | sco5v6*)
 
7729
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7730
      # link with -lc, and that would cause any symbols used from libc to
 
7731
      # always be unresolved, which means just about no library would
 
7732
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7733
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7734
      # as -z defs.
 
7735
      no_undefined_flag='${wl}-z,text'
 
7736
      allow_undefined_flag='${wl}-z,nodefs'
 
7737
      archive_cmds_need_lc=no
 
7738
      hardcode_shlibpath_var=no
 
7739
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7740
      hardcode_libdir_separator=':'
 
7741
      link_all_deplibs=yes
 
7742
      export_dynamic_flag_spec='${wl}-Bexport'
 
7743
      runpath_var='LD_RUN_PATH'
 
7744
 
 
7745
      if test "$GCC" = yes; then
 
7746
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7747
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7748
      else
 
7749
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7750
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7751
      fi
7480
7752
      ;;
7481
7753
 
7482
7754
    uts4*)
7495
7767
echo "${ECHO_T}$ld_shlibs" >&6
7496
7768
test "$ld_shlibs" = no && can_build_shared=no
7497
7769
 
7498
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7499
 
if test "$GCC" = yes; then
7500
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7501
 
fi
7502
 
 
7503
7770
#
7504
7771
# Do we need to explicitly link libc?
7505
7772
#
7532
7799
        libobjs=conftest.$ac_objext
7533
7800
        deplibs=
7534
7801
        wl=$lt_prog_compiler_wl
 
7802
        pic_flag=$lt_prog_compiler_pic
7535
7803
        compiler_flags=-v
7536
7804
        linker_flags=-v
7537
7805
        verstring=
7664
7932
  shlibpath_var=LIBRARY_PATH
7665
7933
  ;;
7666
7934
 
7667
 
bsdi4*)
 
7935
bsdi[45]*)
7668
7936
  version_type=linux
7669
7937
  need_version=no
7670
7938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692
7960
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7693
7961
      dldir=$destdir/`dirname \$dlpath`~
7694
7962
      test -d \$dldir || mkdir -p \$dldir~
7695
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7963
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7964
      chmod a+x \$dldir/$dlname'
7696
7965
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7697
7966
      dlpath=$dir/\$dldll~
7698
7967
       $rm \$dlpath'
7722
7991
      ;;
7723
7992
    pw32*)
7724
7993
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7725
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7994
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7726
7995
      ;;
7727
7996
    esac
7728
7997
    ;;
7745
8014
  soname_spec='${libname}${release}${major}$shared_ext'
7746
8015
  shlibpath_overrides_runpath=yes
7747
8016
  shlibpath_var=DYLD_LIBRARY_PATH
7748
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8017
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7749
8018
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7750
8019
  if test "$GCC" = yes; then
7751
8020
    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"`
7780
8049
  dynamic_linker='GNU ld.so'
7781
8050
  ;;
7782
8051
 
7783
 
freebsd*)
7784
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8052
freebsd* | dragonfly*)
 
8053
  # DragonFly does not have aout.  When/if they implement a new
 
8054
  # versioning mechanism, adjust this.
 
8055
  if test -x /usr/bin/objformat; then
 
8056
    objformat=`/usr/bin/objformat`
 
8057
  else
 
8058
    case $host_os in
 
8059
    freebsd[123]*) objformat=aout ;;
 
8060
    *) objformat=elf ;;
 
8061
    esac
 
8062
  fi
7785
8063
  version_type=freebsd-$objformat
7786
8064
  case $version_type in
7787
8065
    freebsd-elf*)
7799
8077
  freebsd2*)
7800
8078
    shlibpath_overrides_runpath=yes
7801
8079
    ;;
7802
 
  freebsd3.01* | freebsdelf3.01*)
 
8080
  freebsd3.[01]* | freebsdelf3.[01]*)
7803
8081
    shlibpath_overrides_runpath=yes
7804
8082
    hardcode_into_libs=yes
7805
8083
    ;;
7806
 
  *) # from 3.2 on
 
8084
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8085
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7807
8086
    shlibpath_overrides_runpath=no
7808
8087
    hardcode_into_libs=yes
7809
8088
    ;;
 
8089
  freebsd*) # from 4.6 on
 
8090
    shlibpath_overrides_runpath=yes
 
8091
    hardcode_into_libs=yes
 
8092
    ;;
7810
8093
  esac
7811
8094
  ;;
7812
8095
 
7826
8109
  version_type=sunos
7827
8110
  need_lib_prefix=no
7828
8111
  need_version=no
7829
 
  case "$host_cpu" in
 
8112
  case $host_cpu in
7830
8113
  ia64*)
7831
8114
    shrext_cmds='.so'
7832
8115
    hardcode_into_libs=yes
7866
8149
  postinstall_cmds='chmod 555 $lib'
7867
8150
  ;;
7868
8151
 
 
8152
interix3*)
 
8153
  version_type=linux
 
8154
  need_lib_prefix=no
 
8155
  need_version=no
 
8156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8157
  soname_spec='${libname}${release}${shared_ext}$major'
 
8158
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8159
  shlibpath_var=LD_LIBRARY_PATH
 
8160
  shlibpath_overrides_runpath=no
 
8161
  hardcode_into_libs=yes
 
8162
  ;;
 
8163
 
7869
8164
irix5* | irix6* | nonstopux*)
7870
8165
  case $host_os in
7871
8166
    nonstopux*) version_type=nonstopux ;;
7923
8218
  # before this can be enabled.
7924
8219
  hardcode_into_libs=yes
7925
8220
 
 
8221
  # find out which ABI we are using
 
8222
  libsuff=
 
8223
  case "$host_cpu" in
 
8224
  x86_64*|s390x*|powerpc64*)
 
8225
    echo '#line 8225 "configure"' > conftest.$ac_ext
 
8226
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8227
  (eval $ac_compile) 2>&5
 
8228
  ac_status=$?
 
8229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8230
  (exit $ac_status); }; then
 
8231
      case `/usr/bin/file conftest.$ac_objext` in
 
8232
      *64-bit*)
 
8233
        libsuff=64
 
8234
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8235
        ;;
 
8236
      esac
 
8237
    fi
 
8238
    rm -rf conftest*
 
8239
    ;;
 
8240
  esac
 
8241
 
7926
8242
  # Append ld.so.conf contents to the search path
7927
8243
  if test -f /etc/ld.so.conf; then
7928
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7929
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8244
    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' ' '`
 
8245
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7930
8246
  fi
7931
8247
 
7932
8248
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7938
8254
  dynamic_linker='GNU/Linux ld.so'
7939
8255
  ;;
7940
8256
 
7941
 
netbsdelf*-gnu)
7942
 
  version_type=linux
7943
 
  need_lib_prefix=no
7944
 
  need_version=no
7945
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7946
 
  soname_spec='${libname}${release}${shared_ext}$major'
7947
 
  shlibpath_var=LD_LIBRARY_PATH
7948
 
  shlibpath_overrides_runpath=no
7949
 
  hardcode_into_libs=yes
7950
 
  dynamic_linker='NetBSD ld.elf_so'
7951
 
  ;;
7952
 
 
7953
8257
knetbsd*-gnu)
7954
8258
  version_type=linux
7955
8259
  need_lib_prefix=no
7999
8303
 
8000
8304
openbsd*)
8001
8305
  version_type=sunos
 
8306
  sys_lib_dlsearch_path_spec="/usr/lib"
8002
8307
  need_lib_prefix=no
8003
 
  need_version=yes
 
8308
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8309
  case $host_os in
 
8310
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8311
    *)                         need_version=no  ;;
 
8312
  esac
8004
8313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8005
8314
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8006
8315
  shlibpath_var=LD_LIBRARY_PATH
8038
8347
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8039
8348
  ;;
8040
8349
 
8041
 
sco3.2v5*)
8042
 
  version_type=osf
8043
 
  soname_spec='${libname}${release}${shared_ext}$major'
8044
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8045
 
  shlibpath_var=LD_LIBRARY_PATH
8046
 
  ;;
8047
 
 
8048
8350
solaris*)
8049
8351
  version_type=linux
8050
8352
  need_lib_prefix=no
8070
8372
  need_version=yes
8071
8373
  ;;
8072
8374
 
8073
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8375
sysv4 | sysv4.3*)
8074
8376
  version_type=linux
8075
8377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8076
8378
  soname_spec='${libname}${release}${shared_ext}$major'
8103
8405
  fi
8104
8406
  ;;
8105
8407
 
 
8408
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8409
  version_type=freebsd-elf
 
8410
  need_lib_prefix=no
 
8411
  need_version=no
 
8412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8413
  soname_spec='${libname}${release}${shared_ext}$major'
 
8414
  shlibpath_var=LD_LIBRARY_PATH
 
8415
  hardcode_into_libs=yes
 
8416
  if test "$with_gnu_ld" = yes; then
 
8417
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8418
    shlibpath_overrides_runpath=no
 
8419
  else
 
8420
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8421
    shlibpath_overrides_runpath=yes
 
8422
    case $host_os in
 
8423
      sco3.2v5*)
 
8424
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8425
        ;;
 
8426
    esac
 
8427
  fi
 
8428
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8429
  ;;
 
8430
 
8106
8431
uts4*)
8107
8432
  version_type=linux
8108
8433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118
8443
echo "${ECHO_T}$dynamic_linker" >&6
8119
8444
test "$dynamic_linker" = no && can_build_shared=no
8120
8445
 
 
8446
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8447
if test "$GCC" = yes; then
 
8448
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8449
fi
 
8450
 
8121
8451
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8122
8452
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8123
8453
hardcode_action=
8124
8454
if test -n "$hardcode_libdir_flag_spec" || \
8125
 
   test -n "$runpath_var " || \
8126
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8455
   test -n "$runpath_var" || \
 
8456
   test "X$hardcode_automatic" = "Xyes" ; then
8127
8457
 
8128
8458
  # We can hardcode non-existant directories.
8129
8459
  if test "$hardcode_direct" != no &&
8249
8579
  cat conftest.err >&5
8250
8580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251
8581
  (exit $ac_status); } &&
8252
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8582
         { ac_try='test -z "$ac_c_werror_flag"
 
8583
                         || test ! -s conftest.err'
8253
8584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254
8585
  (eval $ac_try) 2>&5
8255
8586
  ac_status=$?
8352
8683
  cat conftest.err >&5
8353
8684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354
8685
  (exit $ac_status); } &&
8355
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8686
         { ac_try='test -z "$ac_c_werror_flag"
 
8687
                         || test ! -s conftest.err'
8356
8688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357
8689
  (eval $ac_try) 2>&5
8358
8690
  ac_status=$?
8417
8749
  cat conftest.err >&5
8418
8750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419
8751
  (exit $ac_status); } &&
8420
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8752
         { ac_try='test -z "$ac_c_werror_flag"
 
8753
                         || test ! -s conftest.err'
8421
8754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422
8755
  (eval $ac_try) 2>&5
8423
8756
  ac_status=$?
8510
8843
  cat conftest.err >&5
8511
8844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
8845
  (exit $ac_status); } &&
8513
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8846
         { ac_try='test -z "$ac_c_werror_flag"
 
8847
                         || test ! -s conftest.err'
8514
8848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515
8849
  (eval $ac_try) 2>&5
8516
8850
  ac_status=$?
8575
8909
  cat conftest.err >&5
8576
8910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577
8911
  (exit $ac_status); } &&
8578
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8912
         { ac_try='test -z "$ac_c_werror_flag"
 
8913
                         || test ! -s conftest.err'
8579
8914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580
8915
  (eval $ac_try) 2>&5
8581
8916
  ac_status=$?
8641
8976
  cat conftest.err >&5
8642
8977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643
8978
  (exit $ac_status); } &&
8644
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8979
         { ac_try='test -z "$ac_c_werror_flag"
 
8980
                         || test ! -s conftest.err'
8645
8981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
8982
  (eval $ac_try) 2>&5
8647
8983
  ac_status=$?
8707
9043
  cat conftest.err >&5
8708
9044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709
9045
  (exit $ac_status); } &&
8710
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9046
         { ac_try='test -z "$ac_c_werror_flag"
 
9047
                         || test ! -s conftest.err'
8711
9048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712
9049
  (eval $ac_try) 2>&5
8713
9050
  ac_status=$?
8766
9103
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8767
9104
 
8768
9105
    save_LDFLAGS="$LDFLAGS"
8769
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9106
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8770
9107
 
8771
9108
    save_LIBS="$LIBS"
8772
9109
    LIBS="$lt_cv_dlopen_libs $LIBS"
8782
9119
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8783
9120
  lt_status=$lt_dlunknown
8784
9121
  cat > conftest.$ac_ext <<EOF
8785
 
#line 8785 "configure"
 
9122
#line 9122 "configure"
8786
9123
#include "confdefs.h"
8787
9124
 
8788
9125
#if HAVE_DLFCN_H
8839
9176
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8840
9177
      /* dlclose (self); */
8841
9178
    }
 
9179
  else
 
9180
    puts (dlerror ());
8842
9181
 
8843
9182
    exit (status);
8844
9183
}
8848
9187
  ac_status=$?
8849
9188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850
9189
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8851
 
    (./conftest; exit; ) 2>/dev/null
 
9190
    (./conftest; exit; ) >&5 2>/dev/null
8852
9191
    lt_status=$?
8853
9192
    case x$lt_status in
8854
9193
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8855
9194
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8856
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9195
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8857
9196
    esac
8858
9197
  else :
8859
9198
    # compilation failed
8868
9207
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8869
9208
 
8870
9209
    if test "x$lt_cv_dlopen_self" = xyes; then
8871
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9210
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8872
9211
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8873
9212
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8874
9213
if test "${lt_cv_dlopen_self_static+set}" = set; then
8880
9219
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8881
9220
  lt_status=$lt_dlunknown
8882
9221
  cat > conftest.$ac_ext <<EOF
8883
 
#line 8883 "configure"
 
9222
#line 9222 "configure"
8884
9223
#include "confdefs.h"
8885
9224
 
8886
9225
#if HAVE_DLFCN_H
8937
9276
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8938
9277
      /* dlclose (self); */
8939
9278
    }
 
9279
  else
 
9280
    puts (dlerror ());
8940
9281
 
8941
9282
    exit (status);
8942
9283
}
8946
9287
  ac_status=$?
8947
9288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948
9289
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8949
 
    (./conftest; exit; ) 2>/dev/null
 
9290
    (./conftest; exit; ) >&5 2>/dev/null
8950
9291
    lt_status=$?
8951
9292
    case x$lt_status in
8952
9293
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8953
9294
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8954
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9295
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8955
9296
    esac
8956
9297
  else :
8957
9298
    # compilation failed
8984
9325
fi
8985
9326
 
8986
9327
 
8987
 
# Report which librarie types wil actually be built
 
9328
# Report which library types will actually be built
8988
9329
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8989
9330
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8990
9331
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8996
9337
 
8997
9338
# On AIX, shared libraries and static libraries use the same namespace, and
8998
9339
# are all built from PIC.
8999
 
case "$host_os" in
 
9340
case $host_os in
9000
9341
aix3*)
9001
9342
  test "$enable_shared" = yes && enable_static=no
9002
9343
  if test -n "$RANLIB"; then
9009
9350
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9010
9351
    test "$enable_shared" = yes && enable_static=no
9011
9352
  fi
9012
 
  ;;
9013
 
  darwin* | rhapsody*)
9014
 
  if test "$GCC" = yes; then
9015
 
    archive_cmds_need_lc=no
9016
 
    case "$host_os" in
9017
 
    rhapsody* | darwin1.[012])
9018
 
      allow_undefined_flag='-undefined suppress'
9019
 
      ;;
9020
 
    *) # Darwin 1.3 on
9021
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9022
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9023
 
      else
9024
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9025
 
          10.[012])
9026
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9027
 
            ;;
9028
 
          10.*)
9029
 
            allow_undefined_flag='-undefined dynamic_lookup'
9030
 
            ;;
9031
 
        esac
9032
 
      fi
9033
 
      ;;
9034
 
    esac
9035
 
    output_verbose_link_cmd='echo'
9036
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9037
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9038
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9039
 
    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}'
9040
 
    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}'
9041
 
    hardcode_direct=no
9042
 
    hardcode_automatic=yes
9043
 
    hardcode_shlibpath_var=unsupported
9044
 
    whole_archive_flag_spec='-all_load $convenience'
9045
 
    link_all_deplibs=yes
9046
 
  else
9047
 
    ld_shlibs=no
9048
 
  fi
9049
9353
    ;;
9050
9354
esac
9051
9355
echo "$as_me:$LINENO: result: $enable_shared" >&5
9071
9375
  # Now quote all the things that may contain metacharacters while being
9072
9376
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9073
9377
  # variables and quote the copies for generation of the libtool script.
9074
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9378
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9075
9379
    SED SHELL STRIP \
9076
9380
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9077
9381
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9175
9479
#
9176
9480
# You should have received a copy of the GNU General Public License
9177
9481
# along with this program; if not, write to the Free Software
9178
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9482
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9179
9483
#
9180
9484
# As a special exception to the GNU General Public License, if you
9181
9485
# distribute this file as part of a program that contains a
9186
9490
SED=$lt_SED
9187
9491
 
9188
9492
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9189
 
Xsed="$SED -e s/^X//"
 
9493
Xsed="$SED -e 1s/^X//"
9190
9494
 
9191
9495
# The HP-UX ksh and POSIX shell print the target directory to stdout
9192
9496
# if CDPATH is set.
9193
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9497
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9194
9498
 
9195
9499
# The names of the tagged configurations supported by this script.
9196
9500
available_tags=
9220
9524
# The host system.
9221
9525
host_alias=$host_alias
9222
9526
host=$host
 
9527
host_os=$host_os
 
9528
 
 
9529
# The build system.
 
9530
build_alias=$build_alias
 
9531
build=$build
 
9532
build_os=$build_os
9223
9533
 
9224
9534
# An echo program that does not interpret backslashes.
9225
9535
echo=$lt_echo
9231
9541
# A C compiler.
9232
9542
LTCC=$lt_LTCC
9233
9543
 
 
9544
# LTCC compiler flags.
 
9545
LTCFLAGS=$lt_LTCFLAGS
 
9546
 
9234
9547
# A language-specific compiler.
9235
9548
CC=$lt_compiler
9236
9549
 
9296
9609
# Does compiler simultaneously support -c and -o options?
9297
9610
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9298
9611
 
9299
 
# Must we lock files when doing compilation ?
 
9612
# Must we lock files when doing compilation?
9300
9613
need_locks=$lt_need_locks
9301
9614
 
9302
9615
# Do we need the lib prefix for modules?
9561
9874
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9562
9875
    fi
9563
9876
  fi
 
9877
  if test -z "$LTCFLAGS"; then
 
9878
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9879
  fi
9564
9880
 
9565
9881
  # Extract list of available tagged configurations in $ofile.
9566
9882
  # Note that this assumes the entire list is on one line.
9591
9907
 
9592
9908
      case $tagname in
9593
9909
      CXX)
9594
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9910
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9911
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9912
            (test "X$CXX" != "Xg++"))) ; then
9595
9913
          ac_ext=cc
9596
9914
ac_cpp='$CXXCPP $CPPFLAGS'
9597
9915
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611
9929
hardcode_libdir_flag_spec_ld_CXX=
9612
9930
hardcode_libdir_separator_CXX=
9613
9931
hardcode_minus_L_CXX=no
 
9932
hardcode_shlibpath_var_CXX=unsupported
9614
9933
hardcode_automatic_CXX=no
9615
9934
module_cmds_CXX=
9616
9935
module_expsym_cmds_CXX=
9628
9947
compiler_lib_search_path_CXX=
9629
9948
 
9630
9949
# Source file extension for C++ test sources.
9631
 
ac_ext=cc
 
9950
ac_ext=cpp
9632
9951
 
9633
9952
# Object file extension for compiled C++ test sources.
9634
9953
objext=o
9638
9957
lt_simple_compile_test_code="int some_variable = 0;\n"
9639
9958
 
9640
9959
# Code to be used in simple link tests
9641
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9960
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9642
9961
 
9643
9962
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9644
9963
 
9645
9964
# If no C compiler was specified, use CC.
9646
9965
LTCC=${LTCC-"$CC"}
9647
9966
 
 
9967
# If no C compiler flags were specified, use CFLAGS.
 
9968
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9969
 
9648
9970
# Allow CC to be a program name with arguments.
9649
9971
compiler=$CC
9650
9972
 
9651
9973
 
 
9974
# save warnings/boilerplate of simple test code
 
9975
ac_outfile=conftest.$ac_objext
 
9976
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9977
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9978
_lt_compiler_boilerplate=`cat conftest.err`
 
9979
$rm conftest*
 
9980
 
 
9981
ac_outfile=conftest.$ac_objext
 
9982
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9983
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9984
_lt_linker_boilerplate=`cat conftest.err`
 
9985
$rm conftest*
 
9986
 
 
9987
 
9652
9988
# Allow CC to be a program name with arguments.
9653
9989
lt_save_CC=$CC
9654
9990
lt_save_LD=$LD
9659
9995
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9660
9996
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9661
9997
else
9662
 
  unset lt_cv_prog_gnu_ld
 
9998
  $as_unset lt_cv_prog_gnu_ld
9663
9999
fi
9664
10000
if test -n "${lt_cv_path_LDCXX+set}"; then
9665
10001
  lt_cv_path_LD=$lt_cv_path_LDCXX
9666
10002
else
9667
 
  unset lt_cv_path_LD
 
10003
  $as_unset lt_cv_path_LD
9668
10004
fi
9669
10005
test -z "${LDCXX+set}" || LD=$LDCXX
9670
10006
CC=${CXX-"c++"}
9671
10007
compiler=$CC
9672
10008
compiler_CXX=$CC
9673
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10009
for cc_temp in $compiler""; do
 
10010
  case $cc_temp in
 
10011
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10012
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10013
    \-*) ;;
 
10014
    *) break;;
 
10015
  esac
 
10016
done
 
10017
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10018
 
9674
10019
 
9675
10020
# We don't want -fno-exception wen compiling C++ code, so set the
9676
10021
# no_builtin_flag separately
9741
10086
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9742
10087
      lt_cv_path_LD="$ac_dir/$ac_prog"
9743
10088
      # Check to see if the program is GNU ld.  I'd rather use --version,
9744
 
      # but apparently some GNU ld's only accept -v.
 
10089
      # but apparently some variants of GNU ld only accept -v.
9745
10090
      # Break only if it was the GNU/non-GNU ld that we prefer.
9746
10091
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9747
10092
      *GNU* | *'with BFD'*)
9775
10120
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9776
10121
  echo $ECHO_N "(cached) $ECHO_C" >&6
9777
10122
else
9778
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10123
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9779
10124
case `$LD -v 2>&1 </dev/null` in
9780
10125
*GNU* | *'with BFD'*)
9781
10126
  lt_cv_prog_gnu_ld=yes
9866
10211
            ;;
9867
10212
          esac
9868
10213
        done
 
10214
        ;;
9869
10215
      esac
9870
10216
 
9871
10217
      exp_sym_flag='-bexport'
9884
10230
    link_all_deplibs_CXX=yes
9885
10231
 
9886
10232
    if test "$GXX" = yes; then
9887
 
      case $host_os in aix4.012|aix4.012.*)
 
10233
      case $host_os in aix4.[012]|aix4.[012].*)
9888
10234
      # We only want to do this on AIX 4.2 and lower, the check
9889
10235
      # below for broken collect2 doesn't work under 4.3+
9890
10236
        collect2name=`${CC} -print-prog-name=collect2`
9903
10249
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9904
10250
          hardcode_libdir_separator_CXX=
9905
10251
        fi
 
10252
        ;;
9906
10253
      esac
9907
10254
      shared_flag='-shared'
 
10255
      if test "$aix_use_runtimelinking" = yes; then
 
10256
        shared_flag="$shared_flag "'${wl}-G'
 
10257
      fi
9908
10258
    else
9909
10259
      # not using gcc
9910
10260
      if test "$host_cpu" = ia64; then
9952
10302
  cat conftest.err >&5
9953
10303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954
10304
  (exit $ac_status); } &&
9955
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10305
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10306
                         || test ! -s conftest.err'
9956
10307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957
10308
  (eval $ac_try) 2>&5
9958
10309
  ac_status=$?
9981
10332
 
9982
10333
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9983
10334
 
9984
 
      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"
 
10335
      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"
9985
10336
     else
9986
10337
      if test "$host_cpu" = ia64; then
9987
10338
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9988
10339
        allow_undefined_flag_CXX="-z nodefs"
9989
 
        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"
 
10340
        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"
9990
10341
      else
9991
10342
        # Determine the default libpath from the value encoded in an empty executable.
9992
10343
        cat >conftest.$ac_ext <<_ACEOF
10013
10364
  cat conftest.err >&5
10014
10365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015
10366
  (exit $ac_status); } &&
10016
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10367
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10368
                         || test ! -s conftest.err'
10017
10369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018
10370
  (eval $ac_try) 2>&5
10019
10371
  ac_status=$?
10045
10397
        # -berok will link without error, but may produce a broken library.
10046
10398
        no_undefined_flag_CXX=' ${wl}-bernotok'
10047
10399
        allow_undefined_flag_CXX=' ${wl}-berok'
10048
 
        # -bexpall does not export symbols beginning with underscore (_)
10049
 
        always_export_symbols_CXX=yes
10050
10400
        # Exported symbols can be pulled into shared objects from archives
10051
 
        whole_archive_flag_spec_CXX=' '
 
10401
        whole_archive_flag_spec_CXX='$convenience'
10052
10402
        archive_cmds_need_lc_CXX=yes
10053
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10054
 
        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'
 
10403
        # This is similar to how AIX traditionally builds its shared libraries.
 
10404
        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'
10055
10405
      fi
10056
10406
    fi
10057
10407
    ;;
 
10408
 
 
10409
  beos*)
 
10410
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10411
      allow_undefined_flag_CXX=unsupported
 
10412
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10413
      # support --undefined.  This deserves some investigation.  FIXME
 
10414
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10415
    else
 
10416
      ld_shlibs_CXX=no
 
10417
    fi
 
10418
    ;;
 
10419
 
10058
10420
  chorus*)
10059
10421
    case $cc_basename in
10060
10422
      *)
10073
10435
    enable_shared_with_static_runtimes_CXX=yes
10074
10436
 
10075
10437
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10076
 
      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'
 
10438
      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'
10077
10439
      # If the export-symbols file already is a .def file (1st line
10078
10440
      # is EXPORTS), use it as is; otherwise, prepend...
10079
10441
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082
10444
        echo EXPORTS > $output_objdir/$soname.def;
10083
10445
        cat $export_symbols >> $output_objdir/$soname.def;
10084
10446
      fi~
10085
 
      $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'
 
10447
      $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'
10086
10448
    else
10087
10449
      ld_shlibs_CXX=no
10088
10450
    fi
10089
10451
  ;;
10090
 
 
10091
 
  darwin* | rhapsody*)
10092
 
  if test "$GXX" = yes; then
10093
 
    archive_cmds_need_lc_CXX=no
10094
 
    case "$host_os" in
10095
 
    rhapsody* | darwin1.[012])
10096
 
      allow_undefined_flag_CXX='-undefined suppress'
10097
 
      ;;
10098
 
    *) # Darwin 1.3 on
10099
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10100
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10101
 
      else
10102
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10103
 
          10.[012])
10104
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10105
 
            ;;
10106
 
          10.*)
10107
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10108
 
            ;;
 
10452
      darwin* | rhapsody*)
 
10453
        case $host_os in
 
10454
        rhapsody* | darwin1.[012])
 
10455
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10456
         ;;
 
10457
       *) # Darwin 1.3 on
 
10458
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10459
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10460
         else
 
10461
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10462
             10.[012])
 
10463
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10464
               ;;
 
10465
             10.*)
 
10466
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10467
               ;;
 
10468
           esac
 
10469
         fi
 
10470
         ;;
10109
10471
        esac
10110
 
      fi
10111
 
      ;;
10112
 
    esac
10113
 
    lt_int_apple_cc_single_mod=no
10114
 
    output_verbose_link_cmd='echo'
10115
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10116
 
      lt_int_apple_cc_single_mod=yes
10117
 
    fi
10118
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10119
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10120
 
    else
10121
 
      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'
10122
 
    fi
10123
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10472
      archive_cmds_need_lc_CXX=no
 
10473
      hardcode_direct_CXX=no
 
10474
      hardcode_automatic_CXX=yes
 
10475
      hardcode_shlibpath_var_CXX=unsupported
 
10476
      whole_archive_flag_spec_CXX=''
 
10477
      link_all_deplibs_CXX=yes
10124
10478
 
10125
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10126
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10127
 
      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}'
10128
 
    else
10129
 
      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}'
10130
 
    fi
10131
 
    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}'
10132
 
    hardcode_direct_CXX=no
10133
 
    hardcode_automatic_CXX=yes
10134
 
    hardcode_shlibpath_var_CXX=unsupported
10135
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10136
 
    link_all_deplibs_CXX=yes
10137
 
  else
10138
 
    ld_shlibs_CXX=no
10139
 
  fi
10140
 
    ;;
 
10479
    if test "$GXX" = yes ; then
 
10480
      lt_int_apple_cc_single_mod=no
 
10481
      output_verbose_link_cmd='echo'
 
10482
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10483
       lt_int_apple_cc_single_mod=yes
 
10484
      fi
 
10485
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10486
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10487
      else
 
10488
          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'
 
10489
        fi
 
10490
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10491
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10492
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10493
            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}'
 
10494
          else
 
10495
            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}'
 
10496
          fi
 
10497
            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}'
 
10498
      else
 
10499
      case $cc_basename in
 
10500
        xlc*)
 
10501
         output_verbose_link_cmd='echo'
 
10502
          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'
 
10503
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10504
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10505
          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}'
 
10506
          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}'
 
10507
          ;;
 
10508
       *)
 
10509
         ld_shlibs_CXX=no
 
10510
          ;;
 
10511
      esac
 
10512
      fi
 
10513
        ;;
10141
10514
 
10142
10515
  dgux*)
10143
10516
    case $cc_basename in
10144
 
      ec++)
 
10517
      ec++*)
10145
10518
        # FIXME: insert proper C++ library support
10146
10519
        ld_shlibs_CXX=no
10147
10520
        ;;
10148
 
      ghcx)
 
10521
      ghcx*)
10149
10522
        # Green Hills C++ Compiler
10150
10523
        # FIXME: insert proper C++ library support
10151
10524
        ld_shlibs_CXX=no
10156
10529
        ;;
10157
10530
    esac
10158
10531
    ;;
10159
 
  freebsd12*)
 
10532
  freebsd[12]*)
10160
10533
    # C++ shared libraries reported to be fairly broken before switch to ELF
10161
10534
    ld_shlibs_CXX=no
10162
10535
    ;;
10163
10536
  freebsd-elf*)
10164
10537
    archive_cmds_need_lc_CXX=no
10165
10538
    ;;
10166
 
  freebsd* | kfreebsd*-gnu)
 
10539
  freebsd* | kfreebsd*-gnu | dragonfly*)
10167
10540
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10168
10541
    # conventions
10169
10542
    ld_shlibs_CXX=yes
10180
10553
                                # location of the library.
10181
10554
 
10182
10555
    case $cc_basename in
10183
 
    CC)
 
10556
    CC*)
10184
10557
      # FIXME: insert proper C++ library support
10185
10558
      ld_shlibs_CXX=no
10186
10559
      ;;
10187
 
    aCC)
 
10560
    aCC*)
10188
10561
      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'
10189
10562
      # Commands to make compiler produce verbose output that lists
10190
10563
      # what "hidden" libraries, object files and flags are used when
10194
10567
      # explicitly linking system object files so we need to strip them
10195
10568
      # from the output so that they don't get included in the library
10196
10569
      # dependencies.
10197
 
      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'
 
10570
      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'
10198
10571
      ;;
10199
10572
    *)
10200
10573
      if test "$GXX" = yes; then
10208
10581
    ;;
10209
10582
  hpux10*|hpux11*)
10210
10583
    if test $with_gnu_ld = no; then
10211
 
      case "$host_cpu" in
10212
 
      hppa*64*)
10213
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10584
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10585
      hardcode_libdir_separator_CXX=:
 
10586
 
 
10587
      case $host_cpu in
 
10588
      hppa*64*|ia64*)
10214
10589
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10215
 
        hardcode_libdir_separator_CXX=:
10216
 
        ;;
10217
 
      ia64*)
10218
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10219
10590
        ;;
10220
10591
      *)
10221
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10222
 
        hardcode_libdir_separator_CXX=:
10223
10592
        export_dynamic_flag_spec_CXX='${wl}-E'
10224
10593
        ;;
10225
10594
      esac
10226
10595
    fi
10227
 
    case "$host_cpu" in
10228
 
    hppa*64*)
10229
 
      hardcode_direct_CXX=no
10230
 
      hardcode_shlibpath_var_CXX=no
10231
 
      ;;
10232
 
    ia64*)
10233
 
      hardcode_direct_CXX=no
10234
 
      hardcode_shlibpath_var_CXX=no
10235
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10236
 
                                              # but as the default
10237
 
                                              # location of the library.
 
10596
    case $host_cpu in
 
10597
    hppa*64*|ia64*)
 
10598
      hardcode_direct_CXX=no
 
10599
      hardcode_shlibpath_var_CXX=no
10238
10600
      ;;
10239
10601
    *)
10240
10602
      hardcode_direct_CXX=yes
10245
10607
    esac
10246
10608
 
10247
10609
    case $cc_basename in
10248
 
      CC)
 
10610
      CC*)
10249
10611
        # FIXME: insert proper C++ library support
10250
10612
        ld_shlibs_CXX=no
10251
10613
        ;;
10252
 
      aCC)
10253
 
        case "$host_cpu" in
10254
 
        hppa*64*|ia64*)
10255
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10614
      aCC*)
 
10615
        case $host_cpu in
 
10616
        hppa*64*)
 
10617
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10618
          ;;
 
10619
        ia64*)
 
10620
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10256
10621
          ;;
10257
10622
        *)
10258
10623
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10271
10636
      *)
10272
10637
        if test "$GXX" = yes; then
10273
10638
          if test $with_gnu_ld = no; then
10274
 
            case "$host_cpu" in
10275
 
            ia64*|hppa*64*)
10276
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10639
            case $host_cpu in
 
10640
            hppa*64*)
 
10641
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10642
              ;;
 
10643
            ia64*)
 
10644
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277
10645
              ;;
10278
10646
            *)
10279
10647
              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'
10287
10655
        ;;
10288
10656
    esac
10289
10657
    ;;
 
10658
  interix3*)
 
10659
    hardcode_direct_CXX=no
 
10660
    hardcode_shlibpath_var_CXX=no
 
10661
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10662
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10663
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10664
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10665
    # default) and relocated if they conflict, which is a slow very memory
 
10666
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10667
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10668
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10669
    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'
 
10670
    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'
 
10671
    ;;
10290
10672
  irix5* | irix6*)
10291
10673
    case $cc_basename in
10292
 
      CC)
 
10674
      CC*)
10293
10675
        # SGI C++
10294
 
        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'
 
10676
        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'
10295
10677
 
10296
10678
        # Archives containing C++ object files must be created using
10297
10679
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10302
10684
      *)
10303
10685
        if test "$GXX" = yes; then
10304
10686
          if test "$with_gnu_ld" = no; then
10305
 
            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'
 
10687
            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'
10306
10688
          else
10307
10689
            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'
10308
10690
          fi
10315
10697
    ;;
10316
10698
  linux*)
10317
10699
    case $cc_basename in
10318
 
      KCC)
 
10700
      KCC*)
10319
10701
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10320
10702
 
10321
10703
        # KCC will only create a shared library if the output file
10340
10722
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10341
10723
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10342
10724
        ;;
10343
 
      icpc)
 
10725
      icpc*)
10344
10726
        # Intel C++
10345
10727
        with_gnu_ld=yes
 
10728
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10729
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10730
        # earlier do not add the objects themselves.
 
10731
        case `$CC -V 2>&1` in
 
10732
        *"Version 7."*)
 
10733
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10734
          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'
 
10735
          ;;
 
10736
        *)  # Version 8.0 or newer
 
10737
          tmp_idyn=
 
10738
          case $host_cpu in
 
10739
            ia64*) tmp_idyn=' -i_dynamic';;
 
10740
          esac
 
10741
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10742
          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'
 
10743
          ;;
 
10744
        esac
10346
10745
        archive_cmds_need_lc_CXX=no
10347
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10348
 
        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'
10349
10746
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10350
10747
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10351
10748
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10352
10749
        ;;
10353
 
      cxx)
 
10750
      pgCC*)
 
10751
        # Portland Group C++ compiler
 
10752
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10753
        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'
 
10754
 
 
10755
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10756
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10757
        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'
 
10758
        ;;
 
10759
      cxx*)
10354
10760
        # Compaq C++
10355
10761
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356
10762
        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'
10381
10787
    ;;
10382
10788
  mvs*)
10383
10789
    case $cc_basename in
10384
 
      cxx)
 
10790
      cxx*)
10385
10791
        # FIXME: insert proper C++ library support
10386
10792
        ld_shlibs_CXX=no
10387
10793
        ;;
10391
10797
        ;;
10392
10798
    esac
10393
10799
    ;;
10394
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10800
  netbsd*)
10395
10801
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10396
10802
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10397
10803
      wlarc=
10402
10808
    # Workaround some broken pre-1.5 toolchains
10403
10809
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10404
10810
    ;;
 
10811
  openbsd2*)
 
10812
    # C++ shared libraries are fairly broken
 
10813
    ld_shlibs_CXX=no
 
10814
    ;;
 
10815
  openbsd*)
 
10816
    hardcode_direct_CXX=yes
 
10817
    hardcode_shlibpath_var_CXX=no
 
10818
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10819
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10820
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10821
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10822
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10823
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10824
    fi
 
10825
    output_verbose_link_cmd='echo'
 
10826
    ;;
10405
10827
  osf3*)
10406
10828
    case $cc_basename in
10407
 
      KCC)
 
10829
      KCC*)
10408
10830
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10409
10831
 
10410
10832
        # KCC will only create a shared library if the output file
10420
10842
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10421
10843
 
10422
10844
        ;;
10423
 
      RCC)
 
10845
      RCC*)
10424
10846
        # Rational C++ 2.4.1
10425
10847
        # FIXME: insert proper C++ library support
10426
10848
        ld_shlibs_CXX=no
10427
10849
        ;;
10428
 
      cxx)
 
10850
      cxx*)
10429
10851
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10430
 
        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'
 
10852
        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'
10431
10853
 
10432
10854
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10433
10855
        hardcode_libdir_separator_CXX=:
10445
10867
      *)
10446
10868
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10447
10869
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10448
 
          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'
 
10870
          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'
10449
10871
 
10450
10872
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10451
10873
          hardcode_libdir_separator_CXX=:
10464
10886
    ;;
10465
10887
  osf4* | osf5*)
10466
10888
    case $cc_basename in
10467
 
      KCC)
 
10889
      KCC*)
10468
10890
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10469
10891
 
10470
10892
        # KCC will only create a shared library if the output file
10479
10901
        # the KAI C++ compiler.
10480
10902
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10481
10903
        ;;
10482
 
      RCC)
 
10904
      RCC*)
10483
10905
        # Rational C++ 2.4.1
10484
10906
        # FIXME: insert proper C++ library support
10485
10907
        ld_shlibs_CXX=no
10486
10908
        ;;
10487
 
      cxx)
 
10909
      cxx*)
10488
10910
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10489
 
        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'
 
10911
        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'
10490
10912
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10491
10913
          echo "-hidden">> $lib.exp~
10492
 
          $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~
 
10914
          $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~
10493
10915
          $rm $lib.exp'
10494
10916
 
10495
10917
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10508
10930
      *)
10509
10931
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10510
10932
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10511
 
         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'
 
10933
         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'
10512
10934
 
10513
10935
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10514
10936
          hardcode_libdir_separator_CXX=:
10529
10951
    # FIXME: insert proper C++ library support
10530
10952
    ld_shlibs_CXX=no
10531
10953
    ;;
10532
 
  sco*)
10533
 
    archive_cmds_need_lc_CXX=no
10534
 
    case $cc_basename in
10535
 
      CC)
10536
 
        # FIXME: insert proper C++ library support
10537
 
        ld_shlibs_CXX=no
10538
 
        ;;
10539
 
      *)
10540
 
        # FIXME: insert proper C++ library support
10541
 
        ld_shlibs_CXX=no
10542
 
        ;;
10543
 
    esac
10544
 
    ;;
10545
10954
  sunos4*)
10546
10955
    case $cc_basename in
10547
 
      CC)
 
10956
      CC*)
10548
10957
        # Sun C++ 4.x
10549
10958
        # FIXME: insert proper C++ library support
10550
10959
        ld_shlibs_CXX=no
10551
10960
        ;;
10552
 
      lcc)
 
10961
      lcc*)
10553
10962
        # Lucid
10554
10963
        # FIXME: insert proper C++ library support
10555
10964
        ld_shlibs_CXX=no
10562
10971
    ;;
10563
10972
  solaris*)
10564
10973
    case $cc_basename in
10565
 
      CC)
 
10974
      CC*)
10566
10975
        # Sun C++ 4.2, 5.x and Centerline C++
 
10976
        archive_cmds_need_lc_CXX=yes
10567
10977
        no_undefined_flag_CXX=' -zdefs'
10568
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10978
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10569
10979
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10570
 
        $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'
 
10980
        $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'
10571
10981
 
10572
10982
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10573
10983
        hardcode_shlibpath_var_CXX=no
10574
10984
        case $host_os in
10575
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10985
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10576
10986
          *)
10577
10987
            # The C++ compiler is used as linker so we must use $wl
10578
10988
            # flag to pass the commands to the underlying system
10579
 
            # linker.
 
10989
            # linker. We must also pass each convience library through
 
10990
            # to the system linker between allextract/defaultextract.
 
10991
            # The C++ compiler will combine linker options so we
 
10992
            # cannot just pass the convience library names through
 
10993
            # without $wl.
10580
10994
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10581
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10995
            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'
10582
10996
            ;;
10583
10997
        esac
10584
10998
        link_all_deplibs_CXX=yes
10585
10999
 
10586
 
        # Commands to make compiler produce verbose output that lists
10587
 
        # what "hidden" libraries, object files and flags are used when
10588
 
        # linking a shared library.
10589
 
        #
10590
 
        # There doesn't appear to be a way to prevent this compiler from
10591
 
        # explicitly linking system object files so we need to strip them
10592
 
        # from the output so that they don't get included in the library
10593
 
        # dependencies.
10594
 
        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'
 
11000
        output_verbose_link_cmd='echo'
10595
11001
 
10596
11002
        # Archives containing C++ object files must be created using
10597
11003
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10599
11005
        # in the archive.
10600
11006
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10601
11007
        ;;
10602
 
      gcx)
 
11008
      gcx*)
10603
11009
        # Green Hills C++ Compiler
10604
11010
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10605
11011
 
10637
11043
        ;;
10638
11044
    esac
10639
11045
    ;;
10640
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10641
 
    archive_cmds_need_lc_CXX=no
 
11046
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11047
    no_undefined_flag_CXX='${wl}-z,text'
 
11048
    archive_cmds_need_lc_CXX=no
 
11049
    hardcode_shlibpath_var_CXX=no
 
11050
    runpath_var='LD_RUN_PATH'
 
11051
 
 
11052
    case $cc_basename in
 
11053
      CC*)
 
11054
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11055
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11056
        ;;
 
11057
      *)
 
11058
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11059
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11060
        ;;
 
11061
    esac
 
11062
    ;;
 
11063
  sysv5* | sco3.2v5* | sco5v6*)
 
11064
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11065
    # link with -lc, and that would cause any symbols used from libc to
 
11066
    # always be unresolved, which means just about no library would
 
11067
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11068
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11069
    # as -z defs.
 
11070
    # For security reasons, it is highly recommended that you always
 
11071
    # use absolute paths for naming shared libraries, and exclude the
 
11072
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11073
    # requires that you compile everything twice, which is a pain.
 
11074
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11075
    # non-empty value in the environment.  Most likely only useful for
 
11076
    # creating official distributions of packages.
 
11077
    # This is a hack until libtool officially supports absolute path
 
11078
    # names for shared libraries.
 
11079
    no_undefined_flag_CXX='${wl}-z,text'
 
11080
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11081
    archive_cmds_need_lc_CXX=no
 
11082
    hardcode_shlibpath_var_CXX=no
 
11083
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11084
    hardcode_libdir_separator_CXX=':'
 
11085
    link_all_deplibs_CXX=yes
 
11086
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11087
    runpath_var='LD_RUN_PATH'
 
11088
 
 
11089
    case $cc_basename in
 
11090
      CC*)
 
11091
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11092
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11093
        ;;
 
11094
      *)
 
11095
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11096
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11097
        ;;
 
11098
    esac
10642
11099
    ;;
10643
11100
  tandem*)
10644
11101
    case $cc_basename in
10645
 
      NCC)
 
11102
      NCC*)
10646
11103
        # NonStop-UX NCC 3.20
10647
11104
        # FIXME: insert proper C++ library support
10648
11105
        ld_shlibs_CXX=no
10695
11152
  # The `*' in the case matches for architectures that use `case' in
10696
11153
  # $output_verbose_cmd can trigger glob expansion during the loop
10697
11154
  # eval without this substitution.
10698
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11155
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10699
11156
 
10700
11157
  for p in `eval $output_verbose_link_cmd`; do
10701
11158
    case $p in
10771
11228
 
10772
11229
$rm -f confest.$objext
10773
11230
 
 
11231
# PORTME: override above test on systems where it is broken
 
11232
case $host_os in
 
11233
interix3*)
 
11234
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11235
  # hack all around it, let's just trust "g++" to DTRT.
 
11236
  predep_objects_CXX=
 
11237
  postdep_objects_CXX=
 
11238
  postdeps_CXX=
 
11239
  ;;
 
11240
 
 
11241
solaris*)
 
11242
  case $cc_basename in
 
11243
  CC*)
 
11244
    # Adding this requires a known-good setup of shared libraries for
 
11245
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11246
    # archive will be linked into the output, leading to subtle bugs.
 
11247
    postdeps_CXX='-lCstd -lCrun'
 
11248
    ;;
 
11249
  esac
 
11250
  ;;
 
11251
esac
 
11252
 
 
11253
 
10774
11254
case " $postdeps_CXX " in
10775
11255
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10776
11256
esac
10818
11298
      # DJGPP does not support shared libraries at all
10819
11299
      lt_prog_compiler_pic_CXX=
10820
11300
      ;;
 
11301
    interix3*)
 
11302
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11303
      # Instead, we relocate shared libraries at runtime.
 
11304
      ;;
10821
11305
    sysv4*MP*)
10822
11306
      if test -d /usr/nec; then
10823
11307
        lt_prog_compiler_pic_CXX=-Kconform_pic
10826
11310
    hpux*)
10827
11311
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10828
11312
      # not for PA HP-UX.
10829
 
      case "$host_cpu" in
 
11313
      case $host_cpu in
10830
11314
      hppa*64*|ia64*)
10831
11315
        ;;
10832
11316
      *)
10851
11335
        ;;
10852
11336
      chorus*)
10853
11337
        case $cc_basename in
10854
 
        cxch68)
 
11338
        cxch68*)
10855
11339
          # Green Hills C++ Compiler
10856
11340
          # _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"
10857
11341
          ;;
10858
11342
        esac
10859
11343
        ;;
 
11344
       darwin*)
 
11345
         # PIC is the default on this platform
 
11346
         # Common symbols not allowed in MH_DYLIB files
 
11347
         case $cc_basename in
 
11348
           xlc*)
 
11349
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11350
           lt_prog_compiler_wl_CXX='-Wl,'
 
11351
           ;;
 
11352
         esac
 
11353
       ;;
10860
11354
      dgux*)
10861
11355
        case $cc_basename in
10862
 
          ec++)
 
11356
          ec++*)
10863
11357
            lt_prog_compiler_pic_CXX='-KPIC'
10864
11358
            ;;
10865
 
          ghcx)
 
11359
          ghcx*)
10866
11360
            # Green Hills C++ Compiler
10867
11361
            lt_prog_compiler_pic_CXX='-pic'
10868
11362
            ;;
10870
11364
            ;;
10871
11365
        esac
10872
11366
        ;;
10873
 
      freebsd* | kfreebsd*-gnu)
 
11367
      freebsd* | kfreebsd*-gnu | dragonfly*)
10874
11368
        # FreeBSD uses GNU C++
10875
11369
        ;;
10876
11370
      hpux9* | hpux10* | hpux11*)
10877
11371
        case $cc_basename in
10878
 
          CC)
 
11372
          CC*)
10879
11373
            lt_prog_compiler_wl_CXX='-Wl,'
10880
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11374
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10881
11375
            if test "$host_cpu" != ia64; then
10882
11376
              lt_prog_compiler_pic_CXX='+Z'
10883
11377
            fi
10884
11378
            ;;
10885
 
          aCC)
 
11379
          aCC*)
10886
11380
            lt_prog_compiler_wl_CXX='-Wl,'
10887
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10888
 
            case "$host_cpu" in
 
11381
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11382
            case $host_cpu in
10889
11383
            hppa*64*|ia64*)
10890
11384
              # +Z the default
10891
11385
              ;;
10898
11392
            ;;
10899
11393
        esac
10900
11394
        ;;
 
11395
      interix*)
 
11396
        # This is c89, which is MS Visual C++ (no shared libs)
 
11397
        # Anyone wants to do a port?
 
11398
        ;;
10901
11399
      irix5* | irix6* | nonstopux*)
10902
11400
        case $cc_basename in
10903
 
          CC)
 
11401
          CC*)
10904
11402
            lt_prog_compiler_wl_CXX='-Wl,'
10905
11403
            lt_prog_compiler_static_CXX='-non_shared'
10906
11404
            # CC pic flag -KPIC is the default.
10911
11409
        ;;
10912
11410
      linux*)
10913
11411
        case $cc_basename in
10914
 
          KCC)
 
11412
          KCC*)
10915
11413
            # KAI C++ Compiler
10916
11414
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10917
11415
            lt_prog_compiler_pic_CXX='-fPIC'
10918
11416
            ;;
10919
 
          icpc)
 
11417
          icpc* | ecpc*)
10920
11418
            # Intel C++
10921
11419
            lt_prog_compiler_wl_CXX='-Wl,'
10922
11420
            lt_prog_compiler_pic_CXX='-KPIC'
10923
11421
            lt_prog_compiler_static_CXX='-static'
10924
11422
            ;;
10925
 
          cxx)
 
11423
          pgCC*)
 
11424
            # Portland Group C++ compiler.
 
11425
            lt_prog_compiler_wl_CXX='-Wl,'
 
11426
            lt_prog_compiler_pic_CXX='-fpic'
 
11427
            lt_prog_compiler_static_CXX='-Bstatic'
 
11428
            ;;
 
11429
          cxx*)
10926
11430
            # Compaq C++
10927
11431
            # Make sure the PIC flag is empty.  It appears that all Alpha
10928
11432
            # Linux and Compaq Tru64 Unix objects are PIC.
10939
11443
        ;;
10940
11444
      mvs*)
10941
11445
        case $cc_basename in
10942
 
          cxx)
 
11446
          cxx*)
10943
11447
            lt_prog_compiler_pic_CXX='-W c,exportall'
10944
11448
            ;;
10945
11449
          *)
10946
11450
            ;;
10947
11451
        esac
10948
11452
        ;;
10949
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11453
      netbsd*)
10950
11454
        ;;
10951
11455
      osf3* | osf4* | osf5*)
10952
11456
        case $cc_basename in
10953
 
          KCC)
 
11457
          KCC*)
10954
11458
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10955
11459
            ;;
10956
 
          RCC)
 
11460
          RCC*)
10957
11461
            # Rational C++ 2.4.1
10958
11462
            lt_prog_compiler_pic_CXX='-pic'
10959
11463
            ;;
10960
 
          cxx)
 
11464
          cxx*)
10961
11465
            # Digital/Compaq C++
10962
11466
            lt_prog_compiler_wl_CXX='-Wl,'
10963
11467
            # Make sure the PIC flag is empty.  It appears that all Alpha
10971
11475
        ;;
10972
11476
      psos*)
10973
11477
        ;;
10974
 
      sco*)
10975
 
        case $cc_basename in
10976
 
          CC)
10977
 
            lt_prog_compiler_pic_CXX='-fPIC'
10978
 
            ;;
10979
 
          *)
10980
 
            ;;
10981
 
        esac
10982
 
        ;;
10983
11478
      solaris*)
10984
11479
        case $cc_basename in
10985
 
          CC)
 
11480
          CC*)
10986
11481
            # Sun C++ 4.2, 5.x and Centerline C++
10987
11482
            lt_prog_compiler_pic_CXX='-KPIC'
10988
11483
            lt_prog_compiler_static_CXX='-Bstatic'
10989
11484
            lt_prog_compiler_wl_CXX='-Qoption ld '
10990
11485
            ;;
10991
 
          gcx)
 
11486
          gcx*)
10992
11487
            # Green Hills C++ Compiler
10993
11488
            lt_prog_compiler_pic_CXX='-PIC'
10994
11489
            ;;
10998
11493
        ;;
10999
11494
      sunos4*)
11000
11495
        case $cc_basename in
11001
 
          CC)
 
11496
          CC*)
11002
11497
            # Sun C++ 4.x
11003
11498
            lt_prog_compiler_pic_CXX='-pic'
11004
11499
            lt_prog_compiler_static_CXX='-Bstatic'
11005
11500
            ;;
11006
 
          lcc)
 
11501
          lcc*)
11007
11502
            # Lucid
11008
11503
            lt_prog_compiler_pic_CXX='-pic'
11009
11504
            ;;
11013
11508
        ;;
11014
11509
      tandem*)
11015
11510
        case $cc_basename in
11016
 
          NCC)
 
11511
          NCC*)
11017
11512
            # NonStop-UX NCC 3.20
11018
11513
            lt_prog_compiler_pic_CXX='-KPIC'
11019
11514
            ;;
11021
11516
            ;;
11022
11517
        esac
11023
11518
        ;;
11024
 
      unixware*)
 
11519
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11520
        case $cc_basename in
 
11521
          CC*)
 
11522
            lt_prog_compiler_wl_CXX='-Wl,'
 
11523
            lt_prog_compiler_pic_CXX='-KPIC'
 
11524
            lt_prog_compiler_static_CXX='-Bstatic'
 
11525
            ;;
 
11526
        esac
11025
11527
        ;;
11026
11528
      vxworks*)
11027
11529
        ;;
11054
11556
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11055
11557
   # The option is referenced via a variable to avoid confusing sed.
11056
11558
   lt_compile=`echo "$ac_compile" | $SED \
11057
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11559
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11058
11560
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11059
11561
   -e 's:$: $lt_compiler_flag:'`
11060
 
   (eval echo "\"\$as_me:11060: $lt_compile\"" >&5)
 
11562
   (eval echo "\"\$as_me:11562: $lt_compile\"" >&5)
11061
11563
   (eval "$lt_compile" 2>conftest.err)
11062
11564
   ac_status=$?
11063
11565
   cat conftest.err >&5
11064
 
   echo "$as_me:11064: \$? = $ac_status" >&5
 
11566
   echo "$as_me:11566: \$? = $ac_status" >&5
11065
11567
   if (exit $ac_status) && test -s "$ac_outfile"; then
11066
11568
     # The compiler can only warn and ignore the option if not recognized
11067
 
     # So say no if there are warnings
11068
 
     if test ! -s conftest.err; then
 
11569
     # So say no if there are warnings other than the usual output.
 
11570
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11571
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11572
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11069
11573
       lt_prog_compiler_pic_works_CXX=yes
11070
11574
     fi
11071
11575
   fi
11086
11590
fi
11087
11591
 
11088
11592
fi
11089
 
case "$host_os" in
 
11593
case $host_os in
11090
11594
  # For platforms which do not support PIC, -DPIC is meaningless:
11091
11595
  *djgpp*)
11092
11596
    lt_prog_compiler_pic_CXX=
11096
11600
    ;;
11097
11601
esac
11098
11602
 
 
11603
#
 
11604
# Check to make sure the static flag actually works.
 
11605
#
 
11606
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11607
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11608
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11609
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11611
else
 
11612
  lt_prog_compiler_static_works_CXX=no
 
11613
   save_LDFLAGS="$LDFLAGS"
 
11614
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11615
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11616
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11617
     # The linker can only warn and ignore the option if not recognized
 
11618
     # So say no if there are warnings
 
11619
     if test -s conftest.err; then
 
11620
       # Append any errors to the config.log.
 
11621
       cat conftest.err 1>&5
 
11622
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11623
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11624
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11625
         lt_prog_compiler_static_works_CXX=yes
 
11626
       fi
 
11627
     else
 
11628
       lt_prog_compiler_static_works_CXX=yes
 
11629
     fi
 
11630
   fi
 
11631
   $rm conftest*
 
11632
   LDFLAGS="$save_LDFLAGS"
 
11633
 
 
11634
fi
 
11635
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11636
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11637
 
 
11638
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11639
    :
 
11640
else
 
11641
    lt_prog_compiler_static_CXX=
 
11642
fi
 
11643
 
 
11644
 
11099
11645
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11100
11646
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11101
11647
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11114
11660
   # Note that $ac_compile itself does not contain backslashes and begins
11115
11661
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11116
11662
   lt_compile=`echo "$ac_compile" | $SED \
11117
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11663
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11118
11664
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11119
11665
   -e 's:$: $lt_compiler_flag:'`
11120
 
   (eval echo "\"\$as_me:11120: $lt_compile\"" >&5)
 
11666
   (eval echo "\"\$as_me:11666: $lt_compile\"" >&5)
11121
11667
   (eval "$lt_compile" 2>out/conftest.err)
11122
11668
   ac_status=$?
11123
11669
   cat out/conftest.err >&5
11124
 
   echo "$as_me:11124: \$? = $ac_status" >&5
 
11670
   echo "$as_me:11670: \$? = $ac_status" >&5
11125
11671
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11126
11672
   then
11127
11673
     # The compiler can only warn and ignore the option if not recognized
11128
11674
     # So say no if there are warnings
11129
 
     if test ! -s out/conftest.err; then
 
11675
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11676
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11677
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11130
11678
       lt_cv_prog_compiler_c_o_CXX=yes
11131
11679
     fi
11132
11680
   fi
11133
 
   chmod u+w .
 
11681
   chmod u+w . 2>&5
11134
11682
   $rm conftest*
11135
11683
   # SGI C++ compiler will create directory out/ii_files/ for
11136
11684
   # template instantiation
11185
11733
    export_symbols_cmds_CXX="$ltdll_cmds"
11186
11734
  ;;
11187
11735
  cygwin* | mingw*)
11188
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11189
 
  ;;
11190
 
  linux*)
11191
 
    link_all_deplibs_CXX=no
 
11736
    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'
11192
11737
  ;;
11193
11738
  *)
11194
11739
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11199
11744
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11200
11745
test "$ld_shlibs_CXX" = no && can_build_shared=no
11201
11746
 
11202
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11203
 
if test "$GCC" = yes; then
11204
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11205
 
fi
11206
 
 
11207
11747
#
11208
11748
# Do we need to explicitly link libc?
11209
11749
#
11236
11776
        libobjs=conftest.$ac_objext
11237
11777
        deplibs=
11238
11778
        wl=$lt_prog_compiler_wl_CXX
 
11779
        pic_flag=$lt_prog_compiler_pic_CXX
11239
11780
        compiler_flags=-v
11240
11781
        linker_flags=-v
11241
11782
        verstring=
11368
11909
  shlibpath_var=LIBRARY_PATH
11369
11910
  ;;
11370
11911
 
11371
 
bsdi4*)
 
11912
bsdi[45]*)
11372
11913
  version_type=linux
11373
11914
  need_version=no
11374
11915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396
11937
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11397
11938
      dldir=$destdir/`dirname \$dlpath`~
11398
11939
      test -d \$dldir || mkdir -p \$dldir~
11399
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11940
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11941
      chmod a+x \$dldir/$dlname'
11400
11942
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11401
11943
      dlpath=$dir/\$dldll~
11402
11944
       $rm \$dlpath'
11426
11968
      ;;
11427
11969
    pw32*)
11428
11970
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11429
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11971
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430
11972
      ;;
11431
11973
    esac
11432
11974
    ;;
11449
11991
  soname_spec='${libname}${release}${major}$shared_ext'
11450
11992
  shlibpath_overrides_runpath=yes
11451
11993
  shlibpath_var=DYLD_LIBRARY_PATH
11452
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11994
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11453
11995
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11454
11996
  if test "$GCC" = yes; then
11455
11997
    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"`
11484
12026
  dynamic_linker='GNU ld.so'
11485
12027
  ;;
11486
12028
 
11487
 
freebsd*)
11488
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12029
freebsd* | dragonfly*)
 
12030
  # DragonFly does not have aout.  When/if they implement a new
 
12031
  # versioning mechanism, adjust this.
 
12032
  if test -x /usr/bin/objformat; then
 
12033
    objformat=`/usr/bin/objformat`
 
12034
  else
 
12035
    case $host_os in
 
12036
    freebsd[123]*) objformat=aout ;;
 
12037
    *) objformat=elf ;;
 
12038
    esac
 
12039
  fi
11489
12040
  version_type=freebsd-$objformat
11490
12041
  case $version_type in
11491
12042
    freebsd-elf*)
11503
12054
  freebsd2*)
11504
12055
    shlibpath_overrides_runpath=yes
11505
12056
    ;;
11506
 
  freebsd3.01* | freebsdelf3.01*)
 
12057
  freebsd3.[01]* | freebsdelf3.[01]*)
11507
12058
    shlibpath_overrides_runpath=yes
11508
12059
    hardcode_into_libs=yes
11509
12060
    ;;
11510
 
  *) # from 3.2 on
 
12061
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12062
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11511
12063
    shlibpath_overrides_runpath=no
11512
12064
    hardcode_into_libs=yes
11513
12065
    ;;
 
12066
  freebsd*) # from 4.6 on
 
12067
    shlibpath_overrides_runpath=yes
 
12068
    hardcode_into_libs=yes
 
12069
    ;;
11514
12070
  esac
11515
12071
  ;;
11516
12072
 
11530
12086
  version_type=sunos
11531
12087
  need_lib_prefix=no
11532
12088
  need_version=no
11533
 
  case "$host_cpu" in
 
12089
  case $host_cpu in
11534
12090
  ia64*)
11535
12091
    shrext_cmds='.so'
11536
12092
    hardcode_into_libs=yes
11570
12126
  postinstall_cmds='chmod 555 $lib'
11571
12127
  ;;
11572
12128
 
 
12129
interix3*)
 
12130
  version_type=linux
 
12131
  need_lib_prefix=no
 
12132
  need_version=no
 
12133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12134
  soname_spec='${libname}${release}${shared_ext}$major'
 
12135
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12136
  shlibpath_var=LD_LIBRARY_PATH
 
12137
  shlibpath_overrides_runpath=no
 
12138
  hardcode_into_libs=yes
 
12139
  ;;
 
12140
 
11573
12141
irix5* | irix6* | nonstopux*)
11574
12142
  case $host_os in
11575
12143
    nonstopux*) version_type=nonstopux ;;
11627
12195
  # before this can be enabled.
11628
12196
  hardcode_into_libs=yes
11629
12197
 
 
12198
  # find out which ABI we are using
 
12199
  libsuff=
 
12200
  case "$host_cpu" in
 
12201
  x86_64*|s390x*|powerpc64*)
 
12202
    echo '#line 12202 "configure"' > conftest.$ac_ext
 
12203
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12204
  (eval $ac_compile) 2>&5
 
12205
  ac_status=$?
 
12206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12207
  (exit $ac_status); }; then
 
12208
      case `/usr/bin/file conftest.$ac_objext` in
 
12209
      *64-bit*)
 
12210
        libsuff=64
 
12211
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12212
        ;;
 
12213
      esac
 
12214
    fi
 
12215
    rm -rf conftest*
 
12216
    ;;
 
12217
  esac
 
12218
 
11630
12219
  # Append ld.so.conf contents to the search path
11631
12220
  if test -f /etc/ld.so.conf; then
11632
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11633
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12221
    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' ' '`
 
12222
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11634
12223
  fi
11635
12224
 
11636
12225
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11642
12231
  dynamic_linker='GNU/Linux ld.so'
11643
12232
  ;;
11644
12233
 
11645
 
netbsdelf*-gnu)
11646
 
  version_type=linux
11647
 
  need_lib_prefix=no
11648
 
  need_version=no
11649
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650
 
  soname_spec='${libname}${release}${shared_ext}$major'
11651
 
  shlibpath_var=LD_LIBRARY_PATH
11652
 
  shlibpath_overrides_runpath=no
11653
 
  hardcode_into_libs=yes
11654
 
  dynamic_linker='NetBSD ld.elf_so'
11655
 
  ;;
11656
 
 
11657
12234
knetbsd*-gnu)
11658
12235
  version_type=linux
11659
12236
  need_lib_prefix=no
11703
12280
 
11704
12281
openbsd*)
11705
12282
  version_type=sunos
 
12283
  sys_lib_dlsearch_path_spec="/usr/lib"
11706
12284
  need_lib_prefix=no
11707
 
  need_version=yes
 
12285
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12286
  case $host_os in
 
12287
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12288
    *)                         need_version=no  ;;
 
12289
  esac
11708
12290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11709
12291
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11710
12292
  shlibpath_var=LD_LIBRARY_PATH
11742
12324
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11743
12325
  ;;
11744
12326
 
11745
 
sco3.2v5*)
11746
 
  version_type=osf
11747
 
  soname_spec='${libname}${release}${shared_ext}$major'
11748
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749
 
  shlibpath_var=LD_LIBRARY_PATH
11750
 
  ;;
11751
 
 
11752
12327
solaris*)
11753
12328
  version_type=linux
11754
12329
  need_lib_prefix=no
11774
12349
  need_version=yes
11775
12350
  ;;
11776
12351
 
11777
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12352
sysv4 | sysv4.3*)
11778
12353
  version_type=linux
11779
12354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780
12355
  soname_spec='${libname}${release}${shared_ext}$major'
11807
12382
  fi
11808
12383
  ;;
11809
12384
 
 
12385
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12386
  version_type=freebsd-elf
 
12387
  need_lib_prefix=no
 
12388
  need_version=no
 
12389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12390
  soname_spec='${libname}${release}${shared_ext}$major'
 
12391
  shlibpath_var=LD_LIBRARY_PATH
 
12392
  hardcode_into_libs=yes
 
12393
  if test "$with_gnu_ld" = yes; then
 
12394
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12395
    shlibpath_overrides_runpath=no
 
12396
  else
 
12397
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12398
    shlibpath_overrides_runpath=yes
 
12399
    case $host_os in
 
12400
      sco3.2v5*)
 
12401
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12402
        ;;
 
12403
    esac
 
12404
  fi
 
12405
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12406
  ;;
 
12407
 
11810
12408
uts4*)
11811
12409
  version_type=linux
11812
12410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822
12420
echo "${ECHO_T}$dynamic_linker" >&6
11823
12421
test "$dynamic_linker" = no && can_build_shared=no
11824
12422
 
 
12423
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12424
if test "$GCC" = yes; then
 
12425
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12426
fi
 
12427
 
11825
12428
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11826
12429
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11827
12430
hardcode_action_CXX=
11828
12431
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11829
 
   test -n "$runpath_var CXX" || \
11830
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12432
   test -n "$runpath_var_CXX" || \
 
12433
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11831
12434
 
11832
12435
  # We can hardcode non-existant directories.
11833
12436
  if test "$hardcode_direct_CXX" != no &&
11859
12462
  enable_fast_install=needless
11860
12463
fi
11861
12464
 
11862
 
striplib=
11863
 
old_striplib=
11864
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11865
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11866
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11867
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11869
 
  echo "$as_me:$LINENO: result: yes" >&5
11870
 
echo "${ECHO_T}yes" >&6
11871
 
else
11872
 
# FIXME - insert some real tests, host_os isn't really good enough
11873
 
  case $host_os in
11874
 
   darwin*)
11875
 
       if test -n "$STRIP" ; then
11876
 
         striplib="$STRIP -x"
11877
 
         echo "$as_me:$LINENO: result: yes" >&5
11878
 
echo "${ECHO_T}yes" >&6
11879
 
       else
11880
 
  echo "$as_me:$LINENO: result: no" >&5
11881
 
echo "${ECHO_T}no" >&6
11882
 
fi
11883
 
       ;;
11884
 
   *)
11885
 
  echo "$as_me:$LINENO: result: no" >&5
11886
 
echo "${ECHO_T}no" >&6
11887
 
    ;;
11888
 
  esac
11889
 
fi
11890
 
 
11891
 
if test "x$enable_dlopen" != xyes; then
11892
 
  enable_dlopen=unknown
11893
 
  enable_dlopen_self=unknown
11894
 
  enable_dlopen_self_static=unknown
11895
 
else
11896
 
  lt_cv_dlopen=no
11897
 
  lt_cv_dlopen_libs=
11898
 
 
11899
 
  case $host_os in
11900
 
  beos*)
11901
 
    lt_cv_dlopen="load_add_on"
11902
 
    lt_cv_dlopen_libs=
11903
 
    lt_cv_dlopen_self=yes
11904
 
    ;;
11905
 
 
11906
 
  mingw* | pw32*)
11907
 
    lt_cv_dlopen="LoadLibrary"
11908
 
    lt_cv_dlopen_libs=
11909
 
   ;;
11910
 
 
11911
 
  cygwin*)
11912
 
    lt_cv_dlopen="dlopen"
11913
 
    lt_cv_dlopen_libs=
11914
 
   ;;
11915
 
 
11916
 
  darwin*)
11917
 
  # if libdl is installed we need to link against it
11918
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11919
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11920
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11921
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11922
 
else
11923
 
  ac_check_lib_save_LIBS=$LIBS
11924
 
LIBS="-ldl  $LIBS"
11925
 
cat >conftest.$ac_ext <<_ACEOF
11926
 
/* confdefs.h.  */
11927
 
_ACEOF
11928
 
cat confdefs.h >>conftest.$ac_ext
11929
 
cat >>conftest.$ac_ext <<_ACEOF
11930
 
/* end confdefs.h.  */
11931
 
 
11932
 
/* Override any gcc2 internal prototype to avoid an error.  */
11933
 
#ifdef __cplusplus
11934
 
extern "C"
11935
 
#endif
11936
 
/* We use char because int might match the return type of a gcc2
11937
 
   builtin and then its argument prototype would still apply.  */
11938
 
char dlopen ();
11939
 
int
11940
 
main ()
11941
 
{
11942
 
dlopen ();
11943
 
  ;
11944
 
  return 0;
11945
 
}
11946
 
_ACEOF
11947
 
rm -f conftest.$ac_objext conftest$ac_exeext
11948
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949
 
  (eval $ac_link) 2>conftest.er1
11950
 
  ac_status=$?
11951
 
  grep -v '^ *+' conftest.er1 >conftest.err
11952
 
  rm -f conftest.er1
11953
 
  cat conftest.err >&5
11954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955
 
  (exit $ac_status); } &&
11956
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11957
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958
 
  (eval $ac_try) 2>&5
11959
 
  ac_status=$?
11960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961
 
  (exit $ac_status); }; } &&
11962
 
         { ac_try='test -s conftest$ac_exeext'
11963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964
 
  (eval $ac_try) 2>&5
11965
 
  ac_status=$?
11966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967
 
  (exit $ac_status); }; }; then
11968
 
  ac_cv_lib_dl_dlopen=yes
11969
 
else
11970
 
  echo "$as_me: failed program was:" >&5
11971
 
sed 's/^/| /' conftest.$ac_ext >&5
11972
 
 
11973
 
ac_cv_lib_dl_dlopen=no
11974
 
fi
11975
 
rm -f conftest.err conftest.$ac_objext \
11976
 
      conftest$ac_exeext conftest.$ac_ext
11977
 
LIBS=$ac_check_lib_save_LIBS
11978
 
fi
11979
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11980
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11981
 
if test $ac_cv_lib_dl_dlopen = yes; then
11982
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11983
 
else
11984
 
 
11985
 
    lt_cv_dlopen="dyld"
11986
 
    lt_cv_dlopen_libs=
11987
 
    lt_cv_dlopen_self=yes
11988
 
 
11989
 
fi
11990
 
 
11991
 
   ;;
11992
 
 
11993
 
  *)
11994
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11995
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11996
 
if test "${ac_cv_func_shl_load+set}" = set; then
11997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11998
 
else
11999
 
  cat >conftest.$ac_ext <<_ACEOF
12000
 
/* confdefs.h.  */
12001
 
_ACEOF
12002
 
cat confdefs.h >>conftest.$ac_ext
12003
 
cat >>conftest.$ac_ext <<_ACEOF
12004
 
/* end confdefs.h.  */
12005
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12006
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12007
 
#define shl_load innocuous_shl_load
12008
 
 
12009
 
/* System header to define __stub macros and hopefully few prototypes,
12010
 
    which can conflict with char shl_load (); below.
12011
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12012
 
    <limits.h> exists even on freestanding compilers.  */
12013
 
 
12014
 
#ifdef __STDC__
12015
 
# include <limits.h>
12016
 
#else
12017
 
# include <assert.h>
12018
 
#endif
12019
 
 
12020
 
#undef shl_load
12021
 
 
12022
 
/* Override any gcc2 internal prototype to avoid an error.  */
12023
 
#ifdef __cplusplus
12024
 
extern "C"
12025
 
{
12026
 
#endif
12027
 
/* We use char because int might match the return type of a gcc2
12028
 
   builtin and then its argument prototype would still apply.  */
12029
 
char shl_load ();
12030
 
/* The GNU C library defines this for functions which it implements
12031
 
    to always fail with ENOSYS.  Some functions are actually named
12032
 
    something starting with __ and the normal name is an alias.  */
12033
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12034
 
choke me
12035
 
#else
12036
 
char (*f) () = shl_load;
12037
 
#endif
12038
 
#ifdef __cplusplus
12039
 
}
12040
 
#endif
12041
 
 
12042
 
int
12043
 
main ()
12044
 
{
12045
 
return f != shl_load;
12046
 
  ;
12047
 
  return 0;
12048
 
}
12049
 
_ACEOF
12050
 
rm -f conftest.$ac_objext conftest$ac_exeext
12051
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052
 
  (eval $ac_link) 2>conftest.er1
12053
 
  ac_status=$?
12054
 
  grep -v '^ *+' conftest.er1 >conftest.err
12055
 
  rm -f conftest.er1
12056
 
  cat conftest.err >&5
12057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058
 
  (exit $ac_status); } &&
12059
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12060
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061
 
  (eval $ac_try) 2>&5
12062
 
  ac_status=$?
12063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064
 
  (exit $ac_status); }; } &&
12065
 
         { ac_try='test -s conftest$ac_exeext'
12066
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067
 
  (eval $ac_try) 2>&5
12068
 
  ac_status=$?
12069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070
 
  (exit $ac_status); }; }; then
12071
 
  ac_cv_func_shl_load=yes
12072
 
else
12073
 
  echo "$as_me: failed program was:" >&5
12074
 
sed 's/^/| /' conftest.$ac_ext >&5
12075
 
 
12076
 
ac_cv_func_shl_load=no
12077
 
fi
12078
 
rm -f conftest.err conftest.$ac_objext \
12079
 
      conftest$ac_exeext conftest.$ac_ext
12080
 
fi
12081
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12082
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12083
 
if test $ac_cv_func_shl_load = yes; then
12084
 
  lt_cv_dlopen="shl_load"
12085
 
else
12086
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12087
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12088
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12090
 
else
12091
 
  ac_check_lib_save_LIBS=$LIBS
12092
 
LIBS="-ldld  $LIBS"
12093
 
cat >conftest.$ac_ext <<_ACEOF
12094
 
/* confdefs.h.  */
12095
 
_ACEOF
12096
 
cat confdefs.h >>conftest.$ac_ext
12097
 
cat >>conftest.$ac_ext <<_ACEOF
12098
 
/* end confdefs.h.  */
12099
 
 
12100
 
/* Override any gcc2 internal prototype to avoid an error.  */
12101
 
#ifdef __cplusplus
12102
 
extern "C"
12103
 
#endif
12104
 
/* We use char because int might match the return type of a gcc2
12105
 
   builtin and then its argument prototype would still apply.  */
12106
 
char shl_load ();
12107
 
int
12108
 
main ()
12109
 
{
12110
 
shl_load ();
12111
 
  ;
12112
 
  return 0;
12113
 
}
12114
 
_ACEOF
12115
 
rm -f conftest.$ac_objext conftest$ac_exeext
12116
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117
 
  (eval $ac_link) 2>conftest.er1
12118
 
  ac_status=$?
12119
 
  grep -v '^ *+' conftest.er1 >conftest.err
12120
 
  rm -f conftest.er1
12121
 
  cat conftest.err >&5
12122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
 
  (exit $ac_status); } &&
12124
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12125
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126
 
  (eval $ac_try) 2>&5
12127
 
  ac_status=$?
12128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129
 
  (exit $ac_status); }; } &&
12130
 
         { ac_try='test -s conftest$ac_exeext'
12131
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132
 
  (eval $ac_try) 2>&5
12133
 
  ac_status=$?
12134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135
 
  (exit $ac_status); }; }; then
12136
 
  ac_cv_lib_dld_shl_load=yes
12137
 
else
12138
 
  echo "$as_me: failed program was:" >&5
12139
 
sed 's/^/| /' conftest.$ac_ext >&5
12140
 
 
12141
 
ac_cv_lib_dld_shl_load=no
12142
 
fi
12143
 
rm -f conftest.err conftest.$ac_objext \
12144
 
      conftest$ac_exeext conftest.$ac_ext
12145
 
LIBS=$ac_check_lib_save_LIBS
12146
 
fi
12147
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12148
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12149
 
if test $ac_cv_lib_dld_shl_load = yes; then
12150
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12151
 
else
12152
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12153
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12154
 
if test "${ac_cv_func_dlopen+set}" = set; then
12155
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12156
 
else
12157
 
  cat >conftest.$ac_ext <<_ACEOF
12158
 
/* confdefs.h.  */
12159
 
_ACEOF
12160
 
cat confdefs.h >>conftest.$ac_ext
12161
 
cat >>conftest.$ac_ext <<_ACEOF
12162
 
/* end confdefs.h.  */
12163
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12164
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12165
 
#define dlopen innocuous_dlopen
12166
 
 
12167
 
/* System header to define __stub macros and hopefully few prototypes,
12168
 
    which can conflict with char dlopen (); below.
12169
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170
 
    <limits.h> exists even on freestanding compilers.  */
12171
 
 
12172
 
#ifdef __STDC__
12173
 
# include <limits.h>
12174
 
#else
12175
 
# include <assert.h>
12176
 
#endif
12177
 
 
12178
 
#undef dlopen
12179
 
 
12180
 
/* Override any gcc2 internal prototype to avoid an error.  */
12181
 
#ifdef __cplusplus
12182
 
extern "C"
12183
 
{
12184
 
#endif
12185
 
/* We use char because int might match the return type of a gcc2
12186
 
   builtin and then its argument prototype would still apply.  */
12187
 
char dlopen ();
12188
 
/* The GNU C library defines this for functions which it implements
12189
 
    to always fail with ENOSYS.  Some functions are actually named
12190
 
    something starting with __ and the normal name is an alias.  */
12191
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12192
 
choke me
12193
 
#else
12194
 
char (*f) () = dlopen;
12195
 
#endif
12196
 
#ifdef __cplusplus
12197
 
}
12198
 
#endif
12199
 
 
12200
 
int
12201
 
main ()
12202
 
{
12203
 
return f != dlopen;
12204
 
  ;
12205
 
  return 0;
12206
 
}
12207
 
_ACEOF
12208
 
rm -f conftest.$ac_objext conftest$ac_exeext
12209
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210
 
  (eval $ac_link) 2>conftest.er1
12211
 
  ac_status=$?
12212
 
  grep -v '^ *+' conftest.er1 >conftest.err
12213
 
  rm -f conftest.er1
12214
 
  cat conftest.err >&5
12215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216
 
  (exit $ac_status); } &&
12217
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12218
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219
 
  (eval $ac_try) 2>&5
12220
 
  ac_status=$?
12221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222
 
  (exit $ac_status); }; } &&
12223
 
         { ac_try='test -s conftest$ac_exeext'
12224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225
 
  (eval $ac_try) 2>&5
12226
 
  ac_status=$?
12227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228
 
  (exit $ac_status); }; }; then
12229
 
  ac_cv_func_dlopen=yes
12230
 
else
12231
 
  echo "$as_me: failed program was:" >&5
12232
 
sed 's/^/| /' conftest.$ac_ext >&5
12233
 
 
12234
 
ac_cv_func_dlopen=no
12235
 
fi
12236
 
rm -f conftest.err conftest.$ac_objext \
12237
 
      conftest$ac_exeext conftest.$ac_ext
12238
 
fi
12239
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12240
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12241
 
if test $ac_cv_func_dlopen = yes; then
12242
 
  lt_cv_dlopen="dlopen"
12243
 
else
12244
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12245
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12246
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12248
 
else
12249
 
  ac_check_lib_save_LIBS=$LIBS
12250
 
LIBS="-ldl  $LIBS"
12251
 
cat >conftest.$ac_ext <<_ACEOF
12252
 
/* confdefs.h.  */
12253
 
_ACEOF
12254
 
cat confdefs.h >>conftest.$ac_ext
12255
 
cat >>conftest.$ac_ext <<_ACEOF
12256
 
/* end confdefs.h.  */
12257
 
 
12258
 
/* Override any gcc2 internal prototype to avoid an error.  */
12259
 
#ifdef __cplusplus
12260
 
extern "C"
12261
 
#endif
12262
 
/* We use char because int might match the return type of a gcc2
12263
 
   builtin and then its argument prototype would still apply.  */
12264
 
char dlopen ();
12265
 
int
12266
 
main ()
12267
 
{
12268
 
dlopen ();
12269
 
  ;
12270
 
  return 0;
12271
 
}
12272
 
_ACEOF
12273
 
rm -f conftest.$ac_objext conftest$ac_exeext
12274
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275
 
  (eval $ac_link) 2>conftest.er1
12276
 
  ac_status=$?
12277
 
  grep -v '^ *+' conftest.er1 >conftest.err
12278
 
  rm -f conftest.er1
12279
 
  cat conftest.err >&5
12280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
 
  (exit $ac_status); } &&
12282
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12283
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284
 
  (eval $ac_try) 2>&5
12285
 
  ac_status=$?
12286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
 
  (exit $ac_status); }; } &&
12288
 
         { ac_try='test -s conftest$ac_exeext'
12289
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290
 
  (eval $ac_try) 2>&5
12291
 
  ac_status=$?
12292
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293
 
  (exit $ac_status); }; }; then
12294
 
  ac_cv_lib_dl_dlopen=yes
12295
 
else
12296
 
  echo "$as_me: failed program was:" >&5
12297
 
sed 's/^/| /' conftest.$ac_ext >&5
12298
 
 
12299
 
ac_cv_lib_dl_dlopen=no
12300
 
fi
12301
 
rm -f conftest.err conftest.$ac_objext \
12302
 
      conftest$ac_exeext conftest.$ac_ext
12303
 
LIBS=$ac_check_lib_save_LIBS
12304
 
fi
12305
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12306
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12307
 
if test $ac_cv_lib_dl_dlopen = yes; then
12308
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12309
 
else
12310
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12311
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12312
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12313
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12314
 
else
12315
 
  ac_check_lib_save_LIBS=$LIBS
12316
 
LIBS="-lsvld  $LIBS"
12317
 
cat >conftest.$ac_ext <<_ACEOF
12318
 
/* confdefs.h.  */
12319
 
_ACEOF
12320
 
cat confdefs.h >>conftest.$ac_ext
12321
 
cat >>conftest.$ac_ext <<_ACEOF
12322
 
/* end confdefs.h.  */
12323
 
 
12324
 
/* Override any gcc2 internal prototype to avoid an error.  */
12325
 
#ifdef __cplusplus
12326
 
extern "C"
12327
 
#endif
12328
 
/* We use char because int might match the return type of a gcc2
12329
 
   builtin and then its argument prototype would still apply.  */
12330
 
char dlopen ();
12331
 
int
12332
 
main ()
12333
 
{
12334
 
dlopen ();
12335
 
  ;
12336
 
  return 0;
12337
 
}
12338
 
_ACEOF
12339
 
rm -f conftest.$ac_objext conftest$ac_exeext
12340
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341
 
  (eval $ac_link) 2>conftest.er1
12342
 
  ac_status=$?
12343
 
  grep -v '^ *+' conftest.er1 >conftest.err
12344
 
  rm -f conftest.er1
12345
 
  cat conftest.err >&5
12346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
 
  (exit $ac_status); } &&
12348
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350
 
  (eval $ac_try) 2>&5
12351
 
  ac_status=$?
12352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
 
  (exit $ac_status); }; } &&
12354
 
         { ac_try='test -s conftest$ac_exeext'
12355
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356
 
  (eval $ac_try) 2>&5
12357
 
  ac_status=$?
12358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359
 
  (exit $ac_status); }; }; then
12360
 
  ac_cv_lib_svld_dlopen=yes
12361
 
else
12362
 
  echo "$as_me: failed program was:" >&5
12363
 
sed 's/^/| /' conftest.$ac_ext >&5
12364
 
 
12365
 
ac_cv_lib_svld_dlopen=no
12366
 
fi
12367
 
rm -f conftest.err conftest.$ac_objext \
12368
 
      conftest$ac_exeext conftest.$ac_ext
12369
 
LIBS=$ac_check_lib_save_LIBS
12370
 
fi
12371
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12372
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12373
 
if test $ac_cv_lib_svld_dlopen = yes; then
12374
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12375
 
else
12376
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12377
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12378
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12380
 
else
12381
 
  ac_check_lib_save_LIBS=$LIBS
12382
 
LIBS="-ldld  $LIBS"
12383
 
cat >conftest.$ac_ext <<_ACEOF
12384
 
/* confdefs.h.  */
12385
 
_ACEOF
12386
 
cat confdefs.h >>conftest.$ac_ext
12387
 
cat >>conftest.$ac_ext <<_ACEOF
12388
 
/* end confdefs.h.  */
12389
 
 
12390
 
/* Override any gcc2 internal prototype to avoid an error.  */
12391
 
#ifdef __cplusplus
12392
 
extern "C"
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 dld_link ();
12397
 
int
12398
 
main ()
12399
 
{
12400
 
dld_link ();
12401
 
  ;
12402
 
  return 0;
12403
 
}
12404
 
_ACEOF
12405
 
rm -f conftest.$ac_objext conftest$ac_exeext
12406
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407
 
  (eval $ac_link) 2>conftest.er1
12408
 
  ac_status=$?
12409
 
  grep -v '^ *+' conftest.er1 >conftest.err
12410
 
  rm -f conftest.er1
12411
 
  cat conftest.err >&5
12412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413
 
  (exit $ac_status); } &&
12414
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12415
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416
 
  (eval $ac_try) 2>&5
12417
 
  ac_status=$?
12418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419
 
  (exit $ac_status); }; } &&
12420
 
         { ac_try='test -s conftest$ac_exeext'
12421
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422
 
  (eval $ac_try) 2>&5
12423
 
  ac_status=$?
12424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
 
  (exit $ac_status); }; }; then
12426
 
  ac_cv_lib_dld_dld_link=yes
12427
 
else
12428
 
  echo "$as_me: failed program was:" >&5
12429
 
sed 's/^/| /' conftest.$ac_ext >&5
12430
 
 
12431
 
ac_cv_lib_dld_dld_link=no
12432
 
fi
12433
 
rm -f conftest.err conftest.$ac_objext \
12434
 
      conftest$ac_exeext conftest.$ac_ext
12435
 
LIBS=$ac_check_lib_save_LIBS
12436
 
fi
12437
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12438
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12439
 
if test $ac_cv_lib_dld_dld_link = yes; then
12440
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12441
 
fi
12442
 
 
12443
 
 
12444
 
fi
12445
 
 
12446
 
 
12447
 
fi
12448
 
 
12449
 
 
12450
 
fi
12451
 
 
12452
 
 
12453
 
fi
12454
 
 
12455
 
 
12456
 
fi
12457
 
 
12458
 
    ;;
12459
 
  esac
12460
 
 
12461
 
  if test "x$lt_cv_dlopen" != xno; then
12462
 
    enable_dlopen=yes
12463
 
  else
12464
 
    enable_dlopen=no
12465
 
  fi
12466
 
 
12467
 
  case $lt_cv_dlopen in
12468
 
  dlopen)
12469
 
    save_CPPFLAGS="$CPPFLAGS"
12470
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12471
 
 
12472
 
    save_LDFLAGS="$LDFLAGS"
12473
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12474
 
 
12475
 
    save_LIBS="$LIBS"
12476
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12477
 
 
12478
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12479
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12480
 
if test "${lt_cv_dlopen_self+set}" = set; then
12481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12482
 
else
12483
 
          if test "$cross_compiling" = yes; then :
12484
 
  lt_cv_dlopen_self=cross
12485
 
else
12486
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12487
 
  lt_status=$lt_dlunknown
12488
 
  cat > conftest.$ac_ext <<EOF
12489
 
#line 12489 "configure"
12490
 
#include "confdefs.h"
12491
 
 
12492
 
#if HAVE_DLFCN_H
12493
 
#include <dlfcn.h>
12494
 
#endif
12495
 
 
12496
 
#include <stdio.h>
12497
 
 
12498
 
#ifdef RTLD_GLOBAL
12499
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12500
 
#else
12501
 
#  ifdef DL_GLOBAL
12502
 
#    define LT_DLGLOBAL         DL_GLOBAL
12503
 
#  else
12504
 
#    define LT_DLGLOBAL         0
12505
 
#  endif
12506
 
#endif
12507
 
 
12508
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12509
 
   find out it does not work in some platform. */
12510
 
#ifndef LT_DLLAZY_OR_NOW
12511
 
#  ifdef RTLD_LAZY
12512
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12513
 
#  else
12514
 
#    ifdef DL_LAZY
12515
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12516
 
#    else
12517
 
#      ifdef RTLD_NOW
12518
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12519
 
#      else
12520
 
#        ifdef DL_NOW
12521
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12522
 
#        else
12523
 
#          define LT_DLLAZY_OR_NOW      0
12524
 
#        endif
12525
 
#      endif
12526
 
#    endif
12527
 
#  endif
12528
 
#endif
12529
 
 
12530
 
#ifdef __cplusplus
12531
 
extern "C" void exit (int);
12532
 
#endif
12533
 
 
12534
 
void fnord() { int i=42;}
12535
 
int main ()
12536
 
{
12537
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12538
 
  int status = $lt_dlunknown;
12539
 
 
12540
 
  if (self)
12541
 
    {
12542
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12543
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12544
 
      /* dlclose (self); */
12545
 
    }
12546
 
 
12547
 
    exit (status);
12548
 
}
12549
 
EOF
12550
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551
 
  (eval $ac_link) 2>&5
12552
 
  ac_status=$?
12553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12555
 
    (./conftest; exit; ) 2>/dev/null
12556
 
    lt_status=$?
12557
 
    case x$lt_status in
12558
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12559
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12560
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12561
 
    esac
12562
 
  else :
12563
 
    # compilation failed
12564
 
    lt_cv_dlopen_self=no
12565
 
  fi
12566
 
fi
12567
 
rm -fr conftest*
12568
 
 
12569
 
 
12570
 
fi
12571
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12572
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12573
 
 
12574
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12575
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12576
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12577
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12578
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12579
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12580
 
else
12581
 
          if test "$cross_compiling" = yes; then :
12582
 
  lt_cv_dlopen_self_static=cross
12583
 
else
12584
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12585
 
  lt_status=$lt_dlunknown
12586
 
  cat > conftest.$ac_ext <<EOF
12587
 
#line 12587 "configure"
12588
 
#include "confdefs.h"
12589
 
 
12590
 
#if HAVE_DLFCN_H
12591
 
#include <dlfcn.h>
12592
 
#endif
12593
 
 
12594
 
#include <stdio.h>
12595
 
 
12596
 
#ifdef RTLD_GLOBAL
12597
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12598
 
#else
12599
 
#  ifdef DL_GLOBAL
12600
 
#    define LT_DLGLOBAL         DL_GLOBAL
12601
 
#  else
12602
 
#    define LT_DLGLOBAL         0
12603
 
#  endif
12604
 
#endif
12605
 
 
12606
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12607
 
   find out it does not work in some platform. */
12608
 
#ifndef LT_DLLAZY_OR_NOW
12609
 
#  ifdef RTLD_LAZY
12610
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12611
 
#  else
12612
 
#    ifdef DL_LAZY
12613
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12614
 
#    else
12615
 
#      ifdef RTLD_NOW
12616
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12617
 
#      else
12618
 
#        ifdef DL_NOW
12619
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12620
 
#        else
12621
 
#          define LT_DLLAZY_OR_NOW      0
12622
 
#        endif
12623
 
#      endif
12624
 
#    endif
12625
 
#  endif
12626
 
#endif
12627
 
 
12628
 
#ifdef __cplusplus
12629
 
extern "C" void exit (int);
12630
 
#endif
12631
 
 
12632
 
void fnord() { int i=42;}
12633
 
int main ()
12634
 
{
12635
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12636
 
  int status = $lt_dlunknown;
12637
 
 
12638
 
  if (self)
12639
 
    {
12640
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12641
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642
 
      /* dlclose (self); */
12643
 
    }
12644
 
 
12645
 
    exit (status);
12646
 
}
12647
 
EOF
12648
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649
 
  (eval $ac_link) 2>&5
12650
 
  ac_status=$?
12651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12653
 
    (./conftest; exit; ) 2>/dev/null
12654
 
    lt_status=$?
12655
 
    case x$lt_status in
12656
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12657
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12658
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12659
 
    esac
12660
 
  else :
12661
 
    # compilation failed
12662
 
    lt_cv_dlopen_self_static=no
12663
 
  fi
12664
 
fi
12665
 
rm -fr conftest*
12666
 
 
12667
 
 
12668
 
fi
12669
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12670
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12671
 
    fi
12672
 
 
12673
 
    CPPFLAGS="$save_CPPFLAGS"
12674
 
    LDFLAGS="$save_LDFLAGS"
12675
 
    LIBS="$save_LIBS"
12676
 
    ;;
12677
 
  esac
12678
 
 
12679
 
  case $lt_cv_dlopen_self in
12680
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12681
 
  *) enable_dlopen_self=unknown ;;
12682
 
  esac
12683
 
 
12684
 
  case $lt_cv_dlopen_self_static in
12685
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12686
 
  *) enable_dlopen_self_static=unknown ;;
12687
 
  esac
12688
 
fi
12689
 
 
12690
12465
 
12691
12466
# The else clause should only fire when bootstrapping the
12692
12467
# libtool distribution, otherwise you forgot to ship ltmain.sh
12701
12476
  # Now quote all the things that may contain metacharacters while being
12702
12477
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12703
12478
  # variables and quote the copies for generation of the libtool script.
12704
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12479
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12705
12480
    SED SHELL STRIP \
12706
12481
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12707
12482
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12802
12577
# The host system.
12803
12578
host_alias=$host_alias
12804
12579
host=$host
 
12580
host_os=$host_os
 
12581
 
 
12582
# The build system.
 
12583
build_alias=$build_alias
 
12584
build=$build
 
12585
build_os=$build_os
12805
12586
 
12806
12587
# An echo program that does not interpret backslashes.
12807
12588
echo=$lt_echo
12813
12594
# A C compiler.
12814
12595
LTCC=$lt_LTCC
12815
12596
 
 
12597
# LTCC compiler flags.
 
12598
LTCFLAGS=$lt_LTCFLAGS
 
12599
 
12816
12600
# A language-specific compiler.
12817
12601
CC=$lt_compiler_CXX
12818
12602
 
12878
12662
# Does compiler simultaneously support -c and -o options?
12879
12663
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12880
12664
 
12881
 
# Must we lock files when doing compilation ?
 
12665
# Must we lock files when doing compilation?
12882
12666
need_locks=$lt_need_locks
12883
12667
 
12884
12668
# Do we need the lib prefix for modules?
13155
12939
# If no C compiler was specified, use CC.
13156
12940
LTCC=${LTCC-"$CC"}
13157
12941
 
 
12942
# If no C compiler flags were specified, use CFLAGS.
 
12943
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12944
 
13158
12945
# Allow CC to be a program name with arguments.
13159
12946
compiler=$CC
13160
12947
 
13161
12948
 
 
12949
# save warnings/boilerplate of simple test code
 
12950
ac_outfile=conftest.$ac_objext
 
12951
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12952
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12953
_lt_compiler_boilerplate=`cat conftest.err`
 
12954
$rm conftest*
 
12955
 
 
12956
ac_outfile=conftest.$ac_objext
 
12957
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12958
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12959
_lt_linker_boilerplate=`cat conftest.err`
 
12960
$rm conftest*
 
12961
 
 
12962
 
13162
12963
# Allow CC to be a program name with arguments.
13163
12964
lt_save_CC="$CC"
13164
12965
CC=${F77-"f77"}
13165
12966
compiler=$CC
13166
12967
compiler_F77=$CC
13167
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12968
for cc_temp in $compiler""; do
 
12969
  case $cc_temp in
 
12970
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12971
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12972
    \-*) ;;
 
12973
    *) break;;
 
12974
  esac
 
12975
done
 
12976
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12977
 
13168
12978
 
13169
12979
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13170
12980
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13177
12987
 
13178
12988
# On AIX, shared libraries and static libraries use the same namespace, and
13179
12989
# are all built from PIC.
13180
 
case "$host_os" in
 
12990
case $host_os in
13181
12991
aix3*)
13182
12992
  test "$enable_shared" = yes && enable_static=no
13183
12993
  if test -n "$RANLIB"; then
13186
12996
  fi
13187
12997
  ;;
13188
12998
aix4* | aix5*)
13189
 
  test "$enable_shared" = yes && enable_static=no
 
12999
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13000
    test "$enable_shared" = yes && enable_static=no
 
13001
  fi
13190
13002
  ;;
13191
13003
esac
13192
13004
echo "$as_me:$LINENO: result: $enable_shared" >&5
13199
13011
echo "$as_me:$LINENO: result: $enable_static" >&5
13200
13012
echo "${ECHO_T}$enable_static" >&6
13201
13013
 
13202
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13203
 
 
13204
13014
GCC_F77="$G77"
13205
13015
LD_F77="$LD"
13206
13016
 
13247
13057
      lt_prog_compiler_pic_F77='-fno-common'
13248
13058
      ;;
13249
13059
 
 
13060
    interix3*)
 
13061
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13062
      # Instead, we relocate shared libraries at runtime.
 
13063
      ;;
 
13064
 
13250
13065
    msdosdjgpp*)
13251
13066
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13252
13067
      # on systems that don't support them.
13263
13078
    hpux*)
13264
13079
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13265
13080
      # not for PA HP-UX.
13266
 
      case "$host_cpu" in
 
13081
      case $host_cpu in
13267
13082
      hppa*64*|ia64*)
13268
13083
        # +Z the default
13269
13084
        ;;
13289
13104
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13290
13105
      fi
13291
13106
      ;;
 
13107
      darwin*)
 
13108
        # PIC is the default on this platform
 
13109
        # Common symbols not allowed in MH_DYLIB files
 
13110
       case $cc_basename in
 
13111
         xlc*)
 
13112
         lt_prog_compiler_pic_F77='-qnocommon'
 
13113
         lt_prog_compiler_wl_F77='-Wl,'
 
13114
         ;;
 
13115
       esac
 
13116
       ;;
13292
13117
 
13293
13118
    mingw* | pw32* | os2*)
13294
13119
      # This hack is so that the source file can tell whether it is being
13300
13125
      lt_prog_compiler_wl_F77='-Wl,'
13301
13126
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13302
13127
      # not for PA HP-UX.
13303
 
      case "$host_cpu" in
 
13128
      case $host_cpu in
13304
13129
      hppa*64*|ia64*)
13305
13130
        # +Z the default
13306
13131
        ;;
13324
13149
      ;;
13325
13150
 
13326
13151
    linux*)
13327
 
      case $CC in
 
13152
      case $cc_basename in
13328
13153
      icc* | ecc*)
13329
13154
        lt_prog_compiler_wl_F77='-Wl,'
13330
13155
        lt_prog_compiler_pic_F77='-KPIC'
13331
13156
        lt_prog_compiler_static_F77='-static'
13332
13157
        ;;
 
13158
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13159
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13160
        # which looks to be a dead project)
 
13161
        lt_prog_compiler_wl_F77='-Wl,'
 
13162
        lt_prog_compiler_pic_F77='-fpic'
 
13163
        lt_prog_compiler_static_F77='-Bstatic'
 
13164
        ;;
13333
13165
      ccc*)
13334
13166
        lt_prog_compiler_wl_F77='-Wl,'
13335
13167
        # All Alpha code is PIC.
13344
13176
      lt_prog_compiler_static_F77='-non_shared'
13345
13177
      ;;
13346
13178
 
13347
 
    sco3.2v5*)
13348
 
      lt_prog_compiler_pic_F77='-Kpic'
13349
 
      lt_prog_compiler_static_F77='-dn'
13350
 
      ;;
13351
 
 
13352
13179
    solaris*)
13353
 
      lt_prog_compiler_wl_F77='-Wl,'
13354
13180
      lt_prog_compiler_pic_F77='-KPIC'
13355
13181
      lt_prog_compiler_static_F77='-Bstatic'
 
13182
      case $cc_basename in
 
13183
      f77* | f90* | f95*)
 
13184
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13185
      *)
 
13186
        lt_prog_compiler_wl_F77='-Wl,';;
 
13187
      esac
13356
13188
      ;;
13357
13189
 
13358
13190
    sunos4*)
13361
13193
      lt_prog_compiler_static_F77='-Bstatic'
13362
13194
      ;;
13363
13195
 
13364
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13196
    sysv4 | sysv4.2uw2* | sysv4.3*)
13365
13197
      lt_prog_compiler_wl_F77='-Wl,'
13366
13198
      lt_prog_compiler_pic_F77='-KPIC'
13367
13199
      lt_prog_compiler_static_F77='-Bstatic'
13374
13206
      fi
13375
13207
      ;;
13376
13208
 
 
13209
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13210
      lt_prog_compiler_wl_F77='-Wl,'
 
13211
      lt_prog_compiler_pic_F77='-KPIC'
 
13212
      lt_prog_compiler_static_F77='-Bstatic'
 
13213
      ;;
 
13214
 
 
13215
    unicos*)
 
13216
      lt_prog_compiler_wl_F77='-Wl,'
 
13217
      lt_prog_compiler_can_build_shared_F77=no
 
13218
      ;;
 
13219
 
13377
13220
    uts4*)
13378
13221
      lt_prog_compiler_pic_F77='-pic'
13379
13222
      lt_prog_compiler_static_F77='-Bstatic'
13408
13251
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13409
13252
   # The option is referenced via a variable to avoid confusing sed.
13410
13253
   lt_compile=`echo "$ac_compile" | $SED \
13411
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13254
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13412
13255
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413
13256
   -e 's:$: $lt_compiler_flag:'`
13414
 
   (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
 
13257
   (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13415
13258
   (eval "$lt_compile" 2>conftest.err)
13416
13259
   ac_status=$?
13417
13260
   cat conftest.err >&5
13418
 
   echo "$as_me:13418: \$? = $ac_status" >&5
 
13261
   echo "$as_me:13261: \$? = $ac_status" >&5
13419
13262
   if (exit $ac_status) && test -s "$ac_outfile"; then
13420
13263
     # The compiler can only warn and ignore the option if not recognized
13421
 
     # So say no if there are warnings
13422
 
     if test ! -s conftest.err; then
 
13264
     # So say no if there are warnings other than the usual output.
 
13265
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13266
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13267
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13423
13268
       lt_prog_compiler_pic_works_F77=yes
13424
13269
     fi
13425
13270
   fi
13440
13285
fi
13441
13286
 
13442
13287
fi
13443
 
case "$host_os" in
 
13288
case $host_os in
13444
13289
  # For platforms which do not support PIC, -DPIC is meaningless:
13445
13290
  *djgpp*)
13446
13291
    lt_prog_compiler_pic_F77=
13450
13295
    ;;
13451
13296
esac
13452
13297
 
 
13298
#
 
13299
# Check to make sure the static flag actually works.
 
13300
#
 
13301
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13302
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13303
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13304
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13306
else
 
13307
  lt_prog_compiler_static_works_F77=no
 
13308
   save_LDFLAGS="$LDFLAGS"
 
13309
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13310
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13311
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13312
     # The linker can only warn and ignore the option if not recognized
 
13313
     # So say no if there are warnings
 
13314
     if test -s conftest.err; then
 
13315
       # Append any errors to the config.log.
 
13316
       cat conftest.err 1>&5
 
13317
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13318
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13319
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13320
         lt_prog_compiler_static_works_F77=yes
 
13321
       fi
 
13322
     else
 
13323
       lt_prog_compiler_static_works_F77=yes
 
13324
     fi
 
13325
   fi
 
13326
   $rm conftest*
 
13327
   LDFLAGS="$save_LDFLAGS"
 
13328
 
 
13329
fi
 
13330
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13331
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13332
 
 
13333
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13334
    :
 
13335
else
 
13336
    lt_prog_compiler_static_F77=
 
13337
fi
 
13338
 
 
13339
 
13453
13340
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13454
13341
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13455
13342
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13468
13355
   # Note that $ac_compile itself does not contain backslashes and begins
13469
13356
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13470
13357
   lt_compile=`echo "$ac_compile" | $SED \
13471
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13358
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13472
13359
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13473
13360
   -e 's:$: $lt_compiler_flag:'`
13474
 
   (eval echo "\"\$as_me:13474: $lt_compile\"" >&5)
 
13361
   (eval echo "\"\$as_me:13361: $lt_compile\"" >&5)
13475
13362
   (eval "$lt_compile" 2>out/conftest.err)
13476
13363
   ac_status=$?
13477
13364
   cat out/conftest.err >&5
13478
 
   echo "$as_me:13478: \$? = $ac_status" >&5
 
13365
   echo "$as_me:13365: \$? = $ac_status" >&5
13479
13366
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13480
13367
   then
13481
13368
     # The compiler can only warn and ignore the option if not recognized
13482
13369
     # So say no if there are warnings
13483
 
     if test ! -s out/conftest.err; then
 
13370
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13371
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13372
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13484
13373
       lt_cv_prog_compiler_c_o_F77=yes
13485
13374
     fi
13486
13375
   fi
13487
 
   chmod u+w .
 
13376
   chmod u+w . 2>&5
13488
13377
   $rm conftest*
13489
13378
   # SGI C++ compiler will create directory out/ii_files/ for
13490
13379
   # template instantiation
13560
13449
  # rely on this symbol name, it's probably fine to never include it in
13561
13450
  # preloaded symbol tables.
13562
13451
  extract_expsyms_cmds=
 
13452
  # Just being paranoid about ensuring that cc_basename is set.
 
13453
  for cc_temp in $compiler""; do
 
13454
  case $cc_temp in
 
13455
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13456
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13457
    \-*) ;;
 
13458
    *) break;;
 
13459
  esac
 
13460
done
 
13461
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13563
13462
 
13564
13463
  case $host_os in
13565
13464
  cygwin* | mingw* | pw32*)
13570
13469
      with_gnu_ld=no
13571
13470
    fi
13572
13471
    ;;
 
13472
  interix*)
 
13473
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13474
    with_gnu_ld=yes
 
13475
    ;;
13573
13476
  openbsd*)
13574
13477
    with_gnu_ld=no
13575
13478
    ;;
13580
13483
    # If archive_cmds runs LD, not CC, wlarc should be empty
13581
13484
    wlarc='${wl}'
13582
13485
 
 
13486
    # Set some defaults for GNU ld with shared library support. These
 
13487
    # are reset later if shared libraries are not supported. Putting them
 
13488
    # here allows them to be overridden if necessary.
 
13489
    runpath_var=LD_RUN_PATH
 
13490
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13491
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13492
    # ancient GNU ld didn't support --whole-archive et. al.
 
13493
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13494
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13495
      else
 
13496
        whole_archive_flag_spec_F77=
 
13497
    fi
 
13498
    supports_anon_versioning=no
 
13499
    case `$LD -v 2>/dev/null` in
 
13500
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13501
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13502
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13503
      *\ 2.11.*) ;; # other 2.11 versions
 
13504
      *) supports_anon_versioning=yes ;;
 
13505
    esac
 
13506
 
13583
13507
    # See if GNU ld supports shared libraries.
13584
13508
    case $host_os in
13585
13509
    aix3* | aix4* | aix5*)
13630
13554
      allow_undefined_flag_F77=unsupported
13631
13555
      always_export_symbols_F77=no
13632
13556
      enable_shared_with_static_runtimes_F77=yes
13633
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13557
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13634
13558
 
13635
13559
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13636
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13560
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13637
13561
        # If the export-symbols file already is a .def file (1st line
13638
13562
        # is EXPORTS), use it as is; otherwise, prepend...
13639
13563
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13642
13566
          echo EXPORTS > $output_objdir/$soname.def;
13643
13567
          cat $export_symbols >> $output_objdir/$soname.def;
13644
13568
        fi~
13645
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13646
 
      else
13647
 
        ld_shlibs=no
13648
 
      fi
13649
 
      ;;
13650
 
 
13651
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13569
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13570
      else
 
13571
        ld_shlibs_F77=no
 
13572
      fi
 
13573
      ;;
 
13574
 
 
13575
    interix3*)
 
13576
      hardcode_direct_F77=no
 
13577
      hardcode_shlibpath_var_F77=no
 
13578
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13579
      export_dynamic_flag_spec_F77='${wl}-E'
 
13580
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13581
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13582
      # default) and relocated if they conflict, which is a slow very memory
 
13583
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13584
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13585
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13586
      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'
 
13587
      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'
 
13588
      ;;
 
13589
 
 
13590
    linux*)
 
13591
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13592
        tmp_addflag=
 
13593
        case $cc_basename,$host_cpu in
 
13594
        pgcc*)                          # Portland Group C compiler
 
13595
          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'
 
13596
          tmp_addflag=' $pic_flag'
 
13597
          ;;
 
13598
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13599
          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'
 
13600
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13601
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13602
          tmp_addflag=' -i_dynamic' ;;
 
13603
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13604
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13605
        ifc* | ifort*)                  # Intel Fortran compiler
 
13606
          tmp_addflag=' -nofor_main' ;;
 
13607
        esac
 
13608
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13609
 
 
13610
        if test $supports_anon_versioning = yes; then
 
13611
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13612
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13613
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13614
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13615
        fi
 
13616
      else
 
13617
        ld_shlibs_F77=no
 
13618
      fi
 
13619
      ;;
 
13620
 
 
13621
    netbsd*)
13652
13622
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13653
13623
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13654
13624
        wlarc=
13658
13628
      fi
13659
13629
      ;;
13660
13630
 
13661
 
    solaris* | sysv5*)
 
13631
    solaris*)
13662
13632
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13663
13633
        ld_shlibs_F77=no
13664
13634
        cat <<EOF 1>&2
13679
13649
      fi
13680
13650
      ;;
13681
13651
 
 
13652
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13653
      case `$LD -v 2>&1` in
 
13654
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13655
        ld_shlibs_F77=no
 
13656
        cat <<_LT_EOF 1>&2
 
13657
 
 
13658
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13659
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13660
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13661
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13662
*** your PATH or compiler configuration so that the native linker is
 
13663
*** used, and then restart.
 
13664
 
 
13665
_LT_EOF
 
13666
        ;;
 
13667
        *)
 
13668
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13669
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13670
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13671
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13672
          else
 
13673
            ld_shlibs_F77=no
 
13674
          fi
 
13675
        ;;
 
13676
      esac
 
13677
      ;;
 
13678
 
13682
13679
    sunos4*)
13683
13680
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13684
13681
      wlarc=
13686
13683
      hardcode_shlibpath_var_F77=no
13687
13684
      ;;
13688
13685
 
13689
 
  linux*)
13690
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13691
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13692
 
        archive_cmds_F77="$tmp_archive_cmds"
13693
 
      supports_anon_versioning=no
13694
 
      case `$LD -v 2>/dev/null` in
13695
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13696
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13697
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13698
 
        *\ 2.11.*) ;; # other 2.11 versions
13699
 
        *) supports_anon_versioning=yes ;;
13700
 
      esac
13701
 
      if test $supports_anon_versioning = yes; then
13702
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13703
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13704
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13705
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13706
 
      else
13707
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13708
 
      fi
13709
 
      link_all_deplibs_F77=no
13710
 
    else
13711
 
      ld_shlibs_F77=no
13712
 
    fi
13713
 
    ;;
13714
 
 
13715
13686
    *)
13716
13687
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13717
13688
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722
13693
      ;;
13723
13694
    esac
13724
13695
 
13725
 
    if test "$ld_shlibs_F77" = yes; then
13726
 
      runpath_var=LD_RUN_PATH
13727
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13728
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13729
 
      # ancient GNU ld didn't support --whole-archive et. al.
13730
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13731
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13732
 
      else
13733
 
        whole_archive_flag_spec_F77=
13734
 
      fi
 
13696
    if test "$ld_shlibs_F77" = no; then
 
13697
      runpath_var=
 
13698
      hardcode_libdir_flag_spec_F77=
 
13699
      export_dynamic_flag_spec_F77=
 
13700
      whole_archive_flag_spec_F77=
13735
13701
    fi
13736
13702
  else
13737
13703
    # PORTME fill in a description of your system's linker (not GNU ld)
13743
13709
      # Note: this linker hardcodes the directories in LIBPATH if there
13744
13710
      # are no directories specified by -L.
13745
13711
      hardcode_minus_L_F77=yes
13746
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13712
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13747
13713
        # Neither direct hardcoding nor static linking is supported with a
13748
13714
        # broken collect2.
13749
13715
        hardcode_direct_F77=unsupported
13777
13743
            break
13778
13744
          fi
13779
13745
          done
 
13746
          ;;
13780
13747
        esac
13781
13748
 
13782
13749
        exp_sym_flag='-bexport'
13795
13762
      link_all_deplibs_F77=yes
13796
13763
 
13797
13764
      if test "$GCC" = yes; then
13798
 
        case $host_os in aix4.012|aix4.012.*)
 
13765
        case $host_os in aix4.[012]|aix4.[012].*)
13799
13766
        # We only want to do this on AIX 4.2 and lower, the check
13800
13767
        # below for broken collect2 doesn't work under 4.3+
13801
13768
          collect2name=`${CC} -print-prog-name=collect2`
13814
13781
          hardcode_libdir_flag_spec_F77='-L$libdir'
13815
13782
          hardcode_libdir_separator_F77=
13816
13783
          fi
 
13784
          ;;
13817
13785
        esac
13818
13786
        shared_flag='-shared'
 
13787
        if test "$aix_use_runtimelinking" = yes; then
 
13788
          shared_flag="$shared_flag "'${wl}-G'
 
13789
        fi
13819
13790
      else
13820
13791
        # not using gcc
13821
13792
        if test "$host_cpu" = ia64; then
13823
13794
        # chokes on -Wl,-G. The following line is correct:
13824
13795
          shared_flag='-G'
13825
13796
        else
13826
 
        if test "$aix_use_runtimelinking" = yes; then
 
13797
          if test "$aix_use_runtimelinking" = yes; then
13827
13798
            shared_flag='${wl}-G'
13828
13799
          else
13829
13800
            shared_flag='${wl}-bM:SRE'
13830
 
        fi
 
13801
          fi
13831
13802
        fi
13832
13803
      fi
13833
13804
 
13853
13824
  cat conftest.err >&5
13854
13825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855
13826
  (exit $ac_status); } &&
13856
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13827
         { ac_try='test -z "$ac_f77_werror_flag"
 
13828
                         || test ! -s conftest.err'
13857
13829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858
13830
  (eval $ac_try) 2>&5
13859
13831
  ac_status=$?
13881
13853
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13882
13854
 
13883
13855
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13884
 
        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"
 
13856
        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"
13885
13857
       else
13886
13858
        if test "$host_cpu" = ia64; then
13887
13859
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13888
13860
          allow_undefined_flag_F77="-z nodefs"
13889
 
          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"
 
13861
          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"
13890
13862
        else
13891
13863
         # Determine the default libpath from the value encoded in an empty executable.
13892
13864
         cat >conftest.$ac_ext <<_ACEOF
13903
13875
  cat conftest.err >&5
13904
13876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905
13877
  (exit $ac_status); } &&
13906
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13878
         { ac_try='test -z "$ac_f77_werror_flag"
 
13879
                         || test ! -s conftest.err'
13907
13880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908
13881
  (eval $ac_try) 2>&5
13909
13882
  ac_status=$?
13935
13908
          # -berok will link without error, but may produce a broken library.
13936
13909
          no_undefined_flag_F77=' ${wl}-bernotok'
13937
13910
          allow_undefined_flag_F77=' ${wl}-berok'
13938
 
          # -bexpall does not export symbols beginning with underscore (_)
13939
 
          always_export_symbols_F77=yes
13940
13911
          # Exported symbols can be pulled into shared objects from archives
13941
 
          whole_archive_flag_spec_F77=' '
 
13912
          whole_archive_flag_spec_F77='$convenience'
13942
13913
          archive_cmds_need_lc_F77=yes
13943
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13944
 
          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'
 
13914
          # This is similar to how AIX traditionally builds its shared libraries.
 
13915
          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'
13945
13916
        fi
13946
13917
      fi
13947
13918
      ;;
13954
13925
      ld_shlibs_F77=no
13955
13926
      ;;
13956
13927
 
13957
 
    bsdi4*)
 
13928
    bsdi[45]*)
13958
13929
      export_dynamic_flag_spec_F77=-rdynamic
13959
13930
      ;;
13960
13931
 
13975
13946
      old_archive_From_new_cmds_F77='true'
13976
13947
      # FIXME: Should let the user specify the lib program.
13977
13948
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13978
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13949
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13979
13950
      enable_shared_with_static_runtimes_F77=yes
13980
13951
      ;;
13981
13952
 
13982
13953
    darwin* | rhapsody*)
13983
 
    if test "$GXX" = yes ; then
 
13954
      case $host_os in
 
13955
        rhapsody* | darwin1.[012])
 
13956
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13957
         ;;
 
13958
       *) # Darwin 1.3 on
 
13959
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13960
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13961
         else
 
13962
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13963
             10.[012])
 
13964
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13965
               ;;
 
13966
             10.*)
 
13967
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13968
               ;;
 
13969
           esac
 
13970
         fi
 
13971
         ;;
 
13972
      esac
13984
13973
      archive_cmds_need_lc_F77=no
13985
 
      case "$host_os" in
13986
 
      rhapsody* | darwin1.[012])
13987
 
        allow_undefined_flag_F77='-undefined suppress'
13988
 
        ;;
13989
 
      *) # Darwin 1.3 on
13990
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13991
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13992
 
      else
13993
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13994
 
          10.[012])
13995
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13996
 
            ;;
13997
 
          10.*)
13998
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13999
 
            ;;
14000
 
        esac
14001
 
      fi
14002
 
        ;;
14003
 
      esac
14004
 
        lt_int_apple_cc_single_mod=no
14005
 
        output_verbose_link_cmd='echo'
14006
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14007
 
          lt_int_apple_cc_single_mod=yes
14008
 
        fi
14009
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14010
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14011
 
        else
14012
 
        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'
14013
 
      fi
14014
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14015
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14016
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14017
 
          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}'
14018
 
        else
14019
 
          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}'
14020
 
        fi
14021
 
          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}'
14022
13974
      hardcode_direct_F77=no
14023
13975
      hardcode_automatic_F77=yes
14024
13976
      hardcode_shlibpath_var_F77=unsupported
14025
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13977
      whole_archive_flag_spec_F77=''
14026
13978
      link_all_deplibs_F77=yes
 
13979
    if test "$GCC" = yes ; then
 
13980
        output_verbose_link_cmd='echo'
 
13981
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13982
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13983
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13984
      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}'
 
13985
      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}'
14027
13986
    else
14028
 
      ld_shlibs_F77=no
 
13987
      case $cc_basename in
 
13988
        xlc*)
 
13989
         output_verbose_link_cmd='echo'
 
13990
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13991
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13992
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13993
         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}'
 
13994
          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}'
 
13995
          ;;
 
13996
       *)
 
13997
         ld_shlibs_F77=no
 
13998
          ;;
 
13999
      esac
14029
14000
    fi
14030
14001
      ;;
14031
14002
 
14059
14030
      ;;
14060
14031
 
14061
14032
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14062
 
    freebsd* | kfreebsd*-gnu)
 
14033
    freebsd* | kfreebsd*-gnu | dragonfly*)
14063
14034
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14064
14035
      hardcode_libdir_flag_spec_F77='-R$libdir'
14065
14036
      hardcode_direct_F77=yes
14082
14053
      export_dynamic_flag_spec_F77='${wl}-E'
14083
14054
      ;;
14084
14055
 
14085
 
    hpux10* | hpux11*)
14086
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14087
 
        case "$host_cpu" in
14088
 
        hppa*64*|ia64*)
 
14056
    hpux10*)
 
14057
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14058
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14059
      else
 
14060
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14061
      fi
 
14062
      if test "$with_gnu_ld" = no; then
 
14063
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14064
        hardcode_libdir_separator_F77=:
 
14065
 
 
14066
        hardcode_direct_F77=yes
 
14067
        export_dynamic_flag_spec_F77='${wl}-E'
 
14068
 
 
14069
        # hardcode_minus_L: Not really in the search PATH,
 
14070
        # but as the default location of the library.
 
14071
        hardcode_minus_L_F77=yes
 
14072
      fi
 
14073
      ;;
 
14074
 
 
14075
    hpux11*)
 
14076
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14077
        case $host_cpu in
 
14078
        hppa*64*)
14089
14079
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14090
14080
          ;;
 
14081
        ia64*)
 
14082
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14083
          ;;
14091
14084
        *)
14092
14085
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14093
14086
          ;;
14094
14087
        esac
14095
14088
      else
14096
 
        case "$host_cpu" in
14097
 
        hppa*64*|ia64*)
14098
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14089
        case $host_cpu in
 
14090
        hppa*64*)
 
14091
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14092
          ;;
 
14093
        ia64*)
 
14094
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14099
14095
          ;;
14100
14096
        *)
14101
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14097
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14102
14098
          ;;
14103
14099
        esac
14104
14100
      fi
14105
14101
      if test "$with_gnu_ld" = no; then
14106
 
        case "$host_cpu" in
14107
 
        hppa*64*)
14108
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14102
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14103
        hardcode_libdir_separator_F77=:
 
14104
 
 
14105
        case $host_cpu in
 
14106
        hppa*64*|ia64*)
14109
14107
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14110
 
          hardcode_libdir_separator_F77=:
14111
 
          hardcode_direct_F77=no
14112
 
          hardcode_shlibpath_var_F77=no
14113
 
          ;;
14114
 
        ia64*)
14115
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14116
 
          hardcode_direct_F77=no
14117
 
          hardcode_shlibpath_var_F77=no
14118
 
 
14119
 
          # hardcode_minus_L: Not really in the search PATH,
14120
 
          # but as the default location of the library.
14121
 
          hardcode_minus_L_F77=yes
 
14108
          hardcode_direct_F77=no
 
14109
          hardcode_shlibpath_var_F77=no
14122
14110
          ;;
14123
14111
        *)
14124
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14125
 
          hardcode_libdir_separator_F77=:
14126
14112
          hardcode_direct_F77=yes
14127
14113
          export_dynamic_flag_spec_F77='${wl}-E'
14128
14114
 
14146
14132
      link_all_deplibs_F77=yes
14147
14133
      ;;
14148
14134
 
14149
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14135
    netbsd*)
14150
14136
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14151
14137
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14152
14138
      else
14170
14156
      hardcode_shlibpath_var_F77=no
14171
14157
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14172
14158
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14159
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14173
14160
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14174
14161
        export_dynamic_flag_spec_F77='${wl}-E'
14175
14162
      else
14215
14202
        allow_undefined_flag_F77=' -expect_unresolved \*'
14216
14203
        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'
14217
14204
        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~
14218
 
        $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'
 
14205
        $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'
14219
14206
 
14220
14207
        # Both c and cxx compiler support -rpath directly
14221
14208
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14223
14210
      hardcode_libdir_separator_F77=:
14224
14211
      ;;
14225
14212
 
14226
 
    sco3.2v5*)
14227
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228
 
      hardcode_shlibpath_var_F77=no
14229
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14230
 
      runpath_var=LD_RUN_PATH
14231
 
      hardcode_runpath_var=yes
14232
 
      ;;
14233
 
 
14234
14213
    solaris*)
14235
14214
      no_undefined_flag_F77=' -z text'
14236
14215
      if test "$GCC" = yes; then
 
14216
        wlarc='${wl}'
14237
14217
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14238
14218
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14239
14219
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14240
14220
      else
 
14221
        wlarc=''
14241
14222
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14242
14223
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14243
14224
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14246
14227
      hardcode_shlibpath_var_F77=no
14247
14228
      case $host_os in
14248
14229
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14249
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14250
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14230
      *)
 
14231
        # The compiler driver will combine linker options so we
 
14232
        # cannot just pass the convience library names through
 
14233
        # without $wl, iff we do not link with $LD.
 
14234
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14235
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14236
        case $wlarc in
 
14237
        '')
 
14238
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14239
        *)
 
14240
          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' ;;
 
14241
        esac ;;
14251
14242
      esac
14252
14243
      link_all_deplibs_F77=yes
14253
14244
      ;;
14304
14295
      fi
14305
14296
      ;;
14306
14297
 
14307
 
    sysv4.2uw2*)
14308
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14309
 
      hardcode_direct_F77=yes
14310
 
      hardcode_minus_L_F77=no
14311
 
      hardcode_shlibpath_var_F77=no
14312
 
      hardcode_runpath_var=yes
14313
 
      runpath_var=LD_RUN_PATH
14314
 
      ;;
14315
 
 
14316
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14317
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14318
 
      if test "$GCC" = yes; then
14319
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320
 
      else
14321
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322
 
      fi
14323
 
      runpath_var='LD_RUN_PATH'
14324
 
      hardcode_shlibpath_var_F77=no
14325
 
      ;;
14326
 
 
14327
 
    sysv5*)
14328
 
      no_undefined_flag_F77=' -z text'
14329
 
      # $CC -shared without GNU ld will not create a library from C++
14330
 
      # object files and a static libstdc++, better avoid it by now
14331
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14333
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14334
 
      hardcode_libdir_flag_spec_F77=
14335
 
      hardcode_shlibpath_var_F77=no
14336
 
      runpath_var='LD_RUN_PATH'
 
14298
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14299
      no_undefined_flag_F77='${wl}-z,text'
 
14300
      archive_cmds_need_lc_F77=no
 
14301
      hardcode_shlibpath_var_F77=no
 
14302
      runpath_var='LD_RUN_PATH'
 
14303
 
 
14304
      if test "$GCC" = yes; then
 
14305
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14306
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14307
      else
 
14308
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14309
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14310
      fi
 
14311
      ;;
 
14312
 
 
14313
    sysv5* | sco3.2v5* | sco5v6*)
 
14314
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14315
      # link with -lc, and that would cause any symbols used from libc to
 
14316
      # always be unresolved, which means just about no library would
 
14317
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14318
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14319
      # as -z defs.
 
14320
      no_undefined_flag_F77='${wl}-z,text'
 
14321
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14322
      archive_cmds_need_lc_F77=no
 
14323
      hardcode_shlibpath_var_F77=no
 
14324
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14325
      hardcode_libdir_separator_F77=':'
 
14326
      link_all_deplibs_F77=yes
 
14327
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14328
      runpath_var='LD_RUN_PATH'
 
14329
 
 
14330
      if test "$GCC" = yes; then
 
14331
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14332
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14333
      else
 
14334
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14335
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14336
      fi
14337
14337
      ;;
14338
14338
 
14339
14339
    uts4*)
14352
14352
echo "${ECHO_T}$ld_shlibs_F77" >&6
14353
14353
test "$ld_shlibs_F77" = no && can_build_shared=no
14354
14354
 
14355
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14356
 
if test "$GCC" = yes; then
14357
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14358
 
fi
14359
 
 
14360
14355
#
14361
14356
# Do we need to explicitly link libc?
14362
14357
#
14389
14384
        libobjs=conftest.$ac_objext
14390
14385
        deplibs=
14391
14386
        wl=$lt_prog_compiler_wl_F77
 
14387
        pic_flag=$lt_prog_compiler_pic_F77
14392
14388
        compiler_flags=-v
14393
14389
        linker_flags=-v
14394
14390
        verstring=
14521
14517
  shlibpath_var=LIBRARY_PATH
14522
14518
  ;;
14523
14519
 
14524
 
bsdi4*)
 
14520
bsdi[45]*)
14525
14521
  version_type=linux
14526
14522
  need_version=no
14527
14523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549
14545
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14550
14546
      dldir=$destdir/`dirname \$dlpath`~
14551
14547
      test -d \$dldir || mkdir -p \$dldir~
14552
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14548
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14549
      chmod a+x \$dldir/$dlname'
14553
14550
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14554
14551
      dlpath=$dir/\$dldll~
14555
14552
       $rm \$dlpath'
14579
14576
      ;;
14580
14577
    pw32*)
14581
14578
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14582
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14579
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583
14580
      ;;
14584
14581
    esac
14585
14582
    ;;
14602
14599
  soname_spec='${libname}${release}${major}$shared_ext'
14603
14600
  shlibpath_overrides_runpath=yes
14604
14601
  shlibpath_var=DYLD_LIBRARY_PATH
14605
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14602
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14606
14603
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14607
14604
  if test "$GCC" = yes; then
14608
14605
    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"`
14637
14634
  dynamic_linker='GNU ld.so'
14638
14635
  ;;
14639
14636
 
14640
 
freebsd*)
14641
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14637
freebsd* | dragonfly*)
 
14638
  # DragonFly does not have aout.  When/if they implement a new
 
14639
  # versioning mechanism, adjust this.
 
14640
  if test -x /usr/bin/objformat; then
 
14641
    objformat=`/usr/bin/objformat`
 
14642
  else
 
14643
    case $host_os in
 
14644
    freebsd[123]*) objformat=aout ;;
 
14645
    *) objformat=elf ;;
 
14646
    esac
 
14647
  fi
14642
14648
  version_type=freebsd-$objformat
14643
14649
  case $version_type in
14644
14650
    freebsd-elf*)
14656
14662
  freebsd2*)
14657
14663
    shlibpath_overrides_runpath=yes
14658
14664
    ;;
14659
 
  freebsd3.01* | freebsdelf3.01*)
 
14665
  freebsd3.[01]* | freebsdelf3.[01]*)
14660
14666
    shlibpath_overrides_runpath=yes
14661
14667
    hardcode_into_libs=yes
14662
14668
    ;;
14663
 
  *) # from 3.2 on
 
14669
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14670
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14664
14671
    shlibpath_overrides_runpath=no
14665
14672
    hardcode_into_libs=yes
14666
14673
    ;;
 
14674
  freebsd*) # from 4.6 on
 
14675
    shlibpath_overrides_runpath=yes
 
14676
    hardcode_into_libs=yes
 
14677
    ;;
14667
14678
  esac
14668
14679
  ;;
14669
14680
 
14683
14694
  version_type=sunos
14684
14695
  need_lib_prefix=no
14685
14696
  need_version=no
14686
 
  case "$host_cpu" in
 
14697
  case $host_cpu in
14687
14698
  ia64*)
14688
14699
    shrext_cmds='.so'
14689
14700
    hardcode_into_libs=yes
14723
14734
  postinstall_cmds='chmod 555 $lib'
14724
14735
  ;;
14725
14736
 
 
14737
interix3*)
 
14738
  version_type=linux
 
14739
  need_lib_prefix=no
 
14740
  need_version=no
 
14741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14742
  soname_spec='${libname}${release}${shared_ext}$major'
 
14743
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14744
  shlibpath_var=LD_LIBRARY_PATH
 
14745
  shlibpath_overrides_runpath=no
 
14746
  hardcode_into_libs=yes
 
14747
  ;;
 
14748
 
14726
14749
irix5* | irix6* | nonstopux*)
14727
14750
  case $host_os in
14728
14751
    nonstopux*) version_type=nonstopux ;;
14780
14803
  # before this can be enabled.
14781
14804
  hardcode_into_libs=yes
14782
14805
 
 
14806
  # find out which ABI we are using
 
14807
  libsuff=
 
14808
  case "$host_cpu" in
 
14809
  x86_64*|s390x*|powerpc64*)
 
14810
    echo '#line 14810 "configure"' > conftest.$ac_ext
 
14811
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14812
  (eval $ac_compile) 2>&5
 
14813
  ac_status=$?
 
14814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14815
  (exit $ac_status); }; then
 
14816
      case `/usr/bin/file conftest.$ac_objext` in
 
14817
      *64-bit*)
 
14818
        libsuff=64
 
14819
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14820
        ;;
 
14821
      esac
 
14822
    fi
 
14823
    rm -rf conftest*
 
14824
    ;;
 
14825
  esac
 
14826
 
14783
14827
  # Append ld.so.conf contents to the search path
14784
14828
  if test -f /etc/ld.so.conf; then
14785
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14786
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14829
    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' ' '`
 
14830
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14787
14831
  fi
14788
14832
 
14789
14833
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14795
14839
  dynamic_linker='GNU/Linux ld.so'
14796
14840
  ;;
14797
14841
 
14798
 
netbsdelf*-gnu)
14799
 
  version_type=linux
14800
 
  need_lib_prefix=no
14801
 
  need_version=no
14802
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14803
 
  soname_spec='${libname}${release}${shared_ext}$major'
14804
 
  shlibpath_var=LD_LIBRARY_PATH
14805
 
  shlibpath_overrides_runpath=no
14806
 
  hardcode_into_libs=yes
14807
 
  dynamic_linker='NetBSD ld.elf_so'
14808
 
  ;;
14809
 
 
14810
14842
knetbsd*-gnu)
14811
14843
  version_type=linux
14812
14844
  need_lib_prefix=no
14856
14888
 
14857
14889
openbsd*)
14858
14890
  version_type=sunos
 
14891
  sys_lib_dlsearch_path_spec="/usr/lib"
14859
14892
  need_lib_prefix=no
14860
 
  need_version=yes
 
14893
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14894
  case $host_os in
 
14895
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14896
    *)                         need_version=no  ;;
 
14897
  esac
14861
14898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14862
14899
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14863
14900
  shlibpath_var=LD_LIBRARY_PATH
14895
14932
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14896
14933
  ;;
14897
14934
 
14898
 
sco3.2v5*)
14899
 
  version_type=osf
14900
 
  soname_spec='${libname}${release}${shared_ext}$major'
14901
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902
 
  shlibpath_var=LD_LIBRARY_PATH
14903
 
  ;;
14904
 
 
14905
14935
solaris*)
14906
14936
  version_type=linux
14907
14937
  need_lib_prefix=no
14927
14957
  need_version=yes
14928
14958
  ;;
14929
14959
 
14930
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14960
sysv4 | sysv4.3*)
14931
14961
  version_type=linux
14932
14962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933
14963
  soname_spec='${libname}${release}${shared_ext}$major'
14960
14990
  fi
14961
14991
  ;;
14962
14992
 
 
14993
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14994
  version_type=freebsd-elf
 
14995
  need_lib_prefix=no
 
14996
  need_version=no
 
14997
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14998
  soname_spec='${libname}${release}${shared_ext}$major'
 
14999
  shlibpath_var=LD_LIBRARY_PATH
 
15000
  hardcode_into_libs=yes
 
15001
  if test "$with_gnu_ld" = yes; then
 
15002
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15003
    shlibpath_overrides_runpath=no
 
15004
  else
 
15005
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15006
    shlibpath_overrides_runpath=yes
 
15007
    case $host_os in
 
15008
      sco3.2v5*)
 
15009
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15010
        ;;
 
15011
    esac
 
15012
  fi
 
15013
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15014
  ;;
 
15015
 
14963
15016
uts4*)
14964
15017
  version_type=linux
14965
15018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975
15028
echo "${ECHO_T}$dynamic_linker" >&6
14976
15029
test "$dynamic_linker" = no && can_build_shared=no
14977
15030
 
 
15031
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15032
if test "$GCC" = yes; then
 
15033
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15034
fi
 
15035
 
14978
15036
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14979
15037
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14980
15038
hardcode_action_F77=
14981
15039
if test -n "$hardcode_libdir_flag_spec_F77" || \
14982
 
   test -n "$runpath_var F77" || \
14983
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15040
   test -n "$runpath_var_F77" || \
 
15041
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14984
15042
 
14985
15043
  # We can hardcode non-existant directories.
14986
15044
  if test "$hardcode_direct_F77" != no &&
15012
15070
  enable_fast_install=needless
15013
15071
fi
15014
15072
 
15015
 
striplib=
15016
 
old_striplib=
15017
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15018
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15019
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15020
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15021
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15022
 
  echo "$as_me:$LINENO: result: yes" >&5
15023
 
echo "${ECHO_T}yes" >&6
15024
 
else
15025
 
# FIXME - insert some real tests, host_os isn't really good enough
15026
 
  case $host_os in
15027
 
   darwin*)
15028
 
       if test -n "$STRIP" ; then
15029
 
         striplib="$STRIP -x"
15030
 
         echo "$as_me:$LINENO: result: yes" >&5
15031
 
echo "${ECHO_T}yes" >&6
15032
 
       else
15033
 
  echo "$as_me:$LINENO: result: no" >&5
15034
 
echo "${ECHO_T}no" >&6
15035
 
fi
15036
 
       ;;
15037
 
   *)
15038
 
  echo "$as_me:$LINENO: result: no" >&5
15039
 
echo "${ECHO_T}no" >&6
15040
 
    ;;
15041
 
  esac
15042
 
fi
15043
 
 
15044
 
 
15045
15073
 
15046
15074
# The else clause should only fire when bootstrapping the
15047
15075
# libtool distribution, otherwise you forgot to ship ltmain.sh
15056
15084
  # Now quote all the things that may contain metacharacters while being
15057
15085
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15058
15086
  # variables and quote the copies for generation of the libtool script.
15059
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15087
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15060
15088
    SED SHELL STRIP \
15061
15089
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15062
15090
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15157
15185
# The host system.
15158
15186
host_alias=$host_alias
15159
15187
host=$host
 
15188
host_os=$host_os
 
15189
 
 
15190
# The build system.
 
15191
build_alias=$build_alias
 
15192
build=$build
 
15193
build_os=$build_os
15160
15194
 
15161
15195
# An echo program that does not interpret backslashes.
15162
15196
echo=$lt_echo
15168
15202
# A C compiler.
15169
15203
LTCC=$lt_LTCC
15170
15204
 
 
15205
# LTCC compiler flags.
 
15206
LTCFLAGS=$lt_LTCFLAGS
 
15207
 
15171
15208
# A language-specific compiler.
15172
15209
CC=$lt_compiler_F77
15173
15210
 
15233
15270
# Does compiler simultaneously support -c and -o options?
15234
15271
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15235
15272
 
15236
 
# Must we lock files when doing compilation ?
 
15273
# Must we lock files when doing compilation?
15237
15274
need_locks=$lt_need_locks
15238
15275
 
15239
15276
# Do we need the lib prefix for modules?
15471
15508
lt_simple_compile_test_code="class foo {}\n"
15472
15509
 
15473
15510
# Code to be used in simple link tests
15474
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15511
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15475
15512
 
15476
15513
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15477
15514
 
15478
15515
# If no C compiler was specified, use CC.
15479
15516
LTCC=${LTCC-"$CC"}
15480
15517
 
 
15518
# If no C compiler flags were specified, use CFLAGS.
 
15519
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15520
 
15481
15521
# Allow CC to be a program name with arguments.
15482
15522
compiler=$CC
15483
15523
 
15484
15524
 
 
15525
# save warnings/boilerplate of simple test code
 
15526
ac_outfile=conftest.$ac_objext
 
15527
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15528
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15529
_lt_compiler_boilerplate=`cat conftest.err`
 
15530
$rm conftest*
 
15531
 
 
15532
ac_outfile=conftest.$ac_objext
 
15533
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15534
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15535
_lt_linker_boilerplate=`cat conftest.err`
 
15536
$rm conftest*
 
15537
 
 
15538
 
15485
15539
# Allow CC to be a program name with arguments.
15486
15540
lt_save_CC="$CC"
15487
15541
CC=${GCJ-"gcj"}
15488
15542
compiler=$CC
15489
15543
compiler_GCJ=$CC
 
15544
for cc_temp in $compiler""; do
 
15545
  case $cc_temp in
 
15546
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15547
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15548
    \-*) ;;
 
15549
    *) break;;
 
15550
  esac
 
15551
done
 
15552
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15553
 
15490
15554
 
15491
15555
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15492
15556
archive_cmds_need_lc_GCJ=no
15493
15557
 
 
15558
old_archive_cmds_GCJ=$old_archive_cmds
 
15559
 
15494
15560
 
15495
15561
lt_prog_compiler_no_builtin_flag_GCJ=
15496
15562
 
15513
15579
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15514
15580
   # The option is referenced via a variable to avoid confusing sed.
15515
15581
   lt_compile=`echo "$ac_compile" | $SED \
15516
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15582
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15517
15583
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15518
15584
   -e 's:$: $lt_compiler_flag:'`
15519
 
   (eval echo "\"\$as_me:15519: $lt_compile\"" >&5)
 
15585
   (eval echo "\"\$as_me:15585: $lt_compile\"" >&5)
15520
15586
   (eval "$lt_compile" 2>conftest.err)
15521
15587
   ac_status=$?
15522
15588
   cat conftest.err >&5
15523
 
   echo "$as_me:15523: \$? = $ac_status" >&5
 
15589
   echo "$as_me:15589: \$? = $ac_status" >&5
15524
15590
   if (exit $ac_status) && test -s "$ac_outfile"; then
15525
15591
     # The compiler can only warn and ignore the option if not recognized
15526
 
     # So say no if there are warnings
15527
 
     if test ! -s conftest.err; then
 
15592
     # So say no if there are warnings other than the usual output.
 
15593
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15594
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15595
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15528
15596
       lt_cv_prog_compiler_rtti_exceptions=yes
15529
15597
     fi
15530
15598
   fi
15585
15653
      lt_prog_compiler_pic_GCJ='-fno-common'
15586
15654
      ;;
15587
15655
 
 
15656
    interix3*)
 
15657
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15658
      # Instead, we relocate shared libraries at runtime.
 
15659
      ;;
 
15660
 
15588
15661
    msdosdjgpp*)
15589
15662
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15590
15663
      # on systems that don't support them.
15601
15674
    hpux*)
15602
15675
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603
15676
      # not for PA HP-UX.
15604
 
      case "$host_cpu" in
 
15677
      case $host_cpu in
15605
15678
      hppa*64*|ia64*)
15606
15679
        # +Z the default
15607
15680
        ;;
15627
15700
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628
15701
      fi
15629
15702
      ;;
 
15703
      darwin*)
 
15704
        # PIC is the default on this platform
 
15705
        # Common symbols not allowed in MH_DYLIB files
 
15706
       case $cc_basename in
 
15707
         xlc*)
 
15708
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15709
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15710
         ;;
 
15711
       esac
 
15712
       ;;
15630
15713
 
15631
15714
    mingw* | pw32* | os2*)
15632
15715
      # This hack is so that the source file can tell whether it is being
15638
15721
      lt_prog_compiler_wl_GCJ='-Wl,'
15639
15722
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15640
15723
      # not for PA HP-UX.
15641
 
      case "$host_cpu" in
 
15724
      case $host_cpu in
15642
15725
      hppa*64*|ia64*)
15643
15726
        # +Z the default
15644
15727
        ;;
15662
15745
      ;;
15663
15746
 
15664
15747
    linux*)
15665
 
      case $CC in
 
15748
      case $cc_basename in
15666
15749
      icc* | ecc*)
15667
15750
        lt_prog_compiler_wl_GCJ='-Wl,'
15668
15751
        lt_prog_compiler_pic_GCJ='-KPIC'
15669
15752
        lt_prog_compiler_static_GCJ='-static'
15670
15753
        ;;
 
15754
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15755
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15756
        # which looks to be a dead project)
 
15757
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15758
        lt_prog_compiler_pic_GCJ='-fpic'
 
15759
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15760
        ;;
15671
15761
      ccc*)
15672
15762
        lt_prog_compiler_wl_GCJ='-Wl,'
15673
15763
        # All Alpha code is PIC.
15682
15772
      lt_prog_compiler_static_GCJ='-non_shared'
15683
15773
      ;;
15684
15774
 
15685
 
    sco3.2v5*)
15686
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15687
 
      lt_prog_compiler_static_GCJ='-dn'
15688
 
      ;;
15689
 
 
15690
15775
    solaris*)
15691
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15692
15776
      lt_prog_compiler_pic_GCJ='-KPIC'
15693
15777
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15778
      case $cc_basename in
 
15779
      f77* | f90* | f95*)
 
15780
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15781
      *)
 
15782
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15783
      esac
15694
15784
      ;;
15695
15785
 
15696
15786
    sunos4*)
15699
15789
      lt_prog_compiler_static_GCJ='-Bstatic'
15700
15790
      ;;
15701
15791
 
15702
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15792
    sysv4 | sysv4.2uw2* | sysv4.3*)
15703
15793
      lt_prog_compiler_wl_GCJ='-Wl,'
15704
15794
      lt_prog_compiler_pic_GCJ='-KPIC'
15705
15795
      lt_prog_compiler_static_GCJ='-Bstatic'
15712
15802
      fi
15713
15803
      ;;
15714
15804
 
 
15805
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15806
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15807
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15808
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15809
      ;;
 
15810
 
 
15811
    unicos*)
 
15812
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15813
      lt_prog_compiler_can_build_shared_GCJ=no
 
15814
      ;;
 
15815
 
15715
15816
    uts4*)
15716
15817
      lt_prog_compiler_pic_GCJ='-pic'
15717
15818
      lt_prog_compiler_static_GCJ='-Bstatic'
15746
15847
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15747
15848
   # The option is referenced via a variable to avoid confusing sed.
15748
15849
   lt_compile=`echo "$ac_compile" | $SED \
15749
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15850
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15750
15851
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15751
15852
   -e 's:$: $lt_compiler_flag:'`
15752
 
   (eval echo "\"\$as_me:15752: $lt_compile\"" >&5)
 
15853
   (eval echo "\"\$as_me:15853: $lt_compile\"" >&5)
15753
15854
   (eval "$lt_compile" 2>conftest.err)
15754
15855
   ac_status=$?
15755
15856
   cat conftest.err >&5
15756
 
   echo "$as_me:15756: \$? = $ac_status" >&5
 
15857
   echo "$as_me:15857: \$? = $ac_status" >&5
15757
15858
   if (exit $ac_status) && test -s "$ac_outfile"; then
15758
15859
     # The compiler can only warn and ignore the option if not recognized
15759
 
     # So say no if there are warnings
15760
 
     if test ! -s conftest.err; then
 
15860
     # So say no if there are warnings other than the usual output.
 
15861
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15862
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15863
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15761
15864
       lt_prog_compiler_pic_works_GCJ=yes
15762
15865
     fi
15763
15866
   fi
15778
15881
fi
15779
15882
 
15780
15883
fi
15781
 
case "$host_os" in
 
15884
case $host_os in
15782
15885
  # For platforms which do not support PIC, -DPIC is meaningless:
15783
15886
  *djgpp*)
15784
15887
    lt_prog_compiler_pic_GCJ=
15788
15891
    ;;
15789
15892
esac
15790
15893
 
 
15894
#
 
15895
# Check to make sure the static flag actually works.
 
15896
#
 
15897
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15898
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15899
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15900
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15902
else
 
15903
  lt_prog_compiler_static_works_GCJ=no
 
15904
   save_LDFLAGS="$LDFLAGS"
 
15905
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15906
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15907
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15908
     # The linker 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
 
15911
       # Append any errors to the config.log.
 
15912
       cat conftest.err 1>&5
 
15913
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15914
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15915
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15916
         lt_prog_compiler_static_works_GCJ=yes
 
15917
       fi
 
15918
     else
 
15919
       lt_prog_compiler_static_works_GCJ=yes
 
15920
     fi
 
15921
   fi
 
15922
   $rm conftest*
 
15923
   LDFLAGS="$save_LDFLAGS"
 
15924
 
 
15925
fi
 
15926
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15927
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15928
 
 
15929
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15930
    :
 
15931
else
 
15932
    lt_prog_compiler_static_GCJ=
 
15933
fi
 
15934
 
 
15935
 
15791
15936
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15792
15937
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15793
15938
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15806
15951
   # Note that $ac_compile itself does not contain backslashes and begins
15807
15952
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15808
15953
   lt_compile=`echo "$ac_compile" | $SED \
15809
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15954
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810
15955
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811
15956
   -e 's:$: $lt_compiler_flag:'`
15812
 
   (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
 
15957
   (eval echo "\"\$as_me:15957: $lt_compile\"" >&5)
15813
15958
   (eval "$lt_compile" 2>out/conftest.err)
15814
15959
   ac_status=$?
15815
15960
   cat out/conftest.err >&5
15816
 
   echo "$as_me:15816: \$? = $ac_status" >&5
 
15961
   echo "$as_me:15961: \$? = $ac_status" >&5
15817
15962
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15818
15963
   then
15819
15964
     # The compiler can only warn and ignore the option if not recognized
15820
15965
     # So say no if there are warnings
15821
 
     if test ! -s out/conftest.err; then
 
15966
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15967
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15968
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15822
15969
       lt_cv_prog_compiler_c_o_GCJ=yes
15823
15970
     fi
15824
15971
   fi
15825
 
   chmod u+w .
 
15972
   chmod u+w . 2>&5
15826
15973
   $rm conftest*
15827
15974
   # SGI C++ compiler will create directory out/ii_files/ for
15828
15975
   # template instantiation
15898
16045
  # rely on this symbol name, it's probably fine to never include it in
15899
16046
  # preloaded symbol tables.
15900
16047
  extract_expsyms_cmds=
 
16048
  # Just being paranoid about ensuring that cc_basename is set.
 
16049
  for cc_temp in $compiler""; do
 
16050
  case $cc_temp in
 
16051
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16052
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16053
    \-*) ;;
 
16054
    *) break;;
 
16055
  esac
 
16056
done
 
16057
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15901
16058
 
15902
16059
  case $host_os in
15903
16060
  cygwin* | mingw* | pw32*)
15908
16065
      with_gnu_ld=no
15909
16066
    fi
15910
16067
    ;;
 
16068
  interix*)
 
16069
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16070
    with_gnu_ld=yes
 
16071
    ;;
15911
16072
  openbsd*)
15912
16073
    with_gnu_ld=no
15913
16074
    ;;
15918
16079
    # If archive_cmds runs LD, not CC, wlarc should be empty
15919
16080
    wlarc='${wl}'
15920
16081
 
 
16082
    # Set some defaults for GNU ld with shared library support. These
 
16083
    # are reset later if shared libraries are not supported. Putting them
 
16084
    # here allows them to be overridden if necessary.
 
16085
    runpath_var=LD_RUN_PATH
 
16086
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16087
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16088
    # ancient GNU ld didn't support --whole-archive et. al.
 
16089
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16090
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16091
      else
 
16092
        whole_archive_flag_spec_GCJ=
 
16093
    fi
 
16094
    supports_anon_versioning=no
 
16095
    case `$LD -v 2>/dev/null` in
 
16096
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16097
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16098
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16099
      *\ 2.11.*) ;; # other 2.11 versions
 
16100
      *) supports_anon_versioning=yes ;;
 
16101
    esac
 
16102
 
15921
16103
    # See if GNU ld supports shared libraries.
15922
16104
    case $host_os in
15923
16105
    aix3* | aix4* | aix5*)
15968
16150
      allow_undefined_flag_GCJ=unsupported
15969
16151
      always_export_symbols_GCJ=no
15970
16152
      enable_shared_with_static_runtimes_GCJ=yes
15971
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16153
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15972
16154
 
15973
16155
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15974
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16156
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15975
16157
        # If the export-symbols file already is a .def file (1st line
15976
16158
        # is EXPORTS), use it as is; otherwise, prepend...
15977
16159
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15980
16162
          echo EXPORTS > $output_objdir/$soname.def;
15981
16163
          cat $export_symbols >> $output_objdir/$soname.def;
15982
16164
        fi~
15983
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15984
 
      else
15985
 
        ld_shlibs=no
15986
 
      fi
15987
 
      ;;
15988
 
 
15989
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16165
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16166
      else
 
16167
        ld_shlibs_GCJ=no
 
16168
      fi
 
16169
      ;;
 
16170
 
 
16171
    interix3*)
 
16172
      hardcode_direct_GCJ=no
 
16173
      hardcode_shlibpath_var_GCJ=no
 
16174
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16175
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16176
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16177
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16178
      # default) and relocated if they conflict, which is a slow very memory
 
16179
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16180
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16181
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16182
      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'
 
16183
      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'
 
16184
      ;;
 
16185
 
 
16186
    linux*)
 
16187
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16188
        tmp_addflag=
 
16189
        case $cc_basename,$host_cpu in
 
16190
        pgcc*)                          # Portland Group C compiler
 
16191
          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'
 
16192
          tmp_addflag=' $pic_flag'
 
16193
          ;;
 
16194
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16195
          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'
 
16196
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16197
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16198
          tmp_addflag=' -i_dynamic' ;;
 
16199
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16200
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16201
        ifc* | ifort*)                  # Intel Fortran compiler
 
16202
          tmp_addflag=' -nofor_main' ;;
 
16203
        esac
 
16204
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16205
 
 
16206
        if test $supports_anon_versioning = yes; then
 
16207
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16208
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16209
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16210
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16211
        fi
 
16212
      else
 
16213
        ld_shlibs_GCJ=no
 
16214
      fi
 
16215
      ;;
 
16216
 
 
16217
    netbsd*)
15990
16218
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15991
16219
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15992
16220
        wlarc=
15996
16224
      fi
15997
16225
      ;;
15998
16226
 
15999
 
    solaris* | sysv5*)
 
16227
    solaris*)
16000
16228
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16001
16229
        ld_shlibs_GCJ=no
16002
16230
        cat <<EOF 1>&2
16017
16245
      fi
16018
16246
      ;;
16019
16247
 
 
16248
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16249
      case `$LD -v 2>&1` in
 
16250
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16251
        ld_shlibs_GCJ=no
 
16252
        cat <<_LT_EOF 1>&2
 
16253
 
 
16254
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16255
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16256
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16257
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16258
*** your PATH or compiler configuration so that the native linker is
 
16259
*** used, and then restart.
 
16260
 
 
16261
_LT_EOF
 
16262
        ;;
 
16263
        *)
 
16264
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16265
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16266
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16267
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16268
          else
 
16269
            ld_shlibs_GCJ=no
 
16270
          fi
 
16271
        ;;
 
16272
      esac
 
16273
      ;;
 
16274
 
16020
16275
    sunos4*)
16021
16276
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16022
16277
      wlarc=
16024
16279
      hardcode_shlibpath_var_GCJ=no
16025
16280
      ;;
16026
16281
 
16027
 
  linux*)
16028
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16031
 
      supports_anon_versioning=no
16032
 
      case `$LD -v 2>/dev/null` in
16033
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16034
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16035
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16036
 
        *\ 2.11.*) ;; # other 2.11 versions
16037
 
        *) supports_anon_versioning=yes ;;
16038
 
      esac
16039
 
      if test $supports_anon_versioning = yes; then
16040
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16041
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16042
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16043
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16044
 
      else
16045
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16046
 
      fi
16047
 
      link_all_deplibs_GCJ=no
16048
 
    else
16049
 
      ld_shlibs_GCJ=no
16050
 
    fi
16051
 
    ;;
16052
 
 
16053
16282
    *)
16054
16283
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16055
16284
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060
16289
      ;;
16061
16290
    esac
16062
16291
 
16063
 
    if test "$ld_shlibs_GCJ" = yes; then
16064
 
      runpath_var=LD_RUN_PATH
16065
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16066
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16067
 
      # ancient GNU ld didn't support --whole-archive et. al.
16068
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16069
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16070
 
      else
16071
 
        whole_archive_flag_spec_GCJ=
16072
 
      fi
 
16292
    if test "$ld_shlibs_GCJ" = no; then
 
16293
      runpath_var=
 
16294
      hardcode_libdir_flag_spec_GCJ=
 
16295
      export_dynamic_flag_spec_GCJ=
 
16296
      whole_archive_flag_spec_GCJ=
16073
16297
    fi
16074
16298
  else
16075
16299
    # PORTME fill in a description of your system's linker (not GNU ld)
16081
16305
      # Note: this linker hardcodes the directories in LIBPATH if there
16082
16306
      # are no directories specified by -L.
16083
16307
      hardcode_minus_L_GCJ=yes
16084
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16308
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16085
16309
        # Neither direct hardcoding nor static linking is supported with a
16086
16310
        # broken collect2.
16087
16311
        hardcode_direct_GCJ=unsupported
16115
16339
            break
16116
16340
          fi
16117
16341
          done
 
16342
          ;;
16118
16343
        esac
16119
16344
 
16120
16345
        exp_sym_flag='-bexport'
16133
16358
      link_all_deplibs_GCJ=yes
16134
16359
 
16135
16360
      if test "$GCC" = yes; then
16136
 
        case $host_os in aix4.012|aix4.012.*)
 
16361
        case $host_os in aix4.[012]|aix4.[012].*)
16137
16362
        # We only want to do this on AIX 4.2 and lower, the check
16138
16363
        # below for broken collect2 doesn't work under 4.3+
16139
16364
          collect2name=`${CC} -print-prog-name=collect2`
16152
16377
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153
16378
          hardcode_libdir_separator_GCJ=
16154
16379
          fi
 
16380
          ;;
16155
16381
        esac
16156
16382
        shared_flag='-shared'
 
16383
        if test "$aix_use_runtimelinking" = yes; then
 
16384
          shared_flag="$shared_flag "'${wl}-G'
 
16385
        fi
16157
16386
      else
16158
16387
        # not using gcc
16159
16388
        if test "$host_cpu" = ia64; then
16161
16390
        # chokes on -Wl,-G. The following line is correct:
16162
16391
          shared_flag='-G'
16163
16392
        else
16164
 
        if test "$aix_use_runtimelinking" = yes; then
 
16393
          if test "$aix_use_runtimelinking" = yes; then
16165
16394
            shared_flag='${wl}-G'
16166
16395
          else
16167
16396
            shared_flag='${wl}-bM:SRE'
16168
 
        fi
 
16397
          fi
16169
16398
        fi
16170
16399
      fi
16171
16400
 
16201
16430
  cat conftest.err >&5
16202
16431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203
16432
  (exit $ac_status); } &&
16204
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16433
         { ac_try='test -z "$ac_c_werror_flag"
 
16434
                         || test ! -s conftest.err'
16205
16435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206
16436
  (eval $ac_try) 2>&5
16207
16437
  ac_status=$?
16229
16459
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16230
16460
 
16231
16461
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16232
 
        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"
 
16462
        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"
16233
16463
       else
16234
16464
        if test "$host_cpu" = ia64; then
16235
16465
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16236
16466
          allow_undefined_flag_GCJ="-z nodefs"
16237
 
          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"
 
16467
          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"
16238
16468
        else
16239
16469
         # Determine the default libpath from the value encoded in an empty executable.
16240
16470
         cat >conftest.$ac_ext <<_ACEOF
16261
16491
  cat conftest.err >&5
16262
16492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
16493
  (exit $ac_status); } &&
16264
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16494
         { ac_try='test -z "$ac_c_werror_flag"
 
16495
                         || test ! -s conftest.err'
16265
16496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266
16497
  (eval $ac_try) 2>&5
16267
16498
  ac_status=$?
16293
16524
          # -berok will link without error, but may produce a broken library.
16294
16525
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16295
16526
          allow_undefined_flag_GCJ=' ${wl}-berok'
16296
 
          # -bexpall does not export symbols beginning with underscore (_)
16297
 
          always_export_symbols_GCJ=yes
16298
16527
          # Exported symbols can be pulled into shared objects from archives
16299
 
          whole_archive_flag_spec_GCJ=' '
 
16528
          whole_archive_flag_spec_GCJ='$convenience'
16300
16529
          archive_cmds_need_lc_GCJ=yes
16301
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16302
 
          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'
 
16530
          # This is similar to how AIX traditionally builds its shared libraries.
 
16531
          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'
16303
16532
        fi
16304
16533
      fi
16305
16534
      ;;
16312
16541
      ld_shlibs_GCJ=no
16313
16542
      ;;
16314
16543
 
16315
 
    bsdi4*)
 
16544
    bsdi[45]*)
16316
16545
      export_dynamic_flag_spec_GCJ=-rdynamic
16317
16546
      ;;
16318
16547
 
16333
16562
      old_archive_From_new_cmds_GCJ='true'
16334
16563
      # FIXME: Should let the user specify the lib program.
16335
16564
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16336
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16565
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16337
16566
      enable_shared_with_static_runtimes_GCJ=yes
16338
16567
      ;;
16339
16568
 
16340
16569
    darwin* | rhapsody*)
16341
 
    if test "$GXX" = yes ; then
 
16570
      case $host_os in
 
16571
        rhapsody* | darwin1.[012])
 
16572
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16573
         ;;
 
16574
       *) # Darwin 1.3 on
 
16575
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16576
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16577
         else
 
16578
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16579
             10.[012])
 
16580
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16581
               ;;
 
16582
             10.*)
 
16583
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16584
               ;;
 
16585
           esac
 
16586
         fi
 
16587
         ;;
 
16588
      esac
16342
16589
      archive_cmds_need_lc_GCJ=no
16343
 
      case "$host_os" in
16344
 
      rhapsody* | darwin1.[012])
16345
 
        allow_undefined_flag_GCJ='-undefined suppress'
16346
 
        ;;
16347
 
      *) # Darwin 1.3 on
16348
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16349
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16350
 
      else
16351
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16352
 
          10.[012])
16353
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16354
 
            ;;
16355
 
          10.*)
16356
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16357
 
            ;;
16358
 
        esac
16359
 
      fi
16360
 
        ;;
16361
 
      esac
16362
 
        lt_int_apple_cc_single_mod=no
16363
 
        output_verbose_link_cmd='echo'
16364
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16365
 
          lt_int_apple_cc_single_mod=yes
16366
 
        fi
16367
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16368
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16369
 
        else
16370
 
        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'
16371
 
      fi
16372
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16373
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16374
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16375
 
          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}'
16376
 
        else
16377
 
          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}'
16378
 
        fi
16379
 
          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}'
16380
16590
      hardcode_direct_GCJ=no
16381
16591
      hardcode_automatic_GCJ=yes
16382
16592
      hardcode_shlibpath_var_GCJ=unsupported
16383
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16593
      whole_archive_flag_spec_GCJ=''
16384
16594
      link_all_deplibs_GCJ=yes
 
16595
    if test "$GCC" = yes ; then
 
16596
        output_verbose_link_cmd='echo'
 
16597
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16598
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16599
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16600
      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}'
 
16601
      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}'
16385
16602
    else
16386
 
      ld_shlibs_GCJ=no
 
16603
      case $cc_basename in
 
16604
        xlc*)
 
16605
         output_verbose_link_cmd='echo'
 
16606
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16607
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16608
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16609
         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}'
 
16610
          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}'
 
16611
          ;;
 
16612
       *)
 
16613
         ld_shlibs_GCJ=no
 
16614
          ;;
 
16615
      esac
16387
16616
    fi
16388
16617
      ;;
16389
16618
 
16417
16646
      ;;
16418
16647
 
16419
16648
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16420
 
    freebsd* | kfreebsd*-gnu)
 
16649
    freebsd* | kfreebsd*-gnu | dragonfly*)
16421
16650
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16422
16651
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16423
16652
      hardcode_direct_GCJ=yes
16440
16669
      export_dynamic_flag_spec_GCJ='${wl}-E'
16441
16670
      ;;
16442
16671
 
16443
 
    hpux10* | hpux11*)
16444
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16445
 
        case "$host_cpu" in
16446
 
        hppa*64*|ia64*)
 
16672
    hpux10*)
 
16673
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16674
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16675
      else
 
16676
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16677
      fi
 
16678
      if test "$with_gnu_ld" = no; then
 
16679
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16680
        hardcode_libdir_separator_GCJ=:
 
16681
 
 
16682
        hardcode_direct_GCJ=yes
 
16683
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16684
 
 
16685
        # hardcode_minus_L: Not really in the search PATH,
 
16686
        # but as the default location of the library.
 
16687
        hardcode_minus_L_GCJ=yes
 
16688
      fi
 
16689
      ;;
 
16690
 
 
16691
    hpux11*)
 
16692
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16693
        case $host_cpu in
 
16694
        hppa*64*)
16447
16695
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16448
16696
          ;;
 
16697
        ia64*)
 
16698
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16699
          ;;
16449
16700
        *)
16450
16701
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16451
16702
          ;;
16452
16703
        esac
16453
16704
      else
16454
 
        case "$host_cpu" in
16455
 
        hppa*64*|ia64*)
16456
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16705
        case $host_cpu in
 
16706
        hppa*64*)
 
16707
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16708
          ;;
 
16709
        ia64*)
 
16710
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16457
16711
          ;;
16458
16712
        *)
16459
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16713
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16460
16714
          ;;
16461
16715
        esac
16462
16716
      fi
16463
16717
      if test "$with_gnu_ld" = no; then
16464
 
        case "$host_cpu" in
16465
 
        hppa*64*)
16466
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16718
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16719
        hardcode_libdir_separator_GCJ=:
 
16720
 
 
16721
        case $host_cpu in
 
16722
        hppa*64*|ia64*)
16467
16723
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16468
 
          hardcode_libdir_separator_GCJ=:
16469
 
          hardcode_direct_GCJ=no
16470
 
          hardcode_shlibpath_var_GCJ=no
16471
 
          ;;
16472
 
        ia64*)
16473
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474
 
          hardcode_direct_GCJ=no
16475
 
          hardcode_shlibpath_var_GCJ=no
16476
 
 
16477
 
          # hardcode_minus_L: Not really in the search PATH,
16478
 
          # but as the default location of the library.
16479
 
          hardcode_minus_L_GCJ=yes
 
16724
          hardcode_direct_GCJ=no
 
16725
          hardcode_shlibpath_var_GCJ=no
16480
16726
          ;;
16481
16727
        *)
16482
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16483
 
          hardcode_libdir_separator_GCJ=:
16484
16728
          hardcode_direct_GCJ=yes
16485
16729
          export_dynamic_flag_spec_GCJ='${wl}-E'
16486
16730
 
16504
16748
      link_all_deplibs_GCJ=yes
16505
16749
      ;;
16506
16750
 
16507
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16751
    netbsd*)
16508
16752
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16509
16753
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16510
16754
      else
16528
16772
      hardcode_shlibpath_var_GCJ=no
16529
16773
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16530
16774
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16775
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16531
16776
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16532
16777
        export_dynamic_flag_spec_GCJ='${wl}-E'
16533
16778
      else
16573
16818
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16574
16819
        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'
16575
16820
        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~
16576
 
        $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'
 
16821
        $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'
16577
16822
 
16578
16823
        # Both c and cxx compiler support -rpath directly
16579
16824
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16581
16826
      hardcode_libdir_separator_GCJ=:
16582
16827
      ;;
16583
16828
 
16584
 
    sco3.2v5*)
16585
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586
 
      hardcode_shlibpath_var_GCJ=no
16587
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16588
 
      runpath_var=LD_RUN_PATH
16589
 
      hardcode_runpath_var=yes
16590
 
      ;;
16591
 
 
16592
16829
    solaris*)
16593
16830
      no_undefined_flag_GCJ=' -z text'
16594
16831
      if test "$GCC" = yes; then
 
16832
        wlarc='${wl}'
16595
16833
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16596
16834
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16597
16835
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16598
16836
      else
 
16837
        wlarc=''
16599
16838
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600
16839
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601
16840
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16604
16843
      hardcode_shlibpath_var_GCJ=no
16605
16844
      case $host_os in
16606
16845
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16607
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16608
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16846
      *)
 
16847
        # The compiler driver will combine linker options so we
 
16848
        # cannot just pass the convience library names through
 
16849
        # without $wl, iff we do not link with $LD.
 
16850
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16851
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16852
        case $wlarc in
 
16853
        '')
 
16854
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16855
        *)
 
16856
          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' ;;
 
16857
        esac ;;
16609
16858
      esac
16610
16859
      link_all_deplibs_GCJ=yes
16611
16860
      ;;
16662
16911
      fi
16663
16912
      ;;
16664
16913
 
16665
 
    sysv4.2uw2*)
16666
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16667
 
      hardcode_direct_GCJ=yes
16668
 
      hardcode_minus_L_GCJ=no
16669
 
      hardcode_shlibpath_var_GCJ=no
16670
 
      hardcode_runpath_var=yes
16671
 
      runpath_var=LD_RUN_PATH
16672
 
      ;;
16673
 
 
16674
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16675
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16676
 
      if test "$GCC" = yes; then
16677
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678
 
      else
16679
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680
 
      fi
16681
 
      runpath_var='LD_RUN_PATH'
16682
 
      hardcode_shlibpath_var_GCJ=no
16683
 
      ;;
16684
 
 
16685
 
    sysv5*)
16686
 
      no_undefined_flag_GCJ=' -z text'
16687
 
      # $CC -shared without GNU ld will not create a library from C++
16688
 
      # object files and a static libstdc++, better avoid it by now
16689
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16691
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16692
 
      hardcode_libdir_flag_spec_GCJ=
16693
 
      hardcode_shlibpath_var_GCJ=no
16694
 
      runpath_var='LD_RUN_PATH'
 
16914
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16915
      no_undefined_flag_GCJ='${wl}-z,text'
 
16916
      archive_cmds_need_lc_GCJ=no
 
16917
      hardcode_shlibpath_var_GCJ=no
 
16918
      runpath_var='LD_RUN_PATH'
 
16919
 
 
16920
      if test "$GCC" = yes; then
 
16921
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16922
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16923
      else
 
16924
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16925
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16926
      fi
 
16927
      ;;
 
16928
 
 
16929
    sysv5* | sco3.2v5* | sco5v6*)
 
16930
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16931
      # link with -lc, and that would cause any symbols used from libc to
 
16932
      # always be unresolved, which means just about no library would
 
16933
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16934
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16935
      # as -z defs.
 
16936
      no_undefined_flag_GCJ='${wl}-z,text'
 
16937
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16938
      archive_cmds_need_lc_GCJ=no
 
16939
      hardcode_shlibpath_var_GCJ=no
 
16940
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16941
      hardcode_libdir_separator_GCJ=':'
 
16942
      link_all_deplibs_GCJ=yes
 
16943
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16944
      runpath_var='LD_RUN_PATH'
 
16945
 
 
16946
      if test "$GCC" = yes; then
 
16947
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16948
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16949
      else
 
16950
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16951
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16952
      fi
16695
16953
      ;;
16696
16954
 
16697
16955
    uts4*)
16710
16968
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16711
16969
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16712
16970
 
16713
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16714
 
if test "$GCC" = yes; then
16715
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16716
 
fi
16717
 
 
16718
16971
#
16719
16972
# Do we need to explicitly link libc?
16720
16973
#
16747
17000
        libobjs=conftest.$ac_objext
16748
17001
        deplibs=
16749
17002
        wl=$lt_prog_compiler_wl_GCJ
 
17003
        pic_flag=$lt_prog_compiler_pic_GCJ
16750
17004
        compiler_flags=-v
16751
17005
        linker_flags=-v
16752
17006
        verstring=
16879
17133
  shlibpath_var=LIBRARY_PATH
16880
17134
  ;;
16881
17135
 
16882
 
bsdi4*)
 
17136
bsdi[45]*)
16883
17137
  version_type=linux
16884
17138
  need_version=no
16885
17139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907
17161
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16908
17162
      dldir=$destdir/`dirname \$dlpath`~
16909
17163
      test -d \$dldir || mkdir -p \$dldir~
16910
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17164
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17165
      chmod a+x \$dldir/$dlname'
16911
17166
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16912
17167
      dlpath=$dir/\$dldll~
16913
17168
       $rm \$dlpath'
16937
17192
      ;;
16938
17193
    pw32*)
16939
17194
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16940
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17195
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16941
17196
      ;;
16942
17197
    esac
16943
17198
    ;;
16960
17215
  soname_spec='${libname}${release}${major}$shared_ext'
16961
17216
  shlibpath_overrides_runpath=yes
16962
17217
  shlibpath_var=DYLD_LIBRARY_PATH
16963
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17218
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16964
17219
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16965
17220
  if test "$GCC" = yes; then
16966
17221
    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"`
16995
17250
  dynamic_linker='GNU ld.so'
16996
17251
  ;;
16997
17252
 
16998
 
freebsd*)
16999
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17253
freebsd* | dragonfly*)
 
17254
  # DragonFly does not have aout.  When/if they implement a new
 
17255
  # versioning mechanism, adjust this.
 
17256
  if test -x /usr/bin/objformat; then
 
17257
    objformat=`/usr/bin/objformat`
 
17258
  else
 
17259
    case $host_os in
 
17260
    freebsd[123]*) objformat=aout ;;
 
17261
    *) objformat=elf ;;
 
17262
    esac
 
17263
  fi
17000
17264
  version_type=freebsd-$objformat
17001
17265
  case $version_type in
17002
17266
    freebsd-elf*)
17014
17278
  freebsd2*)
17015
17279
    shlibpath_overrides_runpath=yes
17016
17280
    ;;
17017
 
  freebsd3.01* | freebsdelf3.01*)
 
17281
  freebsd3.[01]* | freebsdelf3.[01]*)
17018
17282
    shlibpath_overrides_runpath=yes
17019
17283
    hardcode_into_libs=yes
17020
17284
    ;;
17021
 
  *) # from 3.2 on
 
17285
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17286
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17022
17287
    shlibpath_overrides_runpath=no
17023
17288
    hardcode_into_libs=yes
17024
17289
    ;;
 
17290
  freebsd*) # from 4.6 on
 
17291
    shlibpath_overrides_runpath=yes
 
17292
    hardcode_into_libs=yes
 
17293
    ;;
17025
17294
  esac
17026
17295
  ;;
17027
17296
 
17041
17310
  version_type=sunos
17042
17311
  need_lib_prefix=no
17043
17312
  need_version=no
17044
 
  case "$host_cpu" in
 
17313
  case $host_cpu in
17045
17314
  ia64*)
17046
17315
    shrext_cmds='.so'
17047
17316
    hardcode_into_libs=yes
17081
17350
  postinstall_cmds='chmod 555 $lib'
17082
17351
  ;;
17083
17352
 
 
17353
interix3*)
 
17354
  version_type=linux
 
17355
  need_lib_prefix=no
 
17356
  need_version=no
 
17357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17358
  soname_spec='${libname}${release}${shared_ext}$major'
 
17359
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17360
  shlibpath_var=LD_LIBRARY_PATH
 
17361
  shlibpath_overrides_runpath=no
 
17362
  hardcode_into_libs=yes
 
17363
  ;;
 
17364
 
17084
17365
irix5* | irix6* | nonstopux*)
17085
17366
  case $host_os in
17086
17367
    nonstopux*) version_type=nonstopux ;;
17138
17419
  # before this can be enabled.
17139
17420
  hardcode_into_libs=yes
17140
17421
 
 
17422
  # find out which ABI we are using
 
17423
  libsuff=
 
17424
  case "$host_cpu" in
 
17425
  x86_64*|s390x*|powerpc64*)
 
17426
    echo '#line 17426 "configure"' > conftest.$ac_ext
 
17427
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17428
  (eval $ac_compile) 2>&5
 
17429
  ac_status=$?
 
17430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17431
  (exit $ac_status); }; then
 
17432
      case `/usr/bin/file conftest.$ac_objext` in
 
17433
      *64-bit*)
 
17434
        libsuff=64
 
17435
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17436
        ;;
 
17437
      esac
 
17438
    fi
 
17439
    rm -rf conftest*
 
17440
    ;;
 
17441
  esac
 
17442
 
17141
17443
  # Append ld.so.conf contents to the search path
17142
17444
  if test -f /etc/ld.so.conf; then
17143
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17144
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17445
    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' ' '`
 
17446
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17145
17447
  fi
17146
17448
 
17147
17449
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17153
17455
  dynamic_linker='GNU/Linux ld.so'
17154
17456
  ;;
17155
17457
 
17156
 
netbsdelf*-gnu)
17157
 
  version_type=linux
17158
 
  need_lib_prefix=no
17159
 
  need_version=no
17160
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161
 
  soname_spec='${libname}${release}${shared_ext}$major'
17162
 
  shlibpath_var=LD_LIBRARY_PATH
17163
 
  shlibpath_overrides_runpath=no
17164
 
  hardcode_into_libs=yes
17165
 
  dynamic_linker='NetBSD ld.elf_so'
17166
 
  ;;
17167
 
 
17168
17458
knetbsd*-gnu)
17169
17459
  version_type=linux
17170
17460
  need_lib_prefix=no
17214
17504
 
17215
17505
openbsd*)
17216
17506
  version_type=sunos
 
17507
  sys_lib_dlsearch_path_spec="/usr/lib"
17217
17508
  need_lib_prefix=no
17218
 
  need_version=yes
 
17509
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17510
  case $host_os in
 
17511
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17512
    *)                         need_version=no  ;;
 
17513
  esac
17219
17514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17220
17515
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17221
17516
  shlibpath_var=LD_LIBRARY_PATH
17253
17548
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17254
17549
  ;;
17255
17550
 
17256
 
sco3.2v5*)
17257
 
  version_type=osf
17258
 
  soname_spec='${libname}${release}${shared_ext}$major'
17259
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260
 
  shlibpath_var=LD_LIBRARY_PATH
17261
 
  ;;
17262
 
 
17263
17551
solaris*)
17264
17552
  version_type=linux
17265
17553
  need_lib_prefix=no
17285
17573
  need_version=yes
17286
17574
  ;;
17287
17575
 
17288
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17576
sysv4 | sysv4.3*)
17289
17577
  version_type=linux
17290
17578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291
17579
  soname_spec='${libname}${release}${shared_ext}$major'
17318
17606
  fi
17319
17607
  ;;
17320
17608
 
 
17609
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17610
  version_type=freebsd-elf
 
17611
  need_lib_prefix=no
 
17612
  need_version=no
 
17613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17614
  soname_spec='${libname}${release}${shared_ext}$major'
 
17615
  shlibpath_var=LD_LIBRARY_PATH
 
17616
  hardcode_into_libs=yes
 
17617
  if test "$with_gnu_ld" = yes; then
 
17618
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17619
    shlibpath_overrides_runpath=no
 
17620
  else
 
17621
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17622
    shlibpath_overrides_runpath=yes
 
17623
    case $host_os in
 
17624
      sco3.2v5*)
 
17625
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17626
        ;;
 
17627
    esac
 
17628
  fi
 
17629
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17630
  ;;
 
17631
 
17321
17632
uts4*)
17322
17633
  version_type=linux
17323
17634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333
17644
echo "${ECHO_T}$dynamic_linker" >&6
17334
17645
test "$dynamic_linker" = no && can_build_shared=no
17335
17646
 
 
17647
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17648
if test "$GCC" = yes; then
 
17649
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17650
fi
 
17651
 
17336
17652
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17337
17653
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17338
17654
hardcode_action_GCJ=
17339
17655
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17340
 
   test -n "$runpath_var GCJ" || \
17341
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17656
   test -n "$runpath_var_GCJ" || \
 
17657
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17342
17658
 
17343
17659
  # We can hardcode non-existant directories.
17344
17660
  if test "$hardcode_direct_GCJ" != no &&
17370
17686
  enable_fast_install=needless
17371
17687
fi
17372
17688
 
17373
 
striplib=
17374
 
old_striplib=
17375
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17376
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17377
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17378
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17379
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17380
 
  echo "$as_me:$LINENO: result: yes" >&5
17381
 
echo "${ECHO_T}yes" >&6
17382
 
else
17383
 
# FIXME - insert some real tests, host_os isn't really good enough
17384
 
  case $host_os in
17385
 
   darwin*)
17386
 
       if test -n "$STRIP" ; then
17387
 
         striplib="$STRIP -x"
17388
 
         echo "$as_me:$LINENO: result: yes" >&5
17389
 
echo "${ECHO_T}yes" >&6
17390
 
       else
17391
 
  echo "$as_me:$LINENO: result: no" >&5
17392
 
echo "${ECHO_T}no" >&6
17393
 
fi
17394
 
       ;;
17395
 
   *)
17396
 
  echo "$as_me:$LINENO: result: no" >&5
17397
 
echo "${ECHO_T}no" >&6
17398
 
    ;;
17399
 
  esac
17400
 
fi
17401
 
 
17402
 
if test "x$enable_dlopen" != xyes; then
17403
 
  enable_dlopen=unknown
17404
 
  enable_dlopen_self=unknown
17405
 
  enable_dlopen_self_static=unknown
17406
 
else
17407
 
  lt_cv_dlopen=no
17408
 
  lt_cv_dlopen_libs=
17409
 
 
17410
 
  case $host_os in
17411
 
  beos*)
17412
 
    lt_cv_dlopen="load_add_on"
17413
 
    lt_cv_dlopen_libs=
17414
 
    lt_cv_dlopen_self=yes
17415
 
    ;;
17416
 
 
17417
 
  mingw* | pw32*)
17418
 
    lt_cv_dlopen="LoadLibrary"
17419
 
    lt_cv_dlopen_libs=
17420
 
   ;;
17421
 
 
17422
 
  cygwin*)
17423
 
    lt_cv_dlopen="dlopen"
17424
 
    lt_cv_dlopen_libs=
17425
 
   ;;
17426
 
 
17427
 
  darwin*)
17428
 
  # if libdl is installed we need to link against it
17429
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17430
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17431
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17432
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17433
 
else
17434
 
  ac_check_lib_save_LIBS=$LIBS
17435
 
LIBS="-ldl  $LIBS"
17436
 
cat >conftest.$ac_ext <<_ACEOF
17437
 
/* confdefs.h.  */
17438
 
_ACEOF
17439
 
cat confdefs.h >>conftest.$ac_ext
17440
 
cat >>conftest.$ac_ext <<_ACEOF
17441
 
/* end confdefs.h.  */
17442
 
 
17443
 
/* Override any gcc2 internal prototype to avoid an error.  */
17444
 
#ifdef __cplusplus
17445
 
extern "C"
17446
 
#endif
17447
 
/* We use char because int might match the return type of a gcc2
17448
 
   builtin and then its argument prototype would still apply.  */
17449
 
char dlopen ();
17450
 
int
17451
 
main ()
17452
 
{
17453
 
dlopen ();
17454
 
  ;
17455
 
  return 0;
17456
 
}
17457
 
_ACEOF
17458
 
rm -f conftest.$ac_objext conftest$ac_exeext
17459
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460
 
  (eval $ac_link) 2>conftest.er1
17461
 
  ac_status=$?
17462
 
  grep -v '^ *+' conftest.er1 >conftest.err
17463
 
  rm -f conftest.er1
17464
 
  cat conftest.err >&5
17465
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466
 
  (exit $ac_status); } &&
17467
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17468
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469
 
  (eval $ac_try) 2>&5
17470
 
  ac_status=$?
17471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472
 
  (exit $ac_status); }; } &&
17473
 
         { ac_try='test -s conftest$ac_exeext'
17474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475
 
  (eval $ac_try) 2>&5
17476
 
  ac_status=$?
17477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478
 
  (exit $ac_status); }; }; then
17479
 
  ac_cv_lib_dl_dlopen=yes
17480
 
else
17481
 
  echo "$as_me: failed program was:" >&5
17482
 
sed 's/^/| /' conftest.$ac_ext >&5
17483
 
 
17484
 
ac_cv_lib_dl_dlopen=no
17485
 
fi
17486
 
rm -f conftest.err conftest.$ac_objext \
17487
 
      conftest$ac_exeext conftest.$ac_ext
17488
 
LIBS=$ac_check_lib_save_LIBS
17489
 
fi
17490
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17491
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17492
 
if test $ac_cv_lib_dl_dlopen = yes; then
17493
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17494
 
else
17495
 
 
17496
 
    lt_cv_dlopen="dyld"
17497
 
    lt_cv_dlopen_libs=
17498
 
    lt_cv_dlopen_self=yes
17499
 
 
17500
 
fi
17501
 
 
17502
 
   ;;
17503
 
 
17504
 
  *)
17505
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17506
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17507
 
if test "${ac_cv_func_shl_load+set}" = set; then
17508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17509
 
else
17510
 
  cat >conftest.$ac_ext <<_ACEOF
17511
 
/* confdefs.h.  */
17512
 
_ACEOF
17513
 
cat confdefs.h >>conftest.$ac_ext
17514
 
cat >>conftest.$ac_ext <<_ACEOF
17515
 
/* end confdefs.h.  */
17516
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17517
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17518
 
#define shl_load innocuous_shl_load
17519
 
 
17520
 
/* System header to define __stub macros and hopefully few prototypes,
17521
 
    which can conflict with char shl_load (); below.
17522
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523
 
    <limits.h> exists even on freestanding compilers.  */
17524
 
 
17525
 
#ifdef __STDC__
17526
 
# include <limits.h>
17527
 
#else
17528
 
# include <assert.h>
17529
 
#endif
17530
 
 
17531
 
#undef shl_load
17532
 
 
17533
 
/* Override any gcc2 internal prototype to avoid an error.  */
17534
 
#ifdef __cplusplus
17535
 
extern "C"
17536
 
{
17537
 
#endif
17538
 
/* We use char because int might match the return type of a gcc2
17539
 
   builtin and then its argument prototype would still apply.  */
17540
 
char shl_load ();
17541
 
/* The GNU C library defines this for functions which it implements
17542
 
    to always fail with ENOSYS.  Some functions are actually named
17543
 
    something starting with __ and the normal name is an alias.  */
17544
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17545
 
choke me
17546
 
#else
17547
 
char (*f) () = shl_load;
17548
 
#endif
17549
 
#ifdef __cplusplus
17550
 
}
17551
 
#endif
17552
 
 
17553
 
int
17554
 
main ()
17555
 
{
17556
 
return f != shl_load;
17557
 
  ;
17558
 
  return 0;
17559
 
}
17560
 
_ACEOF
17561
 
rm -f conftest.$ac_objext conftest$ac_exeext
17562
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563
 
  (eval $ac_link) 2>conftest.er1
17564
 
  ac_status=$?
17565
 
  grep -v '^ *+' conftest.er1 >conftest.err
17566
 
  rm -f conftest.er1
17567
 
  cat conftest.err >&5
17568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569
 
  (exit $ac_status); } &&
17570
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572
 
  (eval $ac_try) 2>&5
17573
 
  ac_status=$?
17574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575
 
  (exit $ac_status); }; } &&
17576
 
         { ac_try='test -s conftest$ac_exeext'
17577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578
 
  (eval $ac_try) 2>&5
17579
 
  ac_status=$?
17580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581
 
  (exit $ac_status); }; }; then
17582
 
  ac_cv_func_shl_load=yes
17583
 
else
17584
 
  echo "$as_me: failed program was:" >&5
17585
 
sed 's/^/| /' conftest.$ac_ext >&5
17586
 
 
17587
 
ac_cv_func_shl_load=no
17588
 
fi
17589
 
rm -f conftest.err conftest.$ac_objext \
17590
 
      conftest$ac_exeext conftest.$ac_ext
17591
 
fi
17592
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17593
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17594
 
if test $ac_cv_func_shl_load = yes; then
17595
 
  lt_cv_dlopen="shl_load"
17596
 
else
17597
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17598
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17599
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17601
 
else
17602
 
  ac_check_lib_save_LIBS=$LIBS
17603
 
LIBS="-ldld  $LIBS"
17604
 
cat >conftest.$ac_ext <<_ACEOF
17605
 
/* confdefs.h.  */
17606
 
_ACEOF
17607
 
cat confdefs.h >>conftest.$ac_ext
17608
 
cat >>conftest.$ac_ext <<_ACEOF
17609
 
/* end confdefs.h.  */
17610
 
 
17611
 
/* Override any gcc2 internal prototype to avoid an error.  */
17612
 
#ifdef __cplusplus
17613
 
extern "C"
17614
 
#endif
17615
 
/* We use char because int might match the return type of a gcc2
17616
 
   builtin and then its argument prototype would still apply.  */
17617
 
char shl_load ();
17618
 
int
17619
 
main ()
17620
 
{
17621
 
shl_load ();
17622
 
  ;
17623
 
  return 0;
17624
 
}
17625
 
_ACEOF
17626
 
rm -f conftest.$ac_objext conftest$ac_exeext
17627
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628
 
  (eval $ac_link) 2>conftest.er1
17629
 
  ac_status=$?
17630
 
  grep -v '^ *+' conftest.er1 >conftest.err
17631
 
  rm -f conftest.er1
17632
 
  cat conftest.err >&5
17633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
 
  (exit $ac_status); } &&
17635
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
 
  (eval $ac_try) 2>&5
17638
 
  ac_status=$?
17639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
 
  (exit $ac_status); }; } &&
17641
 
         { ac_try='test -s conftest$ac_exeext'
17642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643
 
  (eval $ac_try) 2>&5
17644
 
  ac_status=$?
17645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646
 
  (exit $ac_status); }; }; then
17647
 
  ac_cv_lib_dld_shl_load=yes
17648
 
else
17649
 
  echo "$as_me: failed program was:" >&5
17650
 
sed 's/^/| /' conftest.$ac_ext >&5
17651
 
 
17652
 
ac_cv_lib_dld_shl_load=no
17653
 
fi
17654
 
rm -f conftest.err conftest.$ac_objext \
17655
 
      conftest$ac_exeext conftest.$ac_ext
17656
 
LIBS=$ac_check_lib_save_LIBS
17657
 
fi
17658
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17659
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17660
 
if test $ac_cv_lib_dld_shl_load = yes; then
17661
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17662
 
else
17663
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17664
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17665
 
if test "${ac_cv_func_dlopen+set}" = set; then
17666
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17667
 
else
17668
 
  cat >conftest.$ac_ext <<_ACEOF
17669
 
/* confdefs.h.  */
17670
 
_ACEOF
17671
 
cat confdefs.h >>conftest.$ac_ext
17672
 
cat >>conftest.$ac_ext <<_ACEOF
17673
 
/* end confdefs.h.  */
17674
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17675
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17676
 
#define dlopen innocuous_dlopen
17677
 
 
17678
 
/* System header to define __stub macros and hopefully few prototypes,
17679
 
    which can conflict with char dlopen (); below.
17680
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681
 
    <limits.h> exists even on freestanding compilers.  */
17682
 
 
17683
 
#ifdef __STDC__
17684
 
# include <limits.h>
17685
 
#else
17686
 
# include <assert.h>
17687
 
#endif
17688
 
 
17689
 
#undef dlopen
17690
 
 
17691
 
/* Override any gcc2 internal prototype to avoid an error.  */
17692
 
#ifdef __cplusplus
17693
 
extern "C"
17694
 
{
17695
 
#endif
17696
 
/* We use char because int might match the return type of a gcc2
17697
 
   builtin and then its argument prototype would still apply.  */
17698
 
char dlopen ();
17699
 
/* The GNU C library defines this for functions which it implements
17700
 
    to always fail with ENOSYS.  Some functions are actually named
17701
 
    something starting with __ and the normal name is an alias.  */
17702
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17703
 
choke me
17704
 
#else
17705
 
char (*f) () = dlopen;
17706
 
#endif
17707
 
#ifdef __cplusplus
17708
 
}
17709
 
#endif
17710
 
 
17711
 
int
17712
 
main ()
17713
 
{
17714
 
return f != dlopen;
17715
 
  ;
17716
 
  return 0;
17717
 
}
17718
 
_ACEOF
17719
 
rm -f conftest.$ac_objext conftest$ac_exeext
17720
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721
 
  (eval $ac_link) 2>conftest.er1
17722
 
  ac_status=$?
17723
 
  grep -v '^ *+' conftest.er1 >conftest.err
17724
 
  rm -f conftest.er1
17725
 
  cat conftest.err >&5
17726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727
 
  (exit $ac_status); } &&
17728
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17729
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730
 
  (eval $ac_try) 2>&5
17731
 
  ac_status=$?
17732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733
 
  (exit $ac_status); }; } &&
17734
 
         { ac_try='test -s conftest$ac_exeext'
17735
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736
 
  (eval $ac_try) 2>&5
17737
 
  ac_status=$?
17738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739
 
  (exit $ac_status); }; }; then
17740
 
  ac_cv_func_dlopen=yes
17741
 
else
17742
 
  echo "$as_me: failed program was:" >&5
17743
 
sed 's/^/| /' conftest.$ac_ext >&5
17744
 
 
17745
 
ac_cv_func_dlopen=no
17746
 
fi
17747
 
rm -f conftest.err conftest.$ac_objext \
17748
 
      conftest$ac_exeext conftest.$ac_ext
17749
 
fi
17750
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17751
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17752
 
if test $ac_cv_func_dlopen = yes; then
17753
 
  lt_cv_dlopen="dlopen"
17754
 
else
17755
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17756
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17757
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17759
 
else
17760
 
  ac_check_lib_save_LIBS=$LIBS
17761
 
LIBS="-ldl  $LIBS"
17762
 
cat >conftest.$ac_ext <<_ACEOF
17763
 
/* confdefs.h.  */
17764
 
_ACEOF
17765
 
cat confdefs.h >>conftest.$ac_ext
17766
 
cat >>conftest.$ac_ext <<_ACEOF
17767
 
/* end confdefs.h.  */
17768
 
 
17769
 
/* Override any gcc2 internal prototype to avoid an error.  */
17770
 
#ifdef __cplusplus
17771
 
extern "C"
17772
 
#endif
17773
 
/* We use char because int might match the return type of a gcc2
17774
 
   builtin and then its argument prototype would still apply.  */
17775
 
char dlopen ();
17776
 
int
17777
 
main ()
17778
 
{
17779
 
dlopen ();
17780
 
  ;
17781
 
  return 0;
17782
 
}
17783
 
_ACEOF
17784
 
rm -f conftest.$ac_objext conftest$ac_exeext
17785
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786
 
  (eval $ac_link) 2>conftest.er1
17787
 
  ac_status=$?
17788
 
  grep -v '^ *+' conftest.er1 >conftest.err
17789
 
  rm -f conftest.er1
17790
 
  cat conftest.err >&5
17791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792
 
  (exit $ac_status); } &&
17793
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795
 
  (eval $ac_try) 2>&5
17796
 
  ac_status=$?
17797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798
 
  (exit $ac_status); }; } &&
17799
 
         { ac_try='test -s conftest$ac_exeext'
17800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801
 
  (eval $ac_try) 2>&5
17802
 
  ac_status=$?
17803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804
 
  (exit $ac_status); }; }; then
17805
 
  ac_cv_lib_dl_dlopen=yes
17806
 
else
17807
 
  echo "$as_me: failed program was:" >&5
17808
 
sed 's/^/| /' conftest.$ac_ext >&5
17809
 
 
17810
 
ac_cv_lib_dl_dlopen=no
17811
 
fi
17812
 
rm -f conftest.err conftest.$ac_objext \
17813
 
      conftest$ac_exeext conftest.$ac_ext
17814
 
LIBS=$ac_check_lib_save_LIBS
17815
 
fi
17816
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17817
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17818
 
if test $ac_cv_lib_dl_dlopen = yes; then
17819
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17820
 
else
17821
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17822
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17823
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17824
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17825
 
else
17826
 
  ac_check_lib_save_LIBS=$LIBS
17827
 
LIBS="-lsvld  $LIBS"
17828
 
cat >conftest.$ac_ext <<_ACEOF
17829
 
/* confdefs.h.  */
17830
 
_ACEOF
17831
 
cat confdefs.h >>conftest.$ac_ext
17832
 
cat >>conftest.$ac_ext <<_ACEOF
17833
 
/* end confdefs.h.  */
17834
 
 
17835
 
/* Override any gcc2 internal prototype to avoid an error.  */
17836
 
#ifdef __cplusplus
17837
 
extern "C"
17838
 
#endif
17839
 
/* We use char because int might match the return type of a gcc2
17840
 
   builtin and then its argument prototype would still apply.  */
17841
 
char dlopen ();
17842
 
int
17843
 
main ()
17844
 
{
17845
 
dlopen ();
17846
 
  ;
17847
 
  return 0;
17848
 
}
17849
 
_ACEOF
17850
 
rm -f conftest.$ac_objext conftest$ac_exeext
17851
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852
 
  (eval $ac_link) 2>conftest.er1
17853
 
  ac_status=$?
17854
 
  grep -v '^ *+' conftest.er1 >conftest.err
17855
 
  rm -f conftest.er1
17856
 
  cat conftest.err >&5
17857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858
 
  (exit $ac_status); } &&
17859
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861
 
  (eval $ac_try) 2>&5
17862
 
  ac_status=$?
17863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
 
  (exit $ac_status); }; } &&
17865
 
         { ac_try='test -s conftest$ac_exeext'
17866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867
 
  (eval $ac_try) 2>&5
17868
 
  ac_status=$?
17869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870
 
  (exit $ac_status); }; }; then
17871
 
  ac_cv_lib_svld_dlopen=yes
17872
 
else
17873
 
  echo "$as_me: failed program was:" >&5
17874
 
sed 's/^/| /' conftest.$ac_ext >&5
17875
 
 
17876
 
ac_cv_lib_svld_dlopen=no
17877
 
fi
17878
 
rm -f conftest.err conftest.$ac_objext \
17879
 
      conftest$ac_exeext conftest.$ac_ext
17880
 
LIBS=$ac_check_lib_save_LIBS
17881
 
fi
17882
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17883
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17884
 
if test $ac_cv_lib_svld_dlopen = yes; then
17885
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17886
 
else
17887
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17888
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17889
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17890
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17891
 
else
17892
 
  ac_check_lib_save_LIBS=$LIBS
17893
 
LIBS="-ldld  $LIBS"
17894
 
cat >conftest.$ac_ext <<_ACEOF
17895
 
/* confdefs.h.  */
17896
 
_ACEOF
17897
 
cat confdefs.h >>conftest.$ac_ext
17898
 
cat >>conftest.$ac_ext <<_ACEOF
17899
 
/* end confdefs.h.  */
17900
 
 
17901
 
/* Override any gcc2 internal prototype to avoid an error.  */
17902
 
#ifdef __cplusplus
17903
 
extern "C"
17904
 
#endif
17905
 
/* We use char because int might match the return type of a gcc2
17906
 
   builtin and then its argument prototype would still apply.  */
17907
 
char dld_link ();
17908
 
int
17909
 
main ()
17910
 
{
17911
 
dld_link ();
17912
 
  ;
17913
 
  return 0;
17914
 
}
17915
 
_ACEOF
17916
 
rm -f conftest.$ac_objext conftest$ac_exeext
17917
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918
 
  (eval $ac_link) 2>conftest.er1
17919
 
  ac_status=$?
17920
 
  grep -v '^ *+' conftest.er1 >conftest.err
17921
 
  rm -f conftest.er1
17922
 
  cat conftest.err >&5
17923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924
 
  (exit $ac_status); } &&
17925
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927
 
  (eval $ac_try) 2>&5
17928
 
  ac_status=$?
17929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930
 
  (exit $ac_status); }; } &&
17931
 
         { ac_try='test -s conftest$ac_exeext'
17932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933
 
  (eval $ac_try) 2>&5
17934
 
  ac_status=$?
17935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936
 
  (exit $ac_status); }; }; then
17937
 
  ac_cv_lib_dld_dld_link=yes
17938
 
else
17939
 
  echo "$as_me: failed program was:" >&5
17940
 
sed 's/^/| /' conftest.$ac_ext >&5
17941
 
 
17942
 
ac_cv_lib_dld_dld_link=no
17943
 
fi
17944
 
rm -f conftest.err conftest.$ac_objext \
17945
 
      conftest$ac_exeext conftest.$ac_ext
17946
 
LIBS=$ac_check_lib_save_LIBS
17947
 
fi
17948
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17949
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17950
 
if test $ac_cv_lib_dld_dld_link = yes; then
17951
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17952
 
fi
17953
 
 
17954
 
 
17955
 
fi
17956
 
 
17957
 
 
17958
 
fi
17959
 
 
17960
 
 
17961
 
fi
17962
 
 
17963
 
 
17964
 
fi
17965
 
 
17966
 
 
17967
 
fi
17968
 
 
17969
 
    ;;
17970
 
  esac
17971
 
 
17972
 
  if test "x$lt_cv_dlopen" != xno; then
17973
 
    enable_dlopen=yes
17974
 
  else
17975
 
    enable_dlopen=no
17976
 
  fi
17977
 
 
17978
 
  case $lt_cv_dlopen in
17979
 
  dlopen)
17980
 
    save_CPPFLAGS="$CPPFLAGS"
17981
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17982
 
 
17983
 
    save_LDFLAGS="$LDFLAGS"
17984
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17985
 
 
17986
 
    save_LIBS="$LIBS"
17987
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17988
 
 
17989
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17990
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17991
 
if test "${lt_cv_dlopen_self+set}" = set; then
17992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17993
 
else
17994
 
          if test "$cross_compiling" = yes; then :
17995
 
  lt_cv_dlopen_self=cross
17996
 
else
17997
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17998
 
  lt_status=$lt_dlunknown
17999
 
  cat > conftest.$ac_ext <<EOF
18000
 
#line 18000 "configure"
18001
 
#include "confdefs.h"
18002
 
 
18003
 
#if HAVE_DLFCN_H
18004
 
#include <dlfcn.h>
18005
 
#endif
18006
 
 
18007
 
#include <stdio.h>
18008
 
 
18009
 
#ifdef RTLD_GLOBAL
18010
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18011
 
#else
18012
 
#  ifdef DL_GLOBAL
18013
 
#    define LT_DLGLOBAL         DL_GLOBAL
18014
 
#  else
18015
 
#    define LT_DLGLOBAL         0
18016
 
#  endif
18017
 
#endif
18018
 
 
18019
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18020
 
   find out it does not work in some platform. */
18021
 
#ifndef LT_DLLAZY_OR_NOW
18022
 
#  ifdef RTLD_LAZY
18023
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18024
 
#  else
18025
 
#    ifdef DL_LAZY
18026
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18027
 
#    else
18028
 
#      ifdef RTLD_NOW
18029
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18030
 
#      else
18031
 
#        ifdef DL_NOW
18032
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18033
 
#        else
18034
 
#          define LT_DLLAZY_OR_NOW      0
18035
 
#        endif
18036
 
#      endif
18037
 
#    endif
18038
 
#  endif
18039
 
#endif
18040
 
 
18041
 
#ifdef __cplusplus
18042
 
extern "C" void exit (int);
18043
 
#endif
18044
 
 
18045
 
void fnord() { int i=42;}
18046
 
int main ()
18047
 
{
18048
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18049
 
  int status = $lt_dlunknown;
18050
 
 
18051
 
  if (self)
18052
 
    {
18053
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18054
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18055
 
      /* dlclose (self); */
18056
 
    }
18057
 
 
18058
 
    exit (status);
18059
 
}
18060
 
EOF
18061
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062
 
  (eval $ac_link) 2>&5
18063
 
  ac_status=$?
18064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18066
 
    (./conftest; exit; ) 2>/dev/null
18067
 
    lt_status=$?
18068
 
    case x$lt_status in
18069
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18070
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18071
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18072
 
    esac
18073
 
  else :
18074
 
    # compilation failed
18075
 
    lt_cv_dlopen_self=no
18076
 
  fi
18077
 
fi
18078
 
rm -fr conftest*
18079
 
 
18080
 
 
18081
 
fi
18082
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18083
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18084
 
 
18085
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18086
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18087
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18088
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18089
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18091
 
else
18092
 
          if test "$cross_compiling" = yes; then :
18093
 
  lt_cv_dlopen_self_static=cross
18094
 
else
18095
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18096
 
  lt_status=$lt_dlunknown
18097
 
  cat > conftest.$ac_ext <<EOF
18098
 
#line 18098 "configure"
18099
 
#include "confdefs.h"
18100
 
 
18101
 
#if HAVE_DLFCN_H
18102
 
#include <dlfcn.h>
18103
 
#endif
18104
 
 
18105
 
#include <stdio.h>
18106
 
 
18107
 
#ifdef RTLD_GLOBAL
18108
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18109
 
#else
18110
 
#  ifdef DL_GLOBAL
18111
 
#    define LT_DLGLOBAL         DL_GLOBAL
18112
 
#  else
18113
 
#    define LT_DLGLOBAL         0
18114
 
#  endif
18115
 
#endif
18116
 
 
18117
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18118
 
   find out it does not work in some platform. */
18119
 
#ifndef LT_DLLAZY_OR_NOW
18120
 
#  ifdef RTLD_LAZY
18121
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18122
 
#  else
18123
 
#    ifdef DL_LAZY
18124
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18125
 
#    else
18126
 
#      ifdef RTLD_NOW
18127
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18128
 
#      else
18129
 
#        ifdef DL_NOW
18130
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18131
 
#        else
18132
 
#          define LT_DLLAZY_OR_NOW      0
18133
 
#        endif
18134
 
#      endif
18135
 
#    endif
18136
 
#  endif
18137
 
#endif
18138
 
 
18139
 
#ifdef __cplusplus
18140
 
extern "C" void exit (int);
18141
 
#endif
18142
 
 
18143
 
void fnord() { int i=42;}
18144
 
int main ()
18145
 
{
18146
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18147
 
  int status = $lt_dlunknown;
18148
 
 
18149
 
  if (self)
18150
 
    {
18151
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18152
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18153
 
      /* dlclose (self); */
18154
 
    }
18155
 
 
18156
 
    exit (status);
18157
 
}
18158
 
EOF
18159
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160
 
  (eval $ac_link) 2>&5
18161
 
  ac_status=$?
18162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18164
 
    (./conftest; exit; ) 2>/dev/null
18165
 
    lt_status=$?
18166
 
    case x$lt_status in
18167
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18168
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18169
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18170
 
    esac
18171
 
  else :
18172
 
    # compilation failed
18173
 
    lt_cv_dlopen_self_static=no
18174
 
  fi
18175
 
fi
18176
 
rm -fr conftest*
18177
 
 
18178
 
 
18179
 
fi
18180
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18181
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18182
 
    fi
18183
 
 
18184
 
    CPPFLAGS="$save_CPPFLAGS"
18185
 
    LDFLAGS="$save_LDFLAGS"
18186
 
    LIBS="$save_LIBS"
18187
 
    ;;
18188
 
  esac
18189
 
 
18190
 
  case $lt_cv_dlopen_self in
18191
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18192
 
  *) enable_dlopen_self=unknown ;;
18193
 
  esac
18194
 
 
18195
 
  case $lt_cv_dlopen_self_static in
18196
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18197
 
  *) enable_dlopen_self_static=unknown ;;
18198
 
  esac
18199
 
fi
18200
 
 
18201
17689
 
18202
17690
# The else clause should only fire when bootstrapping the
18203
17691
# libtool distribution, otherwise you forgot to ship ltmain.sh
18212
17700
  # Now quote all the things that may contain metacharacters while being
18213
17701
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18214
17702
  # variables and quote the copies for generation of the libtool script.
18215
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17703
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18216
17704
    SED SHELL STRIP \
18217
17705
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18218
17706
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18313
17801
# The host system.
18314
17802
host_alias=$host_alias
18315
17803
host=$host
 
17804
host_os=$host_os
 
17805
 
 
17806
# The build system.
 
17807
build_alias=$build_alias
 
17808
build=$build
 
17809
build_os=$build_os
18316
17810
 
18317
17811
# An echo program that does not interpret backslashes.
18318
17812
echo=$lt_echo
18324
17818
# A C compiler.
18325
17819
LTCC=$lt_LTCC
18326
17820
 
 
17821
# LTCC compiler flags.
 
17822
LTCFLAGS=$lt_LTCFLAGS
 
17823
 
18327
17824
# A language-specific compiler.
18328
17825
CC=$lt_compiler_GCJ
18329
17826
 
18389
17886
# Does compiler simultaneously support -c and -o options?
18390
17887
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18391
17888
 
18392
 
# Must we lock files when doing compilation ?
 
17889
# Must we lock files when doing compilation?
18393
17890
need_locks=$lt_need_locks
18394
17891
 
18395
17892
# Do we need the lib prefix for modules?
18633
18130
# If no C compiler was specified, use CC.
18634
18131
LTCC=${LTCC-"$CC"}
18635
18132
 
 
18133
# If no C compiler flags were specified, use CFLAGS.
 
18134
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18135
 
18636
18136
# Allow CC to be a program name with arguments.
18637
18137
compiler=$CC
18638
18138
 
18639
18139
 
 
18140
# save warnings/boilerplate of simple test code
 
18141
ac_outfile=conftest.$ac_objext
 
18142
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18143
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18144
_lt_compiler_boilerplate=`cat conftest.err`
 
18145
$rm conftest*
 
18146
 
 
18147
ac_outfile=conftest.$ac_objext
 
18148
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18149
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18150
_lt_linker_boilerplate=`cat conftest.err`
 
18151
$rm conftest*
 
18152
 
 
18153
 
18640
18154
# Allow CC to be a program name with arguments.
18641
18155
lt_save_CC="$CC"
18642
18156
CC=${RC-"windres"}
18643
18157
compiler=$CC
18644
18158
compiler_RC=$CC
 
18159
for cc_temp in $compiler""; do
 
18160
  case $cc_temp in
 
18161
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18162
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18163
    \-*) ;;
 
18164
    *) break;;
 
18165
  esac
 
18166
done
 
18167
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18168
 
18645
18169
lt_cv_prog_compiler_c_o_RC=yes
18646
18170
 
18647
18171
# The else clause should only fire when bootstrapping the
18657
18181
  # Now quote all the things that may contain metacharacters while being
18658
18182
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18659
18183
  # variables and quote the copies for generation of the libtool script.
18660
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18184
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18661
18185
    SED SHELL STRIP \
18662
18186
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18663
18187
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18758
18282
# The host system.
18759
18283
host_alias=$host_alias
18760
18284
host=$host
 
18285
host_os=$host_os
 
18286
 
 
18287
# The build system.
 
18288
build_alias=$build_alias
 
18289
build=$build
 
18290
build_os=$build_os
18761
18291
 
18762
18292
# An echo program that does not interpret backslashes.
18763
18293
echo=$lt_echo
18769
18299
# A C compiler.
18770
18300
LTCC=$lt_LTCC
18771
18301
 
 
18302
# LTCC compiler flags.
 
18303
LTCFLAGS=$lt_LTCFLAGS
 
18304
 
18772
18305
# A language-specific compiler.
18773
18306
CC=$lt_compiler_RC
18774
18307
 
18834
18367
# Does compiler simultaneously support -c and -o options?
18835
18368
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18836
18369
 
18837
 
# Must we lock files when doing compilation ?
 
18370
# Must we lock files when doing compilation?
18838
18371
need_locks=$lt_need_locks
18839
18372
 
18840
18373
# Do we need the lib prefix for modules?
19110
18643
 
19111
18644
 
19112
18645
 
19113
 
# Check for X
 
18646
# Check compositeext configuration, strip extra digits from package version to
 
18647
# find the required protocol version
 
18648
 
 
18649
if test "$VERSION" = "" ; then
 
18650
       VERSION=$PACKAGE_VERSION;
 
18651
fi
 
18652
COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
 
18653
 
19114
18654
 
19115
18655
 
19116
18656
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19218
18758
fi
19219
18759
 
19220
18760
pkg_failed=no
19221
 
echo "$as_me:$LINENO: checking for X" >&5
19222
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
19223
 
 
19224
 
if test -n "$PKG_CONFIG"; then
19225
 
        if test -n "$PKG_CONFIG" && \
19226
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19227
 
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19228
 
  ac_status=$?
19229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230
 
  (exit $ac_status); }; then
19231
 
  pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19232
 
else
19233
 
  pkg_failed=yes
19234
 
fi
19235
 
else
19236
 
        pkg_failed=untried
19237
 
fi
19238
 
if test -n "$PKG_CONFIG"; then
19239
 
        if test -n "$PKG_CONFIG" && \
19240
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19241
 
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19242
 
  ac_status=$?
19243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244
 
  (exit $ac_status); }; then
19245
 
  pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19246
 
else
19247
 
  pkg_failed=yes
19248
 
fi
19249
 
else
19250
 
        pkg_failed=untried
19251
 
fi
19252
 
 
19253
 
if test $pkg_failed = yes; then
19254
 
        X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
19255
 
        # Put the nasty error message in config.log where it belongs
19256
 
        echo "$X_PKG_ERRORS" 1>&5
19257
 
 
19258
 
        x_found_with_pkgconfig=no
19259
 
elif test $pkg_failed = untried; then
19260
 
        x_found_with_pkgconfig=no
19261
 
else
19262
 
        X_CFLAGS=$pkg_cv_X_CFLAGS
19263
 
        X_LIBS=$pkg_cv_X_LIBS
19264
 
        x_found_with_pkgconfig=yes
19265
 
fi
19266
 
 
19267
 
if test "$x_found_with_pkgconfig" = "no"
19268
 
then
19269
 
 
19270
 
if test "x$ac_path_x_has_been_run" != xyes; then
19271
 
  echo "$as_me:$LINENO: checking for X" >&5
19272
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
19273
 
 
19274
 
ac_path_x_has_been_run=yes
19275
 
 
19276
 
# Check whether --with-x or --without-x was given.
19277
 
if test "${with_x+set}" = set; then
19278
 
  withval="$with_x"
19279
 
 
19280
 
fi;
19281
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19282
 
if test "x$with_x" = xno; then
19283
 
  # The user explicitly disabled X.
19284
 
  have_x=disabled
19285
 
else
19286
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19287
 
    # Both variables are already set.
19288
 
    have_x=yes
19289
 
  else
19290
 
    if test "${ac_cv_have_x+set}" = set; then
19291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19292
 
else
19293
 
  # One or both of the vars are not set, and there is no cached value.
19294
 
ac_x_includes=no ac_x_libraries=no
19295
 
rm -fr conftest.dir
19296
 
if mkdir conftest.dir; then
19297
 
  cd conftest.dir
19298
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19299
 
  cat >Imakefile <<'_ACEOF'
19300
 
acfindx:
19301
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19302
 
_ACEOF
19303
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19304
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19305
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19306
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19307
 
    for ac_extension in a so sl; do
19308
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19309
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
19310
 
        ac_im_usrlibdir=$ac_im_libdir; break
19311
 
      fi
19312
 
    done
19313
 
    # Screen out bogus values from the imake configuration.  They are
19314
 
    # bogus both because they are the default anyway, and because
19315
 
    # using them would break gcc on systems where it needs fixed includes.
19316
 
    case $ac_im_incroot in
19317
 
        /usr/include) ;;
19318
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19319
 
    esac
19320
 
    case $ac_im_usrlibdir in
19321
 
        /usr/lib | /lib) ;;
19322
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19323
 
    esac
19324
 
  fi
19325
 
  cd ..
19326
 
  rm -fr conftest.dir
19327
 
fi
19328
 
 
19329
 
# Standard set of common directories for X headers.
19330
 
# Check X11 before X11Rn because it is often a symlink to the current release.
19331
 
ac_x_header_dirs='
19332
 
/usr/X11/include
19333
 
/usr/X11R6/include
19334
 
/usr/X11R5/include
19335
 
/usr/X11R4/include
19336
 
 
19337
 
/usr/include/X11
19338
 
/usr/include/X11R6
19339
 
/usr/include/X11R5
19340
 
/usr/include/X11R4
19341
 
 
19342
 
/usr/local/X11/include
19343
 
/usr/local/X11R6/include
19344
 
/usr/local/X11R5/include
19345
 
/usr/local/X11R4/include
19346
 
 
19347
 
/usr/local/include/X11
19348
 
/usr/local/include/X11R6
19349
 
/usr/local/include/X11R5
19350
 
/usr/local/include/X11R4
19351
 
 
19352
 
/usr/X386/include
19353
 
/usr/x386/include
19354
 
/usr/XFree86/include/X11
19355
 
 
19356
 
/usr/include
19357
 
/usr/local/include
19358
 
/usr/unsupported/include
19359
 
/usr/athena/include
19360
 
/usr/local/x11r5/include
19361
 
/usr/lpp/Xamples/include
19362
 
 
19363
 
/usr/openwin/include
19364
 
/usr/openwin/share/include'
19365
 
 
19366
 
if test "$ac_x_includes" = no; then
19367
 
  # Guess where to find include files, by looking for a specified header file.
19368
 
  # First, try using that file with no special directory specified.
19369
 
  cat >conftest.$ac_ext <<_ACEOF
19370
 
/* confdefs.h.  */
19371
 
_ACEOF
19372
 
cat confdefs.h >>conftest.$ac_ext
19373
 
cat >>conftest.$ac_ext <<_ACEOF
19374
 
/* end confdefs.h.  */
19375
 
#include <X11/Intrinsic.h>
19376
 
_ACEOF
19377
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19378
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19379
 
  ac_status=$?
19380
 
  grep -v '^ *+' conftest.er1 >conftest.err
19381
 
  rm -f conftest.er1
19382
 
  cat conftest.err >&5
19383
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384
 
  (exit $ac_status); } >/dev/null; then
19385
 
  if test -s conftest.err; then
19386
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19387
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19388
 
  else
19389
 
    ac_cpp_err=
19390
 
  fi
19391
 
else
19392
 
  ac_cpp_err=yes
19393
 
fi
19394
 
if test -z "$ac_cpp_err"; then
19395
 
  # We can compile using X headers with no special include directory.
19396
 
ac_x_includes=
19397
 
else
19398
 
  echo "$as_me: failed program was:" >&5
19399
 
sed 's/^/| /' conftest.$ac_ext >&5
19400
 
 
19401
 
  for ac_dir in $ac_x_header_dirs; do
19402
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
19403
 
    ac_x_includes=$ac_dir
19404
 
    break
19405
 
  fi
19406
 
done
19407
 
fi
19408
 
rm -f conftest.err conftest.$ac_ext
19409
 
fi # $ac_x_includes = no
19410
 
 
19411
 
if test "$ac_x_libraries" = no; then
19412
 
  # Check for the libraries.
19413
 
  # See if we find them without any special options.
19414
 
  # Don't add to $LIBS permanently.
19415
 
  ac_save_LIBS=$LIBS
19416
 
  LIBS="-lXt $LIBS"
19417
 
  cat >conftest.$ac_ext <<_ACEOF
19418
 
/* confdefs.h.  */
19419
 
_ACEOF
19420
 
cat confdefs.h >>conftest.$ac_ext
19421
 
cat >>conftest.$ac_ext <<_ACEOF
19422
 
/* end confdefs.h.  */
19423
 
#include <X11/Intrinsic.h>
19424
 
int
19425
 
main ()
19426
 
{
19427
 
XtMalloc (0)
19428
 
  ;
19429
 
  return 0;
19430
 
}
19431
 
_ACEOF
19432
 
rm -f conftest.$ac_objext conftest$ac_exeext
19433
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434
 
  (eval $ac_link) 2>conftest.er1
19435
 
  ac_status=$?
19436
 
  grep -v '^ *+' conftest.er1 >conftest.err
19437
 
  rm -f conftest.er1
19438
 
  cat conftest.err >&5
19439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440
 
  (exit $ac_status); } &&
19441
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19442
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443
 
  (eval $ac_try) 2>&5
19444
 
  ac_status=$?
19445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446
 
  (exit $ac_status); }; } &&
19447
 
         { ac_try='test -s conftest$ac_exeext'
19448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449
 
  (eval $ac_try) 2>&5
19450
 
  ac_status=$?
19451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452
 
  (exit $ac_status); }; }; then
19453
 
  LIBS=$ac_save_LIBS
19454
 
# We can link X programs with no special library path.
19455
 
ac_x_libraries=
19456
 
else
19457
 
  echo "$as_me: failed program was:" >&5
19458
 
sed 's/^/| /' conftest.$ac_ext >&5
19459
 
 
19460
 
LIBS=$ac_save_LIBS
19461
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19462
 
do
19463
 
  # Don't even attempt the hair of trying to link an X program!
19464
 
  for ac_extension in a so sl; do
19465
 
    if test -r $ac_dir/libXt.$ac_extension; then
19466
 
      ac_x_libraries=$ac_dir
19467
 
      break 2
19468
 
    fi
19469
 
  done
19470
 
done
19471
 
fi
19472
 
rm -f conftest.err conftest.$ac_objext \
19473
 
      conftest$ac_exeext conftest.$ac_ext
19474
 
fi # $ac_x_libraries = no
19475
 
 
19476
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19477
 
  # Didn't find X anywhere.  Cache the known absence of X.
19478
 
  ac_cv_have_x="have_x=no"
19479
 
else
19480
 
  # Record where we found X for the cache.
19481
 
  ac_cv_have_x="have_x=yes \
19482
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19483
 
fi
19484
 
fi
19485
 
 
19486
 
  fi
19487
 
  eval "$ac_cv_have_x"
19488
 
fi # $with_x != no
19489
 
 
19490
 
if test "$have_x" != yes; then
19491
 
  echo "$as_me:$LINENO: result: $have_x" >&5
19492
 
echo "${ECHO_T}$have_x" >&6
19493
 
  no_x=yes
19494
 
else
19495
 
  # If each of the values was on the command line, it overrides each guess.
19496
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19497
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19498
 
  # Update the cache value to reflect the command line values.
19499
 
  ac_cv_have_x="have_x=yes \
19500
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19501
 
  # It might be that x_includes is empty (headers are found in the
19502
 
  # standard search path. Then output the corresponding message
19503
 
  ac_out_x_includes=$x_includes
19504
 
  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
19505
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
19506
 
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
19507
 
fi
19508
 
 
19509
 
fi
19510
 
if test "$no_x" = yes; then
19511
 
  # Not all programs may use this symbol, but it does not hurt to define it.
19512
 
 
19513
 
cat >>confdefs.h <<\_ACEOF
19514
 
#define X_DISPLAY_MISSING 1
19515
 
_ACEOF
19516
 
 
19517
 
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19518
 
else
19519
 
  if test -n "$x_includes"; then
19520
 
    X_CFLAGS="$X_CFLAGS -I$x_includes"
19521
 
  fi
19522
 
 
19523
 
  # It would also be nice to do this for all -L options, not just this one.
19524
 
  if test -n "$x_libraries"; then
19525
 
    X_LIBS="$X_LIBS -L$x_libraries"
19526
 
    # For Solaris; some versions of Sun CC require a space after -R and
19527
 
    # others require no space.  Words are not sufficient . . . .
19528
 
    case `(uname -sr) 2>/dev/null` in
19529
 
    "SunOS 5"*)
19530
 
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19531
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19532
 
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19533
 
      cat >conftest.$ac_ext <<_ACEOF
19534
 
/* confdefs.h.  */
19535
 
_ACEOF
19536
 
cat confdefs.h >>conftest.$ac_ext
19537
 
cat >>conftest.$ac_ext <<_ACEOF
19538
 
/* end confdefs.h.  */
19539
 
 
19540
 
int
19541
 
main ()
19542
 
{
19543
 
 
19544
 
  ;
19545
 
  return 0;
19546
 
}
19547
 
_ACEOF
19548
 
rm -f conftest.$ac_objext conftest$ac_exeext
19549
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550
 
  (eval $ac_link) 2>conftest.er1
19551
 
  ac_status=$?
19552
 
  grep -v '^ *+' conftest.er1 >conftest.err
19553
 
  rm -f conftest.er1
19554
 
  cat conftest.err >&5
19555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556
 
  (exit $ac_status); } &&
19557
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559
 
  (eval $ac_try) 2>&5
19560
 
  ac_status=$?
19561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562
 
  (exit $ac_status); }; } &&
19563
 
         { ac_try='test -s conftest$ac_exeext'
19564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565
 
  (eval $ac_try) 2>&5
19566
 
  ac_status=$?
19567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568
 
  (exit $ac_status); }; }; then
19569
 
  ac_R_nospace=yes
19570
 
else
19571
 
  echo "$as_me: failed program was:" >&5
19572
 
sed 's/^/| /' conftest.$ac_ext >&5
19573
 
 
19574
 
ac_R_nospace=no
19575
 
fi
19576
 
rm -f conftest.err conftest.$ac_objext \
19577
 
      conftest$ac_exeext conftest.$ac_ext
19578
 
      if test $ac_R_nospace = yes; then
19579
 
        echo "$as_me:$LINENO: result: no" >&5
19580
 
echo "${ECHO_T}no" >&6
19581
 
        X_LIBS="$X_LIBS -R$x_libraries"
19582
 
      else
19583
 
        LIBS="$ac_xsave_LIBS -R $x_libraries"
19584
 
        cat >conftest.$ac_ext <<_ACEOF
19585
 
/* confdefs.h.  */
19586
 
_ACEOF
19587
 
cat confdefs.h >>conftest.$ac_ext
19588
 
cat >>conftest.$ac_ext <<_ACEOF
19589
 
/* end confdefs.h.  */
19590
 
 
19591
 
int
19592
 
main ()
19593
 
{
19594
 
 
19595
 
  ;
19596
 
  return 0;
19597
 
}
19598
 
_ACEOF
19599
 
rm -f conftest.$ac_objext conftest$ac_exeext
19600
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601
 
  (eval $ac_link) 2>conftest.er1
19602
 
  ac_status=$?
19603
 
  grep -v '^ *+' conftest.er1 >conftest.err
19604
 
  rm -f conftest.er1
19605
 
  cat conftest.err >&5
19606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607
 
  (exit $ac_status); } &&
19608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19609
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610
 
  (eval $ac_try) 2>&5
19611
 
  ac_status=$?
19612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613
 
  (exit $ac_status); }; } &&
19614
 
         { ac_try='test -s conftest$ac_exeext'
19615
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616
 
  (eval $ac_try) 2>&5
19617
 
  ac_status=$?
19618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619
 
  (exit $ac_status); }; }; then
19620
 
  ac_R_space=yes
19621
 
else
19622
 
  echo "$as_me: failed program was:" >&5
19623
 
sed 's/^/| /' conftest.$ac_ext >&5
19624
 
 
19625
 
ac_R_space=no
19626
 
fi
19627
 
rm -f conftest.err conftest.$ac_objext \
19628
 
      conftest$ac_exeext conftest.$ac_ext
19629
 
        if test $ac_R_space = yes; then
19630
 
          echo "$as_me:$LINENO: result: yes" >&5
19631
 
echo "${ECHO_T}yes" >&6
19632
 
          X_LIBS="$X_LIBS -R $x_libraries"
19633
 
        else
19634
 
          echo "$as_me:$LINENO: result: neither works" >&5
19635
 
echo "${ECHO_T}neither works" >&6
19636
 
        fi
19637
 
      fi
19638
 
      LIBS=$ac_xsave_LIBS
19639
 
    esac
19640
 
  fi
19641
 
 
19642
 
  # Check for system-dependent libraries X programs must link with.
19643
 
  # Do this before checking for the system-independent R6 libraries
19644
 
  # (-lICE), since we may need -lsocket or whatever for X linking.
19645
 
 
19646
 
  if test "$ISC" = yes; then
19647
 
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19648
 
  else
19649
 
    # Martyn Johnson says this is needed for Ultrix, if the X
19650
 
    # libraries were built with DECnet support.  And Karl Berry says
19651
 
    # the Alpha needs dnet_stub (dnet does not exist).
19652
 
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19653
 
    cat >conftest.$ac_ext <<_ACEOF
19654
 
/* confdefs.h.  */
19655
 
_ACEOF
19656
 
cat confdefs.h >>conftest.$ac_ext
19657
 
cat >>conftest.$ac_ext <<_ACEOF
19658
 
/* end confdefs.h.  */
19659
 
 
19660
 
/* Override any gcc2 internal prototype to avoid an error.  */
19661
 
#ifdef __cplusplus
19662
 
extern "C"
19663
 
#endif
19664
 
/* We use char because int might match the return type of a gcc2
19665
 
   builtin and then its argument prototype would still apply.  */
19666
 
char XOpenDisplay ();
19667
 
int
19668
 
main ()
19669
 
{
19670
 
XOpenDisplay ();
19671
 
  ;
19672
 
  return 0;
19673
 
}
19674
 
_ACEOF
19675
 
rm -f conftest.$ac_objext conftest$ac_exeext
19676
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677
 
  (eval $ac_link) 2>conftest.er1
19678
 
  ac_status=$?
19679
 
  grep -v '^ *+' conftest.er1 >conftest.err
19680
 
  rm -f conftest.er1
19681
 
  cat conftest.err >&5
19682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
 
  (exit $ac_status); } &&
19684
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
 
  (eval $ac_try) 2>&5
19687
 
  ac_status=$?
19688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
 
  (exit $ac_status); }; } &&
19690
 
         { ac_try='test -s conftest$ac_exeext'
19691
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692
 
  (eval $ac_try) 2>&5
19693
 
  ac_status=$?
19694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
 
  (exit $ac_status); }; }; then
19696
 
  :
19697
 
else
19698
 
  echo "$as_me: failed program was:" >&5
19699
 
sed 's/^/| /' conftest.$ac_ext >&5
19700
 
 
19701
 
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19702
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19703
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19704
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19705
 
else
19706
 
  ac_check_lib_save_LIBS=$LIBS
19707
 
LIBS="-ldnet  $LIBS"
19708
 
cat >conftest.$ac_ext <<_ACEOF
19709
 
/* confdefs.h.  */
19710
 
_ACEOF
19711
 
cat confdefs.h >>conftest.$ac_ext
19712
 
cat >>conftest.$ac_ext <<_ACEOF
19713
 
/* end confdefs.h.  */
19714
 
 
19715
 
/* Override any gcc2 internal prototype to avoid an error.  */
19716
 
#ifdef __cplusplus
19717
 
extern "C"
19718
 
#endif
19719
 
/* We use char because int might match the return type of a gcc2
19720
 
   builtin and then its argument prototype would still apply.  */
19721
 
char dnet_ntoa ();
19722
 
int
19723
 
main ()
19724
 
{
19725
 
dnet_ntoa ();
19726
 
  ;
19727
 
  return 0;
19728
 
}
19729
 
_ACEOF
19730
 
rm -f conftest.$ac_objext conftest$ac_exeext
19731
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732
 
  (eval $ac_link) 2>conftest.er1
19733
 
  ac_status=$?
19734
 
  grep -v '^ *+' conftest.er1 >conftest.err
19735
 
  rm -f conftest.er1
19736
 
  cat conftest.err >&5
19737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738
 
  (exit $ac_status); } &&
19739
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19740
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741
 
  (eval $ac_try) 2>&5
19742
 
  ac_status=$?
19743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744
 
  (exit $ac_status); }; } &&
19745
 
         { ac_try='test -s conftest$ac_exeext'
19746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747
 
  (eval $ac_try) 2>&5
19748
 
  ac_status=$?
19749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750
 
  (exit $ac_status); }; }; then
19751
 
  ac_cv_lib_dnet_dnet_ntoa=yes
19752
 
else
19753
 
  echo "$as_me: failed program was:" >&5
19754
 
sed 's/^/| /' conftest.$ac_ext >&5
19755
 
 
19756
 
ac_cv_lib_dnet_dnet_ntoa=no
19757
 
fi
19758
 
rm -f conftest.err conftest.$ac_objext \
19759
 
      conftest$ac_exeext conftest.$ac_ext
19760
 
LIBS=$ac_check_lib_save_LIBS
19761
 
fi
19762
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19763
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19764
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19765
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19766
 
fi
19767
 
 
19768
 
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19769
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19770
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19771
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19772
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19773
 
else
19774
 
  ac_check_lib_save_LIBS=$LIBS
19775
 
LIBS="-ldnet_stub  $LIBS"
19776
 
cat >conftest.$ac_ext <<_ACEOF
19777
 
/* confdefs.h.  */
19778
 
_ACEOF
19779
 
cat confdefs.h >>conftest.$ac_ext
19780
 
cat >>conftest.$ac_ext <<_ACEOF
19781
 
/* end confdefs.h.  */
19782
 
 
19783
 
/* Override any gcc2 internal prototype to avoid an error.  */
19784
 
#ifdef __cplusplus
19785
 
extern "C"
19786
 
#endif
19787
 
/* We use char because int might match the return type of a gcc2
19788
 
   builtin and then its argument prototype would still apply.  */
19789
 
char dnet_ntoa ();
19790
 
int
19791
 
main ()
19792
 
{
19793
 
dnet_ntoa ();
19794
 
  ;
19795
 
  return 0;
19796
 
}
19797
 
_ACEOF
19798
 
rm -f conftest.$ac_objext conftest$ac_exeext
19799
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800
 
  (eval $ac_link) 2>conftest.er1
19801
 
  ac_status=$?
19802
 
  grep -v '^ *+' conftest.er1 >conftest.err
19803
 
  rm -f conftest.er1
19804
 
  cat conftest.err >&5
19805
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806
 
  (exit $ac_status); } &&
19807
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19808
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809
 
  (eval $ac_try) 2>&5
19810
 
  ac_status=$?
19811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812
 
  (exit $ac_status); }; } &&
19813
 
         { ac_try='test -s conftest$ac_exeext'
19814
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815
 
  (eval $ac_try) 2>&5
19816
 
  ac_status=$?
19817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
 
  (exit $ac_status); }; }; then
19819
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
19820
 
else
19821
 
  echo "$as_me: failed program was:" >&5
19822
 
sed 's/^/| /' conftest.$ac_ext >&5
19823
 
 
19824
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
19825
 
fi
19826
 
rm -f conftest.err conftest.$ac_objext \
19827
 
      conftest$ac_exeext conftest.$ac_ext
19828
 
LIBS=$ac_check_lib_save_LIBS
19829
 
fi
19830
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19831
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19832
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19833
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19834
 
fi
19835
 
 
19836
 
    fi
19837
 
fi
19838
 
rm -f conftest.err conftest.$ac_objext \
19839
 
      conftest$ac_exeext conftest.$ac_ext
19840
 
    LIBS="$ac_xsave_LIBS"
19841
 
 
19842
 
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19843
 
    # to get the SysV transport functions.
19844
 
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19845
 
    # needs -lnsl.
19846
 
    # The nsl library prevents programs from opening the X display
19847
 
    # on Irix 5.2, according to T.E. Dickey.
19848
 
    # The functions gethostbyname, getservbyname, and inet_addr are
19849
 
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19850
 
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
19851
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19852
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
19853
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19854
 
else
19855
 
  cat >conftest.$ac_ext <<_ACEOF
19856
 
/* confdefs.h.  */
19857
 
_ACEOF
19858
 
cat confdefs.h >>conftest.$ac_ext
19859
 
cat >>conftest.$ac_ext <<_ACEOF
19860
 
/* end confdefs.h.  */
19861
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19862
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19863
 
#define gethostbyname innocuous_gethostbyname
19864
 
 
19865
 
/* System header to define __stub macros and hopefully few prototypes,
19866
 
    which can conflict with char gethostbyname (); below.
19867
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868
 
    <limits.h> exists even on freestanding compilers.  */
19869
 
 
19870
 
#ifdef __STDC__
19871
 
# include <limits.h>
19872
 
#else
19873
 
# include <assert.h>
19874
 
#endif
19875
 
 
19876
 
#undef gethostbyname
19877
 
 
19878
 
/* Override any gcc2 internal prototype to avoid an error.  */
19879
 
#ifdef __cplusplus
19880
 
extern "C"
19881
 
{
19882
 
#endif
19883
 
/* We use char because int might match the return type of a gcc2
19884
 
   builtin and then its argument prototype would still apply.  */
19885
 
char gethostbyname ();
19886
 
/* The GNU C library defines this for functions which it implements
19887
 
    to always fail with ENOSYS.  Some functions are actually named
19888
 
    something starting with __ and the normal name is an alias.  */
19889
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19890
 
choke me
19891
 
#else
19892
 
char (*f) () = gethostbyname;
19893
 
#endif
19894
 
#ifdef __cplusplus
19895
 
}
19896
 
#endif
19897
 
 
19898
 
int
19899
 
main ()
19900
 
{
19901
 
return f != gethostbyname;
19902
 
  ;
19903
 
  return 0;
19904
 
}
19905
 
_ACEOF
19906
 
rm -f conftest.$ac_objext conftest$ac_exeext
19907
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908
 
  (eval $ac_link) 2>conftest.er1
19909
 
  ac_status=$?
19910
 
  grep -v '^ *+' conftest.er1 >conftest.err
19911
 
  rm -f conftest.er1
19912
 
  cat conftest.err >&5
19913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914
 
  (exit $ac_status); } &&
19915
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19916
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917
 
  (eval $ac_try) 2>&5
19918
 
  ac_status=$?
19919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920
 
  (exit $ac_status); }; } &&
19921
 
         { ac_try='test -s conftest$ac_exeext'
19922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923
 
  (eval $ac_try) 2>&5
19924
 
  ac_status=$?
19925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926
 
  (exit $ac_status); }; }; then
19927
 
  ac_cv_func_gethostbyname=yes
19928
 
else
19929
 
  echo "$as_me: failed program was:" >&5
19930
 
sed 's/^/| /' conftest.$ac_ext >&5
19931
 
 
19932
 
ac_cv_func_gethostbyname=no
19933
 
fi
19934
 
rm -f conftest.err conftest.$ac_objext \
19935
 
      conftest$ac_exeext conftest.$ac_ext
19936
 
fi
19937
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19938
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19939
 
 
19940
 
    if test $ac_cv_func_gethostbyname = no; then
19941
 
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19942
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19943
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19945
 
else
19946
 
  ac_check_lib_save_LIBS=$LIBS
19947
 
LIBS="-lnsl  $LIBS"
19948
 
cat >conftest.$ac_ext <<_ACEOF
19949
 
/* confdefs.h.  */
19950
 
_ACEOF
19951
 
cat confdefs.h >>conftest.$ac_ext
19952
 
cat >>conftest.$ac_ext <<_ACEOF
19953
 
/* end confdefs.h.  */
19954
 
 
19955
 
/* Override any gcc2 internal prototype to avoid an error.  */
19956
 
#ifdef __cplusplus
19957
 
extern "C"
19958
 
#endif
19959
 
/* We use char because int might match the return type of a gcc2
19960
 
   builtin and then its argument prototype would still apply.  */
19961
 
char gethostbyname ();
19962
 
int
19963
 
main ()
19964
 
{
19965
 
gethostbyname ();
19966
 
  ;
19967
 
  return 0;
19968
 
}
19969
 
_ACEOF
19970
 
rm -f conftest.$ac_objext conftest$ac_exeext
19971
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19972
 
  (eval $ac_link) 2>conftest.er1
19973
 
  ac_status=$?
19974
 
  grep -v '^ *+' conftest.er1 >conftest.err
19975
 
  rm -f conftest.er1
19976
 
  cat conftest.err >&5
19977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978
 
  (exit $ac_status); } &&
19979
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19980
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981
 
  (eval $ac_try) 2>&5
19982
 
  ac_status=$?
19983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984
 
  (exit $ac_status); }; } &&
19985
 
         { ac_try='test -s conftest$ac_exeext'
19986
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987
 
  (eval $ac_try) 2>&5
19988
 
  ac_status=$?
19989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990
 
  (exit $ac_status); }; }; then
19991
 
  ac_cv_lib_nsl_gethostbyname=yes
19992
 
else
19993
 
  echo "$as_me: failed program was:" >&5
19994
 
sed 's/^/| /' conftest.$ac_ext >&5
19995
 
 
19996
 
ac_cv_lib_nsl_gethostbyname=no
19997
 
fi
19998
 
rm -f conftest.err conftest.$ac_objext \
19999
 
      conftest$ac_exeext conftest.$ac_ext
20000
 
LIBS=$ac_check_lib_save_LIBS
20001
 
fi
20002
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20003
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20004
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
20005
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20006
 
fi
20007
 
 
20008
 
      if test $ac_cv_lib_nsl_gethostbyname = no; then
20009
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20010
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20011
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20013
 
else
20014
 
  ac_check_lib_save_LIBS=$LIBS
20015
 
LIBS="-lbsd  $LIBS"
20016
 
cat >conftest.$ac_ext <<_ACEOF
20017
 
/* confdefs.h.  */
20018
 
_ACEOF
20019
 
cat confdefs.h >>conftest.$ac_ext
20020
 
cat >>conftest.$ac_ext <<_ACEOF
20021
 
/* end confdefs.h.  */
20022
 
 
20023
 
/* Override any gcc2 internal prototype to avoid an error.  */
20024
 
#ifdef __cplusplus
20025
 
extern "C"
20026
 
#endif
20027
 
/* We use char because int might match the return type of a gcc2
20028
 
   builtin and then its argument prototype would still apply.  */
20029
 
char gethostbyname ();
20030
 
int
20031
 
main ()
20032
 
{
20033
 
gethostbyname ();
20034
 
  ;
20035
 
  return 0;
20036
 
}
20037
 
_ACEOF
20038
 
rm -f conftest.$ac_objext conftest$ac_exeext
20039
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20040
 
  (eval $ac_link) 2>conftest.er1
20041
 
  ac_status=$?
20042
 
  grep -v '^ *+' conftest.er1 >conftest.err
20043
 
  rm -f conftest.er1
20044
 
  cat conftest.err >&5
20045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046
 
  (exit $ac_status); } &&
20047
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049
 
  (eval $ac_try) 2>&5
20050
 
  ac_status=$?
20051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052
 
  (exit $ac_status); }; } &&
20053
 
         { ac_try='test -s conftest$ac_exeext'
20054
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055
 
  (eval $ac_try) 2>&5
20056
 
  ac_status=$?
20057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058
 
  (exit $ac_status); }; }; then
20059
 
  ac_cv_lib_bsd_gethostbyname=yes
20060
 
else
20061
 
  echo "$as_me: failed program was:" >&5
20062
 
sed 's/^/| /' conftest.$ac_ext >&5
20063
 
 
20064
 
ac_cv_lib_bsd_gethostbyname=no
20065
 
fi
20066
 
rm -f conftest.err conftest.$ac_objext \
20067
 
      conftest$ac_exeext conftest.$ac_ext
20068
 
LIBS=$ac_check_lib_save_LIBS
20069
 
fi
20070
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20071
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20072
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
20073
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20074
 
fi
20075
 
 
20076
 
      fi
20077
 
    fi
20078
 
 
20079
 
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
20080
 
    # socket/setsockopt and other routines are undefined under SCO ODT
20081
 
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20082
 
    # on later versions), says Simon Leinen: it contains gethostby*
20083
 
    # variants that don't use the name server (or something).  -lsocket
20084
 
    # must be given before -lnsl if both are needed.  We assume that
20085
 
    # if connect needs -lnsl, so does gethostbyname.
20086
 
    echo "$as_me:$LINENO: checking for connect" >&5
20087
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
20088
 
if test "${ac_cv_func_connect+set}" = set; then
20089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20090
 
else
20091
 
  cat >conftest.$ac_ext <<_ACEOF
20092
 
/* confdefs.h.  */
20093
 
_ACEOF
20094
 
cat confdefs.h >>conftest.$ac_ext
20095
 
cat >>conftest.$ac_ext <<_ACEOF
20096
 
/* end confdefs.h.  */
20097
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20098
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20099
 
#define connect innocuous_connect
20100
 
 
20101
 
/* System header to define __stub macros and hopefully few prototypes,
20102
 
    which can conflict with char connect (); below.
20103
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104
 
    <limits.h> exists even on freestanding compilers.  */
20105
 
 
20106
 
#ifdef __STDC__
20107
 
# include <limits.h>
20108
 
#else
20109
 
# include <assert.h>
20110
 
#endif
20111
 
 
20112
 
#undef connect
20113
 
 
20114
 
/* Override any gcc2 internal prototype to avoid an error.  */
20115
 
#ifdef __cplusplus
20116
 
extern "C"
20117
 
{
20118
 
#endif
20119
 
/* We use char because int might match the return type of a gcc2
20120
 
   builtin and then its argument prototype would still apply.  */
20121
 
char connect ();
20122
 
/* The GNU C library defines this for functions which it implements
20123
 
    to always fail with ENOSYS.  Some functions are actually named
20124
 
    something starting with __ and the normal name is an alias.  */
20125
 
#if defined (__stub_connect) || defined (__stub___connect)
20126
 
choke me
20127
 
#else
20128
 
char (*f) () = connect;
20129
 
#endif
20130
 
#ifdef __cplusplus
20131
 
}
20132
 
#endif
20133
 
 
20134
 
int
20135
 
main ()
20136
 
{
20137
 
return f != connect;
20138
 
  ;
20139
 
  return 0;
20140
 
}
20141
 
_ACEOF
20142
 
rm -f conftest.$ac_objext conftest$ac_exeext
20143
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144
 
  (eval $ac_link) 2>conftest.er1
20145
 
  ac_status=$?
20146
 
  grep -v '^ *+' conftest.er1 >conftest.err
20147
 
  rm -f conftest.er1
20148
 
  cat conftest.err >&5
20149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150
 
  (exit $ac_status); } &&
20151
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
 
  (eval $ac_try) 2>&5
20154
 
  ac_status=$?
20155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
 
  (exit $ac_status); }; } &&
20157
 
         { ac_try='test -s conftest$ac_exeext'
20158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159
 
  (eval $ac_try) 2>&5
20160
 
  ac_status=$?
20161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
 
  (exit $ac_status); }; }; then
20163
 
  ac_cv_func_connect=yes
20164
 
else
20165
 
  echo "$as_me: failed program was:" >&5
20166
 
sed 's/^/| /' conftest.$ac_ext >&5
20167
 
 
20168
 
ac_cv_func_connect=no
20169
 
fi
20170
 
rm -f conftest.err conftest.$ac_objext \
20171
 
      conftest$ac_exeext conftest.$ac_ext
20172
 
fi
20173
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20174
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
20175
 
 
20176
 
    if test $ac_cv_func_connect = no; then
20177
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20178
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20179
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
20180
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20181
 
else
20182
 
  ac_check_lib_save_LIBS=$LIBS
20183
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20184
 
cat >conftest.$ac_ext <<_ACEOF
20185
 
/* confdefs.h.  */
20186
 
_ACEOF
20187
 
cat confdefs.h >>conftest.$ac_ext
20188
 
cat >>conftest.$ac_ext <<_ACEOF
20189
 
/* end confdefs.h.  */
20190
 
 
20191
 
/* Override any gcc2 internal prototype to avoid an error.  */
20192
 
#ifdef __cplusplus
20193
 
extern "C"
20194
 
#endif
20195
 
/* We use char because int might match the return type of a gcc2
20196
 
   builtin and then its argument prototype would still apply.  */
20197
 
char connect ();
20198
 
int
20199
 
main ()
20200
 
{
20201
 
connect ();
20202
 
  ;
20203
 
  return 0;
20204
 
}
20205
 
_ACEOF
20206
 
rm -f conftest.$ac_objext conftest$ac_exeext
20207
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208
 
  (eval $ac_link) 2>conftest.er1
20209
 
  ac_status=$?
20210
 
  grep -v '^ *+' conftest.er1 >conftest.err
20211
 
  rm -f conftest.er1
20212
 
  cat conftest.err >&5
20213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214
 
  (exit $ac_status); } &&
20215
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20216
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217
 
  (eval $ac_try) 2>&5
20218
 
  ac_status=$?
20219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220
 
  (exit $ac_status); }; } &&
20221
 
         { ac_try='test -s conftest$ac_exeext'
20222
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223
 
  (eval $ac_try) 2>&5
20224
 
  ac_status=$?
20225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226
 
  (exit $ac_status); }; }; then
20227
 
  ac_cv_lib_socket_connect=yes
20228
 
else
20229
 
  echo "$as_me: failed program was:" >&5
20230
 
sed 's/^/| /' conftest.$ac_ext >&5
20231
 
 
20232
 
ac_cv_lib_socket_connect=no
20233
 
fi
20234
 
rm -f conftest.err conftest.$ac_objext \
20235
 
      conftest$ac_exeext conftest.$ac_ext
20236
 
LIBS=$ac_check_lib_save_LIBS
20237
 
fi
20238
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20239
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20240
 
if test $ac_cv_lib_socket_connect = yes; then
20241
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20242
 
fi
20243
 
 
20244
 
    fi
20245
 
 
20246
 
    # Guillermo Gomez says -lposix is necessary on A/UX.
20247
 
    echo "$as_me:$LINENO: checking for remove" >&5
20248
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
20249
 
if test "${ac_cv_func_remove+set}" = set; then
20250
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20251
 
else
20252
 
  cat >conftest.$ac_ext <<_ACEOF
20253
 
/* confdefs.h.  */
20254
 
_ACEOF
20255
 
cat confdefs.h >>conftest.$ac_ext
20256
 
cat >>conftest.$ac_ext <<_ACEOF
20257
 
/* end confdefs.h.  */
20258
 
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20259
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20260
 
#define remove innocuous_remove
20261
 
 
20262
 
/* System header to define __stub macros and hopefully few prototypes,
20263
 
    which can conflict with char remove (); below.
20264
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265
 
    <limits.h> exists even on freestanding compilers.  */
20266
 
 
20267
 
#ifdef __STDC__
20268
 
# include <limits.h>
20269
 
#else
20270
 
# include <assert.h>
20271
 
#endif
20272
 
 
20273
 
#undef remove
20274
 
 
20275
 
/* Override any gcc2 internal prototype to avoid an error.  */
20276
 
#ifdef __cplusplus
20277
 
extern "C"
20278
 
{
20279
 
#endif
20280
 
/* We use char because int might match the return type of a gcc2
20281
 
   builtin and then its argument prototype would still apply.  */
20282
 
char remove ();
20283
 
/* The GNU C library defines this for functions which it implements
20284
 
    to always fail with ENOSYS.  Some functions are actually named
20285
 
    something starting with __ and the normal name is an alias.  */
20286
 
#if defined (__stub_remove) || defined (__stub___remove)
20287
 
choke me
20288
 
#else
20289
 
char (*f) () = remove;
20290
 
#endif
20291
 
#ifdef __cplusplus
20292
 
}
20293
 
#endif
20294
 
 
20295
 
int
20296
 
main ()
20297
 
{
20298
 
return f != remove;
20299
 
  ;
20300
 
  return 0;
20301
 
}
20302
 
_ACEOF
20303
 
rm -f conftest.$ac_objext conftest$ac_exeext
20304
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305
 
  (eval $ac_link) 2>conftest.er1
20306
 
  ac_status=$?
20307
 
  grep -v '^ *+' conftest.er1 >conftest.err
20308
 
  rm -f conftest.er1
20309
 
  cat conftest.err >&5
20310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311
 
  (exit $ac_status); } &&
20312
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314
 
  (eval $ac_try) 2>&5
20315
 
  ac_status=$?
20316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317
 
  (exit $ac_status); }; } &&
20318
 
         { ac_try='test -s conftest$ac_exeext'
20319
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320
 
  (eval $ac_try) 2>&5
20321
 
  ac_status=$?
20322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323
 
  (exit $ac_status); }; }; then
20324
 
  ac_cv_func_remove=yes
20325
 
else
20326
 
  echo "$as_me: failed program was:" >&5
20327
 
sed 's/^/| /' conftest.$ac_ext >&5
20328
 
 
20329
 
ac_cv_func_remove=no
20330
 
fi
20331
 
rm -f conftest.err conftest.$ac_objext \
20332
 
      conftest$ac_exeext conftest.$ac_ext
20333
 
fi
20334
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20335
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
20336
 
 
20337
 
    if test $ac_cv_func_remove = no; then
20338
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20339
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20340
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
20341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20342
 
else
20343
 
  ac_check_lib_save_LIBS=$LIBS
20344
 
LIBS="-lposix  $LIBS"
20345
 
cat >conftest.$ac_ext <<_ACEOF
20346
 
/* confdefs.h.  */
20347
 
_ACEOF
20348
 
cat confdefs.h >>conftest.$ac_ext
20349
 
cat >>conftest.$ac_ext <<_ACEOF
20350
 
/* end confdefs.h.  */
20351
 
 
20352
 
/* Override any gcc2 internal prototype to avoid an error.  */
20353
 
#ifdef __cplusplus
20354
 
extern "C"
20355
 
#endif
20356
 
/* We use char because int might match the return type of a gcc2
20357
 
   builtin and then its argument prototype would still apply.  */
20358
 
char remove ();
20359
 
int
20360
 
main ()
20361
 
{
20362
 
remove ();
20363
 
  ;
20364
 
  return 0;
20365
 
}
20366
 
_ACEOF
20367
 
rm -f conftest.$ac_objext conftest$ac_exeext
20368
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369
 
  (eval $ac_link) 2>conftest.er1
20370
 
  ac_status=$?
20371
 
  grep -v '^ *+' conftest.er1 >conftest.err
20372
 
  rm -f conftest.er1
20373
 
  cat conftest.err >&5
20374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375
 
  (exit $ac_status); } &&
20376
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378
 
  (eval $ac_try) 2>&5
20379
 
  ac_status=$?
20380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
 
  (exit $ac_status); }; } &&
20382
 
         { ac_try='test -s conftest$ac_exeext'
20383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384
 
  (eval $ac_try) 2>&5
20385
 
  ac_status=$?
20386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387
 
  (exit $ac_status); }; }; then
20388
 
  ac_cv_lib_posix_remove=yes
20389
 
else
20390
 
  echo "$as_me: failed program was:" >&5
20391
 
sed 's/^/| /' conftest.$ac_ext >&5
20392
 
 
20393
 
ac_cv_lib_posix_remove=no
20394
 
fi
20395
 
rm -f conftest.err conftest.$ac_objext \
20396
 
      conftest$ac_exeext conftest.$ac_ext
20397
 
LIBS=$ac_check_lib_save_LIBS
20398
 
fi
20399
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20400
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20401
 
if test $ac_cv_lib_posix_remove = yes; then
20402
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20403
 
fi
20404
 
 
20405
 
    fi
20406
 
 
20407
 
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20408
 
    echo "$as_me:$LINENO: checking for shmat" >&5
20409
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20410
 
if test "${ac_cv_func_shmat+set}" = set; then
20411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20412
 
else
20413
 
  cat >conftest.$ac_ext <<_ACEOF
20414
 
/* confdefs.h.  */
20415
 
_ACEOF
20416
 
cat confdefs.h >>conftest.$ac_ext
20417
 
cat >>conftest.$ac_ext <<_ACEOF
20418
 
/* end confdefs.h.  */
20419
 
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20420
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20421
 
#define shmat innocuous_shmat
20422
 
 
20423
 
/* System header to define __stub macros and hopefully few prototypes,
20424
 
    which can conflict with char shmat (); below.
20425
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426
 
    <limits.h> exists even on freestanding compilers.  */
20427
 
 
20428
 
#ifdef __STDC__
20429
 
# include <limits.h>
20430
 
#else
20431
 
# include <assert.h>
20432
 
#endif
20433
 
 
20434
 
#undef shmat
20435
 
 
20436
 
/* Override any gcc2 internal prototype to avoid an error.  */
20437
 
#ifdef __cplusplus
20438
 
extern "C"
20439
 
{
20440
 
#endif
20441
 
/* We use char because int might match the return type of a gcc2
20442
 
   builtin and then its argument prototype would still apply.  */
20443
 
char shmat ();
20444
 
/* The GNU C library defines this for functions which it implements
20445
 
    to always fail with ENOSYS.  Some functions are actually named
20446
 
    something starting with __ and the normal name is an alias.  */
20447
 
#if defined (__stub_shmat) || defined (__stub___shmat)
20448
 
choke me
20449
 
#else
20450
 
char (*f) () = shmat;
20451
 
#endif
20452
 
#ifdef __cplusplus
20453
 
}
20454
 
#endif
20455
 
 
20456
 
int
20457
 
main ()
20458
 
{
20459
 
return f != shmat;
20460
 
  ;
20461
 
  return 0;
20462
 
}
20463
 
_ACEOF
20464
 
rm -f conftest.$ac_objext conftest$ac_exeext
20465
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466
 
  (eval $ac_link) 2>conftest.er1
20467
 
  ac_status=$?
20468
 
  grep -v '^ *+' conftest.er1 >conftest.err
20469
 
  rm -f conftest.er1
20470
 
  cat conftest.err >&5
20471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472
 
  (exit $ac_status); } &&
20473
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475
 
  (eval $ac_try) 2>&5
20476
 
  ac_status=$?
20477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478
 
  (exit $ac_status); }; } &&
20479
 
         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20485
 
  ac_cv_func_shmat=yes
20486
 
else
20487
 
  echo "$as_me: failed program was:" >&5
20488
 
sed 's/^/| /' conftest.$ac_ext >&5
20489
 
 
20490
 
ac_cv_func_shmat=no
20491
 
fi
20492
 
rm -f conftest.err conftest.$ac_objext \
20493
 
      conftest$ac_exeext conftest.$ac_ext
20494
 
fi
20495
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20496
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
20497
 
 
20498
 
    if test $ac_cv_func_shmat = no; then
20499
 
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20500
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20501
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20503
 
else
20504
 
  ac_check_lib_save_LIBS=$LIBS
20505
 
LIBS="-lipc  $LIBS"
20506
 
cat >conftest.$ac_ext <<_ACEOF
20507
 
/* confdefs.h.  */
20508
 
_ACEOF
20509
 
cat confdefs.h >>conftest.$ac_ext
20510
 
cat >>conftest.$ac_ext <<_ACEOF
20511
 
/* end confdefs.h.  */
20512
 
 
20513
 
/* Override any gcc2 internal prototype to avoid an error.  */
20514
 
#ifdef __cplusplus
20515
 
extern "C"
20516
 
#endif
20517
 
/* We use char because int might match the return type of a gcc2
20518
 
   builtin and then its argument prototype would still apply.  */
20519
 
char shmat ();
20520
 
int
20521
 
main ()
20522
 
{
20523
 
shmat ();
20524
 
  ;
20525
 
  return 0;
20526
 
}
20527
 
_ACEOF
20528
 
rm -f conftest.$ac_objext conftest$ac_exeext
20529
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20530
 
  (eval $ac_link) 2>conftest.er1
20531
 
  ac_status=$?
20532
 
  grep -v '^ *+' conftest.er1 >conftest.err
20533
 
  rm -f conftest.er1
20534
 
  cat conftest.err >&5
20535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
 
  (exit $ac_status); } &&
20537
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20538
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539
 
  (eval $ac_try) 2>&5
20540
 
  ac_status=$?
20541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542
 
  (exit $ac_status); }; } &&
20543
 
         { ac_try='test -s conftest$ac_exeext'
20544
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545
 
  (eval $ac_try) 2>&5
20546
 
  ac_status=$?
20547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548
 
  (exit $ac_status); }; }; then
20549
 
  ac_cv_lib_ipc_shmat=yes
20550
 
else
20551
 
  echo "$as_me: failed program was:" >&5
20552
 
sed 's/^/| /' conftest.$ac_ext >&5
20553
 
 
20554
 
ac_cv_lib_ipc_shmat=no
20555
 
fi
20556
 
rm -f conftest.err conftest.$ac_objext \
20557
 
      conftest$ac_exeext conftest.$ac_ext
20558
 
LIBS=$ac_check_lib_save_LIBS
20559
 
fi
20560
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20561
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20562
 
if test $ac_cv_lib_ipc_shmat = yes; then
20563
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20564
 
fi
20565
 
 
20566
 
    fi
20567
 
  fi
20568
 
 
20569
 
  # Check for libraries that X11R6 Xt/Xaw programs need.
20570
 
  ac_save_LDFLAGS=$LDFLAGS
20571
 
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20572
 
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20573
 
  # check for ICE first), but we must link in the order -lSM -lICE or
20574
 
  # we get undefined symbols.  So assume we have SM if we have ICE.
20575
 
  # These have to be linked with before -lX11, unlike the other
20576
 
  # libraries we check for below, so use a different variable.
20577
 
  # John Interrante, Karl Berry
20578
 
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20579
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20580
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20582
 
else
20583
 
  ac_check_lib_save_LIBS=$LIBS
20584
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20585
 
cat >conftest.$ac_ext <<_ACEOF
20586
 
/* confdefs.h.  */
20587
 
_ACEOF
20588
 
cat confdefs.h >>conftest.$ac_ext
20589
 
cat >>conftest.$ac_ext <<_ACEOF
20590
 
/* end confdefs.h.  */
20591
 
 
20592
 
/* Override any gcc2 internal prototype to avoid an error.  */
20593
 
#ifdef __cplusplus
20594
 
extern "C"
20595
 
#endif
20596
 
/* We use char because int might match the return type of a gcc2
20597
 
   builtin and then its argument prototype would still apply.  */
20598
 
char IceConnectionNumber ();
20599
 
int
20600
 
main ()
20601
 
{
20602
 
IceConnectionNumber ();
20603
 
  ;
20604
 
  return 0;
20605
 
}
20606
 
_ACEOF
20607
 
rm -f conftest.$ac_objext conftest$ac_exeext
20608
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609
 
  (eval $ac_link) 2>conftest.er1
20610
 
  ac_status=$?
20611
 
  grep -v '^ *+' conftest.er1 >conftest.err
20612
 
  rm -f conftest.er1
20613
 
  cat conftest.err >&5
20614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615
 
  (exit $ac_status); } &&
20616
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618
 
  (eval $ac_try) 2>&5
20619
 
  ac_status=$?
20620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621
 
  (exit $ac_status); }; } &&
20622
 
         { ac_try='test -s conftest$ac_exeext'
20623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624
 
  (eval $ac_try) 2>&5
20625
 
  ac_status=$?
20626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627
 
  (exit $ac_status); }; }; then
20628
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
20629
 
else
20630
 
  echo "$as_me: failed program was:" >&5
20631
 
sed 's/^/| /' conftest.$ac_ext >&5
20632
 
 
20633
 
ac_cv_lib_ICE_IceConnectionNumber=no
20634
 
fi
20635
 
rm -f conftest.err conftest.$ac_objext \
20636
 
      conftest$ac_exeext conftest.$ac_ext
20637
 
LIBS=$ac_check_lib_save_LIBS
20638
 
fi
20639
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20640
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20641
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20642
 
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20643
 
fi
20644
 
 
20645
 
  LDFLAGS=$ac_save_LDFLAGS
20646
 
 
20647
 
fi
20648
 
 
20649
 
        X_LIBS="$X_LIBS -lX11"
20650
 
 
20651
 
        if test "x$no_x" = "xyes"
20652
 
        then
20653
 
                { { echo "$as_me:$LINENO: error: X is required, but it was either disabled or not found." >&5
20654
 
echo "$as_me: error: X is required, but it was either disabled or not found." >&2;}
20655
 
   { (exit 1); exit 1; }; }
20656
 
        fi
20657
 
 
20658
 
        save_LIBS="$LIBS"
20659
 
        save_CFLAGS="$CFLAGS"
20660
 
        CFLAGS="$CFLAGS $X_CFLAGS"
20661
 
        LIBS="$LIBS $X_LIBS"
20662
 
 
20663
 
        echo "$as_me:$LINENO: checking for XTHREADS in Xlib" >&5
20664
 
echo $ECHO_N "checking for XTHREADS in Xlib... $ECHO_C" >&6
20665
 
        if test "$cross_compiling" = yes; then
20666
 
  xthreads=yes
20667
 
else
20668
 
  cat >conftest.$ac_ext <<_ACEOF
20669
 
/* confdefs.h.  */
20670
 
_ACEOF
20671
 
cat confdefs.h >>conftest.$ac_ext
20672
 
cat >>conftest.$ac_ext <<_ACEOF
20673
 
/* end confdefs.h.  */
20674
 
#include <X11/Xlib.h>
20675
 
int
20676
 
main ()
20677
 
{
20678
 
return XInitThreads() == 0 ? 0 : 1;
20679
 
  ;
20680
 
  return 0;
20681
 
}
20682
 
_ACEOF
20683
 
rm -f conftest$ac_exeext
20684
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20685
 
  (eval $ac_link) 2>&5
20686
 
  ac_status=$?
20687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20689
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690
 
  (eval $ac_try) 2>&5
20691
 
  ac_status=$?
20692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693
 
  (exit $ac_status); }; }; then
20694
 
  xthreads=no
20695
 
else
20696
 
  echo "$as_me: program exited with status $ac_status" >&5
20697
 
echo "$as_me: failed program was:" >&5
20698
 
sed 's/^/| /' conftest.$ac_ext >&5
20699
 
 
20700
 
( exit $ac_status )
20701
 
xthreads=yes
20702
 
fi
20703
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20704
 
fi
20705
 
 
20706
 
        echo "$as_me:$LINENO: result: $xthreads" >&5
20707
 
echo "${ECHO_T}$xthreads" >&6
20708
 
 
20709
 
        LIBS="$save_LIBS"
20710
 
        CFLAGS="$save_CFLAGS"
20711
 
 
20712
 
        if test "x$xthreads" = "xyes"
20713
 
        then
20714
 
                X_CFLAGS="$X_CFLAGS -DXTHREADS"
20715
 
        fi
20716
 
fi
20717
 
 
20718
 
# Check compositeext configuration, strip extra digits from package version to
20719
 
# find the required protocol version
20720
 
 
20721
 
COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
20722
 
 
20723
 
pkg_failed=no
20724
18761
echo "$as_me:$LINENO: checking for XCOMPOSITE" >&5
20725
18762
echo $ECHO_N "checking for XCOMPOSITE... $ECHO_C" >&6
20726
18763
 
20727
18764
if test -n "$PKG_CONFIG"; then
 
18765
    if test -n "$XCOMPOSITE_CFLAGS"; then
 
18766
        pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
 
18767
    else
20728
18768
        if test -n "$PKG_CONFIG" && \
20729
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xdamage\"") >&5
20730
 
  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage") 2>&5
 
18769
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
 
18770
  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20731
18771
  ac_status=$?
20732
18772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733
18773
  (exit $ac_status); }; then
20734
 
  pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION xdamage" 2>/dev/null`
 
18774
  pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20735
18775
else
20736
18776
  pkg_failed=yes
20737
18777
fi
 
18778
    fi
20738
18779
else
20739
18780
        pkg_failed=untried
20740
18781
fi
20741
18782
if test -n "$PKG_CONFIG"; then
 
18783
    if test -n "$XCOMPOSITE_LIBS"; then
 
18784
        pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
 
18785
    else
20742
18786
        if test -n "$PKG_CONFIG" && \
20743
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xdamage\"") >&5
20744
 
  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage") 2>&5
 
18787
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
 
18788
  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20745
18789
  ac_status=$?
20746
18790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747
18791
  (exit $ac_status); }; then
20748
 
  pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION xdamage" 2>/dev/null`
 
18792
  pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20749
18793
else
20750
18794
  pkg_failed=yes
20751
18795
fi
 
18796
    fi
20752
18797
else
20753
18798
        pkg_failed=untried
20754
18799
fi
20755
18800
 
 
18801
 
 
18802
 
20756
18803
if test $pkg_failed = yes; then
20757
 
        XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage"`
 
18804
 
 
18805
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18806
        _pkg_short_errors_supported=yes
 
18807
else
 
18808
        _pkg_short_errors_supported=no
 
18809
fi
 
18810
        if test $_pkg_short_errors_supported = yes; then
 
18811
                XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
 
18812
        else
 
18813
                XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
 
18814
        fi
20758
18815
        # Put the nasty error message in config.log where it belongs
20759
 
        echo "$XCOMPOSITE_PKG_ERRORS" 1>&5
20760
 
 
20761
 
        { { echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xdamage) were not met.
20762
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20763
 
installed software in a non-standard prefix.
20764
 
 
20765
 
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20766
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20767
 
more details." >&5
20768
 
echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xdamage) were not met.
20769
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20770
 
installed software in a non-standard prefix.
20771
 
 
20772
 
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20773
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20774
 
more details." >&2;}
 
18816
        echo "$XCOMPOSITE_PKG_ERRORS" >&5
 
18817
 
 
18818
        { { echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
 
18819
 
 
18820
$XCOMPOSITE_PKG_ERRORS
 
18821
 
 
18822
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18823
installed software in a non-standard prefix.
 
18824
 
 
18825
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
 
18826
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
 
18827
See the pkg-config man page for more details.
 
18828
" >&5
 
18829
echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
 
18830
 
 
18831
$XCOMPOSITE_PKG_ERRORS
 
18832
 
 
18833
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18834
installed software in a non-standard prefix.
 
18835
 
 
18836
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
 
18837
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
 
18838
See the pkg-config man page for more details.
 
18839
" >&2;}
20775
18840
   { (exit 1); exit 1; }; }
20776
18841
elif test $pkg_failed = untried; then
20777
18842
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20778
18843
is in your PATH or set the PKG_CONFIG environment variable to the full
20779
18844
path to pkg-config.
20780
18845
 
20781
 
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20782
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20783
 
more details.
 
18846
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
 
18847
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
 
18848
See the pkg-config man page for more details.
20784
18849
 
20785
18850
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20786
18851
See \`config.log' for more details." >&5
20788
18853
is in your PATH or set the PKG_CONFIG environment variable to the full
20789
18854
path to pkg-config.
20790
18855
 
20791
 
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20792
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20793
 
more details.
 
18856
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
 
18857
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
 
18858
See the pkg-config man page for more details.
20794
18859
 
20795
18860
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20796
18861
See \`config.log' for more details." >&2;}
20798
18863
else
20799
18864
        XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
20800
18865
        XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
 
18866
        echo "$as_me:$LINENO: result: yes" >&5
 
18867
echo "${ECHO_T}yes" >&6
20801
18868
        :
20802
18869
fi
20803
18870
 
20804
 
                                                            ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile xcomposite.pc"
 
18871
 
 
18872
 
 
18873
 
 
18874
 
 
18875
# Check whether --with-release-version or --without-release-version was given.
 
18876
if test "${with_release_version+set}" = set; then
 
18877
  withval="$with_release_version"
 
18878
  RELEASE_VERSION="$withval"
 
18879
else
 
18880
  RELEASE_VERSION=""
 
18881
fi;
 
18882
        if test "x$RELEASE_VERSION" != "x"; then
 
18883
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
18884
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
18885
                { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
18886
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
18887
        fi
 
18888
 
 
18889
 
 
18890
                              ac_config_files="$ac_config_files Makefile src/Makefile xcomposite.pc"
20805
18891
cat >confcache <<\_ACEOF
20806
18892
# This file is a shell script that caches the results of configure
20807
18893
# tests run on this system so they can be shared between configure
21192
19278
} >&5
21193
19279
cat >&5 <<_CSEOF
21194
19280
 
21195
 
This file was extended by libXcomposite $as_me 0.2.0, which was
 
19281
This file was extended by libXcomposite $as_me 0.3, which was
21196
19282
generated by GNU Autoconf 2.59.  Invocation command line was
21197
19283
 
21198
19284
  CONFIG_FILES    = $CONFIG_FILES
21255
19341
 
21256
19342
cat >>$CONFIG_STATUS <<_ACEOF
21257
19343
ac_cs_version="\\
21258
 
libXcomposite config.status 0.2.0
 
19344
libXcomposite config.status 0.3
21259
19345
configured by $0, generated by GNU Autoconf 2.59,
21260
19346
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21261
19347
 
21366
19452
  case "$ac_config_target" in
21367
19453
  # Handling of arguments.
21368
19454
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21369
 
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21370
 
  "include/X11/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
21371
 
  "include/X11/extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
21372
19455
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21373
19456
  "xcomposite.pc" ) CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
21374
19457
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21526
19609
s,@FFLAGS@,$FFLAGS,;t t
21527
19610
s,@ac_ct_F77@,$ac_ct_F77,;t t
21528
19611
s,@LIBTOOL@,$LIBTOOL,;t t
 
19612
s,@COMPOSITEEXT_VERSION@,$COMPOSITEEXT_VERSION,;t t
21529
19613
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21530
19614
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21531
 
s,@X_CFLAGS@,$X_CFLAGS,;t t
21532
 
s,@X_LIBS@,$X_LIBS,;t t
21533
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21534
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21535
19615
s,@XCOMPOSITE_CFLAGS@,$XCOMPOSITE_CFLAGS,;t t
21536
19616
s,@XCOMPOSITE_LIBS@,$XCOMPOSITE_LIBS,;t t
21537
19617
s,@LIBOBJS@,$LIBOBJS,;t t
21702
19782
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21703
19783
  esac
21704
19784
 
 
19785
  if test x"$ac_file" != x-; then
 
19786
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19787
echo "$as_me: creating $ac_file" >&6;}
 
19788
    rm -f "$ac_file"
 
19789
  fi
21705
19790
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21706
19791
  # use $as_me), people would be surprised to read:
21707
19792
  #    /* config.h.  Generated by config.status.  */
21740
19825
         fi;;
21741
19826
      esac
21742
19827
    done` || { (exit 1); exit 1; }
21743
 
 
21744
 
  if test x"$ac_file" != x-; then
21745
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21746
 
echo "$as_me: creating $ac_file" >&6;}
21747
 
    rm -f "$ac_file"
21748
 
  fi
21749
19828
_ACEOF
21750
19829
cat >>$CONFIG_STATUS <<_ACEOF
21751
19830
  sed "$ac_vpsub