Feature #187 ยป 0035-gnulib-common.m4-Update-to-serial-90.patch
| dependencies/m4/gnulib-common.m4 | ||
|---|---|---|
|
# gnulib-common.m4 serial 89
|
||
|
dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
|
||
|
# gnulib-common.m4 serial 90
|
||
|
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||
|
dnl This file is free software; the Free Software Foundation
|
||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||
|
dnl with or without modifications, as long as this notice is preserved.
|
||
| ... | ... | |
|
if test $gl_cv_compiler_clang = yes; then
|
||
|
dnl Test whether the compiler supports the option
|
||
|
dnl '-Werror=unguarded-availability-new'.
|
||
|
save_ac_compile="$ac_compile"
|
||
|
saved_ac_compile="$ac_compile"
|
||
|
ac_compile="$ac_compile -Werror=unguarded-availability-new"
|
||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
|
||
|
[gl_cv_compiler_check_future_option='-Werror=unguarded-availability-new'],
|
||
|
[gl_cv_compiler_check_future_option=none])
|
||
|
ac_compile="$save_ac_compile"
|
||
|
ac_compile="$saved_ac_compile"
|
||
|
else
|
||
|
gl_cv_compiler_check_future_option=none
|
||
|
fi
|
||
| ... | ... | |
|
darwin*)
|
||
|
if test "x$gl_cv_compiler_check_future_option" != "xnone"; then
|
||
|
dnl Use a compile test, not a link test.
|
||
|
save_ac_compile="$ac_compile"
|
||
|
saved_ac_compile="$ac_compile"
|
||
|
ac_compile="$ac_compile $gl_cv_compiler_check_future_option"
|
||
|
save_ac_compile_for_check_decl="$ac_compile_for_check_decl"
|
||
|
saved_ac_compile_for_check_decl="$ac_compile_for_check_decl"
|
||
|
ac_compile_for_check_decl="$ac_compile_for_check_decl $gl_cv_compiler_check_future_option"
|
||
|
unset [ac_cv_have_decl_][$1]
|
||
|
AC_CHECK_DECL([$1], , , [$2])
|
||
|
ac_compile="$save_ac_compile"
|
||
|
ac_compile_for_check_decl="$save_ac_compile_for_check_decl"
|
||
|
ac_compile="$saved_ac_compile"
|
||
|
ac_compile_for_check_decl="$saved_ac_compile_for_check_decl"
|
||
|
[ac_cv_func_][$1]="$[ac_cv_have_decl_][$1]"
|
||
|
if test $[ac_cv_func_][$1] = yes; then
|
||
|
[gl_cv_onwards_func_][$1]=yes
|
||