1678 $as_echo "$ac_res" >&6; } |
1678 $as_echo "$ac_res" >&6; } |
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1680 |
1680 |
1681 } # ac_fn_c_check_header_compile |
1681 } # ac_fn_c_check_header_compile |
1682 |
1682 |
1683 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1683 # ac_fn_c_check_func LINENO FUNC VAR |
1684 # --------------------------------------------- |
1684 # ---------------------------------- |
1685 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1685 # Tests whether FUNC exists, setting the cache variable VAR accordingly |
1686 # accordingly. |
1686 ac_fn_c_check_func () |
1687 ac_fn_c_check_decl () |
|
1688 { |
1687 { |
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1690 as_decl_name=`echo $2|sed 's/ *(.*//'` |
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1691 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1690 $as_echo_n "checking for $2... " >&6; } |
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
|
1693 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
|
1694 if eval \${$3+:} false; then : |
1691 if eval \${$3+:} false; then : |
1695 $as_echo_n "(cached) " >&6 |
1692 $as_echo_n "(cached) " >&6 |
1696 else |
1693 else |
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1698 /* end confdefs.h. */ |
1695 /* end confdefs.h. */ |
1699 $4 |
1696 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
1697 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
1698 #define $2 innocuous_$2 |
|
1699 |
|
1700 /* System header to define __stub macros and hopefully few prototypes, |
|
1701 which can conflict with char $2 (); below. |
|
1702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
1703 <limits.h> exists even on freestanding compilers. */ |
|
1704 |
|
1705 #ifdef __STDC__ |
|
1706 # include <limits.h> |
|
1707 #else |
|
1708 # include <assert.h> |
|
1709 #endif |
|
1710 |
|
1711 #undef $2 |
|
1712 |
|
1713 /* Override any GCC internal prototype to avoid an error. |
|
1714 Use char because int might match the return type of a GCC |
|
1715 builtin and then its argument prototype would still apply. */ |
|
1716 #ifdef __cplusplus |
|
1717 extern "C" |
|
1718 #endif |
|
1719 char $2 (); |
|
1720 /* The GNU C library defines this for functions which it implements |
|
1721 to always fail with ENOSYS. Some functions are actually named |
|
1722 something starting with __ and the normal name is an alias. */ |
|
1723 #if defined __stub_$2 || defined __stub___$2 |
|
1724 choke me |
|
1725 #endif |
|
1726 |
1700 int |
1727 int |
1701 main () |
1728 main () |
1702 { |
1729 { |
1703 #ifndef $as_decl_name |
1730 return $2 (); |
1704 #ifdef __cplusplus |
|
1705 (void) $as_decl_use; |
|
1706 #else |
|
1707 (void) $as_decl_name; |
|
1708 #endif |
|
1709 #endif |
|
1710 |
|
1711 ; |
1731 ; |
1712 return 0; |
1732 return 0; |
1713 } |
1733 } |
1714 _ACEOF |
1734 _ACEOF |
1715 if ac_fn_c_try_compile "$LINENO"; then : |
1735 if ac_fn_c_try_link "$LINENO"; then : |
1716 eval "$3=yes" |
1736 eval "$3=yes" |
1717 else |
1737 else |
1718 eval "$3=no" |
1738 eval "$3=no" |
1719 fi |
1739 fi |
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1740 rm -f core conftest.err conftest.$ac_objext \ |
|
1741 conftest$ac_exeext conftest.$ac_ext |
1721 fi |
1742 fi |
1722 eval ac_res=\$$3 |
1743 eval ac_res=\$$3 |
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1724 $as_echo "$ac_res" >&6; } |
1745 $as_echo "$ac_res" >&6; } |
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1726 |
1747 |
1727 } # ac_fn_c_check_decl |
1748 } # ac_fn_c_check_func |
1728 cat >config.log <<_ACEOF |
1749 cat >config.log <<_ACEOF |
1729 This file contains any messages produced by compilers while |
1750 This file contains any messages produced by compilers while |
1730 running configure, to aid debugging if configure makes a mistake. |
1751 running configure, to aid debugging if configure makes a mistake. |
1731 |
1752 |
1732 It was created by $as_me, which was |
1753 It was created by $as_me, which was |