Standardize directory names

Changed the configure script to look for libclang.dylib on the mac in addition to libclang.a

refs #63
This commit is contained in:
Alex Lin 2015-06-09 09:55:12 -05:00
parent 95f3efa948
commit 6950b0eb61

17
configure vendored
View File

@ -710,7 +710,22 @@ if [ -e "$TRICK_HOME/.git" -o $dev == 1 ] ; then
check_exists "clang compiler" `$llvm/bin/$llvm_config --bindir`/clang
check_exists "clang header files" `$llvm/bin/$llvm_config --includedir`/clang
check_exists "clang library" `$llvm/bin/$llvm_config --libdir`/libclang.a
#check_exists "clang library" `$llvm/bin/$llvm_config --libdir`/libclang.a
dir=`$llvm/bin/$llvm_config --libdir`
echo -n "checking for clang library... "
search_exists "libclang.a"
if [ $? -eq 0 ] ; then
echo "$dir/libclang.a"
else
search_exists "libclang.dylib"
if [ $? -eq 0 ] ; then
echo "$dir/libclang.dylib"
else
error_exit
fi
fi
if [ "$gtest" != "" ] ; then
check_exists "Google Test" "$gtest/include/gtest"