3133
3183
... rest of stderr output deleted ...
3134
3184
10q' conftest.err >conftest.er1
3135
3185
cat conftest.er1 >&5
3136
rm -f conftest.er1 conftest.err
3187
rm -f conftest.er1 conftest.err
3138
3188
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139
3189
test $ac_status = 0; }
3142
3192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143
3193
/* end confdefs.h. */
3148
FILE *f = fopen ("conftest.out", "w");
3149
return ferror (f) || fclose (f) != 0;
3155
3203
ac_clean_files_save=$ac_clean_files
3156
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3204
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3157
3205
# Try to create an executable without -o first, disregard a.out.
3158
3206
# It will help us diagnose broken compilers, and finding out an intuition
3160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3161
$as_echo_n "checking for C compiler default output file name... " >&6; }
3208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209
$as_echo_n "checking whether the C compiler works... " >&6; }
3162
3210
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164
3212
# The possible output files:
3231
3279
{ as_fn_set_status 77
3232
3280
as_fn_error "C compiler cannot create executables
3233
3281
See \`config.log' for more details." "$LINENO" 5; }; }
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284
$as_echo "yes" >&6; }
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3287
$as_echo_n "checking for C compiler default output file name... " >&6; }
3288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3289
$as_echo "$ac_file" >&6; }
3235
3290
ac_exeext=$ac_cv_exeext
3237
# Check that the compiler produces executables we can run. If not, either
3238
# the compiler is broken, or we cross compile.
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240
$as_echo_n "checking whether the C compiler works... " >&6; }
3241
# If not cross compiling, check that we can run a simple program.
3242
if test "$cross_compiling" != yes; then
3243
if { ac_try='./$ac_file'
3244
{ { case "(($ac_try" in
3245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
*) ac_try_echo=$ac_try;;
3248
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249
$as_echo "$ac_try_echo"; } >&5
3250
(eval "$ac_try") 2>&5
3252
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253
test $ac_status = 0; }; }; then
3256
if test "$cross_compiling" = maybe; then
3259
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261
as_fn_error "cannot run C compiled programs.
3262
If you meant to cross compile, use \`--host'.
3263
See \`config.log' for more details." "$LINENO" 5; }
3267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268
$as_echo "yes" >&6; }
3270
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3292
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271
3293
ac_clean_files=$ac_clean_files_save
3272
# Check that the compiler produces executables we can run. If not, either
3273
# the compiler is broken, or we cross compile.
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3275
$as_echo_n "checking whether we are cross compiling... " >&6; }
3276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3277
$as_echo "$cross_compiling" >&6; }
3279
3294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3280
3295
$as_echo_n "checking for suffix of executables... " >&6; }
3281
3296
if { { ac_try="$ac_link"
3308
3323
as_fn_error "cannot compute suffix of executables: cannot compile and link
3309
3324
See \`config.log' for more details." "$LINENO" 5; }
3311
rm -f conftest$ac_cv_exeext
3326
rm -f conftest conftest$ac_cv_exeext
3312
3327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3313
3328
$as_echo "$ac_cv_exeext" >&6; }
3315
3330
rm -f conftest.$ac_ext
3316
3331
EXEEXT=$ac_cv_exeext
3317
3332
ac_exeext=$EXEEXT
3333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334
/* end confdefs.h. */
3339
FILE *f = fopen ("conftest.out", "w");
3340
return ferror (f) || fclose (f) != 0;
3346
ac_clean_files="$ac_clean_files conftest.out"
3347
# Check that the compiler produces executables we can run. If not, either
3348
# the compiler is broken, or we cross compile.
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3350
$as_echo_n "checking whether we are cross compiling... " >&6; }
3351
if test "$cross_compiling" != yes; then
3352
{ { ac_try="$ac_link"
3354
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355
*) ac_try_echo=$ac_try;;
3357
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358
$as_echo "$ac_try_echo"; } >&5
3359
(eval "$ac_link") 2>&5
3361
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362
test $ac_status = 0; }
3363
if { ac_try='./conftest$ac_cv_exeext'
3364
{ { case "(($ac_try" in
3365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366
*) ac_try_echo=$ac_try;;
3368
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369
$as_echo "$ac_try_echo"; } >&5
3370
(eval "$ac_try") 2>&5
3372
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373
test $ac_status = 0; }; }; then
3376
if test "$cross_compiling" = maybe; then
3379
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381
as_fn_error "cannot run C compiled programs.
3382
If you meant to cross compile, use \`--host'.
3383
See \`config.log' for more details." "$LINENO" 5; }
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3388
$as_echo "$cross_compiling" >&6; }
3390
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3391
ac_clean_files=$ac_clean_files_save
3318
3392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3319
3393
$as_echo_n "checking for suffix of object files... " >&6; }
3320
3394
if test "${ac_cv_objext+set}" = set; then :
10732
10807
enableval=$enable_mpcchap;
10810
if test "x$enable_mpcchap" = xyes; then
10817
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10818
if test -n "$ac_tool_prefix"; then
10819
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10820
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822
$as_echo_n "checking for $ac_word... " >&6; }
10823
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10824
$as_echo_n "(cached) " >&6
10826
case $PKG_CONFIG in
10828
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832
for as_dir in $PATH
10835
test -z "$as_dir" && as_dir=.
10836
for ac_exec_ext in '' $ac_executable_extensions; do
10837
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10839
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10850
if test -n "$PKG_CONFIG"; then
10851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10852
$as_echo "$PKG_CONFIG" >&6; }
10854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855
$as_echo "no" >&6; }
10860
if test -z "$ac_cv_path_PKG_CONFIG"; then
10861
ac_pt_PKG_CONFIG=$PKG_CONFIG
10862
# Extract the first word of "pkg-config", so it can be a program name with args.
10863
set dummy pkg-config; ac_word=$2
10864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865
$as_echo_n "checking for $ac_word... " >&6; }
10866
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10867
$as_echo_n "(cached) " >&6
10869
case $ac_pt_PKG_CONFIG in
10871
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875
for as_dir in $PATH
10878
test -z "$as_dir" && as_dir=.
10879
for ac_exec_ext in '' $ac_executable_extensions; do
10880
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10882
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10893
if test -n "$ac_pt_PKG_CONFIG"; then
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10895
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898
$as_echo "no" >&6; }
10901
if test "x$ac_pt_PKG_CONFIG" = x; then
10904
case $cross_compiling:$ac_tool_warned in
10906
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10907
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10908
ac_tool_warned=yes ;;
10910
PKG_CONFIG=$ac_pt_PKG_CONFIG
10913
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10917
if test -n "$PKG_CONFIG"; then
10918
_pkg_min_version=0.9.0
10919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10920
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10921
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923
$as_echo "yes" >&6; }
10925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926
$as_echo "no" >&6; }
10932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCUE" >&5
10933
$as_echo_n "checking for LIBCUE... " >&6; }
10935
if test -n "$LIBCUE_CFLAGS"; then
10936
pkg_cv_LIBCUE_CFLAGS="$LIBCUE_CFLAGS"
10937
elif test -n "$PKG_CONFIG"; then
10938
if test -n "$PKG_CONFIG" && \
10939
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcue\""; } >&5
10940
($PKG_CONFIG --exists --print-errors "libcue") 2>&5
10942
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943
test $ac_status = 0; }; then
10944
pkg_cv_LIBCUE_CFLAGS=`$PKG_CONFIG --cflags "libcue" 2>/dev/null`
10951
if test -n "$LIBCUE_LIBS"; then
10952
pkg_cv_LIBCUE_LIBS="$LIBCUE_LIBS"
10953
elif test -n "$PKG_CONFIG"; then
10954
if test -n "$PKG_CONFIG" && \
10955
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcue\""; } >&5
10956
($PKG_CONFIG --exists --print-errors "libcue") 2>&5
10958
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959
test $ac_status = 0; }; then
10960
pkg_cv_LIBCUE_LIBS=`$PKG_CONFIG --libs "libcue" 2>/dev/null`
10970
if test $pkg_failed = yes; then
10971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972
$as_echo "no" >&6; }
10974
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10975
_pkg_short_errors_supported=yes
10977
_pkg_short_errors_supported=no
10979
if test $_pkg_short_errors_supported = yes; then
10980
LIBCUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcue" 2>&1`
10982
LIBCUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcue" 2>&1`
10984
# Put the nasty error message in config.log where it belongs
10985
echo "$LIBCUE_PKG_ERRORS" >&5
10987
as_fn_error "Package requirements (libcue) were not met:
10991
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10992
installed software in a non-standard prefix.
10994
Alternatively, you may set the environment variables LIBCUE_CFLAGS
10995
and LIBCUE_LIBS to avoid the need to call pkg-config.
10996
See the pkg-config man page for more details." "$LINENO" 5
10997
elif test $pkg_failed = untried; then
10998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999
$as_echo "no" >&6; }
11000
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11001
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11002
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11003
is in your PATH or set the PKG_CONFIG environment variable to the full
11004
path to pkg-config.
11006
Alternatively, you may set the environment variables LIBCUE_CFLAGS
11007
and LIBCUE_LIBS to avoid the need to call pkg-config.
11008
See the pkg-config man page for more details.
11010
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11011
See \`config.log' for more details." "$LINENO" 5; }
11013
LIBCUE_CFLAGS=$pkg_cv_LIBCUE_CFLAGS
11014
LIBCUE_LIBS=$pkg_cv_LIBCUE_LIBS
11015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016
$as_echo "yes" >&6; }
10735
11023
if test "x$enable_mpcchap" = xyes; then
10736
11024
MPC_CHAP_TRUE=
10737
11025
MPC_CHAP_FALSE='#'