Don't test for wide character functions in configure under OS X.
The tests for these functions may succeed on the system we're running under but the functions may not be actually available on the system the application is going to run under (if it's < 10.7). So use our own replacements for these functions unless 10.7 was explicitly chosen as the minimal possible version. An alternative solution could have been to use weak linking but this is more difficult and there is no real gain (performance would need to be measured first). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
16
configure
vendored
16
configure
vendored
@@ -29860,7 +29860,20 @@ if test "$WCSLEN_FOUND" = 1; then
|
||||
|
||||
fi
|
||||
|
||||
for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
|
||||
for ac_func in strnlen
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
|
||||
if test "x$ac_cv_func_strnlen" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRNLEN 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if test "$wxUSE_MAC" != 1; then
|
||||
for ac_func in wcsdup wcsftime wcsnlen wcscasecmp wcsncasecmp
|
||||
do :
|
||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||
@@ -29872,6 +29885,7 @@ _ACEOF
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
|
||||
CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
|
||||
|
Reference in New Issue
Block a user