OpenZFS 7745 - print error if lzc_* is called before libzfs_core_init
[zfs.git] / configure.ac
blob20a67dc4f0892398ffb3f5afc49fa28c788c2a67
1 /*
2  * This file is part of the ZFS Linux port.
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  */
33 AC_INIT(m4_esyscmd(grep Name META | cut -d ':' -f 2 | tr -d ' \n'),
34         m4_esyscmd(grep Version META | cut -d ':' -f 2 | tr -d ' \n'))
35 AC_LANG(C)
36 ZFS_AC_META
37 AC_CONFIG_AUX_DIR([config])
38 AC_CONFIG_MACRO_DIR([config])
39 AC_CANONICAL_SYSTEM
40 AM_MAINTAINER_MODE
41 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
42 AM_INIT_AUTOMAKE([subdir-objects])
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])
48 AC_PROG_INSTALL
49 AC_PROG_CC
50 AC_PROG_LIBTOOL
51 AM_PROG_AS
52 AM_PROG_CC_C_O
54 ZFS_AC_LICENSE
55 ZFS_AC_PACKAGE
56 ZFS_AC_CONFIG
57 ZFS_AC_DEBUG
58 ZFS_AC_DEBUG_DMU_TX
60 AC_CONFIG_FILES([
61         Makefile
62         udev/Makefile
63         udev/rules.d/Makefile
64         etc/Makefile
65         etc/init.d/Makefile
66         etc/zfs/Makefile
67         etc/systemd/Makefile
68         etc/systemd/system/Makefile
69         etc/modules-load.d/Makefile
70         man/Makefile
71         man/man1/Makefile
72         man/man5/Makefile
73         man/man8/Makefile
74         lib/Makefile
75         lib/libspl/Makefile
76         lib/libspl/asm-generic/Makefile
77         lib/libspl/asm-i386/Makefile
78         lib/libspl/asm-x86_64/Makefile
79         lib/libspl/include/Makefile
80         lib/libspl/include/ia32/Makefile
81         lib/libspl/include/ia32/sys/Makefile
82         lib/libspl/include/rpc/Makefile
83         lib/libspl/include/sys/Makefile
84         lib/libspl/include/sys/dktp/Makefile
85         lib/libspl/include/util/Makefile
86         lib/libavl/Makefile
87         lib/libefi/Makefile
88         lib/libicp/Makefile
89         lib/libnvpair/Makefile
90         lib/libunicode/Makefile
91         lib/libuutil/Makefile
92         lib/libzpool/Makefile
93         lib/libzfs/libzfs.pc
94         lib/libzfs/libzfs_core.pc
95         lib/libzfs/Makefile
96         lib/libzfs_core/Makefile
97         lib/libshare/Makefile
98         cmd/Makefile
99         cmd/zdb/Makefile
100         cmd/zhack/Makefile
101         cmd/zfs/Makefile
102         cmd/zinject/Makefile
103         cmd/zpool/Makefile
104         cmd/zstreamdump/Makefile
105         cmd/ztest/Makefile
106         cmd/zpios/Makefile
107         cmd/mount_zfs/Makefile
108         cmd/fsck_zfs/Makefile
109         cmd/zvol_id/Makefile
110         cmd/vdev_id/Makefile
111         cmd/arcstat/Makefile
112         cmd/dbufstat/Makefile
113         cmd/arc_summary/Makefile
114         cmd/zed/Makefile
115         cmd/raidz_test/Makefile
116         contrib/Makefile
117         contrib/bash_completion.d/Makefile
118         contrib/dracut/Makefile
119         contrib/dracut/02zfsexpandknowledge/Makefile
120         contrib/dracut/90zfs/Makefile
121         contrib/initramfs/Makefile
122         module/Makefile
123         module/avl/Makefile
124         module/nvpair/Makefile
125         module/unicode/Makefile
126         module/zcommon/Makefile
127         module/zfs/Makefile
128         module/zpios/Makefile
129         module/icp/Makefile
130         include/Makefile
131         include/linux/Makefile
132         include/sys/Makefile
133         include/sys/fs/Makefile
134         include/sys/fm/Makefile
135         include/sys/fm/fs/Makefile
136         include/sys/crypto/Makefile
137         include/sys/sysevent/Makefile
138         scripts/Makefile
139         scripts/zpios-profile/Makefile
140         scripts/zpios-test/Makefile
141         scripts/zpool-config/Makefile
142         scripts/common.sh
143         tests/Makefile
144         tests/test-runner/Makefile
145         tests/test-runner/cmd/Makefile
146         tests/test-runner/include/Makefile
147         tests/test-runner/man/Makefile
148         tests/runfiles/Makefile
149         tests/zfs-tests/Makefile
150         tests/zfs-tests/cmd/Makefile
151         tests/zfs-tests/cmd/chg_usr_exec/Makefile
152         tests/zfs-tests/cmd/devname2devid/Makefile
153         tests/zfs-tests/cmd/dir_rd_update/Makefile
154         tests/zfs-tests/cmd/file_check/Makefile
155         tests/zfs-tests/cmd/file_trunc/Makefile
156         tests/zfs-tests/cmd/file_write/Makefile
157         tests/zfs-tests/cmd/largest_file/Makefile
158         tests/zfs-tests/cmd/mkbusy/Makefile
159         tests/zfs-tests/cmd/mkfile/Makefile
160         tests/zfs-tests/cmd/mkfiles/Makefile
161         tests/zfs-tests/cmd/mktree/Makefile
162         tests/zfs-tests/cmd/mmap_exec/Makefile
163         tests/zfs-tests/cmd/mmapwrite/Makefile
164         tests/zfs-tests/cmd/randfree_file/Makefile
165         tests/zfs-tests/cmd/readmmap/Makefile
166         tests/zfs-tests/cmd/rename_dir/Makefile
167         tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile
168         tests/zfs-tests/cmd/threadsappend/Makefile
169         tests/zfs-tests/cmd/xattrtest/Makefile
170         tests/zfs-tests/include/Makefile
171         tests/zfs-tests/include/commands.cfg
172         tests/zfs-tests/include/default.cfg
173         tests/zfs-tests/tests/Makefile
174         tests/zfs-tests/tests/functional/Makefile
175         tests/zfs-tests/tests/functional/acl/Makefile
176         tests/zfs-tests/tests/functional/acl/posix/Makefile
177         tests/zfs-tests/tests/functional/atime/Makefile
178         tests/zfs-tests/tests/functional/bootfs/Makefile
179         tests/zfs-tests/tests/functional/cache/Makefile
180         tests/zfs-tests/tests/functional/cachefile/Makefile
181         tests/zfs-tests/tests/functional/casenorm/Makefile
182         tests/zfs-tests/tests/functional/checksum/Makefile
183         tests/zfs-tests/tests/functional/chattr/Makefile
184         tests/zfs-tests/tests/functional/clean_mirror/Makefile
185         tests/zfs-tests/tests/functional/cli_root/Makefile
186         tests/zfs-tests/tests/functional/cli_root/zdb/Makefile
187         tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile
188         tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile
189         tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile
190         tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile
191         tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile
192         tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile
193         tests/zfs-tests/tests/functional/cli_root/zfs/Makefile
194         tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile
195         tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile
196         tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile
197         tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile
198         tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile
199         tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile
200         tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile
201         tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile
202         tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile
203         tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile
204         tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile
205         tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile
206         tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile
207         tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile
208         tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile
209         tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile
210         tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile
211         tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile
212         tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile
213         tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile
214         tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile
215         tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile
216         tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile
217         tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile
218         tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile
219         tests/zfs-tests/tests/functional/cli_root/zpool/Makefile
220         tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile
221         tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile
222         tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile
223         tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile
224         tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile
225         tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile
226         tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile
227         tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile
228         tests/zfs-tests/tests/functional/cli_user/Makefile
229         tests/zfs-tests/tests/functional/cli_user/misc/Makefile
230         tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile
231         tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile
232         tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile
233         tests/zfs-tests/tests/functional/compression/Makefile
234         tests/zfs-tests/tests/functional/ctime/Makefile
235         tests/zfs-tests/tests/functional/delegate/Makefile
236         tests/zfs-tests/tests/functional/devices/Makefile
237         tests/zfs-tests/tests/functional/exec/Makefile
238         tests/zfs-tests/tests/functional/features/async_destroy/Makefile
239         tests/zfs-tests/tests/functional/features/large_dnode/Makefile
240         tests/zfs-tests/tests/functional/features/Makefile
241         tests/zfs-tests/tests/functional/grow_pool/Makefile
242         tests/zfs-tests/tests/functional/grow_replicas/Makefile
243         tests/zfs-tests/tests/functional/history/Makefile
244         tests/zfs-tests/tests/functional/inheritance/Makefile
245         tests/zfs-tests/tests/functional/inuse/Makefile
246         tests/zfs-tests/tests/functional/large_files/Makefile
247         tests/zfs-tests/tests/functional/largest_pool/Makefile
248         tests/zfs-tests/tests/functional/link_count/Makefile
249         tests/zfs-tests/tests/functional/migration/Makefile
250         tests/zfs-tests/tests/functional/mmap/Makefile
251         tests/zfs-tests/tests/functional/mount/Makefile
252         tests/zfs-tests/tests/functional/mv_files/Makefile
253         tests/zfs-tests/tests/functional/nestedfs/Makefile
254         tests/zfs-tests/tests/functional/no_space/Makefile
255         tests/zfs-tests/tests/functional/nopwrite/Makefile
256         tests/zfs-tests/tests/functional/online_offline/Makefile
257         tests/zfs-tests/tests/functional/pool_names/Makefile
258         tests/zfs-tests/tests/functional/poolversion/Makefile
259         tests/zfs-tests/tests/functional/privilege/Makefile
260         tests/zfs-tests/tests/functional/quota/Makefile
261         tests/zfs-tests/tests/functional/raidz/Makefile
262         tests/zfs-tests/tests/functional/redundancy/Makefile
263         tests/zfs-tests/tests/functional/refquota/Makefile
264         tests/zfs-tests/tests/functional/refreserv/Makefile
265         tests/zfs-tests/tests/functional/rename_dirs/Makefile
266         tests/zfs-tests/tests/functional/replacement/Makefile
267         tests/zfs-tests/tests/functional/reservation/Makefile
268         tests/zfs-tests/tests/functional/rootpool/Makefile
269         tests/zfs-tests/tests/functional/rsend/Makefile
270         tests/zfs-tests/tests/functional/scrub_mirror/Makefile
271         tests/zfs-tests/tests/functional/slog/Makefile
272         tests/zfs-tests/tests/functional/snapshot/Makefile
273         tests/zfs-tests/tests/functional/snapused/Makefile
274         tests/zfs-tests/tests/functional/sparse/Makefile
275         tests/zfs-tests/tests/functional/threadsappend/Makefile
276         tests/zfs-tests/tests/functional/tmpfile/Makefile
277         tests/zfs-tests/tests/functional/truncate/Makefile
278         tests/zfs-tests/tests/functional/userquota/Makefile
279         tests/zfs-tests/tests/functional/upgrade/Makefile
280         tests/zfs-tests/tests/functional/vdev_zaps/Makefile
281         tests/zfs-tests/tests/functional/write_dirs/Makefile
282         tests/zfs-tests/tests/functional/xattr/Makefile
283         tests/zfs-tests/tests/functional/zvol/Makefile
284         tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile
285         tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile
286         tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile
287         tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile
288         tests/zfs-tests/tests/perf/Makefile
289         tests/zfs-tests/tests/perf/fio/Makefile
290         tests/zfs-tests/tests/perf/regression/Makefile
291         tests/zfs-tests/tests/perf/scripts/Makefile
292         tests/zfs-tests/tests/stress/Makefile
293         rpm/Makefile
294         rpm/redhat/Makefile
295         rpm/redhat/zfs.spec
296         rpm/redhat/zfs-kmod.spec
297         rpm/redhat/zfs-dkms.spec
298         rpm/generic/Makefile
299         rpm/generic/zfs.spec
300         rpm/generic/zfs-kmod.spec
301         rpm/generic/zfs-dkms.spec
302         zfs-script-config.sh
303         zfs.release
307 AC_OUTPUT