comparison src/auto/configure @ 11093:e0694d4c4483 v8.0.0434

patch 8.0.0434: clang version not correctly detected commit https://github.com/vim/vim/commit/5f69fee26e0688c1646c8724ab794cb0c8d7c44d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 9 11:58:40 2017 +0100 patch 8.0.0434: clang version not correctly detected Problem: Clang version not correctly detected. Solution: Adjust the configure script. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Mar 2017 12:00:06 +0100
parents 78b13f6d87d5
children 3b36da20ad73
comparison
equal deleted inserted replaced
11092:24caa60f5e94 11093:e0694d4c4483
4112 CFLAGS="$CFLAGS -fno-strength-reduce" 4112 CFLAGS="$CFLAGS -fno-strength-reduce"
4113 fi 4113 fi
4114 fi 4114 fi
4115 fi 4115 fi
4116 4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4118 $as_echo_n "checking for recent clang version... " >&6; } 4118 $as_echo_n "checking for clang version... " >&6; }
4119 CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4119 CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4120 if test x"$CLANG_VERSION_STRING" != x"" ; then 4120 if test x"$CLANG_VERSION_STRING" != x"" ; then
4121 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4121 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4122 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4122 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4123 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4123 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4124 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4124 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4126 $as_echo "$CLANG_VERSION" >&6; } 4126 $as_echo "$CLANG_VERSION" >&6; }
4127 if test "$CLANG_VERSION" -ge 500002075 ; then 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4128 CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'` 4128 $as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4129 fi 4129 if test "$CLANG_VERSION" -ge 500002075 ; then
4130 else 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; } 4131 $as_echo "no" >&6; }
4132 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135 $as_echo "yes" >&6; }
4136 fi
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4139 $as_echo "N/A" >&6; }
4133 fi 4140 fi
4134 4141
4135 CROSS_COMPILING= 4142 CROSS_COMPILING=
4136 if test "$cross_compiling" = yes; then 4143 if test "$cross_compiling" = yes; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
10092 10099
10093 fi 10100 fi
10094 10101
10095 10102
10096 10103
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
10105 $as_echo_n "checking for /proc/self/exe... " >&6; }
10106 if test -L "/proc/self/exe"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108 $as_echo "yes" >&6; }
10109 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
10110
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10098 $as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10117 $as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10099 case `uname` in 10118 case `uname` in
10100 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10119 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; } 10120 $as_echo "yes" >&6; }