mirror of
https://github.com/transmission/transmission
synced 2025-02-11 08:54:55 +00:00
Add check for a working compiler and print a helpful error if one is not found.
This commit is contained in:
parent
7a5c149504
commit
ff977b74c5
1 changed files with 21 additions and 0 deletions
21
configure
vendored
21
configure
vendored
|
@ -39,6 +39,22 @@ Some influential environment variables:
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc_test()
|
||||||
|
{
|
||||||
|
cat > testconf.c <<EOF
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
if ! $CC -o testconf testconf.c > /dev/null 2>&1; then
|
||||||
|
rm -f testconf.c testconf
|
||||||
|
echo "Could not find a working compiler"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rm -f testconf.c testconf
|
||||||
|
}
|
||||||
|
|
||||||
openssl_test()
|
openssl_test()
|
||||||
{
|
{
|
||||||
cat > testconf.c << EOF
|
cat > testconf.c << EOF
|
||||||
|
@ -231,6 +247,11 @@ EOF
|
||||||
esac
|
esac
|
||||||
echo "System: $SYSTEM"
|
echo "System: $SYSTEM"
|
||||||
|
|
||||||
|
#
|
||||||
|
# First things first, check to see if there's a compiler installed
|
||||||
|
#
|
||||||
|
cc_test
|
||||||
|
|
||||||
#
|
#
|
||||||
# OpenSSL settings
|
# OpenSSL settings
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue