configure.in: fold summary

* configure.in: fold long lines in configuration summary

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-02-28 14:14:44 +00:00
parent 7b91046b29
commit 0927f83041

View File

@ -4532,40 +4532,47 @@ AC_OUTPUT
} }
} }
AS_IF([${FOLD+:} false], [], [
AS_IF([test "`echo abcdefg hijklmno | fold -s -w10 | sed 1d`" = hijklmno], [FOLD="fold"], [FOLD=])
])
AS_REQUIRE_SHELL_FN([config_summary],
[AS_FUNCTION_DESCRIBE([config_summary], [NAME, VAL], [configuration summary])],
[AS_IF([test -z "$2"], [], [
AS_ECHO_N([" * $1: "]) | head -c26
AS_IF([test "$FOLD"], [
echo "$2" | fold -s -w50 |
sed '1!s/^/ /;$!s/$/\\/'
], [echo "$2"])
])]
)
echo "---" echo "---"
echo "Configuration summary for $RUBY_BASE_NAME version $RUBY_PROGRAM_VERSION" echo "Configuration summary for $RUBY_BASE_NAME version $RUBY_PROGRAM_VERSION"
echo "" echo ""
echo " * Installation prefix: $prefix" config_summary "Installation prefix" "$prefix"
echo " * exec prefix: $exec_prefix" config_summary "exec prefix" "$exec_prefix"
echo " * arch: $arch" config_summary "arch" "$arch"
echo " * site arch: $sitearch" config_summary "site arch" "$sitearch"
echo " * RUBY_BASE_NAME: $RUBY_BASE_NAME" config_summary "RUBY_BASE_NAME" "$RUBY_BASE_NAME"
echo " * ruby lib prefix: $rubylibprefix" config_summary "enable shared" "$enable_shared"
echo " * site libraries path: $rubysitearchprefix" config_summary "ruby lib prefix" "$rubylibprefix"
echo " * vendor path: $vendordir" config_summary "site libraries path" "$rubysitearchprefix"
echo " * target OS: $target_os" config_summary "vendor path" "$vendordir"
echo " * compiler: $CC" config_summary "target OS" "$target_os"
echo " * with pthread: $enable_pthread" config_summary "compiler" "$CC"
echo " * enable shared libs: $ENABLE_SHARED" config_summary "with pthread" "$enable_pthread"
echo " * dynamic library ext: $DLEXT" config_summary "enable shared libs" "$ENABLE_SHARED"
if test "$(eval echo $cflags)" != ""; then config_summary "dynamic library ext" "$DLEXT"
echo " * CFLAGS: $(eval echo $cflags)" config_summary "CFLAGS" "$cflags"
fi config_summary "CPPFLAGS" "$cppflags"
if test "$(eval echo $cppflags)" != ""; then config_summary "LDFLAGS" "$LDFLAGS"
echo " * CPPFLAGS: $cppflags" config_summary "optflags" "$optflags"
fi config_summary "debugflags" "$debugflags"
echo " * LDFLAGS: $LDFLAGS" config_summary "warnflags" "$warnflags"
echo " * strip command: $STRIP" config_summary "strip command" "$STRIP"
echo " * install doc: $install_doc" config_summary "install doc" "$install_doc"
echo " * man page type: $MANTYPE" config_summary "man page type" "$MANTYPE"
if test "$kcode" != ""; then config_summary "search path" "$search_path"
echo " * kcode: $kcode" config_summary "static-linked-ext" ${EXTSTATIC:+"yes"}
fi
if test "$search_path" != ""; then
echo " * search path: $search_path"
fi
if test -n "$EXTSTATIC"; then
echo " * static-linked-ext: yes"
fi
echo "" echo ""
echo "---" echo "---"