bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bogus configure output for strstr


From: Eric Blake
Subject: bogus configure output for strstr
Date: Mon, 30 Aug 2010 16:58:20 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

I noticed this when testing m4 on FreeBSD:

checking whether strstr works in linear time... Alarm clock
no

That's because conftest ends via a signal in this case, and some shells, including FreeBSD's /bin/sh, are rather verbose about processes that died because of a signal rather than a normal exit.

Is it worth trying to silence the spurious "Alarm clock" message by changing strstr.m4 (and friends with related timeout idioms) to use:

static void quit (int sig) { exit (sig + 128); }
...
    signal (SIGALRM, quit);

instead of the current:

    signal (SIGALRM, SIG_DFL);

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]