Browse Source

autotools: fixed d3d12 detection result report.

Ozkan Sezer 3 years ago
parent
commit
bdf141335c
2 changed files with 6 additions and 4 deletions
  1. 4 2
      configure
  2. 2 2
      configure.ac

+ 4 - 2
configure

@@ -27183,10 +27183,12 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 if ac_fn_c_try_compile "$LINENO"
 then :
 then :
   have_d3d12=yes
   have_d3d12=yes
+else $as_nop
+  have_d3d12=no
 fi
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: have_d3d12" >&5
-printf "%s\n" "have_d3d12" >&6; }
+        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
+printf "%s\n" "$have_d3d12" >&6; }
         ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
         ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
 if test "x$ac_cv_header_ddraw_h" = xyes
 if test "x$ac_cv_header_ddraw_h" = xyes
 then :
 then :

+ 2 - 2
configure.ac

@@ -3277,8 +3277,8 @@ ID3D12Device5 *device;
 #if WDK_NTDDI_VERSION <= 0x0A000008
 #if WDK_NTDDI_VERSION <= 0x0A000008
 asdf
 asdf
 #endif
 #endif
-            ]],[])], [have_d3d12=yes],[])
-        AC_MSG_RESULT(have_d3d12)
+            ]])], [have_d3d12=yes],[have_d3d12=no])
+        AC_MSG_RESULT($have_d3d12)
         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
         AC_CHECK_HEADER(dinput.h, have_dinput=yes)