• R/O
  • SSH
  • HTTPS

marathon: コミット


コミットメタ情報

リビジョン518 (tree)
日時2012-02-12 11:33:30
作者logue

ログメッセージ

公式r126(v1.1.1)とマージ。
・無効なマップ(レベルファイルが存在しない)をマージしないようにした。
・Windowsでファイル分割時に、ファイルの末尾がドットだったり、スペースだったりするときの問題を修正。

変更サマリ

差分

--- atque/trunk/atque/m4/libtool.m4 (revision 517)
+++ atque/trunk/atque/m4/libtool.m4 (revision 518)
@@ -1,8 +1,8 @@
11 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
22 #
33 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4-# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5-# Inc.
4+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5+# Foundation, Inc.
66 # Written by Gordon Matzigkeit, 1996
77 #
88 # This file is free software; the Free Software Foundation gives
@@ -11,8 +11,8 @@
1111
1212 m4_define([_LT_COPYING], [dnl
1313 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14-# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15-# Inc.
14+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15+# Foundation, Inc.
1616 # Written by Gordon Matzigkeit, 1996
1717 #
1818 # This file is part of GNU Libtool.
@@ -146,6 +146,8 @@
146146 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
147147 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
148148
149+_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
150+dnl
149151 _LT_DECL([], [host_alias], [0], [The host system])dnl
150152 _LT_DECL([], [host], [0])dnl
151153 _LT_DECL([], [host_os], [0])dnl
@@ -637,7 +639,7 @@
637639 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
638640 configured by $[0], generated by m4_PACKAGE_STRING.
639641
640-Copyright (C) 2010 Free Software Foundation, Inc.
642+Copyright (C) 2011 Free Software Foundation, Inc.
641643 This config.lt script is free software; the Free Software Foundation
642644 gives unlimited permision to copy, distribute and modify it."
643645
@@ -801,6 +803,7 @@
801803 m4_case([$1],
802804 [C], [_LT_LANG(C)],
803805 [C++], [_LT_LANG(CXX)],
806+ [Go], [_LT_LANG(GO)],
804807 [Java], [_LT_LANG(GCJ)],
805808 [Fortran 77], [_LT_LANG(F77)],
806809 [Fortran], [_LT_LANG(FC)],
@@ -822,6 +825,31 @@
822825 ])# _LT_LANG
823826
824827
828+m4_ifndef([AC_PROG_GO], [
829+############################################################
830+# NOTE: This macro has been submitted for inclusion into #
831+# GNU Autoconf as AC_PROG_GO. When it is available in #
832+# a released version of Autoconf we should remove this #
833+# macro and use it instead. #
834+############################################################
835+m4_defun([AC_PROG_GO],
836+[AC_LANG_PUSH(Go)dnl
837+AC_ARG_VAR([GOC], [Go compiler command])dnl
838+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
839+_AC_ARG_VAR_LDFLAGS()dnl
840+AC_CHECK_TOOL(GOC, gccgo)
841+if test -z "$GOC"; then
842+ if test -n "$ac_tool_prefix"; then
843+ AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
844+ fi
845+fi
846+if test -z "$GOC"; then
847+ AC_CHECK_PROG(GOC, gccgo, gccgo, false)
848+fi
849+])#m4_defun
850+])#m4_ifndef
851+
852+
825853 # _LT_LANG_DEFAULT_CONFIG
826854 # -----------------------
827855 m4_defun([_LT_LANG_DEFAULT_CONFIG],
@@ -852,6 +880,10 @@
852880 m4_ifdef([LT_PROG_GCJ],
853881 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
854882
883+AC_PROVIDE_IFELSE([AC_PROG_GO],
884+ [LT_LANG(GO)],
885+ [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
886+
855887 AC_PROVIDE_IFELSE([LT_PROG_RC],
856888 [LT_LANG(RC)],
857889 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
@@ -954,7 +986,13 @@
954986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
955987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
956988 _lt_result=$?
957- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
989+ # If there is a non-empty error log, and "single_module"
990+ # appears in it, assume the flag caused a linker warning
991+ if test -s conftest.err && $GREP single_module conftest.err; then
992+ cat conftest.err >&AS_MESSAGE_LOG_FD
993+ # Otherwise, if the output was created with a 0 exit code from
994+ # the compiler, it worked.
995+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
958996 lt_cv_apple_cc_single_mod=yes
959997 else
960998 cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -962,6 +1000,7 @@
9621000 rm -rf libconftest.dylib*
9631001 rm -f conftest.*
9641002 fi])
1003+
9651004 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9661005 [lt_cv_ld_exported_symbols_list],
9671006 [lt_cv_ld_exported_symbols_list=no
@@ -973,6 +1012,7 @@
9731012 [lt_cv_ld_exported_symbols_list=no])
9741013 LDFLAGS="$save_LDFLAGS"
9751014 ])
1015+
9761016 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
9771017 [lt_cv_ld_force_load=no
9781018 cat > conftest.c << _LT_EOF
@@ -990,7 +1030,9 @@
9901030 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
9911031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9921032 _lt_result=$?
993- if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1033+ if test -s conftest.err && $GREP force_load conftest.err; then
1034+ cat conftest.err >&AS_MESSAGE_LOG_FD
1035+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9941036 lt_cv_ld_force_load=yes
9951037 else
9961038 cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -1035,8 +1077,8 @@
10351077 ])
10361078
10371079
1038-# _LT_DARWIN_LINKER_FEATURES
1039-# --------------------------
1080+# _LT_DARWIN_LINKER_FEATURES([TAG])
1081+# ---------------------------------
10401082 # Checks for linker and compiler features on darwin
10411083 m4_defun([_LT_DARWIN_LINKER_FEATURES],
10421084 [
@@ -1047,6 +1089,8 @@
10471089 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10481090 if test "$lt_cv_ld_force_load" = "yes"; then
10491091 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1092+ m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1093+ [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10501094 else
10511095 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10521096 fi
@@ -1330,7 +1374,7 @@
13301374 CFLAGS="$SAVE_CFLAGS"
13311375 fi
13321376 ;;
1333-sparc*-*solaris*)
1377+*-*solaris*)
13341378 # Find out which ABI we are using.
13351379 echo 'int i;' > conftest.$ac_ext
13361380 if AC_TRY_EVAL(ac_compile); then
@@ -1337,7 +1381,20 @@
13371381 case `/usr/bin/file conftest.o` in
13381382 *64-bit*)
13391383 case $lt_cv_prog_gnu_ld in
1340- yes*) LD="${LD-ld} -m elf64_sparc" ;;
1384+ yes*)
1385+ case $host in
1386+ i?86-*-solaris*)
1387+ LD="${LD-ld} -m elf_x86_64"
1388+ ;;
1389+ sparc*-*-solaris*)
1390+ LD="${LD-ld} -m elf64_sparc"
1391+ ;;
1392+ esac
1393+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1394+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1395+ LD="${LD-ld}_sol2"
1396+ fi
1397+ ;;
13411398 *)
13421399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13431400 LD="${LD-ld} -64"
@@ -1414,13 +1471,13 @@
14141471 if test -n "$RANLIB"; then
14151472 case $host_os in
14161473 openbsd*)
1417- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1474+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14181475 ;;
14191476 *)
1420- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1477+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14211478 ;;
14221479 esac
1423- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1480+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14241481 fi
14251482
14261483 case $host_os in
@@ -1600,6 +1657,11 @@
16001657 lt_cv_sys_max_cmd_len=196608
16011658 ;;
16021659
1660+ os2*)
1661+ # The test takes a long time on OS/2.
1662+ lt_cv_sys_max_cmd_len=8192
1663+ ;;
1664+
16031665 osf*)
16041666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16051667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -2185,7 +2247,7 @@
21852247
21862248 case $host_os in
21872249 aix3*)
2188- version_type=linux
2250+ version_type=linux # correct to gnu/linux during the next big refactor
21892251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21902252 shlibpath_var=LIBPATH
21912253
@@ -2194,7 +2256,7 @@
21942256 ;;
21952257
21962258 aix[[4-9]]*)
2197- version_type=linux
2259+ version_type=linux # correct to gnu/linux during the next big refactor
21982260 need_lib_prefix=no
21992261 need_version=no
22002262 hardcode_into_libs=yes
@@ -2259,7 +2321,7 @@
22592321 ;;
22602322
22612323 bsdi[[45]]*)
2262- version_type=linux
2324+ version_type=linux # correct to gnu/linux during the next big refactor
22632325 need_version=no
22642326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652327 soname_spec='${libname}${release}${shared_ext}$major'
@@ -2398,7 +2460,7 @@
23982460 ;;
23992461
24002462 dgux*)
2401- version_type=linux
2463+ version_type=linux # correct to gnu/linux during the next big refactor
24022464 need_lib_prefix=no
24032465 need_version=no
24042466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
@@ -2406,10 +2468,6 @@
24062468 shlibpath_var=LD_LIBRARY_PATH
24072469 ;;
24082470
2409-freebsd1*)
2410- dynamic_linker=no
2411- ;;
2412-
24132471 freebsd* | dragonfly*)
24142472 # DragonFly does not have aout. When/if they implement a new
24152473 # versioning mechanism, adjust this.
@@ -2417,7 +2475,7 @@
24172475 objformat=`/usr/bin/objformat`
24182476 else
24192477 case $host_os in
2420- freebsd[[123]]*) objformat=aout ;;
2478+ freebsd[[23]].*) objformat=aout ;;
24212479 *) objformat=elf ;;
24222480 esac
24232481 fi
@@ -2435,7 +2493,7 @@
24352493 esac
24362494 shlibpath_var=LD_LIBRARY_PATH
24372495 case $host_os in
2438- freebsd2*)
2496+ freebsd2.*)
24392497 shlibpath_overrides_runpath=yes
24402498 ;;
24412499 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
@@ -2455,17 +2513,18 @@
24552513 ;;
24562514
24572515 gnu*)
2458- version_type=linux
2516+ version_type=linux # correct to gnu/linux during the next big refactor
24592517 need_lib_prefix=no
24602518 need_version=no
24612519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24622520 soname_spec='${libname}${release}${shared_ext}$major'
24632521 shlibpath_var=LD_LIBRARY_PATH
2522+ shlibpath_overrides_runpath=no
24642523 hardcode_into_libs=yes
24652524 ;;
24662525
24672526 haiku*)
2468- version_type=linux
2527+ version_type=linux # correct to gnu/linux during the next big refactor
24692528 need_lib_prefix=no
24702529 need_version=no
24712530 dynamic_linker="$host_os runtime_loader"
@@ -2526,7 +2585,7 @@
25262585 ;;
25272586
25282587 interix[[3-9]]*)
2529- version_type=linux
2588+ version_type=linux # correct to gnu/linux during the next big refactor
25302589 need_lib_prefix=no
25312590 need_version=no
25322591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
@@ -2542,7 +2601,7 @@
25422601 nonstopux*) version_type=nonstopux ;;
25432602 *)
25442603 if test "$lt_cv_prog_gnu_ld" = yes; then
2545- version_type=linux
2604+ version_type=linux # correct to gnu/linux during the next big refactor
25462605 else
25472606 version_type=irix
25482607 fi ;;
@@ -2579,9 +2638,9 @@
25792638 dynamic_linker=no
25802639 ;;
25812640
2582-# This must be Linux ELF.
2641+# This must be glibc/ELF.
25832642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2584- version_type=linux
2643+ version_type=linux # correct to gnu/linux during the next big refactor
25852644 need_lib_prefix=no
25862645 need_version=no
25872646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2644,7 +2703,7 @@
26442703 ;;
26452704
26462705 newsos6)
2647- version_type=linux
2706+ version_type=linux # correct to gnu/linux during the next big refactor
26482707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26492708 shlibpath_var=LD_LIBRARY_PATH
26502709 shlibpath_overrides_runpath=yes
@@ -2713,7 +2772,7 @@
27132772 ;;
27142773
27152774 solaris*)
2716- version_type=linux
2775+ version_type=linux # correct to gnu/linux during the next big refactor
27172776 need_lib_prefix=no
27182777 need_version=no
27192778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2738,7 +2797,7 @@
27382797 ;;
27392798
27402799 sysv4 | sysv4.3*)
2741- version_type=linux
2800+ version_type=linux # correct to gnu/linux during the next big refactor
27422801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27432802 soname_spec='${libname}${release}${shared_ext}$major'
27442803 shlibpath_var=LD_LIBRARY_PATH
@@ -2762,7 +2821,7 @@
27622821
27632822 sysv4*MP*)
27642823 if test -d /usr/nec ;then
2765- version_type=linux
2824+ version_type=linux # correct to gnu/linux during the next big refactor
27662825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27672826 soname_spec='$libname${shared_ext}.$major'
27682827 shlibpath_var=LD_LIBRARY_PATH
@@ -2793,7 +2852,7 @@
27932852
27942853 tpf*)
27952854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2796- version_type=linux
2855+ version_type=linux # correct to gnu/linux during the next big refactor
27972856 need_lib_prefix=no
27982857 need_version=no
27992858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2803,7 +2862,7 @@
28032862 ;;
28042863
28052864 uts4*)
2806- version_type=linux
2865+ version_type=linux # correct to gnu/linux during the next big refactor
28072866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28082867 soname_spec='${libname}${release}${shared_ext}$major'
28092868 shlibpath_var=LD_LIBRARY_PATH
@@ -3225,7 +3284,7 @@
32253284 lt_cv_deplibs_check_method=pass_all
32263285 ;;
32273286
3228-# This must be Linux ELF.
3287+# This must be glibc/ELF.
32293288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
32303289 lt_cv_deplibs_check_method=pass_all
32313290 ;;
@@ -3645,6 +3704,7 @@
36453704 # which start with @ or ?.
36463705 lt_cv_sys_global_symbol_pipe="$AWK ['"\
36473706 " {last_section=section; section=\$ 3};"\
3707+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
36483708 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
36493709 " \$ 0!~/External *\|/{next};"\
36503710 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
@@ -4229,7 +4289,9 @@
42294289 case $cc_basename in
42304290 nvcc*) # Cuda Compiler Driver 2.2
42314291 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4232- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4292+ if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4293+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4294+ fi
42334295 ;;
42344296 esac
42354297 else
@@ -4321,12 +4383,17 @@
43214383 ;;
43224384 *)
43234385 case `$CC -V 2>&1 | sed 5q` in
4324- *Sun\ F* | *Sun*Fortran*)
4386+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
43254387 # Sun Fortran 8.3 passes all unrecognized flags to the linker
43264388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43274389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43284390 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
43294391 ;;
4392+ *Sun\ F* | *Sun*Fortran*)
4393+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4394+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4395+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4396+ ;;
43304397 *Sun\ C*)
43314398 # Sun C 5.9
43324399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
@@ -4333,6 +4400,16 @@
43334400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43344401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43354402 ;;
4403+ *Intel*\ [[CF]]*Compiler*)
4404+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4405+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4406+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4407+ ;;
4408+ *Portland\ Group*)
4409+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4410+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4411+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4412+ ;;
43364413 esac
43374414 ;;
43384415 esac
@@ -4492,7 +4569,9 @@
44924569 ;;
44934570 cygwin* | mingw* | cegcc*)
44944571 case $cc_basename in
4495- cl*) ;;
4572+ cl*)
4573+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4574+ ;;
44964575 *)
44974576 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
44984577 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
@@ -4517,7 +4596,6 @@
45174596 _LT_TAGVAR(hardcode_direct, $1)=no
45184597 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
45194598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4520- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
45214599 _LT_TAGVAR(hardcode_libdir_separator, $1)=
45224600 _LT_TAGVAR(hardcode_minus_L, $1)=no
45234601 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -4768,8 +4846,7 @@
47684846 xlf* | bgf* | bgxlf* | mpixlf*)
47694847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
47704848 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4771- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4772- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4849+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
47734850 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
47744851 if test "x$supports_anon_versioning" = xyes; then
47754852 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
@@ -5064,6 +5141,7 @@
50645141 # The linker will not automatically build a static lib if we build a DLL.
50655142 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
50665143 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5144+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
50675145 _LT_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'
50685146 # Don't use ranlib
50695147 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
@@ -5110,10 +5188,6 @@
51105188 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51115189 ;;
51125190
5113- freebsd1*)
5114- _LT_TAGVAR(ld_shlibs, $1)=no
5115- ;;
5116-
51175191 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
51185192 # support. Future versions do this automatically, but an explicit c++rt0.o
51195193 # does not break anything, and helps significantly (at the cost of a little
@@ -5126,7 +5200,7 @@
51265200 ;;
51275201
51285202 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5129- freebsd2*)
5203+ freebsd2.*)
51305204 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
51315205 _LT_TAGVAR(hardcode_direct, $1)=yes
51325206 _LT_TAGVAR(hardcode_minus_L, $1)=yes
@@ -5165,7 +5239,6 @@
51655239 fi
51665240 if test "$with_gnu_ld" = no; then
51675241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5168- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
51695242 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
51705243 _LT_TAGVAR(hardcode_direct, $1)=yes
51715244 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
@@ -5607,9 +5680,6 @@
56075680 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
56085681 [Flag to hardcode $libdir into a binary during linking.
56095682 This must work even if $libdir does not exist])
5610-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5611- [[If ld is used when linking, flag to hardcode $libdir into a binary
5612- during linking. This must work even if $libdir does not exist]])
56135683 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
56145684 [Whether we need a single "-rpath" flag with a separated argument])
56155685 _LT_TAGDECL([], [hardcode_direct], [0],
@@ -5767,7 +5837,6 @@
57675837 _LT_TAGVAR(hardcode_direct, $1)=no
57685838 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
57695839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5770-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
57715840 _LT_TAGVAR(hardcode_libdir_separator, $1)=
57725841 _LT_TAGVAR(hardcode_minus_L, $1)=no
57735842 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -6137,7 +6206,7 @@
61376206 esac
61386207 ;;
61396208
6140- freebsd[[12]]*)
6209+ freebsd2.*)
61416210 # C++ shared libraries reported to be fairly broken before
61426211 # switch to ELF
61436212 _LT_TAGVAR(ld_shlibs, $1)=no
@@ -6898,6 +6967,11 @@
68986967 }
68996968 };
69006969 _LT_EOF
6970+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6971+package foo
6972+func foo() {
6973+}
6974+_LT_EOF
69016975 ])
69026976
69036977 _lt_libdeps_save_CFLAGS=$CFLAGS
@@ -6904,6 +6978,7 @@
69046978 case "$CC $CFLAGS " in #(
69056979 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
69066980 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6981+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
69076982 esac
69086983
69096984 dnl Parse the compiler output and extract the necessary
@@ -7100,7 +7175,6 @@
71007175 _LT_TAGVAR(hardcode_direct, $1)=no
71017176 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
71027177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7103-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
71047178 _LT_TAGVAR(hardcode_libdir_separator, $1)=
71057179 _LT_TAGVAR(hardcode_minus_L, $1)=no
71067180 _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7233,7 +7307,6 @@
72337307 _LT_TAGVAR(hardcode_direct, $1)=no
72347308 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
72357309 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7236-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
72377310 _LT_TAGVAR(hardcode_libdir_separator, $1)=
72387311 _LT_TAGVAR(hardcode_minus_L, $1)=no
72397312 _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7420,6 +7493,77 @@
74207493 ])# _LT_LANG_GCJ_CONFIG
74217494
74227495
7496+# _LT_LANG_GO_CONFIG([TAG])
7497+# --------------------------
7498+# Ensure that the configuration variables for the GNU Go compiler
7499+# are suitably defined. These variables are subsequently used by _LT_CONFIG
7500+# to write the compiler configuration to `libtool'.
7501+m4_defun([_LT_LANG_GO_CONFIG],
7502+[AC_REQUIRE([LT_PROG_GO])dnl
7503+AC_LANG_SAVE
7504+
7505+# Source file extension for Go test sources.
7506+ac_ext=go
7507+
7508+# Object file extension for compiled Go test sources.
7509+objext=o
7510+_LT_TAGVAR(objext, $1)=$objext
7511+
7512+# Code to be used in simple compile tests
7513+lt_simple_compile_test_code="package main; func main() { }"
7514+
7515+# Code to be used in simple link tests
7516+lt_simple_link_test_code='package main; func main() { }'
7517+
7518+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7519+_LT_TAG_COMPILER
7520+
7521+# save warnings/boilerplate of simple test code
7522+_LT_COMPILER_BOILERPLATE
7523+_LT_LINKER_BOILERPLATE
7524+
7525+# Allow CC to be a program name with arguments.
7526+lt_save_CC=$CC
7527+lt_save_CFLAGS=$CFLAGS
7528+lt_save_GCC=$GCC
7529+GCC=yes
7530+CC=${GOC-"gccgo"}
7531+CFLAGS=$GOFLAGS
7532+compiler=$CC
7533+_LT_TAGVAR(compiler, $1)=$CC
7534+_LT_TAGVAR(LD, $1)="$LD"
7535+_LT_CC_BASENAME([$compiler])
7536+
7537+# Go did not exist at the time GCC didn't implicitly link libc in.
7538+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7539+
7540+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7541+_LT_TAGVAR(reload_flag, $1)=$reload_flag
7542+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7543+
7544+## CAVEAT EMPTOR:
7545+## There is no encapsulation within the following macros, do not change
7546+## the running order or otherwise move them around unless you know exactly
7547+## what you are doing...
7548+if test -n "$compiler"; then
7549+ _LT_COMPILER_NO_RTTI($1)
7550+ _LT_COMPILER_PIC($1)
7551+ _LT_COMPILER_C_O($1)
7552+ _LT_COMPILER_FILE_LOCKS($1)
7553+ _LT_LINKER_SHLIBS($1)
7554+ _LT_LINKER_HARDCODE_LIBPATH($1)
7555+
7556+ _LT_CONFIG($1)
7557+fi
7558+
7559+AC_LANG_RESTORE
7560+
7561+GCC=$lt_save_GCC
7562+CC=$lt_save_CC
7563+CFLAGS=$lt_save_CFLAGS
7564+])# _LT_LANG_GO_CONFIG
7565+
7566+
74237567 # _LT_LANG_RC_CONFIG([TAG])
74247568 # -------------------------
74257569 # Ensure that the configuration variables for the Windows resource compiler
@@ -7489,6 +7633,13 @@
74897633 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
74907634
74917635
7636+# LT_PROG_GO
7637+# ----------
7638+AC_DEFUN([LT_PROG_GO],
7639+[AC_CHECK_TOOL(GOC, gccgo,)
7640+])
7641+
7642+
74927643 # LT_PROG_RC
74937644 # ----------
74947645 AC_DEFUN([LT_PROG_RC],
--- atque/trunk/atque/m4/ltversion.m4 (revision 517)
+++ atque/trunk/atque/m4/ltversion.m4 (revision 518)
@@ -9,15 +9,15 @@
99
1010 # @configure_input@
1111
12-# serial 3294 ltversion.m4
12+# serial 3337 ltversion.m4
1313 # This file is part of GNU Libtool
1414
15-m4_define([LT_PACKAGE_VERSION], [2.4])
16-m4_define([LT_PACKAGE_REVISION], [1.3294])
15+m4_define([LT_PACKAGE_VERSION], [2.4.2])
16+m4_define([LT_PACKAGE_REVISION], [1.3337])
1717
1818 AC_DEFUN([LTVERSION_VERSION],
19-[macro_version='2.4'
20-macro_revision='1.3294'
19+[macro_version='2.4.2'
20+macro_revision='1.3337'
2121 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2222 _LT_DECL(, macro_revision, 0)
2323 ])
--- atque/trunk/atque/m4/ax_boost_base.m4 (revision 517)
+++ atque/trunk/atque/m4/ax_boost_base.m4 (revision 518)
@@ -1,10 +1,10 @@
11 # ===========================================================================
2-# http://autoconf-archive.cryp.to/ax_boost_base.html
2+# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
33 # ===========================================================================
44 #
55 # SYNOPSIS
66 #
7-# AX_BOOST_BASE([MINIMUM-VERSION])
7+# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
88 #
99 # DESCRIPTION
1010 #
@@ -23,32 +23,36 @@
2323 #
2424 # HAVE_BOOST
2525 #
26-# LAST MODIFICATION
26+# LICENSE
2727 #
28-# 2008-04-12
29-#
30-# COPYLEFT
31-#
3228 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
29+# Copyright (c) 2009 Peter Adolphs
3330 #
3431 # Copying and distribution of this file, with or without modification, are
3532 # permitted in any medium without royalty provided the copyright notice
36-# and this notice are preserved.
33+# and this notice are preserved. This file is offered as-is, without any
34+# warranty.
3735
36+#serial 20
37+
3838 AC_DEFUN([AX_BOOST_BASE],
3939 [
4040 AC_ARG_WITH([boost],
41- AS_HELP_STRING([--with-boost@<:@=DIR@:>@], [use boost (default is yes) - it is possible to specify the root directory for boost (optional)]),
42- [
41+ [AS_HELP_STRING([--with-boost@<:@=ARG@:>@],
42+ [use Boost library from a standard location (ARG=yes),
43+ from the specified location (ARG=<path>),
44+ or disable it (ARG=no)
45+ @<:@ARG=yes@:>@ ])],
46+ [
4347 if test "$withval" = "no"; then
44- want_boost="no"
48+ want_boost="no"
4549 elif test "$withval" = "yes"; then
4650 want_boost="yes"
4751 ac_boost_path=""
4852 else
49- want_boost="yes"
53+ want_boost="yes"
5054 ac_boost_path="$withval"
51- fi
55+ fi
5256 ],
5357 [want_boost="yes"])
5458
@@ -55,9 +59,9 @@
5559
5660 AC_ARG_WITH([boost-libdir],
5761 AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
58- [Force given directory for boost libraries. Note that this will overwrite library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
62+ [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
5963 [
60- if test -d $withval
64+ if test -d "$withval"
6165 then
6266 ac_boost_lib_path="$withval"
6367 else
@@ -68,34 +72,53 @@
6872 )
6973
7074 if test "x$want_boost" = "xyes"; then
71- boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
72- boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
73- boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
74- boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
75- boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
76- if test "x$boost_lib_version_req_sub_minor" = "x" ; then
77- boost_lib_version_req_sub_minor="0"
78- fi
79- WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
80- AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)
81- succeeded=no
75+ boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
76+ boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
77+ boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
78+ boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
79+ boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
80+ if test "x$boost_lib_version_req_sub_minor" = "x" ; then
81+ boost_lib_version_req_sub_minor="0"
82+ fi
83+ WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
84+ AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)
85+ succeeded=no
8286
83- dnl first we check the system location for boost libraries
84- dnl this location ist chosen if boost libraries are installed with the --layout=system option
85- dnl or if you install boost with RPM
86- if test "$ac_boost_path" != ""; then
87- BOOST_LDFLAGS="-L$ac_boost_path/lib"
88- BOOST_CPPFLAGS="-I$ac_boost_path/include"
89- else
90- for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
91- if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
92- BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
93- BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
94- break;
95- fi
96- done
97- fi
87+ dnl On 64-bit systems check for system libraries in both lib64 and lib.
88+ dnl The former is specified by FHS, but e.g. Debian does not adhere to
89+ dnl this (as it rises problems for generic multi-arch support).
90+ dnl The last entry in the list is chosen by default when no libraries
91+ dnl are found, e.g. when only header-only libraries are installed!
92+ libsubdirs="lib"
93+ ax_arch=`uname -m`
94+ if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
95+ libsubdirs="lib64 lib lib64"
96+ fi
9897
98+ dnl first we check the system location for boost libraries
99+ dnl this location ist chosen if boost libraries are installed with the --layout=system option
100+ dnl or if you install boost with RPM
101+ if test "$ac_boost_path" != ""; then
102+ BOOST_CPPFLAGS="-I$ac_boost_path/include"
103+ for ac_boost_path_tmp in $libsubdirs; do
104+ if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
105+ BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
106+ break
107+ fi
108+ done
109+ elif test "$cross_compiling" != yes; then
110+ for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
111+ if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
112+ for libsubdir in $libsubdirs ; do
113+ if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
114+ done
115+ BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
116+ BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
117+ break;
118+ fi
119+ done
120+ fi
121+
99122 dnl overwrite ld flags if we have required special directory with
100123 dnl --with-boost-libdir parameter
101124 if test "$ac_boost_lib_path" != ""; then
@@ -102,122 +125,134 @@
102125 BOOST_LDFLAGS="-L$ac_boost_lib_path"
103126 fi
104127
105- CPPFLAGS_SAVED="$CPPFLAGS"
106- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
107- export CPPFLAGS
128+ CPPFLAGS_SAVED="$CPPFLAGS"
129+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
130+ export CPPFLAGS
108131
109- LDFLAGS_SAVED="$LDFLAGS"
110- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
111- export LDFLAGS
132+ LDFLAGS_SAVED="$LDFLAGS"
133+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
134+ export LDFLAGS
112135
113- AC_LANG_PUSH(C++)
114- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
115- @%:@include <boost/version.hpp>
116- ]], [[
117- #if BOOST_VERSION >= $WANT_BOOST_VERSION
118- // Everything is okay
119- #else
120- # error Boost version is too old
121- #endif
122- ]])],[
136+ AC_REQUIRE([AC_PROG_CXX])
137+ AC_LANG_PUSH(C++)
138+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
139+ @%:@include <boost/version.hpp>
140+ ]], [[
141+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
142+ // Everything is okay
143+ #else
144+ # error Boost version is too old
145+ #endif
146+ ]])],[
123147 AC_MSG_RESULT(yes)
124- succeeded=yes
125- found_system=yes
126- ],[
127- ])
128- AC_LANG_POP([C++])
148+ succeeded=yes
149+ found_system=yes
150+ ],[
151+ ])
152+ AC_LANG_POP([C++])
129153
130154
131155
132- dnl if we found no boost with system layout we search for boost libraries
133- dnl built and installed without the --layout=system option or for a staged(not installed) version
134- if test "x$succeeded" != "xyes"; then
135- _version=0
136- if test "$ac_boost_path" != ""; then
137- if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
138- for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
139- _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
140- V_CHECK=`expr $_version_tmp \> $_version`
141- if test "$V_CHECK" = "1" ; then
142- _version=$_version_tmp
143- fi
144- VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
145- BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
146- done
147- fi
148- else
149- for ac_boost_path in /usr /usr/local /opt /opt/local ; do
150- if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
151- for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
152- _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
153- V_CHECK=`expr $_version_tmp \> $_version`
154- if test "$V_CHECK" = "1" ; then
155- _version=$_version_tmp
156- best_path=$ac_boost_path
157- fi
158- done
159- fi
160- done
156+ dnl if we found no boost with system layout we search for boost libraries
157+ dnl built and installed without the --layout=system option or for a staged(not installed) version
158+ if test "x$succeeded" != "xyes"; then
159+ _version=0
160+ if test "$ac_boost_path" != ""; then
161+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
162+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
163+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
164+ V_CHECK=`expr $_version_tmp \> $_version`
165+ if test "$V_CHECK" = "1" ; then
166+ _version=$_version_tmp
167+ fi
168+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
169+ BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
170+ done
171+ fi
172+ else
173+ if test "$cross_compiling" != yes; then
174+ for ac_boost_path in /usr /usr/local /opt /opt/local ; do
175+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
176+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
177+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
178+ V_CHECK=`expr $_version_tmp \> $_version`
179+ if test "$V_CHECK" = "1" ; then
180+ _version=$_version_tmp
181+ best_path=$ac_boost_path
182+ fi
183+ done
184+ fi
185+ done
161186
162- VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
163- BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
164- if test "$ac_boost_lib_path" = ""
165- then
166- BOOST_LDFLAGS="-L$best_path/lib"
187+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
188+ BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
189+ if test "$ac_boost_lib_path" = ""; then
190+ for libsubdir in $libsubdirs ; do
191+ if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
192+ done
193+ BOOST_LDFLAGS="-L$best_path/$libsubdir"
194+ fi
167195 fi
168196
169- if test "x$BOOST_ROOT" != "x"; then
170- if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
171- version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
172- stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
173- stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
174- V_CHECK=`expr $stage_version_shorten \>\= $_version`
197+ if test "x$BOOST_ROOT" != "x"; then
198+ for libsubdir in $libsubdirs ; do
199+ if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
200+ done
201+ if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
202+ version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
203+ stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
204+ stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
205+ V_CHECK=`expr $stage_version_shorten \>\= $_version`
175206 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
176- AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
177- BOOST_CPPFLAGS="-I$BOOST_ROOT"
178- BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
179- fi
180- fi
181- fi
182- fi
207+ AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
208+ BOOST_CPPFLAGS="-I$BOOST_ROOT"
209+ BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
210+ fi
211+ fi
212+ fi
213+ fi
183214
184- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
185- export CPPFLAGS
186- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
187- export LDFLAGS
215+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
216+ export CPPFLAGS
217+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
218+ export LDFLAGS
188219
189- AC_LANG_PUSH(C++)
190- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
191- @%:@include <boost/version.hpp>
192- ]], [[
193- #if BOOST_VERSION >= $WANT_BOOST_VERSION
194- // Everything is okay
195- #else
196- # error Boost version is too old
197- #endif
198- ]])],[
199- AC_MSG_RESULT(yes)
200- succeeded=yes
201- found_system=yes
202- ],[
203- ])
204- AC_LANG_POP([C++])
205- fi
220+ AC_LANG_PUSH(C++)
221+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
222+ @%:@include <boost/version.hpp>
223+ ]], [[
224+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
225+ // Everything is okay
226+ #else
227+ # error Boost version is too old
228+ #endif
229+ ]])],[
230+ AC_MSG_RESULT(yes)
231+ succeeded=yes
232+ found_system=yes
233+ ],[
234+ ])
235+ AC_LANG_POP([C++])
236+ fi
206237
207- if test "$succeeded" != "yes" ; then
208- if test "$_version" = "0" ; then
209- AC_MSG_ERROR([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
210- else
211- AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
212- fi
213- else
214- AC_SUBST(BOOST_CPPFLAGS)
215- AC_SUBST(BOOST_LDFLAGS)
216- AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
217- fi
238+ if test "$succeeded" != "yes" ; then
239+ if test "$_version" = "0" ; then
240+ AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
241+ else
242+ AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
243+ fi
244+ # execute ACTION-IF-NOT-FOUND (if present):
245+ ifelse([$3], , :, [$3])
246+ else
247+ AC_SUBST(BOOST_CPPFLAGS)
248+ AC_SUBST(BOOST_LDFLAGS)
249+ AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
250+ # execute ACTION-IF-FOUND (if present):
251+ ifelse([$2], , :, [$2])
252+ fi
218253
219- CPPFLAGS="$CPPFLAGS_SAVED"
220- LDFLAGS="$LDFLAGS_SAVED"
254+ CPPFLAGS="$CPPFLAGS_SAVED"
255+ LDFLAGS="$LDFLAGS_SAVED"
221256 fi
222257
223258 ])
--- atque/trunk/atque/m4/wxwin.m4 (revision 517)
+++ atque/trunk/atque/m4/wxwin.m4 (revision 518)
@@ -1,366 +1,1062 @@
1-dnl ---------------------------------------------------------------------------
2-dnl Macros for wxWidgets detection. Typically used in configure.in as:
3-dnl
4-dnl AC_ARG_ENABLE(...)
5-dnl AC_ARG_WITH(...)
6-dnl ...
7-dnl AM_OPTIONS_WXCONFIG
8-dnl ...
9-dnl ...
10-dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
11-dnl if test "$wxWin" != 1; then
12-dnl AC_MSG_ERROR([
13-dnl wxWidgets must be installed on your system
14-dnl but wx-config script couldn't be found.
15-dnl
16-dnl Please check that wx-config is in path, the directory
17-dnl where wxWidgets libraries are installed (returned by
18-dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
19-dnl equivalent variable and wxWidgets version is 2.3.4 or above.
20-dnl ])
21-dnl fi
22-dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
23-dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
24-dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
25-dnl
26-dnl LIBS="$LIBS $WX_LIBS"
27-dnl ---------------------------------------------------------------------------
28-
29-dnl ---------------------------------------------------------------------------
30-dnl AM_OPTIONS_WXCONFIG
31-dnl
32-dnl adds support for --wx-prefix, --wx-exec-prefix, --with-wxdir and
33-dnl --wx-config command line options
34-dnl ---------------------------------------------------------------------------
35-
36-AC_DEFUN([AM_OPTIONS_WXCONFIG],
37-[
38- AC_ARG_WITH(wxdir,
39- [ --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH],
40- [ wx_config_name="$withval/wx-config"
41- wx_config_args="--inplace"])
42- AC_ARG_WITH(wx-config,
43- [ --with-wx-config=CONFIG wx-config script to use (optional)],
44- wx_config_name="$withval" )
45- AC_ARG_WITH(wx-prefix,
46- [ --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)],
47- wx_config_prefix="$withval", wx_config_prefix="")
48- AC_ARG_WITH(wx-exec-prefix,
49- [ --with-wx-exec-prefix=PREFIX
50- Exec prefix where wxWidgets is installed (optional)],
51- wx_config_exec_prefix="$withval", wx_config_exec_prefix="")
52-])
53-
54-dnl Helper macro for checking if wx version is at least $1.$2.$3, set's
55-dnl wx_ver_ok=yes if it is:
56-AC_DEFUN([_WX_PRIVATE_CHECK_VERSION],
57-[
58- wx_ver_ok=""
59- if test "x$WX_VERSION" != x ; then
60- if test $wx_config_major_version -gt $1; then
61- wx_ver_ok=yes
62- else
63- if test $wx_config_major_version -eq $1; then
64- if test $wx_config_minor_version -gt $2; then
65- wx_ver_ok=yes
66- else
67- if test $wx_config_minor_version -eq $2; then
68- if test $wx_config_micro_version -ge $3; then
69- wx_ver_ok=yes
70- fi
71- fi
72- fi
73- fi
74- fi
75- fi
76-])
77-
78-dnl ---------------------------------------------------------------------------
79-dnl AM_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
80-dnl [, WX-LIBS [, ADDITIONAL-WX-CONFIG-FLAGS]]]])
81-dnl
82-dnl Test for wxWidgets, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATIC
83-dnl (the latter is for static linking against wxWidgets). Set WX_CONFIG_NAME
84-dnl environment variable to override the default name of the wx-config script
85-dnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in this
86-dnl case the macro won't even waste time on tests for its existence.
87-dnl
88-dnl Optional WX-LIBS argument contains comma- or space-separated list of
89-dnl wxWidgets libraries to link against (it may include contrib libraries). If
90-dnl it is not specified then WX_LIBS and WX_LIBS_STATIC will contain flags to
91-dnl link with all of the core wxWidgets libraries.
92-dnl
93-dnl Optional ADDITIONAL-WX-CONFIG-FLAGS argument is appended to wx-config
94-dnl invocation command in present. It can be used to fine-tune lookup of
95-dnl best wxWidgets build available.
96-dnl
97-dnl Example use:
98-dnl AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], [html,core,net]
99-dnl [--unicode --debug])
100-dnl ---------------------------------------------------------------------------
101-
102-dnl
103-dnl Get the cflags and libraries from the wx-config script
104-dnl
105-AC_DEFUN([AM_PATH_WXCONFIG],
106-[
107- dnl do we have wx-config name: it can be wx-config or wxd-config or ...
108- if test x${WX_CONFIG_NAME+set} != xset ; then
109- WX_CONFIG_NAME=wx-config
110- fi
111-
112- if test "x$wx_config_name" != x ; then
113- WX_CONFIG_NAME="$wx_config_name"
114- fi
115-
116- dnl deal with optional prefixes
117- if test x$wx_config_exec_prefix != x ; then
118- wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
119- WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
120- fi
121- if test x$wx_config_prefix != x ; then
122- wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
123- WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
124- fi
125- if test "$cross_compiling" = "yes"; then
126- wx_config_args="$wx_config_args --host=$host_alias"
127- fi
128-
129- dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
130- if test -x "$WX_CONFIG_NAME" ; then
131- AC_MSG_CHECKING(for wx-config)
132- WX_CONFIG_PATH="$WX_CONFIG_NAME"
133- AC_MSG_RESULT($WX_CONFIG_PATH)
134- else
135- AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")
136- fi
137-
138- if test "$WX_CONFIG_PATH" != "no" ; then
139- WX_VERSION=""
140-
141- min_wx_version=ifelse([$1], ,2.2.1,$1)
142- if test -z "$5" ; then
143- AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version])
144- else
145- AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version ($5)])
146- fi
147-
148- WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $5 $4"
149-
150- WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
151- wx_config_major_version=`echo $WX_VERSION | \
152- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
153- wx_config_minor_version=`echo $WX_VERSION | \
154- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
155- wx_config_micro_version=`echo $WX_VERSION | \
156- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
157-
158- wx_requested_major_version=`echo $min_wx_version | \
159- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
160- wx_requested_minor_version=`echo $min_wx_version | \
161- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
162- wx_requested_micro_version=`echo $min_wx_version | \
163- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
164-
165- _WX_PRIVATE_CHECK_VERSION([$wx_requested_major_version],
166- [$wx_requested_minor_version],
167- [$wx_requested_micro_version])
168-
169- if test -n "$wx_ver_ok"; then
170-
171- AC_MSG_RESULT(yes (version $WX_VERSION))
172- WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
173-
174- dnl is this even still appropriate? --static is a real option now
175- dnl and WX_CONFIG_WITH_ARGS is likely to contain it if that is
176- dnl what the user actually wants, making this redundant at best.
177- dnl For now keep it in case anyone actually used it in the past.
178- AC_MSG_CHECKING([for wxWidgets static library])
179- WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
180- if test "x$WX_LIBS_STATIC" = "x"; then
181- AC_MSG_RESULT(no)
182- else
183- AC_MSG_RESULT(yes)
184- fi
185-
186- dnl starting with version 2.2.6 wx-config has --cppflags argument
187- wx_has_cppflags=""
188- if test $wx_config_major_version -gt 2; then
189- wx_has_cppflags=yes
190- else
191- if test $wx_config_major_version -eq 2; then
192- if test $wx_config_minor_version -gt 2; then
193- wx_has_cppflags=yes
194- else
195- if test $wx_config_minor_version -eq 2; then
196- if test $wx_config_micro_version -ge 6; then
197- wx_has_cppflags=yes
198- fi
199- fi
200- fi
201- fi
202- fi
203-
204- dnl starting with version 2.7.0 wx-config has --rescomp option
205- wx_has_rescomp=""
206- if test $wx_config_major_version -gt 2; then
207- wx_has_rescomp=yes
208- else
209- if test $wx_config_major_version -eq 2; then
210- if test $wx_config_minor_version -ge 7; then
211- wx_has_rescomp=yes
212- fi
213- fi
214- fi
215- if test "x$wx_has_rescomp" = x ; then
216- dnl cannot give any useful info for resource compiler
217- WX_RESCOMP=
218- else
219- WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
220- fi
221-
222- if test "x$wx_has_cppflags" = x ; then
223- dnl no choice but to define all flags like CFLAGS
224- WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
225- WX_CPPFLAGS=$WX_CFLAGS
226- WX_CXXFLAGS=$WX_CFLAGS
227-
228- WX_CFLAGS_ONLY=$WX_CFLAGS
229- WX_CXXFLAGS_ONLY=$WX_CFLAGS
230- else
231- dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS
232- WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
233- WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
234- WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
235-
236- WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
237- WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
238- fi
239-
240- ifelse([$2], , :, [$2])
241-
242- else
243-
244- if test "x$WX_VERSION" = x; then
245- dnl no wx-config at all
246- AC_MSG_RESULT(no)
247- else
248- AC_MSG_RESULT(no (version $WX_VERSION is not new enough))
249- fi
250-
251- WX_CFLAGS=""
252- WX_CPPFLAGS=""
253- WX_CXXFLAGS=""
254- WX_LIBS=""
255- WX_LIBS_STATIC=""
256- WX_RESCOMP=""
257- ifelse([$3], , :, [$3])
258-
259- fi
260- else
261-
262- WX_CFLAGS=""
263- WX_CPPFLAGS=""
264- WX_CXXFLAGS=""
265- WX_LIBS=""
266- WX_LIBS_STATIC=""
267- WX_RESCOMP=""
268-
269- ifelse([$3], , :, [$3])
270-
271- fi
272-
273- AC_SUBST(WX_CPPFLAGS)
274- AC_SUBST(WX_CFLAGS)
275- AC_SUBST(WX_CXXFLAGS)
276- AC_SUBST(WX_CFLAGS_ONLY)
277- AC_SUBST(WX_CXXFLAGS_ONLY)
278- AC_SUBST(WX_LIBS)
279- AC_SUBST(WX_LIBS_STATIC)
280- AC_SUBST(WX_VERSION)
281- AC_SUBST(WX_RESCOMP)
282-])
283-
284-dnl ---------------------------------------------------------------------------
285-dnl Get information on the wxrc program for making C++, Python and xrs
286-dnl resource files.
287-dnl
288-dnl AC_ARG_ENABLE(...)
289-dnl AC_ARG_WITH(...)
290-dnl ...
291-dnl AM_OPTIONS_WXCONFIG
292-dnl ...
293-dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
294-dnl if test "$wxWin" != 1; then
295-dnl AC_MSG_ERROR([
296-dnl wxWidgets must be installed on your system
297-dnl but wx-config script couldn't be found.
298-dnl
299-dnl Please check that wx-config is in path, the directory
300-dnl where wxWidgets libraries are installed (returned by
301-dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
302-dnl equivalent variable and wxWidgets version is 2.6.0 or above.
303-dnl ])
304-dnl fi
305-dnl
306-dnl AM_PATH_WXRC([HAVE_WXRC=1], [HAVE_WXRC=0])
307-dnl if test "x$HAVE_WXRC" != x1; then
308-dnl AC_MSG_ERROR([
309-dnl The wxrc program was not installed or not found.
310-dnl
311-dnl Please check the wxWidgets installation.
312-dnl ])
313-dnl fi
314-dnl
315-dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
316-dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
317-dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
318-dnl
319-dnl LDFLAGS="$LDFLAGS $WX_LIBS"
320-dnl ---------------------------------------------------------------------------
321-
322-
323-
324-dnl ---------------------------------------------------------------------------
325-dnl AM_PATH_WXRC([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
326-dnl
327-dnl Test for wxWidgets' wxrc program for creating either C++, Python or XRS
328-dnl resources. The variable WXRC will be set and substituted in the configure
329-dnl script and Makefiles.
330-dnl
331-dnl Example use:
332-dnl AM_PATH_WXRC([wxrc=1], [wxrc=0])
333-dnl ---------------------------------------------------------------------------
334-
335-dnl
336-dnl wxrc program from the wx-config script
337-dnl
338-AC_DEFUN([AM_PATH_WXRC],
339-[
340- AC_ARG_VAR([WXRC], [Path to wxWidget's wxrc resource compiler])
341-
342- if test "x$WX_CONFIG_NAME" = x; then
343- AC_MSG_ERROR([The wxrc tests must run after wxWidgets test.])
344- else
345-
346- AC_MSG_CHECKING([for wxrc])
347-
348- if test "x$WXRC" = x ; then
349- dnl wx-config --utility is a new addition to wxWidgets:
350- _WX_PRIVATE_CHECK_VERSION(2,5,3)
351- if test -n "$wx_ver_ok"; then
352- WXRC=`$WX_CONFIG_WITH_ARGS --utility=wxrc`
353- fi
354- fi
355-
356- if test "x$WXRC" = x ; then
357- AC_MSG_RESULT([not found])
358- ifelse([$2], , :, [$2])
359- else
360- AC_MSG_RESULT([$WXRC])
361- ifelse([$1], , :, [$1])
362- fi
363-
364- AC_SUBST(WXRC)
365- fi
366-])
1+dnl ---------------------------------------------------------------------------
2+dnl Author: wxWidgets development team,
3+dnl Francesco Montorsi,
4+dnl Bob McCown (Mac-testing)
5+dnl Creation date: 24/11/2001
6+dnl RCS-ID: $Id$
7+dnl ---------------------------------------------------------------------------
8+
9+dnl ===========================================================================
10+dnl Table of Contents of this macro file:
11+dnl -------------------------------------
12+dnl
13+dnl SECTION A: wxWidgets main macros
14+dnl - WX_CONFIG_OPTIONS
15+dnl - WX_CONFIG_CHECK
16+dnl - WXRC_CHECK
17+dnl - WX_STANDARD_OPTIONS
18+dnl - WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
19+dnl - WX_DETECT_STANDARD_OPTION_VALUES
20+dnl
21+dnl SECTION B: wxWidgets-related utilities
22+dnl - WX_LIKE_LIBNAME
23+dnl - WX_ARG_ENABLE_YESNOAUTO
24+dnl - WX_ARG_WITH_YESNOAUTO
25+dnl
26+dnl SECTION C: messages to the user
27+dnl - WX_STANDARD_OPTIONS_SUMMARY_MSG
28+dnl - WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN
29+dnl - WX_STANDARD_OPTIONS_SUMMARY_MSG_END
30+dnl - WX_BOOLOPT_SUMMARY
31+dnl
32+dnl The special "WX_DEBUG_CONFIGURE" variable can be set to 1 to enable extra
33+dnl debug output on stdout from these macros.
34+dnl ===========================================================================
35+
36+
37+dnl ---------------------------------------------------------------------------
38+dnl Macros for wxWidgets detection. Typically used in configure.in as:
39+dnl
40+dnl AC_ARG_ENABLE(...)
41+dnl AC_ARG_WITH(...)
42+dnl ...
43+dnl WX_CONFIG_OPTIONS
44+dnl ...
45+dnl ...
46+dnl WX_CONFIG_CHECK([2.6.0], [wxWin=1])
47+dnl if test "$wxWin" != 1; then
48+dnl AC_MSG_ERROR([
49+dnl wxWidgets must be installed on your system
50+dnl but wx-config script couldn't be found.
51+dnl
52+dnl Please check that wx-config is in path, the directory
53+dnl where wxWidgets libraries are installed (returned by
54+dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
55+dnl equivalent variable and wxWidgets version is 2.3.4 or above.
56+dnl ])
57+dnl fi
58+dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
59+dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
60+dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
61+dnl
62+dnl LIBS="$LIBS $WX_LIBS"
63+dnl
64+dnl If you want to support standard --enable-debug/unicode/shared options, you
65+dnl may do the following:
66+dnl
67+dnl ...
68+dnl AC_CANONICAL_SYSTEM
69+dnl
70+dnl # define configure options
71+dnl WX_CONFIG_OPTIONS
72+dnl WX_STANDARD_OPTIONS([debug,unicode,shared,toolkit,wxshared])
73+dnl
74+dnl # basic configure checks
75+dnl ...
76+dnl
77+dnl # we want to always have DEBUG==WX_DEBUG and UNICODE==WX_UNICODE
78+dnl WX_DEBUG=$DEBUG
79+dnl WX_UNICODE=$UNICODE
80+dnl
81+dnl WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
82+dnl WX_CONFIG_CHECK([2.8.0], [wxWin=1],,[html,core,net,base],[$WXCONFIG_FLAGS])
83+dnl WX_DETECT_STANDARD_OPTION_VALUES
84+dnl
85+dnl # write the output files
86+dnl AC_CONFIG_FILES([Makefile ...])
87+dnl AC_OUTPUT
88+dnl
89+dnl # optional: just to show a message to the user
90+dnl WX_STANDARD_OPTIONS_SUMMARY_MSG
91+dnl
92+dnl ---------------------------------------------------------------------------
93+
94+
95+dnl ---------------------------------------------------------------------------
96+dnl WX_CONFIG_OPTIONS
97+dnl
98+dnl adds support for --wx-prefix, --wx-exec-prefix, --with-wxdir and
99+dnl --wx-config command line options
100+dnl ---------------------------------------------------------------------------
101+
102+AC_DEFUN([WX_CONFIG_OPTIONS],
103+[
104+ AC_ARG_WITH(wxdir,
105+ [ --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH],
106+ [ wx_config_name="$withval/wx-config"
107+ wx_config_args="--inplace"])
108+ AC_ARG_WITH(wx-config,
109+ [ --with-wx-config=CONFIG wx-config script to use (optional)],
110+ wx_config_name="$withval" )
111+ AC_ARG_WITH(wx-prefix,
112+ [ --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)],
113+ wx_config_prefix="$withval", wx_config_prefix="")
114+ AC_ARG_WITH(wx-exec-prefix,
115+ [ --with-wx-exec-prefix=PREFIX
116+ Exec prefix where wxWidgets is installed (optional)],
117+ wx_config_exec_prefix="$withval", wx_config_exec_prefix="")
118+])
119+
120+dnl Helper macro for checking if wx version is at least $1.$2.$3, set's
121+dnl wx_ver_ok=yes if it is:
122+AC_DEFUN([_WX_PRIVATE_CHECK_VERSION],
123+[
124+ wx_ver_ok=""
125+ if test "x$WX_VERSION" != x ; then
126+ if test $wx_config_major_version -gt $1; then
127+ wx_ver_ok=yes
128+ else
129+ if test $wx_config_major_version -eq $1; then
130+ if test $wx_config_minor_version -gt $2; then
131+ wx_ver_ok=yes
132+ else
133+ if test $wx_config_minor_version -eq $2; then
134+ if test $wx_config_micro_version -ge $3; then
135+ wx_ver_ok=yes
136+ fi
137+ fi
138+ fi
139+ fi
140+ fi
141+ fi
142+])
143+
144+dnl ---------------------------------------------------------------------------
145+dnl WX_CONFIG_CHECK(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
146+dnl [, WX-LIBS [, ADDITIONAL-WX-CONFIG-FLAGS]]]])
147+dnl
148+dnl Test for wxWidgets, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATIC
149+dnl (the latter is for static linking against wxWidgets). Set WX_CONFIG_NAME
150+dnl environment variable to override the default name of the wx-config script
151+dnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in this
152+dnl case the macro won't even waste time on tests for its existence.
153+dnl
154+dnl Optional WX-LIBS argument contains comma- or space-separated list of
155+dnl wxWidgets libraries to link against. If it is not specified then WX_LIBS
156+dnl and WX_LIBS_STATIC will contain flags to link with all of the core
157+dnl wxWidgets libraries.
158+dnl
159+dnl Optional ADDITIONAL-WX-CONFIG-FLAGS argument is appended to wx-config
160+dnl invocation command in present. It can be used to fine-tune lookup of
161+dnl best wxWidgets build available.
162+dnl
163+dnl Example use:
164+dnl WX_CONFIG_CHECK([2.6.0], [wxWin=1], [wxWin=0], [html,core,net]
165+dnl [--unicode --debug])
166+dnl ---------------------------------------------------------------------------
167+
168+dnl
169+dnl Get the cflags and libraries from the wx-config script
170+dnl
171+AC_DEFUN([WX_CONFIG_CHECK],
172+[
173+ dnl do we have wx-config name: it can be wx-config or wxd-config or ...
174+ if test x${WX_CONFIG_NAME+set} != xset ; then
175+ WX_CONFIG_NAME=wx-config
176+ fi
177+
178+ if test "x$wx_config_name" != x ; then
179+ WX_CONFIG_NAME="$wx_config_name"
180+ fi
181+
182+ dnl deal with optional prefixes
183+ if test x$wx_config_exec_prefix != x ; then
184+ wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
185+ WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
186+ fi
187+ if test x$wx_config_prefix != x ; then
188+ wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
189+ WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
190+ fi
191+ if test "$cross_compiling" = "yes"; then
192+ wx_config_args="$wx_config_args --host=$host_alias"
193+ fi
194+
195+ dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
196+ if test -x "$WX_CONFIG_NAME" ; then
197+ AC_MSG_CHECKING(for wx-config)
198+ WX_CONFIG_PATH="$WX_CONFIG_NAME"
199+ AC_MSG_RESULT($WX_CONFIG_PATH)
200+ else
201+ AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")
202+ fi
203+
204+ if test "$WX_CONFIG_PATH" != "no" ; then
205+ WX_VERSION=""
206+
207+ min_wx_version=ifelse([$1], ,2.2.1,$1)
208+ if test -z "$5" ; then
209+ AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version])
210+ else
211+ AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version ($5)])
212+ fi
213+
214+ dnl don't add the libraries ($4) to this variable as this would result in
215+ dnl an error when it's used with --version below
216+ WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $5"
217+
218+ WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
219+ wx_config_major_version=`echo $WX_VERSION | \
220+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
221+ wx_config_minor_version=`echo $WX_VERSION | \
222+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
223+ wx_config_micro_version=`echo $WX_VERSION | \
224+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
225+
226+ wx_requested_major_version=`echo $min_wx_version | \
227+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
228+ wx_requested_minor_version=`echo $min_wx_version | \
229+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
230+ wx_requested_micro_version=`echo $min_wx_version | \
231+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
232+
233+ _WX_PRIVATE_CHECK_VERSION([$wx_requested_major_version],
234+ [$wx_requested_minor_version],
235+ [$wx_requested_micro_version])
236+
237+ if test -n "$wx_ver_ok"; then
238+ AC_MSG_RESULT(yes (version $WX_VERSION))
239+ WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs $4`
240+
241+ dnl is this even still appropriate? --static is a real option now
242+ dnl and WX_CONFIG_WITH_ARGS is likely to contain it if that is
243+ dnl what the user actually wants, making this redundant at best.
244+ dnl For now keep it in case anyone actually used it in the past.
245+ AC_MSG_CHECKING([for wxWidgets static library])
246+ WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs $4 2>/dev/null`
247+ if test "x$WX_LIBS_STATIC" = "x"; then
248+ AC_MSG_RESULT(no)
249+ else
250+ AC_MSG_RESULT(yes)
251+ fi
252+
253+ dnl starting with version 2.2.6 wx-config has --cppflags argument
254+ wx_has_cppflags=""
255+ if test $wx_config_major_version -gt 2; then
256+ wx_has_cppflags=yes
257+ else
258+ if test $wx_config_major_version -eq 2; then
259+ if test $wx_config_minor_version -gt 2; then
260+ wx_has_cppflags=yes
261+ else
262+ if test $wx_config_minor_version -eq 2; then
263+ if test $wx_config_micro_version -ge 6; then
264+ wx_has_cppflags=yes
265+ fi
266+ fi
267+ fi
268+ fi
269+ fi
270+
271+ dnl starting with version 2.7.0 wx-config has --rescomp option
272+ wx_has_rescomp=""
273+ if test $wx_config_major_version -gt 2; then
274+ wx_has_rescomp=yes
275+ else
276+ if test $wx_config_major_version -eq 2; then
277+ if test $wx_config_minor_version -ge 7; then
278+ wx_has_rescomp=yes
279+ fi
280+ fi
281+ fi
282+ if test "x$wx_has_rescomp" = x ; then
283+ dnl cannot give any useful info for resource compiler
284+ WX_RESCOMP=
285+ else
286+ WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
287+ fi
288+
289+ if test "x$wx_has_cppflags" = x ; then
290+ dnl no choice but to define all flags like CFLAGS
291+ WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags $4`
292+ WX_CPPFLAGS=$WX_CFLAGS
293+ WX_CXXFLAGS=$WX_CFLAGS
294+
295+ WX_CFLAGS_ONLY=$WX_CFLAGS
296+ WX_CXXFLAGS_ONLY=$WX_CFLAGS
297+ else
298+ dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS
299+ WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags $4`
300+ WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags $4`
301+ WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags $4`
302+
303+ WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
304+ WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
305+ fi
306+
307+ ifelse([$2], , :, [$2])
308+
309+ else
310+
311+ if test "x$WX_VERSION" = x; then
312+ dnl no wx-config at all
313+ AC_MSG_RESULT(no)
314+ else
315+ AC_MSG_RESULT(no (version $WX_VERSION is not new enough))
316+ fi
317+
318+ WX_CFLAGS=""
319+ WX_CPPFLAGS=""
320+ WX_CXXFLAGS=""
321+ WX_LIBS=""
322+ WX_LIBS_STATIC=""
323+ WX_RESCOMP=""
324+
325+ if test ! -z "$5"; then
326+
327+ wx_error_message="
328+ The configuration you asked for $PACKAGE_NAME requires a wxWidgets
329+ build with the following settings:
330+ $5
331+ but such build is not available.
332+
333+ To see the wxWidgets builds available on this system, please use
334+ 'wx-config --list' command. To use the default build, returned by
335+ 'wx-config --selected-config', use the options with their 'auto'
336+ default values."
337+
338+ fi
339+
340+ wx_error_message="
341+ The requested wxWidgets build couldn't be found.
342+ $wx_error_message
343+
344+ If you still get this error, then check that 'wx-config' is
345+ in path, the directory where wxWidgets libraries are installed
346+ (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
347+ or equivalent variable and wxWidgets version is $1 or above."
348+
349+ ifelse([$3], , AC_MSG_ERROR([$wx_error_message]), [$3])
350+
351+ fi
352+ else
353+
354+ WX_CFLAGS=""
355+ WX_CPPFLAGS=""
356+ WX_CXXFLAGS=""
357+ WX_LIBS=""
358+ WX_LIBS_STATIC=""
359+ WX_RESCOMP=""
360+
361+ ifelse([$3], , :, [$3])
362+
363+ fi
364+
365+ AC_SUBST(WX_CPPFLAGS)
366+ AC_SUBST(WX_CFLAGS)
367+ AC_SUBST(WX_CXXFLAGS)
368+ AC_SUBST(WX_CFLAGS_ONLY)
369+ AC_SUBST(WX_CXXFLAGS_ONLY)
370+ AC_SUBST(WX_LIBS)
371+ AC_SUBST(WX_LIBS_STATIC)
372+ AC_SUBST(WX_VERSION)
373+ AC_SUBST(WX_RESCOMP)
374+
375+ dnl need to export also WX_VERSION_MINOR and WX_VERSION_MAJOR symbols
376+ dnl to support wxpresets bakefiles (we export also WX_VERSION_MICRO for completeness):
377+ WX_VERSION_MAJOR="$wx_config_major_version"
378+ WX_VERSION_MINOR="$wx_config_minor_version"
379+ WX_VERSION_MICRO="$wx_config_micro_version"
380+ AC_SUBST(WX_VERSION_MAJOR)
381+ AC_SUBST(WX_VERSION_MINOR)
382+ AC_SUBST(WX_VERSION_MICRO)
383+])
384+
385+dnl ---------------------------------------------------------------------------
386+dnl Get information on the wxrc program for making C++, Python and xrs
387+dnl resource files.
388+dnl
389+dnl AC_ARG_ENABLE(...)
390+dnl AC_ARG_WITH(...)
391+dnl ...
392+dnl WX_CONFIG_OPTIONS
393+dnl ...
394+dnl WX_CONFIG_CHECK(2.6.0, wxWin=1)
395+dnl if test "$wxWin" != 1; then
396+dnl AC_MSG_ERROR([
397+dnl wxWidgets must be installed on your system
398+dnl but wx-config script couldn't be found.
399+dnl
400+dnl Please check that wx-config is in path, the directory
401+dnl where wxWidgets libraries are installed (returned by
402+dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
403+dnl equivalent variable and wxWidgets version is 2.6.0 or above.
404+dnl ])
405+dnl fi
406+dnl
407+dnl WXRC_CHECK([HAVE_WXRC=1], [HAVE_WXRC=0])
408+dnl if test "x$HAVE_WXRC" != x1; then
409+dnl AC_MSG_ERROR([
410+dnl The wxrc program was not installed or not found.
411+dnl
412+dnl Please check the wxWidgets installation.
413+dnl ])
414+dnl fi
415+dnl
416+dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
417+dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
418+dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
419+dnl
420+dnl LDFLAGS="$LDFLAGS $WX_LIBS"
421+dnl ---------------------------------------------------------------------------
422+
423+dnl ---------------------------------------------------------------------------
424+dnl WXRC_CHECK([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
425+dnl
426+dnl Test for wxWidgets' wxrc program for creating either C++, Python or XRS
427+dnl resources. The variable WXRC will be set and substituted in the configure
428+dnl script and Makefiles.
429+dnl
430+dnl Example use:
431+dnl WXRC_CHECK([wxrc=1], [wxrc=0])
432+dnl ---------------------------------------------------------------------------
433+
434+dnl
435+dnl wxrc program from the wx-config script
436+dnl
437+AC_DEFUN([WXRC_CHECK],
438+[
439+ AC_ARG_VAR([WXRC], [Path to wxWidget's wxrc resource compiler])
440+
441+ if test "x$WX_CONFIG_NAME" = x; then
442+ AC_MSG_ERROR([The wxrc tests must run after wxWidgets test.])
443+ else
444+
445+ AC_MSG_CHECKING([for wxrc])
446+
447+ if test "x$WXRC" = x ; then
448+ dnl wx-config --utility is a new addition to wxWidgets:
449+ _WX_PRIVATE_CHECK_VERSION(2,5,3)
450+ if test -n "$wx_ver_ok"; then
451+ WXRC=`$WX_CONFIG_WITH_ARGS --utility=wxrc`
452+ fi
453+ fi
454+
455+ if test "x$WXRC" = x ; then
456+ AC_MSG_RESULT([not found])
457+ ifelse([$2], , :, [$2])
458+ else
459+ AC_MSG_RESULT([$WXRC])
460+ ifelse([$1], , :, [$1])
461+ fi
462+
463+ AC_SUBST(WXRC)
464+ fi
465+])
466+
467+dnl ---------------------------------------------------------------------------
468+dnl WX_LIKE_LIBNAME([output-var] [prefix], [name])
469+dnl
470+dnl Sets the "output-var" variable to the name of a library named with same
471+dnl wxWidgets rule.
472+dnl E.g. for output-var=='lib', name=='test', prefix='mine', sets
473+dnl the $lib variable to:
474+dnl 'mine_gtk2ud_test-2.8'
475+dnl if WX_PORT=gtk2, WX_UNICODE=1, WX_DEBUG=1 and WX_RELEASE=28
476+dnl ---------------------------------------------------------------------------
477+AC_DEFUN([WX_LIKE_LIBNAME],
478+ [
479+ wx_temp="$2""_""$WX_PORT"
480+
481+ dnl add the [u][d] string
482+ if test "$WX_UNICODE" = "1"; then
483+ wx_temp="$wx_temp""u"
484+ fi
485+ if test "$WX_DEBUG" = "1"; then
486+ wx_temp="$wx_temp""d"
487+ fi
488+
489+ dnl complete the name of the lib
490+ wx_temp="$wx_temp""_""$3""-$WX_VERSION_MAJOR.$WX_VERSION_MINOR"
491+
492+ dnl save it in the user's variable
493+ $1=$wx_temp
494+ ])
495+
496+dnl ---------------------------------------------------------------------------
497+dnl WX_ARG_ENABLE_YESNOAUTO/WX_ARG_WITH_YESNOAUTO
498+dnl
499+dnl Two little custom macros which define the ENABLE/WITH configure arguments.
500+dnl Macro arguments:
501+dnl $1 = the name of the --enable / --with feature
502+dnl $2 = the name of the variable associated
503+dnl $3 = the description of that feature
504+dnl $4 = the default value for that feature
505+dnl $5 = additional action to do in case option is given with "yes" value
506+dnl ---------------------------------------------------------------------------
507+AC_DEFUN([WX_ARG_ENABLE_YESNOAUTO],
508+ [AC_ARG_ENABLE($1,
509+ AC_HELP_STRING([--enable-$1], [$3 (default is $4)]),
510+ [], [enableval="$4"])
511+
512+ dnl Show a message to the user about this option
513+ AC_MSG_CHECKING([for the --enable-$1 option])
514+ if test "$enableval" = "yes" ; then
515+ AC_MSG_RESULT([yes])
516+ $2=1
517+ $5
518+ elif test "$enableval" = "no" ; then
519+ AC_MSG_RESULT([no])
520+ $2=0
521+ elif test "$enableval" = "auto" ; then
522+ AC_MSG_RESULT([will be automatically detected])
523+ $2="auto"
524+ else
525+ AC_MSG_ERROR([
526+ Unrecognized option value (allowed values: yes, no, auto)
527+ ])
528+ fi
529+ ])
530+
531+AC_DEFUN([WX_ARG_WITH_YESNOAUTO],
532+ [AC_ARG_WITH($1,
533+ AC_HELP_STRING([--with-$1], [$3 (default is $4)]),
534+ [], [withval="$4"])
535+
536+ dnl Show a message to the user about this option
537+ AC_MSG_CHECKING([for the --with-$1 option])
538+ if test "$withval" = "yes" ; then
539+ AC_MSG_RESULT([yes])
540+ $2=1
541+ $5
542+ dnl NB: by default we don't allow --with-$1=no option
543+ dnl since it does not make much sense !
544+ elif test "$6" = "1" -a "$withval" = "no" ; then
545+ AC_MSG_RESULT([no])
546+ $2=0
547+ elif test "$withval" = "auto" ; then
548+ AC_MSG_RESULT([will be automatically detected])
549+ $2="auto"
550+ else
551+ AC_MSG_ERROR([
552+ Unrecognized option value (allowed values: yes, auto)
553+ ])
554+ fi
555+ ])
556+
557+
558+dnl ---------------------------------------------------------------------------
559+dnl WX_STANDARD_OPTIONS([options-to-add])
560+dnl
561+dnl Adds to the configure script one or more of the following options:
562+dnl --enable-[debug|unicode|shared|wxshared|wxdebug]
563+dnl --with-[gtk|msw|motif|x11|mac|mgl|dfb]
564+dnl --with-wxversion
565+dnl Then checks for their presence and eventually set the DEBUG, UNICODE, SHARED,
566+dnl PORT, WX_SHARED, WX_DEBUG, variables to one of the "yes", "no", "auto" values.
567+dnl
568+dnl Note that e.g. UNICODE != WX_UNICODE; the first is the value of the
569+dnl --enable-unicode option (in boolean format) while the second indicates
570+dnl if wxWidgets was built in Unicode mode (and still is in boolean format).
571+dnl ---------------------------------------------------------------------------
572+AC_DEFUN([WX_STANDARD_OPTIONS],
573+ [
574+
575+ dnl the following lines will expand to WX_ARG_ENABLE_YESNOAUTO calls if and only if
576+ dnl the $1 argument contains respectively the debug,unicode or shared options.
577+
578+ dnl be careful here not to set debug flag if only "wxdebug" was specified
579+ ifelse(regexp([$1], [\bdebug]), [-1],,
580+ [WX_ARG_ENABLE_YESNOAUTO([debug], [DEBUG], [Build in debug mode], [auto])])
581+
582+ ifelse(index([$1], [unicode]), [-1],,
583+ [WX_ARG_ENABLE_YESNOAUTO([unicode], [UNICODE], [Build in Unicode mode], [auto])])
584+
585+ ifelse(regexp([$1], [\bshared]), [-1],,
586+ [WX_ARG_ENABLE_YESNOAUTO([shared], [SHARED], [Build as shared library], [auto])])
587+
588+ dnl WX_ARG_WITH_YESNOAUTO cannot be used for --with-toolkit since it's an option
589+ dnl which must be able to accept the auto|gtk1|gtk2|msw|... values
590+ ifelse(index([$1], [toolkit]), [-1],,
591+ [
592+ AC_ARG_WITH([toolkit],
593+ AC_HELP_STRING([--with-toolkit],
594+ [Build against a specific wxWidgets toolkit (default is auto)]),
595+ [], [withval="auto"])
596+
597+ dnl Show a message to the user about this option
598+ AC_MSG_CHECKING([for the --with-toolkit option])
599+ if test "$withval" = "auto" ; then
600+ AC_MSG_RESULT([will be automatically detected])
601+ TOOLKIT="auto"
602+ else
603+ TOOLKIT="$withval"
604+
605+ dnl PORT must be one of the allowed values
606+ if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
607+ "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
608+ "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
609+ "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" ; then
610+ AC_MSG_ERROR([
611+ Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb)
612+ ])
613+ fi
614+
615+ AC_MSG_RESULT([$TOOLKIT])
616+ fi
617+ ])
618+
619+ dnl ****** IMPORTANT *******
620+ dnl Unlike for the UNICODE setting, you can build your program in
621+ dnl shared mode against a static build of wxWidgets. Thus we have the
622+ dnl following option which allows these mixtures. E.g.
623+ dnl
624+ dnl ./configure --disable-shared --with-wxshared
625+ dnl
626+ dnl will build your library in static mode against the first available
627+ dnl shared build of wxWidgets.
628+ dnl
629+ dnl Note that's not possible to do the viceversa:
630+ dnl
631+ dnl ./configure --enable-shared --without-wxshared
632+ dnl
633+ dnl Doing so you would try to build your library in shared mode against a static
634+ dnl build of wxWidgets. This is not possible (you would mix PIC and non PIC code) !
635+ dnl A check for this combination of options is in WX_DETECT_STANDARD_OPTION_VALUES
636+ dnl (where we know what 'auto' should be expanded to).
637+ dnl
638+ dnl If you try to build something in ANSI mode against a UNICODE build
639+ dnl of wxWidgets or in RELEASE mode against a DEBUG build of wxWidgets,
640+ dnl then at best you'll get ton of linking errors !
641+ dnl ************************
642+
643+ ifelse(index([$1], [wxshared]), [-1],,
644+ [
645+ WX_ARG_WITH_YESNOAUTO(
646+ [wxshared], [WX_SHARED],
647+ [Force building against a shared build of wxWidgets, even if --disable-shared is given],
648+ [auto], [], [1])
649+ ])
650+
651+ dnl Just like for SHARED and WX_SHARED it may happen that some adventurous
652+ dnl peoples will want to mix a wxWidgets release build with a debug build of
653+ dnl his app/lib. So, we have both DEBUG and WX_DEBUG variables.
654+ ifelse(index([$1], [wxdebug]), [-1],,
655+ [
656+ WX_ARG_WITH_YESNOAUTO(
657+ [wxdebug], [WX_DEBUG],
658+ [Force building against a debug build of wxWidgets, even if --disable-debug is given],
659+ [auto], [], [1])
660+ ])
661+
662+ dnl WX_ARG_WITH_YESNOAUTO cannot be used for --with-wxversion since it's an option
663+ dnl which accepts the "auto|2.6|2.7|2.8|2.9|3.0" etc etc values
664+ ifelse(index([$1], [wxversion]), [-1],,
665+ [
666+ AC_ARG_WITH([wxversion],
667+ AC_HELP_STRING([--with-wxversion],
668+ [Build against a specific version of wxWidgets (default is auto)]),
669+ [], [withval="auto"])
670+
671+ dnl Show a message to the user about this option
672+ AC_MSG_CHECKING([for the --with-wxversion option])
673+ if test "$withval" = "auto" ; then
674+ AC_MSG_RESULT([will be automatically detected])
675+ WX_RELEASE="auto"
676+ else
677+
678+ wx_requested_major_version=`echo $withval | \
679+ sed 's/\([[0-9]]*\).\([[0-9]]*\).*/\1/'`
680+ wx_requested_minor_version=`echo $withval | \
681+ sed 's/\([[0-9]]*\).\([[0-9]]*\).*/\2/'`
682+
683+ dnl both vars above must be exactly 1 digit
684+ if test "${#wx_requested_major_version}" != "1" -o \
685+ "${#wx_requested_minor_version}" != "1" ; then
686+ AC_MSG_ERROR([
687+ Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
688+ ])
689+ fi
690+
691+ WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
692+ AC_MSG_RESULT([$WX_RELEASE])
693+ fi
694+ ])
695+
696+ if test "$WX_DEBUG_CONFIGURE" = "1"; then
697+ echo "[[dbg]] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
698+ echo "[[dbg]] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
699+ echo "[[dbg]] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
700+ echo "[[dbg]] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
701+ echo "[[dbg]] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
702+ fi
703+ ])
704+
705+
706+dnl ---------------------------------------------------------------------------
707+dnl WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
708+dnl
709+dnl Sets the WXCONFIG_FLAGS string using the SHARED,DEBUG,UNICODE variable values
710+dnl which are different from "auto".
711+dnl Thus this macro needs to be called only once all options have been set.
712+dnl ---------------------------------------------------------------------------
713+AC_DEFUN([WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS],
714+ [
715+ if test "$WX_SHARED" = "1" ; then
716+ WXCONFIG_FLAGS="--static=no "
717+ elif test "$WX_SHARED" = "0" ; then
718+ WXCONFIG_FLAGS="--static=yes "
719+ fi
720+
721+ if test "$WX_DEBUG" = "1" ; then
722+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
723+ elif test "$WX_DEBUG" = "0" ; then
724+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
725+ fi
726+
727+ dnl The user should have set WX_UNICODE=UNICODE
728+ if test "$WX_UNICODE" = "1" ; then
729+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
730+ elif test "$WX_UNICODE" = "0" ; then
731+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
732+ fi
733+
734+ if test "$TOOLKIT" != "auto" ; then
735+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
736+ fi
737+
738+ if test "$WX_RELEASE" != "auto" ; then
739+ WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
740+ fi
741+
742+ dnl strip out the last space of the string
743+ WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
744+
745+ if test "$WX_DEBUG_CONFIGURE" = "1"; then
746+ echo "[[dbg]] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
747+ fi
748+ ])
749+
750+
751+dnl ---------------------------------------------------------------------------
752+dnl _WX_SELECTEDCONFIG_CHECKFOR([RESULTVAR], [STRING], [MSG]
753+dnl [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
754+dnl
755+dnl Outputs the given MSG. Then searches the given STRING in the wxWidgets
756+dnl additional CPP flags and put the result of the search in WX_$RESULTVAR
757+dnl also adding the "yes" or "no" message result to MSG.
758+dnl ---------------------------------------------------------------------------
759+AC_DEFUN([_WX_SELECTEDCONFIG_CHECKFOR],
760+ [
761+ if test "$$1" = "auto" ; then
762+
763+ dnl The user does not have particular preferences for this option;
764+ dnl so we will detect the wxWidgets relative build setting and use it
765+ AC_MSG_CHECKING([$3])
766+
767+ dnl set WX_$1 variable to 1 if the $WX_SELECTEDCONFIG contains the $2
768+ dnl string or to 0 otherwise.
769+ dnl NOTE: 'expr match STRING REGEXP' cannot be used since on Mac it
770+ dnl doesn't work; we use 'expr STRING : REGEXP' instead
771+ WX_$1=$(expr "$WX_SELECTEDCONFIG" : ".*$2.*")
772+
773+ if test "$WX_$1" != "0"; then
774+ WX_$1=1
775+ AC_MSG_RESULT([yes])
776+ ifelse([$4], , :, [$4])
777+ else
778+ WX_$1=0
779+ AC_MSG_RESULT([no])
780+ ifelse([$5], , :, [$5])
781+ fi
782+ else
783+
784+ dnl Use the setting given by the user
785+ WX_$1=$$1
786+ fi
787+ ])
788+
789+dnl ---------------------------------------------------------------------------
790+dnl WX_DETECT_STANDARD_OPTION_VALUES
791+dnl
792+dnl Detects the values of the following variables:
793+dnl 1) WX_RELEASE
794+dnl 2) WX_UNICODE
795+dnl 3) WX_DEBUG
796+dnl 4) WX_SHARED (and also WX_STATIC)
797+dnl 5) WX_PORT
798+dnl from the previously selected wxWidgets build; this macro in fact must be
799+dnl called *after* calling the WX_CONFIG_CHECK macro.
800+dnl
801+dnl Note that the WX_VERSION_MAJOR, WX_VERSION_MINOR symbols are already set
802+dnl by WX_CONFIG_CHECK macro
803+dnl ---------------------------------------------------------------------------
804+AC_DEFUN([WX_DETECT_STANDARD_OPTION_VALUES],
805+ [
806+ dnl IMPORTANT: WX_VERSION contains all three major.minor.micro digits,
807+ dnl while WX_RELEASE only the major.minor ones.
808+ WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
809+ if test $WX_RELEASE -lt 26 ; then
810+
811+ AC_MSG_ERROR([
812+ Cannot detect the wxWidgets configuration for the selected wxWidgets build
813+ since its version is $WX_VERSION < 2.6.0; please install a newer
814+ version of wxWidgets.
815+ ])
816+ fi
817+
818+ dnl The wx-config we are using understands the "--selected_config"
819+ dnl option which returns an easy-parseable string !
820+ WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
821+
822+ if test "$WX_DEBUG_CONFIGURE" = "1"; then
823+ echo "[[dbg]] Using wx-config --selected-config"
824+ echo "[[dbg]] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
825+ fi
826+
827+
828+ dnl we could test directly for WX_SHARED with a line like:
829+ dnl _WX_SELECTEDCONFIG_CHECKFOR([SHARED], [shared],
830+ dnl [if wxWidgets was built in SHARED mode])
831+ dnl but wx-config --selected-config DOES NOT outputs the 'shared'
832+ dnl word when wx was built in shared mode; it rather outputs the
833+ dnl 'static' word when built in static mode.
834+ if test $WX_SHARED = "1"; then
835+ STATIC=0
836+ elif test $WX_SHARED = "0"; then
837+ STATIC=1
838+ elif test $WX_SHARED = "auto"; then
839+ STATIC="auto"
840+ fi
841+
842+ dnl Now set the WX_UNICODE, WX_DEBUG, WX_STATIC variables
843+ _WX_SELECTEDCONFIG_CHECKFOR([UNICODE], [unicode],
844+ [if wxWidgets was built with UNICODE enabled])
845+ _WX_SELECTEDCONFIG_CHECKFOR([DEBUG], [debug],
846+ [if wxWidgets was built in DEBUG mode])
847+ _WX_SELECTEDCONFIG_CHECKFOR([STATIC], [static],
848+ [if wxWidgets was built in STATIC mode])
849+
850+ dnl init WX_SHARED from WX_STATIC
851+ if test "$WX_STATIC" != "0"; then
852+ WX_SHARED=0
853+ else
854+ WX_SHARED=1
855+ fi
856+
857+ AC_SUBST(WX_UNICODE)
858+ AC_SUBST(WX_DEBUG)
859+ AC_SUBST(WX_SHARED)
860+
861+ dnl detect the WX_PORT to use
862+ if test "$TOOLKIT" = "auto" ; then
863+
864+ dnl The user does not have particular preferences for this option;
865+ dnl so we will detect the wxWidgets relative build setting and use it
866+ AC_MSG_CHECKING([which wxWidgets toolkit was selected])
867+
868+ WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
869+ WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
870+ WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
871+ WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
872+ WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
873+ WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
874+ WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
875+ WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
876+ WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
877+
878+ WX_PORT="unknown"
879+ if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
880+ if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
881+ if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
882+ if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
883+ if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
884+ if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
885+ if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
886+ if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
887+ if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
888+
889+ dnl NOTE: backward-compatible check for wx2.8; in wx2.9 the mac
890+ dnl ports are called 'osx_cocoa' and 'osx_carbon' (see above)
891+ WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
892+ if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
893+
894+ dnl check at least one of the WX_*PORT has been set !
895+
896+ if test "$WX_PORT" = "unknown" ; then
897+ AC_MSG_ERROR([
898+ Cannot detect the currently installed wxWidgets port !
899+ Please check your 'wx-config --cxxflags'...
900+ ])
901+ fi
902+
903+ AC_MSG_RESULT([$WX_PORT])
904+ else
905+
906+ dnl Use the setting given by the user
907+ if test -z "$TOOLKIT" ; then
908+ WX_PORT=$TOOLKIT
909+ else
910+ dnl try with PORT
911+ WX_PORT=$PORT
912+ fi
913+ fi
914+
915+ AC_SUBST(WX_PORT)
916+
917+ if test "$WX_DEBUG_CONFIGURE" = "1"; then
918+ echo "[[dbg]] Values of all WX_* options after final detection:"
919+ echo "[[dbg]] WX_DEBUG: $WX_DEBUG"
920+ echo "[[dbg]] WX_UNICODE: $WX_UNICODE"
921+ echo "[[dbg]] WX_SHARED: $WX_SHARED"
922+ echo "[[dbg]] WX_RELEASE: $WX_RELEASE"
923+ echo "[[dbg]] WX_PORT: $WX_PORT"
924+ fi
925+
926+ dnl Avoid problem described in the WX_STANDARD_OPTIONS which happens when
927+ dnl the user gives the options:
928+ dnl ./configure --enable-shared --without-wxshared
929+ dnl or just do
930+ dnl ./configure --enable-shared
931+ dnl but there is only a static build of wxWidgets available.
932+ if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
933+ AC_MSG_ERROR([
934+ Cannot build shared library against a static build of wxWidgets !
935+ This error happens because the wxWidgets build which was selected
936+ has been detected as static while you asked to build $PACKAGE_NAME
937+ as shared library and this is not possible.
938+ Use the '--disable-shared' option to build $PACKAGE_NAME
939+ as static library or '--with-wxshared' to use wxWidgets as shared library.
940+ ])
941+ fi
942+
943+ dnl now we can finally update the DEBUG,UNICODE,SHARED options
944+ dnl to their final values if they were set to 'auto'
945+ if test "$DEBUG" = "auto"; then
946+ DEBUG=$WX_DEBUG
947+ fi
948+ if test "$UNICODE" = "auto"; then
949+ UNICODE=$WX_UNICODE
950+ fi
951+ if test "$SHARED" = "auto"; then
952+ SHARED=$WX_SHARED
953+ fi
954+ if test "$TOOLKIT" = "auto"; then
955+ TOOLKIT=$WX_PORT
956+ fi
957+
958+ dnl in case the user needs a BUILD=debug/release var...
959+ if test "$DEBUG" = "1"; then
960+ BUILD="debug"
961+ elif test "$DEBUG" = "0" -o "$DEBUG" = ""; then
962+ BUILD="release"
963+ fi
964+
965+ dnl respect the DEBUG variable adding the optimize/debug flags
966+ dnl NOTE: the CXXFLAGS are merged together with the CPPFLAGS so we
967+ dnl don't need to set them, too
968+ if test "$DEBUG" = "1"; then
969+ CXXFLAGS="$CXXFLAGS -g -O0"
970+ CFLAGS="$CFLAGS -g -O0"
971+ else
972+ CXXFLAGS="$CXXFLAGS -O2"
973+ CFLAGS="$CFLAGS -O2"
974+ fi
975+ ])
976+
977+dnl ---------------------------------------------------------------------------
978+dnl WX_BOOLOPT_SUMMARY([name of the boolean variable to show summary for],
979+dnl [what to print when var is 1],
980+dnl [what to print when var is 0])
981+dnl
982+dnl Prints $2 when variable $1 == 1 and prints $3 when variable $1 == 0.
983+dnl This macro mainly exists just to make configure.ac scripts more readable.
984+dnl
985+dnl NOTE: you need to use the [" my message"] syntax for 2nd and 3rd arguments
986+dnl if you want that m4 avoid to throw away the spaces prefixed to the
987+dnl argument value.
988+dnl ---------------------------------------------------------------------------
989+AC_DEFUN([WX_BOOLOPT_SUMMARY],
990+ [
991+ if test "x$$1" = "x1" ; then
992+ echo $2
993+ elif test "x$$1" = "x0" ; then
994+ echo $3
995+ else
996+ echo "$1 is $$1"
997+ fi
998+ ])
999+
1000+dnl ---------------------------------------------------------------------------
1001+dnl WX_STANDARD_OPTIONS_SUMMARY_MSG
1002+dnl
1003+dnl Shows a summary message to the user about the WX_* variable contents.
1004+dnl This macro is used typically at the end of the configure script.
1005+dnl ---------------------------------------------------------------------------
1006+AC_DEFUN([WX_STANDARD_OPTIONS_SUMMARY_MSG],
1007+ [
1008+ echo
1009+ echo " The wxWidgets build which will be used by $PACKAGE_NAME $PACKAGE_VERSION"
1010+ echo " has the following settings:"
1011+ WX_BOOLOPT_SUMMARY([WX_DEBUG], [" - DEBUG build"], [" - RELEASE build"])
1012+ WX_BOOLOPT_SUMMARY([WX_UNICODE], [" - UNICODE mode"], [" - ANSI mode"])
1013+ WX_BOOLOPT_SUMMARY([WX_SHARED], [" - SHARED mode"], [" - STATIC mode"])
1014+ echo " - VERSION: $WX_VERSION"
1015+ echo " - PORT: $WX_PORT"
1016+ ])
1017+
1018+
1019+dnl ---------------------------------------------------------------------------
1020+dnl WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN, WX_STANDARD_OPTIONS_SUMMARY_MSG_END
1021+dnl
1022+dnl Like WX_STANDARD_OPTIONS_SUMMARY_MSG macro but these two macros also gives info
1023+dnl about the configuration of the package which used the wxpresets.
1024+dnl
1025+dnl Typical usage:
1026+dnl WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN
1027+dnl echo " - Package setting 1: $SETTING1"
1028+dnl echo " - Package setting 2: $SETTING1"
1029+dnl ...
1030+dnl WX_STANDARD_OPTIONS_SUMMARY_MSG_END
1031+dnl
1032+dnl ---------------------------------------------------------------------------
1033+AC_DEFUN([WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN],
1034+ [
1035+ echo
1036+ echo " ----------------------------------------------------------------"
1037+ echo " Configuration for $PACKAGE_NAME $PACKAGE_VERSION successfully completed."
1038+ echo " Summary of main configuration settings for $PACKAGE_NAME:"
1039+ WX_BOOLOPT_SUMMARY([DEBUG], [" - DEBUG build"], [" - RELEASE build"])
1040+ WX_BOOLOPT_SUMMARY([UNICODE], [" - UNICODE mode"], [" - ANSI mode"])
1041+ WX_BOOLOPT_SUMMARY([SHARED], [" - SHARED mode"], [" - STATIC mode"])
1042+ ])
1043+
1044+AC_DEFUN([WX_STANDARD_OPTIONS_SUMMARY_MSG_END],
1045+ [
1046+ WX_STANDARD_OPTIONS_SUMMARY_MSG
1047+ echo
1048+ echo " Now, just run make."
1049+ echo " ----------------------------------------------------------------"
1050+ echo
1051+ ])
1052+
1053+
1054+dnl ---------------------------------------------------------------------------
1055+dnl Deprecated macro wrappers
1056+dnl ---------------------------------------------------------------------------
1057+
1058+AC_DEFUN([AM_OPTIONS_WXCONFIG], [WX_CONFIG_OPTIONS])
1059+AC_DEFUN([AM_PATH_WXCONFIG], [
1060+ WX_CONFIG_CHECK([$1],[$2],[$3],[$4],[$5])
1061+])
1062+AC_DEFUN([AM_PATH_WXRC], [WXRC_CHECK([$1],[$2])])
--- atque/trunk/atque/configure (revision 517)
+++ atque/trunk/atque/configure (revision 518)
@@ -174,6 +174,14 @@
174174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177+
178+ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182+ PATH=/empty FPATH=/empty; export PATH FPATH
183+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
177185 test \$(( 1 + 1 )) = 2 || exit 1"
178186 if (eval "$as_required") 2>/dev/null; then :
179187 as_have_required=yes
@@ -537,7 +545,9 @@
537545 # Sed expression to map a string onto a valid variable name.
538546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539547
548+SHELL=${CONFIG_SHELL-/bin/sh}
540549
550+
541551 test -n "$DJDIR" || exec 7<&0 </dev/null
542552 exec 6>&1
543553
@@ -623,9 +633,38 @@
623633 WX_CFLAGS
624634 WX_CPPFLAGS
625635 WX_CONFIG_PATH
636+BOOST_LDFLAGS
637+BOOST_CPPFLAGS
638+WINDRES
639+OTOOL64
640+OTOOL
641+LIPO
642+NMEDIT
643+DSYMUTIL
644+MANIFEST_TOOL
645+RANLIB
646+ac_ct_AR
647+AR
648+DLLTOOL
649+OBJDUMP
650+LN_S
651+NM
652+ac_ct_DUMPBIN
653+DUMPBIN
654+LD
655+FGREP
626656 EGREP
627657 GREP
628-WINDRES
658+SED
659+host_os
660+host_vendor
661+host_cpu
662+host
663+build_os
664+build_vendor
665+build_cpu
666+build
667+LIBTOOL
629668 CXXCPP
630669 am__fastdepCXX_FALSE
631670 am__fastdepCXX_TRUE
@@ -717,6 +756,15 @@
717756 enable_option_checking
718757 enable_gui
719758 enable_dependency_tracking
759+enable_shared
760+enable_static
761+with_pic
762+enable_fast_install
763+with_gnu_ld
764+with_sysroot
765+enable_libtool_lock
766+with_boost
767+with_boost_libdir
720768 with_wxdir
721769 with_wx_config
722770 with_wx_prefix
@@ -1338,6 +1386,10 @@
13381386 --program-prefix=PREFIX prepend PREFIX to installed program names
13391387 --program-suffix=SUFFIX append SUFFIX to installed program names
13401388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389+
1390+System types:
1391+ --build=BUILD configure for building on BUILD [guessed]
1392+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
13411393 _ACEOF
13421394 fi
13431395
@@ -1354,10 +1406,29 @@
13541406 --enable-gui build atque GUI default=yes
13551407 --disable-dependency-tracking speeds up one-time build
13561408 --enable-dependency-tracking do not reject slow dependency extractors
1409+ --enable-shared[=PKGS] build shared libraries [default=yes]
1410+ --enable-static[=PKGS] build static libraries [default=yes]
1411+ --enable-fast-install[=PKGS]
1412+ optimize for fast installation [default=yes]
1413+ --disable-libtool-lock avoid locking (might break parallel builds)
13571414
13581415 Optional Packages:
13591416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
13601417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418+ --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1419+ both]
1420+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421+ --with-sysroot=DIR Search for dependent libraries within DIR
1422+ (or the compiler's sysroot if not specified).
1423+ --with-boost[=ARG] use Boost library from a standard location
1424+ (ARG=yes), from the specified location (ARG=<path>),
1425+ or disable it (ARG=no) [ARG=yes]
1426+ --with-boost-libdir=LIB_DIR
1427+ Force given directory for boost libraries. Note that
1428+ this will override library path detection, so use
1429+ this parameter only if default library detection
1430+ fails and you know exactly where your boost
1431+ libraries are located.
13611432 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
13621433 --with-wx-config=CONFIG wx-config script to use (optional)
13631434 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
@@ -1607,102 +1678,88 @@
16071678
16081679 } # ac_fn_cxx_try_cpp
16091680
1610-# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1611-# ---------------------------------------------------------
1612-# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613-# the include files in INCLUDES and setting the cache variable VAR
1614-# accordingly.
1615-ac_fn_cxx_check_header_mongrel ()
1681+# ac_fn_c_try_link LINENO
1682+# -----------------------
1683+# Try to link conftest.$ac_ext, and return whether this succeeded.
1684+ac_fn_c_try_link ()
16161685 {
16171686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618- if eval \${$3+:} false; then :
1687+ rm -f conftest.$ac_objext conftest$ac_exeext
1688+ if { { ac_try="$ac_link"
1689+case "(($ac_try" in
1690+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691+ *) ac_try_echo=$ac_try;;
1692+esac
1693+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694+$as_echo "$ac_try_echo"; } >&5
1695+ (eval "$ac_link") 2>conftest.err
1696+ ac_status=$?
1697+ if test -s conftest.err; then
1698+ grep -v '^ *+' conftest.err >conftest.er1
1699+ cat conftest.er1 >&5
1700+ mv -f conftest.er1 conftest.err
1701+ fi
1702+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703+ test $ac_status = 0; } && {
1704+ test -z "$ac_c_werror_flag" ||
1705+ test ! -s conftest.err
1706+ } && test -s conftest$ac_exeext && {
1707+ test "$cross_compiling" = yes ||
1708+ $as_test_x conftest$ac_exeext
1709+ }; then :
1710+ ac_retval=0
1711+else
1712+ $as_echo "$as_me: failed program was:" >&5
1713+sed 's/^/| /' conftest.$ac_ext >&5
1714+
1715+ ac_retval=1
1716+fi
1717+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719+ # interfere with the next link command; also delete a directory that is
1720+ # left behind by Apple's compiler. We do this before executing the actions.
1721+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723+ as_fn_set_status $ac_retval
1724+
1725+} # ac_fn_c_try_link
1726+
1727+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728+# -------------------------------------------------------
1729+# Tests whether HEADER exists and can be compiled using the include files in
1730+# INCLUDES, setting the cache variable VAR accordingly.
1731+ac_fn_c_check_header_compile ()
1732+{
1733+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16191734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16201735 $as_echo_n "checking for $2... " >&6; }
16211736 if eval \${$3+:} false; then :
16221737 $as_echo_n "(cached) " >&6
1623-fi
1624-eval ac_res=\$$3
1625- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626-$as_echo "$ac_res" >&6; }
16271738 else
1628- # Is the header compilable?
1629-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630-$as_echo_n "checking $2 usability... " >&6; }
1631-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321740 /* end confdefs.h. */
16331741 $4
16341742 #include <$2>
16351743 _ACEOF
1636-if ac_fn_cxx_try_compile "$LINENO"; then :
1637- ac_header_compiler=yes
1744+if ac_fn_c_try_compile "$LINENO"; then :
1745+ eval "$3=yes"
16381746 else
1639- ac_header_compiler=no
1747+ eval "$3=no"
16401748 fi
16411749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643-$as_echo "$ac_header_compiler" >&6; }
1644-
1645-# Is the header present?
1646-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647-$as_echo_n "checking $2 presence... " >&6; }
1648-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649-/* end confdefs.h. */
1650-#include <$2>
1651-_ACEOF
1652-if ac_fn_cxx_try_cpp "$LINENO"; then :
1653- ac_header_preproc=yes
1654-else
1655- ac_header_preproc=no
16561750 fi
1657-rm -f conftest.err conftest.i conftest.$ac_ext
1658-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659-$as_echo "$ac_header_preproc" >&6; }
1660-
1661-# So? What about this header?
1662-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1663- yes:no: )
1664- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668- ;;
1669- no:yes:* )
1670- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673-$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677-$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680-( $as_echo "## ------------------------------------------------------------------------------------- ##
1681-## Report this to http://sourceforge.net/tracker/?func=add&group_id=235817&atid=1097912 ##
1682-## ------------------------------------------------------------------------------------- ##"
1683- ) | sed "s/^/$as_me: WARNING: /" >&2
1684- ;;
1685-esac
1686- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687-$as_echo_n "checking for $2... " >&6; }
1688-if eval \${$3+:} false; then :
1689- $as_echo_n "(cached) " >&6
1690-else
1691- eval "$3=\$ac_header_compiler"
1692-fi
16931751 eval ac_res=\$$3
16941752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16951753 $as_echo "$ac_res" >&6; }
1696-fi
16971754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16981755
1699-} # ac_fn_cxx_check_header_mongrel
1756+} # ac_fn_c_check_header_compile
17001757
1701-# ac_fn_cxx_try_run LINENO
1702-# ------------------------
1758+# ac_fn_c_try_run LINENO
1759+# ----------------------
17031760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
17041761 # that executables *can* be run.
1705-ac_fn_cxx_try_run ()
1762+ac_fn_c_try_run ()
17061763 {
17071764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17081765 if { { ac_try="$ac_link"
@@ -1738,13 +1795,12 @@
17381795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17391796 as_fn_set_status $ac_retval
17401797
1741-} # ac_fn_cxx_try_run
1798+} # ac_fn_c_try_run
17421799
1743-# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1744-# ---------------------------------------------------------
1745-# Tests whether HEADER exists and can be compiled using the include files in
1746-# INCLUDES, setting the cache variable VAR accordingly.
1747-ac_fn_cxx_check_header_compile ()
1800+# ac_fn_c_check_func LINENO FUNC VAR
1801+# ----------------------------------
1802+# Tests whether FUNC exists, setting the cache variable VAR accordingly
1803+ac_fn_c_check_func ()
17481804 {
17491805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17501806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
@@ -1754,15 +1810,52 @@
17541810 else
17551811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561812 /* end confdefs.h. */
1757-$4
1758-#include <$2>
1813+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
1815+#define $2 innocuous_$2
1816+
1817+/* System header to define __stub macros and hopefully few prototypes,
1818+ which can conflict with char $2 (); below.
1819+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820+ <limits.h> exists even on freestanding compilers. */
1821+
1822+#ifdef __STDC__
1823+# include <limits.h>
1824+#else
1825+# include <assert.h>
1826+#endif
1827+
1828+#undef $2
1829+
1830+/* Override any GCC internal prototype to avoid an error.
1831+ Use char because int might match the return type of a GCC
1832+ builtin and then its argument prototype would still apply. */
1833+#ifdef __cplusplus
1834+extern "C"
1835+#endif
1836+char $2 ();
1837+/* The GNU C library defines this for functions which it implements
1838+ to always fail with ENOSYS. Some functions are actually named
1839+ something starting with __ and the normal name is an alias. */
1840+#if defined __stub_$2 || defined __stub___$2
1841+choke me
1842+#endif
1843+
1844+int
1845+main ()
1846+{
1847+return $2 ();
1848+ ;
1849+ return 0;
1850+}
17591851 _ACEOF
1760-if ac_fn_cxx_try_compile "$LINENO"; then :
1852+if ac_fn_c_try_link "$LINENO"; then :
17611853 eval "$3=yes"
17621854 else
17631855 eval "$3=no"
17641856 fi
1765-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857+rm -f core conftest.err conftest.$ac_objext \
1858+ conftest$ac_exeext conftest.$ac_ext
17661859 fi
17671860 eval ac_res=\$$3
17681861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
@@ -1769,7 +1862,7 @@
17691862 $as_echo "$ac_res" >&6; }
17701863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17711864
1772-} # ac_fn_cxx_check_header_compile
1865+} # ac_fn_c_check_func
17731866
17741867 # ac_fn_cxx_try_link LINENO
17751868 # -------------------------
@@ -1816,6 +1909,97 @@
18161909 as_fn_set_status $ac_retval
18171910
18181911 } # ac_fn_cxx_try_link
1912+
1913+# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1914+# ---------------------------------------------------------
1915+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916+# the include files in INCLUDES and setting the cache variable VAR
1917+# accordingly.
1918+ac_fn_cxx_check_header_mongrel ()
1919+{
1920+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921+ if eval \${$3+:} false; then :
1922+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923+$as_echo_n "checking for $2... " >&6; }
1924+if eval \${$3+:} false; then :
1925+ $as_echo_n "(cached) " >&6
1926+fi
1927+eval ac_res=\$$3
1928+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929+$as_echo "$ac_res" >&6; }
1930+else
1931+ # Is the header compilable?
1932+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933+$as_echo_n "checking $2 usability... " >&6; }
1934+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935+/* end confdefs.h. */
1936+$4
1937+#include <$2>
1938+_ACEOF
1939+if ac_fn_cxx_try_compile "$LINENO"; then :
1940+ ac_header_compiler=yes
1941+else
1942+ ac_header_compiler=no
1943+fi
1944+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946+$as_echo "$ac_header_compiler" >&6; }
1947+
1948+# Is the header present?
1949+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950+$as_echo_n "checking $2 presence... " >&6; }
1951+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952+/* end confdefs.h. */
1953+#include <$2>
1954+_ACEOF
1955+if ac_fn_cxx_try_cpp "$LINENO"; then :
1956+ ac_header_preproc=yes
1957+else
1958+ ac_header_preproc=no
1959+fi
1960+rm -f conftest.err conftest.i conftest.$ac_ext
1961+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962+$as_echo "$ac_header_preproc" >&6; }
1963+
1964+# So? What about this header?
1965+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1966+ yes:no: )
1967+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971+ ;;
1972+ no:yes:* )
1973+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983+( $as_echo "## ------------------------------------------------------------------------------------- ##
1984+## Report this to http://sourceforge.net/tracker/?func=add&group_id=235817&atid=1097912 ##
1985+## ------------------------------------------------------------------------------------- ##"
1986+ ) | sed "s/^/$as_me: WARNING: /" >&2
1987+ ;;
1988+esac
1989+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990+$as_echo_n "checking for $2... " >&6; }
1991+if eval \${$3+:} false; then :
1992+ $as_echo_n "(cached) " >&6
1993+else
1994+ eval "$3=\$ac_header_compiler"
1995+fi
1996+eval ac_res=\$$3
1997+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998+$as_echo "$ac_res" >&6; }
1999+fi
2000+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001+
2002+} # ac_fn_cxx_check_header_mongrel
18192003 cat >config.log <<_ACEOF
18202004 This file contains any messages produced by compilers while
18212005 running configure, to aid debugging if configure makes a mistake.
@@ -4333,112 +4517,253 @@
43334517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43344518
43354519
4336-AC_PROG_LIBTOOL
4520+case `pwd` in
4521+ *\ * | *\ *)
4522+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4523+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4524+esac
43374525
4338-case "$host" in
4339-*-mingw32*)
4340- if test -n "$ac_tool_prefix"; then
4341- # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4342-set dummy ${ac_tool_prefix}windres; ac_word=$2
4343-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344-$as_echo_n "checking for $ac_word... " >&6; }
4345-if ${ac_cv_prog_WINDRES+:} false; then :
4526+
4527+
4528+macro_version='2.4.2'
4529+macro_revision='1.3337'
4530+
4531+
4532+
4533+
4534+
4535+
4536+
4537+
4538+
4539+
4540+
4541+
4542+
4543+ltmain="$ac_aux_dir/ltmain.sh"
4544+
4545+# Make sure we can run config.sub.
4546+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4547+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4548+
4549+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4550+$as_echo_n "checking build system type... " >&6; }
4551+if ${ac_cv_build+:} false; then :
43464552 $as_echo_n "(cached) " >&6
43474553 else
4348- if test -n "$WINDRES"; then
4349- ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4554+ ac_build_alias=$build_alias
4555+test "x$ac_build_alias" = x &&
4556+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4557+test "x$ac_build_alias" = x &&
4558+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4559+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4560+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4561+
4562+fi
4563+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4564+$as_echo "$ac_cv_build" >&6; }
4565+case $ac_cv_build in
4566+*-*-*) ;;
4567+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4568+esac
4569+build=$ac_cv_build
4570+ac_save_IFS=$IFS; IFS='-'
4571+set x $ac_cv_build
4572+shift
4573+build_cpu=$1
4574+build_vendor=$2
4575+shift; shift
4576+# Remember, the first character of IFS is used to create $*,
4577+# except with old shells:
4578+build_os=$*
4579+IFS=$ac_save_IFS
4580+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4581+
4582+
4583+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4584+$as_echo_n "checking host system type... " >&6; }
4585+if ${ac_cv_host+:} false; then :
4586+ $as_echo_n "(cached) " >&6
43504587 else
4351-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352-for as_dir in $PATH
4353-do
4354- IFS=$as_save_IFS
4355- test -z "$as_dir" && as_dir=.
4356- for ac_exec_ext in '' $ac_executable_extensions; do
4357- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358- ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4359- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360- break 2
4361- fi
4362-done
4363- done
4364-IFS=$as_save_IFS
4588+ if test "x$host_alias" = x; then
4589+ ac_cv_host=$ac_cv_build
4590+else
4591+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4592+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4593+fi
43654594
43664595 fi
4367-fi
4368-WINDRES=$ac_cv_prog_WINDRES
4369-if test -n "$WINDRES"; then
4370- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4371-$as_echo "$WINDRES" >&6; }
4596+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4597+$as_echo "$ac_cv_host" >&6; }
4598+case $ac_cv_host in
4599+*-*-*) ;;
4600+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4601+esac
4602+host=$ac_cv_host
4603+ac_save_IFS=$IFS; IFS='-'
4604+set x $ac_cv_host
4605+shift
4606+host_cpu=$1
4607+host_vendor=$2
4608+shift; shift
4609+# Remember, the first character of IFS is used to create $*,
4610+# except with old shells:
4611+host_os=$*
4612+IFS=$ac_save_IFS
4613+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4614+
4615+
4616+# Backslashify metacharacters that are still active within
4617+# double-quoted strings.
4618+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4619+
4620+# Same as above, but do not quote variable references.
4621+double_quote_subst='s/\(["`\\]\)/\\\1/g'
4622+
4623+# Sed substitution to delay expansion of an escaped shell variable in a
4624+# double_quote_subst'ed string.
4625+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4626+
4627+# Sed substitution to delay expansion of an escaped single quote.
4628+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4629+
4630+# Sed substitution to avoid accidental globbing in evaled expressions
4631+no_glob_subst='s/\*/\\\*/g'
4632+
4633+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4634+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4635+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4636+
4637+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4638+$as_echo_n "checking how to print strings... " >&6; }
4639+# Test print first, because it will be a builtin if present.
4640+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4641+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4642+ ECHO='print -r --'
4643+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4644+ ECHO='printf %s\n'
43724645 else
4373- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374-$as_echo "no" >&6; }
4646+ # Use this function as a fallback that always works.
4647+ func_fallback_echo ()
4648+ {
4649+ eval 'cat <<_LTECHO_EOF
4650+$1
4651+_LTECHO_EOF'
4652+ }
4653+ ECHO='func_fallback_echo'
43754654 fi
43764655
4656+# func_echo_all arg...
4657+# Invoke $ECHO with all args, space-separated.
4658+func_echo_all ()
4659+{
4660+ $ECHO ""
4661+}
43774662
4378-fi
4379-if test -z "$ac_cv_prog_WINDRES"; then
4380- ac_ct_WINDRES=$WINDRES
4381- # Extract the first word of "windres", so it can be a program name with args.
4382-set dummy windres; ac_word=$2
4383-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384-$as_echo_n "checking for $ac_word... " >&6; }
4385-if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4663+case "$ECHO" in
4664+ printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4665+$as_echo "printf" >&6; } ;;
4666+ print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4667+$as_echo "print -r" >&6; } ;;
4668+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4669+$as_echo "cat" >&6; } ;;
4670+esac
4671+
4672+
4673+
4674+
4675+
4676+
4677+
4678+
4679+
4680+
4681+
4682+
4683+
4684+
4685+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4686+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4687+if ${ac_cv_path_SED+:} false; then :
43864688 $as_echo_n "(cached) " >&6
43874689 else
4388- if test -n "$ac_ct_WINDRES"; then
4389- ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4390-else
4391-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4691+ for ac_i in 1 2 3 4 5 6 7; do
4692+ ac_script="$ac_script$as_nl$ac_script"
4693+ done
4694+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4695+ { ac_script=; unset ac_script;}
4696+ if test -z "$SED"; then
4697+ ac_path_SED_found=false
4698+ # Loop through the user's path and test for each of PROGNAME-LIST
4699+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43924700 for as_dir in $PATH
43934701 do
43944702 IFS=$as_save_IFS
43954703 test -z "$as_dir" && as_dir=.
4704+ for ac_prog in sed gsed; do
43964705 for ac_exec_ext in '' $ac_executable_extensions; do
4397- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398- ac_cv_prog_ac_ct_WINDRES="windres"
4399- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400- break 2
4401- fi
4402-done
4706+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4707+ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4708+# Check for GNU ac_path_SED and select it if it is found.
4709+ # Check for GNU $ac_path_SED
4710+case `"$ac_path_SED" --version 2>&1` in
4711+*GNU*)
4712+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4713+*)
4714+ ac_count=0
4715+ $as_echo_n 0123456789 >"conftest.in"
4716+ while :
4717+ do
4718+ cat "conftest.in" "conftest.in" >"conftest.tmp"
4719+ mv "conftest.tmp" "conftest.in"
4720+ cp "conftest.in" "conftest.nl"
4721+ $as_echo '' >> "conftest.nl"
4722+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724+ as_fn_arith $ac_count + 1 && ac_count=$as_val
4725+ if test $ac_count -gt ${ac_path_SED_max-0}; then
4726+ # Best one so far, save it but keep looking for a better one
4727+ ac_cv_path_SED="$ac_path_SED"
4728+ ac_path_SED_max=$ac_count
4729+ fi
4730+ # 10*(2^10) chars as input seems more than enough
4731+ test $ac_count -gt 10 && break
44034732 done
4733+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734+esac
4735+
4736+ $ac_path_SED_found && break 3
4737+ done
4738+ done
4739+ done
44044740 IFS=$as_save_IFS
4405-
4406-fi
4407-fi
4408-ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4409-if test -n "$ac_ct_WINDRES"; then
4410- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4411-$as_echo "$ac_ct_WINDRES" >&6; }
4741+ if test -z "$ac_cv_path_SED"; then
4742+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4743+ fi
44124744 else
4413- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414-$as_echo "no" >&6; }
4745+ ac_cv_path_SED=$SED
44154746 fi
44164747
4417- if test "x$ac_ct_WINDRES" = x; then
4418- WINDRES=":"
4419- else
4420- case $cross_compiling:$ac_tool_warned in
4421-yes:)
4422-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424-ac_tool_warned=yes ;;
4425-esac
4426- WINDRES=$ac_ct_WINDRES
4427- fi
4428-else
4429- WINDRES="$ac_cv_prog_WINDRES"
44304748 fi
4749+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4750+$as_echo "$ac_cv_path_SED" >&6; }
4751+ SED="$ac_cv_path_SED"
4752+ rm -f conftest.sed
44314753
4432- make_windows=true
4433- LDFLAGS="$LDFLAGS -Wl,-S"
4434- ;;
4435-*)
4436- make_windows=false
4437- ;;
4438-esac
4754+test -z "$SED" && SED=sed
4755+Xsed="$SED -e 1s/^X//"
44394756
44404757
44414758
4759+
4760+
4761+
4762+
4763+
4764+
4765+
4766+
44424767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
44434768 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
44444769 if ${ac_cv_path_GREP+:} false; then :
@@ -4569,6 +4894,2925 @@
45694894 EGREP="$ac_cv_path_EGREP"
45704895
45714896
4897+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4898+$as_echo_n "checking for fgrep... " >&6; }
4899+if ${ac_cv_path_FGREP+:} false; then :
4900+ $as_echo_n "(cached) " >&6
4901+else
4902+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4903+ then ac_cv_path_FGREP="$GREP -F"
4904+ else
4905+ if test -z "$FGREP"; then
4906+ ac_path_FGREP_found=false
4907+ # Loop through the user's path and test for each of PROGNAME-LIST
4908+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4910+do
4911+ IFS=$as_save_IFS
4912+ test -z "$as_dir" && as_dir=.
4913+ for ac_prog in fgrep; do
4914+ for ac_exec_ext in '' $ac_executable_extensions; do
4915+ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4916+ { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4917+# Check for GNU ac_path_FGREP and select it if it is found.
4918+ # Check for GNU $ac_path_FGREP
4919+case `"$ac_path_FGREP" --version 2>&1` in
4920+*GNU*)
4921+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4922+*)
4923+ ac_count=0
4924+ $as_echo_n 0123456789 >"conftest.in"
4925+ while :
4926+ do
4927+ cat "conftest.in" "conftest.in" >"conftest.tmp"
4928+ mv "conftest.tmp" "conftest.in"
4929+ cp "conftest.in" "conftest.nl"
4930+ $as_echo 'FGREP' >> "conftest.nl"
4931+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4932+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4933+ as_fn_arith $ac_count + 1 && ac_count=$as_val
4934+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4935+ # Best one so far, save it but keep looking for a better one
4936+ ac_cv_path_FGREP="$ac_path_FGREP"
4937+ ac_path_FGREP_max=$ac_count
4938+ fi
4939+ # 10*(2^10) chars as input seems more than enough
4940+ test $ac_count -gt 10 && break
4941+ done
4942+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4943+esac
4944+
4945+ $ac_path_FGREP_found && break 3
4946+ done
4947+ done
4948+ done
4949+IFS=$as_save_IFS
4950+ if test -z "$ac_cv_path_FGREP"; then
4951+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4952+ fi
4953+else
4954+ ac_cv_path_FGREP=$FGREP
4955+fi
4956+
4957+ fi
4958+fi
4959+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4960+$as_echo "$ac_cv_path_FGREP" >&6; }
4961+ FGREP="$ac_cv_path_FGREP"
4962+
4963+
4964+test -z "$GREP" && GREP=grep
4965+
4966+
4967+
4968+
4969+
4970+
4971+
4972+
4973+
4974+
4975+
4976+
4977+
4978+
4979+
4980+
4981+
4982+
4983+
4984+# Check whether --with-gnu-ld was given.
4985+if test "${with_gnu_ld+set}" = set; then :
4986+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4987+else
4988+ with_gnu_ld=no
4989+fi
4990+
4991+ac_prog=ld
4992+if test "$GCC" = yes; then
4993+ # Check if gcc -print-prog-name=ld gives a path.
4994+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4995+$as_echo_n "checking for ld used by $CC... " >&6; }
4996+ case $host in
4997+ *-*-mingw*)
4998+ # gcc leaves a trailing carriage return which upsets mingw
4999+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5000+ *)
5001+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5002+ esac
5003+ case $ac_prog in
5004+ # Accept absolute paths.
5005+ [\\/]* | ?:[\\/]*)
5006+ re_direlt='/[^/][^/]*/\.\./'
5007+ # Canonicalize the pathname of ld
5008+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5009+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5010+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5011+ done
5012+ test -z "$LD" && LD="$ac_prog"
5013+ ;;
5014+ "")
5015+ # If it fails, then pretend we aren't using GCC.
5016+ ac_prog=ld
5017+ ;;
5018+ *)
5019+ # If it is relative, then search for the first ld in PATH.
5020+ with_gnu_ld=unknown
5021+ ;;
5022+ esac
5023+elif test "$with_gnu_ld" = yes; then
5024+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5025+$as_echo_n "checking for GNU ld... " >&6; }
5026+else
5027+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5028+$as_echo_n "checking for non-GNU ld... " >&6; }
5029+fi
5030+if ${lt_cv_path_LD+:} false; then :
5031+ $as_echo_n "(cached) " >&6
5032+else
5033+ if test -z "$LD"; then
5034+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5035+ for ac_dir in $PATH; do
5036+ IFS="$lt_save_ifs"
5037+ test -z "$ac_dir" && ac_dir=.
5038+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5039+ lt_cv_path_LD="$ac_dir/$ac_prog"
5040+ # Check to see if the program is GNU ld. I'd rather use --version,
5041+ # but apparently some variants of GNU ld only accept -v.
5042+ # Break only if it was the GNU/non-GNU ld that we prefer.
5043+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5044+ *GNU* | *'with BFD'*)
5045+ test "$with_gnu_ld" != no && break
5046+ ;;
5047+ *)
5048+ test "$with_gnu_ld" != yes && break
5049+ ;;
5050+ esac
5051+ fi
5052+ done
5053+ IFS="$lt_save_ifs"
5054+else
5055+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
5056+fi
5057+fi
5058+
5059+LD="$lt_cv_path_LD"
5060+if test -n "$LD"; then
5061+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5062+$as_echo "$LD" >&6; }
5063+else
5064+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065+$as_echo "no" >&6; }
5066+fi
5067+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5068+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5069+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5070+if ${lt_cv_prog_gnu_ld+:} false; then :
5071+ $as_echo_n "(cached) " >&6
5072+else
5073+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
5074+case `$LD -v 2>&1 </dev/null` in
5075+*GNU* | *'with BFD'*)
5076+ lt_cv_prog_gnu_ld=yes
5077+ ;;
5078+*)
5079+ lt_cv_prog_gnu_ld=no
5080+ ;;
5081+esac
5082+fi
5083+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5084+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5085+with_gnu_ld=$lt_cv_prog_gnu_ld
5086+
5087+
5088+
5089+
5090+
5091+
5092+
5093+
5094+
5095+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5096+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5097+if ${lt_cv_path_NM+:} false; then :
5098+ $as_echo_n "(cached) " >&6
5099+else
5100+ if test -n "$NM"; then
5101+ # Let the user override the test.
5102+ lt_cv_path_NM="$NM"
5103+else
5104+ lt_nm_to_check="${ac_tool_prefix}nm"
5105+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5106+ lt_nm_to_check="$lt_nm_to_check nm"
5107+ fi
5108+ for lt_tmp_nm in $lt_nm_to_check; do
5109+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5110+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5111+ IFS="$lt_save_ifs"
5112+ test -z "$ac_dir" && ac_dir=.
5113+ tmp_nm="$ac_dir/$lt_tmp_nm"
5114+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5115+ # Check to see if the nm accepts a BSD-compat flag.
5116+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5117+ # nm: unknown option "B" ignored
5118+ # Tru64's nm complains that /dev/null is an invalid object file
5119+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5120+ */dev/null* | *'Invalid file or object type'*)
5121+ lt_cv_path_NM="$tmp_nm -B"
5122+ break
5123+ ;;
5124+ *)
5125+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5126+ */dev/null*)
5127+ lt_cv_path_NM="$tmp_nm -p"
5128+ break
5129+ ;;
5130+ *)
5131+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5132+ continue # so that we can try to find one that supports BSD flags
5133+ ;;
5134+ esac
5135+ ;;
5136+ esac
5137+ fi
5138+ done
5139+ IFS="$lt_save_ifs"
5140+ done
5141+ : ${lt_cv_path_NM=no}
5142+fi
5143+fi
5144+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5145+$as_echo "$lt_cv_path_NM" >&6; }
5146+if test "$lt_cv_path_NM" != "no"; then
5147+ NM="$lt_cv_path_NM"
5148+else
5149+ # Didn't find any BSD compatible name lister, look for dumpbin.
5150+ if test -n "$DUMPBIN"; then :
5151+ # Let the user override the test.
5152+ else
5153+ if test -n "$ac_tool_prefix"; then
5154+ for ac_prog in dumpbin "link -dump"
5155+ do
5156+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159+$as_echo_n "checking for $ac_word... " >&6; }
5160+if ${ac_cv_prog_DUMPBIN+:} false; then :
5161+ $as_echo_n "(cached) " >&6
5162+else
5163+ if test -n "$DUMPBIN"; then
5164+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165+else
5166+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167+for as_dir in $PATH
5168+do
5169+ IFS=$as_save_IFS
5170+ test -z "$as_dir" && as_dir=.
5171+ for ac_exec_ext in '' $ac_executable_extensions; do
5172+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5174+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175+ break 2
5176+ fi
5177+done
5178+ done
5179+IFS=$as_save_IFS
5180+
5181+fi
5182+fi
5183+DUMPBIN=$ac_cv_prog_DUMPBIN
5184+if test -n "$DUMPBIN"; then
5185+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5186+$as_echo "$DUMPBIN" >&6; }
5187+else
5188+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189+$as_echo "no" >&6; }
5190+fi
5191+
5192+
5193+ test -n "$DUMPBIN" && break
5194+ done
5195+fi
5196+if test -z "$DUMPBIN"; then
5197+ ac_ct_DUMPBIN=$DUMPBIN
5198+ for ac_prog in dumpbin "link -dump"
5199+do
5200+ # Extract the first word of "$ac_prog", so it can be a program name with args.
5201+set dummy $ac_prog; ac_word=$2
5202+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203+$as_echo_n "checking for $ac_word... " >&6; }
5204+if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5205+ $as_echo_n "(cached) " >&6
5206+else
5207+ if test -n "$ac_ct_DUMPBIN"; then
5208+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5209+else
5210+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211+for as_dir in $PATH
5212+do
5213+ IFS=$as_save_IFS
5214+ test -z "$as_dir" && as_dir=.
5215+ for ac_exec_ext in '' $ac_executable_extensions; do
5216+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5218+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219+ break 2
5220+ fi
5221+done
5222+ done
5223+IFS=$as_save_IFS
5224+
5225+fi
5226+fi
5227+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5228+if test -n "$ac_ct_DUMPBIN"; then
5229+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5230+$as_echo "$ac_ct_DUMPBIN" >&6; }
5231+else
5232+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233+$as_echo "no" >&6; }
5234+fi
5235+
5236+
5237+ test -n "$ac_ct_DUMPBIN" && break
5238+done
5239+
5240+ if test "x$ac_ct_DUMPBIN" = x; then
5241+ DUMPBIN=":"
5242+ else
5243+ case $cross_compiling:$ac_tool_warned in
5244+yes:)
5245+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247+ac_tool_warned=yes ;;
5248+esac
5249+ DUMPBIN=$ac_ct_DUMPBIN
5250+ fi
5251+fi
5252+
5253+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5254+ *COFF*)
5255+ DUMPBIN="$DUMPBIN -symbols"
5256+ ;;
5257+ *)
5258+ DUMPBIN=:
5259+ ;;
5260+ esac
5261+ fi
5262+
5263+ if test "$DUMPBIN" != ":"; then
5264+ NM="$DUMPBIN"
5265+ fi
5266+fi
5267+test -z "$NM" && NM=nm
5268+
5269+
5270+
5271+
5272+
5273+
5274+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5275+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5276+if ${lt_cv_nm_interface+:} false; then :
5277+ $as_echo_n "(cached) " >&6
5278+else
5279+ lt_cv_nm_interface="BSD nm"
5280+ echo "int some_variable = 0;" > conftest.$ac_ext
5281+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5282+ (eval "$ac_compile" 2>conftest.err)
5283+ cat conftest.err >&5
5284+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5285+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5286+ cat conftest.err >&5
5287+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5288+ cat conftest.out >&5
5289+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5290+ lt_cv_nm_interface="MS dumpbin"
5291+ fi
5292+ rm -f conftest*
5293+fi
5294+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5295+$as_echo "$lt_cv_nm_interface" >&6; }
5296+
5297+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5298+$as_echo_n "checking whether ln -s works... " >&6; }
5299+LN_S=$as_ln_s
5300+if test "$LN_S" = "ln -s"; then
5301+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302+$as_echo "yes" >&6; }
5303+else
5304+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5305+$as_echo "no, using $LN_S" >&6; }
5306+fi
5307+
5308+# find the maximum length of command line arguments
5309+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5310+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5311+if ${lt_cv_sys_max_cmd_len+:} false; then :
5312+ $as_echo_n "(cached) " >&6
5313+else
5314+ i=0
5315+ teststring="ABCD"
5316+
5317+ case $build_os in
5318+ msdosdjgpp*)
5319+ # On DJGPP, this test can blow up pretty badly due to problems in libc
5320+ # (any single argument exceeding 2000 bytes causes a buffer overrun
5321+ # during glob expansion). Even if it were fixed, the result of this
5322+ # check would be larger than it should be.
5323+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
5324+ ;;
5325+
5326+ gnu*)
5327+ # Under GNU Hurd, this test is not required because there is
5328+ # no limit to the length of command line arguments.
5329+ # Libtool will interpret -1 as no limit whatsoever
5330+ lt_cv_sys_max_cmd_len=-1;
5331+ ;;
5332+
5333+ cygwin* | mingw* | cegcc*)
5334+ # On Win9x/ME, this test blows up -- it succeeds, but takes
5335+ # about 5 minutes as the teststring grows exponentially.
5336+ # Worse, since 9x/ME are not pre-emptively multitasking,
5337+ # you end up with a "frozen" computer, even though with patience
5338+ # the test eventually succeeds (with a max line length of 256k).
5339+ # Instead, let's just punt: use the minimum linelength reported by
5340+ # all of the supported platforms: 8192 (on NT/2K/XP).
5341+ lt_cv_sys_max_cmd_len=8192;
5342+ ;;
5343+
5344+ mint*)
5345+ # On MiNT this can take a long time and run out of memory.
5346+ lt_cv_sys_max_cmd_len=8192;
5347+ ;;
5348+
5349+ amigaos*)
5350+ # On AmigaOS with pdksh, this test takes hours, literally.
5351+ # So we just punt and use a minimum line length of 8192.
5352+ lt_cv_sys_max_cmd_len=8192;
5353+ ;;
5354+
5355+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5356+ # This has been around since 386BSD, at least. Likely further.
5357+ if test -x /sbin/sysctl; then
5358+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5359+ elif test -x /usr/sbin/sysctl; then
5360+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5361+ else
5362+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5363+ fi
5364+ # And add a safety zone
5365+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367+ ;;
5368+
5369+ interix*)
5370+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
5371+ lt_cv_sys_max_cmd_len=196608
5372+ ;;
5373+
5374+ os2*)
5375+ # The test takes a long time on OS/2.
5376+ lt_cv_sys_max_cmd_len=8192
5377+ ;;
5378+
5379+ osf*)
5380+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5381+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5382+ # nice to cause kernel panics so lets avoid the loop below.
5383+ # First set a reasonable default.
5384+ lt_cv_sys_max_cmd_len=16384
5385+ #
5386+ if test -x /sbin/sysconfig; then
5387+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5388+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
5389+ esac
5390+ fi
5391+ ;;
5392+ sco3.2v5*)
5393+ lt_cv_sys_max_cmd_len=102400
5394+ ;;
5395+ sysv5* | sco5v6* | sysv4.2uw2*)
5396+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5397+ if test -n "$kargmax"; then
5398+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5399+ else
5400+ lt_cv_sys_max_cmd_len=32768
5401+ fi
5402+ ;;
5403+ *)
5404+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5405+ if test -n "$lt_cv_sys_max_cmd_len"; then
5406+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5407+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5408+ else
5409+ # Make teststring a little bigger before we do anything with it.
5410+ # a 1K string should be a reasonable start.
5411+ for i in 1 2 3 4 5 6 7 8 ; do
5412+ teststring=$teststring$teststring
5413+ done
5414+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5415+ # If test is not a shell built-in, we'll probably end up computing a
5416+ # maximum length that is only half of the actual maximum length, but
5417+ # we can't tell.
5418+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5419+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5420+ test $i != 17 # 1/2 MB should be enough
5421+ do
5422+ i=`expr $i + 1`
5423+ teststring=$teststring$teststring
5424+ done
5425+ # Only check the string length outside the loop.
5426+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5427+ teststring=
5428+ # Add a significant safety factor because C++ compilers can tack on
5429+ # massive amounts of additional arguments before passing them to the
5430+ # linker. It appears as though 1/2 is a usable value.
5431+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5432+ fi
5433+ ;;
5434+ esac
5435+
5436+fi
5437+
5438+if test -n $lt_cv_sys_max_cmd_len ; then
5439+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5440+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5441+else
5442+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5443+$as_echo "none" >&6; }
5444+fi
5445+max_cmd_len=$lt_cv_sys_max_cmd_len
5446+
5447+
5448+
5449+
5450+
5451+
5452+: ${CP="cp -f"}
5453+: ${MV="mv -f"}
5454+: ${RM="rm -f"}
5455+
5456+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5457+$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5458+# Try some XSI features
5459+xsi_shell=no
5460+( _lt_dummy="a/b/c"
5461+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5462+ = c,a/b,b/c, \
5463+ && eval 'test $(( 1 + 1 )) -eq 2 \
5464+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5465+ && xsi_shell=yes
5466+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5467+$as_echo "$xsi_shell" >&6; }
5468+
5469+
5470+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5471+$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5472+lt_shell_append=no
5473+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5474+ >/dev/null 2>&1 \
5475+ && lt_shell_append=yes
5476+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5477+$as_echo "$lt_shell_append" >&6; }
5478+
5479+
5480+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5481+ lt_unset=unset
5482+else
5483+ lt_unset=false
5484+fi
5485+
5486+
5487+
5488+
5489+
5490+# test EBCDIC or ASCII
5491+case `echo X|tr X '\101'` in
5492+ A) # ASCII based system
5493+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5494+ lt_SP2NL='tr \040 \012'
5495+ lt_NL2SP='tr \015\012 \040\040'
5496+ ;;
5497+ *) # EBCDIC based system
5498+ lt_SP2NL='tr \100 \n'
5499+ lt_NL2SP='tr \r\n \100\100'
5500+ ;;
5501+esac
5502+
5503+
5504+
5505+
5506+
5507+
5508+
5509+
5510+
5511+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5512+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5513+if ${lt_cv_to_host_file_cmd+:} false; then :
5514+ $as_echo_n "(cached) " >&6
5515+else
5516+ case $host in
5517+ *-*-mingw* )
5518+ case $build in
5519+ *-*-mingw* ) # actually msys
5520+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5521+ ;;
5522+ *-*-cygwin* )
5523+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5524+ ;;
5525+ * ) # otherwise, assume *nix
5526+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5527+ ;;
5528+ esac
5529+ ;;
5530+ *-*-cygwin* )
5531+ case $build in
5532+ *-*-mingw* ) # actually msys
5533+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5534+ ;;
5535+ *-*-cygwin* )
5536+ lt_cv_to_host_file_cmd=func_convert_file_noop
5537+ ;;
5538+ * ) # otherwise, assume *nix
5539+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5540+ ;;
5541+ esac
5542+ ;;
5543+ * ) # unhandled hosts (and "normal" native builds)
5544+ lt_cv_to_host_file_cmd=func_convert_file_noop
5545+ ;;
5546+esac
5547+
5548+fi
5549+
5550+to_host_file_cmd=$lt_cv_to_host_file_cmd
5551+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5552+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5553+
5554+
5555+
5556+
5557+
5558+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5559+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5560+if ${lt_cv_to_tool_file_cmd+:} false; then :
5561+ $as_echo_n "(cached) " >&6
5562+else
5563+ #assume ordinary cross tools, or native build.
5564+lt_cv_to_tool_file_cmd=func_convert_file_noop
5565+case $host in
5566+ *-*-mingw* )
5567+ case $build in
5568+ *-*-mingw* ) # actually msys
5569+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5570+ ;;
5571+ esac
5572+ ;;
5573+esac
5574+
5575+fi
5576+
5577+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5578+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5579+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5580+
5581+
5582+
5583+
5584+
5585+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5586+$as_echo_n "checking for $LD option to reload object files... " >&6; }
5587+if ${lt_cv_ld_reload_flag+:} false; then :
5588+ $as_echo_n "(cached) " >&6
5589+else
5590+ lt_cv_ld_reload_flag='-r'
5591+fi
5592+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5593+$as_echo "$lt_cv_ld_reload_flag" >&6; }
5594+reload_flag=$lt_cv_ld_reload_flag
5595+case $reload_flag in
5596+"" | " "*) ;;
5597+*) reload_flag=" $reload_flag" ;;
5598+esac
5599+reload_cmds='$LD$reload_flag -o $output$reload_objs'
5600+case $host_os in
5601+ cygwin* | mingw* | pw32* | cegcc*)
5602+ if test "$GCC" != yes; then
5603+ reload_cmds=false
5604+ fi
5605+ ;;
5606+ darwin*)
5607+ if test "$GCC" = yes; then
5608+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5609+ else
5610+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
5611+ fi
5612+ ;;
5613+esac
5614+
5615+
5616+
5617+
5618+
5619+
5620+
5621+
5622+
5623+if test -n "$ac_tool_prefix"; then
5624+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5625+set dummy ${ac_tool_prefix}objdump; ac_word=$2
5626+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627+$as_echo_n "checking for $ac_word... " >&6; }
5628+if ${ac_cv_prog_OBJDUMP+:} false; then :
5629+ $as_echo_n "(cached) " >&6
5630+else
5631+ if test -n "$OBJDUMP"; then
5632+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5633+else
5634+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635+for as_dir in $PATH
5636+do
5637+ IFS=$as_save_IFS
5638+ test -z "$as_dir" && as_dir=.
5639+ for ac_exec_ext in '' $ac_executable_extensions; do
5640+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5642+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643+ break 2
5644+ fi
5645+done
5646+ done
5647+IFS=$as_save_IFS
5648+
5649+fi
5650+fi
5651+OBJDUMP=$ac_cv_prog_OBJDUMP
5652+if test -n "$OBJDUMP"; then
5653+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5654+$as_echo "$OBJDUMP" >&6; }
5655+else
5656+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657+$as_echo "no" >&6; }
5658+fi
5659+
5660+
5661+fi
5662+if test -z "$ac_cv_prog_OBJDUMP"; then
5663+ ac_ct_OBJDUMP=$OBJDUMP
5664+ # Extract the first word of "objdump", so it can be a program name with args.
5665+set dummy objdump; ac_word=$2
5666+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667+$as_echo_n "checking for $ac_word... " >&6; }
5668+if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5669+ $as_echo_n "(cached) " >&6
5670+else
5671+ if test -n "$ac_ct_OBJDUMP"; then
5672+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673+else
5674+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675+for as_dir in $PATH
5676+do
5677+ IFS=$as_save_IFS
5678+ test -z "$as_dir" && as_dir=.
5679+ for ac_exec_ext in '' $ac_executable_extensions; do
5680+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
5682+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683+ break 2
5684+ fi
5685+done
5686+ done
5687+IFS=$as_save_IFS
5688+
5689+fi
5690+fi
5691+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5692+if test -n "$ac_ct_OBJDUMP"; then
5693+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5694+$as_echo "$ac_ct_OBJDUMP" >&6; }
5695+else
5696+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697+$as_echo "no" >&6; }
5698+fi
5699+
5700+ if test "x$ac_ct_OBJDUMP" = x; then
5701+ OBJDUMP="false"
5702+ else
5703+ case $cross_compiling:$ac_tool_warned in
5704+yes:)
5705+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707+ac_tool_warned=yes ;;
5708+esac
5709+ OBJDUMP=$ac_ct_OBJDUMP
5710+ fi
5711+else
5712+ OBJDUMP="$ac_cv_prog_OBJDUMP"
5713+fi
5714+
5715+test -z "$OBJDUMP" && OBJDUMP=objdump
5716+
5717+
5718+
5719+
5720+
5721+
5722+
5723+
5724+
5725+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5726+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5727+if ${lt_cv_deplibs_check_method+:} false; then :
5728+ $as_echo_n "(cached) " >&6
5729+else
5730+ lt_cv_file_magic_cmd='$MAGIC_CMD'
5731+lt_cv_file_magic_test_file=
5732+lt_cv_deplibs_check_method='unknown'
5733+# Need to set the preceding variable on all platforms that support
5734+# interlibrary dependencies.
5735+# 'none' -- dependencies not supported.
5736+# `unknown' -- same as none, but documents that we really don't know.
5737+# 'pass_all' -- all dependencies passed with no checks.
5738+# 'test_compile' -- check by making test program.
5739+# 'file_magic [[regex]]' -- check by looking for files in library path
5740+# which responds to the $file_magic_cmd with a given extended regex.
5741+# If you have `file' or equivalent on your system and you're not sure
5742+# whether `pass_all' will *always* work, you probably want this one.
5743+
5744+case $host_os in
5745+aix[4-9]*)
5746+ lt_cv_deplibs_check_method=pass_all
5747+ ;;
5748+
5749+beos*)
5750+ lt_cv_deplibs_check_method=pass_all
5751+ ;;
5752+
5753+bsdi[45]*)
5754+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5755+ lt_cv_file_magic_cmd='/usr/bin/file -L'
5756+ lt_cv_file_magic_test_file=/shlib/libc.so
5757+ ;;
5758+
5759+cygwin*)
5760+ # func_win32_libid is a shell function defined in ltmain.sh
5761+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5762+ lt_cv_file_magic_cmd='func_win32_libid'
5763+ ;;
5764+
5765+mingw* | pw32*)
5766+ # Base MSYS/MinGW do not provide the 'file' command needed by
5767+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
5768+ # unless we find 'file', for example because we are cross-compiling.
5769+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5770+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5771+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5772+ lt_cv_file_magic_cmd='func_win32_libid'
5773+ else
5774+ # Keep this pattern in sync with the one in func_win32_libid.
5775+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5776+ lt_cv_file_magic_cmd='$OBJDUMP -f'
5777+ fi
5778+ ;;
5779+
5780+cegcc*)
5781+ # use the weaker test based on 'objdump'. See mingw*.
5782+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5783+ lt_cv_file_magic_cmd='$OBJDUMP -f'
5784+ ;;
5785+
5786+darwin* | rhapsody*)
5787+ lt_cv_deplibs_check_method=pass_all
5788+ ;;
5789+
5790+freebsd* | dragonfly*)
5791+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5792+ case $host_cpu in
5793+ i*86 )
5794+ # Not sure whether the presence of OpenBSD here was a mistake.
5795+ # Let's accept both of them until this is cleared up.
5796+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5797+ lt_cv_file_magic_cmd=/usr/bin/file
5798+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5799+ ;;
5800+ esac
5801+ else
5802+ lt_cv_deplibs_check_method=pass_all
5803+ fi
5804+ ;;
5805+
5806+gnu*)
5807+ lt_cv_deplibs_check_method=pass_all
5808+ ;;
5809+
5810+haiku*)
5811+ lt_cv_deplibs_check_method=pass_all
5812+ ;;
5813+
5814+hpux10.20* | hpux11*)
5815+ lt_cv_file_magic_cmd=/usr/bin/file
5816+ case $host_cpu in
5817+ ia64*)
5818+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5819+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5820+ ;;
5821+ hppa*64*)
5822+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5823+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5824+ ;;
5825+ *)
5826+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5827+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
5828+ ;;
5829+ esac
5830+ ;;
5831+
5832+interix[3-9]*)
5833+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5834+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5835+ ;;
5836+
5837+irix5* | irix6* | nonstopux*)
5838+ case $LD in
5839+ *-32|*"-32 ") libmagic=32-bit;;
5840+ *-n32|*"-n32 ") libmagic=N32;;
5841+ *-64|*"-64 ") libmagic=64-bit;;
5842+ *) libmagic=never-match;;
5843+ esac
5844+ lt_cv_deplibs_check_method=pass_all
5845+ ;;
5846+
5847+# This must be glibc/ELF.
5848+linux* | k*bsd*-gnu | kopensolaris*-gnu)
5849+ lt_cv_deplibs_check_method=pass_all
5850+ ;;
5851+
5852+netbsd*)
5853+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5854+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5855+ else
5856+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5857+ fi
5858+ ;;
5859+
5860+newos6*)
5861+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5862+ lt_cv_file_magic_cmd=/usr/bin/file
5863+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
5864+ ;;
5865+
5866+*nto* | *qnx*)
5867+ lt_cv_deplibs_check_method=pass_all
5868+ ;;
5869+
5870+openbsd*)
5871+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5872+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5873+ else
5874+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5875+ fi
5876+ ;;
5877+
5878+osf3* | osf4* | osf5*)
5879+ lt_cv_deplibs_check_method=pass_all
5880+ ;;
5881+
5882+rdos*)
5883+ lt_cv_deplibs_check_method=pass_all
5884+ ;;
5885+
5886+solaris*)
5887+ lt_cv_deplibs_check_method=pass_all
5888+ ;;
5889+
5890+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5891+ lt_cv_deplibs_check_method=pass_all
5892+ ;;
5893+
5894+sysv4 | sysv4.3*)
5895+ case $host_vendor in
5896+ motorola)
5897+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5898+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5899+ ;;
5900+ ncr)
5901+ lt_cv_deplibs_check_method=pass_all
5902+ ;;
5903+ sequent)
5904+ lt_cv_file_magic_cmd='/bin/file'
5905+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5906+ ;;
5907+ sni)
5908+ lt_cv_file_magic_cmd='/bin/file'
5909+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5910+ lt_cv_file_magic_test_file=/lib/libc.so
5911+ ;;
5912+ siemens)
5913+ lt_cv_deplibs_check_method=pass_all
5914+ ;;
5915+ pc)
5916+ lt_cv_deplibs_check_method=pass_all
5917+ ;;
5918+ esac
5919+ ;;
5920+
5921+tpf*)
5922+ lt_cv_deplibs_check_method=pass_all
5923+ ;;
5924+esac
5925+
5926+fi
5927+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5928+$as_echo "$lt_cv_deplibs_check_method" >&6; }
5929+
5930+file_magic_glob=
5931+want_nocaseglob=no
5932+if test "$build" = "$host"; then
5933+ case $host_os in
5934+ mingw* | pw32*)
5935+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5936+ want_nocaseglob=yes
5937+ else
5938+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5939+ fi
5940+ ;;
5941+ esac
5942+fi
5943+
5944+file_magic_cmd=$lt_cv_file_magic_cmd
5945+deplibs_check_method=$lt_cv_deplibs_check_method
5946+test -z "$deplibs_check_method" && deplibs_check_method=unknown
5947+
5948+
5949+
5950+
5951+
5952+
5953+
5954+
5955+
5956+
5957+
5958+
5959+
5960+
5961+
5962+
5963+
5964+
5965+
5966+
5967+
5968+
5969+if test -n "$ac_tool_prefix"; then
5970+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5971+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5972+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973+$as_echo_n "checking for $ac_word... " >&6; }
5974+if ${ac_cv_prog_DLLTOOL+:} false; then :
5975+ $as_echo_n "(cached) " >&6
5976+else
5977+ if test -n "$DLLTOOL"; then
5978+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5979+else
5980+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981+for as_dir in $PATH
5982+do
5983+ IFS=$as_save_IFS
5984+ test -z "$as_dir" && as_dir=.
5985+ for ac_exec_ext in '' $ac_executable_extensions; do
5986+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5988+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989+ break 2
5990+ fi
5991+done
5992+ done
5993+IFS=$as_save_IFS
5994+
5995+fi
5996+fi
5997+DLLTOOL=$ac_cv_prog_DLLTOOL
5998+if test -n "$DLLTOOL"; then
5999+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6000+$as_echo "$DLLTOOL" >&6; }
6001+else
6002+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003+$as_echo "no" >&6; }
6004+fi
6005+
6006+
6007+fi
6008+if test -z "$ac_cv_prog_DLLTOOL"; then
6009+ ac_ct_DLLTOOL=$DLLTOOL
6010+ # Extract the first word of "dlltool", so it can be a program name with args.
6011+set dummy dlltool; ac_word=$2
6012+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013+$as_echo_n "checking for $ac_word... " >&6; }
6014+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6015+ $as_echo_n "(cached) " >&6
6016+else
6017+ if test -n "$ac_ct_DLLTOOL"; then
6018+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6019+else
6020+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021+for as_dir in $PATH
6022+do
6023+ IFS=$as_save_IFS
6024+ test -z "$as_dir" && as_dir=.
6025+ for ac_exec_ext in '' $ac_executable_extensions; do
6026+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6028+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029+ break 2
6030+ fi
6031+done
6032+ done
6033+IFS=$as_save_IFS
6034+
6035+fi
6036+fi
6037+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6038+if test -n "$ac_ct_DLLTOOL"; then
6039+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6040+$as_echo "$ac_ct_DLLTOOL" >&6; }
6041+else
6042+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043+$as_echo "no" >&6; }
6044+fi
6045+
6046+ if test "x$ac_ct_DLLTOOL" = x; then
6047+ DLLTOOL="false"
6048+ else
6049+ case $cross_compiling:$ac_tool_warned in
6050+yes:)
6051+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053+ac_tool_warned=yes ;;
6054+esac
6055+ DLLTOOL=$ac_ct_DLLTOOL
6056+ fi
6057+else
6058+ DLLTOOL="$ac_cv_prog_DLLTOOL"
6059+fi
6060+
6061+test -z "$DLLTOOL" && DLLTOOL=dlltool
6062+
6063+
6064+
6065+
6066+
6067+
6068+
6069+
6070+
6071+
6072+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6073+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6074+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6075+ $as_echo_n "(cached) " >&6
6076+else
6077+ lt_cv_sharedlib_from_linklib_cmd='unknown'
6078+
6079+case $host_os in
6080+cygwin* | mingw* | pw32* | cegcc*)
6081+ # two different shell functions defined in ltmain.sh
6082+ # decide which to use based on capabilities of $DLLTOOL
6083+ case `$DLLTOOL --help 2>&1` in
6084+ *--identify-strict*)
6085+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6086+ ;;
6087+ *)
6088+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6089+ ;;
6090+ esac
6091+ ;;
6092+*)
6093+ # fallback: assume linklib IS sharedlib
6094+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6095+ ;;
6096+esac
6097+
6098+fi
6099+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6100+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6101+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6102+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6103+
6104+
6105+
6106+
6107+
6108+
6109+
6110+
6111+if test -n "$ac_tool_prefix"; then
6112+ for ac_prog in ar
6113+ do
6114+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6116+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117+$as_echo_n "checking for $ac_word... " >&6; }
6118+if ${ac_cv_prog_AR+:} false; then :
6119+ $as_echo_n "(cached) " >&6
6120+else
6121+ if test -n "$AR"; then
6122+ ac_cv_prog_AR="$AR" # Let the user override the test.
6123+else
6124+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125+for as_dir in $PATH
6126+do
6127+ IFS=$as_save_IFS
6128+ test -z "$as_dir" && as_dir=.
6129+ for ac_exec_ext in '' $ac_executable_extensions; do
6130+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6132+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133+ break 2
6134+ fi
6135+done
6136+ done
6137+IFS=$as_save_IFS
6138+
6139+fi
6140+fi
6141+AR=$ac_cv_prog_AR
6142+if test -n "$AR"; then
6143+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6144+$as_echo "$AR" >&6; }
6145+else
6146+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147+$as_echo "no" >&6; }
6148+fi
6149+
6150+
6151+ test -n "$AR" && break
6152+ done
6153+fi
6154+if test -z "$AR"; then
6155+ ac_ct_AR=$AR
6156+ for ac_prog in ar
6157+do
6158+ # Extract the first word of "$ac_prog", so it can be a program name with args.
6159+set dummy $ac_prog; ac_word=$2
6160+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161+$as_echo_n "checking for $ac_word... " >&6; }
6162+if ${ac_cv_prog_ac_ct_AR+:} false; then :
6163+ $as_echo_n "(cached) " >&6
6164+else
6165+ if test -n "$ac_ct_AR"; then
6166+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6167+else
6168+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169+for as_dir in $PATH
6170+do
6171+ IFS=$as_save_IFS
6172+ test -z "$as_dir" && as_dir=.
6173+ for ac_exec_ext in '' $ac_executable_extensions; do
6174+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175+ ac_cv_prog_ac_ct_AR="$ac_prog"
6176+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177+ break 2
6178+ fi
6179+done
6180+ done
6181+IFS=$as_save_IFS
6182+
6183+fi
6184+fi
6185+ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186+if test -n "$ac_ct_AR"; then
6187+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6188+$as_echo "$ac_ct_AR" >&6; }
6189+else
6190+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191+$as_echo "no" >&6; }
6192+fi
6193+
6194+
6195+ test -n "$ac_ct_AR" && break
6196+done
6197+
6198+ if test "x$ac_ct_AR" = x; then
6199+ AR="false"
6200+ else
6201+ case $cross_compiling:$ac_tool_warned in
6202+yes:)
6203+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205+ac_tool_warned=yes ;;
6206+esac
6207+ AR=$ac_ct_AR
6208+ fi
6209+fi
6210+
6211+: ${AR=ar}
6212+: ${AR_FLAGS=cru}
6213+
6214+
6215+
6216+
6217+
6218+
6219+
6220+
6221+
6222+
6223+
6224+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6225+$as_echo_n "checking for archiver @FILE support... " >&6; }
6226+if ${lt_cv_ar_at_file+:} false; then :
6227+ $as_echo_n "(cached) " >&6
6228+else
6229+ lt_cv_ar_at_file=no
6230+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231+/* end confdefs.h. */
6232+
6233+int
6234+main ()
6235+{
6236+
6237+ ;
6238+ return 0;
6239+}
6240+_ACEOF
6241+if ac_fn_cxx_try_compile "$LINENO"; then :
6242+ echo conftest.$ac_objext > conftest.lst
6243+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6244+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6245+ (eval $lt_ar_try) 2>&5
6246+ ac_status=$?
6247+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248+ test $ac_status = 0; }
6249+ if test "$ac_status" -eq 0; then
6250+ # Ensure the archiver fails upon bogus file names.
6251+ rm -f conftest.$ac_objext libconftest.a
6252+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6253+ (eval $lt_ar_try) 2>&5
6254+ ac_status=$?
6255+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256+ test $ac_status = 0; }
6257+ if test "$ac_status" -ne 0; then
6258+ lt_cv_ar_at_file=@
6259+ fi
6260+ fi
6261+ rm -f conftest.* libconftest.a
6262+
6263+fi
6264+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265+
6266+fi
6267+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6268+$as_echo "$lt_cv_ar_at_file" >&6; }
6269+
6270+if test "x$lt_cv_ar_at_file" = xno; then
6271+ archiver_list_spec=
6272+else
6273+ archiver_list_spec=$lt_cv_ar_at_file
6274+fi
6275+
6276+
6277+
6278+
6279+
6280+
6281+
6282+if test -n "$ac_tool_prefix"; then
6283+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6284+set dummy ${ac_tool_prefix}strip; ac_word=$2
6285+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286+$as_echo_n "checking for $ac_word... " >&6; }
6287+if ${ac_cv_prog_STRIP+:} false; then :
6288+ $as_echo_n "(cached) " >&6
6289+else
6290+ if test -n "$STRIP"; then
6291+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6292+else
6293+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294+for as_dir in $PATH
6295+do
6296+ IFS=$as_save_IFS
6297+ test -z "$as_dir" && as_dir=.
6298+ for ac_exec_ext in '' $ac_executable_extensions; do
6299+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6301+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302+ break 2
6303+ fi
6304+done
6305+ done
6306+IFS=$as_save_IFS
6307+
6308+fi
6309+fi
6310+STRIP=$ac_cv_prog_STRIP
6311+if test -n "$STRIP"; then
6312+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6313+$as_echo "$STRIP" >&6; }
6314+else
6315+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316+$as_echo "no" >&6; }
6317+fi
6318+
6319+
6320+fi
6321+if test -z "$ac_cv_prog_STRIP"; then
6322+ ac_ct_STRIP=$STRIP
6323+ # Extract the first word of "strip", so it can be a program name with args.
6324+set dummy strip; ac_word=$2
6325+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326+$as_echo_n "checking for $ac_word... " >&6; }
6327+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6328+ $as_echo_n "(cached) " >&6
6329+else
6330+ if test -n "$ac_ct_STRIP"; then
6331+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6332+else
6333+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334+for as_dir in $PATH
6335+do
6336+ IFS=$as_save_IFS
6337+ test -z "$as_dir" && as_dir=.
6338+ for ac_exec_ext in '' $ac_executable_extensions; do
6339+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340+ ac_cv_prog_ac_ct_STRIP="strip"
6341+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342+ break 2
6343+ fi
6344+done
6345+ done
6346+IFS=$as_save_IFS
6347+
6348+fi
6349+fi
6350+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6351+if test -n "$ac_ct_STRIP"; then
6352+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6353+$as_echo "$ac_ct_STRIP" >&6; }
6354+else
6355+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356+$as_echo "no" >&6; }
6357+fi
6358+
6359+ if test "x$ac_ct_STRIP" = x; then
6360+ STRIP=":"
6361+ else
6362+ case $cross_compiling:$ac_tool_warned in
6363+yes:)
6364+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366+ac_tool_warned=yes ;;
6367+esac
6368+ STRIP=$ac_ct_STRIP
6369+ fi
6370+else
6371+ STRIP="$ac_cv_prog_STRIP"
6372+fi
6373+
6374+test -z "$STRIP" && STRIP=:
6375+
6376+
6377+
6378+
6379+
6380+
6381+if test -n "$ac_tool_prefix"; then
6382+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6383+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6384+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385+$as_echo_n "checking for $ac_word... " >&6; }
6386+if ${ac_cv_prog_RANLIB+:} false; then :
6387+ $as_echo_n "(cached) " >&6
6388+else
6389+ if test -n "$RANLIB"; then
6390+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6391+else
6392+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393+for as_dir in $PATH
6394+do
6395+ IFS=$as_save_IFS
6396+ test -z "$as_dir" && as_dir=.
6397+ for ac_exec_ext in '' $ac_executable_extensions; do
6398+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6400+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401+ break 2
6402+ fi
6403+done
6404+ done
6405+IFS=$as_save_IFS
6406+
6407+fi
6408+fi
6409+RANLIB=$ac_cv_prog_RANLIB
6410+if test -n "$RANLIB"; then
6411+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6412+$as_echo "$RANLIB" >&6; }
6413+else
6414+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415+$as_echo "no" >&6; }
6416+fi
6417+
6418+
6419+fi
6420+if test -z "$ac_cv_prog_RANLIB"; then
6421+ ac_ct_RANLIB=$RANLIB
6422+ # Extract the first word of "ranlib", so it can be a program name with args.
6423+set dummy ranlib; ac_word=$2
6424+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425+$as_echo_n "checking for $ac_word... " >&6; }
6426+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6427+ $as_echo_n "(cached) " >&6
6428+else
6429+ if test -n "$ac_ct_RANLIB"; then
6430+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6431+else
6432+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433+for as_dir in $PATH
6434+do
6435+ IFS=$as_save_IFS
6436+ test -z "$as_dir" && as_dir=.
6437+ for ac_exec_ext in '' $ac_executable_extensions; do
6438+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439+ ac_cv_prog_ac_ct_RANLIB="ranlib"
6440+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441+ break 2
6442+ fi
6443+done
6444+ done
6445+IFS=$as_save_IFS
6446+
6447+fi
6448+fi
6449+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6450+if test -n "$ac_ct_RANLIB"; then
6451+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6452+$as_echo "$ac_ct_RANLIB" >&6; }
6453+else
6454+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455+$as_echo "no" >&6; }
6456+fi
6457+
6458+ if test "x$ac_ct_RANLIB" = x; then
6459+ RANLIB=":"
6460+ else
6461+ case $cross_compiling:$ac_tool_warned in
6462+yes:)
6463+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465+ac_tool_warned=yes ;;
6466+esac
6467+ RANLIB=$ac_ct_RANLIB
6468+ fi
6469+else
6470+ RANLIB="$ac_cv_prog_RANLIB"
6471+fi
6472+
6473+test -z "$RANLIB" && RANLIB=:
6474+
6475+
6476+
6477+
6478+
6479+
6480+# Determine commands to create old-style static archives.
6481+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6482+old_postinstall_cmds='chmod 644 $oldlib'
6483+old_postuninstall_cmds=
6484+
6485+if test -n "$RANLIB"; then
6486+ case $host_os in
6487+ openbsd*)
6488+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6489+ ;;
6490+ *)
6491+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6492+ ;;
6493+ esac
6494+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6495+fi
6496+
6497+case $host_os in
6498+ darwin*)
6499+ lock_old_archive_extraction=yes ;;
6500+ *)
6501+ lock_old_archive_extraction=no ;;
6502+esac
6503+
6504+
6505+
6506+
6507+
6508+
6509+
6510+
6511+
6512+
6513+
6514+
6515+
6516+
6517+
6518+
6519+
6520+
6521+
6522+
6523+
6524+
6525+
6526+
6527+
6528+
6529+
6530+
6531+
6532+
6533+
6534+
6535+
6536+
6537+
6538+
6539+
6540+
6541+
6542+# If no C compiler was specified, use CC.
6543+LTCC=${LTCC-"$CC"}
6544+
6545+# If no C compiler flags were specified, use CFLAGS.
6546+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6547+
6548+# Allow CC to be a program name with arguments.
6549+compiler=$CC
6550+
6551+
6552+# Check for command to grab the raw symbol name followed by C symbol from nm.
6553+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6554+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6555+if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6556+ $as_echo_n "(cached) " >&6
6557+else
6558+
6559+# These are sane defaults that work on at least a few old systems.
6560+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6561+
6562+# Character class describing NM global symbol codes.
6563+symcode='[BCDEGRST]'
6564+
6565+# Regexp to match symbols that can be accessed directly from C.
6566+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6567+
6568+# Define system-specific variables.
6569+case $host_os in
6570+aix*)
6571+ symcode='[BCDT]'
6572+ ;;
6573+cygwin* | mingw* | pw32* | cegcc*)
6574+ symcode='[ABCDGISTW]'
6575+ ;;
6576+hpux*)
6577+ if test "$host_cpu" = ia64; then
6578+ symcode='[ABCDEGRST]'
6579+ fi
6580+ ;;
6581+irix* | nonstopux*)
6582+ symcode='[BCDEGRST]'
6583+ ;;
6584+osf*)
6585+ symcode='[BCDEGQRST]'
6586+ ;;
6587+solaris*)
6588+ symcode='[BDRT]'
6589+ ;;
6590+sco3.2v5*)
6591+ symcode='[DT]'
6592+ ;;
6593+sysv4.2uw2*)
6594+ symcode='[DT]'
6595+ ;;
6596+sysv5* | sco5v6* | unixware* | OpenUNIX*)
6597+ symcode='[ABDT]'
6598+ ;;
6599+sysv4)
6600+ symcode='[DFNSTU]'
6601+ ;;
6602+esac
6603+
6604+# If we're using GNU nm, then use its standard symbol codes.
6605+case `$NM -V 2>&1` in
6606+*GNU* | *'with BFD'*)
6607+ symcode='[ABCDGIRSTW]' ;;
6608+esac
6609+
6610+# Transform an extracted symbol line into a proper C declaration.
6611+# Some systems (esp. on ia64) link data and code symbols differently,
6612+# so use this general approach.
6613+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6614+
6615+# Transform an extracted symbol line into symbol name and symbol address
6616+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6617+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6618+
6619+# Handle CRLF in mingw tool chain
6620+opt_cr=
6621+case $build_os in
6622+mingw*)
6623+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6624+ ;;
6625+esac
6626+
6627+# Try without a prefix underscore, then with it.
6628+for ac_symprfx in "" "_"; do
6629+
6630+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631+ symxfrm="\\1 $ac_symprfx\\2 \\2"
6632+
6633+ # Write the raw and C identifiers.
6634+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6635+ # Fake it for dumpbin and say T for any non-static function
6636+ # and D for any global variable.
6637+ # Also find C++ and __fastcall symbols from MSVC++,
6638+ # which start with @ or ?.
6639+ lt_cv_sys_global_symbol_pipe="$AWK '"\
6640+" {last_section=section; section=\$ 3};"\
6641+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6642+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6643+" \$ 0!~/External *\|/{next};"\
6644+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6645+" {if(hide[section]) next};"\
6646+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6647+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6648+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6649+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6650+" ' prfx=^$ac_symprfx"
6651+ else
6652+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6653+ fi
6654+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6655+
6656+ # Check to see that the pipe works correctly.
6657+ pipe_works=no
6658+
6659+ rm -f conftest*
6660+ cat > conftest.$ac_ext <<_LT_EOF
6661+#ifdef __cplusplus
6662+extern "C" {
6663+#endif
6664+char nm_test_var;
6665+void nm_test_func(void);
6666+void nm_test_func(void){}
6667+#ifdef __cplusplus
6668+}
6669+#endif
6670+int main(){nm_test_var='a';nm_test_func();return(0);}
6671+_LT_EOF
6672+
6673+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674+ (eval $ac_compile) 2>&5
6675+ ac_status=$?
6676+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677+ test $ac_status = 0; }; then
6678+ # Now try to grab the symbols.
6679+ nlist=conftest.nm
6680+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6681+ (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6682+ ac_status=$?
6683+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684+ test $ac_status = 0; } && test -s "$nlist"; then
6685+ # Try sorting and uniquifying the output.
6686+ if sort "$nlist" | uniq > "$nlist"T; then
6687+ mv -f "$nlist"T "$nlist"
6688+ else
6689+ rm -f "$nlist"T
6690+ fi
6691+
6692+ # Make sure that we snagged all the symbols we need.
6693+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6694+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6695+ cat <<_LT_EOF > conftest.$ac_ext
6696+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6697+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6698+/* DATA imports from DLLs on WIN32 con't be const, because runtime
6699+ relocations are performed -- see ld's documentation on pseudo-relocs. */
6700+# define LT_DLSYM_CONST
6701+#elif defined(__osf__)
6702+/* This system does not cope well with relocations in const data. */
6703+# define LT_DLSYM_CONST
6704+#else
6705+# define LT_DLSYM_CONST const
6706+#endif
6707+
6708+#ifdef __cplusplus
6709+extern "C" {
6710+#endif
6711+
6712+_LT_EOF
6713+ # Now generate the symbol file.
6714+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6715+
6716+ cat <<_LT_EOF >> conftest.$ac_ext
6717+
6718+/* The mapping between symbol names and symbols. */
6719+LT_DLSYM_CONST struct {
6720+ const char *name;
6721+ void *address;
6722+}
6723+lt__PROGRAM__LTX_preloaded_symbols[] =
6724+{
6725+ { "@PROGRAM@", (void *) 0 },
6726+_LT_EOF
6727+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6728+ cat <<\_LT_EOF >> conftest.$ac_ext
6729+ {0, (void *) 0}
6730+};
6731+
6732+/* This works around a problem in FreeBSD linker */
6733+#ifdef FREEBSD_WORKAROUND
6734+static const void *lt_preloaded_setup() {
6735+ return lt__PROGRAM__LTX_preloaded_symbols;
6736+}
6737+#endif
6738+
6739+#ifdef __cplusplus
6740+}
6741+#endif
6742+_LT_EOF
6743+ # Now try linking the two files.
6744+ mv conftest.$ac_objext conftstm.$ac_objext
6745+ lt_globsym_save_LIBS=$LIBS
6746+ lt_globsym_save_CFLAGS=$CFLAGS
6747+ LIBS="conftstm.$ac_objext"
6748+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6749+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6750+ (eval $ac_link) 2>&5
6751+ ac_status=$?
6752+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753+ test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6754+ pipe_works=yes
6755+ fi
6756+ LIBS=$lt_globsym_save_LIBS
6757+ CFLAGS=$lt_globsym_save_CFLAGS
6758+ else
6759+ echo "cannot find nm_test_func in $nlist" >&5
6760+ fi
6761+ else
6762+ echo "cannot find nm_test_var in $nlist" >&5
6763+ fi
6764+ else
6765+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6766+ fi
6767+ else
6768+ echo "$progname: failed program was:" >&5
6769+ cat conftest.$ac_ext >&5
6770+ fi
6771+ rm -rf conftest* conftst*
6772+
6773+ # Do not use the global_symbol_pipe unless it works.
6774+ if test "$pipe_works" = yes; then
6775+ break
6776+ else
6777+ lt_cv_sys_global_symbol_pipe=
6778+ fi
6779+done
6780+
6781+fi
6782+
6783+if test -z "$lt_cv_sys_global_symbol_pipe"; then
6784+ lt_cv_sys_global_symbol_to_cdecl=
6785+fi
6786+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6787+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6788+$as_echo "failed" >&6; }
6789+else
6790+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6791+$as_echo "ok" >&6; }
6792+fi
6793+
6794+# Response file support.
6795+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6796+ nm_file_list_spec='@'
6797+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6798+ nm_file_list_spec='@'
6799+fi
6800+
6801+
6802+
6803+
6804+
6805+
6806+
6807+
6808+
6809+
6810+
6811+
6812+
6813+
6814+
6815+
6816+
6817+
6818+
6819+
6820+
6821+
6822+
6823+
6824+
6825+
6826+
6827+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6828+$as_echo_n "checking for sysroot... " >&6; }
6829+
6830+# Check whether --with-sysroot was given.
6831+if test "${with_sysroot+set}" = set; then :
6832+ withval=$with_sysroot;
6833+else
6834+ with_sysroot=no
6835+fi
6836+
6837+
6838+lt_sysroot=
6839+case ${with_sysroot} in #(
6840+ yes)
6841+ if test "$GCC" = yes; then
6842+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6843+ fi
6844+ ;; #(
6845+ /*)
6846+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6847+ ;; #(
6848+ no|'')
6849+ ;; #(
6850+ *)
6851+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6852+$as_echo "${with_sysroot}" >&6; }
6853+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6854+ ;;
6855+esac
6856+
6857+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6858+$as_echo "${lt_sysroot:-no}" >&6; }
6859+
6860+
6861+
6862+
6863+
6864+
6865+# Check whether --enable-libtool-lock was given.
6866+if test "${enable_libtool_lock+set}" = set; then :
6867+ enableval=$enable_libtool_lock;
6868+fi
6869+
6870+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6871+
6872+# Some flags need to be propagated to the compiler or linker for good
6873+# libtool support.
6874+case $host in
6875+ia64-*-hpux*)
6876+ # Find out which ABI we are using.
6877+ echo 'int i;' > conftest.$ac_ext
6878+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879+ (eval $ac_compile) 2>&5
6880+ ac_status=$?
6881+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882+ test $ac_status = 0; }; then
6883+ case `/usr/bin/file conftest.$ac_objext` in
6884+ *ELF-32*)
6885+ HPUX_IA64_MODE="32"
6886+ ;;
6887+ *ELF-64*)
6888+ HPUX_IA64_MODE="64"
6889+ ;;
6890+ esac
6891+ fi
6892+ rm -rf conftest*
6893+ ;;
6894+*-*-irix6*)
6895+ # Find out which ABI we are using.
6896+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6897+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898+ (eval $ac_compile) 2>&5
6899+ ac_status=$?
6900+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901+ test $ac_status = 0; }; then
6902+ if test "$lt_cv_prog_gnu_ld" = yes; then
6903+ case `/usr/bin/file conftest.$ac_objext` in
6904+ *32-bit*)
6905+ LD="${LD-ld} -melf32bsmip"
6906+ ;;
6907+ *N32*)
6908+ LD="${LD-ld} -melf32bmipn32"
6909+ ;;
6910+ *64-bit*)
6911+ LD="${LD-ld} -melf64bmip"
6912+ ;;
6913+ esac
6914+ else
6915+ case `/usr/bin/file conftest.$ac_objext` in
6916+ *32-bit*)
6917+ LD="${LD-ld} -32"
6918+ ;;
6919+ *N32*)
6920+ LD="${LD-ld} -n32"
6921+ ;;
6922+ *64-bit*)
6923+ LD="${LD-ld} -64"
6924+ ;;
6925+ esac
6926+ fi
6927+ fi
6928+ rm -rf conftest*
6929+ ;;
6930+
6931+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6932+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6933+ # Find out which ABI we are using.
6934+ echo 'int i;' > conftest.$ac_ext
6935+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936+ (eval $ac_compile) 2>&5
6937+ ac_status=$?
6938+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939+ test $ac_status = 0; }; then
6940+ case `/usr/bin/file conftest.o` in
6941+ *32-bit*)
6942+ case $host in
6943+ x86_64-*kfreebsd*-gnu)
6944+ LD="${LD-ld} -m elf_i386_fbsd"
6945+ ;;
6946+ x86_64-*linux*)
6947+ LD="${LD-ld} -m elf_i386"
6948+ ;;
6949+ ppc64-*linux*|powerpc64-*linux*)
6950+ LD="${LD-ld} -m elf32ppclinux"
6951+ ;;
6952+ s390x-*linux*)
6953+ LD="${LD-ld} -m elf_s390"
6954+ ;;
6955+ sparc64-*linux*)
6956+ LD="${LD-ld} -m elf32_sparc"
6957+ ;;
6958+ esac
6959+ ;;
6960+ *64-bit*)
6961+ case $host in
6962+ x86_64-*kfreebsd*-gnu)
6963+ LD="${LD-ld} -m elf_x86_64_fbsd"
6964+ ;;
6965+ x86_64-*linux*)
6966+ LD="${LD-ld} -m elf_x86_64"
6967+ ;;
6968+ ppc*-*linux*|powerpc*-*linux*)
6969+ LD="${LD-ld} -m elf64ppc"
6970+ ;;
6971+ s390*-*linux*|s390*-*tpf*)
6972+ LD="${LD-ld} -m elf64_s390"
6973+ ;;
6974+ sparc*-*linux*)
6975+ LD="${LD-ld} -m elf64_sparc"
6976+ ;;
6977+ esac
6978+ ;;
6979+ esac
6980+ fi
6981+ rm -rf conftest*
6982+ ;;
6983+
6984+*-*-sco3.2v5*)
6985+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6986+ SAVE_CFLAGS="$CFLAGS"
6987+ CFLAGS="$CFLAGS -belf"
6988+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6989+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6990+if ${lt_cv_cc_needs_belf+:} false; then :
6991+ $as_echo_n "(cached) " >&6
6992+else
6993+ ac_ext=c
6994+ac_cpp='$CPP $CPPFLAGS'
6995+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997+ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998+
6999+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000+/* end confdefs.h. */
7001+
7002+int
7003+main ()
7004+{
7005+
7006+ ;
7007+ return 0;
7008+}
7009+_ACEOF
7010+if ac_fn_c_try_link "$LINENO"; then :
7011+ lt_cv_cc_needs_belf=yes
7012+else
7013+ lt_cv_cc_needs_belf=no
7014+fi
7015+rm -f core conftest.err conftest.$ac_objext \
7016+ conftest$ac_exeext conftest.$ac_ext
7017+ ac_ext=c
7018+ac_cpp='$CPP $CPPFLAGS'
7019+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021+ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022+
7023+fi
7024+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7025+$as_echo "$lt_cv_cc_needs_belf" >&6; }
7026+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7027+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7028+ CFLAGS="$SAVE_CFLAGS"
7029+ fi
7030+ ;;
7031+*-*solaris*)
7032+ # Find out which ABI we are using.
7033+ echo 'int i;' > conftest.$ac_ext
7034+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7035+ (eval $ac_compile) 2>&5
7036+ ac_status=$?
7037+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038+ test $ac_status = 0; }; then
7039+ case `/usr/bin/file conftest.o` in
7040+ *64-bit*)
7041+ case $lt_cv_prog_gnu_ld in
7042+ yes*)
7043+ case $host in
7044+ i?86-*-solaris*)
7045+ LD="${LD-ld} -m elf_x86_64"
7046+ ;;
7047+ sparc*-*-solaris*)
7048+ LD="${LD-ld} -m elf64_sparc"
7049+ ;;
7050+ esac
7051+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7052+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7053+ LD="${LD-ld}_sol2"
7054+ fi
7055+ ;;
7056+ *)
7057+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7058+ LD="${LD-ld} -64"
7059+ fi
7060+ ;;
7061+ esac
7062+ ;;
7063+ esac
7064+ fi
7065+ rm -rf conftest*
7066+ ;;
7067+esac
7068+
7069+need_locks="$enable_libtool_lock"
7070+
7071+if test -n "$ac_tool_prefix"; then
7072+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7073+set dummy ${ac_tool_prefix}mt; ac_word=$2
7074+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075+$as_echo_n "checking for $ac_word... " >&6; }
7076+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7077+ $as_echo_n "(cached) " >&6
7078+else
7079+ if test -n "$MANIFEST_TOOL"; then
7080+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7081+else
7082+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083+for as_dir in $PATH
7084+do
7085+ IFS=$as_save_IFS
7086+ test -z "$as_dir" && as_dir=.
7087+ for ac_exec_ext in '' $ac_executable_extensions; do
7088+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7090+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091+ break 2
7092+ fi
7093+done
7094+ done
7095+IFS=$as_save_IFS
7096+
7097+fi
7098+fi
7099+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7100+if test -n "$MANIFEST_TOOL"; then
7101+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7102+$as_echo "$MANIFEST_TOOL" >&6; }
7103+else
7104+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105+$as_echo "no" >&6; }
7106+fi
7107+
7108+
7109+fi
7110+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7111+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7112+ # Extract the first word of "mt", so it can be a program name with args.
7113+set dummy mt; ac_word=$2
7114+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115+$as_echo_n "checking for $ac_word... " >&6; }
7116+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7117+ $as_echo_n "(cached) " >&6
7118+else
7119+ if test -n "$ac_ct_MANIFEST_TOOL"; then
7120+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7121+else
7122+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123+for as_dir in $PATH
7124+do
7125+ IFS=$as_save_IFS
7126+ test -z "$as_dir" && as_dir=.
7127+ for ac_exec_ext in '' $ac_executable_extensions; do
7128+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7130+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131+ break 2
7132+ fi
7133+done
7134+ done
7135+IFS=$as_save_IFS
7136+
7137+fi
7138+fi
7139+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7140+if test -n "$ac_ct_MANIFEST_TOOL"; then
7141+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7142+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7143+else
7144+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145+$as_echo "no" >&6; }
7146+fi
7147+
7148+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
7149+ MANIFEST_TOOL=":"
7150+ else
7151+ case $cross_compiling:$ac_tool_warned in
7152+yes:)
7153+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155+ac_tool_warned=yes ;;
7156+esac
7157+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7158+ fi
7159+else
7160+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7161+fi
7162+
7163+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7164+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7165+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7166+if ${lt_cv_path_mainfest_tool+:} false; then :
7167+ $as_echo_n "(cached) " >&6
7168+else
7169+ lt_cv_path_mainfest_tool=no
7170+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7171+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7172+ cat conftest.err >&5
7173+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7174+ lt_cv_path_mainfest_tool=yes
7175+ fi
7176+ rm -f conftest*
7177+fi
7178+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7179+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7180+if test "x$lt_cv_path_mainfest_tool" != xyes; then
7181+ MANIFEST_TOOL=:
7182+fi
7183+
7184+
7185+
7186+
7187+
7188+
7189+ case $host_os in
7190+ rhapsody* | darwin*)
7191+ if test -n "$ac_tool_prefix"; then
7192+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7193+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7194+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195+$as_echo_n "checking for $ac_word... " >&6; }
7196+if ${ac_cv_prog_DSYMUTIL+:} false; then :
7197+ $as_echo_n "(cached) " >&6
7198+else
7199+ if test -n "$DSYMUTIL"; then
7200+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7201+else
7202+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203+for as_dir in $PATH
7204+do
7205+ IFS=$as_save_IFS
7206+ test -z "$as_dir" && as_dir=.
7207+ for ac_exec_ext in '' $ac_executable_extensions; do
7208+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7210+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211+ break 2
7212+ fi
7213+done
7214+ done
7215+IFS=$as_save_IFS
7216+
7217+fi
7218+fi
7219+DSYMUTIL=$ac_cv_prog_DSYMUTIL
7220+if test -n "$DSYMUTIL"; then
7221+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7222+$as_echo "$DSYMUTIL" >&6; }
7223+else
7224+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225+$as_echo "no" >&6; }
7226+fi
7227+
7228+
7229+fi
7230+if test -z "$ac_cv_prog_DSYMUTIL"; then
7231+ ac_ct_DSYMUTIL=$DSYMUTIL
7232+ # Extract the first word of "dsymutil", so it can be a program name with args.
7233+set dummy dsymutil; ac_word=$2
7234+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235+$as_echo_n "checking for $ac_word... " >&6; }
7236+if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7237+ $as_echo_n "(cached) " >&6
7238+else
7239+ if test -n "$ac_ct_DSYMUTIL"; then
7240+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7241+else
7242+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243+for as_dir in $PATH
7244+do
7245+ IFS=$as_save_IFS
7246+ test -z "$as_dir" && as_dir=.
7247+ for ac_exec_ext in '' $ac_executable_extensions; do
7248+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7250+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251+ break 2
7252+ fi
7253+done
7254+ done
7255+IFS=$as_save_IFS
7256+
7257+fi
7258+fi
7259+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7260+if test -n "$ac_ct_DSYMUTIL"; then
7261+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7262+$as_echo "$ac_ct_DSYMUTIL" >&6; }
7263+else
7264+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265+$as_echo "no" >&6; }
7266+fi
7267+
7268+ if test "x$ac_ct_DSYMUTIL" = x; then
7269+ DSYMUTIL=":"
7270+ else
7271+ case $cross_compiling:$ac_tool_warned in
7272+yes:)
7273+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275+ac_tool_warned=yes ;;
7276+esac
7277+ DSYMUTIL=$ac_ct_DSYMUTIL
7278+ fi
7279+else
7280+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7281+fi
7282+
7283+ if test -n "$ac_tool_prefix"; then
7284+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7285+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7286+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287+$as_echo_n "checking for $ac_word... " >&6; }
7288+if ${ac_cv_prog_NMEDIT+:} false; then :
7289+ $as_echo_n "(cached) " >&6
7290+else
7291+ if test -n "$NMEDIT"; then
7292+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7293+else
7294+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295+for as_dir in $PATH
7296+do
7297+ IFS=$as_save_IFS
7298+ test -z "$as_dir" && as_dir=.
7299+ for ac_exec_ext in '' $ac_executable_extensions; do
7300+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7302+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303+ break 2
7304+ fi
7305+done
7306+ done
7307+IFS=$as_save_IFS
7308+
7309+fi
7310+fi
7311+NMEDIT=$ac_cv_prog_NMEDIT
7312+if test -n "$NMEDIT"; then
7313+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7314+$as_echo "$NMEDIT" >&6; }
7315+else
7316+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317+$as_echo "no" >&6; }
7318+fi
7319+
7320+
7321+fi
7322+if test -z "$ac_cv_prog_NMEDIT"; then
7323+ ac_ct_NMEDIT=$NMEDIT
7324+ # Extract the first word of "nmedit", so it can be a program name with args.
7325+set dummy nmedit; ac_word=$2
7326+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327+$as_echo_n "checking for $ac_word... " >&6; }
7328+if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7329+ $as_echo_n "(cached) " >&6
7330+else
7331+ if test -n "$ac_ct_NMEDIT"; then
7332+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7333+else
7334+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335+for as_dir in $PATH
7336+do
7337+ IFS=$as_save_IFS
7338+ test -z "$as_dir" && as_dir=.
7339+ for ac_exec_ext in '' $ac_executable_extensions; do
7340+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
7342+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343+ break 2
7344+ fi
7345+done
7346+ done
7347+IFS=$as_save_IFS
7348+
7349+fi
7350+fi
7351+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7352+if test -n "$ac_ct_NMEDIT"; then
7353+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7354+$as_echo "$ac_ct_NMEDIT" >&6; }
7355+else
7356+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357+$as_echo "no" >&6; }
7358+fi
7359+
7360+ if test "x$ac_ct_NMEDIT" = x; then
7361+ NMEDIT=":"
7362+ else
7363+ case $cross_compiling:$ac_tool_warned in
7364+yes:)
7365+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367+ac_tool_warned=yes ;;
7368+esac
7369+ NMEDIT=$ac_ct_NMEDIT
7370+ fi
7371+else
7372+ NMEDIT="$ac_cv_prog_NMEDIT"
7373+fi
7374+
7375+ if test -n "$ac_tool_prefix"; then
7376+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7377+set dummy ${ac_tool_prefix}lipo; ac_word=$2
7378+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379+$as_echo_n "checking for $ac_word... " >&6; }
7380+if ${ac_cv_prog_LIPO+:} false; then :
7381+ $as_echo_n "(cached) " >&6
7382+else
7383+ if test -n "$LIPO"; then
7384+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7385+else
7386+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387+for as_dir in $PATH
7388+do
7389+ IFS=$as_save_IFS
7390+ test -z "$as_dir" && as_dir=.
7391+ for ac_exec_ext in '' $ac_executable_extensions; do
7392+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7394+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395+ break 2
7396+ fi
7397+done
7398+ done
7399+IFS=$as_save_IFS
7400+
7401+fi
7402+fi
7403+LIPO=$ac_cv_prog_LIPO
7404+if test -n "$LIPO"; then
7405+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7406+$as_echo "$LIPO" >&6; }
7407+else
7408+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409+$as_echo "no" >&6; }
7410+fi
7411+
7412+
7413+fi
7414+if test -z "$ac_cv_prog_LIPO"; then
7415+ ac_ct_LIPO=$LIPO
7416+ # Extract the first word of "lipo", so it can be a program name with args.
7417+set dummy lipo; ac_word=$2
7418+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419+$as_echo_n "checking for $ac_word... " >&6; }
7420+if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7421+ $as_echo_n "(cached) " >&6
7422+else
7423+ if test -n "$ac_ct_LIPO"; then
7424+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7425+else
7426+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427+for as_dir in $PATH
7428+do
7429+ IFS=$as_save_IFS
7430+ test -z "$as_dir" && as_dir=.
7431+ for ac_exec_ext in '' $ac_executable_extensions; do
7432+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433+ ac_cv_prog_ac_ct_LIPO="lipo"
7434+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435+ break 2
7436+ fi
7437+done
7438+ done
7439+IFS=$as_save_IFS
7440+
7441+fi
7442+fi
7443+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7444+if test -n "$ac_ct_LIPO"; then
7445+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7446+$as_echo "$ac_ct_LIPO" >&6; }
7447+else
7448+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449+$as_echo "no" >&6; }
7450+fi
7451+
7452+ if test "x$ac_ct_LIPO" = x; then
7453+ LIPO=":"
7454+ else
7455+ case $cross_compiling:$ac_tool_warned in
7456+yes:)
7457+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459+ac_tool_warned=yes ;;
7460+esac
7461+ LIPO=$ac_ct_LIPO
7462+ fi
7463+else
7464+ LIPO="$ac_cv_prog_LIPO"
7465+fi
7466+
7467+ if test -n "$ac_tool_prefix"; then
7468+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7469+set dummy ${ac_tool_prefix}otool; ac_word=$2
7470+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471+$as_echo_n "checking for $ac_word... " >&6; }
7472+if ${ac_cv_prog_OTOOL+:} false; then :
7473+ $as_echo_n "(cached) " >&6
7474+else
7475+ if test -n "$OTOOL"; then
7476+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7477+else
7478+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479+for as_dir in $PATH
7480+do
7481+ IFS=$as_save_IFS
7482+ test -z "$as_dir" && as_dir=.
7483+ for ac_exec_ext in '' $ac_executable_extensions; do
7484+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7486+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487+ break 2
7488+ fi
7489+done
7490+ done
7491+IFS=$as_save_IFS
7492+
7493+fi
7494+fi
7495+OTOOL=$ac_cv_prog_OTOOL
7496+if test -n "$OTOOL"; then
7497+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7498+$as_echo "$OTOOL" >&6; }
7499+else
7500+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501+$as_echo "no" >&6; }
7502+fi
7503+
7504+
7505+fi
7506+if test -z "$ac_cv_prog_OTOOL"; then
7507+ ac_ct_OTOOL=$OTOOL
7508+ # Extract the first word of "otool", so it can be a program name with args.
7509+set dummy otool; ac_word=$2
7510+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511+$as_echo_n "checking for $ac_word... " >&6; }
7512+if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7513+ $as_echo_n "(cached) " >&6
7514+else
7515+ if test -n "$ac_ct_OTOOL"; then
7516+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7517+else
7518+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519+for as_dir in $PATH
7520+do
7521+ IFS=$as_save_IFS
7522+ test -z "$as_dir" && as_dir=.
7523+ for ac_exec_ext in '' $ac_executable_extensions; do
7524+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525+ ac_cv_prog_ac_ct_OTOOL="otool"
7526+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527+ break 2
7528+ fi
7529+done
7530+ done
7531+IFS=$as_save_IFS
7532+
7533+fi
7534+fi
7535+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7536+if test -n "$ac_ct_OTOOL"; then
7537+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7538+$as_echo "$ac_ct_OTOOL" >&6; }
7539+else
7540+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541+$as_echo "no" >&6; }
7542+fi
7543+
7544+ if test "x$ac_ct_OTOOL" = x; then
7545+ OTOOL=":"
7546+ else
7547+ case $cross_compiling:$ac_tool_warned in
7548+yes:)
7549+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551+ac_tool_warned=yes ;;
7552+esac
7553+ OTOOL=$ac_ct_OTOOL
7554+ fi
7555+else
7556+ OTOOL="$ac_cv_prog_OTOOL"
7557+fi
7558+
7559+ if test -n "$ac_tool_prefix"; then
7560+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7561+set dummy ${ac_tool_prefix}otool64; ac_word=$2
7562+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563+$as_echo_n "checking for $ac_word... " >&6; }
7564+if ${ac_cv_prog_OTOOL64+:} false; then :
7565+ $as_echo_n "(cached) " >&6
7566+else
7567+ if test -n "$OTOOL64"; then
7568+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7569+else
7570+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571+for as_dir in $PATH
7572+do
7573+ IFS=$as_save_IFS
7574+ test -z "$as_dir" && as_dir=.
7575+ for ac_exec_ext in '' $ac_executable_extensions; do
7576+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7578+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579+ break 2
7580+ fi
7581+done
7582+ done
7583+IFS=$as_save_IFS
7584+
7585+fi
7586+fi
7587+OTOOL64=$ac_cv_prog_OTOOL64
7588+if test -n "$OTOOL64"; then
7589+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7590+$as_echo "$OTOOL64" >&6; }
7591+else
7592+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593+$as_echo "no" >&6; }
7594+fi
7595+
7596+
7597+fi
7598+if test -z "$ac_cv_prog_OTOOL64"; then
7599+ ac_ct_OTOOL64=$OTOOL64
7600+ # Extract the first word of "otool64", so it can be a program name with args.
7601+set dummy otool64; ac_word=$2
7602+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603+$as_echo_n "checking for $ac_word... " >&6; }
7604+if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7605+ $as_echo_n "(cached) " >&6
7606+else
7607+ if test -n "$ac_ct_OTOOL64"; then
7608+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7609+else
7610+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611+for as_dir in $PATH
7612+do
7613+ IFS=$as_save_IFS
7614+ test -z "$as_dir" && as_dir=.
7615+ for ac_exec_ext in '' $ac_executable_extensions; do
7616+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617+ ac_cv_prog_ac_ct_OTOOL64="otool64"
7618+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619+ break 2
7620+ fi
7621+done
7622+ done
7623+IFS=$as_save_IFS
7624+
7625+fi
7626+fi
7627+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7628+if test -n "$ac_ct_OTOOL64"; then
7629+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7630+$as_echo "$ac_ct_OTOOL64" >&6; }
7631+else
7632+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633+$as_echo "no" >&6; }
7634+fi
7635+
7636+ if test "x$ac_ct_OTOOL64" = x; then
7637+ OTOOL64=":"
7638+ else
7639+ case $cross_compiling:$ac_tool_warned in
7640+yes:)
7641+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643+ac_tool_warned=yes ;;
7644+esac
7645+ OTOOL64=$ac_ct_OTOOL64
7646+ fi
7647+else
7648+ OTOOL64="$ac_cv_prog_OTOOL64"
7649+fi
7650+
7651+
7652+
7653+
7654+
7655+
7656+
7657+
7658+
7659+
7660+
7661+
7662+
7663+
7664+
7665+
7666+
7667+
7668+
7669+
7670+
7671+
7672+
7673+
7674+
7675+
7676+
7677+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7678+$as_echo_n "checking for -single_module linker flag... " >&6; }
7679+if ${lt_cv_apple_cc_single_mod+:} false; then :
7680+ $as_echo_n "(cached) " >&6
7681+else
7682+ lt_cv_apple_cc_single_mod=no
7683+ if test -z "${LT_MULTI_MODULE}"; then
7684+ # By default we will add the -single_module flag. You can override
7685+ # by either setting the environment variable LT_MULTI_MODULE
7686+ # non-empty at configure time, or by adding -multi_module to the
7687+ # link flags.
7688+ rm -rf libconftest.dylib*
7689+ echo "int foo(void){return 1;}" > conftest.c
7690+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7691+-dynamiclib -Wl,-single_module conftest.c" >&5
7692+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7693+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7694+ _lt_result=$?
7695+ # If there is a non-empty error log, and "single_module"
7696+ # appears in it, assume the flag caused a linker warning
7697+ if test -s conftest.err && $GREP single_module conftest.err; then
7698+ cat conftest.err >&5
7699+ # Otherwise, if the output was created with a 0 exit code from
7700+ # the compiler, it worked.
7701+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7702+ lt_cv_apple_cc_single_mod=yes
7703+ else
7704+ cat conftest.err >&5
7705+ fi
7706+ rm -rf libconftest.dylib*
7707+ rm -f conftest.*
7708+ fi
7709+fi
7710+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7711+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7712+
7713+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7714+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7715+if ${lt_cv_ld_exported_symbols_list+:} false; then :
7716+ $as_echo_n "(cached) " >&6
7717+else
7718+ lt_cv_ld_exported_symbols_list=no
7719+ save_LDFLAGS=$LDFLAGS
7720+ echo "_main" > conftest.sym
7721+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7722+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723+/* end confdefs.h. */
7724+
7725+int
7726+main ()
7727+{
7728+
7729+ ;
7730+ return 0;
7731+}
7732+_ACEOF
7733+if ac_fn_c_try_link "$LINENO"; then :
7734+ lt_cv_ld_exported_symbols_list=yes
7735+else
7736+ lt_cv_ld_exported_symbols_list=no
7737+fi
7738+rm -f core conftest.err conftest.$ac_objext \
7739+ conftest$ac_exeext conftest.$ac_ext
7740+ LDFLAGS="$save_LDFLAGS"
7741+
7742+fi
7743+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7744+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7745+
7746+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7747+$as_echo_n "checking for -force_load linker flag... " >&6; }
7748+if ${lt_cv_ld_force_load+:} false; then :
7749+ $as_echo_n "(cached) " >&6
7750+else
7751+ lt_cv_ld_force_load=no
7752+ cat > conftest.c << _LT_EOF
7753+int forced_loaded() { return 2;}
7754+_LT_EOF
7755+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7756+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7757+ echo "$AR cru libconftest.a conftest.o" >&5
7758+ $AR cru libconftest.a conftest.o 2>&5
7759+ echo "$RANLIB libconftest.a" >&5
7760+ $RANLIB libconftest.a 2>&5
7761+ cat > conftest.c << _LT_EOF
7762+int main() { return 0;}
7763+_LT_EOF
7764+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7765+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7766+ _lt_result=$?
7767+ if test -s conftest.err && $GREP force_load conftest.err; then
7768+ cat conftest.err >&5
7769+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7770+ lt_cv_ld_force_load=yes
7771+ else
7772+ cat conftest.err >&5
7773+ fi
7774+ rm -f conftest.err libconftest.a conftest conftest.c
7775+ rm -rf conftest.dSYM
7776+
7777+fi
7778+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7779+$as_echo "$lt_cv_ld_force_load" >&6; }
7780+ case $host_os in
7781+ rhapsody* | darwin1.[012])
7782+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7783+ darwin1.*)
7784+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785+ darwin*) # darwin 5.x on
7786+ # if running on 10.5 or later, the deployment target defaults
7787+ # to the OS version, if on x86, and 10.4, the deployment
7788+ # target defaults to 10.4. Don't you love it?
7789+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7790+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7791+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792+ 10.[012]*)
7793+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7794+ 10.*)
7795+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7796+ esac
7797+ ;;
7798+ esac
7799+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7800+ _lt_dar_single_mod='$single_module'
7801+ fi
7802+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7803+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7804+ else
7805+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806+ fi
7807+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7808+ _lt_dsymutil='~$DSYMUTIL $lib || :'
7809+ else
7810+ _lt_dsymutil=
7811+ fi
7812+ ;;
7813+ esac
7814+
7815+
45727816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
45737817 $as_echo_n "checking for ANSI C header files... " >&6; }
45747818 if ${ac_cv_header_stdc+:} false; then :
@@ -4589,7 +7833,7 @@
45897833 return 0;
45907834 }
45917835 _ACEOF
4592-if ac_fn_cxx_try_compile "$LINENO"; then :
7836+if ac_fn_c_try_compile "$LINENO"; then :
45937837 ac_cv_header_stdc=yes
45947838 else
45957839 ac_cv_header_stdc=no
@@ -4662,7 +7906,7 @@
46627906 return 0;
46637907 }
46647908 _ACEOF
4665-if ac_fn_cxx_try_run "$LINENO"; then :
7909+if ac_fn_c_try_run "$LINENO"; then :
46667910
46677911 else
46687912 ac_cv_header_stdc=no
@@ -4686,7 +7930,7 @@
46867930 inttypes.h stdint.h unistd.h
46877931 do :
46887932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689-ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7933+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
46907934 "
46917935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46927936 cat >>confdefs.h <<_ACEOF
@@ -4698,6 +7942,7325 @@
46987942 done
46997943
47007944
7945+for ac_header in dlfcn.h
7946+do :
7947+ ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7948+"
7949+if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7950+ cat >>confdefs.h <<_ACEOF
7951+#define HAVE_DLFCN_H 1
7952+_ACEOF
7953+
7954+fi
7955+
7956+done
7957+
7958+
7959+
7960+func_stripname_cnf ()
7961+{
7962+ case ${2} in
7963+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7964+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7965+ esac
7966+} # func_stripname_cnf
7967+
7968+
7969+
7970+
7971+
7972+# Set options
7973+
7974+
7975+
7976+ enable_dlopen=no
7977+
7978+
7979+ enable_win32_dll=no
7980+
7981+
7982+ # Check whether --enable-shared was given.
7983+if test "${enable_shared+set}" = set; then :
7984+ enableval=$enable_shared; p=${PACKAGE-default}
7985+ case $enableval in
7986+ yes) enable_shared=yes ;;
7987+ no) enable_shared=no ;;
7988+ *)
7989+ enable_shared=no
7990+ # Look at the argument we got. We use all the common list separators.
7991+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992+ for pkg in $enableval; do
7993+ IFS="$lt_save_ifs"
7994+ if test "X$pkg" = "X$p"; then
7995+ enable_shared=yes
7996+ fi
7997+ done
7998+ IFS="$lt_save_ifs"
7999+ ;;
8000+ esac
8001+else
8002+ enable_shared=yes
8003+fi
8004+
8005+
8006+
8007+
8008+
8009+
8010+
8011+
8012+
8013+ # Check whether --enable-static was given.
8014+if test "${enable_static+set}" = set; then :
8015+ enableval=$enable_static; p=${PACKAGE-default}
8016+ case $enableval in
8017+ yes) enable_static=yes ;;
8018+ no) enable_static=no ;;
8019+ *)
8020+ enable_static=no
8021+ # Look at the argument we got. We use all the common list separators.
8022+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023+ for pkg in $enableval; do
8024+ IFS="$lt_save_ifs"
8025+ if test "X$pkg" = "X$p"; then
8026+ enable_static=yes
8027+ fi
8028+ done
8029+ IFS="$lt_save_ifs"
8030+ ;;
8031+ esac
8032+else
8033+ enable_static=yes
8034+fi
8035+
8036+
8037+
8038+
8039+
8040+
8041+
8042+
8043+
8044+
8045+# Check whether --with-pic was given.
8046+if test "${with_pic+set}" = set; then :
8047+ withval=$with_pic; lt_p=${PACKAGE-default}
8048+ case $withval in
8049+ yes|no) pic_mode=$withval ;;
8050+ *)
8051+ pic_mode=default
8052+ # Look at the argument we got. We use all the common list separators.
8053+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8054+ for lt_pkg in $withval; do
8055+ IFS="$lt_save_ifs"
8056+ if test "X$lt_pkg" = "X$lt_p"; then
8057+ pic_mode=yes
8058+ fi
8059+ done
8060+ IFS="$lt_save_ifs"
8061+ ;;
8062+ esac
8063+else
8064+ pic_mode=default
8065+fi
8066+
8067+
8068+test -z "$pic_mode" && pic_mode=default
8069+
8070+
8071+
8072+
8073+
8074+
8075+
8076+ # Check whether --enable-fast-install was given.
8077+if test "${enable_fast_install+set}" = set; then :
8078+ enableval=$enable_fast_install; p=${PACKAGE-default}
8079+ case $enableval in
8080+ yes) enable_fast_install=yes ;;
8081+ no) enable_fast_install=no ;;
8082+ *)
8083+ enable_fast_install=no
8084+ # Look at the argument we got. We use all the common list separators.
8085+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8086+ for pkg in $enableval; do
8087+ IFS="$lt_save_ifs"
8088+ if test "X$pkg" = "X$p"; then
8089+ enable_fast_install=yes
8090+ fi
8091+ done
8092+ IFS="$lt_save_ifs"
8093+ ;;
8094+ esac
8095+else
8096+ enable_fast_install=yes
8097+fi
8098+
8099+
8100+
8101+
8102+
8103+
8104+
8105+
8106+
8107+
8108+
8109+# This can be used to rebuild libtool when needed
8110+LIBTOOL_DEPS="$ltmain"
8111+
8112+# Always use our own libtool.
8113+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8114+
8115+
8116+
8117+
8118+
8119+
8120+
8121+
8122+
8123+
8124+
8125+
8126+
8127+
8128+
8129+
8130+
8131+
8132+
8133+
8134+
8135+
8136+
8137+
8138+
8139+
8140+
8141+
8142+
8143+
8144+test -z "$LN_S" && LN_S="ln -s"
8145+
8146+
8147+
8148+
8149+
8150+
8151+
8152+
8153+
8154+
8155+
8156+
8157+
8158+
8159+if test -n "${ZSH_VERSION+set}" ; then
8160+ setopt NO_GLOB_SUBST
8161+fi
8162+
8163+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8164+$as_echo_n "checking for objdir... " >&6; }
8165+if ${lt_cv_objdir+:} false; then :
8166+ $as_echo_n "(cached) " >&6
8167+else
8168+ rm -f .libs 2>/dev/null
8169+mkdir .libs 2>/dev/null
8170+if test -d .libs; then
8171+ lt_cv_objdir=.libs
8172+else
8173+ # MS-DOS does not allow filenames that begin with a dot.
8174+ lt_cv_objdir=_libs
8175+fi
8176+rmdir .libs 2>/dev/null
8177+fi
8178+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8179+$as_echo "$lt_cv_objdir" >&6; }
8180+objdir=$lt_cv_objdir
8181+
8182+
8183+
8184+
8185+
8186+cat >>confdefs.h <<_ACEOF
8187+#define LT_OBJDIR "$lt_cv_objdir/"
8188+_ACEOF
8189+
8190+
8191+
8192+
8193+case $host_os in
8194+aix3*)
8195+ # AIX sometimes has problems with the GCC collect2 program. For some
8196+ # reason, if we set the COLLECT_NAMES environment variable, the problems
8197+ # vanish in a puff of smoke.
8198+ if test "X${COLLECT_NAMES+set}" != Xset; then
8199+ COLLECT_NAMES=
8200+ export COLLECT_NAMES
8201+ fi
8202+ ;;
8203+esac
8204+
8205+# Global variables:
8206+ofile=libtool
8207+can_build_shared=yes
8208+
8209+# All known linkers require a `.a' archive for static linking (except MSVC,
8210+# which needs '.lib').
8211+libext=a
8212+
8213+with_gnu_ld="$lt_cv_prog_gnu_ld"
8214+
8215+old_CC="$CC"
8216+old_CFLAGS="$CFLAGS"
8217+
8218+# Set sane defaults for various variables
8219+test -z "$CC" && CC=cc
8220+test -z "$LTCC" && LTCC=$CC
8221+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8222+test -z "$LD" && LD=ld
8223+test -z "$ac_objext" && ac_objext=o
8224+
8225+for cc_temp in $compiler""; do
8226+ case $cc_temp in
8227+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8228+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8229+ \-*) ;;
8230+ *) break;;
8231+ esac
8232+done
8233+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8234+
8235+
8236+# Only perform the check for file, if the check method requires it
8237+test -z "$MAGIC_CMD" && MAGIC_CMD=file
8238+case $deplibs_check_method in
8239+file_magic*)
8240+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8242+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8243+if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244+ $as_echo_n "(cached) " >&6
8245+else
8246+ case $MAGIC_CMD in
8247+[\\/*] | ?:[\\/]*)
8248+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249+ ;;
8250+*)
8251+ lt_save_MAGIC_CMD="$MAGIC_CMD"
8252+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254+ for ac_dir in $ac_dummy; do
8255+ IFS="$lt_save_ifs"
8256+ test -z "$ac_dir" && ac_dir=.
8257+ if test -f $ac_dir/${ac_tool_prefix}file; then
8258+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259+ if test -n "$file_magic_test_file"; then
8260+ case $deplibs_check_method in
8261+ "file_magic "*)
8262+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265+ $EGREP "$file_magic_regex" > /dev/null; then
8266+ :
8267+ else
8268+ cat <<_LT_EOF 1>&2
8269+
8270+*** Warning: the command libtool uses to detect shared libraries,
8271+*** $file_magic_cmd, produces output that libtool cannot recognize.
8272+*** The result is that libtool may fail to recognize shared libraries
8273+*** as such. This will affect the creation of libtool libraries that
8274+*** depend on shared libraries, but programs linked with such libtool
8275+*** libraries will work regardless of this problem. Nevertheless, you
8276+*** may want to report the problem to your system manager and/or to
8277+*** bug-libtool@gnu.org
8278+
8279+_LT_EOF
8280+ fi ;;
8281+ esac
8282+ fi
8283+ break
8284+ fi
8285+ done
8286+ IFS="$lt_save_ifs"
8287+ MAGIC_CMD="$lt_save_MAGIC_CMD"
8288+ ;;
8289+esac
8290+fi
8291+
8292+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293+if test -n "$MAGIC_CMD"; then
8294+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295+$as_echo "$MAGIC_CMD" >&6; }
8296+else
8297+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298+$as_echo "no" >&6; }
8299+fi
8300+
8301+
8302+
8303+
8304+
8305+if test -z "$lt_cv_path_MAGIC_CMD"; then
8306+ if test -n "$ac_tool_prefix"; then
8307+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8308+$as_echo_n "checking for file... " >&6; }
8309+if ${lt_cv_path_MAGIC_CMD+:} false; then :
8310+ $as_echo_n "(cached) " >&6
8311+else
8312+ case $MAGIC_CMD in
8313+[\\/*] | ?:[\\/]*)
8314+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8315+ ;;
8316+*)
8317+ lt_save_MAGIC_CMD="$MAGIC_CMD"
8318+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320+ for ac_dir in $ac_dummy; do
8321+ IFS="$lt_save_ifs"
8322+ test -z "$ac_dir" && ac_dir=.
8323+ if test -f $ac_dir/file; then
8324+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
8325+ if test -n "$file_magic_test_file"; then
8326+ case $deplibs_check_method in
8327+ "file_magic "*)
8328+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331+ $EGREP "$file_magic_regex" > /dev/null; then
8332+ :
8333+ else
8334+ cat <<_LT_EOF 1>&2
8335+
8336+*** Warning: the command libtool uses to detect shared libraries,
8337+*** $file_magic_cmd, produces output that libtool cannot recognize.
8338+*** The result is that libtool may fail to recognize shared libraries
8339+*** as such. This will affect the creation of libtool libraries that
8340+*** depend on shared libraries, but programs linked with such libtool
8341+*** libraries will work regardless of this problem. Nevertheless, you
8342+*** may want to report the problem to your system manager and/or to
8343+*** bug-libtool@gnu.org
8344+
8345+_LT_EOF
8346+ fi ;;
8347+ esac
8348+ fi
8349+ break
8350+ fi
8351+ done
8352+ IFS="$lt_save_ifs"
8353+ MAGIC_CMD="$lt_save_MAGIC_CMD"
8354+ ;;
8355+esac
8356+fi
8357+
8358+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359+if test -n "$MAGIC_CMD"; then
8360+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8361+$as_echo "$MAGIC_CMD" >&6; }
8362+else
8363+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364+$as_echo "no" >&6; }
8365+fi
8366+
8367+
8368+ else
8369+ MAGIC_CMD=:
8370+ fi
8371+fi
8372+
8373+ fi
8374+ ;;
8375+esac
8376+
8377+# Use C for the default configuration in the libtool script
8378+
8379+lt_save_CC="$CC"
8380+ac_ext=c
8381+ac_cpp='$CPP $CPPFLAGS'
8382+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384+ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385+
8386+
8387+# Source file extension for C test sources.
8388+ac_ext=c
8389+
8390+# Object file extension for compiled C test sources.
8391+objext=o
8392+objext=$objext
8393+
8394+# Code to be used in simple compile tests
8395+lt_simple_compile_test_code="int some_variable = 0;"
8396+
8397+# Code to be used in simple link tests
8398+lt_simple_link_test_code='int main(){return(0);}'
8399+
8400+
8401+
8402+
8403+
8404+
8405+
8406+# If no C compiler was specified, use CC.
8407+LTCC=${LTCC-"$CC"}
8408+
8409+# If no C compiler flags were specified, use CFLAGS.
8410+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8411+
8412+# Allow CC to be a program name with arguments.
8413+compiler=$CC
8414+
8415+# Save the default compiler, since it gets overwritten when the other
8416+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8417+compiler_DEFAULT=$CC
8418+
8419+# save warnings/boilerplate of simple test code
8420+ac_outfile=conftest.$ac_objext
8421+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8422+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423+_lt_compiler_boilerplate=`cat conftest.err`
8424+$RM conftest*
8425+
8426+ac_outfile=conftest.$ac_objext
8427+echo "$lt_simple_link_test_code" >conftest.$ac_ext
8428+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8429+_lt_linker_boilerplate=`cat conftest.err`
8430+$RM -r conftest*
8431+
8432+
8433+if test -n "$compiler"; then
8434+
8435+lt_prog_compiler_no_builtin_flag=
8436+
8437+if test "$GCC" = yes; then
8438+ case $cc_basename in
8439+ nvcc*)
8440+ lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8441+ *)
8442+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8443+ esac
8444+
8445+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8446+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8447+if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8448+ $as_echo_n "(cached) " >&6
8449+else
8450+ lt_cv_prog_compiler_rtti_exceptions=no
8451+ ac_outfile=conftest.$ac_objext
8452+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453+ lt_compiler_flag="-fno-rtti -fno-exceptions"
8454+ # Insert the option either (1) after the last *FLAGS variable, or
8455+ # (2) before a word containing "conftest.", or (3) at the end.
8456+ # Note that $ac_compile itself does not contain backslashes and begins
8457+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8458+ # The option is referenced via a variable to avoid confusing sed.
8459+ lt_compile=`echo "$ac_compile" | $SED \
8460+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462+ -e 's:$: $lt_compiler_flag:'`
8463+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464+ (eval "$lt_compile" 2>conftest.err)
8465+ ac_status=$?
8466+ cat conftest.err >&5
8467+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468+ if (exit $ac_status) && test -s "$ac_outfile"; then
8469+ # The compiler can only warn and ignore the option if not recognized
8470+ # So say no if there are warnings other than the usual output.
8471+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474+ lt_cv_prog_compiler_rtti_exceptions=yes
8475+ fi
8476+ fi
8477+ $RM conftest*
8478+
8479+fi
8480+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8481+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8482+
8483+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8484+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8485+else
8486+ :
8487+fi
8488+
8489+fi
8490+
8491+
8492+
8493+
8494+
8495+
8496+ lt_prog_compiler_wl=
8497+lt_prog_compiler_pic=
8498+lt_prog_compiler_static=
8499+
8500+
8501+ if test "$GCC" = yes; then
8502+ lt_prog_compiler_wl='-Wl,'
8503+ lt_prog_compiler_static='-static'
8504+
8505+ case $host_os in
8506+ aix*)
8507+ # All AIX code is PIC.
8508+ if test "$host_cpu" = ia64; then
8509+ # AIX 5 now supports IA64 processor
8510+ lt_prog_compiler_static='-Bstatic'
8511+ fi
8512+ ;;
8513+
8514+ amigaos*)
8515+ case $host_cpu in
8516+ powerpc)
8517+ # see comment about AmigaOS4 .so support
8518+ lt_prog_compiler_pic='-fPIC'
8519+ ;;
8520+ m68k)
8521+ # FIXME: we need at least 68020 code to build shared libraries, but
8522+ # adding the `-m68020' flag to GCC prevents building anything better,
8523+ # like `-m68040'.
8524+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8525+ ;;
8526+ esac
8527+ ;;
8528+
8529+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530+ # PIC is the default for these OSes.
8531+ ;;
8532+
8533+ mingw* | cygwin* | pw32* | os2* | cegcc*)
8534+ # This hack is so that the source file can tell whether it is being
8535+ # built for inclusion in a dll (and should export symbols for example).
8536+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
8537+ # (--disable-auto-import) libraries
8538+ lt_prog_compiler_pic='-DDLL_EXPORT'
8539+ ;;
8540+
8541+ darwin* | rhapsody*)
8542+ # PIC is the default on this platform
8543+ # Common symbols not allowed in MH_DYLIB files
8544+ lt_prog_compiler_pic='-fno-common'
8545+ ;;
8546+
8547+ haiku*)
8548+ # PIC is the default for Haiku.
8549+ # The "-static" flag exists, but is broken.
8550+ lt_prog_compiler_static=
8551+ ;;
8552+
8553+ hpux*)
8554+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8555+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8556+ # sets the default TLS model and affects inlining.
8557+ case $host_cpu in
8558+ hppa*64*)
8559+ # +Z the default
8560+ ;;
8561+ *)
8562+ lt_prog_compiler_pic='-fPIC'
8563+ ;;
8564+ esac
8565+ ;;
8566+
8567+ interix[3-9]*)
8568+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8569+ # Instead, we relocate shared libraries at runtime.
8570+ ;;
8571+
8572+ msdosdjgpp*)
8573+ # Just because we use GCC doesn't mean we suddenly get shared libraries
8574+ # on systems that don't support them.
8575+ lt_prog_compiler_can_build_shared=no
8576+ enable_shared=no
8577+ ;;
8578+
8579+ *nto* | *qnx*)
8580+ # QNX uses GNU C++, but need to define -shared option too, otherwise
8581+ # it will coredump.
8582+ lt_prog_compiler_pic='-fPIC -shared'
8583+ ;;
8584+
8585+ sysv4*MP*)
8586+ if test -d /usr/nec; then
8587+ lt_prog_compiler_pic=-Kconform_pic
8588+ fi
8589+ ;;
8590+
8591+ *)
8592+ lt_prog_compiler_pic='-fPIC'
8593+ ;;
8594+ esac
8595+
8596+ case $cc_basename in
8597+ nvcc*) # Cuda Compiler Driver 2.2
8598+ lt_prog_compiler_wl='-Xlinker '
8599+ if test -n "$lt_prog_compiler_pic"; then
8600+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8601+ fi
8602+ ;;
8603+ esac
8604+ else
8605+ # PORTME Check for flag to pass linker flags through the system compiler.
8606+ case $host_os in
8607+ aix*)
8608+ lt_prog_compiler_wl='-Wl,'
8609+ if test "$host_cpu" = ia64; then
8610+ # AIX 5 now supports IA64 processor
8611+ lt_prog_compiler_static='-Bstatic'
8612+ else
8613+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8614+ fi
8615+ ;;
8616+
8617+ mingw* | cygwin* | pw32* | os2* | cegcc*)
8618+ # This hack is so that the source file can tell whether it is being
8619+ # built for inclusion in a dll (and should export symbols for example).
8620+ lt_prog_compiler_pic='-DDLL_EXPORT'
8621+ ;;
8622+
8623+ hpux9* | hpux10* | hpux11*)
8624+ lt_prog_compiler_wl='-Wl,'
8625+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8626+ # not for PA HP-UX.
8627+ case $host_cpu in
8628+ hppa*64*|ia64*)
8629+ # +Z the default
8630+ ;;
8631+ *)
8632+ lt_prog_compiler_pic='+Z'
8633+ ;;
8634+ esac
8635+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
8636+ lt_prog_compiler_static='${wl}-a ${wl}archive'
8637+ ;;
8638+
8639+ irix5* | irix6* | nonstopux*)
8640+ lt_prog_compiler_wl='-Wl,'
8641+ # PIC (with -KPIC) is the default.
8642+ lt_prog_compiler_static='-non_shared'
8643+ ;;
8644+
8645+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
8646+ case $cc_basename in
8647+ # old Intel for x86_64 which still supported -KPIC.
8648+ ecc*)
8649+ lt_prog_compiler_wl='-Wl,'
8650+ lt_prog_compiler_pic='-KPIC'
8651+ lt_prog_compiler_static='-static'
8652+ ;;
8653+ # icc used to be incompatible with GCC.
8654+ # ICC 10 doesn't accept -KPIC any more.
8655+ icc* | ifort*)
8656+ lt_prog_compiler_wl='-Wl,'
8657+ lt_prog_compiler_pic='-fPIC'
8658+ lt_prog_compiler_static='-static'
8659+ ;;
8660+ # Lahey Fortran 8.1.
8661+ lf95*)
8662+ lt_prog_compiler_wl='-Wl,'
8663+ lt_prog_compiler_pic='--shared'
8664+ lt_prog_compiler_static='--static'
8665+ ;;
8666+ nagfor*)
8667+ # NAG Fortran compiler
8668+ lt_prog_compiler_wl='-Wl,-Wl,,'
8669+ lt_prog_compiler_pic='-PIC'
8670+ lt_prog_compiler_static='-Bstatic'
8671+ ;;
8672+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8673+ # Portland Group compilers (*not* the Pentium gcc compiler,
8674+ # which looks to be a dead project)
8675+ lt_prog_compiler_wl='-Wl,'
8676+ lt_prog_compiler_pic='-fpic'
8677+ lt_prog_compiler_static='-Bstatic'
8678+ ;;
8679+ ccc*)
8680+ lt_prog_compiler_wl='-Wl,'
8681+ # All Alpha code is PIC.
8682+ lt_prog_compiler_static='-non_shared'
8683+ ;;
8684+ xl* | bgxl* | bgf* | mpixl*)
8685+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8686+ lt_prog_compiler_wl='-Wl,'
8687+ lt_prog_compiler_pic='-qpic'
8688+ lt_prog_compiler_static='-qstaticlink'
8689+ ;;
8690+ *)
8691+ case `$CC -V 2>&1 | sed 5q` in
8692+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8693+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
8694+ lt_prog_compiler_pic='-KPIC'
8695+ lt_prog_compiler_static='-Bstatic'
8696+ lt_prog_compiler_wl=''
8697+ ;;
8698+ *Sun\ F* | *Sun*Fortran*)
8699+ lt_prog_compiler_pic='-KPIC'
8700+ lt_prog_compiler_static='-Bstatic'
8701+ lt_prog_compiler_wl='-Qoption ld '
8702+ ;;
8703+ *Sun\ C*)
8704+ # Sun C 5.9
8705+ lt_prog_compiler_pic='-KPIC'
8706+ lt_prog_compiler_static='-Bstatic'
8707+ lt_prog_compiler_wl='-Wl,'
8708+ ;;
8709+ *Intel*\ [CF]*Compiler*)
8710+ lt_prog_compiler_wl='-Wl,'
8711+ lt_prog_compiler_pic='-fPIC'
8712+ lt_prog_compiler_static='-static'
8713+ ;;
8714+ *Portland\ Group*)
8715+ lt_prog_compiler_wl='-Wl,'
8716+ lt_prog_compiler_pic='-fpic'
8717+ lt_prog_compiler_static='-Bstatic'
8718+ ;;
8719+ esac
8720+ ;;
8721+ esac
8722+ ;;
8723+
8724+ newsos6)
8725+ lt_prog_compiler_pic='-KPIC'
8726+ lt_prog_compiler_static='-Bstatic'
8727+ ;;
8728+
8729+ *nto* | *qnx*)
8730+ # QNX uses GNU C++, but need to define -shared option too, otherwise
8731+ # it will coredump.
8732+ lt_prog_compiler_pic='-fPIC -shared'
8733+ ;;
8734+
8735+ osf3* | osf4* | osf5*)
8736+ lt_prog_compiler_wl='-Wl,'
8737+ # All OSF/1 code is PIC.
8738+ lt_prog_compiler_static='-non_shared'
8739+ ;;
8740+
8741+ rdos*)
8742+ lt_prog_compiler_static='-non_shared'
8743+ ;;
8744+
8745+ solaris*)
8746+ lt_prog_compiler_pic='-KPIC'
8747+ lt_prog_compiler_static='-Bstatic'
8748+ case $cc_basename in
8749+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8750+ lt_prog_compiler_wl='-Qoption ld ';;
8751+ *)
8752+ lt_prog_compiler_wl='-Wl,';;
8753+ esac
8754+ ;;
8755+
8756+ sunos4*)
8757+ lt_prog_compiler_wl='-Qoption ld '
8758+ lt_prog_compiler_pic='-PIC'
8759+ lt_prog_compiler_static='-Bstatic'
8760+ ;;
8761+
8762+ sysv4 | sysv4.2uw2* | sysv4.3*)
8763+ lt_prog_compiler_wl='-Wl,'
8764+ lt_prog_compiler_pic='-KPIC'
8765+ lt_prog_compiler_static='-Bstatic'
8766+ ;;
8767+
8768+ sysv4*MP*)
8769+ if test -d /usr/nec ;then
8770+ lt_prog_compiler_pic='-Kconform_pic'
8771+ lt_prog_compiler_static='-Bstatic'
8772+ fi
8773+ ;;
8774+
8775+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8776+ lt_prog_compiler_wl='-Wl,'
8777+ lt_prog_compiler_pic='-KPIC'
8778+ lt_prog_compiler_static='-Bstatic'
8779+ ;;
8780+
8781+ unicos*)
8782+ lt_prog_compiler_wl='-Wl,'
8783+ lt_prog_compiler_can_build_shared=no
8784+ ;;
8785+
8786+ uts4*)
8787+ lt_prog_compiler_pic='-pic'
8788+ lt_prog_compiler_static='-Bstatic'
8789+ ;;
8790+
8791+ *)
8792+ lt_prog_compiler_can_build_shared=no
8793+ ;;
8794+ esac
8795+ fi
8796+
8797+case $host_os in
8798+ # For platforms which do not support PIC, -DPIC is meaningless:
8799+ *djgpp*)
8800+ lt_prog_compiler_pic=
8801+ ;;
8802+ *)
8803+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8804+ ;;
8805+esac
8806+
8807+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8808+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8809+if ${lt_cv_prog_compiler_pic+:} false; then :
8810+ $as_echo_n "(cached) " >&6
8811+else
8812+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8813+fi
8814+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8815+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8816+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8817+
8818+#
8819+# Check to make sure the PIC flag actually works.
8820+#
8821+if test -n "$lt_prog_compiler_pic"; then
8822+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8823+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8824+if ${lt_cv_prog_compiler_pic_works+:} false; then :
8825+ $as_echo_n "(cached) " >&6
8826+else
8827+ lt_cv_prog_compiler_pic_works=no
8828+ ac_outfile=conftest.$ac_objext
8829+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8830+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8831+ # Insert the option either (1) after the last *FLAGS variable, or
8832+ # (2) before a word containing "conftest.", or (3) at the end.
8833+ # Note that $ac_compile itself does not contain backslashes and begins
8834+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8835+ # The option is referenced via a variable to avoid confusing sed.
8836+ lt_compile=`echo "$ac_compile" | $SED \
8837+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8838+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8839+ -e 's:$: $lt_compiler_flag:'`
8840+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8841+ (eval "$lt_compile" 2>conftest.err)
8842+ ac_status=$?
8843+ cat conftest.err >&5
8844+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845+ if (exit $ac_status) && test -s "$ac_outfile"; then
8846+ # The compiler can only warn and ignore the option if not recognized
8847+ # So say no if there are warnings other than the usual output.
8848+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8849+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8850+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8851+ lt_cv_prog_compiler_pic_works=yes
8852+ fi
8853+ fi
8854+ $RM conftest*
8855+
8856+fi
8857+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8858+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8859+
8860+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8861+ case $lt_prog_compiler_pic in
8862+ "" | " "*) ;;
8863+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8864+ esac
8865+else
8866+ lt_prog_compiler_pic=
8867+ lt_prog_compiler_can_build_shared=no
8868+fi
8869+
8870+fi
8871+
8872+
8873+
8874+
8875+
8876+
8877+
8878+
8879+
8880+
8881+
8882+#
8883+# Check to make sure the static flag actually works.
8884+#
8885+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8886+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8887+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8888+if ${lt_cv_prog_compiler_static_works+:} false; then :
8889+ $as_echo_n "(cached) " >&6
8890+else
8891+ lt_cv_prog_compiler_static_works=no
8892+ save_LDFLAGS="$LDFLAGS"
8893+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8894+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
8895+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8896+ # The linker can only warn and ignore the option if not recognized
8897+ # So say no if there are warnings
8898+ if test -s conftest.err; then
8899+ # Append any errors to the config.log.
8900+ cat conftest.err 1>&5
8901+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8902+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8903+ if diff conftest.exp conftest.er2 >/dev/null; then
8904+ lt_cv_prog_compiler_static_works=yes
8905+ fi
8906+ else
8907+ lt_cv_prog_compiler_static_works=yes
8908+ fi
8909+ fi
8910+ $RM -r conftest*
8911+ LDFLAGS="$save_LDFLAGS"
8912+
8913+fi
8914+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8915+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8916+
8917+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8918+ :
8919+else
8920+ lt_prog_compiler_static=
8921+fi
8922+
8923+
8924+
8925+
8926+
8927+
8928+
8929+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8930+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8931+if ${lt_cv_prog_compiler_c_o+:} false; then :
8932+ $as_echo_n "(cached) " >&6
8933+else
8934+ lt_cv_prog_compiler_c_o=no
8935+ $RM -r conftest 2>/dev/null
8936+ mkdir conftest
8937+ cd conftest
8938+ mkdir out
8939+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940+
8941+ lt_compiler_flag="-o out/conftest2.$ac_objext"
8942+ # Insert the option either (1) after the last *FLAGS variable, or
8943+ # (2) before a word containing "conftest.", or (3) at the end.
8944+ # Note that $ac_compile itself does not contain backslashes and begins
8945+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8946+ lt_compile=`echo "$ac_compile" | $SED \
8947+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949+ -e 's:$: $lt_compiler_flag:'`
8950+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8951+ (eval "$lt_compile" 2>out/conftest.err)
8952+ ac_status=$?
8953+ cat out/conftest.err >&5
8954+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
8956+ then
8957+ # The compiler can only warn and ignore the option if not recognized
8958+ # So say no if there are warnings
8959+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8960+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8961+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8962+ lt_cv_prog_compiler_c_o=yes
8963+ fi
8964+ fi
8965+ chmod u+w . 2>&5
8966+ $RM conftest*
8967+ # SGI C++ compiler will create directory out/ii_files/ for
8968+ # template instantiation
8969+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8970+ $RM out/* && rmdir out
8971+ cd ..
8972+ $RM -r conftest
8973+ $RM conftest*
8974+
8975+fi
8976+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8977+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8978+
8979+
8980+
8981+
8982+
8983+
8984+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8985+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8986+if ${lt_cv_prog_compiler_c_o+:} false; then :
8987+ $as_echo_n "(cached) " >&6
8988+else
8989+ lt_cv_prog_compiler_c_o=no
8990+ $RM -r conftest 2>/dev/null
8991+ mkdir conftest
8992+ cd conftest
8993+ mkdir out
8994+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995+
8996+ lt_compiler_flag="-o out/conftest2.$ac_objext"
8997+ # Insert the option either (1) after the last *FLAGS variable, or
8998+ # (2) before a word containing "conftest.", or (3) at the end.
8999+ # Note that $ac_compile itself does not contain backslashes and begins
9000+ # with a dollar sign (not a hyphen), so the echo should work correctly.
9001+ lt_compile=`echo "$ac_compile" | $SED \
9002+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004+ -e 's:$: $lt_compiler_flag:'`
9005+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006+ (eval "$lt_compile" 2>out/conftest.err)
9007+ ac_status=$?
9008+ cat out/conftest.err >&5
9009+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
9011+ then
9012+ # The compiler can only warn and ignore the option if not recognized
9013+ # So say no if there are warnings
9014+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9015+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9016+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9017+ lt_cv_prog_compiler_c_o=yes
9018+ fi
9019+ fi
9020+ chmod u+w . 2>&5
9021+ $RM conftest*
9022+ # SGI C++ compiler will create directory out/ii_files/ for
9023+ # template instantiation
9024+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9025+ $RM out/* && rmdir out
9026+ cd ..
9027+ $RM -r conftest
9028+ $RM conftest*
9029+
9030+fi
9031+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9032+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9033+
9034+
9035+
9036+
9037+hard_links="nottested"
9038+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9039+ # do not overwrite the value of need_locks provided by the user
9040+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9041+$as_echo_n "checking if we can lock with hard links... " >&6; }
9042+ hard_links=yes
9043+ $RM conftest*
9044+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
9045+ touch conftest.a
9046+ ln conftest.a conftest.b 2>&5 || hard_links=no
9047+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
9048+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9049+$as_echo "$hard_links" >&6; }
9050+ if test "$hard_links" = no; then
9051+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9052+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9053+ need_locks=warn
9054+ fi
9055+else
9056+ need_locks=no
9057+fi
9058+
9059+
9060+
9061+
9062+
9063+
9064+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9065+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9066+
9067+ runpath_var=
9068+ allow_undefined_flag=
9069+ always_export_symbols=no
9070+ archive_cmds=
9071+ archive_expsym_cmds=
9072+ compiler_needs_object=no
9073+ enable_shared_with_static_runtimes=no
9074+ export_dynamic_flag_spec=
9075+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9076+ hardcode_automatic=no
9077+ hardcode_direct=no
9078+ hardcode_direct_absolute=no
9079+ hardcode_libdir_flag_spec=
9080+ hardcode_libdir_separator=
9081+ hardcode_minus_L=no
9082+ hardcode_shlibpath_var=unsupported
9083+ inherit_rpath=no
9084+ link_all_deplibs=unknown
9085+ module_cmds=
9086+ module_expsym_cmds=
9087+ old_archive_from_new_cmds=
9088+ old_archive_from_expsyms_cmds=
9089+ thread_safe_flag_spec=
9090+ whole_archive_flag_spec=
9091+ # include_expsyms should be a list of space-separated symbols to be *always*
9092+ # included in the symbol list
9093+ include_expsyms=
9094+ # exclude_expsyms can be an extended regexp of symbols to exclude
9095+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097+ # as well as any symbol that contains `d'.
9098+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100+ # platforms (ab)use it in PIC code, but their linkers get confused if
9101+ # the symbol is explicitly referenced. Since portable code cannot
9102+ # rely on this symbol name, it's probably fine to never include it in
9103+ # preloaded symbol tables.
9104+ # Exclude shared library initialization/finalization symbols.
9105+ extract_expsyms_cmds=
9106+
9107+ case $host_os in
9108+ cygwin* | mingw* | pw32* | cegcc*)
9109+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110+ # When not using gcc, we currently assume that we are using
9111+ # Microsoft Visual C++.
9112+ if test "$GCC" != yes; then
9113+ with_gnu_ld=no
9114+ fi
9115+ ;;
9116+ interix*)
9117+ # we just hope/assume this is gcc and not c89 (= MSVC++)
9118+ with_gnu_ld=yes
9119+ ;;
9120+ openbsd*)
9121+ with_gnu_ld=no
9122+ ;;
9123+ esac
9124+
9125+ ld_shlibs=yes
9126+
9127+ # On some targets, GNU ld is compatible enough with the native linker
9128+ # that we're better off using the native interface for both.
9129+ lt_use_gnu_ld_interface=no
9130+ if test "$with_gnu_ld" = yes; then
9131+ case $host_os in
9132+ aix*)
9133+ # The AIX port of GNU ld has always aspired to compatibility
9134+ # with the native linker. However, as the warning in the GNU ld
9135+ # block says, versions before 2.19.5* couldn't really create working
9136+ # shared libraries, regardless of the interface used.
9137+ case `$LD -v 2>&1` in
9138+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139+ *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140+ *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141+ *)
9142+ lt_use_gnu_ld_interface=yes
9143+ ;;
9144+ esac
9145+ ;;
9146+ *)
9147+ lt_use_gnu_ld_interface=yes
9148+ ;;
9149+ esac
9150+ fi
9151+
9152+ if test "$lt_use_gnu_ld_interface" = yes; then
9153+ # If archive_cmds runs LD, not CC, wlarc should be empty
9154+ wlarc='${wl}'
9155+
9156+ # Set some defaults for GNU ld with shared library support. These
9157+ # are reset later if shared libraries are not supported. Putting them
9158+ # here allows them to be overridden if necessary.
9159+ runpath_var=LD_RUN_PATH
9160+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161+ export_dynamic_flag_spec='${wl}--export-dynamic'
9162+ # ancient GNU ld didn't support --whole-archive et. al.
9163+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165+ else
9166+ whole_archive_flag_spec=
9167+ fi
9168+ supports_anon_versioning=no
9169+ case `$LD -v 2>&1` in
9170+ *GNU\ gold*) supports_anon_versioning=yes ;;
9171+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174+ *\ 2.11.*) ;; # other 2.11 versions
9175+ *) supports_anon_versioning=yes ;;
9176+ esac
9177+
9178+ # See if GNU ld supports shared libraries.
9179+ case $host_os in
9180+ aix[3-9]*)
9181+ # On AIX/PPC, the GNU linker is very broken
9182+ if test "$host_cpu" != ia64; then
9183+ ld_shlibs=no
9184+ cat <<_LT_EOF 1>&2
9185+
9186+*** Warning: the GNU linker, at least up to release 2.19, is reported
9187+*** to be unable to reliably create shared libraries on AIX.
9188+*** Therefore, libtool is disabling shared libraries support. If you
9189+*** really care for shared libraries, you may want to install binutils
9190+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191+*** You will then need to restart the configuration process.
9192+
9193+_LT_EOF
9194+ fi
9195+ ;;
9196+
9197+ amigaos*)
9198+ case $host_cpu in
9199+ powerpc)
9200+ # see comment about AmigaOS4 .so support
9201+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202+ archive_expsym_cmds=''
9203+ ;;
9204+ m68k)
9205+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9206+ hardcode_libdir_flag_spec='-L$libdir'
9207+ hardcode_minus_L=yes
9208+ ;;
9209+ esac
9210+ ;;
9211+
9212+ beos*)
9213+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214+ allow_undefined_flag=unsupported
9215+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216+ # support --undefined. This deserves some investigation. FIXME
9217+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218+ else
9219+ ld_shlibs=no
9220+ fi
9221+ ;;
9222+
9223+ cygwin* | mingw* | pw32* | cegcc*)
9224+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225+ # as there is no search path for DLLs.
9226+ hardcode_libdir_flag_spec='-L$libdir'
9227+ export_dynamic_flag_spec='${wl}--export-all-symbols'
9228+ allow_undefined_flag=unsupported
9229+ always_export_symbols=no
9230+ enable_shared_with_static_runtimes=yes
9231+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9232+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9233+
9234+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9235+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9236+ # If the export-symbols file already is a .def file (1st line
9237+ # is EXPORTS), use it as is; otherwise, prepend...
9238+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9239+ cp $export_symbols $output_objdir/$soname.def;
9240+ else
9241+ echo EXPORTS > $output_objdir/$soname.def;
9242+ cat $export_symbols >> $output_objdir/$soname.def;
9243+ fi~
9244+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9245+ else
9246+ ld_shlibs=no
9247+ fi
9248+ ;;
9249+
9250+ haiku*)
9251+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252+ link_all_deplibs=yes
9253+ ;;
9254+
9255+ interix[3-9]*)
9256+ hardcode_direct=no
9257+ hardcode_shlibpath_var=no
9258+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259+ export_dynamic_flag_spec='${wl}-E'
9260+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9261+ # Instead, shared libraries are loaded at an image base (0x10000000 by
9262+ # default) and relocated if they conflict, which is a slow very memory
9263+ # consuming and fragmenting process. To avoid this, we pick a random,
9264+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9265+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9266+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9267+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9268+ ;;
9269+
9270+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9271+ tmp_diet=no
9272+ if test "$host_os" = linux-dietlibc; then
9273+ case $cc_basename in
9274+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9275+ esac
9276+ fi
9277+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9278+ && test "$tmp_diet" = no
9279+ then
9280+ tmp_addflag=' $pic_flag'
9281+ tmp_sharedflag='-shared'
9282+ case $cc_basename,$host_cpu in
9283+ pgcc*) # Portland Group C compiler
9284+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9285+ tmp_addflag=' $pic_flag'
9286+ ;;
9287+ pgf77* | pgf90* | pgf95* | pgfortran*)
9288+ # Portland Group f77 and f90 compilers
9289+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9290+ tmp_addflag=' $pic_flag -Mnomain' ;;
9291+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9292+ tmp_addflag=' -i_dynamic' ;;
9293+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9294+ tmp_addflag=' -i_dynamic -nofor_main' ;;
9295+ ifc* | ifort*) # Intel Fortran compiler
9296+ tmp_addflag=' -nofor_main' ;;
9297+ lf95*) # Lahey Fortran 8.1
9298+ whole_archive_flag_spec=
9299+ tmp_sharedflag='--shared' ;;
9300+ xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9301+ tmp_sharedflag='-qmkshrobj'
9302+ tmp_addflag= ;;
9303+ nvcc*) # Cuda Compiler Driver 2.2
9304+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9305+ compiler_needs_object=yes
9306+ ;;
9307+ esac
9308+ case `$CC -V 2>&1 | sed 5q` in
9309+ *Sun\ C*) # Sun C 5.9
9310+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9311+ compiler_needs_object=yes
9312+ tmp_sharedflag='-G' ;;
9313+ *Sun\ F*) # Sun Fortran 8.3
9314+ tmp_sharedflag='-G' ;;
9315+ esac
9316+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317+
9318+ if test "x$supports_anon_versioning" = xyes; then
9319+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321+ echo "local: *; };" >> $output_objdir/$libname.ver~
9322+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323+ fi
9324+
9325+ case $cc_basename in
9326+ xlf* | bgf* | bgxlf* | mpixlf*)
9327+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9328+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9329+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9331+ if test "x$supports_anon_versioning" = xyes; then
9332+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334+ echo "local: *; };" >> $output_objdir/$libname.ver~
9335+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9336+ fi
9337+ ;;
9338+ esac
9339+ else
9340+ ld_shlibs=no
9341+ fi
9342+ ;;
9343+
9344+ netbsd*)
9345+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347+ wlarc=
9348+ else
9349+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351+ fi
9352+ ;;
9353+
9354+ solaris*)
9355+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356+ ld_shlibs=no
9357+ cat <<_LT_EOF 1>&2
9358+
9359+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360+*** create shared libraries on Solaris systems. Therefore, libtool
9361+*** is disabling shared libraries support. We urge you to upgrade GNU
9362+*** binutils to release 2.9.1 or newer. Another option is to modify
9363+*** your PATH or compiler configuration so that the native linker is
9364+*** used, and then restart.
9365+
9366+_LT_EOF
9367+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370+ else
9371+ ld_shlibs=no
9372+ fi
9373+ ;;
9374+
9375+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376+ case `$LD -v 2>&1` in
9377+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378+ ld_shlibs=no
9379+ cat <<_LT_EOF 1>&2
9380+
9381+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382+*** reliably create shared libraries on SCO systems. Therefore, libtool
9383+*** is disabling shared libraries support. We urge you to upgrade GNU
9384+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385+*** your PATH or compiler configuration so that the native linker is
9386+*** used, and then restart.
9387+
9388+_LT_EOF
9389+ ;;
9390+ *)
9391+ # For security reasons, it is highly recommended that you always
9392+ # use absolute paths for naming shared libraries, and exclude the
9393+ # DT_RUNPATH tag from executables and libraries. But doing so
9394+ # requires that you compile everything twice, which is a pain.
9395+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399+ else
9400+ ld_shlibs=no
9401+ fi
9402+ ;;
9403+ esac
9404+ ;;
9405+
9406+ sunos4*)
9407+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408+ wlarc=
9409+ hardcode_direct=yes
9410+ hardcode_shlibpath_var=no
9411+ ;;
9412+
9413+ *)
9414+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417+ else
9418+ ld_shlibs=no
9419+ fi
9420+ ;;
9421+ esac
9422+
9423+ if test "$ld_shlibs" = no; then
9424+ runpath_var=
9425+ hardcode_libdir_flag_spec=
9426+ export_dynamic_flag_spec=
9427+ whole_archive_flag_spec=
9428+ fi
9429+ else
9430+ # PORTME fill in a description of your system's linker (not GNU ld)
9431+ case $host_os in
9432+ aix3*)
9433+ allow_undefined_flag=unsupported
9434+ always_export_symbols=yes
9435+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9436+ # Note: this linker hardcodes the directories in LIBPATH if there
9437+ # are no directories specified by -L.
9438+ hardcode_minus_L=yes
9439+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440+ # Neither direct hardcoding nor static linking is supported with a
9441+ # broken collect2.
9442+ hardcode_direct=unsupported
9443+ fi
9444+ ;;
9445+
9446+ aix[4-9]*)
9447+ if test "$host_cpu" = ia64; then
9448+ # On IA64, the linker does run time linking by default, so we don't
9449+ # have to do anything special.
9450+ aix_use_runtimelinking=no
9451+ exp_sym_flag='-Bexport'
9452+ no_entry_flag=""
9453+ else
9454+ # If we're using GNU nm, then we don't want the "-C" option.
9455+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456+ # Also, AIX nm treats weak defined symbols like other global
9457+ # defined symbols, whereas GNU nm marks them as "W".
9458+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9460+ else
9461+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9462+ fi
9463+ aix_use_runtimelinking=no
9464+
9465+ # Test if we are trying to use run time linking or normal
9466+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467+ # need to do runtime linking.
9468+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469+ for ld_flag in $LDFLAGS; do
9470+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471+ aix_use_runtimelinking=yes
9472+ break
9473+ fi
9474+ done
9475+ ;;
9476+ esac
9477+
9478+ exp_sym_flag='-bexport'
9479+ no_entry_flag='-bnoentry'
9480+ fi
9481+
9482+ # When large executables or shared objects are built, AIX ld can
9483+ # have problems creating the table of contents. If linking a library
9484+ # or program results in "error TOC overflow" add -mminimal-toc to
9485+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487+
9488+ archive_cmds=''
9489+ hardcode_direct=yes
9490+ hardcode_direct_absolute=yes
9491+ hardcode_libdir_separator=':'
9492+ link_all_deplibs=yes
9493+ file_list_spec='${wl}-f,'
9494+
9495+ if test "$GCC" = yes; then
9496+ case $host_os in aix4.[012]|aix4.[012].*)
9497+ # We only want to do this on AIX 4.2 and lower, the check
9498+ # below for broken collect2 doesn't work under 4.3+
9499+ collect2name=`${CC} -print-prog-name=collect2`
9500+ if test -f "$collect2name" &&
9501+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502+ then
9503+ # We have reworked collect2
9504+ :
9505+ else
9506+ # We have old collect2
9507+ hardcode_direct=unsupported
9508+ # It fails to find uninstalled libraries when the uninstalled
9509+ # path is not listed in the libpath. Setting hardcode_minus_L
9510+ # to unsupported forces relinking
9511+ hardcode_minus_L=yes
9512+ hardcode_libdir_flag_spec='-L$libdir'
9513+ hardcode_libdir_separator=
9514+ fi
9515+ ;;
9516+ esac
9517+ shared_flag='-shared'
9518+ if test "$aix_use_runtimelinking" = yes; then
9519+ shared_flag="$shared_flag "'${wl}-G'
9520+ fi
9521+ else
9522+ # not using gcc
9523+ if test "$host_cpu" = ia64; then
9524+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525+ # chokes on -Wl,-G. The following line is correct:
9526+ shared_flag='-G'
9527+ else
9528+ if test "$aix_use_runtimelinking" = yes; then
9529+ shared_flag='${wl}-G'
9530+ else
9531+ shared_flag='${wl}-bM:SRE'
9532+ fi
9533+ fi
9534+ fi
9535+
9536+ export_dynamic_flag_spec='${wl}-bexpall'
9537+ # It seems that -bexpall does not export symbols beginning with
9538+ # underscore (_), so it is better to generate a list of symbols to export.
9539+ always_export_symbols=yes
9540+ if test "$aix_use_runtimelinking" = yes; then
9541+ # Warning - without using the other runtime loading flags (-brtl),
9542+ # -berok will link without error, but may produce a broken library.
9543+ allow_undefined_flag='-berok'
9544+ # Determine the default libpath from the value encoded in an
9545+ # empty executable.
9546+ if test "${lt_cv_aix_libpath+set}" = set; then
9547+ aix_libpath=$lt_cv_aix_libpath
9548+else
9549+ if ${lt_cv_aix_libpath_+:} false; then :
9550+ $as_echo_n "(cached) " >&6
9551+else
9552+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553+/* end confdefs.h. */
9554+
9555+int
9556+main ()
9557+{
9558+
9559+ ;
9560+ return 0;
9561+}
9562+_ACEOF
9563+if ac_fn_c_try_link "$LINENO"; then :
9564+
9565+ lt_aix_libpath_sed='
9566+ /Import File Strings/,/^$/ {
9567+ /^0/ {
9568+ s/^0 *\([^ ]*\) *$/\1/
9569+ p
9570+ }
9571+ }'
9572+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573+ # Check for a 64-bit object if we didn't find anything.
9574+ if test -z "$lt_cv_aix_libpath_"; then
9575+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576+ fi
9577+fi
9578+rm -f core conftest.err conftest.$ac_objext \
9579+ conftest$ac_exeext conftest.$ac_ext
9580+ if test -z "$lt_cv_aix_libpath_"; then
9581+ lt_cv_aix_libpath_="/usr/lib:/lib"
9582+ fi
9583+
9584+fi
9585+
9586+ aix_libpath=$lt_cv_aix_libpath_
9587+fi
9588+
9589+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9590+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9591+ else
9592+ if test "$host_cpu" = ia64; then
9593+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9594+ allow_undefined_flag="-z nodefs"
9595+ archive_expsym_cmds="\$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"
9596+ else
9597+ # Determine the default libpath from the value encoded in an
9598+ # empty executable.
9599+ if test "${lt_cv_aix_libpath+set}" = set; then
9600+ aix_libpath=$lt_cv_aix_libpath
9601+else
9602+ if ${lt_cv_aix_libpath_+:} false; then :
9603+ $as_echo_n "(cached) " >&6
9604+else
9605+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606+/* end confdefs.h. */
9607+
9608+int
9609+main ()
9610+{
9611+
9612+ ;
9613+ return 0;
9614+}
9615+_ACEOF
9616+if ac_fn_c_try_link "$LINENO"; then :
9617+
9618+ lt_aix_libpath_sed='
9619+ /Import File Strings/,/^$/ {
9620+ /^0/ {
9621+ s/^0 *\([^ ]*\) *$/\1/
9622+ p
9623+ }
9624+ }'
9625+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626+ # Check for a 64-bit object if we didn't find anything.
9627+ if test -z "$lt_cv_aix_libpath_"; then
9628+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629+ fi
9630+fi
9631+rm -f core conftest.err conftest.$ac_objext \
9632+ conftest$ac_exeext conftest.$ac_ext
9633+ if test -z "$lt_cv_aix_libpath_"; then
9634+ lt_cv_aix_libpath_="/usr/lib:/lib"
9635+ fi
9636+
9637+fi
9638+
9639+ aix_libpath=$lt_cv_aix_libpath_
9640+fi
9641+
9642+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643+ # Warning - without using the other run time loading flags,
9644+ # -berok will link without error, but may produce a broken library.
9645+ no_undefined_flag=' ${wl}-bernotok'
9646+ allow_undefined_flag=' ${wl}-berok'
9647+ if test "$with_gnu_ld" = yes; then
9648+ # We only use this code for GNU lds that support --whole-archive.
9649+ whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9650+ else
9651+ # Exported symbols can be pulled into shared objects from archives
9652+ whole_archive_flag_spec='$convenience'
9653+ fi
9654+ archive_cmds_need_lc=yes
9655+ # This is similar to how AIX traditionally builds its shared libraries.
9656+ archive_expsym_cmds="\$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'
9657+ fi
9658+ fi
9659+ ;;
9660+
9661+ amigaos*)
9662+ case $host_cpu in
9663+ powerpc)
9664+ # see comment about AmigaOS4 .so support
9665+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666+ archive_expsym_cmds=''
9667+ ;;
9668+ m68k)
9669+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9670+ hardcode_libdir_flag_spec='-L$libdir'
9671+ hardcode_minus_L=yes
9672+ ;;
9673+ esac
9674+ ;;
9675+
9676+ bsdi[45]*)
9677+ export_dynamic_flag_spec=-rdynamic
9678+ ;;
9679+
9680+ cygwin* | mingw* | pw32* | cegcc*)
9681+ # When not using gcc, we currently assume that we are using
9682+ # Microsoft Visual C++.
9683+ # hardcode_libdir_flag_spec is actually meaningless, as there is
9684+ # no search path for DLLs.
9685+ case $cc_basename in
9686+ cl*)
9687+ # Native MSVC
9688+ hardcode_libdir_flag_spec=' '
9689+ allow_undefined_flag=unsupported
9690+ always_export_symbols=yes
9691+ file_list_spec='@'
9692+ # Tell ltmain to make .lib files, not .a files.
9693+ libext=lib
9694+ # Tell ltmain to make .dll files, not .so files.
9695+ shrext_cmds=".dll"
9696+ # FIXME: Setting linknames here is a bad hack.
9697+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9700+ else
9701+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9702+ fi~
9703+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9704+ linknames='
9705+ # The linker will not automatically build a static lib if we build a DLL.
9706+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707+ enable_shared_with_static_runtimes=yes
9708+ exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9710+ # Don't use ranlib
9711+ old_postinstall_cmds='chmod 644 $oldlib'
9712+ postlink_cmds='lt_outputfile="@OUTPUT@"~
9713+ lt_tool_outputfile="@TOOL_OUTPUT@"~
9714+ case $lt_outputfile in
9715+ *.exe|*.EXE) ;;
9716+ *)
9717+ lt_outputfile="$lt_outputfile.exe"
9718+ lt_tool_outputfile="$lt_tool_outputfile.exe"
9719+ ;;
9720+ esac~
9721+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723+ $RM "$lt_outputfile.manifest";
9724+ fi'
9725+ ;;
9726+ *)
9727+ # Assume MSVC wrapper
9728+ hardcode_libdir_flag_spec=' '
9729+ allow_undefined_flag=unsupported
9730+ # Tell ltmain to make .lib files, not .a files.
9731+ libext=lib
9732+ # Tell ltmain to make .dll files, not .so files.
9733+ shrext_cmds=".dll"
9734+ # FIXME: Setting linknames here is a bad hack.
9735+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736+ # The linker will automatically build a .lib file if we build a DLL.
9737+ old_archive_from_new_cmds='true'
9738+ # FIXME: Should let the user specify the lib program.
9739+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740+ enable_shared_with_static_runtimes=yes
9741+ ;;
9742+ esac
9743+ ;;
9744+
9745+ darwin* | rhapsody*)
9746+
9747+
9748+ archive_cmds_need_lc=no
9749+ hardcode_direct=no
9750+ hardcode_automatic=yes
9751+ hardcode_shlibpath_var=unsupported
9752+ if test "$lt_cv_ld_force_load" = "yes"; then
9753+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9754+
9755+ else
9756+ whole_archive_flag_spec=''
9757+ fi
9758+ link_all_deplibs=yes
9759+ allow_undefined_flag="$_lt_dar_allow_undefined"
9760+ case $cc_basename in
9761+ ifort*) _lt_dar_can_shared=yes ;;
9762+ *) _lt_dar_can_shared=$GCC ;;
9763+ esac
9764+ if test "$_lt_dar_can_shared" = "yes"; then
9765+ output_verbose_link_cmd=func_echo_all
9766+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9769+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9770+
9771+ else
9772+ ld_shlibs=no
9773+ fi
9774+
9775+ ;;
9776+
9777+ dgux*)
9778+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779+ hardcode_libdir_flag_spec='-L$libdir'
9780+ hardcode_shlibpath_var=no
9781+ ;;
9782+
9783+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784+ # support. Future versions do this automatically, but an explicit c++rt0.o
9785+ # does not break anything, and helps significantly (at the cost of a little
9786+ # extra space).
9787+ freebsd2.2*)
9788+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789+ hardcode_libdir_flag_spec='-R$libdir'
9790+ hardcode_direct=yes
9791+ hardcode_shlibpath_var=no
9792+ ;;
9793+
9794+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795+ freebsd2.*)
9796+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797+ hardcode_direct=yes
9798+ hardcode_minus_L=yes
9799+ hardcode_shlibpath_var=no
9800+ ;;
9801+
9802+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803+ freebsd* | dragonfly*)
9804+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805+ hardcode_libdir_flag_spec='-R$libdir'
9806+ hardcode_direct=yes
9807+ hardcode_shlibpath_var=no
9808+ ;;
9809+
9810+ hpux9*)
9811+ if test "$GCC" = yes; then
9812+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9813+ else
9814+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9815+ fi
9816+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817+ hardcode_libdir_separator=:
9818+ hardcode_direct=yes
9819+
9820+ # hardcode_minus_L: Not really in the search PATH,
9821+ # but as the default location of the library.
9822+ hardcode_minus_L=yes
9823+ export_dynamic_flag_spec='${wl}-E'
9824+ ;;
9825+
9826+ hpux10*)
9827+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829+ else
9830+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831+ fi
9832+ if test "$with_gnu_ld" = no; then
9833+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834+ hardcode_libdir_separator=:
9835+ hardcode_direct=yes
9836+ hardcode_direct_absolute=yes
9837+ export_dynamic_flag_spec='${wl}-E'
9838+ # hardcode_minus_L: Not really in the search PATH,
9839+ # but as the default location of the library.
9840+ hardcode_minus_L=yes
9841+ fi
9842+ ;;
9843+
9844+ hpux11*)
9845+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846+ case $host_cpu in
9847+ hppa*64*)
9848+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849+ ;;
9850+ ia64*)
9851+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852+ ;;
9853+ *)
9854+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855+ ;;
9856+ esac
9857+ else
9858+ case $host_cpu in
9859+ hppa*64*)
9860+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861+ ;;
9862+ ia64*)
9863+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864+ ;;
9865+ *)
9866+
9867+ # Older versions of the 11.00 compiler do not understand -b yet
9868+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870+$as_echo_n "checking if $CC understands -b... " >&6; }
9871+if ${lt_cv_prog_compiler__b+:} false; then :
9872+ $as_echo_n "(cached) " >&6
9873+else
9874+ lt_cv_prog_compiler__b=no
9875+ save_LDFLAGS="$LDFLAGS"
9876+ LDFLAGS="$LDFLAGS -b"
9877+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879+ # The linker can only warn and ignore the option if not recognized
9880+ # So say no if there are warnings
9881+ if test -s conftest.err; then
9882+ # Append any errors to the config.log.
9883+ cat conftest.err 1>&5
9884+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886+ if diff conftest.exp conftest.er2 >/dev/null; then
9887+ lt_cv_prog_compiler__b=yes
9888+ fi
9889+ else
9890+ lt_cv_prog_compiler__b=yes
9891+ fi
9892+ fi
9893+ $RM -r conftest*
9894+ LDFLAGS="$save_LDFLAGS"
9895+
9896+fi
9897+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898+$as_echo "$lt_cv_prog_compiler__b" >&6; }
9899+
9900+if test x"$lt_cv_prog_compiler__b" = xyes; then
9901+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902+else
9903+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904+fi
9905+
9906+ ;;
9907+ esac
9908+ fi
9909+ if test "$with_gnu_ld" = no; then
9910+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911+ hardcode_libdir_separator=:
9912+
9913+ case $host_cpu in
9914+ hppa*64*|ia64*)
9915+ hardcode_direct=no
9916+ hardcode_shlibpath_var=no
9917+ ;;
9918+ *)
9919+ hardcode_direct=yes
9920+ hardcode_direct_absolute=yes
9921+ export_dynamic_flag_spec='${wl}-E'
9922+
9923+ # hardcode_minus_L: Not really in the search PATH,
9924+ # but as the default location of the library.
9925+ hardcode_minus_L=yes
9926+ ;;
9927+ esac
9928+ fi
9929+ ;;
9930+
9931+ irix5* | irix6* | nonstopux*)
9932+ if test "$GCC" = yes; then
9933+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9934+ # Try to use the -exported_symbol ld option, if it does not
9935+ # work, assume that -exports_file does not work either and
9936+ # implicitly export all symbols.
9937+ # This should be the same for all languages, so no per-tag cache variable.
9938+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940+if ${lt_cv_irix_exported_symbol+:} false; then :
9941+ $as_echo_n "(cached) " >&6
9942+else
9943+ save_LDFLAGS="$LDFLAGS"
9944+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946+/* end confdefs.h. */
9947+int foo (void) { return 0; }
9948+_ACEOF
9949+if ac_fn_c_try_link "$LINENO"; then :
9950+ lt_cv_irix_exported_symbol=yes
9951+else
9952+ lt_cv_irix_exported_symbol=no
9953+fi
9954+rm -f core conftest.err conftest.$ac_objext \
9955+ conftest$ac_exeext conftest.$ac_ext
9956+ LDFLAGS="$save_LDFLAGS"
9957+fi
9958+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960+ if test "$lt_cv_irix_exported_symbol" = yes; then
9961+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9962+ fi
9963+ else
9964+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9965+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9966+ fi
9967+ archive_cmds_need_lc='no'
9968+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969+ hardcode_libdir_separator=:
9970+ inherit_rpath=yes
9971+ link_all_deplibs=yes
9972+ ;;
9973+
9974+ netbsd*)
9975+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9977+ else
9978+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9979