Link with the pthread library if pthread_condattr_setclock() is not an
inline function.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
EOF
if compile_prog "" "$LIBS" "pthread_condattr_setclock" ; then
pthread_condattr_setclock=yes
+elif compile_prog "" "$LIBS -lpthread" "pthread_condattr_setclock" ; then
+ pthread_condattr_setclock=yes
+ LIBS="$LIBS -lpthread"
fi
-print_config "pthread_condattr_setclock() support" "$pthread_condattr_setclock"
+print_config "pthread_condattr_setclock()" "$pthread_condattr_setclock"
##########################################
# solaris aio probe