~ubuntu-branches/ubuntu/raring/libxfont/raring-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2007-09-05 22:45:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905224557-e5e682uyjxpaxf4p
Tags: 1:1.3.1-1
* New upstream release.
* Add libxfont1.shlibs, bump shlibs to >= 1:1.2.9.

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 libXfont 1.3.0.
 
3
# Generated by GNU Autoconf 2.61 for libXfont 1.3.1.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='libXfont'
730
730
PACKAGE_TARNAME='libXfont'
731
 
PACKAGE_VERSION='1.3.0'
732
 
PACKAGE_STRING='libXfont 1.3.0'
 
731
PACKAGE_VERSION='1.3.1'
 
732
PACKAGE_STRING='libXfont 1.3.1'
733
733
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
734
 
735
735
# Factoring default headers for most tests.
808
808
INSTALL_PROGRAM
809
809
INSTALL_SCRIPT
810
810
INSTALL_DATA
 
811
am__isrc
811
812
CYGPATH_W
812
813
PACKAGE
813
814
VERSION
850
851
host_cpu
851
852
host_vendor
852
853
host_os
 
854
SED
853
855
GREP
854
856
EGREP
855
857
LN_S
1430
1432
  # Omit some internal or obsolete options to make the list less imposing.
1431
1433
  # This message is too long to be a string in the A/UX 3.1 sh.
1432
1434
  cat <<_ACEOF
1433
 
\`configure' configures libXfont 1.3.0 to adapt to many kinds of systems.
 
1435
\`configure' configures libXfont 1.3.1 to adapt to many kinds of systems.
1434
1436
 
1435
1437
Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1438
 
1500
1502
 
1501
1503
if test -n "$ac_init_help"; then
1502
1504
  case $ac_init_help in
1503
 
     short | recursive ) echo "Configuration of libXfont 1.3.0:";;
 
1505
     short | recursive ) echo "Configuration of libXfont 1.3.1:";;
1504
1506
   esac
1505
1507
  cat <<\_ACEOF
1506
1508
 
1636
1638
test -n "$ac_init_help" && exit $ac_status
1637
1639
if $ac_init_version; then
1638
1640
  cat <<\_ACEOF
1639
 
libXfont configure 1.3.0
 
1641
libXfont configure 1.3.1
1640
1642
generated by GNU Autoconf 2.61
1641
1643
 
1642
1644
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1650
1652
This file contains any messages produced by compilers while
1651
1653
running configure, to aid debugging if configure makes a mistake.
1652
1654
 
1653
 
It was created by libXfont $as_me 1.3.0, which was
 
1655
It was created by libXfont $as_me 1.3.1, which was
1654
1656
generated by GNU Autoconf 2.61.  Invocation command line was
1655
1657
 
1656
1658
  $ $0 $@
2003
2005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2006
 
2005
2007
 
2006
 
am__api_version="1.9"
 
2008
am__api_version='1.10'
 
2009
 
2007
2010
ac_aux_dir=
2008
2011
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009
2012
  if test -f "$ac_dir/install-sh"; then
2186
2189
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2187
2190
fi
2188
2191
 
2189
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2190
 
  # We used to keeping the `.' as first argument, in order to
2191
 
  # allow $(mkdir_p) to be used without argument.  As in
2192
 
  #   $(mkdir_p) $(somedir)
2193
 
  # where $(somedir) is conditionally defined.  However this is wrong
2194
 
  # for two reasons:
2195
 
  #  1. if the package is installed by a user who cannot write `.'
2196
 
  #     make install will fail,
2197
 
  #  2. the above comment should most certainly read
2198
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2199
 
  #     so it does not work when $(somedir) is undefined and
2200
 
  #     $(DESTDIR) is not.
2201
 
  #  To support the latter case, we have to write
2202
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2203
 
  #  so the `.' trick is pointless.
2204
 
  mkdir_p='mkdir -p --'
 
2192
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2193
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2194
if test -z "$MKDIR_P"; then
 
2195
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2196
  echo $ECHO_N "(cached) $ECHO_C" >&6
2205
2197
else
2206
 
  # On NextStep and OpenStep, the `mkdir' command does not
2207
 
  # recognize any option.  It will interpret all options as
2208
 
  # directories to create, and then abort because `.' already
2209
 
  # exists.
2210
 
  for d in ./-p ./--version;
2211
 
  do
2212
 
    test -d $d && rmdir $d
2213
 
  done
2214
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2215
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2216
 
    mkdir_p='$(mkinstalldirs)'
 
2198
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2199
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2200
do
 
2201
  IFS=$as_save_IFS
 
2202
  test -z "$as_dir" && as_dir=.
 
2203
  for ac_prog in mkdir gmkdir; do
 
2204
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2205
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2206
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2207
             'mkdir (GNU coreutils) '* | \
 
2208
             'mkdir (coreutils) '* | \
 
2209
             'mkdir (fileutils) '4.1*)
 
2210
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2211
               break 3;;
 
2212
           esac
 
2213
         done
 
2214
       done
 
2215
done
 
2216
IFS=$as_save_IFS
 
2217
 
 
2218
fi
 
2219
 
 
2220
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2221
    MKDIR_P="$ac_cv_path_mkdir -p"
2217
2222
  else
2218
 
    mkdir_p='$(install_sh) -d'
 
2223
    # As a last resort, use the slow shell script.  Don't cache a
 
2224
    # value for MKDIR_P within a source directory, because that will
 
2225
    # break other packages using the cache if that directory is
 
2226
    # removed, or if the value is a relative name.
 
2227
    test -d ./--version && rmdir ./--version
 
2228
    MKDIR_P="$ac_install_sh -d"
2219
2229
  fi
2220
2230
fi
 
2231
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2232
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2233
 
 
2234
mkdir_p="$MKDIR_P"
 
2235
case $mkdir_p in
 
2236
  [\\/$]* | ?:[\\/]*) ;;
 
2237
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2238
esac
2221
2239
 
2222
2240
for ac_prog in gawk mawk nawk awk
2223
2241
do
2300
2318
fi
2301
2319
rmdir .tst 2>/dev/null
2302
2320
 
2303
 
# test to see if srcdir already configured
2304
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2305
 
   test -f $srcdir/config.status; then
2306
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2321
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2322
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2323
  # is not polluted with repeated "-I."
 
2324
  am__isrc=' -I$(srcdir)'
 
2325
  # test to see if srcdir already configured
 
2326
  if test -f $srcdir/config.status; then
 
2327
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2307
2328
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2308
2329
   { (exit 1); exit 1; }; }
 
2330
  fi
2309
2331
fi
2310
2332
 
2311
2333
# test whether we have cygpath
2320
2342
 
2321
2343
# Define the identity of the package.
2322
2344
 PACKAGE='libXfont'
2323
 
 VERSION='1.3.0'
 
2345
 VERSION='1.3.1'
2324
2346
 
2325
2347
 
2326
2348
cat >>confdefs.h <<_ACEOF
2348
2370
 
2349
2371
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2350
2372
 
2351
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2373
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2352
2374
 
2353
2375
# Installed binaries are usually stripped using `strip' when the user
2354
2376
# run `make install-strip'.  However `strip' might not be the right
2452
2474
fi
2453
2475
 
2454
2476
fi
2455
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2477
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456
2478
 
2457
2479
# We need awk for the "check" target.  The system "awk" is bad on
2458
2480
# some platforms.
3443
3465
  am_depcomp="$ac_aux_dir/depcomp"
3444
3466
  AMDEPBACKSLASH='\'
3445
3467
fi
3446
 
 
3447
 
 
3448
 
if test "x$enable_dependency_tracking" != xno; then
 
3468
 if test "x$enable_dependency_tracking" != xno; then
3449
3469
  AMDEP_TRUE=
3450
3470
  AMDEP_FALSE='#'
3451
3471
else
3455
3475
 
3456
3476
 
3457
3477
 
3458
 
 
3459
3478
depcc="$CC"   am_compiler_list=
3460
3479
 
3461
3480
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3523
3542
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3524
3543
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3525
3544
         >/dev/null 2>conftest.err &&
 
3545
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3526
3546
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3527
3547
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3528
3548
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3552
3572
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3553
3573
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3554
3574
 
3555
 
 
3556
 
 
3557
 
if
 
3575
 if
3558
3576
  test "x$enable_dependency_tracking" != xno \
3559
3577
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3560
3578
  am__fastdepCC_TRUE=
3734
3752
  test -z "$as_dir" && as_dir=.
3735
3753
  for lt_ac_prog in sed gsed; do
3736
3754
    for ac_exec_ext in '' $ac_executable_extensions; do
3737
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3755
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3738
3756
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3739
3757
      fi
3740
3758
    done
3741
3759
  done
3742
3760
done
 
3761
IFS=$as_save_IFS
3743
3762
lt_ac_max=0
3744
3763
lt_ac_count=0
3745
3764
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3774
3793
fi
3775
3794
 
3776
3795
SED=$lt_cv_path_SED
 
3796
 
3777
3797
{ echo "$as_me:$LINENO: result: $SED" >&5
3778
3798
echo "${ECHO_T}$SED" >&6; }
3779
3799
 
4135
4155
echo "${ECHO_T}no, using $LN_S" >&6; }
4136
4156
fi
4137
4157
 
4138
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4139
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4158
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4159
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4140
4160
if test "${lt_cv_deplibs_check_method+set}" = set; then
4141
4161
  echo $ECHO_N "(cached) $ECHO_C" >&6
4142
4162
else
4177
4197
 
4178
4198
mingw* | pw32*)
4179
4199
  # Base MSYS/MinGW do not provide the 'file' command needed by
4180
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4181
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4182
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4200
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4201
  # unless we find 'file', for example because we are cross-compiling.
 
4202
  if ( file / ) >/dev/null 2>&1; then
 
4203
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4204
    lt_cv_file_magic_cmd='func_win32_libid'
 
4205
  else
 
4206
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4207
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4208
  fi
4183
4209
  ;;
4184
4210
 
4185
4211
darwin* | rhapsody*)
4224
4250
  esac
4225
4251
  ;;
4226
4252
 
4227
 
interix3*)
 
4253
interix[3-9]*)
4228
4254
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4229
4255
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4230
4256
  ;;
4274
4300
  lt_cv_deplibs_check_method=pass_all
4275
4301
  ;;
4276
4302
 
 
4303
rdos*)
 
4304
  lt_cv_deplibs_check_method=pass_all
 
4305
  ;;
 
4306
 
4277
4307
solaris*)
4278
4308
  lt_cv_deplibs_check_method=pass_all
4279
4309
  ;;
4361
4391
  ;;
4362
4392
*-*-irix6*)
4363
4393
  # Find out which ABI we are using.
4364
 
  echo '#line 4364 "configure"' > conftest.$ac_ext
 
4394
  echo '#line 4394 "configure"' > conftest.$ac_ext
4365
4395
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366
4396
  (eval $ac_compile) 2>&5
4367
4397
  ac_status=$?
4396
4426
  rm -rf conftest*
4397
4427
  ;;
4398
4428
 
4399
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4429
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4430
s390*-*linux*|sparc*-*linux*)
4400
4431
  # Find out which ABI we are using.
4401
4432
  echo 'int i;' > conftest.$ac_ext
4402
4433
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407
4438
    case `/usr/bin/file conftest.o` in
4408
4439
    *32-bit*)
4409
4440
      case $host in
 
4441
        x86_64-*kfreebsd*-gnu)
 
4442
          LD="${LD-ld} -m elf_i386_fbsd"
 
4443
          ;;
4410
4444
        x86_64-*linux*)
4411
4445
          LD="${LD-ld} -m elf_i386"
4412
4446
          ;;
4423
4457
      ;;
4424
4458
    *64-bit*)
4425
4459
      case $host in
 
4460
        x86_64-*kfreebsd*-gnu)
 
4461
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4462
          ;;
4426
4463
        x86_64-*linux*)
4427
4464
          LD="${LD-ld} -m elf_x86_64"
4428
4465
          ;;
5590
5627
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5591
5628
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5592
5629
         >/dev/null 2>conftest.err &&
 
5630
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5593
5631
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5594
5632
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5595
5633
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5619
5657
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5620
5658
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5621
5659
 
5622
 
 
5623
 
 
5624
 
if
 
5660
 if
5625
5661
  test "x$enable_dependency_tracking" != xno \
5626
5662
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5627
5663
  am__fastdepCXX_TRUE=
6216
6252
    fi
6217
6253
    ;;
6218
6254
  *)
6219
 
    # If test is not a shell built-in, we'll probably end up computing a
6220
 
    # maximum length that is only half of the actual maximum length, but
6221
 
    # we can't tell.
6222
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6223
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6255
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6256
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6257
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6258
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6259
    else
 
6260
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6261
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6224
6262
               = "XX$teststring") >/dev/null 2>&1 &&
6225
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6226
 
            lt_cv_sys_max_cmd_len=$new_result &&
6227
 
            test $i != 17 # 1/2 MB should be enough
6228
 
    do
6229
 
      i=`expr $i + 1`
6230
 
      teststring=$teststring$teststring
6231
 
    done
6232
 
    teststring=
6233
 
    # Add a significant safety factor because C++ compilers can tack on massive
6234
 
    # amounts of additional arguments before passing them to the linker.
6235
 
    # It appears as though 1/2 is a usable value.
6236
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6263
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6264
              lt_cv_sys_max_cmd_len=$new_result &&
 
6265
              test $i != 17 # 1/2 MB should be enough
 
6266
      do
 
6267
        i=`expr $i + 1`
 
6268
        teststring=$teststring$teststring
 
6269
      done
 
6270
      teststring=
 
6271
      # Add a significant safety factor because C++ compilers can tack on massive
 
6272
      # amounts of additional arguments before passing them to the linker.
 
6273
      # It appears as though 1/2 is a usable value.
 
6274
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6275
    fi
6237
6276
    ;;
6238
6277
  esac
6239
6278
 
6250
6289
 
6251
6290
 
6252
6291
 
 
6292
 
6253
6293
# Check for command to grab the raw symbol name followed by C symbol from nm.
6254
6294
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6255
6295
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6838
6878
test -z "$ac_objext" && ac_objext=o
6839
6879
 
6840
6880
# Determine commands to create old-style static archives.
6841
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6881
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6842
6882
old_postinstall_cmds='chmod 644 $oldlib'
6843
6883
old_postuninstall_cmds=
6844
6884
 
7038
7078
objext=$objext
7039
7079
 
7040
7080
# Code to be used in simple compile tests
7041
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7081
lt_simple_compile_test_code="int some_variable = 0;"
7042
7082
 
7043
7083
# Code to be used in simple link tests
7044
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7084
lt_simple_link_test_code='int main(){return(0);}'
7045
7085
 
7046
7086
 
7047
7087
# If no C compiler was specified, use CC.
7056
7096
 
7057
7097
# save warnings/boilerplate of simple test code
7058
7098
ac_outfile=conftest.$ac_objext
7059
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7099
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7060
7100
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061
7101
_lt_compiler_boilerplate=`cat conftest.err`
7062
7102
$rm conftest*
7063
7103
 
7064
7104
ac_outfile=conftest.$ac_objext
7065
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7105
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7066
7106
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7067
7107
_lt_linker_boilerplate=`cat conftest.err`
7068
7108
$rm conftest*
7082
7122
else
7083
7123
  lt_cv_prog_compiler_rtti_exceptions=no
7084
7124
  ac_outfile=conftest.$ac_objext
7085
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7125
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7086
7126
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7087
7127
   # Insert the option either (1) after the last *FLAGS variable, or
7088
7128
   # (2) before a word containing "conftest.", or (3) at the end.
7093
7133
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7094
7134
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7095
7135
   -e 's:$: $lt_compiler_flag:'`
7096
 
   (eval echo "\"\$as_me:7096: $lt_compile\"" >&5)
 
7136
   (eval echo "\"\$as_me:7136: $lt_compile\"" >&5)
7097
7137
   (eval "$lt_compile" 2>conftest.err)
7098
7138
   ac_status=$?
7099
7139
   cat conftest.err >&5
7100
 
   echo "$as_me:7100: \$? = $ac_status" >&5
 
7140
   echo "$as_me:7140: \$? = $ac_status" >&5
7101
7141
   if (exit $ac_status) && test -s "$ac_outfile"; then
7102
7142
     # The compiler can only warn and ignore the option if not recognized
7103
7143
     # So say no if there are warnings other than the usual output.
7148
7188
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7149
7189
      ;;
7150
7190
 
7151
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7191
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7152
7192
      # PIC is the default for these OSes.
7153
7193
      ;;
7154
7194
 
7155
 
    mingw* | pw32* | os2*)
 
7195
    mingw* | cygwin* | pw32* | os2*)
7156
7196
      # This hack is so that the source file can tell whether it is being
7157
7197
      # built for inclusion in a dll (and should export symbols for example).
 
7198
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7199
      # (--disable-auto-import) libraries
7158
7200
      lt_prog_compiler_pic='-DDLL_EXPORT'
7159
7201
      ;;
7160
7202
 
7164
7206
      lt_prog_compiler_pic='-fno-common'
7165
7207
      ;;
7166
7208
 
7167
 
    interix3*)
 
7209
    interix[3-9]*)
7168
7210
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7169
7211
      # Instead, we relocate shared libraries at runtime.
7170
7212
      ;;
7222
7264
       esac
7223
7265
       ;;
7224
7266
 
7225
 
    mingw* | pw32* | os2*)
 
7267
    mingw* | cygwin* | pw32* | os2*)
7226
7268
      # This hack is so that the source file can tell whether it is being
7227
7269
      # built for inclusion in a dll (and should export symbols for example).
7228
7270
      lt_prog_compiler_pic='-DDLL_EXPORT'
7274
7316
        # All Alpha code is PIC.
7275
7317
        lt_prog_compiler_static='-non_shared'
7276
7318
        ;;
 
7319
      *)
 
7320
        case `$CC -V 2>&1 | sed 5q` in
 
7321
        *Sun\ C*)
 
7322
          # Sun C 5.9
 
7323
          lt_prog_compiler_pic='-KPIC'
 
7324
          lt_prog_compiler_static='-Bstatic'
 
7325
          lt_prog_compiler_wl='-Wl,'
 
7326
          ;;
 
7327
        *Sun\ F*)
 
7328
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7329
          lt_prog_compiler_pic='-KPIC'
 
7330
          lt_prog_compiler_static='-Bstatic'
 
7331
          lt_prog_compiler_wl=''
 
7332
          ;;
 
7333
        esac
 
7334
        ;;
7277
7335
      esac
7278
7336
      ;;
7279
7337
 
7283
7341
      lt_prog_compiler_static='-non_shared'
7284
7342
      ;;
7285
7343
 
 
7344
    rdos*)
 
7345
      lt_prog_compiler_static='-non_shared'
 
7346
      ;;
 
7347
 
7286
7348
    solaris*)
7287
7349
      lt_prog_compiler_pic='-KPIC'
7288
7350
      lt_prog_compiler_static='-Bstatic'
7350
7412
else
7351
7413
  lt_prog_compiler_pic_works=no
7352
7414
  ac_outfile=conftest.$ac_objext
7353
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7415
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7354
7416
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7355
7417
   # Insert the option either (1) after the last *FLAGS variable, or
7356
7418
   # (2) before a word containing "conftest.", or (3) at the end.
7361
7423
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362
7424
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363
7425
   -e 's:$: $lt_compiler_flag:'`
7364
 
   (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
 
7426
   (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
7365
7427
   (eval "$lt_compile" 2>conftest.err)
7366
7428
   ac_status=$?
7367
7429
   cat conftest.err >&5
7368
 
   echo "$as_me:7368: \$? = $ac_status" >&5
 
7430
   echo "$as_me:7430: \$? = $ac_status" >&5
7369
7431
   if (exit $ac_status) && test -s "$ac_outfile"; then
7370
7432
     # The compiler can only warn and ignore the option if not recognized
7371
7433
     # So say no if there are warnings other than the usual output.
7414
7476
  lt_prog_compiler_static_works=no
7415
7477
   save_LDFLAGS="$LDFLAGS"
7416
7478
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7417
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7479
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7418
7480
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7419
7481
     # The linker can only warn and ignore the option if not recognized
7420
7482
     # So say no if there are warnings
7454
7516
   mkdir conftest
7455
7517
   cd conftest
7456
7518
   mkdir out
7457
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7519
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7458
7520
 
7459
7521
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7460
7522
   # Insert the option either (1) after the last *FLAGS variable, or
7465
7527
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7466
7528
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7467
7529
   -e 's:$: $lt_compiler_flag:'`
7468
 
   (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
 
7530
   (eval echo "\"\$as_me:7530: $lt_compile\"" >&5)
7469
7531
   (eval "$lt_compile" 2>out/conftest.err)
7470
7532
   ac_status=$?
7471
7533
   cat out/conftest.err >&5
7472
 
   echo "$as_me:7472: \$? = $ac_status" >&5
 
7534
   echo "$as_me:7534: \$? = $ac_status" >&5
7473
7535
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7474
7536
   then
7475
7537
     # The compiler can only warn and ignore the option if not recognized
7661
7723
      allow_undefined_flag=unsupported
7662
7724
      always_export_symbols=no
7663
7725
      enable_shared_with_static_runtimes=yes
7664
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7726
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7665
7727
 
7666
7728
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7667
7729
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7679
7741
      fi
7680
7742
      ;;
7681
7743
 
7682
 
    interix3*)
 
7744
    interix[3-9]*)
7683
7745
      hardcode_direct=no
7684
7746
      hardcode_shlibpath_var=no
7685
7747
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7694
7756
      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'
7695
7757
      ;;
7696
7758
 
7697
 
    linux* | k*bsd*-gnu)
 
7759
    gnu* | linux* | k*bsd*-gnu)
7698
7760
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7699
7761
        tmp_addflag=
7700
7762
        case $cc_basename,$host_cpu in
7712
7774
        ifc* | ifort*)                  # Intel Fortran compiler
7713
7775
          tmp_addflag=' -nofor_main' ;;
7714
7776
        esac
7715
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7777
        case `$CC -V 2>&1 | sed 5q` in
 
7778
        *Sun\ C*)                       # Sun C 5.9
 
7779
          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'
 
7780
          tmp_sharedflag='-G' ;;
 
7781
        *Sun\ F*)                       # Sun Fortran 8.3
 
7782
          tmp_sharedflag='-G' ;;
 
7783
        *)
 
7784
          tmp_sharedflag='-shared' ;;
 
7785
        esac
 
7786
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716
7787
 
7717
7788
        if test $supports_anon_versioning = yes; then
7718
7789
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7719
7790
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7720
7791
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7721
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7792
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7722
7793
        fi
7723
7794
        link_all_deplibs=no
7724
7795
      else
7878
7949
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7879
7950
          then
7880
7951
          # We have reworked collect2
7881
 
          hardcode_direct=yes
 
7952
          :
7882
7953
          else
7883
7954
          # We have old collect2
7884
7955
          hardcode_direct=unsupported
7952
8023
       } && test -s conftest$ac_exeext &&
7953
8024
       $as_test_x conftest$ac_exeext; then
7954
8025
 
7955
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7956
 
}'`
 
8026
lt_aix_libpath_sed='
 
8027
    /Import File Strings/,/^$/ {
 
8028
        /^0/ {
 
8029
            s/^0  *\(.*\)$/\1/
 
8030
            p
 
8031
        }
 
8032
    }'
 
8033
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7957
8034
# Check for a 64-bit object if we didn't find anything.
7958
 
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; }
7959
 
}'`; fi
 
8035
if test -z "$aix_libpath"; then
 
8036
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8037
fi
7960
8038
else
7961
8039
  echo "$as_me: failed program was:" >&5
7962
8040
sed 's/^/| /' conftest.$ac_ext >&5
8011
8089
       } && test -s conftest$ac_exeext &&
8012
8090
       $as_test_x conftest$ac_exeext; then
8013
8091
 
8014
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8015
 
}'`
 
8092
lt_aix_libpath_sed='
 
8093
    /Import File Strings/,/^$/ {
 
8094
        /^0/ {
 
8095
            s/^0  *\(.*\)$/\1/
 
8096
            p
 
8097
        }
 
8098
    }'
 
8099
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8016
8100
# Check for a 64-bit object if we didn't find anything.
8017
 
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; }
8018
 
}'`; fi
 
8101
if test -z "$aix_libpath"; then
 
8102
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8103
fi
8019
8104
else
8020
8105
  echo "$as_me: failed program was:" >&5
8021
8106
sed 's/^/| /' conftest.$ac_ext >&5
8069
8154
      # The linker will automatically build a .lib file if we build a DLL.
8070
8155
      old_archive_From_new_cmds='true'
8071
8156
      # FIXME: Should let the user specify the lib program.
8072
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8157
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8073
8158
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8074
8159
      enable_shared_with_static_runtimes=yes
8075
8160
      ;;
8111
8196
      case $cc_basename in
8112
8197
        xlc*)
8113
8198
         output_verbose_link_cmd='echo'
8114
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8199
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8115
8200
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8116
8201
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8117
 
         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}'
 
8202
         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}'
8118
8203
          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}'
8119
8204
          ;;
8120
8205
       *)
8276
8361
      ;;
8277
8362
 
8278
8363
    openbsd*)
8279
 
      hardcode_direct=yes
8280
 
      hardcode_shlibpath_var=no
8281
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8282
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8283
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8284
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8285
 
        export_dynamic_flag_spec='${wl}-E'
 
8364
      if test -f /usr/libexec/ld.so; then
 
8365
        hardcode_direct=yes
 
8366
        hardcode_shlibpath_var=no
 
8367
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8368
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8369
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8370
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8371
          export_dynamic_flag_spec='${wl}-E'
 
8372
        else
 
8373
          case $host_os in
 
8374
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8375
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8376
             hardcode_libdir_flag_spec='-R$libdir'
 
8377
             ;;
 
8378
           *)
 
8379
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8380
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8381
             ;;
 
8382
          esac
 
8383
        fi
8286
8384
      else
8287
 
       case $host_os in
8288
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8289
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290
 
           hardcode_libdir_flag_spec='-R$libdir'
8291
 
           ;;
8292
 
         *)
8293
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8294
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8295
 
           ;;
8296
 
       esac
 
8385
        ld_shlibs=no
8297
8386
      fi
8298
8387
      ;;
8299
8388
 
8352
8441
      case $host_os in
8353
8442
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8354
8443
      *)
8355
 
        # The compiler driver will combine linker options so we
8356
 
        # cannot just pass the convience library names through
8357
 
        # without $wl, iff we do not link with $LD.
8358
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8444
        # The compiler driver will combine and reorder linker options,
 
8445
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8446
        # but is careful enough not to reorder.
8359
8447
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8360
 
        case $wlarc in
8361
 
        '')
8362
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8363
 
        *)
8364
 
          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' ;;
8365
 
        esac ;;
 
8448
        if test "$GCC" = yes; then
 
8449
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8450
        else
 
8451
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8452
        fi
 
8453
        ;;
8366
8454
      esac
8367
8455
      link_all_deplibs=yes
8368
8456
      ;;
8419
8507
      fi
8420
8508
      ;;
8421
8509
 
8422
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8510
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8423
8511
      no_undefined_flag='${wl}-z,text'
8424
8512
      archive_cmds_need_lc=no
8425
8513
      hardcode_shlibpath_var=no
8496
8584
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8497
8585
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8498
8586
      $rm conftest*
8499
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8587
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8500
8588
 
8501
8589
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502
8590
  (eval $ac_compile) 2>&5
8554
8642
version_type=none
8555
8643
dynamic_linker="$host_os ld.so"
8556
8644
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8645
 
8557
8646
if test "$GCC" = yes; then
8558
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8559
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8647
  case $host_os in
 
8648
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8649
    *) lt_awk_arg="/^libraries:/" ;;
 
8650
  esac
 
8651
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8652
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8560
8653
    # if the path contains ";" then we assume it to be the separator
8561
8654
    # otherwise default to the standard path separator (i.e. ":") - it is
8562
8655
    # assumed that no part of a normal pathname contains ";" but that should
8563
8656
    # okay in the real world where ";" in dirpaths is itself problematic.
8564
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8657
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8565
8658
  else
8566
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8659
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8567
8660
  fi
 
8661
  # Ok, now we have the path, separated by spaces, we can step through it
 
8662
  # and add multilib dir if necessary.
 
8663
  lt_tmp_lt_search_path_spec=
 
8664
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8665
  for lt_sys_path in $lt_search_path_spec; do
 
8666
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8667
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8668
    else
 
8669
      test -d "$lt_sys_path" && \
 
8670
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8671
    fi
 
8672
  done
 
8673
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8674
BEGIN {RS=" "; FS="/|\n";} {
 
8675
  lt_foo="";
 
8676
  lt_count=0;
 
8677
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8678
    if ($lt_i != "" && $lt_i != ".") {
 
8679
      if ($lt_i == "..") {
 
8680
        lt_count++;
 
8681
      } else {
 
8682
        if (lt_count == 0) {
 
8683
          lt_foo="/" $lt_i lt_foo;
 
8684
        } else {
 
8685
          lt_count--;
 
8686
        }
 
8687
      }
 
8688
    }
 
8689
  }
 
8690
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8691
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8692
}'`
 
8693
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8568
8694
else
8569
8695
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8570
8696
fi
8724
8850
  shlibpath_overrides_runpath=yes
8725
8851
  shlibpath_var=DYLD_LIBRARY_PATH
8726
8852
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8727
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8728
 
  if test "$GCC" = yes; then
8729
 
    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"`
8730
 
  else
8731
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8732
 
  fi
 
8853
 
 
8854
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8733
8855
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8734
8856
  ;;
8735
8857
 
8783
8905
    shlibpath_overrides_runpath=no
8784
8906
    hardcode_into_libs=yes
8785
8907
    ;;
8786
 
  freebsd*) # from 4.6 on
 
8908
  *) # from 4.6 on, and DragonFly
8787
8909
    shlibpath_overrides_runpath=yes
8788
8910
    hardcode_into_libs=yes
8789
8911
    ;;
8846
8968
  postinstall_cmds='chmod 555 $lib'
8847
8969
  ;;
8848
8970
 
8849
 
interix3*)
 
8971
interix[3-9]*)
8850
8972
  version_type=linux
8851
8973
  need_lib_prefix=no
8852
8974
  need_version=no
8917
9039
 
8918
9040
  # Append ld.so.conf contents to the search path
8919
9041
  if test -f /etc/ld.so.conf; then
8920
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9042
    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' ' '`
8921
9043
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8922
9044
  fi
8923
9045
 
9023
9145
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9024
9146
  ;;
9025
9147
 
 
9148
rdos*)
 
9149
  dynamic_linker=no
 
9150
  ;;
 
9151
 
9026
9152
solaris*)
9027
9153
  version_type=linux
9028
9154
  need_lib_prefix=no
9176
9302
   darwin*)
9177
9303
       if test -n "$STRIP" ; then
9178
9304
         striplib="$STRIP -x"
 
9305
         old_striplib="$STRIP -S"
9179
9306
         { echo "$as_me:$LINENO: result: yes" >&5
9180
9307
echo "${ECHO_T}yes" >&6; }
9181
9308
       else
9762
9889
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9763
9890
  lt_status=$lt_dlunknown
9764
9891
  cat > conftest.$ac_ext <<EOF
9765
 
#line 9765 "configure"
 
9892
#line 9892 "configure"
9766
9893
#include "confdefs.h"
9767
9894
 
9768
9895
#if HAVE_DLFCN_H
9862
9989
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9863
9990
  lt_status=$lt_dlunknown
9864
9991
  cat > conftest.$ac_ext <<EOF
9865
 
#line 9865 "configure"
 
9992
#line 9992 "configure"
9866
9993
#include "confdefs.h"
9867
9994
 
9868
9995
#if HAVE_DLFCN_H
10060
10187
    module_cmds \
10061
10188
    module_expsym_cmds \
10062
10189
    lt_cv_prog_compiler_c_o \
 
10190
    fix_srcfile_path \
10063
10191
    exclude_expsyms \
10064
10192
    include_expsyms; do
10065
10193
 
10104
10232
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10105
10233
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10106
10234
#
10107
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10235
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10108
10236
# Free Software Foundation, Inc.
10109
10237
#
10110
10238
# This file is part of GNU Libtool:
10428
10556
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10429
10557
 
10430
10558
# Fix the shell variable \$srcfile for the compiler.
10431
 
fix_srcfile_path="$fix_srcfile_path"
 
10559
fix_srcfile_path=$lt_fix_srcfile_path
10432
10560
 
10433
10561
# Set to yes if exported symbols are required.
10434
10562
always_export_symbols=$always_export_symbols
10597
10725
objext_CXX=$objext
10598
10726
 
10599
10727
# Code to be used in simple compile tests
10600
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10728
lt_simple_compile_test_code="int some_variable = 0;"
10601
10729
 
10602
10730
# Code to be used in simple link tests
10603
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10731
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10604
10732
 
10605
10733
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10606
10734
 
10616
10744
 
10617
10745
# save warnings/boilerplate of simple test code
10618
10746
ac_outfile=conftest.$ac_objext
10619
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10747
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10620
10748
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10621
10749
_lt_compiler_boilerplate=`cat conftest.err`
10622
10750
$rm conftest*
10623
10751
 
10624
10752
ac_outfile=conftest.$ac_objext
10625
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10753
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10626
10754
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10627
10755
_lt_linker_boilerplate=`cat conftest.err`
10628
10756
$rm conftest*
10881
11009
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10882
11010
        then
10883
11011
          # We have reworked collect2
10884
 
          hardcode_direct_CXX=yes
 
11012
          :
10885
11013
        else
10886
11014
          # We have old collect2
10887
11015
          hardcode_direct_CXX=unsupported
10955
11083
       } && test -s conftest$ac_exeext &&
10956
11084
       $as_test_x conftest$ac_exeext; then
10957
11085
 
10958
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10959
 
}'`
 
11086
lt_aix_libpath_sed='
 
11087
    /Import File Strings/,/^$/ {
 
11088
        /^0/ {
 
11089
            s/^0  *\(.*\)$/\1/
 
11090
            p
 
11091
        }
 
11092
    }'
 
11093
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10960
11094
# Check for a 64-bit object if we didn't find anything.
10961
 
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; }
10962
 
}'`; fi
 
11095
if test -z "$aix_libpath"; then
 
11096
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11097
fi
10963
11098
else
10964
11099
  echo "$as_me: failed program was:" >&5
10965
11100
sed 's/^/| /' conftest.$ac_ext >&5
11015
11150
       } && test -s conftest$ac_exeext &&
11016
11151
       $as_test_x conftest$ac_exeext; then
11017
11152
 
11018
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11019
 
}'`
 
11153
lt_aix_libpath_sed='
 
11154
    /Import File Strings/,/^$/ {
 
11155
        /^0/ {
 
11156
            s/^0  *\(.*\)$/\1/
 
11157
            p
 
11158
        }
 
11159
    }'
 
11160
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11020
11161
# Check for a 64-bit object if we didn't find anything.
11021
 
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; }
11022
 
}'`; fi
 
11162
if test -z "$aix_libpath"; then
 
11163
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11164
fi
11023
11165
else
11024
11166
  echo "$as_me: failed program was:" >&5
11025
11167
sed 's/^/| /' conftest.$ac_ext >&5
11138
11280
      case $cc_basename in
11139
11281
        xlc*)
11140
11282
         output_verbose_link_cmd='echo'
11141
 
          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'
 
11283
          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'
11142
11284
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11143
11285
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11144
 
          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}'
 
11286
          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}'
11145
11287
          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}'
11146
11288
          ;;
11147
11289
       *)
11224
11366
      hardcode_libdir_separator_CXX=:
11225
11367
 
11226
11368
      case $host_cpu in
11227
 
      hppa*64*|ia64*)
11228
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11229
 
        ;;
 
11369
      hppa*64*|ia64*) ;;
11230
11370
      *)
11231
11371
        export_dynamic_flag_spec_CXX='${wl}-E'
11232
11372
        ;;
11294
11434
        ;;
11295
11435
    esac
11296
11436
    ;;
11297
 
  interix3*)
 
11437
  interix[3-9]*)
11298
11438
    hardcode_direct_CXX=no
11299
11439
    hardcode_shlibpath_var_CXX=no
11300
11440
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11414
11554
        # dependencies.
11415
11555
        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'
11416
11556
        ;;
 
11557
      *)
 
11558
        case `$CC -V 2>&1 | sed 5q` in
 
11559
        *Sun\ C*)
 
11560
          # Sun C++ 5.9
 
11561
          no_undefined_flag_CXX=' -zdefs'
 
11562
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11563
          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'
 
11564
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11565
          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'
 
11566
 
 
11567
          # Not sure whether something based on
 
11568
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11569
          # would be better.
 
11570
          output_verbose_link_cmd='echo'
 
11571
 
 
11572
          # Archives containing C++ object files must be created using
 
11573
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11574
          # necessary to make sure instantiated templates are included
 
11575
          # in the archive.
 
11576
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11577
          ;;
 
11578
        esac
 
11579
        ;;
11417
11580
    esac
11418
11581
    ;;
11419
11582
  lynxos*)
11452
11615
    ld_shlibs_CXX=no
11453
11616
    ;;
11454
11617
  openbsd*)
11455
 
    hardcode_direct_CXX=yes
11456
 
    hardcode_shlibpath_var_CXX=no
11457
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11458
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11459
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11461
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11462
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11618
    if test -f /usr/libexec/ld.so; then
 
11619
      hardcode_direct_CXX=yes
 
11620
      hardcode_shlibpath_var_CXX=no
 
11621
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11622
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11623
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11624
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11625
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11626
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11627
      fi
 
11628
      output_verbose_link_cmd='echo'
 
11629
    else
 
11630
      ld_shlibs_CXX=no
11463
11631
    fi
11464
 
    output_verbose_link_cmd='echo'
11465
11632
    ;;
11466
11633
  osf3*)
11467
11634
    case $cc_basename in
11623
11790
        case $host_os in
11624
11791
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11625
11792
          *)
11626
 
            # The C++ compiler is used as linker so we must use $wl
11627
 
            # flag to pass the commands to the underlying system
11628
 
            # linker. We must also pass each convience library through
11629
 
            # to the system linker between allextract/defaultextract.
11630
 
            # The C++ compiler will combine linker options so we
11631
 
            # cannot just pass the convience library names through
11632
 
            # without $wl.
 
11793
            # The compiler driver will combine and reorder linker options,
 
11794
            # but understands `-z linker_flag'.
11633
11795
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11634
 
            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'
 
11796
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11635
11797
            ;;
11636
11798
        esac
11637
11799
        link_all_deplibs_CXX=yes
11678
11840
          fi
11679
11841
 
11680
11842
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11843
          case $host_os in
 
11844
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11845
          *)
 
11846
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11847
            ;;
 
11848
          esac
11681
11849
        fi
11682
11850
        ;;
11683
11851
    esac
11869
12037
 
11870
12038
# PORTME: override above test on systems where it is broken
11871
12039
case $host_os in
11872
 
interix3*)
 
12040
interix[3-9]*)
11873
12041
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11874
12042
  # hack all around it, let's just trust "g++" to DTRT.
11875
12043
  predep_objects_CXX=
11877
12045
  postdeps_CXX=
11878
12046
  ;;
11879
12047
 
 
12048
linux*)
 
12049
  case `$CC -V 2>&1 | sed 5q` in
 
12050
  *Sun\ C*)
 
12051
    # Sun C++ 5.9
 
12052
    #
 
12053
    # The more standards-conforming stlport4 library is
 
12054
    # incompatible with the Cstd library. Avoid specifying
 
12055
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12056
    # -library=stlport4 depends on it.
 
12057
    case " $CXX $CXXFLAGS " in
 
12058
    *" -library=stlport4 "*)
 
12059
      solaris_use_stlport4=yes
 
12060
      ;;
 
12061
    esac
 
12062
    if test "$solaris_use_stlport4" != yes; then
 
12063
      postdeps_CXX='-library=Cstd -library=Crun'
 
12064
    fi
 
12065
    ;;
 
12066
  esac
 
12067
  ;;
 
12068
 
11880
12069
solaris*)
11881
12070
  case $cc_basename in
11882
12071
  CC*)
 
12072
    # The more standards-conforming stlport4 library is
 
12073
    # incompatible with the Cstd library. Avoid specifying
 
12074
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12075
    # -library=stlport4 depends on it.
 
12076
    case " $CXX $CXXFLAGS " in
 
12077
    *" -library=stlport4 "*)
 
12078
      solaris_use_stlport4=yes
 
12079
      ;;
 
12080
    esac
 
12081
 
11883
12082
    # Adding this requires a known-good setup of shared libraries for
11884
12083
    # Sun compiler versions before 5.6, else PIC objects from an old
11885
12084
    # archive will be linked into the output, leading to subtle bugs.
11886
 
    postdeps_CXX='-lCstd -lCrun'
 
12085
    if test "$solaris_use_stlport4" != yes; then
 
12086
      postdeps_CXX='-library=Cstd -library=Crun'
 
12087
    fi
11887
12088
    ;;
11888
12089
  esac
11889
12090
  ;;
11920
12121
      # like `-m68040'.
11921
12122
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11922
12123
      ;;
11923
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12124
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11924
12125
      # PIC is the default for these OSes.
11925
12126
      ;;
11926
 
    mingw* | os2* | pw32*)
 
12127
    mingw* | cygwin* | os2* | pw32*)
11927
12128
      # This hack is so that the source file can tell whether it is being
11928
12129
      # built for inclusion in a dll (and should export symbols for example).
 
12130
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12131
      # (--disable-auto-import) libraries
11929
12132
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11930
12133
      ;;
11931
12134
    darwin* | rhapsody*)
11937
12140
      # DJGPP does not support shared libraries at all
11938
12141
      lt_prog_compiler_pic_CXX=
11939
12142
      ;;
11940
 
    interix3*)
 
12143
    interix[3-9]*)
11941
12144
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11942
12145
      # Instead, we relocate shared libraries at runtime.
11943
12146
      ;;
12073
12276
            lt_prog_compiler_static_CXX='-non_shared'
12074
12277
            ;;
12075
12278
          *)
 
12279
            case `$CC -V 2>&1 | sed 5q` in
 
12280
            *Sun\ C*)
 
12281
              # Sun C++ 5.9
 
12282
              lt_prog_compiler_pic_CXX='-KPIC'
 
12283
              lt_prog_compiler_static_CXX='-Bstatic'
 
12284
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12285
              ;;
 
12286
            esac
12076
12287
            ;;
12077
12288
        esac
12078
12289
        ;;
12187
12398
else
12188
12399
  lt_prog_compiler_pic_works_CXX=no
12189
12400
  ac_outfile=conftest.$ac_objext
12190
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12401
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12191
12402
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12192
12403
   # Insert the option either (1) after the last *FLAGS variable, or
12193
12404
   # (2) before a word containing "conftest.", or (3) at the end.
12198
12409
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12199
12410
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12200
12411
   -e 's:$: $lt_compiler_flag:'`
12201
 
   (eval echo "\"\$as_me:12201: $lt_compile\"" >&5)
 
12412
   (eval echo "\"\$as_me:12412: $lt_compile\"" >&5)
12202
12413
   (eval "$lt_compile" 2>conftest.err)
12203
12414
   ac_status=$?
12204
12415
   cat conftest.err >&5
12205
 
   echo "$as_me:12205: \$? = $ac_status" >&5
 
12416
   echo "$as_me:12416: \$? = $ac_status" >&5
12206
12417
   if (exit $ac_status) && test -s "$ac_outfile"; then
12207
12418
     # The compiler can only warn and ignore the option if not recognized
12208
12419
     # So say no if there are warnings other than the usual output.
12251
12462
  lt_prog_compiler_static_works_CXX=no
12252
12463
   save_LDFLAGS="$LDFLAGS"
12253
12464
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12254
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12465
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12255
12466
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12256
12467
     # The linker can only warn and ignore the option if not recognized
12257
12468
     # So say no if there are warnings
12291
12502
   mkdir conftest
12292
12503
   cd conftest
12293
12504
   mkdir out
12294
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12505
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12295
12506
 
12296
12507
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12297
12508
   # Insert the option either (1) after the last *FLAGS variable, or
12302
12513
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12303
12514
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12304
12515
   -e 's:$: $lt_compiler_flag:'`
12305
 
   (eval echo "\"\$as_me:12305: $lt_compile\"" >&5)
 
12516
   (eval echo "\"\$as_me:12516: $lt_compile\"" >&5)
12306
12517
   (eval "$lt_compile" 2>out/conftest.err)
12307
12518
   ac_status=$?
12308
12519
   cat out/conftest.err >&5
12309
 
   echo "$as_me:12309: \$? = $ac_status" >&5
 
12520
   echo "$as_me:12520: \$? = $ac_status" >&5
12310
12521
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12311
12522
   then
12312
12523
     # The compiler can only warn and ignore the option if not recognized
12372
12583
    export_symbols_cmds_CXX="$ltdll_cmds"
12373
12584
  ;;
12374
12585
  cygwin* | mingw*)
12375
 
    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'
 
12586
    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'
12376
12587
  ;;
12377
12588
  linux* | k*bsd*-gnu)
12378
12589
    link_all_deplibs_CXX=no
12406
12617
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12407
12618
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12408
12619
      $rm conftest*
12409
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12620
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12410
12621
 
12411
12622
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412
12623
  (eval $ac_compile) 2>&5
12464
12675
version_type=none
12465
12676
dynamic_linker="$host_os ld.so"
12466
12677
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12467
 
if test "$GCC" = yes; then
12468
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12469
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12470
 
    # if the path contains ";" then we assume it to be the separator
12471
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12472
 
    # assumed that no part of a normal pathname contains ";" but that should
12473
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12474
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12475
 
  else
12476
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12477
 
  fi
12478
 
else
12479
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12480
 
fi
 
12678
 
12481
12679
need_lib_prefix=unknown
12482
12680
hardcode_into_libs=no
12483
12681
 
12634
12832
  shlibpath_overrides_runpath=yes
12635
12833
  shlibpath_var=DYLD_LIBRARY_PATH
12636
12834
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12637
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12638
 
  if test "$GCC" = yes; then
12639
 
    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"`
12640
 
  else
12641
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12642
 
  fi
 
12835
 
12643
12836
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12644
12837
  ;;
12645
12838
 
12693
12886
    shlibpath_overrides_runpath=no
12694
12887
    hardcode_into_libs=yes
12695
12888
    ;;
12696
 
  freebsd*) # from 4.6 on
 
12889
  *) # from 4.6 on, and DragonFly
12697
12890
    shlibpath_overrides_runpath=yes
12698
12891
    hardcode_into_libs=yes
12699
12892
    ;;
12756
12949
  postinstall_cmds='chmod 555 $lib'
12757
12950
  ;;
12758
12951
 
12759
 
interix3*)
 
12952
interix[3-9]*)
12760
12953
  version_type=linux
12761
12954
  need_lib_prefix=no
12762
12955
  need_version=no
12827
13020
 
12828
13021
  # Append ld.so.conf contents to the search path
12829
13022
  if test -f /etc/ld.so.conf; then
12830
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13023
    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' ' '`
12831
13024
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12832
13025
  fi
12833
13026
 
12933
13126
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12934
13127
  ;;
12935
13128
 
 
13129
rdos*)
 
13130
  dynamic_linker=no
 
13131
  ;;
 
13132
 
12936
13133
solaris*)
12937
13134
  version_type=linux
12938
13135
  need_lib_prefix=no
13127
13324
    module_cmds_CXX \
13128
13325
    module_expsym_cmds_CXX \
13129
13326
    lt_cv_prog_compiler_c_o_CXX \
 
13327
    fix_srcfile_path_CXX \
13130
13328
    exclude_expsyms_CXX \
13131
13329
    include_expsyms_CXX; do
13132
13330
 
13447
13645
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13448
13646
 
13449
13647
# Fix the shell variable \$srcfile for the compiler.
13450
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13648
fix_srcfile_path=$lt_fix_srcfile_path
13451
13649
 
13452
13650
# Set to yes if exported symbols are required.
13453
13651
always_export_symbols=$always_export_symbols_CXX
13538
13736
objext_F77=$objext
13539
13737
 
13540
13738
# Code to be used in simple compile tests
13541
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13739
lt_simple_compile_test_code="\
 
13740
      subroutine t
 
13741
      return
 
13742
      end
 
13743
"
13542
13744
 
13543
13745
# Code to be used in simple link tests
13544
 
lt_simple_link_test_code="      program t\n      end\n"
 
13746
lt_simple_link_test_code="\
 
13747
      program t
 
13748
      end
 
13749
"
13545
13750
 
13546
13751
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13547
13752
 
13557
13762
 
13558
13763
# save warnings/boilerplate of simple test code
13559
13764
ac_outfile=conftest.$ac_objext
13560
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13765
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13561
13766
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13562
13767
_lt_compiler_boilerplate=`cat conftest.err`
13563
13768
$rm conftest*
13564
13769
 
13565
13770
ac_outfile=conftest.$ac_objext
13566
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13771
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13567
13772
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13568
13773
_lt_linker_boilerplate=`cat conftest.err`
13569
13774
$rm conftest*
13650
13855
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13651
13856
      ;;
13652
13857
 
13653
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13858
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13654
13859
      # PIC is the default for these OSes.
13655
13860
      ;;
13656
13861
 
13657
 
    mingw* | pw32* | os2*)
 
13862
    mingw* | cygwin* | pw32* | os2*)
13658
13863
      # This hack is so that the source file can tell whether it is being
13659
13864
      # built for inclusion in a dll (and should export symbols for example).
 
13865
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13866
      # (--disable-auto-import) libraries
13660
13867
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13661
13868
      ;;
13662
13869
 
13666
13873
      lt_prog_compiler_pic_F77='-fno-common'
13667
13874
      ;;
13668
13875
 
13669
 
    interix3*)
 
13876
    interix[3-9]*)
13670
13877
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13671
13878
      # Instead, we relocate shared libraries at runtime.
13672
13879
      ;;
13724
13931
       esac
13725
13932
       ;;
13726
13933
 
13727
 
    mingw* | pw32* | os2*)
 
13934
    mingw* | cygwin* | pw32* | os2*)
13728
13935
      # This hack is so that the source file can tell whether it is being
13729
13936
      # built for inclusion in a dll (and should export symbols for example).
13730
13937
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13776
13983
        # All Alpha code is PIC.
13777
13984
        lt_prog_compiler_static_F77='-non_shared'
13778
13985
        ;;
 
13986
      *)
 
13987
        case `$CC -V 2>&1 | sed 5q` in
 
13988
        *Sun\ C*)
 
13989
          # Sun C 5.9
 
13990
          lt_prog_compiler_pic_F77='-KPIC'
 
13991
          lt_prog_compiler_static_F77='-Bstatic'
 
13992
          lt_prog_compiler_wl_F77='-Wl,'
 
13993
          ;;
 
13994
        *Sun\ F*)
 
13995
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
13996
          lt_prog_compiler_pic_F77='-KPIC'
 
13997
          lt_prog_compiler_static_F77='-Bstatic'
 
13998
          lt_prog_compiler_wl_F77=''
 
13999
          ;;
 
14000
        esac
 
14001
        ;;
13779
14002
      esac
13780
14003
      ;;
13781
14004
 
13785
14008
      lt_prog_compiler_static_F77='-non_shared'
13786
14009
      ;;
13787
14010
 
 
14011
    rdos*)
 
14012
      lt_prog_compiler_static_F77='-non_shared'
 
14013
      ;;
 
14014
 
13788
14015
    solaris*)
13789
14016
      lt_prog_compiler_pic_F77='-KPIC'
13790
14017
      lt_prog_compiler_static_F77='-Bstatic'
13852
14079
else
13853
14080
  lt_prog_compiler_pic_works_F77=no
13854
14081
  ac_outfile=conftest.$ac_objext
13855
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14082
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13856
14083
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13857
14084
   # Insert the option either (1) after the last *FLAGS variable, or
13858
14085
   # (2) before a word containing "conftest.", or (3) at the end.
13863
14090
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13864
14091
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13865
14092
   -e 's:$: $lt_compiler_flag:'`
13866
 
   (eval echo "\"\$as_me:13866: $lt_compile\"" >&5)
 
14093
   (eval echo "\"\$as_me:14093: $lt_compile\"" >&5)
13867
14094
   (eval "$lt_compile" 2>conftest.err)
13868
14095
   ac_status=$?
13869
14096
   cat conftest.err >&5
13870
 
   echo "$as_me:13870: \$? = $ac_status" >&5
 
14097
   echo "$as_me:14097: \$? = $ac_status" >&5
13871
14098
   if (exit $ac_status) && test -s "$ac_outfile"; then
13872
14099
     # The compiler can only warn and ignore the option if not recognized
13873
14100
     # So say no if there are warnings other than the usual output.
13916
14143
  lt_prog_compiler_static_works_F77=no
13917
14144
   save_LDFLAGS="$LDFLAGS"
13918
14145
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13919
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14146
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13920
14147
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13921
14148
     # The linker can only warn and ignore the option if not recognized
13922
14149
     # So say no if there are warnings
13956
14183
   mkdir conftest
13957
14184
   cd conftest
13958
14185
   mkdir out
13959
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14186
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13960
14187
 
13961
14188
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13962
14189
   # Insert the option either (1) after the last *FLAGS variable, or
13967
14194
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13968
14195
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13969
14196
   -e 's:$: $lt_compiler_flag:'`
13970
 
   (eval echo "\"\$as_me:13970: $lt_compile\"" >&5)
 
14197
   (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
13971
14198
   (eval "$lt_compile" 2>out/conftest.err)
13972
14199
   ac_status=$?
13973
14200
   cat out/conftest.err >&5
13974
 
   echo "$as_me:13974: \$? = $ac_status" >&5
 
14201
   echo "$as_me:14201: \$? = $ac_status" >&5
13975
14202
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13976
14203
   then
13977
14204
     # The compiler can only warn and ignore the option if not recognized
14163
14390
      allow_undefined_flag_F77=unsupported
14164
14391
      always_export_symbols_F77=no
14165
14392
      enable_shared_with_static_runtimes_F77=yes
14166
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14393
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14167
14394
 
14168
14395
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14169
14396
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14181
14408
      fi
14182
14409
      ;;
14183
14410
 
14184
 
    interix3*)
 
14411
    interix[3-9]*)
14185
14412
      hardcode_direct_F77=no
14186
14413
      hardcode_shlibpath_var_F77=no
14187
14414
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14196
14423
      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'
14197
14424
      ;;
14198
14425
 
14199
 
    linux* | k*bsd*-gnu)
 
14426
    gnu* | linux* | k*bsd*-gnu)
14200
14427
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14201
14428
        tmp_addflag=
14202
14429
        case $cc_basename,$host_cpu in
14214
14441
        ifc* | ifort*)                  # Intel Fortran compiler
14215
14442
          tmp_addflag=' -nofor_main' ;;
14216
14443
        esac
14217
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14444
        case `$CC -V 2>&1 | sed 5q` in
 
14445
        *Sun\ C*)                       # Sun C 5.9
 
14446
          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'
 
14447
          tmp_sharedflag='-G' ;;
 
14448
        *Sun\ F*)                       # Sun Fortran 8.3
 
14449
          tmp_sharedflag='-G' ;;
 
14450
        *)
 
14451
          tmp_sharedflag='-shared' ;;
 
14452
        esac
 
14453
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218
14454
 
14219
14455
        if test $supports_anon_versioning = yes; then
14220
14456
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14221
14457
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14222
14458
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14223
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14459
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14224
14460
        fi
14225
14461
        link_all_deplibs_F77=no
14226
14462
      else
14380
14616
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14381
14617
          then
14382
14618
          # We have reworked collect2
14383
 
          hardcode_direct_F77=yes
 
14619
          :
14384
14620
          else
14385
14621
          # We have old collect2
14386
14622
          hardcode_direct_F77=unsupported
14444
14680
       } && test -s conftest$ac_exeext &&
14445
14681
       $as_test_x conftest$ac_exeext; then
14446
14682
 
14447
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14448
 
}'`
 
14683
lt_aix_libpath_sed='
 
14684
    /Import File Strings/,/^$/ {
 
14685
        /^0/ {
 
14686
            s/^0  *\(.*\)$/\1/
 
14687
            p
 
14688
        }
 
14689
    }'
 
14690
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14449
14691
# Check for a 64-bit object if we didn't find anything.
14450
 
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; }
14451
 
}'`; fi
 
14692
if test -z "$aix_libpath"; then
 
14693
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14694
fi
14452
14695
else
14453
14696
  echo "$as_me: failed program was:" >&5
14454
14697
sed 's/^/| /' conftest.$ac_ext >&5
14493
14736
       } && test -s conftest$ac_exeext &&
14494
14737
       $as_test_x conftest$ac_exeext; then
14495
14738
 
14496
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14497
 
}'`
 
14739
lt_aix_libpath_sed='
 
14740
    /Import File Strings/,/^$/ {
 
14741
        /^0/ {
 
14742
            s/^0  *\(.*\)$/\1/
 
14743
            p
 
14744
        }
 
14745
    }'
 
14746
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14498
14747
# Check for a 64-bit object if we didn't find anything.
14499
 
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; }
14500
 
}'`; fi
 
14748
if test -z "$aix_libpath"; then
 
14749
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14750
fi
14501
14751
else
14502
14752
  echo "$as_me: failed program was:" >&5
14503
14753
sed 's/^/| /' conftest.$ac_ext >&5
14551
14801
      # The linker will automatically build a .lib file if we build a DLL.
14552
14802
      old_archive_From_new_cmds_F77='true'
14553
14803
      # FIXME: Should let the user specify the lib program.
14554
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14804
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14555
14805
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14556
14806
      enable_shared_with_static_runtimes_F77=yes
14557
14807
      ;;
14593
14843
      case $cc_basename in
14594
14844
        xlc*)
14595
14845
         output_verbose_link_cmd='echo'
14596
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14846
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14597
14847
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14598
14848
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14599
 
         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}'
 
14849
         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}'
14600
14850
          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}'
14601
14851
          ;;
14602
14852
       *)
14758
15008
      ;;
14759
15009
 
14760
15010
    openbsd*)
14761
 
      hardcode_direct_F77=yes
14762
 
      hardcode_shlibpath_var_F77=no
14763
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14764
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14765
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14766
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14767
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15011
      if test -f /usr/libexec/ld.so; then
 
15012
        hardcode_direct_F77=yes
 
15013
        hardcode_shlibpath_var_F77=no
 
15014
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15015
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15016
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15017
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15018
          export_dynamic_flag_spec_F77='${wl}-E'
 
15019
        else
 
15020
          case $host_os in
 
15021
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15022
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15023
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15024
             ;;
 
15025
           *)
 
15026
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15027
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15028
             ;;
 
15029
          esac
 
15030
        fi
14768
15031
      else
14769
 
       case $host_os in
14770
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14771
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14772
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14773
 
           ;;
14774
 
         *)
14775
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14776
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14777
 
           ;;
14778
 
       esac
 
15032
        ld_shlibs_F77=no
14779
15033
      fi
14780
15034
      ;;
14781
15035
 
14834
15088
      case $host_os in
14835
15089
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14836
15090
      *)
14837
 
        # The compiler driver will combine linker options so we
14838
 
        # cannot just pass the convience library names through
14839
 
        # without $wl, iff we do not link with $LD.
14840
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15091
        # The compiler driver will combine and reorder linker options,
 
15092
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15093
        # but is careful enough not to reorder.
14841
15094
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14842
 
        case $wlarc in
14843
 
        '')
14844
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14845
 
        *)
14846
 
          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' ;;
14847
 
        esac ;;
 
15095
        if test "$GCC" = yes; then
 
15096
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15097
        else
 
15098
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15099
        fi
 
15100
        ;;
14848
15101
      esac
14849
15102
      link_all_deplibs_F77=yes
14850
15103
      ;;
14901
15154
      fi
14902
15155
      ;;
14903
15156
 
14904
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15157
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14905
15158
      no_undefined_flag_F77='${wl}-z,text'
14906
15159
      archive_cmds_need_lc_F77=no
14907
15160
      hardcode_shlibpath_var_F77=no
14978
15231
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14979
15232
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14980
15233
      $rm conftest*
14981
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15234
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14982
15235
 
14983
15236
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984
15237
  (eval $ac_compile) 2>&5
15036
15289
version_type=none
15037
15290
dynamic_linker="$host_os ld.so"
15038
15291
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15039
 
if test "$GCC" = yes; then
15040
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15041
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15042
 
    # if the path contains ";" then we assume it to be the separator
15043
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15044
 
    # assumed that no part of a normal pathname contains ";" but that should
15045
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15046
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15047
 
  else
15048
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15049
 
  fi
15050
 
else
15051
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15052
 
fi
 
15292
 
15053
15293
need_lib_prefix=unknown
15054
15294
hardcode_into_libs=no
15055
15295
 
15206
15446
  shlibpath_overrides_runpath=yes
15207
15447
  shlibpath_var=DYLD_LIBRARY_PATH
15208
15448
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15209
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15210
 
  if test "$GCC" = yes; then
15211
 
    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"`
15212
 
  else
15213
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15214
 
  fi
 
15449
 
15215
15450
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15216
15451
  ;;
15217
15452
 
15265
15500
    shlibpath_overrides_runpath=no
15266
15501
    hardcode_into_libs=yes
15267
15502
    ;;
15268
 
  freebsd*) # from 4.6 on
 
15503
  *) # from 4.6 on, and DragonFly
15269
15504
    shlibpath_overrides_runpath=yes
15270
15505
    hardcode_into_libs=yes
15271
15506
    ;;
15328
15563
  postinstall_cmds='chmod 555 $lib'
15329
15564
  ;;
15330
15565
 
15331
 
interix3*)
 
15566
interix[3-9]*)
15332
15567
  version_type=linux
15333
15568
  need_lib_prefix=no
15334
15569
  need_version=no
15399
15634
 
15400
15635
  # Append ld.so.conf contents to the search path
15401
15636
  if test -f /etc/ld.so.conf; then
15402
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15637
    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' ' '`
15403
15638
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15404
15639
  fi
15405
15640
 
15505
15740
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15506
15741
  ;;
15507
15742
 
 
15743
rdos*)
 
15744
  dynamic_linker=no
 
15745
  ;;
 
15746
 
15508
15747
solaris*)
15509
15748
  version_type=linux
15510
15749
  need_lib_prefix=no
15699
15938
    module_cmds_F77 \
15700
15939
    module_expsym_cmds_F77 \
15701
15940
    lt_cv_prog_compiler_c_o_F77 \
 
15941
    fix_srcfile_path_F77 \
15702
15942
    exclude_expsyms_F77 \
15703
15943
    include_expsyms_F77; do
15704
15944
 
16019
16259
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16020
16260
 
16021
16261
# Fix the shell variable \$srcfile for the compiler.
16022
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16262
fix_srcfile_path=$lt_fix_srcfile_path
16023
16263
 
16024
16264
# Set to yes if exported symbols are required.
16025
16265
always_export_symbols=$always_export_symbols_F77
16077
16317
objext_GCJ=$objext
16078
16318
 
16079
16319
# Code to be used in simple compile tests
16080
 
lt_simple_compile_test_code="class foo {}\n"
 
16320
lt_simple_compile_test_code="class foo {}"
16081
16321
 
16082
16322
# Code to be used in simple link tests
16083
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16323
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16084
16324
 
16085
16325
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16086
16326
 
16096
16336
 
16097
16337
# save warnings/boilerplate of simple test code
16098
16338
ac_outfile=conftest.$ac_objext
16099
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16339
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16100
16340
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16101
16341
_lt_compiler_boilerplate=`cat conftest.err`
16102
16342
$rm conftest*
16103
16343
 
16104
16344
ac_outfile=conftest.$ac_objext
16105
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16345
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16106
16346
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16107
16347
_lt_linker_boilerplate=`cat conftest.err`
16108
16348
$rm conftest*
16143
16383
else
16144
16384
  lt_cv_prog_compiler_rtti_exceptions=no
16145
16385
  ac_outfile=conftest.$ac_objext
16146
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16386
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16147
16387
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16148
16388
   # Insert the option either (1) after the last *FLAGS variable, or
16149
16389
   # (2) before a word containing "conftest.", or (3) at the end.
16154
16394
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16155
16395
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156
16396
   -e 's:$: $lt_compiler_flag:'`
16157
 
   (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
 
16397
   (eval echo "\"\$as_me:16397: $lt_compile\"" >&5)
16158
16398
   (eval "$lt_compile" 2>conftest.err)
16159
16399
   ac_status=$?
16160
16400
   cat conftest.err >&5
16161
 
   echo "$as_me:16161: \$? = $ac_status" >&5
 
16401
   echo "$as_me:16401: \$? = $ac_status" >&5
16162
16402
   if (exit $ac_status) && test -s "$ac_outfile"; then
16163
16403
     # The compiler can only warn and ignore the option if not recognized
16164
16404
     # So say no if there are warnings other than the usual output.
16209
16449
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16210
16450
      ;;
16211
16451
 
16212
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16452
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16213
16453
      # PIC is the default for these OSes.
16214
16454
      ;;
16215
16455
 
16216
 
    mingw* | pw32* | os2*)
 
16456
    mingw* | cygwin* | pw32* | os2*)
16217
16457
      # This hack is so that the source file can tell whether it is being
16218
16458
      # built for inclusion in a dll (and should export symbols for example).
 
16459
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16460
      # (--disable-auto-import) libraries
16219
16461
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16220
16462
      ;;
16221
16463
 
16225
16467
      lt_prog_compiler_pic_GCJ='-fno-common'
16226
16468
      ;;
16227
16469
 
16228
 
    interix3*)
 
16470
    interix[3-9]*)
16229
16471
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16230
16472
      # Instead, we relocate shared libraries at runtime.
16231
16473
      ;;
16283
16525
       esac
16284
16526
       ;;
16285
16527
 
16286
 
    mingw* | pw32* | os2*)
 
16528
    mingw* | cygwin* | pw32* | os2*)
16287
16529
      # This hack is so that the source file can tell whether it is being
16288
16530
      # built for inclusion in a dll (and should export symbols for example).
16289
16531
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16335
16577
        # All Alpha code is PIC.
16336
16578
        lt_prog_compiler_static_GCJ='-non_shared'
16337
16579
        ;;
 
16580
      *)
 
16581
        case `$CC -V 2>&1 | sed 5q` in
 
16582
        *Sun\ C*)
 
16583
          # Sun C 5.9
 
16584
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16585
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16586
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16587
          ;;
 
16588
        *Sun\ F*)
 
16589
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16590
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16591
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16592
          lt_prog_compiler_wl_GCJ=''
 
16593
          ;;
 
16594
        esac
 
16595
        ;;
16338
16596
      esac
16339
16597
      ;;
16340
16598
 
16344
16602
      lt_prog_compiler_static_GCJ='-non_shared'
16345
16603
      ;;
16346
16604
 
 
16605
    rdos*)
 
16606
      lt_prog_compiler_static_GCJ='-non_shared'
 
16607
      ;;
 
16608
 
16347
16609
    solaris*)
16348
16610
      lt_prog_compiler_pic_GCJ='-KPIC'
16349
16611
      lt_prog_compiler_static_GCJ='-Bstatic'
16411
16673
else
16412
16674
  lt_prog_compiler_pic_works_GCJ=no
16413
16675
  ac_outfile=conftest.$ac_objext
16414
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16676
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16415
16677
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16416
16678
   # Insert the option either (1) after the last *FLAGS variable, or
16417
16679
   # (2) before a word containing "conftest.", or (3) at the end.
16422
16684
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16423
16685
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424
16686
   -e 's:$: $lt_compiler_flag:'`
16425
 
   (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
 
16687
   (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
16426
16688
   (eval "$lt_compile" 2>conftest.err)
16427
16689
   ac_status=$?
16428
16690
   cat conftest.err >&5
16429
 
   echo "$as_me:16429: \$? = $ac_status" >&5
 
16691
   echo "$as_me:16691: \$? = $ac_status" >&5
16430
16692
   if (exit $ac_status) && test -s "$ac_outfile"; then
16431
16693
     # The compiler can only warn and ignore the option if not recognized
16432
16694
     # So say no if there are warnings other than the usual output.
16475
16737
  lt_prog_compiler_static_works_GCJ=no
16476
16738
   save_LDFLAGS="$LDFLAGS"
16477
16739
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16478
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16740
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16479
16741
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16480
16742
     # The linker can only warn and ignore the option if not recognized
16481
16743
     # So say no if there are warnings
16515
16777
   mkdir conftest
16516
16778
   cd conftest
16517
16779
   mkdir out
16518
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16780
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16519
16781
 
16520
16782
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16521
16783
   # Insert the option either (1) after the last *FLAGS variable, or
16526
16788
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16527
16789
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16528
16790
   -e 's:$: $lt_compiler_flag:'`
16529
 
   (eval echo "\"\$as_me:16529: $lt_compile\"" >&5)
 
16791
   (eval echo "\"\$as_me:16791: $lt_compile\"" >&5)
16530
16792
   (eval "$lt_compile" 2>out/conftest.err)
16531
16793
   ac_status=$?
16532
16794
   cat out/conftest.err >&5
16533
 
   echo "$as_me:16533: \$? = $ac_status" >&5
 
16795
   echo "$as_me:16795: \$? = $ac_status" >&5
16534
16796
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16535
16797
   then
16536
16798
     # The compiler can only warn and ignore the option if not recognized
16722
16984
      allow_undefined_flag_GCJ=unsupported
16723
16985
      always_export_symbols_GCJ=no
16724
16986
      enable_shared_with_static_runtimes_GCJ=yes
16725
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16987
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16726
16988
 
16727
16989
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16728
16990
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16740
17002
      fi
16741
17003
      ;;
16742
17004
 
16743
 
    interix3*)
 
17005
    interix[3-9]*)
16744
17006
      hardcode_direct_GCJ=no
16745
17007
      hardcode_shlibpath_var_GCJ=no
16746
17008
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16755
17017
      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'
16756
17018
      ;;
16757
17019
 
16758
 
    linux* | k*bsd*-gnu)
 
17020
    gnu* | linux* | k*bsd*-gnu)
16759
17021
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16760
17022
        tmp_addflag=
16761
17023
        case $cc_basename,$host_cpu in
16773
17035
        ifc* | ifort*)                  # Intel Fortran compiler
16774
17036
          tmp_addflag=' -nofor_main' ;;
16775
17037
        esac
16776
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17038
        case `$CC -V 2>&1 | sed 5q` in
 
17039
        *Sun\ C*)                       # Sun C 5.9
 
17040
          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'
 
17041
          tmp_sharedflag='-G' ;;
 
17042
        *Sun\ F*)                       # Sun Fortran 8.3
 
17043
          tmp_sharedflag='-G' ;;
 
17044
        *)
 
17045
          tmp_sharedflag='-shared' ;;
 
17046
        esac
 
17047
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16777
17048
 
16778
17049
        if test $supports_anon_versioning = yes; then
16779
17050
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16780
17051
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16781
17052
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16782
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17053
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16783
17054
        fi
16784
17055
        link_all_deplibs_GCJ=no
16785
17056
      else
16939
17210
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16940
17211
          then
16941
17212
          # We have reworked collect2
16942
 
          hardcode_direct_GCJ=yes
 
17213
          :
16943
17214
          else
16944
17215
          # We have old collect2
16945
17216
          hardcode_direct_GCJ=unsupported
17013
17284
       } && test -s conftest$ac_exeext &&
17014
17285
       $as_test_x conftest$ac_exeext; then
17015
17286
 
17016
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17017
 
}'`
 
17287
lt_aix_libpath_sed='
 
17288
    /Import File Strings/,/^$/ {
 
17289
        /^0/ {
 
17290
            s/^0  *\(.*\)$/\1/
 
17291
            p
 
17292
        }
 
17293
    }'
 
17294
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17018
17295
# Check for a 64-bit object if we didn't find anything.
17019
 
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; }
17020
 
}'`; fi
 
17296
if test -z "$aix_libpath"; then
 
17297
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17298
fi
17021
17299
else
17022
17300
  echo "$as_me: failed program was:" >&5
17023
17301
sed 's/^/| /' conftest.$ac_ext >&5
17072
17350
       } && test -s conftest$ac_exeext &&
17073
17351
       $as_test_x conftest$ac_exeext; then
17074
17352
 
17075
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17076
 
}'`
 
17353
lt_aix_libpath_sed='
 
17354
    /Import File Strings/,/^$/ {
 
17355
        /^0/ {
 
17356
            s/^0  *\(.*\)$/\1/
 
17357
            p
 
17358
        }
 
17359
    }'
 
17360
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17077
17361
# Check for a 64-bit object if we didn't find anything.
17078
 
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; }
17079
 
}'`; fi
 
17362
if test -z "$aix_libpath"; then
 
17363
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17364
fi
17080
17365
else
17081
17366
  echo "$as_me: failed program was:" >&5
17082
17367
sed 's/^/| /' conftest.$ac_ext >&5
17130
17415
      # The linker will automatically build a .lib file if we build a DLL.
17131
17416
      old_archive_From_new_cmds_GCJ='true'
17132
17417
      # FIXME: Should let the user specify the lib program.
17133
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17418
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17134
17419
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17135
17420
      enable_shared_with_static_runtimes_GCJ=yes
17136
17421
      ;;
17172
17457
      case $cc_basename in
17173
17458
        xlc*)
17174
17459
         output_verbose_link_cmd='echo'
17175
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17460
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17176
17461
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17177
17462
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17178
 
         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}'
 
17463
         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}'
17179
17464
          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}'
17180
17465
          ;;
17181
17466
       *)
17337
17622
      ;;
17338
17623
 
17339
17624
    openbsd*)
17340
 
      hardcode_direct_GCJ=yes
17341
 
      hardcode_shlibpath_var_GCJ=no
17342
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17343
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17344
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17345
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17346
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17625
      if test -f /usr/libexec/ld.so; then
 
17626
        hardcode_direct_GCJ=yes
 
17627
        hardcode_shlibpath_var_GCJ=no
 
17628
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17629
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17630
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17631
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17632
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17633
        else
 
17634
          case $host_os in
 
17635
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17636
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17637
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17638
             ;;
 
17639
           *)
 
17640
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17641
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17642
             ;;
 
17643
          esac
 
17644
        fi
17347
17645
      else
17348
 
       case $host_os in
17349
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17350
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17351
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17352
 
           ;;
17353
 
         *)
17354
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17355
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17356
 
           ;;
17357
 
       esac
 
17646
        ld_shlibs_GCJ=no
17358
17647
      fi
17359
17648
      ;;
17360
17649
 
17413
17702
      case $host_os in
17414
17703
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17415
17704
      *)
17416
 
        # The compiler driver will combine linker options so we
17417
 
        # cannot just pass the convience library names through
17418
 
        # without $wl, iff we do not link with $LD.
17419
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17705
        # The compiler driver will combine and reorder linker options,
 
17706
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17707
        # but is careful enough not to reorder.
17420
17708
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17421
 
        case $wlarc in
17422
 
        '')
17423
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17424
 
        *)
17425
 
          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' ;;
17426
 
        esac ;;
 
17709
        if test "$GCC" = yes; then
 
17710
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17711
        else
 
17712
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17713
        fi
 
17714
        ;;
17427
17715
      esac
17428
17716
      link_all_deplibs_GCJ=yes
17429
17717
      ;;
17480
17768
      fi
17481
17769
      ;;
17482
17770
 
17483
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17771
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17484
17772
      no_undefined_flag_GCJ='${wl}-z,text'
17485
17773
      archive_cmds_need_lc_GCJ=no
17486
17774
      hardcode_shlibpath_var_GCJ=no
17557
17845
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17558
17846
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17559
17847
      $rm conftest*
17560
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17848
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17561
17849
 
17562
17850
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563
17851
  (eval $ac_compile) 2>&5
17615
17903
version_type=none
17616
17904
dynamic_linker="$host_os ld.so"
17617
17905
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17618
 
if test "$GCC" = yes; then
17619
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17620
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17621
 
    # if the path contains ";" then we assume it to be the separator
17622
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17623
 
    # assumed that no part of a normal pathname contains ";" but that should
17624
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17625
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17626
 
  else
17627
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17628
 
  fi
17629
 
else
17630
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17631
 
fi
 
17906
 
17632
17907
need_lib_prefix=unknown
17633
17908
hardcode_into_libs=no
17634
17909
 
17785
18060
  shlibpath_overrides_runpath=yes
17786
18061
  shlibpath_var=DYLD_LIBRARY_PATH
17787
18062
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17788
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17789
 
  if test "$GCC" = yes; then
17790
 
    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"`
17791
 
  else
17792
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17793
 
  fi
 
18063
 
17794
18064
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17795
18065
  ;;
17796
18066
 
17844
18114
    shlibpath_overrides_runpath=no
17845
18115
    hardcode_into_libs=yes
17846
18116
    ;;
17847
 
  freebsd*) # from 4.6 on
 
18117
  *) # from 4.6 on, and DragonFly
17848
18118
    shlibpath_overrides_runpath=yes
17849
18119
    hardcode_into_libs=yes
17850
18120
    ;;
17907
18177
  postinstall_cmds='chmod 555 $lib'
17908
18178
  ;;
17909
18179
 
17910
 
interix3*)
 
18180
interix[3-9]*)
17911
18181
  version_type=linux
17912
18182
  need_lib_prefix=no
17913
18183
  need_version=no
17978
18248
 
17979
18249
  # Append ld.so.conf contents to the search path
17980
18250
  if test -f /etc/ld.so.conf; then
17981
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18251
    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' ' '`
17982
18252
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17983
18253
  fi
17984
18254
 
18084
18354
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18085
18355
  ;;
18086
18356
 
 
18357
rdos*)
 
18358
  dynamic_linker=no
 
18359
  ;;
 
18360
 
18087
18361
solaris*)
18088
18362
  version_type=linux
18089
18363
  need_lib_prefix=no
18278
18552
    module_cmds_GCJ \
18279
18553
    module_expsym_cmds_GCJ \
18280
18554
    lt_cv_prog_compiler_c_o_GCJ \
 
18555
    fix_srcfile_path_GCJ \
18281
18556
    exclude_expsyms_GCJ \
18282
18557
    include_expsyms_GCJ; do
18283
18558
 
18598
18873
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18599
18874
 
18600
18875
# Fix the shell variable \$srcfile for the compiler.
18601
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18876
fix_srcfile_path=$lt_fix_srcfile_path
18602
18877
 
18603
18878
# Set to yes if exported symbols are required.
18604
18879
always_export_symbols=$always_export_symbols_GCJ
18655
18930
objext_RC=$objext
18656
18931
 
18657
18932
# Code to be used in simple compile tests
18658
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18933
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18659
18934
 
18660
18935
# Code to be used in simple link tests
18661
18936
lt_simple_link_test_code="$lt_simple_compile_test_code"
18674
18949
 
18675
18950
# save warnings/boilerplate of simple test code
18676
18951
ac_outfile=conftest.$ac_objext
18677
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18952
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18678
18953
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18679
18954
_lt_compiler_boilerplate=`cat conftest.err`
18680
18955
$rm conftest*
18681
18956
 
18682
18957
ac_outfile=conftest.$ac_objext
18683
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18958
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18684
18959
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18685
18960
_lt_linker_boilerplate=`cat conftest.err`
18686
18961
$rm conftest*
18758
19033
    module_cmds_RC \
18759
19034
    module_expsym_cmds_RC \
18760
19035
    lt_cv_prog_compiler_c_o_RC \
 
19036
    fix_srcfile_path_RC \
18761
19037
    exclude_expsyms_RC \
18762
19038
    include_expsyms_RC; do
18763
19039
 
19078
19354
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19079
19355
 
19080
19356
# Fix the shell variable \$srcfile for the compiler.
19081
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
19357
fix_srcfile_path=$lt_fix_srcfile_path
19082
19358
 
19083
19359
# Set to yes if exported symbols are required.
19084
19360
always_export_symbols=$always_export_symbols_RC
19573
19849
  XFONT_FREETYPE=yes
19574
19850
fi
19575
19851
 
19576
 
 
19577
 
 
19578
 
if test x$XFONT_FREETYPE = xyes; then
 
19852
 if test x$XFONT_FREETYPE = xyes; then
19579
19853
  XFONT_FREETYPE_TRUE=
19580
19854
  XFONT_FREETYPE_FALSE='#'
19581
19855
else
19753
20027
 
19754
20028
        XFONT_FONTFILE=yes
19755
20029
fi
19756
 
 
19757
 
 
19758
 
if test "x$XFONT_TYPE1" = xyes ; then
 
20030
 if test "x$XFONT_TYPE1" = xyes ; then
19759
20031
  XFONT_TYPE1_TRUE=
19760
20032
  XFONT_TYPE1_FALSE='#'
19761
20033
else
19771
20043
  XFONT_SPEEDO=yes
19772
20044
fi
19773
20045
 
19774
 
 
19775
 
 
19776
 
if test "x$XFONT_SPEEDO" = xyes ; then
 
20046
 if test "x$XFONT_SPEEDO" = xyes ; then
19777
20047
  XFONT_SPEEDO_TRUE=
19778
20048
  XFONT_SPEEDO_FALSE='#'
19779
20049
else
19813
20083
  XFONT_BUILTINS=yes
19814
20084
fi
19815
20085
 
19816
 
 
19817
 
 
19818
 
if test "x$XFONT_BUILTINS" = xyes ; then
 
20086
 if test "x$XFONT_BUILTINS" = xyes ; then
19819
20087
  XFONT_BUILTINS_TRUE=
19820
20088
  XFONT_BUILTINS_FALSE='#'
19821
20089
else
19839
20107
  XFONT_PCFFORMAT=yes
19840
20108
fi
19841
20109
 
19842
 
 
19843
 
 
19844
 
if test "x$XFONT_PCFFORMAT" = xyes; then
 
20110
 if test "x$XFONT_PCFFORMAT" = xyes; then
19845
20111
  XFONT_PCFFORMAT_TRUE=
19846
20112
  XFONT_PCFFORMAT_FALSE='#'
19847
20113
else
19865
20131
  XFONT_BDFFORMAT=yes
19866
20132
fi
19867
20133
 
19868
 
 
19869
 
 
19870
 
if test "x$XFONT_BDFFORMAT" = xyes; then
 
20134
 if test "x$XFONT_BDFFORMAT" = xyes; then
19871
20135
  XFONT_BDFFORMAT_TRUE=
19872
20136
  XFONT_BDFFORMAT_FALSE='#'
19873
20137
else
19891
20155
  XFONT_SNFFORMAT=yes
19892
20156
fi
19893
20157
 
19894
 
 
19895
 
 
19896
 
if test "x$XFONT_SNFFORMAT" = xyes; then
 
20158
 if test "x$XFONT_SNFFORMAT" = xyes; then
19897
20159
  XFONT_SNFFORMAT_TRUE=
19898
20160
  XFONT_SNFFORMAT_FALSE='#'
19899
20161
else
19910
20172
        XFONT_BITMAP=yes
19911
20173
fi
19912
20174
 
19913
 
 
19914
 
 
19915
 
if test "x$XFONT_BITMAP" = xyes ; then
 
20175
 if test "x$XFONT_BITMAP" = xyes ; then
19916
20176
  XFONT_BITMAP_TRUE=
19917
20177
  XFONT_BITMAP_FALSE='#'
19918
20178
else
19929
20189
        XFONT_FONTFILE=yes
19930
20190
fi
19931
20191
 
19932
 
 
19933
 
 
19934
 
if test "x$XFONT_FONTFILE" = xyes; then
 
20192
 if test "x$XFONT_FONTFILE" = xyes; then
19935
20193
  XFONT_FONTFILE_TRUE=
19936
20194
  XFONT_FONTFILE_FALSE='#'
19937
20195
else
19973
20231
  XFONT_FONTCACHE=yes
19974
20232
fi
19975
20233
 
19976
 
 
19977
 
 
19978
 
if test "x$XFONT_FONTCACHE" = xyes; then
 
20234
 if test "x$XFONT_FONTCACHE" = xyes; then
19979
20235
  XFONT_FONTCACHE_TRUE=
19980
20236
  XFONT_FONTCACHE_FALSE='#'
19981
20237
else
20080
20336
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
20081
20337
See the pkg-config man page for more details.
20082
20338
 
20083
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20339
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20084
20340
See \`config.log' for more details." >&5
20085
20341
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20086
20342
is in your PATH or set the PKG_CONFIG environment variable to the full
20090
20346
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
20091
20347
See the pkg-config man page for more details.
20092
20348
 
20093
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20349
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20094
20350
See \`config.log' for more details." >&2;}
20095
20351
   { (exit 1); exit 1; }; }
20096
20352
else
20116
20372
  XFONT_FC=yes
20117
20373
fi
20118
20374
 
20119
 
 
20120
 
 
20121
 
if test "x$XFONT_FC" = xyes; then
 
20375
 if test "x$XFONT_FC" = xyes; then
20122
20376
  XFONT_FC_TRUE=
20123
20377
  XFONT_FC_FALSE='#'
20124
20378
else
20368
20622
and XFONT_LIBS to avoid the need to call pkg-config.
20369
20623
See the pkg-config man page for more details.
20370
20624
 
20371
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20625
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20372
20626
See \`config.log' for more details." >&5
20373
20627
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20374
20628
is in your PATH or set the PKG_CONFIG environment variable to the full
20378
20632
and XFONT_LIBS to avoid the need to call pkg-config.
20379
20633
See the pkg-config man page for more details.
20380
20634
 
20381
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20635
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20382
20636
See \`config.log' for more details." >&2;}
20383
20637
   { (exit 1); exit 1; }; }
20384
20638
else
21457
21711
# report actual input values of CONFIG_FILES etc. instead of their
21458
21712
# values after options handling.
21459
21713
ac_log="
21460
 
This file was extended by libXfont $as_me 1.3.0, which was
 
21714
This file was extended by libXfont $as_me 1.3.1, which was
21461
21715
generated by GNU Autoconf 2.61.  Invocation command line was
21462
21716
 
21463
21717
  CONFIG_FILES    = $CONFIG_FILES
21510
21764
_ACEOF
21511
21765
cat >>$CONFIG_STATUS <<_ACEOF
21512
21766
ac_cs_version="\\
21513
 
libXfont config.status 1.3.0
 
21767
libXfont config.status 1.3.1
21514
21768
configured by $0, generated by GNU Autoconf 2.61,
21515
21769
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21516
21770
 
21521
21775
ac_pwd='$ac_pwd'
21522
21776
srcdir='$srcdir'
21523
21777
INSTALL='$INSTALL'
 
21778
MKDIR_P='$MKDIR_P'
21524
21779
_ACEOF
21525
21780
 
21526
21781
cat >>$CONFIG_STATUS <<\_ACEOF
21741
21996
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21742
21997
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21743
21998
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21999
am__isrc!$am__isrc$ac_delim
21744
22000
CYGPATH_W!$CYGPATH_W$ac_delim
21745
22001
PACKAGE!$PACKAGE$ac_delim
21746
22002
VERSION!$VERSION$ac_delim
21783
22039
host_cpu!$host_cpu$ac_delim
21784
22040
host_vendor!$host_vendor$ac_delim
21785
22041
host_os!$host_os$ac_delim
 
22042
SED!$SED$ac_delim
21786
22043
GREP!$GREP$ac_delim
21787
22044
EGREP!$EGREP$ac_delim
21788
22045
LN_S!$LN_S$ac_delim
21796
22053
CXXDEPMODE!$CXXDEPMODE$ac_delim
21797
22054
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21798
22055
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
22056
_ACEOF
 
22057
 
 
22058
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
22059
    break
 
22060
  elif $ac_last_try; then
 
22061
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22062
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22063
   { (exit 1); exit 1; }; }
 
22064
  else
 
22065
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22066
  fi
 
22067
done
 
22068
 
 
22069
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22070
if test -n "$ac_eof"; then
 
22071
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22072
  ac_eof=`expr $ac_eof + 1`
 
22073
fi
 
22074
 
 
22075
cat >>$CONFIG_STATUS <<_ACEOF
 
22076
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22077
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22078
_ACEOF
 
22079
sed '
 
22080
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22081
s/^/s,@/; s/!/@,|#_!!_#|/
 
22082
:n
 
22083
t n
 
22084
s/'"$ac_delim"'$/,g/; t
 
22085
s/$/\\/; p
 
22086
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22087
' >>$CONFIG_STATUS <conf$$subs.sed
 
22088
rm -f conf$$subs.sed
 
22089
cat >>$CONFIG_STATUS <<_ACEOF
 
22090
CEOF$ac_eof
 
22091
_ACEOF
 
22092
 
 
22093
 
 
22094
ac_delim='%!_!# '
 
22095
for ac_last_try in false false false false false :; do
 
22096
  cat >conf$$subs.sed <<_ACEOF
21799
22097
CXXCPP!$CXXCPP$ac_delim
21800
22098
F77!$F77$ac_delim
21801
 
_ACEOF
21802
 
 
21803
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21804
 
    break
21805
 
  elif $ac_last_try; then
21806
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21807
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21808
 
   { (exit 1); exit 1; }; }
21809
 
  else
21810
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21811
 
  fi
21812
 
done
21813
 
 
21814
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21815
 
if test -n "$ac_eof"; then
21816
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21817
 
  ac_eof=`expr $ac_eof + 1`
21818
 
fi
21819
 
 
21820
 
cat >>$CONFIG_STATUS <<_ACEOF
21821
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21822
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21823
 
_ACEOF
21824
 
sed '
21825
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21826
 
s/^/s,@/; s/!/@,|#_!!_#|/
21827
 
:n
21828
 
t n
21829
 
s/'"$ac_delim"'$/,g/; t
21830
 
s/$/\\/; p
21831
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21832
 
' >>$CONFIG_STATUS <conf$$subs.sed
21833
 
rm -f conf$$subs.sed
21834
 
cat >>$CONFIG_STATUS <<_ACEOF
21835
 
CEOF$ac_eof
21836
 
_ACEOF
21837
 
 
21838
 
 
21839
 
ac_delim='%!_!# '
21840
 
for ac_last_try in false false false false false :; do
21841
 
  cat >conf$$subs.sed <<_ACEOF
21842
22099
FFLAGS!$FFLAGS$ac_delim
21843
22100
ac_ct_F77!$ac_ct_F77$ac_delim
21844
22101
LIBTOOL!$LIBTOOL$ac_delim
21881
22138
LTLIBOBJS!$LTLIBOBJS$ac_delim
21882
22139
_ACEOF
21883
22140
 
21884
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
 
22141
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
21885
22142
    break
21886
22143
  elif $ac_last_try; then
21887
22144
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22108
22365
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22109
22366
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22110
22367
  esac
 
22368
  ac_MKDIR_P=$MKDIR_P
 
22369
  case $MKDIR_P in
 
22370
  [\\/$]* | ?:[\\/]* ) ;;
 
22371
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
22372
  esac
22111
22373
_ACEOF
22112
22374
 
22113
22375
cat >>$CONFIG_STATUS <<\_ACEOF
22161
22423
s&@abs_builddir@&$ac_abs_builddir&;t t
22162
22424
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22163
22425
s&@INSTALL@&$ac_INSTALL&;t t
 
22426
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22164
22427
$ac_datarootdir_hack
22165
22428
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22166
22429
 
22325
22588
  # some people rename them; so instead we look at the file content.
22326
22589
  # Grep'ing the first line is not enough: some people post-process
22327
22590
  # each Makefile.in and add a new line on top of each file to say so.
22328
 
  # So let's grep whole file.
22329
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
22591
  # Grep'ing the whole file is not good either: AIX grep has a line
 
22592
  # limit of 2048, but all sed's we know have understand at least 4000.
 
22593
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22330
22594
    dirpart=`$as_dirname -- "$mf" ||
22331
22595
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22332
22596
         X"$mf" : 'X\(//\)[^/]' \| \