]> sourceware.org Git - glibc.git/commitdiff
configure: default to --prefix=/usr on GNU/Linux
authorDJ Delorie <dj@redhat.com>
Fri, 11 Oct 2024 22:13:41 +0000 (18:13 -0400)
committerDJ Delorie <dj@redhat.com>
Tue, 22 Oct 2024 22:11:49 +0000 (18:11 -0400)
I'm getting tired of always typing --prefix=/usr
so making it the default.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/unix/sysv/linux/configure [changed mode: 0644->0755]
sysdeps/unix/sysv/linux/configure.ac

old mode 100644 (file)
new mode 100755 (executable)
index 4d642e9..8cda8e9
@@ -1,3 +1,4 @@
+ac_default_prefix=/usr
 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
  # Local configure fragment for sysdeps/unix/sysv/linux.
 
@@ -116,7 +117,9 @@ if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi
 
-if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then
+
+
+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
index c177e082a96d1525e1ff209d2e537a7ed96f019f..4c43cda87728ee938099309c2aefad7fdd4a9253 100644 (file)
@@ -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_PREFIX_DEFAULT([/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
This page took 0.041405 seconds and 5 git commands to generate.