Hide gcc error message if using a compiler that can't precompile headers.
authorTim Potter <tpot@samba.org>
Tue, 2 Dec 2003 05:38:27 +0000 (05:38 +0000)
committerTim Potter <tpot@samba.org>
Tue, 2 Dec 2003 05:38:27 +0000 (05:38 +0000)
source/configure.in

index f71141f721212adfbeca15c034d513936bfb21f3..f2d91b78b1b65093174ef323e46fed3d37deb78e 100644 (file)
@@ -223,7 +223,7 @@ AC_SUBST(BROKEN_CC)
 AC_CACHE_CHECK([that the C compiler can precompile header files],samba_cv_precompiled_headers, [
        dnl Check whether the compiler can generate precompiled headers
        touch conftest.h
-       if ${CC-cc} conftest.h && test -f conftest.h.gch; then
+       if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
                samba_cv_precompiled_headers=yes
        else
                samba_cv_precompiled_headers=no