Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="mad.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_subst_vars='am__EXEEXT_FALSE
596 am__EXEEXT_TRUE
597 LTLIBOBJS
598 DO_SYMLINK_FALSE
599 DO_SYMLINK_TRUE
600 LIBOBJS
601 EGREP
602 GREP
603 CPP
604 AO_LIBS
605 AO_CFLAGS
606 LN_S
607 am__fastdepCC_FALSE
608 am__fastdepCC_TRUE
609 CCDEPMODE
610 AMDEPBACKSLASH
611 AMDEP_FALSE
612 AMDEP_TRUE
613 am__quote
614 am__include
615 DEPDIR
616 OBJEXT
617 EXEEXT
618 ac_ct_CC
619 CPPFLAGS
620 LDFLAGS
621 CFLAGS
622 CC
623 am__untar
624 am__tar
625 AMTAR
626 am__leading_dot
627 SET_MAKE
628 AWK
629 mkdir_p
630 MKDIR_P
631 INSTALL_STRIP_PROGRAM
632 STRIP
633 install_sh
634 MAKEINFO
635 AUTOHEADER
636 AUTOMAKE
637 AUTOCONF
638 ACLOCAL
639 VERSION
640 PACKAGE
641 CYGPATH_W
642 am__isrc
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 target_alias
647 host_alias
648 build_alias
649 LIBS
650 ECHO_T
651 ECHO_N
652 ECHO_C
653 DEFS
654 mandir
655 localedir
656 libdir
657 psdir
658 pdfdir
659 dvidir
660 htmldir
661 infodir
662 docdir
663 oldincludedir
664 includedir
665 localstatedir
666 sharedstatedir
667 sysconfdir
668 datadir
669 datarootdir
670 libexecdir
671 sbindir
672 bindir
673 program_transform_name
674 prefix
675 exec_prefix
676 PACKAGE_URL
677 PACKAGE_BUGREPORT
678 PACKAGE_STRING
679 PACKAGE_VERSION
680 PACKAGE_TARNAME
681 PACKAGE_NAME
682 PATH_SEPARATOR
683 SHELL'
684 ac_subst_files=''
685 ac_user_opts='
686 enable_option_checking
687 enable_dependency_tracking
688 with_ao
689 with_ao_libraries
690 with_ao_includes
691 enable_aotest
692 enable_largefile
693 enable_mpg123_symlink
694 enable_ipv6
695 enable_debug
696 enable_alsa
697 with_default_audio
698 '
699 ac_precious_vars='build_alias
700 host_alias
701 target_alias
702 CC
703 CFLAGS
704 LDFLAGS
705 LIBS
706 CPPFLAGS
707 CPP'
708
709
710 # Initialize some variables set by options.
711 ac_init_help=
712 ac_init_version=false
713 ac_unrecognized_opts=
714 ac_unrecognized_sep=
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
717 cache_file=/dev/null
718 exec_prefix=NONE
719 no_create=
720 no_recursion=
721 prefix=NONE
722 program_prefix=NONE
723 program_suffix=NONE
724 program_transform_name=s,x,x,
725 silent=
726 site=
727 srcdir=
728 verbose=
729 x_includes=NONE
730 x_libraries=NONE
731
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE}'
749 infodir='${datarootdir}/info'
750 htmldir='${docdir}'
751 dvidir='${docdir}'
752 pdfdir='${docdir}'
753 psdir='${docdir}'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
757
758 ac_prev=
759 ac_dashdash=
760 for ac_option
761 do
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
765 ac_prev=
766 continue
767 fi
768
769 case $ac_option in
770 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
771 *=) ac_optarg= ;;
772 *) ac_optarg=yes ;;
773 esac
774
775 # Accept the important Cygnus configure options, so we can diagnose typos.
776
777 case $ac_dashdash$ac_option in
778 --)
779 ac_dashdash=yes ;;
780
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 ac_prev=bindir ;;
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 bindir=$ac_optarg ;;
785
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
790
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
797
798 --config-cache | -C)
799 cache_file=config.cache ;;
800
801 -datadir | --datadir | --datadi | --datad)
802 ac_prev=datadir ;;
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
805
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
812
813 -disable-* | --disable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error $? "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
821 *"
822 "enable_$ac_useropt"
823 "*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
826 esac
827 eval enable_$ac_useropt=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error $? "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=\$ac_optarg ;;
854
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
863
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
866 with_gas=yes ;;
867
868 -help | --help | --hel | --he | -h)
869 ac_init_help=long ;;
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
874
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
879
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 ac_prev=htmldir ;;
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 | --ht=*)
884 htmldir=$ac_optarg ;;
885
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
892
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 ac_prev=infodir ;;
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
897
898 -libdir | --libdir | --libdi | --libd)
899 ac_prev=libdir ;;
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 libdir=$ac_optarg ;;
902
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
909
910 -localedir | --localedir | --localedi | --localed | --locale)
911 ac_prev=localedir ;;
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
914
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
921
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 ac_prev=mandir ;;
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 mandir=$ac_optarg ;;
926
927 -nfp | --nfp | --nf)
928 # Obsolete; use --without-fp.
929 with_fp=no ;;
930
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
933 no_create=yes ;;
934
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 no_recursion=yes ;;
938
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
947
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 ac_prev=prefix ;;
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 prefix=$ac_optarg ;;
952
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
959
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
966
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
983
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 ac_prev=pdfdir ;;
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 pdfdir=$ac_optarg ;;
988
989 -psdir | --psdir | --psdi | --psd | --ps)
990 ac_prev=psdir ;;
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 psdir=$ac_optarg ;;
993
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
996 silent=yes ;;
997
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 ac_prev=sbindir ;;
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 | --sbi=* | --sb=*)
1002 sbindir=$ac_optarg ;;
1003
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1007 | --sha | --sh)
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 | --sha=* | --sh=*)
1013 sharedstatedir=$ac_optarg ;;
1014
1015 -site | --site | --sit)
1016 ac_prev=site ;;
1017 -site=* | --site=* | --sit=*)
1018 site=$ac_optarg ;;
1019
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 ac_prev=srcdir ;;
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1024
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1031
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1036
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 verbose=yes ;;
1039
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1042
1043 -with-* | --with-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid package name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "with_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval with_$ac_useropt=\$ac_optarg ;;
1058
1059 -without-* | --without-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "with_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1094 Try \`$0 --help' for more information"
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1102 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1103 esac
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error $? "missing argument to $ac_option"
1121 fi
1122
1123 if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1125 no) ;;
1126 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 esac
1129 fi
1130
1131 # Check all directory arguments for consistency.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1136 do
1137 eval ac_val=\$$ac_var
1138 # Remove trailing slashes.
1139 case $ac_val in
1140 */ )
1141 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\$ac_val;;
1143 esac
1144 # Be sure to have absolute directory names.
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1150 done
1151
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1155 build=$build_alias
1156 host=$host_alias
1157 target=$target_alias
1158
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used" >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168 fi
1169
1170 ac_tool_prefix=
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173 test "$silent" = yes && exec 6>/dev/null
1174
1175
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error $? "working directory cannot be determined"
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error $? "pwd does not report name of working directory"
1182
1183
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193 $as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1214 fi
1215 else
1216 ac_srcdir_defaulted=no
1217 fi
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229 fi
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1242
1243 #
1244 # Report the --help message.
1245 #
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures this package to adapt to many kinds of systems.
1251
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257 Defaults for the options are specified in brackets.
1258
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking ...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1275
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1280
1281 For better control, use the options below.
1282
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1304
1305 cat <<\_ACEOF
1306
1307 Program names:
1308 --program-prefix=PREFIX prepend PREFIX to installed program names
1309 --program-suffix=SUFFIX append SUFFIX to installed program names
1310 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1311 _ACEOF
1312 fi
1313
1314 if test -n "$ac_init_help"; then
1315
1316 cat <<\_ACEOF
1317
1318 Optional Features:
1319 --disable-option-checking ignore unrecognized --enable/--with options
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --disable-dependency-tracking speeds up one-time build
1323 --enable-dependency-tracking do not reject slow dependency extractors
1324 --disable-aotest Do not try to compile and run a test ao program
1325 --disable-largefile omit support for large files
1326 --enable-mpg123-symlink Enable symlink of mpg123 to mpg321 [default=yes]
1327 --enable-ipv6 enable IPv6 support [default: no]
1328 --enable-debug Debug messages to stderr. Only for developers. [default=no]
1329   --enable-alsa=no/yes enable ALSA
1330 default=yes
1331
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-ao=PFX Prefix where libao is installed (optional)
1336 --with-ao-libraries=DIR Directory where libao library is installed (optional)
1337 --with-ao-includes=DIR Directory where libao header files are installed (optional)
1338 --with-default-audio=DA Specify default libao output plugin to use
1339 [oss,sun,alsa(09),esd,arts]
1340
1341 Some influential environment variables:
1342 CC C compiler command
1343 CFLAGS C compiler flags
1344 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1345 nonstandard directory <lib dir>
1346 LIBS libraries to pass to the linker, e.g. -l<library>
1347 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1348 you have headers in a nonstandard directory <include dir>
1349 CPP C preprocessor
1350
1351 Use these variables to override the choices made by `configure' or to help
1352 it to find libraries and programs with nonstandard names/locations.
1353
1354 Report bugs to the package provider.
1355 _ACEOF
1356 ac_status=$?
1357 fi
1358
1359 if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" ||
1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1364 continue
1365 ac_builddir=.
1366
1367 case "$ac_dir" in
1368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 *)
1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371 # A ".." for each directory in $ac_dir_suffix.
1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373 case $ac_top_builddir_sub in
1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1376 esac ;;
1377 esac
1378 ac_abs_top_builddir=$ac_pwd
1379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380 # for backward compatibility:
1381 ac_top_builddir=$ac_top_build_prefix
1382
1383 case $srcdir in
1384 .) # We are building in place.
1385 ac_srcdir=.
1386 ac_top_srcdir=$ac_top_builddir_sub
1387 ac_abs_top_srcdir=$ac_pwd ;;
1388 [\\/]* | ?:[\\/]* ) # Absolute name.
1389 ac_srcdir=$srcdir$ac_dir_suffix;
1390 ac_top_srcdir=$srcdir
1391 ac_abs_top_srcdir=$srcdir ;;
1392 *) # Relative name.
1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394 ac_top_srcdir=$ac_top_build_prefix$srcdir
1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1396 esac
1397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398
1399 cd "$ac_dir" || { ac_status=$?; continue; }
1400 # Check for guested configure.
1401 if test -f "$ac_srcdir/configure.gnu"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404 elif test -f "$ac_srcdir/configure"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure" --help=recursive
1407 else
1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1409 fi || ac_status=$?
1410 cd "$ac_pwd" || { ac_status=$?; break; }
1411 done
1412 fi
1413
1414 test -n "$ac_init_help" && exit $ac_status
1415 if $ac_init_version; then
1416 cat <<\_ACEOF
1417 configure
1418 generated by GNU Autoconf 2.67
1419
1420 Copyright (C) 2010 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1423 _ACEOF
1424 exit
1425 fi
1426
1427 ## ------------------------ ##
1428 ## Autoconf initialization. ##
1429 ## ------------------------ ##
1430
1431 # ac_fn_c_try_compile LINENO
1432 # --------------------------
1433 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1434 ac_fn_c_try_compile ()
1435 {
1436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1437 rm -f conftest.$ac_objext
1438 if { { ac_try="$ac_compile"
1439 case "(($ac_try" in
1440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1441 *) ac_try_echo=$ac_try;;
1442 esac
1443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1444 $as_echo "$ac_try_echo"; } >&5
1445 (eval "$ac_compile") 2>conftest.err
1446 ac_status=$?
1447 if test -s conftest.err; then
1448 grep -v '^ *+' conftest.err >conftest.er1
1449 cat conftest.er1 >&5
1450 mv -f conftest.er1 conftest.err
1451 fi
1452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1453 test $ac_status = 0; } && {
1454 test -z "$ac_c_werror_flag" ||
1455 test ! -s conftest.err
1456 } && test -s conftest.$ac_objext; then :
1457 ac_retval=0
1458 else
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.$ac_ext >&5
1461
1462 ac_retval=1
1463 fi
1464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1465 as_fn_set_status $ac_retval
1466
1467 } # ac_fn_c_try_compile
1468
1469 # ac_fn_c_try_link LINENO
1470 # -----------------------
1471 # Try to link conftest.$ac_ext, and return whether this succeeded.
1472 ac_fn_c_try_link ()
1473 {
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext conftest$ac_exeext
1476 if { { ac_try="$ac_link"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_link") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest$ac_exeext && {
1495 test "$cross_compiling" = yes ||
1496 $as_test_x conftest$ac_exeext
1497 }; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503 ac_retval=1
1504 fi
1505 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1506 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1507 # interfere with the next link command; also delete a directory that is
1508 # left behind by Apple's compiler. We do this before executing the actions.
1509 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 as_fn_set_status $ac_retval
1512
1513 } # ac_fn_c_try_link
1514
1515 # ac_fn_c_check_func LINENO FUNC VAR
1516 # ----------------------------------
1517 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1518 ac_fn_c_check_func ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522 $as_echo_n "checking for $2... " >&6; }
1523 if eval "test \"\${$3+set}\"" = set; then :
1524 $as_echo_n "(cached) " >&6
1525 else
1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527 /* end confdefs.h. */
1528 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1530 #define $2 innocuous_$2
1531
1532 /* System header to define __stub macros and hopefully few prototypes,
1533 which can conflict with char $2 (); below.
1534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1535 <limits.h> exists even on freestanding compilers. */
1536
1537 #ifdef __STDC__
1538 # include <limits.h>
1539 #else
1540 # include <assert.h>
1541 #endif
1542
1543 #undef $2
1544
1545 /* Override any GCC internal prototype to avoid an error.
1546 Use char because int might match the return type of a GCC
1547 builtin and then its argument prototype would still apply. */
1548 #ifdef __cplusplus
1549 extern "C"
1550 #endif
1551 char $2 ();
1552 /* The GNU C library defines this for functions which it implements
1553 to always fail with ENOSYS. Some functions are actually named
1554 something starting with __ and the normal name is an alias. */
1555 #if defined __stub_$2 || defined __stub___$2
1556 choke me
1557 #endif
1558
1559 int
1560 main ()
1561 {
1562 return $2 ();
1563 ;
1564 return 0;
1565 }
1566 _ACEOF
1567 if ac_fn_c_try_link "$LINENO"; then :
1568 eval "$3=yes"
1569 else
1570 eval "$3=no"
1571 fi
1572 rm -f core conftest.err conftest.$ac_objext \
1573 conftest$ac_exeext conftest.$ac_ext
1574 fi
1575 eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579
1580 } # ac_fn_c_check_func
1581
1582 # ac_fn_c_try_run LINENO
1583 # ----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585 # that executables *can* be run.
1586 ac_fn_c_try_run ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>&5
1597 ac_status=$?
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600 { { case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_try") 2>&5
1607 ac_status=$?
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; }; }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: program exited with status $ac_status" >&5
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=$ac_status
1617 fi
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_run
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1665 # accordingly.
1666 ac_fn_c_check_header_mongrel ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if eval "test \"\${$3+set}\"" = set; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval "test \"\${$3+set}\"" = set; then :
1673 $as_echo_n "(cached) " >&6
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 else
1679 # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1689 else
1690 ac_header_compiler=no
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1695
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1705 else
1706 ac_header_preproc=no
1707 fi
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1711
1712 # So? What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 yes:no: )
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720 no:yes:* )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ;;
1732 esac
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval "test \"\${$3+set}\"" = set; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 eval "$3=\$ac_header_compiler"
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745
1746 } # ac_fn_c_check_header_mongrel
1747
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval "test \"\${$3+set}\"" = set; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776
1777 } # ac_fn_c_check_header_compile
1778 cat >config.log <<_ACEOF
1779 This file contains any messages produced by compilers while
1780 running configure, to aid debugging if configure makes a mistake.
1781
1782 It was created by $as_me, which was
1783 generated by GNU Autoconf 2.67. Invocation command line was
1784
1785 $ $0 $@
1786
1787 _ACEOF
1788 exec 5>>config.log
1789 {
1790 cat <<_ASUNAME
1791 ## --------- ##
1792 ## Platform. ##
1793 ## --------- ##
1794
1795 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800
1801 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1803
1804 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1805 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1806 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1808 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1809 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1810 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1811
1812 _ASUNAME
1813
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 $as_echo "PATH: $as_dir"
1820 done
1821 IFS=$as_save_IFS
1822
1823 } >&5
1824
1825 cat >&5 <<_ACEOF
1826
1827
1828 ## ----------- ##
1829 ## Core tests. ##
1830 ## ----------- ##
1831
1832 _ACEOF
1833
1834
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1840 ac_configure_args=
1841 ac_configure_args0=
1842 ac_configure_args1=
1843 ac_must_keep_next=false
1844 for ac_pass in 1 2
1845 do
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 | -silent | --silent | --silen | --sile | --sil)
1852 continue ;;
1853 *\'*)
1854 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 case $ac_pass in
1857 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858 2)
1859 as_fn_append ac_configure_args1 " '$ac_arg'"
1860 if test $ac_must_keep_next = true; then
1861 ac_must_keep_next=false # Got value, back to normal.
1862 else
1863 case $ac_arg in
1864 *=* | --config-cache | -C | -disable-* | --disable-* \
1865 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 | -with-* | --with-* | -without-* | --without-* | --x)
1868 case "$ac_configure_args0 " in
1869 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 esac
1871 ;;
1872 -* ) ac_must_keep_next=true ;;
1873 esac
1874 fi
1875 as_fn_append ac_configure_args " '$ac_arg'"
1876 ;;
1877 esac
1878 done
1879 done
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1882
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log. We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889 # Save into config.log some information that might help in debugging.
1890 {
1891 echo
1892
1893 $as_echo "## ---------------- ##
1894 ## Cache variables. ##
1895 ## ---------------- ##"
1896 echo
1897 # The following way of writing the cache mishandles newlines in values,
1898 (
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in #(
1902 *${as_nl}*)
1903 case $ac_var in #(
1904 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 esac
1907 case $ac_var in #(
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) { eval $ac_var=; unset $ac_var;} ;;
1911 esac ;;
1912 esac
1913 done
1914 (set) 2>&1 |
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1917 sed -n \
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 ;; #(
1921 *)
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923 ;;
1924 esac |
1925 sort
1926 )
1927 echo
1928
1929 $as_echo "## ----------------- ##
1930 ## Output variables. ##
1931 ## ----------------- ##"
1932 echo
1933 for ac_var in $ac_subst_vars
1934 do
1935 eval ac_val=\$$ac_var
1936 case $ac_val in
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 esac
1939 $as_echo "$ac_var='\''$ac_val'\''"
1940 done | sort
1941 echo
1942
1943 if test -n "$ac_subst_files"; then
1944 $as_echo "## ------------------- ##
1945 ## File substitutions. ##
1946 ## ------------------- ##"
1947 echo
1948 for ac_var in $ac_subst_files
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 $as_echo "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957 fi
1958
1959 if test -s confdefs.h; then
1960 $as_echo "## ----------- ##
1961 ## confdefs.h. ##
1962 ## ----------- ##"
1963 echo
1964 cat confdefs.h
1965 echo
1966 fi
1967 test "$ac_signal" != 0 &&
1968 $as_echo "$as_me: caught signal $ac_signal"
1969 $as_echo "$as_me: exit $exit_status"
1970 } >&5
1971 rm -f core *.core core.conftest.* &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973 exit $exit_status
1974 ' 0
1975 for ac_signal in 1 2 13 15; do
1976 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977 done
1978 ac_signal=0
1979
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1982
1983 $as_echo "/* confdefs.h */" > confdefs.h
1984
1985 # Predefined preprocessor variables.
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_STRING "$PACKAGE_STRING"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_URL "$PACKAGE_URL"
2009 _ACEOF
2010
2011
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2014 ac_site_file1=NONE
2015 ac_site_file2=NONE
2016 if test -n "$CONFIG_SITE"; then
2017 # We do not want a PATH search for config.site.
2018 case $CONFIG_SITE in #((
2019 -*) ac_site_file1=./$CONFIG_SITE;;
2020 */*) ac_site_file1=$CONFIG_SITE;;
2021 *) ac_site_file1=./$CONFIG_SITE;;
2022 esac
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_file1=$prefix/share/config.site
2025 ac_site_file2=$prefix/etc/config.site
2026 else
2027 ac_site_file1=$ac_default_prefix/share/config.site
2028 ac_site_file2=$ac_default_prefix/etc/config.site
2029 fi
2030 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 do
2032 test "x$ac_site_file" = xNONE && continue
2033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2037 . "$ac_site_file" \
2038 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5 ; }
2042 fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 $as_echo "$as_me: loading cache $cache_file" >&6;}
2051 case $cache_file in
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2054 esac
2055 fi
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 $as_echo "$as_me: creating cache $cache_file" >&6;}
2059 >$cache_file
2060 fi
2061
2062 as_fn_append ac_header_list " stdlib.h"
2063 as_fn_append ac_header_list " unistd.h"
2064 as_fn_append ac_header_list " sys/param.h"
2065 # Check that the precious variables saved in the cache have kept the same
2066 # value.
2067 ac_cache_corrupted=false
2068 for ac_var in $ac_precious_vars; do
2069 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2070 eval ac_new_set=\$ac_env_${ac_var}_set
2071 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2072 eval ac_new_val=\$ac_env_${ac_var}_value
2073 case $ac_old_set,$ac_new_set in
2074 set,)
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2076 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2077 ac_cache_corrupted=: ;;
2078 ,set)
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2082 ,);;
2083 *)
2084 if test "x$ac_old_val" != "x$ac_new_val"; then
2085 # differences in whitespace do not lead to failure.
2086 ac_old_val_w=`echo x $ac_old_val`
2087 ac_new_val_w=`echo x $ac_new_val`
2088 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2090 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2091 ac_cache_corrupted=:
2092 else
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2094 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2095 eval $ac_var=\$ac_old_val
2096 fi
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2098 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2100 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2101 fi;;
2102 esac
2103 # Pass precious variables to config.status.
2104 if test "$ac_new_set" = set; then
2105 case $ac_new_val in
2106 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 *) ac_arg=$ac_var=$ac_new_val ;;
2108 esac
2109 case " $ac_configure_args " in
2110 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2111 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2112 esac
2113 fi
2114 done
2115 if $ac_cache_corrupted; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2119 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2120 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2121 fi
2122 ## -------------------- ##
2123 ## Main body of script. ##
2124 ## -------------------- ##
2125
2126 ac_ext=c
2127 ac_cpp='$CPP $CPPFLAGS'
2128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131
2132
2133
2134 ac_config_headers="$ac_config_headers config.h"
2135
2136 am__api_version='1.11'
2137
2138 ac_aux_dir=
2139 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2140 if test -f "$ac_dir/install-sh"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/install-sh -c"
2143 break
2144 elif test -f "$ac_dir/install.sh"; then
2145 ac_aux_dir=$ac_dir
2146 ac_install_sh="$ac_aux_dir/install.sh -c"
2147 break
2148 elif test -f "$ac_dir/shtool"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/shtool install -c"
2151 break
2152 fi
2153 done
2154 if test -z "$ac_aux_dir"; then
2155 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2156 fi
2157
2158 # These three variables are undocumented and unsupported,
2159 # and are intended to be withdrawn in a future Autoconf release.
2160 # They can cause serious problems if a builder's source tree is in a directory
2161 # whose full name contains unusual characters.
2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2164 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2165
2166
2167 # Find a good install program. We prefer a C program (faster),
2168 # so one script is as good as another. But avoid the broken or
2169 # incompatible versions:
2170 # SysV /etc/install, /usr/sbin/install
2171 # SunOS /usr/etc/install
2172 # IRIX /sbin/install
2173 # AIX /bin/install
2174 # AmigaOS /C/install, which installs bootblocks on floppy discs
2175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2178 # OS/2's system install, which has a completely different semantic
2179 # ./install, which can be erroneously created by make from ./install.sh.
2180 # Reject install programs that cannot install multiple files.
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2182 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2183 if test -z "$INSTALL"; then
2184 if test "${ac_cv_path_install+set}" = set; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 # Account for people who put trailing slashes in PATH elements.
2193 case $as_dir/ in #((
2194 ./ | .// | /[cC]/* | \
2195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2196 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2197 /usr/ucb/* ) ;;
2198 *)
2199 # OSF1 and SCO ODT 3.0 have their own names for install.
2200 # Don't use installbsd from OSF since it installs stuff as root
2201 # by default.
2202 for ac_prog in ginstall scoinst install; do
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2205 if test $ac_prog = install &&
2206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # AIX install. It has an incompatible calling convention.
2208 :
2209 elif test $ac_prog = install &&
2210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # program-specific install script used by HP pwplus--don't use.
2212 :
2213 else
2214 rm -rf conftest.one conftest.two conftest.dir
2215 echo one > conftest.one
2216 echo two > conftest.two
2217 mkdir conftest.dir
2218 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2219 test -s conftest.one && test -s conftest.two &&
2220 test -s conftest.dir/conftest.one &&
2221 test -s conftest.dir/conftest.two
2222 then
2223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2224 break 3
2225 fi
2226 fi
2227 fi
2228 done
2229 done
2230 ;;
2231 esac
2232
2233 done
2234 IFS=$as_save_IFS
2235
2236 rm -rf conftest.one conftest.two conftest.dir
2237
2238 fi
2239 if test "${ac_cv_path_install+set}" = set; then
2240 INSTALL=$ac_cv_path_install
2241 else
2242 # As a last resort, use the slow shell script. Don't cache a
2243 # value for INSTALL within a source directory, because that will
2244 # break other packages using the cache if that directory is
2245 # removed, or if the value is a relative name.
2246 INSTALL=$ac_install_sh
2247 fi
2248 fi
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2250 $as_echo "$INSTALL" >&6; }
2251
2252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2253 # It thinks the first close brace ends the variable substitution.
2254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2255
2256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2257
2258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2259
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2261 $as_echo_n "checking whether build environment is sane... " >&6; }
2262 # Just in case
2263 sleep 1
2264 echo timestamp > conftest.file
2265 # Reject unsafe characters in $srcdir or the absolute working directory
2266 # name. Accept space and tab only in the latter.
2267 am_lf='
2268 '
2269 case `pwd` in
2270 *[\\\"\#\$\&\'\`$am_lf]*)
2271 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2272 esac
2273 case $srcdir in
2274 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2275 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2276 esac
2277
2278 # Do `set' in a subshell so we don't clobber the current shell's
2279 # arguments. Must try -L first in case configure is actually a
2280 # symlink; some systems play weird games with the mod time of symlinks
2281 # (eg FreeBSD returns the mod time of the symlink's containing
2282 # directory).
2283 if (
2284 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2285 if test "$*" = "X"; then
2286 # -L didn't work.
2287 set X `ls -t "$srcdir/configure" conftest.file`
2288 fi
2289 rm -f conftest.file
2290 if test "$*" != "X $srcdir/configure conftest.file" \
2291 && test "$*" != "X conftest.file $srcdir/configure"; then
2292
2293 # If neither matched, then we have a broken ls. This can happen
2294 # if, for instance, CONFIG_SHELL is bash and it inherits a
2295 # broken ls alias from the environment. This has actually
2296 # happened. Such a system could not be considered "sane".
2297 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2298 alias in your environment" "$LINENO" 5
2299 fi
2300
2301 test "$2" = conftest.file
2302 )
2303 then
2304 # Ok.
2305 :
2306 else
2307 as_fn_error $? "newly created file is older than distributed files!
2308 Check your system clock" "$LINENO" 5
2309 fi
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2311 $as_echo "yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $.
2318 # By default was `s,x,x', remove it if useless.
2319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2321
2322 # expand $ac_aux_dir to an absolute path
2323 am_aux_dir=`cd $ac_aux_dir && pwd`
2324
2325 if test x"${MISSING+set}" != xset; then
2326 case $am_aux_dir in
2327 *\ * | *\ *)
2328 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2329 *)
2330 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2331 esac
2332 fi
2333 # Use eval to expand $SHELL
2334 if eval "$MISSING --run true"; then
2335 am_missing_run="$MISSING --run "
2336 else
2337 am_missing_run=
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2339 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2340 fi
2341
2342 if test x"${install_sh}" != xset; then
2343 case $am_aux_dir in
2344 *\ * | *\ *)
2345 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2346 *)
2347 install_sh="\${SHELL} $am_aux_dir/install-sh"
2348 esac
2349 fi
2350
2351 # Installed binaries are usually stripped using `strip' when the user
2352 # run `make install-strip'. However `strip' might not be the right
2353 # tool to use in cross-compilation environments, therefore Automake
2354 # will honor the `STRIP' environment variable to overrule this program.
2355 if test "$cross_compiling" != no; then
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_STRIP+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$STRIP"; then
2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 STRIP=$ac_cv_prog_STRIP
2385 if test -n "$STRIP"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2387 $as_echo "$STRIP" >&6; }
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2392
2393
2394 fi
2395 if test -z "$ac_cv_prog_STRIP"; then
2396 ac_ct_STRIP=$STRIP
2397 # Extract the first word of "strip", so it can be a program name with args.
2398 set dummy strip; ac_word=$2
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test -n "$ac_ct_STRIP"; then
2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_STRIP="strip"
2415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425 if test -n "$ac_ct_STRIP"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2427 $as_echo "$ac_ct_STRIP" >&6; }
2428 else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430 $as_echo "no" >&6; }
2431 fi
2432
2433 if test "x$ac_ct_STRIP" = x; then
2434 STRIP=":"
2435 else
2436 case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442 STRIP=$ac_ct_STRIP
2443 fi
2444 else
2445 STRIP="$ac_cv_prog_STRIP"
2446 fi
2447
2448 fi
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2452 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2453 if test -z "$MKDIR_P"; then
2454 if test "${ac_cv_path_mkdir+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_prog in mkdir gmkdir; do
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2465 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2466 'mkdir (GNU coreutils) '* | \
2467 'mkdir (coreutils) '* | \
2468 'mkdir (fileutils) '4.1*)
2469 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2470 break 3;;
2471 esac
2472 done
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478
2479 test -d ./--version && rmdir ./--version
2480 if test "${ac_cv_path_mkdir+set}" = set; then
2481 MKDIR_P="$ac_cv_path_mkdir -p"
2482 else
2483 # As a last resort, use the slow shell script. Don't cache a
2484 # value for MKDIR_P within a source directory, because that will
2485 # break other packages using the cache if that directory is
2486 # removed, or if the value is a relative name.
2487 MKDIR_P="$ac_install_sh -d"
2488 fi
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2491 $as_echo "$MKDIR_P" >&6; }
2492
2493 mkdir_p="$MKDIR_P"
2494 case $mkdir_p in
2495 [\\/$]* | ?:[\\/]*) ;;
2496 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2497 esac
2498
2499 for ac_prog in gawk mawk nawk awk
2500 do
2501 # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if test "${ac_cv_prog_AWK+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$AWK"; then
2509 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_AWK="$ac_prog"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 AWK=$ac_cv_prog_AWK
2529 if test -n "$AWK"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2531 $as_echo "$AWK" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538 test -n "$AWK" && break
2539 done
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2543 set x ${MAKE-make}
2544 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 cat >conftest.make <<\_ACEOF
2549 SHELL = /bin/sh
2550 all:
2551 @echo '@@@%%%=$(MAKE)=@@@%%%'
2552 _ACEOF
2553 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2554 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2555 *@@@%%%=?*=@@@%%%*)
2556 eval ac_cv_prog_make_${ac_make}_set=yes;;
2557 *)
2558 eval ac_cv_prog_make_${ac_make}_set=no;;
2559 esac
2560 rm -f conftest.make
2561 fi
2562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 SET_MAKE=
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 SET_MAKE="MAKE=${MAKE-make}"
2570 fi
2571
2572 rm -rf .tst 2>/dev/null
2573 mkdir .tst 2>/dev/null
2574 if test -d .tst; then
2575 am__leading_dot=.
2576 else
2577 am__leading_dot=_
2578 fi
2579 rmdir .tst 2>/dev/null
2580
2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2583 # is not polluted with repeated "-I."
2584 am__isrc=' -I$(srcdir)'
2585 # test to see if srcdir already configured
2586 if test -f $srcdir/config.status; then
2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2588 fi
2589 fi
2590
2591 # test whether we have cygpath
2592 if test -z "$CYGPATH_W"; then
2593 if (cygpath --version) >/dev/null 2>/dev/null; then
2594 CYGPATH_W='cygpath -w'
2595 else
2596 CYGPATH_W=echo
2597 fi
2598 fi
2599
2600
2601 # Define the identity of the package.
2602 PACKAGE=mpg321
2603 VERSION=0.3.2
2604
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE "$PACKAGE"
2608 _ACEOF
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define VERSION "$VERSION"
2613 _ACEOF
2614
2615 # Some tools Automake needs.
2616
2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2618
2619
2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2621
2622
2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2624
2625
2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2627
2628
2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2631 # We need awk for the "check" target. The system "awk" is bad on
2632 # some platforms.
2633 # Always define AMTAR for backward compatibility.
2634
2635 AMTAR=${AMTAR-"${am_missing_run}tar"}
2636
2637 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2638
2639
2640
2641
2642
2643
2644 # Checks for programs.
2645 for ac_prog in gawk mawk nawk awk
2646 do
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_AWK+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$AWK"; then
2655 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_AWK="$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 AWK=$ac_cv_prog_AWK
2675 if test -n "$AWK"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2677 $as_echo "$AWK" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684 test -n "$AWK" && break
2685 done
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_CC+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_CC"; then
2732 ac_ct_CC=$CC
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="gcc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761 if test -n "$ac_ct_CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763 $as_echo "$ac_ct_CC" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769 if test "x$ac_ct_CC" = x; then
2770 CC=""
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 CC=$ac_ct_CC
2779 fi
2780 else
2781 CC="$ac_cv_prog_CC"
2782 fi
2783
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}cc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 fi
2824 fi
2825 if test -z "$CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 ac_prog_rejected=no
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845 ac_prog_rejected=yes
2846 continue
2847 fi
2848 ac_cv_prog_CC="cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 if test $ac_prog_rejected = yes; then
2857 # We found a bogon in the path, so make sure we never use it.
2858 set dummy $ac_cv_prog_CC
2859 shift
2860 if test $# != 0; then
2861 # We chose a different compiler from the bogus one.
2862 # However, it has the same basename, so the bogon will be chosen
2863 # first if we set CC to just the basename; use the full file name.
2864 shift
2865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 fi
2867 fi
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in cl.exe
2884 do
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 test -n "$CC" && break
2923 done
2924 fi
2925 if test -z "$CC"; then
2926 ac_ct_CC=$CC
2927 for ac_prog in cl.exe
2928 do
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_ac_ct_CC="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 test -n "$ac_ct_CC" && break
2967 done
2968
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2979 fi
2980 fi
2981
2982 fi
2983
2984
2985 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error $? "no acceptable C compiler found in \$PATH
2988 See \`config.log' for more details" "$LINENO" 5 ; }
2989
2990 # Provide some information about the compiler.
2991 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2992 set X $ac_compile
2993 ac_compiler=$2
2994 for ac_option in --version -v -V -qversion; do
2995 { { ac_try="$ac_compiler $ac_option >&5"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003 ac_status=$?
3004 if test -s conftest.err; then
3005 sed '10a\
3006 ... rest of stderr output deleted ...
3007 10q' conftest.err >conftest.er1
3008 cat conftest.er1 >&5
3009 fi
3010 rm -f conftest.er1 conftest.err
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }
3013 done
3014
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 ac_clean_files_save=$ac_clean_files
3027 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028 # Try to create an executable without -o first, disregard a.out.
3029 # It will help us diagnose broken compilers, and finding out an intuition
3030 # of exeext.
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3032 $as_echo_n "checking whether the C compiler works... " >&6; }
3033 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034
3035 # The possible output files:
3036 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037
3038 ac_rmfiles=
3039 for ac_file in $ac_files
3040 do
3041 case $ac_file in
3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3044 esac
3045 done
3046 rm -f $ac_rmfiles
3047
3048 if { { ac_try="$ac_link_default"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link_default") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3062 # so that the user can short-circuit this test for compilers unknown to
3063 # Autoconf.
3064 for ac_file in $ac_files ''
3065 do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069 ;;
3070 [ab].out )
3071 # We found the default executable, but exeext='' is most
3072 # certainly right.
3073 break;;
3074 *.* )
3075 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076 then :; else
3077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 fi
3079 # We set ac_cv_exeext here because the later test for it is not
3080 # safe: cross compilers may not add the suffix if given an `-o'
3081 # argument, so we may need to know it at that point already.
3082 # Even if this section looks crufty: it has the advantage of
3083 # actually working.
3084 break;;
3085 * )
3086 break;;
3087 esac
3088 done
3089 test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091 else
3092 ac_file=''
3093 fi
3094 if test -z "$ac_file"; then :
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error 77 "C compiler cannot create executables
3103 See \`config.log' for more details" "$LINENO" 5 ; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106 $as_echo "yes" >&6; }
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3109 $as_echo_n "checking for C compiler default output file name... " >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3111 $as_echo "$ac_file" >&6; }
3112 ac_exeext=$ac_cv_exeext
3113
3114 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115 ac_clean_files=$ac_clean_files_save
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3117 $as_echo_n "checking for suffix of executables... " >&6; }
3118 if { { ac_try="$ac_link"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_link") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; then :
3129 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3131 # work properly (i.e., refer to `conftest.exe'), while it won't with
3132 # `rm'.
3133 for ac_file in conftest.exe conftest conftest.*; do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 break;;
3139 * ) break;;
3140 esac
3141 done
3142 else
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details" "$LINENO" 5 ; }
3147 fi
3148 rm -f conftest conftest$ac_cv_exeext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3150 $as_echo "$ac_cv_exeext" >&6; }
3151
3152 rm -f conftest.$ac_ext
3153 EXEEXT=$ac_cv_exeext
3154 ac_exeext=$EXEEXT
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157 #include <stdio.h>
3158 int
3159 main ()
3160 {
3161 FILE *f = fopen ("conftest.out", "w");
3162 return ferror (f) || fclose (f) != 0;
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 ac_clean_files="$ac_clean_files conftest.out"
3169 # Check that the compiler produces executables we can run. If not, either
3170 # the compiler is broken, or we cross compile.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172 $as_echo_n "checking whether we are cross compiling... " >&6; }
3173 if test "$cross_compiling" != yes; then
3174 { { ac_try="$ac_link"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_link") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }
3185 if { ac_try='./conftest$ac_cv_exeext'
3186 { { case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; }; then
3196 cross_compiling=no
3197 else
3198 if test "$cross_compiling" = maybe; then
3199 cross_compiling=yes
3200 else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot run C compiled programs.
3204 If you meant to cross compile, use \`--host'.
3205 See \`config.log' for more details" "$LINENO" 5 ; }
3206 fi
3207 fi
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3210 $as_echo "$cross_compiling" >&6; }
3211
3212 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3213 ac_clean_files=$ac_clean_files_save
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215 $as_echo_n "checking for suffix of object files... " >&6; }
3216 if test "${ac_cv_objext+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3221
3222 int
3223 main ()
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.o conftest.obj
3231 if { { ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compile") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 for ac_file in conftest.o conftest.obj conftest.*; do
3243 test -f "$ac_file" || continue;
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247 break;;
3248 esac
3249 done
3250 else
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details" "$LINENO" 5 ; }
3258 fi
3259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262 $as_echo "$ac_cv_objext" >&6; }
3263 OBJEXT=$ac_cv_objext
3264 ac_objext=$OBJEXT
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276 #ifndef __GNUC__
3277 choke me
3278 #endif
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_compiler_gnu=yes
3286 else
3287 ac_compiler_gnu=no
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295 if test $ac_compiler_gnu = yes; then
3296 GCC=yes
3297 else
3298 GCC=
3299 fi
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3304 if test "${ac_cv_prog_cc_g+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 ac_save_c_werror_flag=$ac_c_werror_flag
3308 ac_c_werror_flag=yes
3309 ac_cv_prog_cc_g=no
3310 CFLAGS="-g"
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_g=yes
3324 else
3325 CFLAGS=""
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338
3339 else
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3341 CFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_cv_prog_cc_g=yes
3355 fi
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 fi
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364 $as_echo "$ac_cv_prog_cc_g" >&6; }
3365 if test "$ac_test_CFLAGS" = set; then
3366 CFLAGS=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368 if test "$GCC" = yes; then
3369 CFLAGS="-g -O2"
3370 else
3371 CFLAGS="-g"
3372 fi
3373 else
3374 if test "$GCC" = yes; then
3375 CFLAGS="-O2"
3376 else
3377 CFLAGS=
3378 fi
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 ac_cv_prog_cc_c89=no
3386 ac_save_CC=$CC
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #include <stdarg.h>
3390 #include <stdio.h>
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3397 char **p;
3398 int i;
3399 {
3400 return p[i];
3401 }
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3403 {
3404 char *s;
3405 va_list v;
3406 va_start (v,p);
3407 s = g (p, va_arg (v,int));
3408 va_end (v);
3409 return s;
3410 }
3411
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3413 function prototypes and stuff, but not '\xHH' hex character constants.
3414 These don't provoke an error unfortunately, instead are silently treated
3415 as 'x'. The following induces an error, until -std is added to get
3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3417 array size at least. It's necessary to write '\x00'==0 to get something
3418 that's true only with -std. */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422 inside strings and character constants. */
3423 #define FOO(x) 'x'
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 int argc;
3431 char **argv;
3432 int
3433 main ()
3434 {
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 do
3443 CC="$ac_save_CC $ac_arg"
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_c89=$ac_arg
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext
3448 test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 done
3450 rm -f conftest.$ac_ext
3451 CC=$ac_save_CC
3452
3453 fi
3454 # AC_CACHE_VAL
3455 case "x$ac_cv_prog_cc_c89" in
3456 x)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458 $as_echo "none needed" >&6; } ;;
3459 xno)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461 $as_echo "unsupported" >&6; } ;;
3462 *)
3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 esac
3467 if test "x$ac_cv_prog_cc_c89" != xno; then :
3468
3469 fi
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 DEPDIR="${am__leading_dot}deps"
3477
3478 ac_config_commands="$ac_config_commands depfiles"
3479
3480
3481 am_make=${MAKE-make}
3482 cat > confinc << 'END'
3483 am__doit:
3484 @echo this is the am__doit target
3485 .PHONY: am__doit
3486 END
3487 # If we don't find an include directive, just comment out the code.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3489 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3490 am__include="#"
3491 am__quote=
3492 _am_result=none
3493 # First try GNU make style include.
3494 echo "include confinc" > confmf
3495 # Ignore all kinds of additional output from `make'.
3496 case `$am_make -s -f confmf 2> /dev/null` in #(
3497 *the\ am__doit\ target*)
3498 am__include=include
3499 am__quote=
3500 _am_result=GNU
3501 ;;
3502 esac
3503 # Now try BSD make style include.
3504 if test "$am__include" = "#"; then
3505 echo '.include "confinc"' > confmf
3506 case `$am_make -s -f confmf 2> /dev/null` in #(
3507 *the\ am__doit\ target*)
3508 am__include=.include
3509 am__quote="\""
3510 _am_result=BSD
3511 ;;
3512 esac
3513 fi
3514
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3517 $as_echo "$_am_result" >&6; }
3518 rm -f confinc confmf
3519
3520 # Check whether --enable-dependency-tracking was given.
3521 if test "${enable_dependency_tracking+set}" = set; then :
3522 enableval=$enable_dependency_tracking;
3523 fi
3524
3525 if test "x$enable_dependency_tracking" != xno; then
3526 am_depcomp="$ac_aux_dir/depcomp"
3527 AMDEPBACKSLASH='\'
3528 fi
3529 if test "x$enable_dependency_tracking" != xno; then
3530 AMDEP_TRUE=
3531 AMDEP_FALSE='#'
3532 else
3533 AMDEP_TRUE='#'
3534 AMDEP_FALSE=
3535 fi
3536
3537
3538
3539 depcc="$CC" am_compiler_list=
3540
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3542 $as_echo_n "checking dependency style of $depcc... " >&6; }
3543 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # in D'.
3552 mkdir conftest.dir
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3556 cd conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3562 # directory.
3563 mkdir sub
3564
3565 am_cv_CC_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568 fi
3569 am__universal=false
3570 case " $depcc " in #(
3571 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3572 esac
3573
3574 for depmode in $am_compiler_list; do
3575 # Setup a source with many dependencies, because some compilers
3576 # like to wrap large dependency lists on column 80 (with \), and
3577 # we should not choose a depcomp mode which is confused by this.
3578 #
3579 # We need to recreate these files for each test, as the compiler may
3580 # overwrite some of them when testing with obscure command lines.
3581 # This happens at least with the AIX C compiler.
3582 : > sub/conftest.c
3583 for i in 1 2 3 4 5 6; do
3584 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586 # Solaris 8's {/usr,}/bin/sh.
3587 touch sub/conftst$i.h
3588 done
3589 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590
3591 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592 # mode. It turns out that the SunPro C++ compiler does not properly
3593 # handle `-M -o', and we need to detect this. Also, some Intel
3594 # versions had trouble with output in subdirs
3595 am__obj=sub/conftest.${OBJEXT-o}
3596 am__minus_obj="-o $am__obj"
3597 case $depmode in
3598 gcc)
3599 # This depmode causes a compiler race in universal mode.
3600 test "$am__universal" = false || continue
3601 ;;
3602 nosideeffect)
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes; then
3606 continue
3607 else
3608 break
3609 fi
3610 ;;
3611 msvisualcpp | msvcmsys)
3612 # This compiler won't grok `-c -o', but also, the minuso test has
3613 # not run yet. These depmodes are late enough in the game, and
3614 # so weak that their functioning should not be impacted.
3615 am__obj=conftest.${OBJEXT-o}
3616 am__minus_obj=
3617 ;;
3618 none) break ;;
3619 esac
3620 if depmode=$depmode \
3621 source=sub/conftest.c object=$am__obj \
3622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3624 >/dev/null 2>conftest.err &&
3625 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3627 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3629 # icc doesn't choke on unknown options, it will just issue warnings
3630 # or remarks (even with -Werror). So we grep stderr for any message
3631 # that says an option was ignored or not supported.
3632 # When given -MP, icc 7.0 and 7.1 complain thusly:
3633 # icc: Command line warning: ignoring option '-M'; no argument required
3634 # The diagnosis changed in icc 8.0:
3635 # icc: Command line remark: option '-MP' not supported
3636 if (grep 'ignoring option' conftest.err ||
3637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3638 am_cv_CC_dependencies_compiler_type=$depmode
3639 break
3640 fi
3641 fi
3642 done
3643
3644 cd ..
3645 rm -rf conftest.dir
3646 else
3647 am_cv_CC_dependencies_compiler_type=none
3648 fi
3649
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3652 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3653 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3654
3655 if
3656 test "x$enable_dependency_tracking" != xno \
3657 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3658 am__fastdepCC_TRUE=
3659 am__fastdepCC_FALSE='#'
3660 else
3661 am__fastdepCC_TRUE='#'
3662 am__fastdepCC_FALSE=
3663 fi
3664
3665
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3668 $as_echo_n "checking whether ln -s works... " >&6; }
3669 LN_S=$as_ln_s
3670 if test "$LN_S" = "ln -s"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3675 $as_echo "no, using $LN_S" >&6; }
3676 fi
3677
3678
3679 # Checks for libraries.
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_decoder_run in -lmad" >&5
3682 $as_echo_n "checking for mad_decoder_run in -lmad... " >&6; }
3683 if test "${ac_cv_lib_mad_mad_decoder_run+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 ac_check_lib_save_LIBS=$LIBS
3687 LIBS="-lmad $LIBS"
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 /* Override any GCC internal prototype to avoid an error.
3692 Use char because int might match the return type of a GCC
3693 builtin and then its argument prototype would still apply. */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 char mad_decoder_run ();
3698 int
3699 main ()
3700 {
3701 return mad_decoder_run ();
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_link "$LINENO"; then :
3707 ac_cv_lib_mad_mad_decoder_run=yes
3708 else
3709 ac_cv_lib_mad_mad_decoder_run=no
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mad_mad_decoder_run" >&5
3716 $as_echo "$ac_cv_lib_mad_mad_decoder_run" >&6; }
3717 if test "x$ac_cv_lib_mad_mad_decoder_run" = x""yes; then :
3718 cat >>confdefs.h <<_ACEOF
3719 #define HAVE_LIBMAD 1
3720 _ACEOF
3721
3722 LIBS="-lmad $LIBS"
3723
3724 else
3725 as_fn_error $? "libmad is required to compile mpg321. See http://www.mars.org/home/rob/proj/mpeg/" "$LINENO" 5
3726 fi
3727
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
3729 $as_echo_n "checking for compress2 in -lz... " >&6; }
3730 if test "${ac_cv_lib_z_compress2+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 ac_check_lib_save_LIBS=$LIBS
3734 LIBS="-lz $LIBS"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 /* Override any GCC internal prototype to avoid an error.
3739 Use char because int might match the return type of a GCC
3740 builtin and then its argument prototype would still apply. */
3741 #ifdef __cplusplus
3742 extern "C"
3743 #endif
3744 char compress2 ();
3745 int
3746 main ()
3747 {
3748 return compress2 ();
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_link "$LINENO"; then :
3754 ac_cv_lib_z_compress2=yes
3755 else
3756 ac_cv_lib_z_compress2=no
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext \
3759 conftest$ac_exeext conftest.$ac_ext
3760 LIBS=$ac_check_lib_save_LIBS
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
3763 $as_echo "$ac_cv_lib_z_compress2" >&6; }
3764 if test "x$ac_cv_lib_z_compress2" = x""yes; then :
3765 cat >>confdefs.h <<_ACEOF
3766 #define HAVE_LIBZ 1
3767 _ACEOF
3768
3769 LIBS="-lz $LIBS"
3770
3771 else
3772 as_fn_error $? "\"zlib is required to compile mpg321. Usually this is in a package called zlib-devel or zlib1g-dev.\"" "$LINENO" 5
3773 fi
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_tag_new in -lid3tag" >&5
3776 $as_echo_n "checking for id3_tag_new in -lid3tag... " >&6; }
3777 if test "${ac_cv_lib_id3tag_id3_tag_new+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 ac_check_lib_save_LIBS=$LIBS
3781 LIBS="-lid3tag -lz $LIBS"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 /* Override any GCC internal prototype to avoid an error.
3786 Use char because int might match the return type of a GCC
3787 builtin and then its argument prototype would still apply. */
3788 #ifdef __cplusplus
3789 extern "C"
3790 #endif
3791 char id3_tag_new ();
3792 int
3793 main ()
3794 {
3795 return id3_tag_new ();
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_link "$LINENO"; then :
3801 ac_cv_lib_id3tag_id3_tag_new=yes
3802 else
3803 ac_cv_lib_id3tag_id3_tag_new=no
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext \
3806 conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_check_lib_save_LIBS
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_tag_new" >&5
3810 $as_echo "$ac_cv_lib_id3tag_id3_tag_new" >&6; }
3811 if test "x$ac_cv_lib_id3tag_id3_tag_new" = x""yes; then :
3812 cat >>confdefs.h <<_ACEOF
3813 #define HAVE_LIBID3TAG 1
3814 _ACEOF
3815
3816 LIBS="-lid3tag $LIBS"
3817
3818 else
3819 as_fn_error $? "\"libid3tag is required to compile mpg321. Find it in the MAD distribution at http://www.mars.org/home/rob/proj/mpeg/ - version 0.14.1 or better.\"" "$LINENO" 5
3820 fi
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3823 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3824 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 ac_check_lib_save_LIBS=$LIBS
3828 LIBS="-lpthread $LIBS"
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831
3832 /* Override any GCC internal prototype to avoid an error.
3833 Use char because int might match the return type of a GCC
3834 builtin and then its argument prototype would still apply. */
3835 #ifdef __cplusplus
3836 extern "C"
3837 #endif
3838 char pthread_create ();
3839 int
3840 main ()
3841 {
3842 return pthread_create ();
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_link "$LINENO"; then :
3848 ac_cv_lib_pthread_pthread_create=yes
3849 else
3850 ac_cv_lib_pthread_pthread_create=no
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3854 LIBS=$ac_check_lib_save_LIBS
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3857 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3858 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
3859 cat >>confdefs.h <<_ACEOF
3860 #define HAVE_LIBPTHREAD 1
3861 _ACEOF
3862
3863 LIBS="-lpthread $LIBS"
3864
3865 else
3866 as_fn_error $? "\"POSIX Threads is required to compile mpg321.\"" "$LINENO" 5
3867 fi
3868
3869
3870
3871 # Check whether --with-ao was given.
3872 if test "${with_ao+set}" = set; then :
3873 withval=$with_ao; ao_prefix="$withval"
3874 else
3875 ao_prefix=""
3876 fi
3877
3878
3879 # Check whether --with-ao-libraries was given.
3880 if test "${with_ao_libraries+set}" = set; then :
3881 withval=$with_ao_libraries; ao_libraries="$withval"
3882 else
3883 ao_libraries=""
3884 fi
3885
3886
3887 # Check whether --with-ao-includes was given.
3888 if test "${with_ao_includes+set}" = set; then :
3889 withval=$with_ao_includes; ao_includes="$withval"
3890 else
3891 ao_includes=""
3892 fi
3893
3894 # Check whether --enable-aotest was given.
3895 if test "${enable_aotest+set}" = set; then :
3896 enableval=$enable_aotest;
3897 else
3898 enable_aotest=yes
3899 fi
3900
3901
3902
3903 if test "x$ao_libraries" != "x" ; then
3904 AO_LIBS="-L$ao_libraries"
3905 elif test "x$ao_prefix" != "x"; then
3906 AO_LIBS="-L$ao_prefix/lib"
3907 elif test "x$prefix" != "xNONE"; then
3908 AO_LIBS="-L$prefix/lib"
3909 fi
3910
3911 if test "x$ao_includes" != "x" ; then
3912 AO_CFLAGS="-I$ao_includes"
3913 elif test "x$ao_prefix" != "x"; then
3914 AO_CFLAGS="-I$ao_prefix/include"
3915 elif test "x$prefix" != "xNONE"; then
3916 AO_CFLAGS="-I$prefix/include"
3917 fi
3918
3919 # see where dl* and friends live
3920 for ac_func in dlopen
3921 do :
3922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
3923 if test "x$ac_cv_func_dlopen" = x""yes; then :
3924 cat >>confdefs.h <<_ACEOF
3925 #define HAVE_DLOPEN 1
3926 _ACEOF
3927 AO_DL_LIBS=""
3928 else
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3931 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3932 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 ac_check_lib_save_LIBS=$LIBS
3936 LIBS="-ldl $LIBS"
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 /* Override any GCC internal prototype to avoid an error.
3941 Use char because int might match the return type of a GCC
3942 builtin and then its argument prototype would still apply. */
3943 #ifdef __cplusplus
3944 extern "C"
3945 #endif
3946 char dlopen ();
3947 int
3948 main ()
3949 {
3950 return dlopen ();
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_link "$LINENO"; then :
3956 ac_cv_lib_dl_dlopen=yes
3957 else
3958 ac_cv_lib_dl_dlopen=no
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext \
3961 conftest$ac_exeext conftest.$ac_ext
3962 LIBS=$ac_check_lib_save_LIBS
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3966 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3967 AO_DL_LIBS="-ldl"
3968 else
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find dlopen() needed by libao sound drivers
3971 your system may not be supported." >&5
3972 $as_echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
3973 your system may not be supported." >&2;}
3974
3975 fi
3976
3977
3978 fi
3979 done
3980
3981
3982 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ao" >&5
3985 $as_echo_n "checking for ao... " >&6; }
3986 no_ao=""
3987
3988
3989 if test "x$enable_aotest" = "xyes" ; then
3990 ac_save_CFLAGS="$CFLAGS"
3991 ac_save_LIBS="$LIBS"
3992 CFLAGS="$CFLAGS $AO_CFLAGS"
3993 LIBS="$LIBS $AO_LIBS"
3994 rm -f conf.aotest
3995 if test "$cross_compiling" = yes; then :
3996 echo $ac_n "cross compiling; assumed OK... $ac_c"
3997 else
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 #include <stdio.h>
4002 #include <stdlib.h>
4003 #include <string.h>
4004 #include <ao/ao.h>
4005
4006 int main ()
4007 {
4008 system("touch conf.aotest");
4009 return 0;
4010 }
4011
4012
4013 _ACEOF
4014 if ac_fn_c_try_run "$LINENO"; then :
4015
4016 else
4017 no_ao=yes
4018 fi
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4020 conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 fi
4022
4023 CFLAGS="$ac_save_CFLAGS"
4024 LIBS="$ac_save_LIBS"
4025 fi
4026
4027 if test "x$no_ao" = "x" ; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 $as_echo "yes" >&6; }
4030 :
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 if test -f conf.aotest ; then
4035 :
4036 else
4037 echo "*** Could not run ao test program, checking why..."
4038 CFLAGS="$CFLAGS $AO_CFLAGS"
4039 LIBS="$LIBS $AO_LIBS"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 #include <stdio.h>
4044 #include <ao/ao.h>
4045
4046 int
4047 main ()
4048 {
4049 return 0;
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_link "$LINENO"; then :
4055 echo "*** The test program compiled, but did not run. This usually means"
4056 echo "*** that the run-time linker is not finding ao or finding the wrong"
4057 echo "*** version of ao. If it is not finding ao, you'll need to set your"
4058 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4059 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4060 echo "*** is required on your system"
4061 echo "***"
4062 echo "*** If you have an old version installed, it is best to remove it, although"
4063 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4064 else
4065 echo "*** The test program failed to compile or link. See the file config.log for the"
4066 echo "*** exact error that occured. This usually means ao was incorrectly installed"
4067 echo "*** or that you have moved ao since it was installed."
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext \
4070 conftest$ac_exeext conftest.$ac_ext
4071 CFLAGS="$ac_save_CFLAGS"
4072 LIBS="$ac_save_LIBS"
4073 fi
4074 AO_CFLAGS=""
4075 AO_LIBS=""
4076 as_fn_error $? "libao needed!" "$LINENO" 5
4077 fi
4078
4079
4080 rm -f conf.aotest
4081
4082
4083 CFLAGS="$CFLAGS $AO_CFLAGS"
4084 LIBS="$LIBS $AO_LIBS"
4085
4086 # Checks for header files.
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4094 # On Suns, sometimes $CPP names a directory.
4095 if test -n "$CPP" && test -d "$CPP"; then
4096 CPP=
4097 fi
4098 if test -z "$CPP"; then
4099 if test "${ac_cv_prog_CPP+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 # Double quotes because CPP needs to be expanded
4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 do
4105 ac_preproc_ok=false
4106 for ac_c_preproc_warn_flag in '' yes
4107 do
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #ifdef __STDC__
4117 # include <limits.h>
4118 #else
4119 # include <assert.h>
4120 #endif
4121 Syntax error
4122 _ACEOF
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125 else
4126 # Broken: fails on valid input.
4127 continue
4128 fi
4129 rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131 # OK, works on sane cases. Now check whether nonexistent headers
4132 # can be detected and how.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <ac_nonexistent.h>
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4138 # Broken: success on invalid input.
4139 continue
4140 else
4141 # Passes both tests.
4142 ac_preproc_ok=:
4143 break
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 done
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.i conftest.err conftest.$ac_ext
4150 if $ac_preproc_ok; then :
4151 break
4152 fi
4153
4154 done
4155 ac_cv_prog_CPP=$CPP
4156
4157 fi
4158 CPP=$ac_cv_prog_CPP
4159 else
4160 ac_cv_prog_CPP=$CPP
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163 $as_echo "$CPP" >&6; }
4164 ac_preproc_ok=false
4165 for ac_c_preproc_warn_flag in '' yes
4166 do
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #ifdef __STDC__
4176 # include <limits.h>
4177 #else
4178 # include <assert.h>
4179 #endif
4180 Syntax error
4181 _ACEOF
4182 if ac_fn_c_try_cpp "$LINENO"; then :
4183
4184 else
4185 # Broken: fails on valid input.
4186 continue
4187 fi
4188 rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190 # OK, works on sane cases. Now check whether nonexistent headers
4191 # can be detected and how.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <ac_nonexistent.h>
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4197 # Broken: success on invalid input.
4198 continue
4199 else
4200 # Passes both tests.
4201 ac_preproc_ok=:
4202 break
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 done
4207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208 rm -f conftest.i conftest.err conftest.$ac_ext
4209 if $ac_preproc_ok; then :
4210
4211 else
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215 See \`config.log' for more details" "$LINENO" 5 ; }
4216 fi
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227 if test "${ac_cv_path_GREP+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -z "$GREP"; then
4231 ac_path_GREP_found=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_prog in grep ggrep; do
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4241 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4242 # Check for GNU ac_path_GREP and select it if it is found.
4243 # Check for GNU $ac_path_GREP
4244 case `"$ac_path_GREP" --version 2>&1` in
4245 *GNU*)
4246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4247 *)
4248 ac_count=0
4249 $as_echo_n 0123456789 >"conftest.in"
4250 while :
4251 do
4252 cat "conftest.in" "conftest.in" >"conftest.tmp"
4253 mv "conftest.tmp" "conftest.in"
4254 cp "conftest.in" "conftest.nl"
4255 $as_echo 'GREP' >> "conftest.nl"
4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4258 as_fn_arith $ac_count + 1 && ac_count=$as_val
4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4260 # Best one so far, save it but keep looking for a better one
4261 ac_cv_path_GREP="$ac_path_GREP"
4262 ac_path_GREP_max=$ac_count
4263 fi
4264 # 10*(2^10) chars as input seems more than enough
4265 test $ac_count -gt 10 && break
4266 done
4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4268 esac
4269
4270 $ac_path_GREP_found && break 3
4271 done
4272 done
4273 done
4274 IFS=$as_save_IFS
4275 if test -z "$ac_cv_path_GREP"; then
4276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4277 fi
4278 else
4279 ac_cv_path_GREP=$GREP
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4284 $as_echo "$ac_cv_path_GREP" >&6; }
4285 GREP="$ac_cv_path_GREP"
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4289 $as_echo_n "checking for egrep... " >&6; }
4290 if test "${ac_cv_path_EGREP+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4294 then ac_cv_path_EGREP="$GREP -E"
4295 else
4296 if test -z "$EGREP"; then
4297 ac_path_EGREP_found=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_prog in egrep; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4307 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4308 # Check for GNU ac_path_EGREP and select it if it is found.
4309 # Check for GNU $ac_path_EGREP
4310 case `"$ac_path_EGREP" --version 2>&1` in
4311 *GNU*)
4312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4313 *)
4314 ac_count=0
4315 $as_echo_n 0123456789 >"conftest.in"
4316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'EGREP' >> "conftest.nl"
4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_EGREP="$ac_path_EGREP"
4328 ac_path_EGREP_max=$ac_count
4329 fi
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4335
4336 $ac_path_EGREP_found && break 3
4337 done
4338 done
4339 done
4340 IFS=$as_save_IFS
4341 if test -z "$ac_cv_path_EGREP"; then
4342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343 fi
4344 else
4345 ac_cv_path_EGREP=$EGREP
4346 fi
4347
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4351 $as_echo "$ac_cv_path_EGREP" >&6; }
4352 EGREP="$ac_cv_path_EGREP"
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4356 $as_echo_n "checking for ANSI C header files... " >&6; }
4357 if test "${ac_cv_header_stdc+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4363 #include <stdarg.h>
4364 #include <string.h>
4365 #include <float.h>
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_header_stdc=yes
4377 else
4378 ac_cv_header_stdc=no
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
4382 if test $ac_cv_header_stdc = yes; then
4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <string.h>
4387
4388 _ACEOF
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 $EGREP "memchr" >/dev/null 2>&1; then :
4391
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest*
4396
4397 fi
4398
4399 if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <stdlib.h>
4404
4405 _ACEOF
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "free" >/dev/null 2>&1; then :
4408
4409 else
4410 ac_cv_header_stdc=no
4411 fi
4412 rm -f conftest*
4413
4414 fi
4415
4416 if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then :
4419 :
4420 else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #include <ctype.h>
4424 #include <stdlib.h>
4425 #if ((' ' & 0x0FF) == 0x020)
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4428 #else
4429 # define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434 #endif
4435
4436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4437 int
4438 main ()
4439 {
4440 int i;
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
4444 return 2;
4445 return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_run "$LINENO"; then :
4449
4450 else
4451 ac_cv_header_stdc=no
4452 fi
4453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4454 conftest.$ac_objext conftest.beam conftest.$ac_ext
4455 fi
4456
4457 fi
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4460 $as_echo "$ac_cv_header_stdc" >&6; }
4461 if test $ac_cv_header_stdc = yes; then
4462
4463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4464
4465 fi
4466
4467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4469 inttypes.h stdint.h unistd.h
4470 do :
4471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4473 "
4474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4475 cat >>confdefs.h <<_ACEOF
4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4477 _ACEOF
4478
4479 fi
4480
4481 done
4482
4483
4484 for ac_header in arpa/inet.h errno.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
4485 do :
4486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4489 cat >>confdefs.h <<_ACEOF
4490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491 _ACEOF
4492
4493 fi
4494
4495 done
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4499 $as_echo_n "checking for ANSI C header files... " >&6; }
4500 if test "${ac_cv_header_stdc+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <stdlib.h>
4506 #include <stdarg.h>
4507 #include <string.h>
4508 #include <float.h>
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_header_stdc=yes
4520 else
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524
4525 if test $ac_cv_header_stdc = yes; then
4526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <string.h>
4530
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "memchr" >/dev/null 2>&1; then :
4534
4535 else
4536 ac_cv_header_stdc=no
4537 fi
4538 rm -f conftest*
4539
4540 fi
4541
4542 if test $ac_cv_header_stdc = yes; then
4543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <stdlib.h>
4547
4548 _ACEOF
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 $EGREP "free" >/dev/null 2>&1; then :
4551
4552 else
4553 ac_cv_header_stdc=no
4554 fi
4555 rm -f conftest*
4556
4557 fi
4558
4559 if test $ac_cv_header_stdc = yes; then
4560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4561 if test "$cross_compiling" = yes; then :
4562 :
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <ctype.h>
4567 #include <stdlib.h>
4568 #if ((' ' & 0x0FF) == 0x020)
4569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4571 #else
4572 # define ISLOWER(c) \
4573 (('a' <= (c) && (c) <= 'i') \
4574 || ('j' <= (c) && (c) <= 'r') \
4575 || ('s' <= (c) && (c) <= 'z'))
4576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #endif
4578
4579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4580 int
4581 main ()
4582 {
4583 int i;
4584 for (i = 0; i < 256; i++)
4585 if (XOR (islower (i), ISLOWER (i))
4586 || toupper (i) != TOUPPER (i))
4587 return 2;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_run "$LINENO"; then :
4592
4593 else
4594 ac_cv_header_stdc=no
4595 fi
4596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4597 conftest.$ac_objext conftest.beam conftest.$ac_ext
4598 fi
4599
4600 fi
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4603 $as_echo "$ac_cv_header_stdc" >&6; }
4604 if test $ac_cv_header_stdc = yes; then
4605
4606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4607
4608 fi
4609
4610 for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h
4611 do :
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4615 cat >>confdefs.h <<_ACEOF
4616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617 _ACEOF
4618
4619 fi
4620
4621 done
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4624 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4625 if test "${ac_cv_header_time+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <sys/types.h>
4631 #include <sys/time.h>
4632 #include <time.h>
4633
4634 int
4635 main ()
4636 {
4637 if ((struct tm *) 0)
4638 return 0;
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_header_time=yes
4645 else
4646 ac_cv_header_time=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4651 $as_echo "$ac_cv_header_time" >&6; }
4652 if test $ac_cv_header_time = yes; then
4653
4654 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4655
4656 fi
4657
4658
4659 # Checks for typedefs, structures, and compiler characteristics.
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4661 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4662 if test "${ac_cv_c_bigendian+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_cv_c_bigendian=unknown
4666 # See if we're dealing with a universal compiler.
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #ifndef __APPLE_CC__
4670 not a universal capable compiler
4671 #endif
4672 typedef int dummy;
4673
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676
4677 # Check for potential -arch flags. It is not universal unless
4678 # there are at least two -arch flags with different values.
4679 ac_arch=
4680 ac_prev=
4681 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4682 if test -n "$ac_prev"; then
4683 case $ac_word in
4684 i?86 | x86_64 | ppc | ppc64)
4685 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4686 ac_arch=$ac_word
4687 else
4688 ac_cv_c_bigendian=universal
4689 break
4690 fi
4691 ;;
4692 esac
4693 ac_prev=
4694 elif test "x$ac_word" = "x-arch"; then
4695 ac_prev=arch
4696 fi
4697 done
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 if test $ac_cv_c_bigendian = unknown; then
4701 # See if sys/param.h defines the BYTE_ORDER macro.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4706
4707 int
4708 main ()
4709 {
4710 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4711 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4712 && LITTLE_ENDIAN)
4713 bogus endian macros
4714 #endif
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 # It does; now see whether it defined to BIG_ENDIAN or not.
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <sys/types.h>
4725 #include <sys/param.h>
4726
4727 int
4728 main ()
4729 {
4730 #if BYTE_ORDER != BIG_ENDIAN
4731 not big endian
4732 #endif
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_c_bigendian=yes
4740 else
4741 ac_cv_c_bigendian=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 if test $ac_cv_c_bigendian = unknown; then
4748 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <limits.h>
4752
4753 int
4754 main ()
4755 {
4756 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4757 bogus endian macros
4758 #endif
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 # It does; now see whether it defined to _BIG_ENDIAN or not.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <limits.h>
4769
4770 int
4771 main ()
4772 {
4773 #ifndef _BIG_ENDIAN
4774 not big endian
4775 #endif
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_c_bigendian=yes
4783 else
4784 ac_cv_c_bigendian=no
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 if test $ac_cv_c_bigendian = unknown; then
4791 # Compile a test program.
4792 if test "$cross_compiling" = yes; then :
4793 # Try to guess by grepping values from an object file.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 short int ascii_mm[] =
4797 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4798 short int ascii_ii[] =
4799 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4800 int use_ascii (int i) {
4801 return ascii_mm[i] + ascii_ii[i];
4802 }
4803 short int ebcdic_ii[] =
4804 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4805 short int ebcdic_mm[] =
4806 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4807 int use_ebcdic (int i) {
4808 return ebcdic_mm[i] + ebcdic_ii[i];
4809 }
4810 extern int foo;
4811
4812 int
4813 main ()
4814 {
4815 return use_ascii (foo) == use_ebcdic (foo);
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4822 ac_cv_c_bigendian=yes
4823 fi
4824 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4825 if test "$ac_cv_c_bigendian" = unknown; then
4826 ac_cv_c_bigendian=no
4827 else
4828 # finding both strings is unlikely to happen, but who knows?
4829 ac_cv_c_bigendian=unknown
4830 fi
4831 fi
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 else
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 $ac_includes_default
4838 int
4839 main ()
4840 {
4841
4842 /* Are we little or big endian? From Harbison&Steele. */
4843 union
4844 {
4845 long int l;
4846 char c[sizeof (long int)];
4847 } u;
4848 u.l = 1;
4849 return u.c[sizeof (long int) - 1] == 1;
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_run "$LINENO"; then :
4856 ac_cv_c_bigendian=no
4857 else
4858 ac_cv_c_bigendian=yes
4859 fi
4860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4861 conftest.$ac_objext conftest.beam conftest.$ac_ext
4862 fi
4863
4864 fi
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4867 $as_echo "$ac_cv_c_bigendian" >&6; }
4868 case $ac_cv_c_bigendian in #(
4869 yes)
4870 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4871 ;; #(
4872 no)
4873 ;; #(
4874 universal)
4875
4876 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4877
4878 ;; #(
4879 *)
4880 as_fn_error $? "unknown endianness
4881 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4882 esac
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4885 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4886 if test "${ac_cv_c_const+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891
4892 int
4893 main ()
4894 {
4895 /* FIXME: Include the comments suggested by Paul. */
4896 #ifndef __cplusplus
4897 /* Ultrix mips cc rejects this. */
4898 typedef int charset[2];
4899 const charset cs;
4900 /* SunOS 4.1.1 cc rejects this. */
4901 char const *const *pcpcc;
4902 char **ppc;
4903 /* NEC SVR4.0.2 mips cc rejects this. */
4904 struct point {int x, y;};
4905 static struct point const zero = {0,0};
4906 /* AIX XL C 1.02.0.0 rejects this.
4907 It does not let you subtract one const X* pointer from another in
4908 an arm of an if-expression whose if-part is not a constant
4909 expression */
4910 const char *g = "string";
4911 pcpcc = &g + (g ? g-g : 0);
4912 /* HPUX 7.0 cc rejects these. */
4913 ++pcpcc;
4914 ppc = (char**) pcpcc;
4915 pcpcc = (char const *const *) ppc;
4916 { /* SCO 3.2v4 cc rejects this. */
4917 char *t;
4918 char const *s = 0 ? (char *) 0 : (char const *) 0;
4919
4920 *t++ = 0;
4921 if (s) return 0;
4922 }
4923 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4924 int x[] = {25, 17};
4925 const int *foo = &x[0];
4926 ++foo;
4927 }
4928 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4929 typedef const int *iptr;
4930 iptr p = 0;
4931 ++p;
4932 }
4933 { /* AIX XL C 1.02.0.0 rejects this saying
4934 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4935 struct s { int j; const int *ap[3]; };
4936 struct s *b; b->j = 5;
4937 }
4938 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4939 const int foo = 10;
4940 if (!foo) return 0;
4941 }
4942 return !cs[0] && !zero.x;
4943 #endif
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 ac_cv_c_const=yes
4951 else
4952 ac_cv_c_const=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4957 $as_echo "$ac_cv_c_const" >&6; }
4958 if test $ac_cv_c_const = no; then
4959
4960 $as_echo "#define const /**/" >>confdefs.h
4961
4962 fi
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4965 $as_echo_n "checking for inline... " >&6; }
4966 if test "${ac_cv_c_inline+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 ac_cv_c_inline=no
4970 for ac_kw in inline __inline__ __inline; do
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #ifndef __cplusplus
4974 typedef int foo_t;
4975 static $ac_kw foo_t static_foo () {return 0; }
4976 $ac_kw foo_t foo () {return 0; }
4977 #endif
4978
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ac_cv_c_inline=$ac_kw
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 test "$ac_cv_c_inline" != no && break
4985 done
4986
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4989 $as_echo "$ac_cv_c_inline" >&6; }
4990
4991 case $ac_cv_c_inline in
4992 inline | yes) ;;
4993 *)
4994 case $ac_cv_c_inline in
4995 no) ac_val=;;
4996 *) ac_val=$ac_cv_c_inline;;
4997 esac
4998 cat >>confdefs.h <<_ACEOF
4999 #ifndef __cplusplus
5000 #define inline $ac_val
5001 #endif
5002 _ACEOF
5003 ;;
5004 esac
5005
5006
5007 # Checks for library functions.
5008 for ac_header in stdlib.h
5009 do :
5010 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5011 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5012 cat >>confdefs.h <<_ACEOF
5013 #define HAVE_STDLIB_H 1
5014 _ACEOF
5015
5016 fi
5017
5018 done
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5021 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5022 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test "$cross_compiling" = yes; then :
5026 ac_cv_func_malloc_0_nonnull=no
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5031 # include <stdlib.h>
5032 #else
5033 char *malloc ();
5034 #endif
5035
5036 int
5037 main ()
5038 {
5039 return ! malloc (0);
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_run "$LINENO"; then :
5045 ac_cv_func_malloc_0_nonnull=yes
5046 else
5047 ac_cv_func_malloc_0_nonnull=no
5048 fi
5049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5050 conftest.$ac_objext conftest.beam conftest.$ac_ext
5051 fi
5052
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5055 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5056 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5057
5058 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5059
5060 else
5061 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5062
5063 case " $LIBOBJS " in
5064 *" malloc.$ac_objext "* ) ;;
5065 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5066 ;;
5067 esac
5068
5069
5070 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5071
5072 fi
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5076 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5077 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 rm -f conftest.sym conftest.file
5081 echo >conftest.file
5082 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5083 if test "$cross_compiling" = yes; then :
5084 ac_cv_func_lstat_dereferences_slashed_symlink=no
5085 else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 $ac_includes_default
5089 int
5090 main ()
5091 {
5092 struct stat sbuf;
5093 /* Linux will dereference the symlink and fail, as required by POSIX.
5094 That is better in the sense that it means we will not
5095 have to compile and use the lstat wrapper. */
5096 return lstat ("conftest.sym/", &sbuf) == 0;
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_run "$LINENO"; then :
5102 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5103 else
5104 ac_cv_func_lstat_dereferences_slashed_symlink=no
5105 fi
5106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5107 conftest.$ac_objext conftest.beam conftest.$ac_ext
5108 fi
5109
5110 else
5111 # If the `ln -s' command failed, then we probably don't even
5112 # have an lstat function.
5113 ac_cv_func_lstat_dereferences_slashed_symlink=no
5114 fi
5115 rm -f conftest.sym conftest.file
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5119 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5120
5121 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5122
5123 cat >>confdefs.h <<_ACEOF
5124 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5125 _ACEOF
5126
5127
5128 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5129 case " $LIBOBJS " in
5130 *" lstat.$ac_objext "* ) ;;
5131 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5132 ;;
5133 esac
5134
5135 fi
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
5138 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
5139 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test "$cross_compiling" = yes; then :
5143 ac_cv_func_stat_empty_string_bug=yes
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 $ac_includes_default
5148 int
5149 main ()
5150 {
5151 struct stat sbuf;
5152 return stat ("", &sbuf) == 0;
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_run "$LINENO"; then :
5158 ac_cv_func_stat_empty_string_bug=no
5159 else
5160 ac_cv_func_stat_empty_string_bug=yes
5161 fi
5162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5163 conftest.$ac_objext conftest.beam conftest.$ac_ext
5164 fi
5165
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
5168 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
5169 if test $ac_cv_func_stat_empty_string_bug = yes; then
5170 case " $LIBOBJS " in
5171 *" stat.$ac_objext "* ) ;;
5172 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5173 ;;
5174 esac
5175
5176
5177 cat >>confdefs.h <<_ACEOF
5178 #define HAVE_STAT_EMPTY_STRING_BUG 1
5179 _ACEOF
5180
5181 fi
5182
5183
5184
5185
5186 for ac_header in $ac_header_list
5187 do :
5188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5190 "
5191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5192 cat >>confdefs.h <<_ACEOF
5193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5194 _ACEOF
5195
5196 fi
5197
5198 done
5199
5200
5201
5202
5203
5204
5205
5206
5207 for ac_func in getpagesize
5208 do :
5209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5210 if test "x$ac_cv_func_getpagesize" = x""yes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_GETPAGESIZE 1
5213 _ACEOF
5214
5215 fi
5216 done
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5219 $as_echo_n "checking for working mmap... " >&6; }
5220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test "$cross_compiling" = yes; then :
5224 ac_cv_func_mmap_fixed_mapped=no
5225 else
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 $ac_includes_default
5229 /* malloc might have been renamed as rpl_malloc. */
5230 #undef malloc
5231
5232 /* Thanks to Mike Haertel and Jim Avera for this test.
5233 Here is a matrix of mmap possibilities:
5234 mmap private not fixed
5235 mmap private fixed at somewhere currently unmapped
5236 mmap private fixed at somewhere already mapped
5237 mmap shared not fixed
5238 mmap shared fixed at somewhere currently unmapped
5239 mmap shared fixed at somewhere already mapped
5240 For private mappings, we should verify that changes cannot be read()
5241 back from the file, nor mmap's back from the file at a different
5242 address. (There have been systems where private was not correctly
5243 implemented like the infamous i386 svr4.0, and systems where the
5244 VM page cache was not coherent with the file system buffer cache
5245 like early versions of FreeBSD and possibly contemporary NetBSD.)
5246 For shared mappings, we should conversely verify that changes get
5247 propagated back to all the places they're supposed to be.
5248
5249 Grep wants private fixed already mapped.
5250 The main things grep needs to know about mmap are:
5251 * does it exist and is it safe to write into the mmap'd area
5252 * how to use it (BSD variants) */
5253
5254 #include <fcntl.h>
5255 #include <sys/mman.h>
5256
5257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5258 char *malloc ();
5259 #endif
5260
5261 /* This mess was copied from the GNU getpagesize.h. */
5262 #ifndef HAVE_GETPAGESIZE
5263 # ifdef _SC_PAGESIZE
5264 # define getpagesize() sysconf(_SC_PAGESIZE)
5265 # else /* no _SC_PAGESIZE */
5266 # ifdef HAVE_SYS_PARAM_H
5267 # include <sys/param.h>
5268 # ifdef EXEC_PAGESIZE
5269 # define getpagesize() EXEC_PAGESIZE
5270 # else /* no EXEC_PAGESIZE */
5271 # ifdef NBPG
5272 # define getpagesize() NBPG * CLSIZE
5273 # ifndef CLSIZE
5274 # define CLSIZE 1
5275 # endif /* no CLSIZE */
5276 # else /* no NBPG */
5277 # ifdef NBPC
5278 # define getpagesize() NBPC
5279 # else /* no NBPC */
5280 # ifdef PAGESIZE
5281 # define getpagesize() PAGESIZE
5282 # endif /* PAGESIZE */
5283 # endif /* no NBPC */
5284 # endif /* no NBPG */
5285 # endif /* no EXEC_PAGESIZE */
5286 # else /* no HAVE_SYS_PARAM_H */
5287 # define getpagesize() 8192 /* punt totally */
5288 # endif /* no HAVE_SYS_PARAM_H */
5289 # endif /* no _SC_PAGESIZE */
5290
5291 #endif /* no HAVE_GETPAGESIZE */
5292
5293 int
5294 main ()
5295 {
5296 char *data, *data2, *data3;
5297 const char *cdata2;
5298 int i, pagesize;
5299 int fd, fd2;
5300
5301 pagesize = getpagesize ();
5302
5303 /* First, make a file with some known garbage in it. */
5304 data = (char *) malloc (pagesize);
5305 if (!data)
5306 return 1;
5307 for (i = 0; i < pagesize; ++i)
5308 *(data + i) = rand ();
5309 umask (0);
5310 fd = creat ("conftest.mmap", 0600);
5311 if (fd < 0)
5312 return 2;
5313 if (write (fd, data, pagesize) != pagesize)
5314 return 3;
5315 close (fd);
5316
5317 /* Next, check that the tail of a page is zero-filled. File must have
5318 non-zero length, otherwise we risk SIGBUS for entire page. */
5319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5320 if (fd2 < 0)
5321 return 4;
5322 cdata2 = "";
5323 if (write (fd2, cdata2, 1) != 1)
5324 return 5;
5325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5326 if (data2 == MAP_FAILED)
5327 return 6;
5328 for (i = 0; i < pagesize; ++i)
5329 if (*(data2 + i))
5330 return 7;
5331 close (fd2);
5332 if (munmap (data2, pagesize))
5333 return 8;
5334
5335 /* Next, try to mmap the file at a fixed address which already has
5336 something else allocated at it. If we can, also make sure that
5337 we see the same garbage. */
5338 fd = open ("conftest.mmap", O_RDWR);
5339 if (fd < 0)
5340 return 9;
5341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5343 return 10;
5344 for (i = 0; i < pagesize; ++i)
5345 if (*(data + i) != *(data2 + i))
5346 return 11;
5347
5348 /* Finally, make sure that changes to the mapped area do not
5349 percolate back to the file as seen by read(). (This is a bug on
5350 some variants of i386 svr4.0.) */
5351 for (i = 0; i < pagesize; ++i)
5352 *(data2 + i) = *(data2 + i) + 1;
5353 data3 = (char *) malloc (pagesize);
5354 if (!data3)
5355 return 12;
5356 if (read (fd, data3, pagesize) != pagesize)
5357 return 13;
5358 for (i = 0; i < pagesize; ++i)
5359 if (*(data + i) != *(data3 + i))
5360 return 14;
5361 close (fd);
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_run "$LINENO"; then :
5366 ac_cv_func_mmap_fixed_mapped=yes
5367 else
5368 ac_cv_func_mmap_fixed_mapped=no
5369 fi
5370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5371 conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 fi
5373
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5378
5379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5380
5381 fi
5382 rm -f conftest.mmap conftest.txt
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5385 $as_echo_n "checking return type of signal handlers... " >&6; }
5386 if test "${ac_cv_type_signal+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <sys/types.h>
5392 #include <signal.h>
5393
5394 int
5395 main ()
5396 {
5397 return *(signal (0, 0)) (0) == 1;
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_type_signal=int
5404 else
5405 ac_cv_type_signal=void
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5410 $as_echo "$ac_cv_type_signal" >&6; }
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define RETSIGTYPE $ac_cv_type_signal
5414 _ACEOF
5415
5416
5417
5418 # From lsh-1.3.4:
5419 # Some systems (in particular, Unixware) doesn't have socklen_t, but
5420 # uses size_t. Falling back to int will cause some warnings.
5421
5422 # AC_CHECK_TYPE doesn't work, probably because the type in
5423 # question is not defined in sys/types.h.
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
5426 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
5427 if test "${ac_cv_type_socklen_t+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <sys/socket.h>
5433
5434 _ACEOF
5435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436 $EGREP "socklen_t" >/dev/null 2>&1; then :
5437 ac_cv_type_socklen_t=yes
5438 else
5439 ac_cv_type_socklen_t=no
5440 fi
5441 rm -f conftest*
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
5445 $as_echo "$ac_cv_type_socklen_t" >&6; }
5446 if test $ac_cv_type_socklen_t = no; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX" >&5
5448 $as_echo_n "checking for AIX... " >&6; }
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451
5452 #ifdef _AIX
5453 yes
5454 #endif
5455
5456 _ACEOF
5457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5458 $EGREP "yes" >/dev/null 2>&1; then :
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461 $as_echo "yes" >&6; }
5462 $as_echo "#define socklen_t size_t" >>confdefs.h
5463
5464
5465 else
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 $as_echo "#define socklen_t int" >>confdefs.h
5470
5471
5472 fi
5473 rm -f conftest*
5474
5475 fi
5476
5477
5478
5479 # Check whether --enable-largefile was given.
5480 if test "${enable_largefile+set}" = set; then :
5481 enableval=$enable_largefile;
5482 fi
5483
5484 if test "$enable_largefile" != no; then
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5487 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5488 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 ac_cv_sys_largefile_CC=no
5492 if test "$GCC" != yes; then
5493 ac_save_CC=$CC
5494 while :; do
5495 # IRIX 6.2 and later do not support large files by default,
5496 # so use the C compiler's -n32 option if that helps.
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5507 ? 1 : -1];
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 break
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext
5520 CC="$CC -n32"
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_sys_largefile_CC=' -n32'; break
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext
5525 break
5526 done
5527 CC=$ac_save_CC
5528 rm -f conftest.$ac_ext
5529 fi
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5532 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5533 if test "$ac_cv_sys_largefile_CC" != no; then
5534 CC=$CC$ac_cv_sys_largefile_CC
5535 fi
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5538 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5539 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 while :; do
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <sys/types.h>
5546 /* Check that off_t can represent 2**63 - 1 correctly.
5547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5548 since some C++ compilers masquerading as C compilers
5549 incorrectly reject 9223372036854775807. */
5550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5552 && LARGE_OFF_T % 2147483647 == 1)
5553 ? 1 : -1];
5554 int
5555 main ()
5556 {
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_sys_file_offset_bits=no; break
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #define _FILE_OFFSET_BITS 64
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5577 ? 1 : -1];
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_sys_file_offset_bits=64; break
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 ac_cv_sys_file_offset_bits=unknown
5591 break
5592 done
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5595 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5596 case $ac_cv_sys_file_offset_bits in #(
5597 no | unknown) ;;
5598 *)
5599 cat >>confdefs.h <<_ACEOF
5600 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5601 _ACEOF
5602 ;;
5603 esac
5604 rm -rf conftest*
5605 if test $ac_cv_sys_file_offset_bits = unknown; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5607 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5608 if test "${ac_cv_sys_large_files+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 while :; do
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5622 ? 1 : -1];
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_sys_large_files=no; break
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #define _LARGE_FILES 1
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_large_files=1; break
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_cv_sys_large_files=unknown
5660 break
5661 done
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5664 $as_echo "$ac_cv_sys_large_files" >&6; }
5665 case $ac_cv_sys_large_files in #(
5666 no | unknown) ;;
5667 *)
5668 cat >>confdefs.h <<_ACEOF
5669 #define _LARGE_FILES $ac_cv_sys_large_files
5670 _ACEOF
5671 ;;
5672 esac
5673 rm -rf conftest*
5674 fi
5675 fi
5676
5677
5678
5679 for ac_func in gethostbyname memset munmap socket strchr strdup strerror strrchr strstr gettimeofday select getenv putenv setenv unsetenv strcasecmp
5680 do :
5681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5686 _ACEOF
5687
5688 fi
5689 done
5690
5691
5692 # Check whether --enable-mpg123_symlink was given.
5693 if test "${enable_mpg123_symlink+set}" = set; then :
5694 enableval=$enable_mpg123_symlink;
5695 else
5696 enable_mpg123_symlink=yes
5697 fi
5698
5699 if test x$enable_mpg123_symlink = xyes; then
5700 DO_SYMLINK_TRUE=
5701 DO_SYMLINK_FALSE='#'
5702 else
5703 DO_SYMLINK_TRUE='#'
5704 DO_SYMLINK_FALSE=
5705 fi
5706
5707
5708 # Check whether --enable-ipv6 was given.
5709 if test "${enable_ipv6+set}" = set; then :
5710 enableval=$enable_ipv6; ipv6=$enableval
5711 else
5712 ipv6=no
5713 fi
5714
5715 # Check whether --enable-debug was given.
5716 if test "${enable_debug+set}" = set; then :
5717 enableval=$enable_debug; debug=$enableval
5718 else
5719 debug=no
5720 fi
5721
5722
5723
5724 #CFLAGS="${CFLAGS=}"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ALSA" >&5
5726 $as_echo_n "checking whether to enable ALSA... " >&6; }
5727 alsa_default="yes"
5728 # Check whether --enable-alsa was given.
5729 if test "${enable_alsa+set}" = set; then :
5730 enableval=$enable_alsa;
5731 else
5732 enable_alsa=$alsa_default
5733 fi
5734
5735 if test "x$enable_alsa" = "xyes"; then
5736 CFLAGS="$CFLAGS -DHAVE_ALSA"
5737 check_alsa="yes"
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739 $as_echo "yes" >&6; }
5740 else
5741 CFLAGS="$CFLAGS"
5742 LIBS="$LIBS -lz -lpthread -lm"
5743 check_alsa="no"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 fi
5747
5748
5749 if test "x$check_alsa" = "xyes"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_mixer_selem_get_playback_volume in -lasound" >&5
5751 $as_echo_n "checking for snd_mixer_selem_get_playback_volume in -lasound... " >&6; }
5752 if test "${ac_cv_lib_asound_snd_mixer_selem_get_playback_volume+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 ac_check_lib_save_LIBS=$LIBS
5756 LIBS="-lasound $LIBS"
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759
5760 /* Override any GCC internal prototype to avoid an error.
5761 Use char because int might match the return type of a GCC
5762 builtin and then its argument prototype would still apply. */
5763 #ifdef __cplusplus
5764 extern "C"
5765 #endif
5766 char snd_mixer_selem_get_playback_volume ();
5767 int
5768 main ()
5769 {
5770 return snd_mixer_selem_get_playback_volume ();
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_link "$LINENO"; then :
5776 ac_cv_lib_asound_snd_mixer_selem_get_playback_volume=yes
5777 else
5778 ac_cv_lib_asound_snd_mixer_selem_get_playback_volume=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
5782 LIBS=$ac_check_lib_save_LIBS
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_mixer_selem_get_playback_volume" >&5
5785 $as_echo "$ac_cv_lib_asound_snd_mixer_selem_get_playback_volume" >&6; }
5786 if test "x$ac_cv_lib_asound_snd_mixer_selem_get_playback_volume" = x""yes; then :
5787 cat >>confdefs.h <<_ACEOF
5788 #define HAVE_LIBASOUND 1
5789 _ACEOF
5790
5791 LIBS="-lasound $LIBS"
5792
5793 else
5794 as_fn_error $? "\"ALSA lib is required to compile mpg321.\"" "$LINENO" 5
5795 fi
5796
5797 LIBS="$LIBS -lz -lpthread -lm -lasound"
5798 fi
5799
5800 # borrowed from a mail from Russ Allbery - from INN
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5802 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5803 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 ac_func_search_save_LIBS=$LIBS
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 char gethostbyname ();
5817 int
5818 main ()
5819 {
5820 return gethostbyname ();
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 for ac_lib in '' nsl; do
5826 if test -z "$ac_lib"; then
5827 ac_res="none required"
5828 else
5829 ac_res=-l$ac_lib
5830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5831 fi
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 ac_cv_search_gethostbyname=$ac_res
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext
5837 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5838 break
5839 fi
5840 done
5841 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5842
5843 else
5844 ac_cv_search_gethostbyname=no
5845 fi
5846 rm conftest.$ac_ext
5847 LIBS=$ac_func_search_save_LIBS
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5850 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5851 ac_res=$ac_cv_search_gethostbyname
5852 if test "$ac_res" != no; then :
5853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5854
5855 fi
5856
5857 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
5858 if test "x$ac_cv_func_socket" = x""yes; then :
5859
5860 else
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5863 $as_echo_n "checking for socket in -lsocket... " >&6; }
5864 if test "${ac_cv_lib_socket_socket+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 ac_check_lib_save_LIBS=$LIBS
5868 LIBS="-lsocket "$LIBS" $LIBS"
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 char socket ();
5879 int
5880 main ()
5881 {
5882 return socket ();
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 ac_cv_lib_socket_socket=yes
5889 else
5890 ac_cv_lib_socket_socket=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5897 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5898 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
5899 LIBS="$LIBS -lsocket"
5900 else
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
5903 $as_echo_n "checking for socket in -lnsl... " >&6; }
5904 if test "${ac_cv_lib_nsl_socket+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 ac_check_lib_save_LIBS=$LIBS
5908 LIBS="-lnsl -lsocket $LIBS"
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply. */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 char socket ();
5919 int
5920 main ()
5921 {
5922 return socket ();
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_link "$LINENO"; then :
5928 ac_cv_lib_nsl_socket=yes
5929 else
5930 ac_cv_lib_nsl_socket=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934 LIBS=$ac_check_lib_save_LIBS
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
5937 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
5938 if test "x$ac_cv_lib_nsl_socket" = x""yes; then :
5939 LIBS="$LIBS -lsocket -lnsl"
5940 fi
5941
5942
5943 fi
5944
5945
5946 fi
5947
5948
5949
5950 # Check whether --with-default_audio was given.
5951 if test "${with_default_audio+set}" = set; then :
5952 withval=$with_default_audio;
5953 fi
5954
5955
5956 if test "x$with_default_audio" != "x" -a "x$with_default_audio" != "xyes"; then
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define AUDIO_DEFAULT "$with_default_audio"
5960 _ACEOF
5961
5962 else
5963 # yes, literally 'the libao default', since this is used in output strings
5964
5965 cat >>confdefs.h <<_ACEOF
5966 #define AUDIO_DEFAULT "the libao default"
5967 _ACEOF
5968
5969 fi
5970
5971
5972 if test "$ipv6" = yes; then
5973 for ac_func in getaddrinfo
5974 do :
5975 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5976 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE_GETADDRINFO 1
5979 _ACEOF
5980 have_getaddrinfo=yes
5981 fi
5982 done
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
5985 $as_echo_n "checking whether to enable IPv6 support... " >&6; }
5986 if test "$have_getaddrinfo" = yes; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5988 $as_echo "yes" >&6; }
5989
5990 $as_echo "#define USE_IPV6 1" >>confdefs.h
5991
5992 else
5993 ipv6=no
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997 fi
5998
5999 if test "$debug" = yes; then
6000
6001 $as_echo "#define DEBUG 1" >>confdefs.h
6002
6003 CFLAGS="-ggdb $CFLAGS"
6004
6005 LIBS="-lefence $LIBS"
6006
6007 fi
6008
6009 if test "x${exec_prefix}" = "xNONE"; then
6010 if test "x${prefix}" = "xNONE"; then
6011 packageprefix=${ac_default_prefix}/bin
6012 else
6013 packageprefix=${prefix}/bin
6014 fi
6015 else
6016 packageprefix=${exec_prefix}
6017 fi
6018
6019 cat >>confdefs.h <<_ACEOF
6020 #define MPG321_PATH "${packageprefix}/mpg321"
6021 _ACEOF
6022
6023
6024 ac_config_files="$ac_config_files Makefile"
6025
6026
6027 cat >confcache <<\_ACEOF
6028 # This file is a shell script that caches the results of configure
6029 # tests run on this system so they can be shared between configure
6030 # scripts and configure runs, see configure's option --config-cache.
6031 # It is not useful on other systems. If it contains results you don't
6032 # want to keep, you may remove or edit it.
6033 #
6034 # config.status only pays attention to the cache file if you give it
6035 # the --recheck option to rerun configure.
6036 #
6037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6039 # following values.
6040
6041 _ACEOF
6042
6043 # The following way of writing the cache mishandles newlines in values,
6044 # but we know of no workaround that is simple, portable, and efficient.
6045 # So, we kill variables containing newlines.
6046 # Ultrix sh set writes to stderr and can't be redirected directly,
6047 # and sets the high bit in the cache file unless we assign to the vars.
6048 (
6049 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6050 eval ac_val=\$$ac_var
6051 case $ac_val in #(
6052 *${as_nl}*)
6053 case $ac_var in #(
6054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6056 esac
6057 case $ac_var in #(
6058 _ | IFS | as_nl) ;; #(
6059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6060 *) { eval $ac_var=; unset $ac_var;} ;;
6061 esac ;;
6062 esac
6063 done
6064
6065 (set) 2>&1 |
6066 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6067 *${as_nl}ac_space=\ *)
6068 # `set' does not quote correctly, so add quotes: double-quote
6069 # substitution turns \\\\ into \\, and sed turns \\ into \.
6070 sed -n \
6071 "s/'/'\\\\''/g;
6072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6073 ;; #(
6074 *)
6075 # `set' quotes correctly as required by POSIX, so do not add quotes.
6076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6077 ;;
6078 esac |
6079 sort
6080 ) |
6081 sed '
6082 /^ac_cv_env_/b end
6083 t clear
6084 :clear
6085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6086 t end
6087 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6088 :end' >>confcache
6089 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6090 if test -w "$cache_file"; then
6091 test "x$cache_file" != "x/dev/null" &&
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6093 $as_echo "$as_me: updating cache $cache_file" >&6;}
6094 cat confcache >$cache_file
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6097 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6098 fi
6099 fi
6100 rm -f confcache
6101
6102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6103 # Let make expand exec_prefix.
6104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6105
6106 DEFS=-DHAVE_CONFIG_H
6107
6108 ac_libobjs=
6109 ac_ltlibobjs=
6110 U=
6111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6112 # 1. Remove the extension, and $U if already installed.
6113 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6114 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6116 # will be set to the directory where LIBOBJS objects are built.
6117 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6118 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6119 done
6120 LIBOBJS=$ac_libobjs
6121
6122 LTLIBOBJS=$ac_ltlibobjs
6123
6124
6125 if test -n "$EXEEXT"; then
6126 am__EXEEXT_TRUE=
6127 am__EXEEXT_FALSE='#'
6128 else
6129 am__EXEEXT_TRUE='#'
6130 am__EXEEXT_FALSE=
6131 fi
6132
6133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6134 as_fn_error $? "conditional \"AMDEP\" was never defined.
6135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6136 fi
6137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6140 fi
6141
6142 if test -z "${DO_SYMLINK_TRUE}" && test -z "${DO_SYMLINK_FALSE}"; then
6143 as_fn_error $? "conditional \"DO_SYMLINK\" was never defined.
6144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6145 fi
6146
6147 : ${CONFIG_STATUS=./config.status}
6148 ac_write_fail=0
6149 ac_clean_files_save=$ac_clean_files
6150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6153 as_write_fail=0
6154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6155 #! $SHELL
6156 # Generated by $as_me.
6157 # Run this file to recreate the current configuration.
6158 # Compiler output produced by configure, useful for debugging
6159 # configure, is in config.log if it exists.
6160
6161 debug=false
6162 ac_cs_recheck=false
6163 ac_cs_silent=false
6164
6165 SHELL=\${CONFIG_SHELL-$SHELL}
6166 export SHELL
6167 _ASEOF
6168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6169 ## -------------------- ##
6170 ## M4sh Initialization. ##
6171 ## -------------------- ##
6172
6173 # Be more Bourne compatible
6174 DUALCASE=1; export DUALCASE # for MKS sh
6175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6176 emulate sh
6177 NULLCMD=:
6178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6179 # is contrary to our usage. Disable this feature.
6180 alias -g '${1+"$@"}'='"$@"'
6181 setopt NO_GLOB_SUBST
6182 else
6183 case `(set -o) 2>/dev/null` in #(
6184 *posix*) :
6185 set -o posix ;; #(
6186 *) :
6187 ;;
6188 esac
6189 fi
6190
6191
6192 as_nl='
6193 '
6194 export as_nl
6195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6199 # Prefer a ksh shell builtin over an external printf program on Solaris,
6200 # but without wasting forks for bash or zsh.
6201 if test -z "$BASH_VERSION$ZSH_VERSION" \
6202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6203 as_echo='print -r --'
6204 as_echo_n='print -rn --'
6205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6206 as_echo='printf %s\n'
6207 as_echo_n='printf %s'
6208 else
6209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6211 as_echo_n='/usr/ucb/echo -n'
6212 else
6213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6214 as_echo_n_body='eval
6215 arg=$1;
6216 case $arg in #(
6217 *"$as_nl"*)
6218 expr "X$arg" : "X\\(.*\\)$as_nl";
6219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6220 esac;
6221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6222 '
6223 export as_echo_n_body
6224 as_echo_n='sh -c $as_echo_n_body as_echo'
6225 fi
6226 export as_echo_body
6227 as_echo='sh -c $as_echo_body as_echo'
6228 fi
6229
6230 # The user is always right.
6231 if test "${PATH_SEPARATOR+set}" != set; then
6232 PATH_SEPARATOR=:
6233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6235 PATH_SEPARATOR=';'
6236 }
6237 fi
6238
6239
6240 # IFS
6241 # We need space, tab and new line, in precisely that order. Quoting is
6242 # there to prevent editors from complaining about space-tab.
6243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6244 # splitting by setting IFS to empty value.)
6245 IFS=" "" $as_nl"
6246
6247 # Find who we are. Look in the path if we contain no directory separator.
6248 case $0 in #((
6249 *[\\/]* ) as_myself=$0 ;;
6250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6256 done
6257 IFS=$as_save_IFS
6258
6259 ;;
6260 esac
6261 # We did not find ourselves, most probably we were run as `sh COMMAND'
6262 # in which case we are not to be found in the path.
6263 if test "x$as_myself" = x; then
6264 as_myself=$0
6265 fi
6266 if test ! -f "$as_myself"; then
6267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6268 exit 1
6269 fi
6270
6271 # Unset variables that we do not need and which cause bugs (e.g. in
6272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6273 # suppresses any "Segmentation fault" message there. '((' could
6274 # trigger a bug in pdksh 5.2.14.
6275 for as_var in BASH_ENV ENV MAIL MAILPATH
6276 do eval test x\${$as_var+set} = xset \
6277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6278 done
6279 PS1='$ '
6280 PS2='> '
6281 PS4='+ '
6282
6283 # NLS nuisances.
6284 LC_ALL=C
6285 export LC_ALL
6286 LANGUAGE=C
6287 export LANGUAGE
6288
6289 # CDPATH.
6290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6291
6292
6293 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6294 # ----------------------------------------
6295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6297 # script with STATUS, using 1 if that was 0.
6298 as_fn_error ()
6299 {
6300 as_status=$1; test $as_status -eq 0 && as_status=1
6301 if test "$4"; then
6302 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6304 fi
6305 $as_echo "$as_me: error: $2" >&2
6306 as_fn_exit $as_status
6307 } # as_fn_error
6308
6309
6310 # as_fn_set_status STATUS
6311 # -----------------------
6312 # Set $? to STATUS, without forking.
6313 as_fn_set_status ()
6314 {
6315 return $1
6316 } # as_fn_set_status
6317
6318 # as_fn_exit STATUS
6319 # -----------------
6320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6321 as_fn_exit ()
6322 {
6323 set +e
6324 as_fn_set_status $1
6325 exit $1
6326 } # as_fn_exit
6327
6328 # as_fn_unset VAR
6329 # ---------------
6330 # Portably unset VAR.
6331 as_fn_unset ()
6332 {
6333 { eval $1=; unset $1;}
6334 }
6335 as_unset=as_fn_unset
6336 # as_fn_append VAR VALUE
6337 # ----------------------
6338 # Append the text in VALUE to the end of the definition contained in VAR. Take
6339 # advantage of any shell optimizations that allow amortized linear growth over
6340 # repeated appends, instead of the typical quadratic growth present in naive
6341 # implementations.
6342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6343 eval 'as_fn_append ()
6344 {
6345 eval $1+=\$2
6346 }'
6347 else
6348 as_fn_append ()
6349 {
6350 eval $1=\$$1\$2
6351 }
6352 fi # as_fn_append
6353
6354 # as_fn_arith ARG...
6355 # ------------------
6356 # Perform arithmetic evaluation on the ARGs, and store the result in the
6357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6358 # must be portable across $(()) and expr.
6359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6360 eval 'as_fn_arith ()
6361 {
6362 as_val=$(( $* ))
6363 }'
6364 else
6365 as_fn_arith ()
6366 {
6367 as_val=`expr "$@" || test $? -eq 1`
6368 }
6369 fi # as_fn_arith
6370
6371
6372 if expr a : '\(a\)' >/dev/null 2>&1 &&
6373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6374 as_expr=expr
6375 else
6376 as_expr=false
6377 fi
6378
6379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6380 as_basename=basename
6381 else
6382 as_basename=false
6383 fi
6384
6385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6386 as_dirname=dirname
6387 else
6388 as_dirname=false
6389 fi
6390
6391 as_me=`$as_basename -- "$0" ||
6392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6393 X"$0" : 'X\(//\)$' \| \
6394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6395 $as_echo X/"$0" |
6396 sed '/^.*\/\([^/][^/]*\)\/*$/{
6397 s//\1/
6398 q
6399 }
6400 /^X\/\(\/\/\)$/{
6401 s//\1/
6402 q
6403 }
6404 /^X\/\(\/\).*/{
6405 s//\1/
6406 q
6407 }
6408 s/.*/./; q'`
6409
6410 # Avoid depending upon Character Ranges.
6411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6414 as_cr_digits='0123456789'
6415 as_cr_alnum=$as_cr_Letters$as_cr_digits
6416
6417 ECHO_C= ECHO_N= ECHO_T=
6418 case `echo -n x` in #(((((
6419 -n*)
6420 case `echo 'xy\c'` in
6421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6422 xy) ECHO_C='\c';;
6423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6424 ECHO_T=' ';;
6425 esac;;
6426 *)
6427 ECHO_N='-n';;
6428 esac
6429
6430 rm -f conf$$ conf$$.exe conf$$.file
6431 if test -d conf$$.dir; then
6432 rm -f conf$$.dir/conf$$.file
6433 else
6434 rm -f conf$$.dir
6435 mkdir conf$$.dir 2>/dev/null
6436 fi
6437 if (echo >conf$$.file) 2>/dev/null; then
6438 if ln -s conf$$.file conf$$ 2>/dev/null; then
6439 as_ln_s='ln -s'
6440 # ... but there are two gotchas:
6441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6443 # In both cases, we have to default to `cp -p'.
6444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6445 as_ln_s='cp -p'
6446 elif ln conf$$.file conf$$ 2>/dev/null; then
6447 as_ln_s=ln
6448 else
6449 as_ln_s='cp -p'
6450 fi
6451 else
6452 as_ln_s='cp -p'
6453 fi
6454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6455 rmdir conf$$.dir 2>/dev/null
6456
6457
6458 # as_fn_mkdir_p
6459 # -------------
6460 # Create "$as_dir" as a directory, including parents if necessary.
6461 as_fn_mkdir_p ()
6462 {
6463
6464 case $as_dir in #(
6465 -*) as_dir=./$as_dir;;
6466 esac
6467 test -d "$as_dir" || eval $as_mkdir_p || {
6468 as_dirs=
6469 while :; do
6470 case $as_dir in #(
6471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6472 *) as_qdir=$as_dir;;
6473 esac
6474 as_dirs="'$as_qdir' $as_dirs"
6475 as_dir=`$as_dirname -- "$as_dir" ||
6476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6477 X"$as_dir" : 'X\(//\)[^/]' \| \
6478 X"$as_dir" : 'X\(//\)$' \| \
6479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6480 $as_echo X"$as_dir" |
6481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6482 s//\1/
6483 q
6484 }
6485 /^X\(\/\/\)[^/].*/{
6486 s//\1/
6487 q
6488 }
6489 /^X\(\/\/\)$/{
6490 s//\1/
6491 q
6492 }
6493 /^X\(\/\).*/{
6494 s//\1/
6495 q
6496 }
6497 s/.*/./; q'`
6498 test -d "$as_dir" && break
6499 done
6500 test -z "$as_dirs" || eval "mkdir $as_dirs"
6501 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6502
6503
6504 } # as_fn_mkdir_p
6505 if mkdir -p . 2>/dev/null; then
6506 as_mkdir_p='mkdir -p "$as_dir"'
6507 else
6508 test -d ./-p && rmdir ./-p
6509 as_mkdir_p=false
6510 fi
6511
6512 if test -x / >/dev/null 2>&1; then
6513 as_test_x='test -x'
6514 else
6515 if ls -dL / >/dev/null 2>&1; then
6516 as_ls_L_option=L
6517 else
6518 as_ls_L_option=
6519 fi
6520 as_test_x='
6521 eval sh -c '\''
6522 if test -d "$1"; then
6523 test -d "$1/.";
6524 else
6525 case $1 in #(
6526 -*)set "./$1";;
6527 esac;
6528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6529 ???[sx]*):;;*)false;;esac;fi
6530 '\'' sh
6531 '
6532 fi
6533 as_executable_p=$as_test_x
6534
6535 # Sed expression to map a string onto a valid CPP name.
6536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6537
6538 # Sed expression to map a string onto a valid variable name.
6539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6540
6541
6542 exec 6>&1
6543 ## ----------------------------------- ##
6544 ## Main body of $CONFIG_STATUS script. ##
6545 ## ----------------------------------- ##
6546 _ASEOF
6547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6548
6549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6550 # Save the log message, to keep $0 and so on meaningful, and to
6551 # report actual input values of CONFIG_FILES etc. instead of their
6552 # values after options handling.
6553 ac_log="
6554 This file was extended by $as_me, which was
6555 generated by GNU Autoconf 2.67. Invocation command line was
6556
6557 CONFIG_FILES = $CONFIG_FILES
6558 CONFIG_HEADERS = $CONFIG_HEADERS
6559 CONFIG_LINKS = $CONFIG_LINKS
6560 CONFIG_COMMANDS = $CONFIG_COMMANDS
6561 $ $0 $@
6562
6563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6564 "
6565
6566 _ACEOF
6567
6568 case $ac_config_files in *"
6569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6570 esac
6571
6572 case $ac_config_headers in *"
6573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6574 esac
6575
6576
6577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6578 # Files that config.status was made for.
6579 config_files="$ac_config_files"
6580 config_headers="$ac_config_headers"
6581 config_commands="$ac_config_commands"
6582
6583 _ACEOF
6584
6585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6586 ac_cs_usage="\
6587 \`$as_me' instantiates files and other configuration actions
6588 from templates according to the current configuration. Unless the files
6589 and actions are specified as TAGs, all are instantiated by default.
6590
6591 Usage: $0 [OPTION]... [TAG]...
6592
6593 -h, --help print this help, then exit
6594 -V, --version print version number and configuration settings, then exit
6595 --config print configuration, then exit
6596 -q, --quiet, --silent
6597 do not print progress messages
6598 -d, --debug don't remove temporary files
6599 --recheck update $as_me by reconfiguring in the same conditions
6600 --file=FILE[:TEMPLATE]
6601 instantiate the configuration file FILE
6602 --header=FILE[:TEMPLATE]
6603 instantiate the configuration header FILE
6604
6605 Configuration files:
6606 $config_files
6607
6608 Configuration headers:
6609 $config_headers
6610
6611 Configuration commands:
6612 $config_commands
6613
6614 Report bugs to the package provider."
6615
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6619 ac_cs_version="\\
6620 config.status
6621 configured by $0, generated by GNU Autoconf 2.67,
6622 with options \\"\$ac_cs_config\\"
6623
6624 Copyright (C) 2010 Free Software Foundation, Inc.
6625 This config.status script is free software; the Free Software Foundation
6626 gives unlimited permission to copy, distribute and modify it."
6627
6628 ac_pwd='$ac_pwd'
6629 srcdir='$srcdir'
6630 INSTALL='$INSTALL'
6631 MKDIR_P='$MKDIR_P'
6632 AWK='$AWK'
6633 test -n "\$AWK" || AWK=awk
6634 _ACEOF
6635
6636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6637 # The default lists apply if the user does not specify any file.
6638 ac_need_defaults=:
6639 while test $# != 0
6640 do
6641 case $1 in
6642 --*=?*)
6643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6645 ac_shift=:
6646 ;;
6647 --*=)
6648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6649 ac_optarg=
6650 ac_shift=:
6651 ;;
6652 *)
6653 ac_option=$1
6654 ac_optarg=$2
6655 ac_shift=shift
6656 ;;
6657 esac
6658
6659 case $ac_option in
6660 # Handling of the options.
6661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6662 ac_cs_recheck=: ;;
6663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6664 $as_echo "$ac_cs_version"; exit ;;
6665 --config | --confi | --conf | --con | --co | --c )
6666 $as_echo "$ac_cs_config"; exit ;;
6667 --debug | --debu | --deb | --de | --d | -d )
6668 debug=: ;;
6669 --file | --fil | --fi | --f )
6670 $ac_shift
6671 case $ac_optarg in
6672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6673 '') as_fn_error $? "missing file argument" ;;
6674 esac
6675 as_fn_append CONFIG_FILES " '$ac_optarg'"
6676 ac_need_defaults=false;;
6677 --header | --heade | --head | --hea )
6678 $ac_shift
6679 case $ac_optarg in
6680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6681 esac
6682 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6683 ac_need_defaults=false;;
6684 --he | --h)
6685 # Conflict between --help and --header
6686 as_fn_error $? "ambiguous option: \`$1'
6687 Try \`$0 --help' for more information.";;
6688 --help | --hel | -h )
6689 $as_echo "$ac_cs_usage"; exit ;;
6690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6692 ac_cs_silent=: ;;
6693
6694 # This is an error.
6695 -*) as_fn_error $? "unrecognized option: \`$1'
6696 Try \`$0 --help' for more information." ;;
6697
6698 *) as_fn_append ac_config_targets " $1"
6699 ac_need_defaults=false ;;
6700
6701 esac
6702 shift
6703 done
6704
6705 ac_configure_extra_args=
6706
6707 if $ac_cs_silent; then
6708 exec 6>/dev/null
6709 ac_configure_extra_args="$ac_configure_extra_args --silent"
6710 fi
6711
6712 _ACEOF
6713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6714 if \$ac_cs_recheck; then
6715 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6716 shift
6717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6718 CONFIG_SHELL='$SHELL'
6719 export CONFIG_SHELL
6720 exec "\$@"
6721 fi
6722
6723 _ACEOF
6724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6725 exec 5>>config.log
6726 {
6727 echo
6728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6729 ## Running $as_me. ##
6730 _ASBOX
6731 $as_echo "$ac_log"
6732 } >&5
6733
6734 _ACEOF
6735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6736 #
6737 # INIT-COMMANDS
6738 #
6739 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6740
6741 _ACEOF
6742
6743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6744
6745 # Handling of arguments.
6746 for ac_config_target in $ac_config_targets
6747 do
6748 case $ac_config_target in
6749 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6750 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6752
6753 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6754 esac
6755 done
6756
6757
6758 # If the user did not use the arguments to specify the items to instantiate,
6759 # then the envvar interface is used. Set only those that are not.
6760 # We use the long form for the default assignment because of an extremely
6761 # bizarre bug on SunOS 4.1.3.
6762 if $ac_need_defaults; then
6763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6766 fi
6767
6768 # Have a temporary directory for convenience. Make it in the build tree
6769 # simply because there is no reason against having it here, and in addition,
6770 # creating and moving files from /tmp can sometimes cause problems.
6771 # Hook for its removal unless debugging.
6772 # Note that there is a small window in which the directory will not be cleaned:
6773 # after its creation but before its name has been assigned to `$tmp'.
6774 $debug ||
6775 {
6776 tmp=
6777 trap 'exit_status=$?
6778 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6779 ' 0
6780 trap 'as_fn_exit 1' 1 2 13 15
6781 }
6782 # Create a (secure) tmp directory for tmp files.
6783
6784 {
6785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6786 test -n "$tmp" && test -d "$tmp"
6787 } ||
6788 {
6789 tmp=./conf$$-$RANDOM
6790 (umask 077 && mkdir "$tmp")
6791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6792
6793 # Set up the scripts for CONFIG_FILES section.
6794 # No need to generate them if there are no CONFIG_FILES.
6795 # This happens for instance with `./config.status config.h'.
6796 if test -n "$CONFIG_FILES"; then
6797
6798
6799 ac_cr=`echo X | tr X '\015'`
6800 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6801 # But we know of no other shell where ac_cr would be empty at this
6802 # point, so we can use a bashism as a fallback.
6803 if test "x$ac_cr" = x; then
6804 eval ac_cr=\$\'\\r\'
6805 fi
6806 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6807 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6808 ac_cs_awk_cr='\\r'
6809 else
6810 ac_cs_awk_cr=$ac_cr
6811 fi
6812
6813 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6814 _ACEOF
6815
6816
6817 {
6818 echo "cat >conf$$subs.awk <<_ACEOF" &&
6819 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6820 echo "_ACEOF"
6821 } >conf$$subs.sh ||
6822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6823 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6824 ac_delim='%!_!# '
6825 for ac_last_try in false false false false false :; do
6826 . ./conf$$subs.sh ||
6827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6828
6829 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6830 if test $ac_delim_n = $ac_delim_num; then
6831 break
6832 elif $ac_last_try; then
6833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6834 else
6835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6836 fi
6837 done
6838 rm -f conf$$subs.sh
6839
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6842 _ACEOF
6843 sed -n '
6844 h
6845 s/^/S["/; s/!.*/"]=/
6846 p
6847 g
6848 s/^[^!]*!//
6849 :repl
6850 t repl
6851 s/'"$ac_delim"'$//
6852 t delim
6853 :nl
6854 h
6855 s/\(.\{148\}\)..*/\1/
6856 t more1
6857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6858 p
6859 n
6860 b repl
6861 :more1
6862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6863 p
6864 g
6865 s/.\{148\}//
6866 t nl
6867 :delim
6868 h
6869 s/\(.\{148\}\)..*/\1/
6870 t more2
6871 s/["\\]/\\&/g; s/^/"/; s/$/"/
6872 p
6873 b
6874 :more2
6875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6876 p
6877 g
6878 s/.\{148\}//
6879 t delim
6880 ' <conf$$subs.awk | sed '
6881 /^[^""]/{
6882 N
6883 s/\n//
6884 }
6885 ' >>$CONFIG_STATUS || ac_write_fail=1
6886 rm -f conf$$subs.awk
6887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6888 _ACAWK
6889 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6890 for (key in S) S_is_set[key] = 1
6891 FS = ""
6892
6893 }
6894 {
6895 line = $ 0
6896 nfields = split(line, field, "@")
6897 substed = 0
6898 len = length(field[1])
6899 for (i = 2; i < nfields; i++) {
6900 key = field[i]
6901 keylen = length(key)
6902 if (S_is_set[key]) {
6903 value = S[key]
6904 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6905 len += length(value) + length(field[++i])
6906 substed = 1
6907 } else
6908 len += 1 + keylen
6909 }
6910
6911 print line
6912 }
6913
6914 _ACAWK
6915 _ACEOF
6916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6919 else
6920 cat
6921 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6922 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6923 _ACEOF
6924
6925 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6926 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6927 # trailing colons and then remove the whole line if VPATH becomes empty
6928 # (actually we leave an empty line to preserve line numbers).
6929 if test "x$srcdir" = x.; then
6930 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6931 h
6932 s///
6933 s/^/:/
6934 s/[ ]*$/:/
6935 s/:\$(srcdir):/:/g
6936 s/:\${srcdir}:/:/g
6937 s/:@srcdir@:/:/g
6938 s/^:*//
6939 s/:*$//
6940 x
6941 s/\(=[ ]*\).*/\1/
6942 G
6943 s/\n//
6944 s/^[^=]*=[ ]*$//
6945 }'
6946 fi
6947
6948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6949 fi # test -n "$CONFIG_FILES"
6950
6951 # Set up the scripts for CONFIG_HEADERS section.
6952 # No need to generate them if there are no CONFIG_HEADERS.
6953 # This happens for instance with `./config.status Makefile'.
6954 if test -n "$CONFIG_HEADERS"; then
6955 cat >"$tmp/defines.awk" <<\_ACAWK ||
6956 BEGIN {
6957 _ACEOF
6958
6959 # Transform confdefs.h into an awk script `defines.awk', embedded as
6960 # here-document in config.status, that substitutes the proper values into
6961 # config.h.in to produce config.h.
6962
6963 # Create a delimiter string that does not exist in confdefs.h, to ease
6964 # handling of long lines.
6965 ac_delim='%!_!# '
6966 for ac_last_try in false false :; do
6967 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6968 if test -z "$ac_t"; then
6969 break
6970 elif $ac_last_try; then
6971 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6972 else
6973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6974 fi
6975 done
6976
6977 # For the awk script, D is an array of macro values keyed by name,
6978 # likewise P contains macro parameters if any. Preserve backslash
6979 # newline sequences.
6980
6981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6982 sed -n '
6983 s/.\{148\}/&'"$ac_delim"'/g
6984 t rset
6985 :rset
6986 s/^[ ]*#[ ]*define[ ][ ]*/ /
6987 t def
6988 d
6989 :def
6990 s/\\$//
6991 t bsnl
6992 s/["\\]/\\&/g
6993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6994 D["\1"]=" \3"/p
6995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6996 d
6997 :bsnl
6998 s/["\\]/\\&/g
6999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7000 D["\1"]=" \3\\\\\\n"\\/p
7001 t cont
7002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7003 t cont
7004 d
7005 :cont
7006 n
7007 s/.\{148\}/&'"$ac_delim"'/g
7008 t clear
7009 :clear
7010 s/\\$//
7011 t bsnlc
7012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7013 d
7014 :bsnlc
7015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7016 b cont
7017 ' <confdefs.h | sed '
7018 s/'"$ac_delim"'/"\\\
7019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7020
7021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7022 for (key in D) D_is_set[key] = 1
7023 FS = ""
7024 }
7025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7026 line = \$ 0
7027 split(line, arg, " ")
7028 if (arg[1] == "#") {
7029 defundef = arg[2]
7030 mac1 = arg[3]
7031 } else {
7032 defundef = substr(arg[1], 2)
7033 mac1 = arg[2]
7034 }
7035 split(mac1, mac2, "(") #)
7036 macro = mac2[1]
7037 prefix = substr(line, 1, index(line, defundef) - 1)
7038 if (D_is_set[macro]) {
7039 # Preserve the white space surrounding the "#".
7040 print prefix "define", macro P[macro] D[macro]
7041 next
7042 } else {
7043 # Replace #undef with comments. This is necessary, for example,
7044 # in the case of _POSIX_SOURCE, which is predefined and required
7045 # on some systems where configure will not decide to define it.
7046 if (defundef == "undef") {
7047 print "/*", prefix defundef, macro, "*/"
7048 next
7049 }
7050 }
7051 }
7052 { print }
7053 _ACAWK
7054 _ACEOF
7055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7056 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7057 fi # test -n "$CONFIG_HEADERS"
7058
7059
7060 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7061 shift
7062 for ac_tag
7063 do
7064 case $ac_tag in
7065 :[FHLC]) ac_mode=$ac_tag; continue;;
7066 esac
7067 case $ac_mode$ac_tag in
7068 :[FHL]*:*);;
7069 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7070 :[FH]-) ac_tag=-:-;;
7071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7072 esac
7073 ac_save_IFS=$IFS
7074 IFS=:
7075 set x $ac_tag
7076 IFS=$ac_save_IFS
7077 shift
7078 ac_file=$1
7079 shift
7080
7081 case $ac_mode in
7082 :L) ac_source=$1;;
7083 :[FH])
7084 ac_file_inputs=
7085 for ac_f
7086 do
7087 case $ac_f in
7088 -) ac_f="$tmp/stdin";;
7089 *) # Look for the file first in the build tree, then in the source tree
7090 # (if the path is not absolute). The absolute path cannot be DOS-style,
7091 # because $ac_f cannot contain `:'.
7092 test -f "$ac_f" ||
7093 case $ac_f in
7094 [\\/$]*) false;;
7095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7096 esac ||
7097 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7098 esac
7099 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7100 as_fn_append ac_file_inputs " '$ac_f'"
7101 done
7102
7103 # Let's still pretend it is `configure' which instantiates (i.e., don't
7104 # use $as_me), people would be surprised to read:
7105 # /* config.h. Generated by config.status. */
7106 configure_input='Generated from '`
7107 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7108 `' by configure.'
7109 if test x"$ac_file" != x-; then
7110 configure_input="$ac_file. $configure_input"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7112 $as_echo "$as_me: creating $ac_file" >&6;}
7113 fi
7114 # Neutralize special characters interpreted by sed in replacement strings.
7115 case $configure_input in #(
7116 *\&* | *\|* | *\\* )
7117 ac_sed_conf_input=`$as_echo "$configure_input" |
7118 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7119 *) ac_sed_conf_input=$configure_input;;
7120 esac
7121
7122 case $ac_tag in
7123 *:-:* | *:-) cat >"$tmp/stdin" \
7124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7125 esac
7126 ;;
7127 esac
7128
7129 ac_dir=`$as_dirname -- "$ac_file" ||
7130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7131 X"$ac_file" : 'X\(//\)[^/]' \| \
7132 X"$ac_file" : 'X\(//\)$' \| \
7133 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7134 $as_echo X"$ac_file" |
7135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7136 s//\1/
7137 q
7138 }
7139 /^X\(\/\/\)[^/].*/{
7140 s//\1/
7141 q
7142 }
7143 /^X\(\/\/\)$/{
7144 s//\1/
7145 q
7146 }
7147 /^X\(\/\).*/{
7148 s//\1/
7149 q
7150 }
7151 s/.*/./; q'`
7152 as_dir="$ac_dir"; as_fn_mkdir_p
7153 ac_builddir=.
7154
7155 case "$ac_dir" in
7156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7157 *)
7158 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7159 # A ".." for each directory in $ac_dir_suffix.
7160 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7161 case $ac_top_builddir_sub in
7162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7164 esac ;;
7165 esac
7166 ac_abs_top_builddir=$ac_pwd
7167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7168 # for backward compatibility:
7169 ac_top_builddir=$ac_top_build_prefix
7170
7171 case $srcdir in
7172 .) # We are building in place.
7173 ac_srcdir=.
7174 ac_top_srcdir=$ac_top_builddir_sub
7175 ac_abs_top_srcdir=$ac_pwd ;;
7176 [\\/]* | ?:[\\/]* ) # Absolute name.
7177 ac_srcdir=$srcdir$ac_dir_suffix;
7178 ac_top_srcdir=$srcdir
7179 ac_abs_top_srcdir=$srcdir ;;
7180 *) # Relative name.
7181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7182 ac_top_srcdir=$ac_top_build_prefix$srcdir
7183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7184 esac
7185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7186
7187
7188 case $ac_mode in
7189 :F)
7190 #
7191 # CONFIG_FILE
7192 #
7193
7194 case $INSTALL in
7195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7197 esac
7198 ac_MKDIR_P=$MKDIR_P
7199 case $MKDIR_P in
7200 [\\/$]* | ?:[\\/]* ) ;;
7201 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7202 esac
7203 _ACEOF
7204
7205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7206 # If the template does not know about datarootdir, expand it.
7207 # FIXME: This hack should be removed a few years after 2.60.
7208 ac_datarootdir_hack=; ac_datarootdir_seen=
7209 ac_sed_dataroot='
7210 /datarootdir/ {
7211 p
7212 q
7213 }
7214 /@datadir@/p
7215 /@docdir@/p
7216 /@infodir@/p
7217 /@localedir@/p
7218 /@mandir@/p'
7219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7220 *datarootdir*) ac_datarootdir_seen=yes;;
7221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7224 _ACEOF
7225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7226 ac_datarootdir_hack='
7227 s&@datadir@&$datadir&g
7228 s&@docdir@&$docdir&g
7229 s&@infodir@&$infodir&g
7230 s&@localedir@&$localedir&g
7231 s&@mandir@&$mandir&g
7232 s&\\\${datarootdir}&$datarootdir&g' ;;
7233 esac
7234 _ACEOF
7235
7236 # Neutralize VPATH when `$srcdir' = `.'.
7237 # Shell code in configure.ac might set extrasub.
7238 # FIXME: do we really want to maintain this feature?
7239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7240 ac_sed_extra="$ac_vpsub
7241 $extrasub
7242 _ACEOF
7243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7244 :t
7245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7246 s|@configure_input@|$ac_sed_conf_input|;t t
7247 s&@top_builddir@&$ac_top_builddir_sub&;t t
7248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7249 s&@srcdir@&$ac_srcdir&;t t
7250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7251 s&@top_srcdir@&$ac_top_srcdir&;t t
7252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7253 s&@builddir@&$ac_builddir&;t t
7254 s&@abs_builddir@&$ac_abs_builddir&;t t
7255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7256 s&@INSTALL@&$ac_INSTALL&;t t
7257 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7258 $ac_datarootdir_hack
7259 "
7260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7262
7263 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7264 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7265 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7267 which seems to be undefined. Please make sure it is defined" >&5
7268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7269 which seems to be undefined. Please make sure it is defined" >&2;}
7270
7271 rm -f "$tmp/stdin"
7272 case $ac_file in
7273 -) cat "$tmp/out" && rm -f "$tmp/out";;
7274 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7275 esac \
7276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7277 ;;
7278 :H)
7279 #
7280 # CONFIG_HEADER
7281 #
7282 if test x"$ac_file" != x-; then
7283 {
7284 $as_echo "/* $configure_input */" \
7285 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7286 } >"$tmp/config.h" \
7287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7288 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7291 else
7292 rm -f "$ac_file"
7293 mv "$tmp/config.h" "$ac_file" \
7294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7295 fi
7296 else
7297 $as_echo "/* $configure_input */" \
7298 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7299 || as_fn_error $? "could not create -" "$LINENO" 5
7300 fi
7301 # Compute "$ac_file"'s index in $config_headers.
7302 _am_arg="$ac_file"
7303 _am_stamp_count=1
7304 for _am_header in $config_headers :; do
7305 case $_am_header in
7306 $_am_arg | $_am_arg:* )
7307 break ;;
7308 * )
7309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7310 esac
7311 done
7312 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7313 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7314 X"$_am_arg" : 'X\(//\)[^/]' \| \
7315 X"$_am_arg" : 'X\(//\)$' \| \
7316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7317 $as_echo X"$_am_arg" |
7318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7319 s//\1/
7320 q
7321 }
7322 /^X\(\/\/\)[^/].*/{
7323 s//\1/
7324 q
7325 }
7326 /^X\(\/\/\)$/{
7327 s//\1/
7328 q
7329 }
7330 /^X\(\/\).*/{
7331 s//\1/
7332 q
7333 }
7334 s/.*/./; q'`/stamp-h$_am_stamp_count
7335 ;;
7336
7337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7338 $as_echo "$as_me: executing $ac_file commands" >&6;}
7339 ;;
7340 esac
7341
7342
7343 case $ac_file$ac_mode in
7344 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7345 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7346 # are listed without --file. Let's play safe and only enable the eval
7347 # if we detect the quoting.
7348 case $CONFIG_FILES in
7349 *\'*) eval set x "$CONFIG_FILES" ;;
7350 *) set x $CONFIG_FILES ;;
7351 esac
7352 shift
7353 for mf
7354 do
7355 # Strip MF so we end up with the name of the file.
7356 mf=`echo "$mf" | sed -e 's/:.*$//'`
7357 # Check whether this is an Automake generated Makefile or not.
7358 # We used to match only the files named `Makefile.in', but
7359 # some people rename them; so instead we look at the file content.
7360 # Grep'ing the first line is not enough: some people post-process
7361 # each Makefile.in and add a new line on top of each file to say so.
7362 # Grep'ing the whole file is not good either: AIX grep has a line
7363 # limit of 2048, but all sed's we know have understand at least 4000.
7364 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7365 dirpart=`$as_dirname -- "$mf" ||
7366 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7367 X"$mf" : 'X\(//\)[^/]' \| \
7368 X"$mf" : 'X\(//\)$' \| \
7369 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7370 $as_echo X"$mf" |
7371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7372 s//\1/
7373 q
7374 }
7375 /^X\(\/\/\)[^/].*/{
7376 s//\1/
7377 q
7378 }
7379 /^X\(\/\/\)$/{
7380 s//\1/
7381 q
7382 }
7383 /^X\(\/\).*/{
7384 s//\1/
7385 q
7386 }
7387 s/.*/./; q'`
7388 else
7389 continue
7390 fi
7391 # Extract the definition of DEPDIR, am__include, and am__quote
7392 # from the Makefile without running `make'.
7393 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7394 test -z "$DEPDIR" && continue
7395 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7396 test -z "am__include" && continue
7397 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7398 # When using ansi2knr, U may be empty or an underscore; expand it
7399 U=`sed -n 's/^U = //p' < "$mf"`
7400 # Find all dependency output files, they are included files with
7401 # $(DEPDIR) in their names. We invoke sed twice because it is the
7402 # simplest approach to changing $(DEPDIR) to its actual value in the
7403 # expansion.
7404 for file in `sed -n "
7405 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7407 # Make sure the directory exists.
7408 test -f "$dirpart/$file" && continue
7409 fdir=`$as_dirname -- "$file" ||
7410 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7411 X"$file" : 'X\(//\)[^/]' \| \
7412 X"$file" : 'X\(//\)$' \| \
7413 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7414 $as_echo X"$file" |
7415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7416 s//\1/
7417 q
7418 }
7419 /^X\(\/\/\)[^/].*/{
7420 s//\1/
7421 q
7422 }
7423 /^X\(\/\/\)$/{
7424 s//\1/
7425 q
7426 }
7427 /^X\(\/\).*/{
7428 s//\1/
7429 q
7430 }
7431 s/.*/./; q'`
7432 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7433 # echo "creating $dirpart/$file"
7434 echo '# dummy' > "$dirpart/$file"
7435 done
7436 done
7437 }
7438 ;;
7439
7440 esac
7441 done # for ac_tag
7442
7443
7444 as_fn_exit 0
7445 _ACEOF
7446 ac_clean_files=$ac_clean_files_save
7447
7448 test $ac_write_fail = 0 ||
7449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7450
7451
7452 # configure is writing to config.log, and then calls config.status.
7453 # config.status does its own redirection, appending to config.log.
7454 # Unfortunately, on DOS this fails, as config.log is still kept open
7455 # by configure, so config.status won't be able to write to it; its
7456 # output is simply discarded. So we exec the FD to /dev/null,
7457 # effectively closing config.log, so it can be properly (re)opened and
7458 # appended to by config.status. When coming back to configure, we
7459 # need to make the FD available again.
7460 if test "$no_create" != yes; then
7461 ac_cs_success=:
7462 ac_config_status_args=
7463 test "$silent" = yes &&
7464 ac_config_status_args="$ac_config_status_args --quiet"
7465 exec 5>/dev/null
7466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7467 exec 5>>config.log
7468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7469 # would make configure fail if this is the last instruction.
7470 $ac_cs_success || as_fn_exit 1
7471 fi
7472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7475 fi
7476