--- src/mpi/romio/configure.orig 2009-06-03 03:49:23.000000000 +0200 +++ src/mpi/romio/configure 2009-06-22 19:13:16.000000000 +0200 @@ -8755,12 +8755,12 @@ return 0; } _ACEOF -for ac_lib in '' pthread; do +for ac_lib in '' $PTHREAD_LIBS; do if test -z "$ac_lib"; then ac_res="none required" else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" + ac_res=$ac_lib + LIBS="$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link"