]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - configure.in
xfsprogs: metadump: drop a typedef in db/metadump.c
[thirdparty/xfsprogs-dev.git] / configure.in
CommitLineData
fc49813f 1AC_INIT(include/libxfs.h)
07c561fe
AG
2AC_CONFIG_AUX_DIR([.])
3AC_CONFIG_MACRO_DIR([m4])
9440d84d 4AC_CONFIG_HEADER(include/platform_defs.h)
521902a9 5AC_PREFIX_DEFAULT(/usr)
9440d84d 6
07c561fe
AG
7AC_PROG_LIBTOOL
8
534b0bfd 9AC_ARG_ENABLE(shared,
dfc13ce1 10[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
d5dca43b
NS
11 enable_shared=yes)
12AC_SUBST(enable_shared)
13
16c44ed2
NS
14AC_ARG_ENABLE(gettext,
15[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
16 enable_gettext=yes)
17AC_SUBST(enable_gettext)
18
e246ba5f 19AC_ARG_ENABLE(readline,
16c44ed2 20[ --enable-readline=[yes/no] Enable readline command editing [default=no]],
541a1d4f 21 test $enable_readline = yes && libreadline="-lreadline",
e246ba5f 22 enable_readline=no)
e246ba5f
NS
23AC_SUBST(libreadline)
24AC_SUBST(enable_readline)
25
d4b9ebda 26AC_ARG_ENABLE(editline,
16c44ed2 27[ --enable-editline=[yes/no] Enable editline command editing [default=no]],
541a1d4f 28 test $enable_editline = yes && libeditline="-ledit",
d4b9ebda 29 enable_editline=no)
d4b9ebda
NS
30AC_SUBST(libeditline)
31AC_SUBST(enable_editline)
32
541a1d4f
NS
33AC_ARG_ENABLE(termcap,
34[ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
35 test $enable_termcap = yes && libtermcap="-ltermcap",)
36AC_SUBST(libtermcap)
37
4cd1322d 38# AC_HAVE_BLKID_TOPO below wil find the library & check for topo support
e4da9941 39AC_ARG_ENABLE(blkid,
4cd1322d
ES
40[ --enable-blkid=[yes/no] Enable block device id library [default=yes]],,
41 enable_blkid=yes)
e4da9941 42
82805b60 43AC_ARG_ENABLE(lib64,
595e27db
CH
44[ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
45 enable_lib64=yes)
82805b60
TS
46AC_SUBST(enable_lib64)
47
595e27db
CH
48#
49# If the user specified a libdir ending in lib64 do not append another
50# 64 to the library names.
51#
52base_libdir=`basename "$libdir"`
53case $base_libdir in
54lib64)
55 enable_lib64=no
56esac
57
58#
59# Some important tools should be installed into the root partitions.
60#
61# Check whether exec_prefix=/usr: and install them to /sbin in that
62# case. If the user choses a different prefix assume he just wants
63# a local install for testing and not a system install.
64#
65case $exec_prefix:$prefix in
66NONE:NONE | NONE:/usr | /usr:*)
67 root_sbindir='/sbin'
595e27db 68 root_libdir="/${base_libdir}"
2ccb8cf0
CH
69 ;;
70*)
71 root_sbindir="${sbindir}"
72 root_libdir="${libdir}"
73 ;;
595e27db
CH
74esac
75
2ccb8cf0
CH
76AC_SUBST([root_sbindir])
77AC_SUBST([root_libdir])
78
8c053393
AM
79# Find localized files
80LOCALIZED_FILES=""
81for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do
82 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
83done
84AC_SUBST(LOCALIZED_FILES)
85
16c44ed2
NS
86AC_PACKAGE_GLOBALS(xfsprogs)
87AC_PACKAGE_UTILITIES(xfsprogs)
82805b60 88AC_MULTILIB($enable_lib64)
93d9f139 89
6ec3f6ba
NS
90AC_PACKAGE_NEED_AIO_H
91AC_PACKAGE_NEED_LIO_LISTIO
92
0686de0f 93AC_PACKAGE_NEED_UUID_H
7b9d2be9 94AC_PACKAGE_NEED_UUIDCOMPARE
fc49813f 95
949c0f10
NS
96AC_PACKAGE_NEED_PTHREAD_H
97AC_PACKAGE_NEED_PTHREADMUTEXINIT
98
0bba1a49
NS
99AC_HAVE_FADVISE
100AC_HAVE_MADVISE
101AC_HAVE_MINCORE
102AC_HAVE_SENDFILE
cfe6e3f0
NS
103AC_HAVE_GETMNTENT
104AC_HAVE_GETMNTINFO
c0b5232a 105AC_HAVE_FALLOCATE
4cd1322d 106AC_HAVE_BLKID_TOPO($enable_blkid)
0bba1a49 107
16c44ed2
NS
108AC_TYPE_PSINT
109AC_TYPE_PSUNSIGNED
7413a3b2 110AC_TYPE_U32
16c44ed2
NS
111AC_SIZEOF_POINTERS_AND_LONG
112AC_MANUAL_FORMAT
fc49813f 113
6c6508ec 114AC_OUTPUT(include/builddefs)