git指令如何葱master转到dev_configure.ac

#

# Copyright 2008-2016 Red Hat, Inc.

#

# This program is free software; you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation; either version 2 of the License, or

# (at your option) any later version.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program; if not, write to the Free Software

# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

#

# Refer to the README and COPYING files for full details of the license

#

# Autoconf initialization

AC_INIT([vdsm],

[m4_esyscmd([build-aux/pkg-version --version])],

[vdsm-devel@lists.fedorahosted.org])

AC_CONFIG_AUX_DIR([build-aux])

m4_include([m4/ax_python_module.m4])

# Package release

AC_SUBST([PACKAGE_RELEASE],

[m4_esyscmd([build-aux/pkg-version --release])])

# Testing for version and release

AS_IF([test "x$PACKAGE_VERSION" = x],

AC_MSG_ERROR([package version not defined]))

AS_IF([test "x$PACKAGE_RELEASE" = x],

AC_MSG_ERROR([package release not defined]))

# Automake initialization

AM_INIT_AUTOMAKE([-Wno-portability])

# Checking for build tools

AC_PROG_LN_S

AM_PATH_PYTHON([2.6])

AC_ARG_ENABLE(

[hooks],

[AS_HELP_STRING(

[--enable-hooks],

[build hooks packages @<:>@]

)],

,

[enable_hooks="no"]

)

AM_CONDITIONAL([HOOKS], [test "${enable_hooks}" = "yes"])

AS_IF([test "${enable_hooks}" = "yes"],

AC_SUBST([HOOKS], ['1']),

AC_SUBST([HOOKS], ['0']))

AC_ARG_ENABLE(

[vhostmd],

[AS_HELP_STRING(

[--enable-vhostmd],

[build vdsm-vhostmd-hook subpackage @<:>@]

)],

,

[enable_vhostmd="no"]

)

AS_IF([test "${enable_vhostmd}" = "yes"],

AC_SUBST([VHOSTMD], ['1']),

AC_SUBST([VHOSTMD], ['0']))

AC_ARG_ENABLE(

[python3],

[AS_HELP_STRING(

[--disable-python3],

[disable build for python3 @<:>@]

)],

,

[enable_python3="yes"]

)

AS_IF([test "${enable_python3}" = "yes"],

AC_SUBST([PYTHON3_SUPPORT], ['1']),

AC_SUBST([PYTHON3_SUPPORT], ['0']))

AC_ARG_ENABLE(

[gluster-mgmt],

[AS_HELP_STRING(

[--enable-gluster-mgmt],

[build gluster management package @<:>@]

)],

,

[enable_gluster_mgmt="yes"]

)

AM_CONDITIONAL([GLUSTER_MGMT], [test "${enable_gluster_mgmt}" = "yes"])

AS_IF([test "${enable_gluster_mgmt}" = "yes"],

AC_SUBST([GLUSTER_MGMT], ['1']),

AC_SUBST([GLUSTER_MGMT], ['0']))

AC_ARG_ENABLE(

[ovirt-vmconsole],

[AS_HELP_STRING(

[--disable-ovirt-vmconsole],

[disable ovirt-vmconsole integration @<:>@]

)],

,

[enable_ovirt_vmconsole="yes"]

)

AS_IF([test "${enable_ovirt_vmconsole}" = "yes"],

AC_SUBST([OVIRT_VMCONSOLE], ['1']),

AC_SUBST([OVIRT_VMCONSOLE], ['0']))

AC_ARG_ENABLE(

[libvirt-sanlock],

[AS_HELP_STRING(

[--disable-libvirt-sanlock],

[disable libvirt sanlock plugin]

)],

,

[enable_libvirt_sanlock="yes"]

)

AC_SUBST([ENABLE_LIBVIRT_SANLOCK], ["${enable_libvirt_sanlock}"])

AC_ARG_ENABLE(

[libvirt-selinux],

[AS_HELP_STRING(

[--disable-libvirt-selinux],

[disable libvirt selinux plugin]

)],

,

[enable_libvirt_selinux="yes"]

)

AC_SUBST([ENABLE_LIBVIRT_SELINUX], ["${enable_libvirt_selinux}"])

AC_ARG_WITH(

[qemu-user],

[AS_HELP_STRING(

[--with-qemu-user=USER],

[configure user of qemu process spawned by libvirt, @<:>@]

)],

,

[with_qemu_user="qemu"]

)

AC_SUBST([QEMUUSER], ["${with_qemu_user}"])

AC_ARG_WITH(

[qemu-group],

[AS_HELP_STRING(

[--with-qemu-group=GROUP],

[configure group of qemu process spawned by libvirt, @<:>@]

)],

,

[with_qemu_group="qemu"]

)

AC_SUBST([QEMUGROUP], ["${with_qemu_group}"])

AC_ARG_WITH(

[ovirt-vmconsole-user],

[AS_HELP_STRING(

[--with-ovirt-vmconsole-user=USER],

[configure user for ovirt vmconsole access, @<:>@]

)],

,

[with_ovirt_vmconsole_user="ovirt-vmconsole"]

)

AC_SUBST([OVIRTVMCONSOLEUSER], ["${with_ovirt_vmconsole_user}"])

AC_ARG_WITH(

[ovirt-vmconsole-group],

[AS_HELP_STRING(

[--with-ovirt-vmconsole-group=GROUP],

[configure group for ovirt vmconsole access, @<:>@]

)],

,

[with_ovirt_vmconsole_group="ovirt-vmconsole"]

)

AC_SUBST([OVIRTVMCONSOLEGROUP], ["${with_ovirt_vmconsole_group}"])

AC_ARG_WITH(

[libvirt-service-default],

[AS_HELP_STRING(

[--with-libvirt-service-default=FILE],

[configure full path of libvirt service environment file.

@<:>@]

)],

,

[with_libvirt_service_default="${sysconfdir}/sysconfig/libvirtd"]

)

AC_SUBST([LIBVIRT_SERVICE_DEFAULT], ["${with_libvirt_service_default}"])

# Users and groups

AC_SUBST([VDSMUSER], [vdsm])

AC_SUBST([VDSMGROUP], [kvm])

AC_SUBST([METADATAUSER], [vdsm])

AC_SUBST([METADATAGROUP], [kvm])

AC_SUBST([SNLKUSER], [sanlock])

AC_SUBST([SNLKGROUP], [sanlock])

AC_SUBST([CDROMGROUP], [cdrom])

# VDSM default paths

AC_SUBST([vdsmdir], ['${datarootdir}/vdsm'])

AC_SUBST([vdsmconfdir], ['${sysconfdir}/vdsm'])

AC_SUBST([vdsmlogdir], ['${localstatedir}/log/vdsm'])

AC_SUBST([vdsmrundir], ['${localstatedir}/run/vdsm'])

AC_SUBST([vdsmlibdir], ['${localstatedir}/lib/vdsm'])

AC_SUBST([vdsmbackupdir], ['${vdsmlogdir}/backup'])

AC_SUBST([vdsmexecdir], ['${libexecdir}/vdsm'])

AC_SUBST([vdsmhooksdir], ['${vdsmexecdir}/hooks'])

AC_SUBST([vdsmtsdir], ['${sysconfdir}/pki/vdsm'])

AC_SUBST([vdsmrepo], ['/rhev/data-center'])

AC_SUBST([vdsmpylibdir], ['${pythondir}/vdsm'])

AC_SUBST([vdsminfradir], ['${vdsmpylibdir}/infra'])

AC_SUBST([vdsmnetinfodir], ['${vdsmpylibdir}/netinfo'])

AC_SUBST([vdsmtooldir], ['${vdsmpylibdir}/tool'])

AC_SUBST([configuratorsdir], ['${vdsmtooldir}/configurators'])

AC_SUBST([vdsmtestsdir], ['${datarootdir}/vdsm/tests'])

# VDSM registration default paths

AC_SUBST([vdsmregdir], ['${datarootdir}/vdsm-reg'])

AC_SUBST([vdsmbootstrapdir], ['${datarootdir}/vdsm-bootstrap'])

AC_SUBST([vdsmregconfdir], ['${sysconfdir}/vdsm-reg'])

AC_SUBST([vdsmreglogdir], ['${localstatedir}/log/vdsm-reg'])

AC_SUBST([vdsmupgradedir], ['/data/updates'])

# VDSM service

AC_SUBST([SERVICE_STOP_TIMEOUT], ['10'])

# SMBIOS names

AC_ARG_WITH(

[smbios-manufacturer],

[AS_HELP_STRING([--with-smbios-manufacturer=NAME],

[SMBIOS manufacturer name @<:>@])],

[SMBIOS_MANUFACTURER="${withval}"],

[SMBIOS_MANUFACTURER="oVirt"])

AC_SUBST([SMBIOS_MANUFACTURER])

AC_ARG_WITH(

[smbios-osname],

[AS_HELP_STRING([--with-smbios-osname=NAME],

[SMBIOS OS name @<: node>@])],

[SMBIOS_OSNAME="${withval}"],

[SMBIOS_OSNAME="oVirt Node"])

AC_SUBST([SMBIOS_OSNAME])

# Package names

AC_ARG_WITH(

[qemu-kvm],

[AS_HELP_STRING([--with-qemu-kvm=PKGNAME],

[package name for qemu-kvm @<:>@])],

[QEMU_KVM_PKG="${withval}"],

[QEMU_KVM_PKG="qemu-kvm"])

AC_SUBST([QEMU_KVM_PKG])

AC_ARG_WITH(

[qemu-img],

[AS_HELP_STRING([--with-qemu-img=PKGNAME],

[package name for qemu-img @<:>@])],

[QEMU_IMG_PKG="${withval}"],

[QEMU_IMG_PKG="qemu-img"])

AC_SUBST([QEMU_IMG_PKG])

# Checking for pyflakes

AC_PATH_PROG([PYFLAKES], [pyflakes])

if test "x$PYFLAKES" = "x"; then

AC_MSG_WARN([pyflakes not found])

fi

# Checking for pep8

AC_PATH_PROG([PEP8], [pep8])

if test "x$PEP8" = "x"; then

AC_MSG_WARN([python-pep8 not found])

fi

if test "$PYTHON3_SUPPORT" = "1"; then

AC_PATH_PROG([PYTHON3], [python3])

if test "x$PYTHON3" = "x"; then

AC_MSG_ERROR([python3 not found])

fi

AC_PATH_PROG([PYTHON3_NOSE], [nosetests-3.4])

if test "x$PYTHON3_NOSE" = "x"; then

AC_MSG_ERROR([python3-nose not found])

fi

fi

# Checking for python-devel

AC_PATH_PROG([PYTHON_CONFIG], [python-config])

if test "x$PYTHON_CONFIG" = "x"; then

AC_MSG_ERROR([python-devel not found, please install it.])

fi

# Checking for nosetests

AC_PATH_PROG([NOSETESTS], [nosetests])

if test "x$NOSETESTS" = "x"; then

AC_MSG_ERROR([python-nose not found, please install it.])

fi

# Checking for python modules (sorted, please keep in order)

AX_PYTHON_MODULE([argparse], [fatal])

AX_PYTHON_MODULE([cpopen], [fatal])

AX_PYTHON_MODULE([libvirt], [fatal])

AX_PYTHON_MODULE([netaddr], [fatal])

AX_PYTHON_MODULE([pthreading], [fatal])

AX_PYTHON_MODULE([pyinotify], [fatal])

AX_PYTHON_MODULE([selinux], [fatal])

AX_PYTHON_MODULE([six], [fatal])

# External programs (sorted, please keep in order)

AC_PATH_PROG([BLKID_PATH], [blkid], [/sbin/blkid])

AC_PATH_PROG([BRCTL_PATH], [brctl], [/usr/sbin/brctl])

AC_PATH_PROG([CAT_PATH], [cat], [/bin/cat])

AC_PATH_PROG([CHCON_PATH], [chcon], [/bin/chcon])

AC_PATH_PROG([CHMOD_PATH], [chmod], [/bin/chmod])

AC_PATH_PROG([CHOWN_PATH], [chown], [/bin/chown])

AC_PATH_PROG([CP_PATH], [cp], [/bin/cp])

AC_PATH_PROG([DD_PATH], [dd], [/bin/dd])

AC_PATH_PROG([DMIDECODE_PATH], [dmidecode], [/usr/sbin/dmidecode])

AC_PATH_PROG([DMSETUP_PATH], [dmsetup], [/sbin/dmsetup])

AC_PATH_PROG([FSCK_PATH], [fsck], [/sbin/fsck])

AC_PATH_PROG([FENCE_AGENT_PATH], [fence_ilo], [/usr/sbin/fence_ilo])

AC_PATH_PROG([FUSER_PATH], [fuser], [/sbin/fuser])

AC_PATH_PROG([GREP_PATH], [grep], [/bin/grep])

AC_PATH_PROG([HWCLOCK_PATH], [hwclock], [/usr/sbin/hwclock])

AC_PATH_PROG([IFDOWN_PATH], [ifdown], [/sbin/ifdown])

AC_PATH_PROG([IFUP_PATH], [ifup], [/sbin/ifup])

AC_PATH_PROG([IONICE_PATH], [ionice], [/usr/bin/ionice])

AC_PATH_PROG([IP_PATH], [ip], [/sbin/ip])

AC_PATH_PROG([ISCSIADM_PATH], [iscsiadm], [/sbin/iscsiadm])

AC_PATH_PROG([KILL_PATH], [kill], [/bin/kill])

AC_PATH_PROG([LVM_PATH], [lvm], [/sbin/lvm])

AC_PATH_PROG([MKFS_MSDOS_PATH], [mkfs.msdos], [/sbin/mkfs.msdos])

AC_PATH_PROG([MKFS_PATH], [mkfs], [/sbin/mkfs])

AC_PATH_PROG([MKISOFS_PATH], [mkisofs], [/usr/bin/mkisofs])

AC_PATH_PROG([MODPROBE_PATH], [modprobe], [/sbin/modprobe])

AC_PATH_PROG([MOUNTPOINT_PATH], [mountpoint], [/bin/mountpoint])

AC_PATH_PROG([MOUNT_PATH], [mount], [/bin/mount])

AC_PATH_PROG([MULTIPATH_PATH], [multipath], [/sbin/multipath])

AC_PATH_PROG([MV_PATH], [mv], [/bin/mv])

AC_PATH_PROG([NICE_PATH], [nice], [/bin/nice])

AC_PATH_PROG([NTPQ_PATH], [ntpq], [/usr/sbin/ntpq])

AC_PATH_PROG([OPENSSL_PATH], [openssl], [/usr/bin/openssl])

AC_PATH_PROG([PGREP_PATH], [pgrep], [/usr/bin/pgrep])

AC_PATH_PROG([QEMUIMG_PATH], [qemu-img], [/usr/bin/qemu-img])

AC_PATH_PROG([REBOOT_PATH], [reboot], [/usr/bin/reboot])

AC_PATH_PROG([RESTORECON_PATH], [restorecon], [/sbin/restorecon])

AC_PATH_PROG([RM_PATH], [rm], [/bin/rm])

AC_PATH_PROG([RSYNC_PATH], [rsync], [/usr/bin/rsync])

AC_PATH_PROG([SAFELEASE_PATH], [safelease], [/usr/libexec/safelease/safelease])

AC_PATH_PROG([SERVICE_PATH], [service], [/sbin/service])

AC_PATH_PROG([SETSID_PATH], [setsid], [/usr/bin/setsid])

AC_PATH_PROG([SUDO_PATH], [sudo], [/usr/bin/sudo])

AC_PATH_PROG([SU_PATH], [su], [/bin/su])

AC_PATH_PROG([SYSCTL_PATH], [sysctl], [/sbin/sysctl])

AC_PATH_PROG([SYSTEMD_RUN_PATH], [systemd-run], [/usr/bin/systemd-run])

AC_PATH_PROG([TAR_PATH], [tar], [/bin/tar])

AC_PATH_PROG([TASKSET_PATH], [taskset], [/usr/bin/taskset])

AC_PATH_PROG([TC_PATH], [tc], [/sbin/tc])

AC_PATH_PROG([TEE_PATH], [tee], [/usr/bin/tee])

AC_PATH_PROG([TOUCH_PATH], [touch], [/bin/touch])

AC_PATH_PROG([TUNE2FS_PATH], [tune2fs], [/sbin/tune2fs])

AC_PATH_PROG([UMOUNT_PATH], [umount], [/bin/umount])

AC_PATH_PROG([WGET_PATH], [wget], [/usr/bin/wget])

# Keep sorted

AC_OUTPUT([

Makefile

client/Makefile

contrib/Makefile

debian/Makefile

init/Makefile

init/systemd/Makefile

lib/Makefile

lib/vdsm/Makefile

lib/vdsm/common/Makefile

lib/vdsm/common/network/Makefile

lib/vdsm/netinfo/Makefile

lib/vdsm/netlink/Makefile

lib/vdsm/profiling/Makefile

lib/vdsm/tool/Makefile

lib/vdsm/tool/configurators/Makefile

lib/api/Makefile

lib/yajsonrpc/Makefile

lib/vdsm/infra/Makefile

lib/vdsm/infra/eventfd/Makefile

lib/vdsm/infra/filecontrol/Makefile

lib/vdsm/infra/sigutils/Makefile

lib/vdsm/infra/zombiereaper/Makefile

lib/vdsm/network/Makefile

lib/vdsm/network/configurators/Makefile

lib/vdsm/network/ip/Makefile

lib/vdsm/rpc/Makefile

lib/vdsm/storage/Makefile

lib/vdsm/tc/Makefile

lib/vdsm/virt/Makefile

tests/Makefile

tests/common/Makefile

tests/cpuinfo/Makefile

tests/functional/Makefile

tests/devices/Makefile

tests/devices/parsing/Makefile

tests/devices/data/Makefile

tests/integration/Makefile

tests/network/Makefile

vdsm-tool/Makefile

vdsm/Makefile

vdsm/gluster/Makefile

vdsm/sos/Makefile

vdsm/supervdsm_api/Makefile

vdsm/storage/Makefile

vdsm/storage/imageRepository/Makefile

vdsm/storage/protect/Makefile

vdsm/storage/sdm/Makefile

vdsm/storage/vdsm_lvm_rules.template

vdsm/virt/Makefile

vdsm/virt/vmdevices/Makefile

vdsm_hooks/Makefile

vdsm_hooks/allocate_net/Makefile

vdsm_hooks/checkimages/Makefile

vdsm_hooks/diskunmap/Makefile

vdsm_hooks/ethtool_options/Makefile

vdsm_hooks/extnet/Makefile

vdsm_hooks/extra_ipv4_addrs/Makefile

vdsm_hooks/fakesriov/Makefile

vdsm_hooks/fakevmstats/Makefile

vdsm_hooks/faqemu/Makefile

vdsm_hooks/fileinject/Makefile

vdsm_hooks/floppy/Makefile

vdsm_hooks/hostusb/Makefile

vdsm_hooks/httpsisoboot/Makefile

vdsm_hooks/hugepages/Makefile

vdsm_hooks/ipv6/Makefile

vdsm_hooks/isolatedprivatevlan/Makefile

vdsm_hooks/macbind/Makefile

vdsm_hooks/macspoof/Makefile

vdsm_hooks/nestedvt/Makefile

vdsm_hooks/noipspoof/Makefile

vdsm_hooks/numa/Makefile

vdsm_hooks/openstacknet/Makefile

vdsm_hooks/ovs/Makefile

vdsm_hooks/pincpu/Makefile

vdsm_hooks/promisc/Makefile

vdsm_hooks/qemucmdline/Makefile

vdsm_hooks/qos/Makefile

vdsm_hooks/scratchpad/Makefile

vdsm_hooks/smbios/Makefile

vdsm_hooks/spiceoptions/Makefile

vdsm_hooks/vhostmd/Makefile

vdsm_hooks/vmdisk/Makefile

vdsm_hooks/vmfex/Makefile

vdsm_hooks/vmfex_dev/Makefile

])

AC_OUTPUT([

tests/run_tests.sh

tests/run_tests_local.sh

],[

chmod +x tests/run_tests.sh

chmod +x tests/run_tests_local.sh

])

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值