updated configure script to bail out if no compiler is found

This commit is contained in:
Arvid Norberg 2007-01-13 19:09:21 +00:00
parent ae2b0afafb
commit 977ab61140
1 changed files with 11 additions and 0 deletions

View File

@ -7,7 +7,18 @@ AM_INIT_AUTOMAKE(libtorrent, 0.12)
# AM_CONFIG_HEADER(config.h) # AM_CONFIG_HEADER(config.h)
AC_PROG_CC 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 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_CXX
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_MAKE_SET AC_PROG_MAKE_SET