]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - configure.ac
xfsprogs: pull in libgen.h to get prototype for basename()
[thirdparty/xfsprogs-dev.git] / configure.ac
CommitLineData
42ea4f89 1AC_INIT([xfsprogs], [3.2.0-alpha2])
86b99f0a 2AC_PREREQ(2.50)
07c561fe
AG
3AC_CONFIG_AUX_DIR([.])
4AC_CONFIG_MACRO_DIR([m4])
f474cd4f 5AC_CONFIG_SRCDIR([include/libxfs.h])
9440d84d 6AC_CONFIG_HEADER(include/platform_defs.h)
521902a9 7AC_PREFIX_DEFAULT(/usr)
9440d84d 8
07c561fe
AG
9AC_PROG_LIBTOOL
10
534b0bfd 11AC_ARG_ENABLE(shared,
dfc13ce1 12[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
d5dca43b
NS
13 enable_shared=yes)
14AC_SUBST(enable_shared)
15
16c44ed2
NS
16AC_ARG_ENABLE(gettext,
17[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
18 enable_gettext=yes)
19AC_SUBST(enable_gettext)
20
e246ba5f 21AC_ARG_ENABLE(readline,
16c44ed2 22[ --enable-readline=[yes/no] Enable readline command editing [default=no]],
541a1d4f 23 test $enable_readline = yes && libreadline="-lreadline",
e246ba5f 24 enable_readline=no)
e246ba5f
NS
25AC_SUBST(libreadline)
26AC_SUBST(enable_readline)
27
d4b9ebda 28AC_ARG_ENABLE(editline,
16c44ed2 29[ --enable-editline=[yes/no] Enable editline command editing [default=no]],
541a1d4f 30 test $enable_editline = yes && libeditline="-ledit",
d4b9ebda 31 enable_editline=no)
d4b9ebda
NS
32AC_SUBST(libeditline)
33AC_SUBST(enable_editline)
34
541a1d4f
NS
35AC_ARG_ENABLE(termcap,
36[ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
37 test $enable_termcap = yes && libtermcap="-ltermcap",)
38AC_SUBST(libtermcap)
39
e4da9941 40
82805b60 41AC_ARG_ENABLE(lib64,
595e27db
CH
42[ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
43 enable_lib64=yes)
82805b60
TS
44AC_SUBST(enable_lib64)
45
595e27db
CH
46#
47# If the user specified a libdir ending in lib64 do not append another
48# 64 to the library names.
49#
50base_libdir=`basename "$libdir"`
51case $base_libdir in
52lib64)
53 enable_lib64=no
54esac
55
56#
57# Some important tools should be installed into the root partitions.
58#
59# Check whether exec_prefix=/usr: and install them to /sbin in that
60# case. If the user choses a different prefix assume he just wants
61# a local install for testing and not a system install.
62#
63case $exec_prefix:$prefix in
64NONE:NONE | NONE:/usr | /usr:*)
65 root_sbindir='/sbin'
595e27db 66 root_libdir="/${base_libdir}"
2ccb8cf0
CH
67 ;;
68*)
69 root_sbindir="${sbindir}"
70 root_libdir="${libdir}"
71 ;;
595e27db
CH
72esac
73
2ccb8cf0
CH
74AC_SUBST([root_sbindir])
75AC_SUBST([root_libdir])
76
d9ee1c4c
AE
77# Find localized files. Don't descend into any "dot directories"
78# (like .git or .pc from quilt). Strangely, the "-print" argument
79# to "find" is required, to avoid including such directories in the
80# list.
8c053393 81LOCALIZED_FILES=""
d9ee1c4c 82for lfile in `find ${srcdir} -path './.??*' -prune -o -name '*.c' -type f -print || exit 1`; do
8c053393
AM
83 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
84done
85AC_SUBST(LOCALIZED_FILES)
86
16c44ed2
NS
87AC_PACKAGE_GLOBALS(xfsprogs)
88AC_PACKAGE_UTILITIES(xfsprogs)
82805b60 89AC_MULTILIB($enable_lib64)
93d9f139 90
6ec3f6ba
NS
91AC_PACKAGE_NEED_AIO_H
92AC_PACKAGE_NEED_LIO_LISTIO
93
0686de0f 94AC_PACKAGE_NEED_UUID_H
7b9d2be9 95AC_PACKAGE_NEED_UUIDCOMPARE
fc49813f 96
949c0f10
NS
97AC_PACKAGE_NEED_PTHREAD_H
98AC_PACKAGE_NEED_PTHREADMUTEXINIT
99
0bba1a49
NS
100AC_HAVE_FADVISE
101AC_HAVE_MADVISE
102AC_HAVE_MINCORE
103AC_HAVE_SENDFILE
cfe6e3f0
NS
104AC_HAVE_GETMNTENT
105AC_HAVE_GETMNTINFO
c0b5232a 106AC_HAVE_FALLOCATE
8f0e0912 107AC_HAVE_FIEMAP
197d5828
ES
108AC_HAVE_PREADV
109AC_HAVE_SYNC_FILE_RANGE
2a3a4942 110AC_HAVE_BLKID_TOPO
3bc05641 111AC_HAVE_READDIR
0bba1a49 112
865f1075
JE
113AC_CHECK_SIZEOF([long])
114AC_CHECK_SIZEOF([char *])
cd960ece 115AC_TYPE_UMODE_T
16c44ed2 116AC_MANUAL_FORMAT
fc49813f 117
f474cd4f
JE
118AC_CONFIG_FILES([include/builddefs])
119AC_OUTPUT