Hello! > Any implementation that defines 'pthread_sigmask' only as a macro, and > not as a function, doesn't conform to POSIX and we should be able to > reject it at compile-time. Perhaps you can suggest a patch along those > lines?
Well... We could do a preprocessor-based test in configure. Something like: --- cut --- if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then dnl pthread_sigmask is available with -pthread or -lpthread. AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ #include <signal.h> #ifdef pthread_sigmask #error is a macro #endif ]])], [ LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" ], [ HAVE_PTHREAD_SIGMASK=0 REPLACE_PTHREAD_SIGMASK=1 ]) --- cut --- Would that do ? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia