xref: /aosp_15_r20/external/f2fs-tools/configure.ac (revision 59bfda1f02d633cd6b8b69f31eee485d40f6eef6)
1*59bfda1fSAndroid Build Coastguard Worker#                                               -*- Autoconf -*-
2*59bfda1fSAndroid Build Coastguard Worker# Process this file with autoconf to produce a configure script.
3*59bfda1fSAndroid Build Coastguard Worker
4*59bfda1fSAndroid Build Coastguard WorkerAC_PREREQ([2.68])
5*59bfda1fSAndroid Build Coastguard Worker
6*59bfda1fSAndroid Build Coastguard Worker# Get version from file VERSION
7*59bfda1fSAndroid Build Coastguard Workerm4_define([f2fs_tools_version], m4_esyscmd([sed -n '1p' VERSION | tr -d '\n']))
8*59bfda1fSAndroid Build Coastguard Workerm4_define([f2fs_tools_date], m4_esyscmd([sed -n '2p' VERSION | tr -d '\n']))
9*59bfda1fSAndroid Build Coastguard Workerm4_define([f2fs_tools_gitdate],
10*59bfda1fSAndroid Build Coastguard Worker		m4_esyscmd([git log -1 --pretty=format:%ci 2> /dev/null]))
11*59bfda1fSAndroid Build Coastguard Worker
12*59bfda1fSAndroid Build Coastguard WorkerAC_INIT([F2FS tools], [f2fs_tools_version],
13*59bfda1fSAndroid Build Coastguard Worker			[[email protected]])
14*59bfda1fSAndroid Build Coastguard Worker
15*59bfda1fSAndroid Build Coastguard WorkerAM_SILENT_RULES([yes])
16*59bfda1fSAndroid Build Coastguard Worker
17*59bfda1fSAndroid Build Coastguard WorkerAC_DEFINE([F2FS_TOOLS_VERSION], "f2fs_tools_version", [f2fs-tools version])
18*59bfda1fSAndroid Build Coastguard WorkerAC_DEFINE([F2FS_MAJOR_VERSION], m4_bpatsubst(f2fs_tools_version,
19*59bfda1fSAndroid Build Coastguard Worker				[\([0-9]*\)\(\w\|\W\)*], [\1]),
20*59bfda1fSAndroid Build Coastguard Worker				[Major version for f2fs-tools])
21*59bfda1fSAndroid Build Coastguard WorkerAC_DEFINE([F2FS_MINOR_VERSION], m4_bpatsubst(f2fs_tools_version,
22*59bfda1fSAndroid Build Coastguard Worker				[\([0-9]*\).\([0-9]*\)\(\w\|\W\)*], [\2]),
23*59bfda1fSAndroid Build Coastguard Worker				[Minor version for f2fs-tools])
24*59bfda1fSAndroid Build Coastguard Worker
25*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test -d .git],[
26*59bfda1fSAndroid Build Coastguard Worker	AC_DEFINE([F2FS_TOOLS_DATE],
27*59bfda1fSAndroid Build Coastguard Worker		"m4_bpatsubst(f2fs_tools_gitdate,
28*59bfda1fSAndroid Build Coastguard Worker		[\([0-9-]*\)\(\w\|\W\)*], [\1])",
29*59bfda1fSAndroid Build Coastguard Worker		[f2fs-tools date based on Git commits])],[
30*59bfda1fSAndroid Build Coastguard Worker	AC_DEFINE([F2FS_TOOLS_DATE],
31*59bfda1fSAndroid Build Coastguard Worker		"f2fs_tools_date",
32*59bfda1fSAndroid Build Coastguard Worker		[f2fs-tools date based on Source releases])])
33*59bfda1fSAndroid Build Coastguard Worker
34*59bfda1fSAndroid Build Coastguard WorkerAC_CONFIG_SRCDIR([config.h.in])
35*59bfda1fSAndroid Build Coastguard WorkerAC_CONFIG_HEADERS([config.h])
36*59bfda1fSAndroid Build Coastguard WorkerAC_CONFIG_MACRO_DIR([m4])
37*59bfda1fSAndroid Build Coastguard WorkerAC_CONFIG_AUX_DIR([build-aux])
38*59bfda1fSAndroid Build Coastguard WorkerAM_INIT_AUTOMAKE([-Wall -Werror foreign tar-pax dist-xz])
39*59bfda1fSAndroid Build Coastguard Worker
40*59bfda1fSAndroid Build Coastguard Worker# Test configure options.
41*59bfda1fSAndroid Build Coastguard WorkerAC_ARG_WITH([selinux],
42*59bfda1fSAndroid Build Coastguard Worker	[AS_HELP_STRING([--without-selinux],
43*59bfda1fSAndroid Build Coastguard Worker	  [Ignore presence of libselinux and disable selinux support])],
44*59bfda1fSAndroid Build Coastguard Worker	[],
45*59bfda1fSAndroid Build Coastguard Worker	[with_selinux=check])
46*59bfda1fSAndroid Build Coastguard Worker
47*59bfda1fSAndroid Build Coastguard WorkerAC_ARG_WITH([blkid],
48*59bfda1fSAndroid Build Coastguard Worker	[AS_HELP_STRING([--without-blkid],
49*59bfda1fSAndroid Build Coastguard Worker	  [Ignore presence of libblkid and disable blkid support])],
50*59bfda1fSAndroid Build Coastguard Worker	[],
51*59bfda1fSAndroid Build Coastguard Worker	[with_blkid=check])
52*59bfda1fSAndroid Build Coastguard Worker
53*59bfda1fSAndroid Build Coastguard WorkerAC_ARG_WITH([lzo2],
54*59bfda1fSAndroid Build Coastguard Worker	[AS_HELP_STRING([--without-lzo2],
55*59bfda1fSAndroid Build Coastguard Worker	  [Ignore presence of liblzo2 and disable lzo2 support])],
56*59bfda1fSAndroid Build Coastguard Worker	[],
57*59bfda1fSAndroid Build Coastguard Worker	[with_lzo2=check])
58*59bfda1fSAndroid Build Coastguard Worker
59*59bfda1fSAndroid Build Coastguard WorkerAC_ARG_WITH([lz4],
60*59bfda1fSAndroid Build Coastguard Worker	[AS_HELP_STRING([--without-lz4],
61*59bfda1fSAndroid Build Coastguard Worker	  [Ignore presence of liblz4 and disable lz4 support])],
62*59bfda1fSAndroid Build Coastguard Worker	[],
63*59bfda1fSAndroid Build Coastguard Worker	[with_lz4=check])
64*59bfda1fSAndroid Build Coastguard Worker
65*59bfda1fSAndroid Build Coastguard Worker# Checks for programs.
66*59bfda1fSAndroid Build Coastguard WorkerAC_PROG_CC
67*59bfda1fSAndroid Build Coastguard WorkerAM_PROG_AR
68*59bfda1fSAndroid Build Coastguard WorkerLT_INIT
69*59bfda1fSAndroid Build Coastguard WorkerAC_PATH_PROG([LDCONFIG], [ldconfig],
70*59bfda1fSAndroid Build Coastguard Worker       [AC_MSG_ERROR([ldconfig not found])],
71*59bfda1fSAndroid Build Coastguard Worker       [$PATH:/sbin])
72*59bfda1fSAndroid Build Coastguard Worker
73*59bfda1fSAndroid Build Coastguard Worker# Checks for libraries.
74*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test "x$with_blkid" != xno],
75*59bfda1fSAndroid Build Coastguard Worker	[AC_CHECK_LIB([blkid], [blkid_probe_all],
76*59bfda1fSAndroid Build Coastguard Worker		[AC_SUBST([libblkid_LIBS], ["-lblkid"])
77*59bfda1fSAndroid Build Coastguard Worker			AC_DEFINE([HAVE_LIBBLKID], [1],
78*59bfda1fSAndroid Build Coastguard Worker			[Define if you have libblkid])
79*59bfda1fSAndroid Build Coastguard Worker		],
80*59bfda1fSAndroid Build Coastguard Worker		[if test "x$with_blkid" != xcheck; then
81*59bfda1fSAndroid Build Coastguard Worker			AC_MSG_FAILURE(
82*59bfda1fSAndroid Build Coastguard Worker                [--with-blkid was given, but test for blkid failed])
83*59bfda1fSAndroid Build Coastguard Worker        fi
84*59bfda1fSAndroid Build Coastguard Worker	], -lblkid)])
85*59bfda1fSAndroid Build Coastguard Worker
86*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test "x$with_lzo2" != xno],
87*59bfda1fSAndroid Build Coastguard Worker	[AC_CHECK_LIB([lzo2], [main],
88*59bfda1fSAndroid Build Coastguard Worker		[AC_SUBST([liblzo2_LIBS], ["-llzo2"])
89*59bfda1fSAndroid Build Coastguard Worker			AC_DEFINE([HAVE_LIBLZO2], [1],
90*59bfda1fSAndroid Build Coastguard Worker			[Define if you have liblzo2])
91*59bfda1fSAndroid Build Coastguard Worker		],
92*59bfda1fSAndroid Build Coastguard Worker		[if test "x$with_lzo2" != xcheck; then
93*59bfda1fSAndroid Build Coastguard Worker			AC_MSG_FAILURE(
94*59bfda1fSAndroid Build Coastguard Worker                [--with-lzo2 was given, but test for lzo2 failed])
95*59bfda1fSAndroid Build Coastguard Worker        fi
96*59bfda1fSAndroid Build Coastguard Worker	], -llzo2)])
97*59bfda1fSAndroid Build Coastguard Worker
98*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test "x$with_lz4" != xno],
99*59bfda1fSAndroid Build Coastguard Worker	[AC_CHECK_LIB([lz4], [main],
100*59bfda1fSAndroid Build Coastguard Worker		[AC_SUBST([liblz4_LIBS], ["-llz4"])
101*59bfda1fSAndroid Build Coastguard Worker			AC_DEFINE([HAVE_LIBLZ4], [1],
102*59bfda1fSAndroid Build Coastguard Worker			[Define if you have liblz4])
103*59bfda1fSAndroid Build Coastguard Worker		],
104*59bfda1fSAndroid Build Coastguard Worker		[if test "x$with_lz4" != xcheck; then
105*59bfda1fSAndroid Build Coastguard Worker			AC_MSG_FAILURE(
106*59bfda1fSAndroid Build Coastguard Worker                [--with-lz4 was given, but test for lz4 failed])
107*59bfda1fSAndroid Build Coastguard Worker        fi
108*59bfda1fSAndroid Build Coastguard Worker	], -llz4)])
109*59bfda1fSAndroid Build Coastguard Worker
110*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test "x$with_selinux" != xno],
111*59bfda1fSAndroid Build Coastguard Worker	[AC_CHECK_LIB([selinux], [getcon],
112*59bfda1fSAndroid Build Coastguard Worker		[AC_SUBST([libselinux_LIBS], ["-lselinux"])
113*59bfda1fSAndroid Build Coastguard Worker			AC_DEFINE([HAVE_LIBSELINUX], [1],
114*59bfda1fSAndroid Build Coastguard Worker			[Define if you have libselinux])
115*59bfda1fSAndroid Build Coastguard Worker		],
116*59bfda1fSAndroid Build Coastguard Worker		[if test "x$with_selinux" != xcheck; then
117*59bfda1fSAndroid Build Coastguard Worker			AC_MSG_FAILURE(
118*59bfda1fSAndroid Build Coastguard Worker				[--with-selinux was given, but test for selinux failed])
119*59bfda1fSAndroid Build Coastguard Worker		fi
120*59bfda1fSAndroid Build Coastguard Worker	], -lselinux)])
121*59bfda1fSAndroid Build Coastguard Worker
122*59bfda1fSAndroid Build Coastguard WorkerAC_CHECK_LIB([uuid], [uuid_clear],
123*59bfda1fSAndroid Build Coastguard Worker	[AC_SUBST([libuuid_LIBS], ["-luuid"])
124*59bfda1fSAndroid Build Coastguard Worker		AC_DEFINE([HAVE_LIBUUID], [1],
125*59bfda1fSAndroid Build Coastguard Worker		[Define if you have libuuid])
126*59bfda1fSAndroid Build Coastguard Worker	], [], [])
127*59bfda1fSAndroid Build Coastguard Worker
128*59bfda1fSAndroid Build Coastguard WorkerAC_CHECK_LIB([winpthread], [clock_gettime],
129*59bfda1fSAndroid Build Coastguard Worker	[AC_SUBST([libwinpthread_LIBS], ["-lwinpthread"])
130*59bfda1fSAndroid Build Coastguard Worker		AC_DEFINE([HAVE_LIBWINPTHREAD], [1],
131*59bfda1fSAndroid Build Coastguard Worker		[Define if you have libwinpthread])
132*59bfda1fSAndroid Build Coastguard Worker	], [], [])
133*59bfda1fSAndroid Build Coastguard Worker
134*59bfda1fSAndroid Build Coastguard Worker# Checks for header files.
135*59bfda1fSAndroid Build Coastguard WorkerAC_CHECK_HEADERS(m4_flatten([
136*59bfda1fSAndroid Build Coastguard Worker	attr/xattr.h
137*59bfda1fSAndroid Build Coastguard Worker	blkid/blkid.h
138*59bfda1fSAndroid Build Coastguard Worker	byteswap.h
139*59bfda1fSAndroid Build Coastguard Worker	fcntl.h
140*59bfda1fSAndroid Build Coastguard Worker	kernel/uapi/linux/blkzoned.h
141*59bfda1fSAndroid Build Coastguard Worker	linux/blkzoned.h
142*59bfda1fSAndroid Build Coastguard Worker	linux/rw_hint.h
143*59bfda1fSAndroid Build Coastguard Worker	linux/fcntl.h
144*59bfda1fSAndroid Build Coastguard Worker	linux/falloc.h
145*59bfda1fSAndroid Build Coastguard Worker	linux/fiemap.h
146*59bfda1fSAndroid Build Coastguard Worker	linux/fs.h
147*59bfda1fSAndroid Build Coastguard Worker	linux/hdreg.h
148*59bfda1fSAndroid Build Coastguard Worker	linux/limits.h
149*59bfda1fSAndroid Build Coastguard Worker	linux/loop.h
150*59bfda1fSAndroid Build Coastguard Worker	linux/major.h
151*59bfda1fSAndroid Build Coastguard Worker	linux/posix_acl.h
152*59bfda1fSAndroid Build Coastguard Worker	linux/types.h
153*59bfda1fSAndroid Build Coastguard Worker	linux/xattr.h
154*59bfda1fSAndroid Build Coastguard Worker	mach/mach_time.h
155*59bfda1fSAndroid Build Coastguard Worker	mntent.h
156*59bfda1fSAndroid Build Coastguard Worker	pthread_time.h
157*59bfda1fSAndroid Build Coastguard Worker	scsi/sg.h
158*59bfda1fSAndroid Build Coastguard Worker	selinux/android.h
159*59bfda1fSAndroid Build Coastguard Worker	selinux/selinux.h
160*59bfda1fSAndroid Build Coastguard Worker	sparse/sparse.h
161*59bfda1fSAndroid Build Coastguard Worker	stdlib.h
162*59bfda1fSAndroid Build Coastguard Worker	string.h
163*59bfda1fSAndroid Build Coastguard Worker	sys/acl.h
164*59bfda1fSAndroid Build Coastguard Worker	sys/ioctl.h
165*59bfda1fSAndroid Build Coastguard Worker	sys/mount.h
166*59bfda1fSAndroid Build Coastguard Worker	sys/stat.h
167*59bfda1fSAndroid Build Coastguard Worker	sys/syscall.h
168*59bfda1fSAndroid Build Coastguard Worker	sys/sysmacros.h
169*59bfda1fSAndroid Build Coastguard Worker	sys/utsname.h
170*59bfda1fSAndroid Build Coastguard Worker	sys/xattr.h
171*59bfda1fSAndroid Build Coastguard Worker	unistd.h
172*59bfda1fSAndroid Build Coastguard Worker	uuid/uuid.h
173*59bfda1fSAndroid Build Coastguard Worker]))
174*59bfda1fSAndroid Build Coastguard Worker
175*59bfda1fSAndroid Build Coastguard Worker# Checks for typedefs, structures, and compiler characteristics.
176*59bfda1fSAndroid Build Coastguard WorkerAC_C_INLINE
177*59bfda1fSAndroid Build Coastguard WorkerAC_TYPE_INT32_T
178*59bfda1fSAndroid Build Coastguard WorkerAC_TYPE_INT8_T
179*59bfda1fSAndroid Build Coastguard WorkerAC_TYPE_SIZE_T
180*59bfda1fSAndroid Build Coastguard Worker
181*59bfda1fSAndroid Build Coastguard Worker# Checks for library functions.
182*59bfda1fSAndroid Build Coastguard WorkerAC_FUNC_GETMNTENT
183*59bfda1fSAndroid Build Coastguard WorkerAC_CHECK_FUNCS_ONCE([
184*59bfda1fSAndroid Build Coastguard Worker	add_key
185*59bfda1fSAndroid Build Coastguard Worker	fallocate
186*59bfda1fSAndroid Build Coastguard Worker	fsetxattr
187*59bfda1fSAndroid Build Coastguard Worker	fstat
188*59bfda1fSAndroid Build Coastguard Worker	fstat64
189*59bfda1fSAndroid Build Coastguard Worker	fsync
190*59bfda1fSAndroid Build Coastguard Worker	getgid
191*59bfda1fSAndroid Build Coastguard Worker	getmntent
192*59bfda1fSAndroid Build Coastguard Worker	getuid
193*59bfda1fSAndroid Build Coastguard Worker	keyctl
194*59bfda1fSAndroid Build Coastguard Worker	memset
195*59bfda1fSAndroid Build Coastguard Worker	setmntent
196*59bfda1fSAndroid Build Coastguard Worker	clock_gettime
197*59bfda1fSAndroid Build Coastguard Worker])
198*59bfda1fSAndroid Build Coastguard Worker
199*59bfda1fSAndroid Build Coastguard WorkerAS_IF([test "$ac_cv_header_byteswap_h" = "yes"],
200*59bfda1fSAndroid Build Coastguard Worker      [AC_CHECK_DECLS([bswap_64],,,[#include <byteswap.h>])])
201*59bfda1fSAndroid Build Coastguard Worker
202*59bfda1fSAndroid Build Coastguard WorkerAC_MSG_CHECKING([for CLOCK_BOOTIME])
203*59bfda1fSAndroid Build Coastguard WorkerAC_COMPILE_IFELSE([AC_LANG_PROGRAM([
204*59bfda1fSAndroid Build Coastguard Worker#include <time.h>
205*59bfda1fSAndroid Build Coastguard Worker#ifdef HAVE_PTHREAD_TIME_H
206*59bfda1fSAndroid Build Coastguard Worker#include <pthread_time.h>
207*59bfda1fSAndroid Build Coastguard Worker#endif
208*59bfda1fSAndroid Build Coastguard Worker],[return CLOCK_BOOTTIME])],
209*59bfda1fSAndroid Build Coastguard Worker		  [AC_MSG_RESULT([yes])
210*59bfda1fSAndroid Build Coastguard Worker		  AC_DEFINE([HAVE_CLOCK_BOOTTIME], [1],
211*59bfda1fSAndroid Build Coastguard Worker		  [Define if CLOCK_BOOTTIME is available])],
212*59bfda1fSAndroid Build Coastguard Worker		  [AC_MSG_RESULT([no])])
213*59bfda1fSAndroid Build Coastguard Worker
214*59bfda1fSAndroid Build Coastguard Worker# AC_CANONICAL_HOST is needed to access the 'host_os' variable
215*59bfda1fSAndroid Build Coastguard WorkerAC_CANONICAL_HOST
216*59bfda1fSAndroid Build Coastguard Worker
217*59bfda1fSAndroid Build Coastguard Workerbuild_linux=no
218*59bfda1fSAndroid Build Coastguard Workerbuild_windows=no
219*59bfda1fSAndroid Build Coastguard Workerbuild_mac=no
220*59bfda1fSAndroid Build Coastguard Worker
221*59bfda1fSAndroid Build Coastguard Worker# Detect the target system
222*59bfda1fSAndroid Build Coastguard Workercase "${host_os}" in
223*59bfda1fSAndroid Build Coastguard Workerlinux*|uclinux*)
224*59bfda1fSAndroid Build Coastguard Worker	build_linux=yes
225*59bfda1fSAndroid Build Coastguard Worker	;;
226*59bfda1fSAndroid Build Coastguard Workercygwin*|mingw*)
227*59bfda1fSAndroid Build Coastguard Worker	build_windows=yes
228*59bfda1fSAndroid Build Coastguard Worker	;;
229*59bfda1fSAndroid Build Coastguard Workerdarwin*)
230*59bfda1fSAndroid Build Coastguard Worker	build_mac=yes
231*59bfda1fSAndroid Build Coastguard Worker	;;
232*59bfda1fSAndroid Build Coastguard Worker*)
233*59bfda1fSAndroid Build Coastguard Worker	AC_MSG_ERROR(["OS $host_os is not supported"])
234*59bfda1fSAndroid Build Coastguard Worker	;;
235*59bfda1fSAndroid Build Coastguard Workeresac
236*59bfda1fSAndroid Build Coastguard Worker
237*59bfda1fSAndroid Build Coastguard Worker# Pass the conditionals to automake
238*59bfda1fSAndroid Build Coastguard WorkerAM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
239*59bfda1fSAndroid Build Coastguard WorkerAM_CONDITIONAL([WINDOWS], [test "$build_windows" = "yes"])
240*59bfda1fSAndroid Build Coastguard WorkerAM_CONDITIONAL([OSX], [test "$build_mac" = "yes"])
241*59bfda1fSAndroid Build Coastguard Worker
242*59bfda1fSAndroid Build Coastguard Worker# Install directories
243*59bfda1fSAndroid Build Coastguard Worker#AC_PREFIX_DEFAULT([/usr])
244*59bfda1fSAndroid Build Coastguard Worker#AC_SUBST([sbindir], [/sbin])
245*59bfda1fSAndroid Build Coastguard Worker#AC_SUBST([sysconfdir], [/etc])
246*59bfda1fSAndroid Build Coastguard Worker#AC_SUBST([localstatedir], [/var])
247*59bfda1fSAndroid Build Coastguard Worker
248*59bfda1fSAndroid Build Coastguard WorkerAC_ARG_WITH([root-libdir],
249*59bfda1fSAndroid Build Coastguard Worker[  --with-root-libdir=DIR override location for /lib/libf2fs.so],
250*59bfda1fSAndroid Build Coastguard Workerroot_libdir=$withval,
251*59bfda1fSAndroid Build Coastguard Workerroot_libdir=NONE)dnl
252*59bfda1fSAndroid Build Coastguard Worker
253*59bfda1fSAndroid Build Coastguard Workerif test "$root_libdir" = NONE ; then
254*59bfda1fSAndroid Build Coastguard Worker   root_libdir="$libdir"
255*59bfda1fSAndroid Build Coastguard Workerfi
256*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(root_libdir)
257*59bfda1fSAndroid Build Coastguard Worker
258*59bfda1fSAndroid Build Coastguard WorkerAC_CONFIG_FILES([
259*59bfda1fSAndroid Build Coastguard Worker	Makefile
260*59bfda1fSAndroid Build Coastguard Worker	man/Makefile
261*59bfda1fSAndroid Build Coastguard Worker	lib/Makefile
262*59bfda1fSAndroid Build Coastguard Worker	mkfs/Makefile
263*59bfda1fSAndroid Build Coastguard Worker	fsck/Makefile
264*59bfda1fSAndroid Build Coastguard Worker	tools/Makefile
265*59bfda1fSAndroid Build Coastguard Worker	tools/f2fs_io/Makefile
266*59bfda1fSAndroid Build Coastguard Worker])
267*59bfda1fSAndroid Build Coastguard Worker
268*59bfda1fSAndroid Build Coastguard WorkerAC_CHECK_MEMBER([struct blk_zone.capacity],
269*59bfda1fSAndroid Build Coastguard Worker		[AC_DEFINE(HAVE_BLK_ZONE_REP_V2, [1], [report zones includes zone capacity])],
270*59bfda1fSAndroid Build Coastguard Worker		[], [[
271*59bfda1fSAndroid Build Coastguard Worker#ifdef HAVE_KERNEL_UAPI_LINUX_BLKZONED_H
272*59bfda1fSAndroid Build Coastguard Worker#include <kernel/uapi/linux/blkzoned.h>
273*59bfda1fSAndroid Build Coastguard Worker#elif defined(HAVE_LINUX_BLKZONED_H)
274*59bfda1fSAndroid Build Coastguard Worker#include <linux/blkzoned.h>
275*59bfda1fSAndroid Build Coastguard Worker#endif
276*59bfda1fSAndroid Build Coastguard Worker		]])
277*59bfda1fSAndroid Build Coastguard Worker
278*59bfda1fSAndroid Build Coastguard Worker# export library version info for mkfs/libf2fs_format_la
279*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(FMT_CURRENT, 9)
280*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(FMT_REVISION, 0)
281*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(FMT_AGE, 0)
282*59bfda1fSAndroid Build Coastguard Worker
283*59bfda1fSAndroid Build Coastguard Worker# export library version info for lib/libf2fs_la
284*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(LIBF2FS_CURRENT, 10)
285*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(LIBF2FS_REVISION, 0)
286*59bfda1fSAndroid Build Coastguard WorkerAC_SUBST(LIBF2FS_AGE, 0)
287*59bfda1fSAndroid Build Coastguard Worker
288*59bfda1fSAndroid Build Coastguard WorkerAH_BOTTOM([
289*59bfda1fSAndroid Build Coastguard Worker#ifndef _CONFIG_H_
290*59bfda1fSAndroid Build Coastguard Worker#define _CONFIG_H_
291*59bfda1fSAndroid Build Coastguard Worker
292*59bfda1fSAndroid Build Coastguard Worker#ifdef HAVE_SYS_STAT_H
293*59bfda1fSAndroid Build Coastguard Worker#include <sys/stat.h>
294*59bfda1fSAndroid Build Coastguard Worker#endif
295*59bfda1fSAndroid Build Coastguard Worker
296*59bfda1fSAndroid Build Coastguard Worker#ifndef HAVE_GETUID
297*59bfda1fSAndroid Build Coastguard Workerstatic inline unsigned int getuid(void) { return -1; }
298*59bfda1fSAndroid Build Coastguard Worker#endif
299*59bfda1fSAndroid Build Coastguard Worker#ifndef HAVE_GETGID
300*59bfda1fSAndroid Build Coastguard Workerstatic inline unsigned int getgid(void) { return -1; }
301*59bfda1fSAndroid Build Coastguard Worker#endif
302*59bfda1fSAndroid Build Coastguard Worker
303*59bfda1fSAndroid Build Coastguard Worker#ifndef S_ISLNK
304*59bfda1fSAndroid Build Coastguard Worker#define S_ISLNK(mode) false
305*59bfda1fSAndroid Build Coastguard Worker#endif
306*59bfda1fSAndroid Build Coastguard Worker#ifndef S_ISSOCK
307*59bfda1fSAndroid Build Coastguard Worker#define S_ISSOCK(mode) false
308*59bfda1fSAndroid Build Coastguard Worker#endif
309*59bfda1fSAndroid Build Coastguard Worker
310*59bfda1fSAndroid Build Coastguard Worker#endif
311*59bfda1fSAndroid Build Coastguard Worker])
312*59bfda1fSAndroid Build Coastguard Worker
313*59bfda1fSAndroid Build Coastguard WorkerAC_OUTPUT
314