| 5095 | | ac_check_lib_save_LIBS=$LIBS |
| 5096 | | LIBS="-lasound $LIBS" |
| 5097 | | cat >conftest.$ac_ext <<_ACEOF |
| | 5384 | ac_cv_build_alias=$build_alias |
| | 5385 | test -z "$ac_cv_build_alias" && |
| | 5386 | ac_cv_build_alias=`$ac_config_guess` |
| | 5387 | test -z "$ac_cv_build_alias" && |
| | 5388 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| | 5389 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| | 5390 | { (exit 1); exit 1; }; } |
| | 5391 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| | 5392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| | 5393 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| | 5394 | { (exit 1); exit 1; }; } |
| | 5395 | |
| | 5396 | fi |
| | 5397 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| | 5398 | echo "${ECHO_T}$ac_cv_build" >&6 |
| | 5399 | build=$ac_cv_build |
| | 5400 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| | 5401 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| | 5402 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| | 5403 | |
| | 5404 | |
| | 5405 | echo "$as_me:$LINENO: checking host system type" >&5 |
| | 5406 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| | 5407 | if test "${ac_cv_host+set}" = set; then |
| | 5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5409 | else |
| | 5410 | ac_cv_host_alias=$host_alias |
| | 5411 | test -z "$ac_cv_host_alias" && |
| | 5412 | ac_cv_host_alias=$ac_cv_build_alias |
| | 5413 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| | 5414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| | 5415 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| | 5416 | { (exit 1); exit 1; }; } |
| | 5417 | |
| | 5418 | fi |
| | 5419 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| | 5420 | echo "${ECHO_T}$ac_cv_host" >&6 |
| | 5421 | host=$ac_cv_host |
| | 5422 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| | 5423 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| | 5424 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| | 5425 | |
| | 5426 | |
| | 5427 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| | 5428 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| | 5429 | if test "${lt_cv_path_SED+set}" = set; then |
| | 5430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5431 | else |
| | 5432 | # Loop through the user's path and test for sed and gsed. |
| | 5433 | # Then use that list of sed's as ones to test for truncation. |
| | 5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 5435 | for as_dir in $PATH |
| | 5436 | do |
| | 5437 | IFS=$as_save_IFS |
| | 5438 | test -z "$as_dir" && as_dir=. |
| | 5439 | for lt_ac_prog in sed gsed; do |
| | 5440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 5441 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| | 5442 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| | 5443 | fi |
| | 5444 | done |
| | 5445 | done |
| | 5446 | done |
| | 5447 | lt_ac_max=0 |
| | 5448 | lt_ac_count=0 |
| | 5449 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| | 5450 | # along with /bin/sed that truncates output. |
| | 5451 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| | 5452 | test ! -f $lt_ac_sed && continue |
| | 5453 | cat /dev/null > conftest.in |
| | 5454 | lt_ac_count=0 |
| | 5455 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| | 5456 | # Check for GNU sed and select it if it is found. |
| | 5457 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| | 5458 | lt_cv_path_SED=$lt_ac_sed |
| | 5459 | break |
| | 5460 | fi |
| | 5461 | while true; do |
| | 5462 | cat conftest.in conftest.in >conftest.tmp |
| | 5463 | mv conftest.tmp conftest.in |
| | 5464 | cp conftest.in conftest.nl |
| | 5465 | echo >>conftest.nl |
| | 5466 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| | 5467 | cmp -s conftest.out conftest.nl || break |
| | 5468 | # 10000 chars as input seems more than enough |
| | 5469 | test $lt_ac_count -gt 10 && break |
| | 5470 | lt_ac_count=`expr $lt_ac_count + 1` |
| | 5471 | if test $lt_ac_count -gt $lt_ac_max; then |
| | 5472 | lt_ac_max=$lt_ac_count |
| | 5473 | lt_cv_path_SED=$lt_ac_sed |
| | 5474 | fi |
| | 5475 | done |
| | 5476 | done |
| | 5477 | |
| | 5478 | fi |
| | 5479 | |
| | 5480 | SED=$lt_cv_path_SED |
| | 5481 | echo "$as_me:$LINENO: result: $SED" >&5 |
| | 5482 | echo "${ECHO_T}$SED" >&6 |
| | 5483 | |
| | 5484 | |
| | 5485 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| | 5486 | if test "${with_gnu_ld+set}" = set; then |
| | 5487 | withval="$with_gnu_ld" |
| | 5488 | test "$withval" = no || with_gnu_ld=yes |
| | 5489 | else |
| | 5490 | with_gnu_ld=no |
| | 5491 | fi; |
| | 5492 | ac_prog=ld |
| | 5493 | if test "$GCC" = yes; then |
| | 5494 | # Check if gcc -print-prog-name=ld gives a path. |
| | 5495 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| | 5496 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| | 5497 | case $host in |
| | 5498 | *-*-mingw*) |
| | 5499 | # gcc leaves a trailing carriage return which upsets mingw |
| | 5500 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| | 5501 | *) |
| | 5502 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| | 5503 | esac |
| | 5504 | case $ac_prog in |
| | 5505 | # Accept absolute paths. |
| | 5506 | [\\/]* | ?:[\\/]*) |
| | 5507 | re_direlt='/[^/][^/]*/\.\./' |
| | 5508 | # Canonicalize the pathname of ld |
| | 5509 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| | 5510 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| | 5511 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| | 5512 | done |
| | 5513 | test -z "$LD" && LD="$ac_prog" |
| | 5514 | ;; |
| | 5515 | "") |
| | 5516 | # If it fails, then pretend we aren't using GCC. |
| | 5517 | ac_prog=ld |
| | 5518 | ;; |
| | 5519 | *) |
| | 5520 | # If it is relative, then search for the first ld in PATH. |
| | 5521 | with_gnu_ld=unknown |
| | 5522 | ;; |
| | 5523 | esac |
| | 5524 | elif test "$with_gnu_ld" = yes; then |
| | 5525 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| | 5526 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| | 5527 | else |
| | 5528 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| | 5529 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| | 5530 | fi |
| | 5531 | if test "${lt_cv_path_LD+set}" = set; then |
| | 5532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5533 | else |
| | 5534 | if test -z "$LD"; then |
| | 5535 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| | 5536 | for ac_dir in $PATH; do |
| | 5537 | IFS="$lt_save_ifs" |
| | 5538 | test -z "$ac_dir" && ac_dir=. |
| | 5539 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| | 5540 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| | 5541 | # Check to see if the program is GNU ld. I'd rather use --version, |
| | 5542 | # but apparently some variants of GNU ld only accept -v. |
| | 5543 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| | 5544 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| | 5545 | *GNU* | *'with BFD'*) |
| | 5546 | test "$with_gnu_ld" != no && break |
| | 5547 | ;; |
| | 5548 | *) |
| | 5549 | test "$with_gnu_ld" != yes && break |
| | 5550 | ;; |
| | 5551 | esac |
| | 5552 | fi |
| | 5553 | done |
| | 5554 | IFS="$lt_save_ifs" |
| | 5555 | else |
| | 5556 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| | 5557 | fi |
| | 5558 | fi |
| | 5559 | |
| | 5560 | LD="$lt_cv_path_LD" |
| | 5561 | if test -n "$LD"; then |
| | 5562 | echo "$as_me:$LINENO: result: $LD" >&5 |
| | 5563 | echo "${ECHO_T}$LD" >&6 |
| | 5564 | else |
| | 5565 | echo "$as_me:$LINENO: result: no" >&5 |
| | 5566 | echo "${ECHO_T}no" >&6 |
| | 5567 | fi |
| | 5568 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| | 5569 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| | 5570 | { (exit 1); exit 1; }; } |
| | 5571 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| | 5572 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| | 5573 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| | 5574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5575 | else |
| | 5576 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| | 5577 | case `$LD -v 2>&1 </dev/null` in |
| | 5578 | *GNU* | *'with BFD'*) |
| | 5579 | lt_cv_prog_gnu_ld=yes |
| | 5580 | ;; |
| | 5581 | *) |
| | 5582 | lt_cv_prog_gnu_ld=no |
| | 5583 | ;; |
| | 5584 | esac |
| | 5585 | fi |
| | 5586 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| | 5587 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| | 5588 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| | 5589 | |
| | 5590 | |
| | 5591 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| | 5592 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| | 5593 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| | 5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5595 | else |
| | 5596 | lt_cv_ld_reload_flag='-r' |
| | 5597 | fi |
| | 5598 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| | 5599 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| | 5600 | reload_flag=$lt_cv_ld_reload_flag |
| | 5601 | case $reload_flag in |
| | 5602 | "" | " "*) ;; |
| | 5603 | *) reload_flag=" $reload_flag" ;; |
| | 5604 | esac |
| | 5605 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| | 5606 | case $host_os in |
| | 5607 | darwin*) |
| | 5608 | if test "$GCC" = yes; then |
| | 5609 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| | 5610 | else |
| | 5611 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| | 5612 | fi |
| | 5613 | ;; |
| | 5614 | esac |
| | 5615 | |
| | 5616 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| | 5617 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| | 5618 | if test "${lt_cv_path_NM+set}" = set; then |
| | 5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5620 | else |
| | 5621 | if test -n "$NM"; then |
| | 5622 | # Let the user override the test. |
| | 5623 | lt_cv_path_NM="$NM" |
| | 5624 | else |
| | 5625 | lt_nm_to_check="${ac_tool_prefix}nm" |
| | 5626 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| | 5627 | lt_nm_to_check="$lt_nm_to_check nm" |
| | 5628 | fi |
| | 5629 | for lt_tmp_nm in $lt_nm_to_check; do |
| | 5630 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| | 5631 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| | 5632 | IFS="$lt_save_ifs" |
| | 5633 | test -z "$ac_dir" && ac_dir=. |
| | 5634 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| | 5635 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| | 5636 | # Check to see if the nm accepts a BSD-compat flag. |
| | 5637 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| | 5638 | # nm: unknown option "B" ignored |
| | 5639 | # Tru64's nm complains that /dev/null is an invalid object file |
| | 5640 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| | 5641 | */dev/null* | *'Invalid file or object type'*) |
| | 5642 | lt_cv_path_NM="$tmp_nm -B" |
| | 5643 | break |
| | 5644 | ;; |
| | 5645 | *) |
| | 5646 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| | 5647 | */dev/null*) |
| | 5648 | lt_cv_path_NM="$tmp_nm -p" |
| | 5649 | break |
| | 5650 | ;; |
| | 5651 | *) |
| | 5652 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| | 5653 | continue # so that we can try to find one that supports BSD flags |
| | 5654 | ;; |
| | 5655 | esac |
| | 5656 | ;; |
| | 5657 | esac |
| | 5658 | fi |
| | 5659 | done |
| | 5660 | IFS="$lt_save_ifs" |
| | 5661 | done |
| | 5662 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| | 5663 | fi |
| | 5664 | fi |
| | 5665 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| | 5666 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| | 5667 | NM="$lt_cv_path_NM" |
| | 5668 | |
| | 5669 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| | 5670 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| | 5671 | LN_S=$as_ln_s |
| | 5672 | if test "$LN_S" = "ln -s"; then |
| | 5673 | echo "$as_me:$LINENO: result: yes" >&5 |
| | 5674 | echo "${ECHO_T}yes" >&6 |
| | 5675 | else |
| | 5676 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| | 5677 | echo "${ECHO_T}no, using $LN_S" >&6 |
| | 5678 | fi |
| | 5679 | |
| | 5680 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| | 5681 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| | 5682 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| | 5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5684 | else |
| | 5685 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| | 5686 | lt_cv_file_magic_test_file= |
| | 5687 | lt_cv_deplibs_check_method='unknown' |
| | 5688 | # Need to set the preceding variable on all platforms that support |
| | 5689 | # interlibrary dependencies. |
| | 5690 | # 'none' -- dependencies not supported. |
| | 5691 | # `unknown' -- same as none, but documents that we really don't know. |
| | 5692 | # 'pass_all' -- all dependencies passed with no checks. |
| | 5693 | # 'test_compile' -- check by making test program. |
| | 5694 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| | 5695 | # which responds to the $file_magic_cmd with a given extended regex. |
| | 5696 | # If you have `file' or equivalent on your system and you're not sure |
| | 5697 | # whether `pass_all' will *always* work, you probably want this one. |
| | 5698 | |
| | 5699 | case $host_os in |
| | 5700 | aix4* | aix5*) |
| | 5701 | lt_cv_deplibs_check_method=pass_all |
| | 5702 | ;; |
| | 5703 | |
| | 5704 | beos*) |
| | 5705 | lt_cv_deplibs_check_method=pass_all |
| | 5706 | ;; |
| | 5707 | |
| | 5708 | bsdi[45]*) |
| | 5709 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| | 5710 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| | 5711 | lt_cv_file_magic_test_file=/shlib/libc.so |
| | 5712 | ;; |
| | 5713 | |
| | 5714 | cygwin*) |
| | 5715 | # func_win32_libid is a shell function defined in ltmain.sh |
| | 5716 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| | 5717 | lt_cv_file_magic_cmd='func_win32_libid' |
| | 5718 | ;; |
| | 5719 | |
| | 5720 | mingw* | pw32*) |
| | 5721 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| | 5722 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| | 5723 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| | 5724 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| | 5725 | ;; |
| | 5726 | |
| | 5727 | darwin* | rhapsody*) |
| | 5728 | lt_cv_deplibs_check_method=pass_all |
| | 5729 | ;; |
| | 5730 | |
| | 5731 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| | 5732 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| | 5733 | case $host_cpu in |
| | 5734 | i*86 ) |
| | 5735 | # Not sure whether the presence of OpenBSD here was a mistake. |
| | 5736 | # Let's accept both of them until this is cleared up. |
| | 5737 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| | 5738 | lt_cv_file_magic_cmd=/usr/bin/file |
| | 5739 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| | 5740 | ;; |
| | 5741 | esac |
| | 5742 | else |
| | 5743 | lt_cv_deplibs_check_method=pass_all |
| | 5744 | fi |
| | 5745 | ;; |
| | 5746 | |
| | 5747 | gnu*) |
| | 5748 | lt_cv_deplibs_check_method=pass_all |
| | 5749 | ;; |
| | 5750 | |
| | 5751 | hpux10.20* | hpux11*) |
| | 5752 | lt_cv_file_magic_cmd=/usr/bin/file |
| | 5753 | case $host_cpu in |
| | 5754 | ia64*) |
| | 5755 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| | 5756 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| | 5757 | ;; |
| | 5758 | hppa*64*) |
| | 5759 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| | 5760 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| | 5761 | ;; |
| | 5762 | *) |
| | 5763 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| | 5764 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| | 5765 | ;; |
| | 5766 | esac |
| | 5767 | ;; |
| | 5768 | |
| | 5769 | interix3*) |
| | 5770 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| | 5771 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| | 5772 | ;; |
| | 5773 | |
| | 5774 | irix5* | irix6* | nonstopux*) |
| | 5775 | case $LD in |
| | 5776 | *-32|*"-32 ") libmagic=32-bit;; |
| | 5777 | *-n32|*"-n32 ") libmagic=N32;; |
| | 5778 | *-64|*"-64 ") libmagic=64-bit;; |
| | 5779 | *) libmagic=never-match;; |
| | 5780 | esac |
| | 5781 | lt_cv_deplibs_check_method=pass_all |
| | 5782 | ;; |
| | 5783 | |
| | 5784 | # This must be Linux ELF. |
| | 5785 | linux*) |
| | 5786 | lt_cv_deplibs_check_method=pass_all |
| | 5787 | ;; |
| | 5788 | |
| | 5789 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 5790 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| | 5791 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| | 5792 | else |
| | 5793 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| | 5794 | fi |
| | 5795 | ;; |
| | 5796 | |
| | 5797 | newos6*) |
| | 5798 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| | 5799 | lt_cv_file_magic_cmd=/usr/bin/file |
| | 5800 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| | 5801 | ;; |
| | 5802 | |
| | 5803 | nto-qnx*) |
| | 5804 | lt_cv_deplibs_check_method=unknown |
| | 5805 | ;; |
| | 5806 | |
| | 5807 | openbsd*) |
| | 5808 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 5809 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| | 5810 | else |
| | 5811 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| | 5812 | fi |
| | 5813 | ;; |
| | 5814 | |
| | 5815 | osf3* | osf4* | osf5*) |
| | 5816 | lt_cv_deplibs_check_method=pass_all |
| | 5817 | ;; |
| | 5818 | |
| | 5819 | solaris*) |
| | 5820 | lt_cv_deplibs_check_method=pass_all |
| | 5821 | ;; |
| | 5822 | |
| | 5823 | sysv4 | sysv4.3*) |
| | 5824 | case $host_vendor in |
| | 5825 | motorola) |
| | 5826 | 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]' |
| | 5827 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| | 5828 | ;; |
| | 5829 | ncr) |
| | 5830 | lt_cv_deplibs_check_method=pass_all |
| | 5831 | ;; |
| | 5832 | sequent) |
| | 5833 | lt_cv_file_magic_cmd='/bin/file' |
| | 5834 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| | 5835 | ;; |
| | 5836 | sni) |
| | 5837 | lt_cv_file_magic_cmd='/bin/file' |
| | 5838 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| | 5839 | lt_cv_file_magic_test_file=/lib/libc.so |
| | 5840 | ;; |
| | 5841 | siemens) |
| | 5842 | lt_cv_deplibs_check_method=pass_all |
| | 5843 | ;; |
| | 5844 | pc) |
| | 5845 | lt_cv_deplibs_check_method=pass_all |
| | 5846 | ;; |
| | 5847 | esac |
| | 5848 | ;; |
| | 5849 | |
| | 5850 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| | 5851 | lt_cv_deplibs_check_method=pass_all |
| | 5852 | ;; |
| | 5853 | esac |
| | 5854 | |
| | 5855 | fi |
| | 5856 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| | 5857 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| | 5858 | file_magic_cmd=$lt_cv_file_magic_cmd |
| | 5859 | deplibs_check_method=$lt_cv_deplibs_check_method |
| | 5860 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| | 5861 | |
| | 5862 | |
| | 5863 | |
| | 5864 | |
| | 5865 | # If no C compiler was specified, use CC. |
| | 5866 | LTCC=${LTCC-"$CC"} |
| | 5867 | |
| | 5868 | # If no C compiler flags were specified, use CFLAGS. |
| | 5869 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | 5870 | |
| | 5871 | # Allow CC to be a program name with arguments. |
| | 5872 | compiler=$CC |
| | 5873 | |
| | 5874 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| | 5875 | if test "${enable_libtool_lock+set}" = set; then |
| | 5876 | enableval="$enable_libtool_lock" |
| | 5877 | |
| | 5878 | fi; |
| | 5879 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| | 5880 | |
| | 5881 | # Some flags need to be propagated to the compiler or linker for good |
| | 5882 | # libtool support. |
| | 5883 | case $host in |
| | 5884 | ia64-*-hpux*) |
| | 5885 | # Find out which ABI we are using. |
| | 5886 | echo 'int i;' > conftest.$ac_ext |
| | 5887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 5888 | (eval $ac_compile) 2>&5 |
| | 5889 | ac_status=$? |
| | 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 5891 | (exit $ac_status); }; then |
| | 5892 | case `/usr/bin/file conftest.$ac_objext` in |
| | 5893 | *ELF-32*) |
| | 5894 | HPUX_IA64_MODE="32" |
| | 5895 | ;; |
| | 5896 | *ELF-64*) |
| | 5897 | HPUX_IA64_MODE="64" |
| | 5898 | ;; |
| | 5899 | esac |
| | 5900 | fi |
| | 5901 | rm -rf conftest* |
| | 5902 | ;; |
| | 5903 | *-*-irix6*) |
| | 5904 | # Find out which ABI we are using. |
| | 5905 | echo '#line 5905 "configure"' > conftest.$ac_ext |
| | 5906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 5907 | (eval $ac_compile) 2>&5 |
| | 5908 | ac_status=$? |
| | 5909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 5910 | (exit $ac_status); }; then |
| | 5911 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | 5912 | case `/usr/bin/file conftest.$ac_objext` in |
| | 5913 | *32-bit*) |
| | 5914 | LD="${LD-ld} -melf32bsmip" |
| | 5915 | ;; |
| | 5916 | *N32*) |
| | 5917 | LD="${LD-ld} -melf32bmipn32" |
| | 5918 | ;; |
| | 5919 | *64-bit*) |
| | 5920 | LD="${LD-ld} -melf64bmip" |
| | 5921 | ;; |
| | 5922 | esac |
| | 5923 | else |
| | 5924 | case `/usr/bin/file conftest.$ac_objext` in |
| | 5925 | *32-bit*) |
| | 5926 | LD="${LD-ld} -32" |
| | 5927 | ;; |
| | 5928 | *N32*) |
| | 5929 | LD="${LD-ld} -n32" |
| | 5930 | ;; |
| | 5931 | *64-bit*) |
| | 5932 | LD="${LD-ld} -64" |
| | 5933 | ;; |
| | 5934 | esac |
| | 5935 | fi |
| | 5936 | fi |
| | 5937 | rm -rf conftest* |
| | 5938 | ;; |
| | 5939 | |
| | 5940 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| | 5941 | # Find out which ABI we are using. |
| | 5942 | echo 'int i;' > conftest.$ac_ext |
| | 5943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 5944 | (eval $ac_compile) 2>&5 |
| | 5945 | ac_status=$? |
| | 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 5947 | (exit $ac_status); }; then |
| | 5948 | case `/usr/bin/file conftest.o` in |
| | 5949 | *32-bit*) |
| | 5950 | case $host in |
| | 5951 | x86_64-*linux*) |
| | 5952 | LD="${LD-ld} -m elf_i386" |
| | 5953 | ;; |
| | 5954 | ppc64-*linux*|powerpc64-*linux*) |
| | 5955 | LD="${LD-ld} -m elf32ppclinux" |
| | 5956 | ;; |
| | 5957 | s390x-*linux*) |
| | 5958 | LD="${LD-ld} -m elf_s390" |
| | 5959 | ;; |
| | 5960 | sparc64-*linux*) |
| | 5961 | LD="${LD-ld} -m elf32_sparc" |
| | 5962 | ;; |
| | 5963 | esac |
| | 5964 | ;; |
| | 5965 | *64-bit*) |
| | 5966 | case $host in |
| | 5967 | x86_64-*linux*) |
| | 5968 | LD="${LD-ld} -m elf_x86_64" |
| | 5969 | ;; |
| | 5970 | ppc*-*linux*|powerpc*-*linux*) |
| | 5971 | LD="${LD-ld} -m elf64ppc" |
| | 5972 | ;; |
| | 5973 | s390*-*linux*) |
| | 5974 | LD="${LD-ld} -m elf64_s390" |
| | 5975 | ;; |
| | 5976 | sparc*-*linux*) |
| | 5977 | LD="${LD-ld} -m elf64_sparc" |
| | 5978 | ;; |
| | 5979 | esac |
| | 5980 | ;; |
| | 5981 | esac |
| | 5982 | fi |
| | 5983 | rm -rf conftest* |
| | 5984 | ;; |
| | 5985 | |
| | 5986 | *-*-sco3.2v5*) |
| | 5987 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| | 5988 | SAVE_CFLAGS="$CFLAGS" |
| | 5989 | CFLAGS="$CFLAGS -belf" |
| | 5990 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| | 5991 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| | 5992 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| | 5993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 5994 | else |
| | 5995 | ac_ext=c |
| | 5996 | ac_cpp='$CPP $CPPFLAGS' |
| | 5997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 5998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 5999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 6000 | |
| | 6001 | cat >conftest.$ac_ext <<_ACEOF |
| 5384 | | |
| 5385 | | |
| 5386 | | if test $alsalib = yes && test $alsaheader = yes; then |
| | 6306 | ac_ext=cc |
| | 6307 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6311 | if test -n "$ac_tool_prefix"; then |
| | 6312 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| | 6313 | do |
| | 6314 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| | 6315 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| | 6316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 6317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 6318 | if test "${ac_cv_prog_CXX+set}" = set; then |
| | 6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6320 | else |
| | 6321 | if test -n "$CXX"; then |
| | 6322 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| | 6323 | else |
| | 6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 6325 | for as_dir in $PATH |
| | 6326 | do |
| | 6327 | IFS=$as_save_IFS |
| | 6328 | test -z "$as_dir" && as_dir=. |
| | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 6330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 6331 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| | 6332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 6333 | break 2 |
| | 6334 | fi |
| | 6335 | done |
| | 6336 | done |
| | 6337 | |
| | 6338 | fi |
| | 6339 | fi |
| | 6340 | CXX=$ac_cv_prog_CXX |
| | 6341 | if test -n "$CXX"; then |
| | 6342 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| | 6343 | echo "${ECHO_T}$CXX" >&6 |
| | 6344 | else |
| | 6345 | echo "$as_me:$LINENO: result: no" >&5 |
| | 6346 | echo "${ECHO_T}no" >&6 |
| | 6347 | fi |
| | 6348 | |
| | 6349 | test -n "$CXX" && break |
| | 6350 | done |
| | 6351 | fi |
| | 6352 | if test -z "$CXX"; then |
| | 6353 | ac_ct_CXX=$CXX |
| | 6354 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| | 6355 | do |
| | 6356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | 6357 | set dummy $ac_prog; ac_word=$2 |
| | 6358 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 6359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 6360 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| | 6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6362 | else |
| | 6363 | if test -n "$ac_ct_CXX"; then |
| | 6364 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| | 6365 | else |
| | 6366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 6367 | for as_dir in $PATH |
| | 6368 | do |
| | 6369 | IFS=$as_save_IFS |
| | 6370 | test -z "$as_dir" && as_dir=. |
| | 6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 6372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 6373 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| | 6374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 6375 | break 2 |
| | 6376 | fi |
| | 6377 | done |
| | 6378 | done |
| | 6379 | |
| | 6380 | fi |
| | 6381 | fi |
| | 6382 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| | 6383 | if test -n "$ac_ct_CXX"; then |
| | 6384 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| | 6385 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| | 6386 | else |
| | 6387 | echo "$as_me:$LINENO: result: no" >&5 |
| | 6388 | echo "${ECHO_T}no" >&6 |
| | 6389 | fi |
| | 6390 | |
| | 6391 | test -n "$ac_ct_CXX" && break |
| | 6392 | done |
| | 6393 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| | 6394 | |
| | 6395 | CXX=$ac_ct_CXX |
| | 6396 | fi |
| | 6397 | |
| | 6398 | |
| | 6399 | # Provide some information about the compiler. |
| | 6400 | echo "$as_me:$LINENO:" \ |
| | 6401 | "checking for C++ compiler version" >&5 |
| | 6402 | ac_compiler=`set X $ac_compile; echo $2` |
| | 6403 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| | 6404 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| | 6405 | ac_status=$? |
| | 6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6407 | (exit $ac_status); } |
| | 6408 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| | 6409 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| | 6410 | ac_status=$? |
| | 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6412 | (exit $ac_status); } |
| | 6413 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| | 6414 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| | 6415 | ac_status=$? |
| | 6416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6417 | (exit $ac_status); } |
| | 6418 | |
| | 6419 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| | 6420 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| | 6421 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| | 6422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6423 | else |
| | 6424 | cat >conftest.$ac_ext <<_ACEOF |
| | 6425 | /* confdefs.h. */ |
| | 6426 | _ACEOF |
| | 6427 | cat confdefs.h >>conftest.$ac_ext |
| | 6428 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6429 | /* end confdefs.h. */ |
| | 6430 | |
| | 6431 | int |
| | 6432 | main () |
| | 6433 | { |
| | 6434 | #ifndef __GNUC__ |
| | 6435 | choke me |
| | 6436 | #endif |
| | 6437 | |
| | 6438 | ; |
| | 6439 | return 0; |
| | 6440 | } |
| | 6441 | _ACEOF |
| | 6442 | rm -f conftest.$ac_objext |
| | 6443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6444 | (eval $ac_compile) 2>conftest.er1 |
| | 6445 | ac_status=$? |
| | 6446 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6447 | rm -f conftest.er1 |
| | 6448 | cat conftest.err >&5 |
| | 6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6450 | (exit $ac_status); } && |
| | 6451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6453 | (eval $ac_try) 2>&5 |
| | 6454 | ac_status=$? |
| | 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6456 | (exit $ac_status); }; } && |
| | 6457 | { ac_try='test -s conftest.$ac_objext' |
| | 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6459 | (eval $ac_try) 2>&5 |
| | 6460 | ac_status=$? |
| | 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6462 | (exit $ac_status); }; }; then |
| | 6463 | ac_compiler_gnu=yes |
| | 6464 | else |
| | 6465 | echo "$as_me: failed program was:" >&5 |
| | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6467 | |
| | 6468 | ac_compiler_gnu=no |
| | 6469 | fi |
| | 6470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6471 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| | 6472 | |
| | 6473 | fi |
| | 6474 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| | 6475 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| | 6476 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| | 6477 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| | 6478 | ac_save_CXXFLAGS=$CXXFLAGS |
| | 6479 | CXXFLAGS="-g" |
| | 6480 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| | 6481 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| | 6482 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| | 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6484 | else |
| | 6485 | cat >conftest.$ac_ext <<_ACEOF |
| | 6486 | /* confdefs.h. */ |
| | 6487 | _ACEOF |
| | 6488 | cat confdefs.h >>conftest.$ac_ext |
| | 6489 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6490 | /* end confdefs.h. */ |
| | 6491 | |
| | 6492 | int |
| | 6493 | main () |
| | 6494 | { |
| | 6495 | |
| | 6496 | ; |
| | 6497 | return 0; |
| | 6498 | } |
| | 6499 | _ACEOF |
| | 6500 | rm -f conftest.$ac_objext |
| | 6501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6502 | (eval $ac_compile) 2>conftest.er1 |
| | 6503 | ac_status=$? |
| | 6504 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6505 | rm -f conftest.er1 |
| | 6506 | cat conftest.err >&5 |
| | 6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6508 | (exit $ac_status); } && |
| | 6509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6511 | (eval $ac_try) 2>&5 |
| | 6512 | ac_status=$? |
| | 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6514 | (exit $ac_status); }; } && |
| | 6515 | { ac_try='test -s conftest.$ac_objext' |
| | 6516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6517 | (eval $ac_try) 2>&5 |
| | 6518 | ac_status=$? |
| | 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6520 | (exit $ac_status); }; }; then |
| | 6521 | ac_cv_prog_cxx_g=yes |
| | 6522 | else |
| | 6523 | echo "$as_me: failed program was:" >&5 |
| | 6524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6525 | |
| | 6526 | ac_cv_prog_cxx_g=no |
| | 6527 | fi |
| | 6528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6529 | fi |
| | 6530 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| | 6531 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| | 6532 | if test "$ac_test_CXXFLAGS" = set; then |
| | 6533 | CXXFLAGS=$ac_save_CXXFLAGS |
| | 6534 | elif test $ac_cv_prog_cxx_g = yes; then |
| | 6535 | if test "$GXX" = yes; then |
| | 6536 | CXXFLAGS="-g -O2" |
| | 6537 | else |
| | 6538 | CXXFLAGS="-g" |
| | 6539 | fi |
| | 6540 | else |
| | 6541 | if test "$GXX" = yes; then |
| | 6542 | CXXFLAGS="-O2" |
| | 6543 | else |
| | 6544 | CXXFLAGS= |
| | 6545 | fi |
| | 6546 | fi |
| | 6547 | for ac_declaration in \ |
| | 6548 | '' \ |
| | 6549 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| | 6550 | 'extern "C" void std::exit (int); using std::exit;' \ |
| | 6551 | 'extern "C" void exit (int) throw ();' \ |
| | 6552 | 'extern "C" void exit (int);' \ |
| | 6553 | 'void exit (int);' |
| | 6554 | do |
| | 6555 | cat >conftest.$ac_ext <<_ACEOF |
| | 6556 | /* confdefs.h. */ |
| | 6557 | _ACEOF |
| | 6558 | cat confdefs.h >>conftest.$ac_ext |
| | 6559 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6560 | /* end confdefs.h. */ |
| | 6561 | $ac_declaration |
| | 6562 | #include <stdlib.h> |
| | 6563 | int |
| | 6564 | main () |
| | 6565 | { |
| | 6566 | exit (42); |
| | 6567 | ; |
| | 6568 | return 0; |
| | 6569 | } |
| | 6570 | _ACEOF |
| | 6571 | rm -f conftest.$ac_objext |
| | 6572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6573 | (eval $ac_compile) 2>conftest.er1 |
| | 6574 | ac_status=$? |
| | 6575 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6576 | rm -f conftest.er1 |
| | 6577 | cat conftest.err >&5 |
| | 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6579 | (exit $ac_status); } && |
| | 6580 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6582 | (eval $ac_try) 2>&5 |
| | 6583 | ac_status=$? |
| | 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6585 | (exit $ac_status); }; } && |
| | 6586 | { ac_try='test -s conftest.$ac_objext' |
| | 6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6588 | (eval $ac_try) 2>&5 |
| | 6589 | ac_status=$? |
| | 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6591 | (exit $ac_status); }; }; then |
| | 6592 | : |
| | 6593 | else |
| | 6594 | echo "$as_me: failed program was:" >&5 |
| | 6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6596 | |
| | 6597 | continue |
| | 6598 | fi |
| | 6599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6600 | cat >conftest.$ac_ext <<_ACEOF |
| | 6601 | /* confdefs.h. */ |
| | 6602 | _ACEOF |
| | 6603 | cat confdefs.h >>conftest.$ac_ext |
| | 6604 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6605 | /* end confdefs.h. */ |
| | 6606 | $ac_declaration |
| | 6607 | int |
| | 6608 | main () |
| | 6609 | { |
| | 6610 | exit (42); |
| | 6611 | ; |
| | 6612 | return 0; |
| | 6613 | } |
| | 6614 | _ACEOF |
| | 6615 | rm -f conftest.$ac_objext |
| | 6616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6617 | (eval $ac_compile) 2>conftest.er1 |
| | 6618 | ac_status=$? |
| | 6619 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6620 | rm -f conftest.er1 |
| | 6621 | cat conftest.err >&5 |
| | 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6623 | (exit $ac_status); } && |
| | 6624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6626 | (eval $ac_try) 2>&5 |
| | 6627 | ac_status=$? |
| | 6628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6629 | (exit $ac_status); }; } && |
| | 6630 | { ac_try='test -s conftest.$ac_objext' |
| | 6631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6632 | (eval $ac_try) 2>&5 |
| | 6633 | ac_status=$? |
| | 6634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6635 | (exit $ac_status); }; }; then |
| | 6636 | break |
| | 6637 | else |
| | 6638 | echo "$as_me: failed program was:" >&5 |
| | 6639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6640 | |
| | 6641 | fi |
| | 6642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6643 | done |
| | 6644 | rm -f conftest* |
| | 6645 | if test -n "$ac_declaration"; then |
| | 6646 | echo '#ifdef __cplusplus' >>confdefs.h |
| | 6647 | echo $ac_declaration >>confdefs.h |
| | 6648 | echo '#endif' >>confdefs.h |
| | 6649 | fi |
| | 6650 | |
| | 6651 | ac_ext=cc |
| | 6652 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6656 | |
| | 6657 | depcc="$CXX" am_compiler_list= |
| | 6658 | |
| | 6659 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| | 6660 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| | 6661 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| | 6662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6663 | else |
| | 6664 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| | 6665 | # We make a subdir and do the tests there. Otherwise we can end up |
| | 6666 | # making bogus files that we don't know about and never remove. For |
| | 6667 | # instance it was reported that on HP-UX the gcc test will end up |
| | 6668 | # making a dummy file named `D' -- because `-MD' means `put the output |
| | 6669 | # in D'. |
| | 6670 | mkdir conftest.dir |
| | 6671 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| | 6672 | # using a relative directory. |
| | 6673 | cp "$am_depcomp" conftest.dir |
| | 6674 | cd conftest.dir |
| | 6675 | # We will build objects and dependencies in a subdirectory because |
| | 6676 | # it helps to detect inapplicable dependency modes. For instance |
| | 6677 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| | 6678 | # side effect of compilation, but ICC will put the dependencies in |
| | 6679 | # the current directory while Tru64 will put them in the object |
| | 6680 | # directory. |
| | 6681 | mkdir sub |
| | 6682 | |
| | 6683 | am_cv_CXX_dependencies_compiler_type=none |
| | 6684 | if test "$am_compiler_list" = ""; then |
| | 6685 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| | 6686 | fi |
| | 6687 | for depmode in $am_compiler_list; do |
| | 6688 | # Setup a source with many dependencies, because some compilers |
| | 6689 | # like to wrap large dependency lists on column 80 (with \), and |
| | 6690 | # we should not choose a depcomp mode which is confused by this. |
| | 6691 | # |
| | 6692 | # We need to recreate these files for each test, as the compiler may |
| | 6693 | # overwrite some of them when testing with obscure command lines. |
| | 6694 | # This happens at least with the AIX C compiler. |
| | 6695 | : > sub/conftest.c |
| | 6696 | for i in 1 2 3 4 5 6; do |
| | 6697 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| | 6698 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| | 6699 | # Solaris 8's {/usr,}/bin/sh. |
| | 6700 | touch sub/conftst$i.h |
| | 6701 | done |
| | 6702 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| | 6703 | |
| | 6704 | case $depmode in |
| | 6705 | nosideeffect) |
| | 6706 | # after this tag, mechanisms are not by side-effect, so they'll |
| | 6707 | # only be used when explicitly requested |
| | 6708 | if test "x$enable_dependency_tracking" = xyes; then |
| | 6709 | continue |
| | 6710 | else |
| | 6711 | break |
| | 6712 | fi |
| | 6713 | ;; |
| | 6714 | none) break ;; |
| | 6715 | esac |
| | 6716 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| | 6717 | # mode. It turns out that the SunPro C++ compiler does not properly |
| | 6718 | # handle `-M -o', and we need to detect this. |
| | 6719 | if depmode=$depmode \ |
| | 6720 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| | 6721 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| | 6722 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| | 6723 | >/dev/null 2>conftest.err && |
| | 6724 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| | 6725 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| | 6726 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| | 6727 | # icc doesn't choke on unknown options, it will just issue warnings |
| | 6728 | # or remarks (even with -Werror). So we grep stderr for any message |
| | 6729 | # that says an option was ignored or not supported. |
| | 6730 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| | 6731 | # icc: Command line warning: ignoring option '-M'; no argument required |
| | 6732 | # The diagnosis changed in icc 8.0: |
| | 6733 | # icc: Command line remark: option '-MP' not supported |
| | 6734 | if (grep 'ignoring option' conftest.err || |
| | 6735 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| | 6736 | am_cv_CXX_dependencies_compiler_type=$depmode |
| | 6737 | break |
| | 6738 | fi |
| | 6739 | fi |
| | 6740 | done |
| | 6741 | |
| | 6742 | cd .. |
| | 6743 | rm -rf conftest.dir |
| | 6744 | else |
| | 6745 | am_cv_CXX_dependencies_compiler_type=none |
| | 6746 | fi |
| | 6747 | |
| | 6748 | fi |
| | 6749 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| | 6750 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| | 6751 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| | 6752 | |
| | 6753 | |
| | 6754 | |
| | 6755 | if |
| | 6756 | test "x$enable_dependency_tracking" != xno \ |
| | 6757 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| | 6758 | am__fastdepCXX_TRUE= |
| | 6759 | am__fastdepCXX_FALSE='#' |
| | 6760 | else |
| | 6761 | am__fastdepCXX_TRUE='#' |
| | 6762 | am__fastdepCXX_FALSE= |
| | 6763 | fi |
| | 6764 | |
| | 6765 | |
| | 6766 | |
| | 6767 | |
| | 6768 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| | 6769 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| | 6770 | (test "X$CXX" != "Xg++"))) ; then |
| | 6771 | ac_ext=cc |
| | 6772 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6776 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| | 6777 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| | 6778 | if test -z "$CXXCPP"; then |
| | 6779 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| | 6780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6781 | else |
| | 6782 | # Double quotes because CXXCPP needs to be expanded |
| | 6783 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| | 6784 | do |
| | 6785 | ac_preproc_ok=false |
| | 6786 | for ac_cxx_preproc_warn_flag in '' yes |
| | 6787 | do |
| | 6788 | # Use a header file that comes with gcc, so configuring glibc |
| | 6789 | # with a fresh cross-compiler works. |
| | 6790 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 6791 | # <limits.h> exists even on freestanding compilers. |
| | 6792 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 6793 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 6794 | cat >conftest.$ac_ext <<_ACEOF |
| | 6795 | /* confdefs.h. */ |
| | 6796 | _ACEOF |
| | 6797 | cat confdefs.h >>conftest.$ac_ext |
| | 6798 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6799 | /* end confdefs.h. */ |
| | 6800 | #ifdef __STDC__ |
| | 6801 | # include <limits.h> |
| | 6802 | #else |
| | 6803 | # include <assert.h> |
| | 6804 | #endif |
| | 6805 | Syntax error |
| | 6806 | _ACEOF |
| | 6807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6809 | ac_status=$? |
| | 6810 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6811 | rm -f conftest.er1 |
| | 6812 | cat conftest.err >&5 |
| | 6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6814 | (exit $ac_status); } >/dev/null; then |
| | 6815 | if test -s conftest.err; then |
| | 6816 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6817 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6818 | else |
| | 6819 | ac_cpp_err= |
| | 6820 | fi |
| | 6821 | else |
| | 6822 | ac_cpp_err=yes |
| | 6823 | fi |
| | 6824 | if test -z "$ac_cpp_err"; then |
| | 6825 | : |
| | 6826 | else |
| | 6827 | echo "$as_me: failed program was:" >&5 |
| | 6828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6829 | |
| | 6830 | # Broken: fails on valid input. |
| | 6831 | continue |
| | 6832 | fi |
| | 6833 | rm -f conftest.err conftest.$ac_ext |
| | 6834 | |
| | 6835 | # OK, works on sane cases. Now check whether non-existent headers |
| | 6836 | # can be detected and how. |
| | 6837 | cat >conftest.$ac_ext <<_ACEOF |
| | 6838 | /* confdefs.h. */ |
| | 6839 | _ACEOF |
| | 6840 | cat confdefs.h >>conftest.$ac_ext |
| | 6841 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6842 | /* end confdefs.h. */ |
| | 6843 | #include <ac_nonexistent.h> |
| | 6844 | _ACEOF |
| | 6845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6847 | ac_status=$? |
| | 6848 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6849 | rm -f conftest.er1 |
| | 6850 | cat conftest.err >&5 |
| | 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6852 | (exit $ac_status); } >/dev/null; then |
| | 6853 | if test -s conftest.err; then |
| | 6854 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6855 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6856 | else |
| | 6857 | ac_cpp_err= |
| | 6858 | fi |
| | 6859 | else |
| | 6860 | ac_cpp_err=yes |
| | 6861 | fi |
| | 6862 | if test -z "$ac_cpp_err"; then |
| | 6863 | # Broken: success on invalid input. |
| | 6864 | continue |
| | 6865 | else |
| | 6866 | echo "$as_me: failed program was:" >&5 |
| | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6868 | |
| | 6869 | # Passes both tests. |
| | 6870 | ac_preproc_ok=: |
| | 6871 | break |
| | 6872 | fi |
| | 6873 | rm -f conftest.err conftest.$ac_ext |
| | 6874 | |
| | 6875 | done |
| | 6876 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 6877 | rm -f conftest.err conftest.$ac_ext |
| | 6878 | if $ac_preproc_ok; then |
| | 6879 | break |
| | 6880 | fi |
| | 6881 | |
| | 6882 | done |
| | 6883 | ac_cv_prog_CXXCPP=$CXXCPP |
| | 6884 | |
| | 6885 | fi |
| | 6886 | CXXCPP=$ac_cv_prog_CXXCPP |
| | 6887 | else |
| | 6888 | ac_cv_prog_CXXCPP=$CXXCPP |
| | 6889 | fi |
| | 6890 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| | 6891 | echo "${ECHO_T}$CXXCPP" >&6 |
| | 6892 | ac_preproc_ok=false |
| | 6893 | for ac_cxx_preproc_warn_flag in '' yes |
| | 6894 | do |
| | 6895 | # Use a header file that comes with gcc, so configuring glibc |
| | 6896 | # with a fresh cross-compiler works. |
| | 6897 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 6898 | # <limits.h> exists even on freestanding compilers. |
| | 6899 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 6900 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 6901 | cat >conftest.$ac_ext <<_ACEOF |
| | 6902 | /* confdefs.h. */ |
| | 6903 | _ACEOF |
| | 6904 | cat confdefs.h >>conftest.$ac_ext |
| | 6905 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6906 | /* end confdefs.h. */ |
| | 6907 | #ifdef __STDC__ |
| | 6908 | # include <limits.h> |
| | 6909 | #else |
| | 6910 | # include <assert.h> |
| | 6911 | #endif |
| | 6912 | Syntax error |
| | 6913 | _ACEOF |
| | 6914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6916 | ac_status=$? |
| | 6917 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6918 | rm -f conftest.er1 |
| | 6919 | cat conftest.err >&5 |
| | 6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6921 | (exit $ac_status); } >/dev/null; then |
| | 6922 | if test -s conftest.err; then |
| | 6923 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6924 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6925 | else |
| | 6926 | ac_cpp_err= |
| | 6927 | fi |
| | 6928 | else |
| | 6929 | ac_cpp_err=yes |
| | 6930 | fi |
| | 6931 | if test -z "$ac_cpp_err"; then |
| | 6932 | : |
| | 6933 | else |
| | 6934 | echo "$as_me: failed program was:" >&5 |
| | 6935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6936 | |
| | 6937 | # Broken: fails on valid input. |
| | 6938 | continue |
| | 6939 | fi |
| | 6940 | rm -f conftest.err conftest.$ac_ext |
| | 6941 | |
| | 6942 | # OK, works on sane cases. Now check whether non-existent headers |
| | 6943 | # can be detected and how. |
| | 6944 | cat >conftest.$ac_ext <<_ACEOF |
| | 6945 | /* confdefs.h. */ |
| | 6946 | _ACEOF |
| | 6947 | cat confdefs.h >>conftest.$ac_ext |
| | 6948 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6949 | /* end confdefs.h. */ |
| | 6950 | #include <ac_nonexistent.h> |
| | 6951 | _ACEOF |
| | 6952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6954 | ac_status=$? |
| | 6955 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6956 | rm -f conftest.er1 |
| | 6957 | cat conftest.err >&5 |
| | 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6959 | (exit $ac_status); } >/dev/null; then |
| | 6960 | if test -s conftest.err; then |
| | 6961 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6962 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6963 | else |
| | 6964 | ac_cpp_err= |
| | 6965 | fi |
| | 6966 | else |
| | 6967 | ac_cpp_err=yes |
| | 6968 | fi |
| | 6969 | if test -z "$ac_cpp_err"; then |
| | 6970 | # Broken: success on invalid input. |
| | 6971 | continue |
| | 6972 | else |
| | 6973 | echo "$as_me: failed program was:" >&5 |
| | 6974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6975 | |
| | 6976 | # Passes both tests. |
| | 6977 | ac_preproc_ok=: |
| | 6978 | break |
| | 6979 | fi |
| | 6980 | rm -f conftest.err conftest.$ac_ext |
| | 6981 | |
| | 6982 | done |
| | 6983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 6984 | rm -f conftest.err conftest.$ac_ext |
| | 6985 | if $ac_preproc_ok; then |
| | 6986 | : |
| | 6987 | else |
| | 6988 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| | 6989 | See \`config.log' for more details." >&5 |
| | 6990 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| | 6991 | See \`config.log' for more details." >&2;} |
| | 6992 | { (exit 1); exit 1; }; } |
| | 6993 | fi |
| | 6994 | |
| | 6995 | ac_ext=cc |
| | 6996 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6997 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6998 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6999 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 7000 | |
| | 7001 | fi |
| | 7002 | |
| | 7003 | |
| | 7004 | ac_ext=f |
| | 7005 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| | 7006 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 7007 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| | 7008 | if test -n "$ac_tool_prefix"; then |
| | 7009 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| | 7010 | do |
| | 7011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| | 7012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| | 7013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7015 | if test "${ac_cv_prog_F77+set}" = set; then |
| | 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7017 | else |
| | 7018 | if test -n "$F77"; then |
| | 7019 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| | 7020 | else |
| | 7021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7022 | for as_dir in $PATH |
| | 7023 | do |
| | 7024 | IFS=$as_save_IFS |
| | 7025 | test -z "$as_dir" && as_dir=. |
| | 7026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7028 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| | 7029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7030 | break 2 |
| | 7031 | fi |
| | 7032 | done |
| | 7033 | done |
| | 7034 | |
| | 7035 | fi |
| | 7036 | fi |
| | 7037 | F77=$ac_cv_prog_F77 |
| | 7038 | if test -n "$F77"; then |
| | 7039 | echo "$as_me:$LINENO: result: $F77" >&5 |
| | 7040 | echo "${ECHO_T}$F77" >&6 |
| | 7041 | else |
| | 7042 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7043 | echo "${ECHO_T}no" >&6 |
| | 7044 | fi |
| | 7045 | |
| | 7046 | test -n "$F77" && break |
| | 7047 | done |
| | 7048 | fi |
| | 7049 | if test -z "$F77"; then |
| | 7050 | ac_ct_F77=$F77 |
| | 7051 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| | 7052 | do |
| | 7053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | 7054 | set dummy $ac_prog; ac_word=$2 |
| | 7055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7057 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| | 7058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7059 | else |
| | 7060 | if test -n "$ac_ct_F77"; then |
| | 7061 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| | 7062 | else |
| | 7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7064 | for as_dir in $PATH |
| | 7065 | do |
| | 7066 | IFS=$as_save_IFS |
| | 7067 | test -z "$as_dir" && as_dir=. |
| | 7068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7070 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| | 7071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7072 | break 2 |
| | 7073 | fi |
| | 7074 | done |
| | 7075 | done |
| | 7076 | |
| | 7077 | fi |
| | 7078 | fi |
| | 7079 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| | 7080 | if test -n "$ac_ct_F77"; then |
| | 7081 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| | 7082 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| | 7083 | else |
| | 7084 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7085 | echo "${ECHO_T}no" >&6 |
| | 7086 | fi |
| | 7087 | |
| | 7088 | test -n "$ac_ct_F77" && break |
| | 7089 | done |
| | 7090 | |
| | 7091 | F77=$ac_ct_F77 |
| | 7092 | fi |
| | 7093 | |
| | 7094 | |
| | 7095 | # Provide some information about the compiler. |
| | 7096 | echo "$as_me:7096:" \ |
| | 7097 | "checking for Fortran 77 compiler version" >&5 |
| | 7098 | ac_compiler=`set X $ac_compile; echo $2` |
| | 7099 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| | 7100 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| | 7101 | ac_status=$? |
| | 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7103 | (exit $ac_status); } |
| | 7104 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| | 7105 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| | 7106 | ac_status=$? |
| | 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7108 | (exit $ac_status); } |
| | 7109 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| | 7110 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| | 7111 | ac_status=$? |
| | 7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7113 | (exit $ac_status); } |
| | 7114 | rm -f a.out |
| | 7115 | |
| | 7116 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| | 7117 | # input file. (Note that this only needs to work for GNU compilers.) |
| | 7118 | ac_save_ext=$ac_ext |
| | 7119 | ac_ext=F |
| | 7120 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| | 7121 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| | 7122 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| | 7123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7124 | else |
| | 7125 | cat >conftest.$ac_ext <<_ACEOF |
| | 7126 | program main |
| | 7127 | #ifndef __GNUC__ |
| | 7128 | choke me |
| | 7129 | #endif |
| | 7130 | |
| | 7131 | end |
| | 7132 | _ACEOF |
| | 7133 | rm -f conftest.$ac_objext |
| | 7134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7135 | (eval $ac_compile) 2>conftest.er1 |
| | 7136 | ac_status=$? |
| | 7137 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 7138 | rm -f conftest.er1 |
| | 7139 | cat conftest.err >&5 |
| | 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7141 | (exit $ac_status); } && |
| | 7142 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7144 | (eval $ac_try) 2>&5 |
| | 7145 | ac_status=$? |
| | 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7147 | (exit $ac_status); }; } && |
| | 7148 | { ac_try='test -s conftest.$ac_objext' |
| | 7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7150 | (eval $ac_try) 2>&5 |
| | 7151 | ac_status=$? |
| | 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7153 | (exit $ac_status); }; }; then |
| | 7154 | ac_compiler_gnu=yes |
| | 7155 | else |
| | 7156 | echo "$as_me: failed program was:" >&5 |
| | 7157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 7158 | |
| | 7159 | ac_compiler_gnu=no |
| | 7160 | fi |
| | 7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 7162 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| | 7163 | |
| | 7164 | fi |
| | 7165 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| | 7166 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| | 7167 | ac_ext=$ac_save_ext |
| | 7168 | ac_test_FFLAGS=${FFLAGS+set} |
| | 7169 | ac_save_FFLAGS=$FFLAGS |
| | 7170 | FFLAGS= |
| | 7171 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| | 7172 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| | 7173 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| | 7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7175 | else |
| | 7176 | FFLAGS=-g |
| | 7177 | cat >conftest.$ac_ext <<_ACEOF |
| | 7178 | program main |
| | 7179 | |
| | 7180 | end |
| | 7181 | _ACEOF |
| | 7182 | rm -f conftest.$ac_objext |
| | 7183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7184 | (eval $ac_compile) 2>conftest.er1 |
| | 7185 | ac_status=$? |
| | 7186 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 7187 | rm -f conftest.er1 |
| | 7188 | cat conftest.err >&5 |
| | 7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7190 | (exit $ac_status); } && |
| | 7191 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 7192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7193 | (eval $ac_try) 2>&5 |
| | 7194 | ac_status=$? |
| | 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7196 | (exit $ac_status); }; } && |
| | 7197 | { ac_try='test -s conftest.$ac_objext' |
| | 7198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7199 | (eval $ac_try) 2>&5 |
| | 7200 | ac_status=$? |
| | 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7202 | (exit $ac_status); }; }; then |
| | 7203 | ac_cv_prog_f77_g=yes |
| | 7204 | else |
| | 7205 | echo "$as_me: failed program was:" >&5 |
| | 7206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 7207 | |
| | 7208 | ac_cv_prog_f77_g=no |
| | 7209 | fi |
| | 7210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 7211 | |
| | 7212 | fi |
| | 7213 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| | 7214 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| | 7215 | if test "$ac_test_FFLAGS" = set; then |
| | 7216 | FFLAGS=$ac_save_FFLAGS |
| | 7217 | elif test $ac_cv_prog_f77_g = yes; then |
| | 7218 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| | 7219 | FFLAGS="-g -O2" |
| | 7220 | else |
| | 7221 | FFLAGS="-g" |
| | 7222 | fi |
| | 7223 | else |
| | 7224 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| | 7225 | FFLAGS="-O2" |
| | 7226 | else |
| | 7227 | FFLAGS= |
| | 7228 | fi |
| | 7229 | fi |
| | 7230 | |
| | 7231 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| | 7232 | ac_ext=c |
| | 7233 | ac_cpp='$CPP $CPPFLAGS' |
| | 7234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 7235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 7236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 7237 | |
| | 7238 | |
| | 7239 | |
| | 7240 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| | 7241 | |
| | 7242 | # find the maximum length of command line arguments |
| | 7243 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| | 7244 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| | 7245 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| | 7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7247 | else |
| | 7248 | i=0 |
| | 7249 | teststring="ABCD" |
| | 7250 | |
| | 7251 | case $build_os in |
| | 7252 | msdosdjgpp*) |
| | 7253 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| | 7254 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| | 7255 | # during glob expansion). Even if it were fixed, the result of this |
| | 7256 | # check would be larger than it should be. |
| | 7257 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| | 7258 | ;; |
| | 7259 | |
| | 7260 | gnu*) |
| | 7261 | # Under GNU Hurd, this test is not required because there is |
| | 7262 | # no limit to the length of command line arguments. |
| | 7263 | # Libtool will interpret -1 as no limit whatsoever |
| | 7264 | lt_cv_sys_max_cmd_len=-1; |
| | 7265 | ;; |
| | 7266 | |
| | 7267 | cygwin* | mingw*) |
| | 7268 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| | 7269 | # about 5 minutes as the teststring grows exponentially. |
| | 7270 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| | 7271 | # you end up with a "frozen" computer, even though with patience |
| | 7272 | # the test eventually succeeds (with a max line length of 256k). |
| | 7273 | # Instead, let's just punt: use the minimum linelength reported by |
| | 7274 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| | 7275 | lt_cv_sys_max_cmd_len=8192; |
| | 7276 | ;; |
| | 7277 | |
| | 7278 | amigaos*) |
| | 7279 | # On AmigaOS with pdksh, this test takes hours, literally. |
| | 7280 | # So we just punt and use a minimum line length of 8192. |
| | 7281 | lt_cv_sys_max_cmd_len=8192; |
| | 7282 | ;; |
| | 7283 | |
| | 7284 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| | 7285 | # This has been around since 386BSD, at least. Likely further. |
| | 7286 | if test -x /sbin/sysctl; then |
| | 7287 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| | 7288 | elif test -x /usr/sbin/sysctl; then |
| | 7289 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| | 7290 | else |
| | 7291 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| | 7292 | fi |
| | 7293 | # And add a safety zone |
| | 7294 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| | 7295 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| | 7296 | ;; |
| | 7297 | |
| | 7298 | interix*) |
| | 7299 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| | 7300 | lt_cv_sys_max_cmd_len=196608 |
| | 7301 | ;; |
| | 7302 | |
| | 7303 | osf*) |
| | 7304 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| | 7305 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| | 7306 | # nice to cause kernel panics so lets avoid the loop below. |
| | 7307 | # First set a reasonable default. |
| | 7308 | lt_cv_sys_max_cmd_len=16384 |
| | 7309 | # |
| | 7310 | if test -x /sbin/sysconfig; then |
| | 7311 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| | 7312 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| | 7313 | esac |
| | 7314 | fi |
| | 7315 | ;; |
| | 7316 | sco3.2v5*) |
| | 7317 | lt_cv_sys_max_cmd_len=102400 |
| | 7318 | ;; |
| | 7319 | sysv5* | sco5v6* | sysv4.2uw2*) |
| | 7320 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| | 7321 | if test -n "$kargmax"; then |
| | 7322 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| | 7323 | else |
| | 7324 | lt_cv_sys_max_cmd_len=32768 |
| | 7325 | fi |
| | 7326 | ;; |
| | 7327 | *) |
| | 7328 | # If test is not a shell built-in, we'll probably end up computing a |
| | 7329 | # maximum length that is only half of the actual maximum length, but |
| | 7330 | # we can't tell. |
| | 7331 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| | 7332 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| | 7333 | = "XX$teststring") >/dev/null 2>&1 && |
| | 7334 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| | 7335 | lt_cv_sys_max_cmd_len=$new_result && |
| | 7336 | test $i != 17 # 1/2 MB should be enough |
| | 7337 | do |
| | 7338 | i=`expr $i + 1` |
| | 7339 | teststring=$teststring$teststring |
| | 7340 | done |
| | 7341 | teststring= |
| | 7342 | # Add a significant safety factor because C++ compilers can tack on massive |
| | 7343 | # amounts of additional arguments before passing them to the linker. |
| | 7344 | # It appears as though 1/2 is a usable value. |
| | 7345 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| | 7346 | ;; |
| | 7347 | esac |
| | 7348 | |
| | 7349 | fi |
| | 7350 | |
| | 7351 | if test -n $lt_cv_sys_max_cmd_len ; then |
| | 7352 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| | 7353 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| | 7354 | else |
| | 7355 | echo "$as_me:$LINENO: result: none" >&5 |
| | 7356 | echo "${ECHO_T}none" >&6 |
| | 7357 | fi |
| | 7358 | |
| | 7359 | |
| | 7360 | |
| | 7361 | |
| | 7362 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| | 7363 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| | 7364 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| | 7365 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| | 7366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7367 | else |
| | 7368 | |
| | 7369 | # These are sane defaults that work on at least a few old systems. |
| | 7370 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| | 7371 | |
| | 7372 | # Character class describing NM global symbol codes. |
| | 7373 | symcode='[BCDEGRST]' |
| | 7374 | |
| | 7375 | # Regexp to match symbols that can be accessed directly from C. |
| | 7376 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| | 7377 | |
| | 7378 | # Transform an extracted symbol line into a proper C declaration |
| | 7379 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| | 7380 | |
| | 7381 | # Transform an extracted symbol line into symbol name and symbol address |
| | 7382 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| | 7383 | |
| | 7384 | # Define system-specific variables. |
| | 7385 | case $host_os in |
| | 7386 | aix*) |
| | 7387 | symcode='[BCDT]' |
| | 7388 | ;; |
| | 7389 | cygwin* | mingw* | pw32*) |
| | 7390 | symcode='[ABCDGISTW]' |
| | 7391 | ;; |
| | 7392 | hpux*) # Its linker distinguishes data from code symbols |
| | 7393 | if test "$host_cpu" = ia64; then |
| | 7394 | symcode='[ABCDEGRST]' |
| | 7395 | fi |
| | 7396 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| | 7397 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| | 7398 | ;; |
| | 7399 | linux*) |
| | 7400 | if test "$host_cpu" = ia64; then |
| | 7401 | symcode='[ABCDGIRSTW]' |
| | 7402 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| | 7403 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| | 7404 | fi |
| | 7405 | ;; |
| | 7406 | irix* | nonstopux*) |
| | 7407 | symcode='[BCDEGRST]' |
| | 7408 | ;; |
| | 7409 | osf*) |
| | 7410 | symcode='[BCDEGQRST]' |
| | 7411 | ;; |
| | 7412 | solaris*) |
| | 7413 | symcode='[BDRT]' |
| | 7414 | ;; |
| | 7415 | sco3.2v5*) |
| | 7416 | symcode='[DT]' |
| | 7417 | ;; |
| | 7418 | sysv4.2uw2*) |
| | 7419 | symcode='[DT]' |
| | 7420 | ;; |
| | 7421 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| | 7422 | symcode='[ABDT]' |
| | 7423 | ;; |
| | 7424 | sysv4) |
| | 7425 | symcode='[DFNSTU]' |
| | 7426 | ;; |
| | 7427 | esac |
| | 7428 | |
| | 7429 | # Handle CRLF in mingw tool chain |
| | 7430 | opt_cr= |
| | 7431 | case $build_os in |
| | 7432 | mingw*) |
| | 7433 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| | 7434 | ;; |
| | 7435 | esac |
| | 7436 | |
| | 7437 | # If we're using GNU nm, then use its standard symbol codes. |
| | 7438 | case `$NM -V 2>&1` in |
| | 7439 | *GNU* | *'with BFD'*) |
| | 7440 | symcode='[ABCDGIRSTW]' ;; |
| | 7441 | esac |
| | 7442 | |
| | 7443 | # Try without a prefix undercore, then with it. |
| | 7444 | for ac_symprfx in "" "_"; do |
| | 7445 | |
| | 7446 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| | 7447 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| | 7448 | |
| | 7449 | # Write the raw and C identifiers. |
| | 7450 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| | 7451 | |
| | 7452 | # Check to see that the pipe works correctly. |
| | 7453 | pipe_works=no |
| | 7454 | |
| | 7455 | rm -f conftest* |
| | 7456 | cat > conftest.$ac_ext <<EOF |
| | 7457 | #ifdef __cplusplus |
| | 7458 | extern "C" { |
| | 7459 | #endif |
| | 7460 | char nm_test_var; |
| | 7461 | void nm_test_func(){} |
| | 7462 | #ifdef __cplusplus |
| | 7463 | } |
| | 7464 | #endif |
| | 7465 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| | 7466 | EOF |
| | 7467 | |
| | 7468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7469 | (eval $ac_compile) 2>&5 |
| | 7470 | ac_status=$? |
| | 7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7472 | (exit $ac_status); }; then |
| | 7473 | # Now try to grab the symbols. |
| | 7474 | nlist=conftest.nm |
| | 7475 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| | 7476 | (eval $NM conftest.$ac_objext \| $lt_cv_sys
|