~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Benner
  • Date: 2007-11-22 12:37:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122123714-b0xi4zxhgk5qwbmc
Tags: 0.93.dfsg-2
* Added missing build-dependency (python).
* debian/control: switching to Homepage, Vcs-Browser and Vcs-Svn official
  fields (Leo "costela" Antunes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for transmission 0.91.
 
3
# Generated by GNU Autoconf 2.61 for transmission 0.93.
4
4
#
5
5
# Report bugs to <http://transmission.m0k.org/trac/newticket>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='transmission'
730
730
PACKAGE_TARNAME='transmission'
731
 
PACKAGE_VERSION='0.91'
732
 
PACKAGE_STRING='transmission 0.91'
 
731
PACKAGE_VERSION='0.93'
 
732
PACKAGE_STRING='transmission 0.93'
733
733
PACKAGE_BUGREPORT='http://transmission.m0k.org/trac/newticket'
734
734
 
735
735
ac_unique_file="libtransmission/transmission.h"
1477
1477
  # Omit some internal or obsolete options to make the list less imposing.
1478
1478
  # This message is too long to be a string in the A/UX 3.1 sh.
1479
1479
  cat <<_ACEOF
1480
 
\`configure' configures transmission 0.91 to adapt to many kinds of systems.
 
1480
\`configure' configures transmission 0.93 to adapt to many kinds of systems.
1481
1481
 
1482
1482
Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1483
 
1547
1547
 
1548
1548
if test -n "$ac_init_help"; then
1549
1549
  case $ac_init_help in
1550
 
     short | recursive ) echo "Configuration of transmission 0.91:";;
 
1550
     short | recursive ) echo "Configuration of transmission 0.93:";;
1551
1551
   esac
1552
1552
  cat <<\_ACEOF
1553
1553
 
1561
1561
  --disable-dependency-tracking  speeds up one-time build
1562
1562
  --enable-dependency-tracking   do not reject slow dependency extractors
1563
1563
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1564
  --disable-largefile     omit support for large files
1564
1565
 
1565
1566
Optional Packages:
1566
1567
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1663
1664
test -n "$ac_init_help" && exit $ac_status
1664
1665
if $ac_init_version; then
1665
1666
  cat <<\_ACEOF
1666
 
transmission configure 0.91
 
1667
transmission configure 0.93
1667
1668
generated by GNU Autoconf 2.61
1668
1669
 
1669
1670
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1677
1678
This file contains any messages produced by compilers while
1678
1679
running configure, to aid debugging if configure makes a mistake.
1679
1680
 
1680
 
It was created by transmission $as_me 0.91, which was
 
1681
It was created by transmission $as_me 0.93, which was
1681
1682
generated by GNU Autoconf 2.61.  Invocation command line was
1682
1683
 
1683
1684
  $ $0 $@
2031
2032
 
2032
2033
 
2033
2034
 
2034
 
PEERID_PREFIX="-TR0910-"
2035
 
USERAGENT_PREFIX="0.91"
 
2035
PEERID_PREFIX="-TR0930-"
 
2036
USERAGENT_PREFIX="0.93"
2036
2037
PEERID_PREFIX=$PEERID_PREFIX
2037
2038
 
2038
2039
USERAGENT_PREFIX=$USERAGENT_PREFIX
2377
2378
 
2378
2379
# Define the identity of the package.
2379
2380
 PACKAGE='transmission'
2380
 
 VERSION='0.91'
 
2381
 VERSION='0.93'
2381
2382
 
2382
2383
 
2383
2384
cat >>confdefs.h <<_ACEOF
3862
3863
  test -z "$as_dir" && as_dir=.
3863
3864
  for lt_ac_prog in sed gsed; do
3864
3865
    for ac_exec_ext in '' $ac_executable_extensions; do
3865
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3866
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3866
3867
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3867
3868
      fi
3868
3869
    done
4265
4266
echo "${ECHO_T}no, using $LN_S" >&6; }
4266
4267
fi
4267
4268
 
4268
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4269
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4269
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4270
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4270
4271
if test "${lt_cv_deplibs_check_method+set}" = set; then
4271
4272
  echo $ECHO_N "(cached) $ECHO_C" >&6
4272
4273
else
4307
4308
 
4308
4309
mingw* | pw32*)
4309
4310
  # Base MSYS/MinGW do not provide the 'file' command needed by
4310
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4311
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4312
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4311
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4312
  # unless we find 'file', for example because we are cross-compiling.
 
4313
  if ( file / ) >/dev/null 2>&1; then
 
4314
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4315
    lt_cv_file_magic_cmd='func_win32_libid'
 
4316
  else
 
4317
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4318
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4319
  fi
4313
4320
  ;;
4314
4321
 
4315
4322
darwin* | rhapsody*)
4316
4323
  lt_cv_deplibs_check_method=pass_all
4317
4324
  ;;
4318
4325
 
4319
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
4326
freebsd* | dragonfly*)
4320
4327
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321
4328
    case $host_cpu in
4322
4329
    i*86 )
4354
4361
  esac
4355
4362
  ;;
4356
4363
 
4357
 
interix3*)
 
4364
interix[3-9]*)
4358
4365
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4359
4366
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4360
4367
  ;;
4370
4377
  ;;
4371
4378
 
4372
4379
# This must be Linux ELF.
4373
 
linux*)
 
4380
linux* | k*bsd*-gnu)
4374
4381
  lt_cv_deplibs_check_method=pass_all
4375
4382
  ;;
4376
4383
 
4404
4411
  lt_cv_deplibs_check_method=pass_all
4405
4412
  ;;
4406
4413
 
 
4414
rdos*)
 
4415
  lt_cv_deplibs_check_method=pass_all
 
4416
  ;;
 
4417
 
4407
4418
solaris*)
4408
4419
  lt_cv_deplibs_check_method=pass_all
4409
4420
  ;;
4491
4502
  ;;
4492
4503
*-*-irix6*)
4493
4504
  # Find out which ABI we are using.
4494
 
  echo '#line 4494 "configure"' > conftest.$ac_ext
 
4505
  echo '#line 4505 "configure"' > conftest.$ac_ext
4495
4506
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496
4507
  (eval $ac_compile) 2>&5
4497
4508
  ac_status=$?
4526
4537
  rm -rf conftest*
4527
4538
  ;;
4528
4539
 
4529
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4540
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4541
s390*-*linux*|sparc*-*linux*)
4530
4542
  # Find out which ABI we are using.
4531
4543
  echo 'int i;' > conftest.$ac_ext
4532
4544
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537
4549
    case `/usr/bin/file conftest.o` in
4538
4550
    *32-bit*)
4539
4551
      case $host in
 
4552
        x86_64-*kfreebsd*-gnu)
 
4553
          LD="${LD-ld} -m elf_i386_fbsd"
 
4554
          ;;
4540
4555
        x86_64-*linux*)
4541
4556
          LD="${LD-ld} -m elf_i386"
4542
4557
          ;;
4552
4567
      esac
4553
4568
      ;;
4554
4569
    *64-bit*)
 
4570
      libsuff=64
4555
4571
      case $host in
 
4572
        x86_64-*kfreebsd*-gnu)
 
4573
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4574
          ;;
4556
4575
        x86_64-*linux*)
4557
4576
          LD="${LD-ld} -m elf_x86_64"
4558
4577
          ;;
6345
6364
    fi
6346
6365
    ;;
6347
6366
  *)
6348
 
    # If test is not a shell built-in, we'll probably end up computing a
6349
 
    # maximum length that is only half of the actual maximum length, but
6350
 
    # we can't tell.
6351
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6367
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6368
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6369
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6370
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6371
    else
 
6372
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6373
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6353
6374
               = "XX$teststring") >/dev/null 2>&1 &&
6354
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6355
 
            lt_cv_sys_max_cmd_len=$new_result &&
6356
 
            test $i != 17 # 1/2 MB should be enough
6357
 
    do
6358
 
      i=`expr $i + 1`
6359
 
      teststring=$teststring$teststring
6360
 
    done
6361
 
    teststring=
6362
 
    # Add a significant safety factor because C++ compilers can tack on massive
6363
 
    # amounts of additional arguments before passing them to the linker.
6364
 
    # It appears as though 1/2 is a usable value.
6365
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6375
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6376
              lt_cv_sys_max_cmd_len=$new_result &&
 
6377
              test $i != 17 # 1/2 MB should be enough
 
6378
      do
 
6379
        i=`expr $i + 1`
 
6380
        teststring=$teststring$teststring
 
6381
      done
 
6382
      teststring=
 
6383
      # Add a significant safety factor because C++ compilers can tack on massive
 
6384
      # amounts of additional arguments before passing them to the linker.
 
6385
      # It appears as though 1/2 is a usable value.
 
6386
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6387
    fi
6366
6388
    ;;
6367
6389
  esac
6368
6390
 
6379
6401
 
6380
6402
 
6381
6403
 
 
6404
 
6382
6405
# Check for command to grab the raw symbol name followed by C symbol from nm.
6383
6406
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6384
6407
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6416
6439
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6417
6440
  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'"
6418
6441
  ;;
6419
 
linux*)
 
6442
linux* | k*bsd*-gnu)
6420
6443
  if test "$host_cpu" = ia64; then
6421
6444
    symcode='[ABCDGIRSTW]'
6422
6445
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6967
6990
test -z "$ac_objext" && ac_objext=o
6968
6991
 
6969
6992
# Determine commands to create old-style static archives.
6970
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6993
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6971
6994
old_postinstall_cmds='chmod 644 $oldlib'
6972
6995
old_postuninstall_cmds=
6973
6996
 
7167
7190
objext=$objext
7168
7191
 
7169
7192
# Code to be used in simple compile tests
7170
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7193
lt_simple_compile_test_code="int some_variable = 0;"
7171
7194
 
7172
7195
# Code to be used in simple link tests
7173
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7196
lt_simple_link_test_code='int main(){return(0);}'
7174
7197
 
7175
7198
 
7176
7199
# If no C compiler was specified, use CC.
7185
7208
 
7186
7209
# save warnings/boilerplate of simple test code
7187
7210
ac_outfile=conftest.$ac_objext
7188
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7211
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7189
7212
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7190
7213
_lt_compiler_boilerplate=`cat conftest.err`
7191
7214
$rm conftest*
7192
7215
 
7193
7216
ac_outfile=conftest.$ac_objext
7194
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7217
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7195
7218
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7196
7219
_lt_linker_boilerplate=`cat conftest.err`
7197
7220
$rm conftest*
7211
7234
else
7212
7235
  lt_cv_prog_compiler_rtti_exceptions=no
7213
7236
  ac_outfile=conftest.$ac_objext
7214
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7237
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7215
7238
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7216
7239
   # Insert the option either (1) after the last *FLAGS variable, or
7217
7240
   # (2) before a word containing "conftest.", or (3) at the end.
7222
7245
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7223
7246
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7224
7247
   -e 's:$: $lt_compiler_flag:'`
7225
 
   (eval echo "\"\$as_me:7225: $lt_compile\"" >&5)
 
7248
   (eval echo "\"\$as_me:7248: $lt_compile\"" >&5)
7226
7249
   (eval "$lt_compile" 2>conftest.err)
7227
7250
   ac_status=$?
7228
7251
   cat conftest.err >&5
7229
 
   echo "$as_me:7229: \$? = $ac_status" >&5
 
7252
   echo "$as_me:7252: \$? = $ac_status" >&5
7230
7253
   if (exit $ac_status) && test -s "$ac_outfile"; then
7231
7254
     # The compiler can only warn and ignore the option if not recognized
7232
7255
     # So say no if there are warnings other than the usual output.
7277
7300
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7278
7301
      ;;
7279
7302
 
7280
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7303
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7281
7304
      # PIC is the default for these OSes.
7282
7305
      ;;
7283
7306
 
7284
 
    mingw* | pw32* | os2*)
 
7307
    mingw* | cygwin* | pw32* | os2*)
7285
7308
      # This hack is so that the source file can tell whether it is being
7286
7309
      # built for inclusion in a dll (and should export symbols for example).
 
7310
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7311
      # (--disable-auto-import) libraries
7287
7312
      lt_prog_compiler_pic='-DDLL_EXPORT'
7288
7313
      ;;
7289
7314
 
7293
7318
      lt_prog_compiler_pic='-fno-common'
7294
7319
      ;;
7295
7320
 
7296
 
    interix3*)
 
7321
    interix[3-9]*)
7297
7322
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7298
7323
      # Instead, we relocate shared libraries at runtime.
7299
7324
      ;;
7351
7376
       esac
7352
7377
       ;;
7353
7378
 
7354
 
    mingw* | pw32* | os2*)
 
7379
    mingw* | cygwin* | pw32* | os2*)
7355
7380
      # This hack is so that the source file can tell whether it is being
7356
7381
      # built for inclusion in a dll (and should export symbols for example).
7357
7382
      lt_prog_compiler_pic='-DDLL_EXPORT'
7384
7409
      lt_prog_compiler_static='-Bstatic'
7385
7410
      ;;
7386
7411
 
7387
 
    linux*)
 
7412
    linux* | k*bsd*-gnu)
7388
7413
      case $cc_basename in
7389
7414
      icc* | ecc*)
7390
7415
        lt_prog_compiler_wl='-Wl,'
7403
7428
        # All Alpha code is PIC.
7404
7429
        lt_prog_compiler_static='-non_shared'
7405
7430
        ;;
 
7431
      *)
 
7432
        case `$CC -V 2>&1 | sed 5q` in
 
7433
        *Sun\ C*)
 
7434
          # Sun C 5.9
 
7435
          lt_prog_compiler_pic='-KPIC'
 
7436
          lt_prog_compiler_static='-Bstatic'
 
7437
          lt_prog_compiler_wl='-Wl,'
 
7438
          ;;
 
7439
        *Sun\ F*)
 
7440
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7441
          lt_prog_compiler_pic='-KPIC'
 
7442
          lt_prog_compiler_static='-Bstatic'
 
7443
          lt_prog_compiler_wl=''
 
7444
          ;;
 
7445
        esac
 
7446
        ;;
7406
7447
      esac
7407
7448
      ;;
7408
7449
 
7412
7453
      lt_prog_compiler_static='-non_shared'
7413
7454
      ;;
7414
7455
 
 
7456
    rdos*)
 
7457
      lt_prog_compiler_static='-non_shared'
 
7458
      ;;
 
7459
 
7415
7460
    solaris*)
7416
7461
      lt_prog_compiler_pic='-KPIC'
7417
7462
      lt_prog_compiler_static='-Bstatic'
7479
7524
else
7480
7525
  lt_prog_compiler_pic_works=no
7481
7526
  ac_outfile=conftest.$ac_objext
7482
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7527
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7483
7528
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7484
7529
   # Insert the option either (1) after the last *FLAGS variable, or
7485
7530
   # (2) before a word containing "conftest.", or (3) at the end.
7490
7535
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7491
7536
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7492
7537
   -e 's:$: $lt_compiler_flag:'`
7493
 
   (eval echo "\"\$as_me:7493: $lt_compile\"" >&5)
 
7538
   (eval echo "\"\$as_me:7538: $lt_compile\"" >&5)
7494
7539
   (eval "$lt_compile" 2>conftest.err)
7495
7540
   ac_status=$?
7496
7541
   cat conftest.err >&5
7497
 
   echo "$as_me:7497: \$? = $ac_status" >&5
 
7542
   echo "$as_me:7542: \$? = $ac_status" >&5
7498
7543
   if (exit $ac_status) && test -s "$ac_outfile"; then
7499
7544
     # The compiler can only warn and ignore the option if not recognized
7500
7545
     # So say no if there are warnings other than the usual output.
7543
7588
  lt_prog_compiler_static_works=no
7544
7589
   save_LDFLAGS="$LDFLAGS"
7545
7590
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7546
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7591
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7547
7592
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7548
7593
     # The linker can only warn and ignore the option if not recognized
7549
7594
     # So say no if there are warnings
7583
7628
   mkdir conftest
7584
7629
   cd conftest
7585
7630
   mkdir out
7586
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7631
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7587
7632
 
7588
7633
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7589
7634
   # Insert the option either (1) after the last *FLAGS variable, or
7594
7639
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7595
7640
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7596
7641
   -e 's:$: $lt_compiler_flag:'`
7597
 
   (eval echo "\"\$as_me:7597: $lt_compile\"" >&5)
 
7642
   (eval echo "\"\$as_me:7642: $lt_compile\"" >&5)
7598
7643
   (eval "$lt_compile" 2>out/conftest.err)
7599
7644
   ac_status=$?
7600
7645
   cat out/conftest.err >&5
7601
 
   echo "$as_me:7601: \$? = $ac_status" >&5
 
7646
   echo "$as_me:7646: \$? = $ac_status" >&5
7602
7647
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7603
7648
   then
7604
7649
     # The compiler can only warn and ignore the option if not recognized
7790
7835
      allow_undefined_flag=unsupported
7791
7836
      always_export_symbols=no
7792
7837
      enable_shared_with_static_runtimes=yes
7793
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7838
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7794
7839
 
7795
7840
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7796
7841
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7808
7853
      fi
7809
7854
      ;;
7810
7855
 
7811
 
    interix3*)
 
7856
    interix[3-9]*)
7812
7857
      hardcode_direct=no
7813
7858
      hardcode_shlibpath_var=no
7814
7859
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7823
7868
      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'
7824
7869
      ;;
7825
7870
 
7826
 
    linux*)
 
7871
    gnu* | linux* | k*bsd*-gnu)
7827
7872
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7828
7873
        tmp_addflag=
7829
7874
        case $cc_basename,$host_cpu in
7841
7886
        ifc* | ifort*)                  # Intel Fortran compiler
7842
7887
          tmp_addflag=' -nofor_main' ;;
7843
7888
        esac
7844
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7889
        case `$CC -V 2>&1 | sed 5q` in
 
7890
        *Sun\ C*)                       # Sun C 5.9
 
7891
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7892
          tmp_sharedflag='-G' ;;
 
7893
        *Sun\ F*)                       # Sun Fortran 8.3
 
7894
          tmp_sharedflag='-G' ;;
 
7895
        *)
 
7896
          tmp_sharedflag='-shared' ;;
 
7897
        esac
 
7898
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845
7899
 
7846
7900
        if test $supports_anon_versioning = yes; then
7847
7901
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7848
7902
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7849
7903
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7850
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7904
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7851
7905
        fi
7852
7906
      else
7853
7907
        ld_shlibs=no
8006
8060
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8007
8061
          then
8008
8062
          # We have reworked collect2
8009
 
          hardcode_direct=yes
 
8063
          :
8010
8064
          else
8011
8065
          # We have old collect2
8012
8066
          hardcode_direct=unsupported
8080
8134
       } && test -s conftest$ac_exeext &&
8081
8135
       $as_test_x conftest$ac_exeext; then
8082
8136
 
8083
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8084
 
}'`
 
8137
lt_aix_libpath_sed='
 
8138
    /Import File Strings/,/^$/ {
 
8139
        /^0/ {
 
8140
            s/^0  *\(.*\)$/\1/
 
8141
            p
 
8142
        }
 
8143
    }'
 
8144
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8085
8145
# Check for a 64-bit object if we didn't find anything.
8086
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8087
 
}'`; fi
 
8146
if test -z "$aix_libpath"; then
 
8147
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8148
fi
8088
8149
else
8089
8150
  echo "$as_me: failed program was:" >&5
8090
8151
sed 's/^/| /' conftest.$ac_ext >&5
8139
8200
       } && test -s conftest$ac_exeext &&
8140
8201
       $as_test_x conftest$ac_exeext; then
8141
8202
 
8142
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8143
 
}'`
 
8203
lt_aix_libpath_sed='
 
8204
    /Import File Strings/,/^$/ {
 
8205
        /^0/ {
 
8206
            s/^0  *\(.*\)$/\1/
 
8207
            p
 
8208
        }
 
8209
    }'
 
8210
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8144
8211
# Check for a 64-bit object if we didn't find anything.
8145
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8146
 
}'`; fi
 
8212
if test -z "$aix_libpath"; then
 
8213
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8214
fi
8147
8215
else
8148
8216
  echo "$as_me: failed program was:" >&5
8149
8217
sed 's/^/| /' conftest.$ac_ext >&5
8197
8265
      # The linker will automatically build a .lib file if we build a DLL.
8198
8266
      old_archive_From_new_cmds='true'
8199
8267
      # FIXME: Should let the user specify the lib program.
8200
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8268
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8201
8269
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8202
8270
      enable_shared_with_static_runtimes=yes
8203
8271
      ;;
8239
8307
      case $cc_basename in
8240
8308
        xlc*)
8241
8309
         output_verbose_link_cmd='echo'
8242
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8310
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8243
8311
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244
8312
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8245
 
         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}'
 
8313
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8246
8314
          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}'
8247
8315
          ;;
8248
8316
       *)
8282
8350
      ;;
8283
8351
 
8284
8352
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8285
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8353
    freebsd* | dragonfly*)
8286
8354
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8287
8355
      hardcode_libdir_flag_spec='-R$libdir'
8288
8356
      hardcode_direct=yes
8404
8472
      ;;
8405
8473
 
8406
8474
    openbsd*)
8407
 
      hardcode_direct=yes
8408
 
      hardcode_shlibpath_var=no
8409
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8410
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8411
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8412
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8413
 
        export_dynamic_flag_spec='${wl}-E'
 
8475
      if test -f /usr/libexec/ld.so; then
 
8476
        hardcode_direct=yes
 
8477
        hardcode_shlibpath_var=no
 
8478
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8479
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8480
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8481
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8482
          export_dynamic_flag_spec='${wl}-E'
 
8483
        else
 
8484
          case $host_os in
 
8485
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8486
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8487
             hardcode_libdir_flag_spec='-R$libdir'
 
8488
             ;;
 
8489
           *)
 
8490
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8491
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8492
             ;;
 
8493
          esac
 
8494
        fi
8414
8495
      else
8415
 
       case $host_os in
8416
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8417
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8418
 
           hardcode_libdir_flag_spec='-R$libdir'
8419
 
           ;;
8420
 
         *)
8421
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8422
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8423
 
           ;;
8424
 
       esac
 
8496
        ld_shlibs=no
8425
8497
      fi
8426
8498
      ;;
8427
8499
 
8480
8552
      case $host_os in
8481
8553
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8482
8554
      *)
8483
 
        # The compiler driver will combine linker options so we
8484
 
        # cannot just pass the convience library names through
8485
 
        # without $wl, iff we do not link with $LD.
8486
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8555
        # The compiler driver will combine and reorder linker options,
 
8556
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8557
        # but is careful enough not to reorder.
8487
8558
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8488
 
        case $wlarc in
8489
 
        '')
8490
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8491
 
        *)
8492
 
          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' ;;
8493
 
        esac ;;
 
8559
        if test "$GCC" = yes; then
 
8560
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8561
        else
 
8562
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8563
        fi
 
8564
        ;;
8494
8565
      esac
8495
8566
      link_all_deplibs=yes
8496
8567
      ;;
8547
8618
      fi
8548
8619
      ;;
8549
8620
 
8550
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8621
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8551
8622
      no_undefined_flag='${wl}-z,text'
8552
8623
      archive_cmds_need_lc=no
8553
8624
      hardcode_shlibpath_var=no
8624
8695
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8625
8696
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8626
8697
      $rm conftest*
8627
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8698
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628
8699
 
8629
8700
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630
8701
  (eval $ac_compile) 2>&5
8682
8753
version_type=none
8683
8754
dynamic_linker="$host_os ld.so"
8684
8755
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8756
 
8685
8757
if test "$GCC" = yes; then
8686
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8687
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8758
  case $host_os in
 
8759
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8760
    *) lt_awk_arg="/^libraries:/" ;;
 
8761
  esac
 
8762
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8763
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8688
8764
    # if the path contains ";" then we assume it to be the separator
8689
8765
    # otherwise default to the standard path separator (i.e. ":") - it is
8690
8766
    # assumed that no part of a normal pathname contains ";" but that should
8691
8767
    # okay in the real world where ";" in dirpaths is itself problematic.
8692
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8768
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8693
8769
  else
8694
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8770
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8695
8771
  fi
 
8772
  # Ok, now we have the path, separated by spaces, we can step through it
 
8773
  # and add multilib dir if necessary.
 
8774
  lt_tmp_lt_search_path_spec=
 
8775
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8776
  for lt_sys_path in $lt_search_path_spec; do
 
8777
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8778
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8779
    else
 
8780
      test -d "$lt_sys_path" && \
 
8781
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8782
    fi
 
8783
  done
 
8784
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8785
BEGIN {RS=" "; FS="/|\n";} {
 
8786
  lt_foo="";
 
8787
  lt_count=0;
 
8788
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8789
    if ($lt_i != "" && $lt_i != ".") {
 
8790
      if ($lt_i == "..") {
 
8791
        lt_count++;
 
8792
      } else {
 
8793
        if (lt_count == 0) {
 
8794
          lt_foo="/" $lt_i lt_foo;
 
8795
        } else {
 
8796
          lt_count--;
 
8797
        }
 
8798
      }
 
8799
    }
 
8800
  }
 
8801
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8802
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8803
}'`
 
8804
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8696
8805
else
8697
8806
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8698
8807
fi
8852
8961
  shlibpath_overrides_runpath=yes
8853
8962
  shlibpath_var=DYLD_LIBRARY_PATH
8854
8963
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8855
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8856
 
  if test "$GCC" = yes; then
8857
 
    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"`
8858
 
  else
8859
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8860
 
  fi
 
8964
 
 
8965
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8861
8966
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8862
8967
  ;;
8863
8968
 
8874
8979
  dynamic_linker=no
8875
8980
  ;;
8876
8981
 
8877
 
kfreebsd*-gnu)
8878
 
  version_type=linux
8879
 
  need_lib_prefix=no
8880
 
  need_version=no
8881
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882
 
  soname_spec='${libname}${release}${shared_ext}$major'
8883
 
  shlibpath_var=LD_LIBRARY_PATH
8884
 
  shlibpath_overrides_runpath=no
8885
 
  hardcode_into_libs=yes
8886
 
  dynamic_linker='GNU ld.so'
8887
 
  ;;
8888
 
 
8889
8982
freebsd* | dragonfly*)
8890
8983
  # DragonFly does not have aout.  When/if they implement a new
8891
8984
  # versioning mechanism, adjust this.
8923
9016
    shlibpath_overrides_runpath=no
8924
9017
    hardcode_into_libs=yes
8925
9018
    ;;
8926
 
  freebsd*) # from 4.6 on
 
9019
  *) # from 4.6 on, and DragonFly
8927
9020
    shlibpath_overrides_runpath=yes
8928
9021
    hardcode_into_libs=yes
8929
9022
    ;;
8986
9079
  postinstall_cmds='chmod 555 $lib'
8987
9080
  ;;
8988
9081
 
8989
 
interix3*)
 
9082
interix[3-9]*)
8990
9083
  version_type=linux
8991
9084
  need_lib_prefix=no
8992
9085
  need_version=no
9041
9134
  ;;
9042
9135
 
9043
9136
# This must be Linux ELF.
9044
 
linux*)
 
9137
linux* | k*bsd*-gnu)
9045
9138
  version_type=linux
9046
9139
  need_lib_prefix=no
9047
9140
  need_version=no
9054
9147
  # Some rework will be needed to allow for fast_install
9055
9148
  # before this can be enabled.
9056
9149
  hardcode_into_libs=yes
9057
 
 
9058
 
  # find out which ABI we are using
9059
 
  libsuff=
9060
 
  case "$host_cpu" in
9061
 
  x86_64*|s390x*|powerpc64*)
9062
 
    echo '#line 9062 "configure"' > conftest.$ac_ext
9063
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064
 
  (eval $ac_compile) 2>&5
9065
 
  ac_status=$?
9066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067
 
  (exit $ac_status); }; then
9068
 
      case `/usr/bin/file conftest.$ac_objext` in
9069
 
      *64-bit*)
9070
 
        libsuff=64
9071
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9072
 
        ;;
9073
 
      esac
9074
 
    fi
9075
 
    rm -rf conftest*
9076
 
    ;;
9077
 
  esac
 
9150
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9151
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9078
9152
 
9079
9153
  # Append ld.so.conf contents to the search path
9080
9154
  if test -f /etc/ld.so.conf; then
9081
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9082
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9155
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9156
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9083
9157
  fi
9084
9158
 
9085
9159
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9091
9165
  dynamic_linker='GNU/Linux ld.so'
9092
9166
  ;;
9093
9167
 
9094
 
knetbsd*-gnu)
9095
 
  version_type=linux
9096
 
  need_lib_prefix=no
9097
 
  need_version=no
9098
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9099
 
  soname_spec='${libname}${release}${shared_ext}$major'
9100
 
  shlibpath_var=LD_LIBRARY_PATH
9101
 
  shlibpath_overrides_runpath=no
9102
 
  hardcode_into_libs=yes
9103
 
  dynamic_linker='GNU ld.so'
9104
 
  ;;
9105
 
 
9106
9168
netbsd*)
9107
9169
  version_type=sunos
9108
9170
  need_lib_prefix=no
9184
9246
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9185
9247
  ;;
9186
9248
 
 
9249
rdos*)
 
9250
  dynamic_linker=no
 
9251
  ;;
 
9252
 
9187
9253
solaris*)
9188
9254
  version_type=linux
9189
9255
  need_lib_prefix=no
9337
9403
   darwin*)
9338
9404
       if test -n "$STRIP" ; then
9339
9405
         striplib="$STRIP -x"
 
9406
         old_striplib="$STRIP -S"
9340
9407
         { echo "$as_me:$LINENO: result: yes" >&5
9341
9408
echo "${ECHO_T}yes" >&6; }
9342
9409
       else
9923
9990
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9924
9991
  lt_status=$lt_dlunknown
9925
9992
  cat > conftest.$ac_ext <<EOF
9926
 
#line 9926 "configure"
 
9993
#line 9993 "configure"
9927
9994
#include "confdefs.h"
9928
9995
 
9929
9996
#if HAVE_DLFCN_H
10023
10090
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10024
10091
  lt_status=$lt_dlunknown
10025
10092
  cat > conftest.$ac_ext <<EOF
10026
 
#line 10026 "configure"
 
10093
#line 10093 "configure"
10027
10094
#include "confdefs.h"
10028
10095
 
10029
10096
#if HAVE_DLFCN_H
10221
10288
    module_cmds \
10222
10289
    module_expsym_cmds \
10223
10290
    lt_cv_prog_compiler_c_o \
 
10291
    fix_srcfile_path \
10224
10292
    exclude_expsyms \
10225
10293
    include_expsyms; do
10226
10294
 
10265
10333
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10266
10334
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10267
10335
#
10268
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10336
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10269
10337
# Free Software Foundation, Inc.
10270
10338
#
10271
10339
# This file is part of GNU Libtool:
10589
10657
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10590
10658
 
10591
10659
# Fix the shell variable \$srcfile for the compiler.
10592
 
fix_srcfile_path="$fix_srcfile_path"
 
10660
fix_srcfile_path=$lt_fix_srcfile_path
10593
10661
 
10594
10662
# Set to yes if exported symbols are required.
10595
10663
always_export_symbols=$always_export_symbols
10758
10826
objext_CXX=$objext
10759
10827
 
10760
10828
# Code to be used in simple compile tests
10761
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10829
lt_simple_compile_test_code="int some_variable = 0;"
10762
10830
 
10763
10831
# Code to be used in simple link tests
10764
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10832
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10765
10833
 
10766
10834
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10767
10835
 
10777
10845
 
10778
10846
# save warnings/boilerplate of simple test code
10779
10847
ac_outfile=conftest.$ac_objext
10780
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10848
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10781
10849
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782
10850
_lt_compiler_boilerplate=`cat conftest.err`
10783
10851
$rm conftest*
10784
10852
 
10785
10853
ac_outfile=conftest.$ac_objext
10786
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10854
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10787
10855
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10788
10856
_lt_linker_boilerplate=`cat conftest.err`
10789
10857
$rm conftest*
11042
11110
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11043
11111
        then
11044
11112
          # We have reworked collect2
11045
 
          hardcode_direct_CXX=yes
 
11113
          :
11046
11114
        else
11047
11115
          # We have old collect2
11048
11116
          hardcode_direct_CXX=unsupported
11116
11184
       } && test -s conftest$ac_exeext &&
11117
11185
       $as_test_x conftest$ac_exeext; then
11118
11186
 
11119
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11120
 
}'`
 
11187
lt_aix_libpath_sed='
 
11188
    /Import File Strings/,/^$/ {
 
11189
        /^0/ {
 
11190
            s/^0  *\(.*\)$/\1/
 
11191
            p
 
11192
        }
 
11193
    }'
 
11194
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11121
11195
# Check for a 64-bit object if we didn't find anything.
11122
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11123
 
}'`; fi
 
11196
if test -z "$aix_libpath"; then
 
11197
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11198
fi
11124
11199
else
11125
11200
  echo "$as_me: failed program was:" >&5
11126
11201
sed 's/^/| /' conftest.$ac_ext >&5
11176
11251
       } && test -s conftest$ac_exeext &&
11177
11252
       $as_test_x conftest$ac_exeext; then
11178
11253
 
11179
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11180
 
}'`
 
11254
lt_aix_libpath_sed='
 
11255
    /Import File Strings/,/^$/ {
 
11256
        /^0/ {
 
11257
            s/^0  *\(.*\)$/\1/
 
11258
            p
 
11259
        }
 
11260
    }'
 
11261
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11181
11262
# Check for a 64-bit object if we didn't find anything.
11182
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11183
 
}'`; fi
 
11263
if test -z "$aix_libpath"; then
 
11264
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11265
fi
11184
11266
else
11185
11267
  echo "$as_me: failed program was:" >&5
11186
11268
sed 's/^/| /' conftest.$ac_ext >&5
11299
11381
      case $cc_basename in
11300
11382
        xlc*)
11301
11383
         output_verbose_link_cmd='echo'
11302
 
          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'
 
11384
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11303
11385
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11304
11386
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11305
 
          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}'
 
11387
          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11306
11388
          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}'
11307
11389
          ;;
11308
11390
       *)
11336
11418
  freebsd-elf*)
11337
11419
    archive_cmds_need_lc_CXX=no
11338
11420
    ;;
11339
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
11421
  freebsd* | dragonfly*)
11340
11422
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11341
11423
    # conventions
11342
11424
    ld_shlibs_CXX=yes
11385
11467
      hardcode_libdir_separator_CXX=:
11386
11468
 
11387
11469
      case $host_cpu in
11388
 
      hppa*64*|ia64*)
11389
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11390
 
        ;;
 
11470
      hppa*64*|ia64*) ;;
11391
11471
      *)
11392
11472
        export_dynamic_flag_spec_CXX='${wl}-E'
11393
11473
        ;;
11455
11535
        ;;
11456
11536
    esac
11457
11537
    ;;
11458
 
  interix3*)
 
11538
  interix[3-9]*)
11459
11539
    hardcode_direct_CXX=no
11460
11540
    hardcode_shlibpath_var_CXX=no
11461
11541
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11495
11575
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11496
11576
    hardcode_libdir_separator_CXX=:
11497
11577
    ;;
11498
 
  linux*)
 
11578
  linux* | k*bsd*-gnu)
11499
11579
    case $cc_basename in
11500
11580
      KCC*)
11501
11581
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11575
11655
        # dependencies.
11576
11656
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11577
11657
        ;;
 
11658
      *)
 
11659
        case `$CC -V 2>&1 | sed 5q` in
 
11660
        *Sun\ C*)
 
11661
          # Sun C++ 5.9
 
11662
          no_undefined_flag_CXX=' -zdefs'
 
11663
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11664
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11665
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11666
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11667
 
 
11668
          # Not sure whether something based on
 
11669
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11670
          # would be better.
 
11671
          output_verbose_link_cmd='echo'
 
11672
 
 
11673
          # Archives containing C++ object files must be created using
 
11674
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11675
          # necessary to make sure instantiated templates are included
 
11676
          # in the archive.
 
11677
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11678
          ;;
 
11679
        esac
 
11680
        ;;
11578
11681
    esac
11579
11682
    ;;
11580
11683
  lynxos*)
11613
11716
    ld_shlibs_CXX=no
11614
11717
    ;;
11615
11718
  openbsd*)
11616
 
    hardcode_direct_CXX=yes
11617
 
    hardcode_shlibpath_var_CXX=no
11618
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11619
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11620
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11621
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11622
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11623
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11719
    if test -f /usr/libexec/ld.so; then
 
11720
      hardcode_direct_CXX=yes
 
11721
      hardcode_shlibpath_var_CXX=no
 
11722
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11723
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11724
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11725
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11726
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11727
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11728
      fi
 
11729
      output_verbose_link_cmd='echo'
 
11730
    else
 
11731
      ld_shlibs_CXX=no
11624
11732
    fi
11625
 
    output_verbose_link_cmd='echo'
11626
11733
    ;;
11627
11734
  osf3*)
11628
11735
    case $cc_basename in
11784
11891
        case $host_os in
11785
11892
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11786
11893
          *)
11787
 
            # The C++ compiler is used as linker so we must use $wl
11788
 
            # flag to pass the commands to the underlying system
11789
 
            # linker. We must also pass each convience library through
11790
 
            # to the system linker between allextract/defaultextract.
11791
 
            # The C++ compiler will combine linker options so we
11792
 
            # cannot just pass the convience library names through
11793
 
            # without $wl.
 
11894
            # The compiler driver will combine and reorder linker options,
 
11895
            # but understands `-z linker_flag'.
11794
11896
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11795
 
            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'
 
11897
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11796
11898
            ;;
11797
11899
        esac
11798
11900
        link_all_deplibs_CXX=yes
11839
11941
          fi
11840
11942
 
11841
11943
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11944
          case $host_os in
 
11945
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11946
          *)
 
11947
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11948
            ;;
 
11949
          esac
11842
11950
        fi
11843
11951
        ;;
11844
11952
    esac
12030
12138
 
12031
12139
# PORTME: override above test on systems where it is broken
12032
12140
case $host_os in
12033
 
interix3*)
 
12141
interix[3-9]*)
12034
12142
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12035
12143
  # hack all around it, let's just trust "g++" to DTRT.
12036
12144
  predep_objects_CXX=
12038
12146
  postdeps_CXX=
12039
12147
  ;;
12040
12148
 
 
12149
linux*)
 
12150
  case `$CC -V 2>&1 | sed 5q` in
 
12151
  *Sun\ C*)
 
12152
    # Sun C++ 5.9
 
12153
    #
 
12154
    # The more standards-conforming stlport4 library is
 
12155
    # incompatible with the Cstd library. Avoid specifying
 
12156
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12157
    # -library=stlport4 depends on it.
 
12158
    case " $CXX $CXXFLAGS " in
 
12159
    *" -library=stlport4 "*)
 
12160
      solaris_use_stlport4=yes
 
12161
      ;;
 
12162
    esac
 
12163
    if test "$solaris_use_stlport4" != yes; then
 
12164
      postdeps_CXX='-library=Cstd -library=Crun'
 
12165
    fi
 
12166
    ;;
 
12167
  esac
 
12168
  ;;
 
12169
 
12041
12170
solaris*)
12042
12171
  case $cc_basename in
12043
12172
  CC*)
 
12173
    # The more standards-conforming stlport4 library is
 
12174
    # incompatible with the Cstd library. Avoid specifying
 
12175
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12176
    # -library=stlport4 depends on it.
 
12177
    case " $CXX $CXXFLAGS " in
 
12178
    *" -library=stlport4 "*)
 
12179
      solaris_use_stlport4=yes
 
12180
      ;;
 
12181
    esac
 
12182
 
12044
12183
    # Adding this requires a known-good setup of shared libraries for
12045
12184
    # Sun compiler versions before 5.6, else PIC objects from an old
12046
12185
    # archive will be linked into the output, leading to subtle bugs.
12047
 
    postdeps_CXX='-lCstd -lCrun'
 
12186
    if test "$solaris_use_stlport4" != yes; then
 
12187
      postdeps_CXX='-library=Cstd -library=Crun'
 
12188
    fi
12048
12189
    ;;
12049
12190
  esac
12050
12191
  ;;
12081
12222
      # like `-m68040'.
12082
12223
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12083
12224
      ;;
12084
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12225
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12085
12226
      # PIC is the default for these OSes.
12086
12227
      ;;
12087
 
    mingw* | os2* | pw32*)
 
12228
    mingw* | cygwin* | os2* | pw32*)
12088
12229
      # This hack is so that the source file can tell whether it is being
12089
12230
      # built for inclusion in a dll (and should export symbols for example).
 
12231
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12232
      # (--disable-auto-import) libraries
12090
12233
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12091
12234
      ;;
12092
12235
    darwin* | rhapsody*)
12098
12241
      # DJGPP does not support shared libraries at all
12099
12242
      lt_prog_compiler_pic_CXX=
12100
12243
      ;;
12101
 
    interix3*)
 
12244
    interix[3-9]*)
12102
12245
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12103
12246
      # Instead, we relocate shared libraries at runtime.
12104
12247
      ;;
12164
12307
            ;;
12165
12308
        esac
12166
12309
        ;;
12167
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12310
      freebsd* | dragonfly*)
12168
12311
        # FreeBSD uses GNU C++
12169
12312
        ;;
12170
12313
      hpux9* | hpux10* | hpux11*)
12207
12350
            ;;
12208
12351
        esac
12209
12352
        ;;
12210
 
      linux*)
 
12353
      linux* | k*bsd*-gnu)
12211
12354
        case $cc_basename in
12212
12355
          KCC*)
12213
12356
            # KAI C++ Compiler
12234
12377
            lt_prog_compiler_static_CXX='-non_shared'
12235
12378
            ;;
12236
12379
          *)
 
12380
            case `$CC -V 2>&1 | sed 5q` in
 
12381
            *Sun\ C*)
 
12382
              # Sun C++ 5.9
 
12383
              lt_prog_compiler_pic_CXX='-KPIC'
 
12384
              lt_prog_compiler_static_CXX='-Bstatic'
 
12385
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12386
              ;;
 
12387
            esac
12237
12388
            ;;
12238
12389
        esac
12239
12390
        ;;
12348
12499
else
12349
12500
  lt_prog_compiler_pic_works_CXX=no
12350
12501
  ac_outfile=conftest.$ac_objext
12351
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12502
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12352
12503
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12353
12504
   # Insert the option either (1) after the last *FLAGS variable, or
12354
12505
   # (2) before a word containing "conftest.", or (3) at the end.
12359
12510
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12360
12511
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12361
12512
   -e 's:$: $lt_compiler_flag:'`
12362
 
   (eval echo "\"\$as_me:12362: $lt_compile\"" >&5)
 
12513
   (eval echo "\"\$as_me:12513: $lt_compile\"" >&5)
12363
12514
   (eval "$lt_compile" 2>conftest.err)
12364
12515
   ac_status=$?
12365
12516
   cat conftest.err >&5
12366
 
   echo "$as_me:12366: \$? = $ac_status" >&5
 
12517
   echo "$as_me:12517: \$? = $ac_status" >&5
12367
12518
   if (exit $ac_status) && test -s "$ac_outfile"; then
12368
12519
     # The compiler can only warn and ignore the option if not recognized
12369
12520
     # So say no if there are warnings other than the usual output.
12412
12563
  lt_prog_compiler_static_works_CXX=no
12413
12564
   save_LDFLAGS="$LDFLAGS"
12414
12565
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12415
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12566
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12416
12567
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12417
12568
     # The linker can only warn and ignore the option if not recognized
12418
12569
     # So say no if there are warnings
12452
12603
   mkdir conftest
12453
12604
   cd conftest
12454
12605
   mkdir out
12455
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12606
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12456
12607
 
12457
12608
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12458
12609
   # Insert the option either (1) after the last *FLAGS variable, or
12463
12614
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12464
12615
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12465
12616
   -e 's:$: $lt_compiler_flag:'`
12466
 
   (eval echo "\"\$as_me:12466: $lt_compile\"" >&5)
 
12617
   (eval echo "\"\$as_me:12617: $lt_compile\"" >&5)
12467
12618
   (eval "$lt_compile" 2>out/conftest.err)
12468
12619
   ac_status=$?
12469
12620
   cat out/conftest.err >&5
12470
 
   echo "$as_me:12470: \$? = $ac_status" >&5
 
12621
   echo "$as_me:12621: \$? = $ac_status" >&5
12471
12622
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12472
12623
   then
12473
12624
     # The compiler can only warn and ignore the option if not recognized
12533
12684
    export_symbols_cmds_CXX="$ltdll_cmds"
12534
12685
  ;;
12535
12686
  cygwin* | mingw*)
12536
 
    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'
 
12687
    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'
12537
12688
  ;;
12538
12689
  *)
12539
12690
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12564
12715
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12565
12716
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12566
12717
      $rm conftest*
12567
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12718
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12568
12719
 
12569
12720
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570
12721
  (eval $ac_compile) 2>&5
12622
12773
version_type=none
12623
12774
dynamic_linker="$host_os ld.so"
12624
12775
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12625
 
if test "$GCC" = yes; then
12626
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12627
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12628
 
    # if the path contains ";" then we assume it to be the separator
12629
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12630
 
    # assumed that no part of a normal pathname contains ";" but that should
12631
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12632
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12633
 
  else
12634
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12635
 
  fi
12636
 
else
12637
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12638
 
fi
 
12776
 
12639
12777
need_lib_prefix=unknown
12640
12778
hardcode_into_libs=no
12641
12779
 
12792
12930
  shlibpath_overrides_runpath=yes
12793
12931
  shlibpath_var=DYLD_LIBRARY_PATH
12794
12932
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12795
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12796
 
  if test "$GCC" = yes; then
12797
 
    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"`
12798
 
  else
12799
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12800
 
  fi
 
12933
 
12801
12934
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12802
12935
  ;;
12803
12936
 
12814
12947
  dynamic_linker=no
12815
12948
  ;;
12816
12949
 
12817
 
kfreebsd*-gnu)
12818
 
  version_type=linux
12819
 
  need_lib_prefix=no
12820
 
  need_version=no
12821
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822
 
  soname_spec='${libname}${release}${shared_ext}$major'
12823
 
  shlibpath_var=LD_LIBRARY_PATH
12824
 
  shlibpath_overrides_runpath=no
12825
 
  hardcode_into_libs=yes
12826
 
  dynamic_linker='GNU ld.so'
12827
 
  ;;
12828
 
 
12829
12950
freebsd* | dragonfly*)
12830
12951
  # DragonFly does not have aout.  When/if they implement a new
12831
12952
  # versioning mechanism, adjust this.
12863
12984
    shlibpath_overrides_runpath=no
12864
12985
    hardcode_into_libs=yes
12865
12986
    ;;
12866
 
  freebsd*) # from 4.6 on
 
12987
  *) # from 4.6 on, and DragonFly
12867
12988
    shlibpath_overrides_runpath=yes
12868
12989
    hardcode_into_libs=yes
12869
12990
    ;;
12926
13047
  postinstall_cmds='chmod 555 $lib'
12927
13048
  ;;
12928
13049
 
12929
 
interix3*)
 
13050
interix[3-9]*)
12930
13051
  version_type=linux
12931
13052
  need_lib_prefix=no
12932
13053
  need_version=no
12981
13102
  ;;
12982
13103
 
12983
13104
# This must be Linux ELF.
12984
 
linux*)
 
13105
linux* | k*bsd*-gnu)
12985
13106
  version_type=linux
12986
13107
  need_lib_prefix=no
12987
13108
  need_version=no
12994
13115
  # Some rework will be needed to allow for fast_install
12995
13116
  # before this can be enabled.
12996
13117
  hardcode_into_libs=yes
12997
 
 
12998
 
  # find out which ABI we are using
12999
 
  libsuff=
13000
 
  case "$host_cpu" in
13001
 
  x86_64*|s390x*|powerpc64*)
13002
 
    echo '#line 13002 "configure"' > conftest.$ac_ext
13003
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004
 
  (eval $ac_compile) 2>&5
13005
 
  ac_status=$?
13006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007
 
  (exit $ac_status); }; then
13008
 
      case `/usr/bin/file conftest.$ac_objext` in
13009
 
      *64-bit*)
13010
 
        libsuff=64
13011
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13012
 
        ;;
13013
 
      esac
13014
 
    fi
13015
 
    rm -rf conftest*
13016
 
    ;;
13017
 
  esac
 
13118
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13119
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13018
13120
 
13019
13121
  # Append ld.so.conf contents to the search path
13020
13122
  if test -f /etc/ld.so.conf; then
13021
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13022
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
13123
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13124
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13023
13125
  fi
13024
13126
 
13025
13127
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13031
13133
  dynamic_linker='GNU/Linux ld.so'
13032
13134
  ;;
13033
13135
 
13034
 
knetbsd*-gnu)
13035
 
  version_type=linux
13036
 
  need_lib_prefix=no
13037
 
  need_version=no
13038
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13039
 
  soname_spec='${libname}${release}${shared_ext}$major'
13040
 
  shlibpath_var=LD_LIBRARY_PATH
13041
 
  shlibpath_overrides_runpath=no
13042
 
  hardcode_into_libs=yes
13043
 
  dynamic_linker='GNU ld.so'
13044
 
  ;;
13045
 
 
13046
13136
netbsd*)
13047
13137
  version_type=sunos
13048
13138
  need_lib_prefix=no
13124
13214
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13125
13215
  ;;
13126
13216
 
 
13217
rdos*)
 
13218
  dynamic_linker=no
 
13219
  ;;
 
13220
 
13127
13221
solaris*)
13128
13222
  version_type=linux
13129
13223
  need_lib_prefix=no
13318
13412
    module_cmds_CXX \
13319
13413
    module_expsym_cmds_CXX \
13320
13414
    lt_cv_prog_compiler_c_o_CXX \
 
13415
    fix_srcfile_path_CXX \
13321
13416
    exclude_expsyms_CXX \
13322
13417
    include_expsyms_CXX; do
13323
13418
 
13638
13733
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13639
13734
 
13640
13735
# Fix the shell variable \$srcfile for the compiler.
13641
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13736
fix_srcfile_path=$lt_fix_srcfile_path
13642
13737
 
13643
13738
# Set to yes if exported symbols are required.
13644
13739
always_export_symbols=$always_export_symbols_CXX
13729
13824
objext_F77=$objext
13730
13825
 
13731
13826
# Code to be used in simple compile tests
13732
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13827
lt_simple_compile_test_code="\
 
13828
      subroutine t
 
13829
      return
 
13830
      end
 
13831
"
13733
13832
 
13734
13833
# Code to be used in simple link tests
13735
 
lt_simple_link_test_code="      program t\n      end\n"
 
13834
lt_simple_link_test_code="\
 
13835
      program t
 
13836
      end
 
13837
"
13736
13838
 
13737
13839
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13738
13840
 
13748
13850
 
13749
13851
# save warnings/boilerplate of simple test code
13750
13852
ac_outfile=conftest.$ac_objext
13751
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13853
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13752
13854
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13753
13855
_lt_compiler_boilerplate=`cat conftest.err`
13754
13856
$rm conftest*
13755
13857
 
13756
13858
ac_outfile=conftest.$ac_objext
13757
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13859
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13758
13860
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13759
13861
_lt_linker_boilerplate=`cat conftest.err`
13760
13862
$rm conftest*
13841
13943
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13842
13944
      ;;
13843
13945
 
13844
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13946
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13845
13947
      # PIC is the default for these OSes.
13846
13948
      ;;
13847
13949
 
13848
 
    mingw* | pw32* | os2*)
 
13950
    mingw* | cygwin* | pw32* | os2*)
13849
13951
      # This hack is so that the source file can tell whether it is being
13850
13952
      # built for inclusion in a dll (and should export symbols for example).
 
13953
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13954
      # (--disable-auto-import) libraries
13851
13955
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13852
13956
      ;;
13853
13957
 
13857
13961
      lt_prog_compiler_pic_F77='-fno-common'
13858
13962
      ;;
13859
13963
 
13860
 
    interix3*)
 
13964
    interix[3-9]*)
13861
13965
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13862
13966
      # Instead, we relocate shared libraries at runtime.
13863
13967
      ;;
13915
14019
       esac
13916
14020
       ;;
13917
14021
 
13918
 
    mingw* | pw32* | os2*)
 
14022
    mingw* | cygwin* | pw32* | os2*)
13919
14023
      # This hack is so that the source file can tell whether it is being
13920
14024
      # built for inclusion in a dll (and should export symbols for example).
13921
14025
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13948
14052
      lt_prog_compiler_static_F77='-Bstatic'
13949
14053
      ;;
13950
14054
 
13951
 
    linux*)
 
14055
    linux* | k*bsd*-gnu)
13952
14056
      case $cc_basename in
13953
14057
      icc* | ecc*)
13954
14058
        lt_prog_compiler_wl_F77='-Wl,'
13967
14071
        # All Alpha code is PIC.
13968
14072
        lt_prog_compiler_static_F77='-non_shared'
13969
14073
        ;;
 
14074
      *)
 
14075
        case `$CC -V 2>&1 | sed 5q` in
 
14076
        *Sun\ C*)
 
14077
          # Sun C 5.9
 
14078
          lt_prog_compiler_pic_F77='-KPIC'
 
14079
          lt_prog_compiler_static_F77='-Bstatic'
 
14080
          lt_prog_compiler_wl_F77='-Wl,'
 
14081
          ;;
 
14082
        *Sun\ F*)
 
14083
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14084
          lt_prog_compiler_pic_F77='-KPIC'
 
14085
          lt_prog_compiler_static_F77='-Bstatic'
 
14086
          lt_prog_compiler_wl_F77=''
 
14087
          ;;
 
14088
        esac
 
14089
        ;;
13970
14090
      esac
13971
14091
      ;;
13972
14092
 
13976
14096
      lt_prog_compiler_static_F77='-non_shared'
13977
14097
      ;;
13978
14098
 
 
14099
    rdos*)
 
14100
      lt_prog_compiler_static_F77='-non_shared'
 
14101
      ;;
 
14102
 
13979
14103
    solaris*)
13980
14104
      lt_prog_compiler_pic_F77='-KPIC'
13981
14105
      lt_prog_compiler_static_F77='-Bstatic'
14043
14167
else
14044
14168
  lt_prog_compiler_pic_works_F77=no
14045
14169
  ac_outfile=conftest.$ac_objext
14046
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14170
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047
14171
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14048
14172
   # Insert the option either (1) after the last *FLAGS variable, or
14049
14173
   # (2) before a word containing "conftest.", or (3) at the end.
14054
14178
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055
14179
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056
14180
   -e 's:$: $lt_compiler_flag:'`
14057
 
   (eval echo "\"\$as_me:14057: $lt_compile\"" >&5)
 
14181
   (eval echo "\"\$as_me:14181: $lt_compile\"" >&5)
14058
14182
   (eval "$lt_compile" 2>conftest.err)
14059
14183
   ac_status=$?
14060
14184
   cat conftest.err >&5
14061
 
   echo "$as_me:14061: \$? = $ac_status" >&5
 
14185
   echo "$as_me:14185: \$? = $ac_status" >&5
14062
14186
   if (exit $ac_status) && test -s "$ac_outfile"; then
14063
14187
     # The compiler can only warn and ignore the option if not recognized
14064
14188
     # So say no if there are warnings other than the usual output.
14107
14231
  lt_prog_compiler_static_works_F77=no
14108
14232
   save_LDFLAGS="$LDFLAGS"
14109
14233
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14110
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14234
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14111
14235
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14112
14236
     # The linker can only warn and ignore the option if not recognized
14113
14237
     # So say no if there are warnings
14147
14271
   mkdir conftest
14148
14272
   cd conftest
14149
14273
   mkdir out
14150
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14274
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14151
14275
 
14152
14276
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14153
14277
   # Insert the option either (1) after the last *FLAGS variable, or
14158
14282
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14159
14283
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14160
14284
   -e 's:$: $lt_compiler_flag:'`
14161
 
   (eval echo "\"\$as_me:14161: $lt_compile\"" >&5)
 
14285
   (eval echo "\"\$as_me:14285: $lt_compile\"" >&5)
14162
14286
   (eval "$lt_compile" 2>out/conftest.err)
14163
14287
   ac_status=$?
14164
14288
   cat out/conftest.err >&5
14165
 
   echo "$as_me:14165: \$? = $ac_status" >&5
 
14289
   echo "$as_me:14289: \$? = $ac_status" >&5
14166
14290
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14167
14291
   then
14168
14292
     # The compiler can only warn and ignore the option if not recognized
14354
14478
      allow_undefined_flag_F77=unsupported
14355
14479
      always_export_symbols_F77=no
14356
14480
      enable_shared_with_static_runtimes_F77=yes
14357
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14481
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14358
14482
 
14359
14483
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14360
14484
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14372
14496
      fi
14373
14497
      ;;
14374
14498
 
14375
 
    interix3*)
 
14499
    interix[3-9]*)
14376
14500
      hardcode_direct_F77=no
14377
14501
      hardcode_shlibpath_var_F77=no
14378
14502
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14387
14511
      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'
14388
14512
      ;;
14389
14513
 
14390
 
    linux*)
 
14514
    gnu* | linux* | k*bsd*-gnu)
14391
14515
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14392
14516
        tmp_addflag=
14393
14517
        case $cc_basename,$host_cpu in
14405
14529
        ifc* | ifort*)                  # Intel Fortran compiler
14406
14530
          tmp_addflag=' -nofor_main' ;;
14407
14531
        esac
14408
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14532
        case `$CC -V 2>&1 | sed 5q` in
 
14533
        *Sun\ C*)                       # Sun C 5.9
 
14534
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14535
          tmp_sharedflag='-G' ;;
 
14536
        *Sun\ F*)                       # Sun Fortran 8.3
 
14537
          tmp_sharedflag='-G' ;;
 
14538
        *)
 
14539
          tmp_sharedflag='-shared' ;;
 
14540
        esac
 
14541
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409
14542
 
14410
14543
        if test $supports_anon_versioning = yes; then
14411
14544
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14412
14545
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14413
14546
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14414
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14547
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14415
14548
        fi
14416
14549
      else
14417
14550
        ld_shlibs_F77=no
14570
14703
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14571
14704
          then
14572
14705
          # We have reworked collect2
14573
 
          hardcode_direct_F77=yes
 
14706
          :
14574
14707
          else
14575
14708
          # We have old collect2
14576
14709
          hardcode_direct_F77=unsupported
14634
14767
       } && test -s conftest$ac_exeext &&
14635
14768
       $as_test_x conftest$ac_exeext; then
14636
14769
 
14637
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14638
 
}'`
 
14770
lt_aix_libpath_sed='
 
14771
    /Import File Strings/,/^$/ {
 
14772
        /^0/ {
 
14773
            s/^0  *\(.*\)$/\1/
 
14774
            p
 
14775
        }
 
14776
    }'
 
14777
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14639
14778
# Check for a 64-bit object if we didn't find anything.
14640
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14641
 
}'`; fi
 
14779
if test -z "$aix_libpath"; then
 
14780
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14781
fi
14642
14782
else
14643
14783
  echo "$as_me: failed program was:" >&5
14644
14784
sed 's/^/| /' conftest.$ac_ext >&5
14683
14823
       } && test -s conftest$ac_exeext &&
14684
14824
       $as_test_x conftest$ac_exeext; then
14685
14825
 
14686
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14687
 
}'`
 
14826
lt_aix_libpath_sed='
 
14827
    /Import File Strings/,/^$/ {
 
14828
        /^0/ {
 
14829
            s/^0  *\(.*\)$/\1/
 
14830
            p
 
14831
        }
 
14832
    }'
 
14833
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14688
14834
# Check for a 64-bit object if we didn't find anything.
14689
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14690
 
}'`; fi
 
14835
if test -z "$aix_libpath"; then
 
14836
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14837
fi
14691
14838
else
14692
14839
  echo "$as_me: failed program was:" >&5
14693
14840
sed 's/^/| /' conftest.$ac_ext >&5
14741
14888
      # The linker will automatically build a .lib file if we build a DLL.
14742
14889
      old_archive_From_new_cmds_F77='true'
14743
14890
      # FIXME: Should let the user specify the lib program.
14744
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14891
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14745
14892
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14746
14893
      enable_shared_with_static_runtimes_F77=yes
14747
14894
      ;;
14783
14930
      case $cc_basename in
14784
14931
        xlc*)
14785
14932
         output_verbose_link_cmd='echo'
14786
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14933
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14787
14934
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14788
14935
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14789
 
         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}'
 
14936
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14790
14937
          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}'
14791
14938
          ;;
14792
14939
       *)
14826
14973
      ;;
14827
14974
 
14828
14975
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14829
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14976
    freebsd* | dragonfly*)
14830
14977
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14831
14978
      hardcode_libdir_flag_spec_F77='-R$libdir'
14832
14979
      hardcode_direct_F77=yes
14948
15095
      ;;
14949
15096
 
14950
15097
    openbsd*)
14951
 
      hardcode_direct_F77=yes
14952
 
      hardcode_shlibpath_var_F77=no
14953
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14954
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14955
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14956
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14957
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15098
      if test -f /usr/libexec/ld.so; then
 
15099
        hardcode_direct_F77=yes
 
15100
        hardcode_shlibpath_var_F77=no
 
15101
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15102
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15103
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15104
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15105
          export_dynamic_flag_spec_F77='${wl}-E'
 
15106
        else
 
15107
          case $host_os in
 
15108
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15109
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15110
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15111
             ;;
 
15112
           *)
 
15113
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15114
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15115
             ;;
 
15116
          esac
 
15117
        fi
14958
15118
      else
14959
 
       case $host_os in
14960
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14961
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14962
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14963
 
           ;;
14964
 
         *)
14965
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14966
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14967
 
           ;;
14968
 
       esac
 
15119
        ld_shlibs_F77=no
14969
15120
      fi
14970
15121
      ;;
14971
15122
 
15024
15175
      case $host_os in
15025
15176
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15026
15177
      *)
15027
 
        # The compiler driver will combine linker options so we
15028
 
        # cannot just pass the convience library names through
15029
 
        # without $wl, iff we do not link with $LD.
15030
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15178
        # The compiler driver will combine and reorder linker options,
 
15179
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15180
        # but is careful enough not to reorder.
15031
15181
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15032
 
        case $wlarc in
15033
 
        '')
15034
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15035
 
        *)
15036
 
          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' ;;
15037
 
        esac ;;
 
15182
        if test "$GCC" = yes; then
 
15183
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15184
        else
 
15185
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15186
        fi
 
15187
        ;;
15038
15188
      esac
15039
15189
      link_all_deplibs_F77=yes
15040
15190
      ;;
15091
15241
      fi
15092
15242
      ;;
15093
15243
 
15094
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15244
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15095
15245
      no_undefined_flag_F77='${wl}-z,text'
15096
15246
      archive_cmds_need_lc_F77=no
15097
15247
      hardcode_shlibpath_var_F77=no
15168
15318
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15169
15319
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15170
15320
      $rm conftest*
15171
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15321
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15172
15322
 
15173
15323
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174
15324
  (eval $ac_compile) 2>&5
15226
15376
version_type=none
15227
15377
dynamic_linker="$host_os ld.so"
15228
15378
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15229
 
if test "$GCC" = yes; then
15230
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15231
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15232
 
    # if the path contains ";" then we assume it to be the separator
15233
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15234
 
    # assumed that no part of a normal pathname contains ";" but that should
15235
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15236
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15237
 
  else
15238
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15239
 
  fi
15240
 
else
15241
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15242
 
fi
 
15379
 
15243
15380
need_lib_prefix=unknown
15244
15381
hardcode_into_libs=no
15245
15382
 
15396
15533
  shlibpath_overrides_runpath=yes
15397
15534
  shlibpath_var=DYLD_LIBRARY_PATH
15398
15535
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15399
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15400
 
  if test "$GCC" = yes; then
15401
 
    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"`
15402
 
  else
15403
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15404
 
  fi
 
15536
 
15405
15537
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15406
15538
  ;;
15407
15539
 
15418
15550
  dynamic_linker=no
15419
15551
  ;;
15420
15552
 
15421
 
kfreebsd*-gnu)
15422
 
  version_type=linux
15423
 
  need_lib_prefix=no
15424
 
  need_version=no
15425
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15426
 
  soname_spec='${libname}${release}${shared_ext}$major'
15427
 
  shlibpath_var=LD_LIBRARY_PATH
15428
 
  shlibpath_overrides_runpath=no
15429
 
  hardcode_into_libs=yes
15430
 
  dynamic_linker='GNU ld.so'
15431
 
  ;;
15432
 
 
15433
15553
freebsd* | dragonfly*)
15434
15554
  # DragonFly does not have aout.  When/if they implement a new
15435
15555
  # versioning mechanism, adjust this.
15467
15587
    shlibpath_overrides_runpath=no
15468
15588
    hardcode_into_libs=yes
15469
15589
    ;;
15470
 
  freebsd*) # from 4.6 on
 
15590
  *) # from 4.6 on, and DragonFly
15471
15591
    shlibpath_overrides_runpath=yes
15472
15592
    hardcode_into_libs=yes
15473
15593
    ;;
15530
15650
  postinstall_cmds='chmod 555 $lib'
15531
15651
  ;;
15532
15652
 
15533
 
interix3*)
 
15653
interix[3-9]*)
15534
15654
  version_type=linux
15535
15655
  need_lib_prefix=no
15536
15656
  need_version=no
15585
15705
  ;;
15586
15706
 
15587
15707
# This must be Linux ELF.
15588
 
linux*)
 
15708
linux* | k*bsd*-gnu)
15589
15709
  version_type=linux
15590
15710
  need_lib_prefix=no
15591
15711
  need_version=no
15598
15718
  # Some rework will be needed to allow for fast_install
15599
15719
  # before this can be enabled.
15600
15720
  hardcode_into_libs=yes
15601
 
 
15602
 
  # find out which ABI we are using
15603
 
  libsuff=
15604
 
  case "$host_cpu" in
15605
 
  x86_64*|s390x*|powerpc64*)
15606
 
    echo '#line 15606 "configure"' > conftest.$ac_ext
15607
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608
 
  (eval $ac_compile) 2>&5
15609
 
  ac_status=$?
15610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611
 
  (exit $ac_status); }; then
15612
 
      case `/usr/bin/file conftest.$ac_objext` in
15613
 
      *64-bit*)
15614
 
        libsuff=64
15615
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15616
 
        ;;
15617
 
      esac
15618
 
    fi
15619
 
    rm -rf conftest*
15620
 
    ;;
15621
 
  esac
 
15721
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15722
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15622
15723
 
15623
15724
  # Append ld.so.conf contents to the search path
15624
15725
  if test -f /etc/ld.so.conf; then
15625
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15626
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15726
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15727
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15627
15728
  fi
15628
15729
 
15629
15730
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15635
15736
  dynamic_linker='GNU/Linux ld.so'
15636
15737
  ;;
15637
15738
 
15638
 
knetbsd*-gnu)
15639
 
  version_type=linux
15640
 
  need_lib_prefix=no
15641
 
  need_version=no
15642
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15643
 
  soname_spec='${libname}${release}${shared_ext}$major'
15644
 
  shlibpath_var=LD_LIBRARY_PATH
15645
 
  shlibpath_overrides_runpath=no
15646
 
  hardcode_into_libs=yes
15647
 
  dynamic_linker='GNU ld.so'
15648
 
  ;;
15649
 
 
15650
15739
netbsd*)
15651
15740
  version_type=sunos
15652
15741
  need_lib_prefix=no
15728
15817
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15729
15818
  ;;
15730
15819
 
 
15820
rdos*)
 
15821
  dynamic_linker=no
 
15822
  ;;
 
15823
 
15731
15824
solaris*)
15732
15825
  version_type=linux
15733
15826
  need_lib_prefix=no
15922
16015
    module_cmds_F77 \
15923
16016
    module_expsym_cmds_F77 \
15924
16017
    lt_cv_prog_compiler_c_o_F77 \
 
16018
    fix_srcfile_path_F77 \
15925
16019
    exclude_expsyms_F77 \
15926
16020
    include_expsyms_F77; do
15927
16021
 
16242
16336
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16243
16337
 
16244
16338
# Fix the shell variable \$srcfile for the compiler.
16245
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16339
fix_srcfile_path=$lt_fix_srcfile_path
16246
16340
 
16247
16341
# Set to yes if exported symbols are required.
16248
16342
always_export_symbols=$always_export_symbols_F77
16300
16394
objext_GCJ=$objext
16301
16395
 
16302
16396
# Code to be used in simple compile tests
16303
 
lt_simple_compile_test_code="class foo {}\n"
 
16397
lt_simple_compile_test_code="class foo {}"
16304
16398
 
16305
16399
# Code to be used in simple link tests
16306
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16400
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16307
16401
 
16308
16402
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16309
16403
 
16319
16413
 
16320
16414
# save warnings/boilerplate of simple test code
16321
16415
ac_outfile=conftest.$ac_objext
16322
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16416
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16323
16417
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16324
16418
_lt_compiler_boilerplate=`cat conftest.err`
16325
16419
$rm conftest*
16326
16420
 
16327
16421
ac_outfile=conftest.$ac_objext
16328
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16422
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16329
16423
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16330
16424
_lt_linker_boilerplate=`cat conftest.err`
16331
16425
$rm conftest*
16366
16460
else
16367
16461
  lt_cv_prog_compiler_rtti_exceptions=no
16368
16462
  ac_outfile=conftest.$ac_objext
16369
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16463
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16370
16464
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16371
16465
   # Insert the option either (1) after the last *FLAGS variable, or
16372
16466
   # (2) before a word containing "conftest.", or (3) at the end.
16377
16471
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378
16472
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379
16473
   -e 's:$: $lt_compiler_flag:'`
16380
 
   (eval echo "\"\$as_me:16380: $lt_compile\"" >&5)
 
16474
   (eval echo "\"\$as_me:16474: $lt_compile\"" >&5)
16381
16475
   (eval "$lt_compile" 2>conftest.err)
16382
16476
   ac_status=$?
16383
16477
   cat conftest.err >&5
16384
 
   echo "$as_me:16384: \$? = $ac_status" >&5
 
16478
   echo "$as_me:16478: \$? = $ac_status" >&5
16385
16479
   if (exit $ac_status) && test -s "$ac_outfile"; then
16386
16480
     # The compiler can only warn and ignore the option if not recognized
16387
16481
     # So say no if there are warnings other than the usual output.
16432
16526
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16433
16527
      ;;
16434
16528
 
16435
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16529
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16436
16530
      # PIC is the default for these OSes.
16437
16531
      ;;
16438
16532
 
16439
 
    mingw* | pw32* | os2*)
 
16533
    mingw* | cygwin* | pw32* | os2*)
16440
16534
      # This hack is so that the source file can tell whether it is being
16441
16535
      # built for inclusion in a dll (and should export symbols for example).
 
16536
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16537
      # (--disable-auto-import) libraries
16442
16538
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16443
16539
      ;;
16444
16540
 
16448
16544
      lt_prog_compiler_pic_GCJ='-fno-common'
16449
16545
      ;;
16450
16546
 
16451
 
    interix3*)
 
16547
    interix[3-9]*)
16452
16548
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16453
16549
      # Instead, we relocate shared libraries at runtime.
16454
16550
      ;;
16506
16602
       esac
16507
16603
       ;;
16508
16604
 
16509
 
    mingw* | pw32* | os2*)
 
16605
    mingw* | cygwin* | pw32* | os2*)
16510
16606
      # This hack is so that the source file can tell whether it is being
16511
16607
      # built for inclusion in a dll (and should export symbols for example).
16512
16608
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16539
16635
      lt_prog_compiler_static_GCJ='-Bstatic'
16540
16636
      ;;
16541
16637
 
16542
 
    linux*)
 
16638
    linux* | k*bsd*-gnu)
16543
16639
      case $cc_basename in
16544
16640
      icc* | ecc*)
16545
16641
        lt_prog_compiler_wl_GCJ='-Wl,'
16558
16654
        # All Alpha code is PIC.
16559
16655
        lt_prog_compiler_static_GCJ='-non_shared'
16560
16656
        ;;
 
16657
      *)
 
16658
        case `$CC -V 2>&1 | sed 5q` in
 
16659
        *Sun\ C*)
 
16660
          # Sun C 5.9
 
16661
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16662
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16663
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16664
          ;;
 
16665
        *Sun\ F*)
 
16666
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16667
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16668
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16669
          lt_prog_compiler_wl_GCJ=''
 
16670
          ;;
 
16671
        esac
 
16672
        ;;
16561
16673
      esac
16562
16674
      ;;
16563
16675
 
16567
16679
      lt_prog_compiler_static_GCJ='-non_shared'
16568
16680
      ;;
16569
16681
 
 
16682
    rdos*)
 
16683
      lt_prog_compiler_static_GCJ='-non_shared'
 
16684
      ;;
 
16685
 
16570
16686
    solaris*)
16571
16687
      lt_prog_compiler_pic_GCJ='-KPIC'
16572
16688
      lt_prog_compiler_static_GCJ='-Bstatic'
16634
16750
else
16635
16751
  lt_prog_compiler_pic_works_GCJ=no
16636
16752
  ac_outfile=conftest.$ac_objext
16637
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16753
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16638
16754
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16639
16755
   # Insert the option either (1) after the last *FLAGS variable, or
16640
16756
   # (2) before a word containing "conftest.", or (3) at the end.
16645
16761
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16646
16762
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647
16763
   -e 's:$: $lt_compiler_flag:'`
16648
 
   (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
 
16764
   (eval echo "\"\$as_me:16764: $lt_compile\"" >&5)
16649
16765
   (eval "$lt_compile" 2>conftest.err)
16650
16766
   ac_status=$?
16651
16767
   cat conftest.err >&5
16652
 
   echo "$as_me:16652: \$? = $ac_status" >&5
 
16768
   echo "$as_me:16768: \$? = $ac_status" >&5
16653
16769
   if (exit $ac_status) && test -s "$ac_outfile"; then
16654
16770
     # The compiler can only warn and ignore the option if not recognized
16655
16771
     # So say no if there are warnings other than the usual output.
16698
16814
  lt_prog_compiler_static_works_GCJ=no
16699
16815
   save_LDFLAGS="$LDFLAGS"
16700
16816
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16701
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16817
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16702
16818
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16703
16819
     # The linker can only warn and ignore the option if not recognized
16704
16820
     # So say no if there are warnings
16738
16854
   mkdir conftest
16739
16855
   cd conftest
16740
16856
   mkdir out
16741
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16857
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
16858
 
16743
16859
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16744
16860
   # Insert the option either (1) after the last *FLAGS variable, or
16749
16865
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16750
16866
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751
16867
   -e 's:$: $lt_compiler_flag:'`
16752
 
   (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
 
16868
   (eval echo "\"\$as_me:16868: $lt_compile\"" >&5)
16753
16869
   (eval "$lt_compile" 2>out/conftest.err)
16754
16870
   ac_status=$?
16755
16871
   cat out/conftest.err >&5
16756
 
   echo "$as_me:16756: \$? = $ac_status" >&5
 
16872
   echo "$as_me:16872: \$? = $ac_status" >&5
16757
16873
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758
16874
   then
16759
16875
     # The compiler can only warn and ignore the option if not recognized
16945
17061
      allow_undefined_flag_GCJ=unsupported
16946
17062
      always_export_symbols_GCJ=no
16947
17063
      enable_shared_with_static_runtimes_GCJ=yes
16948
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17064
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16949
17065
 
16950
17066
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16951
17067
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16963
17079
      fi
16964
17080
      ;;
16965
17081
 
16966
 
    interix3*)
 
17082
    interix[3-9]*)
16967
17083
      hardcode_direct_GCJ=no
16968
17084
      hardcode_shlibpath_var_GCJ=no
16969
17085
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978
17094
      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'
16979
17095
      ;;
16980
17096
 
16981
 
    linux*)
 
17097
    gnu* | linux* | k*bsd*-gnu)
16982
17098
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16983
17099
        tmp_addflag=
16984
17100
        case $cc_basename,$host_cpu in
16996
17112
        ifc* | ifort*)                  # Intel Fortran compiler
16997
17113
          tmp_addflag=' -nofor_main' ;;
16998
17114
        esac
16999
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17115
        case `$CC -V 2>&1 | sed 5q` in
 
17116
        *Sun\ C*)                       # Sun C 5.9
 
17117
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17118
          tmp_sharedflag='-G' ;;
 
17119
        *Sun\ F*)                       # Sun Fortran 8.3
 
17120
          tmp_sharedflag='-G' ;;
 
17121
        *)
 
17122
          tmp_sharedflag='-shared' ;;
 
17123
        esac
 
17124
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17000
17125
 
17001
17126
        if test $supports_anon_versioning = yes; then
17002
17127
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17003
17128
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17004
17129
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17005
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17130
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17006
17131
        fi
17007
17132
      else
17008
17133
        ld_shlibs_GCJ=no
17161
17286
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17162
17287
          then
17163
17288
          # We have reworked collect2
17164
 
          hardcode_direct_GCJ=yes
 
17289
          :
17165
17290
          else
17166
17291
          # We have old collect2
17167
17292
          hardcode_direct_GCJ=unsupported
17235
17360
       } && test -s conftest$ac_exeext &&
17236
17361
       $as_test_x conftest$ac_exeext; then
17237
17362
 
17238
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17239
 
}'`
 
17363
lt_aix_libpath_sed='
 
17364
    /Import File Strings/,/^$/ {
 
17365
        /^0/ {
 
17366
            s/^0  *\(.*\)$/\1/
 
17367
            p
 
17368
        }
 
17369
    }'
 
17370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17240
17371
# Check for a 64-bit object if we didn't find anything.
17241
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17242
 
}'`; fi
 
17372
if test -z "$aix_libpath"; then
 
17373
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17374
fi
17243
17375
else
17244
17376
  echo "$as_me: failed program was:" >&5
17245
17377
sed 's/^/| /' conftest.$ac_ext >&5
17294
17426
       } && test -s conftest$ac_exeext &&
17295
17427
       $as_test_x conftest$ac_exeext; then
17296
17428
 
17297
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17298
 
}'`
 
17429
lt_aix_libpath_sed='
 
17430
    /Import File Strings/,/^$/ {
 
17431
        /^0/ {
 
17432
            s/^0  *\(.*\)$/\1/
 
17433
            p
 
17434
        }
 
17435
    }'
 
17436
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17299
17437
# Check for a 64-bit object if we didn't find anything.
17300
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17301
 
}'`; fi
 
17438
if test -z "$aix_libpath"; then
 
17439
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17440
fi
17302
17441
else
17303
17442
  echo "$as_me: failed program was:" >&5
17304
17443
sed 's/^/| /' conftest.$ac_ext >&5
17352
17491
      # The linker will automatically build a .lib file if we build a DLL.
17353
17492
      old_archive_From_new_cmds_GCJ='true'
17354
17493
      # FIXME: Should let the user specify the lib program.
17355
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17494
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17356
17495
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17357
17496
      enable_shared_with_static_runtimes_GCJ=yes
17358
17497
      ;;
17394
17533
      case $cc_basename in
17395
17534
        xlc*)
17396
17535
         output_verbose_link_cmd='echo'
17397
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17536
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17398
17537
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17399
17538
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17400
 
         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}'
 
17539
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17401
17540
          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}'
17402
17541
          ;;
17403
17542
       *)
17437
17576
      ;;
17438
17577
 
17439
17578
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17440
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17579
    freebsd* | dragonfly*)
17441
17580
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17442
17581
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443
17582
      hardcode_direct_GCJ=yes
17559
17698
      ;;
17560
17699
 
17561
17700
    openbsd*)
17562
 
      hardcode_direct_GCJ=yes
17563
 
      hardcode_shlibpath_var_GCJ=no
17564
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17565
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17566
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17567
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17568
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17701
      if test -f /usr/libexec/ld.so; then
 
17702
        hardcode_direct_GCJ=yes
 
17703
        hardcode_shlibpath_var_GCJ=no
 
17704
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17705
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17706
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17707
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17708
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17709
        else
 
17710
          case $host_os in
 
17711
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17712
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17713
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17714
             ;;
 
17715
           *)
 
17716
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17717
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17718
             ;;
 
17719
          esac
 
17720
        fi
17569
17721
      else
17570
 
       case $host_os in
17571
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17572
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17573
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17574
 
           ;;
17575
 
         *)
17576
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17577
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17578
 
           ;;
17579
 
       esac
 
17722
        ld_shlibs_GCJ=no
17580
17723
      fi
17581
17724
      ;;
17582
17725
 
17635
17778
      case $host_os in
17636
17779
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17637
17780
      *)
17638
 
        # The compiler driver will combine linker options so we
17639
 
        # cannot just pass the convience library names through
17640
 
        # without $wl, iff we do not link with $LD.
17641
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17781
        # The compiler driver will combine and reorder linker options,
 
17782
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17783
        # but is careful enough not to reorder.
17642
17784
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17643
 
        case $wlarc in
17644
 
        '')
17645
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17646
 
        *)
17647
 
          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' ;;
17648
 
        esac ;;
 
17785
        if test "$GCC" = yes; then
 
17786
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17787
        else
 
17788
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17789
        fi
 
17790
        ;;
17649
17791
      esac
17650
17792
      link_all_deplibs_GCJ=yes
17651
17793
      ;;
17702
17844
      fi
17703
17845
      ;;
17704
17846
 
17705
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17847
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17706
17848
      no_undefined_flag_GCJ='${wl}-z,text'
17707
17849
      archive_cmds_need_lc_GCJ=no
17708
17850
      hardcode_shlibpath_var_GCJ=no
17779
17921
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17780
17922
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17781
17923
      $rm conftest*
17782
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17924
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17783
17925
 
17784
17926
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785
17927
  (eval $ac_compile) 2>&5
17837
17979
version_type=none
17838
17980
dynamic_linker="$host_os ld.so"
17839
17981
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17840
 
if test "$GCC" = yes; then
17841
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17842
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17843
 
    # if the path contains ";" then we assume it to be the separator
17844
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17845
 
    # assumed that no part of a normal pathname contains ";" but that should
17846
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17847
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17848
 
  else
17849
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17850
 
  fi
17851
 
else
17852
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17853
 
fi
 
17982
 
17854
17983
need_lib_prefix=unknown
17855
17984
hardcode_into_libs=no
17856
17985
 
18007
18136
  shlibpath_overrides_runpath=yes
18008
18137
  shlibpath_var=DYLD_LIBRARY_PATH
18009
18138
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18010
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18011
 
  if test "$GCC" = yes; then
18012
 
    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"`
18013
 
  else
18014
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18015
 
  fi
 
18139
 
18016
18140
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18017
18141
  ;;
18018
18142
 
18029
18153
  dynamic_linker=no
18030
18154
  ;;
18031
18155
 
18032
 
kfreebsd*-gnu)
18033
 
  version_type=linux
18034
 
  need_lib_prefix=no
18035
 
  need_version=no
18036
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18037
 
  soname_spec='${libname}${release}${shared_ext}$major'
18038
 
  shlibpath_var=LD_LIBRARY_PATH
18039
 
  shlibpath_overrides_runpath=no
18040
 
  hardcode_into_libs=yes
18041
 
  dynamic_linker='GNU ld.so'
18042
 
  ;;
18043
 
 
18044
18156
freebsd* | dragonfly*)
18045
18157
  # DragonFly does not have aout.  When/if they implement a new
18046
18158
  # versioning mechanism, adjust this.
18078
18190
    shlibpath_overrides_runpath=no
18079
18191
    hardcode_into_libs=yes
18080
18192
    ;;
18081
 
  freebsd*) # from 4.6 on
 
18193
  *) # from 4.6 on, and DragonFly
18082
18194
    shlibpath_overrides_runpath=yes
18083
18195
    hardcode_into_libs=yes
18084
18196
    ;;
18141
18253
  postinstall_cmds='chmod 555 $lib'
18142
18254
  ;;
18143
18255
 
18144
 
interix3*)
 
18256
interix[3-9]*)
18145
18257
  version_type=linux
18146
18258
  need_lib_prefix=no
18147
18259
  need_version=no
18196
18308
  ;;
18197
18309
 
18198
18310
# This must be Linux ELF.
18199
 
linux*)
 
18311
linux* | k*bsd*-gnu)
18200
18312
  version_type=linux
18201
18313
  need_lib_prefix=no
18202
18314
  need_version=no
18209
18321
  # Some rework will be needed to allow for fast_install
18210
18322
  # before this can be enabled.
18211
18323
  hardcode_into_libs=yes
18212
 
 
18213
 
  # find out which ABI we are using
18214
 
  libsuff=
18215
 
  case "$host_cpu" in
18216
 
  x86_64*|s390x*|powerpc64*)
18217
 
    echo '#line 18217 "configure"' > conftest.$ac_ext
18218
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219
 
  (eval $ac_compile) 2>&5
18220
 
  ac_status=$?
18221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222
 
  (exit $ac_status); }; then
18223
 
      case `/usr/bin/file conftest.$ac_objext` in
18224
 
      *64-bit*)
18225
 
        libsuff=64
18226
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18227
 
        ;;
18228
 
      esac
18229
 
    fi
18230
 
    rm -rf conftest*
18231
 
    ;;
18232
 
  esac
 
18324
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18325
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18233
18326
 
18234
18327
  # Append ld.so.conf contents to the search path
18235
18328
  if test -f /etc/ld.so.conf; then
18236
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18237
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
18329
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18330
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18238
18331
  fi
18239
18332
 
18240
18333
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18246
18339
  dynamic_linker='GNU/Linux ld.so'
18247
18340
  ;;
18248
18341
 
18249
 
knetbsd*-gnu)
18250
 
  version_type=linux
18251
 
  need_lib_prefix=no
18252
 
  need_version=no
18253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18254
 
  soname_spec='${libname}${release}${shared_ext}$major'
18255
 
  shlibpath_var=LD_LIBRARY_PATH
18256
 
  shlibpath_overrides_runpath=no
18257
 
  hardcode_into_libs=yes
18258
 
  dynamic_linker='GNU ld.so'
18259
 
  ;;
18260
 
 
18261
18342
netbsd*)
18262
18343
  version_type=sunos
18263
18344
  need_lib_prefix=no
18339
18420
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18340
18421
  ;;
18341
18422
 
 
18423
rdos*)
 
18424
  dynamic_linker=no
 
18425
  ;;
 
18426
 
18342
18427
solaris*)
18343
18428
  version_type=linux
18344
18429
  need_lib_prefix=no
18533
18618
    module_cmds_GCJ \
18534
18619
    module_expsym_cmds_GCJ \
18535
18620
    lt_cv_prog_compiler_c_o_GCJ \
 
18621
    fix_srcfile_path_GCJ \
18536
18622
    exclude_expsyms_GCJ \
18537
18623
    include_expsyms_GCJ; do
18538
18624
 
18853
18939
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18940
 
18855
18941
# Fix the shell variable \$srcfile for the compiler.
18856
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18942
fix_srcfile_path=$lt_fix_srcfile_path
18857
18943
 
18858
18944
# Set to yes if exported symbols are required.
18859
18945
always_export_symbols=$always_export_symbols_GCJ
18910
18996
objext_RC=$objext
18911
18997
 
18912
18998
# Code to be used in simple compile tests
18913
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18999
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18914
19000
 
18915
19001
# Code to be used in simple link tests
18916
19002
lt_simple_link_test_code="$lt_simple_compile_test_code"
18929
19015
 
18930
19016
# save warnings/boilerplate of simple test code
18931
19017
ac_outfile=conftest.$ac_objext
18932
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19018
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18933
19019
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18934
19020
_lt_compiler_boilerplate=`cat conftest.err`
18935
19021
$rm conftest*
18936
19022
 
18937
19023
ac_outfile=conftest.$ac_objext
18938
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19024
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18939
19025
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18940
19026
_lt_linker_boilerplate=`cat conftest.err`
18941
19027
$rm conftest*
19013
19099
    module_cmds_RC \
19014
19100
    module_expsym_cmds_RC \
19015
19101
    lt_cv_prog_compiler_c_o_RC \
 
19102
    fix_srcfile_path_RC \
19016
19103
    exclude_expsyms_RC \
19017
19104
    include_expsyms_RC; do
19018
19105
 
19333
19420
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19334
19421
 
19335
19422
# Fix the shell variable \$srcfile for the compiler.
19336
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
19423
fix_srcfile_path=$lt_fix_srcfile_path
19337
19424
 
19338
19425
# Set to yes if exported symbols are required.
19339
19426
always_export_symbols=$always_export_symbols_RC
21034
21121
fi
21035
21122
done
21036
21123
 
 
21124
{ echo "$as_me:$LINENO: checking for void*" >&5
 
21125
echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
 
21126
if test "${ac_cv_type_voidp+set}" = set; then
 
21127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21128
else
 
21129
  cat >conftest.$ac_ext <<_ACEOF
 
21130
/* confdefs.h.  */
 
21131
_ACEOF
 
21132
cat confdefs.h >>conftest.$ac_ext
 
21133
cat >>conftest.$ac_ext <<_ACEOF
 
21134
/* end confdefs.h.  */
 
21135
$ac_includes_default
 
21136
typedef void* ac__type_new_;
 
21137
int
 
21138
main ()
 
21139
{
 
21140
if ((ac__type_new_ *) 0)
 
21141
  return 0;
 
21142
if (sizeof (ac__type_new_))
 
21143
  return 0;
 
21144
  ;
 
21145
  return 0;
 
21146
}
 
21147
_ACEOF
 
21148
rm -f conftest.$ac_objext
 
21149
if { (ac_try="$ac_compile"
 
21150
case "(($ac_try" in
 
21151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21152
  *) ac_try_echo=$ac_try;;
 
21153
esac
 
21154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21155
  (eval "$ac_compile") 2>conftest.er1
 
21156
  ac_status=$?
 
21157
  grep -v '^ *+' conftest.er1 >conftest.err
 
21158
  rm -f conftest.er1
 
21159
  cat conftest.err >&5
 
21160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21161
  (exit $ac_status); } && {
 
21162
         test -z "$ac_c_werror_flag" ||
 
21163
         test ! -s conftest.err
 
21164
       } && test -s conftest.$ac_objext; then
 
21165
  ac_cv_type_voidp=yes
 
21166
else
 
21167
  echo "$as_me: failed program was:" >&5
 
21168
sed 's/^/| /' conftest.$ac_ext >&5
 
21169
 
 
21170
        ac_cv_type_voidp=no
 
21171
fi
 
21172
 
 
21173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21174
fi
 
21175
{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
 
21176
echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
 
21177
 
 
21178
# The cast to long int works around a bug in the HP C Compiler
 
21179
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21180
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21181
# This bug is HP SR number 8606223364.
 
21182
{ echo "$as_me:$LINENO: checking size of void*" >&5
 
21183
echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
 
21184
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
21185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21186
else
 
21187
  if test "$cross_compiling" = yes; then
 
21188
  # Depending upon the size, compute the lo and hi bounds.
 
21189
cat >conftest.$ac_ext <<_ACEOF
 
21190
/* confdefs.h.  */
 
21191
_ACEOF
 
21192
cat confdefs.h >>conftest.$ac_ext
 
21193
cat >>conftest.$ac_ext <<_ACEOF
 
21194
/* end confdefs.h.  */
 
21195
$ac_includes_default
 
21196
   typedef void* ac__type_sizeof_;
 
21197
int
 
21198
main ()
 
21199
{
 
21200
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
21201
test_array [0] = 0
 
21202
 
 
21203
  ;
 
21204
  return 0;
 
21205
}
 
21206
_ACEOF
 
21207
rm -f conftest.$ac_objext
 
21208
if { (ac_try="$ac_compile"
 
21209
case "(($ac_try" in
 
21210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21211
  *) ac_try_echo=$ac_try;;
 
21212
esac
 
21213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21214
  (eval "$ac_compile") 2>conftest.er1
 
21215
  ac_status=$?
 
21216
  grep -v '^ *+' conftest.er1 >conftest.err
 
21217
  rm -f conftest.er1
 
21218
  cat conftest.err >&5
 
21219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21220
  (exit $ac_status); } && {
 
21221
         test -z "$ac_c_werror_flag" ||
 
21222
         test ! -s conftest.err
 
21223
       } && test -s conftest.$ac_objext; then
 
21224
  ac_lo=0 ac_mid=0
 
21225
  while :; do
 
21226
    cat >conftest.$ac_ext <<_ACEOF
 
21227
/* confdefs.h.  */
 
21228
_ACEOF
 
21229
cat confdefs.h >>conftest.$ac_ext
 
21230
cat >>conftest.$ac_ext <<_ACEOF
 
21231
/* end confdefs.h.  */
 
21232
$ac_includes_default
 
21233
   typedef void* ac__type_sizeof_;
 
21234
int
 
21235
main ()
 
21236
{
 
21237
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21238
test_array [0] = 0
 
21239
 
 
21240
  ;
 
21241
  return 0;
 
21242
}
 
21243
_ACEOF
 
21244
rm -f conftest.$ac_objext
 
21245
if { (ac_try="$ac_compile"
 
21246
case "(($ac_try" in
 
21247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21248
  *) ac_try_echo=$ac_try;;
 
21249
esac
 
21250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21251
  (eval "$ac_compile") 2>conftest.er1
 
21252
  ac_status=$?
 
21253
  grep -v '^ *+' conftest.er1 >conftest.err
 
21254
  rm -f conftest.er1
 
21255
  cat conftest.err >&5
 
21256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21257
  (exit $ac_status); } && {
 
21258
         test -z "$ac_c_werror_flag" ||
 
21259
         test ! -s conftest.err
 
21260
       } && test -s conftest.$ac_objext; then
 
21261
  ac_hi=$ac_mid; break
 
21262
else
 
21263
  echo "$as_me: failed program was:" >&5
 
21264
sed 's/^/| /' conftest.$ac_ext >&5
 
21265
 
 
21266
        ac_lo=`expr $ac_mid + 1`
 
21267
                        if test $ac_lo -le $ac_mid; then
 
21268
                          ac_lo= ac_hi=
 
21269
                          break
 
21270
                        fi
 
21271
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
21272
fi
 
21273
 
 
21274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21275
  done
 
21276
else
 
21277
  echo "$as_me: failed program was:" >&5
 
21278
sed 's/^/| /' conftest.$ac_ext >&5
 
21279
 
 
21280
        cat >conftest.$ac_ext <<_ACEOF
 
21281
/* confdefs.h.  */
 
21282
_ACEOF
 
21283
cat confdefs.h >>conftest.$ac_ext
 
21284
cat >>conftest.$ac_ext <<_ACEOF
 
21285
/* end confdefs.h.  */
 
21286
$ac_includes_default
 
21287
   typedef void* ac__type_sizeof_;
 
21288
int
 
21289
main ()
 
21290
{
 
21291
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
21292
test_array [0] = 0
 
21293
 
 
21294
  ;
 
21295
  return 0;
 
21296
}
 
21297
_ACEOF
 
21298
rm -f conftest.$ac_objext
 
21299
if { (ac_try="$ac_compile"
 
21300
case "(($ac_try" in
 
21301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21302
  *) ac_try_echo=$ac_try;;
 
21303
esac
 
21304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21305
  (eval "$ac_compile") 2>conftest.er1
 
21306
  ac_status=$?
 
21307
  grep -v '^ *+' conftest.er1 >conftest.err
 
21308
  rm -f conftest.er1
 
21309
  cat conftest.err >&5
 
21310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21311
  (exit $ac_status); } && {
 
21312
         test -z "$ac_c_werror_flag" ||
 
21313
         test ! -s conftest.err
 
21314
       } && test -s conftest.$ac_objext; then
 
21315
  ac_hi=-1 ac_mid=-1
 
21316
  while :; do
 
21317
    cat >conftest.$ac_ext <<_ACEOF
 
21318
/* confdefs.h.  */
 
21319
_ACEOF
 
21320
cat confdefs.h >>conftest.$ac_ext
 
21321
cat >>conftest.$ac_ext <<_ACEOF
 
21322
/* end confdefs.h.  */
 
21323
$ac_includes_default
 
21324
   typedef void* ac__type_sizeof_;
 
21325
int
 
21326
main ()
 
21327
{
 
21328
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
21329
test_array [0] = 0
 
21330
 
 
21331
  ;
 
21332
  return 0;
 
21333
}
 
21334
_ACEOF
 
21335
rm -f conftest.$ac_objext
 
21336
if { (ac_try="$ac_compile"
 
21337
case "(($ac_try" in
 
21338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21339
  *) ac_try_echo=$ac_try;;
 
21340
esac
 
21341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21342
  (eval "$ac_compile") 2>conftest.er1
 
21343
  ac_status=$?
 
21344
  grep -v '^ *+' conftest.er1 >conftest.err
 
21345
  rm -f conftest.er1
 
21346
  cat conftest.err >&5
 
21347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21348
  (exit $ac_status); } && {
 
21349
         test -z "$ac_c_werror_flag" ||
 
21350
         test ! -s conftest.err
 
21351
       } && test -s conftest.$ac_objext; then
 
21352
  ac_lo=$ac_mid; break
 
21353
else
 
21354
  echo "$as_me: failed program was:" >&5
 
21355
sed 's/^/| /' conftest.$ac_ext >&5
 
21356
 
 
21357
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21358
                        if test $ac_mid -le $ac_hi; then
 
21359
                          ac_lo= ac_hi=
 
21360
                          break
 
21361
                        fi
 
21362
                        ac_mid=`expr 2 '*' $ac_mid`
 
21363
fi
 
21364
 
 
21365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21366
  done
 
21367
else
 
21368
  echo "$as_me: failed program was:" >&5
 
21369
sed 's/^/| /' conftest.$ac_ext >&5
 
21370
 
 
21371
        ac_lo= ac_hi=
 
21372
fi
 
21373
 
 
21374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21375
fi
 
21376
 
 
21377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21378
# Binary search between lo and hi bounds.
 
21379
while test "x$ac_lo" != "x$ac_hi"; do
 
21380
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21381
  cat >conftest.$ac_ext <<_ACEOF
 
21382
/* confdefs.h.  */
 
21383
_ACEOF
 
21384
cat confdefs.h >>conftest.$ac_ext
 
21385
cat >>conftest.$ac_ext <<_ACEOF
 
21386
/* end confdefs.h.  */
 
21387
$ac_includes_default
 
21388
   typedef void* ac__type_sizeof_;
 
21389
int
 
21390
main ()
 
21391
{
 
21392
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21393
test_array [0] = 0
 
21394
 
 
21395
  ;
 
21396
  return 0;
 
21397
}
 
21398
_ACEOF
 
21399
rm -f conftest.$ac_objext
 
21400
if { (ac_try="$ac_compile"
 
21401
case "(($ac_try" in
 
21402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21403
  *) ac_try_echo=$ac_try;;
 
21404
esac
 
21405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21406
  (eval "$ac_compile") 2>conftest.er1
 
21407
  ac_status=$?
 
21408
  grep -v '^ *+' conftest.er1 >conftest.err
 
21409
  rm -f conftest.er1
 
21410
  cat conftest.err >&5
 
21411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21412
  (exit $ac_status); } && {
 
21413
         test -z "$ac_c_werror_flag" ||
 
21414
         test ! -s conftest.err
 
21415
       } && test -s conftest.$ac_objext; then
 
21416
  ac_hi=$ac_mid
 
21417
else
 
21418
  echo "$as_me: failed program was:" >&5
 
21419
sed 's/^/| /' conftest.$ac_ext >&5
 
21420
 
 
21421
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21422
fi
 
21423
 
 
21424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21425
done
 
21426
case $ac_lo in
 
21427
?*) ac_cv_sizeof_voidp=$ac_lo;;
 
21428
'') if test "$ac_cv_type_voidp" = yes; then
 
21429
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
 
21430
See \`config.log' for more details." >&5
 
21431
echo "$as_me: error: cannot compute sizeof (void*)
 
21432
See \`config.log' for more details." >&2;}
 
21433
   { (exit 77); exit 77; }; }
 
21434
   else
 
21435
     ac_cv_sizeof_voidp=0
 
21436
   fi ;;
 
21437
esac
 
21438
else
 
21439
  cat >conftest.$ac_ext <<_ACEOF
 
21440
/* confdefs.h.  */
 
21441
_ACEOF
 
21442
cat confdefs.h >>conftest.$ac_ext
 
21443
cat >>conftest.$ac_ext <<_ACEOF
 
21444
/* end confdefs.h.  */
 
21445
$ac_includes_default
 
21446
   typedef void* ac__type_sizeof_;
 
21447
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21448
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21449
#include <stdio.h>
 
21450
#include <stdlib.h>
 
21451
int
 
21452
main ()
 
21453
{
 
21454
 
 
21455
  FILE *f = fopen ("conftest.val", "w");
 
21456
  if (! f)
 
21457
    return 1;
 
21458
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
21459
    {
 
21460
      long int i = longval ();
 
21461
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21462
        return 1;
 
21463
      fprintf (f, "%ld\n", i);
 
21464
    }
 
21465
  else
 
21466
    {
 
21467
      unsigned long int i = ulongval ();
 
21468
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21469
        return 1;
 
21470
      fprintf (f, "%lu\n", i);
 
21471
    }
 
21472
  return ferror (f) || fclose (f) != 0;
 
21473
 
 
21474
  ;
 
21475
  return 0;
 
21476
}
 
21477
_ACEOF
 
21478
rm -f conftest$ac_exeext
 
21479
if { (ac_try="$ac_link"
 
21480
case "(($ac_try" in
 
21481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21482
  *) ac_try_echo=$ac_try;;
 
21483
esac
 
21484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21485
  (eval "$ac_link") 2>&5
 
21486
  ac_status=$?
 
21487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21488
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21489
  { (case "(($ac_try" in
 
21490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21491
  *) ac_try_echo=$ac_try;;
 
21492
esac
 
21493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21494
  (eval "$ac_try") 2>&5
 
21495
  ac_status=$?
 
21496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21497
  (exit $ac_status); }; }; then
 
21498
  ac_cv_sizeof_voidp=`cat conftest.val`
 
21499
else
 
21500
  echo "$as_me: program exited with status $ac_status" >&5
 
21501
echo "$as_me: failed program was:" >&5
 
21502
sed 's/^/| /' conftest.$ac_ext >&5
 
21503
 
 
21504
( exit $ac_status )
 
21505
if test "$ac_cv_type_voidp" = yes; then
 
21506
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
 
21507
See \`config.log' for more details." >&5
 
21508
echo "$as_me: error: cannot compute sizeof (void*)
 
21509
See \`config.log' for more details." >&2;}
 
21510
   { (exit 77); exit 77; }; }
 
21511
   else
 
21512
     ac_cv_sizeof_voidp=0
 
21513
   fi
 
21514
fi
 
21515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21516
fi
 
21517
rm -f conftest.val
 
21518
fi
 
21519
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
21520
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
 
21521
 
 
21522
 
 
21523
 
 
21524
cat >>confdefs.h <<_ACEOF
 
21525
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
 
21526
_ACEOF
 
21527
 
 
21528
 
21037
21529
# Find a good install program.  We prefer a C program (faster),
21038
21530
# so one script is as good as another.  But avoid the broken or
21039
21531
# incompatible versions:
21966
22458
        pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21967
22459
    else
21968
22460
        if test -n "$PKG_CONFIG" && \
21969
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\"") >&5
21970
 
  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
 
22461
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.4\"") >&5
 
22462
  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.4") 2>&5
21971
22463
  ac_status=$?
21972
22464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973
22465
  (exit $ac_status); }; then
21974
 
  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
 
22466
  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.4" 2>/dev/null`
21975
22467
else
21976
22468
  pkg_failed=yes
21977
22469
fi
21984
22476
        pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21985
22477
    else
21986
22478
        if test -n "$PKG_CONFIG" && \
21987
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\"") >&5
21988
 
  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
 
22479
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.4\"") >&5
 
22480
  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.4") 2>&5
21989
22481
  ac_status=$?
21990
22482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991
22483
  (exit $ac_status); }; then
21992
 
  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
 
22484
  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.4" 2>/dev/null`
21993
22485
else
21994
22486
  pkg_failed=yes
21995
22487
fi
22008
22500
        _pkg_short_errors_supported=no
22009
22501
fi
22010
22502
        if test $_pkg_short_errors_supported = yes; then
22011
 
                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.8"`
 
22503
                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.4"`
22012
22504
        else
22013
 
                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.8"`
 
22505
                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.4"`
22014
22506
        fi
22015
22507
        # Put the nasty error message in config.log where it belongs
22016
22508
        echo "$OPENSSL_PKG_ERRORS" >&5
22017
22509
 
22018
 
        { { echo "$as_me:$LINENO: error: Package requirements (openssl >= 0.9.8) were not met:
 
22510
        { { echo "$as_me:$LINENO: error: Package requirements (openssl >= 0.9.4) were not met:
22019
22511
 
22020
22512
$OPENSSL_PKG_ERRORS
22021
22513
 
22026
22518
and OPENSSL_LIBS to avoid the need to call pkg-config.
22027
22519
See the pkg-config man page for more details.
22028
22520
" >&5
22029
 
echo "$as_me: error: Package requirements (openssl >= 0.9.8) were not met:
 
22521
echo "$as_me: error: Package requirements (openssl >= 0.9.4) were not met:
22030
22522
 
22031
22523
$OPENSSL_PKG_ERRORS
22032
22524
 
22068
22560
        :
22069
22561
fi
22070
22562
 
 
22563
# Check whether --enable-largefile was given.
 
22564
if test "${enable_largefile+set}" = set; then
 
22565
  enableval=$enable_largefile;
 
22566
fi
 
22567
 
 
22568
if test "$enable_largefile" != no; then
 
22569
 
 
22570
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
22571
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
22572
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
22573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22574
else
 
22575
  ac_cv_sys_largefile_CC=no
 
22576
     if test "$GCC" != yes; then
 
22577
       ac_save_CC=$CC
 
22578
       while :; do
 
22579
         # IRIX 6.2 and later do not support large files by default,
 
22580
         # so use the C compiler's -n32 option if that helps.
 
22581
         cat >conftest.$ac_ext <<_ACEOF
 
22582
/* confdefs.h.  */
 
22583
_ACEOF
 
22584
cat confdefs.h >>conftest.$ac_ext
 
22585
cat >>conftest.$ac_ext <<_ACEOF
 
22586
/* end confdefs.h.  */
 
22587
#include <sys/types.h>
 
22588
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22589
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22590
    since some C++ compilers masquerading as C compilers
 
22591
    incorrectly reject 9223372036854775807.  */
 
22592
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22593
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22594
                       && LARGE_OFF_T % 2147483647 == 1)
 
22595
                      ? 1 : -1];
 
22596
int
 
22597
main ()
 
22598
{
 
22599
 
 
22600
  ;
 
22601
  return 0;
 
22602
}
 
22603
_ACEOF
 
22604
         rm -f conftest.$ac_objext
 
22605
if { (ac_try="$ac_compile"
 
22606
case "(($ac_try" in
 
22607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22608
  *) ac_try_echo=$ac_try;;
 
22609
esac
 
22610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22611
  (eval "$ac_compile") 2>conftest.er1
 
22612
  ac_status=$?
 
22613
  grep -v '^ *+' conftest.er1 >conftest.err
 
22614
  rm -f conftest.er1
 
22615
  cat conftest.err >&5
 
22616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22617
  (exit $ac_status); } && {
 
22618
         test -z "$ac_c_werror_flag" ||
 
22619
         test ! -s conftest.err
 
22620
       } && test -s conftest.$ac_objext; then
 
22621
  break
 
22622
else
 
22623
  echo "$as_me: failed program was:" >&5
 
22624
sed 's/^/| /' conftest.$ac_ext >&5
 
22625
 
 
22626
 
 
22627
fi
 
22628
 
 
22629
rm -f core conftest.err conftest.$ac_objext
 
22630
         CC="$CC -n32"
 
22631
         rm -f conftest.$ac_objext
 
22632
if { (ac_try="$ac_compile"
 
22633
case "(($ac_try" in
 
22634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22635
  *) ac_try_echo=$ac_try;;
 
22636
esac
 
22637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22638
  (eval "$ac_compile") 2>conftest.er1
 
22639
  ac_status=$?
 
22640
  grep -v '^ *+' conftest.er1 >conftest.err
 
22641
  rm -f conftest.er1
 
22642
  cat conftest.err >&5
 
22643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22644
  (exit $ac_status); } && {
 
22645
         test -z "$ac_c_werror_flag" ||
 
22646
         test ! -s conftest.err
 
22647
       } && test -s conftest.$ac_objext; then
 
22648
  ac_cv_sys_largefile_CC=' -n32'; break
 
22649
else
 
22650
  echo "$as_me: failed program was:" >&5
 
22651
sed 's/^/| /' conftest.$ac_ext >&5
 
22652
 
 
22653
 
 
22654
fi
 
22655
 
 
22656
rm -f core conftest.err conftest.$ac_objext
 
22657
         break
 
22658
       done
 
22659
       CC=$ac_save_CC
 
22660
       rm -f conftest.$ac_ext
 
22661
    fi
 
22662
fi
 
22663
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
22664
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
22665
  if test "$ac_cv_sys_largefile_CC" != no; then
 
22666
    CC=$CC$ac_cv_sys_largefile_CC
 
22667
  fi
 
22668
 
 
22669
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
22670
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
22671
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
22672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22673
else
 
22674
  while :; do
 
22675
  cat >conftest.$ac_ext <<_ACEOF
 
22676
/* confdefs.h.  */
 
22677
_ACEOF
 
22678
cat confdefs.h >>conftest.$ac_ext
 
22679
cat >>conftest.$ac_ext <<_ACEOF
 
22680
/* end confdefs.h.  */
 
22681
#include <sys/types.h>
 
22682
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22683
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22684
    since some C++ compilers masquerading as C compilers
 
22685
    incorrectly reject 9223372036854775807.  */
 
22686
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22687
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22688
                       && LARGE_OFF_T % 2147483647 == 1)
 
22689
                      ? 1 : -1];
 
22690
int
 
22691
main ()
 
22692
{
 
22693
 
 
22694
  ;
 
22695
  return 0;
 
22696
}
 
22697
_ACEOF
 
22698
rm -f conftest.$ac_objext
 
22699
if { (ac_try="$ac_compile"
 
22700
case "(($ac_try" in
 
22701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22702
  *) ac_try_echo=$ac_try;;
 
22703
esac
 
22704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22705
  (eval "$ac_compile") 2>conftest.er1
 
22706
  ac_status=$?
 
22707
  grep -v '^ *+' conftest.er1 >conftest.err
 
22708
  rm -f conftest.er1
 
22709
  cat conftest.err >&5
 
22710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22711
  (exit $ac_status); } && {
 
22712
         test -z "$ac_c_werror_flag" ||
 
22713
         test ! -s conftest.err
 
22714
       } && test -s conftest.$ac_objext; then
 
22715
  ac_cv_sys_file_offset_bits=no; break
 
22716
else
 
22717
  echo "$as_me: failed program was:" >&5
 
22718
sed 's/^/| /' conftest.$ac_ext >&5
 
22719
 
 
22720
 
 
22721
fi
 
22722
 
 
22723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22724
  cat >conftest.$ac_ext <<_ACEOF
 
22725
/* confdefs.h.  */
 
22726
_ACEOF
 
22727
cat confdefs.h >>conftest.$ac_ext
 
22728
cat >>conftest.$ac_ext <<_ACEOF
 
22729
/* end confdefs.h.  */
 
22730
#define _FILE_OFFSET_BITS 64
 
22731
#include <sys/types.h>
 
22732
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22733
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22734
    since some C++ compilers masquerading as C compilers
 
22735
    incorrectly reject 9223372036854775807.  */
 
22736
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22737
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22738
                       && LARGE_OFF_T % 2147483647 == 1)
 
22739
                      ? 1 : -1];
 
22740
int
 
22741
main ()
 
22742
{
 
22743
 
 
22744
  ;
 
22745
  return 0;
 
22746
}
 
22747
_ACEOF
 
22748
rm -f conftest.$ac_objext
 
22749
if { (ac_try="$ac_compile"
 
22750
case "(($ac_try" in
 
22751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22752
  *) ac_try_echo=$ac_try;;
 
22753
esac
 
22754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22755
  (eval "$ac_compile") 2>conftest.er1
 
22756
  ac_status=$?
 
22757
  grep -v '^ *+' conftest.er1 >conftest.err
 
22758
  rm -f conftest.er1
 
22759
  cat conftest.err >&5
 
22760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22761
  (exit $ac_status); } && {
 
22762
         test -z "$ac_c_werror_flag" ||
 
22763
         test ! -s conftest.err
 
22764
       } && test -s conftest.$ac_objext; then
 
22765
  ac_cv_sys_file_offset_bits=64; break
 
22766
else
 
22767
  echo "$as_me: failed program was:" >&5
 
22768
sed 's/^/| /' conftest.$ac_ext >&5
 
22769
 
 
22770
 
 
22771
fi
 
22772
 
 
22773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22774
  ac_cv_sys_file_offset_bits=unknown
 
22775
  break
 
22776
done
 
22777
fi
 
22778
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
22779
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
22780
case $ac_cv_sys_file_offset_bits in #(
 
22781
  no | unknown) ;;
 
22782
  *)
 
22783
cat >>confdefs.h <<_ACEOF
 
22784
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
22785
_ACEOF
 
22786
;;
 
22787
esac
 
22788
rm -f conftest*
 
22789
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
22790
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
22791
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
22792
if test "${ac_cv_sys_large_files+set}" = set; then
 
22793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22794
else
 
22795
  while :; do
 
22796
  cat >conftest.$ac_ext <<_ACEOF
 
22797
/* confdefs.h.  */
 
22798
_ACEOF
 
22799
cat confdefs.h >>conftest.$ac_ext
 
22800
cat >>conftest.$ac_ext <<_ACEOF
 
22801
/* end confdefs.h.  */
 
22802
#include <sys/types.h>
 
22803
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22804
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22805
    since some C++ compilers masquerading as C compilers
 
22806
    incorrectly reject 9223372036854775807.  */
 
22807
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22808
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22809
                       && LARGE_OFF_T % 2147483647 == 1)
 
22810
                      ? 1 : -1];
 
22811
int
 
22812
main ()
 
22813
{
 
22814
 
 
22815
  ;
 
22816
  return 0;
 
22817
}
 
22818
_ACEOF
 
22819
rm -f conftest.$ac_objext
 
22820
if { (ac_try="$ac_compile"
 
22821
case "(($ac_try" in
 
22822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22823
  *) ac_try_echo=$ac_try;;
 
22824
esac
 
22825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22826
  (eval "$ac_compile") 2>conftest.er1
 
22827
  ac_status=$?
 
22828
  grep -v '^ *+' conftest.er1 >conftest.err
 
22829
  rm -f conftest.er1
 
22830
  cat conftest.err >&5
 
22831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22832
  (exit $ac_status); } && {
 
22833
         test -z "$ac_c_werror_flag" ||
 
22834
         test ! -s conftest.err
 
22835
       } && test -s conftest.$ac_objext; then
 
22836
  ac_cv_sys_large_files=no; break
 
22837
else
 
22838
  echo "$as_me: failed program was:" >&5
 
22839
sed 's/^/| /' conftest.$ac_ext >&5
 
22840
 
 
22841
 
 
22842
fi
 
22843
 
 
22844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22845
  cat >conftest.$ac_ext <<_ACEOF
 
22846
/* confdefs.h.  */
 
22847
_ACEOF
 
22848
cat confdefs.h >>conftest.$ac_ext
 
22849
cat >>conftest.$ac_ext <<_ACEOF
 
22850
/* end confdefs.h.  */
 
22851
#define _LARGE_FILES 1
 
22852
#include <sys/types.h>
 
22853
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22854
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22855
    since some C++ compilers masquerading as C compilers
 
22856
    incorrectly reject 9223372036854775807.  */
 
22857
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22858
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22859
                       && LARGE_OFF_T % 2147483647 == 1)
 
22860
                      ? 1 : -1];
 
22861
int
 
22862
main ()
 
22863
{
 
22864
 
 
22865
  ;
 
22866
  return 0;
 
22867
}
 
22868
_ACEOF
 
22869
rm -f conftest.$ac_objext
 
22870
if { (ac_try="$ac_compile"
 
22871
case "(($ac_try" in
 
22872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22873
  *) ac_try_echo=$ac_try;;
 
22874
esac
 
22875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22876
  (eval "$ac_compile") 2>conftest.er1
 
22877
  ac_status=$?
 
22878
  grep -v '^ *+' conftest.er1 >conftest.err
 
22879
  rm -f conftest.er1
 
22880
  cat conftest.err >&5
 
22881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22882
  (exit $ac_status); } && {
 
22883
         test -z "$ac_c_werror_flag" ||
 
22884
         test ! -s conftest.err
 
22885
       } && test -s conftest.$ac_objext; then
 
22886
  ac_cv_sys_large_files=1; break
 
22887
else
 
22888
  echo "$as_me: failed program was:" >&5
 
22889
sed 's/^/| /' conftest.$ac_ext >&5
 
22890
 
 
22891
 
 
22892
fi
 
22893
 
 
22894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22895
  ac_cv_sys_large_files=unknown
 
22896
  break
 
22897
done
 
22898
fi
 
22899
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
22900
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
22901
case $ac_cv_sys_large_files in #(
 
22902
  no | unknown) ;;
 
22903
  *)
 
22904
cat >>confdefs.h <<_ACEOF
 
22905
#define _LARGE_FILES $ac_cv_sys_large_files
 
22906
_ACEOF
 
22907
;;
 
22908
esac
 
22909
rm -f conftest*
 
22910
  fi
 
22911
fi
 
22912
 
 
22913
 
22071
22914
 
22072
22915
{ echo "$as_me:$LINENO: checking how to copy va_list" >&5
22073
22916
echo $ECHO_N "checking how to copy va_list... $ECHO_C" >&6; }
22308
23151
 
22309
23152
 
22310
23153
 
22311
 
if test "x$use_gtk" = "xyes"; then
22312
23154
 
22313
23155
case "$am__api_version" in
22314
23156
    1.01234)
22763
23605
 
22764
23606
 
22765
23607
 
22766
 
    GETTEXT_PACKAGE=transmission
 
23608
GETTEXT_PACKAGE=transmission
22767
23609
 
22768
23610
 
22769
23611
cat >>confdefs.h <<_ACEOF
24267
25109
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24268
25110
        < $srcdir/po/POTFILES.in > po/POTFILES
24269
25111
 
24270
 
    transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
 
25112
transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
24271
25113
 
24272
 
fi
24273
25114
 
24274
25115
 
24275
25116
 
24746
25587
 
24747
25588
 
24748
25589
 
24749
 
ac_config_files="$ac_config_files Makefile transmission.spec beos/Makefile cli/Makefile daemon/Makefile libtransmission/Makefile third-party/Makefile macosx/Makefile wx/Makefile wx/images/Makefile"
24750
 
 
24751
 
 
24752
 
if test "x$use_gtk" = "xyes"; then
24753
 
    ac_config_files="$ac_config_files gtk/Makefile po/Makefile.in"
24754
 
 
24755
 
fi
 
25590
ac_config_files="$ac_config_files Makefile transmission.spec beos/Makefile cli/Makefile daemon/Makefile libtransmission/Makefile third-party/Makefile macosx/Makefile wx/Makefile wx/images/Makefile gtk/Makefile po/Makefile.in"
 
25591
 
24756
25592
 
24757
25593
ac_configure_args="$ac_configure_args --enable-static --disable-shared -q"
24758
25594
cat >confcache <<\_ACEOF
25255
26091
# report actual input values of CONFIG_FILES etc. instead of their
25256
26092
# values after options handling.
25257
26093
ac_log="
25258
 
This file was extended by transmission $as_me 0.91, which was
 
26094
This file was extended by transmission $as_me 0.93, which was
25259
26095
generated by GNU Autoconf 2.61.  Invocation command line was
25260
26096
 
25261
26097
  CONFIG_FILES    = $CONFIG_FILES
25302
26138
_ACEOF
25303
26139
cat >>$CONFIG_STATUS <<_ACEOF
25304
26140
ac_cs_version="\\
25305
 
transmission config.status 0.91
 
26141
transmission config.status 0.93
25306
26142
configured by $0, generated by GNU Autoconf 2.61,
25307
26143
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25308
26144