r15236: Fix -MT detection
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Apr 2006 10:19:15 +0000 (10:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:22 +0000 (14:04 -0500)
source/build/m4/check_cc.m4

index 8c099512fce40e81f47a56d8e8fbdf0086a67a05..64f44cd6ff76e1014c9231cc982d89bcc47efd06 100644 (file)
@@ -226,7 +226,7 @@ if test x$GNU_MAKE = x"yes"; then
 fi
 AC_MSG_RESULT($new_make)
 automatic_dependencies=no
-AX_CFLAGS_GCC_OPTION(-MT, [], [ automatic_dependencies=$new_make ], [])
+AX_CFLAGS_GCC_OPTION([-M -MT conftest.d -MF conftest.o], [], [ automatic_dependencies=$new_make ], [])
 AC_MSG_CHECKING([Whether to use automatic dependencies])
 AC_MSG_RESULT($automatic_dependencies)
 AC_SUBST(automatic_dependencies)