2008-05-16 21:12:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2008 Jonathan Moore Liles
|
2008-05-18 04:44:47 +02:00
|
|
|
# This file is licensed under version 2 of the GPL.
|
2008-05-16 21:12:52 +02:00
|
|
|
|
2008-05-18 04:44:47 +02:00
|
|
|
. scripts/config-funcs
|
2008-05-16 21:12:52 +02:00
|
|
|
|
2008-05-18 04:44:47 +02:00
|
|
|
begin
|
2008-05-16 21:12:52 +02:00
|
|
|
|
2008-05-18 04:44:47 +02:00
|
|
|
begin_options
|
2008-05-16 23:38:07 +02:00
|
|
|
|
2008-05-26 20:44:17 +02:00
|
|
|
ask "Installation prefix" prefix /usr/local
|
2008-05-25 18:26:53 +02:00
|
|
|
ask "Build for debugging" USE_DEBUG no
|
2008-05-16 23:38:07 +02:00
|
|
|
|
2010-01-08 07:04:28 +01:00
|
|
|
using DEBUG &&
|
2010-01-25 03:49:28 +01:00
|
|
|
{
|
2010-01-08 06:35:50 +01:00
|
|
|
ask "Use unoptimized drawing routines" USE_UNOPTIMIZED_DRAWING no
|
2010-01-08 07:04:28 +01:00
|
|
|
ask "Use widget for timeline" USE_WIDGET_FOR_TIMELINE no
|
|
|
|
using WIDGET_FOR_TIMELINE || ask "Use singlebuffered timeline" USE_SINGLEBUFFERED_TIMELINE no
|
2010-01-08 06:35:50 +01:00
|
|
|
}
|
2010-01-08 06:26:10 +01:00
|
|
|
|
2008-05-18 04:44:47 +02:00
|
|
|
begin_tests
|
2008-05-16 21:12:52 +02:00
|
|
|
|
2008-07-20 22:31:57 +02:00
|
|
|
require_FLTK 1.1.7 images
|
2008-05-18 04:44:47 +02:00
|
|
|
require_command FLUID fluid
|
2009-12-13 00:41:32 +01:00
|
|
|
require_command ar ar
|
2009-12-11 07:29:52 +01:00
|
|
|
require_command makedepend makedepend
|
2008-05-18 04:44:47 +02:00
|
|
|
require_package JACK 0.103.0 jack
|
2008-05-20 22:29:10 +02:00
|
|
|
require_package sndfile 1.0.17 sndfile
|
2010-01-21 01:33:02 +01:00
|
|
|
require_package liblo 0.23 liblo
|
2012-02-26 02:22:42 +01:00
|
|
|
require_package sigcpp 2.0.0 sigc++-2.0
|
2012-02-29 06:24:51 +01:00
|
|
|
suggest_package XPM 2.0.0 xpm
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-03-04 09:08:07 +01:00
|
|
|
if ! hostname_resolvable
|
|
|
|
then
|
|
|
|
echo "Your hostname \"$(hostname)\" does not resolve to a valid address."
|
|
|
|
echo "This is a broken configuration and will cause liblo (the"
|
|
|
|
echo "OSC library) to fail to function. Add the line:"
|
|
|
|
echo
|
|
|
|
echo "127.0.0.1 $(hostname)"
|
|
|
|
echo
|
|
|
|
echo "to your /etc/hosts file to fix. And consider switching to a saner distribution."
|
|
|
|
echo
|
|
|
|
fail "Invalid hostname!"
|
|
|
|
fi
|
|
|
|
|
2012-03-03 01:29:59 +01:00
|
|
|
if ! test_version 1.1.10 $FLTK_VERSION
|
|
|
|
then
|
|
|
|
warn "*** PERFORMANCE WARNING ***"
|
|
|
|
warn ""
|
|
|
|
warn "Your FLTK version is $FLTK_VERSION."
|
|
|
|
warn ""
|
|
|
|
warn "FLTK version 1.3.0 introduced a bug which slows down the"
|
|
|
|
warn "drawing of Non-DAW's timeline by a factor of thousands."
|
|
|
|
warn ""
|
|
|
|
warn "Install FLTK 1.1.10 and try again."
|
|
|
|
warn ""
|
|
|
|
warn "Alternatively, you can rerun configure and answer 'yes' to"
|
|
|
|
warn "the question 'Use widget for timeline'. It will be fast, but"
|
|
|
|
warn "you won't be able to see the playhead."
|
|
|
|
warn ""
|
|
|
|
warn "Please send any and all complaints to the FLTK developers!"
|
|
|
|
fi
|
|
|
|
|
2010-01-21 01:33:02 +01:00
|
|
|
test_version `version_of liblo` 0.26 || warn "Version $(version_of liblo) of liblo is slow to create servers. Consider upgrading to 0.26 or later"
|
2008-05-16 21:12:52 +02:00
|
|
|
|
2008-05-18 04:44:47 +02:00
|
|
|
end
|