~ubuntu-branches/ubuntu/lucid/xserver-xorg-video-savage/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2007-10-24 01:17:57 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071024011757-40f9s87za2yjmuuq
Tags: 1:2.1.3-3ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/patches/01_panning-check-mode.patch: From upstream commit
    846a69f70d189c486448df269a512b8d42fab0c2. Fixes crash when 
    switching modes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for xf86-video-savage 2.1.2.
 
3
# Generated by GNU Autoconf 2.61 for xf86-video-savage 2.1.3.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='xf86-video-savage'
730
730
PACKAGE_TARNAME='xf86-video-savage'
731
 
PACKAGE_VERSION='2.1.2'
732
 
PACKAGE_STRING='xf86-video-savage 2.1.2'
 
731
PACKAGE_VERSION='2.1.3'
 
732
PACKAGE_STRING='xf86-video-savage 2.1.3'
733
733
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
734
 
735
735
ac_unique_file="Makefile.am"
809
809
INSTALL_PROGRAM
810
810
INSTALL_SCRIPT
811
811
INSTALL_DATA
 
812
am__isrc
812
813
CYGPATH_W
813
814
PACKAGE
814
815
VERSION
854
855
CCDEPMODE
855
856
am__fastdepCC_TRUE
856
857
am__fastdepCC_FALSE
 
858
SED
857
859
GREP
858
860
EGREP
859
861
LN_S
1418
1420
  # Omit some internal or obsolete options to make the list less imposing.
1419
1421
  # This message is too long to be a string in the A/UX 3.1 sh.
1420
1422
  cat <<_ACEOF
1421
 
\`configure' configures xf86-video-savage 2.1.2 to adapt to many kinds of systems.
 
1423
\`configure' configures xf86-video-savage 2.1.3 to adapt to many kinds of systems.
1422
1424
 
1423
1425
Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1426
 
1488
1490
 
1489
1491
if test -n "$ac_init_help"; then
1490
1492
  case $ac_init_help in
1491
 
     short | recursive ) echo "Configuration of xf86-video-savage 2.1.2:";;
 
1493
     short | recursive ) echo "Configuration of xf86-video-savage 2.1.3:";;
1492
1494
   esac
1493
1495
  cat <<\_ACEOF
1494
1496
 
1603
1605
test -n "$ac_init_help" && exit $ac_status
1604
1606
if $ac_init_version; then
1605
1607
  cat <<\_ACEOF
1606
 
xf86-video-savage configure 2.1.2
 
1608
xf86-video-savage configure 2.1.3
1607
1609
generated by GNU Autoconf 2.61
1608
1610
 
1609
1611
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1617
1619
This file contains any messages produced by compilers while
1618
1620
running configure, to aid debugging if configure makes a mistake.
1619
1621
 
1620
 
It was created by xf86-video-savage $as_me 2.1.2, which was
 
1622
It was created by xf86-video-savage $as_me 2.1.3, which was
1621
1623
generated by GNU Autoconf 2.61.  Invocation command line was
1622
1624
 
1623
1625
  $ $0 $@
2006
2008
 
2007
2009
 
2008
2010
 
2009
 
am__api_version="1.9"
 
2011
am__api_version='1.10'
 
2012
 
2010
2013
# Find a good install program.  We prefer a C program (faster),
2011
2014
# so one script is as good as another.  But avoid the broken or
2012
2015
# incompatible versions:
2158
2161
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2159
2162
fi
2160
2163
 
2161
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2162
 
  # We used to keeping the `.' as first argument, in order to
2163
 
  # allow $(mkdir_p) to be used without argument.  As in
2164
 
  #   $(mkdir_p) $(somedir)
2165
 
  # where $(somedir) is conditionally defined.  However this is wrong
2166
 
  # for two reasons:
2167
 
  #  1. if the package is installed by a user who cannot write `.'
2168
 
  #     make install will fail,
2169
 
  #  2. the above comment should most certainly read
2170
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2171
 
  #     so it does not work when $(somedir) is undefined and
2172
 
  #     $(DESTDIR) is not.
2173
 
  #  To support the latter case, we have to write
2174
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2175
 
  #  so the `.' trick is pointless.
2176
 
  mkdir_p='mkdir -p --'
 
2164
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2165
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2166
if test -z "$MKDIR_P"; then
 
2167
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2168
  echo $ECHO_N "(cached) $ECHO_C" >&6
2177
2169
else
2178
 
  # On NextStep and OpenStep, the `mkdir' command does not
2179
 
  # recognize any option.  It will interpret all options as
2180
 
  # directories to create, and then abort because `.' already
2181
 
  # exists.
2182
 
  for d in ./-p ./--version;
2183
 
  do
2184
 
    test -d $d && rmdir $d
2185
 
  done
2186
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2187
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2188
 
    mkdir_p='$(mkinstalldirs)'
 
2170
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2171
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2172
do
 
2173
  IFS=$as_save_IFS
 
2174
  test -z "$as_dir" && as_dir=.
 
2175
  for ac_prog in mkdir gmkdir; do
 
2176
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2177
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2178
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2179
             'mkdir (GNU coreutils) '* | \
 
2180
             'mkdir (coreutils) '* | \
 
2181
             'mkdir (fileutils) '4.1*)
 
2182
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2183
               break 3;;
 
2184
           esac
 
2185
         done
 
2186
       done
 
2187
done
 
2188
IFS=$as_save_IFS
 
2189
 
 
2190
fi
 
2191
 
 
2192
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2193
    MKDIR_P="$ac_cv_path_mkdir -p"
2189
2194
  else
2190
 
    mkdir_p='$(install_sh) -d'
 
2195
    # As a last resort, use the slow shell script.  Don't cache a
 
2196
    # value for MKDIR_P within a source directory, because that will
 
2197
    # break other packages using the cache if that directory is
 
2198
    # removed, or if the value is a relative name.
 
2199
    test -d ./--version && rmdir ./--version
 
2200
    MKDIR_P="$ac_install_sh -d"
2191
2201
  fi
2192
2202
fi
 
2203
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2204
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2205
 
 
2206
mkdir_p="$MKDIR_P"
 
2207
case $mkdir_p in
 
2208
  [\\/$]* | ?:[\\/]*) ;;
 
2209
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2210
esac
2193
2211
 
2194
2212
for ac_prog in gawk mawk nawk awk
2195
2213
do
2272
2290
fi
2273
2291
rmdir .tst 2>/dev/null
2274
2292
 
2275
 
# test to see if srcdir already configured
2276
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2277
 
   test -f $srcdir/config.status; then
2278
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2293
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2294
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2295
  # is not polluted with repeated "-I."
 
2296
  am__isrc=' -I$(srcdir)'
 
2297
  # test to see if srcdir already configured
 
2298
  if test -f $srcdir/config.status; then
 
2299
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2279
2300
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2280
2301
   { (exit 1); exit 1; }; }
 
2302
  fi
2281
2303
fi
2282
2304
 
2283
2305
# test whether we have cygpath
2292
2314
 
2293
2315
# Define the identity of the package.
2294
2316
 PACKAGE='xf86-video-savage'
2295
 
 VERSION='2.1.2'
 
2317
 VERSION='2.1.3'
2296
2318
 
2297
2319
 
2298
2320
cat >>confdefs.h <<_ACEOF
2320
2342
 
2321
2343
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
2344
 
2323
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2345
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2324
2346
 
2325
2347
# Installed binaries are usually stripped using `strip' when the user
2326
2348
# run `make install-strip'.  However `strip' might not be the right
2424
2446
fi
2425
2447
 
2426
2448
fi
2427
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2449
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2428
2450
 
2429
2451
# We need awk for the "check" target.  The system "awk" is bad on
2430
2452
# some platforms.
2450
2472
 
2451
2473
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2452
2474
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2453
 
 
2454
 
 
2455
 
if test $USE_MAINTAINER_MODE = yes; then
 
2475
   if test $USE_MAINTAINER_MODE = yes; then
2456
2476
  MAINTAINER_MODE_TRUE=
2457
2477
  MAINTAINER_MODE_FALSE='#'
2458
2478
else
2674
2694
  am_depcomp="$ac_aux_dir/depcomp"
2675
2695
  AMDEPBACKSLASH='\'
2676
2696
fi
2677
 
 
2678
 
 
2679
 
if test "x$enable_dependency_tracking" != xno; then
 
2697
 if test "x$enable_dependency_tracking" != xno; then
2680
2698
  AMDEP_TRUE=
2681
2699
  AMDEP_FALSE='#'
2682
2700
else
2685
2703
fi
2686
2704
 
2687
2705
 
2688
 
 
2689
2706
ac_ext=c
2690
2707
ac_cpp='$CPP $CPPFLAGS'
2691
2708
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672
3689
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673
3690
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3674
3691
         >/dev/null 2>conftest.err &&
 
3692
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3675
3693
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3676
3694
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3677
3695
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3701
3719
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3702
3720
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3703
3721
 
3704
 
 
3705
 
 
3706
 
if
 
3722
 if
3707
3723
  test "x$enable_dependency_tracking" != xno \
3708
3724
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3709
3725
  am__fastdepCC_TRUE=
3728
3744
  test -z "$as_dir" && as_dir=.
3729
3745
  for lt_ac_prog in sed gsed; do
3730
3746
    for ac_exec_ext in '' $ac_executable_extensions; do
3731
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3747
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3732
3748
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3733
3749
      fi
3734
3750
    done
3735
3751
  done
3736
3752
done
 
3753
IFS=$as_save_IFS
3737
3754
lt_ac_max=0
3738
3755
lt_ac_count=0
3739
3756
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3768
3785
fi
3769
3786
 
3770
3787
SED=$lt_cv_path_SED
 
3788
 
3771
3789
{ echo "$as_me:$LINENO: result: $SED" >&5
3772
3790
echo "${ECHO_T}$SED" >&6; }
3773
3791
 
4129
4147
echo "${ECHO_T}no, using $LN_S" >&6; }
4130
4148
fi
4131
4149
 
4132
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4133
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4150
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4151
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4134
4152
if test "${lt_cv_deplibs_check_method+set}" = set; then
4135
4153
  echo $ECHO_N "(cached) $ECHO_C" >&6
4136
4154
else
4171
4189
 
4172
4190
mingw* | pw32*)
4173
4191
  # Base MSYS/MinGW do not provide the 'file' command needed by
4174
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4175
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4176
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4192
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4193
  # unless we find 'file', for example because we are cross-compiling.
 
4194
  if ( file / ) >/dev/null 2>&1; then
 
4195
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4196
    lt_cv_file_magic_cmd='func_win32_libid'
 
4197
  else
 
4198
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4199
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4200
  fi
4177
4201
  ;;
4178
4202
 
4179
4203
darwin* | rhapsody*)
4218
4242
  esac
4219
4243
  ;;
4220
4244
 
4221
 
interix3*)
 
4245
interix[3-9]*)
4222
4246
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4223
4247
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4224
4248
  ;;
4268
4292
  lt_cv_deplibs_check_method=pass_all
4269
4293
  ;;
4270
4294
 
 
4295
rdos*)
 
4296
  lt_cv_deplibs_check_method=pass_all
 
4297
  ;;
 
4298
 
4271
4299
solaris*)
4272
4300
  lt_cv_deplibs_check_method=pass_all
4273
4301
  ;;
4355
4383
  ;;
4356
4384
*-*-irix6*)
4357
4385
  # Find out which ABI we are using.
4358
 
  echo '#line 4358 "configure"' > conftest.$ac_ext
 
4386
  echo '#line 4386 "configure"' > conftest.$ac_ext
4359
4387
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360
4388
  (eval $ac_compile) 2>&5
4361
4389
  ac_status=$?
4390
4418
  rm -rf conftest*
4391
4419
  ;;
4392
4420
 
4393
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4421
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4422
s390*-*linux*|sparc*-*linux*)
4394
4423
  # Find out which ABI we are using.
4395
4424
  echo 'int i;' > conftest.$ac_ext
4396
4425
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401
4430
    case `/usr/bin/file conftest.o` in
4402
4431
    *32-bit*)
4403
4432
      case $host in
 
4433
        x86_64-*kfreebsd*-gnu)
 
4434
          LD="${LD-ld} -m elf_i386_fbsd"
 
4435
          ;;
4404
4436
        x86_64-*linux*)
4405
4437
          LD="${LD-ld} -m elf_i386"
4406
4438
          ;;
4417
4449
      ;;
4418
4450
    *64-bit*)
4419
4451
      case $host in
 
4452
        x86_64-*kfreebsd*-gnu)
 
4453
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4454
          ;;
4420
4455
        x86_64-*linux*)
4421
4456
          LD="${LD-ld} -m elf_x86_64"
4422
4457
          ;;
5584
5619
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5585
5620
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5586
5621
         >/dev/null 2>conftest.err &&
 
5622
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5587
5623
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588
5624
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5589
5625
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613
5649
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5614
5650
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5615
5651
 
5616
 
 
5617
 
 
5618
 
if
 
5652
 if
5619
5653
  test "x$enable_dependency_tracking" != xno \
5620
5654
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5621
5655
  am__fastdepCXX_TRUE=
6210
6244
    fi
6211
6245
    ;;
6212
6246
  *)
6213
 
    # If test is not a shell built-in, we'll probably end up computing a
6214
 
    # maximum length that is only half of the actual maximum length, but
6215
 
    # we can't tell.
6216
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6217
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6247
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6248
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6249
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6250
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6251
    else
 
6252
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6253
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6218
6254
               = "XX$teststring") >/dev/null 2>&1 &&
6219
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6220
 
            lt_cv_sys_max_cmd_len=$new_result &&
6221
 
            test $i != 17 # 1/2 MB should be enough
6222
 
    do
6223
 
      i=`expr $i + 1`
6224
 
      teststring=$teststring$teststring
6225
 
    done
6226
 
    teststring=
6227
 
    # Add a significant safety factor because C++ compilers can tack on massive
6228
 
    # amounts of additional arguments before passing them to the linker.
6229
 
    # It appears as though 1/2 is a usable value.
6230
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6255
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6256
              lt_cv_sys_max_cmd_len=$new_result &&
 
6257
              test $i != 17 # 1/2 MB should be enough
 
6258
      do
 
6259
        i=`expr $i + 1`
 
6260
        teststring=$teststring$teststring
 
6261
      done
 
6262
      teststring=
 
6263
      # Add a significant safety factor because C++ compilers can tack on massive
 
6264
      # amounts of additional arguments before passing them to the linker.
 
6265
      # It appears as though 1/2 is a usable value.
 
6266
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6267
    fi
6231
6268
    ;;
6232
6269
  esac
6233
6270
 
6244
6281
 
6245
6282
 
6246
6283
 
 
6284
 
6247
6285
# Check for command to grab the raw symbol name followed by C symbol from nm.
6248
6286
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6249
6287
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6832
6870
test -z "$ac_objext" && ac_objext=o
6833
6871
 
6834
6872
# Determine commands to create old-style static archives.
6835
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6873
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6836
6874
old_postinstall_cmds='chmod 644 $oldlib'
6837
6875
old_postuninstall_cmds=
6838
6876
 
7032
7070
objext=$objext
7033
7071
 
7034
7072
# Code to be used in simple compile tests
7035
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7073
lt_simple_compile_test_code="int some_variable = 0;"
7036
7074
 
7037
7075
# Code to be used in simple link tests
7038
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7076
lt_simple_link_test_code='int main(){return(0);}'
7039
7077
 
7040
7078
 
7041
7079
# If no C compiler was specified, use CC.
7050
7088
 
7051
7089
# save warnings/boilerplate of simple test code
7052
7090
ac_outfile=conftest.$ac_objext
7053
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7091
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7054
7092
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055
7093
_lt_compiler_boilerplate=`cat conftest.err`
7056
7094
$rm conftest*
7057
7095
 
7058
7096
ac_outfile=conftest.$ac_objext
7059
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7097
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7060
7098
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061
7099
_lt_linker_boilerplate=`cat conftest.err`
7062
7100
$rm conftest*
7076
7114
else
7077
7115
  lt_cv_prog_compiler_rtti_exceptions=no
7078
7116
  ac_outfile=conftest.$ac_objext
7079
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7117
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7080
7118
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7081
7119
   # Insert the option either (1) after the last *FLAGS variable, or
7082
7120
   # (2) before a word containing "conftest.", or (3) at the end.
7087
7125
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088
7126
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089
7127
   -e 's:$: $lt_compiler_flag:'`
7090
 
   (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
 
7128
   (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
7091
7129
   (eval "$lt_compile" 2>conftest.err)
7092
7130
   ac_status=$?
7093
7131
   cat conftest.err >&5
7094
 
   echo "$as_me:7094: \$? = $ac_status" >&5
 
7132
   echo "$as_me:7132: \$? = $ac_status" >&5
7095
7133
   if (exit $ac_status) && test -s "$ac_outfile"; then
7096
7134
     # The compiler can only warn and ignore the option if not recognized
7097
7135
     # So say no if there are warnings other than the usual output.
7142
7180
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7143
7181
      ;;
7144
7182
 
7145
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7183
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146
7184
      # PIC is the default for these OSes.
7147
7185
      ;;
7148
7186
 
7149
 
    mingw* | pw32* | os2*)
 
7187
    mingw* | cygwin* | pw32* | os2*)
7150
7188
      # This hack is so that the source file can tell whether it is being
7151
7189
      # built for inclusion in a dll (and should export symbols for example).
 
7190
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7191
      # (--disable-auto-import) libraries
7152
7192
      lt_prog_compiler_pic='-DDLL_EXPORT'
7153
7193
      ;;
7154
7194
 
7158
7198
      lt_prog_compiler_pic='-fno-common'
7159
7199
      ;;
7160
7200
 
7161
 
    interix3*)
 
7201
    interix[3-9]*)
7162
7202
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7163
7203
      # Instead, we relocate shared libraries at runtime.
7164
7204
      ;;
7216
7256
       esac
7217
7257
       ;;
7218
7258
 
7219
 
    mingw* | pw32* | os2*)
 
7259
    mingw* | cygwin* | pw32* | os2*)
7220
7260
      # This hack is so that the source file can tell whether it is being
7221
7261
      # built for inclusion in a dll (and should export symbols for example).
7222
7262
      lt_prog_compiler_pic='-DDLL_EXPORT'
7268
7308
        # All Alpha code is PIC.
7269
7309
        lt_prog_compiler_static='-non_shared'
7270
7310
        ;;
 
7311
      *)
 
7312
        case `$CC -V 2>&1 | sed 5q` in
 
7313
        *Sun\ C*)
 
7314
          # Sun C 5.9
 
7315
          lt_prog_compiler_pic='-KPIC'
 
7316
          lt_prog_compiler_static='-Bstatic'
 
7317
          lt_prog_compiler_wl='-Wl,'
 
7318
          ;;
 
7319
        *Sun\ F*)
 
7320
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7321
          lt_prog_compiler_pic='-KPIC'
 
7322
          lt_prog_compiler_static='-Bstatic'
 
7323
          lt_prog_compiler_wl=''
 
7324
          ;;
 
7325
        esac
 
7326
        ;;
7271
7327
      esac
7272
7328
      ;;
7273
7329
 
7277
7333
      lt_prog_compiler_static='-non_shared'
7278
7334
      ;;
7279
7335
 
 
7336
    rdos*)
 
7337
      lt_prog_compiler_static='-non_shared'
 
7338
      ;;
 
7339
 
7280
7340
    solaris*)
7281
7341
      lt_prog_compiler_pic='-KPIC'
7282
7342
      lt_prog_compiler_static='-Bstatic'
7344
7404
else
7345
7405
  lt_prog_compiler_pic_works=no
7346
7406
  ac_outfile=conftest.$ac_objext
7347
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7407
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7348
7408
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7349
7409
   # Insert the option either (1) after the last *FLAGS variable, or
7350
7410
   # (2) before a word containing "conftest.", or (3) at the end.
7355
7415
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356
7416
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357
7417
   -e 's:$: $lt_compiler_flag:'`
7358
 
   (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
 
7418
   (eval echo "\"\$as_me:7418: $lt_compile\"" >&5)
7359
7419
   (eval "$lt_compile" 2>conftest.err)
7360
7420
   ac_status=$?
7361
7421
   cat conftest.err >&5
7362
 
   echo "$as_me:7362: \$? = $ac_status" >&5
 
7422
   echo "$as_me:7422: \$? = $ac_status" >&5
7363
7423
   if (exit $ac_status) && test -s "$ac_outfile"; then
7364
7424
     # The compiler can only warn and ignore the option if not recognized
7365
7425
     # So say no if there are warnings other than the usual output.
7408
7468
  lt_prog_compiler_static_works=no
7409
7469
   save_LDFLAGS="$LDFLAGS"
7410
7470
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7411
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7471
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7412
7472
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7413
7473
     # The linker can only warn and ignore the option if not recognized
7414
7474
     # So say no if there are warnings
7448
7508
   mkdir conftest
7449
7509
   cd conftest
7450
7510
   mkdir out
7451
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7511
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7512
 
7453
7513
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7454
7514
   # Insert the option either (1) after the last *FLAGS variable, or
7459
7519
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460
7520
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461
7521
   -e 's:$: $lt_compiler_flag:'`
7462
 
   (eval echo "\"\$as_me:7462: $lt_compile\"" >&5)
 
7522
   (eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7463
7523
   (eval "$lt_compile" 2>out/conftest.err)
7464
7524
   ac_status=$?
7465
7525
   cat out/conftest.err >&5
7466
 
   echo "$as_me:7466: \$? = $ac_status" >&5
 
7526
   echo "$as_me:7526: \$? = $ac_status" >&5
7467
7527
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7468
7528
   then
7469
7529
     # The compiler can only warn and ignore the option if not recognized
7655
7715
      allow_undefined_flag=unsupported
7656
7716
      always_export_symbols=no
7657
7717
      enable_shared_with_static_runtimes=yes
7658
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7718
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7659
7719
 
7660
7720
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7661
7721
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7673
7733
      fi
7674
7734
      ;;
7675
7735
 
7676
 
    interix3*)
 
7736
    interix[3-9]*)
7677
7737
      hardcode_direct=no
7678
7738
      hardcode_shlibpath_var=no
7679
7739
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7688
7748
      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'
7689
7749
      ;;
7690
7750
 
7691
 
    linux* | k*bsd*-gnu)
 
7751
    gnu* | linux* | k*bsd*-gnu)
7692
7752
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693
7753
        tmp_addflag=
7694
7754
        case $cc_basename,$host_cpu in
7706
7766
        ifc* | ifort*)                  # Intel Fortran compiler
7707
7767
          tmp_addflag=' -nofor_main' ;;
7708
7768
        esac
7709
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7769
        case `$CC -V 2>&1 | sed 5q` in
 
7770
        *Sun\ C*)                       # Sun C 5.9
 
7771
          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'
 
7772
          tmp_sharedflag='-G' ;;
 
7773
        *Sun\ F*)                       # Sun Fortran 8.3
 
7774
          tmp_sharedflag='-G' ;;
 
7775
        *)
 
7776
          tmp_sharedflag='-shared' ;;
 
7777
        esac
 
7778
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
7779
 
7711
7780
        if test $supports_anon_versioning = yes; then
7712
7781
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7713
7782
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7714
7783
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7715
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7784
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7716
7785
        fi
7717
7786
        link_all_deplibs=no
7718
7787
      else
7872
7941
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7873
7942
          then
7874
7943
          # We have reworked collect2
7875
 
          hardcode_direct=yes
 
7944
          :
7876
7945
          else
7877
7946
          # We have old collect2
7878
7947
          hardcode_direct=unsupported
7946
8015
       } && test -s conftest$ac_exeext &&
7947
8016
       $as_test_x conftest$ac_exeext; then
7948
8017
 
7949
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7950
 
}'`
 
8018
lt_aix_libpath_sed='
 
8019
    /Import File Strings/,/^$/ {
 
8020
        /^0/ {
 
8021
            s/^0  *\(.*\)$/\1/
 
8022
            p
 
8023
        }
 
8024
    }'
 
8025
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951
8026
# Check for a 64-bit object if we didn't find anything.
7952
 
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; }
7953
 
}'`; fi
 
8027
if test -z "$aix_libpath"; then
 
8028
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8029
fi
7954
8030
else
7955
8031
  echo "$as_me: failed program was:" >&5
7956
8032
sed 's/^/| /' conftest.$ac_ext >&5
8005
8081
       } && test -s conftest$ac_exeext &&
8006
8082
       $as_test_x conftest$ac_exeext; then
8007
8083
 
8008
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8009
 
}'`
 
8084
lt_aix_libpath_sed='
 
8085
    /Import File Strings/,/^$/ {
 
8086
        /^0/ {
 
8087
            s/^0  *\(.*\)$/\1/
 
8088
            p
 
8089
        }
 
8090
    }'
 
8091
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8010
8092
# Check for a 64-bit object if we didn't find anything.
8011
 
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; }
8012
 
}'`; fi
 
8093
if test -z "$aix_libpath"; then
 
8094
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8095
fi
8013
8096
else
8014
8097
  echo "$as_me: failed program was:" >&5
8015
8098
sed 's/^/| /' conftest.$ac_ext >&5
8063
8146
      # The linker will automatically build a .lib file if we build a DLL.
8064
8147
      old_archive_From_new_cmds='true'
8065
8148
      # FIXME: Should let the user specify the lib program.
8066
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8149
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8067
8150
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8068
8151
      enable_shared_with_static_runtimes=yes
8069
8152
      ;;
8105
8188
      case $cc_basename in
8106
8189
        xlc*)
8107
8190
         output_verbose_link_cmd='echo'
8108
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8191
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8109
8192
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8110
8193
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8111
 
         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}'
 
8194
         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}'
8112
8195
          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}'
8113
8196
          ;;
8114
8197
       *)
8270
8353
      ;;
8271
8354
 
8272
8355
    openbsd*)
8273
 
      hardcode_direct=yes
8274
 
      hardcode_shlibpath_var=no
8275
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8276
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8277
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8278
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8279
 
        export_dynamic_flag_spec='${wl}-E'
 
8356
      if test -f /usr/libexec/ld.so; then
 
8357
        hardcode_direct=yes
 
8358
        hardcode_shlibpath_var=no
 
8359
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8360
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8361
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8362
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8363
          export_dynamic_flag_spec='${wl}-E'
 
8364
        else
 
8365
          case $host_os in
 
8366
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8367
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8368
             hardcode_libdir_flag_spec='-R$libdir'
 
8369
             ;;
 
8370
           *)
 
8371
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8372
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8373
             ;;
 
8374
          esac
 
8375
        fi
8280
8376
      else
8281
 
       case $host_os in
8282
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8283
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284
 
           hardcode_libdir_flag_spec='-R$libdir'
8285
 
           ;;
8286
 
         *)
8287
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8288
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8289
 
           ;;
8290
 
       esac
 
8377
        ld_shlibs=no
8291
8378
      fi
8292
8379
      ;;
8293
8380
 
8346
8433
      case $host_os in
8347
8434
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8348
8435
      *)
8349
 
        # The compiler driver will combine linker options so we
8350
 
        # cannot just pass the convience library names through
8351
 
        # without $wl, iff we do not link with $LD.
8352
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8436
        # The compiler driver will combine and reorder linker options,
 
8437
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8438
        # but is careful enough not to reorder.
8353
8439
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8354
 
        case $wlarc in
8355
 
        '')
8356
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8357
 
        *)
8358
 
          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' ;;
8359
 
        esac ;;
 
8440
        if test "$GCC" = yes; then
 
8441
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8442
        else
 
8443
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8444
        fi
 
8445
        ;;
8360
8446
      esac
8361
8447
      link_all_deplibs=yes
8362
8448
      ;;
8413
8499
      fi
8414
8500
      ;;
8415
8501
 
8416
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8502
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8417
8503
      no_undefined_flag='${wl}-z,text'
8418
8504
      archive_cmds_need_lc=no
8419
8505
      hardcode_shlibpath_var=no
8490
8576
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8491
8577
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8492
8578
      $rm conftest*
8493
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8579
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494
8580
 
8495
8581
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496
8582
  (eval $ac_compile) 2>&5
8548
8634
version_type=none
8549
8635
dynamic_linker="$host_os ld.so"
8550
8636
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8637
 
8551
8638
if test "$GCC" = yes; then
8552
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8553
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8639
  case $host_os in
 
8640
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8641
    *) lt_awk_arg="/^libraries:/" ;;
 
8642
  esac
 
8643
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8644
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8554
8645
    # if the path contains ";" then we assume it to be the separator
8555
8646
    # otherwise default to the standard path separator (i.e. ":") - it is
8556
8647
    # assumed that no part of a normal pathname contains ";" but that should
8557
8648
    # okay in the real world where ";" in dirpaths is itself problematic.
8558
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8649
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8559
8650
  else
8560
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8651
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8561
8652
  fi
 
8653
  # Ok, now we have the path, separated by spaces, we can step through it
 
8654
  # and add multilib dir if necessary.
 
8655
  lt_tmp_lt_search_path_spec=
 
8656
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8657
  for lt_sys_path in $lt_search_path_spec; do
 
8658
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8659
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8660
    else
 
8661
      test -d "$lt_sys_path" && \
 
8662
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8663
    fi
 
8664
  done
 
8665
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8666
BEGIN {RS=" "; FS="/|\n";} {
 
8667
  lt_foo="";
 
8668
  lt_count=0;
 
8669
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8670
    if ($lt_i != "" && $lt_i != ".") {
 
8671
      if ($lt_i == "..") {
 
8672
        lt_count++;
 
8673
      } else {
 
8674
        if (lt_count == 0) {
 
8675
          lt_foo="/" $lt_i lt_foo;
 
8676
        } else {
 
8677
          lt_count--;
 
8678
        }
 
8679
      }
 
8680
    }
 
8681
  }
 
8682
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8683
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8684
}'`
 
8685
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8562
8686
else
8563
8687
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8564
8688
fi
8718
8842
  shlibpath_overrides_runpath=yes
8719
8843
  shlibpath_var=DYLD_LIBRARY_PATH
8720
8844
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8721
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8722
 
  if test "$GCC" = yes; then
8723
 
    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"`
8724
 
  else
8725
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8726
 
  fi
 
8845
 
 
8846
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8727
8847
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8728
8848
  ;;
8729
8849
 
8777
8897
    shlibpath_overrides_runpath=no
8778
8898
    hardcode_into_libs=yes
8779
8899
    ;;
8780
 
  freebsd*) # from 4.6 on
 
8900
  *) # from 4.6 on, and DragonFly
8781
8901
    shlibpath_overrides_runpath=yes
8782
8902
    hardcode_into_libs=yes
8783
8903
    ;;
8840
8960
  postinstall_cmds='chmod 555 $lib'
8841
8961
  ;;
8842
8962
 
8843
 
interix3*)
 
8963
interix[3-9]*)
8844
8964
  version_type=linux
8845
8965
  need_lib_prefix=no
8846
8966
  need_version=no
8911
9031
 
8912
9032
  # Append ld.so.conf contents to the search path
8913
9033
  if test -f /etc/ld.so.conf; then
8914
 
    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' ' '`
 
9034
    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' ' '`
8915
9035
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8916
9036
  fi
8917
9037
 
9017
9137
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9018
9138
  ;;
9019
9139
 
 
9140
rdos*)
 
9141
  dynamic_linker=no
 
9142
  ;;
 
9143
 
9020
9144
solaris*)
9021
9145
  version_type=linux
9022
9146
  need_lib_prefix=no
9170
9294
   darwin*)
9171
9295
       if test -n "$STRIP" ; then
9172
9296
         striplib="$STRIP -x"
 
9297
         old_striplib="$STRIP -S"
9173
9298
         { echo "$as_me:$LINENO: result: yes" >&5
9174
9299
echo "${ECHO_T}yes" >&6; }
9175
9300
       else
9756
9881
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9757
9882
  lt_status=$lt_dlunknown
9758
9883
  cat > conftest.$ac_ext <<EOF
9759
 
#line 9759 "configure"
 
9884
#line 9884 "configure"
9760
9885
#include "confdefs.h"
9761
9886
 
9762
9887
#if HAVE_DLFCN_H
9856
9981
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857
9982
  lt_status=$lt_dlunknown
9858
9983
  cat > conftest.$ac_ext <<EOF
9859
 
#line 9859 "configure"
 
9984
#line 9984 "configure"
9860
9985
#include "confdefs.h"
9861
9986
 
9862
9987
#if HAVE_DLFCN_H
10054
10179
    module_cmds \
10055
10180
    module_expsym_cmds \
10056
10181
    lt_cv_prog_compiler_c_o \
 
10182
    fix_srcfile_path \
10057
10183
    exclude_expsyms \
10058
10184
    include_expsyms; do
10059
10185
 
10098
10224
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10099
10225
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10100
10226
#
10101
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10227
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10102
10228
# Free Software Foundation, Inc.
10103
10229
#
10104
10230
# This file is part of GNU Libtool:
10422
10548
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10423
10549
 
10424
10550
# Fix the shell variable \$srcfile for the compiler.
10425
 
fix_srcfile_path="$fix_srcfile_path"
 
10551
fix_srcfile_path=$lt_fix_srcfile_path
10426
10552
 
10427
10553
# Set to yes if exported symbols are required.
10428
10554
always_export_symbols=$always_export_symbols
10591
10717
objext_CXX=$objext
10592
10718
 
10593
10719
# Code to be used in simple compile tests
10594
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10720
lt_simple_compile_test_code="int some_variable = 0;"
10595
10721
 
10596
10722
# Code to be used in simple link tests
10597
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10723
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10598
10724
 
10599
10725
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10600
10726
 
10610
10736
 
10611
10737
# save warnings/boilerplate of simple test code
10612
10738
ac_outfile=conftest.$ac_objext
10613
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10739
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10614
10740
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615
10741
_lt_compiler_boilerplate=`cat conftest.err`
10616
10742
$rm conftest*
10617
10743
 
10618
10744
ac_outfile=conftest.$ac_objext
10619
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10745
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10620
10746
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10621
10747
_lt_linker_boilerplate=`cat conftest.err`
10622
10748
$rm conftest*
10875
11001
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10876
11002
        then
10877
11003
          # We have reworked collect2
10878
 
          hardcode_direct_CXX=yes
 
11004
          :
10879
11005
        else
10880
11006
          # We have old collect2
10881
11007
          hardcode_direct_CXX=unsupported
10949
11075
       } && test -s conftest$ac_exeext &&
10950
11076
       $as_test_x conftest$ac_exeext; then
10951
11077
 
10952
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10953
 
}'`
 
11078
lt_aix_libpath_sed='
 
11079
    /Import File Strings/,/^$/ {
 
11080
        /^0/ {
 
11081
            s/^0  *\(.*\)$/\1/
 
11082
            p
 
11083
        }
 
11084
    }'
 
11085
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10954
11086
# Check for a 64-bit object if we didn't find anything.
10955
 
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; }
10956
 
}'`; fi
 
11087
if test -z "$aix_libpath"; then
 
11088
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11089
fi
10957
11090
else
10958
11091
  echo "$as_me: failed program was:" >&5
10959
11092
sed 's/^/| /' conftest.$ac_ext >&5
11009
11142
       } && test -s conftest$ac_exeext &&
11010
11143
       $as_test_x conftest$ac_exeext; then
11011
11144
 
11012
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11013
 
}'`
 
11145
lt_aix_libpath_sed='
 
11146
    /Import File Strings/,/^$/ {
 
11147
        /^0/ {
 
11148
            s/^0  *\(.*\)$/\1/
 
11149
            p
 
11150
        }
 
11151
    }'
 
11152
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11014
11153
# Check for a 64-bit object if we didn't find anything.
11015
 
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; }
11016
 
}'`; fi
 
11154
if test -z "$aix_libpath"; then
 
11155
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11156
fi
11017
11157
else
11018
11158
  echo "$as_me: failed program was:" >&5
11019
11159
sed 's/^/| /' conftest.$ac_ext >&5
11132
11272
      case $cc_basename in
11133
11273
        xlc*)
11134
11274
         output_verbose_link_cmd='echo'
11135
 
          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'
 
11275
          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'
11136
11276
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11137
11277
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11138
 
          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}'
 
11278
          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}'
11139
11279
          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}'
11140
11280
          ;;
11141
11281
       *)
11218
11358
      hardcode_libdir_separator_CXX=:
11219
11359
 
11220
11360
      case $host_cpu in
11221
 
      hppa*64*|ia64*)
11222
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11223
 
        ;;
 
11361
      hppa*64*|ia64*) ;;
11224
11362
      *)
11225
11363
        export_dynamic_flag_spec_CXX='${wl}-E'
11226
11364
        ;;
11288
11426
        ;;
11289
11427
    esac
11290
11428
    ;;
11291
 
  interix3*)
 
11429
  interix[3-9]*)
11292
11430
    hardcode_direct_CXX=no
11293
11431
    hardcode_shlibpath_var_CXX=no
11294
11432
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11408
11546
        # dependencies.
11409
11547
        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'
11410
11548
        ;;
 
11549
      *)
 
11550
        case `$CC -V 2>&1 | sed 5q` in
 
11551
        *Sun\ C*)
 
11552
          # Sun C++ 5.9
 
11553
          no_undefined_flag_CXX=' -zdefs'
 
11554
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11555
          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'
 
11556
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11557
          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'
 
11558
 
 
11559
          # Not sure whether something based on
 
11560
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11561
          # would be better.
 
11562
          output_verbose_link_cmd='echo'
 
11563
 
 
11564
          # Archives containing C++ object files must be created using
 
11565
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11566
          # necessary to make sure instantiated templates are included
 
11567
          # in the archive.
 
11568
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11569
          ;;
 
11570
        esac
 
11571
        ;;
11411
11572
    esac
11412
11573
    ;;
11413
11574
  lynxos*)
11446
11607
    ld_shlibs_CXX=no
11447
11608
    ;;
11448
11609
  openbsd*)
11449
 
    hardcode_direct_CXX=yes
11450
 
    hardcode_shlibpath_var_CXX=no
11451
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11452
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11454
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11455
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11456
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11610
    if test -f /usr/libexec/ld.so; then
 
11611
      hardcode_direct_CXX=yes
 
11612
      hardcode_shlibpath_var_CXX=no
 
11613
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11614
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11615
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11616
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11617
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11618
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11619
      fi
 
11620
      output_verbose_link_cmd='echo'
 
11621
    else
 
11622
      ld_shlibs_CXX=no
11457
11623
    fi
11458
 
    output_verbose_link_cmd='echo'
11459
11624
    ;;
11460
11625
  osf3*)
11461
11626
    case $cc_basename in
11617
11782
        case $host_os in
11618
11783
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11619
11784
          *)
11620
 
            # The C++ compiler is used as linker so we must use $wl
11621
 
            # flag to pass the commands to the underlying system
11622
 
            # linker. We must also pass each convience library through
11623
 
            # to the system linker between allextract/defaultextract.
11624
 
            # The C++ compiler will combine linker options so we
11625
 
            # cannot just pass the convience library names through
11626
 
            # without $wl.
 
11785
            # The compiler driver will combine and reorder linker options,
 
11786
            # but understands `-z linker_flag'.
11627
11787
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11628
 
            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'
 
11788
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11629
11789
            ;;
11630
11790
        esac
11631
11791
        link_all_deplibs_CXX=yes
11672
11832
          fi
11673
11833
 
11674
11834
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11835
          case $host_os in
 
11836
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11837
          *)
 
11838
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11839
            ;;
 
11840
          esac
11675
11841
        fi
11676
11842
        ;;
11677
11843
    esac
11863
12029
 
11864
12030
# PORTME: override above test on systems where it is broken
11865
12031
case $host_os in
11866
 
interix3*)
 
12032
interix[3-9]*)
11867
12033
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11868
12034
  # hack all around it, let's just trust "g++" to DTRT.
11869
12035
  predep_objects_CXX=
11871
12037
  postdeps_CXX=
11872
12038
  ;;
11873
12039
 
 
12040
linux*)
 
12041
  case `$CC -V 2>&1 | sed 5q` in
 
12042
  *Sun\ C*)
 
12043
    # Sun C++ 5.9
 
12044
    #
 
12045
    # The more standards-conforming stlport4 library is
 
12046
    # incompatible with the Cstd library. Avoid specifying
 
12047
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12048
    # -library=stlport4 depends on it.
 
12049
    case " $CXX $CXXFLAGS " in
 
12050
    *" -library=stlport4 "*)
 
12051
      solaris_use_stlport4=yes
 
12052
      ;;
 
12053
    esac
 
12054
    if test "$solaris_use_stlport4" != yes; then
 
12055
      postdeps_CXX='-library=Cstd -library=Crun'
 
12056
    fi
 
12057
    ;;
 
12058
  esac
 
12059
  ;;
 
12060
 
11874
12061
solaris*)
11875
12062
  case $cc_basename in
11876
12063
  CC*)
 
12064
    # The more standards-conforming stlport4 library is
 
12065
    # incompatible with the Cstd library. Avoid specifying
 
12066
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12067
    # -library=stlport4 depends on it.
 
12068
    case " $CXX $CXXFLAGS " in
 
12069
    *" -library=stlport4 "*)
 
12070
      solaris_use_stlport4=yes
 
12071
      ;;
 
12072
    esac
 
12073
 
11877
12074
    # Adding this requires a known-good setup of shared libraries for
11878
12075
    # Sun compiler versions before 5.6, else PIC objects from an old
11879
12076
    # archive will be linked into the output, leading to subtle bugs.
11880
 
    postdeps_CXX='-lCstd -lCrun'
 
12077
    if test "$solaris_use_stlport4" != yes; then
 
12078
      postdeps_CXX='-library=Cstd -library=Crun'
 
12079
    fi
11881
12080
    ;;
11882
12081
  esac
11883
12082
  ;;
11914
12113
      # like `-m68040'.
11915
12114
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11916
12115
      ;;
11917
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12116
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11918
12117
      # PIC is the default for these OSes.
11919
12118
      ;;
11920
 
    mingw* | os2* | pw32*)
 
12119
    mingw* | cygwin* | os2* | pw32*)
11921
12120
      # This hack is so that the source file can tell whether it is being
11922
12121
      # built for inclusion in a dll (and should export symbols for example).
 
12122
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12123
      # (--disable-auto-import) libraries
11923
12124
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11924
12125
      ;;
11925
12126
    darwin* | rhapsody*)
11931
12132
      # DJGPP does not support shared libraries at all
11932
12133
      lt_prog_compiler_pic_CXX=
11933
12134
      ;;
11934
 
    interix3*)
 
12135
    interix[3-9]*)
11935
12136
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11936
12137
      # Instead, we relocate shared libraries at runtime.
11937
12138
      ;;
12067
12268
            lt_prog_compiler_static_CXX='-non_shared'
12068
12269
            ;;
12069
12270
          *)
 
12271
            case `$CC -V 2>&1 | sed 5q` in
 
12272
            *Sun\ C*)
 
12273
              # Sun C++ 5.9
 
12274
              lt_prog_compiler_pic_CXX='-KPIC'
 
12275
              lt_prog_compiler_static_CXX='-Bstatic'
 
12276
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12277
              ;;
 
12278
            esac
12070
12279
            ;;
12071
12280
        esac
12072
12281
        ;;
12181
12390
else
12182
12391
  lt_prog_compiler_pic_works_CXX=no
12183
12392
  ac_outfile=conftest.$ac_objext
12184
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12393
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12394
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12186
12395
   # Insert the option either (1) after the last *FLAGS variable, or
12187
12396
   # (2) before a word containing "conftest.", or (3) at the end.
12192
12401
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193
12402
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194
12403
   -e 's:$: $lt_compiler_flag:'`
12195
 
   (eval echo "\"\$as_me:12195: $lt_compile\"" >&5)
 
12404
   (eval echo "\"\$as_me:12404: $lt_compile\"" >&5)
12196
12405
   (eval "$lt_compile" 2>conftest.err)
12197
12406
   ac_status=$?
12198
12407
   cat conftest.err >&5
12199
 
   echo "$as_me:12199: \$? = $ac_status" >&5
 
12408
   echo "$as_me:12408: \$? = $ac_status" >&5
12200
12409
   if (exit $ac_status) && test -s "$ac_outfile"; then
12201
12410
     # The compiler can only warn and ignore the option if not recognized
12202
12411
     # So say no if there are warnings other than the usual output.
12245
12454
  lt_prog_compiler_static_works_CXX=no
12246
12455
   save_LDFLAGS="$LDFLAGS"
12247
12456
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12248
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12457
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12249
12458
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12250
12459
     # The linker can only warn and ignore the option if not recognized
12251
12460
     # So say no if there are warnings
12285
12494
   mkdir conftest
12286
12495
   cd conftest
12287
12496
   mkdir out
12288
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12497
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12289
12498
 
12290
12499
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12291
12500
   # Insert the option either (1) after the last *FLAGS variable, or
12296
12505
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12297
12506
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12298
12507
   -e 's:$: $lt_compiler_flag:'`
12299
 
   (eval echo "\"\$as_me:12299: $lt_compile\"" >&5)
 
12508
   (eval echo "\"\$as_me:12508: $lt_compile\"" >&5)
12300
12509
   (eval "$lt_compile" 2>out/conftest.err)
12301
12510
   ac_status=$?
12302
12511
   cat out/conftest.err >&5
12303
 
   echo "$as_me:12303: \$? = $ac_status" >&5
 
12512
   echo "$as_me:12512: \$? = $ac_status" >&5
12304
12513
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12305
12514
   then
12306
12515
     # The compiler can only warn and ignore the option if not recognized
12366
12575
    export_symbols_cmds_CXX="$ltdll_cmds"
12367
12576
  ;;
12368
12577
  cygwin* | mingw*)
12369
 
    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'
 
12578
    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'
12370
12579
  ;;
12371
12580
  linux* | k*bsd*-gnu)
12372
12581
    link_all_deplibs_CXX=no
12400
12609
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12401
12610
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12402
12611
      $rm conftest*
12403
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12612
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12404
12613
 
12405
12614
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406
12615
  (eval $ac_compile) 2>&5
12458
12667
version_type=none
12459
12668
dynamic_linker="$host_os ld.so"
12460
12669
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12461
 
if test "$GCC" = yes; then
12462
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12463
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12464
 
    # if the path contains ";" then we assume it to be the separator
12465
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12466
 
    # assumed that no part of a normal pathname contains ";" but that should
12467
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12468
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12469
 
  else
12470
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12471
 
  fi
12472
 
else
12473
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12474
 
fi
 
12670
 
12475
12671
need_lib_prefix=unknown
12476
12672
hardcode_into_libs=no
12477
12673
 
12628
12824
  shlibpath_overrides_runpath=yes
12629
12825
  shlibpath_var=DYLD_LIBRARY_PATH
12630
12826
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12631
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12632
 
  if test "$GCC" = yes; then
12633
 
    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"`
12634
 
  else
12635
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12636
 
  fi
 
12827
 
12637
12828
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12638
12829
  ;;
12639
12830
 
12687
12878
    shlibpath_overrides_runpath=no
12688
12879
    hardcode_into_libs=yes
12689
12880
    ;;
12690
 
  freebsd*) # from 4.6 on
 
12881
  *) # from 4.6 on, and DragonFly
12691
12882
    shlibpath_overrides_runpath=yes
12692
12883
    hardcode_into_libs=yes
12693
12884
    ;;
12750
12941
  postinstall_cmds='chmod 555 $lib'
12751
12942
  ;;
12752
12943
 
12753
 
interix3*)
 
12944
interix[3-9]*)
12754
12945
  version_type=linux
12755
12946
  need_lib_prefix=no
12756
12947
  need_version=no
12821
13012
 
12822
13013
  # Append ld.so.conf contents to the search path
12823
13014
  if test -f /etc/ld.so.conf; then
12824
 
    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' ' '`
 
13015
    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' ' '`
12825
13016
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12826
13017
  fi
12827
13018
 
12927
13118
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12928
13119
  ;;
12929
13120
 
 
13121
rdos*)
 
13122
  dynamic_linker=no
 
13123
  ;;
 
13124
 
12930
13125
solaris*)
12931
13126
  version_type=linux
12932
13127
  need_lib_prefix=no
13121
13316
    module_cmds_CXX \
13122
13317
    module_expsym_cmds_CXX \
13123
13318
    lt_cv_prog_compiler_c_o_CXX \
 
13319
    fix_srcfile_path_CXX \
13124
13320
    exclude_expsyms_CXX \
13125
13321
    include_expsyms_CXX; do
13126
13322
 
13441
13637
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13442
13638
 
13443
13639
# Fix the shell variable \$srcfile for the compiler.
13444
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13640
fix_srcfile_path=$lt_fix_srcfile_path
13445
13641
 
13446
13642
# Set to yes if exported symbols are required.
13447
13643
always_export_symbols=$always_export_symbols_CXX
13532
13728
objext_F77=$objext
13533
13729
 
13534
13730
# Code to be used in simple compile tests
13535
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13731
lt_simple_compile_test_code="\
 
13732
      subroutine t
 
13733
      return
 
13734
      end
 
13735
"
13536
13736
 
13537
13737
# Code to be used in simple link tests
13538
 
lt_simple_link_test_code="      program t\n      end\n"
 
13738
lt_simple_link_test_code="\
 
13739
      program t
 
13740
      end
 
13741
"
13539
13742
 
13540
13743
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13541
13744
 
13551
13754
 
13552
13755
# save warnings/boilerplate of simple test code
13553
13756
ac_outfile=conftest.$ac_objext
13554
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13757
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13555
13758
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13556
13759
_lt_compiler_boilerplate=`cat conftest.err`
13557
13760
$rm conftest*
13558
13761
 
13559
13762
ac_outfile=conftest.$ac_objext
13560
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13763
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13561
13764
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13562
13765
_lt_linker_boilerplate=`cat conftest.err`
13563
13766
$rm conftest*
13644
13847
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13645
13848
      ;;
13646
13849
 
13647
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13850
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648
13851
      # PIC is the default for these OSes.
13649
13852
      ;;
13650
13853
 
13651
 
    mingw* | pw32* | os2*)
 
13854
    mingw* | cygwin* | pw32* | os2*)
13652
13855
      # This hack is so that the source file can tell whether it is being
13653
13856
      # built for inclusion in a dll (and should export symbols for example).
 
13857
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13858
      # (--disable-auto-import) libraries
13654
13859
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13655
13860
      ;;
13656
13861
 
13660
13865
      lt_prog_compiler_pic_F77='-fno-common'
13661
13866
      ;;
13662
13867
 
13663
 
    interix3*)
 
13868
    interix[3-9]*)
13664
13869
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665
13870
      # Instead, we relocate shared libraries at runtime.
13666
13871
      ;;
13718
13923
       esac
13719
13924
       ;;
13720
13925
 
13721
 
    mingw* | pw32* | os2*)
 
13926
    mingw* | cygwin* | pw32* | os2*)
13722
13927
      # This hack is so that the source file can tell whether it is being
13723
13928
      # built for inclusion in a dll (and should export symbols for example).
13724
13929
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13770
13975
        # All Alpha code is PIC.
13771
13976
        lt_prog_compiler_static_F77='-non_shared'
13772
13977
        ;;
 
13978
      *)
 
13979
        case `$CC -V 2>&1 | sed 5q` in
 
13980
        *Sun\ C*)
 
13981
          # Sun C 5.9
 
13982
          lt_prog_compiler_pic_F77='-KPIC'
 
13983
          lt_prog_compiler_static_F77='-Bstatic'
 
13984
          lt_prog_compiler_wl_F77='-Wl,'
 
13985
          ;;
 
13986
        *Sun\ F*)
 
13987
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
13988
          lt_prog_compiler_pic_F77='-KPIC'
 
13989
          lt_prog_compiler_static_F77='-Bstatic'
 
13990
          lt_prog_compiler_wl_F77=''
 
13991
          ;;
 
13992
        esac
 
13993
        ;;
13773
13994
      esac
13774
13995
      ;;
13775
13996
 
13779
14000
      lt_prog_compiler_static_F77='-non_shared'
13780
14001
      ;;
13781
14002
 
 
14003
    rdos*)
 
14004
      lt_prog_compiler_static_F77='-non_shared'
 
14005
      ;;
 
14006
 
13782
14007
    solaris*)
13783
14008
      lt_prog_compiler_pic_F77='-KPIC'
13784
14009
      lt_prog_compiler_static_F77='-Bstatic'
13846
14071
else
13847
14072
  lt_prog_compiler_pic_works_F77=no
13848
14073
  ac_outfile=conftest.$ac_objext
13849
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14074
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13850
14075
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13851
14076
   # Insert the option either (1) after the last *FLAGS variable, or
13852
14077
   # (2) before a word containing "conftest.", or (3) at the end.
13857
14082
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13858
14083
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13859
14084
   -e 's:$: $lt_compiler_flag:'`
13860
 
   (eval echo "\"\$as_me:13860: $lt_compile\"" >&5)
 
14085
   (eval echo "\"\$as_me:14085: $lt_compile\"" >&5)
13861
14086
   (eval "$lt_compile" 2>conftest.err)
13862
14087
   ac_status=$?
13863
14088
   cat conftest.err >&5
13864
 
   echo "$as_me:13864: \$? = $ac_status" >&5
 
14089
   echo "$as_me:14089: \$? = $ac_status" >&5
13865
14090
   if (exit $ac_status) && test -s "$ac_outfile"; then
13866
14091
     # The compiler can only warn and ignore the option if not recognized
13867
14092
     # So say no if there are warnings other than the usual output.
13910
14135
  lt_prog_compiler_static_works_F77=no
13911
14136
   save_LDFLAGS="$LDFLAGS"
13912
14137
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13913
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14138
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13914
14139
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13915
14140
     # The linker can only warn and ignore the option if not recognized
13916
14141
     # So say no if there are warnings
13950
14175
   mkdir conftest
13951
14176
   cd conftest
13952
14177
   mkdir out
13953
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14178
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
14179
 
13955
14180
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13956
14181
   # Insert the option either (1) after the last *FLAGS variable, or
13961
14186
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962
14187
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963
14188
   -e 's:$: $lt_compiler_flag:'`
13964
 
   (eval echo "\"\$as_me:13964: $lt_compile\"" >&5)
 
14189
   (eval echo "\"\$as_me:14189: $lt_compile\"" >&5)
13965
14190
   (eval "$lt_compile" 2>out/conftest.err)
13966
14191
   ac_status=$?
13967
14192
   cat out/conftest.err >&5
13968
 
   echo "$as_me:13968: \$? = $ac_status" >&5
 
14193
   echo "$as_me:14193: \$? = $ac_status" >&5
13969
14194
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13970
14195
   then
13971
14196
     # The compiler can only warn and ignore the option if not recognized
14157
14382
      allow_undefined_flag_F77=unsupported
14158
14383
      always_export_symbols_F77=no
14159
14384
      enable_shared_with_static_runtimes_F77=yes
14160
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14385
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14161
14386
 
14162
14387
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14163
14388
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14175
14400
      fi
14176
14401
      ;;
14177
14402
 
14178
 
    interix3*)
 
14403
    interix[3-9]*)
14179
14404
      hardcode_direct_F77=no
14180
14405
      hardcode_shlibpath_var_F77=no
14181
14406
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14190
14415
      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'
14191
14416
      ;;
14192
14417
 
14193
 
    linux* | k*bsd*-gnu)
 
14418
    gnu* | linux* | k*bsd*-gnu)
14194
14419
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195
14420
        tmp_addflag=
14196
14421
        case $cc_basename,$host_cpu in
14208
14433
        ifc* | ifort*)                  # Intel Fortran compiler
14209
14434
          tmp_addflag=' -nofor_main' ;;
14210
14435
        esac
14211
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14436
        case `$CC -V 2>&1 | sed 5q` in
 
14437
        *Sun\ C*)                       # Sun C 5.9
 
14438
          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'
 
14439
          tmp_sharedflag='-G' ;;
 
14440
        *Sun\ F*)                       # Sun Fortran 8.3
 
14441
          tmp_sharedflag='-G' ;;
 
14442
        *)
 
14443
          tmp_sharedflag='-shared' ;;
 
14444
        esac
 
14445
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212
14446
 
14213
14447
        if test $supports_anon_versioning = yes; then
14214
14448
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14215
14449
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14216
14450
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14217
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14451
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14218
14452
        fi
14219
14453
        link_all_deplibs_F77=no
14220
14454
      else
14374
14608
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14375
14609
          then
14376
14610
          # We have reworked collect2
14377
 
          hardcode_direct_F77=yes
 
14611
          :
14378
14612
          else
14379
14613
          # We have old collect2
14380
14614
          hardcode_direct_F77=unsupported
14438
14672
       } && test -s conftest$ac_exeext &&
14439
14673
       $as_test_x conftest$ac_exeext; then
14440
14674
 
14441
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14442
 
}'`
 
14675
lt_aix_libpath_sed='
 
14676
    /Import File Strings/,/^$/ {
 
14677
        /^0/ {
 
14678
            s/^0  *\(.*\)$/\1/
 
14679
            p
 
14680
        }
 
14681
    }'
 
14682
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14443
14683
# Check for a 64-bit object if we didn't find anything.
14444
 
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; }
14445
 
}'`; fi
 
14684
if test -z "$aix_libpath"; then
 
14685
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14686
fi
14446
14687
else
14447
14688
  echo "$as_me: failed program was:" >&5
14448
14689
sed 's/^/| /' conftest.$ac_ext >&5
14487
14728
       } && test -s conftest$ac_exeext &&
14488
14729
       $as_test_x conftest$ac_exeext; then
14489
14730
 
14490
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14491
 
}'`
 
14731
lt_aix_libpath_sed='
 
14732
    /Import File Strings/,/^$/ {
 
14733
        /^0/ {
 
14734
            s/^0  *\(.*\)$/\1/
 
14735
            p
 
14736
        }
 
14737
    }'
 
14738
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14492
14739
# Check for a 64-bit object if we didn't find anything.
14493
 
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; }
14494
 
}'`; fi
 
14740
if test -z "$aix_libpath"; then
 
14741
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14742
fi
14495
14743
else
14496
14744
  echo "$as_me: failed program was:" >&5
14497
14745
sed 's/^/| /' conftest.$ac_ext >&5
14545
14793
      # The linker will automatically build a .lib file if we build a DLL.
14546
14794
      old_archive_From_new_cmds_F77='true'
14547
14795
      # FIXME: Should let the user specify the lib program.
14548
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14796
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14549
14797
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14550
14798
      enable_shared_with_static_runtimes_F77=yes
14551
14799
      ;;
14587
14835
      case $cc_basename in
14588
14836
        xlc*)
14589
14837
         output_verbose_link_cmd='echo'
14590
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14838
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14591
14839
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14592
14840
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14593
 
         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}'
 
14841
         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}'
14594
14842
          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}'
14595
14843
          ;;
14596
14844
       *)
14752
15000
      ;;
14753
15001
 
14754
15002
    openbsd*)
14755
 
      hardcode_direct_F77=yes
14756
 
      hardcode_shlibpath_var_F77=no
14757
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14758
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14759
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14760
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14761
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15003
      if test -f /usr/libexec/ld.so; then
 
15004
        hardcode_direct_F77=yes
 
15005
        hardcode_shlibpath_var_F77=no
 
15006
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15007
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15008
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15009
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15010
          export_dynamic_flag_spec_F77='${wl}-E'
 
15011
        else
 
15012
          case $host_os in
 
15013
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15014
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15015
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15016
             ;;
 
15017
           *)
 
15018
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15019
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15020
             ;;
 
15021
          esac
 
15022
        fi
14762
15023
      else
14763
 
       case $host_os in
14764
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14765
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14766
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14767
 
           ;;
14768
 
         *)
14769
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14770
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14771
 
           ;;
14772
 
       esac
 
15024
        ld_shlibs_F77=no
14773
15025
      fi
14774
15026
      ;;
14775
15027
 
14828
15080
      case $host_os in
14829
15081
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14830
15082
      *)
14831
 
        # The compiler driver will combine linker options so we
14832
 
        # cannot just pass the convience library names through
14833
 
        # without $wl, iff we do not link with $LD.
14834
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15083
        # The compiler driver will combine and reorder linker options,
 
15084
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15085
        # but is careful enough not to reorder.
14835
15086
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14836
 
        case $wlarc in
14837
 
        '')
14838
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14839
 
        *)
14840
 
          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' ;;
14841
 
        esac ;;
 
15087
        if test "$GCC" = yes; then
 
15088
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15089
        else
 
15090
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15091
        fi
 
15092
        ;;
14842
15093
      esac
14843
15094
      link_all_deplibs_F77=yes
14844
15095
      ;;
14895
15146
      fi
14896
15147
      ;;
14897
15148
 
14898
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15149
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14899
15150
      no_undefined_flag_F77='${wl}-z,text'
14900
15151
      archive_cmds_need_lc_F77=no
14901
15152
      hardcode_shlibpath_var_F77=no
14972
15223
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14973
15224
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14974
15225
      $rm conftest*
14975
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15226
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14976
15227
 
14977
15228
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978
15229
  (eval $ac_compile) 2>&5
15030
15281
version_type=none
15031
15282
dynamic_linker="$host_os ld.so"
15032
15283
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15033
 
if test "$GCC" = yes; then
15034
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15035
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15036
 
    # if the path contains ";" then we assume it to be the separator
15037
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15038
 
    # assumed that no part of a normal pathname contains ";" but that should
15039
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15040
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15041
 
  else
15042
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15043
 
  fi
15044
 
else
15045
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15046
 
fi
 
15284
 
15047
15285
need_lib_prefix=unknown
15048
15286
hardcode_into_libs=no
15049
15287
 
15200
15438
  shlibpath_overrides_runpath=yes
15201
15439
  shlibpath_var=DYLD_LIBRARY_PATH
15202
15440
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15203
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15204
 
  if test "$GCC" = yes; then
15205
 
    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"`
15206
 
  else
15207
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15208
 
  fi
 
15441
 
15209
15442
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15210
15443
  ;;
15211
15444
 
15259
15492
    shlibpath_overrides_runpath=no
15260
15493
    hardcode_into_libs=yes
15261
15494
    ;;
15262
 
  freebsd*) # from 4.6 on
 
15495
  *) # from 4.6 on, and DragonFly
15263
15496
    shlibpath_overrides_runpath=yes
15264
15497
    hardcode_into_libs=yes
15265
15498
    ;;
15322
15555
  postinstall_cmds='chmod 555 $lib'
15323
15556
  ;;
15324
15557
 
15325
 
interix3*)
 
15558
interix[3-9]*)
15326
15559
  version_type=linux
15327
15560
  need_lib_prefix=no
15328
15561
  need_version=no
15393
15626
 
15394
15627
  # Append ld.so.conf contents to the search path
15395
15628
  if test -f /etc/ld.so.conf; then
15396
 
    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' ' '`
 
15629
    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' ' '`
15397
15630
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15398
15631
  fi
15399
15632
 
15499
15732
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15500
15733
  ;;
15501
15734
 
 
15735
rdos*)
 
15736
  dynamic_linker=no
 
15737
  ;;
 
15738
 
15502
15739
solaris*)
15503
15740
  version_type=linux
15504
15741
  need_lib_prefix=no
15693
15930
    module_cmds_F77 \
15694
15931
    module_expsym_cmds_F77 \
15695
15932
    lt_cv_prog_compiler_c_o_F77 \
 
15933
    fix_srcfile_path_F77 \
15696
15934
    exclude_expsyms_F77 \
15697
15935
    include_expsyms_F77; do
15698
15936
 
16013
16251
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16014
16252
 
16015
16253
# Fix the shell variable \$srcfile for the compiler.
16016
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16254
fix_srcfile_path=$lt_fix_srcfile_path
16017
16255
 
16018
16256
# Set to yes if exported symbols are required.
16019
16257
always_export_symbols=$always_export_symbols_F77
16071
16309
objext_GCJ=$objext
16072
16310
 
16073
16311
# Code to be used in simple compile tests
16074
 
lt_simple_compile_test_code="class foo {}\n"
 
16312
lt_simple_compile_test_code="class foo {}"
16075
16313
 
16076
16314
# Code to be used in simple link tests
16077
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16315
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16078
16316
 
16079
16317
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16080
16318
 
16090
16328
 
16091
16329
# save warnings/boilerplate of simple test code
16092
16330
ac_outfile=conftest.$ac_objext
16093
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16331
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16094
16332
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16095
16333
_lt_compiler_boilerplate=`cat conftest.err`
16096
16334
$rm conftest*
16097
16335
 
16098
16336
ac_outfile=conftest.$ac_objext
16099
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16337
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16100
16338
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16101
16339
_lt_linker_boilerplate=`cat conftest.err`
16102
16340
$rm conftest*
16137
16375
else
16138
16376
  lt_cv_prog_compiler_rtti_exceptions=no
16139
16377
  ac_outfile=conftest.$ac_objext
16140
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16378
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16141
16379
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16142
16380
   # Insert the option either (1) after the last *FLAGS variable, or
16143
16381
   # (2) before a word containing "conftest.", or (3) at the end.
16148
16386
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16149
16387
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16150
16388
   -e 's:$: $lt_compiler_flag:'`
16151
 
   (eval echo "\"\$as_me:16151: $lt_compile\"" >&5)
 
16389
   (eval echo "\"\$as_me:16389: $lt_compile\"" >&5)
16152
16390
   (eval "$lt_compile" 2>conftest.err)
16153
16391
   ac_status=$?
16154
16392
   cat conftest.err >&5
16155
 
   echo "$as_me:16155: \$? = $ac_status" >&5
 
16393
   echo "$as_me:16393: \$? = $ac_status" >&5
16156
16394
   if (exit $ac_status) && test -s "$ac_outfile"; then
16157
16395
     # The compiler can only warn and ignore the option if not recognized
16158
16396
     # So say no if there are warnings other than the usual output.
16203
16441
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16204
16442
      ;;
16205
16443
 
16206
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16444
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16207
16445
      # PIC is the default for these OSes.
16208
16446
      ;;
16209
16447
 
16210
 
    mingw* | pw32* | os2*)
 
16448
    mingw* | cygwin* | pw32* | os2*)
16211
16449
      # This hack is so that the source file can tell whether it is being
16212
16450
      # built for inclusion in a dll (and should export symbols for example).
 
16451
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16452
      # (--disable-auto-import) libraries
16213
16453
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16214
16454
      ;;
16215
16455
 
16219
16459
      lt_prog_compiler_pic_GCJ='-fno-common'
16220
16460
      ;;
16221
16461
 
16222
 
    interix3*)
 
16462
    interix[3-9]*)
16223
16463
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16224
16464
      # Instead, we relocate shared libraries at runtime.
16225
16465
      ;;
16277
16517
       esac
16278
16518
       ;;
16279
16519
 
16280
 
    mingw* | pw32* | os2*)
 
16520
    mingw* | cygwin* | pw32* | os2*)
16281
16521
      # This hack is so that the source file can tell whether it is being
16282
16522
      # built for inclusion in a dll (and should export symbols for example).
16283
16523
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16329
16569
        # All Alpha code is PIC.
16330
16570
        lt_prog_compiler_static_GCJ='-non_shared'
16331
16571
        ;;
 
16572
      *)
 
16573
        case `$CC -V 2>&1 | sed 5q` in
 
16574
        *Sun\ C*)
 
16575
          # Sun C 5.9
 
16576
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16577
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16578
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16579
          ;;
 
16580
        *Sun\ F*)
 
16581
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16582
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16583
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16584
          lt_prog_compiler_wl_GCJ=''
 
16585
          ;;
 
16586
        esac
 
16587
        ;;
16332
16588
      esac
16333
16589
      ;;
16334
16590
 
16338
16594
      lt_prog_compiler_static_GCJ='-non_shared'
16339
16595
      ;;
16340
16596
 
 
16597
    rdos*)
 
16598
      lt_prog_compiler_static_GCJ='-non_shared'
 
16599
      ;;
 
16600
 
16341
16601
    solaris*)
16342
16602
      lt_prog_compiler_pic_GCJ='-KPIC'
16343
16603
      lt_prog_compiler_static_GCJ='-Bstatic'
16405
16665
else
16406
16666
  lt_prog_compiler_pic_works_GCJ=no
16407
16667
  ac_outfile=conftest.$ac_objext
16408
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16668
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16409
16669
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16410
16670
   # Insert the option either (1) after the last *FLAGS variable, or
16411
16671
   # (2) before a word containing "conftest.", or (3) at the end.
16416
16676
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16417
16677
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16418
16678
   -e 's:$: $lt_compiler_flag:'`
16419
 
   (eval echo "\"\$as_me:16419: $lt_compile\"" >&5)
 
16679
   (eval echo "\"\$as_me:16679: $lt_compile\"" >&5)
16420
16680
   (eval "$lt_compile" 2>conftest.err)
16421
16681
   ac_status=$?
16422
16682
   cat conftest.err >&5
16423
 
   echo "$as_me:16423: \$? = $ac_status" >&5
 
16683
   echo "$as_me:16683: \$? = $ac_status" >&5
16424
16684
   if (exit $ac_status) && test -s "$ac_outfile"; then
16425
16685
     # The compiler can only warn and ignore the option if not recognized
16426
16686
     # So say no if there are warnings other than the usual output.
16469
16729
  lt_prog_compiler_static_works_GCJ=no
16470
16730
   save_LDFLAGS="$LDFLAGS"
16471
16731
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16472
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16732
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16473
16733
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16474
16734
     # The linker can only warn and ignore the option if not recognized
16475
16735
     # So say no if there are warnings
16509
16769
   mkdir conftest
16510
16770
   cd conftest
16511
16771
   mkdir out
16512
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16772
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16513
16773
 
16514
16774
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16515
16775
   # Insert the option either (1) after the last *FLAGS variable, or
16520
16780
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16521
16781
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16522
16782
   -e 's:$: $lt_compiler_flag:'`
16523
 
   (eval echo "\"\$as_me:16523: $lt_compile\"" >&5)
 
16783
   (eval echo "\"\$as_me:16783: $lt_compile\"" >&5)
16524
16784
   (eval "$lt_compile" 2>out/conftest.err)
16525
16785
   ac_status=$?
16526
16786
   cat out/conftest.err >&5
16527
 
   echo "$as_me:16527: \$? = $ac_status" >&5
 
16787
   echo "$as_me:16787: \$? = $ac_status" >&5
16528
16788
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16529
16789
   then
16530
16790
     # The compiler can only warn and ignore the option if not recognized
16716
16976
      allow_undefined_flag_GCJ=unsupported
16717
16977
      always_export_symbols_GCJ=no
16718
16978
      enable_shared_with_static_runtimes_GCJ=yes
16719
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16979
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16720
16980
 
16721
16981
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16722
16982
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16734
16994
      fi
16735
16995
      ;;
16736
16996
 
16737
 
    interix3*)
 
16997
    interix[3-9]*)
16738
16998
      hardcode_direct_GCJ=no
16739
16999
      hardcode_shlibpath_var_GCJ=no
16740
17000
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16749
17009
      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'
16750
17010
      ;;
16751
17011
 
16752
 
    linux* | k*bsd*-gnu)
 
17012
    gnu* | linux* | k*bsd*-gnu)
16753
17013
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16754
17014
        tmp_addflag=
16755
17015
        case $cc_basename,$host_cpu in
16767
17027
        ifc* | ifort*)                  # Intel Fortran compiler
16768
17028
          tmp_addflag=' -nofor_main' ;;
16769
17029
        esac
16770
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17030
        case `$CC -V 2>&1 | sed 5q` in
 
17031
        *Sun\ C*)                       # Sun C 5.9
 
17032
          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'
 
17033
          tmp_sharedflag='-G' ;;
 
17034
        *Sun\ F*)                       # Sun Fortran 8.3
 
17035
          tmp_sharedflag='-G' ;;
 
17036
        *)
 
17037
          tmp_sharedflag='-shared' ;;
 
17038
        esac
 
17039
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771
17040
 
16772
17041
        if test $supports_anon_versioning = yes; then
16773
17042
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16774
17043
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16775
17044
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16776
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17045
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16777
17046
        fi
16778
17047
        link_all_deplibs_GCJ=no
16779
17048
      else
16933
17202
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16934
17203
          then
16935
17204
          # We have reworked collect2
16936
 
          hardcode_direct_GCJ=yes
 
17205
          :
16937
17206
          else
16938
17207
          # We have old collect2
16939
17208
          hardcode_direct_GCJ=unsupported
17007
17276
       } && test -s conftest$ac_exeext &&
17008
17277
       $as_test_x conftest$ac_exeext; then
17009
17278
 
17010
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17011
 
}'`
 
17279
lt_aix_libpath_sed='
 
17280
    /Import File Strings/,/^$/ {
 
17281
        /^0/ {
 
17282
            s/^0  *\(.*\)$/\1/
 
17283
            p
 
17284
        }
 
17285
    }'
 
17286
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17012
17287
# Check for a 64-bit object if we didn't find anything.
17013
 
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; }
17014
 
}'`; fi
 
17288
if test -z "$aix_libpath"; then
 
17289
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17290
fi
17015
17291
else
17016
17292
  echo "$as_me: failed program was:" >&5
17017
17293
sed 's/^/| /' conftest.$ac_ext >&5
17066
17342
       } && test -s conftest$ac_exeext &&
17067
17343
       $as_test_x conftest$ac_exeext; then
17068
17344
 
17069
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17070
 
}'`
 
17345
lt_aix_libpath_sed='
 
17346
    /Import File Strings/,/^$/ {
 
17347
        /^0/ {
 
17348
            s/^0  *\(.*\)$/\1/
 
17349
            p
 
17350
        }
 
17351
    }'
 
17352
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17071
17353
# Check for a 64-bit object if we didn't find anything.
17072
 
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; }
17073
 
}'`; fi
 
17354
if test -z "$aix_libpath"; then
 
17355
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17356
fi
17074
17357
else
17075
17358
  echo "$as_me: failed program was:" >&5
17076
17359
sed 's/^/| /' conftest.$ac_ext >&5
17124
17407
      # The linker will automatically build a .lib file if we build a DLL.
17125
17408
      old_archive_From_new_cmds_GCJ='true'
17126
17409
      # FIXME: Should let the user specify the lib program.
17127
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17410
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17128
17411
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17129
17412
      enable_shared_with_static_runtimes_GCJ=yes
17130
17413
      ;;
17166
17449
      case $cc_basename in
17167
17450
        xlc*)
17168
17451
         output_verbose_link_cmd='echo'
17169
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17452
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17170
17453
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17171
17454
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17172
 
         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}'
 
17455
         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}'
17173
17456
          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}'
17174
17457
          ;;
17175
17458
       *)
17331
17614
      ;;
17332
17615
 
17333
17616
    openbsd*)
17334
 
      hardcode_direct_GCJ=yes
17335
 
      hardcode_shlibpath_var_GCJ=no
17336
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17337
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17338
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17339
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17340
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17617
      if test -f /usr/libexec/ld.so; then
 
17618
        hardcode_direct_GCJ=yes
 
17619
        hardcode_shlibpath_var_GCJ=no
 
17620
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17621
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17622
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17623
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17624
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17625
        else
 
17626
          case $host_os in
 
17627
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17628
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17629
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17630
             ;;
 
17631
           *)
 
17632
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17633
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17634
             ;;
 
17635
          esac
 
17636
        fi
17341
17637
      else
17342
 
       case $host_os in
17343
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17344
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17345
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17346
 
           ;;
17347
 
         *)
17348
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17349
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17350
 
           ;;
17351
 
       esac
 
17638
        ld_shlibs_GCJ=no
17352
17639
      fi
17353
17640
      ;;
17354
17641
 
17407
17694
      case $host_os in
17408
17695
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17409
17696
      *)
17410
 
        # The compiler driver will combine linker options so we
17411
 
        # cannot just pass the convience library names through
17412
 
        # without $wl, iff we do not link with $LD.
17413
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17697
        # The compiler driver will combine and reorder linker options,
 
17698
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17699
        # but is careful enough not to reorder.
17414
17700
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17415
 
        case $wlarc in
17416
 
        '')
17417
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17418
 
        *)
17419
 
          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' ;;
17420
 
        esac ;;
 
17701
        if test "$GCC" = yes; then
 
17702
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17703
        else
 
17704
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17705
        fi
 
17706
        ;;
17421
17707
      esac
17422
17708
      link_all_deplibs_GCJ=yes
17423
17709
      ;;
17474
17760
      fi
17475
17761
      ;;
17476
17762
 
17477
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17763
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17478
17764
      no_undefined_flag_GCJ='${wl}-z,text'
17479
17765
      archive_cmds_need_lc_GCJ=no
17480
17766
      hardcode_shlibpath_var_GCJ=no
17551
17837
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17552
17838
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17553
17839
      $rm conftest*
17554
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17840
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17555
17841
 
17556
17842
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557
17843
  (eval $ac_compile) 2>&5
17609
17895
version_type=none
17610
17896
dynamic_linker="$host_os ld.so"
17611
17897
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17612
 
if test "$GCC" = yes; then
17613
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17614
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17615
 
    # if the path contains ";" then we assume it to be the separator
17616
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17617
 
    # assumed that no part of a normal pathname contains ";" but that should
17618
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17619
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17620
 
  else
17621
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17622
 
  fi
17623
 
else
17624
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17625
 
fi
 
17898
 
17626
17899
need_lib_prefix=unknown
17627
17900
hardcode_into_libs=no
17628
17901
 
17779
18052
  shlibpath_overrides_runpath=yes
17780
18053
  shlibpath_var=DYLD_LIBRARY_PATH
17781
18054
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17782
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17783
 
  if test "$GCC" = yes; then
17784
 
    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"`
17785
 
  else
17786
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17787
 
  fi
 
18055
 
17788
18056
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17789
18057
  ;;
17790
18058
 
17838
18106
    shlibpath_overrides_runpath=no
17839
18107
    hardcode_into_libs=yes
17840
18108
    ;;
17841
 
  freebsd*) # from 4.6 on
 
18109
  *) # from 4.6 on, and DragonFly
17842
18110
    shlibpath_overrides_runpath=yes
17843
18111
    hardcode_into_libs=yes
17844
18112
    ;;
17901
18169
  postinstall_cmds='chmod 555 $lib'
17902
18170
  ;;
17903
18171
 
17904
 
interix3*)
 
18172
interix[3-9]*)
17905
18173
  version_type=linux
17906
18174
  need_lib_prefix=no
17907
18175
  need_version=no
17972
18240
 
17973
18241
  # Append ld.so.conf contents to the search path
17974
18242
  if test -f /etc/ld.so.conf; then
17975
 
    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' ' '`
 
18243
    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' ' '`
17976
18244
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17977
18245
  fi
17978
18246
 
18078
18346
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18079
18347
  ;;
18080
18348
 
 
18349
rdos*)
 
18350
  dynamic_linker=no
 
18351
  ;;
 
18352
 
18081
18353
solaris*)
18082
18354
  version_type=linux
18083
18355
  need_lib_prefix=no
18272
18544
    module_cmds_GCJ \
18273
18545
    module_expsym_cmds_GCJ \
18274
18546
    lt_cv_prog_compiler_c_o_GCJ \
 
18547
    fix_srcfile_path_GCJ \
18275
18548
    exclude_expsyms_GCJ \
18276
18549
    include_expsyms_GCJ; do
18277
18550
 
18592
18865
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18593
18866
 
18594
18867
# Fix the shell variable \$srcfile for the compiler.
18595
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18868
fix_srcfile_path=$lt_fix_srcfile_path
18596
18869
 
18597
18870
# Set to yes if exported symbols are required.
18598
18871
always_export_symbols=$always_export_symbols_GCJ
18649
18922
objext_RC=$objext
18650
18923
 
18651
18924
# Code to be used in simple compile tests
18652
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18925
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18653
18926
 
18654
18927
# Code to be used in simple link tests
18655
18928
lt_simple_link_test_code="$lt_simple_compile_test_code"
18668
18941
 
18669
18942
# save warnings/boilerplate of simple test code
18670
18943
ac_outfile=conftest.$ac_objext
18671
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18944
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18672
18945
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18673
18946
_lt_compiler_boilerplate=`cat conftest.err`
18674
18947
$rm conftest*
18675
18948
 
18676
18949
ac_outfile=conftest.$ac_objext
18677
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18950
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18678
18951
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18679
18952
_lt_linker_boilerplate=`cat conftest.err`
18680
18953
$rm conftest*
18752
19025
    module_cmds_RC \
18753
19026
    module_expsym_cmds_RC \
18754
19027
    lt_cv_prog_compiler_c_o_RC \
 
19028
    fix_srcfile_path_RC \
18755
19029
    exclude_expsyms_RC \
18756
19030
    include_expsyms_RC; do
18757
19031
 
19072
19346
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19073
19347
 
19074
19348
# Fix the shell variable \$srcfile for the compiler.
19075
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
19349
fix_srcfile_path=$lt_fix_srcfile_path
19076
19350
 
19077
19351
# Set to yes if exported symbols are required.
19078
19352
always_export_symbols=$always_export_symbols_RC
19914
20188
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19915
20189
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19916
20190
         >/dev/null 2>conftest.err &&
 
20191
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19917
20192
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19918
20193
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19919
20194
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19943
20218
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19944
20219
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19945
20220
 
19946
 
 
19947
 
 
19948
 
if
 
20221
 if
19949
20222
  test "x$enable_dependency_tracking" != xno \
19950
20223
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19951
20224
  am__fastdepCC_TRUE=
20423
20696
and XORG_LIBS to avoid the need to call pkg-config.
20424
20697
See the pkg-config man page for more details.
20425
20698
 
20426
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20699
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20427
20700
See \`config.log' for more details." >&5
20428
20701
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20429
20702
is in your PATH or set the PKG_CONFIG environment variable to the full
20433
20706
and XORG_LIBS to avoid the need to call pkg-config.
20434
20707
See the pkg-config man page for more details.
20435
20708
 
20436
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20709
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20437
20710
See \`config.log' for more details." >&2;}
20438
20711
   { (exit 1); exit 1; }; }
20439
20712
else
20715
20988
{ echo "$as_me:$LINENO: result: $DRI" >&5
20716
20989
echo "${ECHO_T}$DRI" >&6; }
20717
20990
 
20718
 
 
20719
 
 
20720
 
if test x$DRI = xyes; then
 
20991
 if test x$DRI = xyes; then
20721
20992
  DRI_TRUE=
20722
20993
  DRI_FALSE='#'
20723
20994
else
20817
21088
and DRI_LIBS to avoid the need to call pkg-config.
20818
21089
See the pkg-config man page for more details.
20819
21090
 
20820
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21091
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20821
21092
See \`config.log' for more details." >&5
20822
21093
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20823
21094
is in your PATH or set the PKG_CONFIG environment variable to the full
20827
21098
and DRI_LIBS to avoid the need to call pkg-config.
20828
21099
See the pkg-config man page for more details.
20829
21100
 
20830
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21101
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20831
21102
See \`config.log' for more details." >&2;}
20832
21103
   { (exit 1); exit 1; }; }
20833
21104
else
21407
21678
# report actual input values of CONFIG_FILES etc. instead of their
21408
21679
# values after options handling.
21409
21680
ac_log="
21410
 
This file was extended by xf86-video-savage $as_me 2.1.2, which was
 
21681
This file was extended by xf86-video-savage $as_me 2.1.3, which was
21411
21682
generated by GNU Autoconf 2.61.  Invocation command line was
21412
21683
 
21413
21684
  CONFIG_FILES    = $CONFIG_FILES
21460
21731
_ACEOF
21461
21732
cat >>$CONFIG_STATUS <<_ACEOF
21462
21733
ac_cs_version="\\
21463
 
xf86-video-savage config.status 2.1.2
 
21734
xf86-video-savage config.status 2.1.3
21464
21735
configured by $0, generated by GNU Autoconf 2.61,
21465
21736
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21466
21737
 
21471
21742
ac_pwd='$ac_pwd'
21472
21743
srcdir='$srcdir'
21473
21744
INSTALL='$INSTALL'
 
21745
MKDIR_P='$MKDIR_P'
21474
21746
_ACEOF
21475
21747
 
21476
21748
cat >>$CONFIG_STATUS <<\_ACEOF
21680
21952
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21681
21953
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21682
21954
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21955
am__isrc!$am__isrc$ac_delim
21683
21956
CYGPATH_W!$CYGPATH_W$ac_delim
21684
21957
PACKAGE!$PACKAGE$ac_delim
21685
21958
VERSION!$VERSION$ac_delim
21725
21998
CCDEPMODE!$CCDEPMODE$ac_delim
21726
21999
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21727
22000
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
22001
SED!$SED$ac_delim
21728
22002
GREP!$GREP$ac_delim
21729
22003
EGREP!$EGREP$ac_delim
21730
22004
LN_S!$LN_S$ac_delim
21735
22009
CXX!$CXX$ac_delim
21736
22010
CXXFLAGS!$CXXFLAGS$ac_delim
21737
22011
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
22012
_ACEOF
 
22013
 
 
22014
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
22015
    break
 
22016
  elif $ac_last_try; then
 
22017
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22018
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22019
   { (exit 1); exit 1; }; }
 
22020
  else
 
22021
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22022
  fi
 
22023
done
 
22024
 
 
22025
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22026
if test -n "$ac_eof"; then
 
22027
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22028
  ac_eof=`expr $ac_eof + 1`
 
22029
fi
 
22030
 
 
22031
cat >>$CONFIG_STATUS <<_ACEOF
 
22032
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22033
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22034
_ACEOF
 
22035
sed '
 
22036
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22037
s/^/s,@/; s/!/@,|#_!!_#|/
 
22038
:n
 
22039
t n
 
22040
s/'"$ac_delim"'$/,g/; t
 
22041
s/$/\\/; p
 
22042
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22043
' >>$CONFIG_STATUS <conf$$subs.sed
 
22044
rm -f conf$$subs.sed
 
22045
cat >>$CONFIG_STATUS <<_ACEOF
 
22046
CEOF$ac_eof
 
22047
_ACEOF
 
22048
 
 
22049
 
 
22050
ac_delim='%!_!# '
 
22051
for ac_last_try in false false false false false :; do
 
22052
  cat >conf$$subs.sed <<_ACEOF
21738
22053
CXXDEPMODE!$CXXDEPMODE$ac_delim
21739
22054
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21740
 
_ACEOF
21741
 
 
21742
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21743
 
    break
21744
 
  elif $ac_last_try; then
21745
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21746
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21747
 
   { (exit 1); exit 1; }; }
21748
 
  else
21749
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21750
 
  fi
21751
 
done
21752
 
 
21753
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21754
 
if test -n "$ac_eof"; then
21755
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21756
 
  ac_eof=`expr $ac_eof + 1`
21757
 
fi
21758
 
 
21759
 
cat >>$CONFIG_STATUS <<_ACEOF
21760
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21761
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21762
 
_ACEOF
21763
 
sed '
21764
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21765
 
s/^/s,@/; s/!/@,|#_!!_#|/
21766
 
:n
21767
 
t n
21768
 
s/'"$ac_delim"'$/,g/; t
21769
 
s/$/\\/; p
21770
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21771
 
' >>$CONFIG_STATUS <conf$$subs.sed
21772
 
rm -f conf$$subs.sed
21773
 
cat >>$CONFIG_STATUS <<_ACEOF
21774
 
CEOF$ac_eof
21775
 
_ACEOF
21776
 
 
21777
 
 
21778
 
ac_delim='%!_!# '
21779
 
for ac_last_try in false false false false false :; do
21780
 
  cat >conf$$subs.sed <<_ACEOF
21781
22055
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21782
22056
CXXCPP!$CXXCPP$ac_delim
21783
22057
F77!$F77$ac_delim
21809
22083
LTLIBOBJS!$LTLIBOBJS$ac_delim
21810
22084
_ACEOF
21811
22085
 
21812
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
 
22086
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21813
22087
    break
21814
22088
  elif $ac_last_try; then
21815
22089
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22036
22310
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22037
22311
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22038
22312
  esac
 
22313
  ac_MKDIR_P=$MKDIR_P
 
22314
  case $MKDIR_P in
 
22315
  [\\/$]* | ?:[\\/]* ) ;;
 
22316
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
22317
  esac
22039
22318
_ACEOF
22040
22319
 
22041
22320
cat >>$CONFIG_STATUS <<\_ACEOF
22089
22368
s&@abs_builddir@&$ac_abs_builddir&;t t
22090
22369
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22091
22370
s&@INSTALL@&$ac_INSTALL&;t t
 
22371
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22092
22372
$ac_datarootdir_hack
22093
22373
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22094
22374
 
22253
22533
  # some people rename them; so instead we look at the file content.
22254
22534
  # Grep'ing the first line is not enough: some people post-process
22255
22535
  # each Makefile.in and add a new line on top of each file to say so.
22256
 
  # So let's grep whole file.
22257
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
22536
  # Grep'ing the whole file is not good either: AIX grep has a line
 
22537
  # limit of 2048, but all sed's we know have understand at least 4000.
 
22538
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22258
22539
    dirpart=`$as_dirname -- "$mf" ||
22259
22540
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260
22541
         X"$mf" : 'X\(//\)[^/]' \| \