aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-19 13:36:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-19 13:36:13 +0000
commit607678e917a8a274f92445854c58aaaa05b824a8 (patch)
treea5dfdca19aaab7604737bb285f32470aabc72029 /configure
parent6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 (diff)
downloadmandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.gz
mandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.zst
mandoc-607678e917a8a274f92445854c58aaaa05b824a8.zip
Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas. While here, unify style, move several config tests to config.h, and delete the useless MANDOC_CONFIG_H.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 3 insertions, 5 deletions
diff --git a/configure b/configure
index 9d670b43..9e7128e6 100755
--- a/configure
+++ b/configure
@@ -285,8 +285,9 @@ cat << __HEREDOC__
#error "Do not use C++. See the INSTALL file."
#endif
-#ifndef MANDOC_CONFIG_H
-#define MANDOC_CONFIG_H
+#if !defined(__GNUC__) || (__GNUC__ < 4)
+#define __attribute__(x)
+#endif
#if defined(__linux__) || defined(__MINT__)
#define _GNU_SOURCE /* See test-*.c what needs this. */
@@ -391,9 +392,6 @@ fi
[ ${HAVE_VASPRINTF} -eq 0 ] && \
echo "extern int vasprintf(char **, const char *, va_list);"
-echo
-echo "#endif /* MANDOC_CONFIG_H */"
-
echo "config.h: written" 1>&2
echo "config.h: written" 1>&3