Permalink
Browse files

Better checks in configure

  • Loading branch information...
1 parent 5fcde85 commit 6b45b84d5df0190fb5b46cb4e4ac39851367fa0d @jwatte jwatte committed Oct 6, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 configure
View
@@ -94,6 +94,10 @@ if [ -z "$BOOST_SYSTEM" ]; then
BOOST_SYSTEM=-lboost_system
elif [ -r /usr/lib/libboost_system-mt.so ]; then
BOOST_SYSTEM=-lboost_system-mt.so
+ else
+ echo "Cannot find boost_system-mt.so (or boost_system.so)"
+ echo "Specify it with --boost_system or install libboost-dev-all."
+ exit 1
fi
fi
# boost_filesystem is also somewhat a pain
@@ -102,20 +106,31 @@ if [ -z "$BOOST_FILESYSTEM" ]; then
BOOST_FILESYSTEM=-lboost_filesystem
elif [ -r /usr/lib/libboost_filesystem-mt.so ]; then
BOOST_FILESYSTEM=-lboost_filesystem-mt
+ else
+ echo "Cannot find boost_filesystem-mt.so (or boost_filesystem.so)"
+ echo "Specify it with --boost_filesystem or install libboost-dev-all."
+ exit 1
fi
fi
if [ -z "$STATGRAB" ]; then
if [ -r /usr/lib/libstatgrab.so ]; then
STATGRAB=-lstatgrab
elif [ -r /usr/local/lib/libstatgrab.so ]; then
STATGRAB=-lstatgrab
+ else
+ echo "Cannot find libstatgrab.so"
+ echo "Specify it with --statgrab or install libstatgrab-dev."
+ exit 1
fi
fi
if [ -z "$LIBRT" ]; then
if [ -r /usr/lib/librt.so ]; then
LIBRT=-lrt
elif [ -r /usr/local/lib/librt.so ]; then
LIBRT=-lrt
+ else
+ echo "Cannot find librt.so"
+ echo "Specify it with --librt"
fi
fi

0 comments on commit 6b45b84

Please sign in to comment.