Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
6814907a
Commit
6814907a
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Initial attempt to detect SUN C compiler
parent
11a8a255
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ares/m4/cares-compilers.m4
+48
-18
48 additions, 18 deletions
ares/m4/cares-compilers.m4
m4/curl-compilers.m4
+48
-18
48 additions, 18 deletions
m4/curl-compilers.m4
with
96 additions
and
36 deletions
ares/m4/cares-compilers.m4
+
48
−
18
View file @
6814907a
...
...
@@ -40,6 +40,7 @@ AC_DEFUN([CARES_CHECK_COMPILER], [
CARES_CHECK_COMPILER_IBM
CARES_CHECK_COMPILER_INTEL
CARES_CHECK_COMPILER_GNU
CARES_CHECK_COMPILER_SUN
#
if test "$compiler_id" = "unknown"; then
cat <<_EOF 1>&2
...
...
@@ -212,6 +213,28 @@ AC_DEFUN([CARES_CHECK_COMPILER_INTEL], [
])
dnl CARES_CHECK_COMPILER_SUN
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SUN's.
AC_DEFUN([CARES_CHECK_COMPILER_SUN], [
AC_MSG_CHECKING([whether we are using the SUN C compiler])
CURL_CHECK_DEF([__SUNPRO_C], [], [silent])
if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SUNC"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
flags_opt_all="-O -xO1 -xO2 -xO3 -xO4 -xO5"
flags_opt_yes="-xO2"
flags_opt_off=""
else
AC_MSG_RESULT([no])
fi
])
dnl CARES_SET_COMPILER_BASIC_OPTS
dnl -------------------------------------------------
dnl Sets compiler specific options/flags which do not
...
...
@@ -414,24 +437,6 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
CPPFLAGS="$CPPFLAGS -Wall"
dnl Perform extra compile-time code checking
CPPFLAGS="$CPPFLAGS -Wcheck"
fi
fi
fi
#
if test "$compiler_id" = "GNUC"; then
#
# FIXME: Some of these warnings should be changed into errors
...
...
@@ -487,6 +492,31 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
CPPFLAGS="$CPPFLAGS -Wall"
dnl Perform extra compile-time code checking
CPPFLAGS="$CPPFLAGS -Wcheck"
fi
fi
fi
#
if test "$compiler_id" = "SUNC"; then
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
CFLAGS="$CFLAGS -v"
fi
fi
#
])
...
...
This diff is collapsed.
Click to expand it.
m4/curl-compilers.m4
+
48
−
18
View file @
6814907a
...
...
@@ -46,6 +46,7 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
CURL_CHECK_COMPILER_IBM
CURL_CHECK_COMPILER_INTEL
CURL_CHECK_COMPILER_GNU
CURL_CHECK_COMPILER_SUN
#
if test "$compiler_id" = "unknown"; then
cat <<_EOF 1>&2
...
...
@@ -218,6 +219,28 @@ AC_DEFUN([CURL_CHECK_COMPILER_INTEL], [
])
dnl CURL_CHECK_COMPILER_SUN
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SUN's.
AC_DEFUN([CURL_CHECK_COMPILER_SUN], [
AC_MSG_CHECKING([whether we are using the SUN C compiler])
CURL_CHECK_DEF([__SUNPRO_C], [], [silent])
if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SUNC"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
flags_opt_all="-O -xO1 -xO2 -xO3 -xO4 -xO5"
flags_opt_yes="-xO2"
flags_opt_off=""
else
AC_MSG_RESULT([no])
fi
])
dnl CURL_SET_COMPILER_BASIC_OPTS
dnl -------------------------------------------------
dnl Sets compiler specific options/flags which do not
...
...
@@ -420,24 +443,6 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
CPPFLAGS="$CPPFLAGS -Wall"
dnl Perform extra compile-time code checking
CPPFLAGS="$CPPFLAGS -Wcheck"
fi
fi
fi
#
if test "$compiler_id" = "GNUC"; then
#
# FIXME: Some of these warnings should be changed into errors
...
...
@@ -493,6 +498,31 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
CPPFLAGS="$CPPFLAGS -Wall"
dnl Perform extra compile-time code checking
CPPFLAGS="$CPPFLAGS -Wcheck"
fi
fi
fi
#
if test "$compiler_id" = "SUNC"; then
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
CFLAGS="$CFLAGS -v"
fi
fi
#
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment