configure

changeset 109
8a0a7754f123
parent 94
6b15a094d996
child 204
e870a7c8f223
--- a/configure	Sat Oct 31 18:02:07 2015 +0100
+++ b/configure	Sat Oct 31 20:10:21 2015 +0100
@@ -72,6 +72,16 @@
     PLATFORM=osx.mk
 fi
 
+ISBSD=`echo $OS | grep -c BSD`
+if [ $ISBSD = 1 ]; then
+   if `type clang > /dev/null`; then
+        CCONF=clang.mk
+    else
+        CCONF=gcc.mk
+    fi
+    PLATFORM=bsd.mk
+fi
+
 echo "
 include \$(BUILD_ROOT)/make/$CCONF
 include \$(BUILD_ROOT)/make/$PLATFORM

mercurial