bpo-45723: Normalise configure user communication (GH-30024)

This commit is contained in:
Erlend Egeberg Aasland 2021-12-10 12:27:38 +01:00 committed by GitHub
parent 2fb797e93c
commit 74b23c97cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 75 additions and 65 deletions

74
configure vendored
View File

@ -6169,8 +6169,7 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
$as_echo "$ANDROID_API_LEVEL" >&6; } $as_echo "$ANDROID_API_LEVEL" >&6; }
if test -z "$ANDROID_API_LEVEL"; then if test -z "$ANDROID_API_LEVEL"; then
echo 'Fatal: you must define __ANDROID_API__' as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5
exit 1
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -6193,11 +6192,14 @@ fi
rm -f conftest.c conftest.out rm -f conftest.c conftest.out
# Check for unsupported systems # Check for unsupported systems
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in #(
atheos*|Linux*/1*) atheos*|Linux*/1*) :
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
echo See README for details. as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5
exit 1;;
;; #(
*) :
;;
esac esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
@ -13159,16 +13161,19 @@ fi
if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
echo "using lib$ipv6lib" { $as_echo "$as_me:${as_lineno-$LINENO}: using lib$ipv6lib" >&5
$as_echo "$as_me: using lib$ipv6lib" >&6;}
else else
if test $ipv6trylibc = "yes"; then if test "x$ipv6trylibc" = xyes; then :
echo "using libc"
else { $as_echo "$as_me:${as_lineno-$LINENO}: using libc" >&5
echo 'Fatal: no $ipv6lib library found. cannot continue.' $as_echo "$as_me: using libc" >&6;}
echo "You need to fetch lib$ipv6lib.a from appropriate"
echo 'ipv6 kit and compile beforehand.' else
exit 1
fi as_fn_error $? "No $ipv6lib library found; cannot continue. You need to fetch lib$ipv6lib.a from appropriate ipv6 kit and compile beforehand." "$LINENO" 5
fi
fi fi
fi fi
@ -16522,12 +16527,11 @@ fi
if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
then then
if test $ipv6 = yes if test "x$ipv6" = xyes; then :
then
echo 'Fatal: You must get working getaddrinfo() function.' as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
echo ' or you can specify "--disable-ipv6"'.
exit 1 fi
fi
else else
$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
@ -25071,28 +25075,34 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi fi
echo "creating Modules/Setup.local" >&6 { $as_echo "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
$as_echo "$as_me: creating Modules/Setup.local" >&6;}
if test ! -f Modules/Setup.local if test ! -f Modules/Setup.local
then then
echo "# Edit this file for local setup changes" >Modules/Setup.local echo "# Edit this file for local setup changes" >Modules/Setup.local
fi fi
echo "creating Makefile" >&6 { $as_echo "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
$as_echo "$as_me: creating Makefile" >&6;}
$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
-s Modules \ -s Modules \
Modules/Setup.local $srcdir/Modules/Setup.bootstrap $srcdir/Modules/Setup Modules/Setup.local $srcdir/Modules/Setup.bootstrap $srcdir/Modules/Setup
mv config.c Modules mv config.c Modules
if test -z "$PKG_CONFIG"; then if test -z "$PKG_CONFIG"; then
echo "" >&6 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
echo "pkg-config is missing. Some dependencies may not be detected correctly." >&6 $as_echo "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
fi fi
if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
echo "" >&6 { $as_echo "$as_me:${as_lineno-$LINENO}:
echo "" >&6
echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 If you want a release build with all stable optimizations active (PGO, etc),
echo "please run ./configure --enable-optimizations" >&6 please run ./configure --enable-optimizations
echo "" >&6 " >&5
echo "" >&6 $as_echo "$as_me:
If you want a release build with all stable optimizations active (PGO, etc),
please run ./configure --enable-optimizations
" >&6;}
fi fi

View File

@ -1037,8 +1037,7 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
_arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
AC_MSG_RESULT([$ANDROID_API_LEVEL]) AC_MSG_RESULT([$ANDROID_API_LEVEL])
if test -z "$ANDROID_API_LEVEL"; then if test -z "$ANDROID_API_LEVEL"; then
echo 'Fatal: you must define __ANDROID_API__' AC_MSG_ERROR([Fatal: you must define __ANDROID_API__])
exit 1
fi fi
AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API level.]) AC_DEFINE_UNQUOTED(ANDROID_API_LEVEL, $ANDROID_API_LEVEL, [The Android API level.])
@ -1054,12 +1053,14 @@ fi
rm -f conftest.c conftest.out rm -f conftest.c conftest.out
# Check for unsupported systems # Check for unsupported systems
case $ac_sys_system/$ac_sys_release in AS_CASE([$ac_sys_system/$ac_sys_release],
atheos*|Linux*/1*) [atheos*|Linux*/1*], [
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. AC_MSG_ERROR([m4_normalize([
echo See README for details. This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
exit 1;; See README for details.
esac ])])
]
)
AC_MSG_CHECKING([for --with-suffix]) AC_MSG_CHECKING([for --with-suffix])
AC_ARG_WITH([suffix], AC_ARG_WITH([suffix],
@ -3795,16 +3796,17 @@ fi
if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
echo "using lib$ipv6lib" AC_MSG_NOTICE([using lib$ipv6lib])
else else
if test $ipv6trylibc = "yes"; then AS_VAR_IF([ipv6trylibc], [yes], [
echo "using libc" AC_MSG_NOTICE([using libc])
else ], [
echo 'Fatal: no $ipv6lib library found. cannot continue.' AC_MSG_ERROR([m4_normalize([
echo "You need to fetch lib$ipv6lib.a from appropriate" No $ipv6lib library found; cannot continue.
echo 'ipv6 kit and compile beforehand.' You need to fetch lib$ipv6lib.a from appropriate
exit 1 ipv6 kit and compile beforehand.
fi ])])
])
fi fi
fi fi
@ -4510,12 +4512,12 @@ dnl if ac_cv_func_getaddrinfo
if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
then then
if test $ipv6 = yes AS_VAR_IF([ipv6], [yes], [
then AC_MSG_ERROR([m4_normalize([
echo 'Fatal: You must get working getaddrinfo() function.' You must get working getaddrinfo() function
echo ' or you can specify "--disable-ipv6"'. or pass the "--disable-ipv6" option to configure.
exit 1 ])])
fi ])
else else
AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if you have the getaddrinfo function.]) AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if you have the getaddrinfo function.])
fi fi
@ -6494,28 +6496,26 @@ AC_CONFIG_FILES([Modules/Setup.stdlib])
AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix]) AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix])
AC_OUTPUT AC_OUTPUT
echo "creating Modules/Setup.local" >&AS_MESSAGE_FD AC_MSG_NOTICE([creating Modules/Setup.local])
if test ! -f Modules/Setup.local if test ! -f Modules/Setup.local
then then
echo "# Edit this file for local setup changes" >Modules/Setup.local echo "# Edit this file for local setup changes" >Modules/Setup.local
fi fi
echo "creating Makefile" >&AS_MESSAGE_FD AC_MSG_NOTICE([creating Makefile])
$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
-s Modules \ -s Modules \
Modules/Setup.local $srcdir/Modules/Setup.bootstrap $srcdir/Modules/Setup Modules/Setup.local $srcdir/Modules/Setup.bootstrap $srcdir/Modules/Setup
mv config.c Modules mv config.c Modules
if test -z "$PKG_CONFIG"; then if test -z "$PKG_CONFIG"; then
echo "" >&AS_MESSAGE_FD AC_MSG_WARN([pkg-config is missing. Some dependencies may not be detected correctly.])
echo "pkg-config is missing. Some dependencies may not be detected correctly." >&AS_MESSAGE_FD
fi fi
if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
echo "" >&AS_MESSAGE_FD AC_MSG_NOTICE([
echo "" >&AS_MESSAGE_FD
echo "If you want a release build with all stable optimizations active (PGO, etc)," >&AS_MESSAGE_FD If you want a release build with all stable optimizations active (PGO, etc),
echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD please run ./configure --enable-optimizations
echo "" >&AS_MESSAGE_FD ])
echo "" >&AS_MESSAGE_FD
fi fi