update configure.ac to be less noisy

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville 2021-03-29 20:21:23 -06:00 committed by Frank Morgner
parent c3c5f2d518
commit b9c0addf88
4 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
dnl -*- mode: m4; -*- dnl -*- mode: m4; -*-
AC_PREREQ(2.60) AC_PREREQ(2.68)
define([PRODUCT_NAME], [OpenSC]) define([PRODUCT_NAME], [OpenSC])
define([PRODUCT_TARNAME], [opensc]) define([PRODUCT_TARNAME], [opensc])
@ -188,7 +188,7 @@ AC_ARG_ENABLE(
) )
AC_ARG_ENABLE([openssl-secure-malloc], AC_ARG_ENABLE([openssl-secure-malloc],
[AC_HELP_STRING([--openssl-secure-malloc=<SIZE_IN_BYTES>], [AS_HELP_STRING([--openssl-secure-malloc=<SIZE_IN_BYTES>],
[Enable OpenSSL secure memory by specifying its size in bytes, must be a power of 2 @<:@disabled@:>@])], [Enable OpenSSL secure memory by specifying its size in bytes, must be a power of 2 @<:@disabled@:>@])],
[], [enable_openssl_secure_malloc=no]) [], [enable_openssl_secure_malloc=no])
AS_IF([test $enable_openssl_secure_malloc != no], AS_IF([test $enable_openssl_secure_malloc != no],
@ -394,7 +394,6 @@ dnl C Compiler features
AC_C_INLINE AC_C_INLINE
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_HEADER_ASSERT AC_HEADER_ASSERT
AC_CHECK_HEADERS([ \ AC_CHECK_HEADERS([ \
@ -408,7 +407,6 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
AC_TYPE_UID_T AC_TYPE_UID_T
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl Checks for library functions. dnl Checks for library functions.
AC_FUNC_ERROR_AT_LINE AC_FUNC_ERROR_AT_LINE
@ -729,7 +727,7 @@ LIBS="$saved_LIBS"
AC_ARG_ENABLE(cvcdir, AC_ARG_ENABLE(cvcdir,
AC_HELP_STRING([--enable-cvcdir=DIR], AS_HELP_STRING([--enable-cvcdir=DIR],
[directory containing CV certificates (default is determined by libeac)]), [directory containing CV certificates (default is determined by libeac)]),
[cvcdir="${enableval}"], [cvcdir="${enableval}"],
[cvcdir=false]) [cvcdir=false])
@ -751,7 +749,7 @@ AC_SUBST(CVCDIR)
AC_DEFINE_UNQUOTED([CVCDIR], ["${CVCDIR}"], [CVC directory]) AC_DEFINE_UNQUOTED([CVCDIR], ["${CVCDIR}"], [CVC directory])
AC_ARG_ENABLE(x509dir, AC_ARG_ENABLE(x509dir,
AC_HELP_STRING([--enable-x509dir=DIR], AS_HELP_STRING([--enable-x509dir=DIR],
[directory containing X.509 certificates (default is determined by libeac)]), [directory containing X.509 certificates (default is determined by libeac)]),
[x509dir="${enableval}"], [x509dir="${enableval}"],
[x509dir=false]) [x509dir=false])

View File

@ -28,7 +28,9 @@
#if !defined(_WIN32) #if !defined(_WIN32)
#include <arpa/inet.h> /* for htons() */ #include <arpa/inet.h> /* for htons() */
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> /* for gettimeofday() */ #include <sys/time.h> /* for gettimeofday() */
#endif
#include <stdint.h> #include <stdint.h>
#else #else
#include <winsock2.h> #include <winsock2.h>

View File

@ -28,7 +28,9 @@
#include <winreg.h> #include <winreg.h>
#include <limits.h> #include <limits.h>
#else #else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif
#include <time.h> #include <time.h>
#endif #endif

View File

@ -38,7 +38,7 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#include <time.h> #include <time.h>
#ifdef HAVE_GETTIMEOFDAY #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H