summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Zimmermann <tdz@users.sourceforge.net>2016-08-16 13:49:20 +0200
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2016-10-10 15:09:59 +0100
commit3c7c840f80c6524cacfe142262273afc8453edb8 (patch)
tree014b3b74fd9a9b513644892fdb29a73d6055207d /m4
parent36930b224b164dd223b3cc52e250a9f7d85290c4 (diff)
Remove configure option '--disable-compiler-optimisations'
This path removes the obsolete configure option '--disable-compiler-optimisations'. Users can control compiler flags by setting CFLAGS, CXXFLAGS, etc in the build environment. Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> Reviewed-by: Simon McVittie <smcv@debian.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler.m467
1 files changed, 0 insertions, 67 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4
deleted file mode 100644
index 5a197ada6..000000000
--- a/m4/compiler.m4
+++ /dev/null
@@ -1,67 +0,0 @@
-# compiler.m4 - autoconf macros for compiler settings
-#
-# Copyright © 2005 Scott James Remnant <scott@netsplit.com>.
-#
-# Permission is hereby granted, free of charge, to any person obtaining
-# a copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, sublicense, and/or sell copies of the Software, and to
-# permit persons to whom the Software is furnished to do so, subject to
-# the following conditions:
-#
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
-# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
-# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-# COMPILER_WARNINGS
-# ----------------------
-# Add configure option to enable additional compiler warnings and treat
-# them as errors.
-AC_DEFUN([COMPILER_WARNINGS],
-[AC_ARG_ENABLE(compiler-warnings,
- AS_HELP_STRING([--enable-compiler-warnings],
- [Enable additional compiler warnings]),
-[if test "x$enable_compiler_warnings" = "xyes"; then
- if test "x$GCC" = "xyes"; then
- CFLAGS="-Wall -Werror $CFLAGS"
- fi
- if test "x$GXX" = "xyes"; then
- CXXFLAGS="-Wall -Werror $CXXFLAGS"
- fi
-fi])dnl
-])# COMPILER_WARNINGS
-
-# COMPILER_OPTIMISATIONS
-# ---------------------------
-# Add configure option to disable optimisations.
-AC_DEFUN([COMPILER_OPTIMISATIONS],
-[AC_ARG_ENABLE(compiler-optimisations,
- AS_HELP_STRING([--disable-compiler-optimisations],
- [Disable compiler optimisations]),
-[if test "x$enable_compiler_optimisations" = "xno"; then
- [CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g"`]
-fi])dnl
-])# COMPILER_OPTIMISATIONS
-
-# COMPILER_COVERAGE
-# ----------------------
-# Add configure option to enable coverage data.
-AC_DEFUN([COMPILER_COVERAGE],
-[AC_ARG_ENABLE(compiler-coverage,
- AS_HELP_STRING([--enable-compiler-coverage],
- [Enable generation of coverage data]),
-[if test "x$enable_compiler_coverage" = "xyes"; then
- if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- fi
-fi],[enable_compiler_coverage=no])dnl
-])# COMPILER_COVERAGE