diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-23 11:53:33 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-23 13:44:20 +0100 |
commit | aa627c91fcd7b6d56b9a9864fa89f8fa615ff0d2 (patch) | |
tree | 3c2595d045cf6a2e5d9313a11c793cf14e033133 /configure | |
parent | 4f8128452c098c2da0c3f953e4a8c28e735f65b4 (diff) |
checks for compat + don't initialise HAVE_*
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -44,22 +44,6 @@ LEX=lex STATIC= YACC=yacc -HAVE_ERR= -HAVE_EXPLICIT_BZERO= -HAVE_GETPROGNAME= -HAVE_LIBEVENT= -HAVE_LIBTLS= -HAVE_OPENSSL= -HAVE_PROGRAM_INVOCATION_SHORT_NAME= -HAVE_PR_SET_NAME= -HAVE_QUEUE_H= -HAVE_RECALLOCARRAY= -HAVE_SETPROCTITLE= -HAVE_STRLCAT= -HAVE_STRLCPY= -HAVE_STRTONUM= -HAVE_VASPRINTF= - NEED_GNU_SOURCE=0 NEED_OPENBSD_SOURCE=0 @@ -232,6 +216,9 @@ fi runtest err ERR || true runtest explicit_bzero EXPLICIT_BZERO || true +runtest freezero FREEZERO || true +runtest getdtablesize GETDTABLESIZE || true +runtest getdtablecount GETDTABLECOUNT || true runtest getprogname GETPROGNAME || true runtest imsg IMSG -lutil || true runtest libevent LIBEVENT || true @@ -301,6 +288,9 @@ cat <<__HEREDOC__ #define HAVE_ERR ${HAVE_ERR} #define HAVE_EXPLICIT_BZERO ${HAVE_EXPLICIT_BZERO} +#define HAVE_FREEZERO ${HAVE_FREEZERO} +#define HAVE_GETDTABLECOUNT ${HAVE_GETDTABLECOUNT} +#define HAVE_GETDTABLESIZE ${HAVE_GETDTABLESIZE} #define HAVE_GETPROGNAME ${HAVE_GETPROGNAME} #define HAVE_IMSG ${HAVE_IMSG} #define HAVE_LIBEVENT ${HAVE_LIBEVENT} @@ -317,6 +307,7 @@ cat <<__HEREDOC__ __HEREDOC__ [ ${HAVE_EXPLICIT_BZERO} -eq 0 -o \ + ${HAVE_FREEZERO} -eq 0 -o \ ${HAVE_RECALLOCARRAY} -eq 0 -o \ ${HAVE_STRLCAT} -eq 0 -o \ ${HAVE_STRLCPY} -eq 0 -o \ @@ -335,6 +326,18 @@ if [ ${HAVE_EXPLICIT_BZERO} -eq 0 ]; then echo "extern void explicit_bzero(void*, size_t);" COMPAT="${COMPAT} compat/explicit_bzero.o" fi +if [ ${HAVE_FREEZERO} -eq 0 ]; then + echo "extern void freezero(void*, size_t);" + COMPAT="${COMPAT} compat/freezero.o" +fi +if [ ${HAVE_GETDTABLECOUNT} -eq 0 ]; then + echo "extern int getdtablecount(void);" + COMPAT="${COMPAT} compat/getdtablecount.o" +fi +if [ ${HAVE_GETDTABLESIZE} -eq 0 ]; then + echo "extern int getdtablesize(void);" + COMPAT="${COMPAT} compat/getdtablesize.o" +fi if [ ${HAVE_GETPROGNAME} -eq 0 ]; then echo "extern const char *getprogname(void);" COMPAT="${COMPAT} compat/getprogname.o" |