Deleted Added
sdiff udiff text old ( 157184 ) new ( 165670 )
full compact
1dnl
2dnl Bash specific tests
3dnl
4dnl Some derived from PDKSH 5.1.3 autoconf tests
5dnl
6
7AC_DEFUN(BASH_C_LONG_LONG,
8[AC_CACHE_CHECK(for long long, ac_cv_c_long_long,

--- 919 unchanged lines hidden (view full) ---

928], bash_cv_struct_stat_st_blocks=yes, bash_cv_struct_stat_st_blocks=no)
929])
930AC_MSG_RESULT($bash_cv_struct_stat_st_blocks)
931if test "$bash_cv_struct_stat_st_blocks" = "yes"; then
932AC_DEFINE(HAVE_STRUCT_STAT_ST_BLOCKS)
933fi
934])
935
936AC_DEFUN(BASH_CHECK_LIB_TERMCAP,
937[
938if test "X$bash_cv_termcap_lib" = "X"; then
939_bash_needmsg=yes
940else
941AC_MSG_CHECKING(which library has the termcap functions)
942_bash_needmsg=
943fi
944AC_CACHE_VAL(bash_cv_termcap_lib,

--- 590 unchanged lines hidden (view full) ---

1535if test $bash_cv_getpw_declared = yes; then
1536AC_DEFINE(HAVE_GETPW_DECLS)
1537fi
1538])
1539
1540AC_DEFUN(BASH_CHECK_DEV_FD,
1541[AC_MSG_CHECKING(whether /dev/fd is available)
1542AC_CACHE_VAL(bash_cv_dev_fd,
1543[if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
1544# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
1545 exec 3<&0
1546 if test -r /dev/fd/3; then
1547 bash_cv_dev_fd=standard
1548 else
1549 bash_cv_dev_fd=absent
1550 fi
1551 exec 3<&-
1552 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
1553 bash_cv_dev_fd=whacky
1554 else
1555 bash_cv_dev_fd=absent
1556 fi
1557])
1558AC_MSG_RESULT($bash_cv_dev_fd)
1559if test $bash_cv_dev_fd = "standard"; then
1560 AC_DEFINE(HAVE_DEV_FD)
1561 AC_DEFINE(DEV_FD_PREFIX, "/dev/fd/")
1562elif test $bash_cv_dev_fd = "whacky"; then
1563 AC_DEFINE(HAVE_DEV_FD)
1564 AC_DEFINE(DEV_FD_PREFIX, "/proc/self/fd/")

--- 97 unchanged lines hidden (view full) ---

1662if test $bash_cv_unusable_rtsigs = yes; then
1663AC_DEFINE(UNUSABLE_RT_SIGNALS)
1664fi
1665])
1666
1667dnl
1668dnl check for availability of multibyte characters and functions
1669dnl
1670AC_DEFUN(BASH_CHECK_MULTIBYTE,
1671[
1672AC_CHECK_HEADERS(wctype.h)
1673AC_CHECK_HEADERS(wchar.h)
1674AC_CHECK_HEADERS(langinfo.h)
1675
1676AC_CHECK_FUNC(mbsrtowcs, AC_DEFINE(HAVE_MBSRTOWCS))
1677AC_CHECK_FUNC(mbrtowc, AC_DEFINE(HAVE_MBRTOWC))
1678AC_CHECK_FUNC(mbrlen, AC_DEFINE(HAVE_MBRLEN))
1679AC_CHECK_FUNC(wctomb, AC_DEFINE(HAVE_WCTOMB))
1680AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
1681AC_CHECK_FUNC(wcsdup, AC_DEFINE(HAVE_WCSDUP))
1682
1683AC_CACHE_CHECK([for mbstate_t], bash_cv_have_mbstate_t,
1684[AC_TRY_COMPILE([
1685#include <wchar.h>], [
1686 mbstate_t ps;
1687 mbstate_t *psp;
1688 psp = (mbstate_t *)0;
1689], bash_cv_have_mbstate_t=yes, bash_cv_have_mbstate_t=no)])
1690if test $bash_cv_have_mbstate_t = yes; then
1691 AC_DEFINE(HAVE_MBSTATE_T)
1692fi
1693
1694AC_CACHE_CHECK([for nl_langinfo and CODESET], bash_cv_langinfo_codeset,
1695[AC_TRY_LINK(
1696[#include <langinfo.h>],
1697[char* cs = nl_langinfo(CODESET);],
1698bash_cv_langinfo_codeset=yes, bash_cv_langinfo_codeset=no)])
1699if test $bash_cv_langinfo_codeset = yes; then
1700 AC_DEFINE(HAVE_LANGINFO_CODESET)
1701fi
1702
1703])
1704
1705dnl need: prefix exec_prefix libdir includedir CC TERMCAP_LIB
1706dnl require:
1707dnl AC_PROG_CC
1708dnl BASH_CHECK_LIB_TERMCAP
1709
1710AC_DEFUN(RL_LIB_READLINE_VERSION,
1711[
1712AC_REQUIRE([BASH_CHECK_LIB_TERMCAP])
1713
1714AC_MSG_CHECKING([version of installed readline library])
1715
1716# What a pain in the ass this is.
1717
1718# save cpp and ld options

--- 2241 unchanged lines hidden ---