From d9d950c6083061bcad91fcb686806170e055aea5 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 20 May 2008 19:43:01 +0000 Subject: [PATCH] env var CC has priority --- configure.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 981d0b8d8..b1961dd87 100644 --- a/configure.in +++ b/configure.in @@ -185,11 +185,14 @@ AM_MAINTAINER_MODE dnl Compiler checks dnl --------------- +if test -z "$CC"; then +# No C compiler specified... We rely on Autoconf to find the best + AC_PROG_CC +fi + dnl Work on compiler options according to system: dnl Set default CFLAG - only use -Wall if we have gcc -AC_PROG_CC(cc gcc) - dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g" if test "$enable_debug" = "no"; then if test "x$GCC" = "xyes"; then