configure: check if specified compiler exists
PATCH 1/1 configure: check if specified compiler exists
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
the attached patch adds a check to configure to see whether the compiler really exists. If configure is called with --cc , but the given compiler doesn't exist, configure currently fails without giving a good reason.
(In my case I ran "./configure --cc=gcc-3.4" but gcc-3.4 doesn't exist on the system; configure then told me that it couldn't find SDL, without hinting at the real reason. The little notice that the endian check failed as well escaped my eyes :-)
Regards,
Oliver Gerlich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFESiVaTFOM6DcNJ6cRAo0uAJ0TJF7sFxTg54uh6yHUt83CsusIugCg0GX6 AmFu4u1SAAT3DIl3vwmIvfY=
=3dbm
-----END PGP SIGNATURE-----
configure renamed from configure-old +5 -0
@@ -283,6 +283,11 @@ ar="${cross_prefix}${ar}" strip="${cross_prefix}${strip}" +if [ -z `which $cc` ] ; then + echo "Compiler $cc could not be found" + exit +fi + if test "$mingw32" = "yes" ; then linux="no" EXESUF=".exe"