configure: Pull from Non-DAW.
This commit is contained in:
parent
cdcd6516e7
commit
d68f09691e
4
Makefile
4
Makefile
|
@ -29,9 +29,9 @@ CFLAGS+=-DVERSION=\"$(VERSION)\" \
|
||||||
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
|
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
|
||||||
-DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\"
|
-DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\"
|
||||||
|
|
||||||
CXXFLAGS:=$(CFLAGS) $(CXXFLAGS) $(FLTK_CFLAGS) $(sigcpp_CFLAGS) $(LASH_CFLAGS)
|
CXXFLAGS:=$(CFLAGS) $(CXXFLAGS) $(FLTK_CFLAGS) $(SIGCPP_CFLAGS) $(LASH_CFLAGS)
|
||||||
|
|
||||||
LIBS:=$(FLTK_LIBS) $(JACK_LIBS) $(LASH_LIBS) $(sigcpp_LIBS)
|
LIBS:=$(FLTK_LIBS) $(JACK_LIBS) $(LASH_LIBS) $(SIGCPP_LIBS)
|
||||||
|
|
||||||
ifeq ($(JACK_MIDI_PROTO_API),yes)
|
ifeq ($(JACK_MIDI_PROTO_API),yes)
|
||||||
CXXFLAGS+=-DJACK_MIDI_PROTO_API
|
CXXFLAGS+=-DJACK_MIDI_PROTO_API
|
||||||
|
|
|
@ -57,9 +57,14 @@ using ()
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upcase ()
|
||||||
|
{
|
||||||
|
echo "$*" | tr '[[:lower:]]' '[[:upper:]]'
|
||||||
|
}
|
||||||
|
|
||||||
extract_options ()
|
extract_options ()
|
||||||
{
|
{
|
||||||
local line;
|
local line name value
|
||||||
|
|
||||||
if [ -f make.conf ]
|
if [ -f make.conf ]
|
||||||
then
|
then
|
||||||
|
@ -75,7 +80,9 @@ extract_options ()
|
||||||
then
|
then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
eval "$line"
|
name=${line%=*}
|
||||||
|
value=${line#*=}
|
||||||
|
eval "$name='$value'"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
} < make.conf
|
} < make.conf
|
||||||
|
@ -133,6 +140,8 @@ require_command ()
|
||||||
|
|
||||||
require_package ()
|
require_package ()
|
||||||
{
|
{
|
||||||
|
local name
|
||||||
|
|
||||||
echo -n "Checking for $BOLD$1$SGR0..."
|
echo -n "Checking for $BOLD$1$SGR0..."
|
||||||
if ! pkg-config --exists $3
|
if ! pkg-config --exists $3
|
||||||
then
|
then
|
||||||
|
@ -144,8 +153,9 @@ require_package ()
|
||||||
fatal "The installed version of $1 (`pkg-config --mod-version $3`) is too old."
|
fatal "The installed version of $1 (`pkg-config --mod-version $3`) is too old."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
append "${1}_LIBS=`pkg-config --libs $3`"
|
name="`upcase \"$1\"`"
|
||||||
append "${1}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`"
|
append "${name}_LIBS=`pkg-config --libs $3`"
|
||||||
|
append "${name}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`"
|
||||||
|
|
||||||
ok
|
ok
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue