aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorgrischka <grischka>2008-03-08 19:55:47 +0000
committergrischka <grischka>2008-03-08 19:55:47 +0000
commit2eaa1104f7af7afa13e5e9a36020efaa33c0e050 (patch)
tree70d900fe94cb0ab3398f39c1ac3e769b144e9f45 /configure
parent265dddbecf8c8a5df5492caa72cf2b4e36bf00d7 (diff)
downloadtinycc-2eaa1104f7af7afa13e5e9a36020efaa33c0e050.tar.gz
tinycc-2eaa1104f7af7afa13e5e9a36020efaa33c0e050.tar.bz2
Checkin tiny_libmaker (ar replacement) by Timovj Lahde
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure b/configure
index 56fe798..a98f078 100755
--- a/configure
+++ b/configure
@@ -181,7 +181,20 @@ EOF
gcc_major="2"
if $cc -o $TMPO $TMPC 2> /dev/null ; then
- gcc_major="3"
+ gcc_major="3"
+fi
+cat > $TMPC <<EOF
+int main(void) {
+#if __GNUC__ >= 4
+return 0;
+#else
+#error gcc < 4
+#endif
+}
+EOF
+
+if $cc -o $TMPO $TMPC 2> /dev/null ; then
+ gcc_major="4"
fi
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then