Message ID | xno73qmgll.fsf@greed.delorie.com |
---|---|
State | New |
Headers | show |
Series | configure: default to --prefix=/usr on GNU/Linux | expand |
On Sat, Oct 12, 2024 at 6:15 AM DJ Delorie <dj@redhat.com> wrote: > > > I'm getting tired of always typing --prefix=/usr > so making it the default. > > 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 > LGTM. Reviewed-by: H.J. Lu <hjl.tools@gmail.com> Thanks.
On Okt 11 2024, DJ Delorie wrote:
> +ac_default_prefix=/usr
AC_PREFIX_DEFAULT([/usr])
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