Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6 in downloads for aclocal.m4


Ignore:
Timestamp:
Oct 9, 2007, 10:16:21 PM (18 years ago)
Author:
anonymous
Message:

=…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r5 r6  
    1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
     1# generated automatically by aclocal 1.10 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005  Free Software Foundation, Inc.
     4# 2005, 2006  Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
    66# gives unlimited permission to copy and/or distribute it,
     
    1212# PARTICULAR PURPOSE.
    1313
     14m4_if(m4_PACKAGE_VERSION, [2.61],,
     15[m4_fatal([this file was generated for autoconf 2.61.
     16You have another version of autoconf.  If you want to use that,
     17you should regenerate the build system entirely.], [63])])
     18
    1419# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1520
    16 # serial 47 AC_PROG_LIBTOOL
     21# serial 51 AC_PROG_LIBTOOL
    1722
    1823
     
    164169test -z "$CC" && CC=cc
    165170test -z "$LTCC" && LTCC=$CC
     171test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    166172test -z "$DLLTOOL" && DLLTOOL=dlltool
    167173test -z "$LD" && LD=ld
     
    176182
    177183# Determine commands to create old-style static archives.
    178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     184old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    179185old_postinstall_cmds='chmod 644 $oldlib'
    180186old_postuninstall_cmds=
     
    183189  case $host_os in
    184190  openbsd*)
    185     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
     191    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    186192    ;;
    187193  *)
    188     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     194    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    189195    ;;
    190196  esac
     
    233239# If no C compiler was specified, use CC.
    234240LTCC=${LTCC-"$CC"}
     241
     242# If no C compiler flags were specified, use CFLAGS.
     243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    235244
    236245# Allow CC to be a program name with arguments.
     
    260269# the simple compiler test code.
    261270AC_DEFUN([_LT_COMPILER_BOILERPLATE],
    262 [ac_outfile=conftest.$ac_objext
    263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     271[AC_REQUIRE([LT_AC_PROG_SED])dnl
     272ac_outfile=conftest.$ac_objext
     273echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     274eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    265275_lt_compiler_boilerplate=`cat conftest.err`
    266276$rm conftest*
     
    273283# the simple link test code.
    274284AC_DEFUN([_LT_LINKER_BOILERPLATE],
    275 [ac_outfile=conftest.$ac_objext
    276 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     285[AC_REQUIRE([LT_AC_PROG_SED])dnl
     286ac_outfile=conftest.$ac_objext
     287echo "$lt_simple_link_test_code" >conftest.$ac_ext
     288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    278289_lt_linker_boilerplate=`cat conftest.err`
    279290$rm conftest*
     
    290301# to the aix ld manual.
    291302AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
    292 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    294 }'`
     303[AC_REQUIRE([LT_AC_PROG_SED])dnl
     304AC_LINK_IFELSE(AC_LANG_PROGRAM,[
     305lt_aix_libpath_sed='
     306    /Import File Strings/,/^$/ {
     307        /^0/ {
     308            s/^0  *\(.*\)$/\1/
     309            p
     310        }
     311    }'
     312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    295313# Check for a 64-bit object if we didn't find anything.
    296 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; }
    297 }'`; fi],[])
     314if test -z "$aix_libpath"; then
     315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     316fi],[])
    298317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    299318])# _LT_AC_SYS_LIBPATH_AIX
     
    526545  ;;
    527546
    528 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     547x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
     548s390*-*linux*|sparc*-*linux*)
    529549  # Find out which ABI we are using.
    530550  echo 'int i;' > conftest.$ac_ext
     
    533553    *32-bit*)
    534554      case $host in
     555        x86_64-*kfreebsd*-gnu)
     556          LD="${LD-ld} -m elf_i386_fbsd"
     557          ;;
    535558        x86_64-*linux*)
    536559          LD="${LD-ld} -m elf_i386"
     
    549572    *64-bit*)
    550573      case $host in
     574        x86_64-*kfreebsd*-gnu)
     575          LD="${LD-ld} -m elf_x86_64_fbsd"
     576          ;;
    551577        x86_64-*linux*)
    552578          LD="${LD-ld} -m elf_x86_64"
     
    581607  fi
    582608  ;;
     609sparc*-*solaris*)
     610  # Find out which ABI we are using.
     611  echo 'int i;' > conftest.$ac_ext
     612  if AC_TRY_EVAL(ac_compile); then
     613    case `/usr/bin/file conftest.o` in
     614    *64-bit*)
     615      case $lt_cv_prog_gnu_ld in
     616      yes*) LD="${LD-ld} -m elf64_sparc" ;;
     617      *)    LD="${LD-ld} -64" ;;
     618      esac
     619      ;;
     620    esac
     621  fi
     622  rm -rf conftest*
     623  ;;
     624
    583625AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
    584626[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
     
    604646  [$2=no
    605647  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    606    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     648   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    607649   lt_compiler_flag="$3"
    608650   # Insert the option either (1) after the last *FLAGS variable, or
     
    623665     # The compiler can only warn and ignore the option if not recognized
    624666     # So say no if there are warnings other than the usual output.
    625      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    626      $SED '/^$/d' conftest.err >conftest.er2
    627      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     667     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     668     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     669     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    628670       $2=yes
    629671     fi
     
    645687# Check whether the given compiler option works
    646688AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
    647 [AC_CACHE_CHECK([$1], [$2],
     689[AC_REQUIRE([LT_AC_PROG_SED])dnl
     690AC_CACHE_CHECK([$1], [$2],
    648691  [$2=no
    649692   save_LDFLAGS="$LDFLAGS"
    650693   LDFLAGS="$LDFLAGS $3"
    651    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     694   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    652695   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    653696     # The linker can only warn and ignore the option if not recognized
     
    656699       # Append any errors to the config.log.
    657700       cat conftest.err 1>&AS_MESSAGE_LOG_FD
    658        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
    659        $SED '/^$/d' conftest.err >conftest.er2
     701       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     702       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    660703       if diff conftest.exp conftest.er2 >/dev/null; then
    661704         $2=yes
     
    732775    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    733776    ;;
     777
     778  interix*)
     779    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     780    lt_cv_sys_max_cmd_len=196608
     781    ;;
     782
    734783  osf*)
    735784    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     
    745794    fi
    746795    ;;
     796  sco3.2v5*)
     797    lt_cv_sys_max_cmd_len=102400
     798    ;;
     799  sysv5* | sco5v6* | sysv4.2uw2*)
     800    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     801    if test -n "$kargmax"; then
     802      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
     803    else
     804      lt_cv_sys_max_cmd_len=32768
     805    fi
     806    ;;
    747807  *)
    748     # If test is not a shell built-in, we'll probably end up computing a
    749     # maximum length that is only half of the actual maximum length, but
    750     # we can't tell.
    751     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    752     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
     808    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     809    if test -n "$lt_cv_sys_max_cmd_len"; then
     810      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     812    else
     813      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     814      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    753815               = "XX$teststring") >/dev/null 2>&1 &&
    754             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    755             lt_cv_sys_max_cmd_len=$new_result &&
    756             test $i != 17 # 1/2 MB should be enough
    757     do
    758       i=`expr $i + 1`
    759       teststring=$teststring$teststring
    760     done
    761     teststring=
    762     # Add a significant safety factor because C++ compilers can tack on massive
    763     # amounts of additional arguments before passing them to the linker.
    764     # It appears as though 1/2 is a usable value.
    765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     816              new_result=`expr "X$teststring" : ".*" 2>&1` &&
     817              lt_cv_sys_max_cmd_len=$new_result &&
     818              test $i != 17 # 1/2 MB should be enough
     819      do
     820        i=`expr $i + 1`
     821        teststring=$teststring$teststring
     822      done
     823      teststring=
     824      # Add a significant safety factor because C++ compilers can tack on massive
     825      # amounts of additional arguments before passing them to the linker.
     826      # It appears as though 1/2 is a usable value.
     827      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     828    fi
    766829    ;;
    767830  esac
     
    776839
    777840# _LT_AC_CHECK_DLFCN
    778 # --------------------
     841# ------------------
    779842AC_DEFUN([_LT_AC_CHECK_DLFCN],
    780843[AC_CHECK_HEADERS(dlfcn.h)dnl
     
    784847# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
    785848#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
    786 # ------------------------------------------------------------------
     849# ---------------------------------------------------------------------
    787850AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
    788851[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
     
    850913      /* dlclose (self); */
    851914    }
     915  else
     916    puts (dlerror ());
    852917
    853918    exit (status);
     
    860925      x$lt_dlno_uscore) $1 ;;
    861926      x$lt_dlneed_uscore) $2 ;;
    862       x$lt_unknown|x*) $3 ;;
     927      x$lt_dlunknown|x*) $3 ;;
    863928    esac
    864929  else :
     
    872937
    873938# AC_LIBTOOL_DLOPEN_SELF
    874 # -------------------
     939# ----------------------
    875940AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
    876941[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
     
    9431008
    9441009    save_LDFLAGS="$LDFLAGS"
    945     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
     1010    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    9461011
    9471012    save_LIBS="$LIBS"
     
    9561021
    9571022    if test "x$lt_cv_dlopen_self" = xyes; then
    958       LDFLAGS="$LDFLAGS $link_static_flag"
     1023      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
    9591024      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
    9601025          lt_cv_dlopen_self_static, [dnl
     
    9881053# Check to see if options -c and -o are simultaneously supported by compiler
    9891054AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
    990 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
     1055[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1056AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    9911057AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    9921058  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
     
    9961062   cd conftest
    9971063   mkdir out
    998    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     1064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    9991065
    10001066   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    10161082     # The compiler can only warn and ignore the option if not recognized
    10171083     # So say no if there are warnings
    1018      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    1019      $SED '/^$/d' out/conftest.err >out/conftest.er2
    1020      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     1084     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     1085     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     1086     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    10211087       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    10221088     fi
     
    11361202       if test -n "$STRIP" ; then
    11371203         striplib="$STRIP -x"
     1204         old_striplib="$STRIP -S"
    11381205         AC_MSG_RESULT([yes])
    11391206       else
     
    11531220# PORTME Fill in your ld.so characteristics
    11541221AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
    1155 [AC_MSG_CHECKING([dynamic linker characteristics])
     1222[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1223AC_MSG_CHECKING([dynamic linker characteristics])
    11561224library_names_spec=
    11571225libname_spec='lib$name'
     
    11671235dynamic_linker="$host_os ld.so"
    11681236sys_lib_dlsearch_path_spec="/lib /usr/lib"
     1237m4_if($1,[],[
    11691238if test "$GCC" = yes; then
    1170   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1171   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     1239  case $host_os in
     1240    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     1241    *) lt_awk_arg="/^libraries:/" ;;
     1242  esac
     1243  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     1244  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
    11721245    # if the path contains ";" then we assume it to be the separator
    11731246    # otherwise default to the standard path separator (i.e. ":") - it is
    11741247    # assumed that no part of a normal pathname contains ";" but that should
    11751248    # okay in the real world where ";" in dirpaths is itself problematic.
    1176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     1249    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    11771250  else
    1178     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     1251    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    11791252  fi
     1253  # Ok, now we have the path, separated by spaces, we can step through it
     1254  # and add multilib dir if necessary.
     1255  lt_tmp_lt_search_path_spec=
     1256  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     1257  for lt_sys_path in $lt_search_path_spec; do
     1258    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     1259      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     1260    else
     1261      test -d "$lt_sys_path" && \
     1262        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     1263    fi
     1264  done
     1265  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
     1266BEGIN {RS=" "; FS="/|\n";} {
     1267  lt_foo="";
     1268  lt_count=0;
     1269  for (lt_i = NF; lt_i > 0; lt_i--) {
     1270    if ($lt_i != "" && $lt_i != ".") {
     1271      if ($lt_i == "..") {
     1272        lt_count++;
     1273      } else {
     1274        if (lt_count == 0) {
     1275          lt_foo="/" $lt_i lt_foo;
     1276        } else {
     1277          lt_count--;
     1278        }
     1279      }
     1280    }
     1281  }
     1282  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
     1283  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
     1284}'`
     1285  sys_lib_search_path_spec=`echo $lt_search_path_spec`
    11801286else
    11811287  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    1182 fi
     1288fi])
    11831289need_lib_prefix=unknown
    11841290hardcode_into_libs=no
     
    13371443  shlibpath_var=DYLD_LIBRARY_PATH
    13381444  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    1339   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    1340   if test "$GCC" = yes; then
    1341     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"`
    1342   else
    1343     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    1344   fi
     1445  m4_if([$1], [],[
     1446  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
    13451447  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    13461448  ;;
     
    13571459freebsd1*)
    13581460  dynamic_linker=no
    1359   ;;
    1360 
    1361 kfreebsd*-gnu)
    1362   version_type=linux
    1363   need_lib_prefix=no
    1364   need_version=no
    1365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1366   soname_spec='${libname}${release}${shared_ext}$major'
    1367   shlibpath_var=LD_LIBRARY_PATH
    1368   shlibpath_overrides_runpath=no
    1369   hardcode_into_libs=yes
    1370   dynamic_linker='GNU ld.so'
    13711461  ;;
    13721462
     
    14031493    hardcode_into_libs=yes
    14041494    ;;
    1405   *) # from 3.2 on
     1495  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
     1496  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
    14061497    shlibpath_overrides_runpath=no
     1498    hardcode_into_libs=yes
     1499    ;;
     1500  *) # from 4.6 on, and DragonFly
     1501    shlibpath_overrides_runpath=yes
    14071502    hardcode_into_libs=yes
    14081503    ;;
     
    14661561  ;;
    14671562
     1563interix[[3-9]]*)
     1564  version_type=linux
     1565  need_lib_prefix=no
     1566  need_version=no
     1567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     1568  soname_spec='${libname}${release}${shared_ext}$major'
     1569  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     1570  shlibpath_var=LD_LIBRARY_PATH
     1571  shlibpath_overrides_runpath=no
     1572  hardcode_into_libs=yes
     1573  ;;
     1574
    14681575irix5* | irix6* | nonstopux*)
    14691576  case $host_os in
     
    15091616
    15101617# This must be Linux ELF.
    1511 linux*)
     1618linux* | k*bsd*-gnu)
    15121619  version_type=linux
    15131620  need_lib_prefix=no
     
    15251632  # Append ld.so.conf contents to the search path
    15261633  if test -f /etc/ld.so.conf; then
    1527     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' ' '`
     1634    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' ' '`
    15281635    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    15291636  fi
     
    15361643  # assume the GNU/Linux dynamic linker is in use.
    15371644  dynamic_linker='GNU/Linux ld.so'
    1538   ;;
    1539 
    1540 knetbsd*-gnu)
    1541   version_type=linux
    1542   need_lib_prefix=no
    1543   need_version=no
    1544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1545   soname_spec='${libname}${release}${shared_ext}$major'
    1546   shlibpath_var=LD_LIBRARY_PATH
    1547   shlibpath_overrides_runpath=no
    1548   hardcode_into_libs=yes
    1549   dynamic_linker='GNU ld.so'
    15501645  ;;
    15511646
     
    15871682openbsd*)
    15881683  version_type=sunos
     1684  sys_lib_dlsearch_path_spec="/usr/lib"
    15891685  need_lib_prefix=no
    15901686  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    16301726  ;;
    16311727
    1632 sco3.2v5*)
    1633   version_type=osf
    1634   soname_spec='${libname}${release}${shared_ext}$major'
    1635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1636   shlibpath_var=LD_LIBRARY_PATH
     1728rdos*)
     1729  dynamic_linker=no
    16371730  ;;
    16381731
     
    16621755  ;;
    16631756
    1664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     1757sysv4 | sysv4.3*)
    16651758  version_type=linux
    16661759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    16951788  ;;
    16961789
     1790sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     1791  version_type=freebsd-elf
     1792  need_lib_prefix=no
     1793  need_version=no
     1794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     1795  soname_spec='${libname}${release}${shared_ext}$major'
     1796  shlibpath_var=LD_LIBRARY_PATH
     1797  hardcode_into_libs=yes
     1798  if test "$with_gnu_ld" = yes; then
     1799    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     1800    shlibpath_overrides_runpath=no
     1801  else
     1802    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     1803    shlibpath_overrides_runpath=yes
     1804    case $host_os in
     1805      sco3.2v5*)
     1806        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     1807        ;;
     1808    esac
     1809  fi
     1810  sys_lib_dlsearch_path_spec='/usr/lib'
     1811  ;;
     1812
    16971813uts4*)
    16981814  version_type=linux
     
    17081824AC_MSG_RESULT([$dynamic_linker])
    17091825test "$dynamic_linker" = no && can_build_shared=no
     1826
     1827variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     1828if test "$GCC" = yes; then
     1829  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     1830fi
    17101831])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
    17111832
     
    17141835# ----------------
    17151836AC_DEFUN([_LT_AC_TAGCONFIG],
    1716 [AC_ARG_WITH([tags],
     1837[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1838AC_ARG_WITH([tags],
    17171839    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
    17181840        [include additional configurations @<:@automatic@:>@])],
     
    17311853      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
    17321854    fi
     1855  fi
     1856  if test -z "$LTCFLAGS"; then
     1857    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
    17331858  fi
    17341859
     
    18601985# AC_DISABLE_SHARED
    18611986# -----------------
    1862 #- set the default shared flag to --disable-shared
     1987# set the default shared flag to --disable-shared
    18631988AC_DEFUN([AC_DISABLE_SHARED],
    18641989[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     
    19722097# AC_PATH_TOOL_PREFIX
    19732098# -------------------
    1974 # find a file program which can recognise shared library
     2099# find a file program which can recognize shared library
    19752100AC_DEFUN([AC_PATH_TOOL_PREFIX],
    19762101[AC_REQUIRE([AC_PROG_EGREP])dnl
     
    20352160# AC_PATH_MAGIC
    20362161# -------------
    2037 # find a file program which can recognise a shared library
     2162# find a file program which can recognize a shared library
    20382163AC_DEFUN([AC_PATH_MAGIC],
    20392164[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
     
    21682293  darwin*)
    21692294    if test "$GCC" = yes; then
    2170       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
     2295      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    21712296    else
    21722297      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     
    21822307#  -- PORTME fill in with the dynamic library characteristics
    21832308AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    2184 [AC_CACHE_CHECK([how to recognise dependent libraries],
     2309[AC_CACHE_CHECK([how to recognize dependent libraries],
    21852310lt_cv_deplibs_check_method,
    21862311[lt_cv_file_magic_cmd='$MAGIC_CMD'
     
    22212346mingw* | pw32*)
    22222347  # Base MSYS/MinGW do not provide the 'file' command needed by
    2223   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    2224   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    2225   lt_cv_file_magic_cmd='$OBJDUMP -f'
     2348  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     2349  # unless we find 'file', for example because we are cross-compiling.
     2350  if ( file / ) >/dev/null 2>&1; then
     2351    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     2352    lt_cv_file_magic_cmd='func_win32_libid'
     2353  else
     2354    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     2355    lt_cv_file_magic_cmd='$OBJDUMP -f'
     2356  fi
    22262357  ;;
    22272358
     
    22302361  ;;
    22312362
    2232 freebsd* | kfreebsd*-gnu | dragonfly*)
     2363freebsd* | dragonfly*)
    22332364  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    22342365    case $host_cpu in
     
    22682399  ;;
    22692400
     2401interix[[3-9]]*)
     2402  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     2403  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
     2404  ;;
     2405
    22702406irix5* | irix6* | nonstopux*)
    22712407  case $LD in
     
    22792415
    22802416# This must be Linux ELF.
    2281 linux*)
     2417linux* | k*bsd*-gnu)
    22822418  lt_cv_deplibs_check_method=pass_all
    22832419  ;;
     
    23132449  ;;
    23142450
    2315 sco3.2v5*)
     2451rdos*)
    23162452  lt_cv_deplibs_check_method=pass_all
    23172453  ;;
     
    23212457  ;;
    23222458
    2323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     2459sysv4 | sysv4.3*)
    23242460  case $host_vendor in
    23252461  motorola)
     
    23422478    lt_cv_deplibs_check_method=pass_all
    23432479    ;;
     2480  pc)
     2481    lt_cv_deplibs_check_method=pass_all
     2482    ;;
    23442483  esac
    23452484  ;;
    23462485
    2347 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
     2486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    23482487  lt_cv_deplibs_check_method=pass_all
    23492488  ;;
     
    23652504  lt_cv_path_NM="$NM"
    23662505else
    2367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2368   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    2369     IFS="$lt_save_ifs"
    2370     test -z "$ac_dir" && ac_dir=.
    2371     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    2372     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    2373       # Check to see if the nm accepts a BSD-compat flag.
    2374       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    2375       #   nm: unknown option "B" ignored
    2376       # Tru64's nm complains that /dev/null is an invalid object file
    2377       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    2378       */dev/null* | *'Invalid file or object type'*)
    2379         lt_cv_path_NM="$tmp_nm -B"
    2380         break
    2381         ;;
    2382       *)
    2383         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    2384         */dev/null*)
    2385           lt_cv_path_NM="$tmp_nm -p"
     2506  lt_nm_to_check="${ac_tool_prefix}nm"
     2507  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     2508    lt_nm_to_check="$lt_nm_to_check nm"
     2509  fi
     2510  for lt_tmp_nm in $lt_nm_to_check; do
     2511    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     2512    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     2513      IFS="$lt_save_ifs"
     2514      test -z "$ac_dir" && ac_dir=.
     2515      tmp_nm="$ac_dir/$lt_tmp_nm"
     2516      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     2517        # Check to see if the nm accepts a BSD-compat flag.
     2518        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     2519        #   nm: unknown option "B" ignored
     2520        # Tru64's nm complains that /dev/null is an invalid object file
     2521        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     2522        */dev/null* | *'Invalid file or object type'*)
     2523          lt_cv_path_NM="$tmp_nm -B"
    23862524          break
    23872525          ;;
    23882526        *)
    2389           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    2390           continue # so that we can try to find one that supports BSD flags
     2527          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     2528          */dev/null*)
     2529            lt_cv_path_NM="$tmp_nm -p"
     2530            break
     2531            ;;
     2532          *)
     2533            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     2534            continue # so that we can try to find one that supports BSD flags
     2535            ;;
     2536          esac
    23912537          ;;
    23922538        esac
    2393       esac
    2394     fi
     2539      fi
     2540    done
     2541    IFS="$lt_save_ifs"
    23952542  done
    2396   IFS="$lt_save_ifs"
    23972543  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    23982544fi])
     
    25002646
    25012647# _LT_AC_PROG_CXXCPP
    2502 # ---------------
     2648# ------------------
    25032649AC_DEFUN([_LT_AC_PROG_CXXCPP],
    25042650[
     
    25492695
    25502696# AC_LIBTOOL_RC
    2551 # --------------
     2697# -------------
    25522698# enable support for Windows resource files
    25532699AC_DEFUN([AC_LIBTOOL_RC],
     
    25752721
    25762722# Code to be used in simple compile tests
    2577 lt_simple_compile_test_code="int some_variable = 0;\n"
     2723lt_simple_compile_test_code="int some_variable = 0;"
    25782724
    25792725# Code to be used in simple link tests
    2580 lt_simple_link_test_code='int main(){return(0);}\n'
     2726lt_simple_link_test_code='int main(){return(0);}'
    25812727
    25822728_LT_AC_SYS_COMPILER
     
    25852731_LT_COMPILER_BOILERPLATE
    25862732_LT_LINKER_BOILERPLATE
    2587 
    2588 #
    2589 # Check for any special shared library compilation flags.
    2590 #
    2591 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
    2592 if test "$GCC" = no; then
    2593   case $host_os in
    2594   sco3.2v5*)
    2595     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
    2596     ;;
    2597   esac
    2598 fi
    2599 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
    2600   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
    2601   if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
    2602   else
    2603     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
    2604     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
    2605   fi
    2606 fi
    2607 
    2608 
    2609 #
    2610 # Check to make sure the static flag actually works.
    2611 #
    2612 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
    2613   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
    2614   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
    2615   [],
    2616   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    2617 
    26182733
    26192734AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
     
    26252740AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    26262741AC_LIBTOOL_SYS_LIB_STRIP
    2627 AC_LIBTOOL_DLOPEN_SELF($1)
    2628 
    2629 # Report which librarie types wil actually be built
     2742AC_LIBTOOL_DLOPEN_SELF
     2743
     2744# Report which library types will actually be built
    26302745AC_MSG_CHECKING([if libtool supports shared libraries])
    26312746AC_MSG_RESULT([$can_build_shared])
     
    26862801_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    26872802_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
     2803_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    26882804_LT_AC_TAGVAR(hardcode_automatic, $1)=no
    26892805_LT_AC_TAGVAR(module_cmds, $1)=
     
    27102826
    27112827# Code to be used in simple compile tests
    2712 lt_simple_compile_test_code="int some_variable = 0;\n"
     2828lt_simple_compile_test_code="int some_variable = 0;"
    27132829
    27142830# Code to be used in simple link tests
    2715 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
     2831lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
    27162832
    27172833# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    27322848  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    27332849else
    2734   unset lt_cv_prog_gnu_ld
     2850  $as_unset lt_cv_prog_gnu_ld
    27352851fi
    27362852if test -n "${lt_cv_path_LDCXX+set}"; then
    27372853  lt_cv_path_LD=$lt_cv_path_LDCXX
    27382854else
    2739   unset lt_cv_path_LD
     2855  $as_unset lt_cv_path_LD
    27402856fi
    27412857test -z "${LDCXX+set}" || LD=$LDCXX
     
    28322948          esac
    28332949        done
     2950        ;;
    28342951      esac
    28352952
     
    28582975        then
    28592976          # We have reworked collect2
    2860           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     2977          :
    28612978        else
    28622979          # We have old collect2
     
    28692986          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    28702987        fi
     2988        ;;
    28712989      esac
    28722990      shared_flag='-shared'
     
    29003018      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    29013019
    2902       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     3020      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    29033021     else
    29043022      if test "$host_cpu" = ia64; then
    29053023        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    29063024        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    2907         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     3025        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    29083026      else
    29093027        # Determine the default libpath from the value encoded in an empty executable.
     
    29143032        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    29153033        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    2916         # -bexpall does not export symbols beginning with underscore (_)
    2917         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    29183034        # Exported symbols can be pulled into shared objects from archives
    2919         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
     3035        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
    29203036        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    29213037        # This is similar to how AIX traditionally builds its shared libraries.
    2922         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     3038        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    29233039      fi
    29243040    fi
    29253041    ;;
     3042
     3043  beos*)
     3044    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     3045      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
     3046      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     3047      # support --undefined.  This deserves some investigation.  FIXME
     3048      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3049    else
     3050      _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3051    fi
     3052    ;;
     3053
    29263054  chorus*)
    29273055    case $cc_basename in
     
    29323060    esac
    29333061    ;;
    2934 
    29353062
    29363063  cygwin* | mingw* | pw32*)
     
    29433070
    29443071    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    2945       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     3072      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    29463073      # If the export-symbols file already is a .def file (1st line
    29473074      # is EXPORTS), use it as is; otherwise, prepend...
     
    29523079        cat $export_symbols >> $output_objdir/$soname.def;
    29533080      fi~
    2954       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     3081      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    29553082    else
    29563083      _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    30073134        xlc*)
    30083135         output_verbose_link_cmd='echo'
    3009           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     3136          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    30103137          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    30113138          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    3012           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
     3139          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
    30133140          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
    30143141          ;;
     
    30443171    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    30453172    ;;
    3046   freebsd* | kfreebsd*-gnu | dragonfly*)
     3173  freebsd* | dragonfly*)
    30473174    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    30483175    # conventions
     
    30893216  hpux10*|hpux11*)
    30903217    if test $with_gnu_ld = no; then
     3218      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     3219      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     3220
    30913221      case $host_cpu in
    3092       hppa*64*)
    3093         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3094         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    3095         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3096         ;;
    3097       ia64*)
    3098         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3099         ;;
     3222      hppa*64*|ia64*) ;;
    31003223      *)
    3101         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3102         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    31033224        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    31043225        ;;
     
    31063227    fi
    31073228    case $host_cpu in
    3108     hppa*64*)
     3229    hppa*64*|ia64*)
    31093230      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    31103231      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3111       ;;
    3112     ia64*)
    3113       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3114       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3115       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3116                                               # but as the default
    3117                                               # location of the library.
    31183232      ;;
    31193233    *)
     
    31323246      aCC*)
    31333247        case $host_cpu in
    3134         hppa*64*|ia64*)
    3135           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     3248        hppa*64*)
     3249          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3250          ;;
     3251        ia64*)
     3252          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    31363253          ;;
    31373254        *)
     
    31533270          if test $with_gnu_ld = no; then
    31543271            case $host_cpu in
    3155             ia64*|hppa*64*)
    3156               _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     3272            hppa*64*)
     3273              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3274              ;;
     3275            ia64*)
     3276              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    31573277              ;;
    31583278            *)
     
    31683288    esac
    31693289    ;;
     3290  interix[[3-9]]*)
     3291    _LT_AC_TAGVAR(hardcode_direct, $1)=no
     3292    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3293    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3294    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3295    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     3296    # Instead, shared libraries are loaded at an image base (0x10000000 by
     3297    # default) and relocated if they conflict, which is a slow very memory
     3298    # consuming and fragmenting process.  To avoid this, we pick a random,
     3299    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     3300    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     3301    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     3302    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
     3303    ;;
    31703304  irix5* | irix6*)
    31713305    case $cc_basename in
     
    31943328    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    31953329    ;;
    3196   linux*)
     3330  linux* | k*bsd*-gnu)
    31973331    case $cc_basename in
    31983332      KCC*)
     
    32743408        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'
    32753409        ;;
     3410      *)
     3411        case `$CC -V 2>&1 | sed 5q` in
     3412        *Sun\ C*)
     3413          # Sun C++ 5.9
     3414          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     3415          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3416          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     3417          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     3418          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
     3419
     3420          # Not sure whether something based on
     3421          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     3422          # would be better.
     3423          output_verbose_link_cmd='echo'
     3424
     3425          # Archives containing C++ object files must be created using
     3426          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     3427          # necessary to make sure instantiated templates are included
     3428          # in the archive.
     3429          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
     3430          ;;
     3431        esac
     3432        ;;
    32763433    esac
    32773434    ;;
     
    33123469    ;;
    33133470  openbsd*)
    3314     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3315     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3316     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    3317     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3318     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    3319       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
    3320       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    3321       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3471    if test -f /usr/libexec/ld.so; then
     3472      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     3473      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3474      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     3475      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3476      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     3477        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     3478        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3479        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3480      fi
     3481      output_verbose_link_cmd='echo'
     3482    else
     3483      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    33223484    fi
    3323     output_verbose_link_cmd='echo'
    33243485    ;;
    33253486  osf3*)
     
    34503611    _LT_AC_TAGVAR(ld_shlibs, $1)=no
    34513612    ;;
    3452   sco*)
    3453     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3454     case $cc_basename in
    3455       CC*)
    3456         # FIXME: insert proper C++ library support
    3457         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3458         ;;
    3459       *)
    3460         # FIXME: insert proper C++ library support
    3461         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3462         ;;
    3463     esac
    3464     ;;
    34653613  sunos4*)
    34663614    case $cc_basename in
     
    34963644          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    34973645          *)
    3498             # The C++ compiler is used as linker so we must use $wl
    3499             # flag to pass the commands to the underlying system
    3500             # linker. We must also pass each convience library through
    3501             # to the system linker between allextract/defaultextract.
    3502             # The C++ compiler will combine linker options so we
    3503             # cannot just pass the convience library names through
    3504             # without $wl.
     3646            # The compiler driver will combine and reorder linker options,
     3647            # but understands `-z linker_flag'.
    35053648            # Supported since Solaris 2.6 (maybe 2.5.1?)
    3506             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
     3649            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
    35073650            ;;
    35083651        esac
     
    35513694
    35523695          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
     3696          case $host_os in
     3697          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     3698          *)
     3699            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     3700            ;;
     3701          esac
    35533702        fi
    35543703        ;;
    35553704    esac
    35563705    ;;
    3557   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
     3706  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     3707    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
    35583708    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3709    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3710    runpath_var='LD_RUN_PATH'
     3711
     3712    case $cc_basename in
     3713      CC*)
     3714        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3715        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3716        ;;
     3717      *)
     3718        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3719        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3720        ;;
     3721    esac
     3722    ;;
     3723  sysv5* | sco3.2v5* | sco5v6*)
     3724    # Note: We can NOT use -z defs as we might desire, because we do not
     3725    # link with -lc, and that would cause any symbols used from libc to
     3726    # always be unresolved, which means just about no library would
     3727    # ever link correctly.  If we're not using GNU ld we use -z text
     3728    # though, which does catch some bad symbols but isn't as heavy-handed
     3729    # as -z defs.
     3730    # For security reasons, it is highly recommended that you always
     3731    # use absolute paths for naming shared libraries, and exclude the
     3732    # DT_RUNPATH tag from executables and libraries.  But doing so
     3733    # requires that you compile everything twice, which is a pain.
     3734    # So that behaviour is only enabled if SCOABSPATH is set to a
     3735    # non-empty value in the environment.  Most likely only useful for
     3736    # creating official distributions of packages.
     3737    # This is a hack until libtool officially supports absolute path
     3738    # names for shared libraries.
     3739    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     3740    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     3741    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3742    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3743    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     3744    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
     3745    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     3746    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     3747    runpath_var='LD_RUN_PATH'
     3748
     3749    case $cc_basename in
     3750      CC*)
     3751        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3752        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3753        ;;
     3754      *)
     3755        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3756        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3757        ;;
     3758    esac
    35593759    ;;
    35603760  tandem*)
     
    35933793AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    35943794AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3595 AC_LIBTOOL_SYS_LIB_STRIP
    3596 AC_LIBTOOL_DLOPEN_SELF($1)
    35973795
    35983796AC_LIBTOOL_CONFIG($1)
     
    36123810
    36133811# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
    3614 # ------------------------
     3812# ------------------------------------
    36153813# Figure out "hidden" library dependencies from verbose
    36163814# compiler output when linking a shared library.
     
    37453943ifelse([$1],[CXX],
    37463944[case $host_os in
     3945interix[[3-9]]*)
     3946  # Interix 3.5 installs completely hosed .la files for C++, so rather than
     3947  # hack all around it, let's just trust "g++" to DTRT.
     3948  _LT_AC_TAGVAR(predep_objects,$1)=
     3949  _LT_AC_TAGVAR(postdep_objects,$1)=
     3950  _LT_AC_TAGVAR(postdeps,$1)=
     3951  ;;
     3952
     3953linux*)
     3954  case `$CC -V 2>&1 | sed 5q` in
     3955  *Sun\ C*)
     3956    # Sun C++ 5.9
     3957    #
     3958    # The more standards-conforming stlport4 library is
     3959    # incompatible with the Cstd library. Avoid specifying
     3960    # it if it's in CXXFLAGS. Ignore libCrun as
     3961    # -library=stlport4 depends on it.
     3962    case " $CXX $CXXFLAGS " in
     3963    *" -library=stlport4 "*)
     3964      solaris_use_stlport4=yes
     3965      ;;
     3966    esac
     3967    if test "$solaris_use_stlport4" != yes; then
     3968      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     3969    fi
     3970    ;;
     3971  esac
     3972  ;;
     3973
    37473974solaris*)
    37483975  case $cc_basename in
    37493976  CC*)
     3977    # The more standards-conforming stlport4 library is
     3978    # incompatible with the Cstd library. Avoid specifying
     3979    # it if it's in CXXFLAGS. Ignore libCrun as
     3980    # -library=stlport4 depends on it.
     3981    case " $CXX $CXXFLAGS " in
     3982    *" -library=stlport4 "*)
     3983      solaris_use_stlport4=yes
     3984      ;;
     3985    esac
     3986
    37503987    # Adding this requires a known-good setup of shared libraries for
    37513988    # Sun compiler versions before 5.6, else PIC objects from an old
    37523989    # archive will be linked into the output, leading to subtle bugs.
    3753     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
     3990    if test "$solaris_use_stlport4" != yes; then
     3991      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     3992    fi
    37543993    ;;
    37553994  esac
     3995  ;;
    37563996esac
    37573997])
     
    37634003
    37644004# AC_LIBTOOL_LANG_F77_CONFIG
    3765 # ------------------------
     4005# --------------------------
    37664006# Ensure that the configuration vars for the C compiler are
    37674007# suitably defined.  Those variables are subsequently used by
     
    37994039
    38004040# Code to be used in simple compile tests
    3801 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
     4041lt_simple_compile_test_code="\
     4042      subroutine t
     4043      return
     4044      end
     4045"
    38024046
    38034047# Code to be used in simple link tests
    3804 lt_simple_link_test_code="      program t\n      end\n"
     4048lt_simple_link_test_code="\
     4049      program t
     4050      end
     4051"
    38054052
    38064053# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    38474094AC_MSG_RESULT([$enable_static])
    38484095
    3849 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    3850 
    38514096_LT_AC_TAGVAR(GCC, $1)="$G77"
    38524097_LT_AC_TAGVAR(LD, $1)="$LD"
     
    38584103AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    38594104AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3860 AC_LIBTOOL_SYS_LIB_STRIP
    3861 
    38624105
    38634106AC_LIBTOOL_CONFIG($1)
     
    38854128
    38864129# Code to be used in simple compile tests
    3887 lt_simple_compile_test_code="class foo {}\n"
     4130lt_simple_compile_test_code="class foo {}"
    38884131
    38894132# Code to be used in simple link tests
    3890 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
     4133lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
    38914134
    38924135# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    39164159AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    39174160AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3918 AC_LIBTOOL_SYS_LIB_STRIP
    3919 AC_LIBTOOL_DLOPEN_SELF($1)
    39204161
    39214162AC_LIBTOOL_CONFIG($1)
     
    39274168
    39284169# AC_LIBTOOL_LANG_RC_CONFIG
    3929 # --------------------------
     4170# -------------------------
    39304171# Ensure that the configuration vars for the Windows resource compiler are
    39314172# suitably defined.  Those variables are subsequently used by
     
    39434184
    39444185# Code to be used in simple compile tests
    3945 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
     4186lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
    39464187
    39474188# Code to be used in simple link tests
     
    39904231  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    39914232  # variables and quote the copies for generation of the libtool script.
    3992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     4233  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    39934234    SED SHELL STRIP \
    39944235    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    40324273    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
    40334274    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
     4275    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
    40344276    _LT_AC_TAGVAR(exclude_expsyms, $1) \
    40354277    _LT_AC_TAGVAR(include_expsyms, $1); do
     
    40784320# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    40794321#
    4080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     4322# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
    40814323# Free Software Foundation, Inc.
    40824324#
     
    41594401LTCC=$lt_LTCC
    41604402
     4403# LTCC compiler flags.
     4404LTCFLAGS=$lt_LTCFLAGS
     4405
    41614406# A language-specific compiler.
    41624407CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
     
    44004645
    44014646# Fix the shell variable \$srcfile for the compiler.
    4402 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
     4647fix_srcfile_path=$lt_fix_srcfile_path
    44034648
    44044649# Set to yes if exported symbols are required.
     
    44834728AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
    44844729[AC_REQUIRE([AC_CANONICAL_HOST])
     4730AC_REQUIRE([LT_AC_PROG_SED])
    44854731AC_REQUIRE([AC_PROG_NM])
    44864732AC_REQUIRE([AC_OBJEXT])
     
    45194765  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    45204766  ;;
    4521 linux*)
     4767linux* | k*bsd*-gnu)
    45224768  if test "$host_cpu" = ia64; then
    45234769    symcode='[[ABCDGIRSTW]]'
     
    45324778  symcode='[[BCDEGQRST]]'
    45334779  ;;
    4534 solaris* | sysv5*)
     4780solaris*)
    45354781  symcode='[[BDRT]]'
     4782  ;;
     4783sco3.2v5*)
     4784  symcode='[[DT]]'
     4785  ;;
     4786sysv4.2uw2*)
     4787  symcode='[[DT]]'
     4788  ;;
     4789sysv5* | sco5v6* | unixware* | OpenUNIX*)
     4790  symcode='[[ABDT]]'
    45364791  ;;
    45374792sysv4)
     
    47004955      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    47014956      ;;
    4702     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     4957    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    47034958      # PIC is the default for these OSes.
    47044959      ;;
    4705     mingw* | os2* | pw32*)
     4960    mingw* | cygwin* | os2* | pw32*)
    47064961      # This hack is so that the source file can tell whether it is being
    47074962      # built for inclusion in a dll (and should export symbols for example).
     4963      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     4964      # (--disable-auto-import) libraries
    47084965      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    47094966      ;;
     
    47164973      # DJGPP does not support shared libraries at all
    47174974      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
     4975      ;;
     4976    interix[[3-9]]*)
     4977      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     4978      # Instead, we relocate shared libraries at runtime.
    47184979      ;;
    47194980    sysv4*MP*)
     
    47795040        esac
    47805041        ;;
    4781       freebsd* | kfreebsd*-gnu | dragonfly*)
     5042      freebsd* | dragonfly*)
    47825043        # FreeBSD uses GNU C++
    47835044        ;;
     
    47865047          CC*)
    47875048            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4788             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     5049            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    47895050            if test "$host_cpu" != ia64; then
    47905051              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
     
    47935054          aCC*)
    47945055            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4795             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     5056            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    47965057            case $host_cpu in
    47975058            hppa*64*|ia64*)
     
    48075068        esac
    48085069        ;;
     5070      interix*)
     5071        # This is c89, which is MS Visual C++ (no shared libs)
     5072        # Anyone wants to do a port?
     5073        ;;
    48095074      irix5* | irix6* | nonstopux*)
    48105075        case $cc_basename in
     
    48185083        esac
    48195084        ;;
    4820       linux*)
     5085      linux* | k*bsd*-gnu)
    48215086        case $cc_basename in
    48225087          KCC*)
     
    48455110            ;;
    48465111          *)
     5112            case `$CC -V 2>&1 | sed 5q` in
     5113            *Sun\ C*)
     5114              # Sun C++ 5.9
     5115              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5116              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5117              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     5118              ;;
     5119            esac
    48475120            ;;
    48485121        esac
     
    48865159      psos*)
    48875160        ;;
    4888       sco*)
    4889         case $cc_basename in
    4890           CC*)
    4891             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4892             ;;
    4893           *)
    4894             ;;
    4895         esac
    4896         ;;
    48975161      solaris*)
    48985162        case $cc_basename in
     
    49365200        esac
    49375201        ;;
    4938       unixware*)
     5202      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     5203        case $cc_basename in
     5204          CC*)
     5205            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5206            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5207            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5208            ;;
     5209        esac
    49395210        ;;
    49405211      vxworks*)
     
    49675238      ;;
    49685239
    4969     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     5240    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    49705241      # PIC is the default for these OSes.
    49715242      ;;
    49725243
    4973     mingw* | pw32* | os2*)
     5244    mingw* | cygwin* | pw32* | os2*)
    49745245      # This hack is so that the source file can tell whether it is being
    49755246      # built for inclusion in a dll (and should export symbols for example).
     5247      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     5248      # (--disable-auto-import) libraries
    49765249      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    49775250      ;;
     
    49815254      # Common symbols not allowed in MH_DYLIB files
    49825255      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
     5256      ;;
     5257
     5258    interix[[3-9]]*)
     5259      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     5260      # Instead, we relocate shared libraries at runtime.
    49835261      ;;
    49845262
     
    50365314       ;;
    50375315
    5038     mingw* | pw32* | os2*)
     5316    mingw* | cygwin* | pw32* | os2*)
    50395317      # This hack is so that the source file can tell whether it is being
    50405318      # built for inclusion in a dll (and should export symbols for example).
     
    50695347      ;;
    50705348
    5071     linux*)
     5349    linux* | k*bsd*-gnu)
    50725350      case $cc_basename in
    50735351      icc* | ecc*)
     
    50885366        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    50895367        ;;
     5368      *)
     5369        case `$CC -V 2>&1 | sed 5q` in
     5370        *Sun\ C*)
     5371          # Sun C 5.9
     5372          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5373          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5374          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5375          ;;
     5376        *Sun\ F*)
     5377          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     5378          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5379          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5380          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
     5381          ;;
     5382        esac
     5383        ;;
    50905384      esac
    50915385      ;;
     
    50975391      ;;
    50985392
    5099     sco3.2v5*)
    5100       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
    5101       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
     5393    rdos*)
     5394      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    51025395      ;;
    51035396
     
    51195412      ;;
    51205413
    5121     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     5414    sysv4 | sysv4.2uw2* | sysv4.3*)
    51225415      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    51235416      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    51305423        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    51315424      fi
     5425      ;;
     5426
     5427    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     5428      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5429      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5430      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    51325431      ;;
    51335432
     
    51735472    ;;
    51745473esac
     5474
     5475#
     5476# Check to make sure the static flag actually works.
     5477#
     5478wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
     5479AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
     5480  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
     5481  $lt_tmp_static_flag,
     5482  [],
     5483  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    51755484])
    51765485
     
    51805489# See if the linker supports building shared libraries.
    51815490AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
    5182 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
     5491[AC_REQUIRE([LT_AC_PROG_SED])dnl
     5492AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    51835493ifelse([$1],[CXX],[
    51845494  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     
    51975507  ;;
    51985508  cygwin* | mingw*)
    5199     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
     5509    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
    52005510  ;;
    52015511  *)
     
    52515561    fi
    52525562    ;;
     5563  interix*)
     5564    # we just hope/assume this is gcc and not c89 (= MSVC++)
     5565    with_gnu_ld=yes
     5566    ;;
    52535567  openbsd*)
    52545568    with_gnu_ld=no
     
    53325646      _LT_AC_TAGVAR(always_export_symbols, $1)=no
    53335647      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5334       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
     5648      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
    53355649
    53365650      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    5337         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     5651        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    53385652        # If the export-symbols file already is a .def file (1st line
    53395653        # is EXPORTS), use it as is; otherwise, prepend...
     
    53445658          cat $export_symbols >> $output_objdir/$soname.def;
    53455659        fi~
    5346         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
     5660        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    53475661      else
    53485662        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    53505664      ;;
    53515665
    5352     linux*)
     5666    interix[[3-9]]*)
     5667      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     5668      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     5669      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5670      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5671      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     5672      # Instead, shared libraries are loaded at an image base (0x10000000 by
     5673      # default) and relocated if they conflict, which is a slow very memory
     5674      # consuming and fragmenting process.  To avoid this, we pick a random,
     5675      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     5676      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     5677      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     5678      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
     5679      ;;
     5680
     5681    gnu* | linux* | k*bsd*-gnu)
    53535682      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    53545683        tmp_addflag=
     
    53685697          tmp_addflag=' -nofor_main' ;;
    53695698        esac
    5370         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5699        case `$CC -V 2>&1 | sed 5q` in
     5700        *Sun\ C*)                       # Sun C 5.9
     5701          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
     5702          tmp_sharedflag='-G' ;;
     5703        *Sun\ F*)                       # Sun Fortran 8.3
     5704          tmp_sharedflag='-G' ;;
     5705        *)
     5706          tmp_sharedflag='-shared' ;;
     5707        esac
     5708        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    53715709
    53725710        if test $supports_anon_versioning = yes; then
     
    53745712  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    53755713  $echo "local: *; };" >> $output_objdir/$libname.ver~
    5376           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     5714          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    53775715        fi
    53785716      else
     
    53915729      ;;
    53925730
    5393     solaris* | sysv5*)
     5731    solaris*)
    53945732      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    53955733        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    54105748        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    54115749      fi
     5750      ;;
     5751
     5752    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     5753      case `$LD -v 2>&1` in
     5754        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
     5755        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5756        cat <<_LT_EOF 1>&2
     5757
     5758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     5759*** reliably create shared libraries on SCO systems.  Therefore, libtool
     5760*** is disabling shared libraries support.  We urge you to upgrade GNU
     5761*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     5762*** your PATH or compiler configuration so that the native linker is
     5763*** used, and then restart.
     5764
     5765_LT_EOF
     5766        ;;
     5767        *)
     5768          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     5769            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     5770            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     5771            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     5772          else
     5773            _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5774          fi
     5775        ;;
     5776      esac
    54125777      ;;
    54135778
     
    54455810      # are no directories specified by -L.
    54465811      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5447       if test "$GCC" = yes && test -z "$link_static_flag"; then
     5812      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    54485813        # Neither direct hardcoding nor static linking is supported with a
    54495814        # broken collect2.
     
    54795844          fi
    54805845          done
     5846          ;;
    54815847        esac
    54825848
     
    55055871          then
    55065872          # We have reworked collect2
    5507           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     5873          :
    55085874          else
    55095875          # We have old collect2
     
    55165882          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    55175883          fi
     5884          ;;
    55185885        esac
    55195886        shared_flag='-shared'
     
    55285895          shared_flag='-G'
    55295896        else
    5530         if test "$aix_use_runtimelinking" = yes; then
     5897          if test "$aix_use_runtimelinking" = yes; then
    55315898            shared_flag='${wl}-G'
    55325899          else
    55335900            shared_flag='${wl}-bM:SRE'
    5534         fi
     5901          fi
    55355902        fi
    55365903      fi
     
    55465913       _LT_AC_SYS_LIBPATH_AIX
    55475914       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    5548         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     5915        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    55495916       else
    55505917        if test "$host_cpu" = ia64; then
    55515918          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    55525919          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    5553           _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     5920          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    55545921        else
    55555922         # Determine the default libpath from the value encoded in an empty executable.
     
    55605927          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    55615928          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5562           # -bexpall does not export symbols beginning with underscore (_)
    5563           _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    55645929          # Exported symbols can be pulled into shared objects from archives
    5565           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
     5930          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
    55665931          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    55675932          # This is similar to how AIX traditionally builds its shared libraries.
    5568           _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     5933          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    55695934        fi
    55705935      fi
     
    55995964      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
    56005965      # FIXME: Should let the user specify the lib program.
    5601       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
     5966      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
    56025967      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    56035968      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     
    56416006        xlc*)
    56426007         output_verbose_link_cmd='echo'
    5643          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     6008         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    56446009         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    56456010          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    5646          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
     6011         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
    56476012          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
    56486013          ;;
     
    56846049
    56856050    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    5686     freebsd* | kfreebsd*-gnu | dragonfly*)
     6051    freebsd* | dragonfly*)
    56876052      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    56886053      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     
    57076072      ;;
    57086073
    5709     hpux10* | hpux11*)
     6074    hpux10*)
     6075      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     6076        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     6077      else
     6078        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     6079      fi
     6080      if test "$with_gnu_ld" = no; then
     6081        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6082        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     6083
     6084        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     6085        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6086
     6087        # hardcode_minus_L: Not really in the search PATH,
     6088        # but as the default location of the library.
     6089        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
     6090      fi
     6091      ;;
     6092
     6093    hpux11*)
    57106094      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    57116095        case $host_cpu in
    5712         hppa*64*|ia64*)
     6096        hppa*64*)
    57136097          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6098          ;;
     6099        ia64*)
     6100          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    57146101          ;;
    57156102        *)
     
    57196106      else
    57206107        case $host_cpu in
    5721         hppa*64*|ia64*)
    5722           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     6108        hppa*64*)
     6109          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6110          ;;
     6111        ia64*)
     6112          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    57236113          ;;
    57246114        *)
    5725           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     6115          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    57266116          ;;
    57276117        esac
    57286118      fi
    57296119      if test "$with_gnu_ld" = no; then
     6120        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6121        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     6122
    57306123        case $host_cpu in
    5731         hppa*64*)
    5732           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6124        hppa*64*|ia64*)
    57336125          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    5734           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    57356126          _LT_AC_TAGVAR(hardcode_direct, $1)=no
    57366127          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    57376128          ;;
    5738         ia64*)
    5739           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5740           _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5741           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5742 
    5743           # hardcode_minus_L: Not really in the search PATH,
    5744           # but as the default location of the library.
    5745           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5746           ;;
    57476129        *)
    5748           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    5749           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    57506130          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    57516131          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     
    57916171
    57926172    openbsd*)
    5793       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5794       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5795       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    5796         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5797         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    5798         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5799         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6173      if test -f /usr/libexec/ld.so; then
     6174        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     6175        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     6176        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6177          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6178          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     6179          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6180          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6181        else
     6182          case $host_os in
     6183           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     6184             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     6185             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6186             ;;
     6187           *)
     6188             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6189             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6190             ;;
     6191          esac
     6192        fi
    58006193      else
    5801        case $host_os in
    5802          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
    5803            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    5804            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5805            ;;
    5806          *)
    5807            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5808            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5809            ;;
    5810        esac
     6194        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    58116195      fi
    58126196      ;;
     
    58476231      fi
    58486232      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5849       ;;
    5850 
    5851     sco3.2v5*)
    5852       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5853       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5854       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
    5855       runpath_var=LD_RUN_PATH
    5856       hardcode_runpath_var=yes
    58576233      ;;
    58586234
     
    58756251      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    58766252      *)
    5877         # The compiler driver will combine linker options so we
    5878         # cannot just pass the convience library names through
    5879         # without $wl, iff we do not link with $LD.
    5880         # Luckily, gcc supports the same syntax we need for Sun Studio.
     6253        # The compiler driver will combine and reorder linker options,
     6254        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     6255        # but is careful enough not to reorder.
    58816256        # Supported since Solaris 2.6 (maybe 2.5.1?)
    5882         case $wlarc in
    5883         '')
    5884           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
    5885         *)
    5886           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' ;;
    5887         esac ;;
     6257        if test "$GCC" = yes; then
     6258          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     6259        else
     6260          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     6261        fi
     6262        ;;
    58886263      esac
    58896264      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     
    59426317      ;;
    59436318
    5944     sysv4.2uw2*)
    5945       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    5946       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5947       _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    5948       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5949       hardcode_runpath_var=yes
    5950       runpath_var=LD_RUN_PATH
    5951       ;;
    5952 
    5953    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
    5954       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
    5955       if test "$GCC" = yes; then
    5956         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5957       else
    5958         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5959       fi
    5960       runpath_var='LD_RUN_PATH'
    5961       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5962       ;;
    5963 
    5964     sysv5*)
    5965       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    5966       # $CC -shared without GNU ld will not create a library from C++
    5967       # object files and a static libstdc++, better avoid it by now
    5968       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5969       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    5970                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    5971       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
     6319    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     6320      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6321      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    59726322      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    59736323      runpath_var='LD_RUN_PATH'
     6324
     6325      if test "$GCC" = yes; then
     6326        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6327        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6328      else
     6329        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6330        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6331      fi
     6332      ;;
     6333
     6334    sysv5* | sco3.2v5* | sco5v6*)
     6335      # Note: We can NOT use -z defs as we might desire, because we do not
     6336      # link with -lc, and that would cause any symbols used from libc to
     6337      # always be unresolved, which means just about no library would
     6338      # ever link correctly.  If we're not using GNU ld we use -z text
     6339      # though, which does catch some bad symbols but isn't as heavy-handed
     6340      # as -z defs.
     6341      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6342      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     6343      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     6344      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     6345      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     6346      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
     6347      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     6348      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     6349      runpath_var='LD_RUN_PATH'
     6350
     6351      if test "$GCC" = yes; then
     6352        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6353        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6354      else
     6355        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6356        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6357      fi
    59746358      ;;
    59756359
     
    59886372AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
    59896373test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    5990 
    5991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    5992 if test "$GCC" = yes; then
    5993   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    5994 fi
    59956374
    59966375#
     
    60136392      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    60146393      $rm conftest*
    6015       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6394      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    60166395
    60176396      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     
    60216400        deplibs=
    60226401        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
     6402        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
    60236403        compiler_flags=-v
    60246404        linker_flags=-v
     
    61156495])
    61166496
     6497
     6498# Cheap backport of AS_EXECUTABLE_P and required macros
     6499# from Autoconf 2.59; we should not use $as_executable_p directly.
     6500
     6501# _AS_TEST_PREPARE
     6502# ----------------
     6503m4_ifndef([_AS_TEST_PREPARE],
     6504[m4_defun([_AS_TEST_PREPARE],
     6505[if test -x / >/dev/null 2>&1; then
     6506  as_executable_p='test -x'
     6507else
     6508  as_executable_p='test -f'
     6509fi
     6510])])# _AS_TEST_PREPARE
     6511
     6512# AS_EXECUTABLE_P
     6513# ---------------
     6514# Check whether a file is executable.
     6515m4_ifndef([AS_EXECUTABLE_P],
     6516[m4_defun([AS_EXECUTABLE_P],
     6517[AS_REQUIRE([_AS_TEST_PREPARE])dnl
     6518$as_executable_p $1[]dnl
     6519])])# AS_EXECUTABLE_P
     6520
    61176521# NOTE: This macro has been submitted for inclusion into   #
    61186522#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
     
    61356539  for lt_ac_prog in sed gsed; do
    61366540    for ac_exec_ext in '' $ac_executable_extensions; do
    6137       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     6541      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
    61386542        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    61396543      fi
     
    61416545  done
    61426546done
     6547IFS=$as_save_IFS
    61436548lt_ac_max=0
    61446549lt_ac_count=0
     
    61736578])
    61746579SED=$lt_cv_path_SED
     6580AC_SUBST([SED])
    61756581AC_MSG_RESULT([$SED])
    61766582])
    61776583
    6178 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
    6179 #
    6180 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
    6181 #
    6182 # This program is free software; you can redistribute it and/or modify
    6183 # it under the terms of the GNU General Public License as published by
    6184 # the Free Software Foundation; either version 2 of the License, or
    6185 # (at your option) any later version.
    6186 #
    6187 # This program is distributed in the hope that it will be useful, but
    6188 # WITHOUT ANY WARRANTY; without even the implied warranty of
    6189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    6190 # General Public License for more details.
    6191 #
    6192 # You should have received a copy of the GNU General Public License
    6193 # along with this program; if not, write to the Free Software
    6194 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    6195 #
    6196 # As a special exception to the GNU General Public License, if you
    6197 # distribute this file as part of a program that contains a
    6198 # configuration script generated by Autoconf, you may include it under
    6199 # the same distribution terms that you use for the rest of that program.
    6200 
    6201 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
    6202 # ----------------------------------
    6203 AC_DEFUN([PKG_PROG_PKG_CONFIG],
    6204 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
    6205 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
    6206 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
    6207 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
    6208         AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
    6209 fi
    6210 if test -n "$PKG_CONFIG"; then
    6211         _pkg_min_version=m4_default([$1], [0.9.0])
    6212         AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
    6213         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
    6214                 AC_MSG_RESULT([yes])
    6215         else
    6216                 AC_MSG_RESULT([no])
    6217                 PKG_CONFIG=""
    6218         fi
    6219                
    6220 fi[]dnl
    6221 ])# PKG_PROG_PKG_CONFIG
    6222 
    6223 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
    6224 #
    6225 # Check to see whether a particular set of modules exists.  Similar
    6226 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
    6227 #
    6228 #
    6229 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
    6230 # this or PKG_CHECK_MODULES is called, or make sure to call
    6231 # PKG_CHECK_EXISTS manually
    6232 # --------------------------------------------------------------
    6233 AC_DEFUN([PKG_CHECK_EXISTS],
    6234 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
    6235 if test -n "$PKG_CONFIG" && \
    6236     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
    6237   m4_ifval([$2], [$2], [:])
    6238 m4_ifvaln([$3], [else
    6239   $3])dnl
    6240 fi])
    6241 
    6242 
    6243 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
    6244 # ---------------------------------------------
    6245 m4_define([_PKG_CONFIG],
    6246 [if test -n "$PKG_CONFIG"; then
    6247     if test -n "$$1"; then
    6248         pkg_cv_[]$1="$$1"
    6249     else
    6250         PKG_CHECK_EXISTS([$3],
    6251                          [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
    6252                          [pkg_failed=yes])
    6253     fi
    6254 else
    6255         pkg_failed=untried
    6256 fi[]dnl
    6257 ])# _PKG_CONFIG
    6258 
    6259 # _PKG_SHORT_ERRORS_SUPPORTED
    6260 # -----------------------------
    6261 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
    6262 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
    6263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
    6264         _pkg_short_errors_supported=yes
    6265 else
    6266         _pkg_short_errors_supported=no
    6267 fi[]dnl
    6268 ])# _PKG_SHORT_ERRORS_SUPPORTED
    6269 
    6270 
    6271 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
    6272 # [ACTION-IF-NOT-FOUND])
    6273 #
    6274 #
    6275 # Note that if there is a possibility the first call to
    6276 # PKG_CHECK_MODULES might not happen, you should be sure to include an
    6277 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
    6278 #
    6279 #
    6280 # --------------------------------------------------------------
    6281 AC_DEFUN([PKG_CHECK_MODULES],
    6282 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
    6283 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
    6284 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
    6285 
    6286 pkg_failed=no
    6287 AC_MSG_CHECKING([for $1])
    6288 
    6289 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
    6290 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
    6291 
    6292 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
    6293 and $1[]_LIBS to avoid the need to call pkg-config.
    6294 See the pkg-config man page for more details.])
    6295 
    6296 if test $pkg_failed = yes; then
    6297         _PKG_SHORT_ERRORS_SUPPORTED
    6298         if test $_pkg_short_errors_supported = yes; then
    6299                 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
    6300         else
    6301                 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
    6302         fi
    6303         # Put the nasty error message in config.log where it belongs
    6304         echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
    6305 
    6306         ifelse([$4], , [AC_MSG_ERROR(dnl
    6307 [Package requirements ($2) were not met:
    6308 
    6309 $$1_PKG_ERRORS
    6310 
    6311 Consider adjusting the PKG_CONFIG_PATH environment variable if you
    6312 installed software in a non-standard prefix.
    6313 
    6314 _PKG_TEXT
    6315 ])],
    6316                 [$4])
    6317 elif test $pkg_failed = untried; then
    6318         ifelse([$4], , [AC_MSG_FAILURE(dnl
    6319 [The pkg-config script could not be found or is too old.  Make sure it
    6320 is in your PATH or set the PKG_CONFIG environment variable to the full
    6321 path to pkg-config.
    6322 
    6323 _PKG_TEXT
    6324 
    6325 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
    6326                 [$4])
    6327 else
    6328         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
    6329         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
    6330         AC_MSG_RESULT([yes])
    6331         ifelse([$3], , :, [$3])
    6332 fi[]dnl
    6333 ])# PKG_CHECK_MODULES
    6334 
    6335 # Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
     6584# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
    63366585#
    63376586# This file is free software; the Free Software Foundation
     
    63436592# Automake X.Y traces this macro to ensure aclocal.m4 has been
    63446593# generated from the m4 files accompanying Automake X.Y.
    6345 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
     6594# (This private macro should not be called outside this file.)
     6595AC_DEFUN([AM_AUTOMAKE_VERSION],
     6596[am__api_version='1.10'
     6597dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
     6598dnl require some minimum version.  Point them to the right macro.
     6599m4_if([$1], [1.10], [],
     6600      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
     6601])
     6602
     6603# _AM_AUTOCONF_VERSION(VERSION)
     6604# -----------------------------
     6605# aclocal traces this macro to find the Autoconf version.
     6606# This is a private macro too.  Using m4_define simplifies
     6607# the logic in aclocal, which can simply ignore this definition.
     6608m4_define([_AM_AUTOCONF_VERSION], [])
    63466609
    63476610# AM_SET_CURRENT_AUTOMAKE_VERSION
    63486611# -------------------------------
    6349 # Call AM_AUTOMAKE_VERSION so it can be traced.
     6612# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
    63506613# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    63516614AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    6352          [AM_AUTOMAKE_VERSION([1.9.6])])
     6615[AM_AUTOMAKE_VERSION([1.10])dnl
     6616_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
    63536617
    63546618# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     
    64076671# AM_CONDITIONAL                                            -*- Autoconf -*-
    64086672
    6409 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
     6673# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
    64106674# Free Software Foundation, Inc.
    64116675#
     
    64146678# with or without modifications, as long as this notice is preserved.
    64156679
    6416 # serial 7
     6680# serial 8
    64176681
    64186682# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     
    64236687 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    64246688        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    6425 AC_SUBST([$1_TRUE])
    6426 AC_SUBST([$1_FALSE])
     6689AC_SUBST([$1_TRUE])dnl
     6690AC_SUBST([$1_FALSE])dnl
     6691_AM_SUBST_NOTMAKE([$1_TRUE])dnl
     6692_AM_SUBST_NOTMAKE([$1_FALSE])dnl
    64276693if $2; then
    64286694  $1_TRUE=
     
    64386704fi])])
    64396705
    6440 
    6441 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
     6706# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    64426707# Free Software Foundation, Inc.
    64436708#
     
    64466711# with or without modifications, as long as this notice is preserved.
    64476712
    6448 # serial 8
     6713# serial 9
    64496714
    64506715# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     
    64746739       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    64756740       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     6741       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
    64766742       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    64776743                   [depcc="$$1"   am_compiler_list=])
     
    65396805       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    65406806         >/dev/null 2>conftest.err &&
     6807       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
    65416808       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    65426809       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     
    65916858fi
    65926859AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    6593 AC_SUBST([AMDEPBACKSLASH])
     6860AC_SUBST([AMDEPBACKSLASH])dnl
     6861_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
    65946862])
    65956863
     
    66166884  # Grep'ing the first line is not enough: some people post-process
    66176885  # each Makefile.in and add a new line on top of each file to say so.
    6618   # So let's grep whole file.
    6619   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     6886  # Grep'ing the whole file is not good either: AIX grep has a line
     6887  # limit of 2048, but all sed's we know have understand at least 4000.
     6888  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
    66206889    dirpart=`AS_DIRNAME("$mf")`
    66216890  else
     
    66646933# Do all the work for Automake.                             -*- Autoconf -*-
    66656934
    6666 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    6667 # Free Software Foundation, Inc.
     6935# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     6936# 2005, 2006 Free Software Foundation, Inc.
    66686937#
    66696938# This file is free software; the Free Software Foundation
     
    66886957# release and drop the old call support.
    66896958AC_DEFUN([AM_INIT_AUTOMAKE],
    6690 [AC_PREREQ([2.58])dnl
     6959[AC_PREREQ([2.60])dnl
    66916960dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    66926961dnl the ones we care about.
     
    66946963AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    66956964AC_REQUIRE([AC_PROG_INSTALL])dnl
    6696 # test to see if srcdir already configured
    6697 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    6698    test -f $srcdir/config.status; then
    6699   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     6965if test "`cd $srcdir && pwd`" != "`pwd`"; then
     6966  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
     6967  # is not polluted with repeated "-I."
     6968  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
     6969  # test to see if srcdir already configured
     6970  if test -f $srcdir/config.status; then
     6971    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     6972  fi
    67006973fi
    67016974
     
    67176990 AC_SUBST([VERSION], [$2])],
    67186991[_AM_SET_OPTIONS([$1])dnl
     6992dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
     6993m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
     6994  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
    67196995 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    67206996 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
     
    67527028                  [define([AC_PROG_CXX],
    67537029                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
     7030AC_PROVIDE_IFELSE([AC_PROG_OBJC],
     7031                  [_AM_DEPENDENCIES(OBJC)],
     7032                  [define([AC_PROG_OBJC],
     7033                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
    67547034])
    67557035])
     
    67877067AC_DEFUN([AM_PROG_INSTALL_SH],
    67887068[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6789 install_sh=${install_sh-"$am_aux_dir/install-sh"}
     7069install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
    67907070AC_SUBST(install_sh)])
    67917071
     
    68847164])
    68857165
    6886 # Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
     7166# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
     7167# Free Software Foundation, Inc.
    68877168#
    68887169# This file is free software; the Free Software Foundation
     
    68907171# with or without modifications, as long as this notice is preserved.
    68917172
    6892 # serial 3
     7173# serial 5
    68937174
    68947175# AM_PROG_CC_C_O
     
    68987179[AC_REQUIRE([AC_PROG_CC_C_O])dnl
    68997180AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     7181AC_REQUIRE_AUX_FILE([compile])dnl
    69007182# FIXME: we rely on the cache variable name because
    69017183# there is no other way.
     
    69107192   CC="$am_aux_dir/compile $CC"
    69117193fi
     7194dnl Make sure AC_PROG_CC is never called again, or it will override our
     7195dnl setting of CC.
     7196m4_define([AC_PROG_CC],
     7197          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
    69127198])
    69137199
    69147200# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    69157201
    6916 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
     7202# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
    69177203# Free Software Foundation, Inc.
    69187204#
     
    69217207# with or without modifications, as long as this notice is preserved.
    69227208
    6923 # serial 4
     7209# serial 5
    69247210
    69257211# AM_MISSING_PROG(NAME, PROGRAM)
     
    69377223AC_DEFUN([AM_MISSING_HAS_RUN],
    69387224[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     7225AC_REQUIRE_AUX_FILE([missing])dnl
    69397226test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    69407227# Use eval to expand $SHELL
     
    69477234])
    69487235
    6949 # Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
     7236# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
    69507237#
    69517238# This file is free software; the Free Software Foundation
     
    69557242# AM_PROG_MKDIR_P
    69567243# ---------------
    6957 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
    6958 #
    6959 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
    6960 # created by `make install' are always world readable, even if the
    6961 # installer happens to have an overly restrictive umask (e.g. 077).
    6962 # This was a mistake.  There are at least two reasons why we must not
    6963 # use `-m 0755':
    6964 #   - it causes special bits like SGID to be ignored,
    6965 #   - it may be too restrictive (some setups expect 775 directories).
    6966 #
    6967 # Do not use -m 0755 and let people choose whatever they expect by
    6968 # setting umask.
    6969 #
    6970 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
    6971 # Some implementations (such as Solaris 8's) are not thread-safe: if a
    6972 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
    6973 # concurrently, both version can detect that a/ is missing, but only
    6974 # one can create it and the other will error out.  Consequently we
    6975 # restrict ourselves to GNU make (using the --version option ensures
    6976 # this.)
     7244# Check for `mkdir -p'.
    69777245AC_DEFUN([AM_PROG_MKDIR_P],
    6978 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    6979   # We used to keeping the `.' as first argument, in order to
    6980   # allow $(mkdir_p) to be used without argument.  As in
    6981   #   $(mkdir_p) $(somedir)
    6982   # where $(somedir) is conditionally defined.  However this is wrong
    6983   # for two reasons:
    6984   #  1. if the package is installed by a user who cannot write `.'
    6985   #     make install will fail,
    6986   #  2. the above comment should most certainly read
    6987   #     $(mkdir_p) $(DESTDIR)$(somedir)
    6988   #     so it does not work when $(somedir) is undefined and
    6989   #     $(DESTDIR) is not.
    6990   #  To support the latter case, we have to write
    6991   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    6992   #  so the `.' trick is pointless.
    6993   mkdir_p='mkdir -p --'
    6994 else
    6995   # On NextStep and OpenStep, the `mkdir' command does not
    6996   # recognize any option.  It will interpret all options as
    6997   # directories to create, and then abort because `.' already
    6998   # exists.
    6999   for d in ./-p ./--version;
    7000   do
    7001     test -d $d && rmdir $d
    7002   done
    7003   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    7004   if test -f "$ac_aux_dir/mkinstalldirs"; then
    7005     mkdir_p='$(mkinstalldirs)'
    7006   else
    7007     mkdir_p='$(install_sh) -d'
    7008   fi
    7009 fi
    7010 AC_SUBST([mkdir_p])])
     7246[AC_PREREQ([2.60])dnl
     7247AC_REQUIRE([AC_PROG_MKDIR_P])dnl
     7248dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
     7249dnl while keeping a definition of mkdir_p for backward compatibility.
     7250dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
     7251dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
     7252dnl Makefile.ins that do not define MKDIR_P, so we do our own
     7253dnl adjustment using top_builddir (which is defined more often than
     7254dnl MKDIR_P).
     7255AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
     7256case $mkdir_p in
     7257  [[\\/$]]* | ?:[[\\/]]*) ;;
     7258  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
     7259esac
     7260])
    70117261
    70127262# Helper functions for option handling.                     -*- Autoconf -*-
     
    70427292AC_DEFUN([_AM_IF_OPTION],
    70437293[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
     7294
     7295# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
     7296#
     7297# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
     7298#
     7299# This program is free software; you can redistribute it and/or modify
     7300# it under the terms of the GNU General Public License as published by
     7301# the Free Software Foundation; either version 2 of the License, or
     7302# (at your option) any later version.
     7303#
     7304# This program is distributed in the hope that it will be useful, but
     7305# WITHOUT ANY WARRANTY; without even the implied warranty of
     7306# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     7307# General Public License for more details.
     7308#
     7309# You should have received a copy of the GNU General Public License
     7310# along with this program; if not, write to the Free Software
     7311# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     7312#
     7313# As a special exception to the GNU General Public License, if you
     7314# distribute this file as part of a program that contains a
     7315# configuration script generated by Autoconf, you may include it under
     7316# the same distribution terms that you use for the rest of that program.
     7317
     7318# PKG_PROG_PKG_CONFIG([MIN-VERSION])
     7319# ----------------------------------
     7320AC_DEFUN([PKG_PROG_PKG_CONFIG],
     7321[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
     7322m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
     7323AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
     7324if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     7325        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
     7326fi
     7327if test -n "$PKG_CONFIG"; then
     7328        _pkg_min_version=m4_default([$1], [0.9.0])
     7329        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
     7330        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     7331                AC_MSG_RESULT([yes])
     7332        else
     7333                AC_MSG_RESULT([no])
     7334                PKG_CONFIG=""
     7335        fi
     7336               
     7337fi[]dnl
     7338])# PKG_PROG_PKG_CONFIG
     7339
     7340# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
     7341#
     7342# Check to see whether a particular set of modules exists.  Similar
     7343# to PKG_CHECK_MODULES(), but does not set variables or print errors.
     7344#
     7345#
     7346# Similar to PKG_CHECK_MODULES, make sure that the first instance of
     7347# this or PKG_CHECK_MODULES is called, or make sure to call
     7348# PKG_CHECK_EXISTS manually
     7349# --------------------------------------------------------------
     7350AC_DEFUN([PKG_CHECK_EXISTS],
     7351[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     7352if test -n "$PKG_CONFIG" && \
     7353    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
     7354  m4_ifval([$2], [$2], [:])
     7355m4_ifvaln([$3], [else
     7356  $3])dnl
     7357fi])
     7358
     7359
     7360# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
     7361# ---------------------------------------------
     7362m4_define([_PKG_CONFIG],
     7363[if test -n "$PKG_CONFIG"; then
     7364    if test -n "$$1"; then
     7365        pkg_cv_[]$1="$$1"
     7366    else
     7367        PKG_CHECK_EXISTS([$3],
     7368                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
     7369                         [pkg_failed=yes])
     7370    fi
     7371else
     7372        pkg_failed=untried
     7373fi[]dnl
     7374])# _PKG_CONFIG
     7375
     7376# _PKG_SHORT_ERRORS_SUPPORTED
     7377# -----------------------------
     7378AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
     7379[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
     7380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     7381        _pkg_short_errors_supported=yes
     7382else
     7383        _pkg_short_errors_supported=no
     7384fi[]dnl
     7385])# _PKG_SHORT_ERRORS_SUPPORTED
     7386
     7387
     7388# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
     7389# [ACTION-IF-NOT-FOUND])
     7390#
     7391#
     7392# Note that if there is a possibility the first call to
     7393# PKG_CHECK_MODULES might not happen, you should be sure to include an
     7394# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
     7395#
     7396#
     7397# --------------------------------------------------------------
     7398AC_DEFUN([PKG_CHECK_MODULES],
     7399[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     7400AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
     7401AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
     7402
     7403pkg_failed=no
     7404AC_MSG_CHECKING([for $1])
     7405
     7406_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
     7407_PKG_CONFIG([$1][_LIBS], [libs], [$2])
     7408
     7409m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
     7410and $1[]_LIBS to avoid the need to call pkg-config.
     7411See the pkg-config man page for more details.])
     7412
     7413if test $pkg_failed = yes; then
     7414        _PKG_SHORT_ERRORS_SUPPORTED
     7415        if test $_pkg_short_errors_supported = yes; then
     7416                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
     7417        else
     7418                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
     7419        fi
     7420        # Put the nasty error message in config.log where it belongs
     7421        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
     7422
     7423        ifelse([$4], , [AC_MSG_ERROR(dnl
     7424[Package requirements ($2) were not met:
     7425
     7426$$1_PKG_ERRORS
     7427
     7428Consider adjusting the PKG_CONFIG_PATH environment variable if you
     7429installed software in a non-standard prefix.
     7430
     7431_PKG_TEXT
     7432])],
     7433                [AC_MSG_RESULT([no])
     7434                $4])
     7435elif test $pkg_failed = untried; then
     7436        ifelse([$4], , [AC_MSG_FAILURE(dnl
     7437[The pkg-config script could not be found or is too old.  Make sure it
     7438is in your PATH or set the PKG_CONFIG environment variable to the full
     7439path to pkg-config.
     7440
     7441_PKG_TEXT
     7442
     7443To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
     7444                [$4])
     7445else
     7446        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
     7447        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
     7448        AC_MSG_RESULT([yes])
     7449        ifelse([$3], , :, [$3])
     7450fi[]dnl
     7451])# PKG_CHECK_MODULES
    70447452
    70457453# Check to make sure that the build environment is sane.    -*- Autoconf -*-
     
    71207528  AC_CHECK_TOOL([STRIP], [strip], :)
    71217529fi
    7122 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     7530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    71237531AC_SUBST([INSTALL_STRIP_PROGRAM])])
     7532
     7533# Copyright (C) 2006  Free Software Foundation, Inc.
     7534#
     7535# This file is free software; the Free Software Foundation
     7536# gives unlimited permission to copy and/or distribute it,
     7537# with or without modifications, as long as this notice is preserved.
     7538
     7539# _AM_SUBST_NOTMAKE(VARIABLE)
     7540# ---------------------------
     7541# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
     7542# This macro is traced by Automake.
     7543AC_DEFUN([_AM_SUBST_NOTMAKE])
    71247544
    71257545# Check how to create a tarball.                            -*- Autoconf -*-
Note: See TracChangeset for help on using the changeset viewer.