ax_append_flag

Synopsis

AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])

Description

FLAG is appended to the FLAGS-VARIABLE shell variable, with a space added in between.

If FLAGS-VARIABLE is not specified, the current language’s flags (e.g. CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly FLAG.

NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.

Source Code

Download the latest version of ax_append_flag.m4 or browse the macro’s revision history.

License

Copyright © 2008 Guido U. Draheim 
Copyright © 2011 Maarten Bosmans 

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.