Show
Ignore:
Timestamp:
04/09/08 09:36:23 (9 months ago)
Author:
aturner
Message:

sync up my test code so far. refs #41

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • features/performance/aclocal.m4

    r1738 r1970  
    1 # generated automatically by aclocal 1.10 -*- Autoconf -*- 
     1# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 
    22 
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
    4 # 2005, 2006  Free Software Foundation, Inc. 
     4# 2005, 2006, 2007, 2008  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 
    14 m4_if(m4_PACKAGE_VERSION, [2.61],, 
    15 [m4_fatal([this file was generated for autoconf 2.61. 
    16 You have another version of autoconf.  If you want to use that, 
    17 you should regenerate the build system entirely.], [63])]) 
     14m4_ifndef([AC_AUTOCONF_VERSION], 
     15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 
     16m4_if(AC_AUTOCONF_VERSION, [2.61],, 
     17[m4_warning([this file was generated for autoconf 2.61. 
     18You have another version of autoconf.  It may work, but is not guaranteed to. 
     19If you have problems, you may need to regenerate the build system entirely. 
     20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 
    1821 
    1922# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
    2023 
    21 # serial 48 AC_PROG_LIBTOOL 
     24# serial 51 AC_PROG_LIBTOOL 
    2225 
    2326 
     
    182185 
    183186# Determine commands to create old-style static archives. 
    184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 
     187old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 
    185188old_postinstall_cmds='chmod 644 $oldlib' 
    186189old_postuninstall_cmds= 
     
    269272# the simple compiler test code. 
    270273AC_DEFUN([_LT_COMPILER_BOILERPLATE], 
    271 [ac_outfile=conftest.$ac_objext 
    272 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 
     274[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     275ac_outfile=conftest.$ac_objext 
     276echo "$lt_simple_compile_test_code" >conftest.$ac_ext 
    273277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 
    274278_lt_compiler_boilerplate=`cat conftest.err` 
     
    282286# the simple link test code. 
    283287AC_DEFUN([_LT_LINKER_BOILERPLATE], 
    284 [ac_outfile=conftest.$ac_objext 
    285 printf "$lt_simple_link_test_code" >conftest.$ac_ext 
     288[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     289ac_outfile=conftest.$ac_objext 
     290echo "$lt_simple_link_test_code" >conftest.$ac_ext 
    286291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 
    287292_lt_linker_boilerplate=`cat conftest.err` 
     
    299304# to the aix ld manual. 
    300305AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 
    301 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 
    302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } 
    303 }'` 
     306[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     307AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 
     308lt_aix_libpath_sed=' 
     309    /Import File Strings/,/^$/ { 
     310        /^0/ { 
     311            s/^0  *\(.*\)$/\1/ 
     312            p 
     313        } 
     314    }' 
     315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 
    304316# Check for a 64-bit object if we didn't find anything. 
    305 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; } 
    306 }'`; fi],[]) 
     317if test -z "$aix_libpath"; then 
     318  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 
     319fi],[]) 
    307320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 
    308321])# _LT_AC_SYS_LIBPATH_AIX 
     
    535548  ;; 
    536549 
    537 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 
     550x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 
     551s390*-*linux*|sparc*-*linux*) 
    538552  # Find out which ABI we are using. 
    539553  echo 'int i;' > conftest.$ac_ext 
     
    542556    *32-bit*) 
    543557      case $host in 
     558        x86_64-*kfreebsd*-gnu) 
     559          LD="${LD-ld} -m elf_i386_fbsd" 
     560          ;; 
    544561        x86_64-*linux*) 
    545562          LD="${LD-ld} -m elf_i386" 
     
    558575    *64-bit*) 
    559576      case $host in 
     577        x86_64-*kfreebsd*-gnu) 
     578          LD="${LD-ld} -m elf_x86_64_fbsd" 
     579          ;; 
    560580        x86_64-*linux*) 
    561581          LD="${LD-ld} -m elf_x86_64" 
     
    629649  [$2=no 
    630650  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 
    631    printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
     651   echo "$lt_simple_compile_test_code" > conftest.$ac_ext 
    632652   lt_compiler_flag="$3" 
    633653   # Insert the option either (1) after the last *FLAGS variable, or 
     
    670690# Check whether the given compiler option works 
    671691AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 
    672 [AC_CACHE_CHECK([$1], [$2], 
     692[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     693AC_CACHE_CHECK([$1], [$2], 
    673694  [$2=no 
    674695   save_LDFLAGS="$LDFLAGS" 
    675696   LDFLAGS="$LDFLAGS $3" 
    676    printf "$lt_simple_link_test_code" > conftest.$ac_ext 
     697   echo "$lt_simple_link_test_code" > conftest.$ac_ext 
    677698   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 
    678699     # The linker can only warn and ignore the option if not recognized 
     
    788809    ;; 
    789810  *) 
    790     # If test is not a shell built-in, we'll probably end up computing a 
    791     # maximum length that is only half of the actual maximum length, but 
    792     # we can't tell. 
    793     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 
    794     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 
     811    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 
     812    if test -n "$lt_cv_sys_max_cmd_len"; then 
     813      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 
     814      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 
     815    else 
     816      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 
     817      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 
    795818               = "XX$teststring") >/dev/null 2>&1 && 
    796             new_result=`expr "X$teststring" : ".*" 2>&1` && 
    797             lt_cv_sys_max_cmd_len=$new_result && 
    798             test $i != 17 # 1/2 MB should be enough 
    799     do 
    800       i=`expr $i + 1` 
    801       teststring=$teststring$teststring 
    802     done 
    803     teststring= 
    804     # Add a significant safety factor because C++ compilers can tack on massive 
    805     # amounts of additional arguments before passing them to the linker. 
    806     # It appears as though 1/2 is a usable value. 
    807     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 
     819              new_result=`expr "X$teststring" : ".*" 2>&1` && 
     820              lt_cv_sys_max_cmd_len=$new_result && 
     821              test $i != 17 # 1/2 MB should be enough 
     822      do 
     823        i=`expr $i + 1` 
     824        teststring=$teststring$teststring 
     825      done 
     826      teststring= 
     827      # Add a significant safety factor because C++ compilers can tack on massive 
     828      # amounts of additional arguments before passing them to the linker. 
     829      # It appears as though 1/2 is a usable value. 
     830      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 
     831    fi 
    808832    ;; 
    809833  esac 
     
    10321056# Check to see if options -c and -o are simultaneously supported by compiler 
    10331057AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 
    1034 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 
     1058[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1059AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 
    10351060AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 
    10361061  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 
     
    10401065   cd conftest 
    10411066   mkdir out 
    1042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
     1067   echo "$lt_simple_compile_test_code" > conftest.$ac_ext 
    10431068 
    10441069   lt_compiler_flag="-o out/conftest2.$ac_objext" 
     
    11801205       if test -n "$STRIP" ; then 
    11811206         striplib="$STRIP -x" 
     1207         old_striplib="$STRIP -S" 
    11821208         AC_MSG_RESULT([yes]) 
    11831209       else 
     
    11971223# PORTME Fill in your ld.so characteristics 
    11981224AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 
    1199 [AC_MSG_CHECKING([dynamic linker characteristics]) 
     1225[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1226AC_MSG_CHECKING([dynamic linker characteristics]) 
    12001227library_names_spec= 
    12011228libname_spec='lib$name' 
     
    12111238dynamic_linker="$host_os ld.so" 
    12121239sys_lib_dlsearch_path_spec="/lib /usr/lib" 
     1240m4_if($1,[],[ 
    12131241if test "$GCC" = yes; then 
    1214   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 
    1215   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 
     1242  case $host_os in 
     1243    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 
     1244    *) lt_awk_arg="/^libraries:/" ;; 
     1245  esac 
     1246  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 
     1247  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 
    12161248    # if the path contains ";" then we assume it to be the separator 
    12171249    # otherwise default to the standard path separator (i.e. ":") - it is 
    12181250    # assumed that no part of a normal pathname contains ";" but that should 
    12191251    # okay in the real world where ";" in dirpaths is itself problematic. 
    1220     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 
     1252    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 
    12211253  else 
    1222     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` 
     1254    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` 
    12231255  fi 
     1256  # Ok, now we have the path, separated by spaces, we can step through it 
     1257  # and add multilib dir if necessary. 
     1258  lt_tmp_lt_search_path_spec= 
     1259  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 
     1260  for lt_sys_path in $lt_search_path_spec; do 
     1261    if test -d "$lt_sys_path/$lt_multi_os_dir"; then 
     1262      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 
     1263    else 
     1264      test -d "$lt_sys_path" && \ 
     1265        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 
     1266    fi 
     1267  done 
     1268  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 
     1269BEGIN {RS=" "; FS="/|\n";} { 
     1270  lt_foo=""; 
     1271  lt_count=0; 
     1272  for (lt_i = NF; lt_i > 0; lt_i--) { 
     1273    if ($lt_i != "" && $lt_i != ".") { 
     1274      if ($lt_i == "..") { 
     1275        lt_count++; 
     1276      } else { 
     1277        if (lt_count == 0) { 
     1278          lt_foo="/" $lt_i lt_foo; 
     1279        } else { 
     1280          lt_count--; 
     1281        } 
     1282      } 
     1283    } 
     1284  } 
     1285  if (lt_foo != "") { lt_freq[[lt_foo]]++; } 
     1286  if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 
     1287}'` 
     1288  sys_lib_search_path_spec=`echo $lt_search_path_spec` 
    12241289else 
    12251290  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 
    1226 fi 
     1291fi]) 
    12271292need_lib_prefix=unknown 
    12281293hardcode_into_libs=no 
     
    13811446  shlibpath_var=DYLD_LIBRARY_PATH 
    13821447  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 
    1383   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 
    1384   if test "$GCC" = yes; then 
    1385     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"` 
    1386   else 
    1387     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 
    1388   fi 
     1448  m4_if([$1], [],[ 
     1449  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])  
    13891450  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 
    13901451  ;; 
     
    14011462freebsd1*) 
    14021463  dynamic_linker=no 
    1403   ;; 
    1404  
    1405 kfreebsd*-gnu) 
    1406   version_type=linux 
    1407   need_lib_prefix=no 
    1408   need_version=no 
    1409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 
    1410   soname_spec='${libname}${release}${shared_ext}$major' 
    1411   shlibpath_var=LD_LIBRARY_PATH 
    1412   shlibpath_overrides_runpath=no 
    1413   hardcode_into_libs=yes 
    1414   dynamic_linker='GNU ld.so' 
    14151464  ;; 
    14161465 
     
    14521501    hardcode_into_libs=yes 
    14531502    ;; 
    1454   freebsd*) # from 4.6 on 
     1503  *) # from 4.6 on, and DragonFly 
    14551504    shlibpath_overrides_runpath=yes 
    14561505    hardcode_into_libs=yes 
     
    15151564  ;; 
    15161565 
    1517 interix3*) 
     1566interix[[3-9]]*) 
    15181567  version_type=linux 
    15191568  need_lib_prefix=no 
     
    15701619 
    15711620# This must be Linux ELF. 
    1572 linux*) 
     1621linux* | k*bsd*-gnu) 
    15731622  version_type=linux 
    15741623  need_lib_prefix=no 
     
    15861635  # Append ld.so.conf contents to the search path 
    15871636  if test -f /etc/ld.so.conf; then 
    1588     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' ' '` 
     1637    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' ' '` 
    15891638    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 
    15901639  fi 
     
    15971646  # assume the GNU/Linux dynamic linker is in use. 
    15981647  dynamic_linker='GNU/Linux ld.so' 
    1599   ;; 
    1600  
    1601 knetbsd*-gnu) 
    1602   version_type=linux 
    1603   need_lib_prefix=no 
    1604   need_version=no 
    1605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 
    1606   soname_spec='${libname}${release}${shared_ext}$major' 
    1607   shlibpath_var=LD_LIBRARY_PATH 
    1608   shlibpath_overrides_runpath=no 
    1609   hardcode_into_libs=yes 
    1610   dynamic_linker='GNU ld.so' 
    16111648  ;; 
    16121649 
     
    16921729  ;; 
    16931730 
     1731rdos*) 
     1732  dynamic_linker=no 
     1733  ;; 
     1734 
    16941735solaris*) 
    16951736  version_type=linux 
     
    17971838# ---------------- 
    17981839AC_DEFUN([_LT_AC_TAGCONFIG], 
    1799 [AC_ARG_WITH([tags], 
     1840[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1841AC_ARG_WITH([tags], 
    18001842    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 
    18011843        [include additional configurations @<:@automatic@:>@])], 
     
    20582100# AC_PATH_TOOL_PREFIX 
    20592101# ------------------- 
    2060 # find a file program which can recognise shared library 
     2102# find a file program which can recognize shared library 
    20612103AC_DEFUN([AC_PATH_TOOL_PREFIX], 
    20622104[AC_REQUIRE([AC_PROG_EGREP])dnl 
     
    21212163# AC_PATH_MAGIC 
    21222164# ------------- 
    2123 # find a file program which can recognise a shared library 
     2165# find a file program which can recognize a shared library 
    21242166AC_DEFUN([AC_PATH_MAGIC], 
    21252167[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 
     
    22682310#  -- PORTME fill in with the dynamic library characteristics 
    22692311AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 
    2270 [AC_CACHE_CHECK([how to recognise dependent libraries], 
     2312[AC_CACHE_CHECK([how to recognize dependent libraries], 
    22712313lt_cv_deplibs_check_method, 
    22722314[lt_cv_file_magic_cmd='$MAGIC_CMD' 
     
    23072349mingw* | pw32*) 
    23082350  # Base MSYS/MinGW do not provide the 'file' command needed by 
    2309   # func_win32_libid shell function, so use a weaker test based on 'objdump'. 
    2310   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 
    2311   lt_cv_file_magic_cmd='$OBJDUMP -f' 
     2351  # func_win32_libid shell function, so use a weaker test based on 'objdump', 
     2352  # unless we find 'file', for example because we are cross-compiling. 
     2353  if ( file / ) >/dev/null 2>&1; then 
     2354    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 
     2355    lt_cv_file_magic_cmd='func_win32_libid' 
     2356  else 
     2357    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 
     2358    lt_cv_file_magic_cmd='$OBJDUMP -f' 
     2359  fi 
    23122360  ;; 
    23132361 
     
    23162364  ;; 
    23172365 
    2318 freebsd* | kfreebsd*-gnu | dragonfly*) 
     2366freebsd* | dragonfly*) 
    23192367  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 
    23202368    case $host_cpu in 
     
    23542402  ;; 
    23552403 
    2356 interix3*) 
     2404interix[[3-9]]*) 
    23572405  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 
    23582406  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 
     
    23702418 
    23712419# This must be Linux ELF. 
    2372 linux*) 
     2420linux* | k*bsd*-gnu) 
    23732421  lt_cv_deplibs_check_method=pass_all 
    23742422  ;; 
     
    24012449 
    24022450osf3* | osf4* | osf5*) 
     2451  lt_cv_deplibs_check_method=pass_all 
     2452  ;; 
     2453 
     2454rdos*) 
    24032455  lt_cv_deplibs_check_method=pass_all 
    24042456  ;; 
     
    24562508else 
    24572509  lt_nm_to_check="${ac_tool_prefix}nm" 
    2458   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then  
     2510  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
    24592511    lt_nm_to_check="$lt_nm_to_check nm" 
    24602512  fi 
     
    26722724 
    26732725# Code to be used in simple compile tests 
    2674 lt_simple_compile_test_code="int some_variable = 0;\n" 
     2726lt_simple_compile_test_code="int some_variable = 0;" 
    26752727 
    26762728# Code to be used in simple link tests 
    2677 lt_simple_link_test_code='int main(){return(0);}\n' 
     2729lt_simple_link_test_code='int main(){return(0);}' 
    26782730 
    26792731_LT_AC_SYS_COMPILER 
     
    27772829 
    27782830# Code to be used in simple compile tests 
    2779 lt_simple_compile_test_code="int some_variable = 0;\n" 
     2831lt_simple_compile_test_code="int some_variable = 0;" 
    27802832 
    27812833# Code to be used in simple link tests 
    2782 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 
     2834lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 
    27832835 
    27842836# ltmain only uses $CC for tagged configurations so make sure $CC is set. 
     
    29262978        then 
    29272979          # We have reworked collect2 
    2928           _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
     2980          : 
    29292981        else 
    29302982          # We have old collect2 
     
    30853137        xlc*) 
    30863138         output_verbose_link_cmd='echo' 
    3087           _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' 
     3139          _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' 
    30883140          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 
    30893141          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 
    3090           _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}' 
     3142          _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}' 
    30913143          _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}' 
    30923144          ;; 
     
    31223174    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 
    31233175    ;; 
    3124   freebsd* | kfreebsd*-gnu | dragonfly*) 
     3176  freebsd* | dragonfly*) 
    31253177    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 
    31263178    # conventions 
     
    31713223 
    31723224      case $host_cpu in 
    3173       hppa*64*|ia64*) 
    3174         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 
    3175         ;; 
     3225      hppa*64*|ia64*) ;; 
    31763226      *) 
    31773227        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
     
    32413291    esac 
    32423292    ;; 
    3243   interix3*) 
     3293  interix[[3-9]]*) 
    32443294    _LT_AC_TAGVAR(hardcode_direct, $1)=no 
    32453295    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
     
    32813331    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 
    32823332    ;; 
    3283   linux*) 
     3333  linux* | k*bsd*-gnu) 
    32843334    case $cc_basename in 
    32853335      KCC*) 
     
    33613411        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' 
    33623412        ;; 
     3413      *) 
     3414        case `$CC -V 2>&1 | sed 5q` in 
     3415        *Sun\ C*) 
     3416          # Sun C++ 5.9 
     3417          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 
     3418          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 
     3419          _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' 
     3420          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 
     3421          _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' 
     3422 
     3423          # Not sure whether something based on 
     3424          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 
     3425          # would be better. 
     3426          output_verbose_link_cmd='echo' 
     3427 
     3428          # Archives containing C++ object files must be created using 
     3429          # "CC -xar", where "CC" is the Sun C++ compiler.  This is 
     3430          # necessary to make sure instantiated templates are included 
     3431          # in the archive. 
     3432          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 
     3433          ;; 
     3434        esac 
     3435        ;; 
    33633436    esac 
    33643437    ;; 
     
    33993472    ;; 
    34003473  openbsd*) 
    3401     _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
    3402     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
    3403     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 
    3404     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 
    3405     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
    3406       _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' 
    3407       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
    3408       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 
     3474    if test -f /usr/libexec/ld.so; then 
     3475      _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
     3476      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
     3477      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 
     3478      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 
     3479      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
     3480        _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' 
     3481        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
     3482        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 
     3483      fi 
     3484      output_verbose_link_cmd='echo' 
     3485    else 
     3486      _LT_AC_TAGVAR(ld_shlibs, $1)=no 
    34093487    fi 
    3410     output_verbose_link_cmd='echo' 
    34113488    ;; 
    34123489  osf3*) 
     
    35703647          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 
    35713648          *) 
    3572             # The C++ compiler is used as linker so we must use $wl 
    3573             # flag to pass the commands to the underlying system 
    3574             # linker. We must also pass each convience library through 
    3575             # to the system linker between allextract/defaultextract. 
    3576             # The C++ compiler will combine linker options so we 
    3577             # cannot just pass the convience library names through 
    3578             # without $wl. 
     3649            # The compiler driver will combine and reorder linker options, 
     3650            # but understands `-z linker_flag'. 
    35793651            # Supported since Solaris 2.6 (maybe 2.5.1?) 
    3580             _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' 
     3652            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 
    35813653            ;; 
    35823654        esac 
     
    36253697 
    36263698          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 
     3699          case $host_os in 
     3700          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 
     3701          *) 
     3702            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 
     3703            ;; 
     3704          esac 
    36273705        fi 
    36283706        ;; 
     
    38683946ifelse([$1],[CXX], 
    38693947[case $host_os in 
    3870 interix3*) 
     3948interix[[3-9]]*) 
    38713949  # Interix 3.5 installs completely hosed .la files for C++, so rather than 
    38723950  # hack all around it, let's just trust "g++" to DTRT. 
     
    38763954  ;; 
    38773955 
     3956linux*) 
     3957  case `$CC -V 2>&1 | sed 5q` in 
     3958  *Sun\ C*) 
     3959    # Sun C++ 5.9 
     3960    # 
     3961    # The more standards-conforming stlport4 library is 
     3962    # incompatible with the Cstd library. Avoid specifying 
     3963    # it if it's in CXXFLAGS. Ignore libCrun as 
     3964    # -library=stlport4 depends on it. 
     3965    case " $CXX $CXXFLAGS " in 
     3966    *" -library=stlport4 "*) 
     3967      solaris_use_stlport4=yes 
     3968      ;; 
     3969    esac 
     3970    if test "$solaris_use_stlport4" != yes; then 
     3971      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'