Improve the pthread_condattr_setclock() test
[fio.git] / configure
index f7f082da25994e23c8a660ff802e6ceb40b40dbe..3a675a4691ef3fc37c6b14d0a21c292131bc8692 100755 (executable)
--- a/configure
+++ b/configure
@@ -720,8 +720,11 @@ int main(void)
 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