forked from sztupy/android_external_jfsutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
63 lines (53 loc) · 1.46 KB
/
configure.in
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(libfs/super.c)
dnl Package name and version
AM_INIT_AUTOMAKE(jfsutils, 1.1.14)
AM_CONFIG_HEADER(config.h)
dnl Don't include maintainer make-rules by default
AM_MAINTAINER_MODE
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_PROG(LN, ln, ln)
AC_PROG_LN_S
AC_PROG_RANLIB
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(endian.h fcntl.h mntent.h unistd.h stdbool.h stdint.h machine/endian.h sys/byteorder.h sys/mount.h sys/param.h sys/statvfs.h sys/sysmacros.h sys/disklabel.h)
AC_CHECK_HEADERS(uuid/uuid.h,,AC_MSG_ERROR('Install e2fsprogs-libs e2fsprogs-devel or uuid-dev'))
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_STRUCT_ST_RDEV
AC_STRUCT_TM
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(getcwd getmntinfo strtol strtoul posix_memalign memalign)
dnl large file support
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
dnl additional compiler warnings
if [[ "x$CC" = xgcc ]]; then
AC_SUBST(AM_CFLAGS, "-Wall -Wstrict-prototypes -fno-strict-aliasing")
fi
dnl By default install into system location.
AC_PREFIX_DEFAULT(/usr)
if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]]; then
sbindir="/sbin"
fi
AC_OUTPUT([
Makefile
libfs/Makefile
include/Makefile
fsck/Makefile
fscklog/Makefile
logdump/Makefile
mkfs/Makefile
tune/Makefile
xpeek/Makefile
jfsutils.spec
])