Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: signames problem



> In SuSE Linux 6.0, zsh-3.1.5-pws-9 doesn't know any signames.
> 
> Possibly because the former /usr/include/asm/signal.h has moved to
> /usr/include/signum.h !?

configure has changed so it's now supposed to work it out from the files
that `#include <signal.h>' actually includes.  Anything with `sig' in it is
tested. Is zsh_cv_path_signal_h set to /dev/null in config.cache?  What
does the new code (I've replaced $CPP with gcc -E, $AWK with awk assuming
that's what's used):

echo "#include <signal.h>" > nametmp.c
sigfile_list="`gcc -E nametmp.c |
sed -n 's/^#[ 	].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
awk '{ if (\$1 ~ \"sig\") files[\$1] = \$1 }
  END { for (var in files) print var }'`"

produce for $sigfile_list?  (There's a space and a tab in the empty [ ]
which does funny things if you paste it into zsh.)

I can add /usr/include/signum.h to the fallback list anyway, but I'd like
to find out why it can't find it.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author