summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6ebf30)
raw | patch | inline | side by side (parent: a6ebf30)
author | Max Kellermann <max@duempel.org> | |
Mon, 9 Jun 2014 09:28:25 +0000 (11:28 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 9 Jun 2014 09:28:25 +0000 (11:28 +0200) |
m4/ax_append_compile_flags.m4 | patch | blob | history | |
m4/ax_append_link_flags.m4 | patch | blob | history |
index 425417008ab9a62ca8005a179b2ef8514f3318f7..dc7b86600a0069dd96e5a4e5bb11c7dcdd74062c 100644 (file)
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 2
+#serial 4
AC_DEFUN([AX_APPEND_COMPILE_FLAGS],
-[for flag in $1; do
+[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG])
+AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
+for flag in $1; do
AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3])
done
])dnl AX_APPEND_COMPILE_FLAGS
index 4fc433700ac40952cb8e98cd55ad52a21c865d9b..c73ddafc2e70d80d71e4a546422ae6654325cf35 100644 (file)
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 2
+#serial 4
AC_DEFUN([AX_APPEND_LINK_FLAGS],
-[for flag in $1; do
+[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
+AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
+for flag in $1; do
AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3])
done
])dnl AX_APPEND_LINK_FLAGS