ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/PDL-Audio/sndlib/configure
Revision: 1.2
Committed: Wed Apr 18 08:28:18 2012 UTC (14 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-1_2, HEAD
Changes since 1.1: +5256 -1955 lines
Log Message:
1.2

File Contents

# User Rev Content
1 root 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 root 1.2 # Generated by GNU Autoconf 2.64.
4     #
5     # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6     # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7     # Foundation, Inc.
8 root 1.1 #
9     # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 root 1.2 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14    
15     # Be more Bourne compatible
16     DUALCASE=1; export DUALCASE # for MKS sh
17     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18     emulate sh
19     NULLCMD=:
20     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21     # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25     case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30     esac
31     fi
32    
33    
34     as_nl='
35     '
36     export as_nl
37     # Printing a long string crashes Solaris 7 /usr/bin/printf.
38     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41     # Prefer a ksh shell builtin over an external printf program on Solaris,
42     # but without wasting forks for bash or zsh.
43     if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45     as_echo='print -r --'
46     as_echo_n='print -rn --'
47     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='printf %s\n'
49     as_echo_n='printf %s'
50     else
51     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54     else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57     arg=$1;
58     case $arg in #(
59     *"$as_nl"*)
60     expr "X$arg" : "X\\(.*\\)$as_nl";
61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62     esac;
63     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67     fi
68     export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70     fi
71    
72     # The user is always right.
73     if test "${PATH_SEPARATOR+set}" != set; then
74     PATH_SEPARATOR=:
75     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77     PATH_SEPARATOR=';'
78     }
79     fi
80    
81    
82     # IFS
83     # We need space, tab and new line, in precisely that order. Quoting is
84     # there to prevent editors from complaining about space-tab.
85     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86     # splitting by setting IFS to empty value.)
87     IFS=" "" $as_nl"
88    
89     # Find who we are. Look in the path if we contain no directory separator.
90     case $0 in #((
91     *[\\/]* ) as_myself=$0 ;;
92     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93     for as_dir in $PATH
94     do
95     IFS=$as_save_IFS
96     test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98     done
99     IFS=$as_save_IFS
100    
101     ;;
102     esac
103     # We did not find ourselves, most probably we were run as `sh COMMAND'
104     # in which case we are not to be found in the path.
105     if test "x$as_myself" = x; then
106     as_myself=$0
107     fi
108     if test ! -f "$as_myself"; then
109     $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110     exit 1
111     fi
112    
113     # Unset variables that we do not need and which cause bugs (e.g. in
114     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115     # suppresses any "Segmentation fault" message there. '((' could
116     # trigger a bug in pdksh 5.2.14.
117     for as_var in BASH_ENV ENV MAIL MAILPATH
118     do eval test x\${$as_var+set} = xset \
119     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120     done
121     PS1='$ '
122     PS2='> '
123     PS4='+ '
124    
125     # NLS nuisances.
126     LC_ALL=C
127     export LC_ALL
128     LANGUAGE=C
129     export LANGUAGE
130    
131     # CDPATH.
132     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133    
134     if test "x$CONFIG_SHELL" = x; then
135     as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136     emulate sh
137     NULLCMD=:
138     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139     # is contrary to our usage. Disable this feature.
140     alias -g '\${1+\"\$@\"}'='\"\$@\"'
141     setopt NO_GLOB_SUBST
142     else
143     case \`(set -o) 2>/dev/null\` in #(
144     *posix*) :
145     set -o posix ;; #(
146     *) :
147     ;;
148     esac
149     fi
150     "
151     as_required="as_fn_return () { (exit \$1); }
152     as_fn_success () { as_fn_return 0; }
153     as_fn_failure () { as_fn_return 1; }
154     as_fn_ret_success () { return 0; }
155     as_fn_ret_failure () { return 1; }
156    
157     exitcode=0
158     as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163    
164     else
165     exitcode=1; echo positional parameters were not saved.
166     fi
167     test x\$exitcode = x0 || exit 1"
168     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172     test \$(( 1 + 1 )) = 2 || exit 1"
173     if (eval "$as_required") 2>/dev/null; then :
174     as_have_required=yes
175     else
176     as_have_required=no
177     fi
178     if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179    
180     else
181     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182     as_found=false
183     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184     do
185     IFS=$as_save_IFS
186     test -z "$as_dir" && as_dir=.
187     as_found=:
188     case $as_dir in #(
189     /*)
190     for as_base in sh bash ksh sh5; do
191     # Try only shells that exist, to save several forks.
192     as_shell=$as_dir/$as_base
193     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195     CONFIG_SHELL=$as_shell as_have_required=yes
196     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197     break 2
198     fi
199     fi
200     done;;
201     esac
202     as_found=false
203     done
204     $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206     CONFIG_SHELL=$SHELL as_have_required=yes
207     fi; }
208     IFS=$as_save_IFS
209    
210    
211     if test "x$CONFIG_SHELL" != x; then :
212     # We cannot yet assume a decent shell, so we have to provide a
213     # neutralization value for shells without unset; and this also
214     # works around shells that cannot unset nonexistent variables.
215     BASH_ENV=/dev/null
216     ENV=/dev/null
217     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218     export CONFIG_SHELL
219     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220     fi
221    
222     if test x$as_have_required = xno; then :
223     $as_echo "$0: This script requires a shell more modern than all"
224     $as_echo "$0: the shells that I found on your system."
225     if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228     else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230     $0: including any error possibly output before this
231     $0: message. Then install a modern shell, or manually run
232     $0: the script under such a shell if you do have one."
233     fi
234     exit 1
235     fi
236     fi
237     fi
238     SHELL=${CONFIG_SHELL-/bin/sh}
239     export SHELL
240     # Unset more variables known to interfere with behavior of common tools.
241     CLICOLOR_FORCE= GREP_OPTIONS=
242     unset CLICOLOR_FORCE GREP_OPTIONS
243    
244     ## --------------------- ##
245     ## M4sh Shell Functions. ##
246     ## --------------------- ##
247     # as_fn_unset VAR
248     # ---------------
249     # Portably unset VAR.
250     as_fn_unset ()
251     {
252     { eval $1=; unset $1;}
253     }
254     as_unset=as_fn_unset
255    
256     # as_fn_set_status STATUS
257     # -----------------------
258     # Set $? to STATUS, without forking.
259     as_fn_set_status ()
260     {
261     return $1
262     } # as_fn_set_status
263    
264     # as_fn_exit STATUS
265     # -----------------
266     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267     as_fn_exit ()
268     {
269     set +e
270     as_fn_set_status $1
271     exit $1
272     } # as_fn_exit
273    
274     # as_fn_mkdir_p
275     # -------------
276     # Create "$as_dir" as a directory, including parents if necessary.
277     as_fn_mkdir_p ()
278     {
279    
280     case $as_dir in #(
281     -*) as_dir=./$as_dir;;
282     esac
283     test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286     case $as_dir in #(
287     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288     *) as_qdir=$as_dir;;
289     esac
290     as_dirs="'$as_qdir' $as_dirs"
291     as_dir=`$as_dirname -- "$as_dir" ||
292     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293     X"$as_dir" : 'X\(//\)[^/]' \| \
294     X"$as_dir" : 'X\(//\)$' \| \
295     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296     $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298     s//\1/
299     q
300     }
301     /^X\(\/\/\)[^/].*/{
302     s//\1/
303     q
304     }
305     /^X\(\/\/\)$/{
306     s//\1/
307     q
308     }
309     /^X\(\/\).*/{
310     s//\1/
311     q
312     }
313     s/.*/./; q'`
314     test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318    
319    
320     } # as_fn_mkdir_p
321     # as_fn_append VAR VALUE
322     # ----------------------
323     # Append the text in VALUE to the end of the definition contained in VAR. Take
324     # advantage of any shell optimizations that allow amortized linear growth over
325     # repeated appends, instead of the typical quadratic growth present in naive
326     # implementations.
327     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328     eval 'as_fn_append ()
329     {
330     eval $1+=\$2
331     }'
332     else
333     as_fn_append ()
334     {
335     eval $1=\$$1\$2
336     }
337     fi # as_fn_append
338    
339     # as_fn_arith ARG...
340     # ------------------
341     # Perform arithmetic evaluation on the ARGs, and store the result in the
342     # global $as_val. Take advantage of shells that can avoid forks. The arguments
343     # must be portable across $(()) and expr.
344     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345     eval 'as_fn_arith ()
346     {
347     as_val=$(( $* ))
348     }'
349     else
350     as_fn_arith ()
351     {
352     as_val=`expr "$@" || test $? -eq 1`
353     }
354     fi # as_fn_arith
355    
356    
357     # as_fn_error ERROR [LINENO LOG_FD]
358     # ---------------------------------
359     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361     # script with status $?, using 1 if that was 0.
362     as_fn_error ()
363     {
364     as_status=$?; test $as_status -eq 0 && as_status=1
365     if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368     fi
369     $as_echo "$as_me: error: $1" >&2
370     as_fn_exit $as_status
371     } # as_fn_error
372    
373     if expr a : '\(a\)' >/dev/null 2>&1 &&
374     test "X`expr 00001 : '.*\(...\)'`" = X001; then
375     as_expr=expr
376     else
377     as_expr=false
378     fi
379    
380     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381     as_basename=basename
382     else
383     as_basename=false
384     fi
385    
386     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387     as_dirname=dirname
388     else
389     as_dirname=false
390     fi
391    
392     as_me=`$as_basename -- "$0" ||
393     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394     X"$0" : 'X\(//\)$' \| \
395     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396     $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398     s//\1/
399     q
400     }
401     /^X\/\(\/\/\)$/{
402     s//\1/
403     q
404     }
405     /^X\/\(\/\).*/{
406     s//\1/
407     q
408     }
409     s/.*/./; q'`
410    
411     # Avoid depending upon Character Ranges.
412     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415     as_cr_digits='0123456789'
416     as_cr_alnum=$as_cr_Letters$as_cr_digits
417    
418    
419     as_lineno_1=$LINENO as_lineno_1a=$LINENO
420     as_lineno_2=$LINENO as_lineno_2a=$LINENO
421     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424     sed -n '
425     p
426     /[$]LINENO/=
427     ' <$as_myself |
428     sed '
429     s/[$]LINENO.*/&-/
430     t lineno
431     b
432     :lineno
433     N
434     :loop
435     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436     t loop
437     s/-\n.*//
438     ' >$as_me.lineno &&
439     chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441    
442     # Don't try to exec as it changes $[0], causing all sort of problems
443     # (the dirname of $[0] is not the place where we might find the
444     # original and so on. Autoconf is especially sensitive to this).
445     . "./$as_me.lineno"
446     # Exit status is that of the last command.
447     exit
448     }
449    
450     ECHO_C= ECHO_N= ECHO_T=
451     case `echo -n x` in #(((((
452     -n*)
453     case `echo 'xy\c'` in
454     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455     xy) ECHO_C='\c';;
456     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457     ECHO_T=' ';;
458     esac;;
459     *)
460     ECHO_N='-n';;
461     esac
462    
463     rm -f conf$$ conf$$.exe conf$$.file
464     if test -d conf$$.dir; then
465     rm -f conf$$.dir/conf$$.file
466     else
467     rm -f conf$$.dir
468     mkdir conf$$.dir 2>/dev/null
469     fi
470     if (echo >conf$$.file) 2>/dev/null; then
471     if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478     as_ln_s='cp -p'
479     elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481     else
482     as_ln_s='cp -p'
483     fi
484     else
485     as_ln_s='cp -p'
486     fi
487     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488     rmdir conf$$.dir 2>/dev/null
489    
490     if mkdir -p . 2>/dev/null; then
491     as_mkdir_p='mkdir -p "$as_dir"'
492     else
493     test -d ./-p && rmdir ./-p
494     as_mkdir_p=false
495     fi
496    
497     if test -x / >/dev/null 2>&1; then
498     as_test_x='test -x'
499     else
500     if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502     else
503     as_ls_L_option=
504     fi
505     as_test_x='
506     eval sh -c '\''
507     if test -d "$1"; then
508     test -d "$1/.";
509     else
510     case $1 in #(
511     -*)set "./$1";;
512     esac;
513     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514     ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516     '
517     fi
518     as_executable_p=$as_test_x
519    
520     # Sed expression to map a string onto a valid CPP name.
521     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522    
523     # Sed expression to map a string onto a valid variable name.
524     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525    
526    
527     exec 7<&0 </dev/null 6>&1
528    
529     # Name of the host.
530     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531     # so uname gets run too.
532     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533 root 1.1
534 root 1.2 #
535     # Initializations.
536     #
537 root 1.1 ac_default_prefix=/usr/local
538 root 1.2 ac_clean_files=
539     ac_config_libobj_dir=.
540     LIBOBJS=
541     cross_compiling=no
542     subdirs=
543     MFLAGS=
544     MAKEFLAGS=
545    
546     # Identity of this package.
547     PACKAGE_NAME=
548     PACKAGE_TARNAME=
549     PACKAGE_VERSION=
550     PACKAGE_STRING=
551     PACKAGE_BUGREPORT=
552     PACKAGE_URL=
553    
554     ac_unique_file="io.c"
555     # Factoring default headers for most tests.
556     ac_includes_default="\
557     #include <stdio.h>
558     #ifdef HAVE_SYS_TYPES_H
559     # include <sys/types.h>
560     #endif
561     #ifdef HAVE_SYS_STAT_H
562     # include <sys/stat.h>
563     #endif
564     #ifdef STDC_HEADERS
565     # include <stdlib.h>
566     # include <stddef.h>
567     #else
568     # ifdef HAVE_STDLIB_H
569     # include <stdlib.h>
570     # endif
571     #endif
572     #ifdef HAVE_STRING_H
573     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574     # include <memory.h>
575     # endif
576     # include <string.h>
577     #endif
578     #ifdef HAVE_STRINGS_H
579     # include <strings.h>
580     #endif
581     #ifdef HAVE_INTTYPES_H
582     # include <inttypes.h>
583     #endif
584     #ifdef HAVE_STDINT_H
585     # include <stdint.h>
586     #endif
587     #ifdef HAVE_UNISTD_H
588     # include <unistd.h>
589     #endif"
590    
591     ac_subst_vars='LTLIBOBJS
592     LIBOBJS
593     LIB_NAME
594     A_LD_FLAGS
595     A_LD
596     AUDIO_LIB
597     EGREP
598     GREP
599     CPP
600     OBJEXT
601     EXEEXT
602     ac_ct_CC
603     CPPFLAGS
604     LDFLAGS
605     CFLAGS
606     CC
607     host_os
608     host_vendor
609     host_cpu
610     host
611     build_os
612     build_vendor
613     build_cpu
614     build
615     target_alias
616     host_alias
617     build_alias
618     LIBS
619     ECHO_T
620     ECHO_N
621     ECHO_C
622     DEFS
623     mandir
624     localedir
625     libdir
626     psdir
627     pdfdir
628     dvidir
629     htmldir
630     infodir
631     docdir
632     oldincludedir
633     includedir
634     localstatedir
635     sharedstatedir
636     sysconfdir
637     datadir
638     datarootdir
639     libexecdir
640     sbindir
641     bindir
642     program_transform_name
643     prefix
644     exec_prefix
645     PACKAGE_URL
646     PACKAGE_BUGREPORT
647     PACKAGE_STRING
648     PACKAGE_VERSION
649     PACKAGE_TARNAME
650     PACKAGE_NAME
651     PATH_SEPARATOR
652     SHELL'
653     ac_subst_files=''
654     ac_user_opts='
655     enable_option_checking
656     with_alsa
657     '
658     ac_precious_vars='build_alias
659     host_alias
660     target_alias
661     CC
662     CFLAGS
663     LDFLAGS
664     LIBS
665     CPPFLAGS
666     CPP'
667    
668 root 1.1
669     # Initialize some variables set by options.
670 root 1.2 ac_init_help=
671     ac_init_version=false
672     ac_unrecognized_opts=
673     ac_unrecognized_sep=
674 root 1.1 # The variables have the same names as the options, with
675     # dashes changed to underlines.
676 root 1.2 cache_file=/dev/null
677 root 1.1 exec_prefix=NONE
678     no_create=
679     no_recursion=
680     prefix=NONE
681     program_prefix=NONE
682     program_suffix=NONE
683     program_transform_name=s,x,x,
684     silent=
685     site=
686     srcdir=
687     verbose=
688     x_includes=NONE
689     x_libraries=NONE
690 root 1.2
691     # Installation directory options.
692     # These are left unexpanded so users can "make install exec_prefix=/foo"
693     # and all the variables that are supposed to be based on exec_prefix
694     # by default will actually change.
695     # Use braces instead of parens because sh, perl, etc. also accept them.
696     # (The list follows the same order as the GNU Coding Standards.)
697 root 1.1 bindir='${exec_prefix}/bin'
698     sbindir='${exec_prefix}/sbin'
699     libexecdir='${exec_prefix}/libexec'
700 root 1.2 datarootdir='${prefix}/share'
701     datadir='${datarootdir}'
702 root 1.1 sysconfdir='${prefix}/etc'
703     sharedstatedir='${prefix}/com'
704     localstatedir='${prefix}/var'
705     includedir='${prefix}/include'
706     oldincludedir='/usr/include'
707 root 1.2 docdir='${datarootdir}/doc/${PACKAGE}'
708     infodir='${datarootdir}/info'
709     htmldir='${docdir}'
710     dvidir='${docdir}'
711     pdfdir='${docdir}'
712     psdir='${docdir}'
713     libdir='${exec_prefix}/lib'
714     localedir='${datarootdir}/locale'
715     mandir='${datarootdir}/man'
716 root 1.1
717     ac_prev=
718 root 1.2 ac_dashdash=
719 root 1.1 for ac_option
720     do
721     # If the previous option needs an argument, assign it.
722     if test -n "$ac_prev"; then
723 root 1.2 eval $ac_prev=\$ac_option
724 root 1.1 ac_prev=
725     continue
726     fi
727    
728 root 1.2 case $ac_option in
729     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
730     *) ac_optarg=yes ;;
731 root 1.1 esac
732    
733     # Accept the important Cygnus configure options, so we can diagnose typos.
734    
735 root 1.2 case $ac_dashdash$ac_option in
736     --)
737     ac_dashdash=yes ;;
738 root 1.1
739     -bindir | --bindir | --bindi | --bind | --bin | --bi)
740     ac_prev=bindir ;;
741     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
742 root 1.2 bindir=$ac_optarg ;;
743 root 1.1
744     -build | --build | --buil | --bui | --bu)
745 root 1.2 ac_prev=build_alias ;;
746 root 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
747 root 1.2 build_alias=$ac_optarg ;;
748 root 1.1
749     -cache-file | --cache-file | --cache-fil | --cache-fi \
750     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
751     ac_prev=cache_file ;;
752     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
753     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
754 root 1.2 cache_file=$ac_optarg ;;
755    
756     --config-cache | -C)
757     cache_file=config.cache ;;
758 root 1.1
759 root 1.2 -datadir | --datadir | --datadi | --datad)
760 root 1.1 ac_prev=datadir ;;
761 root 1.2 -datadir=* | --datadir=* | --datadi=* | --datad=*)
762     datadir=$ac_optarg ;;
763    
764     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
765     | --dataroo | --dataro | --datar)
766     ac_prev=datarootdir ;;
767     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
768     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
769     datarootdir=$ac_optarg ;;
770 root 1.1
771     -disable-* | --disable-*)
772 root 1.2 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
773 root 1.1 # Reject names that are not valid shell variable names.
774 root 1.2 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775     as_fn_error "invalid feature name: $ac_useropt"
776     ac_useropt_orig=$ac_useropt
777     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778     case $ac_user_opts in
779     *"
780     "enable_$ac_useropt"
781     "*) ;;
782     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
783     ac_unrecognized_sep=', ';;
784     esac
785     eval enable_$ac_useropt=no ;;
786    
787     -docdir | --docdir | --docdi | --doc | --do)
788     ac_prev=docdir ;;
789     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
790     docdir=$ac_optarg ;;
791    
792     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
793     ac_prev=dvidir ;;
794     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
795     dvidir=$ac_optarg ;;
796 root 1.1
797     -enable-* | --enable-*)
798 root 1.2 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
799 root 1.1 # Reject names that are not valid shell variable names.
800 root 1.2 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801     as_fn_error "invalid feature name: $ac_useropt"
802     ac_useropt_orig=$ac_useropt
803     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804     case $ac_user_opts in
805     *"
806     "enable_$ac_useropt"
807     "*) ;;
808     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
809     ac_unrecognized_sep=', ';;
810 root 1.1 esac
811 root 1.2 eval enable_$ac_useropt=\$ac_optarg ;;
812 root 1.1
813     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815     | --exec | --exe | --ex)
816     ac_prev=exec_prefix ;;
817     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819     | --exec=* | --exe=* | --ex=*)
820 root 1.2 exec_prefix=$ac_optarg ;;
821 root 1.1
822     -gas | --gas | --ga | --g)
823     # Obsolete; use --with-gas.
824     with_gas=yes ;;
825    
826 root 1.2 -help | --help | --hel | --he | -h)
827     ac_init_help=long ;;
828     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829     ac_init_help=recursive ;;
830     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831     ac_init_help=short ;;
832 root 1.1
833     -host | --host | --hos | --ho)
834 root 1.2 ac_prev=host_alias ;;
835 root 1.1 -host=* | --host=* | --hos=* | --ho=*)
836 root 1.2 host_alias=$ac_optarg ;;
837    
838     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839     ac_prev=htmldir ;;
840     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841     | --ht=*)
842     htmldir=$ac_optarg ;;
843 root 1.1
844     -includedir | --includedir | --includedi | --included | --include \
845     | --includ | --inclu | --incl | --inc)
846     ac_prev=includedir ;;
847     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848     | --includ=* | --inclu=* | --incl=* | --inc=*)
849 root 1.2 includedir=$ac_optarg ;;
850 root 1.1
851     -infodir | --infodir | --infodi | --infod | --info | --inf)
852     ac_prev=infodir ;;
853     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854 root 1.2 infodir=$ac_optarg ;;
855 root 1.1
856     -libdir | --libdir | --libdi | --libd)
857     ac_prev=libdir ;;
858     -libdir=* | --libdir=* | --libdi=* | --libd=*)
859 root 1.2 libdir=$ac_optarg ;;
860 root 1.1
861     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862     | --libexe | --libex | --libe)
863     ac_prev=libexecdir ;;
864     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865     | --libexe=* | --libex=* | --libe=*)
866 root 1.2 libexecdir=$ac_optarg ;;
867    
868     -localedir | --localedir | --localedi | --localed | --locale)
869     ac_prev=localedir ;;
870     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871     localedir=$ac_optarg ;;
872 root 1.1
873     -localstatedir | --localstatedir | --localstatedi | --localstated \
874 root 1.2 | --localstate | --localstat | --localsta | --localst | --locals)
875 root 1.1 ac_prev=localstatedir ;;
876     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877 root 1.2 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878     localstatedir=$ac_optarg ;;
879 root 1.1
880     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881     ac_prev=mandir ;;
882     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883 root 1.2 mandir=$ac_optarg ;;
884 root 1.1
885     -nfp | --nfp | --nf)
886     # Obsolete; use --without-fp.
887     with_fp=no ;;
888    
889     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890 root 1.2 | --no-cr | --no-c | -n)
891 root 1.1 no_create=yes ;;
892    
893     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
895     no_recursion=yes ;;
896    
897     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899     | --oldin | --oldi | --old | --ol | --o)
900     ac_prev=oldincludedir ;;
901     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904 root 1.2 oldincludedir=$ac_optarg ;;
905 root 1.1
906     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907     ac_prev=prefix ;;
908     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
909 root 1.2 prefix=$ac_optarg ;;
910 root 1.1
911     -program-prefix | --program-prefix | --program-prefi | --program-pref \
912     | --program-pre | --program-pr | --program-p)
913     ac_prev=program_prefix ;;
914     -program-prefix=* | --program-prefix=* | --program-prefi=* \
915     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916 root 1.2 program_prefix=$ac_optarg ;;
917 root 1.1
918     -program-suffix | --program-suffix | --program-suffi | --program-suff \
919     | --program-suf | --program-su | --program-s)
920     ac_prev=program_suffix ;;
921     -program-suffix=* | --program-suffix=* | --program-suffi=* \
922     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923 root 1.2 program_suffix=$ac_optarg ;;
924 root 1.1
925     -program-transform-name | --program-transform-name \
926     | --program-transform-nam | --program-transform-na \
927     | --program-transform-n | --program-transform- \
928     | --program-transform | --program-transfor \
929     | --program-transfo | --program-transf \
930     | --program-trans | --program-tran \
931     | --progr-tra | --program-tr | --program-t)
932     ac_prev=program_transform_name ;;
933     -program-transform-name=* | --program-transform-name=* \
934     | --program-transform-nam=* | --program-transform-na=* \
935     | --program-transform-n=* | --program-transform-=* \
936     | --program-transform=* | --program-transfor=* \
937     | --program-transfo=* | --program-transf=* \
938     | --program-trans=* | --program-tran=* \
939     | --progr-tra=* | --program-tr=* | --program-t=*)
940 root 1.2 program_transform_name=$ac_optarg ;;
941    
942     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943     ac_prev=pdfdir ;;
944     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
945     pdfdir=$ac_optarg ;;
946    
947     -psdir | --psdir | --psdi | --psd | --ps)
948     ac_prev=psdir ;;
949     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
950     psdir=$ac_optarg ;;
951 root 1.1
952     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953     | -silent | --silent | --silen | --sile | --sil)
954     silent=yes ;;
955    
956     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957     ac_prev=sbindir ;;
958     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959     | --sbi=* | --sb=*)
960 root 1.2 sbindir=$ac_optarg ;;
961 root 1.1
962     -sharedstatedir | --sharedstatedir | --sharedstatedi \
963     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964     | --sharedst | --shareds | --shared | --share | --shar \
965     | --sha | --sh)
966     ac_prev=sharedstatedir ;;
967     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970     | --sha=* | --sh=*)
971 root 1.2 sharedstatedir=$ac_optarg ;;
972 root 1.1
973     -site | --site | --sit)
974     ac_prev=site ;;
975     -site=* | --site=* | --sit=*)
976 root 1.2 site=$ac_optarg ;;
977 root 1.1
978     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979     ac_prev=srcdir ;;
980     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
981 root 1.2 srcdir=$ac_optarg ;;
982 root 1.1
983     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984     | --syscon | --sysco | --sysc | --sys | --sy)
985     ac_prev=sysconfdir ;;
986     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988 root 1.2 sysconfdir=$ac_optarg ;;
989 root 1.1
990     -target | --target | --targe | --targ | --tar | --ta | --t)
991 root 1.2 ac_prev=target_alias ;;
992 root 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993 root 1.2 target_alias=$ac_optarg ;;
994 root 1.1
995     -v | -verbose | --verbose | --verbos | --verbo | --verb)
996     verbose=yes ;;
997    
998 root 1.2 -version | --version | --versio | --versi | --vers | -V)
999     ac_init_version=: ;;
1000 root 1.1
1001     -with-* | --with-*)
1002 root 1.2 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003 root 1.1 # Reject names that are not valid shell variable names.
1004 root 1.2 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005     as_fn_error "invalid package name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009     *"
1010     "with_$ac_useropt"
1011     "*) ;;
1012     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1013     ac_unrecognized_sep=', ';;
1014 root 1.1 esac
1015 root 1.2 eval with_$ac_useropt=\$ac_optarg ;;
1016 root 1.1
1017     -without-* | --without-*)
1018 root 1.2 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019 root 1.1 # Reject names that are not valid shell variable names.
1020 root 1.2 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021     as_fn_error "invalid package name: $ac_useropt"
1022     ac_useropt_orig=$ac_useropt
1023     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024     case $ac_user_opts in
1025     *"
1026     "with_$ac_useropt"
1027     "*) ;;
1028     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1029     ac_unrecognized_sep=', ';;
1030     esac
1031     eval with_$ac_useropt=no ;;
1032 root 1.1
1033     --x)
1034     # Obsolete; use --with-x.
1035     with_x=yes ;;
1036    
1037     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038     | --x-incl | --x-inc | --x-in | --x-i)
1039     ac_prev=x_includes ;;
1040     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042 root 1.2 x_includes=$ac_optarg ;;
1043 root 1.1
1044     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046     ac_prev=x_libraries ;;
1047     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049 root 1.2 x_libraries=$ac_optarg ;;
1050 root 1.1
1051 root 1.2 -*) as_fn_error "unrecognized option: \`$ac_option'
1052     Try \`$0 --help' for more information."
1053 root 1.1 ;;
1054    
1055 root 1.2 *=*)
1056     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057     # Reject names that are not valid shell variable names.
1058     case $ac_envvar in #(
1059     '' | [0-9]* | *[!_$as_cr_alnum]* )
1060     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1061     esac
1062     eval $ac_envvar=\$ac_optarg
1063     export $ac_envvar ;;
1064    
1065 root 1.1 *)
1066 root 1.2 # FIXME: should be removed in autoconf 3.0.
1067     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069     $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071 root 1.1 ;;
1072    
1073     esac
1074     done
1075    
1076     if test -n "$ac_prev"; then
1077 root 1.2 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078     as_fn_error "missing argument to $ac_option"
1079 root 1.1 fi
1080    
1081 root 1.2 if test -n "$ac_unrecognized_opts"; then
1082     case $enable_option_checking in
1083     no) ;;
1084     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1085     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1086     esac
1087 root 1.1 fi
1088    
1089 root 1.2 # Check all directory arguments for consistency.
1090     for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1091     datadir sysconfdir sharedstatedir localstatedir includedir \
1092     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1093     libdir localedir mandir
1094 root 1.1 do
1095 root 1.2 eval ac_val=\$$ac_var
1096     # Remove trailing slashes.
1097     case $ac_val in
1098     */ )
1099     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1100     eval $ac_var=\$ac_val;;
1101     esac
1102     # Be sure to have absolute directory names.
1103     case $ac_val in
1104     [\\/$]* | ?:[\\/]* ) continue;;
1105     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 root 1.1 esac
1107 root 1.2 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1108 root 1.1 done
1109    
1110 root 1.2 # There might be people who depend on the old broken behavior: `$host'
1111     # used to hold the argument of --host etc.
1112     # FIXME: To remove some day.
1113     build=$build_alias
1114     host=$host_alias
1115     target=$target_alias
1116    
1117     # FIXME: To remove some day.
1118     if test "x$host_alias" != x; then
1119     if test "x$build_alias" = x; then
1120     cross_compiling=maybe
1121     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122     If a cross compiler is detected then cross compile mode will be used." >&2
1123     elif test "x$build_alias" != "x$host_alias"; then
1124     cross_compiling=yes
1125     fi
1126     fi
1127    
1128     ac_tool_prefix=
1129     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130    
1131     test "$silent" = yes && exec 6>/dev/null
1132    
1133    
1134     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135     ac_ls_di=`ls -di .` &&
1136     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137     as_fn_error "working directory cannot be determined"
1138     test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139     as_fn_error "pwd does not report name of working directory"
1140 root 1.1
1141    
1142     # Find the source files, if location was not specified.
1143     if test -z "$srcdir"; then
1144     ac_srcdir_defaulted=yes
1145 root 1.2 # Try the directory containing this script, then the parent directory.
1146     ac_confdir=`$as_dirname -- "$as_myself" ||
1147     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148     X"$as_myself" : 'X\(//\)[^/]' \| \
1149     X"$as_myself" : 'X\(//\)$' \| \
1150     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151     $as_echo X"$as_myself" |
1152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153     s//\1/
1154     q
1155     }
1156     /^X\(\/\/\)[^/].*/{
1157     s//\1/
1158     q
1159     }
1160     /^X\(\/\/\)$/{
1161     s//\1/
1162     q
1163     }
1164     /^X\(\/\).*/{
1165     s//\1/
1166     q
1167     }
1168     s/.*/./; q'`
1169 root 1.1 srcdir=$ac_confdir
1170 root 1.2 if test ! -r "$srcdir/$ac_unique_file"; then
1171 root 1.1 srcdir=..
1172     fi
1173     else
1174     ac_srcdir_defaulted=no
1175     fi
1176 root 1.2 if test ! -r "$srcdir/$ac_unique_file"; then
1177     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178     as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1179     fi
1180     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181     ac_abs_confdir=`(
1182     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1183     pwd)`
1184     # When building in place, set srcdir=.
1185     if test "$ac_abs_confdir" = "$ac_pwd"; then
1186     srcdir=.
1187     fi
1188     # Remove unnecessary trailing slashes from srcdir.
1189     # Double slashes in file names in object file debugging info
1190     # mess up M-x gdb in Emacs.
1191     case $srcdir in
1192     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193     esac
1194     for ac_var in $ac_precious_vars; do
1195     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196     eval ac_env_${ac_var}_value=\$${ac_var}
1197     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199     done
1200    
1201     #
1202     # Report the --help message.
1203     #
1204     if test "$ac_init_help" = "long"; then
1205     # Omit some internal or obsolete options to make the list less imposing.
1206     # This message is too long to be a string in the A/UX 3.1 sh.
1207     cat <<_ACEOF
1208     \`configure' configures this package to adapt to many kinds of systems.
1209    
1210     Usage: $0 [OPTION]... [VAR=VALUE]...
1211 root 1.1
1212 root 1.2 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213     VAR=VALUE. See below for descriptions of some of the useful variables.
1214 root 1.1
1215 root 1.2 Defaults for the options are specified in brackets.
1216 root 1.1
1217 root 1.2 Configuration:
1218     -h, --help display this help and exit
1219     --help=short display options specific to this package
1220     --help=recursive display the short help of all the included packages
1221     -V, --version display version information and exit
1222     -q, --quiet, --silent do not print \`checking...' messages
1223     --cache-file=FILE cache test results in FILE [disabled]
1224     -C, --config-cache alias for \`--cache-file=config.cache'
1225     -n, --no-create do not create output files
1226     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1227 root 1.1
1228 root 1.2 Installation directories:
1229     --prefix=PREFIX install architecture-independent files in PREFIX
1230     [$ac_default_prefix]
1231     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1232     [PREFIX]
1233 root 1.1
1234 root 1.2 By default, \`make install' will install all the files in
1235     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1236     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237     for instance \`--prefix=\$HOME'.
1238    
1239     For better control, use the options below.
1240    
1241     Fine tuning of the installation directories:
1242     --bindir=DIR user executables [EPREFIX/bin]
1243     --sbindir=DIR system admin executables [EPREFIX/sbin]
1244     --libexecdir=DIR program executables [EPREFIX/libexec]
1245     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1246     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1247     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1248     --libdir=DIR object code libraries [EPREFIX/lib]
1249     --includedir=DIR C header files [PREFIX/include]
1250     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1251     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1252     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1253     --infodir=DIR info documentation [DATAROOTDIR/info]
1254     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1255     --mandir=DIR man documentation [DATAROOTDIR/man]
1256     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1257     --htmldir=DIR html documentation [DOCDIR]
1258     --dvidir=DIR dvi documentation [DOCDIR]
1259     --pdfdir=DIR pdf documentation [DOCDIR]
1260     --psdir=DIR ps documentation [DOCDIR]
1261     _ACEOF
1262    
1263     cat <<\_ACEOF
1264    
1265     System types:
1266     --build=BUILD configure for building on BUILD [guessed]
1267     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1268     _ACEOF
1269 root 1.1 fi
1270    
1271 root 1.2 if test -n "$ac_init_help"; then
1272 root 1.1
1273 root 1.2 cat <<\_ACEOF
1274 root 1.1
1275 root 1.2 Optional Packages:
1276     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278     --with-alsa use ALSA if possible
1279 root 1.1
1280 root 1.2 Some influential environment variables:
1281     CC C compiler command
1282     CFLAGS C compiler flags
1283     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1284     nonstandard directory <lib dir>
1285     LIBS libraries to pass to the linker, e.g. -l<library>
1286     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1287     you have headers in a nonstandard directory <include dir>
1288     CPP C preprocessor
1289    
1290     Use these variables to override the choices made by `configure' or to help
1291     it to find libraries and programs with nonstandard names/locations.
1292    
1293     Report bugs to the package provider.
1294     _ACEOF
1295     ac_status=$?
1296     fi
1297    
1298     if test "$ac_init_help" = "recursive"; then
1299     # If there are subdirs, report their specific --help.
1300     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1301     test -d "$ac_dir" ||
1302     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1303     continue
1304     ac_builddir=.
1305    
1306     case "$ac_dir" in
1307     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308     *)
1309     ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1310     # A ".." for each directory in $ac_dir_suffix.
1311     ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1312     case $ac_top_builddir_sub in
1313     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1315 root 1.1 esac ;;
1316     esac
1317 root 1.2 ac_abs_top_builddir=$ac_pwd
1318     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1319     # for backward compatibility:
1320     ac_top_builddir=$ac_top_build_prefix
1321    
1322     case $srcdir in
1323     .) # We are building in place.
1324     ac_srcdir=.
1325     ac_top_srcdir=$ac_top_builddir_sub
1326     ac_abs_top_srcdir=$ac_pwd ;;
1327     [\\/]* | ?:[\\/]* ) # Absolute name.
1328     ac_srcdir=$srcdir$ac_dir_suffix;
1329     ac_top_srcdir=$srcdir
1330     ac_abs_top_srcdir=$srcdir ;;
1331     *) # Relative name.
1332     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1333     ac_top_srcdir=$ac_top_build_prefix$srcdir
1334     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1335     esac
1336     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1337 root 1.1
1338 root 1.2 cd "$ac_dir" || { ac_status=$?; continue; }
1339     # Check for guested configure.
1340     if test -f "$ac_srcdir/configure.gnu"; then
1341     echo &&
1342     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1343     elif test -f "$ac_srcdir/configure"; then
1344     echo &&
1345     $SHELL "$ac_srcdir/configure" --help=recursive
1346     else
1347     $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1348     fi || ac_status=$?
1349     cd "$ac_pwd" || { ac_status=$?; break; }
1350     done
1351     fi
1352 root 1.1
1353 root 1.2 test -n "$ac_init_help" && exit $ac_status
1354     if $ac_init_version; then
1355     cat <<\_ACEOF
1356     configure
1357     generated by GNU Autoconf 2.64
1358    
1359     Copyright (C) 2009 Free Software Foundation, Inc.
1360     This configure script is free software; the Free Software Foundation
1361     gives unlimited permission to copy, distribute and modify it.
1362     _ACEOF
1363     exit
1364     fi
1365    
1366     ## ------------------------ ##
1367     ## Autoconf initialization. ##
1368     ## ------------------------ ##
1369    
1370     # ac_fn_c_try_compile LINENO
1371     # --------------------------
1372     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1373     ac_fn_c_try_compile ()
1374     {
1375     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1376     rm -f conftest.$ac_objext
1377     if { { ac_try="$ac_compile"
1378     case "(($ac_try" in
1379     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1380     *) ac_try_echo=$ac_try;;
1381     esac
1382     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1383     $as_echo "$ac_try_echo"; } >&5
1384     (eval "$ac_compile") 2>conftest.err
1385     ac_status=$?
1386     if test -s conftest.err; then
1387     grep -v '^ *+' conftest.err >conftest.er1
1388     cat conftest.er1 >&5
1389     mv -f conftest.er1 conftest.err
1390     fi
1391     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1392     test $ac_status = 0; } && {
1393     test -z "$ac_c_werror_flag" ||
1394     test ! -s conftest.err
1395     } && test -s conftest.$ac_objext; then :
1396     ac_retval=0
1397     else
1398     $as_echo "$as_me: failed program was:" >&5
1399     sed 's/^/| /' conftest.$ac_ext >&5
1400    
1401     ac_retval=1
1402     fi
1403     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1404     return $ac_retval
1405    
1406     } # ac_fn_c_try_compile
1407    
1408     # ac_fn_c_try_link LINENO
1409     # -----------------------
1410     # Try to link conftest.$ac_ext, and return whether this succeeded.
1411     ac_fn_c_try_link ()
1412     {
1413     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414     rm -f conftest.$ac_objext conftest$ac_exeext
1415     if { { ac_try="$ac_link"
1416     case "(($ac_try" in
1417     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418     *) ac_try_echo=$ac_try;;
1419     esac
1420     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421     $as_echo "$ac_try_echo"; } >&5
1422     (eval "$ac_link") 2>conftest.err
1423     ac_status=$?
1424     if test -s conftest.err; then
1425     grep -v '^ *+' conftest.err >conftest.er1
1426     cat conftest.er1 >&5
1427     mv -f conftest.er1 conftest.err
1428     fi
1429     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430     test $ac_status = 0; } && {
1431     test -z "$ac_c_werror_flag" ||
1432     test ! -s conftest.err
1433     } && test -s conftest$ac_exeext && {
1434     test "$cross_compiling" = yes ||
1435     $as_test_x conftest$ac_exeext
1436     }; then :
1437     ac_retval=0
1438     else
1439     $as_echo "$as_me: failed program was:" >&5
1440     sed 's/^/| /' conftest.$ac_ext >&5
1441    
1442     ac_retval=1
1443     fi
1444     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1445     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1446     # interfere with the next link command; also delete a directory that is
1447     # left behind by Apple's compiler. We do this before executing the actions.
1448     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1449     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1450     return $ac_retval
1451    
1452     } # ac_fn_c_try_link
1453    
1454     # ac_fn_c_try_cpp LINENO
1455     # ----------------------
1456     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1457     ac_fn_c_try_cpp ()
1458     {
1459     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460     if { { ac_try="$ac_cpp conftest.$ac_ext"
1461     case "(($ac_try" in
1462     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463     *) ac_try_echo=$ac_try;;
1464     esac
1465     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466     $as_echo "$ac_try_echo"; } >&5
1467     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1468     ac_status=$?
1469     if test -s conftest.err; then
1470     grep -v '^ *+' conftest.err >conftest.er1
1471     cat conftest.er1 >&5
1472     mv -f conftest.er1 conftest.err
1473     fi
1474     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475     test $ac_status = 0; } >/dev/null && {
1476     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1477     test ! -s conftest.err
1478     }; then :
1479     ac_retval=0
1480     else
1481     $as_echo "$as_me: failed program was:" >&5
1482     sed 's/^/| /' conftest.$ac_ext >&5
1483    
1484     ac_retval=1
1485     fi
1486     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1487     return $ac_retval
1488    
1489     } # ac_fn_c_try_cpp
1490    
1491     # ac_fn_c_try_run LINENO
1492     # ----------------------
1493     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1494     # that executables *can* be run.
1495     ac_fn_c_try_run ()
1496     {
1497     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498     if { { ac_try="$ac_link"
1499     case "(($ac_try" in
1500     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501     *) ac_try_echo=$ac_try;;
1502     esac
1503     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504     $as_echo "$ac_try_echo"; } >&5
1505     (eval "$ac_link") 2>&5
1506     ac_status=$?
1507     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1509     { { case "(($ac_try" in
1510     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511     *) ac_try_echo=$ac_try;;
1512     esac
1513     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514     $as_echo "$ac_try_echo"; } >&5
1515     (eval "$ac_try") 2>&5
1516     ac_status=$?
1517     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518     test $ac_status = 0; }; }; then :
1519     ac_retval=0
1520     else
1521     $as_echo "$as_me: program exited with status $ac_status" >&5
1522     $as_echo "$as_me: failed program was:" >&5
1523     sed 's/^/| /' conftest.$ac_ext >&5
1524    
1525     ac_retval=$ac_status
1526     fi
1527     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1528     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529     return $ac_retval
1530    
1531     } # ac_fn_c_try_run
1532    
1533     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1534     # -------------------------------------------------------
1535     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1536     # the include files in INCLUDES and setting the cache variable VAR
1537     # accordingly.
1538     ac_fn_c_check_header_mongrel ()
1539     {
1540     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1543     $as_echo_n "checking for $2... " >&6; }
1544     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1545     $as_echo_n "(cached) " >&6
1546     fi
1547     eval ac_res=\$$3
1548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1549     $as_echo "$ac_res" >&6; }
1550     else
1551     # Is the header compilable?
1552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1553     $as_echo_n "checking $2 usability... " >&6; }
1554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555     /* end confdefs.h. */
1556     $4
1557     #include <$2>
1558     _ACEOF
1559     if ac_fn_c_try_compile "$LINENO"; then :
1560     ac_header_compiler=yes
1561     else
1562     ac_header_compiler=no
1563     fi
1564     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1566     $as_echo "$ac_header_compiler" >&6; }
1567    
1568     # Is the header present?
1569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1570     $as_echo_n "checking $2 presence... " >&6; }
1571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572     /* end confdefs.h. */
1573     #include <$2>
1574     _ACEOF
1575     if ac_fn_c_try_cpp "$LINENO"; then :
1576     ac_header_preproc=yes
1577     else
1578     ac_header_preproc=no
1579     fi
1580     rm -f conftest.err conftest.$ac_ext
1581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1582     $as_echo "$ac_header_preproc" >&6; }
1583    
1584     # So? What about this header?
1585     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1586     yes:no: )
1587     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1588     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1589     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1590     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1591     ;;
1592     no:yes:* )
1593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1594     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1595     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1596     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1598     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1599     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1600     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1601     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1602     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1603     ;;
1604     esac
1605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606     $as_echo_n "checking for $2... " >&6; }
1607     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608     $as_echo_n "(cached) " >&6
1609     else
1610     eval "$3=\$ac_header_compiler"
1611     fi
1612     eval ac_res=\$$3
1613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614     $as_echo "$ac_res" >&6; }
1615     fi
1616     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617    
1618     } # ac_fn_c_check_header_mongrel
1619    
1620     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621     # -------------------------------------------------------
1622     # Tests whether HEADER exists and can be compiled using the include files in
1623     # INCLUDES, setting the cache variable VAR accordingly.
1624     ac_fn_c_check_header_compile ()
1625     {
1626     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628     $as_echo_n "checking for $2... " >&6; }
1629     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630     $as_echo_n "(cached) " >&6
1631     else
1632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633     /* end confdefs.h. */
1634     $4
1635     #include <$2>
1636     _ACEOF
1637     if ac_fn_c_try_compile "$LINENO"; then :
1638     eval "$3=yes"
1639     else
1640     eval "$3=no"
1641     fi
1642     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643     fi
1644     eval ac_res=\$$3
1645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646     $as_echo "$ac_res" >&6; }
1647     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648    
1649     } # ac_fn_c_check_header_compile
1650    
1651     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1652     # -------------------------------------------
1653     # Tests whether TYPE exists after having included INCLUDES, setting cache
1654     # variable VAR accordingly.
1655     ac_fn_c_check_type ()
1656     {
1657     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659     $as_echo_n "checking for $2... " >&6; }
1660     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661     $as_echo_n "(cached) " >&6
1662     else
1663     eval "$3=no"
1664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665     /* end confdefs.h. */
1666     $4
1667     int
1668     main ()
1669     {
1670     if (sizeof ($2))
1671     return 0;
1672     ;
1673     return 0;
1674     }
1675     _ACEOF
1676     if ac_fn_c_try_compile "$LINENO"; then :
1677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678     /* end confdefs.h. */
1679     $4
1680     int
1681     main ()
1682     {
1683     if (sizeof (($2)))
1684     return 0;
1685     ;
1686     return 0;
1687     }
1688     _ACEOF
1689     if ac_fn_c_try_compile "$LINENO"; then :
1690 root 1.1
1691     else
1692 root 1.2 eval "$3=yes"
1693     fi
1694     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695     fi
1696     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 root 1.1 fi
1698 root 1.2 eval ac_res=\$$3
1699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700     $as_echo "$ac_res" >&6; }
1701     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702    
1703     } # ac_fn_c_check_type
1704    
1705     # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1706     # --------------------------------------------
1707     # Tries to find the compile-time value of EXPR in a program that includes
1708     # INCLUDES, setting VAR accordingly. Returns whether the value could be
1709     # computed
1710     ac_fn_c_compute_int ()
1711     {
1712     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713     if test "$cross_compiling" = yes; then
1714     # Depending upon the size, compute the lo and hi bounds.
1715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716     /* end confdefs.h. */
1717     $4
1718     int
1719     main ()
1720     {
1721     static int test_array [1 - 2 * !(($2) >= 0)];
1722     test_array [0] = 0
1723 root 1.1
1724 root 1.2 ;
1725     return 0;
1726     }
1727     _ACEOF
1728     if ac_fn_c_try_compile "$LINENO"; then :
1729     ac_lo=0 ac_mid=0
1730     while :; do
1731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732     /* end confdefs.h. */
1733     $4
1734     int
1735     main ()
1736     {
1737     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1738     test_array [0] = 0
1739 root 1.1
1740 root 1.2 ;
1741     return 0;
1742     }
1743     _ACEOF
1744     if ac_fn_c_try_compile "$LINENO"; then :
1745     ac_hi=$ac_mid; break
1746     else
1747     as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1748     if test $ac_lo -le $ac_mid; then
1749     ac_lo= ac_hi=
1750     break
1751     fi
1752     as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1753     fi
1754     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 root 1.1 done
1756     else
1757 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758     /* end confdefs.h. */
1759     $4
1760     int
1761     main ()
1762     {
1763     static int test_array [1 - 2 * !(($2) < 0)];
1764     test_array [0] = 0
1765    
1766     ;
1767     return 0;
1768     }
1769     _ACEOF
1770     if ac_fn_c_try_compile "$LINENO"; then :
1771     ac_hi=-1 ac_mid=-1
1772     while :; do
1773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774     /* end confdefs.h. */
1775     $4
1776     int
1777     main ()
1778     {
1779     static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1780     test_array [0] = 0
1781    
1782     ;
1783     return 0;
1784     }
1785     _ACEOF
1786     if ac_fn_c_try_compile "$LINENO"; then :
1787     ac_lo=$ac_mid; break
1788     else
1789     as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1790     if test $ac_mid -le $ac_hi; then
1791     ac_lo= ac_hi=
1792     break
1793     fi
1794     as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1795 root 1.1 fi
1796 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797     done
1798 root 1.1 else
1799 root 1.2 ac_lo= ac_hi=
1800 root 1.1 fi
1801 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 root 1.1 fi
1803 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804     # Binary search between lo and hi bounds.
1805     while test "x$ac_lo" != "x$ac_hi"; do
1806     as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808     /* end confdefs.h. */
1809     $4
1810     int
1811     main ()
1812     {
1813     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1814     test_array [0] = 0
1815    
1816     ;
1817     return 0;
1818     }
1819     _ACEOF
1820     if ac_fn_c_try_compile "$LINENO"; then :
1821     ac_hi=$ac_mid
1822 root 1.1 else
1823 root 1.2 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1824 root 1.1 fi
1825 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826     done
1827     case $ac_lo in #((
1828     ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1829     '') ac_retval=1 ;;
1830     esac
1831     else
1832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833     /* end confdefs.h. */
1834     $4
1835     static long int longval () { return $2; }
1836     static unsigned long int ulongval () { return $2; }
1837     #include <stdio.h>
1838     #include <stdlib.h>
1839     int
1840     main ()
1841     {
1842 root 1.1
1843 root 1.2 FILE *f = fopen ("conftest.val", "w");
1844     if (! f)
1845     return 1;
1846     if (($2) < 0)
1847     {
1848     long int i = longval ();
1849     if (i != ($2))
1850     return 1;
1851     fprintf (f, "%ld", i);
1852     }
1853     else
1854     {
1855     unsigned long int i = ulongval ();
1856     if (i != ($2))
1857     return 1;
1858     fprintf (f, "%lu", i);
1859     }
1860     /* Do not output a trailing newline, as this causes \r\n confusion
1861     on some platforms. */
1862     return ferror (f) || fclose (f) != 0;
1863    
1864     ;
1865     return 0;
1866     }
1867     _ACEOF
1868     if ac_fn_c_try_run "$LINENO"; then :
1869     echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1870     else
1871     ac_retval=1
1872     fi
1873     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1874     conftest.$ac_objext conftest.beam conftest.$ac_ext
1875     rm -f conftest.val
1876    
1877     fi
1878     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879     return $ac_retval
1880    
1881     } # ac_fn_c_compute_int
1882    
1883     # ac_fn_c_check_func LINENO FUNC VAR
1884     # ----------------------------------
1885     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886     ac_fn_c_check_func ()
1887     {
1888     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890     $as_echo_n "checking for $2... " >&6; }
1891     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892     $as_echo_n "(cached) " >&6
1893     else
1894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895     /* end confdefs.h. */
1896     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898     #define $2 innocuous_$2
1899    
1900     /* System header to define __stub macros and hopefully few prototypes,
1901     which can conflict with char $2 (); below.
1902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903     <limits.h> exists even on freestanding compilers. */
1904    
1905     #ifdef __STDC__
1906     # include <limits.h>
1907     #else
1908     # include <assert.h>
1909     #endif
1910    
1911     #undef $2
1912    
1913     /* Override any GCC internal prototype to avoid an error.
1914     Use char because int might match the return type of a GCC
1915     builtin and then its argument prototype would still apply. */
1916     #ifdef __cplusplus
1917     extern "C"
1918     #endif
1919     char $2 ();
1920     /* The GNU C library defines this for functions which it implements
1921     to always fail with ENOSYS. Some functions are actually named
1922     something starting with __ and the normal name is an alias. */
1923     #if defined __stub_$2 || defined __stub___$2
1924     choke me
1925     #endif
1926    
1927     int
1928     main ()
1929     {
1930     return $2 ();
1931     ;
1932     return 0;
1933     }
1934     _ACEOF
1935     if ac_fn_c_try_link "$LINENO"; then :
1936     eval "$3=yes"
1937     else
1938     eval "$3=no"
1939     fi
1940     rm -f core conftest.err conftest.$ac_objext \
1941     conftest$ac_exeext conftest.$ac_ext
1942     fi
1943     eval ac_res=\$$3
1944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945     $as_echo "$ac_res" >&6; }
1946     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947    
1948     } # ac_fn_c_check_func
1949     cat >config.log <<_ACEOF
1950     This file contains any messages produced by compilers while
1951     running configure, to aid debugging if configure makes a mistake.
1952    
1953     It was created by $as_me, which was
1954     generated by GNU Autoconf 2.64. Invocation command line was
1955    
1956     $ $0 $@
1957    
1958     _ACEOF
1959     exec 5>>config.log
1960     {
1961     cat <<_ASUNAME
1962     ## --------- ##
1963     ## Platform. ##
1964     ## --------- ##
1965    
1966     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971    
1972     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974    
1975     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982    
1983     _ASUNAME
1984    
1985     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986     for as_dir in $PATH
1987     do
1988     IFS=$as_save_IFS
1989     test -z "$as_dir" && as_dir=.
1990     $as_echo "PATH: $as_dir"
1991     done
1992     IFS=$as_save_IFS
1993    
1994     } >&5
1995    
1996     cat >&5 <<_ACEOF
1997    
1998    
1999     ## ----------- ##
2000     ## Core tests. ##
2001     ## ----------- ##
2002    
2003     _ACEOF
2004    
2005    
2006     # Keep a trace of the command line.
2007     # Strip out --no-create and --no-recursion so they do not pile up.
2008     # Strip out --silent because we don't want to record it for future runs.
2009     # Also quote any args containing shell meta-characters.
2010     # Make two passes to allow for proper duplicate-argument suppression.
2011     ac_configure_args=
2012     ac_configure_args0=
2013     ac_configure_args1=
2014     ac_must_keep_next=false
2015     for ac_pass in 1 2
2016     do
2017     for ac_arg
2018     do
2019     case $ac_arg in
2020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022     | -silent | --silent | --silen | --sile | --sil)
2023     continue ;;
2024     *\'*)
2025     ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026     esac
2027     case $ac_pass in
2028     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029     2)
2030     as_fn_append ac_configure_args1 " '$ac_arg'"
2031     if test $ac_must_keep_next = true; then
2032     ac_must_keep_next=false # Got value, back to normal.
2033     else
2034     case $ac_arg in
2035     *=* | --config-cache | -C | -disable-* | --disable-* \
2036     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038     | -with-* | --with-* | -without-* | --without-* | --x)
2039     case "$ac_configure_args0 " in
2040     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041     esac
2042     ;;
2043     -* ) ac_must_keep_next=true ;;
2044     esac
2045     fi
2046     as_fn_append ac_configure_args " '$ac_arg'"
2047     ;;
2048     esac
2049     done
2050     done
2051     { ac_configure_args0=; unset ac_configure_args0;}
2052     { ac_configure_args1=; unset ac_configure_args1;}
2053    
2054     # When interrupted or exit'd, cleanup temporary files, and complete
2055     # config.log. We remove comments because anyway the quotes in there
2056     # would cause problems or look ugly.
2057     # WARNING: Use '\'' to represent an apostrophe within the trap.
2058     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059     trap 'exit_status=$?
2060     # Save into config.log some information that might help in debugging.
2061     {
2062     echo
2063    
2064     cat <<\_ASBOX
2065     ## ---------------- ##
2066     ## Cache variables. ##
2067     ## ---------------- ##
2068     _ASBOX
2069     echo
2070     # The following way of writing the cache mishandles newlines in values,
2071     (
2072     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073     eval ac_val=\$$ac_var
2074     case $ac_val in #(
2075     *${as_nl}*)
2076     case $ac_var in #(
2077     *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079     esac
2080     case $ac_var in #(
2081     _ | IFS | as_nl) ;; #(
2082     BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083     *) { eval $ac_var=; unset $ac_var;} ;;
2084     esac ;;
2085     esac
2086     done
2087     (set) 2>&1 |
2088     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089     *${as_nl}ac_space=\ *)
2090     sed -n \
2091     "s/'\''/'\''\\\\'\'''\''/g;
2092     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093     ;; #(
2094     *)
2095     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096     ;;
2097     esac |
2098     sort
2099     )
2100     echo
2101    
2102     cat <<\_ASBOX
2103     ## ----------------- ##
2104     ## Output variables. ##
2105     ## ----------------- ##
2106     _ASBOX
2107     echo
2108     for ac_var in $ac_subst_vars
2109     do
2110     eval ac_val=\$$ac_var
2111     case $ac_val in
2112     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113     esac
2114     $as_echo "$ac_var='\''$ac_val'\''"
2115     done | sort
2116     echo
2117    
2118     if test -n "$ac_subst_files"; then
2119     cat <<\_ASBOX
2120     ## ------------------- ##
2121     ## File substitutions. ##
2122     ## ------------------- ##
2123     _ASBOX
2124     echo
2125     for ac_var in $ac_subst_files
2126     do
2127     eval ac_val=\$$ac_var
2128     case $ac_val in
2129     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130     esac
2131     $as_echo "$ac_var='\''$ac_val'\''"
2132     done | sort
2133     echo
2134     fi
2135    
2136     if test -s confdefs.h; then
2137     cat <<\_ASBOX
2138     ## ----------- ##
2139     ## confdefs.h. ##
2140     ## ----------- ##
2141     _ASBOX
2142     echo
2143     cat confdefs.h
2144     echo
2145     fi
2146     test "$ac_signal" != 0 &&
2147     $as_echo "$as_me: caught signal $ac_signal"
2148     $as_echo "$as_me: exit $exit_status"
2149     } >&5
2150     rm -f core *.core core.conftest.* &&
2151     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152     exit $exit_status
2153     ' 0
2154     for ac_signal in 1 2 13 15; do
2155     trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156     done
2157     ac_signal=0
2158    
2159     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2160     rm -f -r conftest* confdefs.h
2161    
2162     $as_echo "/* confdefs.h */" > confdefs.h
2163    
2164     # Predefined preprocessor variables.
2165    
2166     cat >>confdefs.h <<_ACEOF
2167     #define PACKAGE_NAME "$PACKAGE_NAME"
2168     _ACEOF
2169    
2170     cat >>confdefs.h <<_ACEOF
2171     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172     _ACEOF
2173    
2174     cat >>confdefs.h <<_ACEOF
2175     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176     _ACEOF
2177    
2178     cat >>confdefs.h <<_ACEOF
2179     #define PACKAGE_STRING "$PACKAGE_STRING"
2180     _ACEOF
2181    
2182     cat >>confdefs.h <<_ACEOF
2183     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184     _ACEOF
2185    
2186     cat >>confdefs.h <<_ACEOF
2187     #define PACKAGE_URL "$PACKAGE_URL"
2188     _ACEOF
2189    
2190    
2191     # Let the site file select an alternate cache file if it wants to.
2192     # Prefer an explicitly selected file to automatically selected ones.
2193     ac_site_file1=NONE
2194     ac_site_file2=NONE
2195     if test -n "$CONFIG_SITE"; then
2196     ac_site_file1=$CONFIG_SITE
2197     elif test "x$prefix" != xNONE; then
2198     ac_site_file1=$prefix/share/config.site
2199     ac_site_file2=$prefix/etc/config.site
2200     else
2201     ac_site_file1=$ac_default_prefix/share/config.site
2202     ac_site_file2=$ac_default_prefix/etc/config.site
2203     fi
2204     for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205     do
2206     test "x$ac_site_file" = xNONE && continue
2207     if test -r "$ac_site_file"; then
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210     sed 's/^/| /' "$ac_site_file" >&5
2211     . "$ac_site_file"
2212     fi
2213     done
2214    
2215     if test -r "$cache_file"; then
2216     # Some versions of bash will fail to source /dev/null (special
2217     # files actually), so we avoid doing that.
2218     if test -f "$cache_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220     $as_echo "$as_me: loading cache $cache_file" >&6;}
2221     case $cache_file in
2222     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223     *) . "./$cache_file";;
2224     esac
2225     fi
2226     else
2227     { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228     $as_echo "$as_me: creating cache $cache_file" >&6;}
2229     >$cache_file
2230     fi
2231    
2232     # Check that the precious variables saved in the cache have kept the same
2233     # value.
2234     ac_cache_corrupted=false
2235     for ac_var in $ac_precious_vars; do
2236     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237     eval ac_new_set=\$ac_env_${ac_var}_set
2238     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239     eval ac_new_val=\$ac_env_${ac_var}_value
2240     case $ac_old_set,$ac_new_set in
2241     set,)
2242     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244     ac_cache_corrupted=: ;;
2245     ,set)
2246     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248     ac_cache_corrupted=: ;;
2249     ,);;
2250     *)
2251     if test "x$ac_old_val" != "x$ac_new_val"; then
2252     # differences in whitespace do not lead to failure.
2253     ac_old_val_w=`echo x $ac_old_val`
2254     ac_new_val_w=`echo x $ac_new_val`
2255     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258     ac_cache_corrupted=:
2259     else
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262     eval $ac_var=\$ac_old_val
2263     fi
2264     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2265     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2266     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2267     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2268     fi;;
2269     esac
2270     # Pass precious variables to config.status.
2271     if test "$ac_new_set" = set; then
2272     case $ac_new_val in
2273     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274     *) ac_arg=$ac_var=$ac_new_val ;;
2275     esac
2276     case " $ac_configure_args " in
2277     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2278     *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279     esac
2280     fi
2281     done
2282     if $ac_cache_corrupted; then
2283     { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287     as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288     fi
2289     ## -------------------- ##
2290     ## Main body of script. ##
2291     ## -------------------- ##
2292    
2293     ac_ext=c
2294     ac_cpp='$CPP $CPPFLAGS'
2295     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298    
2299    
2300     ac_aux_dir=
2301     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302     for ac_t in install-sh install.sh shtool; do
2303     if test -f "$ac_dir/$ac_t"; then
2304     ac_aux_dir=$ac_dir
2305     ac_install_sh="$ac_aux_dir/$ac_t -c"
2306     break 2
2307     fi
2308     done
2309     done
2310     if test -z "$ac_aux_dir"; then
2311     as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2312     fi
2313    
2314     # These three variables are undocumented and unsupported,
2315     # and are intended to be withdrawn in a future Autoconf release.
2316     # They can cause serious problems if a builder's source tree is in a directory
2317     # whose full name contains unusual characters.
2318     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2319     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2320     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2321    
2322    
2323     # Make sure we can run config.sub.
2324     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2325     as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2326    
2327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2328     $as_echo_n "checking build system type... " >&6; }
2329     if test "${ac_cv_build+set}" = set; then :
2330     $as_echo_n "(cached) " >&6
2331     else
2332     ac_build_alias=$build_alias
2333     test "x$ac_build_alias" = x &&
2334     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2335     test "x$ac_build_alias" = x &&
2336     as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2337     ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2338     as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2339    
2340     fi
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2342     $as_echo "$ac_cv_build" >&6; }
2343     case $ac_cv_build in
2344     *-*-*) ;;
2345     *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2346     esac
2347     build=$ac_cv_build
2348     ac_save_IFS=$IFS; IFS='-'
2349     set x $ac_cv_build
2350     shift
2351     build_cpu=$1
2352     build_vendor=$2
2353     shift; shift
2354     # Remember, the first character of IFS is used to create $*,
2355     # except with old shells:
2356     build_os=$*
2357     IFS=$ac_save_IFS
2358     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2359    
2360    
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2362     $as_echo_n "checking host system type... " >&6; }
2363     if test "${ac_cv_host+set}" = set; then :
2364     $as_echo_n "(cached) " >&6
2365     else
2366     if test "x$host_alias" = x; then
2367     ac_cv_host=$ac_cv_build
2368     else
2369     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2370     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2371     fi
2372    
2373     fi
2374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2375     $as_echo "$ac_cv_host" >&6; }
2376     case $ac_cv_host in
2377     *-*-*) ;;
2378     *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2379     esac
2380     host=$ac_cv_host
2381     ac_save_IFS=$IFS; IFS='-'
2382     set x $ac_cv_host
2383     shift
2384     host_cpu=$1
2385     host_vendor=$2
2386     shift; shift
2387     # Remember, the first character of IFS is used to create $*,
2388     # except with old shells:
2389     host_os=$*
2390     IFS=$ac_save_IFS
2391     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2392    
2393    
2394     ac_config_headers="$ac_config_headers config.h"
2395    
2396    
2397    
2398     # Check whether --with-alsa was given.
2399     if test "${with_alsa+set}" = set; then :
2400     withval=$with_alsa; use_alsa="$withval"
2401     else
2402     use_alsa=no
2403     fi
2404    
2405    
2406     ac_ext=c
2407     ac_cpp='$CPP $CPPFLAGS'
2408     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411     if test -n "$ac_tool_prefix"; then
2412     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415     $as_echo_n "checking for $ac_word... " >&6; }
2416     if test "${ac_cv_prog_CC+set}" = set; then :
2417     $as_echo_n "(cached) " >&6
2418     else
2419     if test -n "$CC"; then
2420     ac_cv_prog_CC="$CC" # Let the user override the test.
2421     else
2422     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423     for as_dir in $PATH
2424     do
2425     IFS=$as_save_IFS
2426     test -z "$as_dir" && as_dir=.
2427     for ac_exec_ext in '' $ac_executable_extensions; do
2428     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432     fi
2433     done
2434     done
2435     IFS=$as_save_IFS
2436    
2437     fi
2438     fi
2439     CC=$ac_cv_prog_CC
2440     if test -n "$CC"; then
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442     $as_echo "$CC" >&6; }
2443     else
2444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445     $as_echo "no" >&6; }
2446     fi
2447    
2448    
2449     fi
2450     if test -z "$ac_cv_prog_CC"; then
2451     ac_ct_CC=$CC
2452     # Extract the first word of "gcc", so it can be a program name with args.
2453     set dummy gcc; ac_word=$2
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455     $as_echo_n "checking for $ac_word... " >&6; }
2456     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2457     $as_echo_n "(cached) " >&6
2458     else
2459     if test -n "$ac_ct_CC"; then
2460     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461     else
2462     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463     for as_dir in $PATH
2464     do
2465     IFS=$as_save_IFS
2466     test -z "$as_dir" && as_dir=.
2467     for ac_exec_ext in '' $ac_executable_extensions; do
2468     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_ac_ct_CC="gcc"
2470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472     fi
2473     done
2474     done
2475     IFS=$as_save_IFS
2476    
2477     fi
2478     fi
2479     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480     if test -n "$ac_ct_CC"; then
2481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2482     $as_echo "$ac_ct_CC" >&6; }
2483     else
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485     $as_echo "no" >&6; }
2486     fi
2487    
2488     if test "x$ac_ct_CC" = x; then
2489     CC=""
2490     else
2491     case $cross_compiling:$ac_tool_warned in
2492     yes:)
2493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495     ac_tool_warned=yes ;;
2496     esac
2497     CC=$ac_ct_CC
2498     fi
2499     else
2500     CC="$ac_cv_prog_CC"
2501     fi
2502    
2503     if test -z "$CC"; then
2504     if test -n "$ac_tool_prefix"; then
2505     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2506     set dummy ${ac_tool_prefix}cc; ac_word=$2
2507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508     $as_echo_n "checking for $ac_word... " >&6; }
2509     if test "${ac_cv_prog_CC+set}" = set; then :
2510     $as_echo_n "(cached) " >&6
2511     else
2512     if test -n "$CC"; then
2513     ac_cv_prog_CC="$CC" # Let the user override the test.
2514     else
2515     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516     for as_dir in $PATH
2517     do
2518     IFS=$as_save_IFS
2519     test -z "$as_dir" && as_dir=.
2520     for ac_exec_ext in '' $ac_executable_extensions; do
2521     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     ac_cv_prog_CC="${ac_tool_prefix}cc"
2523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525     fi
2526     done
2527     done
2528     IFS=$as_save_IFS
2529    
2530     fi
2531     fi
2532     CC=$ac_cv_prog_CC
2533     if test -n "$CC"; then
2534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535     $as_echo "$CC" >&6; }
2536     else
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538     $as_echo "no" >&6; }
2539     fi
2540    
2541    
2542     fi
2543     fi
2544     if test -z "$CC"; then
2545     # Extract the first word of "cc", so it can be a program name with args.
2546     set dummy cc; ac_word=$2
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548     $as_echo_n "checking for $ac_word... " >&6; }
2549     if test "${ac_cv_prog_CC+set}" = set; then :
2550     $as_echo_n "(cached) " >&6
2551     else
2552     if test -n "$CC"; then
2553     ac_cv_prog_CC="$CC" # Let the user override the test.
2554     else
2555     ac_prog_rejected=no
2556     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557     for as_dir in $PATH
2558     do
2559     IFS=$as_save_IFS
2560     test -z "$as_dir" && as_dir=.
2561     for ac_exec_ext in '' $ac_executable_extensions; do
2562     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564     ac_prog_rejected=yes
2565     continue
2566     fi
2567     ac_cv_prog_CC="cc"
2568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570     fi
2571     done
2572     done
2573     IFS=$as_save_IFS
2574    
2575     if test $ac_prog_rejected = yes; then
2576     # We found a bogon in the path, so make sure we never use it.
2577     set dummy $ac_cv_prog_CC
2578     shift
2579     if test $# != 0; then
2580     # We chose a different compiler from the bogus one.
2581     # However, it has the same basename, so the bogon will be chosen
2582     # first if we set CC to just the basename; use the full file name.
2583     shift
2584     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585     fi
2586     fi
2587     fi
2588     fi
2589     CC=$ac_cv_prog_CC
2590     if test -n "$CC"; then
2591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592     $as_echo "$CC" >&6; }
2593     else
2594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595     $as_echo "no" >&6; }
2596     fi
2597    
2598    
2599     fi
2600     if test -z "$CC"; then
2601     if test -n "$ac_tool_prefix"; then
2602     for ac_prog in cl.exe
2603     do
2604     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607     $as_echo_n "checking for $ac_word... " >&6; }
2608     if test "${ac_cv_prog_CC+set}" = set; then :
2609     $as_echo_n "(cached) " >&6
2610 root 1.1 else
2611     if test -n "$CC"; then
2612     ac_cv_prog_CC="$CC" # Let the user override the test.
2613     else
2614 root 1.2 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615     for as_dir in $PATH
2616     do
2617     IFS=$as_save_IFS
2618     test -z "$as_dir" && as_dir=.
2619     for ac_exec_ext in '' $ac_executable_extensions; do
2620     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624     fi
2625     done
2626 root 1.1 done
2627 root 1.2 IFS=$as_save_IFS
2628    
2629 root 1.1 fi
2630     fi
2631 root 1.2 CC=$ac_cv_prog_CC
2632 root 1.1 if test -n "$CC"; then
2633 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634     $as_echo "$CC" >&6; }
2635 root 1.1 else
2636 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637     $as_echo "no" >&6; }
2638 root 1.1 fi
2639 root 1.2
2640    
2641     test -n "$CC" && break
2642     done
2643     fi
2644     if test -z "$CC"; then
2645     ac_ct_CC=$CC
2646     for ac_prog in cl.exe
2647     do
2648     # Extract the first word of "$ac_prog", so it can be a program name with args.
2649     set dummy $ac_prog; ac_word=$2
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651     $as_echo_n "checking for $ac_word... " >&6; }
2652     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653     $as_echo_n "(cached) " >&6
2654     else
2655     if test -n "$ac_ct_CC"; then
2656     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657     else
2658     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659     for as_dir in $PATH
2660     do
2661     IFS=$as_save_IFS
2662     test -z "$as_dir" && as_dir=.
2663     for ac_exec_ext in '' $ac_executable_extensions; do
2664     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_ac_ct_CC="$ac_prog"
2666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668 root 1.1 fi
2669 root 1.2 done
2670     done
2671     IFS=$as_save_IFS
2672    
2673     fi
2674     fi
2675     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676     if test -n "$ac_ct_CC"; then
2677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678     $as_echo "$ac_ct_CC" >&6; }
2679     else
2680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681     $as_echo "no" >&6; }
2682 root 1.1 fi
2683    
2684    
2685 root 1.2 test -n "$ac_ct_CC" && break
2686     done
2687    
2688     if test "x$ac_ct_CC" = x; then
2689     CC=""
2690 root 1.1 else
2691 root 1.2 case $cross_compiling:$ac_tool_warned in
2692     yes:)
2693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695     ac_tool_warned=yes ;;
2696     esac
2697     CC=$ac_ct_CC
2698 root 1.1 fi
2699 root 1.2 fi
2700    
2701     fi
2702    
2703    
2704     test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706     as_fn_error "no acceptable C compiler found in \$PATH
2707     See \`config.log' for more details." "$LINENO" 5; }
2708    
2709     # Provide some information about the compiler.
2710     $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711     set X $ac_compile
2712     ac_compiler=$2
2713     for ac_option in --version -v -V -qversion; do
2714     { { ac_try="$ac_compiler $ac_option >&5"
2715     case "(($ac_try" in
2716     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717     *) ac_try_echo=$ac_try;;
2718     esac
2719     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720     $as_echo "$ac_try_echo"; } >&5
2721     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2722     ac_status=$?
2723     if test -s conftest.err; then
2724     sed '10a\
2725     ... rest of stderr output deleted ...
2726     10q' conftest.err >conftest.er1
2727     cat conftest.er1 >&5
2728     rm -f conftest.er1 conftest.err
2729     fi
2730     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731     test $ac_status = 0; }
2732     done
2733    
2734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735     /* end confdefs.h. */
2736     #include <stdio.h>
2737     int
2738     main ()
2739     {
2740     FILE *f = fopen ("conftest.out", "w");
2741     return ferror (f) || fclose (f) != 0;
2742    
2743     ;
2744     return 0;
2745     }
2746     _ACEOF
2747     ac_clean_files_save=$ac_clean_files
2748     ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2749     # Try to create an executable without -o first, disregard a.out.
2750     # It will help us diagnose broken compilers, and finding out an intuition
2751     # of exeext.
2752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2753     $as_echo_n "checking for C compiler default output file name... " >&6; }
2754     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755    
2756     # The possible output files:
2757     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758    
2759     ac_rmfiles=
2760     for ac_file in $ac_files
2761     do
2762     case $ac_file in
2763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2764     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765     esac
2766     done
2767     rm -f $ac_rmfiles
2768    
2769     if { { ac_try="$ac_link_default"
2770     case "(($ac_try" in
2771     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772     *) ac_try_echo=$ac_try;;
2773     esac
2774     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775     $as_echo "$ac_try_echo"; } >&5
2776     (eval "$ac_link_default") 2>&5
2777     ac_status=$?
2778     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779     test $ac_status = 0; }; then :
2780     # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782     # in a Makefile. We should not override ac_cv_exeext if it was cached,
2783     # so that the user can short-circuit this test for compilers unknown to
2784     # Autoconf.
2785     for ac_file in $ac_files ''
2786     do
2787     test -f "$ac_file" || continue
2788     case $ac_file in
2789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2790     ;;
2791     [ab].out )
2792     # We found the default executable, but exeext='' is most
2793     # certainly right.
2794     break;;
2795     *.* )
2796     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797     then :; else
2798     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799     fi
2800     # We set ac_cv_exeext here because the later test for it is not
2801     # safe: cross compilers may not add the suffix if given an `-o'
2802     # argument, so we may need to know it at that point already.
2803     # Even if this section looks crufty: it has the advantage of
2804     # actually working.
2805     break;;
2806     * )
2807     break;;
2808     esac
2809     done
2810     test "$ac_cv_exeext" = no && ac_cv_exeext=
2811    
2812 root 1.1 else
2813 root 1.2 ac_file=''
2814 root 1.1 fi
2815 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2816     $as_echo "$ac_file" >&6; }
2817     if test -z "$ac_file"; then :
2818     $as_echo "$as_me: failed program was:" >&5
2819     sed 's/^/| /' conftest.$ac_ext >&5
2820    
2821     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823     { as_fn_set_status 77
2824     as_fn_error "C compiler cannot create executables
2825     See \`config.log' for more details." "$LINENO" 5; }; }
2826     fi
2827     ac_exeext=$ac_cv_exeext
2828    
2829     # Check that the compiler produces executables we can run. If not, either
2830     # the compiler is broken, or we cross compile.
2831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832     $as_echo_n "checking whether the C compiler works... " >&6; }
2833     # If not cross compiling, check that we can run a simple program.
2834     if test "$cross_compiling" != yes; then
2835     if { ac_try='./$ac_file'
2836     { { case "(($ac_try" in
2837     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838     *) ac_try_echo=$ac_try;;
2839     esac
2840     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841     $as_echo "$ac_try_echo"; } >&5
2842     (eval "$ac_try") 2>&5
2843     ac_status=$?
2844     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845     test $ac_status = 0; }; }; then
2846     cross_compiling=no
2847     else
2848     if test "$cross_compiling" = maybe; then
2849     cross_compiling=yes
2850     else
2851     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853     as_fn_error "cannot run C compiled programs.
2854     If you meant to cross compile, use \`--host'.
2855     See \`config.log' for more details." "$LINENO" 5; }
2856     fi
2857     fi
2858     fi
2859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860     $as_echo "yes" >&6; }
2861    
2862     rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2863     ac_clean_files=$ac_clean_files_save
2864     # Check that the compiler produces executables we can run. If not, either
2865     # the compiler is broken, or we cross compile.
2866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2867     $as_echo_n "checking whether we are cross compiling... " >&6; }
2868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2869     $as_echo "$cross_compiling" >&6; }
2870    
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2872     $as_echo_n "checking for suffix of executables... " >&6; }
2873     if { { ac_try="$ac_link"
2874     case "(($ac_try" in
2875     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876     *) ac_try_echo=$ac_try;;
2877     esac
2878     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879     $as_echo "$ac_try_echo"; } >&5
2880     (eval "$ac_link") 2>&5
2881     ac_status=$?
2882     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883     test $ac_status = 0; }; then :
2884     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2885     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2886     # work properly (i.e., refer to `conftest.exe'), while it won't with
2887     # `rm'.
2888     for ac_file in conftest.exe conftest conftest.*; do
2889     test -f "$ac_file" || continue
2890     case $ac_file in
2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2892     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893     break;;
2894     * ) break;;
2895     esac
2896     done
2897     else
2898     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900     as_fn_error "cannot compute suffix of executables: cannot compile and link
2901     See \`config.log' for more details." "$LINENO" 5; }
2902     fi
2903     rm -f conftest$ac_cv_exeext
2904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2905     $as_echo "$ac_cv_exeext" >&6; }
2906    
2907     rm -f conftest.$ac_ext
2908     EXEEXT=$ac_cv_exeext
2909     ac_exeext=$EXEEXT
2910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2911     $as_echo_n "checking for suffix of object files... " >&6; }
2912     if test "${ac_cv_objext+set}" = set; then :
2913     $as_echo_n "(cached) " >&6
2914     else
2915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916     /* end confdefs.h. */
2917    
2918     int
2919     main ()
2920     {
2921    
2922     ;
2923     return 0;
2924     }
2925     _ACEOF
2926     rm -f conftest.o conftest.obj
2927     if { { ac_try="$ac_compile"
2928     case "(($ac_try" in
2929     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930     *) ac_try_echo=$ac_try;;
2931     esac
2932     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933     $as_echo "$ac_try_echo"; } >&5
2934     (eval "$ac_compile") 2>&5
2935     ac_status=$?
2936     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937     test $ac_status = 0; }; then :
2938     for ac_file in conftest.o conftest.obj conftest.*; do
2939     test -f "$ac_file" || continue;
2940     case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2942     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943     break;;
2944     esac
2945     done
2946     else
2947     $as_echo "$as_me: failed program was:" >&5
2948     sed 's/^/| /' conftest.$ac_ext >&5
2949    
2950     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952     as_fn_error "cannot compute suffix of object files: cannot compile
2953     See \`config.log' for more details." "$LINENO" 5; }
2954     fi
2955     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2956     fi
2957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2958     $as_echo "$ac_cv_objext" >&6; }
2959     OBJEXT=$ac_cv_objext
2960     ac_objext=$OBJEXT
2961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2962     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2963     if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2964     $as_echo_n "(cached) " >&6
2965     else
2966     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967     /* end confdefs.h. */
2968    
2969     int
2970     main ()
2971     {
2972     #ifndef __GNUC__
2973     choke me
2974 root 1.1 #endif
2975 root 1.2
2976     ;
2977     return 0;
2978     }
2979     _ACEOF
2980     if ac_fn_c_try_compile "$LINENO"; then :
2981     ac_compiler_gnu=yes
2982 root 1.1 else
2983 root 1.2 ac_compiler_gnu=no
2984 root 1.1 fi
2985 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987    
2988 root 1.1 fi
2989 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2990     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2991     if test $ac_compiler_gnu = yes; then
2992 root 1.1 GCC=yes
2993     else
2994     GCC=
2995     fi
2996 root 1.2 ac_test_CFLAGS=${CFLAGS+set}
2997     ac_save_CFLAGS=$CFLAGS
2998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2999     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3000     if test "${ac_cv_prog_cc_g+set}" = set; then :
3001     $as_echo_n "(cached) " >&6
3002     else
3003     ac_save_c_werror_flag=$ac_c_werror_flag
3004     ac_c_werror_flag=yes
3005     ac_cv_prog_cc_g=no
3006     CFLAGS="-g"
3007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008     /* end confdefs.h. */
3009    
3010     int
3011     main ()
3012     {
3013 root 1.1
3014 root 1.2 ;
3015     return 0;
3016     }
3017     _ACEOF
3018     if ac_fn_c_try_compile "$LINENO"; then :
3019     ac_cv_prog_cc_g=yes
3020 root 1.1 else
3021 root 1.2 CFLAGS=""
3022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023     /* end confdefs.h. */
3024    
3025     int
3026     main ()
3027     {
3028    
3029     ;
3030     return 0;
3031     }
3032     _ACEOF
3033     if ac_fn_c_try_compile "$LINENO"; then :
3034    
3035     else
3036     ac_c_werror_flag=$ac_save_c_werror_flag
3037     CFLAGS="-g"
3038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039     /* end confdefs.h. */
3040    
3041     int
3042     main ()
3043     {
3044    
3045     ;
3046     return 0;
3047     }
3048     _ACEOF
3049     if ac_fn_c_try_compile "$LINENO"; then :
3050 root 1.1 ac_cv_prog_cc_g=yes
3051     fi
3052 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053     fi
3054     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055     fi
3056     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057     ac_c_werror_flag=$ac_save_c_werror_flag
3058 root 1.1 fi
3059 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3060     $as_echo "$ac_cv_prog_cc_g" >&6; }
3061 root 1.1 if test "$ac_test_CFLAGS" = set; then
3062 root 1.2 CFLAGS=$ac_save_CFLAGS
3063 root 1.1 elif test $ac_cv_prog_cc_g = yes; then
3064     if test "$GCC" = yes; then
3065     CFLAGS="-g -O2"
3066     else
3067     CFLAGS="-g"
3068     fi
3069     else
3070     if test "$GCC" = yes; then
3071     CFLAGS="-O2"
3072     else
3073     CFLAGS=
3074     fi
3075     fi
3076 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3077     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3078     if test "${ac_cv_prog_cc_c89+set}" = set; then :
3079     $as_echo_n "(cached) " >&6
3080     else
3081     ac_cv_prog_cc_c89=no
3082     ac_save_CC=$CC
3083     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084     /* end confdefs.h. */
3085     #include <stdarg.h>
3086     #include <stdio.h>
3087     #include <sys/types.h>
3088     #include <sys/stat.h>
3089     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3090     struct buf { int x; };
3091     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3092     static char *e (p, i)
3093     char **p;
3094     int i;
3095     {
3096     return p[i];
3097     }
3098     static char *f (char * (*g) (char **, int), char **p, ...)
3099     {
3100     char *s;
3101     va_list v;
3102     va_start (v,p);
3103     s = g (p, va_arg (v,int));
3104     va_end (v);
3105     return s;
3106     }
3107    
3108     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3109     function prototypes and stuff, but not '\xHH' hex character constants.
3110     These don't provoke an error unfortunately, instead are silently treated
3111     as 'x'. The following induces an error, until -std is added to get
3112     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3113     array size at least. It's necessary to write '\x00'==0 to get something
3114     that's true only with -std. */
3115     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3116    
3117     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3118     inside strings and character constants. */
3119     #define FOO(x) 'x'
3120     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3121    
3122     int test (int i, double x);
3123     struct s1 {int (*f) (int a);};
3124     struct s2 {int (*f) (double a);};
3125     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3126     int argc;
3127     char **argv;
3128     int
3129     main ()
3130     {
3131     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3132     ;
3133     return 0;
3134     }
3135     _ACEOF
3136     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3137     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3138     do
3139     CC="$ac_save_CC $ac_arg"
3140     if ac_fn_c_try_compile "$LINENO"; then :
3141     ac_cv_prog_cc_c89=$ac_arg
3142     fi
3143     rm -f core conftest.err conftest.$ac_objext
3144     test "x$ac_cv_prog_cc_c89" != "xno" && break
3145     done
3146     rm -f conftest.$ac_ext
3147     CC=$ac_save_CC
3148    
3149     fi
3150     # AC_CACHE_VAL
3151     case "x$ac_cv_prog_cc_c89" in
3152     x)
3153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3154     $as_echo "none needed" >&6; } ;;
3155     xno)
3156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3157     $as_echo "unsupported" >&6; } ;;
3158     *)
3159     CC="$CC $ac_cv_prog_cc_c89"
3160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3161     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3162     esac
3163     if test "x$ac_cv_prog_cc_c89" != xno; then :
3164    
3165     fi
3166    
3167     ac_ext=c
3168     ac_cpp='$CPP $CPPFLAGS'
3169     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172    
3173 root 1.1
3174    
3175 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
3176     $as_echo_n "checking for main in -lm... " >&6; }
3177     if test "${ac_cv_lib_m_main+set}" = set; then :
3178     $as_echo_n "(cached) " >&6
3179 root 1.1 else
3180 root 1.2 ac_check_lib_save_LIBS=$LIBS
3181 root 1.1 LIBS="-lm $LIBS"
3182 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183     /* end confdefs.h. */
3184    
3185    
3186     int
3187     main ()
3188     {
3189     return main ();
3190     ;
3191     return 0;
3192     }
3193     _ACEOF
3194     if ac_fn_c_try_link "$LINENO"; then :
3195     ac_cv_lib_m_main=yes
3196     else
3197     ac_cv_lib_m_main=no
3198     fi
3199     rm -f core conftest.err conftest.$ac_objext \
3200     conftest$ac_exeext conftest.$ac_ext
3201     LIBS=$ac_check_lib_save_LIBS
3202     fi
3203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
3204     $as_echo "$ac_cv_lib_m_main" >&6; }
3205     if test "x$ac_cv_lib_m_main" = x""yes; then :
3206     cat >>confdefs.h <<_ACEOF
3207     #define HAVE_LIBM 1
3208     _ACEOF
3209    
3210     LIBS="-lm $LIBS"
3211    
3212     fi
3213    
3214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
3215     $as_echo_n "checking for main in -lc... " >&6; }
3216     if test "${ac_cv_lib_c_main+set}" = set; then :
3217     $as_echo_n "(cached) " >&6
3218     else
3219     ac_check_lib_save_LIBS=$LIBS
3220     LIBS="-lc $LIBS"
3221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222     /* end confdefs.h. */
3223    
3224    
3225     int
3226     main ()
3227     {
3228     return main ();
3229     ;
3230     return 0;
3231     }
3232     _ACEOF
3233     if ac_fn_c_try_link "$LINENO"; then :
3234     ac_cv_lib_c_main=yes
3235     else
3236     ac_cv_lib_c_main=no
3237     fi
3238     rm -f core conftest.err conftest.$ac_objext \
3239     conftest$ac_exeext conftest.$ac_ext
3240     LIBS=$ac_check_lib_save_LIBS
3241     fi
3242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
3243     $as_echo "$ac_cv_lib_c_main" >&6; }
3244     if test "x$ac_cv_lib_c_main" = x""yes; then :
3245     cat >>confdefs.h <<_ACEOF
3246     #define HAVE_LIBC 1
3247     _ACEOF
3248    
3249     LIBS="-lc $LIBS"
3250    
3251     fi
3252    
3253    
3254     ac_header_dirent=no
3255     for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3256     as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3258     $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3259     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
3260     $as_echo_n "(cached) " >&6
3261     else
3262     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263     /* end confdefs.h. */
3264     #include <sys/types.h>
3265     #include <$ac_hdr>
3266    
3267     int
3268     main ()
3269     {
3270     if ((DIR *) 0)
3271     return 0;
3272     ;
3273     return 0;
3274     }
3275     _ACEOF
3276     if ac_fn_c_try_compile "$LINENO"; then :
3277     eval "$as_ac_Header=yes"
3278     else
3279     eval "$as_ac_Header=no"
3280     fi
3281     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282     fi
3283     eval ac_res=\$$as_ac_Header
3284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3285     $as_echo "$ac_res" >&6; }
3286     eval as_val=\$$as_ac_Header
3287     if test "x$as_val" = x""yes; then :
3288     cat >>confdefs.h <<_ACEOF
3289     #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3290     _ACEOF
3291    
3292     ac_header_dirent=$ac_hdr; break
3293     fi
3294    
3295     done
3296     # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3297     if test $ac_header_dirent = dirent.h; then
3298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3299     $as_echo_n "checking for library containing opendir... " >&6; }
3300     if test "${ac_cv_search_opendir+set}" = set; then :
3301     $as_echo_n "(cached) " >&6
3302     else
3303     ac_func_search_save_LIBS=$LIBS
3304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305     /* end confdefs.h. */
3306    
3307     /* Override any GCC internal prototype to avoid an error.
3308     Use char because int might match the return type of a GCC
3309     builtin and then its argument prototype would still apply. */
3310     #ifdef __cplusplus
3311     extern "C"
3312     #endif
3313     char opendir ();
3314     int
3315     main ()
3316     {
3317     return opendir ();
3318     ;
3319     return 0;
3320     }
3321     _ACEOF
3322     for ac_lib in '' dir; do
3323     if test -z "$ac_lib"; then
3324     ac_res="none required"
3325     else
3326     ac_res=-l$ac_lib
3327     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3328     fi
3329     if ac_fn_c_try_link "$LINENO"; then :
3330     ac_cv_search_opendir=$ac_res
3331 root 1.1 fi
3332 root 1.2 rm -f core conftest.err conftest.$ac_objext \
3333     conftest$ac_exeext
3334     if test "${ac_cv_search_opendir+set}" = set; then :
3335     break
3336     fi
3337     done
3338     if test "${ac_cv_search_opendir+set}" = set; then :
3339 root 1.1
3340 root 1.2 else
3341     ac_cv_search_opendir=no
3342     fi
3343     rm conftest.$ac_ext
3344     LIBS=$ac_func_search_save_LIBS
3345 root 1.1 fi
3346 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3347     $as_echo "$ac_cv_search_opendir" >&6; }
3348     ac_res=$ac_cv_search_opendir
3349     if test "$ac_res" != no; then :
3350     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3351 root 1.1
3352 root 1.2 fi
3353 root 1.1
3354     else
3355 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3356     $as_echo_n "checking for library containing opendir... " >&6; }
3357     if test "${ac_cv_search_opendir+set}" = set; then :
3358     $as_echo_n "(cached) " >&6
3359     else
3360     ac_func_search_save_LIBS=$LIBS
3361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362     /* end confdefs.h. */
3363    
3364     /* Override any GCC internal prototype to avoid an error.
3365     Use char because int might match the return type of a GCC
3366     builtin and then its argument prototype would still apply. */
3367     #ifdef __cplusplus
3368     extern "C"
3369     #endif
3370     char opendir ();
3371     int
3372     main ()
3373     {
3374     return opendir ();
3375     ;
3376     return 0;
3377     }
3378     _ACEOF
3379     for ac_lib in '' x; do
3380     if test -z "$ac_lib"; then
3381     ac_res="none required"
3382     else
3383     ac_res=-l$ac_lib
3384     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3385     fi
3386     if ac_fn_c_try_link "$LINENO"; then :
3387     ac_cv_search_opendir=$ac_res
3388 root 1.1 fi
3389 root 1.2 rm -f core conftest.err conftest.$ac_objext \
3390     conftest$ac_exeext
3391     if test "${ac_cv_search_opendir+set}" = set; then :
3392     break
3393     fi
3394     done
3395     if test "${ac_cv_search_opendir+set}" = set; then :
3396 root 1.1
3397     else
3398 root 1.2 ac_cv_search_opendir=no
3399     fi
3400     rm conftest.$ac_ext
3401     LIBS=$ac_func_search_save_LIBS
3402     fi
3403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3404     $as_echo "$ac_cv_search_opendir" >&6; }
3405     ac_res=$ac_cv_search_opendir
3406     if test "$ac_res" != no; then :
3407     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3408    
3409 root 1.1 fi
3410    
3411     fi
3412    
3413 root 1.2 ac_ext=c
3414     ac_cpp='$CPP $CPPFLAGS'
3415     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3419     $as_echo_n "checking how to run the C preprocessor... " >&6; }
3420     # On Suns, sometimes $CPP names a directory.
3421     if test -n "$CPP" && test -d "$CPP"; then
3422     CPP=
3423     fi
3424     if test -z "$CPP"; then
3425     if test "${ac_cv_prog_CPP+set}" = set; then :
3426     $as_echo_n "(cached) " >&6
3427     else
3428     # Double quotes because CPP needs to be expanded
3429     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430     do
3431     ac_preproc_ok=false
3432     for ac_c_preproc_warn_flag in '' yes
3433     do
3434     # Use a header file that comes with gcc, so configuring glibc
3435     # with a fresh cross-compiler works.
3436     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437     # <limits.h> exists even on freestanding compilers.
3438     # On the NeXT, cc -E runs the code through the compiler's parser,
3439     # not just through cpp. "Syntax error" is here to catch this case.
3440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441     /* end confdefs.h. */
3442     #ifdef __STDC__
3443     # include <limits.h>
3444     #else
3445     # include <assert.h>
3446     #endif
3447     Syntax error
3448     _ACEOF
3449     if ac_fn_c_try_cpp "$LINENO"; then :
3450    
3451     else
3452     # Broken: fails on valid input.
3453     continue
3454     fi
3455     rm -f conftest.err conftest.$ac_ext
3456    
3457     # OK, works on sane cases. Now check whether nonexistent headers
3458     # can be detected and how.
3459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460     /* end confdefs.h. */
3461     #include <ac_nonexistent.h>
3462     _ACEOF
3463     if ac_fn_c_try_cpp "$LINENO"; then :
3464     # Broken: success on invalid input.
3465     continue
3466     else
3467     # Passes both tests.
3468     ac_preproc_ok=:
3469     break
3470     fi
3471     rm -f conftest.err conftest.$ac_ext
3472 root 1.1
3473 root 1.2 done
3474     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475     rm -f conftest.err conftest.$ac_ext
3476     if $ac_preproc_ok; then :
3477     break
3478 root 1.1 fi
3479    
3480 root 1.2 done
3481     ac_cv_prog_CPP=$CPP
3482 root 1.1
3483     fi
3484 root 1.2 CPP=$ac_cv_prog_CPP
3485 root 1.1 else
3486 root 1.2 ac_cv_prog_CPP=$CPP
3487 root 1.1 fi
3488 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3489     $as_echo "$CPP" >&6; }
3490     ac_preproc_ok=false
3491     for ac_c_preproc_warn_flag in '' yes
3492     do
3493     # Use a header file that comes with gcc, so configuring glibc
3494     # with a fresh cross-compiler works.
3495     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496     # <limits.h> exists even on freestanding compilers.
3497     # On the NeXT, cc -E runs the code through the compiler's parser,
3498     # not just through cpp. "Syntax error" is here to catch this case.
3499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500     /* end confdefs.h. */
3501     #ifdef __STDC__
3502     # include <limits.h>
3503     #else
3504     # include <assert.h>
3505     #endif
3506     Syntax error
3507     _ACEOF
3508     if ac_fn_c_try_cpp "$LINENO"; then :
3509    
3510     else
3511     # Broken: fails on valid input.
3512     continue
3513     fi
3514     rm -f conftest.err conftest.$ac_ext
3515    
3516     # OK, works on sane cases. Now check whether nonexistent headers
3517     # can be detected and how.
3518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519     /* end confdefs.h. */
3520     #include <ac_nonexistent.h>
3521     _ACEOF
3522     if ac_fn_c_try_cpp "$LINENO"; then :
3523     # Broken: success on invalid input.
3524     continue
3525     else
3526     # Passes both tests.
3527     ac_preproc_ok=:
3528     break
3529 root 1.1 fi
3530 root 1.2 rm -f conftest.err conftest.$ac_ext
3531 root 1.1
3532 root 1.2 done
3533     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534     rm -f conftest.err conftest.$ac_ext
3535     if $ac_preproc_ok; then :
3536 root 1.1
3537     else
3538 root 1.2 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540     as_fn_error "C preprocessor \"$CPP\" fails sanity check
3541     See \`config.log' for more details." "$LINENO" 5; }
3542 root 1.1 fi
3543    
3544 root 1.2 ac_ext=c
3545     ac_cpp='$CPP $CPPFLAGS'
3546     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549    
3550    
3551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3552     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3553     if test "${ac_cv_path_GREP+set}" = set; then :
3554     $as_echo_n "(cached) " >&6
3555     else
3556     if test -z "$GREP"; then
3557     ac_path_GREP_found=false
3558     # Loop through the user's path and test for each of PROGNAME-LIST
3559     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561     do
3562     IFS=$as_save_IFS
3563     test -z "$as_dir" && as_dir=.
3564     for ac_prog in grep ggrep; do
3565     for ac_exec_ext in '' $ac_executable_extensions; do
3566     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3568     # Check for GNU ac_path_GREP and select it if it is found.
3569     # Check for GNU $ac_path_GREP
3570     case `"$ac_path_GREP" --version 2>&1` in
3571     *GNU*)
3572     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573     *)
3574     ac_count=0
3575     $as_echo_n 0123456789 >"conftest.in"
3576     while :
3577     do
3578     cat "conftest.in" "conftest.in" >"conftest.tmp"
3579     mv "conftest.tmp" "conftest.in"
3580     cp "conftest.in" "conftest.nl"
3581     $as_echo 'GREP' >> "conftest.nl"
3582     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584     as_fn_arith $ac_count + 1 && ac_count=$as_val
3585     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586     # Best one so far, save it but keep looking for a better one
3587     ac_cv_path_GREP="$ac_path_GREP"
3588     ac_path_GREP_max=$ac_count
3589     fi
3590     # 10*(2^10) chars as input seems more than enough
3591     test $ac_count -gt 10 && break
3592     done
3593     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594     esac
3595    
3596     $ac_path_GREP_found && break 3
3597     done
3598     done
3599     done
3600     IFS=$as_save_IFS
3601     if test -z "$ac_cv_path_GREP"; then
3602     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603     fi
3604 root 1.1 else
3605 root 1.2 ac_cv_path_GREP=$GREP
3606 root 1.1 fi
3607    
3608     fi
3609 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610     $as_echo "$ac_cv_path_GREP" >&6; }
3611     GREP="$ac_cv_path_GREP"
3612    
3613 root 1.1
3614 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615     $as_echo_n "checking for egrep... " >&6; }
3616     if test "${ac_cv_path_EGREP+set}" = set; then :
3617     $as_echo_n "(cached) " >&6
3618 root 1.1 else
3619 root 1.2 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620     then ac_cv_path_EGREP="$GREP -E"
3621     else
3622     if test -z "$EGREP"; then
3623     ac_path_EGREP_found=false
3624     # Loop through the user's path and test for each of PROGNAME-LIST
3625     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627     do
3628     IFS=$as_save_IFS
3629     test -z "$as_dir" && as_dir=.
3630     for ac_prog in egrep; do
3631     for ac_exec_ext in '' $ac_executable_extensions; do
3632     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3633     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3634     # Check for GNU ac_path_EGREP and select it if it is found.
3635     # Check for GNU $ac_path_EGREP
3636     case `"$ac_path_EGREP" --version 2>&1` in
3637     *GNU*)
3638     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3639     *)
3640     ac_count=0
3641     $as_echo_n 0123456789 >"conftest.in"
3642     while :
3643     do
3644     cat "conftest.in" "conftest.in" >"conftest.tmp"
3645     mv "conftest.tmp" "conftest.in"
3646     cp "conftest.in" "conftest.nl"
3647     $as_echo 'EGREP' >> "conftest.nl"
3648     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650     as_fn_arith $ac_count + 1 && ac_count=$as_val
3651     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3652     # Best one so far, save it but keep looking for a better one
3653     ac_cv_path_EGREP="$ac_path_EGREP"
3654     ac_path_EGREP_max=$ac_count
3655     fi
3656     # 10*(2^10) chars as input seems more than enough
3657     test $ac_count -gt 10 && break
3658     done
3659     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660     esac
3661    
3662     $ac_path_EGREP_found && break 3
3663     done
3664     done
3665     done
3666     IFS=$as_save_IFS
3667     if test -z "$ac_cv_path_EGREP"; then
3668     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669     fi
3670 root 1.1 else
3671 root 1.2 ac_cv_path_EGREP=$EGREP
3672 root 1.1 fi
3673 root 1.2
3674     fi
3675 root 1.1 fi
3676 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3677     $as_echo "$ac_cv_path_EGREP" >&6; }
3678     EGREP="$ac_cv_path_EGREP"
3679    
3680 root 1.1
3681 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3682     $as_echo_n "checking for ANSI C header files... " >&6; }
3683     if test "${ac_cv_header_stdc+set}" = set; then :
3684     $as_echo_n "(cached) " >&6
3685 root 1.1 else
3686 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687     /* end confdefs.h. */
3688 root 1.1 #include <stdlib.h>
3689     #include <stdarg.h>
3690     #include <string.h>
3691     #include <float.h>
3692 root 1.2
3693     int
3694     main ()
3695     {
3696    
3697     ;
3698     return 0;
3699     }
3700     _ACEOF
3701     if ac_fn_c_try_compile "$LINENO"; then :
3702 root 1.1 ac_cv_header_stdc=yes
3703     else
3704     ac_cv_header_stdc=no
3705     fi
3706 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 root 1.1
3708     if test $ac_cv_header_stdc = yes; then
3709     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711     /* end confdefs.h. */
3712 root 1.1 #include <string.h>
3713 root 1.2
3714     _ACEOF
3715 root 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 root 1.2 $EGREP "memchr" >/dev/null 2>&1; then :
3717    
3718 root 1.1 else
3719     ac_cv_header_stdc=no
3720     fi
3721     rm -f conftest*
3722    
3723     fi
3724    
3725     if test $ac_cv_header_stdc = yes; then
3726     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728     /* end confdefs.h. */
3729 root 1.1 #include <stdlib.h>
3730 root 1.2
3731     _ACEOF
3732 root 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 root 1.2 $EGREP "free" >/dev/null 2>&1; then :
3734    
3735 root 1.1 else
3736     ac_cv_header_stdc=no
3737     fi
3738     rm -f conftest*
3739    
3740     fi
3741    
3742     if test $ac_cv_header_stdc = yes; then
3743     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 root 1.2 if test "$cross_compiling" = yes; then :
3745 root 1.1 :
3746     else
3747 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748     /* end confdefs.h. */
3749 root 1.1 #include <ctype.h>
3750 root 1.2 #include <stdlib.h>
3751     #if ((' ' & 0x0FF) == 0x020)
3752     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754     #else
3755     # define ISLOWER(c) \
3756     (('a' <= (c) && (c) <= 'i') \
3757     || ('j' <= (c) && (c) <= 'r') \
3758     || ('s' <= (c) && (c) <= 'z'))
3759     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760     #endif
3761    
3762 root 1.1 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3763 root 1.2 int
3764     main ()
3765     {
3766     int i;
3767     for (i = 0; i < 256; i++)
3768     if (XOR (islower (i), ISLOWER (i))
3769     || toupper (i) != TOUPPER (i))
3770     return 2;
3771     return 0;
3772     }
3773     _ACEOF
3774     if ac_fn_c_try_run "$LINENO"; then :
3775    
3776 root 1.1 else
3777     ac_cv_header_stdc=no
3778     fi
3779 root 1.2 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3780     conftest.$ac_objext conftest.beam conftest.$ac_ext
3781 root 1.1 fi
3782    
3783     fi
3784     fi
3785 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3786     $as_echo "$ac_cv_header_stdc" >&6; }
3787     if test $ac_cv_header_stdc = yes; then
3788 root 1.1
3789 root 1.2 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790 root 1.1
3791     fi
3792    
3793 root 1.2 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795     inttypes.h stdint.h unistd.h
3796     do :
3797     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3799     "
3800     eval as_val=\$$as_ac_Header
3801     if test "x$as_val" = x""yes; then :
3802     cat >>confdefs.h <<_ACEOF
3803     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804     _ACEOF
3805    
3806 root 1.1 fi
3807 root 1.2
3808     done
3809    
3810    
3811     for ac_header in fcntl.h limits.h unistd.h string.h sys/soundcard.h soundcard.h machine/soundcard.h libc.h
3812     do :
3813     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3815     eval as_val=\$$as_ac_Header
3816     if test "x$as_val" = x""yes; then :
3817     cat >>confdefs.h <<_ACEOF
3818     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819     _ACEOF
3820    
3821 root 1.1 fi
3822 root 1.2
3823     done
3824    
3825    
3826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3827     $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3828     if test "${ac_cv_c_const+set}" = set; then :
3829     $as_echo_n "(cached) " >&6
3830     else
3831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832     /* end confdefs.h. */
3833    
3834     int
3835     main ()
3836     {
3837     /* FIXME: Include the comments suggested by Paul. */
3838     #ifndef __cplusplus
3839     /* Ultrix mips cc rejects this. */
3840     typedef int charset[2];
3841     const charset cs;
3842     /* SunOS 4.1.1 cc rejects this. */
3843     char const *const *pcpcc;
3844     char **ppc;
3845     /* NEC SVR4.0.2 mips cc rejects this. */
3846     struct point {int x, y;};
3847     static struct point const zero = {0,0};
3848     /* AIX XL C 1.02.0.0 rejects this.
3849     It does not let you subtract one const X* pointer from another in
3850     an arm of an if-expression whose if-part is not a constant
3851     expression */
3852     const char *g = "string";
3853     pcpcc = &g + (g ? g-g : 0);
3854     /* HPUX 7.0 cc rejects these. */
3855     ++pcpcc;
3856     ppc = (char**) pcpcc;
3857     pcpcc = (char const *const *) ppc;
3858     { /* SCO 3.2v4 cc rejects this. */
3859     char *t;
3860     char const *s = 0 ? (char *) 0 : (char const *) 0;
3861    
3862     *t++ = 0;
3863     if (s) return 0;
3864     }
3865     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3866     int x[] = {25, 17};
3867     const int *foo = &x[0];
3868     ++foo;
3869     }
3870     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3871     typedef const int *iptr;
3872     iptr p = 0;
3873     ++p;
3874     }
3875     { /* AIX XL C 1.02.0.0 rejects this saying
3876     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3877     struct s { int j; const int *ap[3]; };
3878     struct s *b; b->j = 5;
3879     }
3880     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3881     const int foo = 10;
3882     if (!foo) return 0;
3883     }
3884     return !cs[0] && !zero.x;
3885     #endif
3886    
3887     ;
3888     return 0;
3889     }
3890     _ACEOF
3891     if ac_fn_c_try_compile "$LINENO"; then :
3892 root 1.1 ac_cv_c_const=yes
3893     else
3894     ac_cv_c_const=no
3895     fi
3896 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 root 1.1 fi
3898 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3899     $as_echo "$ac_cv_c_const" >&6; }
3900     if test $ac_cv_c_const = no; then
3901 root 1.1
3902 root 1.2 $as_echo "#define const /**/" >>confdefs.h
3903 root 1.1
3904     fi
3905    
3906 root 1.2 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
3907     if test "x$ac_cv_type_mode_t" = x""yes; then :
3908    
3909 root 1.1 else
3910    
3911 root 1.2 cat >>confdefs.h <<_ACEOF
3912 root 1.1 #define mode_t int
3913 root 1.2 _ACEOF
3914 root 1.1
3915     fi
3916    
3917 root 1.2 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3918     if test "x$ac_cv_type_size_t" = x""yes; then :
3919    
3920 root 1.1 else
3921 root 1.2
3922     cat >>confdefs.h <<_ACEOF
3923     #define size_t unsigned int
3924     _ACEOF
3925 root 1.1
3926     fi
3927    
3928 root 1.2 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3929     if test "x$ac_cv_type_pid_t" = x""yes; then :
3930 root 1.1
3931     else
3932    
3933 root 1.2 cat >>confdefs.h <<_ACEOF
3934 root 1.1 #define pid_t int
3935 root 1.2 _ACEOF
3936 root 1.1
3937     fi
3938    
3939 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
3940     $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
3941     if test "${ac_cv_struct_tm+set}" = set; then :
3942     $as_echo_n "(cached) " >&6
3943 root 1.1 else
3944 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945     /* end confdefs.h. */
3946 root 1.1 #include <sys/types.h>
3947     #include <time.h>
3948 root 1.2
3949     int
3950     main ()
3951     {
3952     struct tm tm;
3953     int *p = &tm.tm_sec;
3954     return !p;
3955     ;
3956     return 0;
3957     }
3958     _ACEOF
3959     if ac_fn_c_try_compile "$LINENO"; then :
3960 root 1.1 ac_cv_struct_tm=time.h
3961     else
3962     ac_cv_struct_tm=sys/time.h
3963     fi
3964 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 root 1.1 fi
3966 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
3967     $as_echo "$ac_cv_struct_tm" >&6; }
3968     if test $ac_cv_struct_tm = sys/time.h; then
3969 root 1.1
3970 root 1.2 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
3971 root 1.1
3972     fi
3973    
3974 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3975     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3976     if test "${ac_cv_c_bigendian+set}" = set; then :
3977     $as_echo_n "(cached) " >&6
3978 root 1.1 else
3979     ac_cv_c_bigendian=unknown
3980 root 1.2 # See if we're dealing with a universal compiler.
3981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982     /* end confdefs.h. */
3983     #ifndef __APPLE_CC__
3984     not a universal capable compiler
3985     #endif
3986     typedef int dummy;
3987    
3988     _ACEOF
3989     if ac_fn_c_try_compile "$LINENO"; then :
3990    
3991     # Check for potential -arch flags. It is not universal unless
3992     # there are at least two -arch flags with different values.
3993     ac_arch=
3994     ac_prev=
3995     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3996     if test -n "$ac_prev"; then
3997     case $ac_word in
3998     i?86 | x86_64 | ppc | ppc64)
3999     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4000     ac_arch=$ac_word
4001     else
4002     ac_cv_c_bigendian=universal
4003     break
4004     fi
4005     ;;
4006     esac
4007     ac_prev=
4008     elif test "x$ac_word" = "x-arch"; then
4009     ac_prev=arch
4010     fi
4011     done
4012     fi
4013     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014     if test $ac_cv_c_bigendian = unknown; then
4015     # See if sys/param.h defines the BYTE_ORDER macro.
4016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017     /* end confdefs.h. */
4018 root 1.1 #include <sys/types.h>
4019 root 1.2 #include <sys/param.h>
4020    
4021     int
4022     main ()
4023     {
4024     #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4025     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4026     && LITTLE_ENDIAN)
4027     bogus endian macros
4028     #endif
4029 root 1.1
4030 root 1.2 ;
4031     return 0;
4032     }
4033     _ACEOF
4034     if ac_fn_c_try_compile "$LINENO"; then :
4035 root 1.1 # It does; now see whether it defined to BIG_ENDIAN or not.
4036 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037     /* end confdefs.h. */
4038 root 1.1 #include <sys/types.h>
4039 root 1.2 #include <sys/param.h>
4040 root 1.1
4041 root 1.2 int
4042     main ()
4043     {
4044 root 1.1 #if BYTE_ORDER != BIG_ENDIAN
4045 root 1.2 not big endian
4046     #endif
4047    
4048     ;
4049     return 0;
4050     }
4051     _ACEOF
4052     if ac_fn_c_try_compile "$LINENO"; then :
4053 root 1.1 ac_cv_c_bigendian=yes
4054     else
4055     ac_cv_c_bigendian=no
4056     fi
4057 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058     fi
4059     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060     fi
4061     if test $ac_cv_c_bigendian = unknown; then
4062     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064     /* end confdefs.h. */
4065     #include <limits.h>
4066    
4067     int
4068     main ()
4069     {
4070     #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4071     bogus endian macros
4072     #endif
4073    
4074     ;
4075     return 0;
4076     }
4077     _ACEOF
4078     if ac_fn_c_try_compile "$LINENO"; then :
4079     # It does; now see whether it defined to _BIG_ENDIAN or not.
4080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081     /* end confdefs.h. */
4082     #include <limits.h>
4083    
4084     int
4085     main ()
4086     {
4087     #ifndef _BIG_ENDIAN
4088     not big endian
4089     #endif
4090    
4091     ;
4092     return 0;
4093     }
4094     _ACEOF
4095     if ac_fn_c_try_compile "$LINENO"; then :
4096     ac_cv_c_bigendian=yes
4097 root 1.1 else
4098 root 1.2 ac_cv_c_bigendian=no
4099     fi
4100     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 root 1.1 fi
4102 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103     fi
4104     if test $ac_cv_c_bigendian = unknown; then
4105     # Compile a test program.
4106     if test "$cross_compiling" = yes; then :
4107     # Try to guess by grepping values from an object file.
4108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109     /* end confdefs.h. */
4110     short int ascii_mm[] =
4111     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4112     short int ascii_ii[] =
4113     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4114     int use_ascii (int i) {
4115     return ascii_mm[i] + ascii_ii[i];
4116     }
4117     short int ebcdic_ii[] =
4118     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4119     short int ebcdic_mm[] =
4120     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4121     int use_ebcdic (int i) {
4122     return ebcdic_mm[i] + ebcdic_ii[i];
4123     }
4124     extern int foo;
4125    
4126     int
4127     main ()
4128     {
4129     return use_ascii (foo) == use_ebcdic (foo);
4130     ;
4131     return 0;
4132     }
4133     _ACEOF
4134     if ac_fn_c_try_compile "$LINENO"; then :
4135     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4136     ac_cv_c_bigendian=yes
4137     fi
4138     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4139     if test "$ac_cv_c_bigendian" = unknown; then
4140     ac_cv_c_bigendian=no
4141     else
4142     # finding both strings is unlikely to happen, but who knows?
4143     ac_cv_c_bigendian=unknown
4144     fi
4145     fi
4146     fi
4147     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148     else
4149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150     /* end confdefs.h. */
4151     $ac_includes_default
4152     int
4153     main ()
4154     {
4155    
4156     /* Are we little or big endian? From Harbison&Steele. */
4157     union
4158     {
4159     long int l;
4160     char c[sizeof (long int)];
4161     } u;
4162     u.l = 1;
4163     return u.c[sizeof (long int) - 1] == 1;
4164    
4165     ;
4166     return 0;
4167     }
4168     _ACEOF
4169     if ac_fn_c_try_run "$LINENO"; then :
4170 root 1.1 ac_cv_c_bigendian=no
4171     else
4172     ac_cv_c_bigendian=yes
4173     fi
4174 root 1.2 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4175     conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 root 1.1 fi
4177    
4178 root 1.2 fi
4179 root 1.1 fi
4180 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4181     $as_echo "$ac_cv_c_bigendian" >&6; }
4182     case $ac_cv_c_bigendian in #(
4183     yes)
4184     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4185     ;; #(
4186     no)
4187     ;; #(
4188     universal)
4189 root 1.1
4190 root 1.2 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4191 root 1.1
4192 root 1.2 ;; #(
4193     *)
4194     as_fn_error "unknown endianness
4195     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4196     esac
4197 root 1.1
4198    
4199 root 1.2 # The cast to long int works around a bug in the HP C Compiler
4200     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4201     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4202     # This bug is HP SR number 8606223364.
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4204     $as_echo_n "checking size of int... " >&6; }
4205     if test "${ac_cv_sizeof_int+set}" = set; then :
4206     $as_echo_n "(cached) " >&6
4207 root 1.1 else
4208 root 1.2 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4209    
4210 root 1.1 else
4211 root 1.2 if test "$ac_cv_type_int" = yes; then
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_set_status 77
4215     as_fn_error "cannot compute sizeof (int)
4216     See \`config.log' for more details." "$LINENO" 5; }; }
4217     else
4218     ac_cv_sizeof_int=0
4219     fi
4220 root 1.1 fi
4221 root 1.2
4222 root 1.1 fi
4223 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4224     $as_echo "$ac_cv_sizeof_int" >&6; }
4225 root 1.1
4226 root 1.2
4227    
4228     cat >>confdefs.h <<_ACEOF
4229 root 1.1 #define SIZEOF_INT $ac_cv_sizeof_int
4230 root 1.2 _ACEOF
4231 root 1.1
4232    
4233 root 1.2 # The cast to long int works around a bug in the HP C Compiler
4234     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4235     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4236     # This bug is HP SR number 8606223364.
4237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4238     $as_echo_n "checking size of char... " >&6; }
4239     if test "${ac_cv_sizeof_char+set}" = set; then :
4240     $as_echo_n "(cached) " >&6
4241 root 1.1 else
4242 root 1.2 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4243    
4244 root 1.1 else
4245 root 1.2 if test "$ac_cv_type_char" = yes; then
4246     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248     { as_fn_set_status 77
4249     as_fn_error "cannot compute sizeof (char)
4250     See \`config.log' for more details." "$LINENO" 5; }; }
4251     else
4252     ac_cv_sizeof_char=0
4253     fi
4254 root 1.1 fi
4255 root 1.2
4256 root 1.1 fi
4257 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4258     $as_echo "$ac_cv_sizeof_char" >&6; }
4259    
4260    
4261 root 1.1
4262 root 1.2 cat >>confdefs.h <<_ACEOF
4263 root 1.1 #define SIZEOF_CHAR $ac_cv_sizeof_char
4264 root 1.2 _ACEOF
4265 root 1.1
4266    
4267 root 1.2 # The cast to long int works around a bug in the HP C Compiler
4268     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4269     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4270     # This bug is HP SR number 8606223364.
4271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4272     $as_echo_n "checking size of short... " >&6; }
4273     if test "${ac_cv_sizeof_short+set}" = set; then :
4274     $as_echo_n "(cached) " >&6
4275 root 1.1 else
4276 root 1.2 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4277    
4278 root 1.1 else
4279 root 1.2 if test "$ac_cv_type_short" = yes; then
4280     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282     { as_fn_set_status 77
4283     as_fn_error "cannot compute sizeof (short)
4284     See \`config.log' for more details." "$LINENO" 5; }; }
4285     else
4286     ac_cv_sizeof_short=0
4287     fi
4288 root 1.1 fi
4289 root 1.2
4290 root 1.1 fi
4291 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4292     $as_echo "$ac_cv_sizeof_short" >&6; }
4293 root 1.1
4294 root 1.2
4295    
4296     cat >>confdefs.h <<_ACEOF
4297 root 1.1 #define SIZEOF_SHORT $ac_cv_sizeof_short
4298 root 1.2 _ACEOF
4299 root 1.1
4300    
4301 root 1.2 # The cast to long int works around a bug in the HP C Compiler
4302     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4303     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4304     # This bug is HP SR number 8606223364.
4305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4306     $as_echo_n "checking size of long... " >&6; }
4307     if test "${ac_cv_sizeof_long+set}" = set; then :
4308     $as_echo_n "(cached) " >&6
4309 root 1.1 else
4310 root 1.2 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4311    
4312 root 1.1 else
4313 root 1.2 if test "$ac_cv_type_long" = yes; then
4314     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316     { as_fn_set_status 77
4317     as_fn_error "cannot compute sizeof (long)
4318     See \`config.log' for more details." "$LINENO" 5; }; }
4319     else
4320     ac_cv_sizeof_long=0
4321     fi
4322 root 1.1 fi
4323 root 1.2
4324 root 1.1 fi
4325 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4326     $as_echo "$ac_cv_sizeof_long" >&6; }
4327    
4328    
4329 root 1.1
4330 root 1.2 cat >>confdefs.h <<_ACEOF
4331 root 1.1 #define SIZEOF_LONG $ac_cv_sizeof_long
4332 root 1.2 _ACEOF
4333 root 1.1
4334    
4335 root 1.2 # The cast to long int works around a bug in the HP C Compiler
4336     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4337     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4338     # This bug is HP SR number 8606223364.
4339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
4340     $as_echo_n "checking size of int *... " >&6; }
4341     if test "${ac_cv_sizeof_int_p+set}" = set; then :
4342     $as_echo_n "(cached) " >&6
4343 root 1.1 else
4344 root 1.2 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
4345    
4346 root 1.1 else
4347 root 1.2 if test "$ac_cv_type_int_p" = yes; then
4348     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350     { as_fn_set_status 77
4351     as_fn_error "cannot compute sizeof (int *)
4352     See \`config.log' for more details." "$LINENO" 5; }; }
4353     else
4354     ac_cv_sizeof_int_p=0
4355     fi
4356 root 1.1 fi
4357 root 1.2
4358 root 1.1 fi
4359 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
4360     $as_echo "$ac_cv_sizeof_int_p" >&6; }
4361 root 1.1
4362 root 1.2
4363    
4364     cat >>confdefs.h <<_ACEOF
4365 root 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4366 root 1.2 _ACEOF
4367 root 1.1
4368    
4369    
4370 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4371     $as_echo_n "checking return type of signal handlers... " >&6; }
4372     if test "${ac_cv_type_signal+set}" = set; then :
4373     $as_echo_n "(cached) " >&6
4374 root 1.1 else
4375 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376     /* end confdefs.h. */
4377 root 1.1 #include <sys/types.h>
4378     #include <signal.h>
4379    
4380 root 1.2 int
4381     main ()
4382     {
4383     return *(signal (0, 0)) (0) == 1;
4384     ;
4385     return 0;
4386     }
4387     _ACEOF
4388     if ac_fn_c_try_compile "$LINENO"; then :
4389     ac_cv_type_signal=int
4390     else
4391 root 1.1 ac_cv_type_signal=void
4392     fi
4393 root 1.2 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 root 1.1 fi
4395 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4396     $as_echo "$ac_cv_type_signal" >&6; }
4397 root 1.1
4398 root 1.2 cat >>confdefs.h <<_ACEOF
4399 root 1.1 #define RETSIGTYPE $ac_cv_type_signal
4400 root 1.2 _ACEOF
4401 root 1.1
4402    
4403 root 1.2 for ac_func in strftime
4404     do :
4405     ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4406     if test "x$ac_cv_func_strftime" = x""yes; then :
4407     cat >>confdefs.h <<_ACEOF
4408 root 1.1 #define HAVE_STRFTIME 1
4409 root 1.2 _ACEOF
4410 root 1.1
4411     else
4412 root 1.2 # strftime is in -lintl on SCO UNIX.
4413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
4414     $as_echo_n "checking for strftime in -lintl... " >&6; }
4415     if test "${ac_cv_lib_intl_strftime+set}" = set; then :
4416     $as_echo_n "(cached) " >&6
4417 root 1.1 else
4418 root 1.2 ac_check_lib_save_LIBS=$LIBS
4419 root 1.1 LIBS="-lintl $LIBS"
4420 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421     /* end confdefs.h. */
4422    
4423     /* Override any GCC internal prototype to avoid an error.
4424     Use char because int might match the return type of a GCC
4425     builtin and then its argument prototype would still apply. */
4426     #ifdef __cplusplus
4427     extern "C"
4428     #endif
4429     char strftime ();
4430     int
4431     main ()
4432     {
4433     return strftime ();
4434     ;
4435     return 0;
4436     }
4437     _ACEOF
4438     if ac_fn_c_try_link "$LINENO"; then :
4439     ac_cv_lib_intl_strftime=yes
4440     else
4441     ac_cv_lib_intl_strftime=no
4442     fi
4443     rm -f core conftest.err conftest.$ac_objext \
4444     conftest$ac_exeext conftest.$ac_ext
4445     LIBS=$ac_check_lib_save_LIBS
4446     fi
4447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
4448     $as_echo "$ac_cv_lib_intl_strftime" >&6; }
4449     if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
4450     $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
4451 root 1.1
4452     LIBS="-lintl $LIBS"
4453     fi
4454    
4455     fi
4456 root 1.2 done
4457 root 1.1
4458     for ac_func in getcwd strerror strtok
4459 root 1.2 do :
4460     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4461     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4462     eval as_val=\$$as_ac_var
4463     if test "x$as_val" = x""yes; then :
4464     cat >>confdefs.h <<_ACEOF
4465     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4466     _ACEOF
4467 root 1.1
4468     fi
4469     done
4470    
4471 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
4472     $as_echo_n "checking whether closedir returns void... " >&6; }
4473     if test "${ac_cv_func_closedir_void+set}" = set; then :
4474     $as_echo_n "(cached) " >&6
4475 root 1.1 else
4476 root 1.2 if test "$cross_compiling" = yes; then :
4477 root 1.1 ac_cv_func_closedir_void=yes
4478     else
4479 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480     /* end confdefs.h. */
4481     $ac_includes_default
4482 root 1.1 #include <$ac_header_dirent>
4483 root 1.2 #ifndef __cplusplus
4484     int closedir ();
4485     #endif
4486    
4487     int
4488     main ()
4489     {
4490     return closedir (opendir (".")) != 0;
4491     ;
4492     return 0;
4493     }
4494     _ACEOF
4495     if ac_fn_c_try_run "$LINENO"; then :
4496 root 1.1 ac_cv_func_closedir_void=no
4497     else
4498     ac_cv_func_closedir_void=yes
4499     fi
4500 root 1.2 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4501     conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 root 1.1 fi
4503    
4504     fi
4505 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
4506     $as_echo "$ac_cv_func_closedir_void" >&6; }
4507 root 1.1 if test $ac_cv_func_closedir_void = yes; then
4508    
4509 root 1.2 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
4510 root 1.1
4511     fi
4512    
4513 root 1.2 for ac_func in vprintf
4514     do :
4515     ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4516     if test "x$ac_cv_func_vprintf" = x""yes; then :
4517     cat >>confdefs.h <<_ACEOF
4518 root 1.1 #define HAVE_VPRINTF 1
4519 root 1.2 _ACEOF
4520 root 1.1
4521 root 1.2 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4522     if test "x$ac_cv_func__doprnt" = x""yes; then :
4523 root 1.1
4524 root 1.2 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4525 root 1.1
4526     fi
4527    
4528     fi
4529 root 1.2 done
4530 root 1.1
4531    
4532    
4533     GUILE_LDFLAGS=""
4534     GUILE_CFLAGS=""
4535    
4536     AUDIO_LIB=""
4537 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laudio" >&5
4538     $as_echo_n "checking for main in -laudio... " >&6; }
4539     if test "${ac_cv_lib_audio_main+set}" = set; then :
4540     $as_echo_n "(cached) " >&6
4541 root 1.1 else
4542 root 1.2 ac_check_lib_save_LIBS=$LIBS
4543 root 1.1 LIBS="-laudio $LIBS"
4544 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545     /* end confdefs.h. */
4546    
4547    
4548     int
4549     main ()
4550     {
4551     return main ();
4552     ;
4553     return 0;
4554     }
4555     _ACEOF
4556     if ac_fn_c_try_link "$LINENO"; then :
4557     ac_cv_lib_audio_main=yes
4558     else
4559     ac_cv_lib_audio_main=no
4560     fi
4561     rm -f core conftest.err conftest.$ac_objext \
4562     conftest$ac_exeext conftest.$ac_ext
4563     LIBS=$ac_check_lib_save_LIBS
4564     fi
4565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_main" >&5
4566     $as_echo "$ac_cv_lib_audio_main" >&6; }
4567     if test "x$ac_cv_lib_audio_main" = x""yes; then :
4568 root 1.1
4569     AUDIO_LIB="-laudio"
4570    
4571     fi
4572    
4573    
4574    
4575     A_LD="ld"
4576     A_LD_FLAGS=""
4577    
4578     audio_system="unknown"
4579     case "$host" in
4580 root 1.2 *-*-linux*)
4581     $as_echo "#define LINUX 1" >>confdefs.h
4582    
4583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lasound" >&5
4584     $as_echo_n "checking for main in -lasound... " >&6; }
4585     if test "${ac_cv_lib_asound_main+set}" = set; then :
4586     $as_echo_n "(cached) " >&6
4587 root 1.1 else
4588 root 1.2 ac_check_lib_save_LIBS=$LIBS
4589 root 1.1 LIBS="-lasound $LIBS"
4590 root 1.2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591     /* end confdefs.h. */
4592    
4593    
4594     int
4595     main ()
4596     {
4597     return main ();
4598     ;
4599     return 0;
4600     }
4601     _ACEOF
4602     if ac_fn_c_try_link "$LINENO"; then :
4603     ac_cv_lib_asound_main=yes
4604     else
4605     ac_cv_lib_asound_main=no
4606 root 1.1 fi
4607 root 1.2 rm -f core conftest.err conftest.$ac_objext \
4608     conftest$ac_exeext conftest.$ac_ext
4609     LIBS=$ac_check_lib_save_LIBS
4610     fi
4611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_main" >&5
4612     $as_echo "$ac_cv_lib_asound_main" >&6; }
4613     if test "x$ac_cv_lib_asound_main" = x""yes; then :
4614 root 1.1
4615 root 1.2 if test "$use_alsa" = yes ; then
4616 root 1.1 audio_system=ALSA;
4617 root 1.2 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
4618 root 1.1
4619     AUDIO_LIB="-lasound"
4620 root 1.2
4621     else
4622 root 1.1 echo "ALSA appears to be installed, but you asked for OSS";
4623     audio_system=OSS;
4624     fi
4625    
4626     else
4627 root 1.2
4628 root 1.1 audio_system=OSS
4629    
4630     fi
4631    
4632     if test $audio_system != OSS ; then
4633 root 1.2 ac_fn_c_check_header_mongrel "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default"
4634     if test "x$ac_cv_header_sys_asoundlib_h" = x""yes; then :
4635    
4636 root 1.1 :
4637    
4638     else
4639 root 1.2
4640 root 1.1 if test $audio_system = ALSA ; then
4641 root 1.2 echo "I can't find the ALSA library - falling back to OSS";
4642 root 1.1 audio_system=OSS;
4643     fi
4644    
4645     fi
4646    
4647 root 1.2
4648 root 1.1 fi
4649     ;;
4650 root 1.2 *-*-sunos4*)
4651     $as_echo "#define SUN 1" >>confdefs.h
4652 root 1.1
4653     audio_system=Sun
4654     ;;
4655 root 1.2 *-*-solaris*)
4656     $as_echo "#define SOLARIS 1" >>confdefs.h
4657    
4658     $as_echo "#define SUN 1" >>confdefs.h
4659 root 1.1
4660     audio_system=Sun
4661     ;;
4662 root 1.2 *-*-hpux*)
4663     $as_echo "#define HPUX 1" >>confdefs.h
4664 root 1.1
4665     audio_system=Hpux
4666     ;;
4667 root 1.2 *-next*)
4668     $as_echo "#define NEXT 1" >>confdefs.h
4669 root 1.1
4670     audio_system=NeXT
4671     ;;
4672 root 1.2 *-sgi*)
4673     $as_echo "#define SGI 1" >>confdefs.h
4674 root 1.1
4675     audio_system=SGI
4676     A_LD_FLAGS="-non_shared"
4677     LIB_NAME="sndlib.a"
4678     # to get this to work in both cases, we'd need to run all the cc cases twice with/out -shared as in libtool
4679     ;;
4680 root 1.2 alpha*)
4681     $as_echo "#define ALPHA 1" >>confdefs.h
4682 root 1.1
4683     ;;
4684 root 1.2 *-*-openbsd*)
4685     $as_echo "#define OPENBSD 1" >>confdefs.h
4686 root 1.1
4687     audio_system=Sun
4688     ;;
4689 root 1.2 *-*-sco*)
4690     $as_echo "#define SCO5 1" >>confdefs.h
4691 root 1.1
4692     audio_system=OSS
4693     ;;
4694     *-*-cygwin*)
4695 root 1.2 $as_echo "#define WINDOZE 1" >>confdefs.h
4696 root 1.1
4697     audio_system=Windoze
4698     ;;
4699 root 1.2 *-aix*)
4700     $as_echo "#define AIX 1" >>confdefs.h
4701 root 1.1
4702     audio_system=aix
4703     ;;
4704    
4705     esac
4706 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio system" >&5
4707     $as_echo_n "checking for audio system... " >&6; }
4708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_system" >&5
4709     $as_echo "$audio_system" >&6; }
4710 root 1.1
4711    
4712    
4713    
4714 root 1.2 ac_config_files="$ac_config_files Makefile ../config.pl"
4715    
4716     cat >confcache <<\_ACEOF
4717 root 1.1 # This file is a shell script that caches the results of configure
4718     # tests run on this system so they can be shared between configure
4719 root 1.2 # scripts and configure runs, see configure's option --config-cache.
4720     # It is not useful on other systems. If it contains results you don't
4721     # want to keep, you may remove or edit it.
4722 root 1.1 #
4723 root 1.2 # config.status only pays attention to the cache file if you give it
4724     # the --recheck option to rerun configure.
4725 root 1.1 #
4726 root 1.2 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4727     # loading this file, other *unset* `ac_cv_foo' will be assigned the
4728     # following values.
4729    
4730     _ACEOF
4731    
4732 root 1.1 # The following way of writing the cache mishandles newlines in values,
4733     # but we know of no workaround that is simple, portable, and efficient.
4734 root 1.2 # So, we kill variables containing newlines.
4735 root 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
4736     # and sets the high bit in the cache file unless we assign to the vars.
4737 root 1.2 (
4738     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4739     eval ac_val=\$$ac_var
4740     case $ac_val in #(
4741     *${as_nl}*)
4742     case $ac_var in #(
4743     *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4744     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4745     esac
4746     case $ac_var in #(
4747     _ | IFS | as_nl) ;; #(
4748     BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4749     *) { eval $ac_var=; unset $ac_var;} ;;
4750     esac ;;
4751     esac
4752     done
4753    
4754     (set) 2>&1 |
4755     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4756     *${as_nl}ac_space=\ *)
4757     # `set' does not quote correctly, so add quotes: double-quote
4758     # substitution turns \\\\ into \\, and sed turns \\ into \.
4759     sed -n \
4760     "s/'/'\\\\''/g;
4761     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4762     ;; #(
4763     *)
4764     # `set' quotes correctly as required by POSIX, so do not add quotes.
4765     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4766     ;;
4767     esac |
4768     sort
4769     ) |
4770     sed '
4771     /^ac_cv_env_/b end
4772     t clear
4773     :clear
4774     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4775     t end
4776     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4777     :end' >>confcache
4778     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4779     if test -w "$cache_file"; then
4780     test "x$cache_file" != "x/dev/null" &&
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4782     $as_echo "$as_me: updating cache $cache_file" >&6;}
4783     cat confcache >$cache_file
4784 root 1.1 else
4785 root 1.2 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4786     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4787 root 1.1 fi
4788     fi
4789     rm -f confcache
4790    
4791     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4792     # Let make expand exec_prefix.
4793     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4794    
4795 root 1.2 DEFS=-DHAVE_CONFIG_H
4796    
4797     ac_libobjs=
4798     ac_ltlibobjs=
4799     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4800     # 1. Remove the extension, and $U if already installed.
4801     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4802     ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4803     # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4804     # will be set to the directory where LIBOBJS objects are built.
4805     as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4806     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4807     done
4808     LIBOBJS=$ac_libobjs
4809    
4810     LTLIBOBJS=$ac_ltlibobjs
4811    
4812 root 1.1
4813    
4814    
4815     : ${CONFIG_STATUS=./config.status}
4816 root 1.2 ac_write_fail=0
4817     ac_clean_files_save=$ac_clean_files
4818     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4819     { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4820     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4821     as_write_fail=0
4822     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4823     #! $SHELL
4824     # Generated by $as_me.
4825 root 1.1 # Run this file to recreate the current configuration.
4826     # Compiler output produced by configure, useful for debugging
4827 root 1.2 # configure, is in config.log if it exists.
4828    
4829     debug=false
4830     ac_cs_recheck=false
4831     ac_cs_silent=false
4832    
4833     SHELL=\${CONFIG_SHELL-$SHELL}
4834     export SHELL
4835     _ASEOF
4836     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4837     ## -------------------- ##
4838     ## M4sh Initialization. ##
4839     ## -------------------- ##
4840    
4841     # Be more Bourne compatible
4842     DUALCASE=1; export DUALCASE # for MKS sh
4843     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4844     emulate sh
4845     NULLCMD=:
4846     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4847     # is contrary to our usage. Disable this feature.
4848     alias -g '${1+"$@"}'='"$@"'
4849     setopt NO_GLOB_SUBST
4850     else
4851     case `(set -o) 2>/dev/null` in #(
4852     *posix*) :
4853     set -o posix ;; #(
4854     *) :
4855     ;;
4856     esac
4857     fi
4858    
4859    
4860     as_nl='
4861     '
4862     export as_nl
4863     # Printing a long string crashes Solaris 7 /usr/bin/printf.
4864     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4865     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4866     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4867     # Prefer a ksh shell builtin over an external printf program on Solaris,
4868     # but without wasting forks for bash or zsh.
4869     if test -z "$BASH_VERSION$ZSH_VERSION" \
4870     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4871     as_echo='print -r --'
4872     as_echo_n='print -rn --'
4873     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4874     as_echo='printf %s\n'
4875     as_echo_n='printf %s'
4876     else
4877     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4878     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4879     as_echo_n='/usr/ucb/echo -n'
4880     else
4881     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4882     as_echo_n_body='eval
4883     arg=$1;
4884     case $arg in #(
4885     *"$as_nl"*)
4886     expr "X$arg" : "X\\(.*\\)$as_nl";
4887     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4888     esac;
4889     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4890     '
4891     export as_echo_n_body
4892     as_echo_n='sh -c $as_echo_n_body as_echo'
4893     fi
4894     export as_echo_body
4895     as_echo='sh -c $as_echo_body as_echo'
4896     fi
4897    
4898     # The user is always right.
4899     if test "${PATH_SEPARATOR+set}" != set; then
4900     PATH_SEPARATOR=:
4901     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4902     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4903     PATH_SEPARATOR=';'
4904     }
4905     fi
4906    
4907    
4908     # IFS
4909     # We need space, tab and new line, in precisely that order. Quoting is
4910     # there to prevent editors from complaining about space-tab.
4911     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4912     # splitting by setting IFS to empty value.)
4913     IFS=" "" $as_nl"
4914    
4915     # Find who we are. Look in the path if we contain no directory separator.
4916     case $0 in #((
4917     *[\\/]* ) as_myself=$0 ;;
4918     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919     for as_dir in $PATH
4920     do
4921     IFS=$as_save_IFS
4922     test -z "$as_dir" && as_dir=.
4923     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4924     done
4925     IFS=$as_save_IFS
4926    
4927     ;;
4928     esac
4929     # We did not find ourselves, most probably we were run as `sh COMMAND'
4930     # in which case we are not to be found in the path.
4931     if test "x$as_myself" = x; then
4932     as_myself=$0
4933     fi
4934     if test ! -f "$as_myself"; then
4935     $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4936     exit 1
4937     fi
4938    
4939     # Unset variables that we do not need and which cause bugs (e.g. in
4940     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4941     # suppresses any "Segmentation fault" message there. '((' could
4942     # trigger a bug in pdksh 5.2.14.
4943     for as_var in BASH_ENV ENV MAIL MAILPATH
4944     do eval test x\${$as_var+set} = xset \
4945     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4946     done
4947     PS1='$ '
4948     PS2='> '
4949     PS4='+ '
4950    
4951     # NLS nuisances.
4952     LC_ALL=C
4953     export LC_ALL
4954     LANGUAGE=C
4955     export LANGUAGE
4956    
4957     # CDPATH.
4958     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4959    
4960    
4961     # as_fn_error ERROR [LINENO LOG_FD]
4962     # ---------------------------------
4963     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4964     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4965     # script with status $?, using 1 if that was 0.
4966     as_fn_error ()
4967     {
4968     as_status=$?; test $as_status -eq 0 && as_status=1
4969     if test "$3"; then
4970     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4971     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4972     fi
4973     $as_echo "$as_me: error: $1" >&2
4974     as_fn_exit $as_status
4975     } # as_fn_error
4976    
4977    
4978     # as_fn_set_status STATUS
4979     # -----------------------
4980     # Set $? to STATUS, without forking.
4981     as_fn_set_status ()
4982     {
4983     return $1
4984     } # as_fn_set_status
4985    
4986     # as_fn_exit STATUS
4987     # -----------------
4988     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4989     as_fn_exit ()
4990     {
4991     set +e
4992     as_fn_set_status $1
4993     exit $1
4994     } # as_fn_exit
4995    
4996     # as_fn_unset VAR
4997     # ---------------
4998     # Portably unset VAR.
4999     as_fn_unset ()
5000     {
5001     { eval $1=; unset $1;}
5002     }
5003     as_unset=as_fn_unset
5004     # as_fn_append VAR VALUE
5005     # ----------------------
5006     # Append the text in VALUE to the end of the definition contained in VAR. Take
5007     # advantage of any shell optimizations that allow amortized linear growth over
5008     # repeated appends, instead of the typical quadratic growth present in naive
5009     # implementations.
5010     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5011     eval 'as_fn_append ()
5012     {
5013     eval $1+=\$2
5014     }'
5015     else
5016     as_fn_append ()
5017     {
5018     eval $1=\$$1\$2
5019     }
5020     fi # as_fn_append
5021    
5022     # as_fn_arith ARG...
5023     # ------------------
5024     # Perform arithmetic evaluation on the ARGs, and store the result in the
5025     # global $as_val. Take advantage of shells that can avoid forks. The arguments
5026     # must be portable across $(()) and expr.
5027     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5028     eval 'as_fn_arith ()
5029     {
5030     as_val=$(( $* ))
5031     }'
5032     else
5033     as_fn_arith ()
5034     {
5035     as_val=`expr "$@" || test $? -eq 1`
5036     }
5037     fi # as_fn_arith
5038    
5039    
5040     if expr a : '\(a\)' >/dev/null 2>&1 &&
5041     test "X`expr 00001 : '.*\(...\)'`" = X001; then
5042     as_expr=expr
5043     else
5044     as_expr=false
5045     fi
5046    
5047     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5048     as_basename=basename
5049     else
5050     as_basename=false
5051     fi
5052    
5053     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5054     as_dirname=dirname
5055     else
5056     as_dirname=false
5057     fi
5058    
5059     as_me=`$as_basename -- "$0" ||
5060     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5061     X"$0" : 'X\(//\)$' \| \
5062     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5063     $as_echo X/"$0" |
5064     sed '/^.*\/\([^/][^/]*\)\/*$/{
5065     s//\1/
5066     q
5067     }
5068     /^X\/\(\/\/\)$/{
5069     s//\1/
5070     q
5071     }
5072     /^X\/\(\/\).*/{
5073     s//\1/
5074     q
5075     }
5076     s/.*/./; q'`
5077    
5078     # Avoid depending upon Character Ranges.
5079     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5080     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5081     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5082     as_cr_digits='0123456789'
5083     as_cr_alnum=$as_cr_Letters$as_cr_digits
5084    
5085     ECHO_C= ECHO_N= ECHO_T=
5086     case `echo -n x` in #(((((
5087     -n*)
5088     case `echo 'xy\c'` in
5089     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5090     xy) ECHO_C='\c';;
5091     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5092     ECHO_T=' ';;
5093     esac;;
5094     *)
5095     ECHO_N='-n';;
5096     esac
5097    
5098     rm -f conf$$ conf$$.exe conf$$.file
5099     if test -d conf$$.dir; then
5100     rm -f conf$$.dir/conf$$.file
5101     else
5102     rm -f conf$$.dir
5103     mkdir conf$$.dir 2>/dev/null
5104     fi
5105     if (echo >conf$$.file) 2>/dev/null; then
5106     if ln -s conf$$.file conf$$ 2>/dev/null; then
5107     as_ln_s='ln -s'
5108     # ... but there are two gotchas:
5109     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5110     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5111     # In both cases, we have to default to `cp -p'.
5112     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5113     as_ln_s='cp -p'
5114     elif ln conf$$.file conf$$ 2>/dev/null; then
5115     as_ln_s=ln
5116     else
5117     as_ln_s='cp -p'
5118     fi
5119     else
5120     as_ln_s='cp -p'
5121     fi
5122     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5123     rmdir conf$$.dir 2>/dev/null
5124    
5125    
5126     # as_fn_mkdir_p
5127     # -------------
5128     # Create "$as_dir" as a directory, including parents if necessary.
5129     as_fn_mkdir_p ()
5130     {
5131    
5132     case $as_dir in #(
5133     -*) as_dir=./$as_dir;;
5134     esac
5135     test -d "$as_dir" || eval $as_mkdir_p || {
5136     as_dirs=
5137     while :; do
5138     case $as_dir in #(
5139     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5140     *) as_qdir=$as_dir;;
5141     esac
5142     as_dirs="'$as_qdir' $as_dirs"
5143     as_dir=`$as_dirname -- "$as_dir" ||
5144     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5145     X"$as_dir" : 'X\(//\)[^/]' \| \
5146     X"$as_dir" : 'X\(//\)$' \| \
5147     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5148     $as_echo X"$as_dir" |
5149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5150     s//\1/
5151     q
5152     }
5153     /^X\(\/\/\)[^/].*/{
5154     s//\1/
5155     q
5156     }
5157     /^X\(\/\/\)$/{
5158     s//\1/
5159     q
5160     }
5161     /^X\(\/\).*/{
5162     s//\1/
5163     q
5164     }
5165     s/.*/./; q'`
5166     test -d "$as_dir" && break
5167     done
5168     test -z "$as_dirs" || eval "mkdir $as_dirs"
5169     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5170    
5171    
5172     } # as_fn_mkdir_p
5173     if mkdir -p . 2>/dev/null; then
5174     as_mkdir_p='mkdir -p "$as_dir"'
5175     else
5176     test -d ./-p && rmdir ./-p
5177     as_mkdir_p=false
5178     fi
5179    
5180     if test -x / >/dev/null 2>&1; then
5181     as_test_x='test -x'
5182     else
5183     if ls -dL / >/dev/null 2>&1; then
5184     as_ls_L_option=L
5185     else
5186     as_ls_L_option=
5187     fi
5188     as_test_x='
5189     eval sh -c '\''
5190     if test -d "$1"; then
5191     test -d "$1/.";
5192     else
5193     case $1 in #(
5194     -*)set "./$1";;
5195     esac;
5196     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5197     ???[sx]*):;;*)false;;esac;fi
5198     '\'' sh
5199     '
5200     fi
5201     as_executable_p=$as_test_x
5202    
5203     # Sed expression to map a string onto a valid CPP name.
5204     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5205    
5206     # Sed expression to map a string onto a valid variable name.
5207     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5208    
5209    
5210     exec 6>&1
5211     ## ----------------------------------- ##
5212     ## Main body of $CONFIG_STATUS script. ##
5213     ## ----------------------------------- ##
5214     _ASEOF
5215     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5216    
5217     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5218     # Save the log message, to keep $0 and so on meaningful, and to
5219     # report actual input values of CONFIG_FILES etc. instead of their
5220     # values after options handling.
5221     ac_log="
5222     This file was extended by $as_me, which was
5223     generated by GNU Autoconf 2.64. Invocation command line was
5224    
5225     CONFIG_FILES = $CONFIG_FILES
5226     CONFIG_HEADERS = $CONFIG_HEADERS
5227     CONFIG_LINKS = $CONFIG_LINKS
5228     CONFIG_COMMANDS = $CONFIG_COMMANDS
5229     $ $0 $@
5230    
5231     on `(hostname || uname -n) 2>/dev/null | sed 1q`
5232     "
5233 root 1.1
5234 root 1.2 _ACEOF
5235    
5236     case $ac_config_files in *"
5237     "*) set x $ac_config_files; shift; ac_config_files=$*;;
5238     esac
5239    
5240     case $ac_config_headers in *"
5241     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5242     esac
5243    
5244    
5245     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5246     # Files that config.status was made for.
5247     config_files="$ac_config_files"
5248     config_headers="$ac_config_headers"
5249    
5250     _ACEOF
5251    
5252     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5253     ac_cs_usage="\
5254     \`$as_me' instantiates files and other configuration actions
5255     from templates according to the current configuration. Unless the files
5256     and actions are specified as TAGs, all are instantiated by default.
5257    
5258     Usage: $0 [OPTION]... [TAG]...
5259    
5260     -h, --help print this help, then exit
5261     -V, --version print version number and configuration settings, then exit
5262     -q, --quiet, --silent
5263     do not print progress messages
5264     -d, --debug don't remove temporary files
5265     --recheck update $as_me by reconfiguring in the same conditions
5266     --file=FILE[:TEMPLATE]
5267     instantiate the configuration file FILE
5268     --header=FILE[:TEMPLATE]
5269     instantiate the configuration header FILE
5270    
5271     Configuration files:
5272     $config_files
5273    
5274     Configuration headers:
5275     $config_headers
5276    
5277     Report bugs to the package provider."
5278    
5279     _ACEOF
5280     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5281     ac_cs_version="\\
5282     config.status
5283     configured by $0, generated by GNU Autoconf 2.64,
5284     with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5285    
5286     Copyright (C) 2009 Free Software Foundation, Inc.
5287     This config.status script is free software; the Free Software Foundation
5288     gives unlimited permission to copy, distribute and modify it."
5289    
5290     ac_pwd='$ac_pwd'
5291     srcdir='$srcdir'
5292     test -n "\$AWK" || AWK=awk
5293     _ACEOF
5294    
5295     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5296     # The default lists apply if the user does not specify any file.
5297     ac_need_defaults=:
5298     while test $# != 0
5299 root 1.1 do
5300 root 1.2 case $1 in
5301     --*=*)
5302     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5303     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5304     ac_shift=:
5305     ;;
5306     *)
5307     ac_option=$1
5308     ac_optarg=$2
5309     ac_shift=shift
5310     ;;
5311     esac
5312    
5313     case $ac_option in
5314     # Handling of the options.
5315 root 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5316 root 1.2 ac_cs_recheck=: ;;
5317     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5318     $as_echo "$ac_cs_version"; exit ;;
5319     --debug | --debu | --deb | --de | --d | -d )
5320     debug=: ;;
5321     --file | --fil | --fi | --f )
5322     $ac_shift
5323     case $ac_optarg in
5324     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5325     esac
5326     as_fn_append CONFIG_FILES " '$ac_optarg'"
5327     ac_need_defaults=false;;
5328     --header | --heade | --head | --hea )
5329     $ac_shift
5330     case $ac_optarg in
5331     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5332     esac
5333     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5334     ac_need_defaults=false;;
5335     --he | --h)
5336     # Conflict between --help and --header
5337     as_fn_error "ambiguous option: \`$1'
5338     Try \`$0 --help' for more information.";;
5339     --help | --hel | -h )
5340     $as_echo "$ac_cs_usage"; exit ;;
5341     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5342     | -silent | --silent | --silen | --sile | --sil | --si | --s)
5343     ac_cs_silent=: ;;
5344    
5345     # This is an error.
5346     -*) as_fn_error "unrecognized option: \`$1'
5347     Try \`$0 --help' for more information." ;;
5348    
5349     *) as_fn_append ac_config_targets " $1"
5350     ac_need_defaults=false ;;
5351    
5352     esac
5353     shift
5354     done
5355    
5356     ac_configure_extra_args=
5357    
5358     if $ac_cs_silent; then
5359     exec 6>/dev/null
5360     ac_configure_extra_args="$ac_configure_extra_args --silent"
5361     fi
5362    
5363     _ACEOF
5364     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5365     if \$ac_cs_recheck; then
5366     set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5367     shift
5368     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5369     CONFIG_SHELL='$SHELL'
5370     export CONFIG_SHELL
5371     exec "\$@"
5372     fi
5373    
5374     _ACEOF
5375     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5376     exec 5>>config.log
5377     {
5378     echo
5379     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5380     ## Running $as_me. ##
5381     _ASBOX
5382     $as_echo "$ac_log"
5383     } >&5
5384    
5385     _ACEOF
5386     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5387     _ACEOF
5388    
5389     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5390    
5391     # Handling of arguments.
5392     for ac_config_target in $ac_config_targets
5393     do
5394     case $ac_config_target in
5395     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5396     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5397     "../config.pl") CONFIG_FILES="$CONFIG_FILES ../config.pl" ;;
5398    
5399     *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5400 root 1.1 esac
5401     done
5402    
5403    
5404 root 1.2 # If the user did not use the arguments to specify the items to instantiate,
5405     # then the envvar interface is used. Set only those that are not.
5406     # We use the long form for the default assignment because of an extremely
5407     # bizarre bug on SunOS 4.1.3.
5408     if $ac_need_defaults; then
5409     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5410     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5411     fi
5412    
5413     # Have a temporary directory for convenience. Make it in the build tree
5414     # simply because there is no reason against having it here, and in addition,
5415     # creating and moving files from /tmp can sometimes cause problems.
5416     # Hook for its removal unless debugging.
5417     # Note that there is a small window in which the directory will not be cleaned:
5418     # after its creation but before its name has been assigned to `$tmp'.
5419     $debug ||
5420     {
5421     tmp=
5422     trap 'exit_status=$?
5423     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5424     ' 0
5425     trap 'as_fn_exit 1' 1 2 13 15
5426     }
5427     # Create a (secure) tmp directory for tmp files.
5428    
5429     {
5430     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5431     test -n "$tmp" && test -d "$tmp"
5432     } ||
5433     {
5434     tmp=./conf$$-$RANDOM
5435     (umask 077 && mkdir "$tmp")
5436     } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5437    
5438     # Set up the scripts for CONFIG_FILES section.
5439     # No need to generate them if there are no CONFIG_FILES.
5440     # This happens for instance with `./config.status config.h'.
5441     if test -n "$CONFIG_FILES"; then
5442    
5443    
5444     ac_cr=`echo X | tr X '\015'`
5445     # On cygwin, bash can eat \r inside `` if the user requested igncr.
5446     # But we know of no other shell where ac_cr would be empty at this
5447     # point, so we can use a bashism as a fallback.
5448     if test "x$ac_cr" = x; then
5449     eval ac_cr=\$\'\\r\'
5450     fi
5451     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5452     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5453     ac_cs_awk_cr='\r'
5454     else
5455     ac_cs_awk_cr=$ac_cr
5456     fi
5457    
5458     echo 'BEGIN {' >"$tmp/subs1.awk" &&
5459     _ACEOF
5460    
5461    
5462     {
5463     echo "cat >conf$$subs.awk <<_ACEOF" &&
5464     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5465     echo "_ACEOF"
5466     } >conf$$subs.sh ||
5467     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5468     ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5469     ac_delim='%!_!# '
5470     for ac_last_try in false false false false false :; do
5471     . ./conf$$subs.sh ||
5472     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5473    
5474     ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5475     if test $ac_delim_n = $ac_delim_num; then
5476     break
5477     elif $ac_last_try; then
5478     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5479 root 1.1 else
5480 root 1.2 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5481 root 1.1 fi
5482 root 1.2 done
5483     rm -f conf$$subs.sh
5484    
5485     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5486     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5487     _ACEOF
5488     sed -n '
5489     h
5490     s/^/S["/; s/!.*/"]=/
5491     p
5492     g
5493     s/^[^!]*!//
5494     :repl
5495     t repl
5496     s/'"$ac_delim"'$//
5497     t delim
5498     :nl
5499     h
5500     s/\(.\{148\}\).*/\1/
5501     t more1
5502     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5503     p
5504     n
5505     b repl
5506     :more1
5507     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5508     p
5509     g
5510     s/.\{148\}//
5511     t nl
5512     :delim
5513     h
5514     s/\(.\{148\}\).*/\1/
5515     t more2
5516     s/["\\]/\\&/g; s/^/"/; s/$/"/
5517     p
5518     b
5519     :more2
5520     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5521     p
5522     g
5523     s/.\{148\}//
5524     t delim
5525     ' <conf$$subs.awk | sed '
5526     /^[^""]/{
5527     N
5528     s/\n//
5529     }
5530     ' >>$CONFIG_STATUS || ac_write_fail=1
5531     rm -f conf$$subs.awk
5532     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5533     _ACAWK
5534     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5535     for (key in S) S_is_set[key] = 1
5536     FS = ""
5537    
5538     }
5539     {
5540     line = $ 0
5541     nfields = split(line, field, "@")
5542     substed = 0
5543     len = length(field[1])
5544     for (i = 2; i < nfields; i++) {
5545     key = field[i]
5546     keylen = length(key)
5547     if (S_is_set[key]) {
5548     value = S[key]
5549     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5550     len += length(value) + length(field[++i])
5551     substed = 1
5552     } else
5553     len += 1 + keylen
5554     }
5555 root 1.1
5556 root 1.2 print line
5557     }
5558 root 1.1
5559 root 1.2 _ACAWK
5560     _ACEOF
5561     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5562     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5563     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5564     else
5565     cat
5566     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5567     || as_fn_error "could not setup config files machinery" "$LINENO" 5
5568     _ACEOF
5569    
5570     # VPATH may cause trouble with some makes, so we remove $(srcdir),
5571     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5572     # trailing colons and then remove the whole line if VPATH becomes empty
5573     # (actually we leave an empty line to preserve line numbers).
5574     if test "x$srcdir" = x.; then
5575     ac_vpsub='/^[ ]*VPATH[ ]*=/{
5576     s/:*\$(srcdir):*/:/
5577     s/:*\${srcdir}:*/:/
5578     s/:*@srcdir@:*/:/
5579     s/^\([^=]*=[ ]*\):*/\1/
5580     s/:*$//
5581     s/^[^=]*=[ ]*$//
5582     }'
5583     fi
5584    
5585     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5586     fi # test -n "$CONFIG_FILES"
5587    
5588     # Set up the scripts for CONFIG_HEADERS section.
5589     # No need to generate them if there are no CONFIG_HEADERS.
5590     # This happens for instance with `./config.status Makefile'.
5591     if test -n "$CONFIG_HEADERS"; then
5592     cat >"$tmp/defines.awk" <<\_ACAWK ||
5593     BEGIN {
5594     _ACEOF
5595    
5596     # Transform confdefs.h into an awk script `defines.awk', embedded as
5597     # here-document in config.status, that substitutes the proper values into
5598     # config.h.in to produce config.h.
5599    
5600     # Create a delimiter string that does not exist in confdefs.h, to ease
5601     # handling of long lines.
5602     ac_delim='%!_!# '
5603     for ac_last_try in false false :; do
5604     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5605     if test -z "$ac_t"; then
5606     break
5607     elif $ac_last_try; then
5608     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5609 root 1.1 else
5610 root 1.2 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5611 root 1.1 fi
5612 root 1.2 done
5613    
5614     # For the awk script, D is an array of macro values keyed by name,
5615     # likewise P contains macro parameters if any. Preserve backslash
5616     # newline sequences.
5617    
5618     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5619     sed -n '
5620     s/.\{148\}/&'"$ac_delim"'/g
5621     t rset
5622     :rset
5623     s/^[ ]*#[ ]*define[ ][ ]*/ /
5624     t def
5625     d
5626     :def
5627     s/\\$//
5628     t bsnl
5629     s/["\\]/\\&/g
5630     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5631     D["\1"]=" \3"/p
5632     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5633     d
5634     :bsnl
5635     s/["\\]/\\&/g
5636     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5637     D["\1"]=" \3\\\\\\n"\\/p
5638     t cont
5639     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5640     t cont
5641     d
5642     :cont
5643     n
5644     s/.\{148\}/&'"$ac_delim"'/g
5645     t clear
5646     :clear
5647     s/\\$//
5648     t bsnlc
5649     s/["\\]/\\&/g; s/^/"/; s/$/"/p
5650     d
5651     :bsnlc
5652     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5653     b cont
5654     ' <confdefs.h | sed '
5655     s/'"$ac_delim"'/"\\\
5656     "/g' >>$CONFIG_STATUS || ac_write_fail=1
5657    
5658     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5659     for (key in D) D_is_set[key] = 1
5660     FS = ""
5661     }
5662     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5663     line = \$ 0
5664     split(line, arg, " ")
5665     if (arg[1] == "#") {
5666     defundef = arg[2]
5667     mac1 = arg[3]
5668     } else {
5669     defundef = substr(arg[1], 2)
5670     mac1 = arg[2]
5671     }
5672     split(mac1, mac2, "(") #)
5673     macro = mac2[1]
5674     prefix = substr(line, 1, index(line, defundef) - 1)
5675     if (D_is_set[macro]) {
5676     # Preserve the white space surrounding the "#".
5677     print prefix "define", macro P[macro] D[macro]
5678     next
5679     } else {
5680     # Replace #undef with comments. This is necessary, for example,
5681     # in the case of _POSIX_SOURCE, which is predefined and required
5682     # on some systems where configure will not decide to define it.
5683     if (defundef == "undef") {
5684     print "/*", prefix defundef, macro, "*/"
5685     next
5686     }
5687     }
5688     }
5689     { print }
5690     _ACAWK
5691     _ACEOF
5692     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5693     as_fn_error "could not setup config headers machinery" "$LINENO" 5
5694     fi # test -n "$CONFIG_HEADERS"
5695    
5696 root 1.1
5697 root 1.2 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5698     shift
5699     for ac_tag
5700     do
5701     case $ac_tag in
5702     :[FHLC]) ac_mode=$ac_tag; continue;;
5703     esac
5704     case $ac_mode$ac_tag in
5705     :[FHL]*:*);;
5706     :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5707     :[FH]-) ac_tag=-:-;;
5708     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5709 root 1.1 esac
5710 root 1.2 ac_save_IFS=$IFS
5711     IFS=:
5712     set x $ac_tag
5713     IFS=$ac_save_IFS
5714     shift
5715     ac_file=$1
5716     shift
5717 root 1.1
5718 root 1.2 case $ac_mode in
5719     :L) ac_source=$1;;
5720     :[FH])
5721     ac_file_inputs=
5722     for ac_f
5723     do
5724     case $ac_f in
5725     -) ac_f="$tmp/stdin";;
5726     *) # Look for the file first in the build tree, then in the source tree
5727     # (if the path is not absolute). The absolute path cannot be DOS-style,
5728     # because $ac_f cannot contain `:'.
5729     test -f "$ac_f" ||
5730     case $ac_f in
5731     [\\/$]*) false;;
5732     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5733     esac ||
5734     as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5735     esac
5736     case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5737     as_fn_append ac_file_inputs " '$ac_f'"
5738     done
5739    
5740     # Let's still pretend it is `configure' which instantiates (i.e., don't
5741     # use $as_me), people would be surprised to read:
5742     # /* config.h. Generated by config.status. */
5743     configure_input='Generated from '`
5744     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5745     `' by configure.'
5746     if test x"$ac_file" != x-; then
5747     configure_input="$ac_file. $configure_input"
5748     { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5749     $as_echo "$as_me: creating $ac_file" >&6;}
5750     fi
5751     # Neutralize special characters interpreted by sed in replacement strings.
5752     case $configure_input in #(
5753     *\&* | *\|* | *\\* )
5754     ac_sed_conf_input=`$as_echo "$configure_input" |
5755     sed 's/[\\\\&|]/\\\\&/g'`;; #(
5756     *) ac_sed_conf_input=$configure_input;;
5757     esac
5758 root 1.1
5759 root 1.2 case $ac_tag in
5760     *:-:* | *:-) cat >"$tmp/stdin" \
5761     || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5762     esac
5763     ;;
5764 root 1.1 esac
5765    
5766 root 1.2 ac_dir=`$as_dirname -- "$ac_file" ||
5767     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5768     X"$ac_file" : 'X\(//\)[^/]' \| \
5769     X"$ac_file" : 'X\(//\)$' \| \
5770     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5771     $as_echo X"$ac_file" |
5772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5773     s//\1/
5774     q
5775     }
5776     /^X\(\/\/\)[^/].*/{
5777     s//\1/
5778     q
5779     }
5780     /^X\(\/\/\)$/{
5781     s//\1/
5782     q
5783     }
5784     /^X\(\/\).*/{
5785     s//\1/
5786     q
5787     }
5788     s/.*/./; q'`
5789     as_dir="$ac_dir"; as_fn_mkdir_p
5790     ac_builddir=.
5791    
5792     case "$ac_dir" in
5793     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5794     *)
5795     ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5796     # A ".." for each directory in $ac_dir_suffix.
5797     ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5798     case $ac_top_builddir_sub in
5799     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5800     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5801     esac ;;
5802     esac
5803     ac_abs_top_builddir=$ac_pwd
5804     ac_abs_builddir=$ac_pwd$ac_dir_suffix
5805     # for backward compatibility:
5806     ac_top_builddir=$ac_top_build_prefix
5807    
5808     case $srcdir in
5809     .) # We are building in place.
5810     ac_srcdir=.
5811     ac_top_srcdir=$ac_top_builddir_sub
5812     ac_abs_top_srcdir=$ac_pwd ;;
5813     [\\/]* | ?:[\\/]* ) # Absolute name.
5814     ac_srcdir=$srcdir$ac_dir_suffix;
5815     ac_top_srcdir=$srcdir
5816     ac_abs_top_srcdir=$srcdir ;;
5817     *) # Relative name.
5818     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5819     ac_top_srcdir=$ac_top_build_prefix$srcdir
5820     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5821     esac
5822     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5823 root 1.1
5824    
5825 root 1.2 case $ac_mode in
5826     :F)
5827     #
5828     # CONFIG_FILE
5829     #
5830    
5831     _ACEOF
5832    
5833     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5834     # If the template does not know about datarootdir, expand it.
5835     # FIXME: This hack should be removed a few years after 2.60.
5836     ac_datarootdir_hack=; ac_datarootdir_seen=
5837     ac_sed_dataroot='
5838     /datarootdir/ {
5839     p
5840     q
5841     }
5842     /@datadir@/p
5843     /@docdir@/p
5844     /@infodir@/p
5845     /@localedir@/p
5846     /@mandir@/p'
5847     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5848     *datarootdir*) ac_datarootdir_seen=yes;;
5849     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5851     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5852     _ACEOF
5853     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5854     ac_datarootdir_hack='
5855     s&@datadir@&$datadir&g
5856     s&@docdir@&$docdir&g
5857     s&@infodir@&$infodir&g
5858     s&@localedir@&$localedir&g
5859     s&@mandir@&$mandir&g
5860     s&\\\${datarootdir}&$datarootdir&g' ;;
5861     esac
5862     _ACEOF
5863 root 1.1
5864 root 1.2 # Neutralize VPATH when `$srcdir' = `.'.
5865     # Shell code in configure.ac might set extrasub.
5866     # FIXME: do we really want to maintain this feature?
5867     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5868     ac_sed_extra="$ac_vpsub
5869     $extrasub
5870     _ACEOF
5871     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5872     :t
5873     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5874     s|@configure_input@|$ac_sed_conf_input|;t t
5875     s&@top_builddir@&$ac_top_builddir_sub&;t t
5876     s&@top_build_prefix@&$ac_top_build_prefix&;t t
5877     s&@srcdir@&$ac_srcdir&;t t
5878     s&@abs_srcdir@&$ac_abs_srcdir&;t t
5879     s&@top_srcdir@&$ac_top_srcdir&;t t
5880     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5881     s&@builddir@&$ac_builddir&;t t
5882     s&@abs_builddir@&$ac_abs_builddir&;t t
5883     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5884     $ac_datarootdir_hack
5885     "
5886     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5887     || as_fn_error "could not create $ac_file" "$LINENO" 5
5888    
5889     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5890     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5891     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5893     which seems to be undefined. Please make sure it is defined." >&5
5894     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5895     which seems to be undefined. Please make sure it is defined." >&2;}
5896    
5897     rm -f "$tmp/stdin"
5898     case $ac_file in
5899     -) cat "$tmp/out" && rm -f "$tmp/out";;
5900     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5901     esac \
5902     || as_fn_error "could not create $ac_file" "$LINENO" 5
5903     ;;
5904     :H)
5905     #
5906     # CONFIG_HEADER
5907     #
5908     if test x"$ac_file" != x-; then
5909     {
5910     $as_echo "/* $configure_input */" \
5911     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5912     } >"$tmp/config.h" \
5913     || as_fn_error "could not create $ac_file" "$LINENO" 5
5914     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5915     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5916     $as_echo "$as_me: $ac_file is unchanged" >&6;}
5917     else
5918     rm -f "$ac_file"
5919     mv "$tmp/config.h" "$ac_file" \
5920     || as_fn_error "could not create $ac_file" "$LINENO" 5
5921     fi
5922 root 1.1 else
5923 root 1.2 $as_echo "/* $configure_input */" \
5924     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5925     || as_fn_error "could not create -" "$LINENO" 5
5926 root 1.1 fi
5927 root 1.2 ;;
5928    
5929 root 1.1
5930 root 1.2 esac
5931    
5932     done # for ac_tag
5933 root 1.1
5934 root 1.2
5935     as_fn_exit 0
5936     _ACEOF
5937     ac_clean_files=$ac_clean_files_save
5938    
5939     test $ac_write_fail = 0 ||
5940     as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5941    
5942    
5943     # configure is writing to config.log, and then calls config.status.
5944     # config.status does its own redirection, appending to config.log.
5945     # Unfortunately, on DOS this fails, as config.log is still kept open
5946     # by configure, so config.status won't be able to write to it; its
5947     # output is simply discarded. So we exec the FD to /dev/null,
5948     # effectively closing config.log, so it can be properly (re)opened and
5949     # appended to by config.status. When coming back to configure, we
5950     # need to make the FD available again.
5951     if test "$no_create" != yes; then
5952     ac_cs_success=:
5953     ac_config_status_args=
5954     test "$silent" = yes &&
5955     ac_config_status_args="$ac_config_status_args --quiet"
5956     exec 5>/dev/null
5957     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5958     exec 5>>config.log
5959     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5960     # would make configure fail if this is the last instruction.
5961     $ac_cs_success || as_fn_exit $?
5962     fi
5963     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5965     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5966     fi
5967 root 1.1
5968