summaryrefslogtreecommitdiff
path: root/m4/ax_save_flags.m4
diff options
context:
space:
mode:
authorFilippo Giunchedi <filippo@esaurito.net>2010-01-09 21:37:38 +0100
committerPeter Simons <simons@cryp.to>2010-01-12 21:06:56 +0100
commit0576534b7ef9a7ab978509a18107cb3d1679bb90 (patch)
tree150da2565c49bbd8c8264471913e3a996408333b /m4/ax_save_flags.m4
parent89b80e0c00453dfe2239d7e94e08eb012deb3719 (diff)
downloadautoconf-archive-0576534b7ef9a7ab978509a18107cb3d1679bb90.tar.gz
AX_RESTORE_FLAGS, AX_SAVE_FLAGS: initial versions
Shamelessly copied from the great VLC.
Diffstat (limited to 'm4/ax_save_flags.m4')
-rw-r--r--m4/ax_save_flags.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/m4/ax_save_flags.m4 b/m4/ax_save_flags.m4
new file mode 100644
index 0000000..6af0fc5
--- /dev/null
+++ b/m4/ax_save_flags.m4
@@ -0,0 +1,29 @@
+# ===========================================================================
+# http://www.nongnu.org/autoconf-archive/ax_save_flags.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_SAVE_FLAGS()
+#
+# DESCRIPTION
+#
+# Save common compilation flags into temporary variables
+#
+# LICENSE
+#
+# Copyright (c) 2009 Filippo Giunchedi <filippo@esaurito.net>
+#
+# 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.
+
+AC_DEFUN([AX_SAVE_FLAGS], [
+ CPPFLAGS_save="${CPPFLAGS}"
+ CFLAGS_save="${CFLAGS}"
+ CXXFLAGS_save="${CXXFLAGS}"
+ OBJCFLAGS_save="${OBJCFLAGS}"
+ LDFLAGS_save="${LDFLAGS}"
+ LIBS_save="${LIBS}"
+])