Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7713195
configure.ac
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
12 KB
Referenced Files
None
Subscribers
None
configure.ac
View Options
AC_PREREQ( 2.59 )
AC_INIT(
[libewf],
[20130416],
[joachim.metz@gmail.com])
AC_CONFIG_SRCDIR(
[include/libewf.h.in])
AM_INIT_AUTOMAKE([gnu 1.6])
AC_CONFIG_MACRO_DIR([m4])
dnl Check for host type
AC_CANONICAL_HOST
dnl Check for large file support
AC_SYS_LARGEFILE
dnl Check for libtool DLL support
AC_LIBTOOL_WIN32_DLL
dnl Checks for programs
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_MAKE_SET
AC_PROG_INSTALL
dnl Check for libtool
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
dnl Check for pkg-config
AC_PATH_PROG(PKGCONFIG,[pkg-config])
dnl Support of internationalization (i18n)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
dnl Check for compiler language support
AC_C_CONST
AC_C_VOLATILE
dnl Check if WINAPI support should be enabled
AX_COMMON_CHECK_ENABLE_WINAPI
dnl Check if wide character type should be enabled
AX_COMMON_CHECK_ENABLE_WIDE_CHARACTER_TYPE
dnl Check for type definitions
AX_TYPES_CHECK_LOCAL
dnl Checks for libraries and library functions
AX_COMMON_CHECK_LOCAL
dnl Check for enabling libcstring for cross-platform C string functions
AX_LIBCSTRING_CHECK_ENABLE
dnl Check for enabling libcerror for cross-platform C error functions
AX_LIBCERROR_CHECK_ENABLE
dnl Check for enabling libcdata for cross-platform C generic data functions
AX_LIBCDATA_CHECK_ENABLE
dnl Check for enabling libclocale for cross-platform C locale functions
AX_LIBCLOCALE_CHECK_ENABLE
dnl Check for enabling libcnotify for cross-platform C notification functions
AX_LIBCNOTIFY_CHECK_ENABLE
dnl Check for enabling libcsplit for cross-platform C split string functions
AX_LIBCSPLIT_CHECK_ENABLE
dnl Check for enabling libuna for Unicode string support
AX_LIBUNA_CHECK_ENABLE
dnl Check for enabling libcfile for cross-platform C file functions
AX_LIBCFILE_CHECK_ENABLE
dnl Check for enabling libcpath for cross-platform C path functions
AX_LIBCPATH_CHECK_ENABLE
dnl Check for enabling libbfio for basic file IO support
AX_LIBBFIO_CHECK_ENABLE
dnl Check for enabling libfcache for file value cache support
AX_LIBFCACHE_CHECK_ENABLE
dnl Check for enabling libfvalue for file value support
AX_LIBFVALUE_CHECK_ENABLE
dnl Check for enabling libmfdata for multi-file data types support
AX_LIBMFDATA_CHECK_ENABLE
dnl Check for zlib compression support
AX_ZLIB_CHECK_ENABLE
dnl Check for bz2lib compression support
AX_BZIP2_CHECK_ENABLE
dnl Check for enabling libhmac for message digest hash function support
AX_LIBHMAC_CHECK_ENABLE
dnl Check for enabling libcaes for AES cipher function support
AX_LIBCAES_CHECK_ENABLE
dnl Check for library function support
AX_LIBEWF_CHECK_LOCAL
dnl Check for enabling libcsystem for cross-platform C generic system functions
AX_LIBCSYSTEM_CHECK_ENABLE
dnl Check for enabling GUID/UUID support
AX_LIBUUID_CHECK_ENABLE
dnl Check for enabling libodraw for optical disc (split) RAW support
AX_LIBODRAW_CHECK_ENABLE
dnl Check for enabling libsmdev for storage media device support
AX_LIBSMDEV_CHECK_ENABLE
dnl Check for enabling libsmraw for storage media (split) RAW support
AX_LIBSMRAW_CHECK_ENABLE
dnl Check for libfuse Filesystem in Userspace (FUSE) support
AX_LIBFUSE_CHECK_ENABLE
dnl Check for headers and functions used in tools
dnl Function to detect if ctime_r or ctime is available
dnl Also checks how to use ctime_r
AC_DEFUN([AX_EWFTOOLS_CHECK_FUNC_CTIME],
[AC_CHECK_FUNCS([ctime_r])
AS_IF(
[test "x$ac_cv_func_ctime_r" = xyes],
[AC_MSG_CHECKING(
[how to use ctime_r])
AC_LANG_PUSH(C)
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <time.h>]],
[[ctime_r( NULL, NULL, 0 )]] )],
[AC_MSG_RESULT(
[with additional size argument])
ac_cv_cv_ctime_r_size=yes],
[ac_cv_cv_ctime_r_size=no])
AS_IF(
[test "x$ac_cv_cv_ctime_r_size" = xno],
[AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <time.h>]],
[[ctime_r( NULL, NULL )]] )],
[AC_MSG_RESULT(
[with two arguments])
ac_cv_cv_ctime_r_posix=yes],
[ac_cv_cv_ctime_r_posix=no])
])
AS_IF(
[test "x$ac_cv_cv_ctime_r_posix" = xno],
[CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <time.h>]],
[[ctime_r( NULL, NULL )]] )],
[AC_MSG_RESULT(
[with two arguments and definition _POSIX_PTHREAD_SEMANTICS])
ac_cv_cv_ctime_r_posix=yes],
[ac_cv_cv_ctime_r_posix=no])
])
AC_LANG_POP(C)
AS_IF(
[test "x$ac_cv_cv_ctime_r_size" = xno && test "x$ac_cv_cv_ctime_r_posix" = xno],
[AC_MSG_WARN(
[unknown])
ac_cv_func_ctime_r=no])
AS_IF(
[test "x$ac_cv_func_ctime_r" = xyes],
[AC_DEFINE(
[HAVE_CTIME_R],
[1],
[Define to 1 if you have the ctime_r function.])
])
AS_IF(
[test "x$ac_cv_cv_ctime_r_size" = xyes],
[AC_DEFINE(
[HAVE_CTIME_R_SIZE],
[1],
[Define to 1 if you have the ctime_r function with a third size argument.])
])
])
AS_IF(
[test "x$ac_cv_func_ctime_r" = xno],
[AC_CHECK_FUNCS([ctime])
AS_IF(
[test "x$ac_cv_func_ctime" = xno],
[AC_MSG_FAILURE(
[Missing function: ctime_r and ctime],
[1])
])
])
])
AS_IF(
[test "x$ac_cv_enable_winapi" = xno],
[AC_CHECK_HEADERS([sys/resource.h sys/utsname.h])
AC_HEADER_TIME
AC_CHECK_FUNCS([getegid geteuid getrlimit getuid time uname])
])
dnl Date and time functions used in libcsystem/libcsystem_date_time.c
AC_CHECK_FUNCS([localtime localtime_r mktime])
AS_IF(
[test "x$ac_cv_func_localtime" != xyes && test "x$ac_cv_func_localtime_r" != xyes],
[AC_MSG_FAILURE(
[Missing functions: localtime and localtime_r],
[1])
])
AS_IF(
[test "x$ac_cv_func_mktime" != xyes],
[AC_MSG_FAILURE(
[Missing function: mktime],
[1])
])
dnl Date and time functions used in libcsystem/libcsystem_date_time.h
AX_EWFTOOLS_CHECK_FUNC_CTIME
AC_CHECK_FUNCS([gmtime gmtime_r time])
AS_IF(
[test "x$ac_cv_func_gmtime" != xyes && test "x$ac_cv_func_gmtime_r" != xyes],
[AC_MSG_FAILURE(
[Missing functions: gmtime_r and gmtime],
[1])
])
AS_IF(
[test "x$ac_cv_func_time" != xyes],
[AC_MSG_FAILURE(
[Missing function: time],
[1])
])
dnl Check if ewftools should be build as static executables
AX_COMMON_CHECK_ENABLE_STATIC_EXECUTABLES
dnl Check if ewftools should be build with low level read and write functions
AX_LIBEWF_CHECK_ENABLE_LOW_LEVEL_FUNCTIONS
dnl Check if libewf should be build with verbose output
AX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT
dnl Check if libewf should be build with debug output
AX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT
dnl Check if libewf python bindings (pyewf) should be build
AX_PYTHON_CHECK_ENABLE
dnl Check if libewf should be build with version 1 API
AX_LIBEWF_CHECK_ENABLE_V1_API
dnl Check for the host operation system will be used as a fall back in the ewftools
AX_LIBEWF_CHECK_HOST_OPERATING_SYSTEM
dnl Check if DLL support is needed in ewftools
AS_IF(
[test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno],
[AS_CASE(
[$host],
[*cygwin* | *mingw*],
[AC_SUBST(
[LIBEWF_DLL_IMPORT],
["-DLIBEWF_DLL_IMPORT"])
])
])
dnl Set additional compiler flags
CFLAGS="$CFLAGS -Wall";
dnl Check if requires and build requires should be set in spec file
AS_IF(
[test "x$ac_cv_libcstring" = xyes || test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfvalue" = xyes || test "x$ac_cv_libmfdata" = xyes || test "x$ac_cv_zlib" != xno || test "x$ac_cv_bzip2" != xno || test "x$ac_cv_libhmac" = xyes || test "x$ac_cv_libcaes" = xyes],
[AC_SUBST(
[libewf_spec_requires],
[Requires:])
AC_SUBST(
[libewf_spec_build_requires],
[BuildRequires:])
])
dnl Set the date for the dpkg files
AC_SUBST(
[DPKG_DATE],
[`date -R 2> /dev/null`])
dnl Set the date for the spec file
AC_SUBST(
[SPEC_DATE],
[`date +"%a %b %e %Y" 2> /dev/null`])
dnl Set the current working directory for PackageMaker files
AC_SUBST(
[PWD],
[`pwd`])
dnl Have configure make the Makefiles
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([include/Makefile])
AC_CONFIG_FILES([common/Makefile])
AC_CONFIG_FILES([libcstring/Makefile])
AC_CONFIG_FILES([libcerror/Makefile])
AC_CONFIG_FILES([libcdata/Makefile])
AC_CONFIG_FILES([libclocale/Makefile])
AC_CONFIG_FILES([libcnotify/Makefile])
AC_CONFIG_FILES([libcsplit/Makefile])
AC_CONFIG_FILES([libuna/Makefile])
AC_CONFIG_FILES([libcfile/Makefile])
AC_CONFIG_FILES([libcpath/Makefile])
AC_CONFIG_FILES([libbfio/Makefile])
AC_CONFIG_FILES([libfcache/Makefile])
AC_CONFIG_FILES([libfvalue/Makefile])
AC_CONFIG_FILES([libmfdata/Makefile])
AC_CONFIG_FILES([libhmac/Makefile])
AC_CONFIG_FILES([libcaes/Makefile])
AC_CONFIG_FILES([libewf/Makefile])
AC_CONFIG_FILES([libodraw/Makefile])
AC_CONFIG_FILES([libsmdev/Makefile])
AC_CONFIG_FILES([libsmraw/Makefile])
AC_CONFIG_FILES([libcsystem/Makefile])
AC_CONFIG_FILES([ewftools/Makefile])
AC_CONFIG_FILES([ewf.net/Makefile])
AC_CONFIG_FILES([pyewf/Makefile])
AC_CONFIG_FILES([po/Makefile.in])
AC_CONFIG_FILES([po/Makevars])
AC_CONFIG_FILES([documents/Makefile])
AC_CONFIG_FILES([manuals/Makefile])
AC_CONFIG_FILES([tests/Makefile])
AC_CONFIG_FILES([examples/Makefile])
AC_CONFIG_FILES([macosx/Makefile])
AC_CONFIG_FILES([borlandc/Makefile])
AC_CONFIG_FILES([msvscpp/Makefile])
dnl Have configure make the include files
AC_CONFIG_FILES([include/libewf.h])
AC_CONFIG_FILES([include/libewf/definitions.h])
AC_CONFIG_FILES([include/libewf/features.h])
AC_CONFIG_FILES([include/libewf/types.h])
AC_CONFIG_FILES([libewf/libewf_definitions.h])
dnl Have configure make distribution specific files
AC_CONFIG_FILES([common/types.h])
AC_CONFIG_FILES([dpkg/changelog])
AC_CONFIG_FILES([dpkg/copyright])
AC_CONFIG_FILES([ewf.net/ewf.net.rc])
AC_CONFIG_FILES([libewf/libewf.rc])
AC_CONFIG_FILES([macosx/libewf.pmdoc/01bin.xml])
AC_CONFIG_FILES([macosx/libewf.pmdoc/02include.xml])
AC_CONFIG_FILES([macosx/libewf.pmdoc/03lib.xml])
AC_CONFIG_FILES([macosx/libewf.pmdoc/04share.xml])
AC_CONFIG_FILES([macosx/libewf.pmdoc/05python.xml])
AC_CONFIG_FILES([macosx/libewf.pmdoc/index.xml])
AC_CONFIG_FILES([macosx/Introduction.rtf])
AC_CONFIG_FILES([pyewf/setup.py])
AC_CONFIG_FILES([libewf.pc])
AC_CONFIG_FILES([libewf.spec])
dnl Have configure write its configuration
AC_CONFIG_HEADERS([common/config.h])
AC_OUTPUT
dnl Print a summary
AC_MSG_NOTICE([
Building:
libcstring support: $ac_cv_libcstring
libcerror support: $ac_cv_libcerror
libcdata support: $ac_cv_libcdata
libclocale support: $ac_cv_libclocale
libcnotify support: $ac_cv_libcnotify
libcsplit support: $ac_cv_libcsplit
libuna support: $ac_cv_libuna
libcfile support: $ac_cv_libcfile
libcpath support: $ac_cv_libcpath
libbfio support: $ac_cv_libbfio
libfcache support: $ac_cv_libfcache
libfvalue support: $ac_cv_libfvalue
libmfdata support: $ac_cv_libmfdata
ADLER32 checksum support: $ac_cv_adler32
DEFLATE compression support: $ac_cv_zlib
BZIP2 compression support: $ac_cv_bzip2
libhmac support: $ac_cv_libhmac
MD5 support: $ac_cv_libhmac_md5
SHA1 support: $ac_cv_libhmac_sha1
SHA256 support: $ac_cv_libhmac_sha256
libcaes support: $ac_cv_libcaes
AES support: $ac_cv_libcaes_aes
libodraw support: $ac_cv_libodraw
libsmdev support: $ac_cv_libsmdev
libsmraw support: $ac_cv_libsmraw
libcsystem support: $ac_cv_libcsystem
GUID/UUID support: $ac_cv_libuuid
FUSE support: $ac_cv_libfuse
Features:
Wide character type support: $ac_cv_enable_wide_character_type
ewftools are build as static executables: $ac_cv_enable_static_executables
ewftools use low level read and write functions: $ac_cv_enable_low_level_functions
Python (pyewf) support: $ac_cv_enable_python
Verbose output: $ac_cv_enable_verbose_output
Debug output: $ac_cv_enable_debug_output
Version 1 API compatibility: $ac_cv_enable_v1_api
]);
File Metadata
Details
Attached
Mime Type
text/x-m4
Expires
Fri, Nov 21, 7:20 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361401
Default Alt Text
configure.ac (12 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment