~ubuntu-branches/ubuntu/oneiric/libxss/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-07-07 06:07:35 UTC
  • Revision ID: james.westby@ubuntu.com-20060707060735-3yk8l2yq9fgfgovk
Tags: 1:1.0.1-4ubuntu1
* Merge with Debian because of orig.tar.gz mismatch:
  - Pass LIB_MAN_SUFFIX=3 to configure, ship man pages, and fix clean
    target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
 
281
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
282
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
284
 
285
285
if test -z "$ECHO"; then
286
286
if test "X${echo_test_string+set}" != Xset; then
287
287
# find a string as large as possible, as long as the shell can cope with it
288
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
292
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
293
    then
294
294
      break
1174
1174
    else
1175
1175
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176
1176
    fi
1177
 
    cd $ac_popdir
 
1177
    cd "$ac_popdir"
1178
1178
  done
1179
1179
fi
1180
1180
 
2529
2529
  cat conftest.err >&5
2530
2530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
2531
  (exit $ac_status); } &&
2532
 
         { ac_try='test -z "$ac_c_werror_flag"
2533
 
                         || test ! -s conftest.err'
 
2532
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2534
2533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535
2534
  (eval $ac_try) 2>&5
2536
2535
  ac_status=$?
2588
2587
  cat conftest.err >&5
2589
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590
2589
  (exit $ac_status); } &&
2591
 
         { ac_try='test -z "$ac_c_werror_flag"
2592
 
                         || test ! -s conftest.err'
 
2590
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2593
2591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594
2592
  (eval $ac_try) 2>&5
2595
2593
  ac_status=$?
2705
2703
  cat conftest.err >&5
2706
2704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707
2705
  (exit $ac_status); } &&
2708
 
         { ac_try='test -z "$ac_c_werror_flag"
2709
 
                         || test ! -s conftest.err'
 
2706
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2710
2707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711
2708
  (eval $ac_try) 2>&5
2712
2709
  ac_status=$?
2760
2757
  cat conftest.err >&5
2761
2758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762
2759
  (exit $ac_status); } &&
2763
 
         { ac_try='test -z "$ac_c_werror_flag"
2764
 
                         || test ! -s conftest.err'
 
2760
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2765
2761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766
2762
  (eval $ac_try) 2>&5
2767
2763
  ac_status=$?
2806
2802
  cat conftest.err >&5
2807
2803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
2804
  (exit $ac_status); } &&
2809
 
         { ac_try='test -z "$ac_c_werror_flag"
2810
 
                         || test ! -s conftest.err'
 
2805
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2811
2806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812
2807
  (eval $ac_try) 2>&5
2813
2808
  ac_status=$?
2851
2846
  cat conftest.err >&5
2852
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853
2848
  (exit $ac_status); } &&
2854
 
         { ac_try='test -z "$ac_c_werror_flag"
2855
 
                         || test ! -s conftest.err'
 
2849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2856
2850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857
2851
  (eval $ac_try) 2>&5
2858
2852
  ac_status=$?
3209
3203
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3210
3204
# along with /bin/sed that truncates output.
3211
3205
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3212
 
  test ! -f $lt_ac_sed && break
 
3206
  test ! -f $lt_ac_sed && continue
3213
3207
  cat /dev/null > conftest.in
3214
3208
  lt_ac_count=0
3215
3209
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3234
3228
    fi
3235
3229
  done
3236
3230
done
 
3231
 
 
3232
fi
 
3233
 
3237
3234
SED=$lt_cv_path_SED
3238
 
 
3239
 
fi
3240
 
 
3241
3235
echo "$as_me:$LINENO: result: $SED" >&5
3242
3236
echo "${ECHO_T}$SED" >&6
3243
3237
 
3314
3308
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3315
3309
      lt_cv_path_LD="$ac_dir/$ac_prog"
3316
3310
      # Check to see if the program is GNU ld.  I'd rather use --version,
3317
 
      # but apparently some GNU ld's only accept -v.
 
3311
      # but apparently some variants of GNU ld only accept -v.
3318
3312
      # Break only if it was the GNU/non-GNU ld that we prefer.
3319
3313
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3320
3314
      *GNU* | *'with BFD'*)
3348
3342
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3349
3343
  echo $ECHO_N "(cached) $ECHO_C" >&6
3350
3344
else
3351
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3345
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3352
3346
case `$LD -v 2>&1 </dev/null` in
3353
3347
*GNU* | *'with BFD'*)
3354
3348
  lt_cv_prog_gnu_ld=yes
3378
3372
*) reload_flag=" $reload_flag" ;;
3379
3373
esac
3380
3374
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3375
case $host_os in
 
3376
  darwin*)
 
3377
    if test "$GCC" = yes; then
 
3378
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3379
    else
 
3380
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3381
    fi
 
3382
    ;;
 
3383
esac
3381
3384
 
3382
3385
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3383
3386
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3388
3391
  # Let the user override the test.
3389
3392
  lt_cv_path_NM="$NM"
3390
3393
else
3391
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3392
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3393
 
    IFS="$lt_save_ifs"
3394
 
    test -z "$ac_dir" && ac_dir=.
3395
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3396
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3397
 
      # Check to see if the nm accepts a BSD-compat flag.
3398
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3399
 
      #   nm: unknown option "B" ignored
3400
 
      # Tru64's nm complains that /dev/null is an invalid object file
3401
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3402
 
      */dev/null* | *'Invalid file or object type'*)
3403
 
        lt_cv_path_NM="$tmp_nm -B"
3404
 
        break
3405
 
        ;;
3406
 
      *)
3407
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3408
 
        */dev/null*)
3409
 
          lt_cv_path_NM="$tmp_nm -p"
 
3394
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3395
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3396
    lt_nm_to_check="$lt_nm_to_check nm"
 
3397
  fi
 
3398
  for lt_tmp_nm in $lt_nm_to_check; do
 
3399
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3400
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3401
      IFS="$lt_save_ifs"
 
3402
      test -z "$ac_dir" && ac_dir=.
 
3403
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3404
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3405
        # Check to see if the nm accepts a BSD-compat flag.
 
3406
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3407
        #   nm: unknown option "B" ignored
 
3408
        # Tru64's nm complains that /dev/null is an invalid object file
 
3409
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3410
        */dev/null* | *'Invalid file or object type'*)
 
3411
          lt_cv_path_NM="$tmp_nm -B"
3410
3412
          break
3411
3413
          ;;
3412
3414
        *)
3413
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3414
 
          continue # so that we can try to find one that supports BSD flags
 
3415
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3416
          */dev/null*)
 
3417
            lt_cv_path_NM="$tmp_nm -p"
 
3418
            break
 
3419
            ;;
 
3420
          *)
 
3421
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3422
            continue # so that we can try to find one that supports BSD flags
 
3423
            ;;
 
3424
          esac
3415
3425
          ;;
3416
3426
        esac
3417
 
      esac
3418
 
    fi
 
3427
      fi
 
3428
    done
 
3429
    IFS="$lt_save_ifs"
3419
3430
  done
3420
 
  IFS="$lt_save_ifs"
3421
3431
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3422
3432
fi
3423
3433
fi
3464
3474
  lt_cv_deplibs_check_method=pass_all
3465
3475
  ;;
3466
3476
 
3467
 
bsdi4*)
 
3477
bsdi[45]*)
3468
3478
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3469
3479
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3470
3480
  lt_cv_file_magic_test_file=/shlib/libc.so
3487
3497
  lt_cv_deplibs_check_method=pass_all
3488
3498
  ;;
3489
3499
 
3490
 
freebsd* | kfreebsd*-gnu)
 
3500
freebsd* | kfreebsd*-gnu | dragonfly*)
3491
3501
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3492
3502
    case $host_cpu in
3493
3503
    i*86 )
3494
3504
      # Not sure whether the presence of OpenBSD here was a mistake.
3495
3505
      # Let's accept both of them until this is cleared up.
3496
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3506
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3497
3507
      lt_cv_file_magic_cmd=/usr/bin/file
3498
3508
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3499
3509
      ;;
3509
3519
 
3510
3520
hpux10.20* | hpux11*)
3511
3521
  lt_cv_file_magic_cmd=/usr/bin/file
3512
 
  case "$host_cpu" in
 
3522
  case $host_cpu in
3513
3523
  ia64*)
3514
3524
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3515
3525
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3525
3535
  esac
3526
3536
  ;;
3527
3537
 
 
3538
interix3*)
 
3539
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3540
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3541
  ;;
 
3542
 
3528
3543
irix5* | irix6* | nonstopux*)
3529
3544
  case $LD in
3530
3545
  *-32|*"-32 ") libmagic=32-bit;;
3537
3552
 
3538
3553
# This must be Linux ELF.
3539
3554
linux*)
3540
 
  case $host_cpu in
3541
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3542
 
    lt_cv_deplibs_check_method=pass_all ;;
3543
 
  *)
3544
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3545
 
    # this will be overridden with pass_all, but let us keep it just in case
3546
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3547
 
  esac
3548
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3549
3555
  lt_cv_deplibs_check_method=pass_all
3550
3556
  ;;
3551
3557
 
3552
 
netbsd*)
 
3558
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3553
3559
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3554
3560
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3555
3561
  else
3568
3574
  ;;
3569
3575
 
3570
3576
openbsd*)
3571
 
  lt_cv_file_magic_cmd=/usr/bin/file
3572
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3573
3577
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3574
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3578
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3575
3579
  else
3576
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3580
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3577
3581
  fi
3578
3582
  ;;
3579
3583
 
3581
3585
  lt_cv_deplibs_check_method=pass_all
3582
3586
  ;;
3583
3587
 
3584
 
sco3.2v5*)
3585
 
  lt_cv_deplibs_check_method=pass_all
3586
 
  ;;
3587
 
 
3588
3588
solaris*)
3589
3589
  lt_cv_deplibs_check_method=pass_all
3590
3590
  ;;
3591
3591
 
3592
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3592
sysv4 | sysv4.3*)
3593
3593
  case $host_vendor in
3594
3594
  motorola)
3595
3595
    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]'
3610
3610
  siemens)
3611
3611
    lt_cv_deplibs_check_method=pass_all
3612
3612
    ;;
 
3613
  pc)
 
3614
    lt_cv_deplibs_check_method=pass_all
 
3615
    ;;
3613
3616
  esac
3614
3617
  ;;
3615
3618
 
3616
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3619
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3617
3620
  lt_cv_deplibs_check_method=pass_all
3618
3621
  ;;
3619
3622
esac
3631
3634
# If no C compiler was specified, use CC.
3632
3635
LTCC=${LTCC-"$CC"}
3633
3636
 
 
3637
# If no C compiler flags were specified, use CFLAGS.
 
3638
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3639
 
3634
3640
# Allow CC to be a program name with arguments.
3635
3641
compiler=$CC
3636
3642
 
3666
3672
  ;;
3667
3673
*-*-irix6*)
3668
3674
  # Find out which ABI we are using.
3669
 
  echo '#line 3669 "configure"' > conftest.$ac_ext
 
3675
  echo '#line 3675 "configure"' > conftest.$ac_ext
3670
3676
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671
3677
  (eval $ac_compile) 2>&5
3672
3678
  ac_status=$?
3709
3715
  ac_status=$?
3710
3716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711
3717
  (exit $ac_status); }; then
3712
 
    case "`/usr/bin/file conftest.o`" in
 
3718
    case `/usr/bin/file conftest.o` in
3713
3719
    *32-bit*)
3714
3720
      case $host in
3715
3721
        x86_64-*linux*)
3786
3792
  cat conftest.err >&5
3787
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
3794
  (exit $ac_status); } &&
3789
 
         { ac_try='test -z "$ac_c_werror_flag"
3790
 
                         || test ! -s conftest.err'
 
3795
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3791
3796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792
3797
  (eval $ac_try) 2>&5
3793
3798
  ac_status=$?
3822
3827
    CFLAGS="$SAVE_CFLAGS"
3823
3828
  fi
3824
3829
  ;;
 
3830
sparc*-*solaris*)
 
3831
  # Find out which ABI we are using.
 
3832
  echo 'int i;' > conftest.$ac_ext
 
3833
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3834
  (eval $ac_compile) 2>&5
 
3835
  ac_status=$?
 
3836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3837
  (exit $ac_status); }; then
 
3838
    case `/usr/bin/file conftest.o` in
 
3839
    *64-bit*)
 
3840
      case $lt_cv_prog_gnu_ld in
 
3841
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3842
      *)    LD="${LD-ld} -64" ;;
 
3843
      esac
 
3844
      ;;
 
3845
    esac
 
3846
  fi
 
3847
  rm -rf conftest*
 
3848
  ;;
 
3849
 
3825
3850
 
3826
3851
esac
3827
3852
 
4096
4121
  cat conftest.err >&5
4097
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098
4123
  (exit $ac_status); } &&
4099
 
         { ac_try='test -z "$ac_c_werror_flag"
4100
 
                         || test ! -s conftest.err'
 
4124
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4101
4125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102
4126
  (eval $ac_try) 2>&5
4103
4127
  ac_status=$?
4267
4291
  cat conftest.err >&5
4268
4292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
4293
  (exit $ac_status); } &&
4270
 
         { ac_try='test -z "$ac_c_werror_flag"
4271
 
                         || test ! -s conftest.err'
 
4294
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4272
4295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273
4296
  (eval $ac_try) 2>&5
4274
4297
  ac_status=$?
4335
4358
  cat conftest.err >&5
4336
4359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337
4360
  (exit $ac_status); } &&
4338
 
         { ac_try='test -z "$ac_c_werror_flag"
4339
 
                         || test ! -s conftest.err'
 
4361
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4340
4362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341
4363
  (eval $ac_try) 2>&5
4342
4364
  ac_status=$?
4596
4618
  cat conftest.err >&5
4597
4619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598
4620
  (exit $ac_status); } &&
4599
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4600
 
                         || test ! -s conftest.err'
 
4621
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4601
4622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602
4623
  (eval $ac_try) 2>&5
4603
4624
  ac_status=$?
4655
4676
  cat conftest.err >&5
4656
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657
4678
  (exit $ac_status); } &&
4658
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4659
 
                         || test ! -s conftest.err'
 
4679
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4660
4680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661
4681
  (eval $ac_try) 2>&5
4662
4682
  ac_status=$?
4727
4747
  cat conftest.err >&5
4728
4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
4749
  (exit $ac_status); } &&
4730
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4731
 
                         || test ! -s conftest.err'
 
4750
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4732
4751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733
4752
  (eval $ac_try) 2>&5
4734
4753
  ac_status=$?
4772
4791
  cat conftest.err >&5
4773
4792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774
4793
  (exit $ac_status); } &&
4775
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4776
 
                         || test ! -s conftest.err'
 
4794
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4777
4795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778
4796
  (eval $ac_try) 2>&5
4779
4797
  ac_status=$?
4908
4926
fi
4909
4927
 
4910
4928
 
4911
 
ac_ext=cc
 
4929
 
 
4930
 
 
4931
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4932
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4933
    (test "X$CXX" != "Xg++"))) ; then
 
4934
  ac_ext=cc
4912
4935
ac_cpp='$CXXCPP $CPPFLAGS'
4913
4936
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914
4937
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138
5161
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139
5162
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5163
 
 
5164
fi
 
5165
 
5141
5166
 
5142
5167
ac_ext=f
5143
5168
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5231
5256
 
5232
5257
 
5233
5258
# Provide some information about the compiler.
5234
 
echo "$as_me:5234:" \
 
5259
echo "$as_me:5259:" \
5235
5260
     "checking for Fortran 77 compiler version" >&5
5236
5261
ac_compiler=`set X $ac_compile; echo $2`
5237
5262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5277
5302
  cat conftest.err >&5
5278
5303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
5304
  (exit $ac_status); } &&
5280
 
         { ac_try='test -z "$ac_f77_werror_flag"
5281
 
                         || test ! -s conftest.err'
 
5305
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5282
5306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283
5307
  (eval $ac_try) 2>&5
5284
5308
  ac_status=$?
5327
5351
  cat conftest.err >&5
5328
5352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329
5353
  (exit $ac_status); } &&
5330
 
         { ac_try='test -z "$ac_f77_werror_flag"
5331
 
                         || test ! -s conftest.err'
 
5354
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5332
5355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333
5356
  (eval $ac_try) 2>&5
5334
5357
  ac_status=$?
5421
5444
    lt_cv_sys_max_cmd_len=8192;
5422
5445
    ;;
5423
5446
 
5424
 
 *)
 
5447
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5448
    # This has been around since 386BSD, at least.  Likely further.
 
5449
    if test -x /sbin/sysctl; then
 
5450
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5451
    elif test -x /usr/sbin/sysctl; then
 
5452
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5453
    else
 
5454
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5455
    fi
 
5456
    # And add a safety zone
 
5457
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5458
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5459
    ;;
 
5460
 
 
5461
  interix*)
 
5462
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5463
    lt_cv_sys_max_cmd_len=196608
 
5464
    ;;
 
5465
 
 
5466
  osf*)
 
5467
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5468
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5469
    # nice to cause kernel panics so lets avoid the loop below.
 
5470
    # First set a reasonable default.
 
5471
    lt_cv_sys_max_cmd_len=16384
 
5472
    #
 
5473
    if test -x /sbin/sysconfig; then
 
5474
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5475
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5476
      esac
 
5477
    fi
 
5478
    ;;
 
5479
  sco3.2v5*)
 
5480
    lt_cv_sys_max_cmd_len=102400
 
5481
    ;;
 
5482
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5483
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5484
    if test -n "$kargmax"; then
 
5485
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5486
    else
 
5487
      lt_cv_sys_max_cmd_len=32768
 
5488
    fi
 
5489
    ;;
 
5490
  *)
5425
5491
    # If test is not a shell built-in, we'll probably end up computing a
5426
5492
    # maximum length that is only half of the actual maximum length, but
5427
5493
    # we can't tell.
5428
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5494
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5495
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5429
5496
               = "XX$teststring") >/dev/null 2>&1 &&
5430
5497
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5431
5498
            lt_cv_sys_max_cmd_len=$new_result &&
5471
5538
# Regexp to match symbols that can be accessed directly from C.
5472
5539
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5473
5540
 
5474
 
# Transform the above into a raw symbol and a C symbol.
5475
 
symxfrm='\1 \2\3 \3'
5476
 
 
5477
5541
# Transform an extracted symbol line into a proper C declaration
5478
5542
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5479
5543
 
5495
5559
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5496
5560
  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'"
5497
5561
  ;;
 
5562
linux*)
 
5563
  if test "$host_cpu" = ia64; then
 
5564
    symcode='[ABCDGIRSTW]'
 
5565
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5566
    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'"
 
5567
  fi
 
5568
  ;;
5498
5569
irix* | nonstopux*)
5499
5570
  symcode='[BCDEGRST]'
5500
5571
  ;;
5501
5572
osf*)
5502
5573
  symcode='[BCDEGQRST]'
5503
5574
  ;;
5504
 
solaris* | sysv5*)
 
5575
solaris*)
5505
5576
  symcode='[BDRT]'
5506
5577
  ;;
 
5578
sco3.2v5*)
 
5579
  symcode='[DT]'
 
5580
  ;;
 
5581
sysv4.2uw2*)
 
5582
  symcode='[DT]'
 
5583
  ;;
 
5584
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5585
  symcode='[ABDT]'
 
5586
  ;;
5507
5587
sysv4)
5508
5588
  symcode='[DFNSTU]'
5509
5589
  ;;
5526
5606
# Try without a prefix undercore, then with it.
5527
5607
for ac_symprfx in "" "_"; do
5528
5608
 
 
5609
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5610
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5611
 
5529
5612
  # Write the raw and C identifiers.
5530
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5613
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5531
5614
 
5532
5615
  # Check to see that the pipe works correctly.
5533
5616
  pipe_works=no
5689
5772
 
5690
5773
# Sed substitution that helps us do robust quoting.  It backslashifies
5691
5774
# metacharacters that are still active within double-quoted strings.
5692
 
Xsed='sed -e s/^X//'
 
5775
Xsed='sed -e 1s/^X//'
5693
5776
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5694
5777
 
5695
5778
# Same as above, but do not quote variable references.
5709
5792
default_ofile=libtool
5710
5793
can_build_shared=yes
5711
5794
 
5712
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5795
# All known linkers require a `.a' archive for static linking (except MSVC,
5713
5796
# which needs '.lib').
5714
5797
libext=a
5715
5798
ltmain="$ac_aux_dir/ltmain.sh"
5966
6049
test -z "$AS" && AS=as
5967
6050
test -z "$CC" && CC=cc
5968
6051
test -z "$LTCC" && LTCC=$CC
 
6052
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5969
6053
test -z "$DLLTOOL" && DLLTOOL=dlltool
5970
6054
test -z "$LD" && LD=ld
5971
6055
test -z "$LN_S" && LN_S="ln -s"
5985
6069
if test -n "$RANLIB"; then
5986
6070
  case $host_os in
5987
6071
  openbsd*)
5988
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6072
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5989
6073
    ;;
5990
6074
  *)
5991
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6075
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5992
6076
    ;;
5993
6077
  esac
5994
6078
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5995
6079
fi
5996
6080
 
 
6081
for cc_temp in $compiler""; do
 
6082
  case $cc_temp in
 
6083
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6084
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6085
    \-*) ;;
 
6086
    *) break;;
 
6087
  esac
 
6088
done
 
6089
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6090
 
 
6091
 
5997
6092
# Only perform the check for file, if the check method requires it
5998
6093
case $deplibs_check_method in
5999
6094
file_magic*)
6019
6114
      if test -n "$file_magic_test_file"; then
6020
6115
        case $deplibs_check_method in
6021
6116
        "file_magic "*)
6022
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6117
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6023
6118
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024
6119
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6025
6120
            $EGREP "$file_magic_regex" > /dev/null; then
6081
6176
      if test -n "$file_magic_test_file"; then
6082
6177
        case $deplibs_check_method in
6083
6178
        "file_magic "*)
6084
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6179
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6085
6180
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6086
6181
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6087
6182
            $EGREP "$file_magic_regex" > /dev/null; then
6176
6271
# If no C compiler was specified, use CC.
6177
6272
LTCC=${LTCC-"$CC"}
6178
6273
 
 
6274
# If no C compiler flags were specified, use CFLAGS.
 
6275
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6276
 
6179
6277
# Allow CC to be a program name with arguments.
6180
6278
compiler=$CC
6181
6279
 
6182
6280
 
6183
 
#
6184
 
# Check for any special shared library compilation flags.
6185
 
#
6186
 
lt_prog_cc_shlib=
6187
 
if test "$GCC" = no; then
6188
 
  case $host_os in
6189
 
  sco3.2v5*)
6190
 
    lt_prog_cc_shlib='-belf'
6191
 
    ;;
6192
 
  esac
6193
 
fi
6194
 
if test -n "$lt_prog_cc_shlib"; then
6195
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6196
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6197
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6198
 
  else
6199
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6200
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6201
 
    lt_cv_prog_cc_can_build_shared=no
6202
 
  fi
6203
 
fi
6204
 
 
6205
 
 
6206
 
#
6207
 
# Check to make sure the static flag actually works.
6208
 
#
6209
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6210
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6211
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6212
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6213
 
else
6214
 
  lt_prog_compiler_static_works=no
6215
 
   save_LDFLAGS="$LDFLAGS"
6216
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6217
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6218
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6219
 
     # The compiler can only warn and ignore the option if not recognized
6220
 
     # So say no if there are warnings
6221
 
     if test -s conftest.err; then
6222
 
       # Append any errors to the config.log.
6223
 
       cat conftest.err 1>&5
6224
 
     else
6225
 
       lt_prog_compiler_static_works=yes
6226
 
     fi
6227
 
   fi
6228
 
   $rm conftest*
6229
 
   LDFLAGS="$save_LDFLAGS"
6230
 
 
6231
 
fi
6232
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6233
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6234
 
 
6235
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6236
 
    :
6237
 
else
6238
 
    lt_prog_compiler_static=
6239
 
fi
6240
 
 
 
6281
# save warnings/boilerplate of simple test code
 
6282
ac_outfile=conftest.$ac_objext
 
6283
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6284
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6285
_lt_compiler_boilerplate=`cat conftest.err`
 
6286
$rm conftest*
 
6287
 
 
6288
ac_outfile=conftest.$ac_objext
 
6289
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6290
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6291
_lt_linker_boilerplate=`cat conftest.err`
 
6292
$rm conftest*
6241
6293
 
6242
6294
 
6243
6295
 
6262
6314
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6263
6315
   # The option is referenced via a variable to avoid confusing sed.
6264
6316
   lt_compile=`echo "$ac_compile" | $SED \
6265
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6317
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6266
6318
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6267
6319
   -e 's:$: $lt_compiler_flag:'`
6268
 
   (eval echo "\"\$as_me:6268: $lt_compile\"" >&5)
 
6320
   (eval echo "\"\$as_me:6320: $lt_compile\"" >&5)
6269
6321
   (eval "$lt_compile" 2>conftest.err)
6270
6322
   ac_status=$?
6271
6323
   cat conftest.err >&5
6272
 
   echo "$as_me:6272: \$? = $ac_status" >&5
 
6324
   echo "$as_me:6324: \$? = $ac_status" >&5
6273
6325
   if (exit $ac_status) && test -s "$ac_outfile"; then
6274
6326
     # The compiler can only warn and ignore the option if not recognized
6275
 
     # So say no if there are warnings
6276
 
     if test ! -s conftest.err; then
 
6327
     # So say no if there are warnings other than the usual output.
 
6328
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6329
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6330
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6277
6331
       lt_cv_prog_compiler_rtti_exceptions=yes
6278
6332
     fi
6279
6333
   fi
6334
6388
      lt_prog_compiler_pic='-fno-common'
6335
6389
      ;;
6336
6390
 
 
6391
    interix3*)
 
6392
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6393
      # Instead, we relocate shared libraries at runtime.
 
6394
      ;;
 
6395
 
6337
6396
    msdosdjgpp*)
6338
6397
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6339
6398
      # on systems that don't support them.
6350
6409
    hpux*)
6351
6410
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6352
6411
      # not for PA HP-UX.
6353
 
      case "$host_cpu" in
 
6412
      case $host_cpu in
6354
6413
      hppa*64*|ia64*)
6355
6414
        # +Z the default
6356
6415
        ;;
6376
6435
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6377
6436
      fi
6378
6437
      ;;
 
6438
      darwin*)
 
6439
        # PIC is the default on this platform
 
6440
        # Common symbols not allowed in MH_DYLIB files
 
6441
       case $cc_basename in
 
6442
         xlc*)
 
6443
         lt_prog_compiler_pic='-qnocommon'
 
6444
         lt_prog_compiler_wl='-Wl,'
 
6445
         ;;
 
6446
       esac
 
6447
       ;;
6379
6448
 
6380
6449
    mingw* | pw32* | os2*)
6381
6450
      # This hack is so that the source file can tell whether it is being
6387
6456
      lt_prog_compiler_wl='-Wl,'
6388
6457
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6389
6458
      # not for PA HP-UX.
6390
 
      case "$host_cpu" in
 
6459
      case $host_cpu in
6391
6460
      hppa*64*|ia64*)
6392
6461
        # +Z the default
6393
6462
        ;;
6411
6480
      ;;
6412
6481
 
6413
6482
    linux*)
6414
 
      case $CC in
 
6483
      case $cc_basename in
6415
6484
      icc* | ecc*)
6416
6485
        lt_prog_compiler_wl='-Wl,'
6417
6486
        lt_prog_compiler_pic='-KPIC'
6418
6487
        lt_prog_compiler_static='-static'
6419
6488
        ;;
 
6489
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6490
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6491
        # which looks to be a dead project)
 
6492
        lt_prog_compiler_wl='-Wl,'
 
6493
        lt_prog_compiler_pic='-fpic'
 
6494
        lt_prog_compiler_static='-Bstatic'
 
6495
        ;;
6420
6496
      ccc*)
6421
6497
        lt_prog_compiler_wl='-Wl,'
6422
6498
        # All Alpha code is PIC.
6431
6507
      lt_prog_compiler_static='-non_shared'
6432
6508
      ;;
6433
6509
 
6434
 
    sco3.2v5*)
6435
 
      lt_prog_compiler_pic='-Kpic'
6436
 
      lt_prog_compiler_static='-dn'
6437
 
      ;;
6438
 
 
6439
6510
    solaris*)
6440
 
      lt_prog_compiler_wl='-Wl,'
6441
6511
      lt_prog_compiler_pic='-KPIC'
6442
6512
      lt_prog_compiler_static='-Bstatic'
 
6513
      case $cc_basename in
 
6514
      f77* | f90* | f95*)
 
6515
        lt_prog_compiler_wl='-Qoption ld ';;
 
6516
      *)
 
6517
        lt_prog_compiler_wl='-Wl,';;
 
6518
      esac
6443
6519
      ;;
6444
6520
 
6445
6521
    sunos4*)
6448
6524
      lt_prog_compiler_static='-Bstatic'
6449
6525
      ;;
6450
6526
 
6451
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6527
    sysv4 | sysv4.2uw2* | sysv4.3*)
6452
6528
      lt_prog_compiler_wl='-Wl,'
6453
6529
      lt_prog_compiler_pic='-KPIC'
6454
6530
      lt_prog_compiler_static='-Bstatic'
6461
6537
      fi
6462
6538
      ;;
6463
6539
 
 
6540
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6541
      lt_prog_compiler_wl='-Wl,'
 
6542
      lt_prog_compiler_pic='-KPIC'
 
6543
      lt_prog_compiler_static='-Bstatic'
 
6544
      ;;
 
6545
 
 
6546
    unicos*)
 
6547
      lt_prog_compiler_wl='-Wl,'
 
6548
      lt_prog_compiler_can_build_shared=no
 
6549
      ;;
 
6550
 
6464
6551
    uts4*)
6465
6552
      lt_prog_compiler_pic='-pic'
6466
6553
      lt_prog_compiler_static='-Bstatic'
6495
6582
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6496
6583
   # The option is referenced via a variable to avoid confusing sed.
6497
6584
   lt_compile=`echo "$ac_compile" | $SED \
6498
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6585
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6499
6586
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6500
6587
   -e 's:$: $lt_compiler_flag:'`
6501
 
   (eval echo "\"\$as_me:6501: $lt_compile\"" >&5)
 
6588
   (eval echo "\"\$as_me:6588: $lt_compile\"" >&5)
6502
6589
   (eval "$lt_compile" 2>conftest.err)
6503
6590
   ac_status=$?
6504
6591
   cat conftest.err >&5
6505
 
   echo "$as_me:6505: \$? = $ac_status" >&5
 
6592
   echo "$as_me:6592: \$? = $ac_status" >&5
6506
6593
   if (exit $ac_status) && test -s "$ac_outfile"; then
6507
6594
     # The compiler can only warn and ignore the option if not recognized
6508
 
     # So say no if there are warnings
6509
 
     if test ! -s conftest.err; then
 
6595
     # So say no if there are warnings other than the usual output.
 
6596
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6597
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6598
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6510
6599
       lt_prog_compiler_pic_works=yes
6511
6600
     fi
6512
6601
   fi
6527
6616
fi
6528
6617
 
6529
6618
fi
6530
 
case "$host_os" in
 
6619
case $host_os in
6531
6620
  # For platforms which do not support PIC, -DPIC is meaningless:
6532
6621
  *djgpp*)
6533
6622
    lt_prog_compiler_pic=
6537
6626
    ;;
6538
6627
esac
6539
6628
 
 
6629
#
 
6630
# Check to make sure the static flag actually works.
 
6631
#
 
6632
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6633
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6634
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6635
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6637
else
 
6638
  lt_prog_compiler_static_works=no
 
6639
   save_LDFLAGS="$LDFLAGS"
 
6640
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6641
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6642
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6643
     # The linker can only warn and ignore the option if not recognized
 
6644
     # So say no if there are warnings
 
6645
     if test -s conftest.err; then
 
6646
       # Append any errors to the config.log.
 
6647
       cat conftest.err 1>&5
 
6648
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6649
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6650
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6651
         lt_prog_compiler_static_works=yes
 
6652
       fi
 
6653
     else
 
6654
       lt_prog_compiler_static_works=yes
 
6655
     fi
 
6656
   fi
 
6657
   $rm conftest*
 
6658
   LDFLAGS="$save_LDFLAGS"
 
6659
 
 
6660
fi
 
6661
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6662
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6663
 
 
6664
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6665
    :
 
6666
else
 
6667
    lt_prog_compiler_static=
 
6668
fi
 
6669
 
 
6670
 
6540
6671
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6541
6672
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6542
6673
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6555
6686
   # Note that $ac_compile itself does not contain backslashes and begins
6556
6687
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6557
6688
   lt_compile=`echo "$ac_compile" | $SED \
6558
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6689
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6559
6690
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6560
6691
   -e 's:$: $lt_compiler_flag:'`
6561
 
   (eval echo "\"\$as_me:6561: $lt_compile\"" >&5)
 
6692
   (eval echo "\"\$as_me:6692: $lt_compile\"" >&5)
6562
6693
   (eval "$lt_compile" 2>out/conftest.err)
6563
6694
   ac_status=$?
6564
6695
   cat out/conftest.err >&5
6565
 
   echo "$as_me:6565: \$? = $ac_status" >&5
 
6696
   echo "$as_me:6696: \$? = $ac_status" >&5
6566
6697
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6567
6698
   then
6568
6699
     # The compiler can only warn and ignore the option if not recognized
6569
6700
     # So say no if there are warnings
6570
 
     if test ! -s out/conftest.err; then
 
6701
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6702
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6703
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6571
6704
       lt_cv_prog_compiler_c_o=yes
6572
6705
     fi
6573
6706
   fi
6574
 
   chmod u+w .
 
6707
   chmod u+w . 2>&5
6575
6708
   $rm conftest*
6576
6709
   # SGI C++ compiler will create directory out/ii_files/ for
6577
6710
   # template instantiation
6647
6780
  # rely on this symbol name, it's probably fine to never include it in
6648
6781
  # preloaded symbol tables.
6649
6782
  extract_expsyms_cmds=
 
6783
  # Just being paranoid about ensuring that cc_basename is set.
 
6784
  for cc_temp in $compiler""; do
 
6785
  case $cc_temp in
 
6786
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6787
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6788
    \-*) ;;
 
6789
    *) break;;
 
6790
  esac
 
6791
done
 
6792
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6650
6793
 
6651
6794
  case $host_os in
6652
6795
  cygwin* | mingw* | pw32*)
6657
6800
      with_gnu_ld=no
6658
6801
    fi
6659
6802
    ;;
 
6803
  interix*)
 
6804
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6805
    with_gnu_ld=yes
 
6806
    ;;
6660
6807
  openbsd*)
6661
6808
    with_gnu_ld=no
6662
6809
    ;;
6667
6814
    # If archive_cmds runs LD, not CC, wlarc should be empty
6668
6815
    wlarc='${wl}'
6669
6816
 
 
6817
    # Set some defaults for GNU ld with shared library support. These
 
6818
    # are reset later if shared libraries are not supported. Putting them
 
6819
    # here allows them to be overridden if necessary.
 
6820
    runpath_var=LD_RUN_PATH
 
6821
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6822
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6823
    # ancient GNU ld didn't support --whole-archive et. al.
 
6824
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6825
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6826
      else
 
6827
        whole_archive_flag_spec=
 
6828
    fi
 
6829
    supports_anon_versioning=no
 
6830
    case `$LD -v 2>/dev/null` in
 
6831
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6832
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6833
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6834
      *\ 2.11.*) ;; # other 2.11 versions
 
6835
      *) supports_anon_versioning=yes ;;
 
6836
    esac
 
6837
 
6670
6838
    # See if GNU ld supports shared libraries.
6671
6839
    case $host_os in
6672
6840
    aix3* | aix4* | aix5*)
6717
6885
      allow_undefined_flag=unsupported
6718
6886
      always_export_symbols=no
6719
6887
      enable_shared_with_static_runtimes=yes
6720
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6888
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6721
6889
 
6722
6890
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6723
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6891
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6724
6892
        # If the export-symbols file already is a .def file (1st line
6725
6893
        # is EXPORTS), use it as is; otherwise, prepend...
6726
6894
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6729
6897
          echo EXPORTS > $output_objdir/$soname.def;
6730
6898
          cat $export_symbols >> $output_objdir/$soname.def;
6731
6899
        fi~
6732
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6733
 
      else
6734
 
        ld_shlibs=no
6735
 
      fi
6736
 
      ;;
6737
 
 
6738
 
    netbsd*)
 
6900
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6901
      else
 
6902
        ld_shlibs=no
 
6903
      fi
 
6904
      ;;
 
6905
 
 
6906
    interix3*)
 
6907
      hardcode_direct=no
 
6908
      hardcode_shlibpath_var=no
 
6909
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6910
      export_dynamic_flag_spec='${wl}-E'
 
6911
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6912
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6913
      # default) and relocated if they conflict, which is a slow very memory
 
6914
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6915
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6916
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6917
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6918
      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'
 
6919
      ;;
 
6920
 
 
6921
    linux*)
 
6922
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6923
        tmp_addflag=
 
6924
        case $cc_basename,$host_cpu in
 
6925
        pgcc*)                          # Portland Group C compiler
 
6926
          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'
 
6927
          tmp_addflag=' $pic_flag'
 
6928
          ;;
 
6929
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6930
          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'
 
6931
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6932
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6933
          tmp_addflag=' -i_dynamic' ;;
 
6934
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6935
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6936
        ifc* | ifort*)                  # Intel Fortran compiler
 
6937
          tmp_addflag=' -nofor_main' ;;
 
6938
        esac
 
6939
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6940
 
 
6941
        if test $supports_anon_versioning = yes; then
 
6942
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6943
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6944
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6945
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6946
        fi
 
6947
        link_all_deplibs=no
 
6948
      else
 
6949
        ld_shlibs=no
 
6950
      fi
 
6951
      ;;
 
6952
 
 
6953
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6739
6954
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6740
6955
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6741
6956
        wlarc=
6745
6960
      fi
6746
6961
      ;;
6747
6962
 
6748
 
    solaris* | sysv5*)
 
6963
    solaris*)
6749
6964
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6750
6965
        ld_shlibs=no
6751
6966
        cat <<EOF 1>&2
6766
6981
      fi
6767
6982
      ;;
6768
6983
 
 
6984
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6985
      case `$LD -v 2>&1` in
 
6986
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
6987
        ld_shlibs=no
 
6988
        cat <<_LT_EOF 1>&2
 
6989
 
 
6990
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6991
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6992
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6993
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6994
*** your PATH or compiler configuration so that the native linker is
 
6995
*** used, and then restart.
 
6996
 
 
6997
_LT_EOF
 
6998
        ;;
 
6999
        *)
 
7000
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7001
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7002
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7003
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7004
          else
 
7005
            ld_shlibs=no
 
7006
          fi
 
7007
        ;;
 
7008
      esac
 
7009
      ;;
 
7010
 
6769
7011
    sunos4*)
6770
7012
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6771
7013
      wlarc=
6773
7015
      hardcode_shlibpath_var=no
6774
7016
      ;;
6775
7017
 
6776
 
  linux*)
6777
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6778
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779
 
        archive_cmds="$tmp_archive_cmds"
6780
 
      supports_anon_versioning=no
6781
 
      case `$LD -v 2>/dev/null` in
6782
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6783
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6784
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6785
 
        *\ 2.11.*) ;; # other 2.11 versions
6786
 
        *) supports_anon_versioning=yes ;;
6787
 
      esac
6788
 
      if test $supports_anon_versioning = yes; then
6789
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6790
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6791
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6792
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6793
 
      else
6794
 
        archive_expsym_cmds="$tmp_archive_cmds"
6795
 
      fi
6796
 
    else
6797
 
      ld_shlibs=no
6798
 
    fi
6799
 
    ;;
6800
 
 
6801
7018
    *)
6802
7019
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6803
7020
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6808
7025
      ;;
6809
7026
    esac
6810
7027
 
6811
 
    if test "$ld_shlibs" = yes; then
6812
 
      runpath_var=LD_RUN_PATH
6813
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6814
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6815
 
      # ancient GNU ld didn't support --whole-archive et. al.
6816
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6817
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6818
 
      else
6819
 
        whole_archive_flag_spec=
6820
 
      fi
 
7028
    if test "$ld_shlibs" = no; then
 
7029
      runpath_var=
 
7030
      hardcode_libdir_flag_spec=
 
7031
      export_dynamic_flag_spec=
 
7032
      whole_archive_flag_spec=
6821
7033
    fi
6822
7034
  else
6823
7035
    # PORTME fill in a description of your system's linker (not GNU ld)
6829
7041
      # Note: this linker hardcodes the directories in LIBPATH if there
6830
7042
      # are no directories specified by -L.
6831
7043
      hardcode_minus_L=yes
6832
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7044
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6833
7045
        # Neither direct hardcoding nor static linking is supported with a
6834
7046
        # broken collect2.
6835
7047
        hardcode_direct=unsupported
6863
7075
            break
6864
7076
          fi
6865
7077
          done
 
7078
          ;;
6866
7079
        esac
6867
7080
 
6868
7081
        exp_sym_flag='-bexport'
6881
7094
      link_all_deplibs=yes
6882
7095
 
6883
7096
      if test "$GCC" = yes; then
6884
 
        case $host_os in aix4.012|aix4.012.*)
 
7097
        case $host_os in aix4.[012]|aix4.[012].*)
6885
7098
        # We only want to do this on AIX 4.2 and lower, the check
6886
7099
        # below for broken collect2 doesn't work under 4.3+
6887
7100
          collect2name=`${CC} -print-prog-name=collect2`
6900
7113
          hardcode_libdir_flag_spec='-L$libdir'
6901
7114
          hardcode_libdir_separator=
6902
7115
          fi
 
7116
          ;;
6903
7117
        esac
6904
7118
        shared_flag='-shared'
 
7119
        if test "$aix_use_runtimelinking" = yes; then
 
7120
          shared_flag="$shared_flag "'${wl}-G'
 
7121
        fi
6905
7122
      else
6906
7123
        # not using gcc
6907
7124
        if test "$host_cpu" = ia64; then
6909
7126
        # chokes on -Wl,-G. The following line is correct:
6910
7127
          shared_flag='-G'
6911
7128
        else
6912
 
        if test "$aix_use_runtimelinking" = yes; then
 
7129
          if test "$aix_use_runtimelinking" = yes; then
6913
7130
            shared_flag='${wl}-G'
6914
7131
          else
6915
7132
            shared_flag='${wl}-bM:SRE'
6916
 
        fi
 
7133
          fi
6917
7134
        fi
6918
7135
      fi
6919
7136
 
6949
7166
  cat conftest.err >&5
6950
7167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951
7168
  (exit $ac_status); } &&
6952
 
         { ac_try='test -z "$ac_c_werror_flag"
6953
 
                         || test ! -s conftest.err'
 
7169
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6954
7170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955
7171
  (eval $ac_try) 2>&5
6956
7172
  ac_status=$?
6978
7194
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6979
7195
 
6980
7196
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6981
 
        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"
 
7197
        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"
6982
7198
       else
6983
7199
        if test "$host_cpu" = ia64; then
6984
7200
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6985
7201
          allow_undefined_flag="-z nodefs"
6986
 
          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"
 
7202
          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"
6987
7203
        else
6988
7204
         # Determine the default libpath from the value encoded in an empty executable.
6989
7205
         cat >conftest.$ac_ext <<_ACEOF
7010
7226
  cat conftest.err >&5
7011
7227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
7228
  (exit $ac_status); } &&
7013
 
         { ac_try='test -z "$ac_c_werror_flag"
7014
 
                         || test ! -s conftest.err'
 
7229
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7015
7230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016
7231
  (eval $ac_try) 2>&5
7017
7232
  ac_status=$?
7043
7258
          # -berok will link without error, but may produce a broken library.
7044
7259
          no_undefined_flag=' ${wl}-bernotok'
7045
7260
          allow_undefined_flag=' ${wl}-berok'
7046
 
          # -bexpall does not export symbols beginning with underscore (_)
7047
 
          always_export_symbols=yes
7048
7261
          # Exported symbols can be pulled into shared objects from archives
7049
 
          whole_archive_flag_spec=' '
 
7262
          whole_archive_flag_spec='$convenience'
7050
7263
          archive_cmds_need_lc=yes
7051
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7052
 
          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'
 
7264
          # This is similar to how AIX traditionally builds its shared libraries.
 
7265
          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'
7053
7266
        fi
7054
7267
      fi
7055
7268
      ;;
7062
7275
      ld_shlibs=no
7063
7276
      ;;
7064
7277
 
7065
 
    bsdi4*)
 
7278
    bsdi[45]*)
7066
7279
      export_dynamic_flag_spec=-rdynamic
7067
7280
      ;;
7068
7281
 
7088
7301
      ;;
7089
7302
 
7090
7303
    darwin* | rhapsody*)
7091
 
    if test "$GXX" = yes ; then
 
7304
      case $host_os in
 
7305
        rhapsody* | darwin1.[012])
 
7306
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7307
         ;;
 
7308
       *) # Darwin 1.3 on
 
7309
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7310
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7311
         else
 
7312
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7313
             10.[012])
 
7314
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7315
               ;;
 
7316
             10.*)
 
7317
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7318
               ;;
 
7319
           esac
 
7320
         fi
 
7321
         ;;
 
7322
      esac
7092
7323
      archive_cmds_need_lc=no
7093
 
      case "$host_os" in
7094
 
      rhapsody* | darwin1.[012])
7095
 
        allow_undefined_flag='-undefined suppress'
7096
 
        ;;
7097
 
      *) # Darwin 1.3 on
7098
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7099
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7100
 
      else
7101
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7102
 
          10.[012])
7103
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7104
 
            ;;
7105
 
          10.*)
7106
 
            allow_undefined_flag='-undefined dynamic_lookup'
7107
 
            ;;
7108
 
        esac
7109
 
      fi
7110
 
        ;;
7111
 
      esac
7112
 
        lt_int_apple_cc_single_mod=no
7113
 
        output_verbose_link_cmd='echo'
7114
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7115
 
          lt_int_apple_cc_single_mod=yes
7116
 
        fi
7117
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7118
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7119
 
        else
7120
 
        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'
7121
 
      fi
7122
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7123
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7124
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7125
 
          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}'
7126
 
        else
7127
 
          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}'
7128
 
        fi
7129
 
          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}'
7130
7324
      hardcode_direct=no
7131
7325
      hardcode_automatic=yes
7132
7326
      hardcode_shlibpath_var=unsupported
7133
 
      whole_archive_flag_spec='-all_load $convenience'
 
7327
      whole_archive_flag_spec=''
7134
7328
      link_all_deplibs=yes
 
7329
    if test "$GCC" = yes ; then
 
7330
        output_verbose_link_cmd='echo'
 
7331
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7332
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7333
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7334
      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}'
 
7335
      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}'
7135
7336
    else
7136
 
      ld_shlibs=no
 
7337
      case $cc_basename in
 
7338
        xlc*)
 
7339
         output_verbose_link_cmd='echo'
 
7340
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7341
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7342
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7343
         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}'
 
7344
          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}'
 
7345
          ;;
 
7346
       *)
 
7347
         ld_shlibs=no
 
7348
          ;;
 
7349
      esac
7137
7350
    fi
7138
7351
      ;;
7139
7352
 
7167
7380
      ;;
7168
7381
 
7169
7382
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7170
 
    freebsd* | kfreebsd*-gnu)
7171
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7172
 
      hardcode_libdir_flag_spec='-R$libdir'
7173
 
      hardcode_direct=yes
7174
 
      hardcode_shlibpath_var=no
 
7383
    freebsd* | dragonfly*)
 
7384
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7385
      hardcode_libdir_flag_spec='-R$libdir'
 
7386
      hardcode_direct=yes
 
7387
      hardcode_shlibpath_var=no
 
7388
      ;;
 
7389
 
 
7390
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
7391
    kfreebsd*-gnu)
 
7392
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7393
      hardcode_libdir_flag_spec='-R$libdir'
 
7394
      hardcode_direct=yes
 
7395
      hardcode_shlibpath_var=no
 
7396
      link_all_deplibs=no
7175
7397
      ;;
7176
7398
 
7177
7399
    hpux9*)
7190
7412
      export_dynamic_flag_spec='${wl}-E'
7191
7413
      ;;
7192
7414
 
7193
 
    hpux10* | hpux11*)
7194
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7195
 
        case "$host_cpu" in
7196
 
        hppa*64*|ia64*)
 
7415
    hpux10*)
 
7416
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7417
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7418
      else
 
7419
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7420
      fi
 
7421
      if test "$with_gnu_ld" = no; then
 
7422
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7423
        hardcode_libdir_separator=:
 
7424
 
 
7425
        hardcode_direct=yes
 
7426
        export_dynamic_flag_spec='${wl}-E'
 
7427
 
 
7428
        # hardcode_minus_L: Not really in the search PATH,
 
7429
        # but as the default location of the library.
 
7430
        hardcode_minus_L=yes
 
7431
      fi
 
7432
      ;;
 
7433
 
 
7434
    hpux11*)
 
7435
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7436
        case $host_cpu in
 
7437
        hppa*64*)
7197
7438
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7198
7439
          ;;
 
7440
        ia64*)
 
7441
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7442
          ;;
7199
7443
        *)
7200
7444
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7201
7445
          ;;
7202
7446
        esac
7203
7447
      else
7204
 
        case "$host_cpu" in
7205
 
        hppa*64*|ia64*)
7206
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7448
        case $host_cpu in
 
7449
        hppa*64*)
 
7450
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7451
          ;;
 
7452
        ia64*)
 
7453
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7207
7454
          ;;
7208
7455
        *)
7209
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7456
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7210
7457
          ;;
7211
7458
        esac
7212
7459
      fi
7213
7460
      if test "$with_gnu_ld" = no; then
7214
 
        case "$host_cpu" in
7215
 
        hppa*64*)
7216
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7461
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7462
        hardcode_libdir_separator=:
 
7463
 
 
7464
        case $host_cpu in
 
7465
        hppa*64*|ia64*)
7217
7466
          hardcode_libdir_flag_spec_ld='+b $libdir'
7218
 
          hardcode_libdir_separator=:
7219
 
          hardcode_direct=no
7220
 
          hardcode_shlibpath_var=no
7221
 
          ;;
7222
 
        ia64*)
7223
 
          hardcode_libdir_flag_spec='-L$libdir'
7224
 
          hardcode_direct=no
7225
 
          hardcode_shlibpath_var=no
7226
 
 
7227
 
          # hardcode_minus_L: Not really in the search PATH,
7228
 
          # but as the default location of the library.
7229
 
          hardcode_minus_L=yes
 
7467
          hardcode_direct=no
 
7468
          hardcode_shlibpath_var=no
7230
7469
          ;;
7231
7470
        *)
7232
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7233
 
          hardcode_libdir_separator=:
7234
7471
          hardcode_direct=yes
7235
7472
          export_dynamic_flag_spec='${wl}-E'
7236
7473
 
7254
7491
      link_all_deplibs=yes
7255
7492
      ;;
7256
7493
 
7257
 
    netbsd*)
 
7494
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7258
7495
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7259
7496
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7260
7497
      else
7278
7515
      hardcode_shlibpath_var=no
7279
7516
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7280
7517
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7518
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7281
7519
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7282
7520
        export_dynamic_flag_spec='${wl}-E'
7283
7521
      else
7323
7561
        allow_undefined_flag=' -expect_unresolved \*'
7324
7562
        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'
7325
7563
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7326
 
        $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'
 
7564
        $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'
7327
7565
 
7328
7566
        # Both c and cxx compiler support -rpath directly
7329
7567
        hardcode_libdir_flag_spec='-rpath $libdir'
7331
7569
      hardcode_libdir_separator=:
7332
7570
      ;;
7333
7571
 
7334
 
    sco3.2v5*)
7335
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336
 
      hardcode_shlibpath_var=no
7337
 
      export_dynamic_flag_spec='${wl}-Bexport'
7338
 
      runpath_var=LD_RUN_PATH
7339
 
      hardcode_runpath_var=yes
7340
 
      ;;
7341
 
 
7342
7572
    solaris*)
7343
7573
      no_undefined_flag=' -z text'
7344
7574
      if test "$GCC" = yes; then
 
7575
        wlarc='${wl}'
7345
7576
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7346
7577
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7347
7578
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7348
7579
      else
 
7580
        wlarc=''
7349
7581
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350
7582
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7351
7583
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7354
7586
      hardcode_shlibpath_var=no
7355
7587
      case $host_os in
7356
7588
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7357
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7358
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7589
      *)
 
7590
        # The compiler driver will combine linker options so we
 
7591
        # cannot just pass the convience library names through
 
7592
        # without $wl, iff we do not link with $LD.
 
7593
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7594
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7595
        case $wlarc in
 
7596
        '')
 
7597
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7598
        *)
 
7599
          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' ;;
 
7600
        esac ;;
7359
7601
      esac
7360
7602
      link_all_deplibs=yes
7361
7603
      ;;
7412
7654
      fi
7413
7655
      ;;
7414
7656
 
7415
 
    sysv4.2uw2*)
7416
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7417
 
      hardcode_direct=yes
7418
 
      hardcode_minus_L=no
7419
 
      hardcode_shlibpath_var=no
7420
 
      hardcode_runpath_var=yes
7421
 
      runpath_var=LD_RUN_PATH
7422
 
      ;;
7423
 
 
7424
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7425
 
      no_undefined_flag='${wl}-z ${wl}text'
7426
 
      if test "$GCC" = yes; then
7427
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7428
 
      else
7429
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7430
 
      fi
7431
 
      runpath_var='LD_RUN_PATH'
7432
 
      hardcode_shlibpath_var=no
7433
 
      ;;
7434
 
 
7435
 
    sysv5*)
7436
 
      no_undefined_flag=' -z text'
7437
 
      # $CC -shared without GNU ld will not create a library from C++
7438
 
      # object files and a static libstdc++, better avoid it by now
7439
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7441
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7442
 
      hardcode_libdir_flag_spec=
7443
 
      hardcode_shlibpath_var=no
7444
 
      runpath_var='LD_RUN_PATH'
 
7657
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7658
      no_undefined_flag='${wl}-z,text'
 
7659
      archive_cmds_need_lc=no
 
7660
      hardcode_shlibpath_var=no
 
7661
      runpath_var='LD_RUN_PATH'
 
7662
 
 
7663
      if test "$GCC" = yes; then
 
7664
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7665
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7666
      else
 
7667
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7668
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7669
      fi
 
7670
      ;;
 
7671
 
 
7672
    sysv5* | sco3.2v5* | sco5v6*)
 
7673
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7674
      # link with -lc, and that would cause any symbols used from libc to
 
7675
      # always be unresolved, which means just about no library would
 
7676
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7677
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7678
      # as -z defs.
 
7679
      no_undefined_flag='${wl}-z,text'
 
7680
      allow_undefined_flag='${wl}-z,nodefs'
 
7681
      archive_cmds_need_lc=no
 
7682
      hardcode_shlibpath_var=no
 
7683
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7684
      hardcode_libdir_separator=':'
 
7685
      link_all_deplibs=yes
 
7686
      export_dynamic_flag_spec='${wl}-Bexport'
 
7687
      runpath_var='LD_RUN_PATH'
 
7688
 
 
7689
      if test "$GCC" = yes; then
 
7690
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7691
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7692
      else
 
7693
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7694
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7695
      fi
7445
7696
      ;;
7446
7697
 
7447
7698
    uts4*)
7460
7711
echo "${ECHO_T}$ld_shlibs" >&6
7461
7712
test "$ld_shlibs" = no && can_build_shared=no
7462
7713
 
7463
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7464
 
if test "$GCC" = yes; then
7465
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7466
 
fi
7467
 
 
7468
7714
#
7469
7715
# Do we need to explicitly link libc?
7470
7716
#
7497
7743
        libobjs=conftest.$ac_objext
7498
7744
        deplibs=
7499
7745
        wl=$lt_prog_compiler_wl
 
7746
        pic_flag=$lt_prog_compiler_pic
7500
7747
        compiler_flags=-v
7501
7748
        linker_flags=-v
7502
7749
        verstring=
7629
7876
  shlibpath_var=LIBRARY_PATH
7630
7877
  ;;
7631
7878
 
7632
 
bsdi4*)
 
7879
bsdi[45]*)
7633
7880
  version_type=linux
7634
7881
  need_version=no
7635
7882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7657
7904
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7658
7905
      dldir=$destdir/`dirname \$dlpath`~
7659
7906
      test -d \$dldir || mkdir -p \$dldir~
7660
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7907
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7908
      chmod a+x \$dldir/$dlname'
7661
7909
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7662
7910
      dlpath=$dir/\$dldll~
7663
7911
       $rm \$dlpath'
7687
7935
      ;;
7688
7936
    pw32*)
7689
7937
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7690
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7938
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691
7939
      ;;
7692
7940
    esac
7693
7941
    ;;
7710
7958
  soname_spec='${libname}${release}${major}$shared_ext'
7711
7959
  shlibpath_overrides_runpath=yes
7712
7960
  shlibpath_var=DYLD_LIBRARY_PATH
7713
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7961
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7714
7962
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7715
7963
  if test "$GCC" = yes; then
7716
7964
    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"`
7745
7993
  dynamic_linker='GNU ld.so'
7746
7994
  ;;
7747
7995
 
7748
 
freebsd*)
7749
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7996
freebsd* | dragonfly*)
 
7997
  # DragonFly does not have aout.  When/if they implement a new
 
7998
  # versioning mechanism, adjust this.
 
7999
  if test -x /usr/bin/objformat; then
 
8000
    objformat=`/usr/bin/objformat`
 
8001
  else
 
8002
    case $host_os in
 
8003
    freebsd[123]*) objformat=aout ;;
 
8004
    *) objformat=elf ;;
 
8005
    esac
 
8006
  fi
7750
8007
  version_type=freebsd-$objformat
7751
8008
  case $version_type in
7752
8009
    freebsd-elf*)
7764
8021
  freebsd2*)
7765
8022
    shlibpath_overrides_runpath=yes
7766
8023
    ;;
7767
 
  freebsd3.01* | freebsdelf3.01*)
 
8024
  freebsd3.[01]* | freebsdelf3.[01]*)
7768
8025
    shlibpath_overrides_runpath=yes
7769
8026
    hardcode_into_libs=yes
7770
8027
    ;;
7771
 
  *) # from 3.2 on
 
8028
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8029
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7772
8030
    shlibpath_overrides_runpath=no
7773
8031
    hardcode_into_libs=yes
7774
8032
    ;;
 
8033
  freebsd*) # from 4.6 on
 
8034
    shlibpath_overrides_runpath=yes
 
8035
    hardcode_into_libs=yes
 
8036
    ;;
7775
8037
  esac
7776
8038
  ;;
7777
8039
 
7791
8053
  version_type=sunos
7792
8054
  need_lib_prefix=no
7793
8055
  need_version=no
7794
 
  case "$host_cpu" in
 
8056
  case $host_cpu in
7795
8057
  ia64*)
7796
8058
    shrext_cmds='.so'
7797
8059
    hardcode_into_libs=yes
7831
8093
  postinstall_cmds='chmod 555 $lib'
7832
8094
  ;;
7833
8095
 
 
8096
interix3*)
 
8097
  version_type=linux
 
8098
  need_lib_prefix=no
 
8099
  need_version=no
 
8100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8101
  soname_spec='${libname}${release}${shared_ext}$major'
 
8102
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8103
  shlibpath_var=LD_LIBRARY_PATH
 
8104
  shlibpath_overrides_runpath=no
 
8105
  hardcode_into_libs=yes
 
8106
  ;;
 
8107
 
7834
8108
irix5* | irix6* | nonstopux*)
7835
8109
  case $host_os in
7836
8110
    nonstopux*) version_type=nonstopux ;;
7888
8162
  # before this can be enabled.
7889
8163
  hardcode_into_libs=yes
7890
8164
 
7891
 
  # find out which ABI we are using
7892
 
  libsuff=
7893
 
  case "$host_cpu" in
7894
 
  x86_64*|s390x*|powerpc64*)
7895
 
    echo '#line 7895 "configure"' > conftest.$ac_ext
7896
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897
 
  (eval $ac_compile) 2>&5
7898
 
  ac_status=$?
7899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900
 
  (exit $ac_status); }; then
7901
 
      case `/usr/bin/file conftest.$ac_objext` in
7902
 
      *64-bit*)
7903
 
        libsuff=64
7904
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7905
 
        ;;
7906
 
      esac
7907
 
    fi
7908
 
    rm -rf conftest*
7909
 
    ;;
7910
 
  esac
7911
 
 
7912
8165
  # Append ld.so.conf contents to the search path
7913
8166
  if test -f /etc/ld.so.conf; then
7914
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7915
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8167
    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' ' '`
 
8168
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7916
8169
  fi
7917
8170
 
7918
8171
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7924
8177
  dynamic_linker='GNU/Linux ld.so'
7925
8178
  ;;
7926
8179
 
 
8180
netbsdelf*-gnu)
 
8181
  version_type=linux
 
8182
  need_lib_prefix=no
 
8183
  need_version=no
 
8184
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8185
  soname_spec='${libname}${release}${shared_ext}$major'
 
8186
  shlibpath_var=LD_LIBRARY_PATH
 
8187
  shlibpath_overrides_runpath=no
 
8188
  hardcode_into_libs=yes
 
8189
  dynamic_linker='NetBSD ld.elf_so'
 
8190
  ;;
 
8191
 
7927
8192
knetbsd*-gnu)
7928
8193
  version_type=linux
7929
8194
  need_lib_prefix=no
7973
8238
 
7974
8239
openbsd*)
7975
8240
  version_type=sunos
 
8241
  sys_lib_dlsearch_path_spec="/usr/lib"
7976
8242
  need_lib_prefix=no
7977
 
  need_version=yes
 
8243
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8244
  case $host_os in
 
8245
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8246
    *)                         need_version=no  ;;
 
8247
  esac
7978
8248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7979
8249
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7980
8250
  shlibpath_var=LD_LIBRARY_PATH
8012
8282
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8013
8283
  ;;
8014
8284
 
8015
 
sco3.2v5*)
8016
 
  version_type=osf
8017
 
  soname_spec='${libname}${release}${shared_ext}$major'
8018
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019
 
  shlibpath_var=LD_LIBRARY_PATH
8020
 
  ;;
8021
 
 
8022
8285
solaris*)
8023
8286
  version_type=linux
8024
8287
  need_lib_prefix=no
8044
8307
  need_version=yes
8045
8308
  ;;
8046
8309
 
8047
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8310
sysv4 | sysv4.3*)
8048
8311
  version_type=linux
8049
8312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050
8313
  soname_spec='${libname}${release}${shared_ext}$major'
8077
8340
  fi
8078
8341
  ;;
8079
8342
 
 
8343
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8344
  version_type=freebsd-elf
 
8345
  need_lib_prefix=no
 
8346
  need_version=no
 
8347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8348
  soname_spec='${libname}${release}${shared_ext}$major'
 
8349
  shlibpath_var=LD_LIBRARY_PATH
 
8350
  hardcode_into_libs=yes
 
8351
  if test "$with_gnu_ld" = yes; then
 
8352
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8353
    shlibpath_overrides_runpath=no
 
8354
  else
 
8355
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8356
    shlibpath_overrides_runpath=yes
 
8357
    case $host_os in
 
8358
      sco3.2v5*)
 
8359
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8360
        ;;
 
8361
    esac
 
8362
  fi
 
8363
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8364
  ;;
 
8365
 
8080
8366
uts4*)
8081
8367
  version_type=linux
8082
8368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092
8378
echo "${ECHO_T}$dynamic_linker" >&6
8093
8379
test "$dynamic_linker" = no && can_build_shared=no
8094
8380
 
 
8381
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8382
if test "$GCC" = yes; then
 
8383
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8384
fi
 
8385
 
8095
8386
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8096
8387
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8097
8388
hardcode_action=
8098
8389
if test -n "$hardcode_libdir_flag_spec" || \
8099
 
   test -n "$runpath_var " || \
8100
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8390
   test -n "$runpath_var" || \
 
8391
   test "X$hardcode_automatic" = "Xyes" ; then
8101
8392
 
8102
8393
  # We can hardcode non-existant directories.
8103
8394
  if test "$hardcode_direct" != no &&
8223
8514
  cat conftest.err >&5
8224
8515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225
8516
  (exit $ac_status); } &&
8226
 
         { ac_try='test -z "$ac_c_werror_flag"
8227
 
                         || test ! -s conftest.err'
 
8517
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8228
8518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229
8519
  (eval $ac_try) 2>&5
8230
8520
  ac_status=$?
8327
8617
  cat conftest.err >&5
8328
8618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329
8619
  (exit $ac_status); } &&
8330
 
         { ac_try='test -z "$ac_c_werror_flag"
8331
 
                         || test ! -s conftest.err'
 
8620
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8332
8621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333
8622
  (eval $ac_try) 2>&5
8334
8623
  ac_status=$?
8393
8682
  cat conftest.err >&5
8394
8683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395
8684
  (exit $ac_status); } &&
8396
 
         { ac_try='test -z "$ac_c_werror_flag"
8397
 
                         || test ! -s conftest.err'
 
8685
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8398
8686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399
8687
  (eval $ac_try) 2>&5
8400
8688
  ac_status=$?
8487
8775
  cat conftest.err >&5
8488
8776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489
8777
  (exit $ac_status); } &&
8490
 
         { ac_try='test -z "$ac_c_werror_flag"
8491
 
                         || test ! -s conftest.err'
 
8778
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8492
8779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493
8780
  (eval $ac_try) 2>&5
8494
8781
  ac_status=$?
8553
8840
  cat conftest.err >&5
8554
8841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555
8842
  (exit $ac_status); } &&
8556
 
         { ac_try='test -z "$ac_c_werror_flag"
8557
 
                         || test ! -s conftest.err'
 
8843
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8558
8844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559
8845
  (eval $ac_try) 2>&5
8560
8846
  ac_status=$?
8620
8906
  cat conftest.err >&5
8621
8907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622
8908
  (exit $ac_status); } &&
8623
 
         { ac_try='test -z "$ac_c_werror_flag"
8624
 
                         || test ! -s conftest.err'
 
8909
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8625
8910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626
8911
  (eval $ac_try) 2>&5
8627
8912
  ac_status=$?
8687
8972
  cat conftest.err >&5
8688
8973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689
8974
  (exit $ac_status); } &&
8690
 
         { ac_try='test -z "$ac_c_werror_flag"
8691
 
                         || test ! -s conftest.err'
 
8975
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8692
8976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693
8977
  (eval $ac_try) 2>&5
8694
8978
  ac_status=$?
8747
9031
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8748
9032
 
8749
9033
    save_LDFLAGS="$LDFLAGS"
8750
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9034
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8751
9035
 
8752
9036
    save_LIBS="$LIBS"
8753
9037
    LIBS="$lt_cv_dlopen_libs $LIBS"
8763
9047
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8764
9048
  lt_status=$lt_dlunknown
8765
9049
  cat > conftest.$ac_ext <<EOF
8766
 
#line 8766 "configure"
 
9050
#line 9050 "configure"
8767
9051
#include "confdefs.h"
8768
9052
 
8769
9053
#if HAVE_DLFCN_H
8820
9104
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8821
9105
      /* dlclose (self); */
8822
9106
    }
 
9107
  else
 
9108
    puts (dlerror ());
8823
9109
 
8824
9110
    exit (status);
8825
9111
}
8829
9115
  ac_status=$?
8830
9116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831
9117
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8832
 
    (./conftest; exit; ) 2>/dev/null
 
9118
    (./conftest; exit; ) >&5 2>/dev/null
8833
9119
    lt_status=$?
8834
9120
    case x$lt_status in
8835
9121
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8836
9122
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8837
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9123
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8838
9124
    esac
8839
9125
  else :
8840
9126
    # compilation failed
8849
9135
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8850
9136
 
8851
9137
    if test "x$lt_cv_dlopen_self" = xyes; then
8852
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9138
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8853
9139
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8854
9140
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8855
9141
if test "${lt_cv_dlopen_self_static+set}" = set; then
8861
9147
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8862
9148
  lt_status=$lt_dlunknown
8863
9149
  cat > conftest.$ac_ext <<EOF
8864
 
#line 8864 "configure"
 
9150
#line 9150 "configure"
8865
9151
#include "confdefs.h"
8866
9152
 
8867
9153
#if HAVE_DLFCN_H
8918
9204
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8919
9205
      /* dlclose (self); */
8920
9206
    }
 
9207
  else
 
9208
    puts (dlerror ());
8921
9209
 
8922
9210
    exit (status);
8923
9211
}
8927
9215
  ac_status=$?
8928
9216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929
9217
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8930
 
    (./conftest; exit; ) 2>/dev/null
 
9218
    (./conftest; exit; ) >&5 2>/dev/null
8931
9219
    lt_status=$?
8932
9220
    case x$lt_status in
8933
9221
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8934
9222
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8935
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9223
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8936
9224
    esac
8937
9225
  else :
8938
9226
    # compilation failed
8965
9253
fi
8966
9254
 
8967
9255
 
8968
 
# Report which librarie types wil actually be built
 
9256
# Report which library types will actually be built
8969
9257
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8970
9258
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8971
9259
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8977
9265
 
8978
9266
# On AIX, shared libraries and static libraries use the same namespace, and
8979
9267
# are all built from PIC.
8980
 
case "$host_os" in
 
9268
case $host_os in
8981
9269
aix3*)
8982
9270
  test "$enable_shared" = yes && enable_static=no
8983
9271
  if test -n "$RANLIB"; then
8990
9278
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8991
9279
    test "$enable_shared" = yes && enable_static=no
8992
9280
  fi
8993
 
  ;;
8994
 
  darwin* | rhapsody*)
8995
 
  if test "$GCC" = yes; then
8996
 
    archive_cmds_need_lc=no
8997
 
    case "$host_os" in
8998
 
    rhapsody* | darwin1.[012])
8999
 
      allow_undefined_flag='-undefined suppress'
9000
 
      ;;
9001
 
    *) # Darwin 1.3 on
9002
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9003
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9004
 
      else
9005
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9006
 
          10.[012])
9007
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9008
 
            ;;
9009
 
          10.*)
9010
 
            allow_undefined_flag='-undefined dynamic_lookup'
9011
 
            ;;
9012
 
        esac
9013
 
      fi
9014
 
      ;;
9015
 
    esac
9016
 
    output_verbose_link_cmd='echo'
9017
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9018
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9019
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9020
 
    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}'
9021
 
    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}'
9022
 
    hardcode_direct=no
9023
 
    hardcode_automatic=yes
9024
 
    hardcode_shlibpath_var=unsupported
9025
 
    whole_archive_flag_spec='-all_load $convenience'
9026
 
    link_all_deplibs=yes
9027
 
  else
9028
 
    ld_shlibs=no
9029
 
  fi
9030
9281
    ;;
9031
9282
esac
9032
9283
echo "$as_me:$LINENO: result: $enable_shared" >&5
9052
9303
  # Now quote all the things that may contain metacharacters while being
9053
9304
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9054
9305
  # variables and quote the copies for generation of the libtool script.
9055
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9306
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9056
9307
    SED SHELL STRIP \
9057
9308
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9058
9309
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9156
9407
#
9157
9408
# You should have received a copy of the GNU General Public License
9158
9409
# along with this program; if not, write to the Free Software
9159
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9410
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9160
9411
#
9161
9412
# As a special exception to the GNU General Public License, if you
9162
9413
# distribute this file as part of a program that contains a
9167
9418
SED=$lt_SED
9168
9419
 
9169
9420
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9170
 
Xsed="$SED -e s/^X//"
 
9421
Xsed="$SED -e 1s/^X//"
9171
9422
 
9172
9423
# The HP-UX ksh and POSIX shell print the target directory to stdout
9173
9424
# if CDPATH is set.
9174
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9425
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9175
9426
 
9176
9427
# The names of the tagged configurations supported by this script.
9177
9428
available_tags=
9201
9452
# The host system.
9202
9453
host_alias=$host_alias
9203
9454
host=$host
 
9455
host_os=$host_os
 
9456
 
 
9457
# The build system.
 
9458
build_alias=$build_alias
 
9459
build=$build
 
9460
build_os=$build_os
9204
9461
 
9205
9462
# An echo program that does not interpret backslashes.
9206
9463
echo=$lt_echo
9212
9469
# A C compiler.
9213
9470
LTCC=$lt_LTCC
9214
9471
 
 
9472
# LTCC compiler flags.
 
9473
LTCFLAGS=$lt_LTCFLAGS
 
9474
 
9215
9475
# A language-specific compiler.
9216
9476
CC=$lt_compiler
9217
9477
 
9277
9537
# Does compiler simultaneously support -c and -o options?
9278
9538
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9279
9539
 
9280
 
# Must we lock files when doing compilation ?
 
9540
# Must we lock files when doing compilation?
9281
9541
need_locks=$lt_need_locks
9282
9542
 
9283
9543
# Do we need the lib prefix for modules?
9542
9802
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9543
9803
    fi
9544
9804
  fi
 
9805
  if test -z "$LTCFLAGS"; then
 
9806
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9807
  fi
9545
9808
 
9546
9809
  # Extract list of available tagged configurations in $ofile.
9547
9810
  # Note that this assumes the entire list is on one line.
9572
9835
 
9573
9836
      case $tagname in
9574
9837
      CXX)
9575
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9838
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9839
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9840
            (test "X$CXX" != "Xg++"))) ; then
9576
9841
          ac_ext=cc
9577
9842
ac_cpp='$CXXCPP $CPPFLAGS'
9578
9843
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592
9857
hardcode_libdir_flag_spec_ld_CXX=
9593
9858
hardcode_libdir_separator_CXX=
9594
9859
hardcode_minus_L_CXX=no
 
9860
hardcode_shlibpath_var_CXX=unsupported
9595
9861
hardcode_automatic_CXX=no
9596
9862
module_cmds_CXX=
9597
9863
module_expsym_cmds_CXX=
9609
9875
compiler_lib_search_path_CXX=
9610
9876
 
9611
9877
# Source file extension for C++ test sources.
9612
 
ac_ext=cc
 
9878
ac_ext=cpp
9613
9879
 
9614
9880
# Object file extension for compiled C++ test sources.
9615
9881
objext=o
9619
9885
lt_simple_compile_test_code="int some_variable = 0;\n"
9620
9886
 
9621
9887
# Code to be used in simple link tests
9622
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9888
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9623
9889
 
9624
9890
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9625
9891
 
9626
9892
# If no C compiler was specified, use CC.
9627
9893
LTCC=${LTCC-"$CC"}
9628
9894
 
 
9895
# If no C compiler flags were specified, use CFLAGS.
 
9896
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9897
 
9629
9898
# Allow CC to be a program name with arguments.
9630
9899
compiler=$CC
9631
9900
 
9632
9901
 
 
9902
# save warnings/boilerplate of simple test code
 
9903
ac_outfile=conftest.$ac_objext
 
9904
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9905
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9906
_lt_compiler_boilerplate=`cat conftest.err`
 
9907
$rm conftest*
 
9908
 
 
9909
ac_outfile=conftest.$ac_objext
 
9910
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9911
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9912
_lt_linker_boilerplate=`cat conftest.err`
 
9913
$rm conftest*
 
9914
 
 
9915
 
9633
9916
# Allow CC to be a program name with arguments.
9634
9917
lt_save_CC=$CC
9635
9918
lt_save_LD=$LD
9640
9923
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9641
9924
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9642
9925
else
9643
 
  unset lt_cv_prog_gnu_ld
 
9926
  $as_unset lt_cv_prog_gnu_ld
9644
9927
fi
9645
9928
if test -n "${lt_cv_path_LDCXX+set}"; then
9646
9929
  lt_cv_path_LD=$lt_cv_path_LDCXX
9647
9930
else
9648
 
  unset lt_cv_path_LD
 
9931
  $as_unset lt_cv_path_LD
9649
9932
fi
9650
9933
test -z "${LDCXX+set}" || LD=$LDCXX
9651
9934
CC=${CXX-"c++"}
9652
9935
compiler=$CC
9653
9936
compiler_CXX=$CC
9654
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9937
for cc_temp in $compiler""; do
 
9938
  case $cc_temp in
 
9939
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9940
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9941
    \-*) ;;
 
9942
    *) break;;
 
9943
  esac
 
9944
done
 
9945
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9946
 
9655
9947
 
9656
9948
# We don't want -fno-exception wen compiling C++ code, so set the
9657
9949
# no_builtin_flag separately
9722
10014
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9723
10015
      lt_cv_path_LD="$ac_dir/$ac_prog"
9724
10016
      # Check to see if the program is GNU ld.  I'd rather use --version,
9725
 
      # but apparently some GNU ld's only accept -v.
 
10017
      # but apparently some variants of GNU ld only accept -v.
9726
10018
      # Break only if it was the GNU/non-GNU ld that we prefer.
9727
10019
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9728
10020
      *GNU* | *'with BFD'*)
9756
10048
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9757
10049
  echo $ECHO_N "(cached) $ECHO_C" >&6
9758
10050
else
9759
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10051
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9760
10052
case `$LD -v 2>&1 </dev/null` in
9761
10053
*GNU* | *'with BFD'*)
9762
10054
  lt_cv_prog_gnu_ld=yes
9847
10139
            ;;
9848
10140
          esac
9849
10141
        done
 
10142
        ;;
9850
10143
      esac
9851
10144
 
9852
10145
      exp_sym_flag='-bexport'
9865
10158
    link_all_deplibs_CXX=yes
9866
10159
 
9867
10160
    if test "$GXX" = yes; then
9868
 
      case $host_os in aix4.012|aix4.012.*)
 
10161
      case $host_os in aix4.[012]|aix4.[012].*)
9869
10162
      # We only want to do this on AIX 4.2 and lower, the check
9870
10163
      # below for broken collect2 doesn't work under 4.3+
9871
10164
        collect2name=`${CC} -print-prog-name=collect2`
9884
10177
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9885
10178
          hardcode_libdir_separator_CXX=
9886
10179
        fi
 
10180
        ;;
9887
10181
      esac
9888
10182
      shared_flag='-shared'
 
10183
      if test "$aix_use_runtimelinking" = yes; then
 
10184
        shared_flag="$shared_flag "'${wl}-G'
 
10185
      fi
9889
10186
    else
9890
10187
      # not using gcc
9891
10188
      if test "$host_cpu" = ia64; then
9933
10230
  cat conftest.err >&5
9934
10231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935
10232
  (exit $ac_status); } &&
9936
 
         { ac_try='test -z "$ac_cxx_werror_flag"
9937
 
                         || test ! -s conftest.err'
 
10233
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9938
10234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939
10235
  (eval $ac_try) 2>&5
9940
10236
  ac_status=$?
9963
10259
 
9964
10260
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9965
10261
 
9966
 
      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"
 
10262
      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"
9967
10263
     else
9968
10264
      if test "$host_cpu" = ia64; then
9969
10265
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9970
10266
        allow_undefined_flag_CXX="-z nodefs"
9971
 
        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"
 
10267
        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"
9972
10268
      else
9973
10269
        # Determine the default libpath from the value encoded in an empty executable.
9974
10270
        cat >conftest.$ac_ext <<_ACEOF
9995
10291
  cat conftest.err >&5
9996
10292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997
10293
  (exit $ac_status); } &&
9998
 
         { ac_try='test -z "$ac_cxx_werror_flag"
9999
 
                         || test ! -s conftest.err'
 
10294
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10000
10295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001
10296
  (eval $ac_try) 2>&5
10002
10297
  ac_status=$?
10028
10323
        # -berok will link without error, but may produce a broken library.
10029
10324
        no_undefined_flag_CXX=' ${wl}-bernotok'
10030
10325
        allow_undefined_flag_CXX=' ${wl}-berok'
10031
 
        # -bexpall does not export symbols beginning with underscore (_)
10032
 
        always_export_symbols_CXX=yes
10033
10326
        # Exported symbols can be pulled into shared objects from archives
10034
 
        whole_archive_flag_spec_CXX=' '
 
10327
        whole_archive_flag_spec_CXX='$convenience'
10035
10328
        archive_cmds_need_lc_CXX=yes
10036
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10037
 
        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'
 
10329
        # This is similar to how AIX traditionally builds its shared libraries.
 
10330
        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'
10038
10331
      fi
10039
10332
    fi
10040
10333
    ;;
 
10334
 
 
10335
  beos*)
 
10336
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10337
      allow_undefined_flag_CXX=unsupported
 
10338
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10339
      # support --undefined.  This deserves some investigation.  FIXME
 
10340
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10341
    else
 
10342
      ld_shlibs_CXX=no
 
10343
    fi
 
10344
    ;;
 
10345
 
10041
10346
  chorus*)
10042
10347
    case $cc_basename in
10043
10348
      *)
10056
10361
    enable_shared_with_static_runtimes_CXX=yes
10057
10362
 
10058
10363
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10059
 
      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'
 
10364
      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'
10060
10365
      # If the export-symbols file already is a .def file (1st line
10061
10366
      # is EXPORTS), use it as is; otherwise, prepend...
10062
10367
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10065
10370
        echo EXPORTS > $output_objdir/$soname.def;
10066
10371
        cat $export_symbols >> $output_objdir/$soname.def;
10067
10372
      fi~
10068
 
      $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'
 
10373
      $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'
10069
10374
    else
10070
10375
      ld_shlibs_CXX=no
10071
10376
    fi
10072
10377
  ;;
10073
 
 
10074
 
  darwin* | rhapsody*)
10075
 
  if test "$GXX" = yes; then
10076
 
    archive_cmds_need_lc_CXX=no
10077
 
    case "$host_os" in
10078
 
    rhapsody* | darwin1.[012])
10079
 
      allow_undefined_flag_CXX='-undefined suppress'
10080
 
      ;;
10081
 
    *) # Darwin 1.3 on
10082
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10083
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10084
 
      else
10085
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10086
 
          10.[012])
10087
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10088
 
            ;;
10089
 
          10.*)
10090
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10091
 
            ;;
 
10378
      darwin* | rhapsody*)
 
10379
        case $host_os in
 
10380
        rhapsody* | darwin1.[012])
 
10381
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10382
         ;;
 
10383
       *) # Darwin 1.3 on
 
10384
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10385
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10386
         else
 
10387
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10388
             10.[012])
 
10389
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10390
               ;;
 
10391
             10.*)
 
10392
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10393
               ;;
 
10394
           esac
 
10395
         fi
 
10396
         ;;
10092
10397
        esac
10093
 
      fi
10094
 
      ;;
10095
 
    esac
10096
 
    lt_int_apple_cc_single_mod=no
10097
 
    output_verbose_link_cmd='echo'
10098
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10099
 
      lt_int_apple_cc_single_mod=yes
10100
 
    fi
10101
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10103
 
    else
10104
 
      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'
10105
 
    fi
10106
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10398
      archive_cmds_need_lc_CXX=no
 
10399
      hardcode_direct_CXX=no
 
10400
      hardcode_automatic_CXX=yes
 
10401
      hardcode_shlibpath_var_CXX=unsupported
 
10402
      whole_archive_flag_spec_CXX=''
 
10403
      link_all_deplibs_CXX=yes
10107
10404
 
10108
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10109
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110
 
      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}'
10111
 
    else
10112
 
      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}'
10113
 
    fi
10114
 
    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}'
10115
 
    hardcode_direct_CXX=no
10116
 
    hardcode_automatic_CXX=yes
10117
 
    hardcode_shlibpath_var_CXX=unsupported
10118
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10119
 
    link_all_deplibs_CXX=yes
10120
 
  else
10121
 
    ld_shlibs_CXX=no
10122
 
  fi
10123
 
    ;;
 
10405
    if test "$GXX" = yes ; then
 
10406
      lt_int_apple_cc_single_mod=no
 
10407
      output_verbose_link_cmd='echo'
 
10408
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10409
       lt_int_apple_cc_single_mod=yes
 
10410
      fi
 
10411
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10412
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10413
      else
 
10414
          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'
 
10415
        fi
 
10416
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10417
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10418
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10419
            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}'
 
10420
          else
 
10421
            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}'
 
10422
          fi
 
10423
            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}'
 
10424
      else
 
10425
      case $cc_basename in
 
10426
        xlc*)
 
10427
         output_verbose_link_cmd='echo'
 
10428
          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'
 
10429
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10430
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10431
          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}'
 
10432
          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}'
 
10433
          ;;
 
10434
       *)
 
10435
         ld_shlibs_CXX=no
 
10436
          ;;
 
10437
      esac
 
10438
      fi
 
10439
        ;;
10124
10440
 
10125
10441
  dgux*)
10126
10442
    case $cc_basename in
10127
 
      ec++)
 
10443
      ec++*)
10128
10444
        # FIXME: insert proper C++ library support
10129
10445
        ld_shlibs_CXX=no
10130
10446
        ;;
10131
 
      ghcx)
 
10447
      ghcx*)
10132
10448
        # Green Hills C++ Compiler
10133
10449
        # FIXME: insert proper C++ library support
10134
10450
        ld_shlibs_CXX=no
10139
10455
        ;;
10140
10456
    esac
10141
10457
    ;;
10142
 
  freebsd12*)
 
10458
  freebsd[12]*)
10143
10459
    # C++ shared libraries reported to be fairly broken before switch to ELF
10144
10460
    ld_shlibs_CXX=no
10145
10461
    ;;
10146
10462
  freebsd-elf*)
10147
10463
    archive_cmds_need_lc_CXX=no
10148
10464
    ;;
10149
 
  freebsd* | kfreebsd*-gnu)
 
10465
  freebsd* | kfreebsd*-gnu | dragonfly*)
10150
10466
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10151
10467
    # conventions
10152
10468
    ld_shlibs_CXX=yes
10163
10479
                                # location of the library.
10164
10480
 
10165
10481
    case $cc_basename in
10166
 
    CC)
 
10482
    CC*)
10167
10483
      # FIXME: insert proper C++ library support
10168
10484
      ld_shlibs_CXX=no
10169
10485
      ;;
10170
 
    aCC)
 
10486
    aCC*)
10171
10487
      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'
10172
10488
      # Commands to make compiler produce verbose output that lists
10173
10489
      # what "hidden" libraries, object files and flags are used when
10177
10493
      # explicitly linking system object files so we need to strip them
10178
10494
      # from the output so that they don't get included in the library
10179
10495
      # dependencies.
10180
 
      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'
 
10496
      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'
10181
10497
      ;;
10182
10498
    *)
10183
10499
      if test "$GXX" = yes; then
10191
10507
    ;;
10192
10508
  hpux10*|hpux11*)
10193
10509
    if test $with_gnu_ld = no; then
10194
 
      case "$host_cpu" in
10195
 
      hppa*64*)
10196
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10510
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10511
      hardcode_libdir_separator_CXX=:
 
10512
 
 
10513
      case $host_cpu in
 
10514
      hppa*64*|ia64*)
10197
10515
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10198
 
        hardcode_libdir_separator_CXX=:
10199
 
        ;;
10200
 
      ia64*)
10201
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10202
10516
        ;;
10203
10517
      *)
10204
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10205
 
        hardcode_libdir_separator_CXX=:
10206
10518
        export_dynamic_flag_spec_CXX='${wl}-E'
10207
10519
        ;;
10208
10520
      esac
10209
10521
    fi
10210
 
    case "$host_cpu" in
10211
 
    hppa*64*)
10212
 
      hardcode_direct_CXX=no
10213
 
      hardcode_shlibpath_var_CXX=no
10214
 
      ;;
10215
 
    ia64*)
10216
 
      hardcode_direct_CXX=no
10217
 
      hardcode_shlibpath_var_CXX=no
10218
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10219
 
                                              # but as the default
10220
 
                                              # location of the library.
 
10522
    case $host_cpu in
 
10523
    hppa*64*|ia64*)
 
10524
      hardcode_direct_CXX=no
 
10525
      hardcode_shlibpath_var_CXX=no
10221
10526
      ;;
10222
10527
    *)
10223
10528
      hardcode_direct_CXX=yes
10228
10533
    esac
10229
10534
 
10230
10535
    case $cc_basename in
10231
 
      CC)
 
10536
      CC*)
10232
10537
        # FIXME: insert proper C++ library support
10233
10538
        ld_shlibs_CXX=no
10234
10539
        ;;
10235
 
      aCC)
10236
 
        case "$host_cpu" in
10237
 
        hppa*64*|ia64*)
10238
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10540
      aCC*)
 
10541
        case $host_cpu in
 
10542
        hppa*64*)
 
10543
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10544
          ;;
 
10545
        ia64*)
 
10546
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10239
10547
          ;;
10240
10548
        *)
10241
10549
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10254
10562
      *)
10255
10563
        if test "$GXX" = yes; then
10256
10564
          if test $with_gnu_ld = no; then
10257
 
            case "$host_cpu" in
10258
 
            ia64*|hppa*64*)
10259
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10565
            case $host_cpu in
 
10566
            hppa*64*)
 
10567
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10568
              ;;
 
10569
            ia64*)
 
10570
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10260
10571
              ;;
10261
10572
            *)
10262
10573
              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'
10270
10581
        ;;
10271
10582
    esac
10272
10583
    ;;
 
10584
  interix3*)
 
10585
    hardcode_direct_CXX=no
 
10586
    hardcode_shlibpath_var_CXX=no
 
10587
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10588
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10589
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10590
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10591
    # default) and relocated if they conflict, which is a slow very memory
 
10592
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10593
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10594
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10595
    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'
 
10596
    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'
 
10597
    ;;
10273
10598
  irix5* | irix6*)
10274
10599
    case $cc_basename in
10275
 
      CC)
 
10600
      CC*)
10276
10601
        # SGI C++
10277
 
        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'
 
10602
        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'
10278
10603
 
10279
10604
        # Archives containing C++ object files must be created using
10280
10605
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10285
10610
      *)
10286
10611
        if test "$GXX" = yes; then
10287
10612
          if test "$with_gnu_ld" = no; then
10288
 
            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'
 
10613
            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'
10289
10614
          else
10290
10615
            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'
10291
10616
          fi
10298
10623
    ;;
10299
10624
  linux*)
10300
10625
    case $cc_basename in
10301
 
      KCC)
 
10626
      KCC*)
10302
10627
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10303
10628
 
10304
10629
        # KCC will only create a shared library if the output file
10323
10648
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10324
10649
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10325
10650
        ;;
10326
 
      icpc)
 
10651
      icpc*)
10327
10652
        # Intel C++
10328
10653
        with_gnu_ld=yes
 
10654
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10655
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10656
        # earlier do not add the objects themselves.
 
10657
        case `$CC -V 2>&1` in
 
10658
        *"Version 7."*)
 
10659
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10660
          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'
 
10661
          ;;
 
10662
        *)  # Version 8.0 or newer
 
10663
          tmp_idyn=
 
10664
          case $host_cpu in
 
10665
            ia64*) tmp_idyn=' -i_dynamic';;
 
10666
          esac
 
10667
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10668
          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'
 
10669
          ;;
 
10670
        esac
10329
10671
        archive_cmds_need_lc_CXX=no
10330
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331
 
        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'
10332
10672
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333
10673
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334
10674
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10335
10675
        ;;
10336
 
      cxx)
 
10676
      pgCC*)
 
10677
        # Portland Group C++ compiler
 
10678
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10679
        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'
 
10680
 
 
10681
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10682
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10683
        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'
 
10684
        ;;
 
10685
      cxx*)
10337
10686
        # Compaq C++
10338
10687
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339
10688
        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'
10364
10713
    ;;
10365
10714
  mvs*)
10366
10715
    case $cc_basename in
10367
 
      cxx)
 
10716
      cxx*)
10368
10717
        # FIXME: insert proper C++ library support
10369
10718
        ld_shlibs_CXX=no
10370
10719
        ;;
10374
10723
        ;;
10375
10724
    esac
10376
10725
    ;;
10377
 
  netbsd*)
 
10726
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10378
10727
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10379
10728
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10380
10729
      wlarc=
10385
10734
    # Workaround some broken pre-1.5 toolchains
10386
10735
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10387
10736
    ;;
 
10737
  openbsd2*)
 
10738
    # C++ shared libraries are fairly broken
 
10739
    ld_shlibs_CXX=no
 
10740
    ;;
 
10741
  openbsd*)
 
10742
    hardcode_direct_CXX=yes
 
10743
    hardcode_shlibpath_var_CXX=no
 
10744
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10745
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10746
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10747
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10748
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10749
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10750
    fi
 
10751
    output_verbose_link_cmd='echo'
 
10752
    ;;
10388
10753
  osf3*)
10389
10754
    case $cc_basename in
10390
 
      KCC)
 
10755
      KCC*)
10391
10756
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10392
10757
 
10393
10758
        # KCC will only create a shared library if the output file
10403
10768
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10404
10769
 
10405
10770
        ;;
10406
 
      RCC)
 
10771
      RCC*)
10407
10772
        # Rational C++ 2.4.1
10408
10773
        # FIXME: insert proper C++ library support
10409
10774
        ld_shlibs_CXX=no
10410
10775
        ;;
10411
 
      cxx)
 
10776
      cxx*)
10412
10777
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10413
 
        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'
 
10778
        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'
10414
10779
 
10415
10780
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10416
10781
        hardcode_libdir_separator_CXX=:
10428
10793
      *)
10429
10794
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10430
10795
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10431
 
          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'
 
10796
          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'
10432
10797
 
10433
10798
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10434
10799
          hardcode_libdir_separator_CXX=:
10447
10812
    ;;
10448
10813
  osf4* | osf5*)
10449
10814
    case $cc_basename in
10450
 
      KCC)
 
10815
      KCC*)
10451
10816
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10452
10817
 
10453
10818
        # KCC will only create a shared library if the output file
10462
10827
        # the KAI C++ compiler.
10463
10828
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10464
10829
        ;;
10465
 
      RCC)
 
10830
      RCC*)
10466
10831
        # Rational C++ 2.4.1
10467
10832
        # FIXME: insert proper C++ library support
10468
10833
        ld_shlibs_CXX=no
10469
10834
        ;;
10470
 
      cxx)
 
10835
      cxx*)
10471
10836
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10472
 
        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'
 
10837
        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'
10473
10838
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10474
10839
          echo "-hidden">> $lib.exp~
10475
 
          $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~
 
10840
          $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~
10476
10841
          $rm $lib.exp'
10477
10842
 
10478
10843
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10491
10856
      *)
10492
10857
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10493
10858
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10494
 
         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'
 
10859
         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'
10495
10860
 
10496
10861
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10497
10862
          hardcode_libdir_separator_CXX=:
10512
10877
    # FIXME: insert proper C++ library support
10513
10878
    ld_shlibs_CXX=no
10514
10879
    ;;
10515
 
  sco*)
10516
 
    archive_cmds_need_lc_CXX=no
10517
 
    case $cc_basename in
10518
 
      CC)
10519
 
        # FIXME: insert proper C++ library support
10520
 
        ld_shlibs_CXX=no
10521
 
        ;;
10522
 
      *)
10523
 
        # FIXME: insert proper C++ library support
10524
 
        ld_shlibs_CXX=no
10525
 
        ;;
10526
 
    esac
10527
 
    ;;
10528
10880
  sunos4*)
10529
10881
    case $cc_basename in
10530
 
      CC)
 
10882
      CC*)
10531
10883
        # Sun C++ 4.x
10532
10884
        # FIXME: insert proper C++ library support
10533
10885
        ld_shlibs_CXX=no
10534
10886
        ;;
10535
 
      lcc)
 
10887
      lcc*)
10536
10888
        # Lucid
10537
10889
        # FIXME: insert proper C++ library support
10538
10890
        ld_shlibs_CXX=no
10545
10897
    ;;
10546
10898
  solaris*)
10547
10899
    case $cc_basename in
10548
 
      CC)
 
10900
      CC*)
10549
10901
        # Sun C++ 4.2, 5.x and Centerline C++
 
10902
        archive_cmds_need_lc_CXX=yes
10550
10903
        no_undefined_flag_CXX=' -zdefs'
10551
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10904
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10552
10905
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10553
 
        $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'
 
10906
        $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'
10554
10907
 
10555
10908
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10556
10909
        hardcode_shlibpath_var_CXX=no
10557
10910
        case $host_os in
10558
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10911
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10559
10912
          *)
10560
10913
            # The C++ compiler is used as linker so we must use $wl
10561
10914
            # flag to pass the commands to the underlying system
10562
 
            # linker.
 
10915
            # linker. We must also pass each convience library through
 
10916
            # to the system linker between allextract/defaultextract.
 
10917
            # The C++ compiler will combine linker options so we
 
10918
            # cannot just pass the convience library names through
 
10919
            # without $wl.
10563
10920
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10564
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10921
            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'
10565
10922
            ;;
10566
10923
        esac
10567
10924
        link_all_deplibs_CXX=yes
10568
10925
 
10569
 
        # Commands to make compiler produce verbose output that lists
10570
 
        # what "hidden" libraries, object files and flags are used when
10571
 
        # linking a shared library.
10572
 
        #
10573
 
        # There doesn't appear to be a way to prevent this compiler from
10574
 
        # explicitly linking system object files so we need to strip them
10575
 
        # from the output so that they don't get included in the library
10576
 
        # dependencies.
10577
 
        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'
 
10926
        output_verbose_link_cmd='echo'
10578
10927
 
10579
10928
        # Archives containing C++ object files must be created using
10580
10929
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10582
10931
        # in the archive.
10583
10932
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10584
10933
        ;;
10585
 
      gcx)
 
10934
      gcx*)
10586
10935
        # Green Hills C++ Compiler
10587
10936
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10588
10937
 
10620
10969
        ;;
10621
10970
    esac
10622
10971
    ;;
10623
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10624
 
    archive_cmds_need_lc_CXX=no
 
10972
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10973
    no_undefined_flag_CXX='${wl}-z,text'
 
10974
    archive_cmds_need_lc_CXX=no
 
10975
    hardcode_shlibpath_var_CXX=no
 
10976
    runpath_var='LD_RUN_PATH'
 
10977
 
 
10978
    case $cc_basename in
 
10979
      CC*)
 
10980
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10981
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10982
        ;;
 
10983
      *)
 
10984
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10985
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10986
        ;;
 
10987
    esac
 
10988
    ;;
 
10989
  sysv5* | sco3.2v5* | sco5v6*)
 
10990
    # Note: We can NOT use -z defs as we might desire, because we do not
 
10991
    # link with -lc, and that would cause any symbols used from libc to
 
10992
    # always be unresolved, which means just about no library would
 
10993
    # ever link correctly.  If we're not using GNU ld we use -z text
 
10994
    # though, which does catch some bad symbols but isn't as heavy-handed
 
10995
    # as -z defs.
 
10996
    # For security reasons, it is highly recommended that you always
 
10997
    # use absolute paths for naming shared libraries, and exclude the
 
10998
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
10999
    # requires that you compile everything twice, which is a pain.
 
11000
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11001
    # non-empty value in the environment.  Most likely only useful for
 
11002
    # creating official distributions of packages.
 
11003
    # This is a hack until libtool officially supports absolute path
 
11004
    # names for shared libraries.
 
11005
    no_undefined_flag_CXX='${wl}-z,text'
 
11006
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11007
    archive_cmds_need_lc_CXX=no
 
11008
    hardcode_shlibpath_var_CXX=no
 
11009
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11010
    hardcode_libdir_separator_CXX=':'
 
11011
    link_all_deplibs_CXX=yes
 
11012
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11013
    runpath_var='LD_RUN_PATH'
 
11014
 
 
11015
    case $cc_basename in
 
11016
      CC*)
 
11017
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11018
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11019
        ;;
 
11020
      *)
 
11021
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11022
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11023
        ;;
 
11024
    esac
10625
11025
    ;;
10626
11026
  tandem*)
10627
11027
    case $cc_basename in
10628
 
      NCC)
 
11028
      NCC*)
10629
11029
        # NonStop-UX NCC 3.20
10630
11030
        # FIXME: insert proper C++ library support
10631
11031
        ld_shlibs_CXX=no
10678
11078
  # The `*' in the case matches for architectures that use `case' in
10679
11079
  # $output_verbose_cmd can trigger glob expansion during the loop
10680
11080
  # eval without this substitution.
10681
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11081
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10682
11082
 
10683
11083
  for p in `eval $output_verbose_link_cmd`; do
10684
11084
    case $p in
10754
11154
 
10755
11155
$rm -f confest.$objext
10756
11156
 
 
11157
# PORTME: override above test on systems where it is broken
 
11158
case $host_os in
 
11159
interix3*)
 
11160
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11161
  # hack all around it, let's just trust "g++" to DTRT.
 
11162
  predep_objects_CXX=
 
11163
  postdep_objects_CXX=
 
11164
  postdeps_CXX=
 
11165
  ;;
 
11166
 
 
11167
solaris*)
 
11168
  case $cc_basename in
 
11169
  CC*)
 
11170
    # Adding this requires a known-good setup of shared libraries for
 
11171
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11172
    # archive will be linked into the output, leading to subtle bugs.
 
11173
    postdeps_CXX='-lCstd -lCrun'
 
11174
    ;;
 
11175
  esac
 
11176
  ;;
 
11177
esac
 
11178
 
 
11179
 
10757
11180
case " $postdeps_CXX " in
10758
11181
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10759
11182
esac
10801
11224
      # DJGPP does not support shared libraries at all
10802
11225
      lt_prog_compiler_pic_CXX=
10803
11226
      ;;
 
11227
    interix3*)
 
11228
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11229
      # Instead, we relocate shared libraries at runtime.
 
11230
      ;;
10804
11231
    sysv4*MP*)
10805
11232
      if test -d /usr/nec; then
10806
11233
        lt_prog_compiler_pic_CXX=-Kconform_pic
10809
11236
    hpux*)
10810
11237
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10811
11238
      # not for PA HP-UX.
10812
 
      case "$host_cpu" in
 
11239
      case $host_cpu in
10813
11240
      hppa*64*|ia64*)
10814
11241
        ;;
10815
11242
      *)
10834
11261
        ;;
10835
11262
      chorus*)
10836
11263
        case $cc_basename in
10837
 
        cxch68)
 
11264
        cxch68*)
10838
11265
          # Green Hills C++ Compiler
10839
11266
          # _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"
10840
11267
          ;;
10841
11268
        esac
10842
11269
        ;;
 
11270
       darwin*)
 
11271
         # PIC is the default on this platform
 
11272
         # Common symbols not allowed in MH_DYLIB files
 
11273
         case $cc_basename in
 
11274
           xlc*)
 
11275
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11276
           lt_prog_compiler_wl_CXX='-Wl,'
 
11277
           ;;
 
11278
         esac
 
11279
       ;;
10843
11280
      dgux*)
10844
11281
        case $cc_basename in
10845
 
          ec++)
 
11282
          ec++*)
10846
11283
            lt_prog_compiler_pic_CXX='-KPIC'
10847
11284
            ;;
10848
 
          ghcx)
 
11285
          ghcx*)
10849
11286
            # Green Hills C++ Compiler
10850
11287
            lt_prog_compiler_pic_CXX='-pic'
10851
11288
            ;;
10853
11290
            ;;
10854
11291
        esac
10855
11292
        ;;
10856
 
      freebsd* | kfreebsd*-gnu)
 
11293
      freebsd* | kfreebsd*-gnu | dragonfly*)
10857
11294
        # FreeBSD uses GNU C++
10858
11295
        ;;
10859
11296
      hpux9* | hpux10* | hpux11*)
10860
11297
        case $cc_basename in
10861
 
          CC)
 
11298
          CC*)
10862
11299
            lt_prog_compiler_wl_CXX='-Wl,'
10863
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11300
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10864
11301
            if test "$host_cpu" != ia64; then
10865
11302
              lt_prog_compiler_pic_CXX='+Z'
10866
11303
            fi
10867
11304
            ;;
10868
 
          aCC)
 
11305
          aCC*)
10869
11306
            lt_prog_compiler_wl_CXX='-Wl,'
10870
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10871
 
            case "$host_cpu" in
 
11307
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11308
            case $host_cpu in
10872
11309
            hppa*64*|ia64*)
10873
11310
              # +Z the default
10874
11311
              ;;
10881
11318
            ;;
10882
11319
        esac
10883
11320
        ;;
 
11321
      interix*)
 
11322
        # This is c89, which is MS Visual C++ (no shared libs)
 
11323
        # Anyone wants to do a port?
 
11324
        ;;
10884
11325
      irix5* | irix6* | nonstopux*)
10885
11326
        case $cc_basename in
10886
 
          CC)
 
11327
          CC*)
10887
11328
            lt_prog_compiler_wl_CXX='-Wl,'
10888
11329
            lt_prog_compiler_static_CXX='-non_shared'
10889
11330
            # CC pic flag -KPIC is the default.
10894
11335
        ;;
10895
11336
      linux*)
10896
11337
        case $cc_basename in
10897
 
          KCC)
 
11338
          KCC*)
10898
11339
            # KAI C++ Compiler
10899
11340
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10900
11341
            lt_prog_compiler_pic_CXX='-fPIC'
10901
11342
            ;;
10902
 
          icpc)
 
11343
          icpc* | ecpc*)
10903
11344
            # Intel C++
10904
11345
            lt_prog_compiler_wl_CXX='-Wl,'
10905
11346
            lt_prog_compiler_pic_CXX='-KPIC'
10906
11347
            lt_prog_compiler_static_CXX='-static'
10907
11348
            ;;
10908
 
          cxx)
 
11349
          pgCC*)
 
11350
            # Portland Group C++ compiler.
 
11351
            lt_prog_compiler_wl_CXX='-Wl,'
 
11352
            lt_prog_compiler_pic_CXX='-fpic'
 
11353
            lt_prog_compiler_static_CXX='-Bstatic'
 
11354
            ;;
 
11355
          cxx*)
10909
11356
            # Compaq C++
10910
11357
            # Make sure the PIC flag is empty.  It appears that all Alpha
10911
11358
            # Linux and Compaq Tru64 Unix objects are PIC.
10922
11369
        ;;
10923
11370
      mvs*)
10924
11371
        case $cc_basename in
10925
 
          cxx)
 
11372
          cxx*)
10926
11373
            lt_prog_compiler_pic_CXX='-W c,exportall'
10927
11374
            ;;
10928
11375
          *)
10929
11376
            ;;
10930
11377
        esac
10931
11378
        ;;
10932
 
      netbsd*)
 
11379
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10933
11380
        ;;
10934
11381
      osf3* | osf4* | osf5*)
10935
11382
        case $cc_basename in
10936
 
          KCC)
 
11383
          KCC*)
10937
11384
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10938
11385
            ;;
10939
 
          RCC)
 
11386
          RCC*)
10940
11387
            # Rational C++ 2.4.1
10941
11388
            lt_prog_compiler_pic_CXX='-pic'
10942
11389
            ;;
10943
 
          cxx)
 
11390
          cxx*)
10944
11391
            # Digital/Compaq C++
10945
11392
            lt_prog_compiler_wl_CXX='-Wl,'
10946
11393
            # Make sure the PIC flag is empty.  It appears that all Alpha
10954
11401
        ;;
10955
11402
      psos*)
10956
11403
        ;;
10957
 
      sco*)
10958
 
        case $cc_basename in
10959
 
          CC)
10960
 
            lt_prog_compiler_pic_CXX='-fPIC'
10961
 
            ;;
10962
 
          *)
10963
 
            ;;
10964
 
        esac
10965
 
        ;;
10966
11404
      solaris*)
10967
11405
        case $cc_basename in
10968
 
          CC)
 
11406
          CC*)
10969
11407
            # Sun C++ 4.2, 5.x and Centerline C++
10970
11408
            lt_prog_compiler_pic_CXX='-KPIC'
10971
11409
            lt_prog_compiler_static_CXX='-Bstatic'
10972
11410
            lt_prog_compiler_wl_CXX='-Qoption ld '
10973
11411
            ;;
10974
 
          gcx)
 
11412
          gcx*)
10975
11413
            # Green Hills C++ Compiler
10976
11414
            lt_prog_compiler_pic_CXX='-PIC'
10977
11415
            ;;
10981
11419
        ;;
10982
11420
      sunos4*)
10983
11421
        case $cc_basename in
10984
 
          CC)
 
11422
          CC*)
10985
11423
            # Sun C++ 4.x
10986
11424
            lt_prog_compiler_pic_CXX='-pic'
10987
11425
            lt_prog_compiler_static_CXX='-Bstatic'
10988
11426
            ;;
10989
 
          lcc)
 
11427
          lcc*)
10990
11428
            # Lucid
10991
11429
            lt_prog_compiler_pic_CXX='-pic'
10992
11430
            ;;
10996
11434
        ;;
10997
11435
      tandem*)
10998
11436
        case $cc_basename in
10999
 
          NCC)
 
11437
          NCC*)
11000
11438
            # NonStop-UX NCC 3.20
11001
11439
            lt_prog_compiler_pic_CXX='-KPIC'
11002
11440
            ;;
11004
11442
            ;;
11005
11443
        esac
11006
11444
        ;;
11007
 
      unixware*)
 
11445
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11446
        case $cc_basename in
 
11447
          CC*)
 
11448
            lt_prog_compiler_wl_CXX='-Wl,'
 
11449
            lt_prog_compiler_pic_CXX='-KPIC'
 
11450
            lt_prog_compiler_static_CXX='-Bstatic'
 
11451
            ;;
 
11452
        esac
11008
11453
        ;;
11009
11454
      vxworks*)
11010
11455
        ;;
11037
11482
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11038
11483
   # The option is referenced via a variable to avoid confusing sed.
11039
11484
   lt_compile=`echo "$ac_compile" | $SED \
11040
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11485
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11041
11486
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11042
11487
   -e 's:$: $lt_compiler_flag:'`
11043
 
   (eval echo "\"\$as_me:11043: $lt_compile\"" >&5)
 
11488
   (eval echo "\"\$as_me:11488: $lt_compile\"" >&5)
11044
11489
   (eval "$lt_compile" 2>conftest.err)
11045
11490
   ac_status=$?
11046
11491
   cat conftest.err >&5
11047
 
   echo "$as_me:11047: \$? = $ac_status" >&5
 
11492
   echo "$as_me:11492: \$? = $ac_status" >&5
11048
11493
   if (exit $ac_status) && test -s "$ac_outfile"; then
11049
11494
     # The compiler can only warn and ignore the option if not recognized
11050
 
     # So say no if there are warnings
11051
 
     if test ! -s conftest.err; then
 
11495
     # So say no if there are warnings other than the usual output.
 
11496
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11497
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11498
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11052
11499
       lt_prog_compiler_pic_works_CXX=yes
11053
11500
     fi
11054
11501
   fi
11069
11516
fi
11070
11517
 
11071
11518
fi
11072
 
case "$host_os" in
 
11519
case $host_os in
11073
11520
  # For platforms which do not support PIC, -DPIC is meaningless:
11074
11521
  *djgpp*)
11075
11522
    lt_prog_compiler_pic_CXX=
11079
11526
    ;;
11080
11527
esac
11081
11528
 
 
11529
#
 
11530
# Check to make sure the static flag actually works.
 
11531
#
 
11532
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11533
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11534
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11535
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11537
else
 
11538
  lt_prog_compiler_static_works_CXX=no
 
11539
   save_LDFLAGS="$LDFLAGS"
 
11540
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11541
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11542
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11543
     # The linker can only warn and ignore the option if not recognized
 
11544
     # So say no if there are warnings
 
11545
     if test -s conftest.err; then
 
11546
       # Append any errors to the config.log.
 
11547
       cat conftest.err 1>&5
 
11548
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11549
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11550
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11551
         lt_prog_compiler_static_works_CXX=yes
 
11552
       fi
 
11553
     else
 
11554
       lt_prog_compiler_static_works_CXX=yes
 
11555
     fi
 
11556
   fi
 
11557
   $rm conftest*
 
11558
   LDFLAGS="$save_LDFLAGS"
 
11559
 
 
11560
fi
 
11561
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11562
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11563
 
 
11564
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11565
    :
 
11566
else
 
11567
    lt_prog_compiler_static_CXX=
 
11568
fi
 
11569
 
 
11570
 
11082
11571
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11083
11572
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11084
11573
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11097
11586
   # Note that $ac_compile itself does not contain backslashes and begins
11098
11587
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11099
11588
   lt_compile=`echo "$ac_compile" | $SED \
11100
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11589
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11101
11590
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102
11591
   -e 's:$: $lt_compiler_flag:'`
11103
 
   (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
 
11592
   (eval echo "\"\$as_me:11592: $lt_compile\"" >&5)
11104
11593
   (eval "$lt_compile" 2>out/conftest.err)
11105
11594
   ac_status=$?
11106
11595
   cat out/conftest.err >&5
11107
 
   echo "$as_me:11107: \$? = $ac_status" >&5
 
11596
   echo "$as_me:11596: \$? = $ac_status" >&5
11108
11597
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11109
11598
   then
11110
11599
     # The compiler can only warn and ignore the option if not recognized
11111
11600
     # So say no if there are warnings
11112
 
     if test ! -s out/conftest.err; then
 
11601
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11602
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11603
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11113
11604
       lt_cv_prog_compiler_c_o_CXX=yes
11114
11605
     fi
11115
11606
   fi
11116
 
   chmod u+w .
 
11607
   chmod u+w . 2>&5
11117
11608
   $rm conftest*
11118
11609
   # SGI C++ compiler will create directory out/ii_files/ for
11119
11610
   # template instantiation
11168
11659
    export_symbols_cmds_CXX="$ltdll_cmds"
11169
11660
  ;;
11170
11661
  cygwin* | mingw*)
11171
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11662
    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'
 
11663
  ;;
 
11664
  kfreebsd*-gnu)
 
11665
    link_all_deplibs_CXX=no
 
11666
  ;;
 
11667
  linux*)
 
11668
    link_all_deplibs_CXX=no
11172
11669
  ;;
11173
11670
  *)
11174
11671
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11179
11676
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11180
11677
test "$ld_shlibs_CXX" = no && can_build_shared=no
11181
11678
 
11182
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11183
 
if test "$GCC" = yes; then
11184
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11185
 
fi
11186
 
 
11187
11679
#
11188
11680
# Do we need to explicitly link libc?
11189
11681
#
11216
11708
        libobjs=conftest.$ac_objext
11217
11709
        deplibs=
11218
11710
        wl=$lt_prog_compiler_wl_CXX
 
11711
        pic_flag=$lt_prog_compiler_pic_CXX
11219
11712
        compiler_flags=-v
11220
11713
        linker_flags=-v
11221
11714
        verstring=
11348
11841
  shlibpath_var=LIBRARY_PATH
11349
11842
  ;;
11350
11843
 
11351
 
bsdi4*)
 
11844
bsdi[45]*)
11352
11845
  version_type=linux
11353
11846
  need_version=no
11354
11847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376
11869
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11377
11870
      dldir=$destdir/`dirname \$dlpath`~
11378
11871
      test -d \$dldir || mkdir -p \$dldir~
11379
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11872
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11873
      chmod a+x \$dldir/$dlname'
11380
11874
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11381
11875
      dlpath=$dir/\$dldll~
11382
11876
       $rm \$dlpath'
11406
11900
      ;;
11407
11901
    pw32*)
11408
11902
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11409
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11903
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410
11904
      ;;
11411
11905
    esac
11412
11906
    ;;
11429
11923
  soname_spec='${libname}${release}${major}$shared_ext'
11430
11924
  shlibpath_overrides_runpath=yes
11431
11925
  shlibpath_var=DYLD_LIBRARY_PATH
11432
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11926
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11433
11927
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11434
11928
  if test "$GCC" = yes; then
11435
11929
    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"`
11464
11958
  dynamic_linker='GNU ld.so'
11465
11959
  ;;
11466
11960
 
11467
 
freebsd*)
11468
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11961
freebsd* | dragonfly*)
 
11962
  # DragonFly does not have aout.  When/if they implement a new
 
11963
  # versioning mechanism, adjust this.
 
11964
  if test -x /usr/bin/objformat; then
 
11965
    objformat=`/usr/bin/objformat`
 
11966
  else
 
11967
    case $host_os in
 
11968
    freebsd[123]*) objformat=aout ;;
 
11969
    *) objformat=elf ;;
 
11970
    esac
 
11971
  fi
11469
11972
  version_type=freebsd-$objformat
11470
11973
  case $version_type in
11471
11974
    freebsd-elf*)
11483
11986
  freebsd2*)
11484
11987
    shlibpath_overrides_runpath=yes
11485
11988
    ;;
11486
 
  freebsd3.01* | freebsdelf3.01*)
 
11989
  freebsd3.[01]* | freebsdelf3.[01]*)
11487
11990
    shlibpath_overrides_runpath=yes
11488
11991
    hardcode_into_libs=yes
11489
11992
    ;;
11490
 
  *) # from 3.2 on
 
11993
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11994
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11491
11995
    shlibpath_overrides_runpath=no
11492
11996
    hardcode_into_libs=yes
11493
11997
    ;;
 
11998
  freebsd*) # from 4.6 on
 
11999
    shlibpath_overrides_runpath=yes
 
12000
    hardcode_into_libs=yes
 
12001
    ;;
11494
12002
  esac
11495
12003
  ;;
11496
12004
 
11510
12018
  version_type=sunos
11511
12019
  need_lib_prefix=no
11512
12020
  need_version=no
11513
 
  case "$host_cpu" in
 
12021
  case $host_cpu in
11514
12022
  ia64*)
11515
12023
    shrext_cmds='.so'
11516
12024
    hardcode_into_libs=yes
11550
12058
  postinstall_cmds='chmod 555 $lib'
11551
12059
  ;;
11552
12060
 
 
12061
interix3*)
 
12062
  version_type=linux
 
12063
  need_lib_prefix=no
 
12064
  need_version=no
 
12065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12066
  soname_spec='${libname}${release}${shared_ext}$major'
 
12067
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12068
  shlibpath_var=LD_LIBRARY_PATH
 
12069
  shlibpath_overrides_runpath=no
 
12070
  hardcode_into_libs=yes
 
12071
  ;;
 
12072
 
11553
12073
irix5* | irix6* | nonstopux*)
11554
12074
  case $host_os in
11555
12075
    nonstopux*) version_type=nonstopux ;;
11607
12127
  # before this can be enabled.
11608
12128
  hardcode_into_libs=yes
11609
12129
 
11610
 
  # find out which ABI we are using
11611
 
  libsuff=
11612
 
  case "$host_cpu" in
11613
 
  x86_64*|s390x*|powerpc64*)
11614
 
    echo '#line 11614 "configure"' > conftest.$ac_ext
11615
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616
 
  (eval $ac_compile) 2>&5
11617
 
  ac_status=$?
11618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619
 
  (exit $ac_status); }; then
11620
 
      case `/usr/bin/file conftest.$ac_objext` in
11621
 
      *64-bit*)
11622
 
        libsuff=64
11623
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11624
 
        ;;
11625
 
      esac
11626
 
    fi
11627
 
    rm -rf conftest*
11628
 
    ;;
11629
 
  esac
11630
 
 
11631
12130
  # Append ld.so.conf contents to the search path
11632
12131
  if test -f /etc/ld.so.conf; then
11633
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11634
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12132
    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' ' '`
 
12133
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11635
12134
  fi
11636
12135
 
11637
12136
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11643
12142
  dynamic_linker='GNU/Linux ld.so'
11644
12143
  ;;
11645
12144
 
 
12145
netbsdelf*-gnu)
 
12146
  version_type=linux
 
12147
  need_lib_prefix=no
 
12148
  need_version=no
 
12149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12150
  soname_spec='${libname}${release}${shared_ext}$major'
 
12151
  shlibpath_var=LD_LIBRARY_PATH
 
12152
  shlibpath_overrides_runpath=no
 
12153
  hardcode_into_libs=yes
 
12154
  dynamic_linker='NetBSD ld.elf_so'
 
12155
  ;;
 
12156
 
11646
12157
knetbsd*-gnu)
11647
12158
  version_type=linux
11648
12159
  need_lib_prefix=no
11692
12203
 
11693
12204
openbsd*)
11694
12205
  version_type=sunos
 
12206
  sys_lib_dlsearch_path_spec="/usr/lib"
11695
12207
  need_lib_prefix=no
11696
 
  need_version=yes
 
12208
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12209
  case $host_os in
 
12210
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12211
    *)                         need_version=no  ;;
 
12212
  esac
11697
12213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11698
12214
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11699
12215
  shlibpath_var=LD_LIBRARY_PATH
11731
12247
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11732
12248
  ;;
11733
12249
 
11734
 
sco3.2v5*)
11735
 
  version_type=osf
11736
 
  soname_spec='${libname}${release}${shared_ext}$major'
11737
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738
 
  shlibpath_var=LD_LIBRARY_PATH
11739
 
  ;;
11740
 
 
11741
12250
solaris*)
11742
12251
  version_type=linux
11743
12252
  need_lib_prefix=no
11763
12272
  need_version=yes
11764
12273
  ;;
11765
12274
 
11766
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12275
sysv4 | sysv4.3*)
11767
12276
  version_type=linux
11768
12277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769
12278
  soname_spec='${libname}${release}${shared_ext}$major'
11796
12305
  fi
11797
12306
  ;;
11798
12307
 
 
12308
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12309
  version_type=freebsd-elf
 
12310
  need_lib_prefix=no
 
12311
  need_version=no
 
12312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12313
  soname_spec='${libname}${release}${shared_ext}$major'
 
12314
  shlibpath_var=LD_LIBRARY_PATH
 
12315
  hardcode_into_libs=yes
 
12316
  if test "$with_gnu_ld" = yes; then
 
12317
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12318
    shlibpath_overrides_runpath=no
 
12319
  else
 
12320
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12321
    shlibpath_overrides_runpath=yes
 
12322
    case $host_os in
 
12323
      sco3.2v5*)
 
12324
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12325
        ;;
 
12326
    esac
 
12327
  fi
 
12328
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12329
  ;;
 
12330
 
11799
12331
uts4*)
11800
12332
  version_type=linux
11801
12333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811
12343
echo "${ECHO_T}$dynamic_linker" >&6
11812
12344
test "$dynamic_linker" = no && can_build_shared=no
11813
12345
 
 
12346
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12347
if test "$GCC" = yes; then
 
12348
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12349
fi
 
12350
 
11814
12351
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11815
12352
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11816
12353
hardcode_action_CXX=
11817
12354
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11818
 
   test -n "$runpath_var CXX" || \
11819
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12355
   test -n "$runpath_var_CXX" || \
 
12356
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11820
12357
 
11821
12358
  # We can hardcode non-existant directories.
11822
12359
  if test "$hardcode_direct_CXX" != no &&
11848
12385
  enable_fast_install=needless
11849
12386
fi
11850
12387
 
11851
 
striplib=
11852
 
old_striplib=
11853
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11854
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11855
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11856
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11857
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11858
 
  echo "$as_me:$LINENO: result: yes" >&5
11859
 
echo "${ECHO_T}yes" >&6
11860
 
else
11861
 
# FIXME - insert some real tests, host_os isn't really good enough
11862
 
  case $host_os in
11863
 
   darwin*)
11864
 
       if test -n "$STRIP" ; then
11865
 
         striplib="$STRIP -x"
11866
 
         echo "$as_me:$LINENO: result: yes" >&5
11867
 
echo "${ECHO_T}yes" >&6
11868
 
       else
11869
 
  echo "$as_me:$LINENO: result: no" >&5
11870
 
echo "${ECHO_T}no" >&6
11871
 
fi
11872
 
       ;;
11873
 
   *)
11874
 
  echo "$as_me:$LINENO: result: no" >&5
11875
 
echo "${ECHO_T}no" >&6
11876
 
    ;;
11877
 
  esac
11878
 
fi
11879
 
 
11880
 
if test "x$enable_dlopen" != xyes; then
11881
 
  enable_dlopen=unknown
11882
 
  enable_dlopen_self=unknown
11883
 
  enable_dlopen_self_static=unknown
11884
 
else
11885
 
  lt_cv_dlopen=no
11886
 
  lt_cv_dlopen_libs=
11887
 
 
11888
 
  case $host_os in
11889
 
  beos*)
11890
 
    lt_cv_dlopen="load_add_on"
11891
 
    lt_cv_dlopen_libs=
11892
 
    lt_cv_dlopen_self=yes
11893
 
    ;;
11894
 
 
11895
 
  mingw* | pw32*)
11896
 
    lt_cv_dlopen="LoadLibrary"
11897
 
    lt_cv_dlopen_libs=
11898
 
   ;;
11899
 
 
11900
 
  cygwin*)
11901
 
    lt_cv_dlopen="dlopen"
11902
 
    lt_cv_dlopen_libs=
11903
 
   ;;
11904
 
 
11905
 
  darwin*)
11906
 
  # if libdl is installed we need to link against it
11907
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11908
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11909
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11910
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11911
 
else
11912
 
  ac_check_lib_save_LIBS=$LIBS
11913
 
LIBS="-ldl  $LIBS"
11914
 
cat >conftest.$ac_ext <<_ACEOF
11915
 
/* confdefs.h.  */
11916
 
_ACEOF
11917
 
cat confdefs.h >>conftest.$ac_ext
11918
 
cat >>conftest.$ac_ext <<_ACEOF
11919
 
/* end confdefs.h.  */
11920
 
 
11921
 
/* Override any gcc2 internal prototype to avoid an error.  */
11922
 
#ifdef __cplusplus
11923
 
extern "C"
11924
 
#endif
11925
 
/* We use char because int might match the return type of a gcc2
11926
 
   builtin and then its argument prototype would still apply.  */
11927
 
char dlopen ();
11928
 
int
11929
 
main ()
11930
 
{
11931
 
dlopen ();
11932
 
  ;
11933
 
  return 0;
11934
 
}
11935
 
_ACEOF
11936
 
rm -f conftest.$ac_objext conftest$ac_exeext
11937
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11938
 
  (eval $ac_link) 2>conftest.er1
11939
 
  ac_status=$?
11940
 
  grep -v '^ *+' conftest.er1 >conftest.err
11941
 
  rm -f conftest.er1
11942
 
  cat conftest.err >&5
11943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944
 
  (exit $ac_status); } &&
11945
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11946
 
                         || test ! -s conftest.err'
11947
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948
 
  (eval $ac_try) 2>&5
11949
 
  ac_status=$?
11950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
 
  (exit $ac_status); }; } &&
11952
 
         { ac_try='test -s conftest$ac_exeext'
11953
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954
 
  (eval $ac_try) 2>&5
11955
 
  ac_status=$?
11956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957
 
  (exit $ac_status); }; }; then
11958
 
  ac_cv_lib_dl_dlopen=yes
11959
 
else
11960
 
  echo "$as_me: failed program was:" >&5
11961
 
sed 's/^/| /' conftest.$ac_ext >&5
11962
 
 
11963
 
ac_cv_lib_dl_dlopen=no
11964
 
fi
11965
 
rm -f conftest.err conftest.$ac_objext \
11966
 
      conftest$ac_exeext conftest.$ac_ext
11967
 
LIBS=$ac_check_lib_save_LIBS
11968
 
fi
11969
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11970
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11971
 
if test $ac_cv_lib_dl_dlopen = yes; then
11972
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11973
 
else
11974
 
 
11975
 
    lt_cv_dlopen="dyld"
11976
 
    lt_cv_dlopen_libs=
11977
 
    lt_cv_dlopen_self=yes
11978
 
 
11979
 
fi
11980
 
 
11981
 
   ;;
11982
 
 
11983
 
  *)
11984
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11985
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11986
 
if test "${ac_cv_func_shl_load+set}" = set; then
11987
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11988
 
else
11989
 
  cat >conftest.$ac_ext <<_ACEOF
11990
 
/* confdefs.h.  */
11991
 
_ACEOF
11992
 
cat confdefs.h >>conftest.$ac_ext
11993
 
cat >>conftest.$ac_ext <<_ACEOF
11994
 
/* end confdefs.h.  */
11995
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11996
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11997
 
#define shl_load innocuous_shl_load
11998
 
 
11999
 
/* System header to define __stub macros and hopefully few prototypes,
12000
 
    which can conflict with char shl_load (); below.
12001
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002
 
    <limits.h> exists even on freestanding compilers.  */
12003
 
 
12004
 
#ifdef __STDC__
12005
 
# include <limits.h>
12006
 
#else
12007
 
# include <assert.h>
12008
 
#endif
12009
 
 
12010
 
#undef shl_load
12011
 
 
12012
 
/* Override any gcc2 internal prototype to avoid an error.  */
12013
 
#ifdef __cplusplus
12014
 
extern "C"
12015
 
{
12016
 
#endif
12017
 
/* We use char because int might match the return type of a gcc2
12018
 
   builtin and then its argument prototype would still apply.  */
12019
 
char shl_load ();
12020
 
/* The GNU C library defines this for functions which it implements
12021
 
    to always fail with ENOSYS.  Some functions are actually named
12022
 
    something starting with __ and the normal name is an alias.  */
12023
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12024
 
choke me
12025
 
#else
12026
 
char (*f) () = shl_load;
12027
 
#endif
12028
 
#ifdef __cplusplus
12029
 
}
12030
 
#endif
12031
 
 
12032
 
int
12033
 
main ()
12034
 
{
12035
 
return f != shl_load;
12036
 
  ;
12037
 
  return 0;
12038
 
}
12039
 
_ACEOF
12040
 
rm -f conftest.$ac_objext conftest$ac_exeext
12041
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042
 
  (eval $ac_link) 2>conftest.er1
12043
 
  ac_status=$?
12044
 
  grep -v '^ *+' conftest.er1 >conftest.err
12045
 
  rm -f conftest.er1
12046
 
  cat conftest.err >&5
12047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048
 
  (exit $ac_status); } &&
12049
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12050
 
                         || test ! -s conftest.err'
12051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052
 
  (eval $ac_try) 2>&5
12053
 
  ac_status=$?
12054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
 
  (exit $ac_status); }; } &&
12056
 
         { ac_try='test -s conftest$ac_exeext'
12057
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058
 
  (eval $ac_try) 2>&5
12059
 
  ac_status=$?
12060
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061
 
  (exit $ac_status); }; }; then
12062
 
  ac_cv_func_shl_load=yes
12063
 
else
12064
 
  echo "$as_me: failed program was:" >&5
12065
 
sed 's/^/| /' conftest.$ac_ext >&5
12066
 
 
12067
 
ac_cv_func_shl_load=no
12068
 
fi
12069
 
rm -f conftest.err conftest.$ac_objext \
12070
 
      conftest$ac_exeext conftest.$ac_ext
12071
 
fi
12072
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12073
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12074
 
if test $ac_cv_func_shl_load = yes; then
12075
 
  lt_cv_dlopen="shl_load"
12076
 
else
12077
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12078
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12079
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12081
 
else
12082
 
  ac_check_lib_save_LIBS=$LIBS
12083
 
LIBS="-ldld  $LIBS"
12084
 
cat >conftest.$ac_ext <<_ACEOF
12085
 
/* confdefs.h.  */
12086
 
_ACEOF
12087
 
cat confdefs.h >>conftest.$ac_ext
12088
 
cat >>conftest.$ac_ext <<_ACEOF
12089
 
/* end confdefs.h.  */
12090
 
 
12091
 
/* Override any gcc2 internal prototype to avoid an error.  */
12092
 
#ifdef __cplusplus
12093
 
extern "C"
12094
 
#endif
12095
 
/* We use char because int might match the return type of a gcc2
12096
 
   builtin and then its argument prototype would still apply.  */
12097
 
char shl_load ();
12098
 
int
12099
 
main ()
12100
 
{
12101
 
shl_load ();
12102
 
  ;
12103
 
  return 0;
12104
 
}
12105
 
_ACEOF
12106
 
rm -f conftest.$ac_objext conftest$ac_exeext
12107
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108
 
  (eval $ac_link) 2>conftest.er1
12109
 
  ac_status=$?
12110
 
  grep -v '^ *+' conftest.er1 >conftest.err
12111
 
  rm -f conftest.er1
12112
 
  cat conftest.err >&5
12113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114
 
  (exit $ac_status); } &&
12115
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12116
 
                         || test ! -s conftest.err'
12117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118
 
  (eval $ac_try) 2>&5
12119
 
  ac_status=$?
12120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
 
  (exit $ac_status); }; } &&
12122
 
         { ac_try='test -s conftest$ac_exeext'
12123
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124
 
  (eval $ac_try) 2>&5
12125
 
  ac_status=$?
12126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127
 
  (exit $ac_status); }; }; then
12128
 
  ac_cv_lib_dld_shl_load=yes
12129
 
else
12130
 
  echo "$as_me: failed program was:" >&5
12131
 
sed 's/^/| /' conftest.$ac_ext >&5
12132
 
 
12133
 
ac_cv_lib_dld_shl_load=no
12134
 
fi
12135
 
rm -f conftest.err conftest.$ac_objext \
12136
 
      conftest$ac_exeext conftest.$ac_ext
12137
 
LIBS=$ac_check_lib_save_LIBS
12138
 
fi
12139
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12140
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12141
 
if test $ac_cv_lib_dld_shl_load = yes; then
12142
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12143
 
else
12144
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12145
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12146
 
if test "${ac_cv_func_dlopen+set}" = set; then
12147
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12148
 
else
12149
 
  cat >conftest.$ac_ext <<_ACEOF
12150
 
/* confdefs.h.  */
12151
 
_ACEOF
12152
 
cat confdefs.h >>conftest.$ac_ext
12153
 
cat >>conftest.$ac_ext <<_ACEOF
12154
 
/* end confdefs.h.  */
12155
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12156
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12157
 
#define dlopen innocuous_dlopen
12158
 
 
12159
 
/* System header to define __stub macros and hopefully few prototypes,
12160
 
    which can conflict with char dlopen (); below.
12161
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12162
 
    <limits.h> exists even on freestanding compilers.  */
12163
 
 
12164
 
#ifdef __STDC__
12165
 
# include <limits.h>
12166
 
#else
12167
 
# include <assert.h>
12168
 
#endif
12169
 
 
12170
 
#undef dlopen
12171
 
 
12172
 
/* Override any gcc2 internal prototype to avoid an error.  */
12173
 
#ifdef __cplusplus
12174
 
extern "C"
12175
 
{
12176
 
#endif
12177
 
/* We use char because int might match the return type of a gcc2
12178
 
   builtin and then its argument prototype would still apply.  */
12179
 
char dlopen ();
12180
 
/* The GNU C library defines this for functions which it implements
12181
 
    to always fail with ENOSYS.  Some functions are actually named
12182
 
    something starting with __ and the normal name is an alias.  */
12183
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12184
 
choke me
12185
 
#else
12186
 
char (*f) () = dlopen;
12187
 
#endif
12188
 
#ifdef __cplusplus
12189
 
}
12190
 
#endif
12191
 
 
12192
 
int
12193
 
main ()
12194
 
{
12195
 
return f != dlopen;
12196
 
  ;
12197
 
  return 0;
12198
 
}
12199
 
_ACEOF
12200
 
rm -f conftest.$ac_objext conftest$ac_exeext
12201
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202
 
  (eval $ac_link) 2>conftest.er1
12203
 
  ac_status=$?
12204
 
  grep -v '^ *+' conftest.er1 >conftest.err
12205
 
  rm -f conftest.er1
12206
 
  cat conftest.err >&5
12207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
 
  (exit $ac_status); } &&
12209
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12210
 
                         || test ! -s conftest.err'
12211
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212
 
  (eval $ac_try) 2>&5
12213
 
  ac_status=$?
12214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215
 
  (exit $ac_status); }; } &&
12216
 
         { ac_try='test -s conftest$ac_exeext'
12217
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218
 
  (eval $ac_try) 2>&5
12219
 
  ac_status=$?
12220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
 
  (exit $ac_status); }; }; then
12222
 
  ac_cv_func_dlopen=yes
12223
 
else
12224
 
  echo "$as_me: failed program was:" >&5
12225
 
sed 's/^/| /' conftest.$ac_ext >&5
12226
 
 
12227
 
ac_cv_func_dlopen=no
12228
 
fi
12229
 
rm -f conftest.err conftest.$ac_objext \
12230
 
      conftest$ac_exeext conftest.$ac_ext
12231
 
fi
12232
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12233
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12234
 
if test $ac_cv_func_dlopen = yes; then
12235
 
  lt_cv_dlopen="dlopen"
12236
 
else
12237
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12238
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12239
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12241
 
else
12242
 
  ac_check_lib_save_LIBS=$LIBS
12243
 
LIBS="-ldl  $LIBS"
12244
 
cat >conftest.$ac_ext <<_ACEOF
12245
 
/* confdefs.h.  */
12246
 
_ACEOF
12247
 
cat confdefs.h >>conftest.$ac_ext
12248
 
cat >>conftest.$ac_ext <<_ACEOF
12249
 
/* end confdefs.h.  */
12250
 
 
12251
 
/* Override any gcc2 internal prototype to avoid an error.  */
12252
 
#ifdef __cplusplus
12253
 
extern "C"
12254
 
#endif
12255
 
/* We use char because int might match the return type of a gcc2
12256
 
   builtin and then its argument prototype would still apply.  */
12257
 
char dlopen ();
12258
 
int
12259
 
main ()
12260
 
{
12261
 
dlopen ();
12262
 
  ;
12263
 
  return 0;
12264
 
}
12265
 
_ACEOF
12266
 
rm -f conftest.$ac_objext conftest$ac_exeext
12267
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268
 
  (eval $ac_link) 2>conftest.er1
12269
 
  ac_status=$?
12270
 
  grep -v '^ *+' conftest.er1 >conftest.err
12271
 
  rm -f conftest.er1
12272
 
  cat conftest.err >&5
12273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274
 
  (exit $ac_status); } &&
12275
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12276
 
                         || test ! -s conftest.err'
12277
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278
 
  (eval $ac_try) 2>&5
12279
 
  ac_status=$?
12280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
 
  (exit $ac_status); }; } &&
12282
 
         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12288
 
  ac_cv_lib_dl_dlopen=yes
12289
 
else
12290
 
  echo "$as_me: failed program was:" >&5
12291
 
sed 's/^/| /' conftest.$ac_ext >&5
12292
 
 
12293
 
ac_cv_lib_dl_dlopen=no
12294
 
fi
12295
 
rm -f conftest.err conftest.$ac_objext \
12296
 
      conftest$ac_exeext conftest.$ac_ext
12297
 
LIBS=$ac_check_lib_save_LIBS
12298
 
fi
12299
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12300
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12301
 
if test $ac_cv_lib_dl_dlopen = yes; then
12302
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12303
 
else
12304
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12305
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12306
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12308
 
else
12309
 
  ac_check_lib_save_LIBS=$LIBS
12310
 
LIBS="-lsvld  $LIBS"
12311
 
cat >conftest.$ac_ext <<_ACEOF
12312
 
/* confdefs.h.  */
12313
 
_ACEOF
12314
 
cat confdefs.h >>conftest.$ac_ext
12315
 
cat >>conftest.$ac_ext <<_ACEOF
12316
 
/* end confdefs.h.  */
12317
 
 
12318
 
/* Override any gcc2 internal prototype to avoid an error.  */
12319
 
#ifdef __cplusplus
12320
 
extern "C"
12321
 
#endif
12322
 
/* We use char because int might match the return type of a gcc2
12323
 
   builtin and then its argument prototype would still apply.  */
12324
 
char dlopen ();
12325
 
int
12326
 
main ()
12327
 
{
12328
 
dlopen ();
12329
 
  ;
12330
 
  return 0;
12331
 
}
12332
 
_ACEOF
12333
 
rm -f conftest.$ac_objext conftest$ac_exeext
12334
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335
 
  (eval $ac_link) 2>conftest.er1
12336
 
  ac_status=$?
12337
 
  grep -v '^ *+' conftest.er1 >conftest.err
12338
 
  rm -f conftest.er1
12339
 
  cat conftest.err >&5
12340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
 
  (exit $ac_status); } &&
12342
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12343
 
                         || test ! -s conftest.err'
12344
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345
 
  (eval $ac_try) 2>&5
12346
 
  ac_status=$?
12347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348
 
  (exit $ac_status); }; } &&
12349
 
         { ac_try='test -s conftest$ac_exeext'
12350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351
 
  (eval $ac_try) 2>&5
12352
 
  ac_status=$?
12353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
 
  (exit $ac_status); }; }; then
12355
 
  ac_cv_lib_svld_dlopen=yes
12356
 
else
12357
 
  echo "$as_me: failed program was:" >&5
12358
 
sed 's/^/| /' conftest.$ac_ext >&5
12359
 
 
12360
 
ac_cv_lib_svld_dlopen=no
12361
 
fi
12362
 
rm -f conftest.err conftest.$ac_objext \
12363
 
      conftest$ac_exeext conftest.$ac_ext
12364
 
LIBS=$ac_check_lib_save_LIBS
12365
 
fi
12366
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12367
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12368
 
if test $ac_cv_lib_svld_dlopen = yes; then
12369
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12370
 
else
12371
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12372
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12373
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12375
 
else
12376
 
  ac_check_lib_save_LIBS=$LIBS
12377
 
LIBS="-ldld  $LIBS"
12378
 
cat >conftest.$ac_ext <<_ACEOF
12379
 
/* confdefs.h.  */
12380
 
_ACEOF
12381
 
cat confdefs.h >>conftest.$ac_ext
12382
 
cat >>conftest.$ac_ext <<_ACEOF
12383
 
/* end confdefs.h.  */
12384
 
 
12385
 
/* Override any gcc2 internal prototype to avoid an error.  */
12386
 
#ifdef __cplusplus
12387
 
extern "C"
12388
 
#endif
12389
 
/* We use char because int might match the return type of a gcc2
12390
 
   builtin and then its argument prototype would still apply.  */
12391
 
char dld_link ();
12392
 
int
12393
 
main ()
12394
 
{
12395
 
dld_link ();
12396
 
  ;
12397
 
  return 0;
12398
 
}
12399
 
_ACEOF
12400
 
rm -f conftest.$ac_objext conftest$ac_exeext
12401
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402
 
  (eval $ac_link) 2>conftest.er1
12403
 
  ac_status=$?
12404
 
  grep -v '^ *+' conftest.er1 >conftest.err
12405
 
  rm -f conftest.er1
12406
 
  cat conftest.err >&5
12407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408
 
  (exit $ac_status); } &&
12409
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12410
 
                         || test ! -s conftest.err'
12411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412
 
  (eval $ac_try) 2>&5
12413
 
  ac_status=$?
12414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415
 
  (exit $ac_status); }; } &&
12416
 
         { ac_try='test -s conftest$ac_exeext'
12417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418
 
  (eval $ac_try) 2>&5
12419
 
  ac_status=$?
12420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421
 
  (exit $ac_status); }; }; then
12422
 
  ac_cv_lib_dld_dld_link=yes
12423
 
else
12424
 
  echo "$as_me: failed program was:" >&5
12425
 
sed 's/^/| /' conftest.$ac_ext >&5
12426
 
 
12427
 
ac_cv_lib_dld_dld_link=no
12428
 
fi
12429
 
rm -f conftest.err conftest.$ac_objext \
12430
 
      conftest$ac_exeext conftest.$ac_ext
12431
 
LIBS=$ac_check_lib_save_LIBS
12432
 
fi
12433
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12434
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12435
 
if test $ac_cv_lib_dld_dld_link = yes; then
12436
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12437
 
fi
12438
 
 
12439
 
 
12440
 
fi
12441
 
 
12442
 
 
12443
 
fi
12444
 
 
12445
 
 
12446
 
fi
12447
 
 
12448
 
 
12449
 
fi
12450
 
 
12451
 
 
12452
 
fi
12453
 
 
12454
 
    ;;
12455
 
  esac
12456
 
 
12457
 
  if test "x$lt_cv_dlopen" != xno; then
12458
 
    enable_dlopen=yes
12459
 
  else
12460
 
    enable_dlopen=no
12461
 
  fi
12462
 
 
12463
 
  case $lt_cv_dlopen in
12464
 
  dlopen)
12465
 
    save_CPPFLAGS="$CPPFLAGS"
12466
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12467
 
 
12468
 
    save_LDFLAGS="$LDFLAGS"
12469
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12470
 
 
12471
 
    save_LIBS="$LIBS"
12472
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12473
 
 
12474
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12475
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12476
 
if test "${lt_cv_dlopen_self+set}" = set; then
12477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12478
 
else
12479
 
          if test "$cross_compiling" = yes; then :
12480
 
  lt_cv_dlopen_self=cross
12481
 
else
12482
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12483
 
  lt_status=$lt_dlunknown
12484
 
  cat > conftest.$ac_ext <<EOF
12485
 
#line 12485 "configure"
12486
 
#include "confdefs.h"
12487
 
 
12488
 
#if HAVE_DLFCN_H
12489
 
#include <dlfcn.h>
12490
 
#endif
12491
 
 
12492
 
#include <stdio.h>
12493
 
 
12494
 
#ifdef RTLD_GLOBAL
12495
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12496
 
#else
12497
 
#  ifdef DL_GLOBAL
12498
 
#    define LT_DLGLOBAL         DL_GLOBAL
12499
 
#  else
12500
 
#    define LT_DLGLOBAL         0
12501
 
#  endif
12502
 
#endif
12503
 
 
12504
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12505
 
   find out it does not work in some platform. */
12506
 
#ifndef LT_DLLAZY_OR_NOW
12507
 
#  ifdef RTLD_LAZY
12508
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12509
 
#  else
12510
 
#    ifdef DL_LAZY
12511
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12512
 
#    else
12513
 
#      ifdef RTLD_NOW
12514
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12515
 
#      else
12516
 
#        ifdef DL_NOW
12517
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12518
 
#        else
12519
 
#          define LT_DLLAZY_OR_NOW      0
12520
 
#        endif
12521
 
#      endif
12522
 
#    endif
12523
 
#  endif
12524
 
#endif
12525
 
 
12526
 
#ifdef __cplusplus
12527
 
extern "C" void exit (int);
12528
 
#endif
12529
 
 
12530
 
void fnord() { int i=42;}
12531
 
int main ()
12532
 
{
12533
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12534
 
  int status = $lt_dlunknown;
12535
 
 
12536
 
  if (self)
12537
 
    {
12538
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12539
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12540
 
      /* dlclose (self); */
12541
 
    }
12542
 
 
12543
 
    exit (status);
12544
 
}
12545
 
EOF
12546
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547
 
  (eval $ac_link) 2>&5
12548
 
  ac_status=$?
12549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12551
 
    (./conftest; exit; ) 2>/dev/null
12552
 
    lt_status=$?
12553
 
    case x$lt_status in
12554
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12555
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12556
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12557
 
    esac
12558
 
  else :
12559
 
    # compilation failed
12560
 
    lt_cv_dlopen_self=no
12561
 
  fi
12562
 
fi
12563
 
rm -fr conftest*
12564
 
 
12565
 
 
12566
 
fi
12567
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12568
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12569
 
 
12570
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12571
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12572
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12573
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12574
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12575
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12576
 
else
12577
 
          if test "$cross_compiling" = yes; then :
12578
 
  lt_cv_dlopen_self_static=cross
12579
 
else
12580
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581
 
  lt_status=$lt_dlunknown
12582
 
  cat > conftest.$ac_ext <<EOF
12583
 
#line 12583 "configure"
12584
 
#include "confdefs.h"
12585
 
 
12586
 
#if HAVE_DLFCN_H
12587
 
#include <dlfcn.h>
12588
 
#endif
12589
 
 
12590
 
#include <stdio.h>
12591
 
 
12592
 
#ifdef RTLD_GLOBAL
12593
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12594
 
#else
12595
 
#  ifdef DL_GLOBAL
12596
 
#    define LT_DLGLOBAL         DL_GLOBAL
12597
 
#  else
12598
 
#    define LT_DLGLOBAL         0
12599
 
#  endif
12600
 
#endif
12601
 
 
12602
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603
 
   find out it does not work in some platform. */
12604
 
#ifndef LT_DLLAZY_OR_NOW
12605
 
#  ifdef RTLD_LAZY
12606
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12607
 
#  else
12608
 
#    ifdef DL_LAZY
12609
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12610
 
#    else
12611
 
#      ifdef RTLD_NOW
12612
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12613
 
#      else
12614
 
#        ifdef DL_NOW
12615
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12616
 
#        else
12617
 
#          define LT_DLLAZY_OR_NOW      0
12618
 
#        endif
12619
 
#      endif
12620
 
#    endif
12621
 
#  endif
12622
 
#endif
12623
 
 
12624
 
#ifdef __cplusplus
12625
 
extern "C" void exit (int);
12626
 
#endif
12627
 
 
12628
 
void fnord() { int i=42;}
12629
 
int main ()
12630
 
{
12631
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12632
 
  int status = $lt_dlunknown;
12633
 
 
12634
 
  if (self)
12635
 
    {
12636
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12637
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12638
 
      /* dlclose (self); */
12639
 
    }
12640
 
 
12641
 
    exit (status);
12642
 
}
12643
 
EOF
12644
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
 
  (eval $ac_link) 2>&5
12646
 
  ac_status=$?
12647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12649
 
    (./conftest; exit; ) 2>/dev/null
12650
 
    lt_status=$?
12651
 
    case x$lt_status in
12652
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12653
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12654
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12655
 
    esac
12656
 
  else :
12657
 
    # compilation failed
12658
 
    lt_cv_dlopen_self_static=no
12659
 
  fi
12660
 
fi
12661
 
rm -fr conftest*
12662
 
 
12663
 
 
12664
 
fi
12665
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12666
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12667
 
    fi
12668
 
 
12669
 
    CPPFLAGS="$save_CPPFLAGS"
12670
 
    LDFLAGS="$save_LDFLAGS"
12671
 
    LIBS="$save_LIBS"
12672
 
    ;;
12673
 
  esac
12674
 
 
12675
 
  case $lt_cv_dlopen_self in
12676
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12677
 
  *) enable_dlopen_self=unknown ;;
12678
 
  esac
12679
 
 
12680
 
  case $lt_cv_dlopen_self_static in
12681
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12682
 
  *) enable_dlopen_self_static=unknown ;;
12683
 
  esac
12684
 
fi
12685
 
 
12686
12388
 
12687
12389
# The else clause should only fire when bootstrapping the
12688
12390
# libtool distribution, otherwise you forgot to ship ltmain.sh
12697
12399
  # Now quote all the things that may contain metacharacters while being
12698
12400
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12699
12401
  # variables and quote the copies for generation of the libtool script.
12700
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12402
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12701
12403
    SED SHELL STRIP \
12702
12404
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12703
12405
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12798
12500
# The host system.
12799
12501
host_alias=$host_alias
12800
12502
host=$host
 
12503
host_os=$host_os
 
12504
 
 
12505
# The build system.
 
12506
build_alias=$build_alias
 
12507
build=$build
 
12508
build_os=$build_os
12801
12509
 
12802
12510
# An echo program that does not interpret backslashes.
12803
12511
echo=$lt_echo
12809
12517
# A C compiler.
12810
12518
LTCC=$lt_LTCC
12811
12519
 
 
12520
# LTCC compiler flags.
 
12521
LTCFLAGS=$lt_LTCFLAGS
 
12522
 
12812
12523
# A language-specific compiler.
12813
12524
CC=$lt_compiler_CXX
12814
12525
 
12874
12585
# Does compiler simultaneously support -c and -o options?
12875
12586
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12876
12587
 
12877
 
# Must we lock files when doing compilation ?
 
12588
# Must we lock files when doing compilation?
12878
12589
need_locks=$lt_need_locks
12879
12590
 
12880
12591
# Do we need the lib prefix for modules?
13151
12862
# If no C compiler was specified, use CC.
13152
12863
LTCC=${LTCC-"$CC"}
13153
12864
 
 
12865
# If no C compiler flags were specified, use CFLAGS.
 
12866
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12867
 
13154
12868
# Allow CC to be a program name with arguments.
13155
12869
compiler=$CC
13156
12870
 
13157
12871
 
 
12872
# save warnings/boilerplate of simple test code
 
12873
ac_outfile=conftest.$ac_objext
 
12874
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12875
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12876
_lt_compiler_boilerplate=`cat conftest.err`
 
12877
$rm conftest*
 
12878
 
 
12879
ac_outfile=conftest.$ac_objext
 
12880
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12881
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12882
_lt_linker_boilerplate=`cat conftest.err`
 
12883
$rm conftest*
 
12884
 
 
12885
 
13158
12886
# Allow CC to be a program name with arguments.
13159
12887
lt_save_CC="$CC"
13160
12888
CC=${F77-"f77"}
13161
12889
compiler=$CC
13162
12890
compiler_F77=$CC
13163
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12891
for cc_temp in $compiler""; do
 
12892
  case $cc_temp in
 
12893
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12894
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12895
    \-*) ;;
 
12896
    *) break;;
 
12897
  esac
 
12898
done
 
12899
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12900
 
13164
12901
 
13165
12902
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13166
12903
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13173
12910
 
13174
12911
# On AIX, shared libraries and static libraries use the same namespace, and
13175
12912
# are all built from PIC.
13176
 
case "$host_os" in
 
12913
case $host_os in
13177
12914
aix3*)
13178
12915
  test "$enable_shared" = yes && enable_static=no
13179
12916
  if test -n "$RANLIB"; then
13182
12919
  fi
13183
12920
  ;;
13184
12921
aix4* | aix5*)
13185
 
  test "$enable_shared" = yes && enable_static=no
 
12922
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12923
    test "$enable_shared" = yes && enable_static=no
 
12924
  fi
13186
12925
  ;;
13187
12926
esac
13188
12927
echo "$as_me:$LINENO: result: $enable_shared" >&5
13195
12934
echo "$as_me:$LINENO: result: $enable_static" >&5
13196
12935
echo "${ECHO_T}$enable_static" >&6
13197
12936
 
13198
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13199
 
 
13200
12937
GCC_F77="$G77"
13201
12938
LD_F77="$LD"
13202
12939
 
13243
12980
      lt_prog_compiler_pic_F77='-fno-common'
13244
12981
      ;;
13245
12982
 
 
12983
    interix3*)
 
12984
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12985
      # Instead, we relocate shared libraries at runtime.
 
12986
      ;;
 
12987
 
13246
12988
    msdosdjgpp*)
13247
12989
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13248
12990
      # on systems that don't support them.
13259
13001
    hpux*)
13260
13002
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13261
13003
      # not for PA HP-UX.
13262
 
      case "$host_cpu" in
 
13004
      case $host_cpu in
13263
13005
      hppa*64*|ia64*)
13264
13006
        # +Z the default
13265
13007
        ;;
13285
13027
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13286
13028
      fi
13287
13029
      ;;
 
13030
      darwin*)
 
13031
        # PIC is the default on this platform
 
13032
        # Common symbols not allowed in MH_DYLIB files
 
13033
       case $cc_basename in
 
13034
         xlc*)
 
13035
         lt_prog_compiler_pic_F77='-qnocommon'
 
13036
         lt_prog_compiler_wl_F77='-Wl,'
 
13037
         ;;
 
13038
       esac
 
13039
       ;;
13288
13040
 
13289
13041
    mingw* | pw32* | os2*)
13290
13042
      # This hack is so that the source file can tell whether it is being
13296
13048
      lt_prog_compiler_wl_F77='-Wl,'
13297
13049
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298
13050
      # not for PA HP-UX.
13299
 
      case "$host_cpu" in
 
13051
      case $host_cpu in
13300
13052
      hppa*64*|ia64*)
13301
13053
        # +Z the default
13302
13054
        ;;
13320
13072
      ;;
13321
13073
 
13322
13074
    linux*)
13323
 
      case $CC in
 
13075
      case $cc_basename in
13324
13076
      icc* | ecc*)
13325
13077
        lt_prog_compiler_wl_F77='-Wl,'
13326
13078
        lt_prog_compiler_pic_F77='-KPIC'
13327
13079
        lt_prog_compiler_static_F77='-static'
13328
13080
        ;;
 
13081
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13082
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13083
        # which looks to be a dead project)
 
13084
        lt_prog_compiler_wl_F77='-Wl,'
 
13085
        lt_prog_compiler_pic_F77='-fpic'
 
13086
        lt_prog_compiler_static_F77='-Bstatic'
 
13087
        ;;
13329
13088
      ccc*)
13330
13089
        lt_prog_compiler_wl_F77='-Wl,'
13331
13090
        # All Alpha code is PIC.
13340
13099
      lt_prog_compiler_static_F77='-non_shared'
13341
13100
      ;;
13342
13101
 
13343
 
    sco3.2v5*)
13344
 
      lt_prog_compiler_pic_F77='-Kpic'
13345
 
      lt_prog_compiler_static_F77='-dn'
13346
 
      ;;
13347
 
 
13348
13102
    solaris*)
13349
 
      lt_prog_compiler_wl_F77='-Wl,'
13350
13103
      lt_prog_compiler_pic_F77='-KPIC'
13351
13104
      lt_prog_compiler_static_F77='-Bstatic'
 
13105
      case $cc_basename in
 
13106
      f77* | f90* | f95*)
 
13107
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13108
      *)
 
13109
        lt_prog_compiler_wl_F77='-Wl,';;
 
13110
      esac
13352
13111
      ;;
13353
13112
 
13354
13113
    sunos4*)
13357
13116
      lt_prog_compiler_static_F77='-Bstatic'
13358
13117
      ;;
13359
13118
 
13360
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13119
    sysv4 | sysv4.2uw2* | sysv4.3*)
13361
13120
      lt_prog_compiler_wl_F77='-Wl,'
13362
13121
      lt_prog_compiler_pic_F77='-KPIC'
13363
13122
      lt_prog_compiler_static_F77='-Bstatic'
13370
13129
      fi
13371
13130
      ;;
13372
13131
 
 
13132
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13133
      lt_prog_compiler_wl_F77='-Wl,'
 
13134
      lt_prog_compiler_pic_F77='-KPIC'
 
13135
      lt_prog_compiler_static_F77='-Bstatic'
 
13136
      ;;
 
13137
 
 
13138
    unicos*)
 
13139
      lt_prog_compiler_wl_F77='-Wl,'
 
13140
      lt_prog_compiler_can_build_shared_F77=no
 
13141
      ;;
 
13142
 
13373
13143
    uts4*)
13374
13144
      lt_prog_compiler_pic_F77='-pic'
13375
13145
      lt_prog_compiler_static_F77='-Bstatic'
13404
13174
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13405
13175
   # The option is referenced via a variable to avoid confusing sed.
13406
13176
   lt_compile=`echo "$ac_compile" | $SED \
13407
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13177
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13408
13178
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409
13179
   -e 's:$: $lt_compiler_flag:'`
13410
 
   (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
 
13180
   (eval echo "\"\$as_me:13180: $lt_compile\"" >&5)
13411
13181
   (eval "$lt_compile" 2>conftest.err)
13412
13182
   ac_status=$?
13413
13183
   cat conftest.err >&5
13414
 
   echo "$as_me:13414: \$? = $ac_status" >&5
 
13184
   echo "$as_me:13184: \$? = $ac_status" >&5
13415
13185
   if (exit $ac_status) && test -s "$ac_outfile"; then
13416
13186
     # The compiler can only warn and ignore the option if not recognized
13417
 
     # So say no if there are warnings
13418
 
     if test ! -s conftest.err; then
 
13187
     # So say no if there are warnings other than the usual output.
 
13188
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13189
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13190
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13419
13191
       lt_prog_compiler_pic_works_F77=yes
13420
13192
     fi
13421
13193
   fi
13436
13208
fi
13437
13209
 
13438
13210
fi
13439
 
case "$host_os" in
 
13211
case $host_os in
13440
13212
  # For platforms which do not support PIC, -DPIC is meaningless:
13441
13213
  *djgpp*)
13442
13214
    lt_prog_compiler_pic_F77=
13446
13218
    ;;
13447
13219
esac
13448
13220
 
 
13221
#
 
13222
# Check to make sure the static flag actually works.
 
13223
#
 
13224
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13225
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13226
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13227
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13229
else
 
13230
  lt_prog_compiler_static_works_F77=no
 
13231
   save_LDFLAGS="$LDFLAGS"
 
13232
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13233
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13234
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13235
     # The linker can only warn and ignore the option if not recognized
 
13236
     # So say no if there are warnings
 
13237
     if test -s conftest.err; then
 
13238
       # Append any errors to the config.log.
 
13239
       cat conftest.err 1>&5
 
13240
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13241
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13242
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13243
         lt_prog_compiler_static_works_F77=yes
 
13244
       fi
 
13245
     else
 
13246
       lt_prog_compiler_static_works_F77=yes
 
13247
     fi
 
13248
   fi
 
13249
   $rm conftest*
 
13250
   LDFLAGS="$save_LDFLAGS"
 
13251
 
 
13252
fi
 
13253
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13254
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13255
 
 
13256
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13257
    :
 
13258
else
 
13259
    lt_prog_compiler_static_F77=
 
13260
fi
 
13261
 
 
13262
 
13449
13263
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13450
13264
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13451
13265
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13464
13278
   # Note that $ac_compile itself does not contain backslashes and begins
13465
13279
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13466
13280
   lt_compile=`echo "$ac_compile" | $SED \
13467
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13281
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13468
13282
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13469
13283
   -e 's:$: $lt_compiler_flag:'`
13470
 
   (eval echo "\"\$as_me:13470: $lt_compile\"" >&5)
 
13284
   (eval echo "\"\$as_me:13284: $lt_compile\"" >&5)
13471
13285
   (eval "$lt_compile" 2>out/conftest.err)
13472
13286
   ac_status=$?
13473
13287
   cat out/conftest.err >&5
13474
 
   echo "$as_me:13474: \$? = $ac_status" >&5
 
13288
   echo "$as_me:13288: \$? = $ac_status" >&5
13475
13289
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13476
13290
   then
13477
13291
     # The compiler can only warn and ignore the option if not recognized
13478
13292
     # So say no if there are warnings
13479
 
     if test ! -s out/conftest.err; then
 
13293
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13294
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13295
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13480
13296
       lt_cv_prog_compiler_c_o_F77=yes
13481
13297
     fi
13482
13298
   fi
13483
 
   chmod u+w .
 
13299
   chmod u+w . 2>&5
13484
13300
   $rm conftest*
13485
13301
   # SGI C++ compiler will create directory out/ii_files/ for
13486
13302
   # template instantiation
13556
13372
  # rely on this symbol name, it's probably fine to never include it in
13557
13373
  # preloaded symbol tables.
13558
13374
  extract_expsyms_cmds=
 
13375
  # Just being paranoid about ensuring that cc_basename is set.
 
13376
  for cc_temp in $compiler""; do
 
13377
  case $cc_temp in
 
13378
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13379
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13380
    \-*) ;;
 
13381
    *) break;;
 
13382
  esac
 
13383
done
 
13384
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13559
13385
 
13560
13386
  case $host_os in
13561
13387
  cygwin* | mingw* | pw32*)
13566
13392
      with_gnu_ld=no
13567
13393
    fi
13568
13394
    ;;
 
13395
  interix*)
 
13396
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13397
    with_gnu_ld=yes
 
13398
    ;;
13569
13399
  openbsd*)
13570
13400
    with_gnu_ld=no
13571
13401
    ;;
13576
13406
    # If archive_cmds runs LD, not CC, wlarc should be empty
13577
13407
    wlarc='${wl}'
13578
13408
 
 
13409
    # Set some defaults for GNU ld with shared library support. These
 
13410
    # are reset later if shared libraries are not supported. Putting them
 
13411
    # here allows them to be overridden if necessary.
 
13412
    runpath_var=LD_RUN_PATH
 
13413
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13414
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13415
    # ancient GNU ld didn't support --whole-archive et. al.
 
13416
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13417
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13418
      else
 
13419
        whole_archive_flag_spec_F77=
 
13420
    fi
 
13421
    supports_anon_versioning=no
 
13422
    case `$LD -v 2>/dev/null` in
 
13423
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13424
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13425
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13426
      *\ 2.11.*) ;; # other 2.11 versions
 
13427
      *) supports_anon_versioning=yes ;;
 
13428
    esac
 
13429
 
13579
13430
    # See if GNU ld supports shared libraries.
13580
13431
    case $host_os in
13581
13432
    aix3* | aix4* | aix5*)
13626
13477
      allow_undefined_flag_F77=unsupported
13627
13478
      always_export_symbols_F77=no
13628
13479
      enable_shared_with_static_runtimes_F77=yes
13629
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13480
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13630
13481
 
13631
13482
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13483
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13633
13484
        # If the export-symbols file already is a .def file (1st line
13634
13485
        # is EXPORTS), use it as is; otherwise, prepend...
13635
13486
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638
13489
          echo EXPORTS > $output_objdir/$soname.def;
13639
13490
          cat $export_symbols >> $output_objdir/$soname.def;
13640
13491
        fi~
13641
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13642
 
      else
13643
 
        ld_shlibs=no
13644
 
      fi
13645
 
      ;;
13646
 
 
13647
 
    netbsd*)
 
13492
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13493
      else
 
13494
        ld_shlibs_F77=no
 
13495
      fi
 
13496
      ;;
 
13497
 
 
13498
    interix3*)
 
13499
      hardcode_direct_F77=no
 
13500
      hardcode_shlibpath_var_F77=no
 
13501
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13502
      export_dynamic_flag_spec_F77='${wl}-E'
 
13503
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13504
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13505
      # default) and relocated if they conflict, which is a slow very memory
 
13506
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13507
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13508
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13509
      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'
 
13510
      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'
 
13511
      ;;
 
13512
 
 
13513
    linux*)
 
13514
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13515
        tmp_addflag=
 
13516
        case $cc_basename,$host_cpu in
 
13517
        pgcc*)                          # Portland Group C compiler
 
13518
          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'
 
13519
          tmp_addflag=' $pic_flag'
 
13520
          ;;
 
13521
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13522
          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'
 
13523
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13524
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13525
          tmp_addflag=' -i_dynamic' ;;
 
13526
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13527
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13528
        ifc* | ifort*)                  # Intel Fortran compiler
 
13529
          tmp_addflag=' -nofor_main' ;;
 
13530
        esac
 
13531
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13532
 
 
13533
        if test $supports_anon_versioning = yes; then
 
13534
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13535
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13536
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13537
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13538
        fi
 
13539
        link_all_deplibs_F77=no
 
13540
      else
 
13541
        ld_shlibs_F77=no
 
13542
      fi
 
13543
      ;;
 
13544
 
 
13545
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13648
13546
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13649
13547
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13650
13548
        wlarc=
13654
13552
      fi
13655
13553
      ;;
13656
13554
 
13657
 
    solaris* | sysv5*)
 
13555
    solaris*)
13658
13556
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13659
13557
        ld_shlibs_F77=no
13660
13558
        cat <<EOF 1>&2
13675
13573
      fi
13676
13574
      ;;
13677
13575
 
 
13576
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13577
      case `$LD -v 2>&1` in
 
13578
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13579
        ld_shlibs_F77=no
 
13580
        cat <<_LT_EOF 1>&2
 
13581
 
 
13582
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13583
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13584
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13585
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13586
*** your PATH or compiler configuration so that the native linker is
 
13587
*** used, and then restart.
 
13588
 
 
13589
_LT_EOF
 
13590
        ;;
 
13591
        *)
 
13592
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13593
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13594
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13595
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13596
          else
 
13597
            ld_shlibs_F77=no
 
13598
          fi
 
13599
        ;;
 
13600
      esac
 
13601
      ;;
 
13602
 
13678
13603
    sunos4*)
13679
13604
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13680
13605
      wlarc=
13682
13607
      hardcode_shlibpath_var_F77=no
13683
13608
      ;;
13684
13609
 
13685
 
  linux*)
13686
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688
 
        archive_cmds_F77="$tmp_archive_cmds"
13689
 
      supports_anon_versioning=no
13690
 
      case `$LD -v 2>/dev/null` in
13691
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13692
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13693
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13694
 
        *\ 2.11.*) ;; # other 2.11 versions
13695
 
        *) supports_anon_versioning=yes ;;
13696
 
      esac
13697
 
      if test $supports_anon_versioning = yes; then
13698
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13699
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13700
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13701
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13702
 
      else
13703
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13704
 
      fi
13705
 
    else
13706
 
      ld_shlibs_F77=no
13707
 
    fi
13708
 
    ;;
13709
 
 
13710
13610
    *)
13711
13611
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13712
13612
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13717
13617
      ;;
13718
13618
    esac
13719
13619
 
13720
 
    if test "$ld_shlibs_F77" = yes; then
13721
 
      runpath_var=LD_RUN_PATH
13722
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13723
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13724
 
      # ancient GNU ld didn't support --whole-archive et. al.
13725
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13726
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13727
 
      else
13728
 
        whole_archive_flag_spec_F77=
13729
 
      fi
 
13620
    if test "$ld_shlibs_F77" = no; then
 
13621
      runpath_var=
 
13622
      hardcode_libdir_flag_spec_F77=
 
13623
      export_dynamic_flag_spec_F77=
 
13624
      whole_archive_flag_spec_F77=
13730
13625
    fi
13731
13626
  else
13732
13627
    # PORTME fill in a description of your system's linker (not GNU ld)
13738
13633
      # Note: this linker hardcodes the directories in LIBPATH if there
13739
13634
      # are no directories specified by -L.
13740
13635
      hardcode_minus_L_F77=yes
13741
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13636
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13742
13637
        # Neither direct hardcoding nor static linking is supported with a
13743
13638
        # broken collect2.
13744
13639
        hardcode_direct_F77=unsupported
13772
13667
            break
13773
13668
          fi
13774
13669
          done
 
13670
          ;;
13775
13671
        esac
13776
13672
 
13777
13673
        exp_sym_flag='-bexport'
13790
13686
      link_all_deplibs_F77=yes
13791
13687
 
13792
13688
      if test "$GCC" = yes; then
13793
 
        case $host_os in aix4.012|aix4.012.*)
 
13689
        case $host_os in aix4.[012]|aix4.[012].*)
13794
13690
        # We only want to do this on AIX 4.2 and lower, the check
13795
13691
        # below for broken collect2 doesn't work under 4.3+
13796
13692
          collect2name=`${CC} -print-prog-name=collect2`
13809
13705
          hardcode_libdir_flag_spec_F77='-L$libdir'
13810
13706
          hardcode_libdir_separator_F77=
13811
13707
          fi
 
13708
          ;;
13812
13709
        esac
13813
13710
        shared_flag='-shared'
 
13711
        if test "$aix_use_runtimelinking" = yes; then
 
13712
          shared_flag="$shared_flag "'${wl}-G'
 
13713
        fi
13814
13714
      else
13815
13715
        # not using gcc
13816
13716
        if test "$host_cpu" = ia64; then
13818
13718
        # chokes on -Wl,-G. The following line is correct:
13819
13719
          shared_flag='-G'
13820
13720
        else
13821
 
        if test "$aix_use_runtimelinking" = yes; then
 
13721
          if test "$aix_use_runtimelinking" = yes; then
13822
13722
            shared_flag='${wl}-G'
13823
13723
          else
13824
13724
            shared_flag='${wl}-bM:SRE'
13825
 
        fi
 
13725
          fi
13826
13726
        fi
13827
13727
      fi
13828
13728
 
13848
13748
  cat conftest.err >&5
13849
13749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850
13750
  (exit $ac_status); } &&
13851
 
         { ac_try='test -z "$ac_f77_werror_flag"
13852
 
                         || test ! -s conftest.err'
 
13751
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13853
13752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854
13753
  (eval $ac_try) 2>&5
13855
13754
  ac_status=$?
13877
13776
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13878
13777
 
13879
13778
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880
 
        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"
 
13779
        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"
13881
13780
       else
13882
13781
        if test "$host_cpu" = ia64; then
13883
13782
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13884
13783
          allow_undefined_flag_F77="-z nodefs"
13885
 
          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"
 
13784
          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"
13886
13785
        else
13887
13786
         # Determine the default libpath from the value encoded in an empty executable.
13888
13787
         cat >conftest.$ac_ext <<_ACEOF
13899
13798
  cat conftest.err >&5
13900
13799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901
13800
  (exit $ac_status); } &&
13902
 
         { ac_try='test -z "$ac_f77_werror_flag"
13903
 
                         || test ! -s conftest.err'
 
13801
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13904
13802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905
13803
  (eval $ac_try) 2>&5
13906
13804
  ac_status=$?
13932
13830
          # -berok will link without error, but may produce a broken library.
13933
13831
          no_undefined_flag_F77=' ${wl}-bernotok'
13934
13832
          allow_undefined_flag_F77=' ${wl}-berok'
13935
 
          # -bexpall does not export symbols beginning with underscore (_)
13936
 
          always_export_symbols_F77=yes
13937
13833
          # Exported symbols can be pulled into shared objects from archives
13938
 
          whole_archive_flag_spec_F77=' '
 
13834
          whole_archive_flag_spec_F77='$convenience'
13939
13835
          archive_cmds_need_lc_F77=yes
13940
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13941
 
          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'
 
13836
          # This is similar to how AIX traditionally builds its shared libraries.
 
13837
          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'
13942
13838
        fi
13943
13839
      fi
13944
13840
      ;;
13951
13847
      ld_shlibs_F77=no
13952
13848
      ;;
13953
13849
 
13954
 
    bsdi4*)
 
13850
    bsdi[45]*)
13955
13851
      export_dynamic_flag_spec_F77=-rdynamic
13956
13852
      ;;
13957
13853
 
13972
13868
      old_archive_From_new_cmds_F77='true'
13973
13869
      # FIXME: Should let the user specify the lib program.
13974
13870
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13975
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13871
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13976
13872
      enable_shared_with_static_runtimes_F77=yes
13977
13873
      ;;
13978
13874
 
13979
13875
    darwin* | rhapsody*)
13980
 
    if test "$GXX" = yes ; then
 
13876
      case $host_os in
 
13877
        rhapsody* | darwin1.[012])
 
13878
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13879
         ;;
 
13880
       *) # Darwin 1.3 on
 
13881
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13882
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13883
         else
 
13884
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13885
             10.[012])
 
13886
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13887
               ;;
 
13888
             10.*)
 
13889
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13890
               ;;
 
13891
           esac
 
13892
         fi
 
13893
         ;;
 
13894
      esac
13981
13895
      archive_cmds_need_lc_F77=no
13982
 
      case "$host_os" in
13983
 
      rhapsody* | darwin1.[012])
13984
 
        allow_undefined_flag_F77='-undefined suppress'
13985
 
        ;;
13986
 
      *) # Darwin 1.3 on
13987
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13988
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13989
 
      else
13990
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13991
 
          10.[012])
13992
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13993
 
            ;;
13994
 
          10.*)
13995
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13996
 
            ;;
13997
 
        esac
13998
 
      fi
13999
 
        ;;
14000
 
      esac
14001
 
        lt_int_apple_cc_single_mod=no
14002
 
        output_verbose_link_cmd='echo'
14003
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14004
 
          lt_int_apple_cc_single_mod=yes
14005
 
        fi
14006
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14007
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14008
 
        else
14009
 
        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'
14010
 
      fi
14011
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14012
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14013
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14014
 
          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}'
14015
 
        else
14016
 
          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}'
14017
 
        fi
14018
 
          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}'
14019
13896
      hardcode_direct_F77=no
14020
13897
      hardcode_automatic_F77=yes
14021
13898
      hardcode_shlibpath_var_F77=unsupported
14022
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13899
      whole_archive_flag_spec_F77=''
14023
13900
      link_all_deplibs_F77=yes
 
13901
    if test "$GCC" = yes ; then
 
13902
        output_verbose_link_cmd='echo'
 
13903
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13904
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13905
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13906
      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}'
 
13907
      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}'
14024
13908
    else
14025
 
      ld_shlibs_F77=no
 
13909
      case $cc_basename in
 
13910
        xlc*)
 
13911
         output_verbose_link_cmd='echo'
 
13912
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13913
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13914
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13915
         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}'
 
13916
          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}'
 
13917
          ;;
 
13918
       *)
 
13919
         ld_shlibs_F77=no
 
13920
          ;;
 
13921
      esac
14026
13922
    fi
14027
13923
      ;;
14028
13924
 
14056
13952
      ;;
14057
13953
 
14058
13954
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14059
 
    freebsd* | kfreebsd*-gnu)
14060
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14061
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14062
 
      hardcode_direct_F77=yes
14063
 
      hardcode_shlibpath_var_F77=no
 
13955
    freebsd* | dragonfly*)
 
13956
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13957
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13958
      hardcode_direct_F77=yes
 
13959
      hardcode_shlibpath_var_F77=no
 
13960
      ;;
 
13961
 
 
13962
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
13963
    kfreebsd*-gnu)
 
13964
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13965
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13966
      hardcode_direct_F77=yes
 
13967
      hardcode_shlibpath_var_F77=no
 
13968
      link_all_deplibs_F77=no
14064
13969
      ;;
14065
13970
 
14066
13971
    hpux9*)
14079
13984
      export_dynamic_flag_spec_F77='${wl}-E'
14080
13985
      ;;
14081
13986
 
14082
 
    hpux10* | hpux11*)
14083
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14084
 
        case "$host_cpu" in
14085
 
        hppa*64*|ia64*)
 
13987
    hpux10*)
 
13988
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13989
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13990
      else
 
13991
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13992
      fi
 
13993
      if test "$with_gnu_ld" = no; then
 
13994
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13995
        hardcode_libdir_separator_F77=:
 
13996
 
 
13997
        hardcode_direct_F77=yes
 
13998
        export_dynamic_flag_spec_F77='${wl}-E'
 
13999
 
 
14000
        # hardcode_minus_L: Not really in the search PATH,
 
14001
        # but as the default location of the library.
 
14002
        hardcode_minus_L_F77=yes
 
14003
      fi
 
14004
      ;;
 
14005
 
 
14006
    hpux11*)
 
14007
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14008
        case $host_cpu in
 
14009
        hppa*64*)
14086
14010
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14087
14011
          ;;
 
14012
        ia64*)
 
14013
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14014
          ;;
14088
14015
        *)
14089
14016
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14090
14017
          ;;
14091
14018
        esac
14092
14019
      else
14093
 
        case "$host_cpu" in
14094
 
        hppa*64*|ia64*)
14095
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14020
        case $host_cpu in
 
14021
        hppa*64*)
 
14022
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14023
          ;;
 
14024
        ia64*)
 
14025
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14096
14026
          ;;
14097
14027
        *)
14098
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14028
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14099
14029
          ;;
14100
14030
        esac
14101
14031
      fi
14102
14032
      if test "$with_gnu_ld" = no; then
14103
 
        case "$host_cpu" in
14104
 
        hppa*64*)
14105
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14033
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14034
        hardcode_libdir_separator_F77=:
 
14035
 
 
14036
        case $host_cpu in
 
14037
        hppa*64*|ia64*)
14106
14038
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14107
 
          hardcode_libdir_separator_F77=:
14108
 
          hardcode_direct_F77=no
14109
 
          hardcode_shlibpath_var_F77=no
14110
 
          ;;
14111
 
        ia64*)
14112
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14113
 
          hardcode_direct_F77=no
14114
 
          hardcode_shlibpath_var_F77=no
14115
 
 
14116
 
          # hardcode_minus_L: Not really in the search PATH,
14117
 
          # but as the default location of the library.
14118
 
          hardcode_minus_L_F77=yes
 
14039
          hardcode_direct_F77=no
 
14040
          hardcode_shlibpath_var_F77=no
14119
14041
          ;;
14120
14042
        *)
14121
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122
 
          hardcode_libdir_separator_F77=:
14123
14043
          hardcode_direct_F77=yes
14124
14044
          export_dynamic_flag_spec_F77='${wl}-E'
14125
14045
 
14143
14063
      link_all_deplibs_F77=yes
14144
14064
      ;;
14145
14065
 
14146
 
    netbsd*)
 
14066
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14147
14067
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148
14068
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14149
14069
      else
14167
14087
      hardcode_shlibpath_var_F77=no
14168
14088
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169
14089
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14090
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14170
14091
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14171
14092
        export_dynamic_flag_spec_F77='${wl}-E'
14172
14093
      else
14212
14133
        allow_undefined_flag_F77=' -expect_unresolved \*'
14213
14134
        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'
14214
14135
        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~
14215
 
        $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'
 
14136
        $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'
14216
14137
 
14217
14138
        # Both c and cxx compiler support -rpath directly
14218
14139
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14220
14141
      hardcode_libdir_separator_F77=:
14221
14142
      ;;
14222
14143
 
14223
 
    sco3.2v5*)
14224
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225
 
      hardcode_shlibpath_var_F77=no
14226
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14227
 
      runpath_var=LD_RUN_PATH
14228
 
      hardcode_runpath_var=yes
14229
 
      ;;
14230
 
 
14231
14144
    solaris*)
14232
14145
      no_undefined_flag_F77=' -z text'
14233
14146
      if test "$GCC" = yes; then
 
14147
        wlarc='${wl}'
14234
14148
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14235
14149
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14236
14150
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14237
14151
      else
 
14152
        wlarc=''
14238
14153
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239
14154
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14240
14155
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14243
14158
      hardcode_shlibpath_var_F77=no
14244
14159
      case $host_os in
14245
14160
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14246
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14247
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14161
      *)
 
14162
        # The compiler driver will combine linker options so we
 
14163
        # cannot just pass the convience library names through
 
14164
        # without $wl, iff we do not link with $LD.
 
14165
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14166
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14167
        case $wlarc in
 
14168
        '')
 
14169
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14170
        *)
 
14171
          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' ;;
 
14172
        esac ;;
14248
14173
      esac
14249
14174
      link_all_deplibs_F77=yes
14250
14175
      ;;
14301
14226
      fi
14302
14227
      ;;
14303
14228
 
14304
 
    sysv4.2uw2*)
14305
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14306
 
      hardcode_direct_F77=yes
14307
 
      hardcode_minus_L_F77=no
14308
 
      hardcode_shlibpath_var_F77=no
14309
 
      hardcode_runpath_var=yes
14310
 
      runpath_var=LD_RUN_PATH
14311
 
      ;;
14312
 
 
14313
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14314
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14315
 
      if test "$GCC" = yes; then
14316
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317
 
      else
14318
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319
 
      fi
14320
 
      runpath_var='LD_RUN_PATH'
14321
 
      hardcode_shlibpath_var_F77=no
14322
 
      ;;
14323
 
 
14324
 
    sysv5*)
14325
 
      no_undefined_flag_F77=' -z text'
14326
 
      # $CC -shared without GNU ld will not create a library from C++
14327
 
      # object files and a static libstdc++, better avoid it by now
14328
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14330
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14331
 
      hardcode_libdir_flag_spec_F77=
14332
 
      hardcode_shlibpath_var_F77=no
14333
 
      runpath_var='LD_RUN_PATH'
 
14229
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14230
      no_undefined_flag_F77='${wl}-z,text'
 
14231
      archive_cmds_need_lc_F77=no
 
14232
      hardcode_shlibpath_var_F77=no
 
14233
      runpath_var='LD_RUN_PATH'
 
14234
 
 
14235
      if test "$GCC" = yes; then
 
14236
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14237
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14238
      else
 
14239
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14240
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14241
      fi
 
14242
      ;;
 
14243
 
 
14244
    sysv5* | sco3.2v5* | sco5v6*)
 
14245
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14246
      # link with -lc, and that would cause any symbols used from libc to
 
14247
      # always be unresolved, which means just about no library would
 
14248
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14249
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14250
      # as -z defs.
 
14251
      no_undefined_flag_F77='${wl}-z,text'
 
14252
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14253
      archive_cmds_need_lc_F77=no
 
14254
      hardcode_shlibpath_var_F77=no
 
14255
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14256
      hardcode_libdir_separator_F77=':'
 
14257
      link_all_deplibs_F77=yes
 
14258
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14259
      runpath_var='LD_RUN_PATH'
 
14260
 
 
14261
      if test "$GCC" = yes; then
 
14262
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14263
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14264
      else
 
14265
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14266
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14267
      fi
14334
14268
      ;;
14335
14269
 
14336
14270
    uts4*)
14349
14283
echo "${ECHO_T}$ld_shlibs_F77" >&6
14350
14284
test "$ld_shlibs_F77" = no && can_build_shared=no
14351
14285
 
14352
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14353
 
if test "$GCC" = yes; then
14354
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14355
 
fi
14356
 
 
14357
14286
#
14358
14287
# Do we need to explicitly link libc?
14359
14288
#
14386
14315
        libobjs=conftest.$ac_objext
14387
14316
        deplibs=
14388
14317
        wl=$lt_prog_compiler_wl_F77
 
14318
        pic_flag=$lt_prog_compiler_pic_F77
14389
14319
        compiler_flags=-v
14390
14320
        linker_flags=-v
14391
14321
        verstring=
14518
14448
  shlibpath_var=LIBRARY_PATH
14519
14449
  ;;
14520
14450
 
14521
 
bsdi4*)
 
14451
bsdi[45]*)
14522
14452
  version_type=linux
14523
14453
  need_version=no
14524
14454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546
14476
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14547
14477
      dldir=$destdir/`dirname \$dlpath`~
14548
14478
      test -d \$dldir || mkdir -p \$dldir~
14549
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14479
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14480
      chmod a+x \$dldir/$dlname'
14550
14481
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551
14482
      dlpath=$dir/\$dldll~
14552
14483
       $rm \$dlpath'
14576
14507
      ;;
14577
14508
    pw32*)
14578
14509
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14579
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14510
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580
14511
      ;;
14581
14512
    esac
14582
14513
    ;;
14599
14530
  soname_spec='${libname}${release}${major}$shared_ext'
14600
14531
  shlibpath_overrides_runpath=yes
14601
14532
  shlibpath_var=DYLD_LIBRARY_PATH
14602
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14533
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14603
14534
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14604
14535
  if test "$GCC" = yes; then
14605
14536
    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"`
14634
14565
  dynamic_linker='GNU ld.so'
14635
14566
  ;;
14636
14567
 
14637
 
freebsd*)
14638
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14568
freebsd* | dragonfly*)
 
14569
  # DragonFly does not have aout.  When/if they implement a new
 
14570
  # versioning mechanism, adjust this.
 
14571
  if test -x /usr/bin/objformat; then
 
14572
    objformat=`/usr/bin/objformat`
 
14573
  else
 
14574
    case $host_os in
 
14575
    freebsd[123]*) objformat=aout ;;
 
14576
    *) objformat=elf ;;
 
14577
    esac
 
14578
  fi
14639
14579
  version_type=freebsd-$objformat
14640
14580
  case $version_type in
14641
14581
    freebsd-elf*)
14653
14593
  freebsd2*)
14654
14594
    shlibpath_overrides_runpath=yes
14655
14595
    ;;
14656
 
  freebsd3.01* | freebsdelf3.01*)
 
14596
  freebsd3.[01]* | freebsdelf3.[01]*)
14657
14597
    shlibpath_overrides_runpath=yes
14658
14598
    hardcode_into_libs=yes
14659
14599
    ;;
14660
 
  *) # from 3.2 on
 
14600
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14601
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14661
14602
    shlibpath_overrides_runpath=no
14662
14603
    hardcode_into_libs=yes
14663
14604
    ;;
 
14605
  freebsd*) # from 4.6 on
 
14606
    shlibpath_overrides_runpath=yes
 
14607
    hardcode_into_libs=yes
 
14608
    ;;
14664
14609
  esac
14665
14610
  ;;
14666
14611
 
14680
14625
  version_type=sunos
14681
14626
  need_lib_prefix=no
14682
14627
  need_version=no
14683
 
  case "$host_cpu" in
 
14628
  case $host_cpu in
14684
14629
  ia64*)
14685
14630
    shrext_cmds='.so'
14686
14631
    hardcode_into_libs=yes
14720
14665
  postinstall_cmds='chmod 555 $lib'
14721
14666
  ;;
14722
14667
 
 
14668
interix3*)
 
14669
  version_type=linux
 
14670
  need_lib_prefix=no
 
14671
  need_version=no
 
14672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14673
  soname_spec='${libname}${release}${shared_ext}$major'
 
14674
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14675
  shlibpath_var=LD_LIBRARY_PATH
 
14676
  shlibpath_overrides_runpath=no
 
14677
  hardcode_into_libs=yes
 
14678
  ;;
 
14679
 
14723
14680
irix5* | irix6* | nonstopux*)
14724
14681
  case $host_os in
14725
14682
    nonstopux*) version_type=nonstopux ;;
14777
14734
  # before this can be enabled.
14778
14735
  hardcode_into_libs=yes
14779
14736
 
14780
 
  # find out which ABI we are using
14781
 
  libsuff=
14782
 
  case "$host_cpu" in
14783
 
  x86_64*|s390x*|powerpc64*)
14784
 
    echo '#line 14784 "configure"' > conftest.$ac_ext
14785
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14786
 
  (eval $ac_compile) 2>&5
14787
 
  ac_status=$?
14788
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789
 
  (exit $ac_status); }; then
14790
 
      case `/usr/bin/file conftest.$ac_objext` in
14791
 
      *64-bit*)
14792
 
        libsuff=64
14793
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14794
 
        ;;
14795
 
      esac
14796
 
    fi
14797
 
    rm -rf conftest*
14798
 
    ;;
14799
 
  esac
14800
 
 
14801
14737
  # Append ld.so.conf contents to the search path
14802
14738
  if test -f /etc/ld.so.conf; then
14803
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14804
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
14739
    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' ' '`
 
14740
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14805
14741
  fi
14806
14742
 
14807
14743
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14813
14749
  dynamic_linker='GNU/Linux ld.so'
14814
14750
  ;;
14815
14751
 
 
14752
netbsdelf*-gnu)
 
14753
  version_type=linux
 
14754
  need_lib_prefix=no
 
14755
  need_version=no
 
14756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14757
  soname_spec='${libname}${release}${shared_ext}$major'
 
14758
  shlibpath_var=LD_LIBRARY_PATH
 
14759
  shlibpath_overrides_runpath=no
 
14760
  hardcode_into_libs=yes
 
14761
  dynamic_linker='NetBSD ld.elf_so'
 
14762
  ;;
 
14763
 
14816
14764
knetbsd*-gnu)
14817
14765
  version_type=linux
14818
14766
  need_lib_prefix=no
14862
14810
 
14863
14811
openbsd*)
14864
14812
  version_type=sunos
 
14813
  sys_lib_dlsearch_path_spec="/usr/lib"
14865
14814
  need_lib_prefix=no
14866
 
  need_version=yes
 
14815
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14816
  case $host_os in
 
14817
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14818
    *)                         need_version=no  ;;
 
14819
  esac
14867
14820
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14868
14821
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14869
14822
  shlibpath_var=LD_LIBRARY_PATH
14901
14854
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14902
14855
  ;;
14903
14856
 
14904
 
sco3.2v5*)
14905
 
  version_type=osf
14906
 
  soname_spec='${libname}${release}${shared_ext}$major'
14907
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908
 
  shlibpath_var=LD_LIBRARY_PATH
14909
 
  ;;
14910
 
 
14911
14857
solaris*)
14912
14858
  version_type=linux
14913
14859
  need_lib_prefix=no
14933
14879
  need_version=yes
14934
14880
  ;;
14935
14881
 
14936
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14882
sysv4 | sysv4.3*)
14937
14883
  version_type=linux
14938
14884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939
14885
  soname_spec='${libname}${release}${shared_ext}$major'
14966
14912
  fi
14967
14913
  ;;
14968
14914
 
 
14915
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14916
  version_type=freebsd-elf
 
14917
  need_lib_prefix=no
 
14918
  need_version=no
 
14919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14920
  soname_spec='${libname}${release}${shared_ext}$major'
 
14921
  shlibpath_var=LD_LIBRARY_PATH
 
14922
  hardcode_into_libs=yes
 
14923
  if test "$with_gnu_ld" = yes; then
 
14924
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14925
    shlibpath_overrides_runpath=no
 
14926
  else
 
14927
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14928
    shlibpath_overrides_runpath=yes
 
14929
    case $host_os in
 
14930
      sco3.2v5*)
 
14931
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14932
        ;;
 
14933
    esac
 
14934
  fi
 
14935
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14936
  ;;
 
14937
 
14969
14938
uts4*)
14970
14939
  version_type=linux
14971
14940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981
14950
echo "${ECHO_T}$dynamic_linker" >&6
14982
14951
test "$dynamic_linker" = no && can_build_shared=no
14983
14952
 
 
14953
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14954
if test "$GCC" = yes; then
 
14955
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14956
fi
 
14957
 
14984
14958
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14985
14959
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14986
14960
hardcode_action_F77=
14987
14961
if test -n "$hardcode_libdir_flag_spec_F77" || \
14988
 
   test -n "$runpath_var F77" || \
14989
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14962
   test -n "$runpath_var_F77" || \
 
14963
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14990
14964
 
14991
14965
  # We can hardcode non-existant directories.
14992
14966
  if test "$hardcode_direct_F77" != no &&
15018
14992
  enable_fast_install=needless
15019
14993
fi
15020
14994
 
15021
 
striplib=
15022
 
old_striplib=
15023
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15024
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15025
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15026
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15027
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15028
 
  echo "$as_me:$LINENO: result: yes" >&5
15029
 
echo "${ECHO_T}yes" >&6
15030
 
else
15031
 
# FIXME - insert some real tests, host_os isn't really good enough
15032
 
  case $host_os in
15033
 
   darwin*)
15034
 
       if test -n "$STRIP" ; then
15035
 
         striplib="$STRIP -x"
15036
 
         echo "$as_me:$LINENO: result: yes" >&5
15037
 
echo "${ECHO_T}yes" >&6
15038
 
       else
15039
 
  echo "$as_me:$LINENO: result: no" >&5
15040
 
echo "${ECHO_T}no" >&6
15041
 
fi
15042
 
       ;;
15043
 
   *)
15044
 
  echo "$as_me:$LINENO: result: no" >&5
15045
 
echo "${ECHO_T}no" >&6
15046
 
    ;;
15047
 
  esac
15048
 
fi
15049
 
 
15050
 
 
15051
14995
 
15052
14996
# The else clause should only fire when bootstrapping the
15053
14997
# libtool distribution, otherwise you forgot to ship ltmain.sh
15062
15006
  # Now quote all the things that may contain metacharacters while being
15063
15007
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15064
15008
  # variables and quote the copies for generation of the libtool script.
15065
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15009
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15066
15010
    SED SHELL STRIP \
15067
15011
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15068
15012
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15163
15107
# The host system.
15164
15108
host_alias=$host_alias
15165
15109
host=$host
 
15110
host_os=$host_os
 
15111
 
 
15112
# The build system.
 
15113
build_alias=$build_alias
 
15114
build=$build
 
15115
build_os=$build_os
15166
15116
 
15167
15117
# An echo program that does not interpret backslashes.
15168
15118
echo=$lt_echo
15174
15124
# A C compiler.
15175
15125
LTCC=$lt_LTCC
15176
15126
 
 
15127
# LTCC compiler flags.
 
15128
LTCFLAGS=$lt_LTCFLAGS
 
15129
 
15177
15130
# A language-specific compiler.
15178
15131
CC=$lt_compiler_F77
15179
15132
 
15239
15192
# Does compiler simultaneously support -c and -o options?
15240
15193
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15241
15194
 
15242
 
# Must we lock files when doing compilation ?
 
15195
# Must we lock files when doing compilation?
15243
15196
need_locks=$lt_need_locks
15244
15197
 
15245
15198
# Do we need the lib prefix for modules?
15477
15430
lt_simple_compile_test_code="class foo {}\n"
15478
15431
 
15479
15432
# Code to be used in simple link tests
15480
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15433
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15481
15434
 
15482
15435
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15483
15436
 
15484
15437
# If no C compiler was specified, use CC.
15485
15438
LTCC=${LTCC-"$CC"}
15486
15439
 
 
15440
# If no C compiler flags were specified, use CFLAGS.
 
15441
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15442
 
15487
15443
# Allow CC to be a program name with arguments.
15488
15444
compiler=$CC
15489
15445
 
15490
15446
 
 
15447
# save warnings/boilerplate of simple test code
 
15448
ac_outfile=conftest.$ac_objext
 
15449
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15450
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15451
_lt_compiler_boilerplate=`cat conftest.err`
 
15452
$rm conftest*
 
15453
 
 
15454
ac_outfile=conftest.$ac_objext
 
15455
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15456
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15457
_lt_linker_boilerplate=`cat conftest.err`
 
15458
$rm conftest*
 
15459
 
 
15460
 
15491
15461
# Allow CC to be a program name with arguments.
15492
15462
lt_save_CC="$CC"
15493
15463
CC=${GCJ-"gcj"}
15494
15464
compiler=$CC
15495
15465
compiler_GCJ=$CC
 
15466
for cc_temp in $compiler""; do
 
15467
  case $cc_temp in
 
15468
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15469
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15470
    \-*) ;;
 
15471
    *) break;;
 
15472
  esac
 
15473
done
 
15474
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15475
 
15496
15476
 
15497
15477
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15498
15478
archive_cmds_need_lc_GCJ=no
15499
15479
 
 
15480
old_archive_cmds_GCJ=$old_archive_cmds
 
15481
 
15500
15482
 
15501
15483
lt_prog_compiler_no_builtin_flag_GCJ=
15502
15484
 
15519
15501
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15520
15502
   # The option is referenced via a variable to avoid confusing sed.
15521
15503
   lt_compile=`echo "$ac_compile" | $SED \
15522
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15504
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15523
15505
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15524
15506
   -e 's:$: $lt_compiler_flag:'`
15525
 
   (eval echo "\"\$as_me:15525: $lt_compile\"" >&5)
 
15507
   (eval echo "\"\$as_me:15507: $lt_compile\"" >&5)
15526
15508
   (eval "$lt_compile" 2>conftest.err)
15527
15509
   ac_status=$?
15528
15510
   cat conftest.err >&5
15529
 
   echo "$as_me:15529: \$? = $ac_status" >&5
 
15511
   echo "$as_me:15511: \$? = $ac_status" >&5
15530
15512
   if (exit $ac_status) && test -s "$ac_outfile"; then
15531
15513
     # The compiler can only warn and ignore the option if not recognized
15532
 
     # So say no if there are warnings
15533
 
     if test ! -s conftest.err; then
 
15514
     # So say no if there are warnings other than the usual output.
 
15515
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15516
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15517
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15534
15518
       lt_cv_prog_compiler_rtti_exceptions=yes
15535
15519
     fi
15536
15520
   fi
15591
15575
      lt_prog_compiler_pic_GCJ='-fno-common'
15592
15576
      ;;
15593
15577
 
 
15578
    interix3*)
 
15579
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15580
      # Instead, we relocate shared libraries at runtime.
 
15581
      ;;
 
15582
 
15594
15583
    msdosdjgpp*)
15595
15584
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15596
15585
      # on systems that don't support them.
15607
15596
    hpux*)
15608
15597
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15609
15598
      # not for PA HP-UX.
15610
 
      case "$host_cpu" in
 
15599
      case $host_cpu in
15611
15600
      hppa*64*|ia64*)
15612
15601
        # +Z the default
15613
15602
        ;;
15633
15622
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15634
15623
      fi
15635
15624
      ;;
 
15625
      darwin*)
 
15626
        # PIC is the default on this platform
 
15627
        # Common symbols not allowed in MH_DYLIB files
 
15628
       case $cc_basename in
 
15629
         xlc*)
 
15630
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15631
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15632
         ;;
 
15633
       esac
 
15634
       ;;
15636
15635
 
15637
15636
    mingw* | pw32* | os2*)
15638
15637
      # This hack is so that the source file can tell whether it is being
15644
15643
      lt_prog_compiler_wl_GCJ='-Wl,'
15645
15644
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15646
15645
      # not for PA HP-UX.
15647
 
      case "$host_cpu" in
 
15646
      case $host_cpu in
15648
15647
      hppa*64*|ia64*)
15649
15648
        # +Z the default
15650
15649
        ;;
15668
15667
      ;;
15669
15668
 
15670
15669
    linux*)
15671
 
      case $CC in
 
15670
      case $cc_basename in
15672
15671
      icc* | ecc*)
15673
15672
        lt_prog_compiler_wl_GCJ='-Wl,'
15674
15673
        lt_prog_compiler_pic_GCJ='-KPIC'
15675
15674
        lt_prog_compiler_static_GCJ='-static'
15676
15675
        ;;
 
15676
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15677
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15678
        # which looks to be a dead project)
 
15679
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15680
        lt_prog_compiler_pic_GCJ='-fpic'
 
15681
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15682
        ;;
15677
15683
      ccc*)
15678
15684
        lt_prog_compiler_wl_GCJ='-Wl,'
15679
15685
        # All Alpha code is PIC.
15688
15694
      lt_prog_compiler_static_GCJ='-non_shared'
15689
15695
      ;;
15690
15696
 
15691
 
    sco3.2v5*)
15692
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15693
 
      lt_prog_compiler_static_GCJ='-dn'
15694
 
      ;;
15695
 
 
15696
15697
    solaris*)
15697
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15698
15698
      lt_prog_compiler_pic_GCJ='-KPIC'
15699
15699
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15700
      case $cc_basename in
 
15701
      f77* | f90* | f95*)
 
15702
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15703
      *)
 
15704
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15705
      esac
15700
15706
      ;;
15701
15707
 
15702
15708
    sunos4*)
15705
15711
      lt_prog_compiler_static_GCJ='-Bstatic'
15706
15712
      ;;
15707
15713
 
15708
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15714
    sysv4 | sysv4.2uw2* | sysv4.3*)
15709
15715
      lt_prog_compiler_wl_GCJ='-Wl,'
15710
15716
      lt_prog_compiler_pic_GCJ='-KPIC'
15711
15717
      lt_prog_compiler_static_GCJ='-Bstatic'
15718
15724
      fi
15719
15725
      ;;
15720
15726
 
 
15727
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15728
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15729
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15730
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15731
      ;;
 
15732
 
 
15733
    unicos*)
 
15734
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15735
      lt_prog_compiler_can_build_shared_GCJ=no
 
15736
      ;;
 
15737
 
15721
15738
    uts4*)
15722
15739
      lt_prog_compiler_pic_GCJ='-pic'
15723
15740
      lt_prog_compiler_static_GCJ='-Bstatic'
15752
15769
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15753
15770
   # The option is referenced via a variable to avoid confusing sed.
15754
15771
   lt_compile=`echo "$ac_compile" | $SED \
15755
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15772
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15756
15773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15757
15774
   -e 's:$: $lt_compiler_flag:'`
15758
 
   (eval echo "\"\$as_me:15758: $lt_compile\"" >&5)
 
15775
   (eval echo "\"\$as_me:15775: $lt_compile\"" >&5)
15759
15776
   (eval "$lt_compile" 2>conftest.err)
15760
15777
   ac_status=$?
15761
15778
   cat conftest.err >&5
15762
 
   echo "$as_me:15762: \$? = $ac_status" >&5
 
15779
   echo "$as_me:15779: \$? = $ac_status" >&5
15763
15780
   if (exit $ac_status) && test -s "$ac_outfile"; then
15764
15781
     # The compiler can only warn and ignore the option if not recognized
15765
 
     # So say no if there are warnings
15766
 
     if test ! -s conftest.err; then
 
15782
     # So say no if there are warnings other than the usual output.
 
15783
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15784
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15785
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15767
15786
       lt_prog_compiler_pic_works_GCJ=yes
15768
15787
     fi
15769
15788
   fi
15784
15803
fi
15785
15804
 
15786
15805
fi
15787
 
case "$host_os" in
 
15806
case $host_os in
15788
15807
  # For platforms which do not support PIC, -DPIC is meaningless:
15789
15808
  *djgpp*)
15790
15809
    lt_prog_compiler_pic_GCJ=
15794
15813
    ;;
15795
15814
esac
15796
15815
 
 
15816
#
 
15817
# Check to make sure the static flag actually works.
 
15818
#
 
15819
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15820
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15821
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15822
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15824
else
 
15825
  lt_prog_compiler_static_works_GCJ=no
 
15826
   save_LDFLAGS="$LDFLAGS"
 
15827
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15828
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15829
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15830
     # The linker can only warn and ignore the option if not recognized
 
15831
     # So say no if there are warnings
 
15832
     if test -s conftest.err; then
 
15833
       # Append any errors to the config.log.
 
15834
       cat conftest.err 1>&5
 
15835
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15836
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15837
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15838
         lt_prog_compiler_static_works_GCJ=yes
 
15839
       fi
 
15840
     else
 
15841
       lt_prog_compiler_static_works_GCJ=yes
 
15842
     fi
 
15843
   fi
 
15844
   $rm conftest*
 
15845
   LDFLAGS="$save_LDFLAGS"
 
15846
 
 
15847
fi
 
15848
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15849
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15850
 
 
15851
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15852
    :
 
15853
else
 
15854
    lt_prog_compiler_static_GCJ=
 
15855
fi
 
15856
 
 
15857
 
15797
15858
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15798
15859
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15799
15860
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15812
15873
   # Note that $ac_compile itself does not contain backslashes and begins
15813
15874
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15814
15875
   lt_compile=`echo "$ac_compile" | $SED \
15815
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15876
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816
15877
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817
15878
   -e 's:$: $lt_compiler_flag:'`
15818
 
   (eval echo "\"\$as_me:15818: $lt_compile\"" >&5)
 
15879
   (eval echo "\"\$as_me:15879: $lt_compile\"" >&5)
15819
15880
   (eval "$lt_compile" 2>out/conftest.err)
15820
15881
   ac_status=$?
15821
15882
   cat out/conftest.err >&5
15822
 
   echo "$as_me:15822: \$? = $ac_status" >&5
 
15883
   echo "$as_me:15883: \$? = $ac_status" >&5
15823
15884
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15824
15885
   then
15825
15886
     # The compiler can only warn and ignore the option if not recognized
15826
15887
     # So say no if there are warnings
15827
 
     if test ! -s out/conftest.err; then
 
15888
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15889
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15890
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15828
15891
       lt_cv_prog_compiler_c_o_GCJ=yes
15829
15892
     fi
15830
15893
   fi
15831
 
   chmod u+w .
 
15894
   chmod u+w . 2>&5
15832
15895
   $rm conftest*
15833
15896
   # SGI C++ compiler will create directory out/ii_files/ for
15834
15897
   # template instantiation
15904
15967
  # rely on this symbol name, it's probably fine to never include it in
15905
15968
  # preloaded symbol tables.
15906
15969
  extract_expsyms_cmds=
 
15970
  # Just being paranoid about ensuring that cc_basename is set.
 
15971
  for cc_temp in $compiler""; do
 
15972
  case $cc_temp in
 
15973
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15974
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15975
    \-*) ;;
 
15976
    *) break;;
 
15977
  esac
 
15978
done
 
15979
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15907
15980
 
15908
15981
  case $host_os in
15909
15982
  cygwin* | mingw* | pw32*)
15914
15987
      with_gnu_ld=no
15915
15988
    fi
15916
15989
    ;;
 
15990
  interix*)
 
15991
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15992
    with_gnu_ld=yes
 
15993
    ;;
15917
15994
  openbsd*)
15918
15995
    with_gnu_ld=no
15919
15996
    ;;
15924
16001
    # If archive_cmds runs LD, not CC, wlarc should be empty
15925
16002
    wlarc='${wl}'
15926
16003
 
 
16004
    # Set some defaults for GNU ld with shared library support. These
 
16005
    # are reset later if shared libraries are not supported. Putting them
 
16006
    # here allows them to be overridden if necessary.
 
16007
    runpath_var=LD_RUN_PATH
 
16008
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16009
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16010
    # ancient GNU ld didn't support --whole-archive et. al.
 
16011
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16012
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16013
      else
 
16014
        whole_archive_flag_spec_GCJ=
 
16015
    fi
 
16016
    supports_anon_versioning=no
 
16017
    case `$LD -v 2>/dev/null` in
 
16018
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16019
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16020
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16021
      *\ 2.11.*) ;; # other 2.11 versions
 
16022
      *) supports_anon_versioning=yes ;;
 
16023
    esac
 
16024
 
15927
16025
    # See if GNU ld supports shared libraries.
15928
16026
    case $host_os in
15929
16027
    aix3* | aix4* | aix5*)
15974
16072
      allow_undefined_flag_GCJ=unsupported
15975
16073
      always_export_symbols_GCJ=no
15976
16074
      enable_shared_with_static_runtimes_GCJ=yes
15977
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16075
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15978
16076
 
15979
16077
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15980
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16078
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15981
16079
        # If the export-symbols file already is a .def file (1st line
15982
16080
        # is EXPORTS), use it as is; otherwise, prepend...
15983
16081
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15986
16084
          echo EXPORTS > $output_objdir/$soname.def;
15987
16085
          cat $export_symbols >> $output_objdir/$soname.def;
15988
16086
        fi~
15989
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15990
 
      else
15991
 
        ld_shlibs=no
15992
 
      fi
15993
 
      ;;
15994
 
 
15995
 
    netbsd*)
 
16087
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16088
      else
 
16089
        ld_shlibs_GCJ=no
 
16090
      fi
 
16091
      ;;
 
16092
 
 
16093
    interix3*)
 
16094
      hardcode_direct_GCJ=no
 
16095
      hardcode_shlibpath_var_GCJ=no
 
16096
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16097
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16098
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16099
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16100
      # default) and relocated if they conflict, which is a slow very memory
 
16101
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16102
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16103
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16104
      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'
 
16105
      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'
 
16106
      ;;
 
16107
 
 
16108
    linux*)
 
16109
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16110
        tmp_addflag=
 
16111
        case $cc_basename,$host_cpu in
 
16112
        pgcc*)                          # Portland Group C compiler
 
16113
          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'
 
16114
          tmp_addflag=' $pic_flag'
 
16115
          ;;
 
16116
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16117
          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'
 
16118
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16119
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16120
          tmp_addflag=' -i_dynamic' ;;
 
16121
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16122
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16123
        ifc* | ifort*)                  # Intel Fortran compiler
 
16124
          tmp_addflag=' -nofor_main' ;;
 
16125
        esac
 
16126
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16127
 
 
16128
        if test $supports_anon_versioning = yes; then
 
16129
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16130
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16131
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16132
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16133
        fi
 
16134
        link_all_deplibs_GCJ=no
 
16135
      else
 
16136
        ld_shlibs_GCJ=no
 
16137
      fi
 
16138
      ;;
 
16139
 
 
16140
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15996
16141
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997
16142
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15998
16143
        wlarc=
16002
16147
      fi
16003
16148
      ;;
16004
16149
 
16005
 
    solaris* | sysv5*)
 
16150
    solaris*)
16006
16151
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16007
16152
        ld_shlibs_GCJ=no
16008
16153
        cat <<EOF 1>&2
16023
16168
      fi
16024
16169
      ;;
16025
16170
 
 
16171
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16172
      case `$LD -v 2>&1` in
 
16173
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16174
        ld_shlibs_GCJ=no
 
16175
        cat <<_LT_EOF 1>&2
 
16176
 
 
16177
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16178
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16179
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16180
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16181
*** your PATH or compiler configuration so that the native linker is
 
16182
*** used, and then restart.
 
16183
 
 
16184
_LT_EOF
 
16185
        ;;
 
16186
        *)
 
16187
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16188
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16189
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16190
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16191
          else
 
16192
            ld_shlibs_GCJ=no
 
16193
          fi
 
16194
        ;;
 
16195
      esac
 
16196
      ;;
 
16197
 
16026
16198
    sunos4*)
16027
16199
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16028
16200
      wlarc=
16030
16202
      hardcode_shlibpath_var_GCJ=no
16031
16203
      ;;
16032
16204
 
16033
 
  linux*)
16034
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16035
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16037
 
      supports_anon_versioning=no
16038
 
      case `$LD -v 2>/dev/null` in
16039
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16040
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16041
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16042
 
        *\ 2.11.*) ;; # other 2.11 versions
16043
 
        *) supports_anon_versioning=yes ;;
16044
 
      esac
16045
 
      if test $supports_anon_versioning = yes; then
16046
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16047
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16048
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16049
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16050
 
      else
16051
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16052
 
      fi
16053
 
    else
16054
 
      ld_shlibs_GCJ=no
16055
 
    fi
16056
 
    ;;
16057
 
 
16058
16205
    *)
16059
16206
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16060
16207
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065
16212
      ;;
16066
16213
    esac
16067
16214
 
16068
 
    if test "$ld_shlibs_GCJ" = yes; then
16069
 
      runpath_var=LD_RUN_PATH
16070
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16071
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16072
 
      # ancient GNU ld didn't support --whole-archive et. al.
16073
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16074
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16075
 
      else
16076
 
        whole_archive_flag_spec_GCJ=
16077
 
      fi
 
16215
    if test "$ld_shlibs_GCJ" = no; then
 
16216
      runpath_var=
 
16217
      hardcode_libdir_flag_spec_GCJ=
 
16218
      export_dynamic_flag_spec_GCJ=
 
16219
      whole_archive_flag_spec_GCJ=
16078
16220
    fi
16079
16221
  else
16080
16222
    # PORTME fill in a description of your system's linker (not GNU ld)
16086
16228
      # Note: this linker hardcodes the directories in LIBPATH if there
16087
16229
      # are no directories specified by -L.
16088
16230
      hardcode_minus_L_GCJ=yes
16089
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16231
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16090
16232
        # Neither direct hardcoding nor static linking is supported with a
16091
16233
        # broken collect2.
16092
16234
        hardcode_direct_GCJ=unsupported
16120
16262
            break
16121
16263
          fi
16122
16264
          done
 
16265
          ;;
16123
16266
        esac
16124
16267
 
16125
16268
        exp_sym_flag='-bexport'
16138
16281
      link_all_deplibs_GCJ=yes
16139
16282
 
16140
16283
      if test "$GCC" = yes; then
16141
 
        case $host_os in aix4.012|aix4.012.*)
 
16284
        case $host_os in aix4.[012]|aix4.[012].*)
16142
16285
        # We only want to do this on AIX 4.2 and lower, the check
16143
16286
        # below for broken collect2 doesn't work under 4.3+
16144
16287
          collect2name=`${CC} -print-prog-name=collect2`
16157
16300
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16158
16301
          hardcode_libdir_separator_GCJ=
16159
16302
          fi
 
16303
          ;;
16160
16304
        esac
16161
16305
        shared_flag='-shared'
 
16306
        if test "$aix_use_runtimelinking" = yes; then
 
16307
          shared_flag="$shared_flag "'${wl}-G'
 
16308
        fi
16162
16309
      else
16163
16310
        # not using gcc
16164
16311
        if test "$host_cpu" = ia64; then
16166
16313
        # chokes on -Wl,-G. The following line is correct:
16167
16314
          shared_flag='-G'
16168
16315
        else
16169
 
        if test "$aix_use_runtimelinking" = yes; then
 
16316
          if test "$aix_use_runtimelinking" = yes; then
16170
16317
            shared_flag='${wl}-G'
16171
16318
          else
16172
16319
            shared_flag='${wl}-bM:SRE'
16173
 
        fi
 
16320
          fi
16174
16321
        fi
16175
16322
      fi
16176
16323
 
16206
16353
  cat conftest.err >&5
16207
16354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208
16355
  (exit $ac_status); } &&
16209
 
         { ac_try='test -z "$ac_c_werror_flag"
16210
 
                         || test ! -s conftest.err'
 
16356
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16211
16357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212
16358
  (eval $ac_try) 2>&5
16213
16359
  ac_status=$?
16235
16381
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16236
16382
 
16237
16383
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16238
 
        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"
 
16384
        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"
16239
16385
       else
16240
16386
        if test "$host_cpu" = ia64; then
16241
16387
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16242
16388
          allow_undefined_flag_GCJ="-z nodefs"
16243
 
          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"
 
16389
          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"
16244
16390
        else
16245
16391
         # Determine the default libpath from the value encoded in an empty executable.
16246
16392
         cat >conftest.$ac_ext <<_ACEOF
16267
16413
  cat conftest.err >&5
16268
16414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269
16415
  (exit $ac_status); } &&
16270
 
         { ac_try='test -z "$ac_c_werror_flag"
16271
 
                         || test ! -s conftest.err'
 
16416
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16272
16417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273
16418
  (eval $ac_try) 2>&5
16274
16419
  ac_status=$?
16300
16445
          # -berok will link without error, but may produce a broken library.
16301
16446
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16302
16447
          allow_undefined_flag_GCJ=' ${wl}-berok'
16303
 
          # -bexpall does not export symbols beginning with underscore (_)
16304
 
          always_export_symbols_GCJ=yes
16305
16448
          # Exported symbols can be pulled into shared objects from archives
16306
 
          whole_archive_flag_spec_GCJ=' '
 
16449
          whole_archive_flag_spec_GCJ='$convenience'
16307
16450
          archive_cmds_need_lc_GCJ=yes
16308
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16309
 
          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'
 
16451
          # This is similar to how AIX traditionally builds its shared libraries.
 
16452
          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'
16310
16453
        fi
16311
16454
      fi
16312
16455
      ;;
16319
16462
      ld_shlibs_GCJ=no
16320
16463
      ;;
16321
16464
 
16322
 
    bsdi4*)
 
16465
    bsdi[45]*)
16323
16466
      export_dynamic_flag_spec_GCJ=-rdynamic
16324
16467
      ;;
16325
16468
 
16340
16483
      old_archive_From_new_cmds_GCJ='true'
16341
16484
      # FIXME: Should let the user specify the lib program.
16342
16485
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16343
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16486
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16344
16487
      enable_shared_with_static_runtimes_GCJ=yes
16345
16488
      ;;
16346
16489
 
16347
16490
    darwin* | rhapsody*)
16348
 
    if test "$GXX" = yes ; then
 
16491
      case $host_os in
 
16492
        rhapsody* | darwin1.[012])
 
16493
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16494
         ;;
 
16495
       *) # Darwin 1.3 on
 
16496
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16497
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16498
         else
 
16499
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16500
             10.[012])
 
16501
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16502
               ;;
 
16503
             10.*)
 
16504
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16505
               ;;
 
16506
           esac
 
16507
         fi
 
16508
         ;;
 
16509
      esac
16349
16510
      archive_cmds_need_lc_GCJ=no
16350
 
      case "$host_os" in
16351
 
      rhapsody* | darwin1.[012])
16352
 
        allow_undefined_flag_GCJ='-undefined suppress'
16353
 
        ;;
16354
 
      *) # Darwin 1.3 on
16355
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16356
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16357
 
      else
16358
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16359
 
          10.[012])
16360
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16361
 
            ;;
16362
 
          10.*)
16363
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16364
 
            ;;
16365
 
        esac
16366
 
      fi
16367
 
        ;;
16368
 
      esac
16369
 
        lt_int_apple_cc_single_mod=no
16370
 
        output_verbose_link_cmd='echo'
16371
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16372
 
          lt_int_apple_cc_single_mod=yes
16373
 
        fi
16374
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16375
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16376
 
        else
16377
 
        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'
16378
 
      fi
16379
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16380
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16381
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16382
 
          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}'
16383
 
        else
16384
 
          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}'
16385
 
        fi
16386
 
          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}'
16387
16511
      hardcode_direct_GCJ=no
16388
16512
      hardcode_automatic_GCJ=yes
16389
16513
      hardcode_shlibpath_var_GCJ=unsupported
16390
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16514
      whole_archive_flag_spec_GCJ=''
16391
16515
      link_all_deplibs_GCJ=yes
 
16516
    if test "$GCC" = yes ; then
 
16517
        output_verbose_link_cmd='echo'
 
16518
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16519
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16520
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16521
      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}'
 
16522
      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}'
16392
16523
    else
16393
 
      ld_shlibs_GCJ=no
 
16524
      case $cc_basename in
 
16525
        xlc*)
 
16526
         output_verbose_link_cmd='echo'
 
16527
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16528
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16529
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16530
         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}'
 
16531
          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}'
 
16532
          ;;
 
16533
       *)
 
16534
         ld_shlibs_GCJ=no
 
16535
          ;;
 
16536
      esac
16394
16537
    fi
16395
16538
      ;;
16396
16539
 
16424
16567
      ;;
16425
16568
 
16426
16569
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16427
 
    freebsd* | kfreebsd*-gnu)
16428
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16429
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16430
 
      hardcode_direct_GCJ=yes
16431
 
      hardcode_shlibpath_var_GCJ=no
 
16570
    freebsd* | dragonfly*)
 
16571
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16572
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16573
      hardcode_direct_GCJ=yes
 
16574
      hardcode_shlibpath_var_GCJ=no
 
16575
      ;;
 
16576
 
 
16577
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
16578
    kfreebsd*-gnu)
 
16579
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16580
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16581
      hardcode_direct_GCJ=yes
 
16582
      hardcode_shlibpath_var_GCJ=no
 
16583
      link_all_deplibs_GCJ=no
16432
16584
      ;;
16433
16585
 
16434
16586
    hpux9*)
16447
16599
      export_dynamic_flag_spec_GCJ='${wl}-E'
16448
16600
      ;;
16449
16601
 
16450
 
    hpux10* | hpux11*)
16451
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16452
 
        case "$host_cpu" in
16453
 
        hppa*64*|ia64*)
 
16602
    hpux10*)
 
16603
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16604
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16605
      else
 
16606
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16607
      fi
 
16608
      if test "$with_gnu_ld" = no; then
 
16609
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16610
        hardcode_libdir_separator_GCJ=:
 
16611
 
 
16612
        hardcode_direct_GCJ=yes
 
16613
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16614
 
 
16615
        # hardcode_minus_L: Not really in the search PATH,
 
16616
        # but as the default location of the library.
 
16617
        hardcode_minus_L_GCJ=yes
 
16618
      fi
 
16619
      ;;
 
16620
 
 
16621
    hpux11*)
 
16622
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16623
        case $host_cpu in
 
16624
        hppa*64*)
16454
16625
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455
16626
          ;;
 
16627
        ia64*)
 
16628
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16629
          ;;
16456
16630
        *)
16457
16631
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16458
16632
          ;;
16459
16633
        esac
16460
16634
      else
16461
 
        case "$host_cpu" in
16462
 
        hppa*64*|ia64*)
16463
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16635
        case $host_cpu in
 
16636
        hppa*64*)
 
16637
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16638
          ;;
 
16639
        ia64*)
 
16640
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16464
16641
          ;;
16465
16642
        *)
16466
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16643
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16467
16644
          ;;
16468
16645
        esac
16469
16646
      fi
16470
16647
      if test "$with_gnu_ld" = no; then
16471
 
        case "$host_cpu" in
16472
 
        hppa*64*)
16473
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16648
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16649
        hardcode_libdir_separator_GCJ=:
 
16650
 
 
16651
        case $host_cpu in
 
16652
        hppa*64*|ia64*)
16474
16653
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16475
 
          hardcode_libdir_separator_GCJ=:
16476
 
          hardcode_direct_GCJ=no
16477
 
          hardcode_shlibpath_var_GCJ=no
16478
 
          ;;
16479
 
        ia64*)
16480
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16481
 
          hardcode_direct_GCJ=no
16482
 
          hardcode_shlibpath_var_GCJ=no
16483
 
 
16484
 
          # hardcode_minus_L: Not really in the search PATH,
16485
 
          # but as the default location of the library.
16486
 
          hardcode_minus_L_GCJ=yes
 
16654
          hardcode_direct_GCJ=no
 
16655
          hardcode_shlibpath_var_GCJ=no
16487
16656
          ;;
16488
16657
        *)
16489
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16490
 
          hardcode_libdir_separator_GCJ=:
16491
16658
          hardcode_direct_GCJ=yes
16492
16659
          export_dynamic_flag_spec_GCJ='${wl}-E'
16493
16660
 
16511
16678
      link_all_deplibs_GCJ=yes
16512
16679
      ;;
16513
16680
 
16514
 
    netbsd*)
 
16681
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16515
16682
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16516
16683
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16517
16684
      else
16535
16702
      hardcode_shlibpath_var_GCJ=no
16536
16703
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16537
16704
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16705
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16538
16706
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16539
16707
        export_dynamic_flag_spec_GCJ='${wl}-E'
16540
16708
      else
16580
16748
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16581
16749
        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'
16582
16750
        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~
16583
 
        $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'
 
16751
        $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'
16584
16752
 
16585
16753
        # Both c and cxx compiler support -rpath directly
16586
16754
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16588
16756
      hardcode_libdir_separator_GCJ=:
16589
16757
      ;;
16590
16758
 
16591
 
    sco3.2v5*)
16592
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593
 
      hardcode_shlibpath_var_GCJ=no
16594
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16595
 
      runpath_var=LD_RUN_PATH
16596
 
      hardcode_runpath_var=yes
16597
 
      ;;
16598
 
 
16599
16759
    solaris*)
16600
16760
      no_undefined_flag_GCJ=' -z text'
16601
16761
      if test "$GCC" = yes; then
 
16762
        wlarc='${wl}'
16602
16763
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16603
16764
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16604
16765
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16605
16766
      else
 
16767
        wlarc=''
16606
16768
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607
16769
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16608
16770
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16611
16773
      hardcode_shlibpath_var_GCJ=no
16612
16774
      case $host_os in
16613
16775
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16614
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16615
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16776
      *)
 
16777
        # The compiler driver will combine linker options so we
 
16778
        # cannot just pass the convience library names through
 
16779
        # without $wl, iff we do not link with $LD.
 
16780
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16781
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16782
        case $wlarc in
 
16783
        '')
 
16784
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16785
        *)
 
16786
          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' ;;
 
16787
        esac ;;
16616
16788
      esac
16617
16789
      link_all_deplibs_GCJ=yes
16618
16790
      ;;
16669
16841
      fi
16670
16842
      ;;
16671
16843
 
16672
 
    sysv4.2uw2*)
16673
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16674
 
      hardcode_direct_GCJ=yes
16675
 
      hardcode_minus_L_GCJ=no
16676
 
      hardcode_shlibpath_var_GCJ=no
16677
 
      hardcode_runpath_var=yes
16678
 
      runpath_var=LD_RUN_PATH
16679
 
      ;;
16680
 
 
16681
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16682
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16683
 
      if test "$GCC" = yes; then
16684
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16685
 
      else
16686
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16687
 
      fi
16688
 
      runpath_var='LD_RUN_PATH'
16689
 
      hardcode_shlibpath_var_GCJ=no
16690
 
      ;;
16691
 
 
16692
 
    sysv5*)
16693
 
      no_undefined_flag_GCJ=' -z text'
16694
 
      # $CC -shared without GNU ld will not create a library from C++
16695
 
      # object files and a static libstdc++, better avoid it by now
16696
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16697
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16698
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16699
 
      hardcode_libdir_flag_spec_GCJ=
16700
 
      hardcode_shlibpath_var_GCJ=no
16701
 
      runpath_var='LD_RUN_PATH'
 
16844
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16845
      no_undefined_flag_GCJ='${wl}-z,text'
 
16846
      archive_cmds_need_lc_GCJ=no
 
16847
      hardcode_shlibpath_var_GCJ=no
 
16848
      runpath_var='LD_RUN_PATH'
 
16849
 
 
16850
      if test "$GCC" = yes; then
 
16851
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16852
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16853
      else
 
16854
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16855
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16856
      fi
 
16857
      ;;
 
16858
 
 
16859
    sysv5* | sco3.2v5* | sco5v6*)
 
16860
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16861
      # link with -lc, and that would cause any symbols used from libc to
 
16862
      # always be unresolved, which means just about no library would
 
16863
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16864
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16865
      # as -z defs.
 
16866
      no_undefined_flag_GCJ='${wl}-z,text'
 
16867
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16868
      archive_cmds_need_lc_GCJ=no
 
16869
      hardcode_shlibpath_var_GCJ=no
 
16870
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16871
      hardcode_libdir_separator_GCJ=':'
 
16872
      link_all_deplibs_GCJ=yes
 
16873
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16874
      runpath_var='LD_RUN_PATH'
 
16875
 
 
16876
      if test "$GCC" = yes; then
 
16877
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16878
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16879
      else
 
16880
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16881
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16882
      fi
16702
16883
      ;;
16703
16884
 
16704
16885
    uts4*)
16717
16898
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16718
16899
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16719
16900
 
16720
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16721
 
if test "$GCC" = yes; then
16722
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16723
 
fi
16724
 
 
16725
16901
#
16726
16902
# Do we need to explicitly link libc?
16727
16903
#
16754
16930
        libobjs=conftest.$ac_objext
16755
16931
        deplibs=
16756
16932
        wl=$lt_prog_compiler_wl_GCJ
 
16933
        pic_flag=$lt_prog_compiler_pic_GCJ
16757
16934
        compiler_flags=-v
16758
16935
        linker_flags=-v
16759
16936
        verstring=
16886
17063
  shlibpath_var=LIBRARY_PATH
16887
17064
  ;;
16888
17065
 
16889
 
bsdi4*)
 
17066
bsdi[45]*)
16890
17067
  version_type=linux
16891
17068
  need_version=no
16892
17069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914
17091
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16915
17092
      dldir=$destdir/`dirname \$dlpath`~
16916
17093
      test -d \$dldir || mkdir -p \$dldir~
16917
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17094
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17095
      chmod a+x \$dldir/$dlname'
16918
17096
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16919
17097
      dlpath=$dir/\$dldll~
16920
17098
       $rm \$dlpath'
16944
17122
      ;;
16945
17123
    pw32*)
16946
17124
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16947
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17125
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948
17126
      ;;
16949
17127
    esac
16950
17128
    ;;
16967
17145
  soname_spec='${libname}${release}${major}$shared_ext'
16968
17146
  shlibpath_overrides_runpath=yes
16969
17147
  shlibpath_var=DYLD_LIBRARY_PATH
16970
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17148
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16971
17149
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16972
17150
  if test "$GCC" = yes; then
16973
17151
    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"`
17002
17180
  dynamic_linker='GNU ld.so'
17003
17181
  ;;
17004
17182
 
17005
 
freebsd*)
17006
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17183
freebsd* | dragonfly*)
 
17184
  # DragonFly does not have aout.  When/if they implement a new
 
17185
  # versioning mechanism, adjust this.
 
17186
  if test -x /usr/bin/objformat; then
 
17187
    objformat=`/usr/bin/objformat`
 
17188
  else
 
17189
    case $host_os in
 
17190
    freebsd[123]*) objformat=aout ;;
 
17191
    *) objformat=elf ;;
 
17192
    esac
 
17193
  fi
17007
17194
  version_type=freebsd-$objformat
17008
17195
  case $version_type in
17009
17196
    freebsd-elf*)
17021
17208
  freebsd2*)
17022
17209
    shlibpath_overrides_runpath=yes
17023
17210
    ;;
17024
 
  freebsd3.01* | freebsdelf3.01*)
 
17211
  freebsd3.[01]* | freebsdelf3.[01]*)
17025
17212
    shlibpath_overrides_runpath=yes
17026
17213
    hardcode_into_libs=yes
17027
17214
    ;;
17028
 
  *) # from 3.2 on
 
17215
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17216
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17029
17217
    shlibpath_overrides_runpath=no
17030
17218
    hardcode_into_libs=yes
17031
17219
    ;;
 
17220
  freebsd*) # from 4.6 on
 
17221
    shlibpath_overrides_runpath=yes
 
17222
    hardcode_into_libs=yes
 
17223
    ;;
17032
17224
  esac
17033
17225
  ;;
17034
17226
 
17048
17240
  version_type=sunos
17049
17241
  need_lib_prefix=no
17050
17242
  need_version=no
17051
 
  case "$host_cpu" in
 
17243
  case $host_cpu in
17052
17244
  ia64*)
17053
17245
    shrext_cmds='.so'
17054
17246
    hardcode_into_libs=yes
17088
17280
  postinstall_cmds='chmod 555 $lib'
17089
17281
  ;;
17090
17282
 
 
17283
interix3*)
 
17284
  version_type=linux
 
17285
  need_lib_prefix=no
 
17286
  need_version=no
 
17287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17288
  soname_spec='${libname}${release}${shared_ext}$major'
 
17289
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17290
  shlibpath_var=LD_LIBRARY_PATH
 
17291
  shlibpath_overrides_runpath=no
 
17292
  hardcode_into_libs=yes
 
17293
  ;;
 
17294
 
17091
17295
irix5* | irix6* | nonstopux*)
17092
17296
  case $host_os in
17093
17297
    nonstopux*) version_type=nonstopux ;;
17145
17349
  # before this can be enabled.
17146
17350
  hardcode_into_libs=yes
17147
17351
 
17148
 
  # find out which ABI we are using
17149
 
  libsuff=
17150
 
  case "$host_cpu" in
17151
 
  x86_64*|s390x*|powerpc64*)
17152
 
    echo '#line 17152 "configure"' > conftest.$ac_ext
17153
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154
 
  (eval $ac_compile) 2>&5
17155
 
  ac_status=$?
17156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157
 
  (exit $ac_status); }; then
17158
 
      case `/usr/bin/file conftest.$ac_objext` in
17159
 
      *64-bit*)
17160
 
        libsuff=64
17161
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17162
 
        ;;
17163
 
      esac
17164
 
    fi
17165
 
    rm -rf conftest*
17166
 
    ;;
17167
 
  esac
17168
 
 
17169
17352
  # Append ld.so.conf contents to the search path
17170
17353
  if test -f /etc/ld.so.conf; then
17171
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17172
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17354
    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' ' '`
 
17355
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17173
17356
  fi
17174
17357
 
17175
17358
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17181
17364
  dynamic_linker='GNU/Linux ld.so'
17182
17365
  ;;
17183
17366
 
 
17367
netbsdelf*-gnu)
 
17368
  version_type=linux
 
17369
  need_lib_prefix=no
 
17370
  need_version=no
 
17371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17372
  soname_spec='${libname}${release}${shared_ext}$major'
 
17373
  shlibpath_var=LD_LIBRARY_PATH
 
17374
  shlibpath_overrides_runpath=no
 
17375
  hardcode_into_libs=yes
 
17376
  dynamic_linker='NetBSD ld.elf_so'
 
17377
  ;;
 
17378
 
17184
17379
knetbsd*-gnu)
17185
17380
  version_type=linux
17186
17381
  need_lib_prefix=no
17230
17425
 
17231
17426
openbsd*)
17232
17427
  version_type=sunos
 
17428
  sys_lib_dlsearch_path_spec="/usr/lib"
17233
17429
  need_lib_prefix=no
17234
 
  need_version=yes
 
17430
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17431
  case $host_os in
 
17432
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17433
    *)                         need_version=no  ;;
 
17434
  esac
17235
17435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17236
17436
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17237
17437
  shlibpath_var=LD_LIBRARY_PATH
17269
17469
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17270
17470
  ;;
17271
17471
 
17272
 
sco3.2v5*)
17273
 
  version_type=osf
17274
 
  soname_spec='${libname}${release}${shared_ext}$major'
17275
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276
 
  shlibpath_var=LD_LIBRARY_PATH
17277
 
  ;;
17278
 
 
17279
17472
solaris*)
17280
17473
  version_type=linux
17281
17474
  need_lib_prefix=no
17301
17494
  need_version=yes
17302
17495
  ;;
17303
17496
 
17304
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17497
sysv4 | sysv4.3*)
17305
17498
  version_type=linux
17306
17499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307
17500
  soname_spec='${libname}${release}${shared_ext}$major'
17334
17527
  fi
17335
17528
  ;;
17336
17529
 
 
17530
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17531
  version_type=freebsd-elf
 
17532
  need_lib_prefix=no
 
17533
  need_version=no
 
17534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17535
  soname_spec='${libname}${release}${shared_ext}$major'
 
17536
  shlibpath_var=LD_LIBRARY_PATH
 
17537
  hardcode_into_libs=yes
 
17538
  if test "$with_gnu_ld" = yes; then
 
17539
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17540
    shlibpath_overrides_runpath=no
 
17541
  else
 
17542
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17543
    shlibpath_overrides_runpath=yes
 
17544
    case $host_os in
 
17545
      sco3.2v5*)
 
17546
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17547
        ;;
 
17548
    esac
 
17549
  fi
 
17550
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17551
  ;;
 
17552
 
17337
17553
uts4*)
17338
17554
  version_type=linux
17339
17555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17349
17565
echo "${ECHO_T}$dynamic_linker" >&6
17350
17566
test "$dynamic_linker" = no && can_build_shared=no
17351
17567
 
 
17568
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17569
if test "$GCC" = yes; then
 
17570
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17571
fi
 
17572
 
17352
17573
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17353
17574
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17354
17575
hardcode_action_GCJ=
17355
17576
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17356
 
   test -n "$runpath_var GCJ" || \
17357
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17577
   test -n "$runpath_var_GCJ" || \
 
17578
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17358
17579
 
17359
17580
  # We can hardcode non-existant directories.
17360
17581
  if test "$hardcode_direct_GCJ" != no &&
17386
17607
  enable_fast_install=needless
17387
17608
fi
17388
17609
 
17389
 
striplib=
17390
 
old_striplib=
17391
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17392
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17393
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17394
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17395
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17396
 
  echo "$as_me:$LINENO: result: yes" >&5
17397
 
echo "${ECHO_T}yes" >&6
17398
 
else
17399
 
# FIXME - insert some real tests, host_os isn't really good enough
17400
 
  case $host_os in
17401
 
   darwin*)
17402
 
       if test -n "$STRIP" ; then
17403
 
         striplib="$STRIP -x"
17404
 
         echo "$as_me:$LINENO: result: yes" >&5
17405
 
echo "${ECHO_T}yes" >&6
17406
 
       else
17407
 
  echo "$as_me:$LINENO: result: no" >&5
17408
 
echo "${ECHO_T}no" >&6
17409
 
fi
17410
 
       ;;
17411
 
   *)
17412
 
  echo "$as_me:$LINENO: result: no" >&5
17413
 
echo "${ECHO_T}no" >&6
17414
 
    ;;
17415
 
  esac
17416
 
fi
17417
 
 
17418
 
if test "x$enable_dlopen" != xyes; then
17419
 
  enable_dlopen=unknown
17420
 
  enable_dlopen_self=unknown
17421
 
  enable_dlopen_self_static=unknown
17422
 
else
17423
 
  lt_cv_dlopen=no
17424
 
  lt_cv_dlopen_libs=
17425
 
 
17426
 
  case $host_os in
17427
 
  beos*)
17428
 
    lt_cv_dlopen="load_add_on"
17429
 
    lt_cv_dlopen_libs=
17430
 
    lt_cv_dlopen_self=yes
17431
 
    ;;
17432
 
 
17433
 
  mingw* | pw32*)
17434
 
    lt_cv_dlopen="LoadLibrary"
17435
 
    lt_cv_dlopen_libs=
17436
 
   ;;
17437
 
 
17438
 
  cygwin*)
17439
 
    lt_cv_dlopen="dlopen"
17440
 
    lt_cv_dlopen_libs=
17441
 
   ;;
17442
 
 
17443
 
  darwin*)
17444
 
  # if libdl is installed we need to link against it
17445
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17446
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17447
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17448
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17449
 
else
17450
 
  ac_check_lib_save_LIBS=$LIBS
17451
 
LIBS="-ldl  $LIBS"
17452
 
cat >conftest.$ac_ext <<_ACEOF
17453
 
/* confdefs.h.  */
17454
 
_ACEOF
17455
 
cat confdefs.h >>conftest.$ac_ext
17456
 
cat >>conftest.$ac_ext <<_ACEOF
17457
 
/* end confdefs.h.  */
17458
 
 
17459
 
/* Override any gcc2 internal prototype to avoid an error.  */
17460
 
#ifdef __cplusplus
17461
 
extern "C"
17462
 
#endif
17463
 
/* We use char because int might match the return type of a gcc2
17464
 
   builtin and then its argument prototype would still apply.  */
17465
 
char dlopen ();
17466
 
int
17467
 
main ()
17468
 
{
17469
 
dlopen ();
17470
 
  ;
17471
 
  return 0;
17472
 
}
17473
 
_ACEOF
17474
 
rm -f conftest.$ac_objext conftest$ac_exeext
17475
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17476
 
  (eval $ac_link) 2>conftest.er1
17477
 
  ac_status=$?
17478
 
  grep -v '^ *+' conftest.er1 >conftest.err
17479
 
  rm -f conftest.er1
17480
 
  cat conftest.err >&5
17481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
 
  (exit $ac_status); } &&
17483
 
         { ac_try='test -z "$ac_c_werror_flag"
17484
 
                         || test ! -s conftest.err'
17485
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486
 
  (eval $ac_try) 2>&5
17487
 
  ac_status=$?
17488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
 
  (exit $ac_status); }; } &&
17490
 
         { ac_try='test -s conftest$ac_exeext'
17491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492
 
  (eval $ac_try) 2>&5
17493
 
  ac_status=$?
17494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
 
  (exit $ac_status); }; }; then
17496
 
  ac_cv_lib_dl_dlopen=yes
17497
 
else
17498
 
  echo "$as_me: failed program was:" >&5
17499
 
sed 's/^/| /' conftest.$ac_ext >&5
17500
 
 
17501
 
ac_cv_lib_dl_dlopen=no
17502
 
fi
17503
 
rm -f conftest.err conftest.$ac_objext \
17504
 
      conftest$ac_exeext conftest.$ac_ext
17505
 
LIBS=$ac_check_lib_save_LIBS
17506
 
fi
17507
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17508
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17509
 
if test $ac_cv_lib_dl_dlopen = yes; then
17510
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17511
 
else
17512
 
 
17513
 
    lt_cv_dlopen="dyld"
17514
 
    lt_cv_dlopen_libs=
17515
 
    lt_cv_dlopen_self=yes
17516
 
 
17517
 
fi
17518
 
 
17519
 
   ;;
17520
 
 
17521
 
  *)
17522
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17523
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17524
 
if test "${ac_cv_func_shl_load+set}" = set; then
17525
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17526
 
else
17527
 
  cat >conftest.$ac_ext <<_ACEOF
17528
 
/* confdefs.h.  */
17529
 
_ACEOF
17530
 
cat confdefs.h >>conftest.$ac_ext
17531
 
cat >>conftest.$ac_ext <<_ACEOF
17532
 
/* end confdefs.h.  */
17533
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17534
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17535
 
#define shl_load innocuous_shl_load
17536
 
 
17537
 
/* System header to define __stub macros and hopefully few prototypes,
17538
 
    which can conflict with char shl_load (); below.
17539
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17540
 
    <limits.h> exists even on freestanding compilers.  */
17541
 
 
17542
 
#ifdef __STDC__
17543
 
# include <limits.h>
17544
 
#else
17545
 
# include <assert.h>
17546
 
#endif
17547
 
 
17548
 
#undef shl_load
17549
 
 
17550
 
/* Override any gcc2 internal prototype to avoid an error.  */
17551
 
#ifdef __cplusplus
17552
 
extern "C"
17553
 
{
17554
 
#endif
17555
 
/* We use char because int might match the return type of a gcc2
17556
 
   builtin and then its argument prototype would still apply.  */
17557
 
char shl_load ();
17558
 
/* The GNU C library defines this for functions which it implements
17559
 
    to always fail with ENOSYS.  Some functions are actually named
17560
 
    something starting with __ and the normal name is an alias.  */
17561
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17562
 
choke me
17563
 
#else
17564
 
char (*f) () = shl_load;
17565
 
#endif
17566
 
#ifdef __cplusplus
17567
 
}
17568
 
#endif
17569
 
 
17570
 
int
17571
 
main ()
17572
 
{
17573
 
return f != shl_load;
17574
 
  ;
17575
 
  return 0;
17576
 
}
17577
 
_ACEOF
17578
 
rm -f conftest.$ac_objext conftest$ac_exeext
17579
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580
 
  (eval $ac_link) 2>conftest.er1
17581
 
  ac_status=$?
17582
 
  grep -v '^ *+' conftest.er1 >conftest.err
17583
 
  rm -f conftest.er1
17584
 
  cat conftest.err >&5
17585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
 
  (exit $ac_status); } &&
17587
 
         { ac_try='test -z "$ac_c_werror_flag"
17588
 
                         || test ! -s conftest.err'
17589
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590
 
  (eval $ac_try) 2>&5
17591
 
  ac_status=$?
17592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593
 
  (exit $ac_status); }; } &&
17594
 
         { ac_try='test -s conftest$ac_exeext'
17595
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596
 
  (eval $ac_try) 2>&5
17597
 
  ac_status=$?
17598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599
 
  (exit $ac_status); }; }; then
17600
 
  ac_cv_func_shl_load=yes
17601
 
else
17602
 
  echo "$as_me: failed program was:" >&5
17603
 
sed 's/^/| /' conftest.$ac_ext >&5
17604
 
 
17605
 
ac_cv_func_shl_load=no
17606
 
fi
17607
 
rm -f conftest.err conftest.$ac_objext \
17608
 
      conftest$ac_exeext conftest.$ac_ext
17609
 
fi
17610
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17611
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17612
 
if test $ac_cv_func_shl_load = yes; then
17613
 
  lt_cv_dlopen="shl_load"
17614
 
else
17615
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17616
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17617
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17618
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17619
 
else
17620
 
  ac_check_lib_save_LIBS=$LIBS
17621
 
LIBS="-ldld  $LIBS"
17622
 
cat >conftest.$ac_ext <<_ACEOF
17623
 
/* confdefs.h.  */
17624
 
_ACEOF
17625
 
cat confdefs.h >>conftest.$ac_ext
17626
 
cat >>conftest.$ac_ext <<_ACEOF
17627
 
/* end confdefs.h.  */
17628
 
 
17629
 
/* Override any gcc2 internal prototype to avoid an error.  */
17630
 
#ifdef __cplusplus
17631
 
extern "C"
17632
 
#endif
17633
 
/* We use char because int might match the return type of a gcc2
17634
 
   builtin and then its argument prototype would still apply.  */
17635
 
char shl_load ();
17636
 
int
17637
 
main ()
17638
 
{
17639
 
shl_load ();
17640
 
  ;
17641
 
  return 0;
17642
 
}
17643
 
_ACEOF
17644
 
rm -f conftest.$ac_objext conftest$ac_exeext
17645
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646
 
  (eval $ac_link) 2>conftest.er1
17647
 
  ac_status=$?
17648
 
  grep -v '^ *+' conftest.er1 >conftest.err
17649
 
  rm -f conftest.er1
17650
 
  cat conftest.err >&5
17651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652
 
  (exit $ac_status); } &&
17653
 
         { ac_try='test -z "$ac_c_werror_flag"
17654
 
                         || test ! -s conftest.err'
17655
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656
 
  (eval $ac_try) 2>&5
17657
 
  ac_status=$?
17658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659
 
  (exit $ac_status); }; } &&
17660
 
         { ac_try='test -s conftest$ac_exeext'
17661
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662
 
  (eval $ac_try) 2>&5
17663
 
  ac_status=$?
17664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665
 
  (exit $ac_status); }; }; then
17666
 
  ac_cv_lib_dld_shl_load=yes
17667
 
else
17668
 
  echo "$as_me: failed program was:" >&5
17669
 
sed 's/^/| /' conftest.$ac_ext >&5
17670
 
 
17671
 
ac_cv_lib_dld_shl_load=no
17672
 
fi
17673
 
rm -f conftest.err conftest.$ac_objext \
17674
 
      conftest$ac_exeext conftest.$ac_ext
17675
 
LIBS=$ac_check_lib_save_LIBS
17676
 
fi
17677
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17678
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17679
 
if test $ac_cv_lib_dld_shl_load = yes; then
17680
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17681
 
else
17682
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17683
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17684
 
if test "${ac_cv_func_dlopen+set}" = set; then
17685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17686
 
else
17687
 
  cat >conftest.$ac_ext <<_ACEOF
17688
 
/* confdefs.h.  */
17689
 
_ACEOF
17690
 
cat confdefs.h >>conftest.$ac_ext
17691
 
cat >>conftest.$ac_ext <<_ACEOF
17692
 
/* end confdefs.h.  */
17693
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17694
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17695
 
#define dlopen innocuous_dlopen
17696
 
 
17697
 
/* System header to define __stub macros and hopefully few prototypes,
17698
 
    which can conflict with char dlopen (); below.
17699
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700
 
    <limits.h> exists even on freestanding compilers.  */
17701
 
 
17702
 
#ifdef __STDC__
17703
 
# include <limits.h>
17704
 
#else
17705
 
# include <assert.h>
17706
 
#endif
17707
 
 
17708
 
#undef dlopen
17709
 
 
17710
 
/* Override any gcc2 internal prototype to avoid an error.  */
17711
 
#ifdef __cplusplus
17712
 
extern "C"
17713
 
{
17714
 
#endif
17715
 
/* We use char because int might match the return type of a gcc2
17716
 
   builtin and then its argument prototype would still apply.  */
17717
 
char dlopen ();
17718
 
/* The GNU C library defines this for functions which it implements
17719
 
    to always fail with ENOSYS.  Some functions are actually named
17720
 
    something starting with __ and the normal name is an alias.  */
17721
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17722
 
choke me
17723
 
#else
17724
 
char (*f) () = dlopen;
17725
 
#endif
17726
 
#ifdef __cplusplus
17727
 
}
17728
 
#endif
17729
 
 
17730
 
int
17731
 
main ()
17732
 
{
17733
 
return f != dlopen;
17734
 
  ;
17735
 
  return 0;
17736
 
}
17737
 
_ACEOF
17738
 
rm -f conftest.$ac_objext conftest$ac_exeext
17739
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740
 
  (eval $ac_link) 2>conftest.er1
17741
 
  ac_status=$?
17742
 
  grep -v '^ *+' conftest.er1 >conftest.err
17743
 
  rm -f conftest.er1
17744
 
  cat conftest.err >&5
17745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746
 
  (exit $ac_status); } &&
17747
 
         { ac_try='test -z "$ac_c_werror_flag"
17748
 
                         || test ! -s conftest.err'
17749
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750
 
  (eval $ac_try) 2>&5
17751
 
  ac_status=$?
17752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753
 
  (exit $ac_status); }; } &&
17754
 
         { ac_try='test -s conftest$ac_exeext'
17755
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756
 
  (eval $ac_try) 2>&5
17757
 
  ac_status=$?
17758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
 
  (exit $ac_status); }; }; then
17760
 
  ac_cv_func_dlopen=yes
17761
 
else
17762
 
  echo "$as_me: failed program was:" >&5
17763
 
sed 's/^/| /' conftest.$ac_ext >&5
17764
 
 
17765
 
ac_cv_func_dlopen=no
17766
 
fi
17767
 
rm -f conftest.err conftest.$ac_objext \
17768
 
      conftest$ac_exeext conftest.$ac_ext
17769
 
fi
17770
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17771
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17772
 
if test $ac_cv_func_dlopen = yes; then
17773
 
  lt_cv_dlopen="dlopen"
17774
 
else
17775
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17776
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17777
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17778
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17779
 
else
17780
 
  ac_check_lib_save_LIBS=$LIBS
17781
 
LIBS="-ldl  $LIBS"
17782
 
cat >conftest.$ac_ext <<_ACEOF
17783
 
/* confdefs.h.  */
17784
 
_ACEOF
17785
 
cat confdefs.h >>conftest.$ac_ext
17786
 
cat >>conftest.$ac_ext <<_ACEOF
17787
 
/* end confdefs.h.  */
17788
 
 
17789
 
/* Override any gcc2 internal prototype to avoid an error.  */
17790
 
#ifdef __cplusplus
17791
 
extern "C"
17792
 
#endif
17793
 
/* We use char because int might match the return type of a gcc2
17794
 
   builtin and then its argument prototype would still apply.  */
17795
 
char dlopen ();
17796
 
int
17797
 
main ()
17798
 
{
17799
 
dlopen ();
17800
 
  ;
17801
 
  return 0;
17802
 
}
17803
 
_ACEOF
17804
 
rm -f conftest.$ac_objext conftest$ac_exeext
17805
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806
 
  (eval $ac_link) 2>conftest.er1
17807
 
  ac_status=$?
17808
 
  grep -v '^ *+' conftest.er1 >conftest.err
17809
 
  rm -f conftest.er1
17810
 
  cat conftest.err >&5
17811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812
 
  (exit $ac_status); } &&
17813
 
         { ac_try='test -z "$ac_c_werror_flag"
17814
 
                         || test ! -s conftest.err'
17815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816
 
  (eval $ac_try) 2>&5
17817
 
  ac_status=$?
17818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819
 
  (exit $ac_status); }; } &&
17820
 
         { ac_try='test -s conftest$ac_exeext'
17821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
 
  (eval $ac_try) 2>&5
17823
 
  ac_status=$?
17824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
 
  (exit $ac_status); }; }; then
17826
 
  ac_cv_lib_dl_dlopen=yes
17827
 
else
17828
 
  echo "$as_me: failed program was:" >&5
17829
 
sed 's/^/| /' conftest.$ac_ext >&5
17830
 
 
17831
 
ac_cv_lib_dl_dlopen=no
17832
 
fi
17833
 
rm -f conftest.err conftest.$ac_objext \
17834
 
      conftest$ac_exeext conftest.$ac_ext
17835
 
LIBS=$ac_check_lib_save_LIBS
17836
 
fi
17837
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17838
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17839
 
if test $ac_cv_lib_dl_dlopen = yes; then
17840
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17841
 
else
17842
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17843
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17844
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17845
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17846
 
else
17847
 
  ac_check_lib_save_LIBS=$LIBS
17848
 
LIBS="-lsvld  $LIBS"
17849
 
cat >conftest.$ac_ext <<_ACEOF
17850
 
/* confdefs.h.  */
17851
 
_ACEOF
17852
 
cat confdefs.h >>conftest.$ac_ext
17853
 
cat >>conftest.$ac_ext <<_ACEOF
17854
 
/* end confdefs.h.  */
17855
 
 
17856
 
/* Override any gcc2 internal prototype to avoid an error.  */
17857
 
#ifdef __cplusplus
17858
 
extern "C"
17859
 
#endif
17860
 
/* We use char because int might match the return type of a gcc2
17861
 
   builtin and then its argument prototype would still apply.  */
17862
 
char dlopen ();
17863
 
int
17864
 
main ()
17865
 
{
17866
 
dlopen ();
17867
 
  ;
17868
 
  return 0;
17869
 
}
17870
 
_ACEOF
17871
 
rm -f conftest.$ac_objext conftest$ac_exeext
17872
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873
 
  (eval $ac_link) 2>conftest.er1
17874
 
  ac_status=$?
17875
 
  grep -v '^ *+' conftest.er1 >conftest.err
17876
 
  rm -f conftest.er1
17877
 
  cat conftest.err >&5
17878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879
 
  (exit $ac_status); } &&
17880
 
         { ac_try='test -z "$ac_c_werror_flag"
17881
 
                         || test ! -s conftest.err'
17882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883
 
  (eval $ac_try) 2>&5
17884
 
  ac_status=$?
17885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886
 
  (exit $ac_status); }; } &&
17887
 
         { ac_try='test -s conftest$ac_exeext'
17888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889
 
  (eval $ac_try) 2>&5
17890
 
  ac_status=$?
17891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892
 
  (exit $ac_status); }; }; then
17893
 
  ac_cv_lib_svld_dlopen=yes
17894
 
else
17895
 
  echo "$as_me: failed program was:" >&5
17896
 
sed 's/^/| /' conftest.$ac_ext >&5
17897
 
 
17898
 
ac_cv_lib_svld_dlopen=no
17899
 
fi
17900
 
rm -f conftest.err conftest.$ac_objext \
17901
 
      conftest$ac_exeext conftest.$ac_ext
17902
 
LIBS=$ac_check_lib_save_LIBS
17903
 
fi
17904
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17905
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17906
 
if test $ac_cv_lib_svld_dlopen = yes; then
17907
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17908
 
else
17909
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17910
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17911
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17912
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17913
 
else
17914
 
  ac_check_lib_save_LIBS=$LIBS
17915
 
LIBS="-ldld  $LIBS"
17916
 
cat >conftest.$ac_ext <<_ACEOF
17917
 
/* confdefs.h.  */
17918
 
_ACEOF
17919
 
cat confdefs.h >>conftest.$ac_ext
17920
 
cat >>conftest.$ac_ext <<_ACEOF
17921
 
/* end confdefs.h.  */
17922
 
 
17923
 
/* Override any gcc2 internal prototype to avoid an error.  */
17924
 
#ifdef __cplusplus
17925
 
extern "C"
17926
 
#endif
17927
 
/* We use char because int might match the return type of a gcc2
17928
 
   builtin and then its argument prototype would still apply.  */
17929
 
char dld_link ();
17930
 
int
17931
 
main ()
17932
 
{
17933
 
dld_link ();
17934
 
  ;
17935
 
  return 0;
17936
 
}
17937
 
_ACEOF
17938
 
rm -f conftest.$ac_objext conftest$ac_exeext
17939
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940
 
  (eval $ac_link) 2>conftest.er1
17941
 
  ac_status=$?
17942
 
  grep -v '^ *+' conftest.er1 >conftest.err
17943
 
  rm -f conftest.er1
17944
 
  cat conftest.err >&5
17945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946
 
  (exit $ac_status); } &&
17947
 
         { ac_try='test -z "$ac_c_werror_flag"
17948
 
                         || test ! -s conftest.err'
17949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950
 
  (eval $ac_try) 2>&5
17951
 
  ac_status=$?
17952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953
 
  (exit $ac_status); }; } &&
17954
 
         { ac_try='test -s conftest$ac_exeext'
17955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956
 
  (eval $ac_try) 2>&5
17957
 
  ac_status=$?
17958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959
 
  (exit $ac_status); }; }; then
17960
 
  ac_cv_lib_dld_dld_link=yes
17961
 
else
17962
 
  echo "$as_me: failed program was:" >&5
17963
 
sed 's/^/| /' conftest.$ac_ext >&5
17964
 
 
17965
 
ac_cv_lib_dld_dld_link=no
17966
 
fi
17967
 
rm -f conftest.err conftest.$ac_objext \
17968
 
      conftest$ac_exeext conftest.$ac_ext
17969
 
LIBS=$ac_check_lib_save_LIBS
17970
 
fi
17971
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17972
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17973
 
if test $ac_cv_lib_dld_dld_link = yes; then
17974
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17975
 
fi
17976
 
 
17977
 
 
17978
 
fi
17979
 
 
17980
 
 
17981
 
fi
17982
 
 
17983
 
 
17984
 
fi
17985
 
 
17986
 
 
17987
 
fi
17988
 
 
17989
 
 
17990
 
fi
17991
 
 
17992
 
    ;;
17993
 
  esac
17994
 
 
17995
 
  if test "x$lt_cv_dlopen" != xno; then
17996
 
    enable_dlopen=yes
17997
 
  else
17998
 
    enable_dlopen=no
17999
 
  fi
18000
 
 
18001
 
  case $lt_cv_dlopen in
18002
 
  dlopen)
18003
 
    save_CPPFLAGS="$CPPFLAGS"
18004
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18005
 
 
18006
 
    save_LDFLAGS="$LDFLAGS"
18007
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18008
 
 
18009
 
    save_LIBS="$LIBS"
18010
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18011
 
 
18012
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18013
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18014
 
if test "${lt_cv_dlopen_self+set}" = set; then
18015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18016
 
else
18017
 
          if test "$cross_compiling" = yes; then :
18018
 
  lt_cv_dlopen_self=cross
18019
 
else
18020
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021
 
  lt_status=$lt_dlunknown
18022
 
  cat > conftest.$ac_ext <<EOF
18023
 
#line 18023 "configure"
18024
 
#include "confdefs.h"
18025
 
 
18026
 
#if HAVE_DLFCN_H
18027
 
#include <dlfcn.h>
18028
 
#endif
18029
 
 
18030
 
#include <stdio.h>
18031
 
 
18032
 
#ifdef RTLD_GLOBAL
18033
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18034
 
#else
18035
 
#  ifdef DL_GLOBAL
18036
 
#    define LT_DLGLOBAL         DL_GLOBAL
18037
 
#  else
18038
 
#    define LT_DLGLOBAL         0
18039
 
#  endif
18040
 
#endif
18041
 
 
18042
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043
 
   find out it does not work in some platform. */
18044
 
#ifndef LT_DLLAZY_OR_NOW
18045
 
#  ifdef RTLD_LAZY
18046
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18047
 
#  else
18048
 
#    ifdef DL_LAZY
18049
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18050
 
#    else
18051
 
#      ifdef RTLD_NOW
18052
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18053
 
#      else
18054
 
#        ifdef DL_NOW
18055
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18056
 
#        else
18057
 
#          define LT_DLLAZY_OR_NOW      0
18058
 
#        endif
18059
 
#      endif
18060
 
#    endif
18061
 
#  endif
18062
 
#endif
18063
 
 
18064
 
#ifdef __cplusplus
18065
 
extern "C" void exit (int);
18066
 
#endif
18067
 
 
18068
 
void fnord() { int i=42;}
18069
 
int main ()
18070
 
{
18071
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072
 
  int status = $lt_dlunknown;
18073
 
 
18074
 
  if (self)
18075
 
    {
18076
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18077
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078
 
      /* dlclose (self); */
18079
 
    }
18080
 
 
18081
 
    exit (status);
18082
 
}
18083
 
EOF
18084
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085
 
  (eval $ac_link) 2>&5
18086
 
  ac_status=$?
18087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089
 
    (./conftest; exit; ) 2>/dev/null
18090
 
    lt_status=$?
18091
 
    case x$lt_status in
18092
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18093
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18094
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18095
 
    esac
18096
 
  else :
18097
 
    # compilation failed
18098
 
    lt_cv_dlopen_self=no
18099
 
  fi
18100
 
fi
18101
 
rm -fr conftest*
18102
 
 
18103
 
 
18104
 
fi
18105
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18106
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18107
 
 
18108
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18109
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18110
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18111
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18112
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18114
 
else
18115
 
          if test "$cross_compiling" = yes; then :
18116
 
  lt_cv_dlopen_self_static=cross
18117
 
else
18118
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18119
 
  lt_status=$lt_dlunknown
18120
 
  cat > conftest.$ac_ext <<EOF
18121
 
#line 18121 "configure"
18122
 
#include "confdefs.h"
18123
 
 
18124
 
#if HAVE_DLFCN_H
18125
 
#include <dlfcn.h>
18126
 
#endif
18127
 
 
18128
 
#include <stdio.h>
18129
 
 
18130
 
#ifdef RTLD_GLOBAL
18131
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18132
 
#else
18133
 
#  ifdef DL_GLOBAL
18134
 
#    define LT_DLGLOBAL         DL_GLOBAL
18135
 
#  else
18136
 
#    define LT_DLGLOBAL         0
18137
 
#  endif
18138
 
#endif
18139
 
 
18140
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18141
 
   find out it does not work in some platform. */
18142
 
#ifndef LT_DLLAZY_OR_NOW
18143
 
#  ifdef RTLD_LAZY
18144
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18145
 
#  else
18146
 
#    ifdef DL_LAZY
18147
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18148
 
#    else
18149
 
#      ifdef RTLD_NOW
18150
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18151
 
#      else
18152
 
#        ifdef DL_NOW
18153
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18154
 
#        else
18155
 
#          define LT_DLLAZY_OR_NOW      0
18156
 
#        endif
18157
 
#      endif
18158
 
#    endif
18159
 
#  endif
18160
 
#endif
18161
 
 
18162
 
#ifdef __cplusplus
18163
 
extern "C" void exit (int);
18164
 
#endif
18165
 
 
18166
 
void fnord() { int i=42;}
18167
 
int main ()
18168
 
{
18169
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18170
 
  int status = $lt_dlunknown;
18171
 
 
18172
 
  if (self)
18173
 
    {
18174
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18175
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18176
 
      /* dlclose (self); */
18177
 
    }
18178
 
 
18179
 
    exit (status);
18180
 
}
18181
 
EOF
18182
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183
 
  (eval $ac_link) 2>&5
18184
 
  ac_status=$?
18185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18187
 
    (./conftest; exit; ) 2>/dev/null
18188
 
    lt_status=$?
18189
 
    case x$lt_status in
18190
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18191
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18192
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18193
 
    esac
18194
 
  else :
18195
 
    # compilation failed
18196
 
    lt_cv_dlopen_self_static=no
18197
 
  fi
18198
 
fi
18199
 
rm -fr conftest*
18200
 
 
18201
 
 
18202
 
fi
18203
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18204
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18205
 
    fi
18206
 
 
18207
 
    CPPFLAGS="$save_CPPFLAGS"
18208
 
    LDFLAGS="$save_LDFLAGS"
18209
 
    LIBS="$save_LIBS"
18210
 
    ;;
18211
 
  esac
18212
 
 
18213
 
  case $lt_cv_dlopen_self in
18214
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18215
 
  *) enable_dlopen_self=unknown ;;
18216
 
  esac
18217
 
 
18218
 
  case $lt_cv_dlopen_self_static in
18219
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18220
 
  *) enable_dlopen_self_static=unknown ;;
18221
 
  esac
18222
 
fi
18223
 
 
18224
17610
 
18225
17611
# The else clause should only fire when bootstrapping the
18226
17612
# libtool distribution, otherwise you forgot to ship ltmain.sh
18235
17621
  # Now quote all the things that may contain metacharacters while being
18236
17622
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18237
17623
  # variables and quote the copies for generation of the libtool script.
18238
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17624
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18239
17625
    SED SHELL STRIP \
18240
17626
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18241
17627
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18336
17722
# The host system.
18337
17723
host_alias=$host_alias
18338
17724
host=$host
 
17725
host_os=$host_os
 
17726
 
 
17727
# The build system.
 
17728
build_alias=$build_alias
 
17729
build=$build
 
17730
build_os=$build_os
18339
17731
 
18340
17732
# An echo program that does not interpret backslashes.
18341
17733
echo=$lt_echo
18347
17739
# A C compiler.
18348
17740
LTCC=$lt_LTCC
18349
17741
 
 
17742
# LTCC compiler flags.
 
17743
LTCFLAGS=$lt_LTCFLAGS
 
17744
 
18350
17745
# A language-specific compiler.
18351
17746
CC=$lt_compiler_GCJ
18352
17747
 
18412
17807
# Does compiler simultaneously support -c and -o options?
18413
17808
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18414
17809
 
18415
 
# Must we lock files when doing compilation ?
 
17810
# Must we lock files when doing compilation?
18416
17811
need_locks=$lt_need_locks
18417
17812
 
18418
17813
# Do we need the lib prefix for modules?
18656
18051
# If no C compiler was specified, use CC.
18657
18052
LTCC=${LTCC-"$CC"}
18658
18053
 
 
18054
# If no C compiler flags were specified, use CFLAGS.
 
18055
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18056
 
18659
18057
# Allow CC to be a program name with arguments.
18660
18058
compiler=$CC
18661
18059
 
18662
18060
 
 
18061
# save warnings/boilerplate of simple test code
 
18062
ac_outfile=conftest.$ac_objext
 
18063
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18064
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18065
_lt_compiler_boilerplate=`cat conftest.err`
 
18066
$rm conftest*
 
18067
 
 
18068
ac_outfile=conftest.$ac_objext
 
18069
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18070
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18071
_lt_linker_boilerplate=`cat conftest.err`
 
18072
$rm conftest*
 
18073
 
 
18074
 
18663
18075
# Allow CC to be a program name with arguments.
18664
18076
lt_save_CC="$CC"
18665
18077
CC=${RC-"windres"}
18666
18078
compiler=$CC
18667
18079
compiler_RC=$CC
 
18080
for cc_temp in $compiler""; do
 
18081
  case $cc_temp in
 
18082
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18083
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18084
    \-*) ;;
 
18085
    *) break;;
 
18086
  esac
 
18087
done
 
18088
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18089
 
18668
18090
lt_cv_prog_compiler_c_o_RC=yes
18669
18091
 
18670
18092
# The else clause should only fire when bootstrapping the
18680
18102
  # Now quote all the things that may contain metacharacters while being
18681
18103
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18682
18104
  # variables and quote the copies for generation of the libtool script.
18683
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18105
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18684
18106
    SED SHELL STRIP \
18685
18107
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18686
18108
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18781
18203
# The host system.
18782
18204
host_alias=$host_alias
18783
18205
host=$host
 
18206
host_os=$host_os
 
18207
 
 
18208
# The build system.
 
18209
build_alias=$build_alias
 
18210
build=$build
 
18211
build_os=$build_os
18784
18212
 
18785
18213
# An echo program that does not interpret backslashes.
18786
18214
echo=$lt_echo
18792
18220
# A C compiler.
18793
18221
LTCC=$lt_LTCC
18794
18222
 
 
18223
# LTCC compiler flags.
 
18224
LTCFLAGS=$lt_LTCFLAGS
 
18225
 
18795
18226
# A language-specific compiler.
18796
18227
CC=$lt_compiler_RC
18797
18228
 
18857
18288
# Does compiler simultaneously support -c and -o options?
18858
18289
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18859
18290
 
18860
 
# Must we lock files when doing compilation ?
 
18291
# Must we lock files when doing compilation?
18861
18292
need_locks=$lt_need_locks
18862
18293
 
18863
18294
# Do we need the lib prefix for modules?
20450
19881
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20451
19882
  esac
20452
19883
 
20453
 
  if test x"$ac_file" != x-; then
20454
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
20455
 
echo "$as_me: creating $ac_file" >&6;}
20456
 
    rm -f "$ac_file"
20457
 
  fi
20458
19884
  # Let's still pretend it is `configure' which instantiates (i.e., don't
20459
19885
  # use $as_me), people would be surprised to read:
20460
19886
  #    /* config.h.  Generated by config.status.  */
20493
19919
         fi;;
20494
19920
      esac
20495
19921
    done` || { (exit 1); exit 1; }
 
19922
 
 
19923
  if test x"$ac_file" != x-; then
 
19924
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19925
echo "$as_me: creating $ac_file" >&6;}
 
19926
    rm -f "$ac_file"
 
19927
  fi
20496
19928
_ACEOF
20497
19929
cat >>$CONFIG_STATUS <<_ACEOF
20498
19930
  sed "$ac_vpsub