| Summary: | configury adds Metal.framework to linkage even if it is not available | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Mac OS X (All) | ||
I did basically the same thing slightly more clear to the novice autoconf user. https://hg.libsdl.org/SDL/rev/2eff89e82b60 Thanks! |
Configury adds Metal.framework to linkage even if it is not available. My solution is setting enable_render_metal to no when Metal.framework is not found, i.e. like the following: diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -2086,7 +2086,7 @@ ],[ ],[ have_metal=yes - ]) + ],[enable_render_metal=no]) CFLAGS="$save_CFLAGS" AC_MSG_RESULT($have_metal) if test x$have_metal = xyes; then diff --git a/configure b/configure --- a/configure +++ b/configure @@ -21303,6 +21303,8 @@ have_metal=yes +else + enable_render_metal=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$save_CFLAGS"