diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-28 02:38:44 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-28 02:38:44 +0000 |
commit | 6764938d2d6f3ec10fa11fdf44e5fa19314373a4 (patch) | |
tree | a173783e50bea02f13f8e465406718e4ca329ae8 /Configure | |
parent | 7599c0b3a5551e3249bec4cfca2a97eefbcd917f (diff) | |
download | perl-6764938d2d6f3ec10fa11fdf44e5fa19314373a4.tar.gz |
better variant of change#4644 (from Andy Dougherty)
p4raw-link: @4644 on //depot/perl: 53d4e464026d47e82a58aab9b922fdc92a91a7f3
p4raw-id: //depot/perl@4715
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -12857,13 +12857,12 @@ esac : Remove SIGSTKSIZE used by Linux. : Remove SIGSTKSZ used by Posix. : Remove SIGTYP void lines used by OS2. +: Some cpps, like os390, dont give the file name anywhere if [ "X$fieldn" = X ]; then - xxx=`echo '#include <signal.h>' | - $cppstdin $cppminus $cppflags 2>/dev/null | - $grep '^[ ]*#.*include' | - $sed 's!"!!g' | $sort | $uniq` + : Just make some guesses. We check them later. + xxx='/usr/include/signal.h /usr/include/sys/signal.h' else - xxx=`echo '#include <signal.h>' | + xxx=`echo '#include <signal.h>' | $cppstdin $cppminus $cppflags 2>/dev/null | $grep '^[ ]*#.*include' | $awk "{print \\$$fieldn}" | $sed 's!"!!g' | $sort | $uniq` @@ -12887,10 +12886,12 @@ $1 == "#" && $2 ~ /^define$/ && $3 ~ /^SIG[A-Z0-9]*$/ && $3 !~ /SIGARRAYSIZE/ && print substr($3, 4, 20) }' $xxxfiles` : Append some common names just in case the awk scan failed. -xxx="$xxx ABRT ALRM BUS CHLD CLD CONT DIL EMT FPE HUP ILL INT IO IOT KILL" -xxx="$xxx LOST PHONE PIPE POLL PROF PWR QUIT SEGV STKFLT STOP SYS TERM TRAP" -xxx="$xxx TSTP TTIN TTOU URG USR1 USR2 USR3 USR4 VTALRM" -xxx="$xxx WINCH WIND WINDOW XCPU XFSZ" +xxx="$xxx ABRT ALRM BUS CANCEL CHLD CLD CONT DIL EMT FPE" +xxx="$xxx FREEZE HUP ILL INT IO IOT KILL LOST LWP PHONE" +xxx="$xxx PIPE POLL PROF PWR QUIT RTMAX RTMIN SEGV STKFLT STOP" +xxx="$xxx SYS TERM THAW TRAP TSTP TTIN TTOU URG USR1 USR2" +xxx="$xxx USR3 USR4 VTALRM WAITING WINCH WIND WINDOW XCPU XFSZ" + : generate a few handy files for later $cat > signal.c <<'EOCP' #include <sys/types.h> |