"Fossies" - the Fresh Open Source Software Archive

Member "tcpflow-1.6.1/src/be13_api/dfxml/src/dfxml_configure.m4" (19 Feb 2021, 2666 Bytes) of package /linux/misc/tcpflow-1.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # mix-ins for dfxml
    3 # Support for hash_t as well.
    4 #
    5 # This file is public domain
    6 # Revision History:
    7 # 2012 - Simson Garfinkel - Created for bulk_extractor
    8 #
    9 
   10 AC_MSG_NOTICE([Including dfxml_configure.m4 from dfxml])
   11 AC_MSG_NOTICE([Note: checks for afflib/afflib.h and libewf.h should be in the caller, so they can be disabled])
   12 AC_CHECK_HEADERS([err.h expat.h pwd.h sys/cdefs.h sys/mman.h sys/resource.h sys/utsname.h unistd.h winsock2.h ])
   13 AC_CHECK_FUNCS([fork gmtime_r getuid gethostname getpwuid getrusage mkstemp vasprintf ])
   14 
   15 AC_LANG_PUSH(C++)
   16 AC_CHECK_HEADERS([exiv2/image.hpp])
   17 AC_LANG_POP()    
   18 
   19 
   20 # Determine UTC date offset
   21 CPPFLAGS="$CPPFLAGS -DUTC_OFFSET=`TZ=UTC date +%z`"
   22 
   23 # Get the GIT commit into the GIT_COMMIT variable
   24 AC_CHECK_PROG([git],[git],[yes],[no])
   25 AM_CONDITIONAL([FOUND_GIT],[test "x$git" = xyes])
   26 AM_COND_IF([FOUND_GIT],
   27         [GIT_COMMIT=`git describe --dirty --always`
   28          AC_MSG_NOTICE([git commit $GIT_COMMIT])],
   29         [AC_MSG_WARN([git not found])])
   30 
   31 
   32 # Do we have the CPUID instruction?
   33 AC_TRY_COMPILE([#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))],
   34 			[unsigned long eax, ebx, ecx, edx;cpuid(0);],
   35 			have_cpuid=yes,
   36 			have_cpuid=no)
   37 if test "$have_cpuid" = yes; then
   38  AC_DEFINE(HAVE_ASM_CPUID, 1, [define to 1 if __asm__ CPUID is available])
   39 fi
   40 
   41 # Does GCC have the diagnostic pragma?
   42 AC_TRY_COMPILE([#pragma GCC diagnostic ignored "-Wredundant-decls"],
   43     	       [],
   44 	       AC_DEFINE([DFXML_GNUC_HAS_DIAGNOSTIC_PRAGMA],[1],[GCC supports #pragma GCC diagnostic]),
   45 	       )
   46 
   47 ################################################################
   48 ## on Win32, crypto requires zlib
   49 case $host in
   50   *mingw32*)
   51   AC_CHECK_LIB([z], [gzdopen],[LIBS="-lz $LIBS"], [AC_MSG_ERROR([Could not find zlib library])])
   52 esac
   53 
   54 ################################################################
   55 ## OpenSSL Support is now required (for hash_t)
   56 ## Note that this now works with both OpenSSL 1.0 and OpenSSL 1.1
   57 ## On OpenSSL man page we can read:
   58 ## EVP_MD_CTX_create() and EVP_MD_CTX_destroy() were renamed to EVP_MD_CTX_new() and EVP_MD_CTX_free() in OpenSSL 1.1.
   59 ## So we need to check for all of them.
   60 AC_CHECK_HEADERS([openssl/aes.h openssl/bio.h openssl/evp.h openssl/hmac.h openssl/md5.h openssl/pem.h openssl/rand.h openssl/rsa.h openssl/sha.h openssl/pem.h openssl/x509.h])
   61 
   62 # OpenSSL has been installed under at least two different names...
   63 AC_CHECK_LIB([crypto],[EVP_get_digestbyname])	
   64 AC_CHECK_LIB([ssl],[SSL_library_init])
   65 AC_CHECK_FUNCS([EVP_get_digestbyname],,
   66 	AC_MSG_ERROR([SSL/OpenSSL support required]))
   67 AC_CHECK_FUNCS([EVP_MD_CTX_new EVP_MD_CTX_free])
   68