aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-16 14:17:56 +0000
committerYang Tse <yangsita@gmail.com>2008-07-16 14:17:56 +0000
commit3a705696af63b57278ad0f54890cfa6770ec66eb (patch)
tree850b86c772454fb234dbe5139db3e43210815605
parent2cfb8a2bf0a47b5073c5e41bd8062880f1d86335 (diff)
Initial DEC/Compaq C compiler detection and flags
-rw-r--r--ares/configure.ac16
-rw-r--r--configure.ac16
2 files changed, 32 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index 80eecda20..57f16c3cb 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -231,6 +231,22 @@ else
AC_MSG_RESULT([no])
fi
+AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
+CURL_CHECK_DEF([__DECC], [], [silent])
+CURL_CHECK_DEF([__DECC_VER], [], [silent])
+if test "$curl_cv_have_def___DECC" = "yes" ||
+ test "$curl_cv_have_def___DECC_VER" = "yes"; then
+ AC_MSG_RESULT([yes])
+ dnl Select strict ANSI C compiler mode
+ CFLAGS="$CFLAGS -std1"
+ dnl Generate verbose messages for errors and warnings
+ CFLAGS="$CFLAGS -verbose"
+ dnl Generate warnings for missing function prototypes
+ CFLAGS="$CFLAGS -warnprotos"
+else
+ AC_MSG_RESULT([no])
+fi
+
CURL_CHECK_COMPILER_HALT_ON_ERROR
CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
diff --git a/configure.ac b/configure.ac
index 16b58d008..631939439 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,22 @@ else
AC_MSG_RESULT([no])
fi
+AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
+CURL_CHECK_DEF([__DECC], [], [silent])
+CURL_CHECK_DEF([__DECC_VER], [], [silent])
+if test "$curl_cv_have_def___DECC" = "yes" ||
+ test "$curl_cv_have_def___DECC_VER" = "yes"; then
+ AC_MSG_RESULT([yes])
+ dnl Select strict ANSI C compiler mode
+ CFLAGS="$CFLAGS -std1"
+ dnl Generate verbose messages for errors and warnings
+ CFLAGS="$CFLAGS -verbose"
+ dnl Generate warnings for missing function prototypes
+ CFLAGS="$CFLAGS -warnprotos"
+else
+ AC_MSG_RESULT([no])
+fi
+
CURL_CHECK_COMPILER_HALT_ON_ERROR
CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE