mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
acinclude: detect manually set minimum macos/ipod version
... even if set in the CC or IPHONEOS/MACOSX_DEPLOYMENT_TARGET variables. Reported-by: hamstergene on github Fixes #6138 Closes #6140
This commit is contained in:
parent
e4d38014cd
commit
c131148b69
12
acinclude.m4
12
acinclude.m4
@ -2526,14 +2526,20 @@ AC_DEFUN([CURL_MAC_CFLAGS], [
|
|||||||
AC_MSG_RESULT([$tst_cflags]);
|
AC_MSG_RESULT([$tst_cflags]);
|
||||||
|
|
||||||
if test "$tst_cflags" = "yes"; then
|
if test "$tst_cflags" = "yes"; then
|
||||||
AC_MSG_CHECKING([for *version-min in CFLAGS])
|
AC_MSG_CHECKING([for *version-min set by user])
|
||||||
min=""
|
min=""
|
||||||
if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
|
if test -n "$IPHONEOS_DEPLOYMENT_TARGET"; then
|
||||||
|
var="IPHONEOS_DEPLOYMENT_TARGET"
|
||||||
|
elif test -n "$MACOSX_DEPLOYMENT_TARGET"; then
|
||||||
|
var="MACOSX_DEPLOYMENT_TARGET"
|
||||||
|
elif test -z "$(echo $CFLAGS $CC | grep m.*os.*-version-min)"; then
|
||||||
min="-mmacosx-version-min=10.8"
|
min="-mmacosx-version-min=10.8"
|
||||||
CFLAGS="$CFLAGS $min"
|
CFLAGS="$CFLAGS $min"
|
||||||
|
else
|
||||||
|
var="CFLAGS or CC"
|
||||||
fi
|
fi
|
||||||
if test -z "$min"; then
|
if test -z "$min"; then
|
||||||
AC_MSG_RESULT([set by user])
|
AC_MSG_RESULT([set by user in $var])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([$min set])
|
AC_MSG_RESULT([$min set])
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user