Detect if a newer compiler is needed on BeOS.

This commit is contained in:
Josh Elsasser 2006-08-18 19:10:40 +00:00
parent f291041fa4
commit bd5393c193
1 changed files with 18 additions and 0 deletions

18
configure vendored
View File

@ -7,6 +7,7 @@
# #
SYSTEM= SYSTEM=
BEOS_NETSERVER=no BEOS_NETSERVER=no
BEOS_OLDCC=no
MATH=no MATH=no
PTHREAD=no PTHREAD=no
OPENSSL= OPENSSL=
@ -256,6 +257,18 @@ case $SYSTEM in
exit 1 exit 1
;; ;;
esac esac
GCCVER=`$CC --version`
case $GCCVER in
2.95.3*|3*|4*)
;;
2.9*)
BEOS_OLDCC=yes
;;
*)
echo "Unsupported gcc version"
exit 1
;;
esac
;; ;;
Darwin) Darwin)
@ -301,6 +314,11 @@ if [ "$OPENSSL" = no ]; then
else else
openssl_test openssl_test
fi fi
if [ "$OPENSSL" = no ] && [ "$BEOS_OLDCC" = yes ]; then
echo "built-in SHA1 implementation not supported with your gcc version"
echo "you must either install OpenSSL or gcc 2.95.3 or newer"
exit 1
fi
# #
# GTK+ settings # GTK+ settings