]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #2090 correct detection of GCC
authorKern Sibbald <kern@sibbald.com>
Wed, 30 Dec 2015 14:10:57 +0000 (15:10 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 30 Dec 2015 14:11:24 +0000 (15:11 +0100)
bacula/autoconf/configure.in

index 0ee1bb63c955a9b18a6a91b49a3bca4178ec6446..9213592c56c49196d6b65ba96de855d2ba819ab3 100644 (file)
@@ -90,14 +90,14 @@ dnl -------------------------------------------------------
 dnl Check for compiler.
 dnl ------------------------------------------------------
 
-AC_PROG_CC
+AC_PROG_CC             dnl this sets $GCC if using GNU C compiler
 AC_PROG_CXX
-AC_PROG_CC_C_O        dnl Determine if C compiler support -c -o.
-AC_PROG_GCC_TRADITIONAL    dnl Determine if ioctl() need -traditional.
+AC_PROG_CC_C_O         dnl Determine if C compiler support -c -o.
+AC_PROG_GCC_TRADITIONAL dnl Determine if ioctl() need -traditional.
 
 BASECC=`basename $CC`
 have_gcc=no
-if test "x$BASECC" = xgcc; then
+if test x"$GCC" = "xyes"; then
    AC_DEFINE(HAVE_GCC)
    have_gcc=yes
 fi