diff --git a/configure b/configure
index bf37e48b5216ba481086017a3f32b49b8d1b716c..d7bd6f7e91169f2751a0ada8bb2302c9e8eb214d 100755
--- a/configure
+++ b/configure
@@ -3106,7 +3106,7 @@ probe_cc(){
     elif $_cc -v 2>&1 | grep -q clang; then
         _type=clang
         _ident=$($_cc --version | head -n1)
-        _depflags='-MMD'
+        _depflags='-MMD -MF $(@:.o=.d) -MT $@'
         _cflags_speed='-O3'
         _cflags_size='-Os'
     elif $_cc -V 2>&1 | grep -q Sun; then