diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/mhd_check_func.m4 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/m4/mhd_check_func.m4 b/m4/mhd_check_func.m4 index 342c12f9..502a9b15 100644 --- a/m4/mhd_check_func.m4 +++ b/m4/mhd_check_func.m4 | |||
@@ -37,14 +37,14 @@ | |||
37 | # | 37 | # |
38 | # LICENSE | 38 | # LICENSE |
39 | # | 39 | # |
40 | # Copyright (c) 2019-2022 Karlson2k (Evgeny Grin) <k2k@narod.ru> | 40 | # Copyright (c) 2019-2023 Karlson2k (Evgeny Grin) <k2k@narod.ru> |
41 | # | 41 | # |
42 | # Copying and distribution of this file, with or without modification, are | 42 | # Copying and distribution of this file, with or without modification, are |
43 | # permitted in any medium without royalty provided the copyright notice | 43 | # permitted in any medium without royalty provided the copyright notice |
44 | # and this notice are preserved. This file is offered as-is, without any | 44 | # and this notice are preserved. This file is offered as-is, without any |
45 | # warranty. | 45 | # warranty. |
46 | 46 | ||
47 | #serial 3 | 47 | #serial 4 |
48 | 48 | ||
49 | AC_DEFUN([MHD_CHECK_FUNC],[dnl | 49 | AC_DEFUN([MHD_CHECK_FUNC],[dnl |
50 | AC_PREREQ([2.64])dnl for AS_VAR_IF, m4_ifblank, m4_ifnblank | 50 | AC_PREREQ([2.64])dnl for AS_VAR_IF, m4_ifblank, m4_ifnblank |
@@ -63,7 +63,18 @@ AC_DEFUN([MHD_CHECK_FUNC],[dnl | |||
63 | LIBS="$LIBS _mhd_norm_expd([$6])" | 63 | LIBS="$LIBS _mhd_norm_expd([$6])" |
64 | ])dnl | 64 | ])dnl |
65 | AC_LINK_IFELSE( | 65 | AC_LINK_IFELSE( |
66 | [AC_LANG_PROGRAM([m4_default_nblank([$2],[AC_INCLUDES_DEFAULT])], [$3]) ], | 66 | [AC_LANG_SOURCE([ |
67 | m4_default_nblank([$2],[AC_INCLUDES_DEFAULT]) | ||
68 | |||
69 | int main(void) | ||
70 | { | ||
71 | |||
72 | $3 | ||
73 | |||
74 | return 0; | ||
75 | } | ||
76 | ]) | ||
77 | ], | ||
67 | [AS_VAR_SET([cv_Var],["yes"])], [AS_VAR_SET([cv_Var],["no"])] ) | 78 | [AS_VAR_SET([cv_Var],["yes"])], [AS_VAR_SET([cv_Var],["no"])] ) |
68 | m4_ifnblank([$6],[dnl | 79 | m4_ifnblank([$6],[dnl |
69 | LIBS="${mhd_check_func_SAVE_LIBS}" | 80 | LIBS="${mhd_check_func_SAVE_LIBS}" |