repo: ngircd
action: commit
revision: 
path_from: 
revision_from: beb9f65dc8dfb4517ab59512ddaf1e111a4e3132:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit beb9f65dc8dfb4517ab59512ddaf1e111a4e3132
Author: Alexander Barton 
Date:   Sun Oct 20 15:25:19 2013 +0200

    platformtest.sh: Detect clang compilers

diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index 6b154bbb826c3b71206c41a471814fadf552109b..
index ..ba0a45e9adc7c0dfdfa63ef74a84976b20598dbc 100755
--- a/contrib/platformtest.sh
+++ b/contrib/platformtest.sh
@@ -120,11 +120,12 @@ if [ -r "Makefile" ]; then
 		fi
 	else
 		# Non-GCC compiler
-		$CC --version 2>&1 | grep -i "LLVM" >/dev/null
+		$CC --version 2>&1 | grep -i "clang" >/dev/null
 		if [ $? -eq 0 ]; then
 			COMPILER=$($CC --version 2>/dev/null | head -1 \
-			  | cut -d'(' -f1 | sed -e 's/version //g' \
-			  | sed -e 's/Apple /A-/g')
+			  | cut -d'(' -f1 | cut -d'-' -f1 \
+			  | sed -e 's/version //g' | sed -e 's/Apple /A-/g' \
+			  | sed -e 's/Debian //g' | sed -e 's/LLVM /clang /g')
 		fi
 		$CC -version 2>&1 | grep -i "tcc" >/dev/null
 		if [ $? -eq 0 ]; then
diff --git a/doc/Platforms.txt b/doc/Platforms.txt
index d48937502c5eb8942b176152abf016ecc44dc5b9..
index ..ef426a3a64dba6597bff7774b00233f26838eee3 100644
--- a/doc/Platforms.txt
+++ b/doc/Platforms.txt
@@ -74,8 +74,10 @@ sparc/sun/solaris2.6        gcc 2.95.3   0.7.x-CVS  03-04-22 alex   Y Y Y Y
 sparc/sun/solaris2.7        gcc 3.3      0.8.0      04-05-30 alex   Y Y Y Y
 sparc/unkn./netbsdelf1.6.1  gcc 2.95.3   0.8.0      04-05-30 alex   Y Y Y Y
 x86_64/apple/darwin12.3.0   gcc 4.2.1    20.2       13-04-01 alex   Y Y Y Y (3)
+x86_64/apple/darwin13.0.0   A-clang 5.0  21~rc1     13-10-16 alex   Y Y Y Y (3)
 x86_64/unknown/freebsd8.1   gcc 4.2.1    20~rc1     12-11-13 alex   Y Y Y Y (3)
 x86_64/unkn./freebsd8.1-gnu gcc 4.4.5    19         12-02-26 alex   Y Y Y Y (3)
+x86_64/unknown/linux-gnu    clang 3.2    21~rc1     13-10-16 alex   Y Y Y Y (1)
 x86_64/unknown/linux-gnu    gcc 4.4.5    20.2       13-04-01 alex   Y Y Y Y (1)
 x86_64/unknown/linux-gnu    Open64       20.3       13-10-16 goetz  Y Y Y Y (1)
 x86_64/unknown/linux-gnu    tcc 0.9.25   20.3       13-10-16 goetz  Y Y Y Y (1)

-----END OF PAGE-----