Skip to content
Snippets Groups Projects
Commit 954cf3ee authored by Dan Povey's avatar Dan Povey
Browse files

Changed order of checking libraries in configure, to favor 32-bit over 64

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@757 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 0f2eb6dd
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ function linux_check_static {
if [ -f $dir/libatlas.a ]; then # candidate...
# Note: on the next line, the variable assignment
# LANG=en_US should apply just to the program called on that line.
if LANG=en_US nm $dir/libatlas.a 2>&1 | grep "File format not recognized" >/dev/null; then
if LANG=en_US nm $dir/libatlas.a 2>&1 | grep "File format not recognized"; then
echo "Directory $dir may contain ATLAS libraries but seems to be wrong architecture";
return 1;
fi
......@@ -95,7 +95,7 @@ function linux_check_static {
function linux_configure_static {
if [ -z $ATLASLIBDIR ]; then # Note: it'll pick up the last one below.
for dir in /usr{,/local}/lib{,64}{,/atlas,/atlas-sse2,/atlas-sse3} \
for dir in /usr{,/local}/lib{64,}{,/atlas,/atlas-sse2,/atlas-sse3} \
`pwd`/../tools/ATLAS/build/install/lib/ $ATLASROOT/lib; do
linux_check_static && ATLASLIBDIR=$dir
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment