From bd999466186a41890d6e40fe4cad483f8b9f3962 Mon Sep 17 00:00:00 2001 From: Scott Peshak Date: Sat, 19 Mar 2016 23:29:49 -0500 Subject: [PATCH] Fix configure script for OS X The Debian/Ubuntu checks were causing the configure script to die on OS X. This is a really cheap fix. --- configure | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 77f2bd935..b5643c1b1 100755 --- a/configure +++ b/configure @@ -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";