forked from relan/exfat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
57 lines (56 loc) · 1.63 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
#
# configure.ac (30.03.15)
# Autoconf source.
#
# Free exFAT implementation.
# Copyright (C) 2010-2018 Andrew Nayenko
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
AC_INIT([Free exFAT implementation],
[1.3.0],
[exfat],
[https://github.com/relan/exfat])
AM_INIT_AUTOMAKE([1.11.2 -Wall -Werror foreign subdir-objects])
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_RANLIB
AM_PROG_AR
AC_SYS_LARGEFILE
AC_CANONICAL_HOST
PKG_CHECK_MODULES([UBLIO], [libublio], [
CFLAGS="$CFLAGS $UBLIO_CFLAGS"
LIBS="$LIBS $UBLIO_LIBS"
AC_DEFINE([USE_UBLIO], [1],
[Define if block devices are not supported.])
], [:])
PKG_CHECK_MODULES([FUSE], [fuse])
case "$host_os" in
*-gnu)
AC_DEFINE([_XOPEN_SOURCE], [500], [Enable pread() and pwrite().])
AC_DEFINE([_DEFAULT_SOURCE], [], [Enable vsyslog().])
;;
esac
AC_CONFIG_HEADERS([libexfat/config.h])
AC_CONFIG_FILES([
libexfat/Makefile
dump/Makefile
fsck/Makefile
fuse/Makefile
label/Makefile
mkfs/Makefile
Makefile])
AC_OUTPUT