File: configure.ac

package info (click to toggle)
blkreplay 1.0-3.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 25,672 kB
  • sloc: sh: 3,175; ansic: 2,057; makefile: 23
file content (84 lines) | stat: -rw-r--r-- 2,242 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
####################################################

# This file is automatically generated from regenerate_all.sh => DO NOT EDIT!

####################################################
# customization prefix

AC_DEFINE([_GNU_SOURCE])
AH_VERBATIM([_GNU_SOURCE],
[/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif])

define(IS_REQUIRED, [AC_MSG_ERROR([this is absolutely needed])])

AC_INIT([blkreplay], [0.1], [tst@1und1.de])
AM_INIT_AUTOMAKE([-Wall -Werror])

AC_SEARCH_LIBS([log10], [m], , IS_REQUIRED)
AC_SEARCH_LIBS([clock_gettime], [rt], , IS_REQUIRED)

AC_SEARCH_LIBS([nanosleep])

AC_CHECK_HEADERS([malloc.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([limits.h])
AC_CHECK_HEADERS([time.h])

# required functions
AC_CHECK_DECLS([strlen, malloc, free], , IS_REQUIRED)

# optional functions
#AC_CHECK_DECLS([O_LARGEFILE]) # does not work, use direct test instead
AC_CHECK_DECLS([nanosleep],,,[#define _GNU_SOURCE 1
#include <time.h>])
AC_CHECK_DECLS([random])
AC_CHECK_DECLS([exp10])
AC_CHECK_DECLS([lseek64])
AC_CHECK_DECLS([llseek])
AC_CHECK_DECLS([lseek])
AC_CHECK_DECLS([memalign])
AC_CHECK_DECLS([posix_memalign], ,
[AC_MSG_WARN([posix_memalign() not available, substituting by malloc()
====> This may lead to distortions of your measurements!])])

####################################################
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_CONFIG_SRCDIR([src/random_data.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h memory.h stddef.h stdlib.h string.h strings.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([clock_gettime floor memset mkdir strerror])

AC_CONFIG_FILES([Makefile
                 src/Makefile])
####################################################
# customization suffix


AM_PROG_CC_C_O

####################################################
AC_OUTPUT