forked from stewartsmith/libeatmydata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
60 lines (43 loc) · 1.22 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Libeatmydata
#
# Build infrastructure:
# Copyright (C) 2009-2010 Monty Taylor, Eric Day
# Copyright (C) 2010-2021 Stewart Smith
# All rights reserved.
#
# Use and distribution licensed under the BSD license. See
# the COPYING file in this directory for full text.
#
AC_INIT([libeatmydata],[131], [http://www.flamingspork.com/projects/libeatmydata])
AC_CONFIG_SRCDIR([libeatmydata/libeatmydata.c])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_TARGET
AC_ARG_PROGRAM
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar])
AC_PREREQ([2.63])
LT_PREREQ([2.2])
LT_INIT
LT_LANG([C])
AC_CONFIG_HEADERS([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CHECK_HEADERS_ONCE(pthread.h)
AC_CHECK_SIZEOF(mode_t)
AC_CHECK_SIZEOF(int)
AC_CHECK_TYPE(pthread_barrier_t,,,[
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
])
AM_CONDITIONAL(HAVE_PTHREAD_BARRIERS, [test "x$ac_cv_type_pthread_barrier_t" = xyes])
AC_CHECK_DECLS(fdatasync)
AC_CHECK_FUNCS(fdatasync)
AC_CHECK_DECLS(sync_file_range)
AC_CHECK_FUNCS(sync_file_range)
AC_CHECK_FUNCS(open64)
AC_CHECK_FUNCS(syncfs)
AX_TLS(:,:)
AC_CONFIG_FILES(Makefile libeatmydata.spec)
AC_OUTPUT