From patchwork Fri Oct 11 22:15:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 98759 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC90F3858C2B for ; Fri, 11 Oct 2024 22:15:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 85BD73858D26 for ; Fri, 11 Oct 2024 22:15:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85BD73858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85BD73858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728684925; cv=none; b=q1P5cvR3yJAH1QqgrTxJf3K8UhseLS+5KijonQbEq6JLmPnNkl+XPAMh+Wui5cgV9BrrfPifVvSXbZCVWjCZ49qjqEPJ9bV/JMNCTKUHm81WBv9RCV5cZtkMC1tmdz2Neu9uvBu7JlEyYZLDMa5pwVbzTNZfjCe4RdC49Sawp6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728684925; c=relaxed/simple; bh=MGMikvSTzbZiF+5JZIhO6FfUO4nBB+aI8kh1MDvMyUg=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=gMR15LXJNUQf4qFZ7voAP4GxAVP4ir81QCttiyN+qUlMLK4BDI+hGyRlArayi2T5h/1q90qpOup1uDYkk8ivhH3iUV1lnhGZmntEdWb3WJ5oSbRIIE0Drmj9E7+7lAkKJiDKjeLjczWPs+fv0CxMbkPfQ6EOVuNIMG+DzqfTf+0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728684923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type; bh=yvTGCJszExPZHkK/+Xks7pA8vOpDzarasx5dnu0W/LI=; b=VmKVO5dGO42HoYoSuBsbgXo3x/4k3jFtHleXOL12wlTz69Rvwhpqb1s9QYfrtu/RyM/NX8 UQEfTYbD6/KmNd8YqHY73tXX2N7BsKFK0IO+54LxgQhtK5Isw1RfvlZUIPRwRnFoCvCg9H Zwdd5T549z552RthEsU01j8rdjme53s= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-660-ZnFMUfUqMZSQ2Vhh3bFDIg-1; Fri, 11 Oct 2024 18:15:22 -0400 X-MC-Unique: ZnFMUfUqMZSQ2Vhh3bFDIg-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 43EEB19560B6 for ; Fri, 11 Oct 2024 22:15:21 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.8.53]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E46A219560A2 for ; Fri, 11 Oct 2024 22:15:20 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.16.1/8.16.1) with ESMTP id 49BMFIC5012750 for ; Fri, 11 Oct 2024 18:15:18 -0400 Date: Fri, 11 Oct 2024 18:15:18 -0400 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: configure: default to --prefix=/usr on GNU/Linux X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org I'm getting tired of always typing --prefix=/usr so making it the default. Reviewed-by: H.J. Lu diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index 4d642e953b..93f8567d25 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -116,7 +116,9 @@ if test -n "$sysheaders"; then CPPFLAGS=$OLD_CPPFLAGS fi -if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then +ac_default_prefix=/usr + +if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/"; then if test $enable_sanity = yes; then echo "\ *** On GNU/Linux systems the GNU C Library should not be installed into diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac index c177e082a9..e24456102d 100644 --- a/sysdeps/unix/sysv/linux/configure.ac +++ b/sysdeps/unix/sysv/linux/configure.ac @@ -71,7 +71,9 @@ if test -n "$sysheaders"; then CPPFLAGS=$OLD_CPPFLAGS fi -if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then +ac_default_prefix=/usr + +if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/"; then if test $enable_sanity = yes; then echo "\ *** On GNU/Linux systems the GNU C Library should not be installed into