summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-10-17 22:14:53 -0700
committerGuy Harris <guy@alum.mit.edu>2013-10-17 22:14:53 -0700
commitecb87d847b2035242c2921a4b88a7c997c565e2a (patch)
tree2efe5fe0eeadc40d52fd59ce387622dbf864c92d /aclocal.m4
parentdff33accfb9b04f26f93ff3d9d34f2aec5cf5002 (diff)
downloadtcpdump-ecb87d847b2035242c2921a4b88a7c997c565e2a.tar.gz
Explain why we set -xansi -signed for MIPS C.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b9939126..54f0757d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -145,6 +145,21 @@ AC_DEFUN(AC_LBL_C_INIT,
# don't want to try using GCC-style -W flags.
#
ac_lbl_cc_dont_try_gcc_dashW=yes
+ #
+ # It also, apparently, defaults to "char" being
+ # unsigned, unlike most other C implementations;
+ # I suppose we could say "signed char" whenever
+ # we want to guarantee a signed "char", but let's
+ # just force signed chars.
+ #
+ # -xansi is normally the default, but the
+ # configure script was setting it; perhaps -cckr
+ # was the default in the Old Days. (Then again,
+ # that would probably be for backwards compatibility
+ # in the days when ANSI C was Shiny and New, i.e.
+ # 1989 and the early '90's, so maybe we can just
+ # drop support for those compilers.)
+ #
$1="$$1 -xansi -signed"
;;