diff options
Diffstat (limited to 'm4/ax_append_link_flags.m4')
-rw-r--r-- | m4/ax_append_link_flags.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/ax_append_link_flags.m4 b/m4/ax_append_link_flags.m4 index c73ddafc..fd70fc72 100644 --- a/m4/ax_append_link_flags.m4 +++ b/m4/ax_append_link_flags.m4 | |||
@@ -4,7 +4,7 @@ | |||
4 | # | 4 | # |
5 | # SYNOPSIS | 5 | # SYNOPSIS |
6 | # | 6 | # |
7 | # AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS]) | 7 | # AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) |
8 | # | 8 | # |
9 | # DESCRIPTION | 9 | # DESCRIPTION |
10 | # | 10 | # |
@@ -19,6 +19,8 @@ | |||
19 | # EXTRA-FLAGS FLAG". This can for example be used to force the linker to | 19 | # EXTRA-FLAGS FLAG". This can for example be used to force the linker to |
20 | # issue an error when a bad flag is given. | 20 | # issue an error when a bad flag is given. |
21 | # | 21 | # |
22 | # INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||
23 | # | ||
22 | # NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. | 24 | # NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. |
23 | # Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. | 25 | # Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. |
24 | # | 26 | # |
@@ -52,12 +54,12 @@ | |||
52 | # modified version of the Autoconf Macro, you may extend this special | 54 | # modified version of the Autoconf Macro, you may extend this special |
53 | # exception to the GPL to apply to your modified version as well. | 55 | # exception to the GPL to apply to your modified version as well. |
54 | 56 | ||
55 | #serial 4 | 57 | #serial 5 |
56 | 58 | ||
57 | AC_DEFUN([AX_APPEND_LINK_FLAGS], | 59 | AC_DEFUN([AX_APPEND_LINK_FLAGS], |
58 | [AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) | 60 | [AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) |
59 | AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) | 61 | AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
60 | for flag in $1; do | 62 | for flag in $1; do |
61 | AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3]) | 63 | AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4]) |
62 | done | 64 | done |
63 | ])dnl AX_APPEND_LINK_FLAGS | 65 | ])dnl AX_APPEND_LINK_FLAGS |