1354
1354
ERRNO_H="$zsh_cv_path_errno_h"
1355
1355
AC_SUBST(ERRNO_H)dnl
1357
dnl Where are curses key definitions located? Need for keypad() mode.
1358
AC_CACHE_CHECK(where curses key definitions are located, zsh_cv_path_curses_keys_h,
1359
[dnl This is an identical trick to errno.h, except we use ncurses.h
1361
if test x$ac_cv_header_ncurses_h = xyes; then
1362
echo "#include <ncurses.h>" >nametmp.c
1364
if test x$ac_cv_header_curses_h = xyes; then
1365
echo "#include <curses.h>" >nametmp.c
1370
curses_list="`$CPP nametmp.c |
1371
sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
1372
-e 's/^#[ 0-9].*\"\(.*\)\"/\1/p' |
1373
sed 's/\\\\\\\\/\//g' |
1374
$AWK '{ if ($1 ~ /\.h/) files[[$1]] = $1 }
1375
END { for (var in files) print var }'`"
1377
for CURSES_TRY_H in $curses_list /dev/null
1379
nkeys=`test -f $CURSES_TRY_H && \
1380
$EGREP '#[ ]*define[ ][ ]*KEY_' $CURSES_TRY_H | \
1381
wc -l | sed 's/[ ]//g'`
1382
if test "x$nkeys" != x && test "$nkeys" -ge 10
1384
CURSES_KEYS_H=$CURSES_TRY_H
1388
zsh_cv_path_curses_keys_h="$CURSES_KEYS_H"
1390
CURSES_KEYS_H="$zsh_cv_path_curses_keys_h"
1391
AC_SUBST(CURSES_KEYS_H)dnl
1357
1393
dnl -----------------------------------------------------
1358
1394
dnl Look for the file containing the RLIMIT_* definitions
1359
1395
dnl -----------------------------------------------------