graphics/ilmbase hangs during autoconf; it runs something close to this
#include <semaphore.h>
int
main()
{
sem_t mysem;
if (sem_init(&mysem, 1, 1) == 0) {
if (sem_wait(&mysem) == 0) {
sem_post(&mysem);
sem_destroy(&mysem);
}
}
}
