From 638b0da9704add12fff91868efdfbb2dd35f0b54 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 10 Sep 2006 15:20:31 +0000 Subject: 22681: find all error number definitions --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 21e7764e2..10d6528ee 100644 --- a/configure.ac +++ b/configure.ac @@ -1320,24 +1320,24 @@ do dnl Try to make sure it doesn't get confused by files that don't dnl have real error definitions in. Count definitions to make sure. dnl Definitions of error numbers have become more and more general, so - dnl pick the file with the most matches, which must be at least 7. + dnl make a list of files containing any definitions in and keep them all. dnl Careful with cut and paste in the pattern: the square brackets dnl must contain a space and a tab. nerrs=`test -f $ERRNO_TRY_H && \ $EGREP '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \ wc -l | sed 's/[ ]//g'` - if test "x$nerrs" != x && test "$nerrs" -ge 7 && test "$nerrs" -gt "$lnerrs" + if test "x$nerrs" != x && test "$nerrs" -ge 1 && test "$nerrs" -gt "$lnerrs" then lnerrs=$nerrs - ERRNO_H=$ERRNO_TRY_H + ERRNO_H="$ERRNO_H $ERRNO_TRY_H" fi done -if test x$ERRNO_H = x; then +if test x"$ERRNO_H" = x; then AC_MSG_ERROR(ERROR MACROS NOT FOUND: please report to developers) fi -zsh_cv_path_errno_h=$ERRNO_H +zsh_cv_path_errno_h="$ERRNO_H" ]) -ERRNO_H=$zsh_cv_path_errno_h +ERRNO_H="$zsh_cv_path_errno_h" AC_SUBST(ERRNO_H)dnl dnl ----------------------------------------------------- -- cgit 1.4.1