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 https://opensource.org/licenses/CDDL-1.0. 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 33AC_INIT(m4_esyscmd(awk '/^Name:/ {printf $2}' META), 34 m4_esyscmd(awk '/^Version:/ {printf $2}' META)) 35CFGOPTS="$*" 36AC_LANG(C) 37ZFS_AC_META 38AC_CONFIG_AUX_DIR([config]) 39AC_CONFIG_MACRO_DIR([config]) 40AC_CANONICAL_TARGET 41AM_MAINTAINER_MODE 42m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 43AM_INIT_AUTOMAKE([subdir-objects foreign]) 44# Remove default macros from config.h: 45# PACKAGE, PACKAGE_{BUGREPORT,NAME,STRING,TARNAME,VERSION}, STDC_HEADERS, VERSION 46AC_CONFIG_HEADERS([zfs_config.h], [ 47 sed -nri~ -e '/^$/be' -e 'N;N;/#define (PACKAGE|VERSION|STDC_HEADERS)/d' -e ':e' -e 'p' zfs_config.h && rm zfs_config.h~ || exit]) 48 49LT_INIT 50AC_PROG_INSTALL 51AC_PROG_CC 52AC_PROG_LN_S 53PKG_PROG_PKG_CONFIG 54AM_PROG_AS 55AM_PROG_CC_C_O 56AX_CODE_COVERAGE 57_AM_PROG_TAR(pax) 58 59ZFS_AC_LICENSE 60ZFS_AC_CONFIG 61ZFS_AC_PACKAGE 62ZFS_AC_DEBUG 63ZFS_AC_DEBUGINFO 64ZFS_AC_DEBUG_KMEM 65ZFS_AC_DEBUG_KMEM_TRACKING 66ZFS_AC_DEBUG_INVARIANTS 67 68AC_CONFIG_FILES([ 69 contrib/debian/rules 70 Makefile 71 include/Makefile 72 lib/libzfs/libzfs.pc 73 lib/libzfs_core/libzfs_core.pc 74 lib/libzfsbootenv/libzfsbootenv.pc 75 module/Kbuild 76 module/Makefile 77 rpm/generic/zfs-dkms.spec 78 rpm/generic/zfs-kmod.spec 79 rpm/generic/zfs.spec 80 rpm/redhat/zfs-dkms.spec 81 rpm/redhat/zfs-kmod.spec 82 rpm/redhat/zfs.spec 83 tests/zfs-tests/tests/Makefile 84 zfs.release 85]) 86 87 88AC_OUTPUT 89