-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
39 lines (32 loc) · 1.23 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.71])
AC_INIT([scalpel],[2.01],[[email protected]])
AM_INIT_AUTOMAKE(scalpel, 2.01)
AC_CONFIG_SRCDIR([pthreads-win32/pthread.h])
#AC_CONFIG_HEADERS([config.h])
AC_PROG_INSTALL
AC_SYS_LARGEFILE
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([m], [fabs])
AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR(Scalpel requires the pthreads library.)])
AC_CHECK_LIB([tre], [regcomp], [], [AC_MSG_ERROR(Scalpel requires libtre and libtre-dev. See http://laurikari.net/tre/.)])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/time.h sys/timeb.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_FSEEKO
#AC_FUNC_MALLOC
#AC_FUNC_REALLOC
AC_CHECK_FUNCS([bzero gettimeofday mkdir realpath regcomp strchr strdup strerror strncasecmp strtoul strtoull])
#AC_CONFIG_SUBDIRS([tre-0.7.5-win32])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
AC_OUTPUT