summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authortjg <tjg>1998-12-09 11:23:15 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:13 +0100
commite68007b56849e44233537e2dc76cface0f7c88a9 (patch)
tree33bc80dd59ca82fdf8acc79f2c96bf9e6092ec66 /configure.ac
parent22c687beb012235050097daf2571057c5a1245a1 (diff)
Portability: use AM_PROG_CC_STDC. This obviates the need for a
special hack on HP-UX.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 659096b..1c07c7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,11 +11,14 @@ AC_ARG_PROGRAM
AC_DEFINE(RELDATE, "1998-12-04")
+dnl Find a standard C compiler
+AC_PROG_CC
+AM_PROG_CC_STDC
+
dnl If we're using gcc, specify `-Wall'. I've also checked the code
dnl with `-pedantic -W -Wall -Wpointer-arith -Wstrict-prototypes
dnl -Wmissing-prototypes', and checked that all the warnings generated
dnl are harmless.
-AC_PROG_CC
case "$GCC" in
yes) CFLAGS="-Wall $CFLAGS" ;;
esac