changeset 33445:8f7f69fd01d7

Check if compiler is functioning properly before trying to test additional options.
author iive
date Tue, 31 May 2011 21:15:14 +0000
parents fac64fecdb03
children 9f48a8de6be8
files configure
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue May 31 20:45:39 2011 +0000
+++ b/configure	Tue May 31 21:15:14 2011 +0000
@@ -1679,6 +1679,10 @@
 fi # icc
 test "$cc_fail" = yes && die "unsupported compiler version"
 
+echocheck "working compiler"
+cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ."
+echo "yes"
+
 if test -z "$_target" && x86 ; then
   cat > $TMPC << EOF
 int main(void) {