aclocal.m4 (136644) | aclocal.m4 (157184) |
---|---|
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, --- 1527 unchanged lines hidden (view full) --- 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 | 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, --- 1527 unchanged lines hidden (view full) --- 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 bash_cv_dev_fd=standard | 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<&- |
1545 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then 1546 bash_cv_dev_fd=whacky 1547 else 1548 bash_cv_dev_fd=absent 1549 fi 1550]) 1551AC_MSG_RESULT($bash_cv_dev_fd) 1552if test $bash_cv_dev_fd = "standard"; then --- 175 unchanged lines hidden (view full) --- 1728CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" 1729LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" 1730 1731AC_CACHE_VAL(ac_cv_rl_version, 1732[AC_TRY_RUN([ 1733#include <stdio.h> 1734#include <readline/readline.h> 1735 | 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 --- 175 unchanged lines hidden (view full) --- 1735CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" 1736LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" 1737 1738AC_CACHE_VAL(ac_cv_rl_version, 1739[AC_TRY_RUN([ 1740#include <stdio.h> 1741#include <readline/readline.h> 1742 |
1743extern int rl_gnu_readline_p; 1744 |
|
1736main() 1737{ 1738 FILE *fp; 1739 fp = fopen("conftest.rlv", "w"); | 1745main() 1746{ 1747 FILE *fp; 1748 fp = fopen("conftest.rlv", "w"); |
1740 if (fp == 0) exit(1); 1741 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | 1749 if (fp == 0) 1750 exit(1); 1751 if (rl_gnu_readline_p != 1) 1752 fprintf(fp, "0.0\n"); 1753 else 1754 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); |
1742 fclose(fp); 1743 exit(0); 1744} 1745], 1746ac_cv_rl_version=`cat conftest.rlv`, 1747ac_cv_rl_version='0.0', 1748ac_cv_rl_version='4.2')]) 1749 --- 97 unchanged lines hidden (view full) --- 1847 bash_cv_func_ctype_nonascii=no] 1848)]) 1849AC_MSG_RESULT($bash_cv_func_ctype_nonascii) 1850if test $bash_cv_func_ctype_nonascii = yes; then 1851AC_DEFINE(CTYPE_NON_ASCII) 1852fi 1853]) 1854 | 1755 fclose(fp); 1756 exit(0); 1757} 1758], 1759ac_cv_rl_version=`cat conftest.rlv`, 1760ac_cv_rl_version='0.0', 1761ac_cv_rl_version='4.2')]) 1762 --- 97 unchanged lines hidden (view full) --- 1860 bash_cv_func_ctype_nonascii=no] 1861)]) 1862AC_MSG_RESULT($bash_cv_func_ctype_nonascii) 1863if test $bash_cv_func_ctype_nonascii = yes; then 1864AC_DEFINE(CTYPE_NON_ASCII) 1865fi 1866]) 1867 |
1868AC_DEFUN(BASH_CHECK_WCONTINUED, 1869[ 1870AC_MSG_CHECKING(whether WCONTINUED flag to waitpid is unavailable or available but broken) 1871AC_CACHE_VAL(bash_cv_wcontinued_broken, 1872[AC_TRY_RUN([ 1873#include <sys/types.h> 1874#include <sys/wait.h> 1875#include <unistd.h> 1876#include <errno.h> 1877 1878#ifndef errno 1879extern int errno; 1880#endif 1881main() 1882{ 1883 int x; 1884 1885 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); 1886 if (x == -1 && errno == EINVAL) 1887 exit (1); 1888 else 1889 exit (0); 1890} 1891], bash_cv_wcontinued_broken=no,bash_cv_wcontinued_broken=yes, 1892 [AC_MSG_WARN(cannot check WCONTINUED if cross compiling -- defaulting to no) 1893 bash_cv_wcontinued_broken=no] 1894)]) 1895AC_MSG_RESULT($bash_cv_wcontinued_broken) 1896if test $bash_cv_wcontinued_broken = yes; then 1897AC_DEFINE(WCONTINUED_BROKEN) 1898fi 1899]) 1900 |
|
1855dnl 1856dnl tests added for bashdb 1857dnl 1858 1859 1860AC_DEFUN([AM_PATH_LISPDIR], 1861 [AC_ARG_WITH(lispdir, AC_HELP_STRING([--with-lispdir], [override the default lisp directory]), 1862 [ lispdir="$withval" --- 2051 unchanged lines hidden --- | 1901dnl 1902dnl tests added for bashdb 1903dnl 1904 1905 1906AC_DEFUN([AM_PATH_LISPDIR], 1907 [AC_ARG_WITH(lispdir, AC_HELP_STRING([--with-lispdir], [override the default lisp directory]), 1908 [ lispdir="$withval" --- 2051 unchanged lines hidden --- |