summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-02 03:56:55 +0000
committerYang Tse <yangsita@gmail.com>2008-10-02 03:56:55 +0000
commit2245ac2f884513bb3145f841fb3a9aed80b6ff34 (patch)
treebc60c78e19ae34e8b57ef5bf19c12fe30ae33d33 /acinclude.m4
parent1bfaf76dd09a12ccd0dea7f4ec7d1a34b38cbce5 (diff)
downloadcurl-2245ac2f884513bb3145f841fb3a9aed80b6ff34.tar.gz
Initial attempt to support configure's --(dis|en)able-warnings
option to specify dis(activation) of picky compiler warnings. If option is specified, it will be honored independant of the --(dis|en)able-debug option. If option is not specified, it will follow --(dis|en)able-debug setting, whose default is disabled if not specified.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m451
1 files changed, 0 insertions, 51 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 6b0d33228..7a758dc3e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2601,57 +2601,6 @@ fi
])
-dnl **********************************************************************
-dnl CURL_DETECT_ICC ([ACTION-IF-YES])
-dnl
-dnl check if this is the Intel ICC compiler, and if so run the ACTION-IF-YES
-dnl sets the $ICC variable to "yes" or "no"
-dnl **********************************************************************
-AC_DEFUN([CURL_DETECT_ICC],
-[
- ICC="no"
- AC_MSG_CHECKING([for icc in use])
- if test "$GCC" = "yes"; then
- dnl check if this is icc acting as gcc in disguise
- AC_EGREP_CPP([^__INTEL_COMPILER], [__INTEL_COMPILER],
- dnl action if the text is found, this it has not been replaced by the
- dnl cpp
- ICC="no",
- dnl the text was not found, it was replaced by the cpp
- ICC="yes"
- AC_MSG_RESULT([yes])
- [$1]
- )
- fi
- if test "$ICC" = "no"; then
- # this is not ICC
- AC_MSG_RESULT([no])
- fi
-])
-
-dnl We create a function for detecting which compiler we use and then set as
-dnl pendantic compiler options as possible for that particular compiler. The
-dnl options are only used for debug-builds.
-
-AC_DEFUN([CURL_CC_DEBUG_OPTS],
-[
- dnl strip off optimizer flags
- NEWFLAGS=""
- for flag in $CFLAGS; do
- case "$flag" in
- -O*)
- dnl echo "cut off $flag"
- ;;
- *)
- NEWFLAGS="$NEWFLAGS $flag"
- ;;
- esac
- done
- CFLAGS=$NEWFLAGS
-]) # AC-DEFUN
-
-
-
# This is only a temporary fix. This macro is here to replace the broken one
# delivered by the automake project (including the 1.9.6 release). As soon as
# they ship a working version we SHOULD remove this work-around.