]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - configure.ac
autoconf: use include directives instead of recursing down etc
[FreeBSD/FreeBSD.git] / configure.ac
1 /*
2  * This file is part of OpenZFS.
3  *
4  * Copyright (c) 2009 Lawrence Livermore National Security, LLC.
5  * Produced at Lawrence Livermore National Laboratory
6  * Written by:
7  *         Brian Behlendorf <behlendorf1@llnl.gov>,
8  *         Herb Wartens <wartens2@llnl.gov>,
9  *         Jim Garlick <garlick@llnl.gov>
10  * LLNL-CODE-403049
11  *
12  * CDDL HEADER START
13  *
14  * The contents of this file are subject to the terms of the
15  * Common Development and Distribution License, Version 1.0 only
16  * (the "License").  You may not use this file except in compliance
17  * with the License.
18  *
19  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
20  * or http://www.opensolaris.org/os/licensing.
21  * See the License for the specific language governing permissions
22  * and limitations under the License.
23  *
24  * When distributing Covered Code, include this CDDL HEADER in each
25  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
26  * If applicable, add the following below this CDDL HEADER, with the
27  * fields enclosed by brackets "[]" replaced with your own identifying
28  * information: Portions Copyright [yyyy] [name of copyright owner]
29  *
30  * CDDL HEADER END
31  */
32
33 AC_INIT(m4_esyscmd(awk '/^Name:/ {printf $2}' META),
34         m4_esyscmd(awk '/^Version:/ {printf $2}' META))
35 AC_LANG(C)
36 ZFS_AC_META
37 AC_CONFIG_AUX_DIR([config])
38 AC_CONFIG_MACRO_DIR([config])
39 AC_CANONICAL_TARGET
40 AM_MAINTAINER_MODE
41 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
42 AM_INIT_AUTOMAKE([subdir-objects foreign])
43 AC_CONFIG_HEADERS([zfs_config.h], [
44         (mv zfs_config.h zfs_config.h.tmp &&
45         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
46         rm zfs_config.h.tmp) || exit 1])
47
48 LT_INIT
49 AC_PROG_INSTALL
50 AC_PROG_CC
51 AC_PROG_LN_S
52 PKG_PROG_PKG_CONFIG
53 AM_PROG_AS
54 AM_PROG_CC_C_O
55 AX_CODE_COVERAGE
56 _AM_PROG_TAR(pax)
57
58 ZFS_AC_LICENSE
59 ZFS_AC_CONFIG
60 ZFS_AC_PACKAGE
61 ZFS_AC_DEBUG
62 ZFS_AC_DEBUGINFO
63 ZFS_AC_DEBUG_KMEM
64 ZFS_AC_DEBUG_KMEM_TRACKING
65 ZFS_AC_DEBUG_INVARIANTS
66
67 AC_CONFIG_FILES([
68         Makefile
69         include/Makefile
70         lib/libzfs/libzfs.pc
71         lib/libzfsbootenv/libzfsbootenv.pc
72         lib/libzfs_core/libzfs_core.pc
73         module/Kbuild
74         module/Makefile
75         rpm/generic/zfs-dkms.spec
76         rpm/generic/zfs-kmod.spec
77         rpm/generic/zfs.spec
78         rpm/redhat/zfs-dkms.spec
79         rpm/redhat/zfs-kmod.spec
80         rpm/redhat/zfs.spec
81         tests/Makefile
82         tests/runfiles/Makefile
83         tests/test-runner/Makefile
84         tests/test-runner/bin/Makefile
85         tests/test-runner/include/Makefile
86         tests/zfs-tests/Makefile
87         tests/zfs-tests/callbacks/Makefile
88         tests/zfs-tests/cmd/Makefile
89         tests/zfs-tests/include/Makefile
90         tests/zfs-tests/tests/Makefile
91         tests/zfs-tests/tests/functional/Makefile
92         tests/zfs-tests/tests/functional/acl/Makefile
93         tests/zfs-tests/tests/functional/acl/off/Makefile
94         tests/zfs-tests/tests/functional/acl/posix/Makefile
95         tests/zfs-tests/tests/functional/acl/posix-sa/Makefile
96         tests/zfs-tests/tests/functional/alloc_class/Makefile
97         tests/zfs-tests/tests/functional/arc/Makefile
98         tests/zfs-tests/tests/functional/atime/Makefile
99         tests/zfs-tests/tests/functional/bootfs/Makefile
100         tests/zfs-tests/tests/functional/btree/Makefile
101         tests/zfs-tests/tests/functional/cache/Makefile
102         tests/zfs-tests/tests/functional/cachefile/Makefile
103         tests/zfs-tests/tests/functional/casenorm/Makefile
104         tests/zfs-tests/tests/functional/channel_program/Makefile
105         tests/zfs-tests/tests/functional/channel_program/lua_core/Makefile
106         tests/zfs-tests/tests/functional/channel_program/synctask_core/Makefile
107         tests/zfs-tests/tests/functional/chattr/Makefile
108         tests/zfs-tests/tests/functional/checksum/Makefile
109         tests/zfs-tests/tests/functional/clean_mirror/Makefile
110         tests/zfs-tests/tests/functional/cli_root/Makefile
111         tests/zfs-tests/tests/functional/cli_root/zdb/Makefile
112         tests/zfs-tests/tests/functional/cli_root/zfs/Makefile
113         tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/Makefile
114         tests/zfs-tests/tests/functional/cli_root/zfs_change-key/Makefile
115         tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile
116         tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile
117         tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile
118         tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile
119         tests/zfs-tests/tests/functional/cli_root/zfs_diff/Makefile
120         tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile
121         tests/zfs-tests/tests/functional/cli_root/zfs_ids_to_path/Makefile
122         tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile
123         tests/zfs-tests/tests/functional/cli_root/zfs_jail/Makefile
124         tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile
125         tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile
126         tests/zfs-tests/tests/functional/cli_root/zfs_program/Makefile
127         tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile
128         tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile
129         tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile
130         tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile
131         tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile
132         tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile
133         tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile
134         tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile
135         tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile
136         tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile
137         tests/zfs-tests/tests/functional/cli_root/zfs_sysfs/Makefile
138         tests/zfs-tests/tests/functional/cli_root/zfs_unload-key/Makefile
139         tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile
140         tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile
141         tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile
142         tests/zfs-tests/tests/functional/cli_root/zfs_wait/Makefile
143         tests/zfs-tests/tests/functional/cli_root/zhack/Makefile
144         tests/zfs-tests/tests/functional/cli_root/zpool/Makefile
145         tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile
146         tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile
147         tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile
148         tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile
149         tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile
150         tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile
151         tests/zfs-tests/tests/functional/cli_root/zpool_events/Makefile
152         tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile
153         tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile
154         tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile
155         tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile
156         tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile
157         tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile
158         tests/zfs-tests/tests/functional/cli_root/zpool_initialize/Makefile
159         tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile
160         tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile
161         tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile
162         tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile
163         tests/zfs-tests/tests/functional/cli_root/zpool_reopen/Makefile
164         tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile
165         tests/zfs-tests/tests/functional/cli_root/zpool_resilver/Makefile
166         tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile
167         tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile
168         tests/zfs-tests/tests/functional/cli_root/zpool_split/Makefile
169         tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile
170         tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile
171         tests/zfs-tests/tests/functional/cli_root/zpool_trim/Makefile
172         tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile
173         tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile
174         tests/zfs-tests/tests/functional/cli_root/zpool_wait/Makefile
175         tests/zfs-tests/tests/functional/cli_root/zpool_wait/scan/Makefile
176         tests/zfs-tests/tests/functional/cli_user/Makefile
177         tests/zfs-tests/tests/functional/cli_user/misc/Makefile
178         tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile
179         tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile
180         tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile
181         tests/zfs-tests/tests/functional/cli_user/zpool_status/Makefile
182         tests/zfs-tests/tests/functional/compression/Makefile
183         tests/zfs-tests/tests/functional/cp_files/Makefile
184         tests/zfs-tests/tests/functional/crtime/Makefile
185         tests/zfs-tests/tests/functional/ctime/Makefile
186         tests/zfs-tests/tests/functional/deadman/Makefile
187         tests/zfs-tests/tests/functional/delegate/Makefile
188         tests/zfs-tests/tests/functional/devices/Makefile
189         tests/zfs-tests/tests/functional/dos_attributes/Makefile
190         tests/zfs-tests/tests/functional/events/Makefile
191         tests/zfs-tests/tests/functional/exec/Makefile
192         tests/zfs-tests/tests/functional/fallocate/Makefile
193         tests/zfs-tests/tests/functional/fault/Makefile
194         tests/zfs-tests/tests/functional/features/Makefile
195         tests/zfs-tests/tests/functional/features/async_destroy/Makefile
196         tests/zfs-tests/tests/functional/features/large_dnode/Makefile
197         tests/zfs-tests/tests/functional/grow/Makefile
198         tests/zfs-tests/tests/functional/history/Makefile
199         tests/zfs-tests/tests/functional/hkdf/Makefile
200         tests/zfs-tests/tests/functional/inheritance/Makefile
201         tests/zfs-tests/tests/functional/inuse/Makefile
202         tests/zfs-tests/tests/functional/io/Makefile
203         tests/zfs-tests/tests/functional/l2arc/Makefile
204         tests/zfs-tests/tests/functional/large_files/Makefile
205         tests/zfs-tests/tests/functional/largest_pool/Makefile
206         tests/zfs-tests/tests/functional/libzfs/Makefile
207         tests/zfs-tests/tests/functional/limits/Makefile
208         tests/zfs-tests/tests/functional/link_count/Makefile
209         tests/zfs-tests/tests/functional/log_spacemap/Makefile
210         tests/zfs-tests/tests/functional/migration/Makefile
211         tests/zfs-tests/tests/functional/mmap/Makefile
212         tests/zfs-tests/tests/functional/mmp/Makefile
213         tests/zfs-tests/tests/functional/mount/Makefile
214         tests/zfs-tests/tests/functional/mv_files/Makefile
215         tests/zfs-tests/tests/functional/nestedfs/Makefile
216         tests/zfs-tests/tests/functional/no_space/Makefile
217         tests/zfs-tests/tests/functional/nopwrite/Makefile
218         tests/zfs-tests/tests/functional/online_offline/Makefile
219         tests/zfs-tests/tests/functional/pam/Makefile
220         tests/zfs-tests/tests/functional/pool_checkpoint/Makefile
221         tests/zfs-tests/tests/functional/pool_names/Makefile
222         tests/zfs-tests/tests/functional/poolversion/Makefile
223         tests/zfs-tests/tests/functional/privilege/Makefile
224         tests/zfs-tests/tests/functional/procfs/Makefile
225         tests/zfs-tests/tests/functional/projectquota/Makefile
226         tests/zfs-tests/tests/functional/pyzfs/Makefile
227         tests/zfs-tests/tests/functional/quota/Makefile
228         tests/zfs-tests/tests/functional/raidz/Makefile
229         tests/zfs-tests/tests/functional/redacted_send/Makefile
230         tests/zfs-tests/tests/functional/redundancy/Makefile
231         tests/zfs-tests/tests/functional/refquota/Makefile
232         tests/zfs-tests/tests/functional/refreserv/Makefile
233         tests/zfs-tests/tests/functional/removal/Makefile
234         tests/zfs-tests/tests/functional/rename_dirs/Makefile
235         tests/zfs-tests/tests/functional/replacement/Makefile
236         tests/zfs-tests/tests/functional/reservation/Makefile
237         tests/zfs-tests/tests/functional/rootpool/Makefile
238         tests/zfs-tests/tests/functional/rsend/Makefile
239         tests/zfs-tests/tests/functional/scrub_mirror/Makefile
240         tests/zfs-tests/tests/functional/simd/Makefile
241         tests/zfs-tests/tests/functional/slog/Makefile
242         tests/zfs-tests/tests/functional/snapshot/Makefile
243         tests/zfs-tests/tests/functional/snapused/Makefile
244         tests/zfs-tests/tests/functional/sparse/Makefile
245         tests/zfs-tests/tests/functional/stat/Makefile
246         tests/zfs-tests/tests/functional/suid/Makefile
247         tests/zfs-tests/tests/functional/threadsappend/Makefile
248         tests/zfs-tests/tests/functional/tmpfile/Makefile
249         tests/zfs-tests/tests/functional/trim/Makefile
250         tests/zfs-tests/tests/functional/truncate/Makefile
251         tests/zfs-tests/tests/functional/upgrade/Makefile
252         tests/zfs-tests/tests/functional/user_namespace/Makefile
253         tests/zfs-tests/tests/functional/userquota/Makefile
254         tests/zfs-tests/tests/functional/vdev_zaps/Makefile
255         tests/zfs-tests/tests/functional/write_dirs/Makefile
256         tests/zfs-tests/tests/functional/xattr/Makefile
257         tests/zfs-tests/tests/functional/zpool_influxdb/Makefile
258         tests/zfs-tests/tests/functional/zvol/Makefile
259         tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile
260         tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile
261         tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile
262         tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile
263         tests/zfs-tests/tests/perf/Makefile
264         tests/zfs-tests/tests/perf/fio/Makefile
265         tests/zfs-tests/tests/perf/regression/Makefile
266         tests/zfs-tests/tests/perf/scripts/Makefile
267         tests/zfs-tests/tests/stress/Makefile
268         zfs.release
269 ])
270
271
272 AC_OUTPUT