Jeff Gold wrote:

> Can anyone tell me 
> what the right way to do this might be?


Nevermind.  I've found a solution that I believe is quite good.  For the 
benefit of anyone else who may be grappling with this, here is the 
relevant section of my configure.in:

     child_type=unknown
     AC_CHECK_HEADERS(sys/ipc.h, child_type=sysipc)
     AC_CHECK_HEADERS(pthread.h, child_type=pthread)
     AM_CONDITIONAL(ENABLE_PTHREADS, test "$child_type" = "pthread")
     if test "$child_type" = "unknown"; then
       AC_MSG_ERROR([could not find an acceptable multitasking library.])
     fi

This should scale well, doesn't rely on undocumented features and even 
looks pretty.
                        Jeff


Reply via email to