Skip to content

Commit

Permalink
Fix configure script for OS X
Browse files Browse the repository at this point in the history
The Debian/Ubuntu checks were causing the configure script to die on OS
X.  This is a really cheap fix.
  • Loading branch information
speshak committed Mar 20, 2016
1 parent 9be9503 commit bd99946
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions configure
Expand Up @@ -44,10 +44,13 @@ done

# Cmake defaults CMAKE_INSTALL_PREFIX=/usr/local.
# This is not good for debian, so try to detect debian/ubuntu.
grep -i ubuntu /etc/issue > /dev/null 2> /dev/null || grep -i debian /etc/issue > /dev/null 2> /dev/null
if [ $? == 0 ]
if [ `uname` == 'Linux' ]
then
PREFIX=/usr;
grep -i ubuntu /etc/issue > /dev/null 2> /dev/null || grep -i debian /etc/issue > /dev/null 2> /dev/null
if [ $? == 0 ]
then
PREFIX=/usr;
fi
fi

echo "Prefix: $PREFIX";
Expand Down

0 comments on commit bd99946

Please sign in to comment.