From 977ab61140605edc2c04fcf170e41d8f7b955114 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 13 Jan 2007 19:09:21 +0000 Subject: [PATCH] updated configure script to bail out if no compiler is found --- configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.in b/configure.in index 5f34ea9e2..0c543d552 100644 --- a/configure.in +++ b/configure.in @@ -7,7 +7,18 @@ AM_INIT_AUTOMAKE(libtorrent, 0.12) # AM_CONFIG_HEADER(config.h) AC_PROG_CC + +if test -z "$(which $CC)"; then + AC_MSG_ERROR([Unable to find a working C compiler, giving up.]) +fi + AC_PROG_CPP + +if test -z "$(which $CXX)"; then + AC_MSG_ERROR([Unable to find a working C++ compiler, giving up.]) +fi + +AC_CACHE_SAVE AC_PROG_CXX AC_PROG_INSTALL AC_PROG_MAKE_SET