]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
c99: Check for and require a C99-compatible compiler
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Apr 2015 18:17:14 +0000 (20:17 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 22 Jul 2016 16:22:45 +0000 (18:22 +0200)
NEWS.txt
configure.ac
system.h

index 154277f6ba3054247b919dcc1ff96ccc53a90fce..46d2a33437dedf808297f3af2a17f499d7def00f 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -5,6 +5,12 @@ ccache news
 Unreleased 3.3
 --------------
 
+Notes
+~~~~~
+
+- A C99-compatible compiler is now required to build ccache.
+
+
 New features and improvements
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
index 988ac315ff4f46c2e3cd60a3572fc1f2081cd0df..a35fac08ebbed4993c6555c4e63b71009227e571 100644 (file)
@@ -21,7 +21,11 @@ AC_SUBST(include_dev_mk)
 AC_SUBST(test_suites)
 
 dnl Checks for programs.
-AC_PROG_CC
+AC_PROG_CC_C99
+if test "$ac_cv_prog_cc_c99" = no; then
+    AC_MSG_ERROR(cannot find a C99-compatible compiler)
+fi
+
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_RANLIB
@@ -41,7 +45,6 @@ fi
 
 AC_HEADER_DIRENT
 AC_HEADER_TIME
-AC_HEADER_STDBOOL
 AC_HEADER_SYS_WAIT
 
 AC_CHECK_TYPES(long long)
index dd11f2e50f0f7c3b2a0e095a8ba6714d4f78540a..f22ece8433c6f570019b3b8adbdc562f291caf95 100644 (file)
--- a/system.h
+++ b/system.h
@@ -40,6 +40,7 @@
 #include <limits.h>
 #include <signal.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -72,20 +73,4 @@ extern char **environ;
   #define asprintf rpl_asprintf
 #endif
 
-#ifdef HAVE_STDBOOL_H
-#  include <stdbool.h>
-#else
-#  ifndef HAVE__BOOL
-#    ifdef __cplusplus
-typedef bool _Bool;
-#    else
-#      define _Bool signed char
-#    endif
-#  endif
-#  define bool _Bool
-#  define false 0
-#  define true 1
-#  define __bool_true_false_are_defined 1
-#endif
-
 #endif /* CCACHE_SYSTEM_H */