From nobody Thu Mar 28 22:34:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589532813; cv=none; d=zohomail.com; s=zohoarc; b=T05QNhdypM5dAjpMH3tMug2OqsqlOALA2qvt6L22jK//hJV0LINQsddojvO6GR4gupoWqVIgG655BI0c6Eqj/IBw2e5557r2On+L4IXU4PhZwJB4aGAbfWnURmRJFGwtfFFTGndrjM4nVnH5n4E6C2I6rWdDQuryWUhpf3H9LXQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589532813; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=13bjunBspc/w3gWAwm9bPGWilewfd4T0fNSaeg4WKlo=; b=IyjGa1UMjNyZUQ7rE8OEr93fFIH/3P6TKnkzf2Da5m/uGI1OeienapfYfTbu30NyHzryU0tGn64AEvfcTRYkWf3rWzhCQdKJ5x1PhSQOSMArk6fdUHmu/IhgLDLggX5GIbKjsjdtNrS5KZPK30H3GA8iI9l5Ilv0NnDdrSmBDy0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1589532813814291.9363270127018; Fri, 15 May 2020 01:53:33 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-504-EQpkM9F9NgGzFBmJCzhGIQ-1; Fri, 15 May 2020 04:53:22 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D2F20800053; Fri, 15 May 2020 08:53:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ADC795C1D6; Fri, 15 May 2020 08:53:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2D3301809543; Fri, 15 May 2020 08:53:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04F8rDfD006913 for ; Fri, 15 May 2020 04:53:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5D8F0F566B; Fri, 15 May 2020 08:53:13 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1009013E779 for ; Fri, 15 May 2020 08:53:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 258A98007AC for ; Fri, 15 May 2020 08:53:10 +0000 (UTC) Received: from mxct.zte.com.cn (mx7.zte.com.cn [202.103.147.169]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-116-LYJ2d09sONOFgg2YsLiX0Q-1; Fri, 15 May 2020 04:53:06 -0400 Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id E8805E29DDAD0403EF64 for ; Fri, 15 May 2020 16:52:58 +0800 (CST) Received: from notes_smtp.zte.com.cn (notes_smtp.zte.com.cn [10.30.1.239]) by mse-fl1.zte.com.cn with ESMTP id 04F8nb28007373 for ; Fri, 15 May 2020 16:49:37 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2020051516501389-3580838 ; Fri, 15 May 2020 16:50:13 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589532812; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:content-type:content-type:list-id: list-help:list-unsubscribe:list-subscribe:list-post; bh=13bjunBspc/w3gWAwm9bPGWilewfd4T0fNSaeg4WKlo=; b=XZgLJtEubBqd4S/3yNZD0WbXO6AvI5IxNOzVSgz6Coyb9z5RKNOAc+jlPoqDYCD4DJInYR agxGdiorcQn5XpYPBD4b4U9N+z04iSKhi17IkpD6kNxpjbvecbuxZCtzcxQRdOKq+w/5J0 NFL46vl0+UXobSEzX/V+DE3t5zoH+Ss= X-MC-Unique: EQpkM9F9NgGzFBmJCzhGIQ-1 X-MC-Unique: LYJ2d09sONOFgg2YsLiX0Q-1 From: Yi Wang To: libvir-list@redhat.com Subject: [PATCH] README: Replace "configure" with "autogen.sh" for correct installation Date: Fri, 15 May 2020 16:51:28 +0800 Message-Id: <1589532688-39853-1-git-send-email-wang.yi59@zte.com.cn> X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2020-05-15 16:50:13, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2020-05-15 16:49:43, Serialize complete at 2020-05-15 16:49:43 X-MAIL: mse-fl1.zte.com.cn 04F8nb28007373 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: wang.yi59@zte.com.cn, LiaoPingfang , wang.liang82@zte.com.cn, xue.zhihong@zte.com.cn X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: LiaoPingfang First of all, there is no "configure" file. We need use autogen.sh at first to create "configure" file. Then in autogen.sh "configure" will be executed according to user as root or non-root. Signed-off-by: Liao Pingfang --- README.rst | 4 ++-- autogen.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index cdcc97b..82b4b31 100644 --- a/README.rst +++ b/README.rst @@ -53,7 +53,7 @@ in a manner that is suitable for installing as root, use: :: =20 $ mkdir build && cd build - $ ../configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var + $ ../autogen.sh $ make $ sudo make install =20 @@ -62,7 +62,7 @@ While to build & install as an unprivileged user :: =20 $ mkdir build && cd build - $ ../configure --prefix=3D$HOME/usr + $ ../autogen.sh $ make $ make install =20 diff --git a/autogen.sh b/autogen.sh index 4e1bbce..3c119e1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -27,6 +27,10 @@ if test "x$1" =3D "x--system"; then libdir=3D$prefix/lib64 fi EXTRA_ARGS=3D"--prefix=3D$prefix --sysconfdir=3D$sysconfdir --localsta= tedir=3D$localstatedir --libdir=3D$libdir" + if [ "$HOME" !=3D "/root" ]; then + prefix=3D$HOME/usr + EXTRA_ARGS=3D"--prefix=3D$prefix" + fi fi =20 cd "$olddir" --=20 2.9.5