|
@@ -66,12 +66,13 @@ set_default() {
|
|
|
with_iconv="1"
|
|
|
with_midi=""
|
|
|
with_midi_arg=""
|
|
|
with_libtimidity="1"
|
|
|
with_freetype="1"
|
|
|
with_fontconfig="1"
|
|
|
with_icu="1"
|
|
|
with_psp_config="1"
|
|
|
with_threads="1"
|
|
|
with_distcc="1"
|
|
|
with_ccache="1"
|
|
|
|
|
|
save_params_array="
|
|
@@ -130,12 +131,13 @@ set_default() {
|
|
|
with_iconv
|
|
|
with_midi
|
|
|
with_midi_arg
|
|
|
with_libtimidity
|
|
|
with_freetype
|
|
|
with_fontconfig
|
|
|
with_icu
|
|
|
with_psp_config
|
|
|
with_threads
|
|
|
with_distcc
|
|
|
with_ccache
|
|
|
CC CXX CFLAGS LDFLAGS"
|
|
|
}
|
|
@@ -317,12 +319,19 @@ detect_params() {
|
|
|
--without-fontconfig) with_fontconfig="0";;
|
|
|
--with-fontconfig=*) with_fontconfig="$optarg";;
|
|
|
--with-libfontconfig) with_fontconfig="2";;
|
|
|
--without-libfontconfig) with_fontconfig="0";;
|
|
|
--with-libfontconfig=*) with_fontconfig="$optarg";;
|
|
|
|
|
|
--with-icu) with_icu="2";;
|
|
|
--without-icu) with_icu="0";;
|
|
|
--with-icu=*) with_icu="$optarg";;
|
|
|
--with-libicu) with_icu="2";;
|
|
|
--without-libicu) with_icu="0";;
|
|
|
--with-libicu=*) with_icu="$optarg";;
|
|
|
|
|
|
--with-psp-config) with_psp_config="2";;
|
|
|
--without-psp-config) with_psp_config="0";;
|
|
|
--with-psp-config=*) with_psp_config="$optarg";;
|
|
|
|
|
|
--with-makedepend) with_makedepend="2";;
|
|
|
--without-makedepend) with_makedepend="0";;
|
|
@@ -601,12 +610,13 @@ check_params() {
|
|
|
fi
|
|
|
|
|
|
detect_zlib
|
|
|
detect_png
|
|
|
detect_freetype
|
|
|
detect_fontconfig
|
|
|
detect_icu
|
|
|
detect_pspconfig
|
|
|
detect_libtimidity
|
|
|
|
|
|
if [ "$with_direct_music" = "1" ] || [ "$with_direct_music" = "2" ]; then
|
|
|
if [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ]; then
|
|
|
if [ "$with_direct_music" = "2" ]; then
|
|
@@ -1224,12 +1234,20 @@ make_cflags_and_ldflags() {
|
|
|
fi
|
|
|
else
|
|
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
if [ -n "$icu_config" ]; then
|
|
|
CFLAGS="$CFLAGS -DWITH_ICU"
|
|
|
CFLAGS="$CFLAGS `$icu_config --cppflags | tr '\n\r' ' '`"
|
|
|
|
|
|
LIBS="$LIBS `$icu_config --ldflags-libsonly | tr '\n\r' ' '`"
|
|
|
fi
|
|
|
|
|
|
|
|
|
if [ "$with_direct_music" != "0" ]; then
|
|
|
CFLAGS="$CFLAGS -DWIN32_ENABLE_DIRECTMUSIC_SUPPORT"
|
|
|
# GCC 4.0+ doesn't like the DirectX includes (gives tons of
|
|
|
# warnings on it we won't be able to fix). For now just
|
|
|
# suppress those warnings.
|
|
|
if [ $cc_version -ge 40 ]; then
|
|
@@ -2057,12 +2075,55 @@ detect_fontconfig() {
|
|
|
return 0
|
|
|
fi
|
|
|
|
|
|
log 1 "checking libfontconfig... found"
|
|
|
}
|
|
|
|
|
|
detect_icu() {
|
|
|
# 0 means no, 1 is auto-detect, 2 is force
|
|
|
if [ "$with_icu" = "0" ]; then
|
|
|
log 1 "checking libicu... disabled"
|
|
|
|
|
|
icu_config=""
|
|
|
return 0
|
|
|
fi
|
|
|
|
|
|
if [ "$with_icu" = "1" ] || [ "$with_icu" = "" ] || [ "$with_icu" = "2" ]; then
|
|
|
icu_config="icu-config"
|
|
|
else
|
|
|
icu_config="$with_icu"
|
|
|
fi
|
|
|
|
|
|
version=`$icu_config --version 2>/dev/null`
|
|
|
ret=$?
|
|
|
shortversion=`echo $version | cut -c 1,3`
|
|
|
log 2 "executing $icu_config --version"
|
|
|
log 2 " returned $version"
|
|
|
log 2 " exit code $ret"
|
|
|
|
|
|
if [ -z "$version" ] || [ "$ret" != "0" ] || [ "$shortversion" -lt "20" ]; then
|
|
|
if [ -n "$shortversion" ] && [ "$shortversion" -lt "20" ]; then
|
|
|
log 1 "checking libicu... needs at least version 2.0.0, icu NOT enabled"
|
|
|
else
|
|
|
log 1 "checking libicu... not found"
|
|
|
fi
|
|
|
|
|
|
# It was forced, so it should be found.
|
|
|
if [ "$with_icu" != "1" ]; then
|
|
|
log 1 "configure: error: icu-config couldn't be found"
|
|
|
log 1 "configure: error: you supplied '$with_icuconfig', but it seems invalid"
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
icu_config=""
|
|
|
return 0
|
|
|
fi
|
|
|
|
|
|
log 1 "checking libicu... found"
|
|
|
}
|
|
|
|
|
|
detect_pspconfig() {
|
|
|
# 0 means no, 1 is auto-detect, 2 is force
|
|
|
if [ "$with_psp_config" = "0" ]; then
|
|
|
log 1 "checking psp-config... disabled"
|
|
|
|
|
|
psp_config=""
|