Next: , Previous: , Up: The Macros  


ax_restore_flags

Synopsis

AX_RESTORE_FLAGS([namespace])

Description

Restore common compilation flags from temporary variables.

Compilation flags includes: CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS, LIBS, OBJCFLAGS.

By default these flags are restored to a global (empty) namespace, but user could restore from specific NAMESPACE by using AX_RESTORE_FLAGS(NAMESPACE) macro.

Typical usage is like:

  AX_SAVE_FLAGS(mypackage)
  CPPFLAGS="-Imypackagespath ${CPPFLAGS}"
  dnl ... do some detection ...
  AX_RESTORE_FLAGS(mypackage)

Source Code

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

License

Copyright © 2009 Filippo Giunchedi filippo@esaurito.net
Copyright © 2011 The Board of Trustees of the Leland Stanford Junior University
Copyright © 2011 Russ Allbery rra@stanford.edu
Copyright © 2013 Bastien ROUCARIES roucaries.bastien+autoconf@gmail.com

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.