aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/open-motif-devel/files/patch-configure.ac
blob: b2a72792d9a88ada97eb7c4fd3a5a0cf387e1626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- configure.ac.orig	2012-10-22 16:50:39.000000000 +0200
+++ configure.ac	2014-01-27 22:38:58.000000000 +0100
@@ -164,7 +164,7 @@
 if test x$GCC = xyes
 then
     CFLAGS="$CFLAGS -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment"
-    if test ` $CC -dumpversion | sed -e 's/\(^.\).*/\1/'` = "4" ; then
+    if ! $CC -v 2>&1 | grep clang > /dev/null && test ` $CC -dumpversion | sed -e 's/\(^.\).*/\1/'` = "4" ; then
         CFLAGS="$CFLAGS -fno-tree-ter"
     fi
 fi