23820
# Find optional libcdio
23823
{ echo "$as_me:$LINENO: checking for CDIO" >&5
23824
echo $ECHO_N "checking for CDIO... $ECHO_C" >&6; }
23826
if test -n "$PKG_CONFIG"; then
23827
if test -n "$CDIO_CFLAGS"; then
23828
pkg_cv_CDIO_CFLAGS="$CDIO_CFLAGS"
23830
if test -n "$PKG_CONFIG" && \
23831
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.70\"") >&5
23832
($PKG_CONFIG --exists --print-errors "libcdio >= 0.70") 2>&5
23834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835
(exit $ac_status); }; then
23836
pkg_cv_CDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.70" 2>/dev/null`
23844
if test -n "$PKG_CONFIG"; then
23845
if test -n "$CDIO_LIBS"; then
23846
pkg_cv_CDIO_LIBS="$CDIO_LIBS"
23848
if test -n "$PKG_CONFIG" && \
23849
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.70\"") >&5
23850
($PKG_CONFIG --exists --print-errors "libcdio >= 0.70") 2>&5
23852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853
(exit $ac_status); }; then
23854
pkg_cv_CDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.70" 2>/dev/null`
23865
if test $pkg_failed = yes; then
23867
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23868
_pkg_short_errors_supported=yes
23870
_pkg_short_errors_supported=no
23872
if test $_pkg_short_errors_supported = yes; then
23873
CDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcdio >= 0.70"`
23875
CDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio >= 0.70"`
23877
# Put the nasty error message in config.log where it belongs
23878
echo "$CDIO_PKG_ERRORS" >&5
23880
{ echo "$as_me:$LINENO: result: no" >&5
23881
echo "${ECHO_T}no" >&6; }
23883
elif test $pkg_failed = untried; then
23886
CDIO_CFLAGS=$pkg_cv_CDIO_CFLAGS
23887
CDIO_LIBS=$pkg_cv_CDIO_LIBS
23888
{ echo "$as_me:$LINENO: result: yes" >&5
23889
echo "${ECHO_T}yes" >&6; }
23894
if test "$have_cdio" = "yes"; then
23896
HAVE_LIBCDIO_FALSE='#'
23898
HAVE_LIBCDIO_TRUE='#'
23899
HAVE_LIBCDIO_FALSE=
23902
if test "$have_cdio" = "yes" ; then
23904
cat >>confdefs.h <<\_ACEOF
23905
#define HAVE_LIBCDIO 1
23910
# Find optional MusicBrainz3 and required Musicbrainz2
23913
{ echo "$as_me:$LINENO: checking for MUSICBRAINZ3" >&5
23914
echo $ECHO_N "checking for MUSICBRAINZ3... $ECHO_C" >&6; }
23916
if test -n "$PKG_CONFIG"; then
23917
if test -n "$MUSICBRAINZ3_CFLAGS"; then
23918
pkg_cv_MUSICBRAINZ3_CFLAGS="$MUSICBRAINZ3_CFLAGS"
23920
if test -n "$PKG_CONFIG" && \
23921
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmusicbrainz3\"") >&5
23922
($PKG_CONFIG --exists --print-errors "libmusicbrainz3") 2>&5
23924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925
(exit $ac_status); }; then
23926
pkg_cv_MUSICBRAINZ3_CFLAGS=`$PKG_CONFIG --cflags "libmusicbrainz3" 2>/dev/null`
23934
if test -n "$PKG_CONFIG"; then
23935
if test -n "$MUSICBRAINZ3_LIBS"; then
23936
pkg_cv_MUSICBRAINZ3_LIBS="$MUSICBRAINZ3_LIBS"
23938
if test -n "$PKG_CONFIG" && \
23939
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmusicbrainz3\"") >&5
23940
($PKG_CONFIG --exists --print-errors "libmusicbrainz3") 2>&5
23942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943
(exit $ac_status); }; then
23944
pkg_cv_MUSICBRAINZ3_LIBS=`$PKG_CONFIG --libs "libmusicbrainz3" 2>/dev/null`
23955
if test $pkg_failed = yes; then
23957
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23958
_pkg_short_errors_supported=yes
23960
_pkg_short_errors_supported=no
23962
if test $_pkg_short_errors_supported = yes; then
23963
MUSICBRAINZ3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmusicbrainz3"`
23965
MUSICBRAINZ3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmusicbrainz3"`
23967
# Put the nasty error message in config.log where it belongs
23968
echo "$MUSICBRAINZ3_PKG_ERRORS" >&5
23970
{ echo "$as_me:$LINENO: result: no" >&5
23971
echo "${ECHO_T}no" >&6; }
23973
elif test $pkg_failed = untried; then
23976
MUSICBRAINZ3_CFLAGS=$pkg_cv_MUSICBRAINZ3_CFLAGS
23977
MUSICBRAINZ3_LIBS=$pkg_cv_MUSICBRAINZ3_LIBS
23978
{ echo "$as_me:$LINENO: result: yes" >&5
23979
echo "${ECHO_T}yes" >&6; }
23984
if test "$have_mb3" = "yes"; then
23985
HAVE_MUSICBRAINZ3_TRUE=
23986
HAVE_MUSICBRAINZ3_FALSE='#'
23988
HAVE_MUSICBRAINZ3_TRUE='#'
23989
HAVE_MUSICBRAINZ3_FALSE=
23992
if test "$have_mb3" = "yes" ; then
23994
cat >>confdefs.h <<\_ACEOF
23995
#define HAVE_MUSIZBRAINZ3 1
23815
24001
pkg_failed=no
23816
24002
{ echo "$as_me:$LINENO: checking for MUSICBRAINZ" >&5
24024
24210
LIBS="$oldlibs"
24026
# Find the optional dependency libcdio
24029
{ echo "$as_me:$LINENO: checking for CDIO" >&5
24030
echo $ECHO_N "checking for CDIO... $ECHO_C" >&6; }
24032
if test -n "$PKG_CONFIG"; then
24033
if test -n "$CDIO_CFLAGS"; then
24034
pkg_cv_CDIO_CFLAGS="$CDIO_CFLAGS"
24036
if test -n "$PKG_CONFIG" && \
24037
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.70\"") >&5
24038
($PKG_CONFIG --exists --print-errors "libcdio >= 0.70") 2>&5
24040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041
(exit $ac_status); }; then
24042
pkg_cv_CDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.70" 2>/dev/null`
24050
if test -n "$PKG_CONFIG"; then
24051
if test -n "$CDIO_LIBS"; then
24052
pkg_cv_CDIO_LIBS="$CDIO_LIBS"
24054
if test -n "$PKG_CONFIG" && \
24055
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.70\"") >&5
24056
($PKG_CONFIG --exists --print-errors "libcdio >= 0.70") 2>&5
24058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059
(exit $ac_status); }; then
24060
pkg_cv_CDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.70" 2>/dev/null`
24071
if test $pkg_failed = yes; then
24073
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24074
_pkg_short_errors_supported=yes
24076
_pkg_short_errors_supported=no
24078
if test $_pkg_short_errors_supported = yes; then
24079
CDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcdio >= 0.70"`
24081
CDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio >= 0.70"`
24083
# Put the nasty error message in config.log where it belongs
24084
echo "$CDIO_PKG_ERRORS" >&5
24086
{ echo "$as_me:$LINENO: result: no" >&5
24087
echo "${ECHO_T}no" >&6; }
24089
elif test $pkg_failed = untried; then
24092
CDIO_CFLAGS=$pkg_cv_CDIO_CFLAGS
24093
CDIO_LIBS=$pkg_cv_CDIO_LIBS
24094
{ echo "$as_me:$LINENO: result: yes" >&5
24095
echo "${ECHO_T}yes" >&6; }
24101
if test "$have_cdio" != "yes"; then
24102
{ echo "$as_me:$LINENO: WARNING: libcdio not found, cannot get track names from CD-TEXT" >&5
24103
echo "$as_me: WARNING: libcdio not found, cannot get track names from CD-TEXT" >&2;}
24106
if test "$have_cdio" = "yes"; then
24108
HAVE_CDIO_FALSE='#'
24115
# Find TagLib for the internal copy of id3mux
24118
{ echo "$as_me:$LINENO: checking for TAGLIB" >&5
24119
echo $ECHO_N "checking for TAGLIB... $ECHO_C" >&6; }
24121
if test -n "$PKG_CONFIG"; then
24122
if test -n "$TAGLIB_CFLAGS"; then
24123
pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS"
24125
if test -n "$PKG_CONFIG" && \
24126
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"taglib\"") >&5
24127
($PKG_CONFIG --exists --print-errors "taglib") 2>&5
24129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130
(exit $ac_status); }; then
24131
pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib" 2>/dev/null`
24139
if test -n "$PKG_CONFIG"; then
24140
if test -n "$TAGLIB_LIBS"; then
24141
pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS"
24143
if test -n "$PKG_CONFIG" && \
24144
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"taglib\"") >&5
24145
($PKG_CONFIG --exists --print-errors "taglib") 2>&5
24147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148
(exit $ac_status); }; then
24149
pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib" 2>/dev/null`
24160
if test $pkg_failed = yes; then
24162
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24163
_pkg_short_errors_supported=yes
24165
_pkg_short_errors_supported=no
24167
if test $_pkg_short_errors_supported = yes; then
24168
TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "taglib"`
24170
TAGLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "taglib"`
24172
# Put the nasty error message in config.log where it belongs
24173
echo "$TAGLIB_PKG_ERRORS" >&5
24175
{ echo "$as_me:$LINENO: result: no" >&5
24176
echo "${ECHO_T}no" >&6; }
24178
elif test $pkg_failed = untried; then
24181
TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS
24182
TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS
24183
{ echo "$as_me:$LINENO: result: yes" >&5
24184
echo "${ECHO_T}yes" >&6; }
24190
if test "$have_taglib" != "yes"; then
24191
{ echo "$as_me:$LINENO: WARNING: taglib not found, cannot handle missing id3mux" >&5
24192
echo "$as_me: WARNING: taglib not found, cannot handle missing id3mux" >&2;}
24195
if test "$have_taglib" = "yes"; then
24197
HAVE_TAGLIB_FALSE='#'
24199
HAVE_TAGLIB_TRUE='#'
24212
# Find gio for the metadata extractor
24215
{ echo "$as_me:$LINENO: checking for GIO" >&5
24216
echo $ECHO_N "checking for GIO... $ECHO_C" >&6; }
24218
if test -n "$PKG_CONFIG"; then
24219
if test -n "$GIO_CFLAGS"; then
24220
pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
24222
if test -n "$PKG_CONFIG" && \
24223
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
24224
($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
24226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227
(exit $ac_status); }; then
24228
pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
24236
if test -n "$PKG_CONFIG"; then
24237
if test -n "$GIO_LIBS"; then
24238
pkg_cv_GIO_LIBS="$GIO_LIBS"
24240
if test -n "$PKG_CONFIG" && \
24241
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
24242
($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
24244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245
(exit $ac_status); }; then
24246
pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
24257
if test $pkg_failed = yes; then
24259
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24260
_pkg_short_errors_supported=yes
24262
_pkg_short_errors_supported=no
24264
if test $_pkg_short_errors_supported = yes; then
24265
GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0"`
24267
GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0"`
24269
# Put the nasty error message in config.log where it belongs
24270
echo "$GIO_PKG_ERRORS" >&5
24272
{ { echo "$as_me:$LINENO: error: Package requirements (gio-2.0) were not met:
24276
Consider adjusting the PKG_CONFIG_PATH environment variable if you
24277
installed software in a non-standard prefix.
24279
Alternatively, you may set the environment variables GIO_CFLAGS
24280
and GIO_LIBS to avoid the need to call pkg-config.
24281
See the pkg-config man page for more details.
24283
echo "$as_me: error: Package requirements (gio-2.0) were not met:
24287
Consider adjusting the PKG_CONFIG_PATH environment variable if you
24288
installed software in a non-standard prefix.
24290
Alternatively, you may set the environment variables GIO_CFLAGS
24291
and GIO_LIBS to avoid the need to call pkg-config.
24292
See the pkg-config man page for more details.
24294
{ (exit 1); exit 1; }; }
24295
elif test $pkg_failed = untried; then
24296
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24297
is in your PATH or set the PKG_CONFIG environment variable to the full
24298
path to pkg-config.
24300
Alternatively, you may set the environment variables GIO_CFLAGS
24301
and GIO_LIBS to avoid the need to call pkg-config.
24302
See the pkg-config man page for more details.
24304
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24305
See \`config.log' for more details." >&5
24306
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24307
is in your PATH or set the PKG_CONFIG environment variable to the full
24308
path to pkg-config.
24310
Alternatively, you may set the environment variables GIO_CFLAGS
24311
and GIO_LIBS to avoid the need to call pkg-config.
24312
See the pkg-config man page for more details.
24314
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24315
See \`config.log' for more details." >&2;}
24316
{ (exit 1); exit 1; }; }
24318
GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
24319
GIO_LIBS=$pkg_cv_GIO_LIBS
24320
{ echo "$as_me:$LINENO: result: yes" >&5
24321
echo "${ECHO_T}yes" >&6; }
24204
24327
# Find how and where to put the GConf schemas
25273
25398
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
25274
25399
AM_CFLAGS!$AM_CFLAGS$ac_delim
25275
25400
AM_CXXFLAGS!$AM_CXXFLAGS$ac_delim
25403
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25405
elif $ac_last_try; then
25406
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25407
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25408
{ (exit 1); exit 1; }; }
25410
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25414
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25415
if test -n "$ac_eof"; then
25416
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25417
ac_eof=`expr $ac_eof + 1`
25420
cat >>$CONFIG_STATUS <<_ACEOF
25421
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25422
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25425
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25426
s/^/s,@/; s/!/@,|#_!!_#|/
25429
s/'"$ac_delim"'$/,g/; t
25431
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25432
' >>$CONFIG_STATUS <conf$$subs.sed
25433
rm -f conf$$subs.sed
25434
cat >>$CONFIG_STATUS <<_ACEOF
25440
for ac_last_try in false false false false false :; do
25441
cat >conf$$subs.sed <<_ACEOF
25276
25442
AM_LDFLAGS!$AM_LDFLAGS$ac_delim
25277
25443
LIBOBJS!$LIBOBJS$ac_delim
25280
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25282
elif $ac_last_try; then
25283
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25284
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25285
{ (exit 1); exit 1; }; }
25287
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25291
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25292
if test -n "$ac_eof"; then
25293
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25294
ac_eof=`expr $ac_eof + 1`
25297
cat >>$CONFIG_STATUS <<_ACEOF
25298
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25299
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25302
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25303
s/^/s,@/; s/!/@,|#_!!_#|/
25306
s/'"$ac_delim"'$/,g/; t
25308
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25309
' >>$CONFIG_STATUS <conf$$subs.sed
25310
rm -f conf$$subs.sed
25311
cat >>$CONFIG_STATUS <<_ACEOF
25317
for ac_last_try in false false false false false :; do
25318
cat >conf$$subs.sed <<_ACEOF
25319
25444
LTLIBOBJS!$LTLIBOBJS$ac_delim
25322
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
25447
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
25324
25449
elif $ac_last_try; then
25325
25450
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5