configure: cleanups.

This commit is contained in:
Jonathan Moore Liles 2008-05-26 13:44:17 -05:00
parent 8dd0f3ee33
commit ab7cab34bd
2 changed files with 18 additions and 10 deletions

4
configure vendored
View File

@ -9,8 +9,8 @@ begin
begin_options
ask "Install prefix" prefix /usr/local
ask "Require LASH" USE_LASH yes
ask "Installation prefix" prefix /usr/local
ask "Use the LASH Audio Session Handler" USE_LASH yes
ask "Build for debugging" USE_DEBUG no
begin_tests

View File

@ -7,7 +7,6 @@
# support functions for 'configure' scripts.
fatal ()
{
echo "$BOLD$RED$*$SGR0" > /dev/stderr
@ -164,6 +163,11 @@ warn ()
echo " ${BOLD}${YELLOW}* ${SGR0}$*"
}
info ()
{
echo "${BOLD}${CYAN}--- ${SGR0}$*"
}
begin_options ()
{
# get the old values
@ -172,9 +176,9 @@ begin_options ()
if [ $HELP = yes ]
then
echo
warn "This is not an autoconf script! Run without any arguments and you will be prompted."
warn "Alternatively, you may use the following autoconf style arguments for"
warn "non-interactive configuration."
warn "This is a ${BOLD}non-configure${SGR0} script. Run without any arguments and you will be prompted"
warn "with configuration choices. Alternatively, you may use the following autoconf style"
warn "arguments for non-interactive configuration."
echo
echo " Available options:"
echo
@ -185,16 +189,20 @@ begin_options ()
if [ $UPDATE = yes ]
then
echo "--- Updating configuration ---"
info "Updating configuration"
else
echo "--- Configuration required ---"
info "Configuration required"
fi
fi
}
begin_tests ()
{
[ $HELP = yes ] && exit 0
if [ $HELP = yes ]
then
echo
exit 0;
fi
append "## libs"
extract_options
@ -207,7 +215,7 @@ append ()
end ()
{
echo "--- Configuration complete ---"
info "Configuration complete"
touch make.conf
}