~ubuntu-branches/ubuntu/natty/rss-glx/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2009-04-13 19:40:44 UTC
  • mto: (1.3.1 upstream) (2.1.4 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20090413194044-e17hyf7pzkf5wkqo
ImportĀ upstreamĀ versionĀ 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
807
807
INSTALL_PROGRAM
808
808
INSTALL_SCRIPT
809
809
INSTALL_DATA
 
810
am__isrc
810
811
CYGPATH_W
811
812
PACKAGE
812
813
VERSION
855
856
host_cpu
856
857
host_vendor
857
858
host_os
 
859
SED
858
860
GREP
859
861
EGREP
860
862
LN_S
861
863
ECHO
862
864
AR
863
865
RANLIB
 
866
DSYMUTIL
 
867
NMEDIT
864
868
CPP
865
869
CXXCPP
866
870
F77
1964
1968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965
1969
 
1966
1970
 
1967
 
am__api_version="1.9"
 
1971
am__api_version='1.10'
 
1972
 
1968
1973
ac_aux_dir=
1969
1974
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1970
1975
  if test -f "$ac_dir/install-sh"; then
2147
2152
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2148
2153
fi
2149
2154
 
2150
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2151
 
  # We used to keeping the `.' as first argument, in order to
2152
 
  # allow $(mkdir_p) to be used without argument.  As in
2153
 
  #   $(mkdir_p) $(somedir)
2154
 
  # where $(somedir) is conditionally defined.  However this is wrong
2155
 
  # for two reasons:
2156
 
  #  1. if the package is installed by a user who cannot write `.'
2157
 
  #     make install will fail,
2158
 
  #  2. the above comment should most certainly read
2159
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2160
 
  #     so it does not work when $(somedir) is undefined and
2161
 
  #     $(DESTDIR) is not.
2162
 
  #  To support the latter case, we have to write
2163
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2164
 
  #  so the `.' trick is pointless.
2165
 
  mkdir_p='mkdir -p --'
 
2155
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2156
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2157
if test -z "$MKDIR_P"; then
 
2158
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2159
  echo $ECHO_N "(cached) $ECHO_C" >&6
2166
2160
else
2167
 
  # On NextStep and OpenStep, the `mkdir' command does not
2168
 
  # recognize any option.  It will interpret all options as
2169
 
  # directories to create, and then abort because `.' already
2170
 
  # exists.
2171
 
  for d in ./-p ./--version;
2172
 
  do
2173
 
    test -d $d && rmdir $d
2174
 
  done
2175
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2176
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2177
 
    mkdir_p='$(mkinstalldirs)'
 
2161
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2162
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2163
do
 
2164
  IFS=$as_save_IFS
 
2165
  test -z "$as_dir" && as_dir=.
 
2166
  for ac_prog in mkdir gmkdir; do
 
2167
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2168
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2169
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2170
             'mkdir (GNU coreutils) '* | \
 
2171
             'mkdir (coreutils) '* | \
 
2172
             'mkdir (fileutils) '4.1*)
 
2173
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2174
               break 3;;
 
2175
           esac
 
2176
         done
 
2177
       done
 
2178
done
 
2179
IFS=$as_save_IFS
 
2180
 
 
2181
fi
 
2182
 
 
2183
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2184
    MKDIR_P="$ac_cv_path_mkdir -p"
2178
2185
  else
2179
 
    mkdir_p='$(install_sh) -d'
 
2186
    # As a last resort, use the slow shell script.  Don't cache a
 
2187
    # value for MKDIR_P within a source directory, because that will
 
2188
    # break other packages using the cache if that directory is
 
2189
    # removed, or if the value is a relative name.
 
2190
    test -d ./--version && rmdir ./--version
 
2191
    MKDIR_P="$ac_install_sh -d"
2180
2192
  fi
2181
2193
fi
 
2194
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2195
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2196
 
 
2197
mkdir_p="$MKDIR_P"
 
2198
case $mkdir_p in
 
2199
  [\\/$]* | ?:[\\/]*) ;;
 
2200
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2201
esac
2182
2202
 
2183
2203
for ac_prog in gawk mawk nawk awk
2184
2204
do
2261
2281
fi
2262
2282
rmdir .tst 2>/dev/null
2263
2283
 
2264
 
# test to see if srcdir already configured
2265
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2266
 
   test -f $srcdir/config.status; then
2267
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2284
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2285
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2286
  # is not polluted with repeated "-I."
 
2287
  am__isrc=' -I$(srcdir)'
 
2288
  # test to see if srcdir already configured
 
2289
  if test -f $srcdir/config.status; then
 
2290
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2268
2291
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2269
2292
   { (exit 1); exit 1; }; }
 
2293
  fi
2270
2294
fi
2271
2295
 
2272
2296
# test whether we have cygpath
2281
2305
 
2282
2306
# Define the identity of the package.
2283
2307
 PACKAGE=rss-glx
2284
 
 VERSION=0.7.3
 
2308
 VERSION=0.8.3
2285
2309
 
2286
2310
 
2287
2311
cat >>confdefs.h <<_ACEOF
2309
2333
 
2310
2334
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311
2335
 
2312
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2336
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2313
2337
 
2314
2338
# Installed binaries are usually stripped using `strip' when the user
2315
2339
# run `make install-strip'.  However `strip' might not be the right
2413
2437
fi
2414
2438
 
2415
2439
fi
2416
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2440
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2441
 
2418
2442
# We need awk for the "check" target.  The system "awk" is bad on
2419
2443
# some platforms.
3445
3469
  am_depcomp="$ac_aux_dir/depcomp"
3446
3470
  AMDEPBACKSLASH='\'
3447
3471
fi
3448
 
 
3449
 
 
3450
 
if test "x$enable_dependency_tracking" != xno; then
 
3472
 if test "x$enable_dependency_tracking" != xno; then
3451
3473
  AMDEP_TRUE=
3452
3474
  AMDEP_FALSE='#'
3453
3475
else
3457
3479
 
3458
3480
 
3459
3481
 
3460
 
 
3461
3482
depcc="$CC"   am_compiler_list=
3462
3483
 
3463
3484
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3525
3546
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3526
3547
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3527
3548
         >/dev/null 2>conftest.err &&
 
3549
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3528
3550
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3529
3551
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3530
3552
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3554
3576
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3555
3577
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3556
3578
 
3557
 
 
3558
 
 
3559
 
if
 
3579
 if
3560
3580
  test "x$enable_dependency_tracking" != xno \
3561
3581
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3562
3582
  am__fastdepCC_TRUE=
4013
4033
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4014
4034
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4015
4035
         >/dev/null 2>conftest.err &&
 
4036
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016
4037
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017
4038
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4018
4039
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4042
4063
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4043
4064
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4044
4065
 
4045
 
 
4046
 
 
4047
 
if
 
4066
 if
4048
4067
  test "x$enable_dependency_tracking" != xno \
4049
4068
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4050
4069
  am__fastdepCXX_TRUE=
4314
4333
  test -z "$as_dir" && as_dir=.
4315
4334
  for lt_ac_prog in sed gsed; do
4316
4335
    for ac_exec_ext in '' $ac_executable_extensions; do
4317
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4336
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4318
4337
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4319
4338
      fi
4320
4339
    done
4321
4340
  done
4322
4341
done
 
4342
IFS=$as_save_IFS
4323
4343
lt_ac_max=0
4324
4344
lt_ac_count=0
4325
4345
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4354
4374
fi
4355
4375
 
4356
4376
SED=$lt_cv_path_SED
 
4377
 
4357
4378
{ echo "$as_me:$LINENO: result: $SED" >&5
4358
4379
echo "${ECHO_T}$SED" >&6; }
4359
4380
 
4715
4736
echo "${ECHO_T}no, using $LN_S" >&6; }
4716
4737
fi
4717
4738
 
4718
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4719
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4739
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4740
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4720
4741
if test "${lt_cv_deplibs_check_method+set}" = set; then
4721
4742
  echo $ECHO_N "(cached) $ECHO_C" >&6
4722
4743
else
4735
4756
# whether `pass_all' will *always* work, you probably want this one.
4736
4757
 
4737
4758
case $host_os in
4738
 
aix4* | aix5*)
 
4759
aix[4-9]*)
4739
4760
  lt_cv_deplibs_check_method=pass_all
4740
4761
  ;;
4741
4762
 
4757
4778
 
4758
4779
mingw* | pw32*)
4759
4780
  # Base MSYS/MinGW do not provide the 'file' command needed by
4760
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4761
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4762
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4781
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4782
  # unless we find 'file', for example because we are cross-compiling.
 
4783
  if ( file / ) >/dev/null 2>&1; then
 
4784
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4785
    lt_cv_file_magic_cmd='func_win32_libid'
 
4786
  else
 
4787
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4788
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4789
  fi
4763
4790
  ;;
4764
4791
 
4765
4792
darwin* | rhapsody*)
4804
4831
  esac
4805
4832
  ;;
4806
4833
 
4807
 
interix3*)
 
4834
interix[3-9]*)
4808
4835
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4809
4836
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4810
4837
  ;;
4854
4881
  lt_cv_deplibs_check_method=pass_all
4855
4882
  ;;
4856
4883
 
 
4884
rdos*)
 
4885
  lt_cv_deplibs_check_method=pass_all
 
4886
  ;;
 
4887
 
4857
4888
solaris*)
4858
4889
  lt_cv_deplibs_check_method=pass_all
4859
4890
  ;;
4941
4972
  ;;
4942
4973
*-*-irix6*)
4943
4974
  # Find out which ABI we are using.
4944
 
  echo '#line 4944 "configure"' > conftest.$ac_ext
 
4975
  echo '#line 4975 "configure"' > conftest.$ac_ext
4945
4976
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946
4977
  (eval $ac_compile) 2>&5
4947
4978
  ac_status=$?
4976
5007
  rm -rf conftest*
4977
5008
  ;;
4978
5009
 
4979
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5010
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5011
s390*-*linux*|sparc*-*linux*)
4980
5012
  # Find out which ABI we are using.
4981
5013
  echo 'int i;' > conftest.$ac_ext
4982
5014
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987
5019
    case `/usr/bin/file conftest.o` in
4988
5020
    *32-bit*)
4989
5021
      case $host in
 
5022
        x86_64-*kfreebsd*-gnu)
 
5023
          LD="${LD-ld} -m elf_i386_fbsd"
 
5024
          ;;
4990
5025
        x86_64-*linux*)
4991
5026
          LD="${LD-ld} -m elf_i386"
4992
5027
          ;;
5003
5038
      ;;
5004
5039
    *64-bit*)
5005
5040
      case $host in
 
5041
        x86_64-*kfreebsd*-gnu)
 
5042
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5043
          ;;
5006
5044
        x86_64-*linux*)
5007
5045
          LD="${LD-ld} -m elf_x86_64"
5008
5046
          ;;
5106
5144
    *64-bit*)
5107
5145
      case $lt_cv_prog_gnu_ld in
5108
5146
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5109
 
      *)    LD="${LD-ld} -64" ;;
 
5147
      *)
 
5148
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5149
          LD="${LD-ld} -64"
 
5150
        fi
 
5151
        ;;
5110
5152
      esac
5111
5153
      ;;
5112
5154
    esac
6231
6273
 
6232
6274
 
6233
6275
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6234
 
 
6235
6276
# find the maximum length of command line arguments
6236
6277
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6237
6278
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6318
6359
    fi
6319
6360
    ;;
6320
6361
  *)
6321
 
    # If test is not a shell built-in, we'll probably end up computing a
6322
 
    # maximum length that is only half of the actual maximum length, but
6323
 
    # we can't tell.
6324
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6362
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6363
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6364
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6365
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6366
    else
 
6367
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6368
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6326
6369
               = "XX$teststring") >/dev/null 2>&1 &&
6327
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6328
 
            lt_cv_sys_max_cmd_len=$new_result &&
6329
 
            test $i != 17 # 1/2 MB should be enough
6330
 
    do
6331
 
      i=`expr $i + 1`
6332
 
      teststring=$teststring$teststring
6333
 
    done
6334
 
    teststring=
6335
 
    # Add a significant safety factor because C++ compilers can tack on massive
6336
 
    # amounts of additional arguments before passing them to the linker.
6337
 
    # It appears as though 1/2 is a usable value.
6338
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6370
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6371
              lt_cv_sys_max_cmd_len=$new_result &&
 
6372
              test $i != 17 # 1/2 MB should be enough
 
6373
      do
 
6374
        i=`expr $i + 1`
 
6375
        teststring=$teststring$teststring
 
6376
      done
 
6377
      teststring=
 
6378
      # Add a significant safety factor because C++ compilers can tack on massive
 
6379
      # amounts of additional arguments before passing them to the linker.
 
6380
      # It appears as though 1/2 is a usable value.
 
6381
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6382
    fi
6339
6383
    ;;
6340
6384
  esac
6341
6385
 
6352
6396
 
6353
6397
 
6354
6398
 
 
6399
 
6355
6400
# Check for command to grab the raw symbol name followed by C symbol from nm.
6356
6401
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6357
6402
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6542
6587
    echo "$progname: failed program was:" >&5
6543
6588
    cat conftest.$ac_ext >&5
6544
6589
  fi
6545
 
  rm -f conftest* conftst*
 
6590
  rm -rf conftest* conftst*
6546
6591
 
6547
6592
  # Do not use the global_symbol_pipe unless it works.
6548
6593
  if test "$pipe_works" = yes; then
6940
6985
test -z "$ac_objext" && ac_objext=o
6941
6986
 
6942
6987
# Determine commands to create old-style static archives.
6943
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6988
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6944
6989
old_postinstall_cmds='chmod 644 $oldlib'
6945
6990
old_postuninstall_cmds=
6946
6991
 
7102
7147
  ;;
7103
7148
esac
7104
7149
 
 
7150
 
 
7151
  case $host_os in
 
7152
    rhapsody* | darwin*)
 
7153
    if test -n "$ac_tool_prefix"; then
 
7154
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7155
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7156
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7158
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7160
else
 
7161
  if test -n "$DSYMUTIL"; then
 
7162
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7163
else
 
7164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7165
for as_dir in $PATH
 
7166
do
 
7167
  IFS=$as_save_IFS
 
7168
  test -z "$as_dir" && as_dir=.
 
7169
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7171
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7172
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7173
    break 2
 
7174
  fi
 
7175
done
 
7176
done
 
7177
IFS=$as_save_IFS
 
7178
 
 
7179
fi
 
7180
fi
 
7181
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7182
if test -n "$DSYMUTIL"; then
 
7183
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7184
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7185
else
 
7186
  { echo "$as_me:$LINENO: result: no" >&5
 
7187
echo "${ECHO_T}no" >&6; }
 
7188
fi
 
7189
 
 
7190
 
 
7191
fi
 
7192
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7193
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7194
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7195
set dummy dsymutil; ac_word=$2
 
7196
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7198
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7200
else
 
7201
  if test -n "$ac_ct_DSYMUTIL"; then
 
7202
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7203
else
 
7204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7205
for as_dir in $PATH
 
7206
do
 
7207
  IFS=$as_save_IFS
 
7208
  test -z "$as_dir" && as_dir=.
 
7209
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7211
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7212
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7213
    break 2
 
7214
  fi
 
7215
done
 
7216
done
 
7217
IFS=$as_save_IFS
 
7218
 
 
7219
fi
 
7220
fi
 
7221
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7222
if test -n "$ac_ct_DSYMUTIL"; then
 
7223
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7224
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7225
else
 
7226
  { echo "$as_me:$LINENO: result: no" >&5
 
7227
echo "${ECHO_T}no" >&6; }
 
7228
fi
 
7229
 
 
7230
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7231
    DSYMUTIL=":"
 
7232
  else
 
7233
    case $cross_compiling:$ac_tool_warned in
 
7234
yes:)
 
7235
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7236
whose name does not start with the host triplet.  If you think this
 
7237
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7238
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7239
whose name does not start with the host triplet.  If you think this
 
7240
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7241
ac_tool_warned=yes ;;
 
7242
esac
 
7243
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7244
  fi
 
7245
else
 
7246
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7247
fi
 
7248
 
 
7249
    if test -n "$ac_tool_prefix"; then
 
7250
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7251
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7252
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7253
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7254
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7256
else
 
7257
  if test -n "$NMEDIT"; then
 
7258
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7259
else
 
7260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7261
for as_dir in $PATH
 
7262
do
 
7263
  IFS=$as_save_IFS
 
7264
  test -z "$as_dir" && as_dir=.
 
7265
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7266
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7267
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7268
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7269
    break 2
 
7270
  fi
 
7271
done
 
7272
done
 
7273
IFS=$as_save_IFS
 
7274
 
 
7275
fi
 
7276
fi
 
7277
NMEDIT=$ac_cv_prog_NMEDIT
 
7278
if test -n "$NMEDIT"; then
 
7279
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7280
echo "${ECHO_T}$NMEDIT" >&6; }
 
7281
else
 
7282
  { echo "$as_me:$LINENO: result: no" >&5
 
7283
echo "${ECHO_T}no" >&6; }
 
7284
fi
 
7285
 
 
7286
 
 
7287
fi
 
7288
if test -z "$ac_cv_prog_NMEDIT"; then
 
7289
  ac_ct_NMEDIT=$NMEDIT
 
7290
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7291
set dummy nmedit; ac_word=$2
 
7292
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7294
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7296
else
 
7297
  if test -n "$ac_ct_NMEDIT"; then
 
7298
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7299
else
 
7300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7301
for as_dir in $PATH
 
7302
do
 
7303
  IFS=$as_save_IFS
 
7304
  test -z "$as_dir" && as_dir=.
 
7305
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7307
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7308
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7309
    break 2
 
7310
  fi
 
7311
done
 
7312
done
 
7313
IFS=$as_save_IFS
 
7314
 
 
7315
fi
 
7316
fi
 
7317
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7318
if test -n "$ac_ct_NMEDIT"; then
 
7319
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7320
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7321
else
 
7322
  { echo "$as_me:$LINENO: result: no" >&5
 
7323
echo "${ECHO_T}no" >&6; }
 
7324
fi
 
7325
 
 
7326
  if test "x$ac_ct_NMEDIT" = x; then
 
7327
    NMEDIT=":"
 
7328
  else
 
7329
    case $cross_compiling:$ac_tool_warned in
 
7330
yes:)
 
7331
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7332
whose name does not start with the host triplet.  If you think this
 
7333
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7334
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7335
whose name does not start with the host triplet.  If you think this
 
7336
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7337
ac_tool_warned=yes ;;
 
7338
esac
 
7339
    NMEDIT=$ac_ct_NMEDIT
 
7340
  fi
 
7341
else
 
7342
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7343
fi
 
7344
 
 
7345
 
 
7346
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7347
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7348
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7350
else
 
7351
  lt_cv_apple_cc_single_mod=no
 
7352
      if test -z "${LT_MULTI_MODULE}"; then
 
7353
   # By default we will add the -single_module flag. You can override
 
7354
   # by either setting the environment variable LT_MULTI_MODULE
 
7355
   # non-empty at configure time, or by adding -multi_module to the
 
7356
   # link flags.
 
7357
   echo "int foo(void){return 1;}" > conftest.c
 
7358
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7359
     -dynamiclib ${wl}-single_module conftest.c
 
7360
   if test -f libconftest.dylib; then
 
7361
     lt_cv_apple_cc_single_mod=yes
 
7362
     rm -rf libconftest.dylib*
 
7363
   fi
 
7364
   rm conftest.c
 
7365
      fi
 
7366
fi
 
7367
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7368
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7369
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7370
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7371
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7373
else
 
7374
  lt_cv_ld_exported_symbols_list=no
 
7375
      save_LDFLAGS=$LDFLAGS
 
7376
      echo "_main" > conftest.sym
 
7377
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7378
      cat >conftest.$ac_ext <<_ACEOF
 
7379
/* confdefs.h.  */
 
7380
_ACEOF
 
7381
cat confdefs.h >>conftest.$ac_ext
 
7382
cat >>conftest.$ac_ext <<_ACEOF
 
7383
/* end confdefs.h.  */
 
7384
 
 
7385
int
 
7386
main ()
 
7387
{
 
7388
 
 
7389
  ;
 
7390
  return 0;
 
7391
}
 
7392
_ACEOF
 
7393
rm -f conftest.$ac_objext conftest$ac_exeext
 
7394
if { (ac_try="$ac_link"
 
7395
case "(($ac_try" in
 
7396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7397
  *) ac_try_echo=$ac_try;;
 
7398
esac
 
7399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7400
  (eval "$ac_link") 2>conftest.er1
 
7401
  ac_status=$?
 
7402
  grep -v '^ *+' conftest.er1 >conftest.err
 
7403
  rm -f conftest.er1
 
7404
  cat conftest.err >&5
 
7405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7406
  (exit $ac_status); } && {
 
7407
         test -z "$ac_c_werror_flag" ||
 
7408
         test ! -s conftest.err
 
7409
       } && test -s conftest$ac_exeext &&
 
7410
       $as_test_x conftest$ac_exeext; then
 
7411
  lt_cv_ld_exported_symbols_list=yes
 
7412
else
 
7413
  echo "$as_me: failed program was:" >&5
 
7414
sed 's/^/| /' conftest.$ac_ext >&5
 
7415
 
 
7416
        lt_cv_ld_exported_symbols_list=no
 
7417
fi
 
7418
 
 
7419
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7420
      conftest$ac_exeext conftest.$ac_ext
 
7421
   LDFLAGS="$save_LDFLAGS"
 
7422
 
 
7423
fi
 
7424
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7425
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7426
    case $host_os in
 
7427
    rhapsody* | darwin1.[0123])
 
7428
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7429
    darwin1.*)
 
7430
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7431
    darwin*)
 
7432
      # if running on 10.5 or later, the deployment target defaults
 
7433
      # to the OS version, if on x86, and 10.4, the deployment
 
7434
      # target defaults to 10.4. Don't you love it?
 
7435
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7436
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7437
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7438
   10.[012]*)
 
7439
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7440
   10.*)
 
7441
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7442
      esac
 
7443
    ;;
 
7444
  esac
 
7445
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7446
      _lt_dar_single_mod='$single_module'
 
7447
    fi
 
7448
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7449
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7450
    else
 
7451
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7452
    fi
 
7453
    if test "$DSYMUTIL" != ":"; then
 
7454
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7455
    else
 
7456
      _lt_dsymutil=
 
7457
    fi
 
7458
    ;;
 
7459
  esac
 
7460
 
 
7461
 
7105
7462
enable_dlopen=no
7106
7463
enable_win32_dll=no
7107
7464
 
7140
7497
objext=$objext
7141
7498
 
7142
7499
# Code to be used in simple compile tests
7143
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7500
lt_simple_compile_test_code="int some_variable = 0;"
7144
7501
 
7145
7502
# Code to be used in simple link tests
7146
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7503
lt_simple_link_test_code='int main(){return(0);}'
7147
7504
 
7148
7505
 
7149
7506
# If no C compiler was specified, use CC.
7158
7515
 
7159
7516
# save warnings/boilerplate of simple test code
7160
7517
ac_outfile=conftest.$ac_objext
7161
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7518
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7162
7519
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7163
7520
_lt_compiler_boilerplate=`cat conftest.err`
7164
7521
$rm conftest*
7165
7522
 
7166
7523
ac_outfile=conftest.$ac_objext
7167
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7524
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7168
7525
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7169
7526
_lt_linker_boilerplate=`cat conftest.err`
7170
 
$rm conftest*
 
7527
$rm -r conftest*
7171
7528
 
7172
7529
 
7173
7530
 
7184
7541
else
7185
7542
  lt_cv_prog_compiler_rtti_exceptions=no
7186
7543
  ac_outfile=conftest.$ac_objext
7187
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7544
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7188
7545
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7189
7546
   # Insert the option either (1) after the last *FLAGS variable, or
7190
7547
   # (2) before a word containing "conftest.", or (3) at the end.
7195
7552
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196
7553
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197
7554
   -e 's:$: $lt_compiler_flag:'`
7198
 
   (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
 
7555
   (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7199
7556
   (eval "$lt_compile" 2>conftest.err)
7200
7557
   ac_status=$?
7201
7558
   cat conftest.err >&5
7202
 
   echo "$as_me:7202: \$? = $ac_status" >&5
 
7559
   echo "$as_me:7559: \$? = $ac_status" >&5
7203
7560
   if (exit $ac_status) && test -s "$ac_outfile"; then
7204
7561
     # The compiler can only warn and ignore the option if not recognized
7205
7562
     # So say no if there are warnings other than the usual output.
7250
7607
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7251
7608
      ;;
7252
7609
 
7253
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7610
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7254
7611
      # PIC is the default for these OSes.
7255
7612
      ;;
7256
7613
 
7257
 
    mingw* | pw32* | os2*)
 
7614
    mingw* | cygwin* | pw32* | os2*)
7258
7615
      # This hack is so that the source file can tell whether it is being
7259
7616
      # built for inclusion in a dll (and should export symbols for example).
 
7617
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7618
      # (--disable-auto-import) libraries
7260
7619
      lt_prog_compiler_pic='-DDLL_EXPORT'
7261
7620
      ;;
7262
7621
 
7266
7625
      lt_prog_compiler_pic='-fno-common'
7267
7626
      ;;
7268
7627
 
7269
 
    interix3*)
 
7628
    interix[3-9]*)
7270
7629
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7271
7630
      # Instead, we relocate shared libraries at runtime.
7272
7631
      ;;
7324
7683
       esac
7325
7684
       ;;
7326
7685
 
7327
 
    mingw* | pw32* | os2*)
 
7686
    mingw* | cygwin* | pw32* | os2*)
7328
7687
      # This hack is so that the source file can tell whether it is being
7329
7688
      # built for inclusion in a dll (and should export symbols for example).
7330
7689
      lt_prog_compiler_pic='-DDLL_EXPORT'
7376
7735
        # All Alpha code is PIC.
7377
7736
        lt_prog_compiler_static='-non_shared'
7378
7737
        ;;
 
7738
      *)
 
7739
        case `$CC -V 2>&1 | sed 5q` in
 
7740
        *Sun\ C*)
 
7741
          # Sun C 5.9
 
7742
          lt_prog_compiler_pic='-KPIC'
 
7743
          lt_prog_compiler_static='-Bstatic'
 
7744
          lt_prog_compiler_wl='-Wl,'
 
7745
          ;;
 
7746
        *Sun\ F*)
 
7747
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7748
          lt_prog_compiler_pic='-KPIC'
 
7749
          lt_prog_compiler_static='-Bstatic'
 
7750
          lt_prog_compiler_wl=''
 
7751
          ;;
 
7752
        esac
 
7753
        ;;
7379
7754
      esac
7380
7755
      ;;
7381
7756
 
7385
7760
      lt_prog_compiler_static='-non_shared'
7386
7761
      ;;
7387
7762
 
 
7763
    rdos*)
 
7764
      lt_prog_compiler_static='-non_shared'
 
7765
      ;;
 
7766
 
7388
7767
    solaris*)
7389
7768
      lt_prog_compiler_pic='-KPIC'
7390
7769
      lt_prog_compiler_static='-Bstatic'
7447
7826
 
7448
7827
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7449
7828
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7450
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7829
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7451
7830
  echo $ECHO_N "(cached) $ECHO_C" >&6
7452
7831
else
7453
 
  lt_prog_compiler_pic_works=no
 
7832
  lt_cv_prog_compiler_pic_works=no
7454
7833
  ac_outfile=conftest.$ac_objext
7455
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7834
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7456
7835
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7457
7836
   # Insert the option either (1) after the last *FLAGS variable, or
7458
7837
   # (2) before a word containing "conftest.", or (3) at the end.
7463
7842
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464
7843
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465
7844
   -e 's:$: $lt_compiler_flag:'`
7466
 
   (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
 
7845
   (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7467
7846
   (eval "$lt_compile" 2>conftest.err)
7468
7847
   ac_status=$?
7469
7848
   cat conftest.err >&5
7470
 
   echo "$as_me:7470: \$? = $ac_status" >&5
 
7849
   echo "$as_me:7849: \$? = $ac_status" >&5
7471
7850
   if (exit $ac_status) && test -s "$ac_outfile"; then
7472
7851
     # The compiler can only warn and ignore the option if not recognized
7473
7852
     # So say no if there are warnings other than the usual output.
7474
7853
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475
7854
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476
7855
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477
 
       lt_prog_compiler_pic_works=yes
 
7856
       lt_cv_prog_compiler_pic_works=yes
7478
7857
     fi
7479
7858
   fi
7480
7859
   $rm conftest*
7481
7860
 
7482
7861
fi
7483
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7484
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7862
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7863
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7485
7864
 
7486
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7865
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7487
7866
    case $lt_prog_compiler_pic in
7488
7867
     "" | " "*) ;;
7489
7868
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7510
7889
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7511
7890
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7512
7891
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7513
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7892
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7514
7893
  echo $ECHO_N "(cached) $ECHO_C" >&6
7515
7894
else
7516
 
  lt_prog_compiler_static_works=no
 
7895
  lt_cv_prog_compiler_static_works=no
7517
7896
   save_LDFLAGS="$LDFLAGS"
7518
7897
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7519
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7898
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7520
7899
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7521
7900
     # The linker can only warn and ignore the option if not recognized
7522
7901
     # So say no if there are warnings
7526
7905
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7527
7906
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528
7907
       if diff conftest.exp conftest.er2 >/dev/null; then
7529
 
         lt_prog_compiler_static_works=yes
 
7908
         lt_cv_prog_compiler_static_works=yes
7530
7909
       fi
7531
7910
     else
7532
 
       lt_prog_compiler_static_works=yes
 
7911
       lt_cv_prog_compiler_static_works=yes
7533
7912
     fi
7534
7913
   fi
7535
 
   $rm conftest*
 
7914
   $rm -r conftest*
7536
7915
   LDFLAGS="$save_LDFLAGS"
7537
7916
 
7538
7917
fi
7539
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7540
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7919
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7541
7920
 
7542
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7921
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7543
7922
    :
7544
7923
else
7545
7924
    lt_prog_compiler_static=
7556
7935
   mkdir conftest
7557
7936
   cd conftest
7558
7937
   mkdir out
7559
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7938
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7560
7939
 
7561
7940
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7562
7941
   # Insert the option either (1) after the last *FLAGS variable, or
7567
7946
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7568
7947
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7569
7948
   -e 's:$: $lt_compiler_flag:'`
7570
 
   (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
 
7949
   (eval echo "\"\$as_me:7949: $lt_compile\"" >&5)
7571
7950
   (eval "$lt_compile" 2>out/conftest.err)
7572
7951
   ac_status=$?
7573
7952
   cat out/conftest.err >&5
7574
 
   echo "$as_me:7574: \$? = $ac_status" >&5
 
7953
   echo "$as_me:7953: \$? = $ac_status" >&5
7575
7954
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7576
7955
   then
7577
7956
     # The compiler can only warn and ignore the option if not recognized
7651
8030
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7652
8031
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7653
8032
  # as well as any symbol that contains `d'.
7654
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8033
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7655
8034
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7656
8035
  # platforms (ab)use it in PIC code, but their linkers get confused if
7657
8036
  # the symbol is explicitly referenced.  Since portable code cannot
7658
8037
  # rely on this symbol name, it's probably fine to never include it in
7659
8038
  # preloaded symbol tables.
 
8039
  # Exclude shared library initialization/finalization symbols.
7660
8040
  extract_expsyms_cmds=
7661
8041
  # Just being paranoid about ensuring that cc_basename is set.
7662
8042
  for cc_temp in $compiler""; do
7715
8095
 
7716
8096
    # See if GNU ld supports shared libraries.
7717
8097
    case $host_os in
7718
 
    aix3* | aix4* | aix5*)
 
8098
    aix[3-9]*)
7719
8099
      # On AIX/PPC, the GNU linker is very broken
7720
8100
      if test "$host_cpu" != ia64; then
7721
8101
        ld_shlibs=no
7763
8143
      allow_undefined_flag=unsupported
7764
8144
      always_export_symbols=no
7765
8145
      enable_shared_with_static_runtimes=yes
7766
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8146
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7767
8147
 
7768
8148
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7769
8149
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7781
8161
      fi
7782
8162
      ;;
7783
8163
 
7784
 
    interix3*)
 
8164
    interix[3-9]*)
7785
8165
      hardcode_direct=no
7786
8166
      hardcode_shlibpath_var=no
7787
8167
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7796
8176
      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'
7797
8177
      ;;
7798
8178
 
7799
 
    linux* | k*bsd*-gnu)
 
8179
    gnu* | linux* | k*bsd*-gnu)
7800
8180
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801
8181
        tmp_addflag=
7802
8182
        case $cc_basename,$host_cpu in
7814
8194
        ifc* | ifort*)                  # Intel Fortran compiler
7815
8195
          tmp_addflag=' -nofor_main' ;;
7816
8196
        esac
7817
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8197
        case `$CC -V 2>&1 | sed 5q` in
 
8198
        *Sun\ C*)                       # Sun C 5.9
 
8199
          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'
 
8200
          tmp_sharedflag='-G' ;;
 
8201
        *Sun\ F*)                       # Sun Fortran 8.3
 
8202
          tmp_sharedflag='-G' ;;
 
8203
        *)
 
8204
          tmp_sharedflag='-shared' ;;
 
8205
        esac
 
8206
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818
8207
 
7819
8208
        if test $supports_anon_versioning = yes; then
7820
8209
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7821
8210
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7822
8211
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7823
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8212
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7824
8213
        fi
7825
8214
        link_all_deplibs=no
7826
8215
      else
7926
8315
      fi
7927
8316
      ;;
7928
8317
 
7929
 
    aix4* | aix5*)
 
8318
    aix[4-9]*)
7930
8319
      if test "$host_cpu" = ia64; then
7931
8320
        # On IA64, the linker does run time linking by default, so we don't
7932
8321
        # have to do anything special.
7946
8335
        # Test if we are trying to use run time linking or normal
7947
8336
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7948
8337
        # need to do runtime linking.
7949
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8338
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7950
8339
          for ld_flag in $LDFLAGS; do
7951
8340
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7952
8341
            aix_use_runtimelinking=yes
7980
8369
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7981
8370
          then
7982
8371
          # We have reworked collect2
7983
 
          hardcode_direct=yes
 
8372
          :
7984
8373
          else
7985
8374
          # We have old collect2
7986
8375
          hardcode_direct=unsupported
8054
8443
       } && test -s conftest$ac_exeext &&
8055
8444
       $as_test_x conftest$ac_exeext; then
8056
8445
 
8057
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8058
 
}'`
 
8446
lt_aix_libpath_sed='
 
8447
    /Import File Strings/,/^$/ {
 
8448
        /^0/ {
 
8449
            s/^0  *\(.*\)$/\1/
 
8450
            p
 
8451
        }
 
8452
    }'
 
8453
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8059
8454
# Check for a 64-bit object if we didn't find anything.
8060
 
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; }
8061
 
}'`; fi
 
8455
if test -z "$aix_libpath"; then
 
8456
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8457
fi
8062
8458
else
8063
8459
  echo "$as_me: failed program was:" >&5
8064
8460
sed 's/^/| /' conftest.$ac_ext >&5
8113
8509
       } && test -s conftest$ac_exeext &&
8114
8510
       $as_test_x conftest$ac_exeext; then
8115
8511
 
8116
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8117
 
}'`
 
8512
lt_aix_libpath_sed='
 
8513
    /Import File Strings/,/^$/ {
 
8514
        /^0/ {
 
8515
            s/^0  *\(.*\)$/\1/
 
8516
            p
 
8517
        }
 
8518
    }'
 
8519
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8118
8520
# Check for a 64-bit object if we didn't find anything.
8119
 
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; }
8120
 
}'`; fi
 
8521
if test -z "$aix_libpath"; then
 
8522
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8523
fi
8121
8524
else
8122
8525
  echo "$as_me: failed program was:" >&5
8123
8526
sed 's/^/| /' conftest.$ac_ext >&5
8171
8574
      # The linker will automatically build a .lib file if we build a DLL.
8172
8575
      old_archive_From_new_cmds='true'
8173
8576
      # FIXME: Should let the user specify the lib program.
8174
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8577
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8175
8578
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8176
8579
      enable_shared_with_static_runtimes=yes
8177
8580
      ;;
8204
8607
      link_all_deplibs=yes
8205
8608
    if test "$GCC" = yes ; then
8206
8609
        output_verbose_link_cmd='echo'
8207
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8208
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8209
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8210
 
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8211
 
      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}'
 
8610
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8611
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8612
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8613
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8212
8614
    else
8213
8615
      case $cc_basename in
8214
8616
        xlc*)
8215
8617
         output_verbose_link_cmd='echo'
8216
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8618
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8217
8619
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8218
8620
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8219
 
         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}'
 
8621
         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}'
8220
8622
          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}'
8221
8623
          ;;
8222
8624
       *)
8378
8780
      ;;
8379
8781
 
8380
8782
    openbsd*)
8381
 
      hardcode_direct=yes
8382
 
      hardcode_shlibpath_var=no
8383
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8384
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8385
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8386
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8387
 
        export_dynamic_flag_spec='${wl}-E'
 
8783
      if test -f /usr/libexec/ld.so; then
 
8784
        hardcode_direct=yes
 
8785
        hardcode_shlibpath_var=no
 
8786
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8787
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8788
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8789
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8790
          export_dynamic_flag_spec='${wl}-E'
 
8791
        else
 
8792
          case $host_os in
 
8793
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8794
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8795
             hardcode_libdir_flag_spec='-R$libdir'
 
8796
             ;;
 
8797
           *)
 
8798
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8799
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8800
             ;;
 
8801
          esac
 
8802
        fi
8388
8803
      else
8389
 
       case $host_os in
8390
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8391
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392
 
           hardcode_libdir_flag_spec='-R$libdir'
8393
 
           ;;
8394
 
         *)
8395
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8396
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8397
 
           ;;
8398
 
       esac
 
8804
        ld_shlibs=no
8399
8805
      fi
8400
8806
      ;;
8401
8807
 
8454
8860
      case $host_os in
8455
8861
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8456
8862
      *)
8457
 
        # The compiler driver will combine linker options so we
8458
 
        # cannot just pass the convience library names through
8459
 
        # without $wl, iff we do not link with $LD.
8460
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8863
        # The compiler driver will combine and reorder linker options,
 
8864
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8865
        # but is careful enough not to reorder.
8461
8866
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8462
 
        case $wlarc in
8463
 
        '')
8464
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8465
 
        *)
8466
 
          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' ;;
8467
 
        esac ;;
 
8867
        if test "$GCC" = yes; then
 
8868
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8869
        else
 
8870
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8871
        fi
 
8872
        ;;
8468
8873
      esac
8469
8874
      link_all_deplibs=yes
8470
8875
      ;;
8521
8926
      fi
8522
8927
      ;;
8523
8928
 
8524
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8929
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8525
8930
      no_undefined_flag='${wl}-z,text'
8526
8931
      archive_cmds_need_lc=no
8527
8932
      hardcode_shlibpath_var=no
8598
9003
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8599
9004
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8600
9005
      $rm conftest*
8601
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9006
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
9007
 
8603
9008
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604
9009
  (eval $ac_compile) 2>&5
8656
9061
version_type=none
8657
9062
dynamic_linker="$host_os ld.so"
8658
9063
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9064
 
8659
9065
if test "$GCC" = yes; then
8660
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9066
  case $host_os in
 
9067
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9068
    *) lt_awk_arg="/^libraries:/" ;;
 
9069
  esac
 
9070
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9071
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8662
9072
    # if the path contains ";" then we assume it to be the separator
8663
9073
    # otherwise default to the standard path separator (i.e. ":") - it is
8664
9074
    # assumed that no part of a normal pathname contains ";" but that should
8665
9075
    # okay in the real world where ";" in dirpaths is itself problematic.
8666
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9076
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8667
9077
  else
8668
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9078
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8669
9079
  fi
 
9080
  # Ok, now we have the path, separated by spaces, we can step through it
 
9081
  # and add multilib dir if necessary.
 
9082
  lt_tmp_lt_search_path_spec=
 
9083
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9084
  for lt_sys_path in $lt_search_path_spec; do
 
9085
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9086
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9087
    else
 
9088
      test -d "$lt_sys_path" && \
 
9089
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9090
    fi
 
9091
  done
 
9092
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9093
BEGIN {RS=" "; FS="/|\n";} {
 
9094
  lt_foo="";
 
9095
  lt_count=0;
 
9096
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9097
    if ($lt_i != "" && $lt_i != ".") {
 
9098
      if ($lt_i == "..") {
 
9099
        lt_count++;
 
9100
      } else {
 
9101
        if (lt_count == 0) {
 
9102
          lt_foo="/" $lt_i lt_foo;
 
9103
        } else {
 
9104
          lt_count--;
 
9105
        }
 
9106
      }
 
9107
    }
 
9108
  }
 
9109
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9110
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9111
}'`
 
9112
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8670
9113
else
8671
9114
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8672
9115
fi
8687
9130
  soname_spec='${libname}${release}${shared_ext}$major'
8688
9131
  ;;
8689
9132
 
8690
 
aix4* | aix5*)
 
9133
aix[4-9]*)
8691
9134
  version_type=linux
8692
9135
  need_lib_prefix=no
8693
9136
  need_version=no
8826
9269
  shlibpath_overrides_runpath=yes
8827
9270
  shlibpath_var=DYLD_LIBRARY_PATH
8828
9271
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8829
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8830
 
  if test "$GCC" = yes; then
8831
 
    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"`
8832
 
  else
8833
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8834
 
  fi
 
9272
 
 
9273
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8835
9274
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8836
9275
  ;;
8837
9276
 
8885
9324
    shlibpath_overrides_runpath=no
8886
9325
    hardcode_into_libs=yes
8887
9326
    ;;
8888
 
  freebsd*) # from 4.6 on
 
9327
  *) # from 4.6 on, and DragonFly
8889
9328
    shlibpath_overrides_runpath=yes
8890
9329
    hardcode_into_libs=yes
8891
9330
    ;;
8948
9387
  postinstall_cmds='chmod 555 $lib'
8949
9388
  ;;
8950
9389
 
8951
 
interix3*)
 
9390
interix[3-9]*)
8952
9391
  version_type=linux
8953
9392
  need_lib_prefix=no
8954
9393
  need_version=no
9019
9458
 
9020
9459
  # Append ld.so.conf contents to the search path
9021
9460
  if test -f /etc/ld.so.conf; then
9022
 
    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' ' '`
 
9461
    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' ' '`
9023
9462
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9024
9463
  fi
9025
9464
 
9125
9564
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9126
9565
  ;;
9127
9566
 
 
9567
rdos*)
 
9568
  dynamic_linker=no
 
9569
  ;;
 
9570
 
9128
9571
solaris*)
9129
9572
  version_type=linux
9130
9573
  need_lib_prefix=no
9221
9664
echo "${ECHO_T}$dynamic_linker" >&6; }
9222
9665
test "$dynamic_linker" = no && can_build_shared=no
9223
9666
 
 
9667
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9669
else
 
9670
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9671
fi
 
9672
 
 
9673
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9674
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9676
else
 
9677
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9678
fi
 
9679
 
 
9680
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9681
 
9224
9682
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9225
9683
if test "$GCC" = yes; then
9226
9684
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9278
9736
   darwin*)
9279
9737
       if test -n "$STRIP" ; then
9280
9738
         striplib="$STRIP -x"
 
9739
         old_striplib="$STRIP -S"
9281
9740
         { echo "$as_me:$LINENO: result: yes" >&5
9282
9741
echo "${ECHO_T}yes" >&6; }
9283
9742
       else
9539
9998
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9540
9999
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9541
10000
if test $ac_cv_lib_dld_shl_load = yes; then
9542
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10001
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9543
10002
else
9544
10003
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9545
10004
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9815
10274
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9816
10275
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9817
10276
if test $ac_cv_lib_dld_dld_link = yes; then
9818
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10277
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9819
10278
fi
9820
10279
 
9821
10280
 
9864
10323
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9865
10324
  lt_status=$lt_dlunknown
9866
10325
  cat > conftest.$ac_ext <<EOF
9867
 
#line 9867 "configure"
 
10326
#line 10326 "configure"
9868
10327
#include "confdefs.h"
9869
10328
 
9870
10329
#if HAVE_DLFCN_H
9964
10423
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9965
10424
  lt_status=$lt_dlunknown
9966
10425
  cat > conftest.$ac_ext <<EOF
9967
 
#line 9967 "configure"
 
10426
#line 10426 "configure"
9968
10427
#include "confdefs.h"
9969
10428
 
9970
10429
#if HAVE_DLFCN_H
10091
10550
  fi
10092
10551
  ;;
10093
10552
 
10094
 
aix4* | aix5*)
 
10553
aix[4-9]*)
10095
10554
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10096
10555
    test "$enable_shared" = yes && enable_static=no
10097
10556
  fi
10147
10606
    predeps \
10148
10607
    postdeps \
10149
10608
    compiler_lib_search_path \
 
10609
    compiler_lib_search_dirs \
10150
10610
    archive_cmds \
10151
10611
    archive_expsym_cmds \
10152
10612
    postinstall_cmds \
10162
10622
    module_cmds \
10163
10623
    module_expsym_cmds \
10164
10624
    lt_cv_prog_compiler_c_o \
 
10625
    fix_srcfile_path \
10165
10626
    exclude_expsyms \
10166
10627
    include_expsyms; do
10167
10628
 
10206
10667
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10207
10668
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10208
10669
#
10209
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10670
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10210
10671
# Free Software Foundation, Inc.
10211
10672
#
10212
10673
# This file is part of GNU Libtool:
10442
10903
# shared library.
10443
10904
postdeps=$lt_postdeps
10444
10905
 
 
10906
# The directories searched by this compiler when creating a shared
 
10907
# library
 
10908
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10909
 
10445
10910
# The library search path used internally by the compiler when linking
10446
10911
# a shared library.
10447
10912
compiler_lib_search_path=$lt_compiler_lib_search_path
10530
10995
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10531
10996
 
10532
10997
# Fix the shell variable \$srcfile for the compiler.
10533
 
fix_srcfile_path="$fix_srcfile_path"
 
10998
fix_srcfile_path=$lt_fix_srcfile_path
10534
10999
 
10535
11000
# Set to yes if exported symbols are required.
10536
11001
always_export_symbols=$always_export_symbols
10690
11155
predeps_CXX=
10691
11156
postdeps_CXX=
10692
11157
compiler_lib_search_path_CXX=
 
11158
compiler_lib_search_dirs_CXX=
10693
11159
 
10694
11160
# Source file extension for C++ test sources.
10695
11161
ac_ext=cpp
10699
11165
objext_CXX=$objext
10700
11166
 
10701
11167
# Code to be used in simple compile tests
10702
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11168
lt_simple_compile_test_code="int some_variable = 0;"
10703
11169
 
10704
11170
# Code to be used in simple link tests
10705
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11171
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10706
11172
 
10707
11173
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10708
11174
 
10718
11184
 
10719
11185
# save warnings/boilerplate of simple test code
10720
11186
ac_outfile=conftest.$ac_objext
10721
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11187
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10722
11188
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10723
11189
_lt_compiler_boilerplate=`cat conftest.err`
10724
11190
$rm conftest*
10725
11191
 
10726
11192
ac_outfile=conftest.$ac_objext
10727
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11193
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10728
11194
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10729
11195
_lt_linker_boilerplate=`cat conftest.err`
10730
 
$rm conftest*
 
11196
$rm -r conftest*
10731
11197
 
10732
11198
 
10733
11199
# Allow CC to be a program name with arguments.
10934
11400
    # FIXME: insert proper C++ library support
10935
11401
    ld_shlibs_CXX=no
10936
11402
    ;;
10937
 
  aix4* | aix5*)
 
11403
  aix[4-9]*)
10938
11404
    if test "$host_cpu" = ia64; then
10939
11405
      # On IA64, the linker does run time linking by default, so we don't
10940
11406
      # have to do anything special.
10947
11413
      # Test if we are trying to use run time linking or normal
10948
11414
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10949
11415
      # need to do runtime linking.
10950
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11416
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10951
11417
        for ld_flag in $LDFLAGS; do
10952
11418
          case $ld_flag in
10953
11419
          *-brtl*)
10983
11449
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10984
11450
        then
10985
11451
          # We have reworked collect2
10986
 
          hardcode_direct_CXX=yes
 
11452
          :
10987
11453
        else
10988
11454
          # We have old collect2
10989
11455
          hardcode_direct_CXX=unsupported
11057
11523
       } && test -s conftest$ac_exeext &&
11058
11524
       $as_test_x conftest$ac_exeext; then
11059
11525
 
11060
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11061
 
}'`
 
11526
lt_aix_libpath_sed='
 
11527
    /Import File Strings/,/^$/ {
 
11528
        /^0/ {
 
11529
            s/^0  *\(.*\)$/\1/
 
11530
            p
 
11531
        }
 
11532
    }'
 
11533
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11062
11534
# Check for a 64-bit object if we didn't find anything.
11063
 
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; }
11064
 
}'`; fi
 
11535
if test -z "$aix_libpath"; then
 
11536
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11537
fi
11065
11538
else
11066
11539
  echo "$as_me: failed program was:" >&5
11067
11540
sed 's/^/| /' conftest.$ac_ext >&5
11117
11590
       } && test -s conftest$ac_exeext &&
11118
11591
       $as_test_x conftest$ac_exeext; then
11119
11592
 
11120
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11121
 
}'`
 
11593
lt_aix_libpath_sed='
 
11594
    /Import File Strings/,/^$/ {
 
11595
        /^0/ {
 
11596
            s/^0  *\(.*\)$/\1/
 
11597
            p
 
11598
        }
 
11599
    }'
 
11600
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11122
11601
# Check for a 64-bit object if we didn't find anything.
11123
 
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; }
11124
 
}'`; fi
 
11602
if test -z "$aix_libpath"; then
 
11603
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11604
fi
11125
11605
else
11126
11606
  echo "$as_me: failed program was:" >&5
11127
11607
sed 's/^/| /' conftest.$ac_ext >&5
11191
11671
    fi
11192
11672
  ;;
11193
11673
      darwin* | rhapsody*)
11194
 
        case $host_os in
11195
 
        rhapsody* | darwin1.[012])
11196
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11197
 
         ;;
11198
 
       *) # Darwin 1.3 on
11199
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11200
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11201
 
         else
11202
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11203
 
             10.[012])
11204
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11205
 
               ;;
11206
 
             10.*)
11207
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11208
 
               ;;
11209
 
           esac
11210
 
         fi
11211
 
         ;;
11212
 
        esac
11213
11674
      archive_cmds_need_lc_CXX=no
11214
11675
      hardcode_direct_CXX=no
11215
11676
      hardcode_automatic_CXX=yes
11216
11677
      hardcode_shlibpath_var_CXX=unsupported
11217
11678
      whole_archive_flag_spec_CXX=''
11218
11679
      link_all_deplibs_CXX=yes
11219
 
 
11220
 
    if test "$GXX" = yes ; then
11221
 
      lt_int_apple_cc_single_mod=no
 
11680
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11681
      if test "$GXX" = yes ; then
11222
11682
      output_verbose_link_cmd='echo'
11223
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11224
 
       lt_int_apple_cc_single_mod=yes
 
11683
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11684
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11685
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11686
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11687
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11688
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11689
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11225
11690
      fi
11226
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11227
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11228
 
      else
11229
 
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11230
 
        fi
11231
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11233
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11234
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11235
 
          else
11236
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11237
 
          fi
11238
 
            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}'
11239
11691
      else
11240
11692
      case $cc_basename in
11241
11693
        xlc*)
11242
11694
         output_verbose_link_cmd='echo'
11243
 
          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'
 
11695
          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'
11244
11696
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11245
11697
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11246
 
          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}'
 
11698
          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}'
11247
11699
          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}'
11248
11700
          ;;
11249
11701
       *)
11326
11778
      hardcode_libdir_separator_CXX=:
11327
11779
 
11328
11780
      case $host_cpu in
11329
 
      hppa*64*|ia64*)
11330
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11331
 
        ;;
 
11781
      hppa*64*|ia64*) ;;
11332
11782
      *)
11333
11783
        export_dynamic_flag_spec_CXX='${wl}-E'
11334
11784
        ;;
11396
11846
        ;;
11397
11847
    esac
11398
11848
    ;;
11399
 
  interix3*)
 
11849
  interix[3-9]*)
11400
11850
    hardcode_direct_CXX=no
11401
11851
    hardcode_shlibpath_var_CXX=no
11402
11852
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488
11938
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11489
11939
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11490
11940
        ;;
11491
 
      pgCC*)
 
11941
      pgCC* | pgcpp*)
11492
11942
        # Portland Group C++ compiler
11493
11943
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11494
11944
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11516
11966
        # dependencies.
11517
11967
        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'
11518
11968
        ;;
 
11969
      *)
 
11970
        case `$CC -V 2>&1 | sed 5q` in
 
11971
        *Sun\ C*)
 
11972
          # Sun C++ 5.9
 
11973
          no_undefined_flag_CXX=' -zdefs'
 
11974
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11975
          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'
 
11976
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11977
          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'
 
11978
 
 
11979
          # Not sure whether something based on
 
11980
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11981
          # would be better.
 
11982
          output_verbose_link_cmd='echo'
 
11983
 
 
11984
          # Archives containing C++ object files must be created using
 
11985
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11986
          # necessary to make sure instantiated templates are included
 
11987
          # in the archive.
 
11988
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11989
          ;;
 
11990
        esac
 
11991
        ;;
11519
11992
    esac
11520
11993
    ;;
11521
11994
  lynxos*)
11554
12027
    ld_shlibs_CXX=no
11555
12028
    ;;
11556
12029
  openbsd*)
11557
 
    hardcode_direct_CXX=yes
11558
 
    hardcode_shlibpath_var_CXX=no
11559
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11560
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11562
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11563
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11564
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12030
    if test -f /usr/libexec/ld.so; then
 
12031
      hardcode_direct_CXX=yes
 
12032
      hardcode_shlibpath_var_CXX=no
 
12033
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12034
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12035
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12036
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12037
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12038
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12039
      fi
 
12040
      output_verbose_link_cmd='echo'
 
12041
    else
 
12042
      ld_shlibs_CXX=no
11565
12043
    fi
11566
 
    output_verbose_link_cmd='echo'
11567
12044
    ;;
11568
12045
  osf3*)
11569
12046
    case $cc_basename in
11725
12202
        case $host_os in
11726
12203
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11727
12204
          *)
11728
 
            # The C++ compiler is used as linker so we must use $wl
11729
 
            # flag to pass the commands to the underlying system
11730
 
            # linker. We must also pass each convience library through
11731
 
            # to the system linker between allextract/defaultextract.
11732
 
            # The C++ compiler will combine linker options so we
11733
 
            # cannot just pass the convience library names through
11734
 
            # without $wl.
 
12205
            # The compiler driver will combine and reorder linker options,
 
12206
            # but understands `-z linker_flag'.
11735
12207
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11736
 
            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'
 
12208
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11737
12209
            ;;
11738
12210
        esac
11739
12211
        link_all_deplibs_CXX=yes
11780
12252
          fi
11781
12253
 
11782
12254
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12255
          case $host_os in
 
12256
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12257
          *)
 
12258
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12259
            ;;
 
12260
          esac
11783
12261
        fi
11784
12262
        ;;
11785
12263
    esac
11867
12345
GCC_CXX="$GXX"
11868
12346
LD_CXX="$LD"
11869
12347
 
11870
 
 
11871
12348
cat > conftest.$ac_ext <<EOF
11872
12349
class Foo
11873
12350
{
11969
12446
 
11970
12447
$rm -f confest.$objext
11971
12448
 
 
12449
compiler_lib_search_dirs_CXX=
 
12450
if test -n "$compiler_lib_search_path_CXX"; then
 
12451
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12452
fi
 
12453
 
11972
12454
# PORTME: override above test on systems where it is broken
11973
12455
case $host_os in
11974
 
interix3*)
 
12456
interix[3-9]*)
11975
12457
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11976
12458
  # hack all around it, let's just trust "g++" to DTRT.
11977
12459
  predep_objects_CXX=
11979
12461
  postdeps_CXX=
11980
12462
  ;;
11981
12463
 
 
12464
linux*)
 
12465
  case `$CC -V 2>&1 | sed 5q` in
 
12466
  *Sun\ C*)
 
12467
    # Sun C++ 5.9
 
12468
    #
 
12469
    # The more standards-conforming stlport4 library is
 
12470
    # incompatible with the Cstd library. Avoid specifying
 
12471
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12472
    # -library=stlport4 depends on it.
 
12473
    case " $CXX $CXXFLAGS " in
 
12474
    *" -library=stlport4 "*)
 
12475
      solaris_use_stlport4=yes
 
12476
      ;;
 
12477
    esac
 
12478
    if test "$solaris_use_stlport4" != yes; then
 
12479
      postdeps_CXX='-library=Cstd -library=Crun'
 
12480
    fi
 
12481
    ;;
 
12482
  esac
 
12483
  ;;
 
12484
 
11982
12485
solaris*)
11983
12486
  case $cc_basename in
11984
12487
  CC*)
 
12488
    # The more standards-conforming stlport4 library is
 
12489
    # incompatible with the Cstd library. Avoid specifying
 
12490
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12491
    # -library=stlport4 depends on it.
 
12492
    case " $CXX $CXXFLAGS " in
 
12493
    *" -library=stlport4 "*)
 
12494
      solaris_use_stlport4=yes
 
12495
      ;;
 
12496
    esac
 
12497
 
11985
12498
    # Adding this requires a known-good setup of shared libraries for
11986
12499
    # Sun compiler versions before 5.6, else PIC objects from an old
11987
12500
    # archive will be linked into the output, leading to subtle bugs.
11988
 
    postdeps_CXX='-lCstd -lCrun'
 
12501
    if test "$solaris_use_stlport4" != yes; then
 
12502
      postdeps_CXX='-library=Cstd -library=Crun'
 
12503
    fi
11989
12504
    ;;
11990
12505
  esac
11991
12506
  ;;
11992
12507
esac
11993
12508
 
11994
 
 
11995
12509
case " $postdeps_CXX " in
11996
12510
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11997
12511
esac
12022
12536
      # like `-m68040'.
12023
12537
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12024
12538
      ;;
12025
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12539
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12026
12540
      # PIC is the default for these OSes.
12027
12541
      ;;
12028
 
    mingw* | os2* | pw32*)
 
12542
    mingw* | cygwin* | os2* | pw32*)
12029
12543
      # This hack is so that the source file can tell whether it is being
12030
12544
      # built for inclusion in a dll (and should export symbols for example).
 
12545
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12546
      # (--disable-auto-import) libraries
12031
12547
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12032
12548
      ;;
12033
12549
    darwin* | rhapsody*)
12039
12555
      # DJGPP does not support shared libraries at all
12040
12556
      lt_prog_compiler_pic_CXX=
12041
12557
      ;;
12042
 
    interix3*)
 
12558
    interix[3-9]*)
12043
12559
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12044
12560
      # Instead, we relocate shared libraries at runtime.
12045
12561
      ;;
12065
12581
    esac
12066
12582
  else
12067
12583
    case $host_os in
12068
 
      aix4* | aix5*)
 
12584
      aix[4-9]*)
12069
12585
        # All AIX code is PIC.
12070
12586
        if test "$host_cpu" = ia64; then
12071
12587
          # AIX 5 now supports IA64 processor
12161
12677
            lt_prog_compiler_pic_CXX='-KPIC'
12162
12678
            lt_prog_compiler_static_CXX='-static'
12163
12679
            ;;
12164
 
          pgCC*)
 
12680
          pgCC* | pgcpp*)
12165
12681
            # Portland Group C++ compiler.
12166
12682
            lt_prog_compiler_wl_CXX='-Wl,'
12167
12683
            lt_prog_compiler_pic_CXX='-fpic'
12175
12691
            lt_prog_compiler_static_CXX='-non_shared'
12176
12692
            ;;
12177
12693
          *)
 
12694
            case `$CC -V 2>&1 | sed 5q` in
 
12695
            *Sun\ C*)
 
12696
              # Sun C++ 5.9
 
12697
              lt_prog_compiler_pic_CXX='-KPIC'
 
12698
              lt_prog_compiler_static_CXX='-Bstatic'
 
12699
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12700
              ;;
 
12701
            esac
12178
12702
            ;;
12179
12703
        esac
12180
12704
        ;;
12284
12808
 
12285
12809
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12286
12810
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12287
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12811
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12288
12812
  echo $ECHO_N "(cached) $ECHO_C" >&6
12289
12813
else
12290
 
  lt_prog_compiler_pic_works_CXX=no
 
12814
  lt_cv_prog_compiler_pic_works_CXX=no
12291
12815
  ac_outfile=conftest.$ac_objext
12292
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12816
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12293
12817
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12294
12818
   # Insert the option either (1) after the last *FLAGS variable, or
12295
12819
   # (2) before a word containing "conftest.", or (3) at the end.
12300
12824
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12301
12825
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12302
12826
   -e 's:$: $lt_compiler_flag:'`
12303
 
   (eval echo "\"\$as_me:12303: $lt_compile\"" >&5)
 
12827
   (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
12304
12828
   (eval "$lt_compile" 2>conftest.err)
12305
12829
   ac_status=$?
12306
12830
   cat conftest.err >&5
12307
 
   echo "$as_me:12307: \$? = $ac_status" >&5
 
12831
   echo "$as_me:12831: \$? = $ac_status" >&5
12308
12832
   if (exit $ac_status) && test -s "$ac_outfile"; then
12309
12833
     # The compiler can only warn and ignore the option if not recognized
12310
12834
     # So say no if there are warnings other than the usual output.
12311
12835
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12312
12836
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12313
12837
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12314
 
       lt_prog_compiler_pic_works_CXX=yes
 
12838
       lt_cv_prog_compiler_pic_works_CXX=yes
12315
12839
     fi
12316
12840
   fi
12317
12841
   $rm conftest*
12318
12842
 
12319
12843
fi
12320
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12321
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12844
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12845
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12322
12846
 
12323
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12847
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12324
12848
    case $lt_prog_compiler_pic_CXX in
12325
12849
     "" | " "*) ;;
12326
12850
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12347
12871
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12348
12872
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12349
12873
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12350
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12874
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12351
12875
  echo $ECHO_N "(cached) $ECHO_C" >&6
12352
12876
else
12353
 
  lt_prog_compiler_static_works_CXX=no
 
12877
  lt_cv_prog_compiler_static_works_CXX=no
12354
12878
   save_LDFLAGS="$LDFLAGS"
12355
12879
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12356
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12880
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12357
12881
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12358
12882
     # The linker can only warn and ignore the option if not recognized
12359
12883
     # So say no if there are warnings
12363
12887
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12364
12888
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12365
12889
       if diff conftest.exp conftest.er2 >/dev/null; then
12366
 
         lt_prog_compiler_static_works_CXX=yes
 
12890
         lt_cv_prog_compiler_static_works_CXX=yes
12367
12891
       fi
12368
12892
     else
12369
 
       lt_prog_compiler_static_works_CXX=yes
 
12893
       lt_cv_prog_compiler_static_works_CXX=yes
12370
12894
     fi
12371
12895
   fi
12372
 
   $rm conftest*
 
12896
   $rm -r conftest*
12373
12897
   LDFLAGS="$save_LDFLAGS"
12374
12898
 
12375
12899
fi
12376
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12377
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12900
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12901
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12378
12902
 
12379
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12903
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12380
12904
    :
12381
12905
else
12382
12906
    lt_prog_compiler_static_CXX=
12393
12917
   mkdir conftest
12394
12918
   cd conftest
12395
12919
   mkdir out
12396
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12920
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12397
12921
 
12398
12922
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12399
12923
   # Insert the option either (1) after the last *FLAGS variable, or
12404
12928
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12405
12929
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12406
12930
   -e 's:$: $lt_compiler_flag:'`
12407
 
   (eval echo "\"\$as_me:12407: $lt_compile\"" >&5)
 
12931
   (eval echo "\"\$as_me:12931: $lt_compile\"" >&5)
12408
12932
   (eval "$lt_compile" 2>out/conftest.err)
12409
12933
   ac_status=$?
12410
12934
   cat out/conftest.err >&5
12411
 
   echo "$as_me:12411: \$? = $ac_status" >&5
 
12935
   echo "$as_me:12935: \$? = $ac_status" >&5
12412
12936
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12413
12937
   then
12414
12938
     # The compiler can only warn and ignore the option if not recognized
12461
12985
 
12462
12986
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12463
12987
  case $host_os in
12464
 
  aix4* | aix5*)
 
12988
  aix[4-9]*)
12465
12989
    # If we're using GNU nm, then we don't want the "-C" option.
12466
12990
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12467
12991
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12474
12998
    export_symbols_cmds_CXX="$ltdll_cmds"
12475
12999
  ;;
12476
13000
  cygwin* | mingw*)
12477
 
    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'
 
13001
    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'
12478
13002
  ;;
12479
13003
  linux* | k*bsd*-gnu)
12480
13004
    link_all_deplibs_CXX=no
12483
13007
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484
13008
  ;;
12485
13009
  esac
 
13010
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12486
13011
 
12487
13012
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488
13013
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12508
13033
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12509
13034
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12510
13035
      $rm conftest*
12511
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13036
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12512
13037
 
12513
13038
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514
13039
  (eval $ac_compile) 2>&5
12566
13091
version_type=none
12567
13092
dynamic_linker="$host_os ld.so"
12568
13093
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12569
 
if test "$GCC" = yes; then
12570
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12572
 
    # if the path contains ";" then we assume it to be the separator
12573
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12574
 
    # assumed that no part of a normal pathname contains ";" but that should
12575
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12576
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12577
 
  else
12578
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12579
 
  fi
12580
 
else
12581
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12582
 
fi
 
13094
 
12583
13095
need_lib_prefix=unknown
12584
13096
hardcode_into_libs=no
12585
13097
 
12597
13109
  soname_spec='${libname}${release}${shared_ext}$major'
12598
13110
  ;;
12599
13111
 
12600
 
aix4* | aix5*)
 
13112
aix[4-9]*)
12601
13113
  version_type=linux
12602
13114
  need_lib_prefix=no
12603
13115
  need_version=no
12736
13248
  shlibpath_overrides_runpath=yes
12737
13249
  shlibpath_var=DYLD_LIBRARY_PATH
12738
13250
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12739
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12740
 
  if test "$GCC" = yes; then
12741
 
    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"`
12742
 
  else
12743
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12744
 
  fi
 
13251
 
12745
13252
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12746
13253
  ;;
12747
13254
 
12795
13302
    shlibpath_overrides_runpath=no
12796
13303
    hardcode_into_libs=yes
12797
13304
    ;;
12798
 
  freebsd*) # from 4.6 on
 
13305
  *) # from 4.6 on, and DragonFly
12799
13306
    shlibpath_overrides_runpath=yes
12800
13307
    hardcode_into_libs=yes
12801
13308
    ;;
12858
13365
  postinstall_cmds='chmod 555 $lib'
12859
13366
  ;;
12860
13367
 
12861
 
interix3*)
 
13368
interix[3-9]*)
12862
13369
  version_type=linux
12863
13370
  need_lib_prefix=no
12864
13371
  need_version=no
12929
13436
 
12930
13437
  # Append ld.so.conf contents to the search path
12931
13438
  if test -f /etc/ld.so.conf; then
12932
 
    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' ' '`
 
13439
    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' ' '`
12933
13440
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12934
13441
  fi
12935
13442
 
13035
13542
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13036
13543
  ;;
13037
13544
 
 
13545
rdos*)
 
13546
  dynamic_linker=no
 
13547
  ;;
 
13548
 
13038
13549
solaris*)
13039
13550
  version_type=linux
13040
13551
  need_lib_prefix=no
13131
13642
echo "${ECHO_T}$dynamic_linker" >&6; }
13132
13643
test "$dynamic_linker" = no && can_build_shared=no
13133
13644
 
 
13645
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13647
else
 
13648
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13649
fi
 
13650
 
 
13651
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13652
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13654
else
 
13655
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13656
fi
 
13657
 
 
13658
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13659
 
13134
13660
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13135
13661
if test "$GCC" = yes; then
13136
13662
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13214
13740
    predeps_CXX \
13215
13741
    postdeps_CXX \
13216
13742
    compiler_lib_search_path_CXX \
 
13743
    compiler_lib_search_dirs_CXX \
13217
13744
    archive_cmds_CXX \
13218
13745
    archive_expsym_cmds_CXX \
13219
13746
    postinstall_cmds_CXX \
13229
13756
    module_cmds_CXX \
13230
13757
    module_expsym_cmds_CXX \
13231
13758
    lt_cv_prog_compiler_c_o_CXX \
 
13759
    fix_srcfile_path_CXX \
13232
13760
    exclude_expsyms_CXX \
13233
13761
    include_expsyms_CXX; do
13234
13762
 
13461
13989
# shared library.
13462
13990
postdeps=$lt_postdeps_CXX
13463
13991
 
 
13992
# The directories searched by this compiler when creating a shared
 
13993
# library
 
13994
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
13995
 
13464
13996
# The library search path used internally by the compiler when linking
13465
13997
# a shared library.
13466
13998
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13549
14081
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13550
14082
 
13551
14083
# Fix the shell variable \$srcfile for the compiler.
13552
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14084
fix_srcfile_path=$lt_fix_srcfile_path
13553
14085
 
13554
14086
# Set to yes if exported symbols are required.
13555
14087
always_export_symbols=$always_export_symbols_CXX
13640
14172
objext_F77=$objext
13641
14173
 
13642
14174
# Code to be used in simple compile tests
13643
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14175
lt_simple_compile_test_code="\
 
14176
      subroutine t
 
14177
      return
 
14178
      end
 
14179
"
13644
14180
 
13645
14181
# Code to be used in simple link tests
13646
 
lt_simple_link_test_code="      program t\n      end\n"
 
14182
lt_simple_link_test_code="\
 
14183
      program t
 
14184
      end
 
14185
"
13647
14186
 
13648
14187
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13649
14188
 
13659
14198
 
13660
14199
# save warnings/boilerplate of simple test code
13661
14200
ac_outfile=conftest.$ac_objext
13662
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14201
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13663
14202
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664
14203
_lt_compiler_boilerplate=`cat conftest.err`
13665
14204
$rm conftest*
13666
14205
 
13667
14206
ac_outfile=conftest.$ac_objext
13668
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14207
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13669
14208
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13670
14209
_lt_linker_boilerplate=`cat conftest.err`
13671
 
$rm conftest*
 
14210
$rm -r conftest*
13672
14211
 
13673
14212
 
13674
14213
# Allow CC to be a program name with arguments.
13706
14245
    postinstall_cmds='$RANLIB $lib'
13707
14246
  fi
13708
14247
  ;;
13709
 
aix4* | aix5*)
 
14248
aix[4-9]*)
13710
14249
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13711
14250
    test "$enable_shared" = yes && enable_static=no
13712
14251
  fi
13752
14291
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13753
14292
      ;;
13754
14293
 
13755
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14294
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13756
14295
      # PIC is the default for these OSes.
13757
14296
      ;;
13758
14297
 
13759
 
    mingw* | pw32* | os2*)
 
14298
    mingw* | cygwin* | pw32* | os2*)
13760
14299
      # This hack is so that the source file can tell whether it is being
13761
14300
      # built for inclusion in a dll (and should export symbols for example).
 
14301
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14302
      # (--disable-auto-import) libraries
13762
14303
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13763
14304
      ;;
13764
14305
 
13768
14309
      lt_prog_compiler_pic_F77='-fno-common'
13769
14310
      ;;
13770
14311
 
13771
 
    interix3*)
 
14312
    interix[3-9]*)
13772
14313
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13773
14314
      # Instead, we relocate shared libraries at runtime.
13774
14315
      ;;
13826
14367
       esac
13827
14368
       ;;
13828
14369
 
13829
 
    mingw* | pw32* | os2*)
 
14370
    mingw* | cygwin* | pw32* | os2*)
13830
14371
      # This hack is so that the source file can tell whether it is being
13831
14372
      # built for inclusion in a dll (and should export symbols for example).
13832
14373
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13878
14419
        # All Alpha code is PIC.
13879
14420
        lt_prog_compiler_static_F77='-non_shared'
13880
14421
        ;;
 
14422
      *)
 
14423
        case `$CC -V 2>&1 | sed 5q` in
 
14424
        *Sun\ C*)
 
14425
          # Sun C 5.9
 
14426
          lt_prog_compiler_pic_F77='-KPIC'
 
14427
          lt_prog_compiler_static_F77='-Bstatic'
 
14428
          lt_prog_compiler_wl_F77='-Wl,'
 
14429
          ;;
 
14430
        *Sun\ F*)
 
14431
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14432
          lt_prog_compiler_pic_F77='-KPIC'
 
14433
          lt_prog_compiler_static_F77='-Bstatic'
 
14434
          lt_prog_compiler_wl_F77=''
 
14435
          ;;
 
14436
        esac
 
14437
        ;;
13881
14438
      esac
13882
14439
      ;;
13883
14440
 
13887
14444
      lt_prog_compiler_static_F77='-non_shared'
13888
14445
      ;;
13889
14446
 
 
14447
    rdos*)
 
14448
      lt_prog_compiler_static_F77='-non_shared'
 
14449
      ;;
 
14450
 
13890
14451
    solaris*)
13891
14452
      lt_prog_compiler_pic_F77='-KPIC'
13892
14453
      lt_prog_compiler_static_F77='-Bstatic'
13949
14510
 
13950
14511
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13951
14512
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13952
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14513
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13953
14514
  echo $ECHO_N "(cached) $ECHO_C" >&6
13954
14515
else
13955
 
  lt_prog_compiler_pic_works_F77=no
 
14516
  lt_cv_prog_compiler_pic_works_F77=no
13956
14517
  ac_outfile=conftest.$ac_objext
13957
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14518
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13958
14519
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13959
14520
   # Insert the option either (1) after the last *FLAGS variable, or
13960
14521
   # (2) before a word containing "conftest.", or (3) at the end.
13965
14526
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966
14527
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967
14528
   -e 's:$: $lt_compiler_flag:'`
13968
 
   (eval echo "\"\$as_me:13968: $lt_compile\"" >&5)
 
14529
   (eval echo "\"\$as_me:14529: $lt_compile\"" >&5)
13969
14530
   (eval "$lt_compile" 2>conftest.err)
13970
14531
   ac_status=$?
13971
14532
   cat conftest.err >&5
13972
 
   echo "$as_me:13972: \$? = $ac_status" >&5
 
14533
   echo "$as_me:14533: \$? = $ac_status" >&5
13973
14534
   if (exit $ac_status) && test -s "$ac_outfile"; then
13974
14535
     # The compiler can only warn and ignore the option if not recognized
13975
14536
     # So say no if there are warnings other than the usual output.
13976
14537
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13977
14538
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978
14539
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979
 
       lt_prog_compiler_pic_works_F77=yes
 
14540
       lt_cv_prog_compiler_pic_works_F77=yes
13980
14541
     fi
13981
14542
   fi
13982
14543
   $rm conftest*
13983
14544
 
13984
14545
fi
13985
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13986
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14546
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14547
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
13987
14548
 
13988
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14549
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13989
14550
    case $lt_prog_compiler_pic_F77 in
13990
14551
     "" | " "*) ;;
13991
14552
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14012
14573
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14013
14574
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14014
14575
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14015
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14576
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14016
14577
  echo $ECHO_N "(cached) $ECHO_C" >&6
14017
14578
else
14018
 
  lt_prog_compiler_static_works_F77=no
 
14579
  lt_cv_prog_compiler_static_works_F77=no
14019
14580
   save_LDFLAGS="$LDFLAGS"
14020
14581
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14021
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14582
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14022
14583
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14023
14584
     # The linker can only warn and ignore the option if not recognized
14024
14585
     # So say no if there are warnings
14028
14589
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14029
14590
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030
14591
       if diff conftest.exp conftest.er2 >/dev/null; then
14031
 
         lt_prog_compiler_static_works_F77=yes
 
14592
         lt_cv_prog_compiler_static_works_F77=yes
14032
14593
       fi
14033
14594
     else
14034
 
       lt_prog_compiler_static_works_F77=yes
 
14595
       lt_cv_prog_compiler_static_works_F77=yes
14035
14596
     fi
14036
14597
   fi
14037
 
   $rm conftest*
 
14598
   $rm -r conftest*
14038
14599
   LDFLAGS="$save_LDFLAGS"
14039
14600
 
14040
14601
fi
14041
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14042
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14602
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14603
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14043
14604
 
14044
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14605
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14045
14606
    :
14046
14607
else
14047
14608
    lt_prog_compiler_static_F77=
14058
14619
   mkdir conftest
14059
14620
   cd conftest
14060
14621
   mkdir out
14061
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14622
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14062
14623
 
14063
14624
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14064
14625
   # Insert the option either (1) after the last *FLAGS variable, or
14069
14630
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070
14631
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071
14632
   -e 's:$: $lt_compiler_flag:'`
14072
 
   (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
 
14633
   (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14073
14634
   (eval "$lt_compile" 2>out/conftest.err)
14074
14635
   ac_status=$?
14075
14636
   cat out/conftest.err >&5
14076
 
   echo "$as_me:14076: \$? = $ac_status" >&5
 
14637
   echo "$as_me:14637: \$? = $ac_status" >&5
14077
14638
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14078
14639
   then
14079
14640
     # The compiler can only warn and ignore the option if not recognized
14153
14714
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14154
14715
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14155
14716
  # as well as any symbol that contains `d'.
14156
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14717
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14157
14718
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14158
14719
  # platforms (ab)use it in PIC code, but their linkers get confused if
14159
14720
  # the symbol is explicitly referenced.  Since portable code cannot
14160
14721
  # rely on this symbol name, it's probably fine to never include it in
14161
14722
  # preloaded symbol tables.
 
14723
  # Exclude shared library initialization/finalization symbols.
14162
14724
  extract_expsyms_cmds=
14163
14725
  # Just being paranoid about ensuring that cc_basename is set.
14164
14726
  for cc_temp in $compiler""; do
14217
14779
 
14218
14780
    # See if GNU ld supports shared libraries.
14219
14781
    case $host_os in
14220
 
    aix3* | aix4* | aix5*)
 
14782
    aix[3-9]*)
14221
14783
      # On AIX/PPC, the GNU linker is very broken
14222
14784
      if test "$host_cpu" != ia64; then
14223
14785
        ld_shlibs_F77=no
14265
14827
      allow_undefined_flag_F77=unsupported
14266
14828
      always_export_symbols_F77=no
14267
14829
      enable_shared_with_static_runtimes_F77=yes
14268
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14830
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14269
14831
 
14270
14832
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14271
14833
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14283
14845
      fi
14284
14846
      ;;
14285
14847
 
14286
 
    interix3*)
 
14848
    interix[3-9]*)
14287
14849
      hardcode_direct_F77=no
14288
14850
      hardcode_shlibpath_var_F77=no
14289
14851
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14298
14860
      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'
14299
14861
      ;;
14300
14862
 
14301
 
    linux* | k*bsd*-gnu)
 
14863
    gnu* | linux* | k*bsd*-gnu)
14302
14864
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303
14865
        tmp_addflag=
14304
14866
        case $cc_basename,$host_cpu in
14316
14878
        ifc* | ifort*)                  # Intel Fortran compiler
14317
14879
          tmp_addflag=' -nofor_main' ;;
14318
14880
        esac
14319
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14881
        case `$CC -V 2>&1 | sed 5q` in
 
14882
        *Sun\ C*)                       # Sun C 5.9
 
14883
          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'
 
14884
          tmp_sharedflag='-G' ;;
 
14885
        *Sun\ F*)                       # Sun Fortran 8.3
 
14886
          tmp_sharedflag='-G' ;;
 
14887
        *)
 
14888
          tmp_sharedflag='-shared' ;;
 
14889
        esac
 
14890
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320
14891
 
14321
14892
        if test $supports_anon_versioning = yes; then
14322
14893
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14323
14894
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14324
14895
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14325
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14896
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14326
14897
        fi
14327
14898
        link_all_deplibs_F77=no
14328
14899
      else
14428
14999
      fi
14429
15000
      ;;
14430
15001
 
14431
 
    aix4* | aix5*)
 
15002
    aix[4-9]*)
14432
15003
      if test "$host_cpu" = ia64; then
14433
15004
        # On IA64, the linker does run time linking by default, so we don't
14434
15005
        # have to do anything special.
14448
15019
        # Test if we are trying to use run time linking or normal
14449
15020
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14450
15021
        # need to do runtime linking.
14451
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15022
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14452
15023
          for ld_flag in $LDFLAGS; do
14453
15024
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14454
15025
            aix_use_runtimelinking=yes
14482
15053
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14483
15054
          then
14484
15055
          # We have reworked collect2
14485
 
          hardcode_direct_F77=yes
 
15056
          :
14486
15057
          else
14487
15058
          # We have old collect2
14488
15059
          hardcode_direct_F77=unsupported
14546
15117
       } && test -s conftest$ac_exeext &&
14547
15118
       $as_test_x conftest$ac_exeext; then
14548
15119
 
14549
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14550
 
}'`
 
15120
lt_aix_libpath_sed='
 
15121
    /Import File Strings/,/^$/ {
 
15122
        /^0/ {
 
15123
            s/^0  *\(.*\)$/\1/
 
15124
            p
 
15125
        }
 
15126
    }'
 
15127
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14551
15128
# Check for a 64-bit object if we didn't find anything.
14552
 
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; }
14553
 
}'`; fi
 
15129
if test -z "$aix_libpath"; then
 
15130
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15131
fi
14554
15132
else
14555
15133
  echo "$as_me: failed program was:" >&5
14556
15134
sed 's/^/| /' conftest.$ac_ext >&5
14595
15173
       } && test -s conftest$ac_exeext &&
14596
15174
       $as_test_x conftest$ac_exeext; then
14597
15175
 
14598
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14599
 
}'`
 
15176
lt_aix_libpath_sed='
 
15177
    /Import File Strings/,/^$/ {
 
15178
        /^0/ {
 
15179
            s/^0  *\(.*\)$/\1/
 
15180
            p
 
15181
        }
 
15182
    }'
 
15183
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14600
15184
# Check for a 64-bit object if we didn't find anything.
14601
 
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; }
14602
 
}'`; fi
 
15185
if test -z "$aix_libpath"; then
 
15186
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15187
fi
14603
15188
else
14604
15189
  echo "$as_me: failed program was:" >&5
14605
15190
sed 's/^/| /' conftest.$ac_ext >&5
14653
15238
      # The linker will automatically build a .lib file if we build a DLL.
14654
15239
      old_archive_From_new_cmds_F77='true'
14655
15240
      # FIXME: Should let the user specify the lib program.
14656
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15241
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14657
15242
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14658
15243
      enable_shared_with_static_runtimes_F77=yes
14659
15244
      ;;
14686
15271
      link_all_deplibs_F77=yes
14687
15272
    if test "$GCC" = yes ; then
14688
15273
        output_verbose_link_cmd='echo'
14689
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14690
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14691
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14692
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14693
 
      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}'
 
15274
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15275
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15276
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15277
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14694
15278
    else
14695
15279
      case $cc_basename in
14696
15280
        xlc*)
14697
15281
         output_verbose_link_cmd='echo'
14698
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15282
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14699
15283
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14700
15284
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14701
 
         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}'
 
15285
         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}'
14702
15286
          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}'
14703
15287
          ;;
14704
15288
       *)
14860
15444
      ;;
14861
15445
 
14862
15446
    openbsd*)
14863
 
      hardcode_direct_F77=yes
14864
 
      hardcode_shlibpath_var_F77=no
14865
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14868
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14869
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15447
      if test -f /usr/libexec/ld.so; then
 
15448
        hardcode_direct_F77=yes
 
15449
        hardcode_shlibpath_var_F77=no
 
15450
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15451
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15452
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15453
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15454
          export_dynamic_flag_spec_F77='${wl}-E'
 
15455
        else
 
15456
          case $host_os in
 
15457
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15458
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15459
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15460
             ;;
 
15461
           *)
 
15462
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15463
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15464
             ;;
 
15465
          esac
 
15466
        fi
14870
15467
      else
14871
 
       case $host_os in
14872
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14873
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14874
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14875
 
           ;;
14876
 
         *)
14877
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14878
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14879
 
           ;;
14880
 
       esac
 
15468
        ld_shlibs_F77=no
14881
15469
      fi
14882
15470
      ;;
14883
15471
 
14936
15524
      case $host_os in
14937
15525
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14938
15526
      *)
14939
 
        # The compiler driver will combine linker options so we
14940
 
        # cannot just pass the convience library names through
14941
 
        # without $wl, iff we do not link with $LD.
14942
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15527
        # The compiler driver will combine and reorder linker options,
 
15528
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15529
        # but is careful enough not to reorder.
14943
15530
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14944
 
        case $wlarc in
14945
 
        '')
14946
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14947
 
        *)
14948
 
          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' ;;
14949
 
        esac ;;
 
15531
        if test "$GCC" = yes; then
 
15532
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15533
        else
 
15534
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15535
        fi
 
15536
        ;;
14950
15537
      esac
14951
15538
      link_all_deplibs_F77=yes
14952
15539
      ;;
15003
15590
      fi
15004
15591
      ;;
15005
15592
 
15006
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15593
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15007
15594
      no_undefined_flag_F77='${wl}-z,text'
15008
15595
      archive_cmds_need_lc_F77=no
15009
15596
      hardcode_shlibpath_var_F77=no
15080
15667
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15081
15668
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15082
15669
      $rm conftest*
15083
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15670
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15084
15671
 
15085
15672
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086
15673
  (eval $ac_compile) 2>&5
15138
15725
version_type=none
15139
15726
dynamic_linker="$host_os ld.so"
15140
15727
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141
 
if test "$GCC" = yes; then
15142
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15143
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15144
 
    # if the path contains ";" then we assume it to be the separator
15145
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15146
 
    # assumed that no part of a normal pathname contains ";" but that should
15147
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15148
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15149
 
  else
15150
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15151
 
  fi
15152
 
else
15153
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15154
 
fi
 
15728
 
15155
15729
need_lib_prefix=unknown
15156
15730
hardcode_into_libs=no
15157
15731
 
15169
15743
  soname_spec='${libname}${release}${shared_ext}$major'
15170
15744
  ;;
15171
15745
 
15172
 
aix4* | aix5*)
 
15746
aix[4-9]*)
15173
15747
  version_type=linux
15174
15748
  need_lib_prefix=no
15175
15749
  need_version=no
15308
15882
  shlibpath_overrides_runpath=yes
15309
15883
  shlibpath_var=DYLD_LIBRARY_PATH
15310
15884
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15311
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15312
 
  if test "$GCC" = yes; then
15313
 
    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"`
15314
 
  else
15315
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15316
 
  fi
 
15885
 
15317
15886
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15318
15887
  ;;
15319
15888
 
15367
15936
    shlibpath_overrides_runpath=no
15368
15937
    hardcode_into_libs=yes
15369
15938
    ;;
15370
 
  freebsd*) # from 4.6 on
 
15939
  *) # from 4.6 on, and DragonFly
15371
15940
    shlibpath_overrides_runpath=yes
15372
15941
    hardcode_into_libs=yes
15373
15942
    ;;
15430
15999
  postinstall_cmds='chmod 555 $lib'
15431
16000
  ;;
15432
16001
 
15433
 
interix3*)
 
16002
interix[3-9]*)
15434
16003
  version_type=linux
15435
16004
  need_lib_prefix=no
15436
16005
  need_version=no
15501
16070
 
15502
16071
  # Append ld.so.conf contents to the search path
15503
16072
  if test -f /etc/ld.so.conf; then
15504
 
    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' ' '`
 
16073
    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' ' '`
15505
16074
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15506
16075
  fi
15507
16076
 
15607
16176
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15608
16177
  ;;
15609
16178
 
 
16179
rdos*)
 
16180
  dynamic_linker=no
 
16181
  ;;
 
16182
 
15610
16183
solaris*)
15611
16184
  version_type=linux
15612
16185
  need_lib_prefix=no
15703
16276
echo "${ECHO_T}$dynamic_linker" >&6; }
15704
16277
test "$dynamic_linker" = no && can_build_shared=no
15705
16278
 
 
16279
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16281
else
 
16282
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16283
fi
 
16284
 
 
16285
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16286
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16288
else
 
16289
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16290
fi
 
16291
 
 
16292
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16293
 
15706
16294
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15707
16295
if test "$GCC" = yes; then
15708
16296
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15786
16374
    predeps_F77 \
15787
16375
    postdeps_F77 \
15788
16376
    compiler_lib_search_path_F77 \
 
16377
    compiler_lib_search_dirs_F77 \
15789
16378
    archive_cmds_F77 \
15790
16379
    archive_expsym_cmds_F77 \
15791
16380
    postinstall_cmds_F77 \
15801
16390
    module_cmds_F77 \
15802
16391
    module_expsym_cmds_F77 \
15803
16392
    lt_cv_prog_compiler_c_o_F77 \
 
16393
    fix_srcfile_path_F77 \
15804
16394
    exclude_expsyms_F77 \
15805
16395
    include_expsyms_F77; do
15806
16396
 
16033
16623
# shared library.
16034
16624
postdeps=$lt_postdeps_F77
16035
16625
 
 
16626
# The directories searched by this compiler when creating a shared
 
16627
# library
 
16628
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16629
 
16036
16630
# The library search path used internally by the compiler when linking
16037
16631
# a shared library.
16038
16632
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16121
16715
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16122
16716
 
16123
16717
# Fix the shell variable \$srcfile for the compiler.
16124
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16718
fix_srcfile_path=$lt_fix_srcfile_path
16125
16719
 
16126
16720
# Set to yes if exported symbols are required.
16127
16721
always_export_symbols=$always_export_symbols_F77
16179
16773
objext_GCJ=$objext
16180
16774
 
16181
16775
# Code to be used in simple compile tests
16182
 
lt_simple_compile_test_code="class foo {}\n"
 
16776
lt_simple_compile_test_code="class foo {}"
16183
16777
 
16184
16778
# Code to be used in simple link tests
16185
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16779
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16186
16780
 
16187
16781
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16188
16782
 
16198
16792
 
16199
16793
# save warnings/boilerplate of simple test code
16200
16794
ac_outfile=conftest.$ac_objext
16201
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16795
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16202
16796
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16203
16797
_lt_compiler_boilerplate=`cat conftest.err`
16204
16798
$rm conftest*
16205
16799
 
16206
16800
ac_outfile=conftest.$ac_objext
16207
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16801
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16208
16802
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16209
16803
_lt_linker_boilerplate=`cat conftest.err`
16210
 
$rm conftest*
 
16804
$rm -r conftest*
16211
16805
 
16212
16806
 
16213
16807
# Allow CC to be a program name with arguments.
16245
16839
else
16246
16840
  lt_cv_prog_compiler_rtti_exceptions=no
16247
16841
  ac_outfile=conftest.$ac_objext
16248
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16842
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16249
16843
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16250
16844
   # Insert the option either (1) after the last *FLAGS variable, or
16251
16845
   # (2) before a word containing "conftest.", or (3) at the end.
16256
16850
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16257
16851
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16258
16852
   -e 's:$: $lt_compiler_flag:'`
16259
 
   (eval echo "\"\$as_me:16259: $lt_compile\"" >&5)
 
16853
   (eval echo "\"\$as_me:16853: $lt_compile\"" >&5)
16260
16854
   (eval "$lt_compile" 2>conftest.err)
16261
16855
   ac_status=$?
16262
16856
   cat conftest.err >&5
16263
 
   echo "$as_me:16263: \$? = $ac_status" >&5
 
16857
   echo "$as_me:16857: \$? = $ac_status" >&5
16264
16858
   if (exit $ac_status) && test -s "$ac_outfile"; then
16265
16859
     # The compiler can only warn and ignore the option if not recognized
16266
16860
     # So say no if there are warnings other than the usual output.
16311
16905
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16312
16906
      ;;
16313
16907
 
16314
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16908
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16315
16909
      # PIC is the default for these OSes.
16316
16910
      ;;
16317
16911
 
16318
 
    mingw* | pw32* | os2*)
 
16912
    mingw* | cygwin* | pw32* | os2*)
16319
16913
      # This hack is so that the source file can tell whether it is being
16320
16914
      # built for inclusion in a dll (and should export symbols for example).
16321
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16915
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16916
      # (--disable-auto-import) libraries
 
16917
 
16322
16918
      ;;
16323
16919
 
16324
16920
    darwin* | rhapsody*)
16327
16923
      lt_prog_compiler_pic_GCJ='-fno-common'
16328
16924
      ;;
16329
16925
 
16330
 
    interix3*)
 
16926
    interix[3-9]*)
16331
16927
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16332
16928
      # Instead, we relocate shared libraries at runtime.
16333
16929
      ;;
16385
16981
       esac
16386
16982
       ;;
16387
16983
 
16388
 
    mingw* | pw32* | os2*)
 
16984
    mingw* | cygwin* | pw32* | os2*)
16389
16985
      # This hack is so that the source file can tell whether it is being
16390
16986
      # built for inclusion in a dll (and should export symbols for example).
16391
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16987
 
16392
16988
      ;;
16393
16989
 
16394
16990
    hpux9* | hpux10* | hpux11*)
16437
17033
        # All Alpha code is PIC.
16438
17034
        lt_prog_compiler_static_GCJ='-non_shared'
16439
17035
        ;;
 
17036
      *)
 
17037
        case `$CC -V 2>&1 | sed 5q` in
 
17038
        *Sun\ C*)
 
17039
          # Sun C 5.9
 
17040
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17041
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17042
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17043
          ;;
 
17044
        *Sun\ F*)
 
17045
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17046
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17047
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17048
          lt_prog_compiler_wl_GCJ=''
 
17049
          ;;
 
17050
        esac
 
17051
        ;;
16440
17052
      esac
16441
17053
      ;;
16442
17054
 
16446
17058
      lt_prog_compiler_static_GCJ='-non_shared'
16447
17059
      ;;
16448
17060
 
 
17061
    rdos*)
 
17062
      lt_prog_compiler_static_GCJ='-non_shared'
 
17063
      ;;
 
17064
 
16449
17065
    solaris*)
16450
17066
      lt_prog_compiler_pic_GCJ='-KPIC'
16451
17067
      lt_prog_compiler_static_GCJ='-Bstatic'
16508
17124
 
16509
17125
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16510
17126
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16511
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17127
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16512
17128
  echo $ECHO_N "(cached) $ECHO_C" >&6
16513
17129
else
16514
 
  lt_prog_compiler_pic_works_GCJ=no
 
17130
  lt_cv_prog_compiler_pic_works_GCJ=no
16515
17131
  ac_outfile=conftest.$ac_objext
16516
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17132
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16517
17133
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16518
17134
   # Insert the option either (1) after the last *FLAGS variable, or
16519
17135
   # (2) before a word containing "conftest.", or (3) at the end.
16524
17140
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16525
17141
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16526
17142
   -e 's:$: $lt_compiler_flag:'`
16527
 
   (eval echo "\"\$as_me:16527: $lt_compile\"" >&5)
 
17143
   (eval echo "\"\$as_me:17143: $lt_compile\"" >&5)
16528
17144
   (eval "$lt_compile" 2>conftest.err)
16529
17145
   ac_status=$?
16530
17146
   cat conftest.err >&5
16531
 
   echo "$as_me:16531: \$? = $ac_status" >&5
 
17147
   echo "$as_me:17147: \$? = $ac_status" >&5
16532
17148
   if (exit $ac_status) && test -s "$ac_outfile"; then
16533
17149
     # The compiler can only warn and ignore the option if not recognized
16534
17150
     # So say no if there are warnings other than the usual output.
16535
17151
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16536
17152
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16537
17153
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16538
 
       lt_prog_compiler_pic_works_GCJ=yes
 
17154
       lt_cv_prog_compiler_pic_works_GCJ=yes
16539
17155
     fi
16540
17156
   fi
16541
17157
   $rm conftest*
16542
17158
 
16543
17159
fi
16544
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16545
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
17160
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17161
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16546
17162
 
16547
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17163
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16548
17164
    case $lt_prog_compiler_pic_GCJ in
16549
17165
     "" | " "*) ;;
16550
17166
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16571
17187
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16572
17188
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16573
17189
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16574
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17190
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16575
17191
  echo $ECHO_N "(cached) $ECHO_C" >&6
16576
17192
else
16577
 
  lt_prog_compiler_static_works_GCJ=no
 
17193
  lt_cv_prog_compiler_static_works_GCJ=no
16578
17194
   save_LDFLAGS="$LDFLAGS"
16579
17195
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16580
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17196
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16581
17197
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16582
17198
     # The linker can only warn and ignore the option if not recognized
16583
17199
     # So say no if there are warnings
16587
17203
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16588
17204
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16589
17205
       if diff conftest.exp conftest.er2 >/dev/null; then
16590
 
         lt_prog_compiler_static_works_GCJ=yes
 
17206
         lt_cv_prog_compiler_static_works_GCJ=yes
16591
17207
       fi
16592
17208
     else
16593
 
       lt_prog_compiler_static_works_GCJ=yes
 
17209
       lt_cv_prog_compiler_static_works_GCJ=yes
16594
17210
     fi
16595
17211
   fi
16596
 
   $rm conftest*
 
17212
   $rm -r conftest*
16597
17213
   LDFLAGS="$save_LDFLAGS"
16598
17214
 
16599
17215
fi
16600
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16601
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17216
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17217
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16602
17218
 
16603
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17219
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16604
17220
    :
16605
17221
else
16606
17222
    lt_prog_compiler_static_GCJ=
16617
17233
   mkdir conftest
16618
17234
   cd conftest
16619
17235
   mkdir out
16620
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17236
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16621
17237
 
16622
17238
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16623
17239
   # Insert the option either (1) after the last *FLAGS variable, or
16628
17244
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16629
17245
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16630
17246
   -e 's:$: $lt_compiler_flag:'`
16631
 
   (eval echo "\"\$as_me:16631: $lt_compile\"" >&5)
 
17247
   (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
16632
17248
   (eval "$lt_compile" 2>out/conftest.err)
16633
17249
   ac_status=$?
16634
17250
   cat out/conftest.err >&5
16635
 
   echo "$as_me:16635: \$? = $ac_status" >&5
 
17251
   echo "$as_me:17251: \$? = $ac_status" >&5
16636
17252
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16637
17253
   then
16638
17254
     # The compiler can only warn and ignore the option if not recognized
16712
17328
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16713
17329
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16714
17330
  # as well as any symbol that contains `d'.
16715
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17331
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16716
17332
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16717
17333
  # platforms (ab)use it in PIC code, but their linkers get confused if
16718
17334
  # the symbol is explicitly referenced.  Since portable code cannot
16719
17335
  # rely on this symbol name, it's probably fine to never include it in
16720
17336
  # preloaded symbol tables.
 
17337
  # Exclude shared library initialization/finalization symbols.
16721
17338
  extract_expsyms_cmds=
16722
17339
  # Just being paranoid about ensuring that cc_basename is set.
16723
17340
  for cc_temp in $compiler""; do
16776
17393
 
16777
17394
    # See if GNU ld supports shared libraries.
16778
17395
    case $host_os in
16779
 
    aix3* | aix4* | aix5*)
 
17396
    aix[3-9]*)
16780
17397
      # On AIX/PPC, the GNU linker is very broken
16781
17398
      if test "$host_cpu" != ia64; then
16782
17399
        ld_shlibs_GCJ=no
16824
17441
      allow_undefined_flag_GCJ=unsupported
16825
17442
      always_export_symbols_GCJ=no
16826
17443
      enable_shared_with_static_runtimes_GCJ=yes
16827
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17444
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16828
17445
 
16829
17446
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16830
17447
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16842
17459
      fi
16843
17460
      ;;
16844
17461
 
16845
 
    interix3*)
 
17462
    interix[3-9]*)
16846
17463
      hardcode_direct_GCJ=no
16847
17464
      hardcode_shlibpath_var_GCJ=no
16848
17465
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16857
17474
      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'
16858
17475
      ;;
16859
17476
 
16860
 
    linux* | k*bsd*-gnu)
 
17477
    gnu* | linux* | k*bsd*-gnu)
16861
17478
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16862
17479
        tmp_addflag=
16863
17480
        case $cc_basename,$host_cpu in
16875
17492
        ifc* | ifort*)                  # Intel Fortran compiler
16876
17493
          tmp_addflag=' -nofor_main' ;;
16877
17494
        esac
16878
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17495
        case `$CC -V 2>&1 | sed 5q` in
 
17496
        *Sun\ C*)                       # Sun C 5.9
 
17497
          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'
 
17498
          tmp_sharedflag='-G' ;;
 
17499
        *Sun\ F*)                       # Sun Fortran 8.3
 
17500
          tmp_sharedflag='-G' ;;
 
17501
        *)
 
17502
          tmp_sharedflag='-shared' ;;
 
17503
        esac
 
17504
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16879
17505
 
16880
17506
        if test $supports_anon_versioning = yes; then
16881
17507
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16882
17508
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16883
17509
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16884
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17510
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16885
17511
        fi
16886
17512
        link_all_deplibs_GCJ=no
16887
17513
      else
16987
17613
      fi
16988
17614
      ;;
16989
17615
 
16990
 
    aix4* | aix5*)
 
17616
    aix[4-9]*)
16991
17617
      if test "$host_cpu" = ia64; then
16992
17618
        # On IA64, the linker does run time linking by default, so we don't
16993
17619
        # have to do anything special.
17007
17633
        # Test if we are trying to use run time linking or normal
17008
17634
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17009
17635
        # need to do runtime linking.
17010
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17636
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17011
17637
          for ld_flag in $LDFLAGS; do
17012
17638
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17013
17639
            aix_use_runtimelinking=yes
17041
17667
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17042
17668
          then
17043
17669
          # We have reworked collect2
17044
 
          hardcode_direct_GCJ=yes
 
17670
          :
17045
17671
          else
17046
17672
          # We have old collect2
17047
17673
          hardcode_direct_GCJ=unsupported
17115
17741
       } && test -s conftest$ac_exeext &&
17116
17742
       $as_test_x conftest$ac_exeext; then
17117
17743
 
17118
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17119
 
}'`
 
17744
lt_aix_libpath_sed='
 
17745
    /Import File Strings/,/^$/ {
 
17746
        /^0/ {
 
17747
            s/^0  *\(.*\)$/\1/
 
17748
            p
 
17749
        }
 
17750
    }'
 
17751
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17120
17752
# Check for a 64-bit object if we didn't find anything.
17121
 
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; }
17122
 
}'`; fi
 
17753
if test -z "$aix_libpath"; then
 
17754
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17755
fi
17123
17756
else
17124
17757
  echo "$as_me: failed program was:" >&5
17125
17758
sed 's/^/| /' conftest.$ac_ext >&5
17174
17807
       } && test -s conftest$ac_exeext &&
17175
17808
       $as_test_x conftest$ac_exeext; then
17176
17809
 
17177
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17178
 
}'`
 
17810
lt_aix_libpath_sed='
 
17811
    /Import File Strings/,/^$/ {
 
17812
        /^0/ {
 
17813
            s/^0  *\(.*\)$/\1/
 
17814
            p
 
17815
        }
 
17816
    }'
 
17817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17179
17818
# Check for a 64-bit object if we didn't find anything.
17180
 
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; }
17181
 
}'`; fi
 
17819
if test -z "$aix_libpath"; then
 
17820
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17821
fi
17182
17822
else
17183
17823
  echo "$as_me: failed program was:" >&5
17184
17824
sed 's/^/| /' conftest.$ac_ext >&5
17232
17872
      # The linker will automatically build a .lib file if we build a DLL.
17233
17873
      old_archive_From_new_cmds_GCJ='true'
17234
17874
      # FIXME: Should let the user specify the lib program.
17235
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17875
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17236
17876
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17237
17877
      enable_shared_with_static_runtimes_GCJ=yes
17238
17878
      ;;
17265
17905
      link_all_deplibs_GCJ=yes
17266
17906
    if test "$GCC" = yes ; then
17267
17907
        output_verbose_link_cmd='echo'
17268
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17269
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17270
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17271
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17272
 
      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}'
 
17908
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17909
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17910
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
17911
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17273
17912
    else
17274
17913
      case $cc_basename in
17275
17914
        xlc*)
17276
17915
         output_verbose_link_cmd='echo'
17277
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17916
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17278
17917
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17279
17918
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17280
 
         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}'
 
17919
         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}'
17281
17920
          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}'
17282
17921
          ;;
17283
17922
       *)
17439
18078
      ;;
17440
18079
 
17441
18080
    openbsd*)
17442
 
      hardcode_direct_GCJ=yes
17443
 
      hardcode_shlibpath_var_GCJ=no
17444
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17445
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17446
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17447
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18081
      if test -f /usr/libexec/ld.so; then
 
18082
        hardcode_direct_GCJ=yes
 
18083
        hardcode_shlibpath_var_GCJ=no
 
18084
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18085
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18086
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18087
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18088
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18089
        else
 
18090
          case $host_os in
 
18091
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18092
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18093
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18094
             ;;
 
18095
           *)
 
18096
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18097
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18098
             ;;
 
18099
          esac
 
18100
        fi
17449
18101
      else
17450
 
       case $host_os in
17451
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17452
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17453
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17454
 
           ;;
17455
 
         *)
17456
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17457
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17458
 
           ;;
17459
 
       esac
 
18102
        ld_shlibs_GCJ=no
17460
18103
      fi
17461
18104
      ;;
17462
18105
 
17515
18158
      case $host_os in
17516
18159
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17517
18160
      *)
17518
 
        # The compiler driver will combine linker options so we
17519
 
        # cannot just pass the convience library names through
17520
 
        # without $wl, iff we do not link with $LD.
17521
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18161
        # The compiler driver will combine and reorder linker options,
 
18162
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18163
        # but is careful enough not to reorder.
17522
18164
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17523
 
        case $wlarc in
17524
 
        '')
17525
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17526
 
        *)
17527
 
          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' ;;
17528
 
        esac ;;
 
18165
        if test "$GCC" = yes; then
 
18166
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18167
        else
 
18168
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18169
        fi
 
18170
        ;;
17529
18171
      esac
17530
18172
      link_all_deplibs_GCJ=yes
17531
18173
      ;;
17582
18224
      fi
17583
18225
      ;;
17584
18226
 
17585
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18227
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17586
18228
      no_undefined_flag_GCJ='${wl}-z,text'
17587
18229
      archive_cmds_need_lc_GCJ=no
17588
18230
      hardcode_shlibpath_var_GCJ=no
17659
18301
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17660
18302
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17661
18303
      $rm conftest*
17662
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18304
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17663
18305
 
17664
18306
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665
18307
  (eval $ac_compile) 2>&5
17717
18359
version_type=none
17718
18360
dynamic_linker="$host_os ld.so"
17719
18361
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17720
 
if test "$GCC" = yes; then
17721
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17722
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17723
 
    # if the path contains ";" then we assume it to be the separator
17724
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17725
 
    # assumed that no part of a normal pathname contains ";" but that should
17726
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17727
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17728
 
  else
17729
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17730
 
  fi
17731
 
else
17732
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17733
 
fi
 
18362
 
17734
18363
need_lib_prefix=unknown
17735
18364
hardcode_into_libs=no
17736
18365
 
17748
18377
  soname_spec='${libname}${release}${shared_ext}$major'
17749
18378
  ;;
17750
18379
 
17751
 
aix4* | aix5*)
 
18380
aix[4-9]*)
17752
18381
  version_type=linux
17753
18382
  need_lib_prefix=no
17754
18383
  need_version=no
17887
18516
  shlibpath_overrides_runpath=yes
17888
18517
  shlibpath_var=DYLD_LIBRARY_PATH
17889
18518
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17890
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17891
 
  if test "$GCC" = yes; then
17892
 
    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"`
17893
 
  else
17894
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17895
 
  fi
 
18519
 
17896
18520
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17897
18521
  ;;
17898
18522
 
17946
18570
    shlibpath_overrides_runpath=no
17947
18571
    hardcode_into_libs=yes
17948
18572
    ;;
17949
 
  freebsd*) # from 4.6 on
 
18573
  *) # from 4.6 on, and DragonFly
17950
18574
    shlibpath_overrides_runpath=yes
17951
18575
    hardcode_into_libs=yes
17952
18576
    ;;
18009
18633
  postinstall_cmds='chmod 555 $lib'
18010
18634
  ;;
18011
18635
 
18012
 
interix3*)
 
18636
interix[3-9]*)
18013
18637
  version_type=linux
18014
18638
  need_lib_prefix=no
18015
18639
  need_version=no
18080
18704
 
18081
18705
  # Append ld.so.conf contents to the search path
18082
18706
  if test -f /etc/ld.so.conf; then
18083
 
    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' ' '`
 
18707
    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' ' '`
18084
18708
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18085
18709
  fi
18086
18710
 
18186
18810
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18187
18811
  ;;
18188
18812
 
 
18813
rdos*)
 
18814
  dynamic_linker=no
 
18815
  ;;
 
18816
 
18189
18817
solaris*)
18190
18818
  version_type=linux
18191
18819
  need_lib_prefix=no
18282
18910
echo "${ECHO_T}$dynamic_linker" >&6; }
18283
18911
test "$dynamic_linker" = no && can_build_shared=no
18284
18912
 
 
18913
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18915
else
 
18916
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18917
fi
 
18918
 
 
18919
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18920
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18922
else
 
18923
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18924
fi
 
18925
 
 
18926
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18927
 
18285
18928
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18286
18929
if test "$GCC" = yes; then
18287
18930
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18365
19008
    predeps_GCJ \
18366
19009
    postdeps_GCJ \
18367
19010
    compiler_lib_search_path_GCJ \
 
19011
    compiler_lib_search_dirs_GCJ \
18368
19012
    archive_cmds_GCJ \
18369
19013
    archive_expsym_cmds_GCJ \
18370
19014
    postinstall_cmds_GCJ \
18380
19024
    module_cmds_GCJ \
18381
19025
    module_expsym_cmds_GCJ \
18382
19026
    lt_cv_prog_compiler_c_o_GCJ \
 
19027
    fix_srcfile_path_GCJ \
18383
19028
    exclude_expsyms_GCJ \
18384
19029
    include_expsyms_GCJ; do
18385
19030
 
18612
19257
# shared library.
18613
19258
postdeps=$lt_postdeps_GCJ
18614
19259
 
 
19260
# The directories searched by this compiler when creating a shared
 
19261
# library
 
19262
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19263
 
18615
19264
# The library search path used internally by the compiler when linking
18616
19265
# a shared library.
18617
19266
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18700
19349
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18701
19350
 
18702
19351
# Fix the shell variable \$srcfile for the compiler.
18703
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19352
fix_srcfile_path=$lt_fix_srcfile_path
18704
19353
 
18705
19354
# Set to yes if exported symbols are required.
18706
19355
always_export_symbols=$always_export_symbols_GCJ
18757
19406
objext_RC=$objext
18758
19407
 
18759
19408
# Code to be used in simple compile tests
18760
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19409
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18761
19410
 
18762
19411
# Code to be used in simple link tests
18763
19412
lt_simple_link_test_code="$lt_simple_compile_test_code"
18776
19425
 
18777
19426
# save warnings/boilerplate of simple test code
18778
19427
ac_outfile=conftest.$ac_objext
18779
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19428
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18780
19429
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18781
19430
_lt_compiler_boilerplate=`cat conftest.err`
18782
19431
$rm conftest*
18783
19432
 
18784
19433
ac_outfile=conftest.$ac_objext
18785
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19434
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18786
19435
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18787
19436
_lt_linker_boilerplate=`cat conftest.err`
18788
 
$rm conftest*
 
19437
$rm -r conftest*
18789
19438
 
18790
19439
 
18791
19440
# Allow CC to be a program name with arguments.
18845
19494
    predeps_RC \
18846
19495
    postdeps_RC \
18847
19496
    compiler_lib_search_path_RC \
 
19497
    compiler_lib_search_dirs_RC \
18848
19498
    archive_cmds_RC \
18849
19499
    archive_expsym_cmds_RC \
18850
19500
    postinstall_cmds_RC \
18860
19510
    module_cmds_RC \
18861
19511
    module_expsym_cmds_RC \
18862
19512
    lt_cv_prog_compiler_c_o_RC \
 
19513
    fix_srcfile_path_RC \
18863
19514
    exclude_expsyms_RC \
18864
19515
    include_expsyms_RC; do
18865
19516
 
19092
19743
# shared library.
19093
19744
postdeps=$lt_postdeps_RC
19094
19745
 
 
19746
# The directories searched by this compiler when creating a shared
 
19747
# library
 
19748
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19749
 
19095
19750
# The library search path used internally by the compiler when linking
19096
19751
# a shared library.
19097
19752
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19180
19835
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19181
19836
 
19182
19837
# Fix the shell variable \$srcfile for the compiler.
19183
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
19838
fix_srcfile_path=$lt_fix_srcfile_path
19184
19839
 
19185
19840
# Set to yes if exported symbols are required.
19186
19841
always_export_symbols=$always_export_symbols_RC
22173
22828
 
22174
22829
fi
22175
22830
 
22176
 
 
22177
 
 
22178
 
if test "x$ac_cv_lib_c_r_pthread_create" == "xyes"; then
 
22831
                         if test "x$ac_cv_lib_c_r_pthread_create" == "xyes"; then
22179
22832
  WITHPTHREADS_TRUE=
22180
22833
  WITHPTHREADS_FALSE='#'
22181
22834
else
22184
22837
fi
22185
22838
 
22186
22839
                else
22187
 
 
22188
 
 
22189
 
if true; then
 
22840
                         if true; then
22190
22841
  WITHPTHREADS_TRUE=
22191
22842
  WITHPTHREADS_FALSE='#'
22192
22843
else
22196
22847
 
22197
22848
                fi
22198
22849
        else
22199
 
 
22200
 
 
22201
 
if true; then
 
22850
                 if true; then
22202
22851
  WITHPTHREADS_TRUE=
22203
22852
  WITHPTHREADS_FALSE='#'
22204
22853
else
22208
22857
 
22209
22858
        fi
22210
22859
else
22211
 
 
22212
 
 
22213
 
if false; then
 
22860
         if false; then
22214
22861
  WITHPTHREADS_TRUE=
22215
22862
  WITHPTHREADS_FALSE='#'
22216
22863
else
22432
23079
and freealut_LIBS to avoid the need to call pkg-config.
22433
23080
See the pkg-config man page for more details.
22434
23081
 
22435
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23082
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22436
23083
See \`config.log' for more details." >&5
22437
23084
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22438
23085
is in your PATH or set the PKG_CONFIG environment variable to the full
22442
23089
and freealut_LIBS to avoid the need to call pkg-config.
22443
23090
See the pkg-config man page for more details.
22444
23091
 
22445
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23092
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22446
23093
See \`config.log' for more details." >&2;}
22447
23094
   { (exit 1); exit 1; }; }
22448
23095
else
22450
23097
        freealut_LIBS=$pkg_cv_freealut_LIBS
22451
23098
        { echo "$as_me:$LINENO: result: yes" >&5
22452
23099
echo "${ECHO_T}yes" >&6; }
22453
 
 
22454
 
 
22455
 
if true; then
 
23100
         if true; then
22456
23101
  WITHSOUND_TRUE=
22457
23102
  WITHSOUND_FALSE='#'
22458
23103
else
22466
23111
 
22467
23112
fi
22468
23113
else
22469
 
 
22470
 
 
22471
 
if false; then
 
23114
         if false; then
22472
23115
  WITHSOUND_TRUE=
22473
23116
  WITHSOUND_FALSE='#'
22474
23117
else
23410
24053
and Wand_LIBS to avoid the need to call pkg-config.
23411
24054
See the pkg-config man page for more details.
23412
24055
 
23413
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24056
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23414
24057
See \`config.log' for more details." >&5
23415
24058
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23416
24059
is in your PATH or set the PKG_CONFIG environment variable to the full
23420
24063
and Wand_LIBS to avoid the need to call pkg-config.
23421
24064
See the pkg-config man page for more details.
23422
24065
 
23423
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24066
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23424
24067
See \`config.log' for more details." >&2;}
23425
24068
   { (exit 1); exit 1; }; }
23426
24069
else
23647
24290
   { (exit 1); exit 1; }; }
23648
24291
fi
23649
24292
 
23650
 
 
23651
 
 
23652
 
if test "x$ac_cv_lib_GLEW_glewInit" == "xyes"; then
 
24293
         if test "x$ac_cv_lib_GLEW_glewInit" == "xyes"; then
23653
24294
  WITHGLEW_TRUE=
23654
24295
  WITHGLEW_FALSE='#'
23655
24296
else
23658
24299
fi
23659
24300
 
23660
24301
else
23661
 
 
23662
 
 
23663
 
if false; then
 
24302
         if false; then
23664
24303
  WITHGLEW_TRUE=
23665
24304
  WITHGLEW_FALSE='#'
23666
24305
else
23694
24333
        fi
23695
24334
fi
23696
24335
 
23697
 
 
23698
 
 
23699
 
if test "$INSTALL_XSCREENSAVER_CONFIG_FILES" == "yes"; then
 
24336
 if test "$INSTALL_XSCREENSAVER_CONFIG_FILES" == "yes"; then
23700
24337
  INSTALL_XSCREENSAVER_CONFIG_FILES_TRUE=
23701
24338
  INSTALL_XSCREENSAVER_CONFIG_FILES_FALSE='#'
23702
24339
else
23726
24363
        fi
23727
24364
fi
23728
24365
 
23729
 
 
23730
 
 
23731
 
if test "$INSTALL_KDE_CONFIG_FILES" == "yes"; then
 
24366
 if test "$INSTALL_KDE_CONFIG_FILES" == "yes"; then
23732
24367
  INSTALL_KDE_CONFIG_FILES_TRUE=
23733
24368
  INSTALL_KDE_CONFIG_FILES_FALSE='#'
23734
24369
else
24290
24925
ac_pwd='$ac_pwd'
24291
24926
srcdir='$srcdir'
24292
24927
INSTALL='$INSTALL'
 
24928
MKDIR_P='$MKDIR_P'
24293
24929
_ACEOF
24294
24930
 
24295
24931
cat >>$CONFIG_STATUS <<\_ACEOF
24505
25141
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24506
25142
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24507
25143
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
25144
am__isrc!$am__isrc$ac_delim
24508
25145
CYGPATH_W!$CYGPATH_W$ac_delim
24509
25146
PACKAGE!$PACKAGE$ac_delim
24510
25147
VERSION!$VERSION$ac_delim
24553
25190
host_cpu!$host_cpu$ac_delim
24554
25191
host_vendor!$host_vendor$ac_delim
24555
25192
host_os!$host_os$ac_delim
 
25193
SED!$SED$ac_delim
24556
25194
GREP!$GREP$ac_delim
24557
25195
EGREP!$EGREP$ac_delim
24558
25196
LN_S!$LN_S$ac_delim
24559
25197
ECHO!$ECHO$ac_delim
24560
25198
AR!$AR$ac_delim
24561
25199
RANLIB!$RANLIB$ac_delim
 
25200
DSYMUTIL!$DSYMUTIL$ac_delim
 
25201
_ACEOF
 
25202
 
 
25203
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25204
    break
 
25205
  elif $ac_last_try; then
 
25206
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25207
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25208
   { (exit 1); exit 1; }; }
 
25209
  else
 
25210
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25211
  fi
 
25212
done
 
25213
 
 
25214
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25215
if test -n "$ac_eof"; then
 
25216
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25217
  ac_eof=`expr $ac_eof + 1`
 
25218
fi
 
25219
 
 
25220
cat >>$CONFIG_STATUS <<_ACEOF
 
25221
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25222
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25223
_ACEOF
 
25224
sed '
 
25225
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25226
s/^/s,@/; s/!/@,|#_!!_#|/
 
25227
:n
 
25228
t n
 
25229
s/'"$ac_delim"'$/,g/; t
 
25230
s/$/\\/; p
 
25231
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25232
' >>$CONFIG_STATUS <conf$$subs.sed
 
25233
rm -f conf$$subs.sed
 
25234
cat >>$CONFIG_STATUS <<_ACEOF
 
25235
CEOF$ac_eof
 
25236
_ACEOF
 
25237
 
 
25238
 
 
25239
ac_delim='%!_!# '
 
25240
for ac_last_try in false false false false false :; do
 
25241
  cat >conf$$subs.sed <<_ACEOF
 
25242
NMEDIT!$NMEDIT$ac_delim
24562
25243
CPP!$CPP$ac_delim
24563
25244
CXXCPP!$CXXCPP$ac_delim
24564
25245
F77!$F77$ac_delim
24565
 
_ACEOF
24566
 
 
24567
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24568
 
    break
24569
 
  elif $ac_last_try; then
24570
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24571
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24572
 
   { (exit 1); exit 1; }; }
24573
 
  else
24574
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24575
 
  fi
24576
 
done
24577
 
 
24578
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24579
 
if test -n "$ac_eof"; then
24580
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24581
 
  ac_eof=`expr $ac_eof + 1`
24582
 
fi
24583
 
 
24584
 
cat >>$CONFIG_STATUS <<_ACEOF
24585
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24586
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24587
 
_ACEOF
24588
 
sed '
24589
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24590
 
s/^/s,@/; s/!/@,|#_!!_#|/
24591
 
:n
24592
 
t n
24593
 
s/'"$ac_delim"'$/,g/; t
24594
 
s/$/\\/; p
24595
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24596
 
' >>$CONFIG_STATUS <conf$$subs.sed
24597
 
rm -f conf$$subs.sed
24598
 
cat >>$CONFIG_STATUS <<_ACEOF
24599
 
CEOF$ac_eof
24600
 
_ACEOF
24601
 
 
24602
 
 
24603
 
ac_delim='%!_!# '
24604
 
for ac_last_try in false false false false false :; do
24605
 
  cat >conf$$subs.sed <<_ACEOF
24606
25246
FFLAGS!$FFLAGS$ac_delim
24607
25247
ac_ct_F77!$ac_ct_F77$ac_delim
24608
25248
LIBTOOL!$LIBTOOL$ac_delim
24635
25275
LTLIBOBJS!$LTLIBOBJS$ac_delim
24636
25276
_ACEOF
24637
25277
 
24638
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
 
25278
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24639
25279
    break
24640
25280
  elif $ac_last_try; then
24641
25281
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24862
25502
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24863
25503
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24864
25504
  esac
 
25505
  ac_MKDIR_P=$MKDIR_P
 
25506
  case $MKDIR_P in
 
25507
  [\\/$]* | ?:[\\/]* ) ;;
 
25508
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
25509
  esac
24865
25510
_ACEOF
24866
25511
 
24867
25512
cat >>$CONFIG_STATUS <<\_ACEOF
24915
25560
s&@abs_builddir@&$ac_abs_builddir&;t t
24916
25561
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24917
25562
s&@INSTALL@&$ac_INSTALL&;t t
 
25563
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24918
25564
$ac_datarootdir_hack
24919
25565
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24920
25566
 
25030
25676
  fi
25031
25677
  rm -f "$tmp/out12"
25032
25678
# Compute $ac_file's index in $config_headers.
 
25679
_am_arg=$ac_file
25033
25680
_am_stamp_count=1
25034
25681
for _am_header in $config_headers :; do
25035
25682
  case $_am_header in
25036
 
    $ac_file | $ac_file:* )
 
25683
    $_am_arg | $_am_arg:* )
25037
25684
      break ;;
25038
25685
    * )
25039
25686
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25040
25687
  esac
25041
25688
done
25042
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25043
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25044
 
         X$ac_file : 'X\(//\)[^/]' \| \
25045
 
         X$ac_file : 'X\(//\)$' \| \
25046
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25047
 
echo X$ac_file |
 
25689
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
25690
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25691
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
25692
         X"$_am_arg" : 'X\(//\)$' \| \
 
25693
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
25694
echo X"$_am_arg" |
25048
25695
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25049
25696
            s//\1/
25050
25697
            q
25079
25726
  # some people rename them; so instead we look at the file content.
25080
25727
  # Grep'ing the first line is not enough: some people post-process
25081
25728
  # each Makefile.in and add a new line on top of each file to say so.
25082
 
  # So let's grep whole file.
25083
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25729
  # Grep'ing the whole file is not good either: AIX grep has a line
 
25730
  # limit of 2048, but all sed's we know have understand at least 4000.
 
25731
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25084
25732
    dirpart=`$as_dirname -- "$mf" ||
25085
25733
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25086
25734
         X"$mf" : 'X\(//\)[^/]' \| \