1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for streamripper 1.64.6. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574exec 7<&0 </dev/null 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594# Identity of this package. 595PACKAGE_NAME='streamripper' 596PACKAGE_TARNAME='streamripper' 597PACKAGE_VERSION='1.64.6' 598PACKAGE_STRING='streamripper 1.64.6' 599PACKAGE_BUGREPORT='' 600 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637enable_option_checking=no 638ac_subst_vars='LTLIBOBJS 639LIBOBJS 640VORBISENC_LIBS 641VORBISFILE_LIBS 642OGG_LIBS 643OGG_CFLAGS 644VORBIS_LIBS 645VORBIS_CFLAGS 646WANT_CSTREAMRIPPER_FALSE 647WANT_CSTREAMRIPPER_TRUE 648FAAD_LIBS 649LIBIBERTY_LIBS 650USE_INCLUDED_ARGV_FALSE 651USE_INCLUDED_ARGV_TRUE 652LIBCHARSET 653LTLIBICONV 654LIBICONV 655host_os 656host_vendor 657host_cpu 658host 659build_os 660build_vendor 661build_cpu 662build 663THREADLIBS 664subdirs 665SUBDIR_LIBMAD_FALSE 666SUBDIR_LIBMAD_TRUE 667LIBMAD 668GLIB_MKENUMS 669GOBJECT_QUERY 670GLIB_GENMARSHAL 671GLIB_LIBS 672GLIB_CFLAGS 673PKG_CONFIG 674EGREP 675GREP 676CPP 677ALLOCA 678RANLIB 679am__fastdepCC_FALSE 680am__fastdepCC_TRUE 681CCDEPMODE 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688OBJEXT 689EXEEXT 690ac_ct_CC 691CPPFLAGS 692LDFLAGS 693CFLAGS 694CC 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_BUGREPORT 749PACKAGE_STRING 750PACKAGE_VERSION 751PACKAGE_TARNAME 752PACKAGE_NAME 753PATH_SEPARATOR 754SHELL' 755ac_subst_files='' 756ac_user_opts=' 757enable_option_checking 758enable_dependency_tracking 759with_included_libmad 760with_included_argv 761with_curses 762enable_glibtest 763with_gnu_ld 764enable_rpath 765with_libiconv_prefix 766with_curses_dir 767with_ogg 768with_ogg_libraries 769with_ogg_includes 770enable_oggtest 771with_vorbis 772with_vorbis_libraries 773with_vorbis_includes 774enable_vorbistest 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785PKG_CONFIG' 786ac_subdirs_all='libmad-0.15.1b' 787 788# Initialize some variables set by options. 789ac_init_help= 790ac_init_version=false 791ac_unrecognized_opts= 792ac_unrecognized_sep= 793# The variables have the same names as the options, with 794# dashes changed to underlines. 795cache_file=/dev/null 796exec_prefix=NONE 797no_create= 798no_recursion= 799prefix=NONE 800program_prefix=NONE 801program_suffix=NONE 802program_transform_name=s,x,x, 803silent= 804site= 805srcdir= 806verbose= 807x_includes=NONE 808x_libraries=NONE 809 810# Installation directory options. 811# These are left unexpanded so users can "make install exec_prefix=/foo" 812# and all the variables that are supposed to be based on exec_prefix 813# by default will actually change. 814# Use braces instead of parens because sh, perl, etc. also accept them. 815# (The list follows the same order as the GNU Coding Standards.) 816bindir='${exec_prefix}/bin' 817sbindir='${exec_prefix}/sbin' 818libexecdir='${exec_prefix}/libexec' 819datarootdir='${prefix}/share' 820datadir='${datarootdir}' 821sysconfdir='${prefix}/etc' 822sharedstatedir='${prefix}/com' 823localstatedir='${prefix}/var' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *) ac_optarg=yes ;; 850 esac 851 852 # Accept the important Cygnus configure options, so we can diagnose typos. 853 854 case $ac_dashdash$ac_option in 855 --) 856 ac_dashdash=yes ;; 857 858 -bindir | --bindir | --bindi | --bind | --bin | --bi) 859 ac_prev=bindir ;; 860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 861 bindir=$ac_optarg ;; 862 863 -build | --build | --buil | --bui | --bu) 864 ac_prev=build_alias ;; 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 866 build_alias=$ac_optarg ;; 867 868 -cache-file | --cache-file | --cache-fil | --cache-fi \ 869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 870 ac_prev=cache_file ;; 871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 873 cache_file=$ac_optarg ;; 874 875 --config-cache | -C) 876 cache_file=config.cache ;; 877 878 -datadir | --datadir | --datadi | --datad) 879 ac_prev=datadir ;; 880 -datadir=* | --datadir=* | --datadi=* | --datad=*) 881 datadir=$ac_optarg ;; 882 883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 884 | --dataroo | --dataro | --datar) 885 ac_prev=datarootdir ;; 886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 888 datarootdir=$ac_optarg ;; 889 890 -disable-* | --disable-*) 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 894 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 895 { (exit 1); exit 1; }; } 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=no ;; 906 907 -docdir | --docdir | --docdi | --doc | --do) 908 ac_prev=docdir ;; 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 910 docdir=$ac_optarg ;; 911 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 913 ac_prev=dvidir ;; 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 915 dvidir=$ac_optarg ;; 916 917 -enable-* | --enable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 922 { (exit 1); exit 1; }; } 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=\$ac_optarg ;; 933 934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 936 | --exec | --exe | --ex) 937 ac_prev=exec_prefix ;; 938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 940 | --exec=* | --exe=* | --ex=*) 941 exec_prefix=$ac_optarg ;; 942 943 -gas | --gas | --ga | --g) 944 # Obsolete; use --with-gas. 945 with_gas=yes ;; 946 947 -help | --help | --hel | --he | -h) 948 ac_init_help=long ;; 949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 950 ac_init_help=recursive ;; 951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 952 ac_init_help=short ;; 953 954 -host | --host | --hos | --ho) 955 ac_prev=host_alias ;; 956 -host=* | --host=* | --hos=* | --ho=*) 957 host_alias=$ac_optarg ;; 958 959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 960 ac_prev=htmldir ;; 961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 962 | --ht=*) 963 htmldir=$ac_optarg ;; 964 965 -includedir | --includedir | --includedi | --included | --include \ 966 | --includ | --inclu | --incl | --inc) 967 ac_prev=includedir ;; 968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 969 | --includ=* | --inclu=* | --incl=* | --inc=*) 970 includedir=$ac_optarg ;; 971 972 -infodir | --infodir | --infodi | --infod | --info | --inf) 973 ac_prev=infodir ;; 974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 975 infodir=$ac_optarg ;; 976 977 -libdir | --libdir | --libdi | --libd) 978 ac_prev=libdir ;; 979 -libdir=* | --libdir=* | --libdi=* | --libd=*) 980 libdir=$ac_optarg ;; 981 982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 983 | --libexe | --libex | --libe) 984 ac_prev=libexecdir ;; 985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 986 | --libexe=* | --libex=* | --libe=*) 987 libexecdir=$ac_optarg ;; 988 989 -localedir | --localedir | --localedi | --localed | --locale) 990 ac_prev=localedir ;; 991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 992 localedir=$ac_optarg ;; 993 994 -localstatedir | --localstatedir | --localstatedi | --localstated \ 995 | --localstate | --localstat | --localsta | --localst | --locals) 996 ac_prev=localstatedir ;; 997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 999 localstatedir=$ac_optarg ;; 1000 1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1002 ac_prev=mandir ;; 1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1004 mandir=$ac_optarg ;; 1005 1006 -nfp | --nfp | --nf) 1007 # Obsolete; use --without-fp. 1008 with_fp=no ;; 1009 1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1011 | --no-cr | --no-c | -n) 1012 no_create=yes ;; 1013 1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1016 no_recursion=yes ;; 1017 1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1020 | --oldin | --oldi | --old | --ol | --o) 1021 ac_prev=oldincludedir ;; 1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1025 oldincludedir=$ac_optarg ;; 1026 1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1028 ac_prev=prefix ;; 1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1030 prefix=$ac_optarg ;; 1031 1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1033 | --program-pre | --program-pr | --program-p) 1034 ac_prev=program_prefix ;; 1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1037 program_prefix=$ac_optarg ;; 1038 1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1040 | --program-suf | --program-su | --program-s) 1041 ac_prev=program_suffix ;; 1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1044 program_suffix=$ac_optarg ;; 1045 1046 -program-transform-name | --program-transform-name \ 1047 | --program-transform-nam | --program-transform-na \ 1048 | --program-transform-n | --program-transform- \ 1049 | --program-transform | --program-transfor \ 1050 | --program-transfo | --program-transf \ 1051 | --program-trans | --program-tran \ 1052 | --progr-tra | --program-tr | --program-t) 1053 ac_prev=program_transform_name ;; 1054 -program-transform-name=* | --program-transform-name=* \ 1055 | --program-transform-nam=* | --program-transform-na=* \ 1056 | --program-transform-n=* | --program-transform-=* \ 1057 | --program-transform=* | --program-transfor=* \ 1058 | --program-transfo=* | --program-transf=* \ 1059 | --program-trans=* | --program-tran=* \ 1060 | --progr-tra=* | --program-tr=* | --program-t=*) 1061 program_transform_name=$ac_optarg ;; 1062 1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1064 ac_prev=pdfdir ;; 1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1066 pdfdir=$ac_optarg ;; 1067 1068 -psdir | --psdir | --psdi | --psd | --ps) 1069 ac_prev=psdir ;; 1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1071 psdir=$ac_optarg ;; 1072 1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1074 | -silent | --silent | --silen | --sile | --sil) 1075 silent=yes ;; 1076 1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1078 ac_prev=sbindir ;; 1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1080 | --sbi=* | --sb=*) 1081 sbindir=$ac_optarg ;; 1082 1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1085 | --sharedst | --shareds | --shared | --share | --shar \ 1086 | --sha | --sh) 1087 ac_prev=sharedstatedir ;; 1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1091 | --sha=* | --sh=*) 1092 sharedstatedir=$ac_optarg ;; 1093 1094 -site | --site | --sit) 1095 ac_prev=site ;; 1096 -site=* | --site=* | --sit=*) 1097 site=$ac_optarg ;; 1098 1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1100 ac_prev=srcdir ;; 1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1102 srcdir=$ac_optarg ;; 1103 1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1105 | --syscon | --sysco | --sysc | --sys | --sy) 1106 ac_prev=sysconfdir ;; 1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1109 sysconfdir=$ac_optarg ;; 1110 1111 -target | --target | --targe | --targ | --tar | --ta | --t) 1112 ac_prev=target_alias ;; 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1114 target_alias=$ac_optarg ;; 1115 1116 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1117 verbose=yes ;; 1118 1119 -version | --version | --versio | --versi | --vers | -V) 1120 ac_init_version=: ;; 1121 1122 -with-* | --with-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1127 { (exit 1); exit 1; }; } 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1144 { (exit 1); exit 1; }; } 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1175Try \`$0 --help' for more information." >&2 1176 { (exit 1); exit 1; }; } 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1183 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1184 { (exit 1); exit 1; }; } 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1202 { (exit 1); exit 1; }; } 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1209 { (exit 1); exit 1; }; } ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1233 { (exit 1); exit 1; }; } 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1248 If a cross compiler is detected then cross compile mode will be used." >&2 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252fi 1253 1254ac_tool_prefix= 1255test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257test "$silent" = yes && exec 6>/dev/null 1258 1259 1260ac_pwd=`pwd` && test -n "$ac_pwd" && 1261ac_ls_di=`ls -di .` && 1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1264 { (exit 1); exit 1; }; } 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1267 { (exit 1); exit 1; }; } 1268 1269 1270# Find the source files, if location was not specified. 1271if test -z "$srcdir"; then 1272 ac_srcdir_defaulted=yes 1273 # Try the directory containing this script, then the parent directory. 1274 ac_confdir=`$as_dirname -- "$as_myself" || 1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1276 X"$as_myself" : 'X\(//\)[^/]' \| \ 1277 X"$as_myself" : 'X\(//\)$' \| \ 1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1279$as_echo X"$as_myself" | 1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)[^/].*/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)$/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\).*/{ 1293 s//\1/ 1294 q 1295 } 1296 s/.*/./; q'` 1297 srcdir=$ac_confdir 1298 if test ! -r "$srcdir/$ac_unique_file"; then 1299 srcdir=.. 1300 fi 1301else 1302 ac_srcdir_defaulted=no 1303fi 1304if test ! -r "$srcdir/$ac_unique_file"; then 1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1306 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1307 { (exit 1); exit 1; }; } 1308fi 1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310ac_abs_confdir=`( 1311 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1312 { (exit 1); exit 1; }; } 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338\`configure' configures streamripper 1.64.6 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print \`checking...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for \`--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, \`make install' will install all the files in 1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1367for instance \`--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --libdir=DIR object code libraries [EPREFIX/lib] 1379 --includedir=DIR C header files [PREFIX/include] 1380 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1383 --infodir=DIR info documentation [DATAROOTDIR/info] 1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1385 --mandir=DIR man documentation [DATAROOTDIR/man] 1386 --docdir=DIR documentation root [DATAROOTDIR/doc/streamripper] 1387 --htmldir=DIR html documentation [DOCDIR] 1388 --dvidir=DIR dvi documentation [DOCDIR] 1389 --pdfdir=DIR pdf documentation [DOCDIR] 1390 --psdir=DIR ps documentation [DOCDIR] 1391_ACEOF 1392 1393 cat <<\_ACEOF 1394 1395Program names: 1396 --program-prefix=PREFIX prepend PREFIX to installed program names 1397 --program-suffix=SUFFIX append SUFFIX to installed program names 1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1399 1400System types: 1401 --build=BUILD configure for building on BUILD [guessed] 1402 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403_ACEOF 1404fi 1405 1406if test -n "$ac_init_help"; then 1407 case $ac_init_help in 1408 short | recursive ) echo "Configuration of streamripper 1.64.6:";; 1409 esac 1410 cat <<\_ACEOF 1411 1412Optional Features: 1413 --disable-option-checking ignore unrecognized --enable/--with options 1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1416 --disable-dependency-tracking speeds up one-time build 1417 --enable-dependency-tracking do not reject slow dependency extractors 1418 --disable-glibtest do not try to compile and run a test GLIB program 1419 --disable-rpath do not hardcode runtime library paths 1420 --disable-oggtest Do not try to compile and run a test Ogg program 1421 --disable-vorbistest Do not try to compile and run a test Vorbis program 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-included-libmad use the libmad library included with streamripper 1427 --with-included-argv use argv.c included with streamripper 1428 --with-curses(=XXX) compile curses front-end (XXX is curses (default), ncurses, ncursesw, pdcurses or slang) 1429 --with-gnu-ld assume the C compiler uses GNU ld default=no 1430 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 1431 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1432 --with-curses-dir=DIR directory in which (n)curses is installed 1433 --with-ogg=PFX Prefix where libogg is installed (optional) 1434 --with-ogg-libraries=DIR Directory where libogg library is installed (optional) 1435 --with-ogg-includes=DIR Directory where libogg header files are installed (optional) 1436 --with-vorbis=PFX Prefix where libvorbis is installed (optional) 1437 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional) 1438 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional) 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 CPP C preprocessor 1449 PKG_CONFIG path to pkg-config utility 1450 1451Use these variables to override the choices made by `configure' or to help 1452it to find libraries and programs with nonstandard names/locations. 1453 1454_ACEOF 1455ac_status=$? 1456fi 1457 1458if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466case "$ac_dir" in 1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468*) 1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476esac 1477ac_abs_top_builddir=$ac_pwd 1478ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479# for backward compatibility: 1480ac_top_builddir=$ac_top_build_prefix 1481 1482case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495esac 1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for guested configure. 1500 if test -f "$ac_srcdir/configure.gnu"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1503 elif test -f "$ac_srcdir/configure"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure" --help=recursive 1506 else 1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1508 fi || ac_status=$? 1509 cd "$ac_pwd" || { ac_status=$?; break; } 1510 done 1511fi 1512 1513test -n "$ac_init_help" && exit $ac_status 1514if $ac_init_version; then 1515 cat <<\_ACEOF 1516streamripper configure 1.64.6 1517generated by GNU Autoconf 2.63 1518 1519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15202002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526cat >config.log <<_ACEOF 1527This file contains any messages produced by compilers while 1528running configure, to aid debugging if configure makes a mistake. 1529 1530It was created by streamripper $as_me 1.64.6, which was 1531generated by GNU Autoconf 2.63. Invocation command line was 1532 1533 $ $0 $@ 1534 1535_ACEOF 1536exec 5>>config.log 1537{ 1538cat <<_ASUNAME 1539## --------- ## 1540## Platform. ## 1541## --------- ## 1542 1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1544uname -m = `(uname -m) 2>/dev/null || echo unknown` 1545uname -r = `(uname -r) 2>/dev/null || echo unknown` 1546uname -s = `(uname -s) 2>/dev/null || echo unknown` 1547uname -v = `(uname -v) 2>/dev/null || echo unknown` 1548 1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1550/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1551 1552/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1553/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1555/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1556/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1557/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1558/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1559 1560_ASUNAME 1561 1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1563for as_dir in $PATH 1564do 1565 IFS=$as_save_IFS 1566 test -z "$as_dir" && as_dir=. 1567 $as_echo "PATH: $as_dir" 1568done 1569IFS=$as_save_IFS 1570 1571} >&5 1572 1573cat >&5 <<_ACEOF 1574 1575 1576## ----------- ## 1577## Core tests. ## 1578## ----------- ## 1579 1580_ACEOF 1581 1582 1583# Keep a trace of the command line. 1584# Strip out --no-create and --no-recursion so they do not pile up. 1585# Strip out --silent because we don't want to record it for future runs. 1586# Also quote any args containing shell meta-characters. 1587# Make two passes to allow for proper duplicate-argument suppression. 1588ac_configure_args= 1589ac_configure_args0= 1590ac_configure_args1= 1591ac_must_keep_next=false 1592for ac_pass in 1 2 1593do 1594 for ac_arg 1595 do 1596 case $ac_arg in 1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1599 | -silent | --silent | --silen | --sile | --sil) 1600 continue ;; 1601 *\'*) 1602 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1603 esac 1604 case $ac_pass in 1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1606 2) 1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1608 if test $ac_must_keep_next = true; then 1609 ac_must_keep_next=false # Got value, back to normal. 1610 else 1611 case $ac_arg in 1612 *=* | --config-cache | -C | -disable-* | --disable-* \ 1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1615 | -with-* | --with-* | -without-* | --without-* | --x) 1616 case "$ac_configure_args0 " in 1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1618 esac 1619 ;; 1620 -* ) ac_must_keep_next=true ;; 1621 esac 1622 fi 1623 ac_configure_args="$ac_configure_args '$ac_arg'" 1624 ;; 1625 esac 1626 done 1627done 1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1630 1631# When interrupted or exit'd, cleanup temporary files, and complete 1632# config.log. We remove comments because anyway the quotes in there 1633# would cause problems or look ugly. 1634# WARNING: Use '\'' to represent an apostrophe within the trap. 1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1636trap 'exit_status=$? 1637 # Save into config.log some information that might help in debugging. 1638 { 1639 echo 1640 1641 cat <<\_ASBOX 1642## ---------------- ## 1643## Cache variables. ## 1644## ---------------- ## 1645_ASBOX 1646 echo 1647 # The following way of writing the cache mishandles newlines in values, 1648( 1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1650 eval ac_val=\$$ac_var 1651 case $ac_val in #( 1652 *${as_nl}*) 1653 case $ac_var in #( 1654 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1656 esac 1657 case $ac_var in #( 1658 _ | IFS | as_nl) ;; #( 1659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1660 *) $as_unset $ac_var ;; 1661 esac ;; 1662 esac 1663 done 1664 (set) 2>&1 | 1665 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1666 *${as_nl}ac_space=\ *) 1667 sed -n \ 1668 "s/'\''/'\''\\\\'\'''\''/g; 1669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1670 ;; #( 1671 *) 1672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1673 ;; 1674 esac | 1675 sort 1676) 1677 echo 1678 1679 cat <<\_ASBOX 1680## ----------------- ## 1681## Output variables. ## 1682## ----------------- ## 1683_ASBOX 1684 echo 1685 for ac_var in $ac_subst_vars 1686 do 1687 eval ac_val=\$$ac_var 1688 case $ac_val in 1689 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1690 esac 1691 $as_echo "$ac_var='\''$ac_val'\''" 1692 done | sort 1693 echo 1694 1695 if test -n "$ac_subst_files"; then 1696 cat <<\_ASBOX 1697## ------------------- ## 1698## File substitutions. ## 1699## ------------------- ## 1700_ASBOX 1701 echo 1702 for ac_var in $ac_subst_files 1703 do 1704 eval ac_val=\$$ac_var 1705 case $ac_val in 1706 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1707 esac 1708 $as_echo "$ac_var='\''$ac_val'\''" 1709 done | sort 1710 echo 1711 fi 1712 1713 if test -s confdefs.h; then 1714 cat <<\_ASBOX 1715## ----------- ## 1716## confdefs.h. ## 1717## ----------- ## 1718_ASBOX 1719 echo 1720 cat confdefs.h 1721 echo 1722 fi 1723 test "$ac_signal" != 0 && 1724 $as_echo "$as_me: caught signal $ac_signal" 1725 $as_echo "$as_me: exit $exit_status" 1726 } >&5 1727 rm -f core *.core core.conftest.* && 1728 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1729 exit $exit_status 1730' 0 1731for ac_signal in 1 2 13 15; do 1732 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1733done 1734ac_signal=0 1735 1736# confdefs.h avoids OS command line length limits that DEFS can exceed. 1737rm -f -r conftest* confdefs.h 1738 1739# Predefined preprocessor variables. 1740 1741cat >>confdefs.h <<_ACEOF 1742#define PACKAGE_NAME "$PACKAGE_NAME" 1743_ACEOF 1744 1745 1746cat >>confdefs.h <<_ACEOF 1747#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1748_ACEOF 1749 1750 1751cat >>confdefs.h <<_ACEOF 1752#define PACKAGE_VERSION "$PACKAGE_VERSION" 1753_ACEOF 1754 1755 1756cat >>confdefs.h <<_ACEOF 1757#define PACKAGE_STRING "$PACKAGE_STRING" 1758_ACEOF 1759 1760 1761cat >>confdefs.h <<_ACEOF 1762#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1763_ACEOF 1764 1765 1766# Let the site file select an alternate cache file if it wants to. 1767# Prefer an explicitly selected file to automatically selected ones. 1768ac_site_file1=NONE 1769ac_site_file2=NONE 1770if test -n "$CONFIG_SITE"; then 1771 ac_site_file1=$CONFIG_SITE 1772elif test "x$prefix" != xNONE; then 1773 ac_site_file1=$prefix/share/config.site 1774 ac_site_file2=$prefix/etc/config.site 1775else 1776 ac_site_file1=$ac_default_prefix/share/config.site 1777 ac_site_file2=$ac_default_prefix/etc/config.site 1778fi 1779for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1780do 1781 test "x$ac_site_file" = xNONE && continue 1782 if test -r "$ac_site_file"; then 1783 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1784$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1785 sed 's/^/| /' "$ac_site_file" >&5 1786 . "$ac_site_file" 1787 fi 1788done 1789 1790if test -r "$cache_file"; then 1791 # Some versions of bash will fail to source /dev/null (special 1792 # files actually), so we avoid doing that. 1793 if test -f "$cache_file"; then 1794 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1795$as_echo "$as_me: loading cache $cache_file" >&6;} 1796 case $cache_file in 1797 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1798 *) . "./$cache_file";; 1799 esac 1800 fi 1801else 1802 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1803$as_echo "$as_me: creating cache $cache_file" >&6;} 1804 >$cache_file 1805fi 1806 1807# Check that the precious variables saved in the cache have kept the same 1808# value. 1809ac_cache_corrupted=false 1810for ac_var in $ac_precious_vars; do 1811 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1812 eval ac_new_set=\$ac_env_${ac_var}_set 1813 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1814 eval ac_new_val=\$ac_env_${ac_var}_value 1815 case $ac_old_set,$ac_new_set in 1816 set,) 1817 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1818$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1819 ac_cache_corrupted=: ;; 1820 ,set) 1821 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1822$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1823 ac_cache_corrupted=: ;; 1824 ,);; 1825 *) 1826 if test "x$ac_old_val" != "x$ac_new_val"; then 1827 # differences in whitespace do not lead to failure. 1828 ac_old_val_w=`echo x $ac_old_val` 1829 ac_new_val_w=`echo x $ac_new_val` 1830 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1831 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1832$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1833 ac_cache_corrupted=: 1834 else 1835 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1836$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1837 eval $ac_var=\$ac_old_val 1838 fi 1839 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1840$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1841 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1842$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1843 fi;; 1844 esac 1845 # Pass precious variables to config.status. 1846 if test "$ac_new_set" = set; then 1847 case $ac_new_val in 1848 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1849 *) ac_arg=$ac_var=$ac_new_val ;; 1850 esac 1851 case " $ac_configure_args " in 1852 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1853 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1854 esac 1855 fi 1856done 1857if $ac_cache_corrupted; then 1858 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1860 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1861$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1862 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1863$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1864 { (exit 1); exit 1; }; } 1865fi 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891ac_ext=c 1892ac_cpp='$CPP $CPPFLAGS' 1893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1895ac_compiler_gnu=$ac_cv_c_compiler_gnu 1896 1897 1898am__api_version='1.10' 1899 1900ac_aux_dir= 1901for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1902 if test -f "$ac_dir/install-sh"; then 1903 ac_aux_dir=$ac_dir 1904 ac_install_sh="$ac_aux_dir/install-sh -c" 1905 break 1906 elif test -f "$ac_dir/install.sh"; then 1907 ac_aux_dir=$ac_dir 1908 ac_install_sh="$ac_aux_dir/install.sh -c" 1909 break 1910 elif test -f "$ac_dir/shtool"; then 1911 ac_aux_dir=$ac_dir 1912 ac_install_sh="$ac_aux_dir/shtool install -c" 1913 break 1914 fi 1915done 1916if test -z "$ac_aux_dir"; then 1917 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1918$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1919 { (exit 1); exit 1; }; } 1920fi 1921 1922# These three variables are undocumented and unsupported, 1923# and are intended to be withdrawn in a future Autoconf release. 1924# They can cause serious problems if a builder's source tree is in a directory 1925# whose full name contains unusual characters. 1926ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1927ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1928ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1929 1930 1931# Find a good install program. We prefer a C program (faster), 1932# so one script is as good as another. But avoid the broken or 1933# incompatible versions: 1934# SysV /etc/install, /usr/sbin/install 1935# SunOS /usr/etc/install 1936# IRIX /sbin/install 1937# AIX /bin/install 1938# AmigaOS /C/install, which installs bootblocks on floppy discs 1939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1940# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1942# OS/2's system install, which has a completely different semantic 1943# ./install, which can be erroneously created by make from ./install.sh. 1944# Reject install programs that cannot install multiple files. 1945{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1946$as_echo_n "checking for a BSD-compatible install... " >&6; } 1947if test -z "$INSTALL"; then 1948if test "${ac_cv_path_install+set}" = set; then 1949 $as_echo_n "(cached) " >&6 1950else 1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1952for as_dir in $PATH 1953do 1954 IFS=$as_save_IFS 1955 test -z "$as_dir" && as_dir=. 1956 # Account for people who put trailing slashes in PATH elements. 1957case $as_dir/ in 1958 ./ | .// | /cC/* | \ 1959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1961 /usr/ucb/* ) ;; 1962 *) 1963 # OSF1 and SCO ODT 3.0 have their own names for install. 1964 # Don't use installbsd from OSF since it installs stuff as root 1965 # by default. 1966 for ac_prog in ginstall scoinst install; do 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1969 if test $ac_prog = install && 1970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1971 # AIX install. It has an incompatible calling convention. 1972 : 1973 elif test $ac_prog = install && 1974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1975 # program-specific install script used by HP pwplus--don't use. 1976 : 1977 else 1978 rm -rf conftest.one conftest.two conftest.dir 1979 echo one > conftest.one 1980 echo two > conftest.two 1981 mkdir conftest.dir 1982 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1983 test -s conftest.one && test -s conftest.two && 1984 test -s conftest.dir/conftest.one && 1985 test -s conftest.dir/conftest.two 1986 then 1987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1988 break 3 1989 fi 1990 fi 1991 fi 1992 done 1993 done 1994 ;; 1995esac 1996 1997done 1998IFS=$as_save_IFS 1999 2000rm -rf conftest.one conftest.two conftest.dir 2001 2002fi 2003 if test "${ac_cv_path_install+set}" = set; then 2004 INSTALL=$ac_cv_path_install 2005 else 2006 # As a last resort, use the slow shell script. Don't cache a 2007 # value for INSTALL within a source directory, because that will 2008 # break other packages using the cache if that directory is 2009 # removed, or if the value is a relative name. 2010 INSTALL=$ac_install_sh 2011 fi 2012fi 2013{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2014$as_echo "$INSTALL" >&6; } 2015 2016# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2017# It thinks the first close brace ends the variable substitution. 2018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2019 2020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2021 2022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2023 2024{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2025$as_echo_n "checking whether build environment is sane... " >&6; } 2026# Just in case 2027sleep 1 2028echo timestamp > conftest.file 2029# Do `set' in a subshell so we don't clobber the current shell's 2030# arguments. Must try -L first in case configure is actually a 2031# symlink; some systems play weird games with the mod time of symlinks 2032# (eg FreeBSD returns the mod time of the symlink's containing 2033# directory). 2034if ( 2035 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2036 if test "$*" = "X"; then 2037 # -L didn't work. 2038 set X `ls -t $srcdir/configure conftest.file` 2039 fi 2040 rm -f conftest.file 2041 if test "$*" != "X $srcdir/configure conftest.file" \ 2042 && test "$*" != "X conftest.file $srcdir/configure"; then 2043 2044 # If neither matched, then we have a broken ls. This can happen 2045 # if, for instance, CONFIG_SHELL is bash and it inherits a 2046 # broken ls alias from the environment. This has actually 2047 # happened. Such a system could not be considered "sane". 2048 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2049alias in your environment" >&5 2050$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2051alias in your environment" >&2;} 2052 { (exit 1); exit 1; }; } 2053 fi 2054 2055 test "$2" = conftest.file 2056 ) 2057then 2058 # Ok. 2059 : 2060else 2061 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2062Check your system clock" >&5 2063$as_echo "$as_me: error: newly created file is older than distributed files! 2064Check your system clock" >&2;} 2065 { (exit 1); exit 1; }; } 2066fi 2067{ $as_echo "$as_me:$LINENO: result: yes" >&5 2068$as_echo "yes" >&6; } 2069test "$program_prefix" != NONE && 2070 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2071# Use a double $ so make ignores it. 2072test "$program_suffix" != NONE && 2073 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2074# Double any \ or $. 2075# By default was `s,x,x', remove it if useless. 2076ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2077program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2078 2079# expand $ac_aux_dir to an absolute path 2080am_aux_dir=`cd $ac_aux_dir && pwd` 2081 2082test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2083# Use eval to expand $SHELL 2084if eval "$MISSING --run true"; then 2085 am_missing_run="$MISSING --run " 2086else 2087 am_missing_run= 2088 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2089$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2090fi 2091 2092{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2093$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2094if test -z "$MKDIR_P"; then 2095 if test "${ac_cv_path_mkdir+set}" = set; then 2096 $as_echo_n "(cached) " >&6 2097else 2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2099for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2100do 2101 IFS=$as_save_IFS 2102 test -z "$as_dir" && as_dir=. 2103 for ac_prog in mkdir gmkdir; do 2104 for ac_exec_ext in '' $ac_executable_extensions; do 2105 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2106 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2107 'mkdir (GNU coreutils) '* | \ 2108 'mkdir (coreutils) '* | \ 2109 'mkdir (fileutils) '4.1*) 2110 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2111 break 3;; 2112 esac 2113 done 2114 done 2115done 2116IFS=$as_save_IFS 2117 2118fi 2119 2120 if test "${ac_cv_path_mkdir+set}" = set; then 2121 MKDIR_P="$ac_cv_path_mkdir -p" 2122 else 2123 # As a last resort, use the slow shell script. Don't cache a 2124 # value for MKDIR_P within a source directory, because that will 2125 # break other packages using the cache if that directory is 2126 # removed, or if the value is a relative name. 2127 test -d ./--version && rmdir ./--version 2128 MKDIR_P="$ac_install_sh -d" 2129 fi 2130fi 2131{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2132$as_echo "$MKDIR_P" >&6; } 2133 2134mkdir_p="$MKDIR_P" 2135case $mkdir_p in 2136 [\\/$]* | ?:[\\/]*) ;; 2137 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2138esac 2139 2140for ac_prog in gawk mawk nawk awk 2141do 2142 # Extract the first word of "$ac_prog", so it can be a program name with args. 2143set dummy $ac_prog; ac_word=$2 2144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2145$as_echo_n "checking for $ac_word... " >&6; } 2146if test "${ac_cv_prog_AWK+set}" = set; then 2147 $as_echo_n "(cached) " >&6 2148else 2149 if test -n "$AWK"; then 2150 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2151else 2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2153for as_dir in $PATH 2154do 2155 IFS=$as_save_IFS 2156 test -z "$as_dir" && as_dir=. 2157 for ac_exec_ext in '' $ac_executable_extensions; do 2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2159 ac_cv_prog_AWK="$ac_prog" 2160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2161 break 2 2162 fi 2163done 2164done 2165IFS=$as_save_IFS 2166 2167fi 2168fi 2169AWK=$ac_cv_prog_AWK 2170if test -n "$AWK"; then 2171 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2172$as_echo "$AWK" >&6; } 2173else 2174 { $as_echo "$as_me:$LINENO: result: no" >&5 2175$as_echo "no" >&6; } 2176fi 2177 2178 2179 test -n "$AWK" && break 2180done 2181 2182{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2183$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2184set x ${MAKE-make} 2185ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2186if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2187 $as_echo_n "(cached) " >&6 2188else 2189 cat >conftest.make <<\_ACEOF 2190SHELL = /bin/sh 2191all: 2192 @echo '@@@%%%=$(MAKE)=@@@%%%' 2193_ACEOF 2194# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2195case `${MAKE-make} -f conftest.make 2>/dev/null` in 2196 *@@@%%%=?*=@@@%%%*) 2197 eval ac_cv_prog_make_${ac_make}_set=yes;; 2198 *) 2199 eval ac_cv_prog_make_${ac_make}_set=no;; 2200esac 2201rm -f conftest.make 2202fi 2203if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2204 { $as_echo "$as_me:$LINENO: result: yes" >&5 2205$as_echo "yes" >&6; } 2206 SET_MAKE= 2207else 2208 { $as_echo "$as_me:$LINENO: result: no" >&5 2209$as_echo "no" >&6; } 2210 SET_MAKE="MAKE=${MAKE-make}" 2211fi 2212 2213rm -rf .tst 2>/dev/null 2214mkdir .tst 2>/dev/null 2215if test -d .tst; then 2216 am__leading_dot=. 2217else 2218 am__leading_dot=_ 2219fi 2220rmdir .tst 2>/dev/null 2221 2222if test "`cd $srcdir && pwd`" != "`pwd`"; then 2223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2224 # is not polluted with repeated "-I." 2225 am__isrc=' -I$(srcdir)' 2226 # test to see if srcdir already configured 2227 if test -f $srcdir/config.status; then 2228 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2229$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2230 { (exit 1); exit 1; }; } 2231 fi 2232fi 2233 2234# test whether we have cygpath 2235if test -z "$CYGPATH_W"; then 2236 if (cygpath --version) >/dev/null 2>/dev/null; then 2237 CYGPATH_W='cygpath -w' 2238 else 2239 CYGPATH_W=echo 2240 fi 2241fi 2242 2243 2244# Define the identity of the package. 2245 PACKAGE='streamripper' 2246 VERSION='1.64.6' 2247 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE "$PACKAGE" 2251_ACEOF 2252 2253 2254cat >>confdefs.h <<_ACEOF 2255#define VERSION "$VERSION" 2256_ACEOF 2257 2258# Some tools Automake needs. 2259 2260ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2261 2262 2263AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2264 2265 2266AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2267 2268 2269AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2270 2271 2272MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2273 2274install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2275 2276# Installed binaries are usually stripped using `strip' when the user 2277# run `make install-strip'. However `strip' might not be the right 2278# tool to use in cross-compilation environments, therefore Automake 2279# will honor the `STRIP' environment variable to overrule this program. 2280if test "$cross_compiling" != no; then 2281 if test -n "$ac_tool_prefix"; then 2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2283set dummy ${ac_tool_prefix}strip; ac_word=$2 2284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2285$as_echo_n "checking for $ac_word... " >&6; } 2286if test "${ac_cv_prog_STRIP+set}" = set; then 2287 $as_echo_n "(cached) " >&6 2288else 2289 if test -n "$STRIP"; then 2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2291else 2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 for ac_exec_ext in '' $ac_executable_extensions; do 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2301 break 2 2302 fi 2303done 2304done 2305IFS=$as_save_IFS 2306 2307fi 2308fi 2309STRIP=$ac_cv_prog_STRIP 2310if test -n "$STRIP"; then 2311 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2312$as_echo "$STRIP" >&6; } 2313else 2314 { $as_echo "$as_me:$LINENO: result: no" >&5 2315$as_echo "no" >&6; } 2316fi 2317 2318 2319fi 2320if test -z "$ac_cv_prog_STRIP"; then 2321 ac_ct_STRIP=$STRIP 2322 # Extract the first word of "strip", so it can be a program name with args. 2323set dummy strip; ac_word=$2 2324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2325$as_echo_n "checking for $ac_word... " >&6; } 2326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2327 $as_echo_n "(cached) " >&6 2328else 2329 if test -n "$ac_ct_STRIP"; then 2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2331else 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333for as_dir in $PATH 2334do 2335 IFS=$as_save_IFS 2336 test -z "$as_dir" && as_dir=. 2337 for ac_exec_ext in '' $ac_executable_extensions; do 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2339 ac_cv_prog_ac_ct_STRIP="strip" 2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2341 break 2 2342 fi 2343done 2344done 2345IFS=$as_save_IFS 2346 2347fi 2348fi 2349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2350if test -n "$ac_ct_STRIP"; then 2351 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2352$as_echo "$ac_ct_STRIP" >&6; } 2353else 2354 { $as_echo "$as_me:$LINENO: result: no" >&5 2355$as_echo "no" >&6; } 2356fi 2357 2358 if test "x$ac_ct_STRIP" = x; then 2359 STRIP=":" 2360 else 2361 case $cross_compiling:$ac_tool_warned in 2362yes:) 2363{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2365ac_tool_warned=yes ;; 2366esac 2367 STRIP=$ac_ct_STRIP 2368 fi 2369else 2370 STRIP="$ac_cv_prog_STRIP" 2371fi 2372 2373fi 2374INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2375 2376# We need awk for the "check" target. The system "awk" is bad on 2377# some platforms. 2378# Always define AMTAR for backward compatibility. 2379 2380AMTAR=${AMTAR-"${am_missing_run}tar"} 2381 2382am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2383 2384 2385 2386 2387 2388 2389ac_config_headers="$ac_config_headers lib/config.h" 2390 2391 2392ac_ext=c 2393ac_cpp='$CPP $CPPFLAGS' 2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2396ac_compiler_gnu=$ac_cv_c_compiler_gnu 2397if test -n "$ac_tool_prefix"; then 2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2399set dummy ${ac_tool_prefix}gcc; ac_word=$2 2400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2401$as_echo_n "checking for $ac_word... " >&6; } 2402if test "${ac_cv_prog_CC+set}" = set; then 2403 $as_echo_n "(cached) " >&6 2404else 2405 if test -n "$CC"; then 2406 ac_cv_prog_CC="$CC" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2415 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2428$as_echo "$CC" >&6; } 2429else 2430 { $as_echo "$as_me:$LINENO: result: no" >&5 2431$as_echo "no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$ac_cv_prog_CC"; then 2437 ac_ct_CC=$CC 2438 # Extract the first word of "gcc", so it can be a program name with args. 2439set dummy gcc; ac_word=$2 2440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2441$as_echo_n "checking for $ac_word... " >&6; } 2442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2443 $as_echo_n "(cached) " >&6 2444else 2445 if test -n "$ac_ct_CC"; then 2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2455 ac_cv_prog_ac_ct_CC="gcc" 2456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465ac_ct_CC=$ac_cv_prog_ac_ct_CC 2466if test -n "$ac_ct_CC"; then 2467 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2468$as_echo "$ac_ct_CC" >&6; } 2469else 2470 { $as_echo "$as_me:$LINENO: result: no" >&5 2471$as_echo "no" >&6; } 2472fi 2473 2474 if test "x$ac_ct_CC" = x; then 2475 CC="" 2476 else 2477 case $cross_compiling:$ac_tool_warned in 2478yes:) 2479{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2481ac_tool_warned=yes ;; 2482esac 2483 CC=$ac_ct_CC 2484 fi 2485else 2486 CC="$ac_cv_prog_CC" 2487fi 2488 2489if test -z "$CC"; then 2490 if test -n "$ac_tool_prefix"; then 2491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2492set dummy ${ac_tool_prefix}cc; ac_word=$2 2493{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2494$as_echo_n "checking for $ac_word... " >&6; } 2495if test "${ac_cv_prog_CC+set}" = set; then 2496 $as_echo_n "(cached) " >&6 2497else 2498 if test -n "$CC"; then 2499 ac_cv_prog_CC="$CC" # Let the user override the test. 2500else 2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2502for as_dir in $PATH 2503do 2504 IFS=$as_save_IFS 2505 test -z "$as_dir" && as_dir=. 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2508 ac_cv_prog_CC="${ac_tool_prefix}cc" 2509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2510 break 2 2511 fi 2512done 2513done 2514IFS=$as_save_IFS 2515 2516fi 2517fi 2518CC=$ac_cv_prog_CC 2519if test -n "$CC"; then 2520 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2521$as_echo "$CC" >&6; } 2522else 2523 { $as_echo "$as_me:$LINENO: result: no" >&5 2524$as_echo "no" >&6; } 2525fi 2526 2527 2528 fi 2529fi 2530if test -z "$CC"; then 2531 # Extract the first word of "cc", so it can be a program name with args. 2532set dummy cc; ac_word=$2 2533{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if test "${ac_cv_prog_CC+set}" = set; then 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$CC"; then 2539 ac_cv_prog_CC="$CC" # Let the user override the test. 2540else 2541 ac_prog_rejected=no 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2550 ac_prog_rejected=yes 2551 continue 2552 fi 2553 ac_cv_prog_CC="cc" 2554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558done 2559IFS=$as_save_IFS 2560 2561if test $ac_prog_rejected = yes; then 2562 # We found a bogon in the path, so make sure we never use it. 2563 set dummy $ac_cv_prog_CC 2564 shift 2565 if test $# != 0; then 2566 # We chose a different compiler from the bogus one. 2567 # However, it has the same basename, so the bogon will be chosen 2568 # first if we set CC to just the basename; use the full file name. 2569 shift 2570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2571 fi 2572fi 2573fi 2574fi 2575CC=$ac_cv_prog_CC 2576if test -n "$CC"; then 2577 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2578$as_echo "$CC" >&6; } 2579else 2580 { $as_echo "$as_me:$LINENO: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 2585fi 2586if test -z "$CC"; then 2587 if test -n "$ac_tool_prefix"; then 2588 for ac_prog in cl.exe 2589 do 2590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2591set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2592{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2593$as_echo_n "checking for $ac_word... " >&6; } 2594if test "${ac_cv_prog_CC+set}" = set; then 2595 $as_echo_n "(cached) " >&6 2596else 2597 if test -n "$CC"; then 2598 ac_cv_prog_CC="$CC" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 test -z "$as_dir" && as_dir=. 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617CC=$ac_cv_prog_CC 2618if test -n "$CC"; then 2619 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2620$as_echo "$CC" >&6; } 2621else 2622 { $as_echo "$as_me:$LINENO: result: no" >&5 2623$as_echo "no" >&6; } 2624fi 2625 2626 2627 test -n "$CC" && break 2628 done 2629fi 2630if test -z "$CC"; then 2631 ac_ct_CC=$CC 2632 for ac_prog in cl.exe 2633do 2634 # Extract the first word of "$ac_prog", so it can be a program name with args. 2635set dummy $ac_prog; ac_word=$2 2636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2637$as_echo_n "checking for $ac_word... " >&6; } 2638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2639 $as_echo_n "(cached) " >&6 2640else 2641 if test -n "$ac_ct_CC"; then 2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651 ac_cv_prog_ac_ct_CC="$ac_prog" 2652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661ac_ct_CC=$ac_cv_prog_ac_ct_CC 2662if test -n "$ac_ct_CC"; then 2663 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2664$as_echo "$ac_ct_CC" >&6; } 2665else 2666 { $as_echo "$as_me:$LINENO: result: no" >&5 2667$as_echo "no" >&6; } 2668fi 2669 2670 2671 test -n "$ac_ct_CC" && break 2672done 2673 2674 if test "x$ac_ct_CC" = x; then 2675 CC="" 2676 else 2677 case $cross_compiling:$ac_tool_warned in 2678yes:) 2679{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681ac_tool_warned=yes ;; 2682esac 2683 CC=$ac_ct_CC 2684 fi 2685fi 2686 2687fi 2688 2689 2690test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2692{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2693See \`config.log' for more details." >&5 2694$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2695See \`config.log' for more details." >&2;} 2696 { (exit 1); exit 1; }; }; } 2697 2698# Provide some information about the compiler. 2699$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2700set X $ac_compile 2701ac_compiler=$2 2702{ (ac_try="$ac_compiler --version >&5" 2703case "(($ac_try" in 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2705 *) ac_try_echo=$ac_try;; 2706esac 2707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2708$as_echo "$ac_try_echo") >&5 2709 (eval "$ac_compiler --version >&5") 2>&5 2710 ac_status=$? 2711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2712 (exit $ac_status); } 2713{ (ac_try="$ac_compiler -v >&5" 2714case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717esac 2718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2719$as_echo "$ac_try_echo") >&5 2720 (eval "$ac_compiler -v >&5") 2>&5 2721 ac_status=$? 2722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2723 (exit $ac_status); } 2724{ (ac_try="$ac_compiler -V >&5" 2725case "(($ac_try" in 2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2727 *) ac_try_echo=$ac_try;; 2728esac 2729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2730$as_echo "$ac_try_echo") >&5 2731 (eval "$ac_compiler -V >&5") 2>&5 2732 ac_status=$? 2733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); } 2735 2736cat >conftest.$ac_ext <<_ACEOF 2737/* confdefs.h. */ 2738_ACEOF 2739cat confdefs.h >>conftest.$ac_ext 2740cat >>conftest.$ac_ext <<_ACEOF 2741/* end confdefs.h. */ 2742 2743int 2744main () 2745{ 2746 2747 ; 2748 return 0; 2749} 2750_ACEOF 2751ac_clean_files_save=$ac_clean_files 2752ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2753# Try to create an executable without -o first, disregard a.out. 2754# It will help us diagnose broken compilers, and finding out an intuition 2755# of exeext. 2756{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2757$as_echo_n "checking for C compiler default output file name... " >&6; } 2758ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2759 2760# The possible output files: 2761ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2762 2763ac_rmfiles= 2764for ac_file in $ac_files 2765do 2766 case $ac_file in 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2769 esac 2770done 2771rm -f $ac_rmfiles 2772 2773if { (ac_try="$ac_link_default" 2774case "(($ac_try" in 2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2776 *) ac_try_echo=$ac_try;; 2777esac 2778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2779$as_echo "$ac_try_echo") >&5 2780 (eval "$ac_link_default") 2>&5 2781 ac_status=$? 2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); }; then 2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2786# in a Makefile. We should not override ac_cv_exeext if it was cached, 2787# so that the user can short-circuit this test for compilers unknown to 2788# Autoconf. 2789for ac_file in $ac_files '' 2790do 2791 test -f "$ac_file" || continue 2792 case $ac_file in 2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2794 ;; 2795 [ab].out ) 2796 # We found the default executable, but exeext='' is most 2797 # certainly right. 2798 break;; 2799 *.* ) 2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2801 then :; else 2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2803 fi 2804 # We set ac_cv_exeext here because the later test for it is not 2805 # safe: cross compilers may not add the suffix if given an `-o' 2806 # argument, so we may need to know it at that point already. 2807 # Even if this section looks crufty: it has the advantage of 2808 # actually working. 2809 break;; 2810 * ) 2811 break;; 2812 esac 2813done 2814test "$ac_cv_exeext" = no && ac_cv_exeext= 2815 2816else 2817 ac_file='' 2818fi 2819 2820{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2821$as_echo "$ac_file" >&6; } 2822if test -z "$ac_file"; then 2823 $as_echo "$as_me: failed program was:" >&5 2824sed 's/^/| /' conftest.$ac_ext >&5 2825 2826{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2828{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2829See \`config.log' for more details." >&5 2830$as_echo "$as_me: error: C compiler cannot create executables 2831See \`config.log' for more details." >&2;} 2832 { (exit 77); exit 77; }; }; } 2833fi 2834 2835ac_exeext=$ac_cv_exeext 2836 2837# Check that the compiler produces executables we can run. If not, either 2838# the compiler is broken, or we cross compile. 2839{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2840$as_echo_n "checking whether the C compiler works... " >&6; } 2841# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2842# If not cross compiling, check that we can run a simple program. 2843if test "$cross_compiling" != yes; then 2844 if { ac_try='./$ac_file' 2845 { (case "(($ac_try" in 2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2847 *) ac_try_echo=$ac_try;; 2848esac 2849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2850$as_echo "$ac_try_echo") >&5 2851 (eval "$ac_try") 2>&5 2852 ac_status=$? 2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); }; }; then 2855 cross_compiling=no 2856 else 2857 if test "$cross_compiling" = maybe; then 2858 cross_compiling=yes 2859 else 2860 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2862{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2863If you meant to cross compile, use \`--host'. 2864See \`config.log' for more details." >&5 2865$as_echo "$as_me: error: cannot run C compiled programs. 2866If you meant to cross compile, use \`--host'. 2867See \`config.log' for more details." >&2;} 2868 { (exit 1); exit 1; }; }; } 2869 fi 2870 fi 2871fi 2872{ $as_echo "$as_me:$LINENO: result: yes" >&5 2873$as_echo "yes" >&6; } 2874 2875rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2876ac_clean_files=$ac_clean_files_save 2877# Check that the compiler produces executables we can run. If not, either 2878# the compiler is broken, or we cross compile. 2879{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2880$as_echo_n "checking whether we are cross compiling... " >&6; } 2881{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2882$as_echo "$cross_compiling" >&6; } 2883 2884{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2885$as_echo_n "checking for suffix of executables... " >&6; } 2886if { (ac_try="$ac_link" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2892$as_echo "$ac_try_echo") >&5 2893 (eval "$ac_link") 2>&5 2894 ac_status=$? 2895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); }; then 2897 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2899# work properly (i.e., refer to `conftest.exe'), while it won't with 2900# `rm'. 2901for ac_file in conftest.exe conftest conftest.*; do 2902 test -f "$ac_file" || continue 2903 case $ac_file in 2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2906 break;; 2907 * ) break;; 2908 esac 2909done 2910else 2911 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2913{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2914See \`config.log' for more details." >&5 2915$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2916See \`config.log' for more details." >&2;} 2917 { (exit 1); exit 1; }; }; } 2918fi 2919 2920rm -f conftest$ac_cv_exeext 2921{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2922$as_echo "$ac_cv_exeext" >&6; } 2923 2924rm -f conftest.$ac_ext 2925EXEEXT=$ac_cv_exeext 2926ac_exeext=$EXEEXT 2927{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2928$as_echo_n "checking for suffix of object files... " >&6; } 2929if test "${ac_cv_objext+set}" = set; then 2930 $as_echo_n "(cached) " >&6 2931else 2932 cat >conftest.$ac_ext <<_ACEOF 2933/* confdefs.h. */ 2934_ACEOF 2935cat confdefs.h >>conftest.$ac_ext 2936cat >>conftest.$ac_ext <<_ACEOF 2937/* end confdefs.h. */ 2938 2939int 2940main () 2941{ 2942 2943 ; 2944 return 0; 2945} 2946_ACEOF 2947rm -f conftest.o conftest.obj 2948if { (ac_try="$ac_compile" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2954$as_echo "$ac_try_echo") >&5 2955 (eval "$ac_compile") 2>&5 2956 ac_status=$? 2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); }; then 2959 for ac_file in conftest.o conftest.obj conftest.*; do 2960 test -f "$ac_file" || continue; 2961 case $ac_file in 2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2964 break;; 2965 esac 2966done 2967else 2968 $as_echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2973{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2974See \`config.log' for more details." >&5 2975$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2976See \`config.log' for more details." >&2;} 2977 { (exit 1); exit 1; }; }; } 2978fi 2979 2980rm -f conftest.$ac_cv_objext conftest.$ac_ext 2981fi 2982{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2983$as_echo "$ac_cv_objext" >&6; } 2984OBJEXT=$ac_cv_objext 2985ac_objext=$OBJEXT 2986{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2987$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2988if test "${ac_cv_c_compiler_gnu+set}" = set; then 2989 $as_echo_n "(cached) " >&6 2990else 2991 cat >conftest.$ac_ext <<_ACEOF 2992/* confdefs.h. */ 2993_ACEOF 2994cat confdefs.h >>conftest.$ac_ext 2995cat >>conftest.$ac_ext <<_ACEOF 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001#ifndef __GNUC__ 3002 choke me 3003#endif 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009rm -f conftest.$ac_objext 3010if { (ac_try="$ac_compile" 3011case "(($ac_try" in 3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3013 *) ac_try_echo=$ac_try;; 3014esac 3015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3016$as_echo "$ac_try_echo") >&5 3017 (eval "$ac_compile") 2>conftest.er1 3018 ac_status=$? 3019 grep -v '^ *+' conftest.er1 >conftest.err 3020 rm -f conftest.er1 3021 cat conftest.err >&5 3022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } && { 3024 test -z "$ac_c_werror_flag" || 3025 test ! -s conftest.err 3026 } && test -s conftest.$ac_objext; then 3027 ac_compiler_gnu=yes 3028else 3029 $as_echo "$as_me: failed program was:" >&5 3030sed 's/^/| /' conftest.$ac_ext >&5 3031 3032 ac_compiler_gnu=no 3033fi 3034 3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3036ac_cv_c_compiler_gnu=$ac_compiler_gnu 3037 3038fi 3039{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3040$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3041if test $ac_compiler_gnu = yes; then 3042 GCC=yes 3043else 3044 GCC= 3045fi 3046ac_test_CFLAGS=${CFLAGS+set} 3047ac_save_CFLAGS=$CFLAGS 3048{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3049$as_echo_n "checking whether $CC accepts -g... " >&6; } 3050if test "${ac_cv_prog_cc_g+set}" = set; then 3051 $as_echo_n "(cached) " >&6 3052else 3053 ac_save_c_werror_flag=$ac_c_werror_flag 3054 ac_c_werror_flag=yes 3055 ac_cv_prog_cc_g=no 3056 CFLAGS="-g" 3057 cat >conftest.$ac_ext <<_ACEOF 3058/* confdefs.h. */ 3059_ACEOF 3060cat confdefs.h >>conftest.$ac_ext 3061cat >>conftest.$ac_ext <<_ACEOF 3062/* end confdefs.h. */ 3063 3064int 3065main () 3066{ 3067 3068 ; 3069 return 0; 3070} 3071_ACEOF 3072rm -f conftest.$ac_objext 3073if { (ac_try="$ac_compile" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3079$as_echo "$ac_try_echo") >&5 3080 (eval "$ac_compile") 2>conftest.er1 3081 ac_status=$? 3082 grep -v '^ *+' conftest.er1 >conftest.err 3083 rm -f conftest.er1 3084 cat conftest.err >&5 3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3086 (exit $ac_status); } && { 3087 test -z "$ac_c_werror_flag" || 3088 test ! -s conftest.err 3089 } && test -s conftest.$ac_objext; then 3090 ac_cv_prog_cc_g=yes 3091else 3092 $as_echo "$as_me: failed program was:" >&5 3093sed 's/^/| /' conftest.$ac_ext >&5 3094 3095 CFLAGS="" 3096 cat >conftest.$ac_ext <<_ACEOF 3097/* confdefs.h. */ 3098_ACEOF 3099cat confdefs.h >>conftest.$ac_ext 3100cat >>conftest.$ac_ext <<_ACEOF 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111rm -f conftest.$ac_objext 3112if { (ac_try="$ac_compile" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3118$as_echo "$ac_try_echo") >&5 3119 (eval "$ac_compile") 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } && { 3126 test -z "$ac_c_werror_flag" || 3127 test ! -s conftest.err 3128 } && test -s conftest.$ac_objext; then 3129 : 3130else 3131 $as_echo "$as_me: failed program was:" >&5 3132sed 's/^/| /' conftest.$ac_ext >&5 3133 3134 ac_c_werror_flag=$ac_save_c_werror_flag 3135 CFLAGS="-g" 3136 cat >conftest.$ac_ext <<_ACEOF 3137/* confdefs.h. */ 3138_ACEOF 3139cat confdefs.h >>conftest.$ac_ext 3140cat >>conftest.$ac_ext <<_ACEOF 3141/* end confdefs.h. */ 3142 3143int 3144main () 3145{ 3146 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151rm -f conftest.$ac_objext 3152if { (ac_try="$ac_compile" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3158$as_echo "$ac_try_echo") >&5 3159 (eval "$ac_compile") 2>conftest.er1 3160 ac_status=$? 3161 grep -v '^ *+' conftest.er1 >conftest.err 3162 rm -f conftest.er1 3163 cat conftest.err >&5 3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); } && { 3166 test -z "$ac_c_werror_flag" || 3167 test ! -s conftest.err 3168 } && test -s conftest.$ac_objext; then 3169 ac_cv_prog_cc_g=yes 3170else 3171 $as_echo "$as_me: failed program was:" >&5 3172sed 's/^/| /' conftest.$ac_ext >&5 3173 3174 3175fi 3176 3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3178fi 3179 3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3181fi 3182 3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3184 ac_c_werror_flag=$ac_save_c_werror_flag 3185fi 3186{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3187$as_echo "$ac_cv_prog_cc_g" >&6; } 3188if test "$ac_test_CFLAGS" = set; then 3189 CFLAGS=$ac_save_CFLAGS 3190elif test $ac_cv_prog_cc_g = yes; then 3191 if test "$GCC" = yes; then 3192 CFLAGS="-g -O2" 3193 else 3194 CFLAGS="-g" 3195 fi 3196else 3197 if test "$GCC" = yes; then 3198 CFLAGS="-O2" 3199 else 3200 CFLAGS= 3201 fi 3202fi 3203{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3204$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3205if test "${ac_cv_prog_cc_c89+set}" = set; then 3206 $as_echo_n "(cached) " >&6 3207else 3208 ac_cv_prog_cc_c89=no 3209ac_save_CC=$CC 3210cat >conftest.$ac_ext <<_ACEOF 3211/* confdefs.h. */ 3212_ACEOF 3213cat confdefs.h >>conftest.$ac_ext 3214cat >>conftest.$ac_ext <<_ACEOF 3215/* end confdefs.h. */ 3216#include <stdarg.h> 3217#include <stdio.h> 3218#include <sys/types.h> 3219#include <sys/stat.h> 3220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3221struct buf { int x; }; 3222FILE * (*rcsopen) (struct buf *, struct stat *, int); 3223static char *e (p, i) 3224 char **p; 3225 int i; 3226{ 3227 return p[i]; 3228} 3229static char *f (char * (*g) (char **, int), char **p, ...) 3230{ 3231 char *s; 3232 va_list v; 3233 va_start (v,p); 3234 s = g (p, va_arg (v,int)); 3235 va_end (v); 3236 return s; 3237} 3238 3239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3240 function prototypes and stuff, but not '\xHH' hex character constants. 3241 These don't provoke an error unfortunately, instead are silently treated 3242 as 'x'. The following induces an error, until -std is added to get 3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3244 array size at least. It's necessary to write '\x00'==0 to get something 3245 that's true only with -std. */ 3246int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3247 3248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3249 inside strings and character constants. */ 3250#define FOO(x) 'x' 3251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3252 3253int test (int i, double x); 3254struct s1 {int (*f) (int a);}; 3255struct s2 {int (*f) (double a);}; 3256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3257int argc; 3258char **argv; 3259int 3260main () 3261{ 3262return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3269do 3270 CC="$ac_save_CC $ac_arg" 3271 rm -f conftest.$ac_objext 3272if { (ac_try="$ac_compile" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3278$as_echo "$ac_try_echo") >&5 3279 (eval "$ac_compile") 2>conftest.er1 3280 ac_status=$? 3281 grep -v '^ *+' conftest.er1 >conftest.err 3282 rm -f conftest.er1 3283 cat conftest.err >&5 3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); } && { 3286 test -z "$ac_c_werror_flag" || 3287 test ! -s conftest.err 3288 } && test -s conftest.$ac_objext; then 3289 ac_cv_prog_cc_c89=$ac_arg 3290else 3291 $as_echo "$as_me: failed program was:" >&5 3292sed 's/^/| /' conftest.$ac_ext >&5 3293 3294 3295fi 3296 3297rm -f core conftest.err conftest.$ac_objext 3298 test "x$ac_cv_prog_cc_c89" != "xno" && break 3299done 3300rm -f conftest.$ac_ext 3301CC=$ac_save_CC 3302 3303fi 3304# AC_CACHE_VAL 3305case "x$ac_cv_prog_cc_c89" in 3306 x) 3307 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3308$as_echo "none needed" >&6; } ;; 3309 xno) 3310 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3311$as_echo "unsupported" >&6; } ;; 3312 *) 3313 CC="$CC $ac_cv_prog_cc_c89" 3314 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3315$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3316esac 3317 3318 3319ac_ext=c 3320ac_cpp='$CPP $CPPFLAGS' 3321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3323ac_compiler_gnu=$ac_cv_c_compiler_gnu 3324DEPDIR="${am__leading_dot}deps" 3325 3326ac_config_commands="$ac_config_commands depfiles" 3327 3328 3329am_make=${MAKE-make} 3330cat > confinc << 'END' 3331am__doit: 3332 @echo done 3333.PHONY: am__doit 3334END 3335# If we don't find an include directive, just comment out the code. 3336{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3337$as_echo_n "checking for style of include used by $am_make... " >&6; } 3338am__include="#" 3339am__quote= 3340_am_result=none 3341# First try GNU make style include. 3342echo "include confinc" > confmf 3343# We grep out `Entering directory' and `Leaving directory' 3344# messages which can occur if `w' ends up in MAKEFLAGS. 3345# In particular we don't look at `^make:' because GNU make might 3346# be invoked under some other name (usually "gmake"), in which 3347# case it prints its new name instead of `make'. 3348if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3349 am__include=include 3350 am__quote= 3351 _am_result=GNU 3352fi 3353# Now try BSD make style include. 3354if test "$am__include" = "#"; then 3355 echo '.include "confinc"' > confmf 3356 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3357 am__include=.include 3358 am__quote="\"" 3359 _am_result=BSD 3360 fi 3361fi 3362 3363 3364{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3365$as_echo "$_am_result" >&6; } 3366rm -f confinc confmf 3367 3368# Check whether --enable-dependency-tracking was given. 3369if test "${enable_dependency_tracking+set}" = set; then 3370 enableval=$enable_dependency_tracking; 3371fi 3372 3373if test "x$enable_dependency_tracking" != xno; then 3374 am_depcomp="$ac_aux_dir/depcomp" 3375 AMDEPBACKSLASH='\' 3376fi 3377 if test "x$enable_dependency_tracking" != xno; then 3378 AMDEP_TRUE= 3379 AMDEP_FALSE='#' 3380else 3381 AMDEP_TRUE='#' 3382 AMDEP_FALSE= 3383fi 3384 3385 3386 3387depcc="$CC" am_compiler_list= 3388 3389{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3390$as_echo_n "checking dependency style of $depcc... " >&6; } 3391if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3392 $as_echo_n "(cached) " >&6 3393else 3394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3395 # We make a subdir and do the tests there. Otherwise we can end up 3396 # making bogus files that we don't know about and never remove. For 3397 # instance it was reported that on HP-UX the gcc test will end up 3398 # making a dummy file named `D' -- because `-MD' means `put the output 3399 # in D'. 3400 mkdir conftest.dir 3401 # Copy depcomp to subdir because otherwise we won't find it if we're 3402 # using a relative directory. 3403 cp "$am_depcomp" conftest.dir 3404 cd conftest.dir 3405 # We will build objects and dependencies in a subdirectory because 3406 # it helps to detect inapplicable dependency modes. For instance 3407 # both Tru64's cc and ICC support -MD to output dependencies as a 3408 # side effect of compilation, but ICC will put the dependencies in 3409 # the current directory while Tru64 will put them in the object 3410 # directory. 3411 mkdir sub 3412 3413 am_cv_CC_dependencies_compiler_type=none 3414 if test "$am_compiler_list" = ""; then 3415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3416 fi 3417 for depmode in $am_compiler_list; do 3418 # Setup a source with many dependencies, because some compilers 3419 # like to wrap large dependency lists on column 80 (with \), and 3420 # we should not choose a depcomp mode which is confused by this. 3421 # 3422 # We need to recreate these files for each test, as the compiler may 3423 # overwrite some of them when testing with obscure command lines. 3424 # This happens at least with the AIX C compiler. 3425 : > sub/conftest.c 3426 for i in 1 2 3 4 5 6; do 3427 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3429 # Solaris 8's {/usr,}/bin/sh. 3430 touch sub/conftst$i.h 3431 done 3432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3433 3434 case $depmode in 3435 nosideeffect) 3436 # after this tag, mechanisms are not by side-effect, so they'll 3437 # only be used when explicitly requested 3438 if test "x$enable_dependency_tracking" = xyes; then 3439 continue 3440 else 3441 break 3442 fi 3443 ;; 3444 none) break ;; 3445 esac 3446 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3447 # mode. It turns out that the SunPro C++ compiler does not properly 3448 # handle `-M -o', and we need to detect this. 3449 if depmode=$depmode \ 3450 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3452 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3453 >/dev/null 2>conftest.err && 3454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3456 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3458 # icc doesn't choke on unknown options, it will just issue warnings 3459 # or remarks (even with -Werror). So we grep stderr for any message 3460 # that says an option was ignored or not supported. 3461 # When given -MP, icc 7.0 and 7.1 complain thusly: 3462 # icc: Command line warning: ignoring option '-M'; no argument required 3463 # The diagnosis changed in icc 8.0: 3464 # icc: Command line remark: option '-MP' not supported 3465 if (grep 'ignoring option' conftest.err || 3466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3467 am_cv_CC_dependencies_compiler_type=$depmode 3468 break 3469 fi 3470 fi 3471 done 3472 3473 cd .. 3474 rm -rf conftest.dir 3475else 3476 am_cv_CC_dependencies_compiler_type=none 3477fi 3478 3479fi 3480{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3481$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3482CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3483 3484 if 3485 test "x$enable_dependency_tracking" != xno \ 3486 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3487 am__fastdepCC_TRUE= 3488 am__fastdepCC_FALSE='#' 3489else 3490 am__fastdepCC_TRUE='#' 3491 am__fastdepCC_FALSE= 3492fi 3493 3494 3495 3496if test -n "$GCC"; then 3497 CFLAGS="$CFLAGS -Wall" 3498fi 3499 3500# Find a good install program. We prefer a C program (faster), 3501# so one script is as good as another. But avoid the broken or 3502# incompatible versions: 3503# SysV /etc/install, /usr/sbin/install 3504# SunOS /usr/etc/install 3505# IRIX /sbin/install 3506# AIX /bin/install 3507# AmigaOS /C/install, which installs bootblocks on floppy discs 3508# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3509# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3510# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3511# OS/2's system install, which has a completely different semantic 3512# ./install, which can be erroneously created by make from ./install.sh. 3513# Reject install programs that cannot install multiple files. 3514{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3515$as_echo_n "checking for a BSD-compatible install... " >&6; } 3516if test -z "$INSTALL"; then 3517if test "${ac_cv_path_install+set}" = set; then 3518 $as_echo_n "(cached) " >&6 3519else 3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 # Account for people who put trailing slashes in PATH elements. 3526case $as_dir/ in 3527 ./ | .// | /cC/* | \ 3528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3529 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3530 /usr/ucb/* ) ;; 3531 *) 3532 # OSF1 and SCO ODT 3.0 have their own names for install. 3533 # Don't use installbsd from OSF since it installs stuff as root 3534 # by default. 3535 for ac_prog in ginstall scoinst install; do 3536 for ac_exec_ext in '' $ac_executable_extensions; do 3537 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3538 if test $ac_prog = install && 3539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3540 # AIX install. It has an incompatible calling convention. 3541 : 3542 elif test $ac_prog = install && 3543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3544 # program-specific install script used by HP pwplus--don't use. 3545 : 3546 else 3547 rm -rf conftest.one conftest.two conftest.dir 3548 echo one > conftest.one 3549 echo two > conftest.two 3550 mkdir conftest.dir 3551 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3552 test -s conftest.one && test -s conftest.two && 3553 test -s conftest.dir/conftest.one && 3554 test -s conftest.dir/conftest.two 3555 then 3556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3557 break 3 3558 fi 3559 fi 3560 fi 3561 done 3562 done 3563 ;; 3564esac 3565 3566done 3567IFS=$as_save_IFS 3568 3569rm -rf conftest.one conftest.two conftest.dir 3570 3571fi 3572 if test "${ac_cv_path_install+set}" = set; then 3573 INSTALL=$ac_cv_path_install 3574 else 3575 # As a last resort, use the slow shell script. Don't cache a 3576 # value for INSTALL within a source directory, because that will 3577 # break other packages using the cache if that directory is 3578 # removed, or if the value is a relative name. 3579 INSTALL=$ac_install_sh 3580 fi 3581fi 3582{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3583$as_echo "$INSTALL" >&6; } 3584 3585# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3586# It thinks the first close brace ends the variable substitution. 3587test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3588 3589test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3590 3591test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3592 3593if test -n "$ac_tool_prefix"; then 3594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3595set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3596{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3597$as_echo_n "checking for $ac_word... " >&6; } 3598if test "${ac_cv_prog_RANLIB+set}" = set; then 3599 $as_echo_n "(cached) " >&6 3600else 3601 if test -n "$RANLIB"; then 3602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3603else 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3605for as_dir in $PATH 3606do 3607 IFS=$as_save_IFS 3608 test -z "$as_dir" && as_dir=. 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3613 break 2 3614 fi 3615done 3616done 3617IFS=$as_save_IFS 3618 3619fi 3620fi 3621RANLIB=$ac_cv_prog_RANLIB 3622if test -n "$RANLIB"; then 3623 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 3624$as_echo "$RANLIB" >&6; } 3625else 3626 { $as_echo "$as_me:$LINENO: result: no" >&5 3627$as_echo "no" >&6; } 3628fi 3629 3630 3631fi 3632if test -z "$ac_cv_prog_RANLIB"; then 3633 ac_ct_RANLIB=$RANLIB 3634 # Extract the first word of "ranlib", so it can be a program name with args. 3635set dummy ranlib; ac_word=$2 3636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3637$as_echo_n "checking for $ac_word... " >&6; } 3638if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -n "$ac_ct_RANLIB"; then 3642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3643else 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3651 ac_cv_prog_ac_ct_RANLIB="ranlib" 3652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3653 break 2 3654 fi 3655done 3656done 3657IFS=$as_save_IFS 3658 3659fi 3660fi 3661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3662if test -n "$ac_ct_RANLIB"; then 3663 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3664$as_echo "$ac_ct_RANLIB" >&6; } 3665else 3666 { $as_echo "$as_me:$LINENO: result: no" >&5 3667$as_echo "no" >&6; } 3668fi 3669 3670 if test "x$ac_ct_RANLIB" = x; then 3671 RANLIB=":" 3672 else 3673 case $cross_compiling:$ac_tool_warned in 3674yes:) 3675{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3677ac_tool_warned=yes ;; 3678esac 3679 RANLIB=$ac_ct_RANLIB 3680 fi 3681else 3682 RANLIB="$ac_cv_prog_RANLIB" 3683fi 3684 3685 3686 3687{ $as_echo "$as_me:$LINENO: checking for inline" >&5 3688$as_echo_n "checking for inline... " >&6; } 3689if test "${ac_cv_c_inline+set}" = set; then 3690 $as_echo_n "(cached) " >&6 3691else 3692 ac_cv_c_inline=no 3693for ac_kw in inline __inline__ __inline; do 3694 cat >conftest.$ac_ext <<_ACEOF 3695/* confdefs.h. */ 3696_ACEOF 3697cat confdefs.h >>conftest.$ac_ext 3698cat >>conftest.$ac_ext <<_ACEOF 3699/* end confdefs.h. */ 3700#ifndef __cplusplus 3701typedef int foo_t; 3702static $ac_kw foo_t static_foo () {return 0; } 3703$ac_kw foo_t foo () {return 0; } 3704#endif 3705 3706_ACEOF 3707rm -f conftest.$ac_objext 3708if { (ac_try="$ac_compile" 3709case "(($ac_try" in 3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3711 *) ac_try_echo=$ac_try;; 3712esac 3713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3714$as_echo "$ac_try_echo") >&5 3715 (eval "$ac_compile") 2>conftest.er1 3716 ac_status=$? 3717 grep -v '^ *+' conftest.er1 >conftest.err 3718 rm -f conftest.er1 3719 cat conftest.err >&5 3720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); } && { 3722 test -z "$ac_c_werror_flag" || 3723 test ! -s conftest.err 3724 } && test -s conftest.$ac_objext; then 3725 ac_cv_c_inline=$ac_kw 3726else 3727 $as_echo "$as_me: failed program was:" >&5 3728sed 's/^/| /' conftest.$ac_ext >&5 3729 3730 3731fi 3732 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734 test "$ac_cv_c_inline" != no && break 3735done 3736 3737fi 3738{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3739$as_echo "$ac_cv_c_inline" >&6; } 3740 3741 3742case $ac_cv_c_inline in 3743 inline | yes) ;; 3744 *) 3745 case $ac_cv_c_inline in 3746 no) ac_val=;; 3747 *) ac_val=$ac_cv_c_inline;; 3748 esac 3749 cat >>confdefs.h <<_ACEOF 3750#ifndef __cplusplus 3751#define inline $ac_val 3752#endif 3753_ACEOF 3754 ;; 3755esac 3756 3757 3758 3759{ $as_echo "$as_me:$LINENO: checking for main in -lm" >&5 3760$as_echo_n "checking for main in -lm... " >&6; } 3761if test "${ac_cv_lib_m_main+set}" = set; then 3762 $as_echo_n "(cached) " >&6 3763else 3764 ac_check_lib_save_LIBS=$LIBS 3765LIBS="-lm $LIBS" 3766cat >conftest.$ac_ext <<_ACEOF 3767/* confdefs.h. */ 3768_ACEOF 3769cat confdefs.h >>conftest.$ac_ext 3770cat >>conftest.$ac_ext <<_ACEOF 3771/* end confdefs.h. */ 3772 3773 3774int 3775main () 3776{ 3777return main (); 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782rm -f conftest.$ac_objext conftest$ac_exeext 3783if { (ac_try="$ac_link" 3784case "(($ac_try" in 3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3786 *) ac_try_echo=$ac_try;; 3787esac 3788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3789$as_echo "$ac_try_echo") >&5 3790 (eval "$ac_link") 2>conftest.er1 3791 ac_status=$? 3792 grep -v '^ *+' conftest.er1 >conftest.err 3793 rm -f conftest.er1 3794 cat conftest.err >&5 3795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } && { 3797 test -z "$ac_c_werror_flag" || 3798 test ! -s conftest.err 3799 } && test -s conftest$ac_exeext && { 3800 test "$cross_compiling" = yes || 3801 $as_test_x conftest$ac_exeext 3802 }; then 3803 ac_cv_lib_m_main=yes 3804else 3805 $as_echo "$as_me: failed program was:" >&5 3806sed 's/^/| /' conftest.$ac_ext >&5 3807 3808 ac_cv_lib_m_main=no 3809fi 3810 3811rm -rf conftest.dSYM 3812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3813 conftest$ac_exeext conftest.$ac_ext 3814LIBS=$ac_check_lib_save_LIBS 3815fi 3816{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 3817$as_echo "$ac_cv_lib_m_main" >&6; } 3818if test "x$ac_cv_lib_m_main" = x""yes; then 3819 cat >>confdefs.h <<_ACEOF 3820#define HAVE_LIBM 1 3821_ACEOF 3822 3823 LIBS="-lm $LIBS" 3824 3825fi 3826 3827 3828ac_ext=c 3829ac_cpp='$CPP $CPPFLAGS' 3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3834$as_echo_n "checking how to run the C preprocessor... " >&6; } 3835# On Suns, sometimes $CPP names a directory. 3836if test -n "$CPP" && test -d "$CPP"; then 3837 CPP= 3838fi 3839if test -z "$CPP"; then 3840 if test "${ac_cv_prog_CPP+set}" = set; then 3841 $as_echo_n "(cached) " >&6 3842else 3843 # Double quotes because CPP needs to be expanded 3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3845 do 3846 ac_preproc_ok=false 3847for ac_c_preproc_warn_flag in '' yes 3848do 3849 # Use a header file that comes with gcc, so configuring glibc 3850 # with a fresh cross-compiler works. 3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3852 # <limits.h> exists even on freestanding compilers. 3853 # On the NeXT, cc -E runs the code through the compiler's parser, 3854 # not just through cpp. "Syntax error" is here to catch this case. 3855 cat >conftest.$ac_ext <<_ACEOF 3856/* confdefs.h. */ 3857_ACEOF 3858cat confdefs.h >>conftest.$ac_ext 3859cat >>conftest.$ac_ext <<_ACEOF 3860/* end confdefs.h. */ 3861#ifdef __STDC__ 3862# include <limits.h> 3863#else 3864# include <assert.h> 3865#endif 3866 Syntax error 3867_ACEOF 3868if { (ac_try="$ac_cpp conftest.$ac_ext" 3869case "(($ac_try" in 3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3871 *) ac_try_echo=$ac_try;; 3872esac 3873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3874$as_echo "$ac_try_echo") >&5 3875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3876 ac_status=$? 3877 grep -v '^ *+' conftest.er1 >conftest.err 3878 rm -f conftest.er1 3879 cat conftest.err >&5 3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); } >/dev/null && { 3882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3883 test ! -s conftest.err 3884 }; then 3885 : 3886else 3887 $as_echo "$as_me: failed program was:" >&5 3888sed 's/^/| /' conftest.$ac_ext >&5 3889 3890 # Broken: fails on valid input. 3891continue 3892fi 3893 3894rm -f conftest.err conftest.$ac_ext 3895 3896 # OK, works on sane cases. Now check whether nonexistent headers 3897 # can be detected and how. 3898 cat >conftest.$ac_ext <<_ACEOF 3899/* confdefs.h. */ 3900_ACEOF 3901cat confdefs.h >>conftest.$ac_ext 3902cat >>conftest.$ac_ext <<_ACEOF 3903/* end confdefs.h. */ 3904#include <ac_nonexistent.h> 3905_ACEOF 3906if { (ac_try="$ac_cpp conftest.$ac_ext" 3907case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3912$as_echo "$ac_try_echo") >&5 3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3914 ac_status=$? 3915 grep -v '^ *+' conftest.er1 >conftest.err 3916 rm -f conftest.er1 3917 cat conftest.err >&5 3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); } >/dev/null && { 3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3921 test ! -s conftest.err 3922 }; then 3923 # Broken: success on invalid input. 3924continue 3925else 3926 $as_echo "$as_me: failed program was:" >&5 3927sed 's/^/| /' conftest.$ac_ext >&5 3928 3929 # Passes both tests. 3930ac_preproc_ok=: 3931break 3932fi 3933 3934rm -f conftest.err conftest.$ac_ext 3935 3936done 3937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3938rm -f conftest.err conftest.$ac_ext 3939if $ac_preproc_ok; then 3940 break 3941fi 3942 3943 done 3944 ac_cv_prog_CPP=$CPP 3945 3946fi 3947 CPP=$ac_cv_prog_CPP 3948else 3949 ac_cv_prog_CPP=$CPP 3950fi 3951{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3952$as_echo "$CPP" >&6; } 3953ac_preproc_ok=false 3954for ac_c_preproc_warn_flag in '' yes 3955do 3956 # Use a header file that comes with gcc, so configuring glibc 3957 # with a fresh cross-compiler works. 3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3959 # <limits.h> exists even on freestanding compilers. 3960 # On the NeXT, cc -E runs the code through the compiler's parser, 3961 # not just through cpp. "Syntax error" is here to catch this case. 3962 cat >conftest.$ac_ext <<_ACEOF 3963/* confdefs.h. */ 3964_ACEOF 3965cat confdefs.h >>conftest.$ac_ext 3966cat >>conftest.$ac_ext <<_ACEOF 3967/* end confdefs.h. */ 3968#ifdef __STDC__ 3969# include <limits.h> 3970#else 3971# include <assert.h> 3972#endif 3973 Syntax error 3974_ACEOF 3975if { (ac_try="$ac_cpp conftest.$ac_ext" 3976case "(($ac_try" in 3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3978 *) ac_try_echo=$ac_try;; 3979esac 3980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3981$as_echo "$ac_try_echo") >&5 3982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3983 ac_status=$? 3984 grep -v '^ *+' conftest.er1 >conftest.err 3985 rm -f conftest.er1 3986 cat conftest.err >&5 3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); } >/dev/null && { 3989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3990 test ! -s conftest.err 3991 }; then 3992 : 3993else 3994 $as_echo "$as_me: failed program was:" >&5 3995sed 's/^/| /' conftest.$ac_ext >&5 3996 3997 # Broken: fails on valid input. 3998continue 3999fi 4000 4001rm -f conftest.err conftest.$ac_ext 4002 4003 # OK, works on sane cases. Now check whether nonexistent headers 4004 # can be detected and how. 4005 cat >conftest.$ac_ext <<_ACEOF 4006/* confdefs.h. */ 4007_ACEOF 4008cat confdefs.h >>conftest.$ac_ext 4009cat >>conftest.$ac_ext <<_ACEOF 4010/* end confdefs.h. */ 4011#include <ac_nonexistent.h> 4012_ACEOF 4013if { (ac_try="$ac_cpp conftest.$ac_ext" 4014case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4019$as_echo "$ac_try_echo") >&5 4020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4021 ac_status=$? 4022 grep -v '^ *+' conftest.er1 >conftest.err 4023 rm -f conftest.er1 4024 cat conftest.err >&5 4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4026 (exit $ac_status); } >/dev/null && { 4027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4028 test ! -s conftest.err 4029 }; then 4030 # Broken: success on invalid input. 4031continue 4032else 4033 $as_echo "$as_me: failed program was:" >&5 4034sed 's/^/| /' conftest.$ac_ext >&5 4035 4036 # Passes both tests. 4037ac_preproc_ok=: 4038break 4039fi 4040 4041rm -f conftest.err conftest.$ac_ext 4042 4043done 4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4045rm -f conftest.err conftest.$ac_ext 4046if $ac_preproc_ok; then 4047 : 4048else 4049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4051{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4052See \`config.log' for more details." >&5 4053$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4054See \`config.log' for more details." >&2;} 4055 { (exit 1); exit 1; }; }; } 4056fi 4057 4058ac_ext=c 4059ac_cpp='$CPP $CPPFLAGS' 4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4062ac_compiler_gnu=$ac_cv_c_compiler_gnu 4063 4064 4065{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4066$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4067if test "${ac_cv_path_GREP+set}" = set; then 4068 $as_echo_n "(cached) " >&6 4069else 4070 if test -z "$GREP"; then 4071 ac_path_GREP_found=false 4072 # Loop through the user's path and test for each of PROGNAME-LIST 4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4074for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4075do 4076 IFS=$as_save_IFS 4077 test -z "$as_dir" && as_dir=. 4078 for ac_prog in grep ggrep; do 4079 for ac_exec_ext in '' $ac_executable_extensions; do 4080 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4081 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4082# Check for GNU ac_path_GREP and select it if it is found. 4083 # Check for GNU $ac_path_GREP 4084case `"$ac_path_GREP" --version 2>&1` in 4085*GNU*) 4086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4087*) 4088 ac_count=0 4089 $as_echo_n 0123456789 >"conftest.in" 4090 while : 4091 do 4092 cat "conftest.in" "conftest.in" >"conftest.tmp" 4093 mv "conftest.tmp" "conftest.in" 4094 cp "conftest.in" "conftest.nl" 4095 $as_echo 'GREP' >> "conftest.nl" 4096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4098 ac_count=`expr $ac_count + 1` 4099 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4100 # Best one so far, save it but keep looking for a better one 4101 ac_cv_path_GREP="$ac_path_GREP" 4102 ac_path_GREP_max=$ac_count 4103 fi 4104 # 10*(2^10) chars as input seems more than enough 4105 test $ac_count -gt 10 && break 4106 done 4107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4108esac 4109 4110 $ac_path_GREP_found && break 3 4111 done 4112 done 4113done 4114IFS=$as_save_IFS 4115 if test -z "$ac_cv_path_GREP"; then 4116 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4117$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4118 { (exit 1); exit 1; }; } 4119 fi 4120else 4121 ac_cv_path_GREP=$GREP 4122fi 4123 4124fi 4125{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4126$as_echo "$ac_cv_path_GREP" >&6; } 4127 GREP="$ac_cv_path_GREP" 4128 4129 4130{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4131$as_echo_n "checking for egrep... " >&6; } 4132if test "${ac_cv_path_EGREP+set}" = set; then 4133 $as_echo_n "(cached) " >&6 4134else 4135 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4136 then ac_cv_path_EGREP="$GREP -E" 4137 else 4138 if test -z "$EGREP"; then 4139 ac_path_EGREP_found=false 4140 # Loop through the user's path and test for each of PROGNAME-LIST 4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4143do 4144 IFS=$as_save_IFS 4145 test -z "$as_dir" && as_dir=. 4146 for ac_prog in egrep; do 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4149 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4150# Check for GNU ac_path_EGREP and select it if it is found. 4151 # Check for GNU $ac_path_EGREP 4152case `"$ac_path_EGREP" --version 2>&1` in 4153*GNU*) 4154 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4155*) 4156 ac_count=0 4157 $as_echo_n 0123456789 >"conftest.in" 4158 while : 4159 do 4160 cat "conftest.in" "conftest.in" >"conftest.tmp" 4161 mv "conftest.tmp" "conftest.in" 4162 cp "conftest.in" "conftest.nl" 4163 $as_echo 'EGREP' >> "conftest.nl" 4164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4166 ac_count=`expr $ac_count + 1` 4167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4168 # Best one so far, save it but keep looking for a better one 4169 ac_cv_path_EGREP="$ac_path_EGREP" 4170 ac_path_EGREP_max=$ac_count 4171 fi 4172 # 10*(2^10) chars as input seems more than enough 4173 test $ac_count -gt 10 && break 4174 done 4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4176esac 4177 4178 $ac_path_EGREP_found && break 3 4179 done 4180 done 4181done 4182IFS=$as_save_IFS 4183 if test -z "$ac_cv_path_EGREP"; then 4184 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4185$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4186 { (exit 1); exit 1; }; } 4187 fi 4188else 4189 ac_cv_path_EGREP=$EGREP 4190fi 4191 4192 fi 4193fi 4194{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4195$as_echo "$ac_cv_path_EGREP" >&6; } 4196 EGREP="$ac_cv_path_EGREP" 4197 4198 4199{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4200$as_echo_n "checking for ANSI C header files... " >&6; } 4201if test "${ac_cv_header_stdc+set}" = set; then 4202 $as_echo_n "(cached) " >&6 4203else 4204 cat >conftest.$ac_ext <<_ACEOF 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#include <stdlib.h> 4211#include <stdarg.h> 4212#include <string.h> 4213#include <float.h> 4214 4215int 4216main () 4217{ 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223rm -f conftest.$ac_objext 4224if { (ac_try="$ac_compile" 4225case "(($ac_try" in 4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4227 *) ac_try_echo=$ac_try;; 4228esac 4229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4230$as_echo "$ac_try_echo") >&5 4231 (eval "$ac_compile") 2>conftest.er1 4232 ac_status=$? 4233 grep -v '^ *+' conftest.er1 >conftest.err 4234 rm -f conftest.er1 4235 cat conftest.err >&5 4236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); } && { 4238 test -z "$ac_c_werror_flag" || 4239 test ! -s conftest.err 4240 } && test -s conftest.$ac_objext; then 4241 ac_cv_header_stdc=yes 4242else 4243 $as_echo "$as_me: failed program was:" >&5 4244sed 's/^/| /' conftest.$ac_ext >&5 4245 4246 ac_cv_header_stdc=no 4247fi 4248 4249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4250 4251if test $ac_cv_header_stdc = yes; then 4252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4253 cat >conftest.$ac_ext <<_ACEOF 4254/* confdefs.h. */ 4255_ACEOF 4256cat confdefs.h >>conftest.$ac_ext 4257cat >>conftest.$ac_ext <<_ACEOF 4258/* end confdefs.h. */ 4259#include <string.h> 4260 4261_ACEOF 4262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4263 $EGREP "memchr" >/dev/null 2>&1; then 4264 : 4265else 4266 ac_cv_header_stdc=no 4267fi 4268rm -f conftest* 4269 4270fi 4271 4272if test $ac_cv_header_stdc = yes; then 4273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4274 cat >conftest.$ac_ext <<_ACEOF 4275/* confdefs.h. */ 4276_ACEOF 4277cat confdefs.h >>conftest.$ac_ext 4278cat >>conftest.$ac_ext <<_ACEOF 4279/* end confdefs.h. */ 4280#include <stdlib.h> 4281 4282_ACEOF 4283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4284 $EGREP "free" >/dev/null 2>&1; then 4285 : 4286else 4287 ac_cv_header_stdc=no 4288fi 4289rm -f conftest* 4290 4291fi 4292 4293if test $ac_cv_header_stdc = yes; then 4294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4295 if test "$cross_compiling" = yes; then 4296 : 4297else 4298 cat >conftest.$ac_ext <<_ACEOF 4299/* confdefs.h. */ 4300_ACEOF 4301cat confdefs.h >>conftest.$ac_ext 4302cat >>conftest.$ac_ext <<_ACEOF 4303/* end confdefs.h. */ 4304#include <ctype.h> 4305#include <stdlib.h> 4306#if ((' ' & 0x0FF) == 0x020) 4307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4309#else 4310# define ISLOWER(c) \ 4311 (('a' <= (c) && (c) <= 'i') \ 4312 || ('j' <= (c) && (c) <= 'r') \ 4313 || ('s' <= (c) && (c) <= 'z')) 4314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4315#endif 4316 4317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4318int 4319main () 4320{ 4321 int i; 4322 for (i = 0; i < 256; i++) 4323 if (XOR (islower (i), ISLOWER (i)) 4324 || toupper (i) != TOUPPER (i)) 4325 return 2; 4326 return 0; 4327} 4328_ACEOF 4329rm -f conftest$ac_exeext 4330if { (ac_try="$ac_link" 4331case "(($ac_try" in 4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4333 *) ac_try_echo=$ac_try;; 4334esac 4335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4336$as_echo "$ac_try_echo") >&5 4337 (eval "$ac_link") 2>&5 4338 ac_status=$? 4339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4341 { (case "(($ac_try" in 4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4343 *) ac_try_echo=$ac_try;; 4344esac 4345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4346$as_echo "$ac_try_echo") >&5 4347 (eval "$ac_try") 2>&5 4348 ac_status=$? 4349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); }; }; then 4351 : 4352else 4353 $as_echo "$as_me: program exited with status $ac_status" >&5 4354$as_echo "$as_me: failed program was:" >&5 4355sed 's/^/| /' conftest.$ac_ext >&5 4356 4357( exit $ac_status ) 4358ac_cv_header_stdc=no 4359fi 4360rm -rf conftest.dSYM 4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4362fi 4363 4364 4365fi 4366fi 4367{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4368$as_echo "$ac_cv_header_stdc" >&6; } 4369if test $ac_cv_header_stdc = yes; then 4370 4371cat >>confdefs.h <<\_ACEOF 4372#define STDC_HEADERS 1 4373_ACEOF 4374 4375fi 4376 4377# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4388 inttypes.h stdint.h unistd.h 4389do 4390as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4391{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4392$as_echo_n "checking for $ac_header... " >&6; } 4393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4394 $as_echo_n "(cached) " >&6 4395else 4396 cat >conftest.$ac_ext <<_ACEOF 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402$ac_includes_default 4403 4404#include <$ac_header> 4405_ACEOF 4406rm -f conftest.$ac_objext 4407if { (ac_try="$ac_compile" 4408case "(($ac_try" in 4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4410 *) ac_try_echo=$ac_try;; 4411esac 4412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4413$as_echo "$ac_try_echo") >&5 4414 (eval "$ac_compile") 2>conftest.er1 4415 ac_status=$? 4416 grep -v '^ *+' conftest.er1 >conftest.err 4417 rm -f conftest.er1 4418 cat conftest.err >&5 4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 (exit $ac_status); } && { 4421 test -z "$ac_c_werror_flag" || 4422 test ! -s conftest.err 4423 } && test -s conftest.$ac_objext; then 4424 eval "$as_ac_Header=yes" 4425else 4426 $as_echo "$as_me: failed program was:" >&5 4427sed 's/^/| /' conftest.$ac_ext >&5 4428 4429 eval "$as_ac_Header=no" 4430fi 4431 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433fi 4434ac_res=`eval 'as_val=${'$as_ac_Header'} 4435 $as_echo "$as_val"'` 4436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4437$as_echo "$ac_res" >&6; } 4438as_val=`eval 'as_val=${'$as_ac_Header'} 4439 $as_echo "$as_val"'` 4440 if test "x$as_val" = x""yes; then 4441 cat >>confdefs.h <<_ACEOF 4442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4443_ACEOF 4444 4445fi 4446 4447done 4448 4449 4450# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4451# for constant arguments. Useless! 4452{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 4453$as_echo_n "checking for working alloca.h... " >&6; } 4454if test "${ac_cv_working_alloca_h+set}" = set; then 4455 $as_echo_n "(cached) " >&6 4456else 4457 cat >conftest.$ac_ext <<_ACEOF 4458/* confdefs.h. */ 4459_ACEOF 4460cat confdefs.h >>conftest.$ac_ext 4461cat >>conftest.$ac_ext <<_ACEOF 4462/* end confdefs.h. */ 4463#include <alloca.h> 4464int 4465main () 4466{ 4467char *p = (char *) alloca (2 * sizeof (int)); 4468 if (p) return 0; 4469 ; 4470 return 0; 4471} 4472_ACEOF 4473rm -f conftest.$ac_objext conftest$ac_exeext 4474if { (ac_try="$ac_link" 4475case "(($ac_try" in 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4477 *) ac_try_echo=$ac_try;; 4478esac 4479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4480$as_echo "$ac_try_echo") >&5 4481 (eval "$ac_link") 2>conftest.er1 4482 ac_status=$? 4483 grep -v '^ *+' conftest.er1 >conftest.err 4484 rm -f conftest.er1 4485 cat conftest.err >&5 4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4487 (exit $ac_status); } && { 4488 test -z "$ac_c_werror_flag" || 4489 test ! -s conftest.err 4490 } && test -s conftest$ac_exeext && { 4491 test "$cross_compiling" = yes || 4492 $as_test_x conftest$ac_exeext 4493 }; then 4494 ac_cv_working_alloca_h=yes 4495else 4496 $as_echo "$as_me: failed program was:" >&5 4497sed 's/^/| /' conftest.$ac_ext >&5 4498 4499 ac_cv_working_alloca_h=no 4500fi 4501 4502rm -rf conftest.dSYM 4503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4504 conftest$ac_exeext conftest.$ac_ext 4505fi 4506{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 4507$as_echo "$ac_cv_working_alloca_h" >&6; } 4508if test $ac_cv_working_alloca_h = yes; then 4509 4510cat >>confdefs.h <<\_ACEOF 4511#define HAVE_ALLOCA_H 1 4512_ACEOF 4513 4514fi 4515 4516{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 4517$as_echo_n "checking for alloca... " >&6; } 4518if test "${ac_cv_func_alloca_works+set}" = set; then 4519 $as_echo_n "(cached) " >&6 4520else 4521 cat >conftest.$ac_ext <<_ACEOF 4522/* confdefs.h. */ 4523_ACEOF 4524cat confdefs.h >>conftest.$ac_ext 4525cat >>conftest.$ac_ext <<_ACEOF 4526/* end confdefs.h. */ 4527#ifdef __GNUC__ 4528# define alloca __builtin_alloca 4529#else 4530# ifdef _MSC_VER 4531# include <malloc.h> 4532# define alloca _alloca 4533# else 4534# ifdef HAVE_ALLOCA_H 4535# include <alloca.h> 4536# else 4537# ifdef _AIX 4538 #pragma alloca 4539# else 4540# ifndef alloca /* predefined by HP cc +Olibcalls */ 4541char *alloca (); 4542# endif 4543# endif 4544# endif 4545# endif 4546#endif 4547 4548int 4549main () 4550{ 4551char *p = (char *) alloca (1); 4552 if (p) return 0; 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557rm -f conftest.$ac_objext conftest$ac_exeext 4558if { (ac_try="$ac_link" 4559case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4564$as_echo "$ac_try_echo") >&5 4565 (eval "$ac_link") 2>conftest.er1 4566 ac_status=$? 4567 grep -v '^ *+' conftest.er1 >conftest.err 4568 rm -f conftest.er1 4569 cat conftest.err >&5 4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); } && { 4572 test -z "$ac_c_werror_flag" || 4573 test ! -s conftest.err 4574 } && test -s conftest$ac_exeext && { 4575 test "$cross_compiling" = yes || 4576 $as_test_x conftest$ac_exeext 4577 }; then 4578 ac_cv_func_alloca_works=yes 4579else 4580 $as_echo "$as_me: failed program was:" >&5 4581sed 's/^/| /' conftest.$ac_ext >&5 4582 4583 ac_cv_func_alloca_works=no 4584fi 4585 4586rm -rf conftest.dSYM 4587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4588 conftest$ac_exeext conftest.$ac_ext 4589fi 4590{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 4591$as_echo "$ac_cv_func_alloca_works" >&6; } 4592 4593if test $ac_cv_func_alloca_works = yes; then 4594 4595cat >>confdefs.h <<\_ACEOF 4596#define HAVE_ALLOCA 1 4597_ACEOF 4598 4599else 4600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4601# that cause trouble. Some versions do not even contain alloca or 4602# contain a buggy version. If you still want to use their alloca, 4603# use ar to extract alloca.o from them instead of compiling alloca.c. 4604 4605ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4606 4607cat >>confdefs.h <<\_ACEOF 4608#define C_ALLOCA 1 4609_ACEOF 4610 4611 4612{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 4613$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 4614if test "${ac_cv_os_cray+set}" = set; then 4615 $as_echo_n "(cached) " >&6 4616else 4617 cat >conftest.$ac_ext <<_ACEOF 4618/* confdefs.h. */ 4619_ACEOF 4620cat confdefs.h >>conftest.$ac_ext 4621cat >>conftest.$ac_ext <<_ACEOF 4622/* end confdefs.h. */ 4623#if defined CRAY && ! defined CRAY2 4624webecray 4625#else 4626wenotbecray 4627#endif 4628 4629_ACEOF 4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4631 $EGREP "webecray" >/dev/null 2>&1; then 4632 ac_cv_os_cray=yes 4633else 4634 ac_cv_os_cray=no 4635fi 4636rm -f conftest* 4637 4638fi 4639{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 4640$as_echo "$ac_cv_os_cray" >&6; } 4641if test $ac_cv_os_cray = yes; then 4642 for ac_func in _getb67 GETB67 getb67; do 4643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4644{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 4645$as_echo_n "checking for $ac_func... " >&6; } 4646if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4647 $as_echo_n "(cached) " >&6 4648else 4649 cat >conftest.$ac_ext <<_ACEOF 4650/* confdefs.h. */ 4651_ACEOF 4652cat confdefs.h >>conftest.$ac_ext 4653cat >>conftest.$ac_ext <<_ACEOF 4654/* end confdefs.h. */ 4655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4657#define $ac_func innocuous_$ac_func 4658 4659/* System header to define __stub macros and hopefully few prototypes, 4660 which can conflict with char $ac_func (); below. 4661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4662 <limits.h> exists even on freestanding compilers. */ 4663 4664#ifdef __STDC__ 4665# include <limits.h> 4666#else 4667# include <assert.h> 4668#endif 4669 4670#undef $ac_func 4671 4672/* Override any GCC internal prototype to avoid an error. 4673 Use char because int might match the return type of a GCC 4674 builtin and then its argument prototype would still apply. */ 4675#ifdef __cplusplus 4676extern "C" 4677#endif 4678char $ac_func (); 4679/* The GNU C library defines this for functions which it implements 4680 to always fail with ENOSYS. Some functions are actually named 4681 something starting with __ and the normal name is an alias. */ 4682#if defined __stub_$ac_func || defined __stub___$ac_func 4683choke me 4684#endif 4685 4686int 4687main () 4688{ 4689return $ac_func (); 4690 ; 4691 return 0; 4692} 4693_ACEOF 4694rm -f conftest.$ac_objext conftest$ac_exeext 4695if { (ac_try="$ac_link" 4696case "(($ac_try" in 4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4698 *) ac_try_echo=$ac_try;; 4699esac 4700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4701$as_echo "$ac_try_echo") >&5 4702 (eval "$ac_link") 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } && { 4709 test -z "$ac_c_werror_flag" || 4710 test ! -s conftest.err 4711 } && test -s conftest$ac_exeext && { 4712 test "$cross_compiling" = yes || 4713 $as_test_x conftest$ac_exeext 4714 }; then 4715 eval "$as_ac_var=yes" 4716else 4717 $as_echo "$as_me: failed program was:" >&5 4718sed 's/^/| /' conftest.$ac_ext >&5 4719 4720 eval "$as_ac_var=no" 4721fi 4722 4723rm -rf conftest.dSYM 4724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4725 conftest$ac_exeext conftest.$ac_ext 4726fi 4727ac_res=`eval 'as_val=${'$as_ac_var'} 4728 $as_echo "$as_val"'` 4729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4730$as_echo "$ac_res" >&6; } 4731as_val=`eval 'as_val=${'$as_ac_var'} 4732 $as_echo "$as_val"'` 4733 if test "x$as_val" = x""yes; then 4734 4735cat >>confdefs.h <<_ACEOF 4736#define CRAY_STACKSEG_END $ac_func 4737_ACEOF 4738 4739 break 4740fi 4741 4742 done 4743fi 4744 4745{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 4746$as_echo_n "checking stack direction for C alloca... " >&6; } 4747if test "${ac_cv_c_stack_direction+set}" = set; then 4748 $as_echo_n "(cached) " >&6 4749else 4750 if test "$cross_compiling" = yes; then 4751 ac_cv_c_stack_direction=0 4752else 4753 cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759$ac_includes_default 4760int 4761find_stack_direction () 4762{ 4763 static char *addr = 0; 4764 auto char dummy; 4765 if (addr == 0) 4766 { 4767 addr = &dummy; 4768 return find_stack_direction (); 4769 } 4770 else 4771 return (&dummy > addr) ? 1 : -1; 4772} 4773 4774int 4775main () 4776{ 4777 return find_stack_direction () < 0; 4778} 4779_ACEOF 4780rm -f conftest$ac_exeext 4781if { (ac_try="$ac_link" 4782case "(($ac_try" in 4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4784 *) ac_try_echo=$ac_try;; 4785esac 4786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4787$as_echo "$ac_try_echo") >&5 4788 (eval "$ac_link") 2>&5 4789 ac_status=$? 4790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4792 { (case "(($ac_try" in 4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4794 *) ac_try_echo=$ac_try;; 4795esac 4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4797$as_echo "$ac_try_echo") >&5 4798 (eval "$ac_try") 2>&5 4799 ac_status=$? 4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; }; then 4802 ac_cv_c_stack_direction=1 4803else 4804 $as_echo "$as_me: program exited with status $ac_status" >&5 4805$as_echo "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808( exit $ac_status ) 4809ac_cv_c_stack_direction=-1 4810fi 4811rm -rf conftest.dSYM 4812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4813fi 4814 4815 4816fi 4817{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 4818$as_echo "$ac_cv_c_stack_direction" >&6; } 4819 4820cat >>confdefs.h <<_ACEOF 4821#define STACK_DIRECTION $ac_cv_c_stack_direction 4822_ACEOF 4823 4824 4825fi 4826 4827 4828 4829 4830# Check whether --with-included-libmad was given. 4831if test "${with_included_libmad+set}" = set; then 4832 withval=$with_included_libmad; 4833fi 4834 4835 4836 4837 4838 4839# Check whether --with-included-argv was given. 4840if test "${with_included_argv+set}" = set; then 4841 withval=$with_included_argv; 4842fi 4843 4844 4845 4846 4847# Check whether --with-curses was given. 4848if test "${with_curses+set}" = set; then 4849 withval=$with_curses; 4850fi 4851 4852 4853 4854CPPFLAGS="-D__UNIX__" 4855 4856 4857 4858 4859 4860# Check whether --enable-glibtest was given. 4861if test "${enable_glibtest+set}" = set; then 4862 enableval=$enable_glibtest; 4863else 4864 enable_glibtest=yes 4865fi 4866 4867 4868 pkg_config_args=glib-2.0 4869 for module in . 4870 do 4871 case "$module" in 4872 gmodule) 4873 pkg_config_args="$pkg_config_args gmodule-2.0" 4874 ;; 4875 gmodule-no-export) 4876 pkg_config_args="$pkg_config_args gmodule-no-export-2.0" 4877 ;; 4878 gobject) 4879 pkg_config_args="$pkg_config_args gobject-2.0" 4880 ;; 4881 gthread) 4882 pkg_config_args="$pkg_config_args gthread-2.0" 4883 ;; 4884 esac 4885 done 4886 4887 4888 4889if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4890 if test -n "$ac_tool_prefix"; then 4891 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4892set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4894$as_echo_n "checking for $ac_word... " >&6; } 4895if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4896 $as_echo_n "(cached) " >&6 4897else 4898 case $PKG_CONFIG in 4899 [\\/]* | ?:[\\/]*) 4900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4901 ;; 4902 *) 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH 4905do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_exec_ext in '' $ac_executable_extensions; do 4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4912 break 2 4913 fi 4914done 4915done 4916IFS=$as_save_IFS 4917 4918 ;; 4919esac 4920fi 4921PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4922if test -n "$PKG_CONFIG"; then 4923 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4924$as_echo "$PKG_CONFIG" >&6; } 4925else 4926 { $as_echo "$as_me:$LINENO: result: no" >&5 4927$as_echo "no" >&6; } 4928fi 4929 4930 4931fi 4932if test -z "$ac_cv_path_PKG_CONFIG"; then 4933 ac_pt_PKG_CONFIG=$PKG_CONFIG 4934 # Extract the first word of "pkg-config", so it can be a program name with args. 4935set dummy pkg-config; ac_word=$2 4936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4937$as_echo_n "checking for $ac_word... " >&6; } 4938if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4939 $as_echo_n "(cached) " >&6 4940else 4941 case $ac_pt_PKG_CONFIG in 4942 [\\/]* | ?:[\\/]*) 4943 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4944 ;; 4945 *) 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4947for as_dir in $PATH 4948do 4949 IFS=$as_save_IFS 4950 test -z "$as_dir" && as_dir=. 4951 for ac_exec_ext in '' $ac_executable_extensions; do 4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4953 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4955 break 2 4956 fi 4957done 4958done 4959IFS=$as_save_IFS 4960 4961 ;; 4962esac 4963fi 4964ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4965if test -n "$ac_pt_PKG_CONFIG"; then 4966 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4967$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4968else 4969 { $as_echo "$as_me:$LINENO: result: no" >&5 4970$as_echo "no" >&6; } 4971fi 4972 4973 if test "x$ac_pt_PKG_CONFIG" = x; then 4974 PKG_CONFIG="" 4975 else 4976 case $cross_compiling:$ac_tool_warned in 4977yes:) 4978{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4980ac_tool_warned=yes ;; 4981esac 4982 PKG_CONFIG=$ac_pt_PKG_CONFIG 4983 fi 4984else 4985 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4986fi 4987 4988fi 4989if test -n "$PKG_CONFIG"; then 4990 _pkg_min_version=0.7 4991 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4992$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4993 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4994 { $as_echo "$as_me:$LINENO: result: yes" >&5 4995$as_echo "yes" >&6; } 4996 else 4997 { $as_echo "$as_me:$LINENO: result: no" >&5 4998$as_echo "no" >&6; } 4999 PKG_CONFIG="" 5000 fi 5001 5002fi 5003 5004 no_glib="" 5005 5006 if test "x$PKG_CONFIG" = x ; then 5007 no_glib=yes 5008 PKG_CONFIG=no 5009 fi 5010 5011 min_glib_version=2.16.0 5012 { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 5013$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } 5014 5015 if test x$PKG_CONFIG != xno ; then 5016 ## don't try to run the test against uninstalled libtool libs 5017 if $PKG_CONFIG --uninstalled $pkg_config_args; then 5018 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 5019 enable_glibtest=no 5020 fi 5021 5022 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 5023 : 5024 else 5025 no_glib=yes 5026 fi 5027 fi 5028 5029 if test x"$no_glib" = x ; then 5030 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 5031 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` 5032 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 5033 5034 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` 5035 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` 5036 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5038 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5040 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5042 if test "x$enable_glibtest" = "xyes" ; then 5043 ac_save_CFLAGS="$CFLAGS" 5044 ac_save_LIBS="$LIBS" 5045 CFLAGS="$CFLAGS $GLIB_CFLAGS" 5046 LIBS="$GLIB_LIBS $LIBS" 5047 rm -f conf.glibtest 5048 if test "$cross_compiling" = yes; then 5049 echo $ac_n "cross compiling; assumed OK... $ac_c" 5050else 5051 cat >conftest.$ac_ext <<_ACEOF 5052/* confdefs.h. */ 5053_ACEOF 5054cat confdefs.h >>conftest.$ac_ext 5055cat >>conftest.$ac_ext <<_ACEOF 5056/* end confdefs.h. */ 5057 5058#include <glib.h> 5059#include <stdio.h> 5060#include <stdlib.h> 5061 5062int 5063main () 5064{ 5065 int major, minor, micro; 5066 char *tmp_version; 5067 5068 system ("touch conf.glibtest"); 5069 5070 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5071 tmp_version = g_strdup("$min_glib_version"); 5072 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5073 printf("%s, bad version string\n", "$min_glib_version"); 5074 exit(1); 5075 } 5076 5077 if ((glib_major_version != $glib_config_major_version) || 5078 (glib_minor_version != $glib_config_minor_version) || 5079 (glib_micro_version != $glib_config_micro_version)) 5080 { 5081 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 5082 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 5083 glib_major_version, glib_minor_version, glib_micro_version); 5084 printf ("*** was found! If pkg-config was correct, then it is best\n"); 5085 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); 5086 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 5087 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 5088 printf("*** required on your system.\n"); 5089 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 5090 printf("*** to point to the correct configuration files\n"); 5091 } 5092 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 5093 (glib_minor_version != GLIB_MINOR_VERSION) || 5094 (glib_micro_version != GLIB_MICRO_VERSION)) 5095 { 5096 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 5097 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 5098 printf("*** library (version %d.%d.%d)\n", 5099 glib_major_version, glib_minor_version, glib_micro_version); 5100 } 5101 else 5102 { 5103 if ((glib_major_version > major) || 5104 ((glib_major_version == major) && (glib_minor_version > minor)) || 5105 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 5106 { 5107 return 0; 5108 } 5109 else 5110 { 5111 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 5112 glib_major_version, glib_minor_version, glib_micro_version); 5113 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 5114 major, minor, micro); 5115 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 5116 printf("***\n"); 5117 printf("*** If you have already installed a sufficiently new version, this error\n"); 5118 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 5119 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 5120 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); 5121 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 5122 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 5123 printf("*** so that the correct libraries are found at run-time))\n"); 5124 } 5125 } 5126 return 1; 5127} 5128 5129_ACEOF 5130rm -f conftest$ac_exeext 5131if { (ac_try="$ac_link" 5132case "(($ac_try" in 5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5134 *) ac_try_echo=$ac_try;; 5135esac 5136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5137$as_echo "$ac_try_echo") >&5 5138 (eval "$ac_link") 2>&5 5139 ac_status=$? 5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5142 { (case "(($ac_try" in 5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5144 *) ac_try_echo=$ac_try;; 5145esac 5146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5147$as_echo "$ac_try_echo") >&5 5148 (eval "$ac_try") 2>&5 5149 ac_status=$? 5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); }; }; then 5152 : 5153else 5154 $as_echo "$as_me: program exited with status $ac_status" >&5 5155$as_echo "$as_me: failed program was:" >&5 5156sed 's/^/| /' conftest.$ac_ext >&5 5157 5158( exit $ac_status ) 5159no_glib=yes 5160fi 5161rm -rf conftest.dSYM 5162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5163fi 5164 5165 5166 CFLAGS="$ac_save_CFLAGS" 5167 LIBS="$ac_save_LIBS" 5168 fi 5169 fi 5170 if test "x$no_glib" = x ; then 5171 { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 5172$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } 5173 : 5174 else 5175 { $as_echo "$as_me:$LINENO: result: no" >&5 5176$as_echo "no" >&6; } 5177 if test "$PKG_CONFIG" = "no" ; then 5178 echo "*** A new enough version of pkg-config was not found." 5179 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 5180 else 5181 if test -f conf.glibtest ; then 5182 : 5183 else 5184 echo "*** Could not run GLIB test program, checking why..." 5185 ac_save_CFLAGS="$CFLAGS" 5186 ac_save_LIBS="$LIBS" 5187 CFLAGS="$CFLAGS $GLIB_CFLAGS" 5188 LIBS="$LIBS $GLIB_LIBS" 5189 cat >conftest.$ac_ext <<_ACEOF 5190/* confdefs.h. */ 5191_ACEOF 5192cat confdefs.h >>conftest.$ac_ext 5193cat >>conftest.$ac_ext <<_ACEOF 5194/* end confdefs.h. */ 5195 5196#include <glib.h> 5197#include <stdio.h> 5198 5199int 5200main () 5201{ 5202 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 5203 ; 5204 return 0; 5205} 5206_ACEOF 5207rm -f conftest.$ac_objext conftest$ac_exeext 5208if { (ac_try="$ac_link" 5209case "(($ac_try" in 5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5211 *) ac_try_echo=$ac_try;; 5212esac 5213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5214$as_echo "$ac_try_echo") >&5 5215 (eval "$ac_link") 2>conftest.er1 5216 ac_status=$? 5217 grep -v '^ *+' conftest.er1 >conftest.err 5218 rm -f conftest.er1 5219 cat conftest.err >&5 5220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5221 (exit $ac_status); } && { 5222 test -z "$ac_c_werror_flag" || 5223 test ! -s conftest.err 5224 } && test -s conftest$ac_exeext && { 5225 test "$cross_compiling" = yes || 5226 $as_test_x conftest$ac_exeext 5227 }; then 5228 echo "*** The test program compiled, but did not run. This usually means" 5229 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 5230 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 5231 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 5232 echo "*** to the installed location Also, make sure you have run ldconfig if that" 5233 echo "*** is required on your system" 5234 echo "***" 5235 echo "*** If you have an old version installed, it is best to remove it, although" 5236 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 5237else 5238 $as_echo "$as_me: failed program was:" >&5 5239sed 's/^/| /' conftest.$ac_ext >&5 5240 5241 echo "*** The test program failed to compile or link. See the file config.log for the" 5242 echo "*** exact error that occured. This usually means GLIB is incorrectly installed." 5243fi 5244 5245rm -rf conftest.dSYM 5246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5247 conftest$ac_exeext conftest.$ac_ext 5248 CFLAGS="$ac_save_CFLAGS" 5249 LIBS="$ac_save_LIBS" 5250 fi 5251 fi 5252 GLIB_CFLAGS="" 5253 GLIB_LIBS="" 5254 GLIB_GENMARSHAL="" 5255 GOBJECT_QUERY="" 5256 GLIB_MKENUMS="" 5257 { { $as_echo "$as_me:$LINENO: error: Glib 2.16 or greater required" >&5 5258$as_echo "$as_me: error: Glib 2.16 or greater required" >&2;} 5259 { (exit 1); exit 1; }; } 5260 fi 5261 5262 5263 5264 5265 5266 rm -f conf.glibtest 5267 5268 5269LIBMAD="" 5270 5271use_included_libmad=yes 5272if test "x$with_included_libmad" != xyes; then 5273 sr_save_CPPFLAGS="$CPPFLAGS" 5274 CPPFLAGS="-Ilib -D__UNIX__" 5275 5276 { $as_echo "$as_me:$LINENO: checking for mad_stream_buffer in -lmad" >&5 5277$as_echo_n "checking for mad_stream_buffer in -lmad... " >&6; } 5278if test "${ac_cv_lib_mad_mad_stream_buffer+set}" = set; then 5279 $as_echo_n "(cached) " >&6 5280else 5281 ac_check_lib_save_LIBS=$LIBS 5282LIBS="-lmad $LIBS" 5283cat >conftest.$ac_ext <<_ACEOF 5284/* confdefs.h. */ 5285_ACEOF 5286cat confdefs.h >>conftest.$ac_ext 5287cat >>conftest.$ac_ext <<_ACEOF 5288/* end confdefs.h. */ 5289 5290/* Override any GCC internal prototype to avoid an error. 5291 Use char because int might match the return type of a GCC 5292 builtin and then its argument prototype would still apply. */ 5293#ifdef __cplusplus 5294extern "C" 5295#endif 5296char mad_stream_buffer (); 5297int 5298main () 5299{ 5300return mad_stream_buffer (); 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305rm -f conftest.$ac_objext conftest$ac_exeext 5306if { (ac_try="$ac_link" 5307case "(($ac_try" in 5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5309 *) ac_try_echo=$ac_try;; 5310esac 5311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5312$as_echo "$ac_try_echo") >&5 5313 (eval "$ac_link") 2>conftest.er1 5314 ac_status=$? 5315 grep -v '^ *+' conftest.er1 >conftest.err 5316 rm -f conftest.er1 5317 cat conftest.err >&5 5318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5319 (exit $ac_status); } && { 5320 test -z "$ac_c_werror_flag" || 5321 test ! -s conftest.err 5322 } && test -s conftest$ac_exeext && { 5323 test "$cross_compiling" = yes || 5324 $as_test_x conftest$ac_exeext 5325 }; then 5326 ac_cv_lib_mad_mad_stream_buffer=yes 5327else 5328 $as_echo "$as_me: failed program was:" >&5 5329sed 's/^/| /' conftest.$ac_ext >&5 5330 5331 ac_cv_lib_mad_mad_stream_buffer=no 5332fi 5333 5334rm -rf conftest.dSYM 5335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5336 conftest$ac_exeext conftest.$ac_ext 5337LIBS=$ac_check_lib_save_LIBS 5338fi 5339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_stream_buffer" >&5 5340$as_echo "$ac_cv_lib_mad_mad_stream_buffer" >&6; } 5341if test "x$ac_cv_lib_mad_mad_stream_buffer" = x""yes; then 5342 use_included_libmad=no 5343else 5344 use_included_libmad=yes 5345fi 5346 5347 CPPFLAGS="$sr_save_CPPFLAGS" 5348 5349fi 5350 if test "$use_included_libmad" = yes; then 5351 SUBDIR_LIBMAD_TRUE= 5352 SUBDIR_LIBMAD_FALSE='#' 5353else 5354 SUBDIR_LIBMAD_TRUE='#' 5355 SUBDIR_LIBMAD_FALSE= 5356fi 5357 5358if test "$use_included_libmad" = yes; then 5359 LIBMAD="libmad-0.15.1b/.libs/libmad.a" 5360 5361 5362 5363subdirs="$subdirs libmad-0.15.1b" 5364 5365else 5366 LIBMAD=-lmad 5367 5368fi 5369 5370THREADLIBS=no 5371{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 5372$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 5373if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 5374 $as_echo_n "(cached) " >&6 5375else 5376 ac_check_lib_save_LIBS=$LIBS 5377LIBS="-lpthread $LIBS" 5378cat >conftest.$ac_ext <<_ACEOF 5379/* confdefs.h. */ 5380_ACEOF 5381cat confdefs.h >>conftest.$ac_ext 5382cat >>conftest.$ac_ext <<_ACEOF 5383/* end confdefs.h. */ 5384 5385/* Override any GCC internal prototype to avoid an error. 5386 Use char because int might match the return type of a GCC 5387 builtin and then its argument prototype would still apply. */ 5388#ifdef __cplusplus 5389extern "C" 5390#endif 5391char pthread_create (); 5392int 5393main () 5394{ 5395return pthread_create (); 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400rm -f conftest.$ac_objext conftest$ac_exeext 5401if { (ac_try="$ac_link" 5402case "(($ac_try" in 5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5404 *) ac_try_echo=$ac_try;; 5405esac 5406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5407$as_echo "$ac_try_echo") >&5 5408 (eval "$ac_link") 2>conftest.er1 5409 ac_status=$? 5410 grep -v '^ *+' conftest.er1 >conftest.err 5411 rm -f conftest.er1 5412 cat conftest.err >&5 5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 (exit $ac_status); } && { 5415 test -z "$ac_c_werror_flag" || 5416 test ! -s conftest.err 5417 } && test -s conftest$ac_exeext && { 5418 test "$cross_compiling" = yes || 5419 $as_test_x conftest$ac_exeext 5420 }; then 5421 ac_cv_lib_pthread_pthread_create=yes 5422else 5423 $as_echo "$as_me: failed program was:" >&5 5424sed 's/^/| /' conftest.$ac_ext >&5 5425 5426 ac_cv_lib_pthread_pthread_create=no 5427fi 5428 5429rm -rf conftest.dSYM 5430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5431 conftest$ac_exeext conftest.$ac_ext 5432LIBS=$ac_check_lib_save_LIBS 5433fi 5434{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 5435$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 5436if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then 5437 THREADLIBS="-lpthread" 5438fi 5439 5440if test "$THREADLIBS" = no; then 5441 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 5442$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 5443if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 5444 $as_echo_n "(cached) " >&6 5445else 5446 ac_check_lib_save_LIBS=$LIBS 5447LIBS="-lc_r $LIBS" 5448cat >conftest.$ac_ext <<_ACEOF 5449/* confdefs.h. */ 5450_ACEOF 5451cat confdefs.h >>conftest.$ac_ext 5452cat >>conftest.$ac_ext <<_ACEOF 5453/* end confdefs.h. */ 5454 5455/* Override any GCC internal prototype to avoid an error. 5456 Use char because int might match the return type of a GCC 5457 builtin and then its argument prototype would still apply. */ 5458#ifdef __cplusplus 5459extern "C" 5460#endif 5461char pthread_create (); 5462int 5463main () 5464{ 5465return pthread_create (); 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470rm -f conftest.$ac_objext conftest$ac_exeext 5471if { (ac_try="$ac_link" 5472case "(($ac_try" in 5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5474 *) ac_try_echo=$ac_try;; 5475esac 5476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5477$as_echo "$ac_try_echo") >&5 5478 (eval "$ac_link") 2>conftest.er1 5479 ac_status=$? 5480 grep -v '^ *+' conftest.er1 >conftest.err 5481 rm -f conftest.er1 5482 cat conftest.err >&5 5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5484 (exit $ac_status); } && { 5485 test -z "$ac_c_werror_flag" || 5486 test ! -s conftest.err 5487 } && test -s conftest$ac_exeext && { 5488 test "$cross_compiling" = yes || 5489 $as_test_x conftest$ac_exeext 5490 }; then 5491 ac_cv_lib_c_r_pthread_create=yes 5492else 5493 $as_echo "$as_me: failed program was:" >&5 5494sed 's/^/| /' conftest.$ac_ext >&5 5495 5496 ac_cv_lib_c_r_pthread_create=no 5497fi 5498 5499rm -rf conftest.dSYM 5500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5501 conftest$ac_exeext conftest.$ac_ext 5502LIBS=$ac_check_lib_save_LIBS 5503fi 5504{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 5505$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 5506if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then 5507 THREADLIBS="-pthread" 5508fi 5509 5510fi 5511if test "$THREADLIBS" = no; then 5512 { $as_echo "$as_me:$LINENO: checking for pthread_create in -ldce" >&5 5513$as_echo_n "checking for pthread_create in -ldce... " >&6; } 5514if test "${ac_cv_lib_dce_pthread_create+set}" = set; then 5515 $as_echo_n "(cached) " >&6 5516else 5517 ac_check_lib_save_LIBS=$LIBS 5518LIBS="-ldce $LIBS" 5519cat >conftest.$ac_ext <<_ACEOF 5520/* confdefs.h. */ 5521_ACEOF 5522cat confdefs.h >>conftest.$ac_ext 5523cat >>conftest.$ac_ext <<_ACEOF 5524/* end confdefs.h. */ 5525 5526/* Override any GCC internal prototype to avoid an error. 5527 Use char because int might match the return type of a GCC 5528 builtin and then its argument prototype would still apply. */ 5529#ifdef __cplusplus 5530extern "C" 5531#endif 5532char pthread_create (); 5533int 5534main () 5535{ 5536return pthread_create (); 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541rm -f conftest.$ac_objext conftest$ac_exeext 5542if { (ac_try="$ac_link" 5543case "(($ac_try" in 5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5545 *) ac_try_echo=$ac_try;; 5546esac 5547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5548$as_echo "$ac_try_echo") >&5 5549 (eval "$ac_link") 2>conftest.er1 5550 ac_status=$? 5551 grep -v '^ *+' conftest.er1 >conftest.err 5552 rm -f conftest.er1 5553 cat conftest.err >&5 5554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5555 (exit $ac_status); } && { 5556 test -z "$ac_c_werror_flag" || 5557 test ! -s conftest.err 5558 } && test -s conftest$ac_exeext && { 5559 test "$cross_compiling" = yes || 5560 $as_test_x conftest$ac_exeext 5561 }; then 5562 ac_cv_lib_dce_pthread_create=yes 5563else 5564 $as_echo "$as_me: failed program was:" >&5 5565sed 's/^/| /' conftest.$ac_ext >&5 5566 5567 ac_cv_lib_dce_pthread_create=no 5568fi 5569 5570rm -rf conftest.dSYM 5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5572 conftest$ac_exeext conftest.$ac_ext 5573LIBS=$ac_check_lib_save_LIBS 5574fi 5575{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dce_pthread_create" >&5 5576$as_echo "$ac_cv_lib_dce_pthread_create" >&6; } 5577if test "x$ac_cv_lib_dce_pthread_create" = x""yes; then 5578 THREADLIBS="-ldce" 5579fi 5580 5581fi 5582if test "$THREADLIBS" = no; then 5583 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 5584$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 5585if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then 5586 $as_echo_n "(cached) " >&6 5587else 5588 ac_check_lib_save_LIBS=$LIBS 5589LIBS="-lpthreads $LIBS" 5590cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596 5597/* Override any GCC internal prototype to avoid an error. 5598 Use char because int might match the return type of a GCC 5599 builtin and then its argument prototype would still apply. */ 5600#ifdef __cplusplus 5601extern "C" 5602#endif 5603char pthread_create (); 5604int 5605main () 5606{ 5607return pthread_create (); 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612rm -f conftest.$ac_objext conftest$ac_exeext 5613if { (ac_try="$ac_link" 5614case "(($ac_try" in 5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5616 *) ac_try_echo=$ac_try;; 5617esac 5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5619$as_echo "$ac_try_echo") >&5 5620 (eval "$ac_link") 2>conftest.er1 5621 ac_status=$? 5622 grep -v '^ *+' conftest.er1 >conftest.err 5623 rm -f conftest.er1 5624 cat conftest.err >&5 5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && { 5627 test -z "$ac_c_werror_flag" || 5628 test ! -s conftest.err 5629 } && test -s conftest$ac_exeext && { 5630 test "$cross_compiling" = yes || 5631 $as_test_x conftest$ac_exeext 5632 }; then 5633 ac_cv_lib_pthreads_pthread_create=yes 5634else 5635 $as_echo "$as_me: failed program was:" >&5 5636sed 's/^/| /' conftest.$ac_ext >&5 5637 5638 ac_cv_lib_pthreads_pthread_create=no 5639fi 5640 5641rm -rf conftest.dSYM 5642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5643 conftest$ac_exeext conftest.$ac_ext 5644LIBS=$ac_check_lib_save_LIBS 5645fi 5646{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 5647$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 5648if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then 5649 THREADLIBS="-lpthreads" 5650fi 5651 5652fi 5653if test "$THREADLIBS" = no; then 5654 { { $as_echo "$as_me:$LINENO: error: Your system doesn't seem to support posix threads" >&5 5655$as_echo "$as_me: error: Your system doesn't seem to support posix threads" >&2;} 5656 { (exit 1); exit 1; }; } 5657 exit 5658fi 5659 5660 5661{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 5662$as_echo_n "checking for socklen_t... " >&6; } 5663if test "${ac_cv_type_socklen_t+set}" = set; then 5664 $as_echo_n "(cached) " >&6 5665else 5666 5667 cat >conftest.$ac_ext <<_ACEOF 5668/* confdefs.h. */ 5669_ACEOF 5670cat confdefs.h >>conftest.$ac_ext 5671cat >>conftest.$ac_ext <<_ACEOF 5672/* end confdefs.h. */ 5673#include <sys/types.h> 5674 #include <sys/socket.h> 5675int 5676main () 5677{ 5678socklen_t len = 42; return 0; 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683rm -f conftest.$ac_objext 5684if { (ac_try="$ac_compile" 5685case "(($ac_try" in 5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5687 *) ac_try_echo=$ac_try;; 5688esac 5689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5690$as_echo "$ac_try_echo") >&5 5691 (eval "$ac_compile") 2>conftest.er1 5692 ac_status=$? 5693 grep -v '^ *+' conftest.er1 >conftest.err 5694 rm -f conftest.er1 5695 cat conftest.err >&5 5696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 (exit $ac_status); } && { 5698 test -z "$ac_c_werror_flag" || 5699 test ! -s conftest.err 5700 } && test -s conftest.$ac_objext; then 5701 ac_cv_type_socklen_t=yes 5702else 5703 $as_echo "$as_me: failed program was:" >&5 5704sed 's/^/| /' conftest.$ac_ext >&5 5705 5706 ac_cv_type_socklen_t=no 5707fi 5708 5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5710 5711fi 5712{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5713$as_echo "$ac_cv_type_socklen_t" >&6; } 5714 if test $ac_cv_type_socklen_t != yes; then 5715 5716cat >>confdefs.h <<\_ACEOF 5717#define socklen_t int 5718_ACEOF 5719 5720 fi 5721 5722 5723 5724 5725 5726 5727 5728ac_header_dirent=no 5729for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 5730 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 5731{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 5732$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 5733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5734 $as_echo_n "(cached) " >&6 5735else 5736 cat >conftest.$ac_ext <<_ACEOF 5737/* confdefs.h. */ 5738_ACEOF 5739cat confdefs.h >>conftest.$ac_ext 5740cat >>conftest.$ac_ext <<_ACEOF 5741/* end confdefs.h. */ 5742#include <sys/types.h> 5743#include <$ac_hdr> 5744 5745int 5746main () 5747{ 5748if ((DIR *) 0) 5749return 0; 5750 ; 5751 return 0; 5752} 5753_ACEOF 5754rm -f conftest.$ac_objext 5755if { (ac_try="$ac_compile" 5756case "(($ac_try" in 5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5758 *) ac_try_echo=$ac_try;; 5759esac 5760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5761$as_echo "$ac_try_echo") >&5 5762 (eval "$ac_compile") 2>conftest.er1 5763 ac_status=$? 5764 grep -v '^ *+' conftest.er1 >conftest.err 5765 rm -f conftest.er1 5766 cat conftest.err >&5 5767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5768 (exit $ac_status); } && { 5769 test -z "$ac_c_werror_flag" || 5770 test ! -s conftest.err 5771 } && test -s conftest.$ac_objext; then 5772 eval "$as_ac_Header=yes" 5773else 5774 $as_echo "$as_me: failed program was:" >&5 5775sed 's/^/| /' conftest.$ac_ext >&5 5776 5777 eval "$as_ac_Header=no" 5778fi 5779 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5781fi 5782ac_res=`eval 'as_val=${'$as_ac_Header'} 5783 $as_echo "$as_val"'` 5784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5785$as_echo "$ac_res" >&6; } 5786as_val=`eval 'as_val=${'$as_ac_Header'} 5787 $as_echo "$as_val"'` 5788 if test "x$as_val" = x""yes; then 5789 cat >>confdefs.h <<_ACEOF 5790#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 5791_ACEOF 5792 5793ac_header_dirent=$ac_hdr; break 5794fi 5795 5796done 5797# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 5798if test $ac_header_dirent = dirent.h; then 5799 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 5800$as_echo_n "checking for library containing opendir... " >&6; } 5801if test "${ac_cv_search_opendir+set}" = set; then 5802 $as_echo_n "(cached) " >&6 5803else 5804 ac_func_search_save_LIBS=$LIBS 5805cat >conftest.$ac_ext <<_ACEOF 5806/* confdefs.h. */ 5807_ACEOF 5808cat confdefs.h >>conftest.$ac_ext 5809cat >>conftest.$ac_ext <<_ACEOF 5810/* end confdefs.h. */ 5811 5812/* Override any GCC internal prototype to avoid an error. 5813 Use char because int might match the return type of a GCC 5814 builtin and then its argument prototype would still apply. */ 5815#ifdef __cplusplus 5816extern "C" 5817#endif 5818char opendir (); 5819int 5820main () 5821{ 5822return opendir (); 5823 ; 5824 return 0; 5825} 5826_ACEOF 5827for ac_lib in '' dir; do 5828 if test -z "$ac_lib"; then 5829 ac_res="none required" 5830 else 5831 ac_res=-l$ac_lib 5832 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5833 fi 5834 rm -f conftest.$ac_objext conftest$ac_exeext 5835if { (ac_try="$ac_link" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5841$as_echo "$ac_try_echo") >&5 5842 (eval "$ac_link") 2>conftest.er1 5843 ac_status=$? 5844 grep -v '^ *+' conftest.er1 >conftest.err 5845 rm -f conftest.er1 5846 cat conftest.err >&5 5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5848 (exit $ac_status); } && { 5849 test -z "$ac_c_werror_flag" || 5850 test ! -s conftest.err 5851 } && test -s conftest$ac_exeext && { 5852 test "$cross_compiling" = yes || 5853 $as_test_x conftest$ac_exeext 5854 }; then 5855 ac_cv_search_opendir=$ac_res 5856else 5857 $as_echo "$as_me: failed program was:" >&5 5858sed 's/^/| /' conftest.$ac_ext >&5 5859 5860 5861fi 5862 5863rm -rf conftest.dSYM 5864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5865 conftest$ac_exeext 5866 if test "${ac_cv_search_opendir+set}" = set; then 5867 break 5868fi 5869done 5870if test "${ac_cv_search_opendir+set}" = set; then 5871 : 5872else 5873 ac_cv_search_opendir=no 5874fi 5875rm conftest.$ac_ext 5876LIBS=$ac_func_search_save_LIBS 5877fi 5878{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 5879$as_echo "$ac_cv_search_opendir" >&6; } 5880ac_res=$ac_cv_search_opendir 5881if test "$ac_res" != no; then 5882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5883 5884fi 5885 5886else 5887 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 5888$as_echo_n "checking for library containing opendir... " >&6; } 5889if test "${ac_cv_search_opendir+set}" = set; then 5890 $as_echo_n "(cached) " >&6 5891else 5892 ac_func_search_save_LIBS=$LIBS 5893cat >conftest.$ac_ext <<_ACEOF 5894/* confdefs.h. */ 5895_ACEOF 5896cat confdefs.h >>conftest.$ac_ext 5897cat >>conftest.$ac_ext <<_ACEOF 5898/* end confdefs.h. */ 5899 5900/* Override any GCC internal prototype to avoid an error. 5901 Use char because int might match the return type of a GCC 5902 builtin and then its argument prototype would still apply. */ 5903#ifdef __cplusplus 5904extern "C" 5905#endif 5906char opendir (); 5907int 5908main () 5909{ 5910return opendir (); 5911 ; 5912 return 0; 5913} 5914_ACEOF 5915for ac_lib in '' x; do 5916 if test -z "$ac_lib"; then 5917 ac_res="none required" 5918 else 5919 ac_res=-l$ac_lib 5920 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5921 fi 5922 rm -f conftest.$ac_objext conftest$ac_exeext 5923if { (ac_try="$ac_link" 5924case "(($ac_try" in 5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5926 *) ac_try_echo=$ac_try;; 5927esac 5928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5929$as_echo "$ac_try_echo") >&5 5930 (eval "$ac_link") 2>conftest.er1 5931 ac_status=$? 5932 grep -v '^ *+' conftest.er1 >conftest.err 5933 rm -f conftest.er1 5934 cat conftest.err >&5 5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5936 (exit $ac_status); } && { 5937 test -z "$ac_c_werror_flag" || 5938 test ! -s conftest.err 5939 } && test -s conftest$ac_exeext && { 5940 test "$cross_compiling" = yes || 5941 $as_test_x conftest$ac_exeext 5942 }; then 5943 ac_cv_search_opendir=$ac_res 5944else 5945 $as_echo "$as_me: failed program was:" >&5 5946sed 's/^/| /' conftest.$ac_ext >&5 5947 5948 5949fi 5950 5951rm -rf conftest.dSYM 5952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5953 conftest$ac_exeext 5954 if test "${ac_cv_search_opendir+set}" = set; then 5955 break 5956fi 5957done 5958if test "${ac_cv_search_opendir+set}" = set; then 5959 : 5960else 5961 ac_cv_search_opendir=no 5962fi 5963rm conftest.$ac_ext 5964LIBS=$ac_func_search_save_LIBS 5965fi 5966{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 5967$as_echo "$ac_cv_search_opendir" >&6; } 5968ac_res=$ac_cv_search_opendir 5969if test "$ac_res" != no; then 5970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5971 5972fi 5973 5974fi 5975 5976{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5977$as_echo_n "checking for ANSI C header files... " >&6; } 5978if test "${ac_cv_header_stdc+set}" = set; then 5979 $as_echo_n "(cached) " >&6 5980else 5981 cat >conftest.$ac_ext <<_ACEOF 5982/* confdefs.h. */ 5983_ACEOF 5984cat confdefs.h >>conftest.$ac_ext 5985cat >>conftest.$ac_ext <<_ACEOF 5986/* end confdefs.h. */ 5987#include <stdlib.h> 5988#include <stdarg.h> 5989#include <string.h> 5990#include <float.h> 5991 5992int 5993main () 5994{ 5995 5996 ; 5997 return 0; 5998} 5999_ACEOF 6000rm -f conftest.$ac_objext 6001if { (ac_try="$ac_compile" 6002case "(($ac_try" in 6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6004 *) ac_try_echo=$ac_try;; 6005esac 6006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6007$as_echo "$ac_try_echo") >&5 6008 (eval "$ac_compile") 2>conftest.er1 6009 ac_status=$? 6010 grep -v '^ *+' conftest.er1 >conftest.err 6011 rm -f conftest.er1 6012 cat conftest.err >&5 6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6014 (exit $ac_status); } && { 6015 test -z "$ac_c_werror_flag" || 6016 test ! -s conftest.err 6017 } && test -s conftest.$ac_objext; then 6018 ac_cv_header_stdc=yes 6019else 6020 $as_echo "$as_me: failed program was:" >&5 6021sed 's/^/| /' conftest.$ac_ext >&5 6022 6023 ac_cv_header_stdc=no 6024fi 6025 6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6027 6028if test $ac_cv_header_stdc = yes; then 6029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6030 cat >conftest.$ac_ext <<_ACEOF 6031/* confdefs.h. */ 6032_ACEOF 6033cat confdefs.h >>conftest.$ac_ext 6034cat >>conftest.$ac_ext <<_ACEOF 6035/* end confdefs.h. */ 6036#include <string.h> 6037 6038_ACEOF 6039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6040 $EGREP "memchr" >/dev/null 2>&1; then 6041 : 6042else 6043 ac_cv_header_stdc=no 6044fi 6045rm -f conftest* 6046 6047fi 6048 6049if test $ac_cv_header_stdc = yes; then 6050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6051 cat >conftest.$ac_ext <<_ACEOF 6052/* confdefs.h. */ 6053_ACEOF 6054cat confdefs.h >>conftest.$ac_ext 6055cat >>conftest.$ac_ext <<_ACEOF 6056/* end confdefs.h. */ 6057#include <stdlib.h> 6058 6059_ACEOF 6060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6061 $EGREP "free" >/dev/null 2>&1; then 6062 : 6063else 6064 ac_cv_header_stdc=no 6065fi 6066rm -f conftest* 6067 6068fi 6069 6070if test $ac_cv_header_stdc = yes; then 6071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6072 if test "$cross_compiling" = yes; then 6073 : 6074else 6075 cat >conftest.$ac_ext <<_ACEOF 6076/* confdefs.h. */ 6077_ACEOF 6078cat confdefs.h >>conftest.$ac_ext 6079cat >>conftest.$ac_ext <<_ACEOF 6080/* end confdefs.h. */ 6081#include <ctype.h> 6082#include <stdlib.h> 6083#if ((' ' & 0x0FF) == 0x020) 6084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6086#else 6087# define ISLOWER(c) \ 6088 (('a' <= (c) && (c) <= 'i') \ 6089 || ('j' <= (c) && (c) <= 'r') \ 6090 || ('s' <= (c) && (c) <= 'z')) 6091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6092#endif 6093 6094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6095int 6096main () 6097{ 6098 int i; 6099 for (i = 0; i < 256; i++) 6100 if (XOR (islower (i), ISLOWER (i)) 6101 || toupper (i) != TOUPPER (i)) 6102 return 2; 6103 return 0; 6104} 6105_ACEOF 6106rm -f conftest$ac_exeext 6107if { (ac_try="$ac_link" 6108case "(($ac_try" in 6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6110 *) ac_try_echo=$ac_try;; 6111esac 6112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6113$as_echo "$ac_try_echo") >&5 6114 (eval "$ac_link") 2>&5 6115 ac_status=$? 6116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6118 { (case "(($ac_try" in 6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6120 *) ac_try_echo=$ac_try;; 6121esac 6122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6123$as_echo "$ac_try_echo") >&5 6124 (eval "$ac_try") 2>&5 6125 ac_status=$? 6126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6127 (exit $ac_status); }; }; then 6128 : 6129else 6130 $as_echo "$as_me: program exited with status $ac_status" >&5 6131$as_echo "$as_me: failed program was:" >&5 6132sed 's/^/| /' conftest.$ac_ext >&5 6133 6134( exit $ac_status ) 6135ac_cv_header_stdc=no 6136fi 6137rm -rf conftest.dSYM 6138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6139fi 6140 6141 6142fi 6143fi 6144{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6145$as_echo "$ac_cv_header_stdc" >&6; } 6146if test $ac_cv_header_stdc = yes; then 6147 6148cat >>confdefs.h <<\_ACEOF 6149#define STDC_HEADERS 1 6150_ACEOF 6151 6152fi 6153 6154 6155for ac_header in unistd.h 6156do 6157as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6160$as_echo_n "checking for $ac_header... " >&6; } 6161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6162 $as_echo_n "(cached) " >&6 6163fi 6164ac_res=`eval 'as_val=${'$as_ac_Header'} 6165 $as_echo "$as_val"'` 6166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6167$as_echo "$ac_res" >&6; } 6168else 6169 # Is the header compilable? 6170{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6171$as_echo_n "checking $ac_header usability... " >&6; } 6172cat >conftest.$ac_ext <<_ACEOF 6173/* confdefs.h. */ 6174_ACEOF 6175cat confdefs.h >>conftest.$ac_ext 6176cat >>conftest.$ac_ext <<_ACEOF 6177/* end confdefs.h. */ 6178$ac_includes_default 6179#include <$ac_header> 6180_ACEOF 6181rm -f conftest.$ac_objext 6182if { (ac_try="$ac_compile" 6183case "(($ac_try" in 6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6185 *) ac_try_echo=$ac_try;; 6186esac 6187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6188$as_echo "$ac_try_echo") >&5 6189 (eval "$ac_compile") 2>conftest.er1 6190 ac_status=$? 6191 grep -v '^ *+' conftest.er1 >conftest.err 6192 rm -f conftest.er1 6193 cat conftest.err >&5 6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); } && { 6196 test -z "$ac_c_werror_flag" || 6197 test ! -s conftest.err 6198 } && test -s conftest.$ac_objext; then 6199 ac_header_compiler=yes 6200else 6201 $as_echo "$as_me: failed program was:" >&5 6202sed 's/^/| /' conftest.$ac_ext >&5 6203 6204 ac_header_compiler=no 6205fi 6206 6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6208{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6209$as_echo "$ac_header_compiler" >&6; } 6210 6211# Is the header present? 6212{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6213$as_echo_n "checking $ac_header presence... " >&6; } 6214cat >conftest.$ac_ext <<_ACEOF 6215/* confdefs.h. */ 6216_ACEOF 6217cat confdefs.h >>conftest.$ac_ext 6218cat >>conftest.$ac_ext <<_ACEOF 6219/* end confdefs.h. */ 6220#include <$ac_header> 6221_ACEOF 6222if { (ac_try="$ac_cpp conftest.$ac_ext" 6223case "(($ac_try" in 6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6225 *) ac_try_echo=$ac_try;; 6226esac 6227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6228$as_echo "$ac_try_echo") >&5 6229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6230 ac_status=$? 6231 grep -v '^ *+' conftest.er1 >conftest.err 6232 rm -f conftest.er1 6233 cat conftest.err >&5 6234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6235 (exit $ac_status); } >/dev/null && { 6236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6237 test ! -s conftest.err 6238 }; then 6239 ac_header_preproc=yes 6240else 6241 $as_echo "$as_me: failed program was:" >&5 6242sed 's/^/| /' conftest.$ac_ext >&5 6243 6244 ac_header_preproc=no 6245fi 6246 6247rm -f conftest.err conftest.$ac_ext 6248{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6249$as_echo "$ac_header_preproc" >&6; } 6250 6251# So? What about this header? 6252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6253 yes:no: ) 6254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6255$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6257$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6258 ac_header_preproc=yes 6259 ;; 6260 no:yes:* ) 6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6262$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6264$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6266$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6268$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6270$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6272$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6273 6274 ;; 6275esac 6276{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6277$as_echo_n "checking for $ac_header... " >&6; } 6278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6279 $as_echo_n "(cached) " >&6 6280else 6281 eval "$as_ac_Header=\$ac_header_preproc" 6282fi 6283ac_res=`eval 'as_val=${'$as_ac_Header'} 6284 $as_echo "$as_val"'` 6285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6286$as_echo "$ac_res" >&6; } 6287 6288fi 6289as_val=`eval 'as_val=${'$as_ac_Header'} 6290 $as_echo "$as_val"'` 6291 if test "x$as_val" = x""yes; then 6292 cat >>confdefs.h <<_ACEOF 6293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6294_ACEOF 6295 6296fi 6297 6298done 6299 6300 6301 6302 6303for ac_header in wchar.h 6304do 6305as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6308$as_echo_n "checking for $ac_header... " >&6; } 6309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6310 $as_echo_n "(cached) " >&6 6311fi 6312ac_res=`eval 'as_val=${'$as_ac_Header'} 6313 $as_echo "$as_val"'` 6314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6315$as_echo "$ac_res" >&6; } 6316else 6317 # Is the header compilable? 6318{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6319$as_echo_n "checking $ac_header usability... " >&6; } 6320cat >conftest.$ac_ext <<_ACEOF 6321/* confdefs.h. */ 6322_ACEOF 6323cat confdefs.h >>conftest.$ac_ext 6324cat >>conftest.$ac_ext <<_ACEOF 6325/* end confdefs.h. */ 6326$ac_includes_default 6327#include <$ac_header> 6328_ACEOF 6329rm -f conftest.$ac_objext 6330if { (ac_try="$ac_compile" 6331case "(($ac_try" in 6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6333 *) ac_try_echo=$ac_try;; 6334esac 6335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6336$as_echo "$ac_try_echo") >&5 6337 (eval "$ac_compile") 2>conftest.er1 6338 ac_status=$? 6339 grep -v '^ *+' conftest.er1 >conftest.err 6340 rm -f conftest.er1 6341 cat conftest.err >&5 6342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6343 (exit $ac_status); } && { 6344 test -z "$ac_c_werror_flag" || 6345 test ! -s conftest.err 6346 } && test -s conftest.$ac_objext; then 6347 ac_header_compiler=yes 6348else 6349 $as_echo "$as_me: failed program was:" >&5 6350sed 's/^/| /' conftest.$ac_ext >&5 6351 6352 ac_header_compiler=no 6353fi 6354 6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6356{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6357$as_echo "$ac_header_compiler" >&6; } 6358 6359# Is the header present? 6360{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6361$as_echo_n "checking $ac_header presence... " >&6; } 6362cat >conftest.$ac_ext <<_ACEOF 6363/* confdefs.h. */ 6364_ACEOF 6365cat confdefs.h >>conftest.$ac_ext 6366cat >>conftest.$ac_ext <<_ACEOF 6367/* end confdefs.h. */ 6368#include <$ac_header> 6369_ACEOF 6370if { (ac_try="$ac_cpp conftest.$ac_ext" 6371case "(($ac_try" in 6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6373 *) ac_try_echo=$ac_try;; 6374esac 6375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6376$as_echo "$ac_try_echo") >&5 6377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6378 ac_status=$? 6379 grep -v '^ *+' conftest.er1 >conftest.err 6380 rm -f conftest.er1 6381 cat conftest.err >&5 6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6383 (exit $ac_status); } >/dev/null && { 6384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6385 test ! -s conftest.err 6386 }; then 6387 ac_header_preproc=yes 6388else 6389 $as_echo "$as_me: failed program was:" >&5 6390sed 's/^/| /' conftest.$ac_ext >&5 6391 6392 ac_header_preproc=no 6393fi 6394 6395rm -f conftest.err conftest.$ac_ext 6396{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6397$as_echo "$ac_header_preproc" >&6; } 6398 6399# So? What about this header? 6400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6401 yes:no: ) 6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6403$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6405$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6406 ac_header_preproc=yes 6407 ;; 6408 no:yes:* ) 6409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6410$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6412$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6414$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6416$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6418$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6420$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6421 6422 ;; 6423esac 6424{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6425$as_echo_n "checking for $ac_header... " >&6; } 6426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6427 $as_echo_n "(cached) " >&6 6428else 6429 eval "$as_ac_Header=\$ac_header_preproc" 6430fi 6431ac_res=`eval 'as_val=${'$as_ac_Header'} 6432 $as_echo "$as_val"'` 6433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6434$as_echo "$ac_res" >&6; } 6435 6436fi 6437as_val=`eval 'as_val=${'$as_ac_Header'} 6438 $as_echo "$as_val"'` 6439 if test "x$as_val" = x""yes; then 6440 cat >>confdefs.h <<_ACEOF 6441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6442_ACEOF 6443 6444fi 6445 6446done 6447 6448 6449for ac_header in wctype.h 6450do 6451as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6454$as_echo_n "checking for $ac_header... " >&6; } 6455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6456 $as_echo_n "(cached) " >&6 6457fi 6458ac_res=`eval 'as_val=${'$as_ac_Header'} 6459 $as_echo "$as_val"'` 6460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6461$as_echo "$ac_res" >&6; } 6462else 6463 # Is the header compilable? 6464{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6465$as_echo_n "checking $ac_header usability... " >&6; } 6466cat >conftest.$ac_ext <<_ACEOF 6467/* confdefs.h. */ 6468_ACEOF 6469cat confdefs.h >>conftest.$ac_ext 6470cat >>conftest.$ac_ext <<_ACEOF 6471/* end confdefs.h. */ 6472$ac_includes_default 6473#include <$ac_header> 6474_ACEOF 6475rm -f conftest.$ac_objext 6476if { (ac_try="$ac_compile" 6477case "(($ac_try" in 6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6479 *) ac_try_echo=$ac_try;; 6480esac 6481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6482$as_echo "$ac_try_echo") >&5 6483 (eval "$ac_compile") 2>conftest.er1 6484 ac_status=$? 6485 grep -v '^ *+' conftest.er1 >conftest.err 6486 rm -f conftest.er1 6487 cat conftest.err >&5 6488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); } && { 6490 test -z "$ac_c_werror_flag" || 6491 test ! -s conftest.err 6492 } && test -s conftest.$ac_objext; then 6493 ac_header_compiler=yes 6494else 6495 $as_echo "$as_me: failed program was:" >&5 6496sed 's/^/| /' conftest.$ac_ext >&5 6497 6498 ac_header_compiler=no 6499fi 6500 6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6503$as_echo "$ac_header_compiler" >&6; } 6504 6505# Is the header present? 6506{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6507$as_echo_n "checking $ac_header presence... " >&6; } 6508cat >conftest.$ac_ext <<_ACEOF 6509/* confdefs.h. */ 6510_ACEOF 6511cat confdefs.h >>conftest.$ac_ext 6512cat >>conftest.$ac_ext <<_ACEOF 6513/* end confdefs.h. */ 6514#include <$ac_header> 6515_ACEOF 6516if { (ac_try="$ac_cpp conftest.$ac_ext" 6517case "(($ac_try" in 6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6519 *) ac_try_echo=$ac_try;; 6520esac 6521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6522$as_echo "$ac_try_echo") >&5 6523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6524 ac_status=$? 6525 grep -v '^ *+' conftest.er1 >conftest.err 6526 rm -f conftest.er1 6527 cat conftest.err >&5 6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); } >/dev/null && { 6530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6531 test ! -s conftest.err 6532 }; then 6533 ac_header_preproc=yes 6534else 6535 $as_echo "$as_me: failed program was:" >&5 6536sed 's/^/| /' conftest.$ac_ext >&5 6537 6538 ac_header_preproc=no 6539fi 6540 6541rm -f conftest.err conftest.$ac_ext 6542{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6543$as_echo "$ac_header_preproc" >&6; } 6544 6545# So? What about this header? 6546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6547 yes:no: ) 6548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6549$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6551$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6552 ac_header_preproc=yes 6553 ;; 6554 no:yes:* ) 6555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6556$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6558$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6560$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6562$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6564$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6566$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6567 6568 ;; 6569esac 6570{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6571$as_echo_n "checking for $ac_header... " >&6; } 6572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6573 $as_echo_n "(cached) " >&6 6574else 6575 eval "$as_ac_Header=\$ac_header_preproc" 6576fi 6577ac_res=`eval 'as_val=${'$as_ac_Header'} 6578 $as_echo "$as_val"'` 6579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6580$as_echo "$ac_res" >&6; } 6581 6582fi 6583as_val=`eval 'as_val=${'$as_ac_Header'} 6584 $as_echo "$as_val"'` 6585 if test "x$as_val" = x""yes; then 6586 cat >>confdefs.h <<_ACEOF 6587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6588_ACEOF 6589 6590fi 6591 6592done 6593 6594{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 6595$as_echo_n "checking for wchar_t... " >&6; } 6596if test "${ac_cv_type_wchar_t+set}" = set; then 6597 $as_echo_n "(cached) " >&6 6598else 6599 ac_cv_type_wchar_t=no 6600cat >conftest.$ac_ext <<_ACEOF 6601/* confdefs.h. */ 6602_ACEOF 6603cat confdefs.h >>conftest.$ac_ext 6604cat >>conftest.$ac_ext <<_ACEOF 6605/* end confdefs.h. */ 6606 6607#if HAVE_WCHAR_H 6608#include <wchar.h> 6609#endif 6610#if STDC_HEADERS 6611#include <stddef.h> 6612#endif 6613 6614 6615int 6616main () 6617{ 6618if (sizeof (wchar_t)) 6619 return 0; 6620 ; 6621 return 0; 6622} 6623_ACEOF 6624rm -f conftest.$ac_objext 6625if { (ac_try="$ac_compile" 6626case "(($ac_try" in 6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6628 *) ac_try_echo=$ac_try;; 6629esac 6630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6631$as_echo "$ac_try_echo") >&5 6632 (eval "$ac_compile") 2>conftest.er1 6633 ac_status=$? 6634 grep -v '^ *+' conftest.er1 >conftest.err 6635 rm -f conftest.er1 6636 cat conftest.err >&5 6637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6638 (exit $ac_status); } && { 6639 test -z "$ac_c_werror_flag" || 6640 test ! -s conftest.err 6641 } && test -s conftest.$ac_objext; then 6642 cat >conftest.$ac_ext <<_ACEOF 6643/* confdefs.h. */ 6644_ACEOF 6645cat confdefs.h >>conftest.$ac_ext 6646cat >>conftest.$ac_ext <<_ACEOF 6647/* end confdefs.h. */ 6648 6649#if HAVE_WCHAR_H 6650#include <wchar.h> 6651#endif 6652#if STDC_HEADERS 6653#include <stddef.h> 6654#endif 6655 6656 6657int 6658main () 6659{ 6660if (sizeof ((wchar_t))) 6661 return 0; 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666rm -f conftest.$ac_objext 6667if { (ac_try="$ac_compile" 6668case "(($ac_try" in 6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6670 *) ac_try_echo=$ac_try;; 6671esac 6672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6673$as_echo "$ac_try_echo") >&5 6674 (eval "$ac_compile") 2>conftest.er1 6675 ac_status=$? 6676 grep -v '^ *+' conftest.er1 >conftest.err 6677 rm -f conftest.er1 6678 cat conftest.err >&5 6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); } && { 6681 test -z "$ac_c_werror_flag" || 6682 test ! -s conftest.err 6683 } && test -s conftest.$ac_objext; then 6684 : 6685else 6686 $as_echo "$as_me: failed program was:" >&5 6687sed 's/^/| /' conftest.$ac_ext >&5 6688 6689 ac_cv_type_wchar_t=yes 6690fi 6691 6692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693else 6694 $as_echo "$as_me: failed program was:" >&5 6695sed 's/^/| /' conftest.$ac_ext >&5 6696 6697 6698fi 6699 6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6701fi 6702{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 6703$as_echo "$ac_cv_type_wchar_t" >&6; } 6704if test "x$ac_cv_type_wchar_t" = x""yes; then 6705 6706cat >>confdefs.h <<_ACEOF 6707#define HAVE_WCHAR_T 1 6708_ACEOF 6709 6710 6711fi 6712 6713 6714for ac_func in iswcntrl 6715do 6716as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6717{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 6718$as_echo_n "checking for $ac_func... " >&6; } 6719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6720 $as_echo_n "(cached) " >&6 6721else 6722 cat >conftest.$ac_ext <<_ACEOF 6723/* confdefs.h. */ 6724_ACEOF 6725cat confdefs.h >>conftest.$ac_ext 6726cat >>conftest.$ac_ext <<_ACEOF 6727/* end confdefs.h. */ 6728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6730#define $ac_func innocuous_$ac_func 6731 6732/* System header to define __stub macros and hopefully few prototypes, 6733 which can conflict with char $ac_func (); below. 6734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6735 <limits.h> exists even on freestanding compilers. */ 6736 6737#ifdef __STDC__ 6738# include <limits.h> 6739#else 6740# include <assert.h> 6741#endif 6742 6743#undef $ac_func 6744 6745/* Override any GCC internal prototype to avoid an error. 6746 Use char because int might match the return type of a GCC 6747 builtin and then its argument prototype would still apply. */ 6748#ifdef __cplusplus 6749extern "C" 6750#endif 6751char $ac_func (); 6752/* The GNU C library defines this for functions which it implements 6753 to always fail with ENOSYS. Some functions are actually named 6754 something starting with __ and the normal name is an alias. */ 6755#if defined __stub_$ac_func || defined __stub___$ac_func 6756choke me 6757#endif 6758 6759int 6760main () 6761{ 6762return $ac_func (); 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767rm -f conftest.$ac_objext conftest$ac_exeext 6768if { (ac_try="$ac_link" 6769case "(($ac_try" in 6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6771 *) ac_try_echo=$ac_try;; 6772esac 6773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6774$as_echo "$ac_try_echo") >&5 6775 (eval "$ac_link") 2>conftest.er1 6776 ac_status=$? 6777 grep -v '^ *+' conftest.er1 >conftest.err 6778 rm -f conftest.er1 6779 cat conftest.err >&5 6780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781 (exit $ac_status); } && { 6782 test -z "$ac_c_werror_flag" || 6783 test ! -s conftest.err 6784 } && test -s conftest$ac_exeext && { 6785 test "$cross_compiling" = yes || 6786 $as_test_x conftest$ac_exeext 6787 }; then 6788 eval "$as_ac_var=yes" 6789else 6790 $as_echo "$as_me: failed program was:" >&5 6791sed 's/^/| /' conftest.$ac_ext >&5 6792 6793 eval "$as_ac_var=no" 6794fi 6795 6796rm -rf conftest.dSYM 6797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6798 conftest$ac_exeext conftest.$ac_ext 6799fi 6800ac_res=`eval 'as_val=${'$as_ac_var'} 6801 $as_echo "$as_val"'` 6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6803$as_echo "$ac_res" >&6; } 6804as_val=`eval 'as_val=${'$as_ac_var'} 6805 $as_echo "$as_val"'` 6806 if test "x$as_val" = x""yes; then 6807 cat >>confdefs.h <<_ACEOF 6808#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6809_ACEOF 6810 6811fi 6812done 6813 6814 6815for ac_func in vswprintf 6816do 6817as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6818{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 6819$as_echo_n "checking for $ac_func... " >&6; } 6820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6821 $as_echo_n "(cached) " >&6 6822else 6823 cat >conftest.$ac_ext <<_ACEOF 6824/* confdefs.h. */ 6825_ACEOF 6826cat confdefs.h >>conftest.$ac_ext 6827cat >>conftest.$ac_ext <<_ACEOF 6828/* end confdefs.h. */ 6829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6830 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6831#define $ac_func innocuous_$ac_func 6832 6833/* System header to define __stub macros and hopefully few prototypes, 6834 which can conflict with char $ac_func (); below. 6835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6836 <limits.h> exists even on freestanding compilers. */ 6837 6838#ifdef __STDC__ 6839# include <limits.h> 6840#else 6841# include <assert.h> 6842#endif 6843 6844#undef $ac_func 6845 6846/* Override any GCC internal prototype to avoid an error. 6847 Use char because int might match the return type of a GCC 6848 builtin and then its argument prototype would still apply. */ 6849#ifdef __cplusplus 6850extern "C" 6851#endif 6852char $ac_func (); 6853/* The GNU C library defines this for functions which it implements 6854 to always fail with ENOSYS. Some functions are actually named 6855 something starting with __ and the normal name is an alias. */ 6856#if defined __stub_$ac_func || defined __stub___$ac_func 6857choke me 6858#endif 6859 6860int 6861main () 6862{ 6863return $ac_func (); 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868rm -f conftest.$ac_objext conftest$ac_exeext 6869if { (ac_try="$ac_link" 6870case "(($ac_try" in 6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6872 *) ac_try_echo=$ac_try;; 6873esac 6874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6875$as_echo "$ac_try_echo") >&5 6876 (eval "$ac_link") 2>conftest.er1 6877 ac_status=$? 6878 grep -v '^ *+' conftest.er1 >conftest.err 6879 rm -f conftest.er1 6880 cat conftest.err >&5 6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6882 (exit $ac_status); } && { 6883 test -z "$ac_c_werror_flag" || 6884 test ! -s conftest.err 6885 } && test -s conftest$ac_exeext && { 6886 test "$cross_compiling" = yes || 6887 $as_test_x conftest$ac_exeext 6888 }; then 6889 eval "$as_ac_var=yes" 6890else 6891 $as_echo "$as_me: failed program was:" >&5 6892sed 's/^/| /' conftest.$ac_ext >&5 6893 6894 eval "$as_ac_var=no" 6895fi 6896 6897rm -rf conftest.dSYM 6898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6899 conftest$ac_exeext conftest.$ac_ext 6900fi 6901ac_res=`eval 'as_val=${'$as_ac_var'} 6902 $as_echo "$as_val"'` 6903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6904$as_echo "$ac_res" >&6; } 6905as_val=`eval 'as_val=${'$as_ac_var'} 6906 $as_echo "$as_val"'` 6907 if test "x$as_val" = x""yes; then 6908 cat >>confdefs.h <<_ACEOF 6909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6910_ACEOF 6911 6912fi 6913done 6914 6915 6916 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 6917$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 6918if test "${ac_cv_func_mbrtowc+set}" = set; then 6919 $as_echo_n "(cached) " >&6 6920else 6921 cat >conftest.$ac_ext <<_ACEOF 6922/* confdefs.h. */ 6923_ACEOF 6924cat confdefs.h >>conftest.$ac_ext 6925cat >>conftest.$ac_ext <<_ACEOF 6926/* end confdefs.h. */ 6927#include <wchar.h> 6928int 6929main () 6930{ 6931wchar_t wc; 6932 char const s[] = ""; 6933 size_t n = 1; 6934 mbstate_t state; 6935 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940rm -f conftest.$ac_objext conftest$ac_exeext 6941if { (ac_try="$ac_link" 6942case "(($ac_try" in 6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6944 *) ac_try_echo=$ac_try;; 6945esac 6946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6947$as_echo "$ac_try_echo") >&5 6948 (eval "$ac_link") 2>conftest.er1 6949 ac_status=$? 6950 grep -v '^ *+' conftest.er1 >conftest.err 6951 rm -f conftest.er1 6952 cat conftest.err >&5 6953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6954 (exit $ac_status); } && { 6955 test -z "$ac_c_werror_flag" || 6956 test ! -s conftest.err 6957 } && test -s conftest$ac_exeext && { 6958 test "$cross_compiling" = yes || 6959 $as_test_x conftest$ac_exeext 6960 }; then 6961 ac_cv_func_mbrtowc=yes 6962else 6963 $as_echo "$as_me: failed program was:" >&5 6964sed 's/^/| /' conftest.$ac_ext >&5 6965 6966 ac_cv_func_mbrtowc=no 6967fi 6968 6969rm -rf conftest.dSYM 6970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6971 conftest$ac_exeext conftest.$ac_ext 6972fi 6973{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 6974$as_echo "$ac_cv_func_mbrtowc" >&6; } 6975 if test $ac_cv_func_mbrtowc = yes; then 6976 6977cat >>confdefs.h <<\_ACEOF 6978#define HAVE_MBRTOWC 1 6979_ACEOF 6980 6981 fi 6982 6983 6984 6985 if test "X$prefix" = "XNONE"; then 6986 acl_final_prefix="$ac_default_prefix" 6987 else 6988 acl_final_prefix="$prefix" 6989 fi 6990 if test "X$exec_prefix" = "XNONE"; then 6991 acl_final_exec_prefix='${prefix}' 6992 else 6993 acl_final_exec_prefix="$exec_prefix" 6994 fi 6995 acl_save_prefix="$prefix" 6996 prefix="$acl_final_prefix" 6997 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6998 prefix="$acl_save_prefix" 6999 7000# Make sure we can run config.sub. 7001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7002 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 7003$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 7004 { (exit 1); exit 1; }; } 7005 7006{ $as_echo "$as_me:$LINENO: checking build system type" >&5 7007$as_echo_n "checking build system type... " >&6; } 7008if test "${ac_cv_build+set}" = set; then 7009 $as_echo_n "(cached) " >&6 7010else 7011 ac_build_alias=$build_alias 7012test "x$ac_build_alias" = x && 7013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7014test "x$ac_build_alias" = x && 7015 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 7016$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 7017 { (exit 1); exit 1; }; } 7018ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7019 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 7020$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 7021 { (exit 1); exit 1; }; } 7022 7023fi 7024{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 7025$as_echo "$ac_cv_build" >&6; } 7026case $ac_cv_build in 7027*-*-*) ;; 7028*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 7029$as_echo "$as_me: error: invalid value of canonical build" >&2;} 7030 { (exit 1); exit 1; }; };; 7031esac 7032build=$ac_cv_build 7033ac_save_IFS=$IFS; IFS='-' 7034set x $ac_cv_build 7035shift 7036build_cpu=$1 7037build_vendor=$2 7038shift; shift 7039# Remember, the first character of IFS is used to create $*, 7040# except with old shells: 7041build_os=$* 7042IFS=$ac_save_IFS 7043case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7044 7045 7046{ $as_echo "$as_me:$LINENO: checking host system type" >&5 7047$as_echo_n "checking host system type... " >&6; } 7048if test "${ac_cv_host+set}" = set; then 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test "x$host_alias" = x; then 7052 ac_cv_host=$ac_cv_build 7053else 7054 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7055 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 7056$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 7057 { (exit 1); exit 1; }; } 7058fi 7059 7060fi 7061{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7062$as_echo "$ac_cv_host" >&6; } 7063case $ac_cv_host in 7064*-*-*) ;; 7065*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 7066$as_echo "$as_me: error: invalid value of canonical host" >&2;} 7067 { (exit 1); exit 1; }; };; 7068esac 7069host=$ac_cv_host 7070ac_save_IFS=$IFS; IFS='-' 7071set x $ac_cv_host 7072shift 7073host_cpu=$1 7074host_vendor=$2 7075shift; shift 7076# Remember, the first character of IFS is used to create $*, 7077# except with old shells: 7078host_os=$* 7079IFS=$ac_save_IFS 7080case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7081 7082 7083 7084# Check whether --with-gnu-ld was given. 7085if test "${with_gnu_ld+set}" = set; then 7086 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7087else 7088 with_gnu_ld=no 7089fi 7090 7091ac_prog=ld 7092if test "$GCC" = yes; then 7093 # Check if gcc -print-prog-name=ld gives a path. 7094 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 7095$as_echo_n "checking for ld used by GCC... " >&6; } 7096 case $host in 7097 *-*-mingw*) 7098 # gcc leaves a trailing carriage return which upsets mingw 7099 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7100 *) 7101 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7102 esac 7103 case $ac_prog in 7104 # Accept absolute paths. 7105 [\\/]* | [A-Za-z]:[\\/]*) 7106 re_direlt='/[^/][^/]*/\.\./' 7107 # Canonicalize the path of ld 7108 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7109 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7110 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7111 done 7112 test -z "$LD" && LD="$ac_prog" 7113 ;; 7114 "") 7115 # If it fails, then pretend we aren't using GCC. 7116 ac_prog=ld 7117 ;; 7118 *) 7119 # If it is relative, then search for the first ld in PATH. 7120 with_gnu_ld=unknown 7121 ;; 7122 esac 7123elif test "$with_gnu_ld" = yes; then 7124 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 7125$as_echo_n "checking for GNU ld... " >&6; } 7126else 7127 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7128$as_echo_n "checking for non-GNU ld... " >&6; } 7129fi 7130if test "${acl_cv_path_LD+set}" = set; then 7131 $as_echo_n "(cached) " >&6 7132else 7133 if test -z "$LD"; then 7134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7135 for ac_dir in $PATH; do 7136 test -z "$ac_dir" && ac_dir=. 7137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7138 acl_cv_path_LD="$ac_dir/$ac_prog" 7139 # Check to see if the program is GNU ld. I'd rather use --version, 7140 # but apparently some GNU ld's only accept -v. 7141 # Break only if it was the GNU/non-GNU ld that we prefer. 7142 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 7143 test "$with_gnu_ld" != no && break 7144 else 7145 test "$with_gnu_ld" != yes && break 7146 fi 7147 fi 7148 done 7149 IFS="$ac_save_ifs" 7150else 7151 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7152fi 7153fi 7154 7155LD="$acl_cv_path_LD" 7156if test -n "$LD"; then 7157 { $as_echo "$as_me:$LINENO: result: $LD" >&5 7158$as_echo "$LD" >&6; } 7159else 7160 { $as_echo "$as_me:$LINENO: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7164$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7165 { (exit 1); exit 1; }; } 7166{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7167$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7168if test "${acl_cv_prog_gnu_ld+set}" = set; then 7169 $as_echo_n "(cached) " >&6 7170else 7171 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7172if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 7173 acl_cv_prog_gnu_ld=yes 7174else 7175 acl_cv_prog_gnu_ld=no 7176fi 7177fi 7178{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 7179$as_echo "$acl_cv_prog_gnu_ld" >&6; } 7180with_gnu_ld=$acl_cv_prog_gnu_ld 7181 7182 7183 7184 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 7185$as_echo_n "checking for shared library run path origin... " >&6; } 7186if test "${acl_cv_rpath+set}" = set; then 7187 $as_echo_n "(cached) " >&6 7188else 7189 7190 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7191 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7192 . ./conftest.sh 7193 rm -f ./conftest.sh 7194 acl_cv_rpath=done 7195 7196fi 7197{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 7198$as_echo "$acl_cv_rpath" >&6; } 7199 wl="$acl_cv_wl" 7200 libext="$acl_cv_libext" 7201 shlibext="$acl_cv_shlibext" 7202 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7203 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7204 hardcode_direct="$acl_cv_hardcode_direct" 7205 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7206 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 7207 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 7208 # Check whether --enable-rpath was given. 7209if test "${enable_rpath+set}" = set; then 7210 enableval=$enable_rpath; : 7211else 7212 enable_rpath=yes 7213fi 7214 7215 7216 7217 7218 7219 7220 7221 7222 use_additional=yes 7223 7224 acl_save_prefix="$prefix" 7225 prefix="$acl_final_prefix" 7226 acl_save_exec_prefix="$exec_prefix" 7227 exec_prefix="$acl_final_exec_prefix" 7228 7229 eval additional_includedir=\"$includedir\" 7230 eval additional_libdir=\"$libdir\" 7231 7232 exec_prefix="$acl_save_exec_prefix" 7233 prefix="$acl_save_prefix" 7234 7235 7236# Check whether --with-libiconv-prefix was given. 7237if test "${with_libiconv_prefix+set}" = set; then 7238 withval=$with_libiconv_prefix; 7239 if test "X$withval" = "Xno"; then 7240 use_additional=no 7241 else 7242 if test "X$withval" = "X"; then 7243 7244 acl_save_prefix="$prefix" 7245 prefix="$acl_final_prefix" 7246 acl_save_exec_prefix="$exec_prefix" 7247 exec_prefix="$acl_final_exec_prefix" 7248 7249 eval additional_includedir=\"$includedir\" 7250 eval additional_libdir=\"$libdir\" 7251 7252 exec_prefix="$acl_save_exec_prefix" 7253 prefix="$acl_save_prefix" 7254 7255 else 7256 additional_includedir="$withval/include" 7257 additional_libdir="$withval/lib" 7258 fi 7259 fi 7260 7261fi 7262 7263 LIBICONV= 7264 LTLIBICONV= 7265 INCICONV= 7266 rpathdirs= 7267 ltrpathdirs= 7268 names_already_handled= 7269 names_next_round='iconv ' 7270 while test -n "$names_next_round"; do 7271 names_this_round="$names_next_round" 7272 names_next_round= 7273 for name in $names_this_round; do 7274 already_handled= 7275 for n in $names_already_handled; do 7276 if test "$n" = "$name"; then 7277 already_handled=yes 7278 break 7279 fi 7280 done 7281 if test -z "$already_handled"; then 7282 names_already_handled="$names_already_handled $name" 7283 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7284 eval value=\"\$HAVE_LIB$uppername\" 7285 if test -n "$value"; then 7286 if test "$value" = yes; then 7287 eval value=\"\$LIB$uppername\" 7288 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7289 eval value=\"\$LTLIB$uppername\" 7290 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7291 else 7292 : 7293 fi 7294 else 7295 found_dir= 7296 found_la= 7297 found_so= 7298 found_a= 7299 if test $use_additional = yes; then 7300 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7301 found_dir="$additional_libdir" 7302 found_so="$additional_libdir/lib$name.$shlibext" 7303 if test -f "$additional_libdir/lib$name.la"; then 7304 found_la="$additional_libdir/lib$name.la" 7305 fi 7306 else 7307 if test -f "$additional_libdir/lib$name.$libext"; then 7308 found_dir="$additional_libdir" 7309 found_a="$additional_libdir/lib$name.$libext" 7310 if test -f "$additional_libdir/lib$name.la"; then 7311 found_la="$additional_libdir/lib$name.la" 7312 fi 7313 fi 7314 fi 7315 fi 7316 if test "X$found_dir" = "X"; then 7317 for x in $LDFLAGS $LTLIBICONV; do 7318 7319 acl_save_prefix="$prefix" 7320 prefix="$acl_final_prefix" 7321 acl_save_exec_prefix="$exec_prefix" 7322 exec_prefix="$acl_final_exec_prefix" 7323 eval x=\"$x\" 7324 exec_prefix="$acl_save_exec_prefix" 7325 prefix="$acl_save_prefix" 7326 7327 case "$x" in 7328 -L*) 7329 dir=`echo "X$x" | sed -e 's/^X-L//'` 7330 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7331 found_dir="$dir" 7332 found_so="$dir/lib$name.$shlibext" 7333 if test -f "$dir/lib$name.la"; then 7334 found_la="$dir/lib$name.la" 7335 fi 7336 else 7337 if test -f "$dir/lib$name.$libext"; then 7338 found_dir="$dir" 7339 found_a="$dir/lib$name.$libext" 7340 if test -f "$dir/lib$name.la"; then 7341 found_la="$dir/lib$name.la" 7342 fi 7343 fi 7344 fi 7345 ;; 7346 esac 7347 if test "X$found_dir" != "X"; then 7348 break 7349 fi 7350 done 7351 fi 7352 if test "X$found_dir" != "X"; then 7353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7354 if test "X$found_so" != "X"; then 7355 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7357 else 7358 haveit= 7359 for x in $ltrpathdirs; do 7360 if test "X$x" = "X$found_dir"; then 7361 haveit=yes 7362 break 7363 fi 7364 done 7365 if test -z "$haveit"; then 7366 ltrpathdirs="$ltrpathdirs $found_dir" 7367 fi 7368 if test "$hardcode_direct" = yes; then 7369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7370 else 7371 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7373 haveit= 7374 for x in $rpathdirs; do 7375 if test "X$x" = "X$found_dir"; then 7376 haveit=yes 7377 break 7378 fi 7379 done 7380 if test -z "$haveit"; then 7381 rpathdirs="$rpathdirs $found_dir" 7382 fi 7383 else 7384 haveit= 7385 for x in $LDFLAGS $LIBICONV; do 7386 7387 acl_save_prefix="$prefix" 7388 prefix="$acl_final_prefix" 7389 acl_save_exec_prefix="$exec_prefix" 7390 exec_prefix="$acl_final_exec_prefix" 7391 eval x=\"$x\" 7392 exec_prefix="$acl_save_exec_prefix" 7393 prefix="$acl_save_prefix" 7394 7395 if test "X$x" = "X-L$found_dir"; then 7396 haveit=yes 7397 break 7398 fi 7399 done 7400 if test -z "$haveit"; then 7401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7402 fi 7403 if test "$hardcode_minus_L" != no; then 7404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7405 else 7406 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7407 fi 7408 fi 7409 fi 7410 fi 7411 else 7412 if test "X$found_a" != "X"; then 7413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7414 else 7415 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7416 fi 7417 fi 7418 additional_includedir= 7419 case "$found_dir" in 7420 */lib | */lib/) 7421 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7422 additional_includedir="$basedir/include" 7423 ;; 7424 esac 7425 if test "X$additional_includedir" != "X"; then 7426 if test "X$additional_includedir" != "X/usr/include"; then 7427 haveit= 7428 if test "X$additional_includedir" = "X/usr/local/include"; then 7429 if test -n "$GCC"; then 7430 case $host_os in 7431 linux*) haveit=yes;; 7432 esac 7433 fi 7434 fi 7435 if test -z "$haveit"; then 7436 for x in $CPPFLAGS $INCICONV; do 7437 7438 acl_save_prefix="$prefix" 7439 prefix="$acl_final_prefix" 7440 acl_save_exec_prefix="$exec_prefix" 7441 exec_prefix="$acl_final_exec_prefix" 7442 eval x=\"$x\" 7443 exec_prefix="$acl_save_exec_prefix" 7444 prefix="$acl_save_prefix" 7445 7446 if test "X$x" = "X-I$additional_includedir"; then 7447 haveit=yes 7448 break 7449 fi 7450 done 7451 if test -z "$haveit"; then 7452 if test -d "$additional_includedir"; then 7453 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7454 fi 7455 fi 7456 fi 7457 fi 7458 fi 7459 if test -n "$found_la"; then 7460 save_libdir="$libdir" 7461 case "$found_la" in 7462 */* | *\\*) . "$found_la" ;; 7463 *) . "./$found_la" ;; 7464 esac 7465 libdir="$save_libdir" 7466 for dep in $dependency_libs; do 7467 case "$dep" in 7468 -L*) 7469 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7470 if test "X$additional_libdir" != "X/usr/lib"; then 7471 haveit= 7472 if test "X$additional_libdir" = "X/usr/local/lib"; then 7473 if test -n "$GCC"; then 7474 case $host_os in 7475 linux*) haveit=yes;; 7476 esac 7477 fi 7478 fi 7479 if test -z "$haveit"; then 7480 haveit= 7481 for x in $LDFLAGS $LIBICONV; do 7482 7483 acl_save_prefix="$prefix" 7484 prefix="$acl_final_prefix" 7485 acl_save_exec_prefix="$exec_prefix" 7486 exec_prefix="$acl_final_exec_prefix" 7487 eval x=\"$x\" 7488 exec_prefix="$acl_save_exec_prefix" 7489 prefix="$acl_save_prefix" 7490 7491 if test "X$x" = "X-L$additional_libdir"; then 7492 haveit=yes 7493 break 7494 fi 7495 done 7496 if test -z "$haveit"; then 7497 if test -d "$additional_libdir"; then 7498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7499 fi 7500 fi 7501 haveit= 7502 for x in $LDFLAGS $LTLIBICONV; do 7503 7504 acl_save_prefix="$prefix" 7505 prefix="$acl_final_prefix" 7506 acl_save_exec_prefix="$exec_prefix" 7507 exec_prefix="$acl_final_exec_prefix" 7508 eval x=\"$x\" 7509 exec_prefix="$acl_save_exec_prefix" 7510 prefix="$acl_save_prefix" 7511 7512 if test "X$x" = "X-L$additional_libdir"; then 7513 haveit=yes 7514 break 7515 fi 7516 done 7517 if test -z "$haveit"; then 7518 if test -d "$additional_libdir"; then 7519 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7520 fi 7521 fi 7522 fi 7523 fi 7524 ;; 7525 -R*) 7526 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7527 if test "$enable_rpath" != no; then 7528 haveit= 7529 for x in $rpathdirs; do 7530 if test "X$x" = "X$dir"; then 7531 haveit=yes 7532 break 7533 fi 7534 done 7535 if test -z "$haveit"; then 7536 rpathdirs="$rpathdirs $dir" 7537 fi 7538 haveit= 7539 for x in $ltrpathdirs; do 7540 if test "X$x" = "X$dir"; then 7541 haveit=yes 7542 break 7543 fi 7544 done 7545 if test -z "$haveit"; then 7546 ltrpathdirs="$ltrpathdirs $dir" 7547 fi 7548 fi 7549 ;; 7550 -l*) 7551 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7552 ;; 7553 *.la) 7554 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7555 ;; 7556 *) 7557 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7559 ;; 7560 esac 7561 done 7562 fi 7563 else 7564 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7565 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7566 fi 7567 fi 7568 fi 7569 done 7570 done 7571 if test "X$rpathdirs" != "X"; then 7572 if test -n "$hardcode_libdir_separator"; then 7573 alldirs= 7574 for found_dir in $rpathdirs; do 7575 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7576 done 7577 acl_save_libdir="$libdir" 7578 libdir="$alldirs" 7579 eval flag=\"$hardcode_libdir_flag_spec\" 7580 libdir="$acl_save_libdir" 7581 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7582 else 7583 for found_dir in $rpathdirs; do 7584 acl_save_libdir="$libdir" 7585 libdir="$found_dir" 7586 eval flag=\"$hardcode_libdir_flag_spec\" 7587 libdir="$acl_save_libdir" 7588 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7589 done 7590 fi 7591 fi 7592 if test "X$ltrpathdirs" != "X"; then 7593 for found_dir in $ltrpathdirs; do 7594 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7595 done 7596 fi 7597 7598 7599 7600 7601 7602 7603 7604 am_save_CPPFLAGS="$CPPFLAGS" 7605 7606 for element in $INCICONV; do 7607 haveit= 7608 for x in $CPPFLAGS; do 7609 7610 acl_save_prefix="$prefix" 7611 prefix="$acl_final_prefix" 7612 acl_save_exec_prefix="$exec_prefix" 7613 exec_prefix="$acl_final_exec_prefix" 7614 eval x=\"$x\" 7615 exec_prefix="$acl_save_exec_prefix" 7616 prefix="$acl_save_prefix" 7617 7618 if test "X$x" = "X$element"; then 7619 haveit=yes 7620 break 7621 fi 7622 done 7623 if test -z "$haveit"; then 7624 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7625 fi 7626 done 7627 7628 7629 { $as_echo "$as_me:$LINENO: checking for iconv" >&5 7630$as_echo_n "checking for iconv... " >&6; } 7631if test "${am_cv_func_iconv+set}" = set; then 7632 $as_echo_n "(cached) " >&6 7633else 7634 7635 am_cv_func_iconv="no, consider installing GNU libiconv" 7636 am_cv_lib_iconv=no 7637 cat >conftest.$ac_ext <<_ACEOF 7638/* confdefs.h. */ 7639_ACEOF 7640cat confdefs.h >>conftest.$ac_ext 7641cat >>conftest.$ac_ext <<_ACEOF 7642/* end confdefs.h. */ 7643#include <stdlib.h> 7644#include <iconv.h> 7645int 7646main () 7647{ 7648iconv_t cd = iconv_open("",""); 7649 iconv(cd,NULL,NULL,NULL,NULL); 7650 iconv_close(cd); 7651 ; 7652 return 0; 7653} 7654_ACEOF 7655rm -f conftest.$ac_objext conftest$ac_exeext 7656if { (ac_try="$ac_link" 7657case "(($ac_try" in 7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7659 *) ac_try_echo=$ac_try;; 7660esac 7661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7662$as_echo "$ac_try_echo") >&5 7663 (eval "$ac_link") 2>conftest.er1 7664 ac_status=$? 7665 grep -v '^ *+' conftest.er1 >conftest.err 7666 rm -f conftest.er1 7667 cat conftest.err >&5 7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7669 (exit $ac_status); } && { 7670 test -z "$ac_c_werror_flag" || 7671 test ! -s conftest.err 7672 } && test -s conftest$ac_exeext && { 7673 test "$cross_compiling" = yes || 7674 $as_test_x conftest$ac_exeext 7675 }; then 7676 am_cv_func_iconv=yes 7677else 7678 $as_echo "$as_me: failed program was:" >&5 7679sed 's/^/| /' conftest.$ac_ext >&5 7680 7681 7682fi 7683 7684rm -rf conftest.dSYM 7685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7686 conftest$ac_exeext conftest.$ac_ext 7687 if test "$am_cv_func_iconv" != yes; then 7688 am_save_LIBS="$LIBS" 7689 LIBS="$LIBS $LIBICONV" 7690 cat >conftest.$ac_ext <<_ACEOF 7691/* confdefs.h. */ 7692_ACEOF 7693cat confdefs.h >>conftest.$ac_ext 7694cat >>conftest.$ac_ext <<_ACEOF 7695/* end confdefs.h. */ 7696#include <stdlib.h> 7697#include <iconv.h> 7698int 7699main () 7700{ 7701iconv_t cd = iconv_open("",""); 7702 iconv(cd,NULL,NULL,NULL,NULL); 7703 iconv_close(cd); 7704 ; 7705 return 0; 7706} 7707_ACEOF 7708rm -f conftest.$ac_objext conftest$ac_exeext 7709if { (ac_try="$ac_link" 7710case "(($ac_try" in 7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7712 *) ac_try_echo=$ac_try;; 7713esac 7714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7715$as_echo "$ac_try_echo") >&5 7716 (eval "$ac_link") 2>conftest.er1 7717 ac_status=$? 7718 grep -v '^ *+' conftest.er1 >conftest.err 7719 rm -f conftest.er1 7720 cat conftest.err >&5 7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); } && { 7723 test -z "$ac_c_werror_flag" || 7724 test ! -s conftest.err 7725 } && test -s conftest$ac_exeext && { 7726 test "$cross_compiling" = yes || 7727 $as_test_x conftest$ac_exeext 7728 }; then 7729 am_cv_lib_iconv=yes 7730 am_cv_func_iconv=yes 7731else 7732 $as_echo "$as_me: failed program was:" >&5 7733sed 's/^/| /' conftest.$ac_ext >&5 7734 7735 7736fi 7737 7738rm -rf conftest.dSYM 7739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7740 conftest$ac_exeext conftest.$ac_ext 7741 LIBS="$am_save_LIBS" 7742 fi 7743 7744fi 7745{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 7746$as_echo "$am_cv_func_iconv" >&6; } 7747 if test "$am_cv_func_iconv" = yes; then 7748 7749cat >>confdefs.h <<\_ACEOF 7750#define HAVE_ICONV 1 7751_ACEOF 7752 7753 fi 7754 if test "$am_cv_lib_iconv" = yes; then 7755 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 7756$as_echo_n "checking how to link with libiconv... " >&6; } 7757 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 7758$as_echo "$LIBICONV" >&6; } 7759 else 7760 CPPFLAGS="$am_save_CPPFLAGS" 7761 LIBICONV= 7762 LTLIBICONV= 7763 fi 7764 7765 7766 7767 if test "$am_cv_func_iconv" = yes; then 7768 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 7769$as_echo_n "checking for iconv declaration... " >&6; } 7770 if test "${am_cv_proto_iconv+set}" = set; then 7771 $as_echo_n "(cached) " >&6 7772else 7773 7774 cat >conftest.$ac_ext <<_ACEOF 7775/* confdefs.h. */ 7776_ACEOF 7777cat confdefs.h >>conftest.$ac_ext 7778cat >>conftest.$ac_ext <<_ACEOF 7779/* end confdefs.h. */ 7780 7781#include <stdlib.h> 7782#include <iconv.h> 7783extern 7784#ifdef __cplusplus 7785"C" 7786#endif 7787#if defined(__STDC__) || defined(__cplusplus) 7788size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7789#else 7790size_t iconv(); 7791#endif 7792 7793int 7794main () 7795{ 7796 7797 ; 7798 return 0; 7799} 7800_ACEOF 7801rm -f conftest.$ac_objext 7802if { (ac_try="$ac_compile" 7803case "(($ac_try" in 7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7805 *) ac_try_echo=$ac_try;; 7806esac 7807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7808$as_echo "$ac_try_echo") >&5 7809 (eval "$ac_compile") 2>conftest.er1 7810 ac_status=$? 7811 grep -v '^ *+' conftest.er1 >conftest.err 7812 rm -f conftest.er1 7813 cat conftest.err >&5 7814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); } && { 7816 test -z "$ac_c_werror_flag" || 7817 test ! -s conftest.err 7818 } && test -s conftest.$ac_objext; then 7819 am_cv_proto_iconv_arg1="" 7820else 7821 $as_echo "$as_me: failed program was:" >&5 7822sed 's/^/| /' conftest.$ac_ext >&5 7823 7824 am_cv_proto_iconv_arg1="const" 7825fi 7826 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7829fi 7830 7831 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7832 { $as_echo "$as_me:$LINENO: result: ${ac_t:- 7833 }$am_cv_proto_iconv" >&5 7834$as_echo "${ac_t:- 7835 }$am_cv_proto_iconv" >&6; } 7836 7837cat >>confdefs.h <<_ACEOF 7838#define ICONV_CONST $am_cv_proto_iconv_arg1 7839_ACEOF 7840 7841 fi 7842 7843 7844 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 7845$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 7846if test "${am_cv_langinfo_codeset+set}" = set; then 7847 $as_echo_n "(cached) " >&6 7848else 7849 cat >conftest.$ac_ext <<_ACEOF 7850/* confdefs.h. */ 7851_ACEOF 7852cat confdefs.h >>conftest.$ac_ext 7853cat >>conftest.$ac_ext <<_ACEOF 7854/* end confdefs.h. */ 7855#include <langinfo.h> 7856int 7857main () 7858{ 7859char* cs = nl_langinfo(CODESET); 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864rm -f conftest.$ac_objext conftest$ac_exeext 7865if { (ac_try="$ac_link" 7866case "(($ac_try" in 7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7868 *) ac_try_echo=$ac_try;; 7869esac 7870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7871$as_echo "$ac_try_echo") >&5 7872 (eval "$ac_link") 2>conftest.er1 7873 ac_status=$? 7874 grep -v '^ *+' conftest.er1 >conftest.err 7875 rm -f conftest.er1 7876 cat conftest.err >&5 7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); } && { 7879 test -z "$ac_c_werror_flag" || 7880 test ! -s conftest.err 7881 } && test -s conftest$ac_exeext && { 7882 test "$cross_compiling" = yes || 7883 $as_test_x conftest$ac_exeext 7884 }; then 7885 am_cv_langinfo_codeset=yes 7886else 7887 $as_echo "$as_me: failed program was:" >&5 7888sed 's/^/| /' conftest.$ac_ext >&5 7889 7890 am_cv_langinfo_codeset=no 7891fi 7892 7893rm -rf conftest.dSYM 7894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7895 conftest$ac_exeext conftest.$ac_ext 7896 7897fi 7898{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 7899$as_echo "$am_cv_langinfo_codeset" >&6; } 7900 if test $am_cv_langinfo_codeset = yes; then 7901 7902cat >>confdefs.h <<\_ACEOF 7903#define HAVE_LANGINFO_CODESET 1 7904_ACEOF 7905 7906 fi 7907 7908 7909 sr_find_locale_charset=yes 7910 if test $am_cv_langinfo_codeset = yes; then 7911 sr_find_locale_charset=no 7912 fi 7913 if test $sr_find_locale_charset = yes; then 7914 { $as_echo "$as_me:$LINENO: checking for locale_charset in -lcharset" >&5 7915$as_echo_n "checking for locale_charset in -lcharset... " >&6; } 7916if test "${ac_cv_lib_charset_locale_charset+set}" = set; then 7917 $as_echo_n "(cached) " >&6 7918else 7919 ac_check_lib_save_LIBS=$LIBS 7920LIBS="-lcharset $LIBS" 7921cat >conftest.$ac_ext <<_ACEOF 7922/* confdefs.h. */ 7923_ACEOF 7924cat confdefs.h >>conftest.$ac_ext 7925cat >>conftest.$ac_ext <<_ACEOF 7926/* end confdefs.h. */ 7927 7928/* Override any GCC internal prototype to avoid an error. 7929 Use char because int might match the return type of a GCC 7930 builtin and then its argument prototype would still apply. */ 7931#ifdef __cplusplus 7932extern "C" 7933#endif 7934char locale_charset (); 7935int 7936main () 7937{ 7938return locale_charset (); 7939 ; 7940 return 0; 7941} 7942_ACEOF 7943rm -f conftest.$ac_objext conftest$ac_exeext 7944if { (ac_try="$ac_link" 7945case "(($ac_try" in 7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7947 *) ac_try_echo=$ac_try;; 7948esac 7949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7950$as_echo "$ac_try_echo") >&5 7951 (eval "$ac_link") 2>conftest.er1 7952 ac_status=$? 7953 grep -v '^ *+' conftest.er1 >conftest.err 7954 rm -f conftest.er1 7955 cat conftest.err >&5 7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); } && { 7958 test -z "$ac_c_werror_flag" || 7959 test ! -s conftest.err 7960 } && test -s conftest$ac_exeext && { 7961 test "$cross_compiling" = yes || 7962 $as_test_x conftest$ac_exeext 7963 }; then 7964 ac_cv_lib_charset_locale_charset=yes 7965else 7966 $as_echo "$as_me: failed program was:" >&5 7967sed 's/^/| /' conftest.$ac_ext >&5 7968 7969 ac_cv_lib_charset_locale_charset=no 7970fi 7971 7972rm -rf conftest.dSYM 7973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7974 conftest$ac_exeext conftest.$ac_ext 7975LIBS=$ac_check_lib_save_LIBS 7976fi 7977{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_charset_locale_charset" >&5 7978$as_echo "$ac_cv_lib_charset_locale_charset" >&6; } 7979if test "x$ac_cv_lib_charset_locale_charset" = x""yes; then 7980 sr_find_locale_charset=yes 7981else 7982 sr_find_locale_charset=no 7983fi 7984 7985 fi 7986 if test $sr_find_locale_charset = yes; then 7987 { $as_echo "$as_me:$LINENO: checking whether locale_charset is declared" >&5 7988$as_echo_n "checking whether locale_charset is declared... " >&6; } 7989if test "${ac_cv_have_decl_locale_charset+set}" = set; then 7990 $as_echo_n "(cached) " >&6 7991else 7992 cat >conftest.$ac_ext <<_ACEOF 7993/* confdefs.h. */ 7994_ACEOF 7995cat confdefs.h >>conftest.$ac_ext 7996cat >>conftest.$ac_ext <<_ACEOF 7997/* end confdefs.h. */ 7998#include <localcharset.h> 7999 8000int 8001main () 8002{ 8003#ifndef locale_charset 8004 (void) locale_charset; 8005#endif 8006 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011rm -f conftest.$ac_objext 8012if { (ac_try="$ac_compile" 8013case "(($ac_try" in 8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8015 *) ac_try_echo=$ac_try;; 8016esac 8017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8018$as_echo "$ac_try_echo") >&5 8019 (eval "$ac_compile") 2>conftest.er1 8020 ac_status=$? 8021 grep -v '^ *+' conftest.er1 >conftest.err 8022 rm -f conftest.er1 8023 cat conftest.err >&5 8024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 (exit $ac_status); } && { 8026 test -z "$ac_c_werror_flag" || 8027 test ! -s conftest.err 8028 } && test -s conftest.$ac_objext; then 8029 ac_cv_have_decl_locale_charset=yes 8030else 8031 $as_echo "$as_me: failed program was:" >&5 8032sed 's/^/| /' conftest.$ac_ext >&5 8033 8034 ac_cv_have_decl_locale_charset=no 8035fi 8036 8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8038fi 8039{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_locale_charset" >&5 8040$as_echo "$ac_cv_have_decl_locale_charset" >&6; } 8041if test "x$ac_cv_have_decl_locale_charset" = x""yes; then 8042 sr_find_locale_charset=yes 8043else 8044 sr_find_locale_charset=no 8045fi 8046 8047 fi 8048 if test $sr_find_locale_charset = yes; then 8049 8050cat >>confdefs.h <<\_ACEOF 8051#define HAVE_LOCALE_CHARSET 1 8052_ACEOF 8053 8054 LIBCHARSET="-lcharset" 8055 8056 fi 8057 8058 8059have_wchar=no 8060if test "$ac_cv_type_wchar_t" = yes; then 8061if test "$ac_cv_func_mbrtowc" = yes; then 8062if test "$ac_cv_func_iswcntrl" = yes; then 8063if test "$am_cv_func_iconv" = yes; then 8064 have_wchar=yes 8065fi 8066fi 8067fi 8068fi 8069 8070 8071 8072use_included_argv=yes 8073if test "x$with_included_argv" != xyes; then 8074 { $as_echo "$as_me:$LINENO: checking for buildargv in -liberty" >&5 8075$as_echo_n "checking for buildargv in -liberty... " >&6; } 8076if test "${ac_cv_lib_iberty_buildargv+set}" = set; then 8077 $as_echo_n "(cached) " >&6 8078else 8079 ac_check_lib_save_LIBS=$LIBS 8080LIBS="-liberty $LIBS" 8081cat >conftest.$ac_ext <<_ACEOF 8082/* confdefs.h. */ 8083_ACEOF 8084cat confdefs.h >>conftest.$ac_ext 8085cat >>conftest.$ac_ext <<_ACEOF 8086/* end confdefs.h. */ 8087 8088/* Override any GCC internal prototype to avoid an error. 8089 Use char because int might match the return type of a GCC 8090 builtin and then its argument prototype would still apply. */ 8091#ifdef __cplusplus 8092extern "C" 8093#endif 8094char buildargv (); 8095int 8096main () 8097{ 8098return buildargv (); 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103rm -f conftest.$ac_objext conftest$ac_exeext 8104if { (ac_try="$ac_link" 8105case "(($ac_try" in 8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8107 *) ac_try_echo=$ac_try;; 8108esac 8109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8110$as_echo "$ac_try_echo") >&5 8111 (eval "$ac_link") 2>conftest.er1 8112 ac_status=$? 8113 grep -v '^ *+' conftest.er1 >conftest.err 8114 rm -f conftest.er1 8115 cat conftest.err >&5 8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8117 (exit $ac_status); } && { 8118 test -z "$ac_c_werror_flag" || 8119 test ! -s conftest.err 8120 } && test -s conftest$ac_exeext && { 8121 test "$cross_compiling" = yes || 8122 $as_test_x conftest$ac_exeext 8123 }; then 8124 ac_cv_lib_iberty_buildargv=yes 8125else 8126 $as_echo "$as_me: failed program was:" >&5 8127sed 's/^/| /' conftest.$ac_ext >&5 8128 8129 ac_cv_lib_iberty_buildargv=no 8130fi 8131 8132rm -rf conftest.dSYM 8133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8134 conftest$ac_exeext conftest.$ac_ext 8135LIBS=$ac_check_lib_save_LIBS 8136fi 8137{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_buildargv" >&5 8138$as_echo "$ac_cv_lib_iberty_buildargv" >&6; } 8139if test "x$ac_cv_lib_iberty_buildargv" = x""yes; then 8140 use_included_argv=no 8141else 8142 use_included_argv=yes 8143fi 8144 8145fi 8146 if test "$use_included_argv" = yes; then 8147 USE_INCLUDED_ARGV_TRUE= 8148 USE_INCLUDED_ARGV_FALSE='#' 8149else 8150 USE_INCLUDED_ARGV_TRUE='#' 8151 USE_INCLUDED_ARGV_FALSE= 8152fi 8153 8154if test "$use_included_argv" = yes; then 8155 LIBIBERTY_LIBS="" 8156 8157else 8158 LIBIBERTY_LIBS="-liberty" 8159 8160fi 8161 8162 8163{ $as_echo "$as_me:$LINENO: checking for NeAACDecDecode2 in -lfaad" >&5 8164$as_echo_n "checking for NeAACDecDecode2 in -lfaad... " >&6; } 8165if test "${ac_cv_lib_faad_NeAACDecDecode2+set}" = set; then 8166 $as_echo_n "(cached) " >&6 8167else 8168 ac_check_lib_save_LIBS=$LIBS 8169LIBS="-lfaad $LIBS" 8170cat >conftest.$ac_ext <<_ACEOF 8171/* confdefs.h. */ 8172_ACEOF 8173cat confdefs.h >>conftest.$ac_ext 8174cat >>conftest.$ac_ext <<_ACEOF 8175/* end confdefs.h. */ 8176 8177/* Override any GCC internal prototype to avoid an error. 8178 Use char because int might match the return type of a GCC 8179 builtin and then its argument prototype would still apply. */ 8180#ifdef __cplusplus 8181extern "C" 8182#endif 8183char NeAACDecDecode2 (); 8184int 8185main () 8186{ 8187return NeAACDecDecode2 (); 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192rm -f conftest.$ac_objext conftest$ac_exeext 8193if { (ac_try="$ac_link" 8194case "(($ac_try" in 8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8196 *) ac_try_echo=$ac_try;; 8197esac 8198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8199$as_echo "$ac_try_echo") >&5 8200 (eval "$ac_link") 2>conftest.er1 8201 ac_status=$? 8202 grep -v '^ *+' conftest.er1 >conftest.err 8203 rm -f conftest.er1 8204 cat conftest.err >&5 8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); } && { 8207 test -z "$ac_c_werror_flag" || 8208 test ! -s conftest.err 8209 } && test -s conftest$ac_exeext && { 8210 test "$cross_compiling" = yes || 8211 $as_test_x conftest$ac_exeext 8212 }; then 8213 ac_cv_lib_faad_NeAACDecDecode2=yes 8214else 8215 $as_echo "$as_me: failed program was:" >&5 8216sed 's/^/| /' conftest.$ac_ext >&5 8217 8218 ac_cv_lib_faad_NeAACDecDecode2=no 8219fi 8220 8221rm -rf conftest.dSYM 8222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8223 conftest$ac_exeext conftest.$ac_ext 8224LIBS=$ac_check_lib_save_LIBS 8225fi 8226{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_faad_NeAACDecDecode2" >&5 8227$as_echo "$ac_cv_lib_faad_NeAACDecDecode2" >&6; } 8228if test "x$ac_cv_lib_faad_NeAACDecDecode2" = x""yes; then 8229 8230 FAAD_LIBS="-lfaad" 8231 8232cat >>confdefs.h <<\_ACEOF 8233#define HAVE_FAAD 1 8234_ACEOF 8235 8236 8237else 8238 8239cat >>confdefs.h <<\_ACEOF 8240#define HAVE_FAAD 0 8241_ACEOF 8242 8243fi 8244 8245 8246 8247if test x$with_curses = xyes || test x$with_curses = x ; then 8248 found_curses=no 8249 if test x$found_curses = xno; then 8250 { $as_echo "$as_me:$LINENO: checking for initscr in -lncurses " >&5 8251$as_echo_n "checking for initscr in -lncurses ... " >&6; } 8252if test "${ac_cv_lib_ncurses__initscr+set}" = set; then 8253 $as_echo_n "(cached) " >&6 8254else 8255 ac_check_lib_save_LIBS=$LIBS 8256LIBS="-lncurses $LIBS" 8257cat >conftest.$ac_ext <<_ACEOF 8258/* confdefs.h. */ 8259_ACEOF 8260cat confdefs.h >>conftest.$ac_ext 8261cat >>conftest.$ac_ext <<_ACEOF 8262/* end confdefs.h. */ 8263 8264/* Override any GCC internal prototype to avoid an error. 8265 Use char because int might match the return type of a GCC 8266 builtin and then its argument prototype would still apply. */ 8267#ifdef __cplusplus 8268extern "C" 8269#endif 8270char initscr (); 8271int 8272main () 8273{ 8274return initscr (); 8275 ; 8276 return 0; 8277} 8278_ACEOF 8279rm -f conftest.$ac_objext conftest$ac_exeext 8280if { (ac_try="$ac_link" 8281case "(($ac_try" in 8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8283 *) ac_try_echo=$ac_try;; 8284esac 8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8286$as_echo "$ac_try_echo") >&5 8287 (eval "$ac_link") 2>conftest.er1 8288 ac_status=$? 8289 grep -v '^ *+' conftest.er1 >conftest.err 8290 rm -f conftest.er1 8291 cat conftest.err >&5 8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 (exit $ac_status); } && { 8294 test -z "$ac_c_werror_flag" || 8295 test ! -s conftest.err 8296 } && test -s conftest$ac_exeext && { 8297 test "$cross_compiling" = yes || 8298 $as_test_x conftest$ac_exeext 8299 }; then 8300 ac_cv_lib_ncurses__initscr=yes 8301else 8302 $as_echo "$as_me: failed program was:" >&5 8303sed 's/^/| /' conftest.$ac_ext >&5 8304 8305 ac_cv_lib_ncurses__initscr=no 8306fi 8307 8308rm -rf conftest.dSYM 8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8310 conftest$ac_exeext conftest.$ac_ext 8311LIBS=$ac_check_lib_save_LIBS 8312fi 8313{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses__initscr" >&5 8314$as_echo "$ac_cv_lib_ncurses__initscr" >&6; } 8315if test "x$ac_cv_lib_ncurses__initscr" = x""yes; then 8316 8317 found_curses=yes 8318 with_curses=ncurses 8319 8320fi 8321 8322 fi 8323 if test x$found_curses = xno; then 8324 { $as_echo "$as_me:$LINENO: checking for initscr in -lcurses " >&5 8325$as_echo_n "checking for initscr in -lcurses ... " >&6; } 8326if test "${ac_cv_lib_curses___initscr+set}" = set; then 8327 $as_echo_n "(cached) " >&6 8328else 8329 ac_check_lib_save_LIBS=$LIBS 8330LIBS="-lcurses $LIBS" 8331cat >conftest.$ac_ext <<_ACEOF 8332/* confdefs.h. */ 8333_ACEOF 8334cat confdefs.h >>conftest.$ac_ext 8335cat >>conftest.$ac_ext <<_ACEOF 8336/* end confdefs.h. */ 8337 8338/* Override any GCC internal prototype to avoid an error. 8339 Use char because int might match the return type of a GCC 8340 builtin and then its argument prototype would still apply. */ 8341#ifdef __cplusplus 8342extern "C" 8343#endif 8344char initscr (); 8345int 8346main () 8347{ 8348return initscr (); 8349 ; 8350 return 0; 8351} 8352_ACEOF 8353rm -f conftest.$ac_objext conftest$ac_exeext 8354if { (ac_try="$ac_link" 8355case "(($ac_try" in 8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8357 *) ac_try_echo=$ac_try;; 8358esac 8359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8360$as_echo "$ac_try_echo") >&5 8361 (eval "$ac_link") 2>conftest.er1 8362 ac_status=$? 8363 grep -v '^ *+' conftest.er1 >conftest.err 8364 rm -f conftest.er1 8365 cat conftest.err >&5 8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8367 (exit $ac_status); } && { 8368 test -z "$ac_c_werror_flag" || 8369 test ! -s conftest.err 8370 } && test -s conftest$ac_exeext && { 8371 test "$cross_compiling" = yes || 8372 $as_test_x conftest$ac_exeext 8373 }; then 8374 ac_cv_lib_curses___initscr=yes 8375else 8376 $as_echo "$as_me: failed program was:" >&5 8377sed 's/^/| /' conftest.$ac_ext >&5 8378 8379 ac_cv_lib_curses___initscr=no 8380fi 8381 8382rm -rf conftest.dSYM 8383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8384 conftest$ac_exeext conftest.$ac_ext 8385LIBS=$ac_check_lib_save_LIBS 8386fi 8387{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses___initscr" >&5 8388$as_echo "$ac_cv_lib_curses___initscr" >&6; } 8389if test "x$ac_cv_lib_curses___initscr" = x""yes; then 8390 8391 found_curses=yes 8392 with_curses=curses 8393 8394fi 8395 8396 fi 8397 if test x$found_curses = xno; then 8398 { $as_echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5 8399$as_echo_n "checking for initscr in -lncursesw... " >&6; } 8400if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then 8401 $as_echo_n "(cached) " >&6 8402else 8403 ac_check_lib_save_LIBS=$LIBS 8404LIBS="-lncursesw $LIBS" 8405cat >conftest.$ac_ext <<_ACEOF 8406/* confdefs.h. */ 8407_ACEOF 8408cat confdefs.h >>conftest.$ac_ext 8409cat >>conftest.$ac_ext <<_ACEOF 8410/* end confdefs.h. */ 8411 8412/* Override any GCC internal prototype to avoid an error. 8413 Use char because int might match the return type of a GCC 8414 builtin and then its argument prototype would still apply. */ 8415#ifdef __cplusplus 8416extern "C" 8417#endif 8418char initscr (); 8419int 8420main () 8421{ 8422return initscr (); 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427rm -f conftest.$ac_objext conftest$ac_exeext 8428if { (ac_try="$ac_link" 8429case "(($ac_try" in 8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8431 *) ac_try_echo=$ac_try;; 8432esac 8433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8434$as_echo "$ac_try_echo") >&5 8435 (eval "$ac_link") 2>conftest.er1 8436 ac_status=$? 8437 grep -v '^ *+' conftest.er1 >conftest.err 8438 rm -f conftest.er1 8439 cat conftest.err >&5 8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 (exit $ac_status); } && { 8442 test -z "$ac_c_werror_flag" || 8443 test ! -s conftest.err 8444 } && test -s conftest$ac_exeext && { 8445 test "$cross_compiling" = yes || 8446 $as_test_x conftest$ac_exeext 8447 }; then 8448 ac_cv_lib_ncursesw_initscr=yes 8449else 8450 $as_echo "$as_me: failed program was:" >&5 8451sed 's/^/| /' conftest.$ac_ext >&5 8452 8453 ac_cv_lib_ncursesw_initscr=no 8454fi 8455 8456rm -rf conftest.dSYM 8457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8458 conftest$ac_exeext conftest.$ac_ext 8459LIBS=$ac_check_lib_save_LIBS 8460fi 8461{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5 8462$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } 8463if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then 8464 8465 found_curses=yes 8466 with_curses=ncursesw 8467 8468fi 8469 8470 fi 8471 if test x$found_curses = xno; then 8472 { $as_echo "$as_me:$LINENO: checking for initscr in -lpdcurses" >&5 8473$as_echo_n "checking for initscr in -lpdcurses... " >&6; } 8474if test "${ac_cv_lib_pdcurses_initscr+set}" = set; then 8475 $as_echo_n "(cached) " >&6 8476else 8477 ac_check_lib_save_LIBS=$LIBS 8478LIBS="-lpdcurses $LIBS" 8479cat >conftest.$ac_ext <<_ACEOF 8480/* confdefs.h. */ 8481_ACEOF 8482cat confdefs.h >>conftest.$ac_ext 8483cat >>conftest.$ac_ext <<_ACEOF 8484/* end confdefs.h. */ 8485 8486/* Override any GCC internal prototype to avoid an error. 8487 Use char because int might match the return type of a GCC 8488 builtin and then its argument prototype would still apply. */ 8489#ifdef __cplusplus 8490extern "C" 8491#endif 8492char initscr (); 8493int 8494main () 8495{ 8496return initscr (); 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501rm -f conftest.$ac_objext conftest$ac_exeext 8502if { (ac_try="$ac_link" 8503case "(($ac_try" in 8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8505 *) ac_try_echo=$ac_try;; 8506esac 8507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8508$as_echo "$ac_try_echo") >&5 8509 (eval "$ac_link") 2>conftest.er1 8510 ac_status=$? 8511 grep -v '^ *+' conftest.er1 >conftest.err 8512 rm -f conftest.er1 8513 cat conftest.err >&5 8514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); } && { 8516 test -z "$ac_c_werror_flag" || 8517 test ! -s conftest.err 8518 } && test -s conftest$ac_exeext && { 8519 test "$cross_compiling" = yes || 8520 $as_test_x conftest$ac_exeext 8521 }; then 8522 ac_cv_lib_pdcurses_initscr=yes 8523else 8524 $as_echo "$as_me: failed program was:" >&5 8525sed 's/^/| /' conftest.$ac_ext >&5 8526 8527 ac_cv_lib_pdcurses_initscr=no 8528fi 8529 8530rm -rf conftest.dSYM 8531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8532 conftest$ac_exeext conftest.$ac_ext 8533LIBS=$ac_check_lib_save_LIBS 8534fi 8535{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_initscr" >&5 8536$as_echo "$ac_cv_lib_pdcurses_initscr" >&6; } 8537if test "x$ac_cv_lib_pdcurses_initscr" = x""yes; then 8538 8539 found_curses=yes 8540 with_curses=pdcurses 8541 8542fi 8543 8544 fi 8545 if test x$found_curses = xno; then 8546 with_curses=no 8547 fi 8548fi 8549 8550case x$with_curses in 8551xcurses) 8552 8553 8554# Check whether --with-curses-dir was given. 8555if test "${with_curses_dir+set}" = set; then 8556 withval=$with_curses_dir; 8557if test "x$prefix" != xNONE; then 8558 cf_path_syntax="$prefix" 8559else 8560 cf_path_syntax="$ac_default_prefix" 8561fi 8562 8563case ".$withval" in #(vi 8564.\$\(*\)*|.\'*\'*) #(vi 8565 ;; 8566..|./*|.\\*) #(vi 8567 ;; 8568.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8569 ;; 8570.\${*prefix}*) #(vi 8571 eval withval="$withval" 8572 case ".$withval" in #(vi 8573 .NONE/*) 8574 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8575 ;; 8576 esac 8577 ;; #(vi 8578.no|.NONE/*) 8579 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8580 ;; 8581*) 8582 { { $as_echo "$as_me:$LINENO: error: expected a pathname, not \"$withval\"" >&5 8583$as_echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 8584 { (exit 1); exit 1; }; } 8585 ;; 8586esac 8587 8588 cf_cv_curses_dir=$withval 8589else 8590 cf_cv_curses_dir=no 8591fi 8592 8593 8594 { $as_echo "$as_me:$LINENO: Request for curses" >&5 8595$as_echo "$as_me: Request for curses" >&6;} 8596 ;; 8597xncurses) 8598 8599 8600# Check whether --with-curses-dir was given. 8601if test "${with_curses_dir+set}" = set; then 8602 withval=$with_curses_dir; 8603if test "x$prefix" != xNONE; then 8604 cf_path_syntax="$prefix" 8605else 8606 cf_path_syntax="$ac_default_prefix" 8607fi 8608 8609case ".$withval" in #(vi 8610.\$\(*\)*|.\'*\'*) #(vi 8611 ;; 8612..|./*|.\\*) #(vi 8613 ;; 8614.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8615 ;; 8616.\${*prefix}*) #(vi 8617 eval withval="$withval" 8618 case ".$withval" in #(vi 8619 .NONE/*) 8620 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8621 ;; 8622 esac 8623 ;; #(vi 8624.no|.NONE/*) 8625 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8626 ;; 8627*) 8628 { { $as_echo "$as_me:$LINENO: error: expected a pathname, not \"$withval\"" >&5 8629$as_echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 8630 { (exit 1); exit 1; }; } 8631 ;; 8632esac 8633 8634 cf_cv_curses_dir=$withval 8635else 8636 cf_cv_curses_dir=no 8637fi 8638 8639 8640 { $as_echo "$as_me:$LINENO: Request for ncurses" >&5 8641$as_echo "$as_me: Request for ncurses" >&6;} 8642 ;; 8643xncursesw) 8644 8645 8646# Check whether --with-curses-dir was given. 8647if test "${with_curses_dir+set}" = set; then 8648 withval=$with_curses_dir; 8649if test "x$prefix" != xNONE; then 8650 cf_path_syntax="$prefix" 8651else 8652 cf_path_syntax="$ac_default_prefix" 8653fi 8654 8655case ".$withval" in #(vi 8656.\$\(*\)*|.\'*\'*) #(vi 8657 ;; 8658..|./*|.\\*) #(vi 8659 ;; 8660.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8661 ;; 8662.\${*prefix}*) #(vi 8663 eval withval="$withval" 8664 case ".$withval" in #(vi 8665 .NONE/*) 8666 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8667 ;; 8668 esac 8669 ;; #(vi 8670.no|.NONE/*) 8671 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8672 ;; 8673*) 8674 { { $as_echo "$as_me:$LINENO: error: expected a pathname, not \"$withval\"" >&5 8675$as_echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 8676 { (exit 1); exit 1; }; } 8677 ;; 8678esac 8679 8680 cf_cv_curses_dir=$withval 8681else 8682 cf_cv_curses_dir=no 8683fi 8684 8685 8686 { $as_echo "$as_me:$LINENO: Request for ncursesw" >&5 8687$as_echo "$as_me: Request for ncursesw" >&6;} 8688 ;; 8689xpdcurses) 8690 { $as_echo "$as_me:$LINENO: Request for pdncurses" >&5 8691$as_echo "$as_me: Request for pdncurses" >&6;} 8692 ;; 8693xno) 8694 { $as_echo "$as_me:$LINENO: Request no curses" >&5 8695$as_echo "$as_me: Request no curses" >&6;} 8696 ;; 8697esac 8698 8699 8700 8701 if test x$use_cdk != xno; then 8702 WANT_CSTREAMRIPPER_TRUE= 8703 WANT_CSTREAMRIPPER_FALSE='#' 8704else 8705 WANT_CSTREAMRIPPER_TRUE='#' 8706 WANT_CSTREAMRIPPER_FALSE= 8707fi 8708 8709 8710 8711 8712 8713 8714sr_have_ogg=no 8715 8716# Check whether --with-ogg was given. 8717if test "${with_ogg+set}" = set; then 8718 withval=$with_ogg; ogg_prefix="$withval" 8719else 8720 ogg_prefix="" 8721fi 8722 8723 8724# Check whether --with-ogg-libraries was given. 8725if test "${with_ogg_libraries+set}" = set; then 8726 withval=$with_ogg_libraries; ogg_libraries="$withval" 8727else 8728 ogg_libraries="" 8729fi 8730 8731 8732# Check whether --with-ogg-includes was given. 8733if test "${with_ogg_includes+set}" = set; then 8734 withval=$with_ogg_includes; ogg_includes="$withval" 8735else 8736 ogg_includes="" 8737fi 8738 8739# Check whether --enable-oggtest was given. 8740if test "${enable_oggtest+set}" = set; then 8741 enableval=$enable_oggtest; 8742else 8743 enable_oggtest=yes 8744fi 8745 8746 8747 if test "x$ogg_libraries" != "x" ; then 8748 OGG_LIBS="-L$ogg_libraries" 8749 elif test "x$ogg_prefix" != "x" ; then 8750 OGG_LIBS="-L$ogg_prefix/lib" 8751 elif test "x$prefix" != "xNONE" ; then 8752 OGG_LIBS="-L$prefix/lib" 8753 fi 8754 8755 OGG_LIBS="$OGG_LIBS -logg" 8756 8757 if test "x$ogg_includes" != "x" ; then 8758 OGG_CFLAGS="-I$ogg_includes" 8759 elif test "x$ogg_prefix" != "x" ; then 8760 OGG_CFLAGS="-I$ogg_prefix/include" 8761 elif test "x$prefix" != "xNONE"; then 8762 OGG_CFLAGS="-I$prefix/include" 8763 fi 8764 8765 { $as_echo "$as_me:$LINENO: checking for Ogg" >&5 8766$as_echo_n "checking for Ogg... " >&6; } 8767 no_ogg="" 8768 8769 8770 if test "x$enable_oggtest" = "xyes" ; then 8771 ac_save_CFLAGS="$CFLAGS" 8772 ac_save_LIBS="$LIBS" 8773 CFLAGS="$CFLAGS $OGG_CFLAGS" 8774 LIBS="$LIBS $OGG_LIBS" 8775 rm -f conf.oggtest 8776 if test "$cross_compiling" = yes; then 8777 echo $ac_n "cross compiling; assumed OK... $ac_c" 8778else 8779 cat >conftest.$ac_ext <<_ACEOF 8780/* confdefs.h. */ 8781_ACEOF 8782cat confdefs.h >>conftest.$ac_ext 8783cat >>conftest.$ac_ext <<_ACEOF 8784/* end confdefs.h. */ 8785 8786#include <stdio.h> 8787#include <stdlib.h> 8788#include <string.h> 8789#include <ogg/ogg.h> 8790 8791int main () 8792{ 8793 system("touch conf.oggtest"); 8794 return 0; 8795} 8796 8797 8798_ACEOF 8799rm -f conftest$ac_exeext 8800if { (ac_try="$ac_link" 8801case "(($ac_try" in 8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8803 *) ac_try_echo=$ac_try;; 8804esac 8805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8806$as_echo "$ac_try_echo") >&5 8807 (eval "$ac_link") 2>&5 8808 ac_status=$? 8809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8811 { (case "(($ac_try" in 8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8813 *) ac_try_echo=$ac_try;; 8814esac 8815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8816$as_echo "$ac_try_echo") >&5 8817 (eval "$ac_try") 2>&5 8818 ac_status=$? 8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8820 (exit $ac_status); }; }; then 8821 : 8822else 8823 $as_echo "$as_me: program exited with status $ac_status" >&5 8824$as_echo "$as_me: failed program was:" >&5 8825sed 's/^/| /' conftest.$ac_ext >&5 8826 8827( exit $ac_status ) 8828no_ogg=yes 8829fi 8830rm -rf conftest.dSYM 8831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8832fi 8833 8834 8835 CFLAGS="$ac_save_CFLAGS" 8836 LIBS="$ac_save_LIBS" 8837 fi 8838 8839 if test "x$no_ogg" = "x" ; then 8840 { $as_echo "$as_me:$LINENO: result: yes" >&5 8841$as_echo "yes" >&6; } 8842 8843 8844# Check whether --with-vorbis was given. 8845if test "${with_vorbis+set}" = set; then 8846 withval=$with_vorbis; vorbis_prefix="$withval" 8847else 8848 vorbis_prefix="" 8849fi 8850 8851 8852# Check whether --with-vorbis-libraries was given. 8853if test "${with_vorbis_libraries+set}" = set; then 8854 withval=$with_vorbis_libraries; vorbis_libraries="$withval" 8855else 8856 vorbis_libraries="" 8857fi 8858 8859 8860# Check whether --with-vorbis-includes was given. 8861if test "${with_vorbis_includes+set}" = set; then 8862 withval=$with_vorbis_includes; vorbis_includes="$withval" 8863else 8864 vorbis_includes="" 8865fi 8866 8867# Check whether --enable-vorbistest was given. 8868if test "${enable_vorbistest+set}" = set; then 8869 enableval=$enable_vorbistest; 8870else 8871 enable_vorbistest=yes 8872fi 8873 8874 8875 if test "x$vorbis_libraries" != "x" ; then 8876 VORBIS_LIBS="-L$vorbis_libraries" 8877 elif test "x$vorbis_prefix" != "x" ; then 8878 VORBIS_LIBS="-L$vorbis_prefix/lib" 8879 elif test "x$prefix" != "xNONE"; then 8880 VORBIS_LIBS="-L$prefix/lib" 8881 fi 8882 8883 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" 8884 VORBISFILE_LIBS="-lvorbisfile" 8885 VORBISENC_LIBS="-lvorbisenc" 8886 8887 if test "x$vorbis_includes" != "x" ; then 8888 VORBIS_CFLAGS="-I$vorbis_includes" 8889 elif test "x$vorbis_prefix" != "x" ; then 8890 VORBIS_CFLAGS="-I$vorbis_prefix/include" 8891 elif test "x$prefix" != "xNONE"; then 8892 VORBIS_CFLAGS="-I$prefix/include" 8893 fi 8894 8895 8896 { $as_echo "$as_me:$LINENO: checking for Vorbis" >&5 8897$as_echo_n "checking for Vorbis... " >&6; } 8898 no_vorbis="" 8899 8900 8901 if test "x$enable_vorbistest" = "xyes" ; then 8902 ac_save_CFLAGS="$CFLAGS" 8903 ac_save_LIBS="$LIBS" 8904 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" 8905 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" 8906 rm -f conf.vorbistest 8907 if test "$cross_compiling" = yes; then 8908 echo $ac_n "cross compiling; assumed OK... $ac_c" 8909else 8910 cat >conftest.$ac_ext <<_ACEOF 8911/* confdefs.h. */ 8912_ACEOF 8913cat confdefs.h >>conftest.$ac_ext 8914cat >>conftest.$ac_ext <<_ACEOF 8915/* end confdefs.h. */ 8916 8917#include <stdio.h> 8918#include <stdlib.h> 8919#include <string.h> 8920#include <vorbis/codec.h> 8921#include <vorbis/vorbisenc.h> 8922 8923int main () 8924{ 8925 vorbis_block vb; 8926 vorbis_dsp_state vd; 8927 vorbis_info vi; 8928 8929 vorbis_info_init (&vi); 8930 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); 8931 vorbis_analysis_init (&vd, &vi); 8932 vorbis_block_init (&vd, &vb); 8933 /* this function was added in 1.0rc3, so this is what we're testing for */ 8934 vorbis_bitrate_addblock (&vb); 8935 8936 system("touch conf.vorbistest"); 8937 return 0; 8938} 8939 8940 8941_ACEOF 8942rm -f conftest$ac_exeext 8943if { (ac_try="$ac_link" 8944case "(($ac_try" in 8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8946 *) ac_try_echo=$ac_try;; 8947esac 8948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8949$as_echo "$ac_try_echo") >&5 8950 (eval "$ac_link") 2>&5 8951 ac_status=$? 8952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8954 { (case "(($ac_try" in 8955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8956 *) ac_try_echo=$ac_try;; 8957esac 8958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8959$as_echo "$ac_try_echo") >&5 8960 (eval "$ac_try") 2>&5 8961 ac_status=$? 8962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8963 (exit $ac_status); }; }; then 8964 : 8965else 8966 $as_echo "$as_me: program exited with status $ac_status" >&5 8967$as_echo "$as_me: failed program was:" >&5 8968sed 's/^/| /' conftest.$ac_ext >&5 8969 8970( exit $ac_status ) 8971no_vorbis=yes 8972fi 8973rm -rf conftest.dSYM 8974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8975fi 8976 8977 8978 CFLAGS="$ac_save_CFLAGS" 8979 LIBS="$ac_save_LIBS" 8980 fi 8981 8982 if test "x$no_vorbis" = "x" ; then 8983 { $as_echo "$as_me:$LINENO: result: yes" >&5 8984$as_echo "yes" >&6; } 8985 8986 8987 8988 8989 8990 8991cat >>confdefs.h <<\_ACEOF 8992#define HAVE_OGG_VORBIS 1 8993_ACEOF 8994 8995 sr_have_ogg=yes 8996 8997 else 8998 { $as_echo "$as_me:$LINENO: result: no" >&5 8999$as_echo "no" >&6; } 9000 if test -f conf.vorbistest ; then 9001 : 9002 else 9003 echo "*** Could not run Vorbis test program, checking why..." 9004 CFLAGS="$CFLAGS $VORBIS_CFLAGS" 9005 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" 9006 cat >conftest.$ac_ext <<_ACEOF 9007/* confdefs.h. */ 9008_ACEOF 9009cat confdefs.h >>conftest.$ac_ext 9010cat >>conftest.$ac_ext <<_ACEOF 9011/* end confdefs.h. */ 9012 9013#include <stdio.h> 9014#include <vorbis/codec.h> 9015 9016int 9017main () 9018{ 9019 return 0; 9020 ; 9021 return 0; 9022} 9023_ACEOF 9024rm -f conftest.$ac_objext conftest$ac_exeext 9025if { (ac_try="$ac_link" 9026case "(($ac_try" in 9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9028 *) ac_try_echo=$ac_try;; 9029esac 9030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9031$as_echo "$ac_try_echo") >&5 9032 (eval "$ac_link") 2>conftest.er1 9033 ac_status=$? 9034 grep -v '^ *+' conftest.er1 >conftest.err 9035 rm -f conftest.er1 9036 cat conftest.err >&5 9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); } && { 9039 test -z "$ac_c_werror_flag" || 9040 test ! -s conftest.err 9041 } && test -s conftest$ac_exeext && { 9042 test "$cross_compiling" = yes || 9043 $as_test_x conftest$ac_exeext 9044 }; then 9045 echo "*** The test program compiled, but did not run. This usually means" 9046 echo "*** that the run-time linker is not finding Vorbis or finding the wrong" 9047 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" 9048 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 9049 echo "*** to the installed location Also, make sure you have run ldconfig if that" 9050 echo "*** is required on your system" 9051 echo "***" 9052 echo "*** If you have an old version installed, it is best to remove it, although" 9053 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 9054else 9055 $as_echo "$as_me: failed program was:" >&5 9056sed 's/^/| /' conftest.$ac_ext >&5 9057 9058 echo "*** The test program failed to compile or link. See the file config.log for the" 9059 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" 9060 echo "*** or that you have moved Vorbis since it was installed." 9061fi 9062 9063rm -rf conftest.dSYM 9064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9065 conftest$ac_exeext conftest.$ac_ext 9066 CFLAGS="$ac_save_CFLAGS" 9067 LIBS="$ac_save_LIBS" 9068 fi 9069 VORBIS_CFLAGS="" 9070 VORBIS_LIBS="" 9071 VORBISFILE_LIBS="" 9072 VORBISENC_LIBS="" 9073 9074cat >>confdefs.h <<\_ACEOF 9075#define HAVE_OGG_VORBIS 0 9076_ACEOF 9077 9078 fi 9079 9080 9081 9082 9083 rm -f conf.vorbistest 9084 9085 else 9086 { $as_echo "$as_me:$LINENO: result: no" >&5 9087$as_echo "no" >&6; } 9088 if test -f conf.oggtest ; then 9089 : 9090 else 9091 echo "*** Could not run Ogg test program, checking why..." 9092 CFLAGS="$CFLAGS $OGG_CFLAGS" 9093 LIBS="$LIBS $OGG_LIBS" 9094 cat >conftest.$ac_ext <<_ACEOF 9095/* confdefs.h. */ 9096_ACEOF 9097cat confdefs.h >>conftest.$ac_ext 9098cat >>conftest.$ac_ext <<_ACEOF 9099/* end confdefs.h. */ 9100 9101#include <stdio.h> 9102#include <ogg/ogg.h> 9103 9104int 9105main () 9106{ 9107 return 0; 9108 ; 9109 return 0; 9110} 9111_ACEOF 9112rm -f conftest.$ac_objext conftest$ac_exeext 9113if { (ac_try="$ac_link" 9114case "(($ac_try" in 9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9116 *) ac_try_echo=$ac_try;; 9117esac 9118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9119$as_echo "$ac_try_echo") >&5 9120 (eval "$ac_link") 2>conftest.er1 9121 ac_status=$? 9122 grep -v '^ *+' conftest.er1 >conftest.err 9123 rm -f conftest.er1 9124 cat conftest.err >&5 9125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9126 (exit $ac_status); } && { 9127 test -z "$ac_c_werror_flag" || 9128 test ! -s conftest.err 9129 } && test -s conftest$ac_exeext && { 9130 test "$cross_compiling" = yes || 9131 $as_test_x conftest$ac_exeext 9132 }; then 9133 echo "*** The test program compiled, but did not run. This usually means" 9134 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 9135 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 9136 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 9137 echo "*** to the installed location Also, make sure you have run ldconfig if that" 9138 echo "*** is required on your system" 9139 echo "***" 9140 echo "*** If you have an old version installed, it is best to remove it, although" 9141 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 9142else 9143 $as_echo "$as_me: failed program was:" >&5 9144sed 's/^/| /' conftest.$ac_ext >&5 9145 9146 echo "*** The test program failed to compile or link. See the file config.log for the" 9147 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 9148 echo "*** or that you have moved Ogg since it was installed." 9149fi 9150 9151rm -rf conftest.dSYM 9152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9153 conftest$ac_exeext conftest.$ac_ext 9154 CFLAGS="$ac_save_CFLAGS" 9155 LIBS="$ac_save_LIBS" 9156 fi 9157 OGG_CFLAGS="" 9158 OGG_LIBS="" 9159 9160cat >>confdefs.h <<\_ACEOF 9161#define HAVE_OGG_VORBIS 0 9162_ACEOF 9163 9164 9165 fi 9166 9167 9168 rm -f conf.oggtest 9169 9170 9171{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5 9172$as_echo_n "checking for sem_init... " >&6; } 9173if test "${ac_cv_func_sem_init+set}" = set; then 9174 $as_echo_n "(cached) " >&6 9175else 9176 cat >conftest.$ac_ext <<_ACEOF 9177/* confdefs.h. */ 9178_ACEOF 9179cat confdefs.h >>conftest.$ac_ext 9180cat >>conftest.$ac_ext <<_ACEOF 9181/* end confdefs.h. */ 9182/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. 9183 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9184#define sem_init innocuous_sem_init 9185 9186/* System header to define __stub macros and hopefully few prototypes, 9187 which can conflict with char sem_init (); below. 9188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9189 <limits.h> exists even on freestanding compilers. */ 9190 9191#ifdef __STDC__ 9192# include <limits.h> 9193#else 9194# include <assert.h> 9195#endif 9196 9197#undef sem_init 9198 9199/* Override any GCC internal prototype to avoid an error. 9200 Use char because int might match the return type of a GCC 9201 builtin and then its argument prototype would still apply. */ 9202#ifdef __cplusplus 9203extern "C" 9204#endif 9205char sem_init (); 9206/* The GNU C library defines this for functions which it implements 9207 to always fail with ENOSYS. Some functions are actually named 9208 something starting with __ and the normal name is an alias. */ 9209#if defined __stub_sem_init || defined __stub___sem_init 9210choke me 9211#endif 9212 9213int 9214main () 9215{ 9216return sem_init (); 9217 ; 9218 return 0; 9219} 9220_ACEOF 9221rm -f conftest.$ac_objext conftest$ac_exeext 9222if { (ac_try="$ac_link" 9223case "(($ac_try" in 9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9225 *) ac_try_echo=$ac_try;; 9226esac 9227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9228$as_echo "$ac_try_echo") >&5 9229 (eval "$ac_link") 2>conftest.er1 9230 ac_status=$? 9231 grep -v '^ *+' conftest.er1 >conftest.err 9232 rm -f conftest.er1 9233 cat conftest.err >&5 9234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); } && { 9236 test -z "$ac_c_werror_flag" || 9237 test ! -s conftest.err 9238 } && test -s conftest$ac_exeext && { 9239 test "$cross_compiling" = yes || 9240 $as_test_x conftest$ac_exeext 9241 }; then 9242 ac_cv_func_sem_init=yes 9243else 9244 $as_echo "$as_me: failed program was:" >&5 9245sed 's/^/| /' conftest.$ac_ext >&5 9246 9247 ac_cv_func_sem_init=no 9248fi 9249 9250rm -rf conftest.dSYM 9251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9252 conftest$ac_exeext conftest.$ac_ext 9253fi 9254{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 9255$as_echo "$ac_cv_func_sem_init" >&6; } 9256if test "x$ac_cv_func_sem_init" = x""yes; then 9257 : 9258else 9259 9260{ $as_echo "$as_me:$LINENO: checking for sem_init in -lsem" >&5 9261$as_echo_n "checking for sem_init in -lsem... " >&6; } 9262if test "${ac_cv_lib_sem_sem_init+set}" = set; then 9263 $as_echo_n "(cached) " >&6 9264else 9265 ac_check_lib_save_LIBS=$LIBS 9266LIBS="-lsem $LIBS" 9267cat >conftest.$ac_ext <<_ACEOF 9268/* confdefs.h. */ 9269_ACEOF 9270cat confdefs.h >>conftest.$ac_ext 9271cat >>conftest.$ac_ext <<_ACEOF 9272/* end confdefs.h. */ 9273 9274/* Override any GCC internal prototype to avoid an error. 9275 Use char because int might match the return type of a GCC 9276 builtin and then its argument prototype would still apply. */ 9277#ifdef __cplusplus 9278extern "C" 9279#endif 9280char sem_init (); 9281int 9282main () 9283{ 9284return sem_init (); 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289rm -f conftest.$ac_objext conftest$ac_exeext 9290if { (ac_try="$ac_link" 9291case "(($ac_try" in 9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9293 *) ac_try_echo=$ac_try;; 9294esac 9295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9296$as_echo "$ac_try_echo") >&5 9297 (eval "$ac_link") 2>conftest.er1 9298 ac_status=$? 9299 grep -v '^ *+' conftest.er1 >conftest.err 9300 rm -f conftest.er1 9301 cat conftest.err >&5 9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } && { 9304 test -z "$ac_c_werror_flag" || 9305 test ! -s conftest.err 9306 } && test -s conftest$ac_exeext && { 9307 test "$cross_compiling" = yes || 9308 $as_test_x conftest$ac_exeext 9309 }; then 9310 ac_cv_lib_sem_sem_init=yes 9311else 9312 $as_echo "$as_me: failed program was:" >&5 9313sed 's/^/| /' conftest.$ac_ext >&5 9314 9315 ac_cv_lib_sem_sem_init=no 9316fi 9317 9318rm -rf conftest.dSYM 9319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9320 conftest$ac_exeext conftest.$ac_ext 9321LIBS=$ac_check_lib_save_LIBS 9322fi 9323{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sem_sem_init" >&5 9324$as_echo "$ac_cv_lib_sem_sem_init" >&6; } 9325if test "x$ac_cv_lib_sem_sem_init" = x""yes; then 9326 cat >>confdefs.h <<_ACEOF 9327#define HAVE_LIBSEM 1 9328_ACEOF 9329 9330 LIBS="-lsem $LIBS" 9331 9332fi 9333 9334fi 9335 9336{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5 9337$as_echo_n "checking for sem_init... " >&6; } 9338if test "${ac_cv_func_sem_init+set}" = set; then 9339 $as_echo_n "(cached) " >&6 9340else 9341 cat >conftest.$ac_ext <<_ACEOF 9342/* confdefs.h. */ 9343_ACEOF 9344cat confdefs.h >>conftest.$ac_ext 9345cat >>conftest.$ac_ext <<_ACEOF 9346/* end confdefs.h. */ 9347/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. 9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9349#define sem_init innocuous_sem_init 9350 9351/* System header to define __stub macros and hopefully few prototypes, 9352 which can conflict with char sem_init (); below. 9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9354 <limits.h> exists even on freestanding compilers. */ 9355 9356#ifdef __STDC__ 9357# include <limits.h> 9358#else 9359# include <assert.h> 9360#endif 9361 9362#undef sem_init 9363 9364/* Override any GCC internal prototype to avoid an error. 9365 Use char because int might match the return type of a GCC 9366 builtin and then its argument prototype would still apply. */ 9367#ifdef __cplusplus 9368extern "C" 9369#endif 9370char sem_init (); 9371/* The GNU C library defines this for functions which it implements 9372 to always fail with ENOSYS. Some functions are actually named 9373 something starting with __ and the normal name is an alias. */ 9374#if defined __stub_sem_init || defined __stub___sem_init 9375choke me 9376#endif 9377 9378int 9379main () 9380{ 9381return sem_init (); 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386rm -f conftest.$ac_objext conftest$ac_exeext 9387if { (ac_try="$ac_link" 9388case "(($ac_try" in 9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9390 *) ac_try_echo=$ac_try;; 9391esac 9392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9393$as_echo "$ac_try_echo") >&5 9394 (eval "$ac_link") 2>conftest.er1 9395 ac_status=$? 9396 grep -v '^ *+' conftest.er1 >conftest.err 9397 rm -f conftest.er1 9398 cat conftest.err >&5 9399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 (exit $ac_status); } && { 9401 test -z "$ac_c_werror_flag" || 9402 test ! -s conftest.err 9403 } && test -s conftest$ac_exeext && { 9404 test "$cross_compiling" = yes || 9405 $as_test_x conftest$ac_exeext 9406 }; then 9407 ac_cv_func_sem_init=yes 9408else 9409 $as_echo "$as_me: failed program was:" >&5 9410sed 's/^/| /' conftest.$ac_ext >&5 9411 9412 ac_cv_func_sem_init=no 9413fi 9414 9415rm -rf conftest.dSYM 9416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9417 conftest$ac_exeext conftest.$ac_ext 9418fi 9419{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 9420$as_echo "$ac_cv_func_sem_init" >&6; } 9421if test "x$ac_cv_func_sem_init" = x""yes; then 9422 : 9423else 9424 9425{ $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 9426$as_echo_n "checking for sem_init in -lrt... " >&6; } 9427if test "${ac_cv_lib_rt_sem_init+set}" = set; then 9428 $as_echo_n "(cached) " >&6 9429else 9430 ac_check_lib_save_LIBS=$LIBS 9431LIBS="-lrt $LIBS" 9432cat >conftest.$ac_ext <<_ACEOF 9433/* confdefs.h. */ 9434_ACEOF 9435cat confdefs.h >>conftest.$ac_ext 9436cat >>conftest.$ac_ext <<_ACEOF 9437/* end confdefs.h. */ 9438 9439/* Override any GCC internal prototype to avoid an error. 9440 Use char because int might match the return type of a GCC 9441 builtin and then its argument prototype would still apply. */ 9442#ifdef __cplusplus 9443extern "C" 9444#endif 9445char sem_init (); 9446int 9447main () 9448{ 9449return sem_init (); 9450 ; 9451 return 0; 9452} 9453_ACEOF 9454rm -f conftest.$ac_objext conftest$ac_exeext 9455if { (ac_try="$ac_link" 9456case "(($ac_try" in 9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9458 *) ac_try_echo=$ac_try;; 9459esac 9460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9461$as_echo "$ac_try_echo") >&5 9462 (eval "$ac_link") 2>conftest.er1 9463 ac_status=$? 9464 grep -v '^ *+' conftest.er1 >conftest.err 9465 rm -f conftest.er1 9466 cat conftest.err >&5 9467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); } && { 9469 test -z "$ac_c_werror_flag" || 9470 test ! -s conftest.err 9471 } && test -s conftest$ac_exeext && { 9472 test "$cross_compiling" = yes || 9473 $as_test_x conftest$ac_exeext 9474 }; then 9475 ac_cv_lib_rt_sem_init=yes 9476else 9477 $as_echo "$as_me: failed program was:" >&5 9478sed 's/^/| /' conftest.$ac_ext >&5 9479 9480 ac_cv_lib_rt_sem_init=no 9481fi 9482 9483rm -rf conftest.dSYM 9484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9485 conftest$ac_exeext conftest.$ac_ext 9486LIBS=$ac_check_lib_save_LIBS 9487fi 9488{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 9489$as_echo "$ac_cv_lib_rt_sem_init" >&6; } 9490if test "x$ac_cv_lib_rt_sem_init" = x""yes; then 9491 cat >>confdefs.h <<_ACEOF 9492#define HAVE_LIBRT 1 9493_ACEOF 9494 9495 LIBS="-lrt $LIBS" 9496 9497fi 9498 9499fi 9500 9501 9502 9503for ac_header in stdint.h 9504do 9505as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9508$as_echo_n "checking for $ac_header... " >&6; } 9509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9510 $as_echo_n "(cached) " >&6 9511fi 9512ac_res=`eval 'as_val=${'$as_ac_Header'} 9513 $as_echo "$as_val"'` 9514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9515$as_echo "$ac_res" >&6; } 9516else 9517 # Is the header compilable? 9518{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 9519$as_echo_n "checking $ac_header usability... " >&6; } 9520cat >conftest.$ac_ext <<_ACEOF 9521/* confdefs.h. */ 9522_ACEOF 9523cat confdefs.h >>conftest.$ac_ext 9524cat >>conftest.$ac_ext <<_ACEOF 9525/* end confdefs.h. */ 9526$ac_includes_default 9527#include <$ac_header> 9528_ACEOF 9529rm -f conftest.$ac_objext 9530if { (ac_try="$ac_compile" 9531case "(($ac_try" in 9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9533 *) ac_try_echo=$ac_try;; 9534esac 9535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9536$as_echo "$ac_try_echo") >&5 9537 (eval "$ac_compile") 2>conftest.er1 9538 ac_status=$? 9539 grep -v '^ *+' conftest.er1 >conftest.err 9540 rm -f conftest.er1 9541 cat conftest.err >&5 9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 (exit $ac_status); } && { 9544 test -z "$ac_c_werror_flag" || 9545 test ! -s conftest.err 9546 } && test -s conftest.$ac_objext; then 9547 ac_header_compiler=yes 9548else 9549 $as_echo "$as_me: failed program was:" >&5 9550sed 's/^/| /' conftest.$ac_ext >&5 9551 9552 ac_header_compiler=no 9553fi 9554 9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9557$as_echo "$ac_header_compiler" >&6; } 9558 9559# Is the header present? 9560{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 9561$as_echo_n "checking $ac_header presence... " >&6; } 9562cat >conftest.$ac_ext <<_ACEOF 9563/* confdefs.h. */ 9564_ACEOF 9565cat confdefs.h >>conftest.$ac_ext 9566cat >>conftest.$ac_ext <<_ACEOF 9567/* end confdefs.h. */ 9568#include <$ac_header> 9569_ACEOF 9570if { (ac_try="$ac_cpp conftest.$ac_ext" 9571case "(($ac_try" in 9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9573 *) ac_try_echo=$ac_try;; 9574esac 9575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9576$as_echo "$ac_try_echo") >&5 9577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9578 ac_status=$? 9579 grep -v '^ *+' conftest.er1 >conftest.err 9580 rm -f conftest.er1 9581 cat conftest.err >&5 9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); } >/dev/null && { 9584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9585 test ! -s conftest.err 9586 }; then 9587 ac_header_preproc=yes 9588else 9589 $as_echo "$as_me: failed program was:" >&5 9590sed 's/^/| /' conftest.$ac_ext >&5 9591 9592 ac_header_preproc=no 9593fi 9594 9595rm -f conftest.err conftest.$ac_ext 9596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9597$as_echo "$ac_header_preproc" >&6; } 9598 9599# So? What about this header? 9600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9601 yes:no: ) 9602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9603$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9605$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9606 ac_header_preproc=yes 9607 ;; 9608 no:yes:* ) 9609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9610$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9612$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9614$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9616$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9618$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9620$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9621 9622 ;; 9623esac 9624{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9625$as_echo_n "checking for $ac_header... " >&6; } 9626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9627 $as_echo_n "(cached) " >&6 9628else 9629 eval "$as_ac_Header=\$ac_header_preproc" 9630fi 9631ac_res=`eval 'as_val=${'$as_ac_Header'} 9632 $as_echo "$as_val"'` 9633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9634$as_echo "$ac_res" >&6; } 9635 9636fi 9637as_val=`eval 'as_val=${'$as_ac_Header'} 9638 $as_echo "$as_val"'` 9639 if test "x$as_val" = x""yes; then 9640 cat >>confdefs.h <<_ACEOF 9641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9642_ACEOF 9643 9644fi 9645 9646done 9647 9648 9649for ac_header in inttypes.h 9650do 9651as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9654$as_echo_n "checking for $ac_header... " >&6; } 9655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9656 $as_echo_n "(cached) " >&6 9657fi 9658ac_res=`eval 'as_val=${'$as_ac_Header'} 9659 $as_echo "$as_val"'` 9660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9661$as_echo "$ac_res" >&6; } 9662else 9663 # Is the header compilable? 9664{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 9665$as_echo_n "checking $ac_header usability... " >&6; } 9666cat >conftest.$ac_ext <<_ACEOF 9667/* confdefs.h. */ 9668_ACEOF 9669cat confdefs.h >>conftest.$ac_ext 9670cat >>conftest.$ac_ext <<_ACEOF 9671/* end confdefs.h. */ 9672$ac_includes_default 9673#include <$ac_header> 9674_ACEOF 9675rm -f conftest.$ac_objext 9676if { (ac_try="$ac_compile" 9677case "(($ac_try" in 9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9679 *) ac_try_echo=$ac_try;; 9680esac 9681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9682$as_echo "$ac_try_echo") >&5 9683 (eval "$ac_compile") 2>conftest.er1 9684 ac_status=$? 9685 grep -v '^ *+' conftest.er1 >conftest.err 9686 rm -f conftest.er1 9687 cat conftest.err >&5 9688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9689 (exit $ac_status); } && { 9690 test -z "$ac_c_werror_flag" || 9691 test ! -s conftest.err 9692 } && test -s conftest.$ac_objext; then 9693 ac_header_compiler=yes 9694else 9695 $as_echo "$as_me: failed program was:" >&5 9696sed 's/^/| /' conftest.$ac_ext >&5 9697 9698 ac_header_compiler=no 9699fi 9700 9701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9702{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9703$as_echo "$ac_header_compiler" >&6; } 9704 9705# Is the header present? 9706{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 9707$as_echo_n "checking $ac_header presence... " >&6; } 9708cat >conftest.$ac_ext <<_ACEOF 9709/* confdefs.h. */ 9710_ACEOF 9711cat confdefs.h >>conftest.$ac_ext 9712cat >>conftest.$ac_ext <<_ACEOF 9713/* end confdefs.h. */ 9714#include <$ac_header> 9715_ACEOF 9716if { (ac_try="$ac_cpp conftest.$ac_ext" 9717case "(($ac_try" in 9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9719 *) ac_try_echo=$ac_try;; 9720esac 9721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9722$as_echo "$ac_try_echo") >&5 9723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9724 ac_status=$? 9725 grep -v '^ *+' conftest.er1 >conftest.err 9726 rm -f conftest.er1 9727 cat conftest.err >&5 9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9729 (exit $ac_status); } >/dev/null && { 9730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9731 test ! -s conftest.err 9732 }; then 9733 ac_header_preproc=yes 9734else 9735 $as_echo "$as_me: failed program was:" >&5 9736sed 's/^/| /' conftest.$ac_ext >&5 9737 9738 ac_header_preproc=no 9739fi 9740 9741rm -f conftest.err conftest.$ac_ext 9742{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9743$as_echo "$ac_header_preproc" >&6; } 9744 9745# So? What about this header? 9746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9747 yes:no: ) 9748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9749$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9751$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9752 ac_header_preproc=yes 9753 ;; 9754 no:yes:* ) 9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9756$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9758$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9760$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9762$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9764$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9766$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9767 9768 ;; 9769esac 9770{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9771$as_echo_n "checking for $ac_header... " >&6; } 9772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9773 $as_echo_n "(cached) " >&6 9774else 9775 eval "$as_ac_Header=\$ac_header_preproc" 9776fi 9777ac_res=`eval 'as_val=${'$as_ac_Header'} 9778 $as_echo "$as_val"'` 9779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9780$as_echo "$ac_res" >&6; } 9781 9782fi 9783as_val=`eval 'as_val=${'$as_ac_Header'} 9784 $as_echo "$as_val"'` 9785 if test "x$as_val" = x""yes; then 9786 cat >>confdefs.h <<_ACEOF 9787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9788_ACEOF 9789 9790fi 9791 9792done 9793 9794{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 9795$as_echo_n "checking for uint32_t... " >&6; } 9796if test "${ac_cv_type_uint32_t+set}" = set; then 9797 $as_echo_n "(cached) " >&6 9798else 9799 ac_cv_type_uint32_t=no 9800cat >conftest.$ac_ext <<_ACEOF 9801/* confdefs.h. */ 9802_ACEOF 9803cat confdefs.h >>conftest.$ac_ext 9804cat >>conftest.$ac_ext <<_ACEOF 9805/* end confdefs.h. */ 9806$ac_includes_default 9807int 9808main () 9809{ 9810if (sizeof (uint32_t)) 9811 return 0; 9812 ; 9813 return 0; 9814} 9815_ACEOF 9816rm -f conftest.$ac_objext 9817if { (ac_try="$ac_compile" 9818case "(($ac_try" in 9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9820 *) ac_try_echo=$ac_try;; 9821esac 9822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9823$as_echo "$ac_try_echo") >&5 9824 (eval "$ac_compile") 2>conftest.er1 9825 ac_status=$? 9826 grep -v '^ *+' conftest.er1 >conftest.err 9827 rm -f conftest.er1 9828 cat conftest.err >&5 9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); } && { 9831 test -z "$ac_c_werror_flag" || 9832 test ! -s conftest.err 9833 } && test -s conftest.$ac_objext; then 9834 cat >conftest.$ac_ext <<_ACEOF 9835/* confdefs.h. */ 9836_ACEOF 9837cat confdefs.h >>conftest.$ac_ext 9838cat >>conftest.$ac_ext <<_ACEOF 9839/* end confdefs.h. */ 9840$ac_includes_default 9841int 9842main () 9843{ 9844if (sizeof ((uint32_t))) 9845 return 0; 9846 ; 9847 return 0; 9848} 9849_ACEOF 9850rm -f conftest.$ac_objext 9851if { (ac_try="$ac_compile" 9852case "(($ac_try" in 9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9854 *) ac_try_echo=$ac_try;; 9855esac 9856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9857$as_echo "$ac_try_echo") >&5 9858 (eval "$ac_compile") 2>conftest.er1 9859 ac_status=$? 9860 grep -v '^ *+' conftest.er1 >conftest.err 9861 rm -f conftest.er1 9862 cat conftest.err >&5 9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9864 (exit $ac_status); } && { 9865 test -z "$ac_c_werror_flag" || 9866 test ! -s conftest.err 9867 } && test -s conftest.$ac_objext; then 9868 : 9869else 9870 $as_echo "$as_me: failed program was:" >&5 9871sed 's/^/| /' conftest.$ac_ext >&5 9872 9873 ac_cv_type_uint32_t=yes 9874fi 9875 9876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9877else 9878 $as_echo "$as_me: failed program was:" >&5 9879sed 's/^/| /' conftest.$ac_ext >&5 9880 9881 9882fi 9883 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9885fi 9886{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 9887$as_echo "$ac_cv_type_uint32_t" >&6; } 9888if test "x$ac_cv_type_uint32_t" = x""yes; then 9889 9890cat >>confdefs.h <<_ACEOF 9891#define HAVE_UINT32_T 1 9892_ACEOF 9893 9894 9895fi 9896{ $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5 9897$as_echo_n "checking for u_int32_t... " >&6; } 9898if test "${ac_cv_type_u_int32_t+set}" = set; then 9899 $as_echo_n "(cached) " >&6 9900else 9901 ac_cv_type_u_int32_t=no 9902cat >conftest.$ac_ext <<_ACEOF 9903/* confdefs.h. */ 9904_ACEOF 9905cat confdefs.h >>conftest.$ac_ext 9906cat >>conftest.$ac_ext <<_ACEOF 9907/* end confdefs.h. */ 9908$ac_includes_default 9909int 9910main () 9911{ 9912if (sizeof (u_int32_t)) 9913 return 0; 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918rm -f conftest.$ac_objext 9919if { (ac_try="$ac_compile" 9920case "(($ac_try" in 9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9922 *) ac_try_echo=$ac_try;; 9923esac 9924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9925$as_echo "$ac_try_echo") >&5 9926 (eval "$ac_compile") 2>conftest.er1 9927 ac_status=$? 9928 grep -v '^ *+' conftest.er1 >conftest.err 9929 rm -f conftest.er1 9930 cat conftest.err >&5 9931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9932 (exit $ac_status); } && { 9933 test -z "$ac_c_werror_flag" || 9934 test ! -s conftest.err 9935 } && test -s conftest.$ac_objext; then 9936 cat >conftest.$ac_ext <<_ACEOF 9937/* confdefs.h. */ 9938_ACEOF 9939cat confdefs.h >>conftest.$ac_ext 9940cat >>conftest.$ac_ext <<_ACEOF 9941/* end confdefs.h. */ 9942$ac_includes_default 9943int 9944main () 9945{ 9946if (sizeof ((u_int32_t))) 9947 return 0; 9948 ; 9949 return 0; 9950} 9951_ACEOF 9952rm -f conftest.$ac_objext 9953if { (ac_try="$ac_compile" 9954case "(($ac_try" in 9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9956 *) ac_try_echo=$ac_try;; 9957esac 9958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9959$as_echo "$ac_try_echo") >&5 9960 (eval "$ac_compile") 2>conftest.er1 9961 ac_status=$? 9962 grep -v '^ *+' conftest.er1 >conftest.err 9963 rm -f conftest.er1 9964 cat conftest.err >&5 9965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); } && { 9967 test -z "$ac_c_werror_flag" || 9968 test ! -s conftest.err 9969 } && test -s conftest.$ac_objext; then 9970 : 9971else 9972 $as_echo "$as_me: failed program was:" >&5 9973sed 's/^/| /' conftest.$ac_ext >&5 9974 9975 ac_cv_type_u_int32_t=yes 9976fi 9977 9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9979else 9980 $as_echo "$as_me: failed program was:" >&5 9981sed 's/^/| /' conftest.$ac_ext >&5 9982 9983 9984fi 9985 9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9987fi 9988{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 9989$as_echo "$ac_cv_type_u_int32_t" >&6; } 9990if test "x$ac_cv_type_u_int32_t" = x""yes; then 9991 9992cat >>confdefs.h <<_ACEOF 9993#define HAVE_U_INT32_T 1 9994_ACEOF 9995 9996 9997fi 9998 9999 10000 10001for ac_header in sys/sockio.h 10002do 10003as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10006$as_echo_n "checking for $ac_header... " >&6; } 10007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10008 $as_echo_n "(cached) " >&6 10009fi 10010ac_res=`eval 'as_val=${'$as_ac_Header'} 10011 $as_echo "$as_val"'` 10012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10013$as_echo "$ac_res" >&6; } 10014else 10015 # Is the header compilable? 10016{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 10017$as_echo_n "checking $ac_header usability... " >&6; } 10018cat >conftest.$ac_ext <<_ACEOF 10019/* confdefs.h. */ 10020_ACEOF 10021cat confdefs.h >>conftest.$ac_ext 10022cat >>conftest.$ac_ext <<_ACEOF 10023/* end confdefs.h. */ 10024$ac_includes_default 10025#include <$ac_header> 10026_ACEOF 10027rm -f conftest.$ac_objext 10028if { (ac_try="$ac_compile" 10029case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10034$as_echo "$ac_try_echo") >&5 10035 (eval "$ac_compile") 2>conftest.er1 10036 ac_status=$? 10037 grep -v '^ *+' conftest.er1 >conftest.err 10038 rm -f conftest.er1 10039 cat conftest.err >&5 10040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10041 (exit $ac_status); } && { 10042 test -z "$ac_c_werror_flag" || 10043 test ! -s conftest.err 10044 } && test -s conftest.$ac_objext; then 10045 ac_header_compiler=yes 10046else 10047 $as_echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050 ac_header_compiler=no 10051fi 10052 10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10054{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10055$as_echo "$ac_header_compiler" >&6; } 10056 10057# Is the header present? 10058{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 10059$as_echo_n "checking $ac_header presence... " >&6; } 10060cat >conftest.$ac_ext <<_ACEOF 10061/* confdefs.h. */ 10062_ACEOF 10063cat confdefs.h >>conftest.$ac_ext 10064cat >>conftest.$ac_ext <<_ACEOF 10065/* end confdefs.h. */ 10066#include <$ac_header> 10067_ACEOF 10068if { (ac_try="$ac_cpp conftest.$ac_ext" 10069case "(($ac_try" in 10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10071 *) ac_try_echo=$ac_try;; 10072esac 10073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10074$as_echo "$ac_try_echo") >&5 10075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10076 ac_status=$? 10077 grep -v '^ *+' conftest.er1 >conftest.err 10078 rm -f conftest.er1 10079 cat conftest.err >&5 10080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); } >/dev/null && { 10082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10083 test ! -s conftest.err 10084 }; then 10085 ac_header_preproc=yes 10086else 10087 $as_echo "$as_me: failed program was:" >&5 10088sed 's/^/| /' conftest.$ac_ext >&5 10089 10090 ac_header_preproc=no 10091fi 10092 10093rm -f conftest.err conftest.$ac_ext 10094{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10095$as_echo "$ac_header_preproc" >&6; } 10096 10097# So? What about this header? 10098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10099 yes:no: ) 10100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10101$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10103$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10104 ac_header_preproc=yes 10105 ;; 10106 no:yes:* ) 10107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10108$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10110$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10112$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10114$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10116$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10118$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10119 10120 ;; 10121esac 10122{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10123$as_echo_n "checking for $ac_header... " >&6; } 10124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10125 $as_echo_n "(cached) " >&6 10126else 10127 eval "$as_ac_Header=\$ac_header_preproc" 10128fi 10129ac_res=`eval 'as_val=${'$as_ac_Header'} 10130 $as_echo "$as_val"'` 10131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10132$as_echo "$ac_res" >&6; } 10133 10134fi 10135as_val=`eval 'as_val=${'$as_ac_Header'} 10136 $as_echo "$as_val"'` 10137 if test "x$as_val" = x""yes; then 10138 cat >>confdefs.h <<_ACEOF 10139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10140_ACEOF 10141 10142fi 10143 10144done 10145 10146 10147 10148for ac_func in connect 10149do 10150as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10151{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10152$as_echo_n "checking for $ac_func... " >&6; } 10153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10154 $as_echo_n "(cached) " >&6 10155else 10156 cat >conftest.$ac_ext <<_ACEOF 10157/* confdefs.h. */ 10158_ACEOF 10159cat confdefs.h >>conftest.$ac_ext 10160cat >>conftest.$ac_ext <<_ACEOF 10161/* end confdefs.h. */ 10162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10163 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10164#define $ac_func innocuous_$ac_func 10165 10166/* System header to define __stub macros and hopefully few prototypes, 10167 which can conflict with char $ac_func (); below. 10168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10169 <limits.h> exists even on freestanding compilers. */ 10170 10171#ifdef __STDC__ 10172# include <limits.h> 10173#else 10174# include <assert.h> 10175#endif 10176 10177#undef $ac_func 10178 10179/* Override any GCC internal prototype to avoid an error. 10180 Use char because int might match the return type of a GCC 10181 builtin and then its argument prototype would still apply. */ 10182#ifdef __cplusplus 10183extern "C" 10184#endif 10185char $ac_func (); 10186/* The GNU C library defines this for functions which it implements 10187 to always fail with ENOSYS. Some functions are actually named 10188 something starting with __ and the normal name is an alias. */ 10189#if defined __stub_$ac_func || defined __stub___$ac_func 10190choke me 10191#endif 10192 10193int 10194main () 10195{ 10196return $ac_func (); 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201rm -f conftest.$ac_objext conftest$ac_exeext 10202if { (ac_try="$ac_link" 10203case "(($ac_try" in 10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10205 *) ac_try_echo=$ac_try;; 10206esac 10207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10208$as_echo "$ac_try_echo") >&5 10209 (eval "$ac_link") 2>conftest.er1 10210 ac_status=$? 10211 grep -v '^ *+' conftest.er1 >conftest.err 10212 rm -f conftest.er1 10213 cat conftest.err >&5 10214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10215 (exit $ac_status); } && { 10216 test -z "$ac_c_werror_flag" || 10217 test ! -s conftest.err 10218 } && test -s conftest$ac_exeext && { 10219 test "$cross_compiling" = yes || 10220 $as_test_x conftest$ac_exeext 10221 }; then 10222 eval "$as_ac_var=yes" 10223else 10224 $as_echo "$as_me: failed program was:" >&5 10225sed 's/^/| /' conftest.$ac_ext >&5 10226 10227 eval "$as_ac_var=no" 10228fi 10229 10230rm -rf conftest.dSYM 10231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10232 conftest$ac_exeext conftest.$ac_ext 10233fi 10234ac_res=`eval 'as_val=${'$as_ac_var'} 10235 $as_echo "$as_val"'` 10236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10237$as_echo "$ac_res" >&6; } 10238as_val=`eval 'as_val=${'$as_ac_var'} 10239 $as_echo "$as_val"'` 10240 if test "x$as_val" = x""yes; then 10241 cat >>confdefs.h <<_ACEOF 10242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10243_ACEOF 10244 10245fi 10246done 10247 10248if test x"$ac_cv_func_connect" = x"no"; then 10249 case "$LIBS" in 10250 *-lnsl*) ;; 10251 *) 10252{ $as_echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5 10253$as_echo_n "checking for printf in -lnsl_s... " >&6; } 10254if test "${ac_cv_lib_nsl_s_printf+set}" = set; then 10255 $as_echo_n "(cached) " >&6 10256else 10257 ac_check_lib_save_LIBS=$LIBS 10258LIBS="-lnsl_s $LIBS" 10259cat >conftest.$ac_ext <<_ACEOF 10260/* confdefs.h. */ 10261_ACEOF 10262cat confdefs.h >>conftest.$ac_ext 10263cat >>conftest.$ac_ext <<_ACEOF 10264/* end confdefs.h. */ 10265 10266/* Override any GCC internal prototype to avoid an error. 10267 Use char because int might match the return type of a GCC 10268 builtin and then its argument prototype would still apply. */ 10269#ifdef __cplusplus 10270extern "C" 10271#endif 10272char printf (); 10273int 10274main () 10275{ 10276return printf (); 10277 ; 10278 return 0; 10279} 10280_ACEOF 10281rm -f conftest.$ac_objext conftest$ac_exeext 10282if { (ac_try="$ac_link" 10283case "(($ac_try" in 10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10285 *) ac_try_echo=$ac_try;; 10286esac 10287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10288$as_echo "$ac_try_echo") >&5 10289 (eval "$ac_link") 2>conftest.er1 10290 ac_status=$? 10291 grep -v '^ *+' conftest.er1 >conftest.err 10292 rm -f conftest.er1 10293 cat conftest.err >&5 10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10295 (exit $ac_status); } && { 10296 test -z "$ac_c_werror_flag" || 10297 test ! -s conftest.err 10298 } && test -s conftest$ac_exeext && { 10299 test "$cross_compiling" = yes || 10300 $as_test_x conftest$ac_exeext 10301 }; then 10302 ac_cv_lib_nsl_s_printf=yes 10303else 10304 $as_echo "$as_me: failed program was:" >&5 10305sed 's/^/| /' conftest.$ac_ext >&5 10306 10307 ac_cv_lib_nsl_s_printf=no 10308fi 10309 10310rm -rf conftest.dSYM 10311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10312 conftest$ac_exeext conftest.$ac_ext 10313LIBS=$ac_check_lib_save_LIBS 10314fi 10315{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5 10316$as_echo "$ac_cv_lib_nsl_s_printf" >&6; } 10317if test "x$ac_cv_lib_nsl_s_printf" = x""yes; then 10318 cat >>confdefs.h <<_ACEOF 10319#define HAVE_LIBNSL_S 1 10320_ACEOF 10321 10322 LIBS="-lnsl_s $LIBS" 10323 10324fi 10325 ;; 10326 esac 10327 case "$LIBS" in 10328 *-lnsl*) ;; 10329 *) 10330{ $as_echo "$as_me:$LINENO: checking for printf in -lnsl" >&5 10331$as_echo_n "checking for printf in -lnsl... " >&6; } 10332if test "${ac_cv_lib_nsl_printf+set}" = set; then 10333 $as_echo_n "(cached) " >&6 10334else 10335 ac_check_lib_save_LIBS=$LIBS 10336LIBS="-lnsl $LIBS" 10337cat >conftest.$ac_ext <<_ACEOF 10338/* confdefs.h. */ 10339_ACEOF 10340cat confdefs.h >>conftest.$ac_ext 10341cat >>conftest.$ac_ext <<_ACEOF 10342/* end confdefs.h. */ 10343 10344/* Override any GCC internal prototype to avoid an error. 10345 Use char because int might match the return type of a GCC 10346 builtin and then its argument prototype would still apply. */ 10347#ifdef __cplusplus 10348extern "C" 10349#endif 10350char printf (); 10351int 10352main () 10353{ 10354return printf (); 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359rm -f conftest.$ac_objext conftest$ac_exeext 10360if { (ac_try="$ac_link" 10361case "(($ac_try" in 10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10363 *) ac_try_echo=$ac_try;; 10364esac 10365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10366$as_echo "$ac_try_echo") >&5 10367 (eval "$ac_link") 2>conftest.er1 10368 ac_status=$? 10369 grep -v '^ *+' conftest.er1 >conftest.err 10370 rm -f conftest.er1 10371 cat conftest.err >&5 10372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10373 (exit $ac_status); } && { 10374 test -z "$ac_c_werror_flag" || 10375 test ! -s conftest.err 10376 } && test -s conftest$ac_exeext && { 10377 test "$cross_compiling" = yes || 10378 $as_test_x conftest$ac_exeext 10379 }; then 10380 ac_cv_lib_nsl_printf=yes 10381else 10382 $as_echo "$as_me: failed program was:" >&5 10383sed 's/^/| /' conftest.$ac_ext >&5 10384 10385 ac_cv_lib_nsl_printf=no 10386fi 10387 10388rm -rf conftest.dSYM 10389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10390 conftest$ac_exeext conftest.$ac_ext 10391LIBS=$ac_check_lib_save_LIBS 10392fi 10393{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5 10394$as_echo "$ac_cv_lib_nsl_printf" >&6; } 10395if test "x$ac_cv_lib_nsl_printf" = x""yes; then 10396 cat >>confdefs.h <<_ACEOF 10397#define HAVE_LIBNSL 1 10398_ACEOF 10399 10400 LIBS="-lnsl $LIBS" 10401 10402fi 10403 ;; 10404 esac 10405 case "$LIBS" in 10406 *-lsocket*) ;; 10407 *) 10408{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 10409$as_echo_n "checking for connect in -lsocket... " >&6; } 10410if test "${ac_cv_lib_socket_connect+set}" = set; then 10411 $as_echo_n "(cached) " >&6 10412else 10413 ac_check_lib_save_LIBS=$LIBS 10414LIBS="-lsocket $LIBS" 10415cat >conftest.$ac_ext <<_ACEOF 10416/* confdefs.h. */ 10417_ACEOF 10418cat confdefs.h >>conftest.$ac_ext 10419cat >>conftest.$ac_ext <<_ACEOF 10420/* end confdefs.h. */ 10421 10422/* Override any GCC internal prototype to avoid an error. 10423 Use char because int might match the return type of a GCC 10424 builtin and then its argument prototype would still apply. */ 10425#ifdef __cplusplus 10426extern "C" 10427#endif 10428char connect (); 10429int 10430main () 10431{ 10432return connect (); 10433 ; 10434 return 0; 10435} 10436_ACEOF 10437rm -f conftest.$ac_objext conftest$ac_exeext 10438if { (ac_try="$ac_link" 10439case "(($ac_try" in 10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10441 *) ac_try_echo=$ac_try;; 10442esac 10443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10444$as_echo "$ac_try_echo") >&5 10445 (eval "$ac_link") 2>conftest.er1 10446 ac_status=$? 10447 grep -v '^ *+' conftest.er1 >conftest.err 10448 rm -f conftest.er1 10449 cat conftest.err >&5 10450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10451 (exit $ac_status); } && { 10452 test -z "$ac_c_werror_flag" || 10453 test ! -s conftest.err 10454 } && test -s conftest$ac_exeext && { 10455 test "$cross_compiling" = yes || 10456 $as_test_x conftest$ac_exeext 10457 }; then 10458 ac_cv_lib_socket_connect=yes 10459else 10460 $as_echo "$as_me: failed program was:" >&5 10461sed 's/^/| /' conftest.$ac_ext >&5 10462 10463 ac_cv_lib_socket_connect=no 10464fi 10465 10466rm -rf conftest.dSYM 10467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10468 conftest$ac_exeext conftest.$ac_ext 10469LIBS=$ac_check_lib_save_LIBS 10470fi 10471{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 10472$as_echo "$ac_cv_lib_socket_connect" >&6; } 10473if test "x$ac_cv_lib_socket_connect" = x""yes; then 10474 cat >>confdefs.h <<_ACEOF 10475#define HAVE_LIBSOCKET 1 10476_ACEOF 10477 10478 LIBS="-lsocket $LIBS" 10479 10480fi 10481 ;; 10482 esac 10483 case "$LIBS" in 10484 *-linet*) ;; 10485 *) 10486{ $as_echo "$as_me:$LINENO: checking for connect in -linet" >&5 10487$as_echo_n "checking for connect in -linet... " >&6; } 10488if test "${ac_cv_lib_inet_connect+set}" = set; then 10489 $as_echo_n "(cached) " >&6 10490else 10491 ac_check_lib_save_LIBS=$LIBS 10492LIBS="-linet $LIBS" 10493cat >conftest.$ac_ext <<_ACEOF 10494/* confdefs.h. */ 10495_ACEOF 10496cat confdefs.h >>conftest.$ac_ext 10497cat >>conftest.$ac_ext <<_ACEOF 10498/* end confdefs.h. */ 10499 10500/* Override any GCC internal prototype to avoid an error. 10501 Use char because int might match the return type of a GCC 10502 builtin and then its argument prototype would still apply. */ 10503#ifdef __cplusplus 10504extern "C" 10505#endif 10506char connect (); 10507int 10508main () 10509{ 10510return connect (); 10511 ; 10512 return 0; 10513} 10514_ACEOF 10515rm -f conftest.$ac_objext conftest$ac_exeext 10516if { (ac_try="$ac_link" 10517case "(($ac_try" in 10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10519 *) ac_try_echo=$ac_try;; 10520esac 10521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10522$as_echo "$ac_try_echo") >&5 10523 (eval "$ac_link") 2>conftest.er1 10524 ac_status=$? 10525 grep -v '^ *+' conftest.er1 >conftest.err 10526 rm -f conftest.er1 10527 cat conftest.err >&5 10528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10529 (exit $ac_status); } && { 10530 test -z "$ac_c_werror_flag" || 10531 test ! -s conftest.err 10532 } && test -s conftest$ac_exeext && { 10533 test "$cross_compiling" = yes || 10534 $as_test_x conftest$ac_exeext 10535 }; then 10536 ac_cv_lib_inet_connect=yes 10537else 10538 $as_echo "$as_me: failed program was:" >&5 10539sed 's/^/| /' conftest.$ac_ext >&5 10540 10541 ac_cv_lib_inet_connect=no 10542fi 10543 10544rm -rf conftest.dSYM 10545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10546 conftest$ac_exeext conftest.$ac_ext 10547LIBS=$ac_check_lib_save_LIBS 10548fi 10549{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5 10550$as_echo "$ac_cv_lib_inet_connect" >&6; } 10551if test "x$ac_cv_lib_inet_connect" = x""yes; then 10552 cat >>confdefs.h <<_ACEOF 10553#define HAVE_LIBINET 1 10554_ACEOF 10555 10556 LIBS="-linet $LIBS" 10557 10558fi 10559 ;; 10560 esac 10561 if test x"$ac_cv_lib_socket_connect" = x"yes" || 10562 test x"$ac_cv_lib_inet_connect" = x"yes"; then 10563 10564cat >>confdefs.h <<\_ACEOF 10565#define HAVE_CONNECT 1 10566_ACEOF 10567 10568 fi 10569fi 10570 10571{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 10572$as_echo_n "checking for size_t... " >&6; } 10573if test "${ac_cv_type_size_t+set}" = set; then 10574 $as_echo_n "(cached) " >&6 10575else 10576 ac_cv_type_size_t=no 10577cat >conftest.$ac_ext <<_ACEOF 10578/* confdefs.h. */ 10579_ACEOF 10580cat confdefs.h >>conftest.$ac_ext 10581cat >>conftest.$ac_ext <<_ACEOF 10582/* end confdefs.h. */ 10583$ac_includes_default 10584int 10585main () 10586{ 10587if (sizeof (size_t)) 10588 return 0; 10589 ; 10590 return 0; 10591} 10592_ACEOF 10593rm -f conftest.$ac_objext 10594if { (ac_try="$ac_compile" 10595case "(($ac_try" in 10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10597 *) ac_try_echo=$ac_try;; 10598esac 10599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10600$as_echo "$ac_try_echo") >&5 10601 (eval "$ac_compile") 2>conftest.er1 10602 ac_status=$? 10603 grep -v '^ *+' conftest.er1 >conftest.err 10604 rm -f conftest.er1 10605 cat conftest.err >&5 10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10607 (exit $ac_status); } && { 10608 test -z "$ac_c_werror_flag" || 10609 test ! -s conftest.err 10610 } && test -s conftest.$ac_objext; then 10611 cat >conftest.$ac_ext <<_ACEOF 10612/* confdefs.h. */ 10613_ACEOF 10614cat confdefs.h >>conftest.$ac_ext 10615cat >>conftest.$ac_ext <<_ACEOF 10616/* end confdefs.h. */ 10617$ac_includes_default 10618int 10619main () 10620{ 10621if (sizeof ((size_t))) 10622 return 0; 10623 ; 10624 return 0; 10625} 10626_ACEOF 10627rm -f conftest.$ac_objext 10628if { (ac_try="$ac_compile" 10629case "(($ac_try" in 10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10631 *) ac_try_echo=$ac_try;; 10632esac 10633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10634$as_echo "$ac_try_echo") >&5 10635 (eval "$ac_compile") 2>conftest.er1 10636 ac_status=$? 10637 grep -v '^ *+' conftest.er1 >conftest.err 10638 rm -f conftest.er1 10639 cat conftest.err >&5 10640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10641 (exit $ac_status); } && { 10642 test -z "$ac_c_werror_flag" || 10643 test ! -s conftest.err 10644 } && test -s conftest.$ac_objext; then 10645 : 10646else 10647 $as_echo "$as_me: failed program was:" >&5 10648sed 's/^/| /' conftest.$ac_ext >&5 10649 10650 ac_cv_type_size_t=yes 10651fi 10652 10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10654else 10655 $as_echo "$as_me: failed program was:" >&5 10656sed 's/^/| /' conftest.$ac_ext >&5 10657 10658 10659fi 10660 10661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10662fi 10663{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 10664$as_echo "$ac_cv_type_size_t" >&6; } 10665if test "x$ac_cv_type_size_t" = x""yes; then 10666 : 10667else 10668 10669cat >>confdefs.h <<_ACEOF 10670#define size_t unsigned int 10671_ACEOF 10672 10673fi 10674 10675 10676{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 10677$as_echo_n "checking return type of signal handlers... " >&6; } 10678if test "${ac_cv_type_signal+set}" = set; then 10679 $as_echo_n "(cached) " >&6 10680else 10681 cat >conftest.$ac_ext <<_ACEOF 10682/* confdefs.h. */ 10683_ACEOF 10684cat confdefs.h >>conftest.$ac_ext 10685cat >>conftest.$ac_ext <<_ACEOF 10686/* end confdefs.h. */ 10687#include <sys/types.h> 10688#include <signal.h> 10689 10690int 10691main () 10692{ 10693return *(signal (0, 0)) (0) == 1; 10694 ; 10695 return 0; 10696} 10697_ACEOF 10698rm -f conftest.$ac_objext 10699if { (ac_try="$ac_compile" 10700case "(($ac_try" in 10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10702 *) ac_try_echo=$ac_try;; 10703esac 10704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10705$as_echo "$ac_try_echo") >&5 10706 (eval "$ac_compile") 2>conftest.er1 10707 ac_status=$? 10708 grep -v '^ *+' conftest.er1 >conftest.err 10709 rm -f conftest.er1 10710 cat conftest.err >&5 10711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10712 (exit $ac_status); } && { 10713 test -z "$ac_c_werror_flag" || 10714 test ! -s conftest.err 10715 } && test -s conftest.$ac_objext; then 10716 ac_cv_type_signal=int 10717else 10718 $as_echo "$as_me: failed program was:" >&5 10719sed 's/^/| /' conftest.$ac_ext >&5 10720 10721 ac_cv_type_signal=void 10722fi 10723 10724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10725fi 10726{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 10727$as_echo "$ac_cv_type_signal" >&6; } 10728 10729cat >>confdefs.h <<_ACEOF 10730#define RETSIGTYPE $ac_cv_type_signal 10731_ACEOF 10732 10733 10734 10735for ac_func in vprintf 10736do 10737as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10738{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10739$as_echo_n "checking for $ac_func... " >&6; } 10740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10741 $as_echo_n "(cached) " >&6 10742else 10743 cat >conftest.$ac_ext <<_ACEOF 10744/* confdefs.h. */ 10745_ACEOF 10746cat confdefs.h >>conftest.$ac_ext 10747cat >>conftest.$ac_ext <<_ACEOF 10748/* end confdefs.h. */ 10749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10751#define $ac_func innocuous_$ac_func 10752 10753/* System header to define __stub macros and hopefully few prototypes, 10754 which can conflict with char $ac_func (); below. 10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10756 <limits.h> exists even on freestanding compilers. */ 10757 10758#ifdef __STDC__ 10759# include <limits.h> 10760#else 10761# include <assert.h> 10762#endif 10763 10764#undef $ac_func 10765 10766/* Override any GCC internal prototype to avoid an error. 10767 Use char because int might match the return type of a GCC 10768 builtin and then its argument prototype would still apply. */ 10769#ifdef __cplusplus 10770extern "C" 10771#endif 10772char $ac_func (); 10773/* The GNU C library defines this for functions which it implements 10774 to always fail with ENOSYS. Some functions are actually named 10775 something starting with __ and the normal name is an alias. */ 10776#if defined __stub_$ac_func || defined __stub___$ac_func 10777choke me 10778#endif 10779 10780int 10781main () 10782{ 10783return $ac_func (); 10784 ; 10785 return 0; 10786} 10787_ACEOF 10788rm -f conftest.$ac_objext conftest$ac_exeext 10789if { (ac_try="$ac_link" 10790case "(($ac_try" in 10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10792 *) ac_try_echo=$ac_try;; 10793esac 10794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10795$as_echo "$ac_try_echo") >&5 10796 (eval "$ac_link") 2>conftest.er1 10797 ac_status=$? 10798 grep -v '^ *+' conftest.er1 >conftest.err 10799 rm -f conftest.er1 10800 cat conftest.err >&5 10801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10802 (exit $ac_status); } && { 10803 test -z "$ac_c_werror_flag" || 10804 test ! -s conftest.err 10805 } && test -s conftest$ac_exeext && { 10806 test "$cross_compiling" = yes || 10807 $as_test_x conftest$ac_exeext 10808 }; then 10809 eval "$as_ac_var=yes" 10810else 10811 $as_echo "$as_me: failed program was:" >&5 10812sed 's/^/| /' conftest.$ac_ext >&5 10813 10814 eval "$as_ac_var=no" 10815fi 10816 10817rm -rf conftest.dSYM 10818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10819 conftest$ac_exeext conftest.$ac_ext 10820fi 10821ac_res=`eval 'as_val=${'$as_ac_var'} 10822 $as_echo "$as_val"'` 10823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10824$as_echo "$ac_res" >&6; } 10825as_val=`eval 'as_val=${'$as_ac_var'} 10826 $as_echo "$as_val"'` 10827 if test "x$as_val" = x""yes; then 10828 cat >>confdefs.h <<_ACEOF 10829#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10830_ACEOF 10831 10832{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 10833$as_echo_n "checking for _doprnt... " >&6; } 10834if test "${ac_cv_func__doprnt+set}" = set; then 10835 $as_echo_n "(cached) " >&6 10836else 10837 cat >conftest.$ac_ext <<_ACEOF 10838/* confdefs.h. */ 10839_ACEOF 10840cat confdefs.h >>conftest.$ac_ext 10841cat >>conftest.$ac_ext <<_ACEOF 10842/* end confdefs.h. */ 10843/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 10844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10845#define _doprnt innocuous__doprnt 10846 10847/* System header to define __stub macros and hopefully few prototypes, 10848 which can conflict with char _doprnt (); below. 10849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10850 <limits.h> exists even on freestanding compilers. */ 10851 10852#ifdef __STDC__ 10853# include <limits.h> 10854#else 10855# include <assert.h> 10856#endif 10857 10858#undef _doprnt 10859 10860/* Override any GCC internal prototype to avoid an error. 10861 Use char because int might match the return type of a GCC 10862 builtin and then its argument prototype would still apply. */ 10863#ifdef __cplusplus 10864extern "C" 10865#endif 10866char _doprnt (); 10867/* The GNU C library defines this for functions which it implements 10868 to always fail with ENOSYS. Some functions are actually named 10869 something starting with __ and the normal name is an alias. */ 10870#if defined __stub__doprnt || defined __stub____doprnt 10871choke me 10872#endif 10873 10874int 10875main () 10876{ 10877return _doprnt (); 10878 ; 10879 return 0; 10880} 10881_ACEOF 10882rm -f conftest.$ac_objext conftest$ac_exeext 10883if { (ac_try="$ac_link" 10884case "(($ac_try" in 10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10886 *) ac_try_echo=$ac_try;; 10887esac 10888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10889$as_echo "$ac_try_echo") >&5 10890 (eval "$ac_link") 2>conftest.er1 10891 ac_status=$? 10892 grep -v '^ *+' conftest.er1 >conftest.err 10893 rm -f conftest.er1 10894 cat conftest.err >&5 10895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10896 (exit $ac_status); } && { 10897 test -z "$ac_c_werror_flag" || 10898 test ! -s conftest.err 10899 } && test -s conftest$ac_exeext && { 10900 test "$cross_compiling" = yes || 10901 $as_test_x conftest$ac_exeext 10902 }; then 10903 ac_cv_func__doprnt=yes 10904else 10905 $as_echo "$as_me: failed program was:" >&5 10906sed 's/^/| /' conftest.$ac_ext >&5 10907 10908 ac_cv_func__doprnt=no 10909fi 10910 10911rm -rf conftest.dSYM 10912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10913 conftest$ac_exeext conftest.$ac_ext 10914fi 10915{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 10916$as_echo "$ac_cv_func__doprnt" >&6; } 10917if test "x$ac_cv_func__doprnt" = x""yes; then 10918 10919cat >>confdefs.h <<\_ACEOF 10920#define HAVE_DOPRNT 1 10921_ACEOF 10922 10923fi 10924 10925fi 10926done 10927 10928 10929 10930 10931 10932 10933for ac_func in mkdir socket strerror strstr 10934do 10935as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10936{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10937$as_echo_n "checking for $ac_func... " >&6; } 10938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10939 $as_echo_n "(cached) " >&6 10940else 10941 cat >conftest.$ac_ext <<_ACEOF 10942/* confdefs.h. */ 10943_ACEOF 10944cat confdefs.h >>conftest.$ac_ext 10945cat >>conftest.$ac_ext <<_ACEOF 10946/* end confdefs.h. */ 10947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10949#define $ac_func innocuous_$ac_func 10950 10951/* System header to define __stub macros and hopefully few prototypes, 10952 which can conflict with char $ac_func (); below. 10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10954 <limits.h> exists even on freestanding compilers. */ 10955 10956#ifdef __STDC__ 10957# include <limits.h> 10958#else 10959# include <assert.h> 10960#endif 10961 10962#undef $ac_func 10963 10964/* Override any GCC internal prototype to avoid an error. 10965 Use char because int might match the return type of a GCC 10966 builtin and then its argument prototype would still apply. */ 10967#ifdef __cplusplus 10968extern "C" 10969#endif 10970char $ac_func (); 10971/* The GNU C library defines this for functions which it implements 10972 to always fail with ENOSYS. Some functions are actually named 10973 something starting with __ and the normal name is an alias. */ 10974#if defined __stub_$ac_func || defined __stub___$ac_func 10975choke me 10976#endif 10977 10978int 10979main () 10980{ 10981return $ac_func (); 10982 ; 10983 return 0; 10984} 10985_ACEOF 10986rm -f conftest.$ac_objext conftest$ac_exeext 10987if { (ac_try="$ac_link" 10988case "(($ac_try" in 10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10990 *) ac_try_echo=$ac_try;; 10991esac 10992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10993$as_echo "$ac_try_echo") >&5 10994 (eval "$ac_link") 2>conftest.er1 10995 ac_status=$? 10996 grep -v '^ *+' conftest.er1 >conftest.err 10997 rm -f conftest.er1 10998 cat conftest.err >&5 10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11000 (exit $ac_status); } && { 11001 test -z "$ac_c_werror_flag" || 11002 test ! -s conftest.err 11003 } && test -s conftest$ac_exeext && { 11004 test "$cross_compiling" = yes || 11005 $as_test_x conftest$ac_exeext 11006 }; then 11007 eval "$as_ac_var=yes" 11008else 11009 $as_echo "$as_me: failed program was:" >&5 11010sed 's/^/| /' conftest.$ac_ext >&5 11011 11012 eval "$as_ac_var=no" 11013fi 11014 11015rm -rf conftest.dSYM 11016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11017 conftest$ac_exeext conftest.$ac_ext 11018fi 11019ac_res=`eval 'as_val=${'$as_ac_var'} 11020 $as_echo "$as_val"'` 11021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11022$as_echo "$ac_res" >&6; } 11023as_val=`eval 'as_val=${'$as_ac_var'} 11024 $as_echo "$as_val"'` 11025 if test "x$as_val" = x""yes; then 11026 cat >>confdefs.h <<_ACEOF 11027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11028_ACEOF 11029 11030fi 11031done 11032 11033 11034ac_config_files="$ac_config_files lib/Makefile Makefile" 11035 11036cat >confcache <<\_ACEOF 11037# This file is a shell script that caches the results of configure 11038# tests run on this system so they can be shared between configure 11039# scripts and configure runs, see configure's option --config-cache. 11040# It is not useful on other systems. If it contains results you don't 11041# want to keep, you may remove or edit it. 11042# 11043# config.status only pays attention to the cache file if you give it 11044# the --recheck option to rerun configure. 11045# 11046# `ac_cv_env_foo' variables (set or unset) will be overridden when 11047# loading this file, other *unset* `ac_cv_foo' will be assigned the 11048# following values. 11049 11050_ACEOF 11051 11052# The following way of writing the cache mishandles newlines in values, 11053# but we know of no workaround that is simple, portable, and efficient. 11054# So, we kill variables containing newlines. 11055# Ultrix sh set writes to stderr and can't be redirected directly, 11056# and sets the high bit in the cache file unless we assign to the vars. 11057( 11058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11059 eval ac_val=\$$ac_var 11060 case $ac_val in #( 11061 *${as_nl}*) 11062 case $ac_var in #( 11063 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 11064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11065 esac 11066 case $ac_var in #( 11067 _ | IFS | as_nl) ;; #( 11068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11069 *) $as_unset $ac_var ;; 11070 esac ;; 11071 esac 11072 done 11073 11074 (set) 2>&1 | 11075 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11076 *${as_nl}ac_space=\ *) 11077 # `set' does not quote correctly, so add quotes (double-quote 11078 # substitution turns \\\\ into \\, and sed turns \\ into \). 11079 sed -n \ 11080 "s/'/'\\\\''/g; 11081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11082 ;; #( 11083 *) 11084 # `set' quotes correctly as required by POSIX, so do not add quotes. 11085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11086 ;; 11087 esac | 11088 sort 11089) | 11090 sed ' 11091 /^ac_cv_env_/b end 11092 t clear 11093 :clear 11094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11095 t end 11096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11097 :end' >>confcache 11098if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11099 if test -w "$cache_file"; then 11100 test "x$cache_file" != "x/dev/null" && 11101 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 11102$as_echo "$as_me: updating cache $cache_file" >&6;} 11103 cat confcache >$cache_file 11104 else 11105 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11106$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11107 fi 11108fi 11109rm -f confcache 11110 11111test "x$prefix" = xNONE && prefix=$ac_default_prefix 11112# Let make expand exec_prefix. 11113test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11114 11115DEFS=-DHAVE_CONFIG_H 11116 11117ac_libobjs= 11118ac_ltlibobjs= 11119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11120 # 1. Remove the extension, and $U if already installed. 11121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11122 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11124 # will be set to the directory where LIBOBJS objects are built. 11125 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11126 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11127done 11128LIBOBJS=$ac_libobjs 11129 11130LTLIBOBJS=$ac_ltlibobjs 11131 11132 11133if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11134 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 11135Usually this means the macro was only invoked conditionally." >&5 11136$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 11137Usually this means the macro was only invoked conditionally." >&2;} 11138 { (exit 1); exit 1; }; } 11139fi 11140if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11141 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 11142Usually this means the macro was only invoked conditionally." >&5 11143$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 11144Usually this means the macro was only invoked conditionally." >&2;} 11145 { (exit 1); exit 1; }; } 11146fi 11147if test -z "${SUBDIR_LIBMAD_TRUE}" && test -z "${SUBDIR_LIBMAD_FALSE}"; then 11148 { { $as_echo "$as_me:$LINENO: error: conditional \"SUBDIR_LIBMAD\" was never defined. 11149Usually this means the macro was only invoked conditionally." >&5 11150$as_echo "$as_me: error: conditional \"SUBDIR_LIBMAD\" was never defined. 11151Usually this means the macro was only invoked conditionally." >&2;} 11152 { (exit 1); exit 1; }; } 11153fi 11154if test -z "${USE_INCLUDED_ARGV_TRUE}" && test -z "${USE_INCLUDED_ARGV_FALSE}"; then 11155 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_ARGV\" was never defined. 11156Usually this means the macro was only invoked conditionally." >&5 11157$as_echo "$as_me: error: conditional \"USE_INCLUDED_ARGV\" was never defined. 11158Usually this means the macro was only invoked conditionally." >&2;} 11159 { (exit 1); exit 1; }; } 11160fi 11161if test -z "${WANT_CSTREAMRIPPER_TRUE}" && test -z "${WANT_CSTREAMRIPPER_FALSE}"; then 11162 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CSTREAMRIPPER\" was never defined. 11163Usually this means the macro was only invoked conditionally." >&5 11164$as_echo "$as_me: error: conditional \"WANT_CSTREAMRIPPER\" was never defined. 11165Usually this means the macro was only invoked conditionally." >&2;} 11166 { (exit 1); exit 1; }; } 11167fi 11168 11169: ${CONFIG_STATUS=./config.status} 11170ac_write_fail=0 11171ac_clean_files_save=$ac_clean_files 11172ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11173{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11175cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11176#! $SHELL 11177# Generated by $as_me. 11178# Run this file to recreate the current configuration. 11179# Compiler output produced by configure, useful for debugging 11180# configure, is in config.log if it exists. 11181 11182debug=false 11183ac_cs_recheck=false 11184ac_cs_silent=false 11185SHELL=\${CONFIG_SHELL-$SHELL} 11186_ACEOF 11187 11188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11189## --------------------- ## 11190## M4sh Initialization. ## 11191## --------------------- ## 11192 11193# Be more Bourne compatible 11194DUALCASE=1; export DUALCASE # for MKS sh 11195if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11196 emulate sh 11197 NULLCMD=: 11198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11199 # is contrary to our usage. Disable this feature. 11200 alias -g '${1+"$@"}'='"$@"' 11201 setopt NO_GLOB_SUBST 11202else 11203 case `(set -o) 2>/dev/null` in 11204 *posix*) set -o posix ;; 11205esac 11206 11207fi 11208 11209 11210 11211 11212# PATH needs CR 11213# Avoid depending upon Character Ranges. 11214as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11215as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11216as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11217as_cr_digits='0123456789' 11218as_cr_alnum=$as_cr_Letters$as_cr_digits 11219 11220as_nl=' 11221' 11222export as_nl 11223# Printing a long string crashes Solaris 7 /usr/bin/printf. 11224as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11227if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11228 as_echo='printf %s\n' 11229 as_echo_n='printf %s' 11230else 11231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11233 as_echo_n='/usr/ucb/echo -n' 11234 else 11235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11236 as_echo_n_body='eval 11237 arg=$1; 11238 case $arg in 11239 *"$as_nl"*) 11240 expr "X$arg" : "X\\(.*\\)$as_nl"; 11241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11242 esac; 11243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11244 ' 11245 export as_echo_n_body 11246 as_echo_n='sh -c $as_echo_n_body as_echo' 11247 fi 11248 export as_echo_body 11249 as_echo='sh -c $as_echo_body as_echo' 11250fi 11251 11252# The user is always right. 11253if test "${PATH_SEPARATOR+set}" != set; then 11254 PATH_SEPARATOR=: 11255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11257 PATH_SEPARATOR=';' 11258 } 11259fi 11260 11261# Support unset when possible. 11262if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11263 as_unset=unset 11264else 11265 as_unset=false 11266fi 11267 11268 11269# IFS 11270# We need space, tab and new line, in precisely that order. Quoting is 11271# there to prevent editors from complaining about space-tab. 11272# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11273# splitting by setting IFS to empty value.) 11274IFS=" "" $as_nl" 11275 11276# Find who we are. Look in the path if we contain no directory separator. 11277case $0 in 11278 *[\\/]* ) as_myself=$0 ;; 11279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11280for as_dir in $PATH 11281do 11282 IFS=$as_save_IFS 11283 test -z "$as_dir" && as_dir=. 11284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11285done 11286IFS=$as_save_IFS 11287 11288 ;; 11289esac 11290# We did not find ourselves, most probably we were run as `sh COMMAND' 11291# in which case we are not to be found in the path. 11292if test "x$as_myself" = x; then 11293 as_myself=$0 11294fi 11295if test ! -f "$as_myself"; then 11296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11297 { (exit 1); exit 1; } 11298fi 11299 11300# Work around bugs in pre-3.0 UWIN ksh. 11301for as_var in ENV MAIL MAILPATH 11302do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11303done 11304PS1='$ ' 11305PS2='> ' 11306PS4='+ ' 11307 11308# NLS nuisances. 11309LC_ALL=C 11310export LC_ALL 11311LANGUAGE=C 11312export LANGUAGE 11313 11314# Required to use basename. 11315if expr a : '\(a\)' >/dev/null 2>&1 && 11316 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11317 as_expr=expr 11318else 11319 as_expr=false 11320fi 11321 11322if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11323 as_basename=basename 11324else 11325 as_basename=false 11326fi 11327 11328 11329# Name of the executable. 11330as_me=`$as_basename -- "$0" || 11331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11332 X"$0" : 'X\(//\)$' \| \ 11333 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11334$as_echo X/"$0" | 11335 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11336 s//\1/ 11337 q 11338 } 11339 /^X\/\(\/\/\)$/{ 11340 s//\1/ 11341 q 11342 } 11343 /^X\/\(\/\).*/{ 11344 s//\1/ 11345 q 11346 } 11347 s/.*/./; q'` 11348 11349# CDPATH. 11350$as_unset CDPATH 11351 11352 11353 11354 as_lineno_1=$LINENO 11355 as_lineno_2=$LINENO 11356 test "x$as_lineno_1" != "x$as_lineno_2" && 11357 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11358 11359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11360 # uniformly replaced by the line number. The first 'sed' inserts a 11361 # line-number line after each line using $LINENO; the second 'sed' 11362 # does the real work. The second script uses 'N' to pair each 11363 # line-number line with the line containing $LINENO, and appends 11364 # trailing '-' during substitution so that $LINENO is not a special 11365 # case at line end. 11366 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11367 # scripts with optimization help from Paolo Bonzini. Blame Lee 11368 # E. McMahon (1931-1989) for sed's syntax. :-) 11369 sed -n ' 11370 p 11371 /[$]LINENO/= 11372 ' <$as_myself | 11373 sed ' 11374 s/[$]LINENO.*/&-/ 11375 t lineno 11376 b 11377 :lineno 11378 N 11379 :loop 11380 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11381 t loop 11382 s/-\n.*// 11383 ' >$as_me.lineno && 11384 chmod +x "$as_me.lineno" || 11385 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11386 { (exit 1); exit 1; }; } 11387 11388 # Don't try to exec as it changes $[0], causing all sort of problems 11389 # (the dirname of $[0] is not the place where we might find the 11390 # original and so on. Autoconf is especially sensitive to this). 11391 . "./$as_me.lineno" 11392 # Exit status is that of the last command. 11393 exit 11394} 11395 11396 11397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11398 as_dirname=dirname 11399else 11400 as_dirname=false 11401fi 11402 11403ECHO_C= ECHO_N= ECHO_T= 11404case `echo -n x` in 11405-n*) 11406 case `echo 'x\c'` in 11407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11408 *) ECHO_C='\c';; 11409 esac;; 11410*) 11411 ECHO_N='-n';; 11412esac 11413if expr a : '\(a\)' >/dev/null 2>&1 && 11414 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11415 as_expr=expr 11416else 11417 as_expr=false 11418fi 11419 11420rm -f conf$$ conf$$.exe conf$$.file 11421if test -d conf$$.dir; then 11422 rm -f conf$$.dir/conf$$.file 11423else 11424 rm -f conf$$.dir 11425 mkdir conf$$.dir 2>/dev/null 11426fi 11427if (echo >conf$$.file) 2>/dev/null; then 11428 if ln -s conf$$.file conf$$ 2>/dev/null; then 11429 as_ln_s='ln -s' 11430 # ... but there are two gotchas: 11431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11433 # In both cases, we have to default to `cp -p'. 11434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11435 as_ln_s='cp -p' 11436 elif ln conf$$.file conf$$ 2>/dev/null; then 11437 as_ln_s=ln 11438 else 11439 as_ln_s='cp -p' 11440 fi 11441else 11442 as_ln_s='cp -p' 11443fi 11444rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11445rmdir conf$$.dir 2>/dev/null 11446 11447if mkdir -p . 2>/dev/null; then 11448 as_mkdir_p=: 11449else 11450 test -d ./-p && rmdir ./-p 11451 as_mkdir_p=false 11452fi 11453 11454if test -x / >/dev/null 2>&1; then 11455 as_test_x='test -x' 11456else 11457 if ls -dL / >/dev/null 2>&1; then 11458 as_ls_L_option=L 11459 else 11460 as_ls_L_option= 11461 fi 11462 as_test_x=' 11463 eval sh -c '\'' 11464 if test -d "$1"; then 11465 test -d "$1/."; 11466 else 11467 case $1 in 11468 -*)set "./$1";; 11469 esac; 11470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11471 ???[sx]*):;;*)false;;esac;fi 11472 '\'' sh 11473 ' 11474fi 11475as_executable_p=$as_test_x 11476 11477# Sed expression to map a string onto a valid CPP name. 11478as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11479 11480# Sed expression to map a string onto a valid variable name. 11481as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11482 11483 11484exec 6>&1 11485 11486# Save the log message, to keep $[0] and so on meaningful, and to 11487# report actual input values of CONFIG_FILES etc. instead of their 11488# values after options handling. 11489ac_log=" 11490This file was extended by streamripper $as_me 1.64.6, which was 11491generated by GNU Autoconf 2.63. Invocation command line was 11492 11493 CONFIG_FILES = $CONFIG_FILES 11494 CONFIG_HEADERS = $CONFIG_HEADERS 11495 CONFIG_LINKS = $CONFIG_LINKS 11496 CONFIG_COMMANDS = $CONFIG_COMMANDS 11497 $ $0 $@ 11498 11499on `(hostname || uname -n) 2>/dev/null | sed 1q` 11500" 11501 11502_ACEOF 11503 11504case $ac_config_files in *" 11505"*) set x $ac_config_files; shift; ac_config_files=$*;; 11506esac 11507 11508case $ac_config_headers in *" 11509"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11510esac 11511 11512 11513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11514# Files that config.status was made for. 11515config_files="$ac_config_files" 11516config_headers="$ac_config_headers" 11517config_commands="$ac_config_commands" 11518 11519_ACEOF 11520 11521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11522ac_cs_usage="\ 11523\`$as_me' instantiates files from templates according to the 11524current configuration. 11525 11526Usage: $0 [OPTION]... [FILE]... 11527 11528 -h, --help print this help, then exit 11529 -V, --version print version number and configuration settings, then exit 11530 -q, --quiet, --silent 11531 do not print progress messages 11532 -d, --debug don't remove temporary files 11533 --recheck update $as_me by reconfiguring in the same conditions 11534 --file=FILE[:TEMPLATE] 11535 instantiate the configuration file FILE 11536 --header=FILE[:TEMPLATE] 11537 instantiate the configuration header FILE 11538 11539Configuration files: 11540$config_files 11541 11542Configuration headers: 11543$config_headers 11544 11545Configuration commands: 11546$config_commands 11547 11548Report bugs to <bug-autoconf@gnu.org>." 11549 11550_ACEOF 11551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11552ac_cs_version="\\ 11553streamripper config.status 1.64.6 11554configured by $0, generated by GNU Autoconf 2.63, 11555 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11556 11557Copyright (C) 2008 Free Software Foundation, Inc. 11558This config.status script is free software; the Free Software Foundation 11559gives unlimited permission to copy, distribute and modify it." 11560 11561ac_pwd='$ac_pwd' 11562srcdir='$srcdir' 11563INSTALL='$INSTALL' 11564MKDIR_P='$MKDIR_P' 11565AWK='$AWK' 11566test -n "\$AWK" || AWK=awk 11567_ACEOF 11568 11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11570# The default lists apply if the user does not specify any file. 11571ac_need_defaults=: 11572while test $# != 0 11573do 11574 case $1 in 11575 --*=*) 11576 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11578 ac_shift=: 11579 ;; 11580 *) 11581 ac_option=$1 11582 ac_optarg=$2 11583 ac_shift=shift 11584 ;; 11585 esac 11586 11587 case $ac_option in 11588 # Handling of the options. 11589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11590 ac_cs_recheck=: ;; 11591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11592 $as_echo "$ac_cs_version"; exit ;; 11593 --debug | --debu | --deb | --de | --d | -d ) 11594 debug=: ;; 11595 --file | --fil | --fi | --f ) 11596 $ac_shift 11597 case $ac_optarg in 11598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11599 esac 11600 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 11601 ac_need_defaults=false;; 11602 --header | --heade | --head | --hea ) 11603 $ac_shift 11604 case $ac_optarg in 11605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11606 esac 11607 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 11608 ac_need_defaults=false;; 11609 --he | --h) 11610 # Conflict between --help and --header 11611 { $as_echo "$as_me: error: ambiguous option: $1 11612Try \`$0 --help' for more information." >&2 11613 { (exit 1); exit 1; }; };; 11614 --help | --hel | -h ) 11615 $as_echo "$ac_cs_usage"; exit ;; 11616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11617 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11618 ac_cs_silent=: ;; 11619 11620 # This is an error. 11621 -*) { $as_echo "$as_me: error: unrecognized option: $1 11622Try \`$0 --help' for more information." >&2 11623 { (exit 1); exit 1; }; } ;; 11624 11625 *) ac_config_targets="$ac_config_targets $1" 11626 ac_need_defaults=false ;; 11627 11628 esac 11629 shift 11630done 11631 11632ac_configure_extra_args= 11633 11634if $ac_cs_silent; then 11635 exec 6>/dev/null 11636 ac_configure_extra_args="$ac_configure_extra_args --silent" 11637fi 11638 11639_ACEOF 11640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11641if \$ac_cs_recheck; then 11642 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11643 shift 11644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11645 CONFIG_SHELL='$SHELL' 11646 export CONFIG_SHELL 11647 exec "\$@" 11648fi 11649 11650_ACEOF 11651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11652exec 5>>config.log 11653{ 11654 echo 11655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11656## Running $as_me. ## 11657_ASBOX 11658 $as_echo "$ac_log" 11659} >&5 11660 11661_ACEOF 11662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11663# 11664# INIT-COMMANDS 11665# 11666AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11667 11668_ACEOF 11669 11670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11671 11672# Handling of arguments. 11673for ac_config_target in $ac_config_targets 11674do 11675 case $ac_config_target in 11676 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; 11677 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11678 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 11679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11680 11681 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11682$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11683 { (exit 1); exit 1; }; };; 11684 esac 11685done 11686 11687 11688# If the user did not use the arguments to specify the items to instantiate, 11689# then the envvar interface is used. Set only those that are not. 11690# We use the long form for the default assignment because of an extremely 11691# bizarre bug on SunOS 4.1.3. 11692if $ac_need_defaults; then 11693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11696fi 11697 11698# Have a temporary directory for convenience. Make it in the build tree 11699# simply because there is no reason against having it here, and in addition, 11700# creating and moving files from /tmp can sometimes cause problems. 11701# Hook for its removal unless debugging. 11702# Note that there is a small window in which the directory will not be cleaned: 11703# after its creation but before its name has been assigned to `$tmp'. 11704$debug || 11705{ 11706 tmp= 11707 trap 'exit_status=$? 11708 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11709' 0 11710 trap '{ (exit 1); exit 1; }' 1 2 13 15 11711} 11712# Create a (secure) tmp directory for tmp files. 11713 11714{ 11715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11716 test -n "$tmp" && test -d "$tmp" 11717} || 11718{ 11719 tmp=./conf$$-$RANDOM 11720 (umask 077 && mkdir "$tmp") 11721} || 11722{ 11723 $as_echo "$as_me: cannot create a temporary directory in ." >&2 11724 { (exit 1); exit 1; } 11725} 11726 11727# Set up the scripts for CONFIG_FILES section. 11728# No need to generate them if there are no CONFIG_FILES. 11729# This happens for instance with `./config.status config.h'. 11730if test -n "$CONFIG_FILES"; then 11731 11732 11733ac_cr=' 11734' 11735ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11736if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11737 ac_cs_awk_cr='\\r' 11738else 11739 ac_cs_awk_cr=$ac_cr 11740fi 11741 11742echo 'BEGIN {' >"$tmp/subs1.awk" && 11743_ACEOF 11744 11745 11746{ 11747 echo "cat >conf$$subs.awk <<_ACEOF" && 11748 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11749 echo "_ACEOF" 11750} >conf$$subs.sh || 11751 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11752$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11753 { (exit 1); exit 1; }; } 11754ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 11755ac_delim='%!_!# ' 11756for ac_last_try in false false false false false :; do 11757 . ./conf$$subs.sh || 11758 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11759$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11760 { (exit 1); exit 1; }; } 11761 11762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11763 if test $ac_delim_n = $ac_delim_num; then 11764 break 11765 elif $ac_last_try; then 11766 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11767$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11768 { (exit 1); exit 1; }; } 11769 else 11770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11771 fi 11772done 11773rm -f conf$$subs.sh 11774 11775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11776cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 11777_ACEOF 11778sed -n ' 11779h 11780s/^/S["/; s/!.*/"]=/ 11781p 11782g 11783s/^[^!]*!// 11784:repl 11785t repl 11786s/'"$ac_delim"'$// 11787t delim 11788:nl 11789h 11790s/\(.\{148\}\).*/\1/ 11791t more1 11792s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11793p 11794n 11795b repl 11796:more1 11797s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11798p 11799g 11800s/.\{148\}// 11801t nl 11802:delim 11803h 11804s/\(.\{148\}\).*/\1/ 11805t more2 11806s/["\\]/\\&/g; s/^/"/; s/$/"/ 11807p 11808b 11809:more2 11810s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11811p 11812g 11813s/.\{148\}// 11814t delim 11815' <conf$$subs.awk | sed ' 11816/^[^""]/{ 11817 N 11818 s/\n// 11819} 11820' >>$CONFIG_STATUS || ac_write_fail=1 11821rm -f conf$$subs.awk 11822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11823_ACAWK 11824cat >>"\$tmp/subs1.awk" <<_ACAWK && 11825 for (key in S) S_is_set[key] = 1 11826 FS = "" 11827 11828} 11829{ 11830 line = $ 0 11831 nfields = split(line, field, "@") 11832 substed = 0 11833 len = length(field[1]) 11834 for (i = 2; i < nfields; i++) { 11835 key = field[i] 11836 keylen = length(key) 11837 if (S_is_set[key]) { 11838 value = S[key] 11839 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11840 len += length(value) + length(field[++i]) 11841 substed = 1 11842 } else 11843 len += 1 + keylen 11844 } 11845 11846 print line 11847} 11848 11849_ACAWK 11850_ACEOF 11851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11852if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11853 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11854else 11855 cat 11856fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 11857 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 11858$as_echo "$as_me: error: could not setup config files machinery" >&2;} 11859 { (exit 1); exit 1; }; } 11860_ACEOF 11861 11862# VPATH may cause trouble with some makes, so we remove $(srcdir), 11863# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11864# trailing colons and then remove the whole line if VPATH becomes empty 11865# (actually we leave an empty line to preserve line numbers). 11866if test "x$srcdir" = x.; then 11867 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11868s/:*\$(srcdir):*/:/ 11869s/:*\${srcdir}:*/:/ 11870s/:*@srcdir@:*/:/ 11871s/^\([^=]*=[ ]*\):*/\1/ 11872s/:*$// 11873s/^[^=]*=[ ]*$// 11874}' 11875fi 11876 11877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11878fi # test -n "$CONFIG_FILES" 11879 11880# Set up the scripts for CONFIG_HEADERS section. 11881# No need to generate them if there are no CONFIG_HEADERS. 11882# This happens for instance with `./config.status Makefile'. 11883if test -n "$CONFIG_HEADERS"; then 11884cat >"$tmp/defines.awk" <<\_ACAWK || 11885BEGIN { 11886_ACEOF 11887 11888# Transform confdefs.h into an awk script `defines.awk', embedded as 11889# here-document in config.status, that substitutes the proper values into 11890# config.h.in to produce config.h. 11891 11892# Create a delimiter string that does not exist in confdefs.h, to ease 11893# handling of long lines. 11894ac_delim='%!_!# ' 11895for ac_last_try in false false :; do 11896 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 11897 if test -z "$ac_t"; then 11898 break 11899 elif $ac_last_try; then 11900 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 11901$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 11902 { (exit 1); exit 1; }; } 11903 else 11904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11905 fi 11906done 11907 11908# For the awk script, D is an array of macro values keyed by name, 11909# likewise P contains macro parameters if any. Preserve backslash 11910# newline sequences. 11911 11912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11913sed -n ' 11914s/.\{148\}/&'"$ac_delim"'/g 11915t rset 11916:rset 11917s/^[ ]*#[ ]*define[ ][ ]*/ / 11918t def 11919d 11920:def 11921s/\\$// 11922t bsnl 11923s/["\\]/\\&/g 11924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11925D["\1"]=" \3"/p 11926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11927d 11928:bsnl 11929s/["\\]/\\&/g 11930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11931D["\1"]=" \3\\\\\\n"\\/p 11932t cont 11933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11934t cont 11935d 11936:cont 11937n 11938s/.\{148\}/&'"$ac_delim"'/g 11939t clear 11940:clear 11941s/\\$// 11942t bsnlc 11943s/["\\]/\\&/g; s/^/"/; s/$/"/p 11944d 11945:bsnlc 11946s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11947b cont 11948' <confdefs.h | sed ' 11949s/'"$ac_delim"'/"\\\ 11950"/g' >>$CONFIG_STATUS || ac_write_fail=1 11951 11952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11953 for (key in D) D_is_set[key] = 1 11954 FS = "" 11955} 11956/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11957 line = \$ 0 11958 split(line, arg, " ") 11959 if (arg[1] == "#") { 11960 defundef = arg[2] 11961 mac1 = arg[3] 11962 } else { 11963 defundef = substr(arg[1], 2) 11964 mac1 = arg[2] 11965 } 11966 split(mac1, mac2, "(") #) 11967 macro = mac2[1] 11968 prefix = substr(line, 1, index(line, defundef) - 1) 11969 if (D_is_set[macro]) { 11970 # Preserve the white space surrounding the "#". 11971 print prefix "define", macro P[macro] D[macro] 11972 next 11973 } else { 11974 # Replace #undef with comments. This is necessary, for example, 11975 # in the case of _POSIX_SOURCE, which is predefined and required 11976 # on some systems where configure will not decide to define it. 11977 if (defundef == "undef") { 11978 print "/*", prefix defundef, macro, "*/" 11979 next 11980 } 11981 } 11982} 11983{ print } 11984_ACAWK 11985_ACEOF 11986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11987 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 11988$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 11989 { (exit 1); exit 1; }; } 11990fi # test -n "$CONFIG_HEADERS" 11991 11992 11993eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11994shift 11995for ac_tag 11996do 11997 case $ac_tag in 11998 :[FHLC]) ac_mode=$ac_tag; continue;; 11999 esac 12000 case $ac_mode$ac_tag in 12001 :[FHL]*:*);; 12002 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 12003$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 12004 { (exit 1); exit 1; }; };; 12005 :[FH]-) ac_tag=-:-;; 12006 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12007 esac 12008 ac_save_IFS=$IFS 12009 IFS=: 12010 set x $ac_tag 12011 IFS=$ac_save_IFS 12012 shift 12013 ac_file=$1 12014 shift 12015 12016 case $ac_mode in 12017 :L) ac_source=$1;; 12018 :[FH]) 12019 ac_file_inputs= 12020 for ac_f 12021 do 12022 case $ac_f in 12023 -) ac_f="$tmp/stdin";; 12024 *) # Look for the file first in the build tree, then in the source tree 12025 # (if the path is not absolute). The absolute path cannot be DOS-style, 12026 # because $ac_f cannot contain `:'. 12027 test -f "$ac_f" || 12028 case $ac_f in 12029 [\\/$]*) false;; 12030 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12031 esac || 12032 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12033$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12034 { (exit 1); exit 1; }; };; 12035 esac 12036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12037 ac_file_inputs="$ac_file_inputs '$ac_f'" 12038 done 12039 12040 # Let's still pretend it is `configure' which instantiates (i.e., don't 12041 # use $as_me), people would be surprised to read: 12042 # /* config.h. Generated by config.status. */ 12043 configure_input='Generated from '` 12044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12045 `' by configure.' 12046 if test x"$ac_file" != x-; then 12047 configure_input="$ac_file. $configure_input" 12048 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 12049$as_echo "$as_me: creating $ac_file" >&6;} 12050 fi 12051 # Neutralize special characters interpreted by sed in replacement strings. 12052 case $configure_input in #( 12053 *\&* | *\|* | *\\* ) 12054 ac_sed_conf_input=`$as_echo "$configure_input" | 12055 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12056 *) ac_sed_conf_input=$configure_input;; 12057 esac 12058 12059 case $ac_tag in 12060 *:-:* | *:-) cat >"$tmp/stdin" \ 12061 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12062$as_echo "$as_me: error: could not create $ac_file" >&2;} 12063 { (exit 1); exit 1; }; } ;; 12064 esac 12065 ;; 12066 esac 12067 12068 ac_dir=`$as_dirname -- "$ac_file" || 12069$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12070 X"$ac_file" : 'X\(//\)[^/]' \| \ 12071 X"$ac_file" : 'X\(//\)$' \| \ 12072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12073$as_echo X"$ac_file" | 12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12075 s//\1/ 12076 q 12077 } 12078 /^X\(\/\/\)[^/].*/{ 12079 s//\1/ 12080 q 12081 } 12082 /^X\(\/\/\)$/{ 12083 s//\1/ 12084 q 12085 } 12086 /^X\(\/\).*/{ 12087 s//\1/ 12088 q 12089 } 12090 s/.*/./; q'` 12091 { as_dir="$ac_dir" 12092 case $as_dir in #( 12093 -*) as_dir=./$as_dir;; 12094 esac 12095 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12096 as_dirs= 12097 while :; do 12098 case $as_dir in #( 12099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12100 *) as_qdir=$as_dir;; 12101 esac 12102 as_dirs="'$as_qdir' $as_dirs" 12103 as_dir=`$as_dirname -- "$as_dir" || 12104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$as_dir" : 'X\(//\)[^/]' \| \ 12106 X"$as_dir" : 'X\(//\)$' \| \ 12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12108$as_echo X"$as_dir" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 test -d "$as_dir" && break 12127 done 12128 test -z "$as_dirs" || eval "mkdir $as_dirs" 12129 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12130$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 12131 { (exit 1); exit 1; }; }; } 12132 ac_builddir=. 12133 12134case "$ac_dir" in 12135.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12136*) 12137 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12138 # A ".." for each directory in $ac_dir_suffix. 12139 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12140 case $ac_top_builddir_sub in 12141 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12142 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12143 esac ;; 12144esac 12145ac_abs_top_builddir=$ac_pwd 12146ac_abs_builddir=$ac_pwd$ac_dir_suffix 12147# for backward compatibility: 12148ac_top_builddir=$ac_top_build_prefix 12149 12150case $srcdir in 12151 .) # We are building in place. 12152 ac_srcdir=. 12153 ac_top_srcdir=$ac_top_builddir_sub 12154 ac_abs_top_srcdir=$ac_pwd ;; 12155 [\\/]* | ?:[\\/]* ) # Absolute name. 12156 ac_srcdir=$srcdir$ac_dir_suffix; 12157 ac_top_srcdir=$srcdir 12158 ac_abs_top_srcdir=$srcdir ;; 12159 *) # Relative name. 12160 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12161 ac_top_srcdir=$ac_top_build_prefix$srcdir 12162 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12163esac 12164ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12165 12166 12167 case $ac_mode in 12168 :F) 12169 # 12170 # CONFIG_FILE 12171 # 12172 12173 case $INSTALL in 12174 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12175 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12176 esac 12177 ac_MKDIR_P=$MKDIR_P 12178 case $MKDIR_P in 12179 [\\/$]* | ?:[\\/]* ) ;; 12180 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12181 esac 12182_ACEOF 12183 12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12185# If the template does not know about datarootdir, expand it. 12186# FIXME: This hack should be removed a few years after 2.60. 12187ac_datarootdir_hack=; ac_datarootdir_seen= 12188 12189ac_sed_dataroot=' 12190/datarootdir/ { 12191 p 12192 q 12193} 12194/@datadir@/p 12195/@docdir@/p 12196/@infodir@/p 12197/@localedir@/p 12198/@mandir@/p 12199' 12200case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12201*datarootdir*) ac_datarootdir_seen=yes;; 12202*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12203 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12204$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12205_ACEOF 12206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12207 ac_datarootdir_hack=' 12208 s&@datadir@&$datadir&g 12209 s&@docdir@&$docdir&g 12210 s&@infodir@&$infodir&g 12211 s&@localedir@&$localedir&g 12212 s&@mandir@&$mandir&g 12213 s&\\\${datarootdir}&$datarootdir&g' ;; 12214esac 12215_ACEOF 12216 12217# Neutralize VPATH when `$srcdir' = `.'. 12218# Shell code in configure.ac might set extrasub. 12219# FIXME: do we really want to maintain this feature? 12220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12221ac_sed_extra="$ac_vpsub 12222$extrasub 12223_ACEOF 12224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12225:t 12226/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12227s|@configure_input@|$ac_sed_conf_input|;t t 12228s&@top_builddir@&$ac_top_builddir_sub&;t t 12229s&@top_build_prefix@&$ac_top_build_prefix&;t t 12230s&@srcdir@&$ac_srcdir&;t t 12231s&@abs_srcdir@&$ac_abs_srcdir&;t t 12232s&@top_srcdir@&$ac_top_srcdir&;t t 12233s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12234s&@builddir@&$ac_builddir&;t t 12235s&@abs_builddir@&$ac_abs_builddir&;t t 12236s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12237s&@INSTALL@&$ac_INSTALL&;t t 12238s&@MKDIR_P@&$ac_MKDIR_P&;t t 12239$ac_datarootdir_hack 12240" 12241eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12242 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12243$as_echo "$as_me: error: could not create $ac_file" >&2;} 12244 { (exit 1); exit 1; }; } 12245 12246test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12249 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12250which seems to be undefined. Please make sure it is defined." >&5 12251$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12252which seems to be undefined. Please make sure it is defined." >&2;} 12253 12254 rm -f "$tmp/stdin" 12255 case $ac_file in 12256 -) cat "$tmp/out" && rm -f "$tmp/out";; 12257 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12258 esac \ 12259 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12260$as_echo "$as_me: error: could not create $ac_file" >&2;} 12261 { (exit 1); exit 1; }; } 12262 ;; 12263 :H) 12264 # 12265 # CONFIG_HEADER 12266 # 12267 if test x"$ac_file" != x-; then 12268 { 12269 $as_echo "/* $configure_input */" \ 12270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12271 } >"$tmp/config.h" \ 12272 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12273$as_echo "$as_me: error: could not create $ac_file" >&2;} 12274 { (exit 1); exit 1; }; } 12275 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12276 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12277$as_echo "$as_me: $ac_file is unchanged" >&6;} 12278 else 12279 rm -f "$ac_file" 12280 mv "$tmp/config.h" "$ac_file" \ 12281 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12282$as_echo "$as_me: error: could not create $ac_file" >&2;} 12283 { (exit 1); exit 1; }; } 12284 fi 12285 else 12286 $as_echo "/* $configure_input */" \ 12287 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12288 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 12289$as_echo "$as_me: error: could not create -" >&2;} 12290 { (exit 1); exit 1; }; } 12291 fi 12292# Compute "$ac_file"'s index in $config_headers. 12293_am_arg="$ac_file" 12294_am_stamp_count=1 12295for _am_header in $config_headers :; do 12296 case $_am_header in 12297 $_am_arg | $_am_arg:* ) 12298 break ;; 12299 * ) 12300 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12301 esac 12302done 12303echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12304$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12305 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12306 X"$_am_arg" : 'X\(//\)$' \| \ 12307 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12308$as_echo X"$_am_arg" | 12309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12310 s//\1/ 12311 q 12312 } 12313 /^X\(\/\/\)[^/].*/{ 12314 s//\1/ 12315 q 12316 } 12317 /^X\(\/\/\)$/{ 12318 s//\1/ 12319 q 12320 } 12321 /^X\(\/\).*/{ 12322 s//\1/ 12323 q 12324 } 12325 s/.*/./; q'`/stamp-h$_am_stamp_count 12326 ;; 12327 12328 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 12329$as_echo "$as_me: executing $ac_file commands" >&6;} 12330 ;; 12331 esac 12332 12333 12334 case $ac_file$ac_mode in 12335 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 12336 # Strip MF so we end up with the name of the file. 12337 mf=`echo "$mf" | sed -e 's/:.*$//'` 12338 # Check whether this is an Automake generated Makefile or not. 12339 # We used to match only the files named `Makefile.in', but 12340 # some people rename them; so instead we look at the file content. 12341 # Grep'ing the first line is not enough: some people post-process 12342 # each Makefile.in and add a new line on top of each file to say so. 12343 # Grep'ing the whole file is not good either: AIX grep has a line 12344 # limit of 2048, but all sed's we know have understand at least 4000. 12345 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12346 dirpart=`$as_dirname -- "$mf" || 12347$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12348 X"$mf" : 'X\(//\)[^/]' \| \ 12349 X"$mf" : 'X\(//\)$' \| \ 12350 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12351$as_echo X"$mf" | 12352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12353 s//\1/ 12354 q 12355 } 12356 /^X\(\/\/\)[^/].*/{ 12357 s//\1/ 12358 q 12359 } 12360 /^X\(\/\/\)$/{ 12361 s//\1/ 12362 q 12363 } 12364 /^X\(\/\).*/{ 12365 s//\1/ 12366 q 12367 } 12368 s/.*/./; q'` 12369 else 12370 continue 12371 fi 12372 # Extract the definition of DEPDIR, am__include, and am__quote 12373 # from the Makefile without running `make'. 12374 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12375 test -z "$DEPDIR" && continue 12376 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12377 test -z "am__include" && continue 12378 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12379 # When using ansi2knr, U may be empty or an underscore; expand it 12380 U=`sed -n 's/^U = //p' < "$mf"` 12381 # Find all dependency output files, they are included files with 12382 # $(DEPDIR) in their names. We invoke sed twice because it is the 12383 # simplest approach to changing $(DEPDIR) to its actual value in the 12384 # expansion. 12385 for file in `sed -n " 12386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12388 # Make sure the directory exists. 12389 test -f "$dirpart/$file" && continue 12390 fdir=`$as_dirname -- "$file" || 12391$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12392 X"$file" : 'X\(//\)[^/]' \| \ 12393 X"$file" : 'X\(//\)$' \| \ 12394 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12395$as_echo X"$file" | 12396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12397 s//\1/ 12398 q 12399 } 12400 /^X\(\/\/\)[^/].*/{ 12401 s//\1/ 12402 q 12403 } 12404 /^X\(\/\/\)$/{ 12405 s//\1/ 12406 q 12407 } 12408 /^X\(\/\).*/{ 12409 s//\1/ 12410 q 12411 } 12412 s/.*/./; q'` 12413 { as_dir=$dirpart/$fdir 12414 case $as_dir in #( 12415 -*) as_dir=./$as_dir;; 12416 esac 12417 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12418 as_dirs= 12419 while :; do 12420 case $as_dir in #( 12421 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12422 *) as_qdir=$as_dir;; 12423 esac 12424 as_dirs="'$as_qdir' $as_dirs" 12425 as_dir=`$as_dirname -- "$as_dir" || 12426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12427 X"$as_dir" : 'X\(//\)[^/]' \| \ 12428 X"$as_dir" : 'X\(//\)$' \| \ 12429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12430$as_echo X"$as_dir" | 12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\(\/\/\)[^/].*/{ 12436 s//\1/ 12437 q 12438 } 12439 /^X\(\/\/\)$/{ 12440 s//\1/ 12441 q 12442 } 12443 /^X\(\/\).*/{ 12444 s//\1/ 12445 q 12446 } 12447 s/.*/./; q'` 12448 test -d "$as_dir" && break 12449 done 12450 test -z "$as_dirs" || eval "mkdir $as_dirs" 12451 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12452$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 12453 { (exit 1); exit 1; }; }; } 12454 # echo "creating $dirpart/$file" 12455 echo '# dummy' > "$dirpart/$file" 12456 done 12457done 12458 ;; 12459 12460 esac 12461done # for ac_tag 12462 12463 12464{ (exit 0); exit 0; } 12465_ACEOF 12466chmod +x $CONFIG_STATUS 12467ac_clean_files=$ac_clean_files_save 12468 12469test $ac_write_fail = 0 || 12470 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 12471$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 12472 { (exit 1); exit 1; }; } 12473 12474 12475# configure is writing to config.log, and then calls config.status. 12476# config.status does its own redirection, appending to config.log. 12477# Unfortunately, on DOS this fails, as config.log is still kept open 12478# by configure, so config.status won't be able to write to it; its 12479# output is simply discarded. So we exec the FD to /dev/null, 12480# effectively closing config.log, so it can be properly (re)opened and 12481# appended to by config.status. When coming back to configure, we 12482# need to make the FD available again. 12483if test "$no_create" != yes; then 12484 ac_cs_success=: 12485 ac_config_status_args= 12486 test "$silent" = yes && 12487 ac_config_status_args="$ac_config_status_args --quiet" 12488 exec 5>/dev/null 12489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12490 exec 5>>config.log 12491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12492 # would make configure fail if this is the last instruction. 12493 $ac_cs_success || { (exit 1); exit 1; } 12494fi 12495 12496# 12497# CONFIG_SUBDIRS section. 12498# 12499if test "$no_recursion" != yes; then 12500 12501 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 12502 # so they do not pile up. 12503 ac_sub_configure_args= 12504 ac_prev= 12505 eval "set x $ac_configure_args" 12506 shift 12507 for ac_arg 12508 do 12509 if test -n "$ac_prev"; then 12510 ac_prev= 12511 continue 12512 fi 12513 case $ac_arg in 12514 -cache-file | --cache-file | --cache-fil | --cache-fi \ 12515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 12516 ac_prev=cache_file ;; 12517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 12518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 12519 | --c=*) 12520 ;; 12521 --config-cache | -C) 12522 ;; 12523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 12524 ac_prev=srcdir ;; 12525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 12526 ;; 12527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 12528 ac_prev=prefix ;; 12529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 12530 ;; 12531 --disable-option-checking) 12532 ;; 12533 *) 12534 case $ac_arg in 12535 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 12536 esac 12537 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 12538 esac 12539 done 12540 12541 # Always prepend --prefix to ensure using the same prefix 12542 # in subdir configurations. 12543 ac_arg="--prefix=$prefix" 12544 case $ac_arg in 12545 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 12546 esac 12547 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 12548 12549 # Pass --silent 12550 if test "$silent" = yes; then 12551 ac_sub_configure_args="--silent $ac_sub_configure_args" 12552 fi 12553 12554 # Always prepend --disable-option-checking to silence warnings, since 12555 # different subdirs can have different --enable and --with options. 12556 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 12557 12558 ac_popdir=`pwd` 12559 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 12560 12561 # Do not complain, so a configure script can configure whichever 12562 # parts of a large source tree are present. 12563 test -d "$srcdir/$ac_dir" || continue 12564 12565 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 12566 $as_echo "$as_me:$LINENO: $ac_msg" >&5 12567 $as_echo "$ac_msg" >&6 12568 { as_dir="$ac_dir" 12569 case $as_dir in #( 12570 -*) as_dir=./$as_dir;; 12571 esac 12572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12573 as_dirs= 12574 while :; do 12575 case $as_dir in #( 12576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12577 *) as_qdir=$as_dir;; 12578 esac 12579 as_dirs="'$as_qdir' $as_dirs" 12580 as_dir=`$as_dirname -- "$as_dir" || 12581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12582 X"$as_dir" : 'X\(//\)[^/]' \| \ 12583 X"$as_dir" : 'X\(//\)$' \| \ 12584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12585$as_echo X"$as_dir" | 12586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12587 s//\1/ 12588 q 12589 } 12590 /^X\(\/\/\)[^/].*/{ 12591 s//\1/ 12592 q 12593 } 12594 /^X\(\/\/\)$/{ 12595 s//\1/ 12596 q 12597 } 12598 /^X\(\/\).*/{ 12599 s//\1/ 12600 q 12601 } 12602 s/.*/./; q'` 12603 test -d "$as_dir" && break 12604 done 12605 test -z "$as_dirs" || eval "mkdir $as_dirs" 12606 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12607$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 12608 { (exit 1); exit 1; }; }; } 12609 ac_builddir=. 12610 12611case "$ac_dir" in 12612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12613*) 12614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12615 # A ".." for each directory in $ac_dir_suffix. 12616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12617 case $ac_top_builddir_sub in 12618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12620 esac ;; 12621esac 12622ac_abs_top_builddir=$ac_pwd 12623ac_abs_builddir=$ac_pwd$ac_dir_suffix 12624# for backward compatibility: 12625ac_top_builddir=$ac_top_build_prefix 12626 12627case $srcdir in 12628 .) # We are building in place. 12629 ac_srcdir=. 12630 ac_top_srcdir=$ac_top_builddir_sub 12631 ac_abs_top_srcdir=$ac_pwd ;; 12632 [\\/]* | ?:[\\/]* ) # Absolute name. 12633 ac_srcdir=$srcdir$ac_dir_suffix; 12634 ac_top_srcdir=$srcdir 12635 ac_abs_top_srcdir=$srcdir ;; 12636 *) # Relative name. 12637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12638 ac_top_srcdir=$ac_top_build_prefix$srcdir 12639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12640esac 12641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12642 12643 12644 cd "$ac_dir" 12645 12646 # Check for guested configure; otherwise get Cygnus style configure. 12647 if test -f "$ac_srcdir/configure.gnu"; then 12648 ac_sub_configure=$ac_srcdir/configure.gnu 12649 elif test -f "$ac_srcdir/configure"; then 12650 ac_sub_configure=$ac_srcdir/configure 12651 elif test -f "$ac_srcdir/configure.in"; then 12652 # This should be Cygnus configure. 12653 ac_sub_configure=$ac_aux_dir/configure 12654 else 12655 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 12656$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 12657 ac_sub_configure= 12658 fi 12659 12660 # The recursion is here. 12661 if test -n "$ac_sub_configure"; then 12662 # Make the cache file name correct relative to the subdirectory. 12663 case $cache_file in 12664 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 12665 *) # Relative name. 12666 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 12667 esac 12668 12669 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 12670$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 12671 # The eval makes quoting arguments work. 12672 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 12673 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 12674 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 12675$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 12676 { (exit 1); exit 1; }; } 12677 fi 12678 12679 cd "$ac_popdir" 12680 done 12681fi 12682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12683 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12685fi 12686 12687 12688cat <<EOF 12689* Streamripper configuration 12690 Using included MAD library? $use_included_libmad 12691 Ogg/vorbis support? $sr_have_ogg 12692EOF 12693 12694