|
|
@@ -157,6 +157,26 @@ AC_TRY_COMPILE([
|
|
|
AC_TRY_COMPILE(,[
|
|
|
} inline int foo (int x) {], AC_DEFINE(HAVE_INLINE))
|
|
|
|
|
|
+DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),dpkg_cv_c_attribute_supported,,
|
|
|
+ [extern int testfunction(int x) __attribute__((,,))],
|
|
|
+ AC_MSG_RESULT(yes)
|
|
|
+ AC_DEFINE(HAVE_GNUC25_ATTRIB)
|
|
|
+ DPKG_CACHED_TRY_COMPILE(__attribute__((noreturn)),dpkg_cv_c_attribute_noreturn,,
|
|
|
+ [extern int testfunction(int x) __attribute__((noreturn))],
|
|
|
+ AC_MSG_RESULT(yes)
|
|
|
+ AC_DEFINE(HAVE_GNUC25_NORETURN),
|
|
|
+ AC_MSG_RESULT(no))
|
|
|
+ DPKG_CACHED_TRY_COMPILE(__attribute__((const)),dpkg_cv_c_attribute_const,,
|
|
|
+ [extern int testfunction(int x) __attribute__((const))],
|
|
|
+ AC_MSG_RESULT(yes)
|
|
|
+ AC_DEFINE(HAVE_GNUC25_CONST),
|
|
|
+ AC_MSG_RESULT(no))
|
|
|
+ DPKG_CACHED_TRY_COMPILE(__attribute__((format...)),dpkg_cv_attribute_format,,
|
|
|
+ [extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))],
|
|
|
+ AC_MSG_RESULT(yes)
|
|
|
+ AC_DEFINE(HAVE_GNUC25_PRINTFFORMAT),
|
|
|
+ AC_MSG_RESULT(no)),
|
|
|
+ AC_MSG_RESULT(no))
|
|
|
|
|
|
DPKG_C_GCC_TRY_WARNS(-Wall -Wno-implicit, dpkg_cv_c_gcc_warn_all)
|
|
|
DPKG_C_GCC_TRY_WARNS(-Wwrite-strings, dpkg_cv_c_gcc_warn_writestrings)
|