From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXHUF-00044h-5N for qemu-devel@nongnu.org; Sat, 22 Apr 2006 08:45:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXHUE-00044V-MA for qemu-devel@nongnu.org; Sat, 22 Apr 2006 08:45:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXHUE-00044S-JS for qemu-devel@nongnu.org; Sat, 22 Apr 2006 08:45:18 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FXHW0-0002sW-Q8 for qemu-devel@nongnu.org; Sat, 22 Apr 2006 08:47:09 -0400 Message-ID: <444A255B.7060507@gmx.de> Date: Sat, 22 Apr 2006 14:45:15 +0200 From: Oliver Gerlich MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000108080809020701040805" Subject: [Qemu-devel] [Patch] configure: check if specified compiler exists Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------000108080809020701040805 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit -----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----- --------------000108080809020701040805 Content-Type: text/x-patch; name="check-cc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="check-cc.patch" --- configure-old 2006-04-17 15:57:12.000000000 +0200 +++ configure 2006-04-22 14:37:43.000000000 +0200 @@ -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" --------------000108080809020701040805--