diff options
Diffstat (limited to 'gl/m4/00gnulib.m4')
-rw-r--r-- | gl/m4/00gnulib.m4 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gl/m4/00gnulib.m4 b/gl/m4/00gnulib.m4 index 7fe03e0..cd16771 100644 --- a/gl/m4/00gnulib.m4 +++ b/gl/m4/00gnulib.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # 00gnulib.m4 serial 8 | 1 | # 00gnulib.m4 |
2 | dnl Copyright (C) 2009-2023 Free Software Foundation, Inc. | 2 | # serial 9 |
3 | dnl Copyright (C) 2009-2024 Free Software Foundation, Inc. | ||
3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
@@ -49,14 +50,14 @@ dnl AC_REQUIRE([gl_COMPILER_CLANG]) | |||
49 | [if test $gl_cv_compiler_clang = yes; then | 50 | [if test $gl_cv_compiler_clang = yes; then |
50 | dnl Test whether the compiler supports the option | 51 | dnl Test whether the compiler supports the option |
51 | dnl '-Werror=implicit-function-declaration'. | 52 | dnl '-Werror=implicit-function-declaration'. |
52 | save_ac_compile="$ac_compile" | 53 | saved_ac_compile="$ac_compile" |
53 | ac_compile="$ac_compile -Werror=implicit-function-declaration" | 54 | ac_compile="$ac_compile -Werror=implicit-function-declaration" |
54 | dnl Use _AC_COMPILE_IFELSE instead of AC_COMPILE_IFELSE, to avoid a | 55 | dnl Use _AC_COMPILE_IFELSE instead of AC_COMPILE_IFELSE, to avoid a |
55 | dnl warning "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". | 56 | dnl warning "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". |
56 | _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])], | 57 | _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])], |
57 | [gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'], | 58 | [gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'], |
58 | [gl_cv_compiler_check_decl_option=none]) | 59 | [gl_cv_compiler_check_decl_option=none]) |
59 | ac_compile="$save_ac_compile" | 60 | ac_compile="$saved_ac_compile" |
60 | else | 61 | else |
61 | gl_cv_compiler_check_decl_option=none | 62 | gl_cv_compiler_check_decl_option=none |
62 | fi | 63 | fi |
@@ -71,11 +72,11 @@ dnl Redefine _AC_CHECK_DECL_BODY so that it references ac_compile_for_check_decl | |||
71 | dnl instead of ac_compile. If, for whatever reason, the override of AC_PROG_CC | 72 | dnl instead of ac_compile. If, for whatever reason, the override of AC_PROG_CC |
72 | dnl in zzgnulib.m4 is inactive, use the original ac_compile. | 73 | dnl in zzgnulib.m4 is inactive, use the original ac_compile. |
73 | m4_define([_AC_CHECK_DECL_BODY], | 74 | m4_define([_AC_CHECK_DECL_BODY], |
74 | [ ac_save_ac_compile="$ac_compile" | 75 | [ ac_saved_ac_compile="$ac_compile" |
75 | if test -n "$ac_compile_for_check_decl"; then | 76 | if test -n "$ac_compile_for_check_decl"; then |
76 | ac_compile="$ac_compile_for_check_decl" | 77 | ac_compile="$ac_compile_for_check_decl" |
77 | fi] | 78 | fi] |
78 | m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_save_ac_compile" | 79 | m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_saved_ac_compile" |
79 | ]) | 80 | ]) |
80 | 81 | ||
81 | # gl_00GNULIB | 82 | # gl_00GNULIB |