|
From: <sv...@va...> - 2008-05-03 08:34:52
|
Author: bart
Date: 2008-05-03 09:34:52 +0100 (Sat, 03 May 2008)
New Revision: 7996
Log:
Print an error message if /usr/bin/getconf is not found.
Modified:
trunk/exp-drd/tests/supported_libpthread
Modified: trunk/exp-drd/tests/supported_libpthread
===================================================================
--- trunk/exp-drd/tests/supported_libpthread 2008-05-03 05:24:57 UTC (rev 7995)
+++ trunk/exp-drd/tests/supported_libpthread 2008-05-03 08:34:52 UTC (rev 7996)
@@ -5,6 +5,11 @@
# libpthread is found (LinuxThreads).
if [ "$(uname)" = "Linux" ]; then
+ if [ ! -x /usr/bin/getconf ]; then
+ echo "Error: could not find the program /usr/bin/getconf."
+ # Assume NPTL.
+ exit 0
+ fi
libpthread_version="$(/usr/bin/getconf GNU_LIBPTHREAD_VERSION 2>/dev/null)"
if [ "${libpthread_version#NPTL}" != "${libpthread_version}" ]; then
# NPTL
|