Initial Import
[profile/ivi/alsa-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
564
565 ac_unique_file="aplay/aplay.c"
566 ac_default_prefix=/usr
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 ASOUND_STATE_DIR
608 HAVE_SYSTEMD_FALSE
609 HAVE_SYSTEMD_TRUE
610 systemdsystemunitdir
611 PKG_CONFIG
612 LIBRT
613 SND_UTIL_SUBMINOR
614 SND_UTIL_MINOR
615 SND_UTIL_MAJOR
616 SND_UTIL_VERSION
617 TESTSOUND
618 CURSES_CFLAGS
619 CURSESLIB
620 CURSESINC
621 ncurses5_config
622 ncursesw5_config
623 EGREP
624 GREP
625 CPP
626 udevrulesdir
627 USE_XMLTO_FALSE
628 USE_XMLTO_TRUE
629 xmlto
630 ALSALOOP_FALSE
631 ALSALOOP_TRUE
632 ALSACONF_FALSE
633 ALSACONF_TRUE
634 ALSAMIXER_FALSE
635 ALSAMIXER_TRUE
636 HAVE_SAMPLERATE_FALSE
637 HAVE_SAMPLERATE_TRUE
638 HAVE_SEQ_FALSE
639 HAVE_SEQ_TRUE
640 HAVE_RAWMIDI_FALSE
641 HAVE_RAWMIDI_TRUE
642 HAVE_MIXER_FALSE
643 HAVE_MIXER_TRUE
644 HAVE_PCM_FALSE
645 HAVE_PCM_TRUE
646 ALSA_LIBS
647 ALSA_CFLAGS
648 SED
649 LN_S
650 POSUB
651 LTLIBINTL
652 LIBINTL
653 INTLLIBS
654 LTLIBICONV
655 LIBICONV
656 INTL_MACOSX_LIBS
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 MSGMERGE
682 XGETTEXT_015
683 XGETTEXT
684 GMSGFMT_015
685 MSGFMT_015
686 GMSGFMT
687 MSGFMT
688 USE_NLS
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_nls
754 enable_dependency_tracking
755 with_gnu_ld
756 enable_rpath
757 with_libiconv_prefix
758 with_libintl_prefix
759 with_alsa_prefix
760 with_alsa_inc_prefix
761 enable_alsatest
762 with_librt
763 enable_alsamixer
764 enable_alsaconf
765 enable_alsaloop
766 enable_xmlto
767 with_udev_rules_dir
768 with_curses
769 with_testsound
770 enable_largefile
771 with_systemdsystemunitdir
772 with_asound_state_dir
773 '
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 PKG_CONFIG'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838   # If the previous option needs an argument, assign it.
839   if test -n "$ac_prev"; then
840     eval $ac_prev=\$ac_option
841     ac_prev=
842     continue
843   fi
844
845   case $ac_option in
846   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847   *=)   ac_optarg= ;;
848   *)    ac_optarg=yes ;;
849   esac
850
851   # Accept the important Cygnus configure options, so we can diagnose typos.
852
853   case $ac_dashdash$ac_option in
854   --)
855     ac_dashdash=yes ;;
856
857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
858     ac_prev=bindir ;;
859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860     bindir=$ac_optarg ;;
861
862   -build | --build | --buil | --bui | --bu)
863     ac_prev=build_alias ;;
864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865     build_alias=$ac_optarg ;;
866
867   -cache-file | --cache-file | --cache-fil | --cache-fi \
868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869     ac_prev=cache_file ;;
870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872     cache_file=$ac_optarg ;;
873
874   --config-cache | -C)
875     cache_file=config.cache ;;
876
877   -datadir | --datadir | --datadi | --datad)
878     ac_prev=datadir ;;
879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
880     datadir=$ac_optarg ;;
881
882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883   | --dataroo | --dataro | --datar)
884     ac_prev=datarootdir ;;
885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887     datarootdir=$ac_optarg ;;
888
889   -disable-* | --disable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error $? "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=no ;;
904
905   -docdir | --docdir | --docdi | --doc | --do)
906     ac_prev=docdir ;;
907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908     docdir=$ac_optarg ;;
909
910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911     ac_prev=dvidir ;;
912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913     dvidir=$ac_optarg ;;
914
915   -enable-* | --enable-*)
916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919       as_fn_error $? "invalid feature name: $ac_useropt"
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=\$ac_optarg ;;
1134
1135   -without-* | --without-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error $? "invalid package name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval with_$ac_useropt=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1171     ;;
1172
1173   *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176     case $ac_envvar in #(
1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
1178       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179     esac
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200   case $enable_option_checking in
1201     no) ;;
1202     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204   esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   # Remove trailing slashes.
1215   case $ac_val in
1216     */ )
1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218       eval $ac_var=\$ac_val;;
1219   esac
1220   # Be sure to have absolute directory names.
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used" >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures this package to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking ...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 Program names:
1384   --program-prefix=PREFIX            prepend PREFIX to installed program names
1385   --program-suffix=SUFFIX            append SUFFIX to installed program names
1386   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395
1396   cat <<\_ACEOF
1397
1398 Optional Features:
1399   --disable-option-checking  ignore unrecognized --enable/--with options
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --disable-nls           do not use Native Language Support
1403   --disable-dependency-tracking  speeds up one-time build
1404   --enable-dependency-tracking   do not reject slow dependency extractors
1405   --disable-rpath         do not hardcode runtime library paths
1406   --disable-alsatest      Do not try to compile and run a test Alsa program
1407   --disable-alsamixer     Disable alsamixer compilation
1408   --disable-alsaconf      Disable alsaconf packaging
1409   --disable-alsaloop      Disable alsaloop packaging
1410   --disable-xmlto         Disable man page creation via xmlto
1411   --disable-largefile     omit support for large files
1412
1413 Optional Packages:
1414   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1417   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1418   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1419   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1420   --without-libintl-prefix     don't search for libintl in includedir and libdir
1421   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1422   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1423   --with-librt            Use librt for monotonic clock (default = yes)
1424   --with-udev-rules-dir   Directory where to install udev rules to (defaults
1425                           to /lib/udev/rules.d)
1426   --with-curses libname   Specify the curses library to use (default=auto)
1427   --with-testsound=file        give the path of test sound file for alsaconf
1428   --with-systemdsystemunitdir=DIR
1429                           Directory for systemd service files
1430   --with-asound-state-dir=DIR
1431                           Directory to place asound.state file in
1432
1433 Some influential environment variables:
1434   CC          C compiler command
1435   CFLAGS      C compiler flags
1436   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1437               nonstandard directory <lib dir>
1438   LIBS        libraries to pass to the linker, e.g. -l<library>
1439   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440               you have headers in a nonstandard directory <include dir>
1441   CPP         C preprocessor
1442   PKG_CONFIG  path to pkg-config utility
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to the package provider.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453   # If there are subdirs, report their specific --help.
1454   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455     test -d "$ac_dir" ||
1456       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457       continue
1458     ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464   # A ".." for each directory in $ac_dir_suffix.
1465   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466   case $ac_top_builddir_sub in
1467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469   esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477   .)  # We are building in place.
1478     ac_srcdir=.
1479     ac_top_srcdir=$ac_top_builddir_sub
1480     ac_abs_top_srcdir=$ac_pwd ;;
1481   [\\/]* | ?:[\\/]* )  # Absolute name.
1482     ac_srcdir=$srcdir$ac_dir_suffix;
1483     ac_top_srcdir=$srcdir
1484     ac_abs_top_srcdir=$srcdir ;;
1485   *) # Relative name.
1486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487     ac_top_srcdir=$ac_top_build_prefix$srcdir
1488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492     cd "$ac_dir" || { ac_status=$?; continue; }
1493     # Check for guested configure.
1494     if test -f "$ac_srcdir/configure.gnu"; then
1495       echo &&
1496       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497     elif test -f "$ac_srcdir/configure"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure" --help=recursive
1500     else
1501       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502     fi || ac_status=$?
1503     cd "$ac_pwd" || { ac_status=$?; break; }
1504   done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509   cat <<\_ACEOF
1510 configure
1511 generated by GNU Autoconf 2.68
1512
1513 Copyright (C) 2010 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517   exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530   rm -f conftest.$ac_objext
1531   if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534   *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538   (eval "$ac_compile") 2>conftest.err
1539   ac_status=$?
1540   if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544   fi
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; } && {
1547          test -z "$ac_c_werror_flag" ||
1548          test ! -s conftest.err
1549        } && test -s conftest.$ac_objext; then :
1550   ac_retval=0
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555         ac_retval=1
1556 fi
1557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558   as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   rm -f conftest.$ac_objext conftest$ac_exeext
1569   if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_link") 2>conftest.err
1577   ac_status=$?
1578   if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582   fi
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; } && {
1585          test -z "$ac_c_werror_flag" ||
1586          test ! -s conftest.err
1587        } && test -s conftest$ac_exeext && {
1588          test "$cross_compiling" = yes ||
1589          $as_test_x conftest$ac_exeext
1590        }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596         ac_retval=1
1597 fi
1598   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600   # interfere with the next link command; also delete a directory that is
1601   # left behind by Apple's compiler.  We do this before executing the actions.
1602   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604   as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_func LINENO FUNC VAR
1609 # ----------------------------------
1610 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1611 ac_fn_c_check_func ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617   $as_echo_n "(cached) " >&6
1618 else
1619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h.  */
1621 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1623 #define $2 innocuous_$2
1624
1625 /* System header to define __stub macros and hopefully few prototypes,
1626     which can conflict with char $2 (); below.
1627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1628     <limits.h> exists even on freestanding compilers.  */
1629
1630 #ifdef __STDC__
1631 # include <limits.h>
1632 #else
1633 # include <assert.h>
1634 #endif
1635
1636 #undef $2
1637
1638 /* Override any GCC internal prototype to avoid an error.
1639    Use char because int might match the return type of a GCC
1640    builtin and then its argument prototype would still apply.  */
1641 #ifdef __cplusplus
1642 extern "C"
1643 #endif
1644 char $2 ();
1645 /* The GNU C library defines this for functions which it implements
1646     to always fail with ENOSYS.  Some functions are actually named
1647     something starting with __ and the normal name is an alias.  */
1648 #if defined __stub_$2 || defined __stub___$2
1649 choke me
1650 #endif
1651
1652 int
1653 main ()
1654 {
1655 return $2 ();
1656   ;
1657   return 0;
1658 }
1659 _ACEOF
1660 if ac_fn_c_try_link "$LINENO"; then :
1661   eval "$3=yes"
1662 else
1663   eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext \
1666     conftest$ac_exeext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_func
1674
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685   $as_echo_n "(cached) " >&6
1686 else
1687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h.  */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693   eval "$3=yes"
1694 else
1695   eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } > conftest.i && {
1728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        }; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736     ac_retval=1
1737 fi
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739   as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_cpp
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750   if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_link") 2>&5
1758   ac_status=$?
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761   { { case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_try") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; }; }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: program exited with status $ac_status" >&5
1774        $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777        ac_retval=$ac_status
1778 fi
1779   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if eval \${$3+:} false; then :
1794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797   $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803   # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   ac_header_compiler=yes
1813 else
1814   ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828   ac_header_preproc=yes
1829 else
1830   ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So?  What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838   yes:no: )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843     ;;
1844   no:yes:* )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855     ;;
1856 esac
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   eval "$3=\$ac_header_compiler"
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 fi
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_header_mongrel
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1874
1875 It was created by $as_me, which was
1876 generated by GNU Autoconf 2.68.  Invocation command line was
1877
1878   $ $0 $@
1879
1880 _ACEOF
1881 exec 5>>config.log
1882 {
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1887
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1896
1897 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1898 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1901 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1902 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1903 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1904
1905 _ASUNAME
1906
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912     $as_echo "PATH: $as_dir"
1913   done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939   for ac_arg
1940   do
1941     case $ac_arg in
1942     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944     | -silent | --silent | --silen | --sile | --sil)
1945       continue ;;
1946     *\'*)
1947       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948     esac
1949     case $ac_pass in
1950     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951     2)
1952       as_fn_append ac_configure_args1 " '$ac_arg'"
1953       if test $ac_must_keep_next = true; then
1954         ac_must_keep_next=false # Got value, back to normal.
1955       else
1956         case $ac_arg in
1957           *=* | --config-cache | -C | -disable-* | --disable-* \
1958           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960           | -with-* | --with-* | -without-* | --without-* | --x)
1961             case "$ac_configure_args0 " in
1962               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963             esac
1964             ;;
1965           -* ) ac_must_keep_next=true ;;
1966         esac
1967       fi
1968       as_fn_append ac_configure_args " '$ac_arg'"
1969       ;;
1970     esac
1971   done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log.  We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982   # Save into config.log some information that might help in debugging.
1983   {
1984     echo
1985
1986     $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989     echo
1990     # The following way of writing the cache mishandles newlines in values,
1991 (
1992   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993     eval ac_val=\$$ac_var
1994     case $ac_val in #(
1995     *${as_nl}*)
1996       case $ac_var in #(
1997       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999       esac
2000       case $ac_var in #(
2001       _ | IFS | as_nl) ;; #(
2002       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003       *) { eval $ac_var=; unset $ac_var;} ;;
2004       esac ;;
2005     esac
2006   done
2007   (set) 2>&1 |
2008     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009     *${as_nl}ac_space=\ *)
2010       sed -n \
2011         "s/'\''/'\''\\\\'\'''\''/g;
2012           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013       ;; #(
2014     *)
2015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016       ;;
2017     esac |
2018     sort
2019 )
2020     echo
2021
2022     $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025     echo
2026     for ac_var in $ac_subst_vars
2027     do
2028       eval ac_val=\$$ac_var
2029       case $ac_val in
2030       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031       esac
2032       $as_echo "$ac_var='\''$ac_val'\''"
2033     done | sort
2034     echo
2035
2036     if test -n "$ac_subst_files"; then
2037       $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040       echo
2041       for ac_var in $ac_subst_files
2042       do
2043         eval ac_val=\$$ac_var
2044         case $ac_val in
2045         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046         esac
2047         $as_echo "$ac_var='\''$ac_val'\''"
2048       done | sort
2049       echo
2050     fi
2051
2052     if test -s confdefs.h; then
2053       $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056       echo
2057       cat confdefs.h
2058       echo
2059     fi
2060     test "$ac_signal" != 0 &&
2061       $as_echo "$as_me: caught signal $ac_signal"
2062     $as_echo "$as_me: exit $exit_status"
2063   } >&5
2064   rm -f core *.core core.conftest.* &&
2065     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066     exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 $as_echo "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110   # We do not want a PATH search for config.site.
2111   case $CONFIG_SITE in #((
2112     -*)  ac_site_file1=./$CONFIG_SITE;;
2113     */*) ac_site_file1=$CONFIG_SITE;;
2114     *)   ac_site_file1=./$CONFIG_SITE;;
2115   esac
2116 elif test "x$prefix" != xNONE; then
2117   ac_site_file1=$prefix/share/config.site
2118   ac_site_file2=$prefix/etc/config.site
2119 else
2120   ac_site_file1=$ac_default_prefix/share/config.site
2121   ac_site_file2=$ac_default_prefix/etc/config.site
2122 fi
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 do
2125   test "x$ac_site_file" = xNONE && continue
2126   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129     sed 's/^/| /' "$ac_site_file" >&5
2130     . "$ac_site_file" \
2131       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2135   fi
2136 done
2137
2138 if test -r "$cache_file"; then
2139   # Some versions of bash will fail to source /dev/null (special files
2140   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2141   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144     case $cache_file in
2145       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146       *)                      . "./$cache_file";;
2147     esac
2148   fi
2149 else
2150   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152   >$cache_file
2153 fi
2154
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160   eval ac_new_set=\$ac_env_${ac_var}_set
2161   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162   eval ac_new_val=\$ac_env_${ac_var}_value
2163   case $ac_old_set,$ac_new_set in
2164     set,)
2165       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167       ac_cache_corrupted=: ;;
2168     ,set)
2169       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171       ac_cache_corrupted=: ;;
2172     ,);;
2173     *)
2174       if test "x$ac_old_val" != "x$ac_new_val"; then
2175         # differences in whitespace do not lead to failure.
2176         ac_old_val_w=`echo x $ac_old_val`
2177         ac_new_val_w=`echo x $ac_new_val`
2178         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181           ac_cache_corrupted=:
2182         else
2183           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185           eval $ac_var=\$ac_old_val
2186         fi
2187         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2188 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2189         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2191       fi;;
2192   esac
2193   # Pass precious variables to config.status.
2194   if test "$ac_new_set" = set; then
2195     case $ac_new_val in
2196     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197     *) ac_arg=$ac_var=$ac_new_val ;;
2198     esac
2199     case " $ac_configure_args " in
2200       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2201       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202     esac
2203   fi
2204 done
2205 if $ac_cache_corrupted; then
2206   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 fi
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2215
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224 am__api_version='1.11'
2225
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228   if test -f "$ac_dir/install-sh"; then
2229     ac_aux_dir=$ac_dir
2230     ac_install_sh="$ac_aux_dir/install-sh -c"
2231     break
2232   elif test -f "$ac_dir/install.sh"; then
2233     ac_aux_dir=$ac_dir
2234     ac_install_sh="$ac_aux_dir/install.sh -c"
2235     break
2236   elif test -f "$ac_dir/shtool"; then
2237     ac_aux_dir=$ac_dir
2238     ac_install_sh="$ac_aux_dir/shtool install -c"
2239     break
2240   fi
2241 done
2242 if test -z "$ac_aux_dir"; then
2243   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2244 fi
2245
2246 # These three variables are undocumented and unsupported,
2247 # and are intended to be withdrawn in a future Autoconf release.
2248 # They can cause serious problems if a builder's source tree is in a directory
2249 # whose full name contains unusual characters.
2250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2252 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2253
2254
2255 # Find a good install program.  We prefer a C program (faster),
2256 # so one script is as good as another.  But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2261 # AIX /bin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 # Reject install programs that cannot install multiple files.
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if ${ac_cv_path_install+:} false; then :
2273   $as_echo_n "(cached) " >&6
2274 else
2275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280     # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in #((
2282   ./ | .// | /[cC]/* | \
2283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2285   /usr/ucb/* ) ;;
2286   *)
2287     # OSF1 and SCO ODT 3.0 have their own names for install.
2288     # Don't use installbsd from OSF since it installs stuff as root
2289     # by default.
2290     for ac_prog in ginstall scoinst install; do
2291       for ac_exec_ext in '' $ac_executable_extensions; do
2292         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293           if test $ac_prog = install &&
2294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295             # AIX install.  It has an incompatible calling convention.
2296             :
2297           elif test $ac_prog = install &&
2298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299             # program-specific install script used by HP pwplus--don't use.
2300             :
2301           else
2302             rm -rf conftest.one conftest.two conftest.dir
2303             echo one > conftest.one
2304             echo two > conftest.two
2305             mkdir conftest.dir
2306             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2307               test -s conftest.one && test -s conftest.two &&
2308               test -s conftest.dir/conftest.one &&
2309               test -s conftest.dir/conftest.two
2310             then
2311               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2312               break 3
2313             fi
2314           fi
2315         fi
2316       done
2317     done
2318     ;;
2319 esac
2320
2321   done
2322 IFS=$as_save_IFS
2323
2324 rm -rf conftest.one conftest.two conftest.dir
2325
2326 fi
2327   if test "${ac_cv_path_install+set}" = set; then
2328     INSTALL=$ac_cv_path_install
2329   else
2330     # As a last resort, use the slow shell script.  Don't cache a
2331     # value for INSTALL within a source directory, because that will
2332     # break other packages using the cache if that directory is
2333     # removed, or if the value is a relative name.
2334     INSTALL=$ac_install_sh
2335   fi
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2338 $as_echo "$INSTALL" >&6; }
2339
2340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341 # It thinks the first close brace ends the variable substitution.
2342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343
2344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345
2346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2349 $as_echo_n "checking whether build environment is sane... " >&6; }
2350 # Just in case
2351 sleep 1
2352 echo timestamp > conftest.file
2353 # Reject unsafe characters in $srcdir or the absolute working directory
2354 # name.  Accept space and tab only in the latter.
2355 am_lf='
2356 '
2357 case `pwd` in
2358   *[\\\"\#\$\&\'\`$am_lf]*)
2359     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2360 esac
2361 case $srcdir in
2362   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2363     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2364 esac
2365
2366 # Do `set' in a subshell so we don't clobber the current shell's
2367 # arguments.  Must try -L first in case configure is actually a
2368 # symlink; some systems play weird games with the mod time of symlinks
2369 # (eg FreeBSD returns the mod time of the symlink's containing
2370 # directory).
2371 if (
2372    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2373    if test "$*" = "X"; then
2374       # -L didn't work.
2375       set X `ls -t "$srcdir/configure" conftest.file`
2376    fi
2377    rm -f conftest.file
2378    if test "$*" != "X $srcdir/configure conftest.file" \
2379       && test "$*" != "X conftest.file $srcdir/configure"; then
2380
2381       # If neither matched, then we have a broken ls.  This can happen
2382       # if, for instance, CONFIG_SHELL is bash and it inherits a
2383       # broken ls alias from the environment.  This has actually
2384       # happened.  Such a system could not be considered "sane".
2385       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2386 alias in your environment" "$LINENO" 5
2387    fi
2388
2389    test "$2" = conftest.file
2390    )
2391 then
2392    # Ok.
2393    :
2394 else
2395    as_fn_error $? "newly created file is older than distributed files!
2396 Check your system clock" "$LINENO" 5
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2409
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2412
2413 if test x"${MISSING+set}" != xset; then
2414   case $am_aux_dir in
2415   *\ * | *\     *)
2416     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2417   *)
2418     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419   esac
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --run true"; then
2423   am_missing_run="$MISSING --run "
2424 else
2425   am_missing_run=
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2428 fi
2429
2430 if test x"${install_sh}" != xset; then
2431   case $am_aux_dir in
2432   *\ * | *\     *)
2433     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434   *)
2435     install_sh="\${SHELL} $am_aux_dir/install-sh"
2436   esac
2437 fi
2438
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'.  However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_STRIP+:} false; then :
2450   $as_echo_n "(cached) " >&6
2451 else
2452   if test -n "$STRIP"; then
2453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460     for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467   done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484   ac_ct_STRIP=$STRIP
2485   # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   if test -n "$ac_ct_STRIP"; then
2493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500     for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_ac_ct_STRIP="strip"
2503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507   done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521   if test "x$ac_ct_STRIP" = x; then
2522     STRIP=":"
2523   else
2524     case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530     STRIP=$ac_ct_STRIP
2531   fi
2532 else
2533   STRIP="$ac_cv_prog_STRIP"
2534 fi
2535
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542   if ${ac_cv_path_mkdir+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     for ac_prog in mkdir gmkdir; do
2551          for ac_exec_ext in '' $ac_executable_extensions; do
2552            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2553            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554              'mkdir (GNU coreutils) '* | \
2555              'mkdir (coreutils) '* | \
2556              'mkdir (fileutils) '4.1*)
2557                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558                break 3;;
2559            esac
2560          done
2561        done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566
2567   test -d ./--version && rmdir ./--version
2568   if test "${ac_cv_path_mkdir+set}" = set; then
2569     MKDIR_P="$ac_cv_path_mkdir -p"
2570   else
2571     # As a last resort, use the slow shell script.  Don't cache a
2572     # value for MKDIR_P within a source directory, because that will
2573     # break other packages using the cache if that directory is
2574     # removed, or if the value is a relative name.
2575     MKDIR_P="$ac_install_sh -d"
2576   fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2580
2581 mkdir_p="$MKDIR_P"
2582 case $mkdir_p in
2583   [\\/$]* | ?:[\\/]*) ;;
2584   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2585 esac
2586
2587 for ac_prog in gawk mawk nawk awk
2588 do
2589   # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_AWK+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$AWK"; then
2597   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604     for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_AWK="$ac_prog"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 AWK=$ac_cv_prog_AWK
2617 if test -n "$AWK"; then
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2620 else
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626   test -n "$AWK" && break
2627 done
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2631 set x ${MAKE-make}
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   cat >conftest.make <<\_ACEOF
2637 SHELL = /bin/sh
2638 all:
2639         @echo '@@@%%%=$(MAKE)=@@@%%%'
2640 _ACEOF
2641 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2643   *@@@%%%=?*=@@@%%%*)
2644     eval ac_cv_prog_make_${ac_make}_set=yes;;
2645   *)
2646     eval ac_cv_prog_make_${ac_make}_set=no;;
2647 esac
2648 rm -f conftest.make
2649 fi
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653   SET_MAKE=
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657   SET_MAKE="MAKE=${MAKE-make}"
2658 fi
2659
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2663   am__leading_dot=.
2664 else
2665   am__leading_dot=_
2666 fi
2667 rmdir .tst 2>/dev/null
2668
2669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671   # is not polluted with repeated "-I."
2672   am__isrc=' -I$(srcdir)'
2673   # test to see if srcdir already configured
2674   if test -f $srcdir/config.status; then
2675     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2676   fi
2677 fi
2678
2679 # test whether we have cygpath
2680 if test -z "$CYGPATH_W"; then
2681   if (cygpath --version) >/dev/null 2>/dev/null; then
2682     CYGPATH_W='cygpath -w'
2683   else
2684     CYGPATH_W=echo
2685   fi
2686 fi
2687
2688
2689 # Define the identity of the package.
2690  PACKAGE=alsa-utils
2691  VERSION=1.0.25
2692
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE "$PACKAGE"
2696 _ACEOF
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define VERSION "$VERSION"
2701 _ACEOF
2702
2703 # Some tools Automake needs.
2704
2705 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2706
2707
2708 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2709
2710
2711 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2712
2713
2714 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2715
2716
2717 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2718
2719 # We need awk for the "check" target.  The system "awk" is bad on
2720 # some platforms.
2721 # Always define AMTAR for backward compatibility.
2722
2723 AMTAR=${AMTAR-"${am_missing_run}tar"}
2724
2725 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2726
2727
2728
2729
2730
2731
2732
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2734 $as_echo_n "checking whether NLS is requested... " >&6; }
2735     # Check whether --enable-nls was given.
2736 if test "${enable_nls+set}" = set; then :
2737   enableval=$enable_nls; USE_NLS=$enableval
2738 else
2739   USE_NLS=yes
2740 fi
2741
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2743 $as_echo "$USE_NLS" >&6; }
2744
2745
2746
2747
2748
2749
2750 # Prepare PATH_SEPARATOR.
2751 # The user is always right.
2752 if test "${PATH_SEPARATOR+set}" != set; then
2753   echo "#! /bin/sh" >conf$$.sh
2754   echo  "exit 0"   >>conf$$.sh
2755   chmod +x conf$$.sh
2756   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2757     PATH_SEPARATOR=';'
2758   else
2759     PATH_SEPARATOR=:
2760   fi
2761   rm -f conf$$.sh
2762 fi
2763
2764 # Find out how to test for executable files. Don't use a zero-byte file,
2765 # as systems may use methods other than mode bits to determine executability.
2766 cat >conf$$.file <<_ASEOF
2767 #! /bin/sh
2768 exit 0
2769 _ASEOF
2770 chmod +x conf$$.file
2771 if test -x conf$$.file >/dev/null 2>&1; then
2772   ac_executable_p="test -x"
2773 else
2774   ac_executable_p="test -f"
2775 fi
2776 rm -f conf$$.file
2777
2778 # Extract the first word of "msgfmt", so it can be a program name with args.
2779 set dummy msgfmt; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_path_MSGFMT+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   case "$MSGFMT" in
2786   [\\/]* | ?:[\\/]*)
2787     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2788     ;;
2789   *)
2790     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2791     for ac_dir in $PATH; do
2792       IFS="$ac_save_IFS"
2793       test -z "$ac_dir" && ac_dir=.
2794       for ac_exec_ext in '' $ac_executable_extensions; do
2795         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2796           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2797           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2798      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2799             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2800             break 2
2801           fi
2802         fi
2803       done
2804     done
2805     IFS="$ac_save_IFS"
2806   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2807     ;;
2808 esac
2809 fi
2810 MSGFMT="$ac_cv_path_MSGFMT"
2811 if test "$MSGFMT" != ":"; then
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2813 $as_echo "$MSGFMT" >&6; }
2814 else
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2820 set dummy gmsgfmt; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_path_GMSGFMT+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   case $GMSGFMT in
2827   [\\/]* | ?:[\\/]*)
2828   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2829   ;;
2830   *)
2831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2847   ;;
2848 esac
2849 fi
2850 GMSGFMT=$ac_cv_path_GMSGFMT
2851 if test -n "$GMSGFMT"; then
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2853 $as_echo "$GMSGFMT" >&6; }
2854 else
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859
2860
2861     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2862     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2863     *) MSGFMT_015=$MSGFMT ;;
2864   esac
2865
2866   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2867     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2868     *) GMSGFMT_015=$GMSGFMT ;;
2869   esac
2870
2871
2872
2873 # Prepare PATH_SEPARATOR.
2874 # The user is always right.
2875 if test "${PATH_SEPARATOR+set}" != set; then
2876   echo "#! /bin/sh" >conf$$.sh
2877   echo  "exit 0"   >>conf$$.sh
2878   chmod +x conf$$.sh
2879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2880     PATH_SEPARATOR=';'
2881   else
2882     PATH_SEPARATOR=:
2883   fi
2884   rm -f conf$$.sh
2885 fi
2886
2887 # Find out how to test for executable files. Don't use a zero-byte file,
2888 # as systems may use methods other than mode bits to determine executability.
2889 cat >conf$$.file <<_ASEOF
2890 #! /bin/sh
2891 exit 0
2892 _ASEOF
2893 chmod +x conf$$.file
2894 if test -x conf$$.file >/dev/null 2>&1; then
2895   ac_executable_p="test -x"
2896 else
2897   ac_executable_p="test -f"
2898 fi
2899 rm -f conf$$.file
2900
2901 # Extract the first word of "xgettext", so it can be a program name with args.
2902 set dummy xgettext; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_path_XGETTEXT+:} false; then :
2906   $as_echo_n "(cached) " >&6
2907 else
2908   case "$XGETTEXT" in
2909   [\\/]* | ?:[\\/]*)
2910     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2911     ;;
2912   *)
2913     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2914     for ac_dir in $PATH; do
2915       IFS="$ac_save_IFS"
2916       test -z "$ac_dir" && ac_dir=.
2917       for ac_exec_ext in '' $ac_executable_extensions; do
2918         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2919           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2920           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2921      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2922             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2923             break 2
2924           fi
2925         fi
2926       done
2927     done
2928     IFS="$ac_save_IFS"
2929   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2930     ;;
2931 esac
2932 fi
2933 XGETTEXT="$ac_cv_path_XGETTEXT"
2934 if test "$XGETTEXT" != ":"; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2936 $as_echo "$XGETTEXT" >&6; }
2937 else
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942     rm -f messages.po
2943
2944     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2945     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2946     *) XGETTEXT_015=$XGETTEXT ;;
2947   esac
2948
2949
2950
2951 # Prepare PATH_SEPARATOR.
2952 # The user is always right.
2953 if test "${PATH_SEPARATOR+set}" != set; then
2954   echo "#! /bin/sh" >conf$$.sh
2955   echo  "exit 0"   >>conf$$.sh
2956   chmod +x conf$$.sh
2957   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2958     PATH_SEPARATOR=';'
2959   else
2960     PATH_SEPARATOR=:
2961   fi
2962   rm -f conf$$.sh
2963 fi
2964
2965 # Find out how to test for executable files. Don't use a zero-byte file,
2966 # as systems may use methods other than mode bits to determine executability.
2967 cat >conf$$.file <<_ASEOF
2968 #! /bin/sh
2969 exit 0
2970 _ASEOF
2971 chmod +x conf$$.file
2972 if test -x conf$$.file >/dev/null 2>&1; then
2973   ac_executable_p="test -x"
2974 else
2975   ac_executable_p="test -f"
2976 fi
2977 rm -f conf$$.file
2978
2979 # Extract the first word of "msgmerge", so it can be a program name with args.
2980 set dummy msgmerge; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_path_MSGMERGE+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   case "$MSGMERGE" in
2987   [\\/]* | ?:[\\/]*)
2988     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2989     ;;
2990   *)
2991     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2992     for ac_dir in $PATH; do
2993       IFS="$ac_save_IFS"
2994       test -z "$ac_dir" && ac_dir=.
2995       for ac_exec_ext in '' $ac_executable_extensions; do
2996         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2997           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2998           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2999             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3000             break 2
3001           fi
3002         fi
3003       done
3004     done
3005     IFS="$ac_save_IFS"
3006   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3007     ;;
3008 esac
3009 fi
3010 MSGMERGE="$ac_cv_path_MSGMERGE"
3011 if test "$MSGMERGE" != ":"; then
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3013 $as_echo "$MSGMERGE" >&6; }
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020         test -n "$localedir" || localedir='${datadir}/locale'
3021
3022
3023   ac_config_commands="$ac_config_commands po-directories"
3024
3025
3026
3027       if test "X$prefix" = "XNONE"; then
3028     acl_final_prefix="$ac_default_prefix"
3029   else
3030     acl_final_prefix="$prefix"
3031   fi
3032   if test "X$exec_prefix" = "XNONE"; then
3033     acl_final_exec_prefix='${prefix}'
3034   else
3035     acl_final_exec_prefix="$exec_prefix"
3036   fi
3037   acl_save_prefix="$prefix"
3038   prefix="$acl_final_prefix"
3039   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3040   prefix="$acl_save_prefix"
3041
3042 DEPDIR="${am__leading_dot}deps"
3043
3044 ac_config_commands="$ac_config_commands depfiles"
3045
3046
3047 am_make=${MAKE-make}
3048 cat > confinc << 'END'
3049 am__doit:
3050         @echo this is the am__doit target
3051 .PHONY: am__doit
3052 END
3053 # If we don't find an include directive, just comment out the code.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3055 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3056 am__include="#"
3057 am__quote=
3058 _am_result=none
3059 # First try GNU make style include.
3060 echo "include confinc" > confmf
3061 # Ignore all kinds of additional output from `make'.
3062 case `$am_make -s -f confmf 2> /dev/null` in #(
3063 *the\ am__doit\ target*)
3064   am__include=include
3065   am__quote=
3066   _am_result=GNU
3067   ;;
3068 esac
3069 # Now try BSD make style include.
3070 if test "$am__include" = "#"; then
3071    echo '.include "confinc"' > confmf
3072    case `$am_make -s -f confmf 2> /dev/null` in #(
3073    *the\ am__doit\ target*)
3074      am__include=.include
3075      am__quote="\""
3076      _am_result=BSD
3077      ;;
3078    esac
3079 fi
3080
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3083 $as_echo "$_am_result" >&6; }
3084 rm -f confinc confmf
3085
3086 # Check whether --enable-dependency-tracking was given.
3087 if test "${enable_dependency_tracking+set}" = set; then :
3088   enableval=$enable_dependency_tracking;
3089 fi
3090
3091 if test "x$enable_dependency_tracking" != xno; then
3092   am_depcomp="$ac_aux_dir/depcomp"
3093   AMDEPBACKSLASH='\'
3094 fi
3095  if test "x$enable_dependency_tracking" != xno; then
3096   AMDEP_TRUE=
3097   AMDEP_FALSE='#'
3098 else
3099   AMDEP_TRUE='#'
3100   AMDEP_FALSE=
3101 fi
3102
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 if test -n "$ac_tool_prefix"; then
3110   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$CC"; then
3118   ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$ac_cv_prog_CC"; then
3149   ac_ct_CC=$CC
3150   # Extract the first word of "gcc", so it can be a program name with args.
3151 set dummy gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$ac_ct_CC"; then
3158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_ac_ct_CC="gcc"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     CC=$ac_ct_CC
3196   fi
3197 else
3198   CC="$ac_cv_prog_CC"
3199 fi
3200
3201 if test -z "$CC"; then
3202           if test -n "$ac_tool_prefix"; then
3203     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}cc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_CC+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$CC"; then
3211   ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218     for ac_exec_ext in '' $ac_executable_extensions; do
3219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220     ac_cv_prog_CC="${ac_tool_prefix}cc"
3221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225   done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240   fi
3241 fi
3242 if test -z "$CC"; then
3243   # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_CC+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253   ac_prog_rejected=no
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262        ac_prog_rejected=yes
3263        continue
3264      fi
3265     ac_cv_prog_CC="cc"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273 if test $ac_prog_rejected = yes; then
3274   # We found a bogon in the path, so make sure we never use it.
3275   set dummy $ac_cv_prog_CC
3276   shift
3277   if test $# != 0; then
3278     # We chose a different compiler from the bogus one.
3279     # However, it has the same basename, so the bogon will be chosen
3280     # first if we set CC to just the basename; use the full file name.
3281     shift
3282     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3283   fi
3284 fi
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$CC"; then
3299   if test -n "$ac_tool_prefix"; then
3300   for ac_prog in cl.exe
3301   do
3302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   if test -n "$CC"; then
3310   ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317     for ac_exec_ext in '' $ac_executable_extensions; do
3318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324   done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339     test -n "$CC" && break
3340   done
3341 fi
3342 if test -z "$CC"; then
3343   ac_ct_CC=$CC
3344   for ac_prog in cl.exe
3345 do
3346   # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   if test -n "$ac_ct_CC"; then
3354   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361     for ac_exec_ext in '' $ac_executable_extensions; do
3362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363     ac_cv_prog_ac_ct_CC="$ac_prog"
3364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368   done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3377 else
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383   test -n "$ac_ct_CC" && break
3384 done
3385
3386   if test "x$ac_ct_CC" = x; then
3387     CC=""
3388   else
3389     case $cross_compiling:$ac_tool_warned in
3390 yes:)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned=yes ;;
3394 esac
3395     CC=$ac_ct_CC
3396   fi
3397 fi
3398
3399 fi
3400
3401
3402 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "no acceptable C compiler found in \$PATH
3405 See \`config.log' for more details" "$LINENO" 5; }
3406
3407 # Provide some information about the compiler.
3408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3409 set X $ac_compile
3410 ac_compiler=$2
3411 for ac_option in --version -v -V -qversion; do
3412   { { ac_try="$ac_compiler $ac_option >&5"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3420   ac_status=$?
3421   if test -s conftest.err; then
3422     sed '10a\
3423 ... rest of stderr output deleted ...
3424          10q' conftest.err >conftest.er1
3425     cat conftest.er1 >&5
3426   fi
3427   rm -f conftest.er1 conftest.err
3428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429   test $ac_status = 0; }
3430 done
3431
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 ac_clean_files_save=$ac_clean_files
3444 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445 # Try to create an executable without -o first, disregard a.out.
3446 # It will help us diagnose broken compilers, and finding out an intuition
3447 # of exeext.
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3449 $as_echo_n "checking whether the C compiler works... " >&6; }
3450 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452 # The possible output files:
3453 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455 ac_rmfiles=
3456 for ac_file in $ac_files
3457 do
3458   case $ac_file in
3459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461   esac
3462 done
3463 rm -f $ac_rmfiles
3464
3465 if { { ac_try="$ac_link_default"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_link_default") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475   test $ac_status = 0; }; then :
3476   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3479 # so that the user can short-circuit this test for compilers unknown to
3480 # Autoconf.
3481 for ac_file in $ac_files ''
3482 do
3483   test -f "$ac_file" || continue
3484   case $ac_file in
3485     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486         ;;
3487     [ab].out )
3488         # We found the default executable, but exeext='' is most
3489         # certainly right.
3490         break;;
3491     *.* )
3492         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493         then :; else
3494            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495         fi
3496         # We set ac_cv_exeext here because the later test for it is not
3497         # safe: cross compilers may not add the suffix if given an `-o'
3498         # argument, so we may need to know it at that point already.
3499         # Even if this section looks crufty: it has the advantage of
3500         # actually working.
3501         break;;
3502     * )
3503         break;;
3504   esac
3505 done
3506 test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
3508 else
3509   ac_file=''
3510 fi
3511 if test -z "$ac_file"; then :
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error 77 "C compiler cannot create executables
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3523 $as_echo "yes" >&6; }
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3526 $as_echo_n "checking for C compiler default output file name... " >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3528 $as_echo "$ac_file" >&6; }
3529 ac_exeext=$ac_cv_exeext
3530
3531 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3532 ac_clean_files=$ac_clean_files_save
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3534 $as_echo_n "checking for suffix of executables... " >&6; }
3535 if { { ac_try="$ac_link"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542   (eval "$ac_link") 2>&5
3543   ac_status=$?
3544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545   test $ac_status = 0; }; then :
3546   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3547 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3548 # work properly (i.e., refer to `conftest.exe'), while it won't with
3549 # `rm'.
3550 for ac_file in conftest.exe conftest conftest.*; do
3551   test -f "$ac_file" || continue
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3554     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555           break;;
3556     * ) break;;
3557   esac
3558 done
3559 else
3560   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3563 See \`config.log' for more details" "$LINENO" 5; }
3564 fi
3565 rm -f conftest conftest$ac_cv_exeext
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3567 $as_echo "$ac_cv_exeext" >&6; }
3568
3569 rm -f conftest.$ac_ext
3570 EXEEXT=$ac_cv_exeext
3571 ac_exeext=$EXEEXT
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574 #include <stdio.h>
3575 int
3576 main ()
3577 {
3578 FILE *f = fopen ("conftest.out", "w");
3579  return ferror (f) || fclose (f) != 0;
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 ac_clean_files="$ac_clean_files conftest.out"
3586 # Check that the compiler produces executables we can run.  If not, either
3587 # the compiler is broken, or we cross compile.
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3589 $as_echo_n "checking whether we are cross compiling... " >&6; }
3590 if test "$cross_compiling" != yes; then
3591   { { ac_try="$ac_link"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598   (eval "$ac_link") 2>&5
3599   ac_status=$?
3600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601   test $ac_status = 0; }
3602   if { ac_try='./conftest$ac_cv_exeext'
3603   { { case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609   (eval "$ac_try") 2>&5
3610   ac_status=$?
3611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612   test $ac_status = 0; }; }; then
3613     cross_compiling=no
3614   else
3615     if test "$cross_compiling" = maybe; then
3616         cross_compiling=yes
3617     else
3618         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot run C compiled programs.
3621 If you meant to cross compile, use \`--host'.
3622 See \`config.log' for more details" "$LINENO" 5; }
3623     fi
3624   fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3628
3629 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3630 ac_clean_files=$ac_clean_files_save
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3632 $as_echo_n "checking for suffix of object files... " >&6; }
3633 if ${ac_cv_objext+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.o conftest.obj
3648 if { { ac_try="$ac_compile"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655   (eval "$ac_compile") 2>&5
3656   ac_status=$?
3657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658   test $ac_status = 0; }; then :
3659   for ac_file in conftest.o conftest.obj conftest.*; do
3660   test -f "$ac_file" || continue;
3661   case $ac_file in
3662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3664        break;;
3665   esac
3666 done
3667 else
3668   $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot compute suffix of object files: cannot compile
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 fi
3676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3679 $as_echo "$ac_cv_objext" >&6; }
3680 OBJEXT=$ac_cv_objext
3681 ac_objext=$OBJEXT
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3683 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3684 if ${ac_cv_c_compiler_gnu+:} false; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h.  */
3689
3690 int
3691 main ()
3692 {
3693 #ifndef __GNUC__
3694        choke me
3695 #endif
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702   ac_compiler_gnu=yes
3703 else
3704   ac_compiler_gnu=no
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3708
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3711 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3712 if test $ac_compiler_gnu = yes; then
3713   GCC=yes
3714 else
3715   GCC=
3716 fi
3717 ac_test_CFLAGS=${CFLAGS+set}
3718 ac_save_CFLAGS=$CFLAGS
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3720 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3721 if ${ac_cv_prog_cc_g+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   ac_save_c_werror_flag=$ac_c_werror_flag
3725    ac_c_werror_flag=yes
3726    ac_cv_prog_cc_g=no
3727    CFLAGS="-g"
3728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740   ac_cv_prog_cc_g=yes
3741 else
3742   CFLAGS=""
3743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755
3756 else
3757   ac_c_werror_flag=$ac_save_c_werror_flag
3758          CFLAGS="-g"
3759          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771   ac_cv_prog_cc_g=yes
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778    ac_c_werror_flag=$ac_save_c_werror_flag
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3781 $as_echo "$ac_cv_prog_cc_g" >&6; }
3782 if test "$ac_test_CFLAGS" = set; then
3783   CFLAGS=$ac_save_CFLAGS
3784 elif test $ac_cv_prog_cc_g = yes; then
3785   if test "$GCC" = yes; then
3786     CFLAGS="-g -O2"
3787   else
3788     CFLAGS="-g"
3789   fi
3790 else
3791   if test "$GCC" = yes; then
3792     CFLAGS="-O2"
3793   else
3794     CFLAGS=
3795   fi
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3798 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3799 if ${ac_cv_prog_cc_c89+:} false; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   ac_cv_prog_cc_c89=no
3803 ac_save_CC=$CC
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806 #include <stdarg.h>
3807 #include <stdio.h>
3808 #include <sys/types.h>
3809 #include <sys/stat.h>
3810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3811 struct buf { int x; };
3812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3813 static char *e (p, i)
3814      char **p;
3815      int i;
3816 {
3817   return p[i];
3818 }
3819 static char *f (char * (*g) (char **, int), char **p, ...)
3820 {
3821   char *s;
3822   va_list v;
3823   va_start (v,p);
3824   s = g (p, va_arg (v,int));
3825   va_end (v);
3826   return s;
3827 }
3828
3829 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3830    function prototypes and stuff, but not '\xHH' hex character constants.
3831    These don't provoke an error unfortunately, instead are silently treated
3832    as 'x'.  The following induces an error, until -std is added to get
3833    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3834    array size at least.  It's necessary to write '\x00'==0 to get something
3835    that's true only with -std.  */
3836 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3837
3838 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3839    inside strings and character constants.  */
3840 #define FOO(x) 'x'
3841 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3842
3843 int test (int i, double x);
3844 struct s1 {int (*f) (int a);};
3845 struct s2 {int (*f) (double a);};
3846 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3847 int argc;
3848 char **argv;
3849 int
3850 main ()
3851 {
3852 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3858         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3859 do
3860   CC="$ac_save_CC $ac_arg"
3861   if ac_fn_c_try_compile "$LINENO"; then :
3862   ac_cv_prog_cc_c89=$ac_arg
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext
3865   test "x$ac_cv_prog_cc_c89" != "xno" && break
3866 done
3867 rm -f conftest.$ac_ext
3868 CC=$ac_save_CC
3869
3870 fi
3871 # AC_CACHE_VAL
3872 case "x$ac_cv_prog_cc_c89" in
3873   x)
3874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3875 $as_echo "none needed" >&6; } ;;
3876   xno)
3877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3878 $as_echo "unsupported" >&6; } ;;
3879   *)
3880     CC="$CC $ac_cv_prog_cc_c89"
3881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3882 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3883 esac
3884 if test "x$ac_cv_prog_cc_c89" != xno; then :
3885
3886 fi
3887
3888 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894 depcc="$CC"   am_compiler_list=
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897 $as_echo_n "checking dependency style of $depcc... " >&6; }
3898 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3902   # We make a subdir and do the tests there.  Otherwise we can end up
3903   # making bogus files that we don't know about and never remove.  For
3904   # instance it was reported that on HP-UX the gcc test will end up
3905   # making a dummy file named `D' -- because `-MD' means `put the output
3906   # in D'.
3907   mkdir conftest.dir
3908   # Copy depcomp to subdir because otherwise we won't find it if we're
3909   # using a relative directory.
3910   cp "$am_depcomp" conftest.dir
3911   cd conftest.dir
3912   # We will build objects and dependencies in a subdirectory because
3913   # it helps to detect inapplicable dependency modes.  For instance
3914   # both Tru64's cc and ICC support -MD to output dependencies as a
3915   # side effect of compilation, but ICC will put the dependencies in
3916   # the current directory while Tru64 will put them in the object
3917   # directory.
3918   mkdir sub
3919
3920   am_cv_CC_dependencies_compiler_type=none
3921   if test "$am_compiler_list" = ""; then
3922      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3923   fi
3924   am__universal=false
3925   case " $depcc " in #(
3926      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3927      esac
3928
3929   for depmode in $am_compiler_list; do
3930     # Setup a source with many dependencies, because some compilers
3931     # like to wrap large dependency lists on column 80 (with \), and
3932     # we should not choose a depcomp mode which is confused by this.
3933     #
3934     # We need to recreate these files for each test, as the compiler may
3935     # overwrite some of them when testing with obscure command lines.
3936     # This happens at least with the AIX C compiler.
3937     : > sub/conftest.c
3938     for i in 1 2 3 4 5 6; do
3939       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3940       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3941       # Solaris 8's {/usr,}/bin/sh.
3942       touch sub/conftst$i.h
3943     done
3944     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3945
3946     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3947     # mode.  It turns out that the SunPro C++ compiler does not properly
3948     # handle `-M -o', and we need to detect this.  Also, some Intel
3949     # versions had trouble with output in subdirs
3950     am__obj=sub/conftest.${OBJEXT-o}
3951     am__minus_obj="-o $am__obj"
3952     case $depmode in
3953     gcc)
3954       # This depmode causes a compiler race in universal mode.
3955       test "$am__universal" = false || continue
3956       ;;
3957     nosideeffect)
3958       # after this tag, mechanisms are not by side-effect, so they'll
3959       # only be used when explicitly requested
3960       if test "x$enable_dependency_tracking" = xyes; then
3961         continue
3962       else
3963         break
3964       fi
3965       ;;
3966     msvisualcpp | msvcmsys)
3967       # This compiler won't grok `-c -o', but also, the minuso test has
3968       # not run yet.  These depmodes are late enough in the game, and
3969       # so weak that their functioning should not be impacted.
3970       am__obj=conftest.${OBJEXT-o}
3971       am__minus_obj=
3972       ;;
3973     none) break ;;
3974     esac
3975     if depmode=$depmode \
3976        source=sub/conftest.c object=$am__obj \
3977        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3978        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3979          >/dev/null 2>conftest.err &&
3980        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3981        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3982        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3983        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3984       # icc doesn't choke on unknown options, it will just issue warnings
3985       # or remarks (even with -Werror).  So we grep stderr for any message
3986       # that says an option was ignored or not supported.
3987       # When given -MP, icc 7.0 and 7.1 complain thusly:
3988       #   icc: Command line warning: ignoring option '-M'; no argument required
3989       # The diagnosis changed in icc 8.0:
3990       #   icc: Command line remark: option '-MP' not supported
3991       if (grep 'ignoring option' conftest.err ||
3992           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3993         am_cv_CC_dependencies_compiler_type=$depmode
3994         break
3995       fi
3996     fi
3997   done
3998
3999   cd ..
4000   rm -rf conftest.dir
4001 else
4002   am_cv_CC_dependencies_compiler_type=none
4003 fi
4004
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4007 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4008 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4009
4010  if
4011   test "x$enable_dependency_tracking" != xno \
4012   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4013   am__fastdepCC_TRUE=
4014   am__fastdepCC_FALSE='#'
4015 else
4016   am__fastdepCC_TRUE='#'
4017   am__fastdepCC_FALSE=
4018 fi
4019
4020
4021 # Make sure we can run config.sub.
4022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4023   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4026 $as_echo_n "checking build system type... " >&6; }
4027 if ${ac_cv_build+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   ac_build_alias=$build_alias
4031 test "x$ac_build_alias" = x &&
4032   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4033 test "x$ac_build_alias" = x &&
4034   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4036   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4037
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4040 $as_echo "$ac_cv_build" >&6; }
4041 case $ac_cv_build in
4042 *-*-*) ;;
4043 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4044 esac
4045 build=$ac_cv_build
4046 ac_save_IFS=$IFS; IFS='-'
4047 set x $ac_cv_build
4048 shift
4049 build_cpu=$1
4050 build_vendor=$2
4051 shift; shift
4052 # Remember, the first character of IFS is used to create $*,
4053 # except with old shells:
4054 build_os=$*
4055 IFS=$ac_save_IFS
4056 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4057
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4060 $as_echo_n "checking host system type... " >&6; }
4061 if ${ac_cv_host+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   if test "x$host_alias" = x; then
4065   ac_cv_host=$ac_cv_build
4066 else
4067   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4068     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4069 fi
4070
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4073 $as_echo "$ac_cv_host" >&6; }
4074 case $ac_cv_host in
4075 *-*-*) ;;
4076 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4077 esac
4078 host=$ac_cv_host
4079 ac_save_IFS=$IFS; IFS='-'
4080 set x $ac_cv_host
4081 shift
4082 host_cpu=$1
4083 host_vendor=$2
4084 shift; shift
4085 # Remember, the first character of IFS is used to create $*,
4086 # except with old shells:
4087 host_os=$*
4088 IFS=$ac_save_IFS
4089 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4090
4091
4092
4093 # Check whether --with-gnu-ld was given.
4094 if test "${with_gnu_ld+set}" = set; then :
4095   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4096 else
4097   with_gnu_ld=no
4098 fi
4099
4100 # Prepare PATH_SEPARATOR.
4101 # The user is always right.
4102 if test "${PATH_SEPARATOR+set}" != set; then
4103   echo "#! /bin/sh" >conf$$.sh
4104   echo  "exit 0"   >>conf$$.sh
4105   chmod +x conf$$.sh
4106   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4107     PATH_SEPARATOR=';'
4108   else
4109     PATH_SEPARATOR=:
4110   fi
4111   rm -f conf$$.sh
4112 fi
4113 ac_prog=ld
4114 if test "$GCC" = yes; then
4115   # Check if gcc -print-prog-name=ld gives a path.
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4117 $as_echo_n "checking for ld used by GCC... " >&6; }
4118   case $host in
4119   *-*-mingw*)
4120     # gcc leaves a trailing carriage return which upsets mingw
4121     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4122   *)
4123     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4124   esac
4125   case $ac_prog in
4126     # Accept absolute paths.
4127     [\\/]* | [A-Za-z]:[\\/]*)
4128       re_direlt='/[^/][^/]*/\.\./'
4129       # Canonicalize the path of ld
4130       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4131       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4132         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4133       done
4134       test -z "$LD" && LD="$ac_prog"
4135       ;;
4136   "")
4137     # If it fails, then pretend we aren't using GCC.
4138     ac_prog=ld
4139     ;;
4140   *)
4141     # If it is relative, then search for the first ld in PATH.
4142     with_gnu_ld=unknown
4143     ;;
4144   esac
4145 elif test "$with_gnu_ld" = yes; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4147 $as_echo_n "checking for GNU ld... " >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4150 $as_echo_n "checking for non-GNU ld... " >&6; }
4151 fi
4152 if ${acl_cv_path_LD+:} false; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   if test -z "$LD"; then
4156   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4157   for ac_dir in $PATH; do
4158     test -z "$ac_dir" && ac_dir=.
4159     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4160       acl_cv_path_LD="$ac_dir/$ac_prog"
4161       # Check to see if the program is GNU ld.  I'd rather use --version,
4162       # but apparently some GNU ld's only accept -v.
4163       # Break only if it was the GNU/non-GNU ld that we prefer.
4164       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4165       *GNU* | *'with BFD'*)
4166         test "$with_gnu_ld" != no && break ;;
4167       *)
4168         test "$with_gnu_ld" != yes && break ;;
4169       esac
4170     fi
4171   done
4172   IFS="$ac_save_ifs"
4173 else
4174   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4175 fi
4176 fi
4177
4178 LD="$acl_cv_path_LD"
4179 if test -n "$LD"; then
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4181 $as_echo "$LD" >&6; }
4182 else
4183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4188 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4189 if ${acl_cv_prog_gnu_ld+:} false; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195   acl_cv_prog_gnu_ld=yes ;;
4196 *)
4197   acl_cv_prog_gnu_ld=no ;;
4198 esac
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4201 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4202 with_gnu_ld=$acl_cv_prog_gnu_ld
4203
4204
4205
4206
4207                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4208 $as_echo_n "checking for shared library run path origin... " >&6; }
4209 if ${acl_cv_rpath+:} false; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212
4213     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4214     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4215     . ./conftest.sh
4216     rm -f ./conftest.sh
4217     acl_cv_rpath=done
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4221 $as_echo "$acl_cv_rpath" >&6; }
4222   wl="$acl_cv_wl"
4223   libext="$acl_cv_libext"
4224   shlibext="$acl_cv_shlibext"
4225   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4226   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4227   hardcode_direct="$acl_cv_hardcode_direct"
4228   hardcode_minus_L="$acl_cv_hardcode_minus_L"
4229     # Check whether --enable-rpath was given.
4230 if test "${enable_rpath+set}" = set; then :
4231   enableval=$enable_rpath; :
4232 else
4233   enable_rpath=yes
4234 fi
4235
4236
4237
4238                   acl_libdirstem=lib
4239   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4240   if test -n "$searchpath"; then
4241     acl_save_IFS="${IFS=        }"; IFS=":"
4242     for searchdir in $searchpath; do
4243       if test -d "$searchdir"; then
4244         case "$searchdir" in
4245           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4246           *) searchdir=`cd "$searchdir" && pwd`
4247              case "$searchdir" in
4248                */lib64 ) acl_libdirstem=lib64 ;;
4249              esac ;;
4250         esac
4251       fi
4252     done
4253     IFS="$acl_save_IFS"
4254   fi
4255
4256
4257
4258
4259
4260
4261
4262
4263     use_additional=yes
4264
4265   acl_save_prefix="$prefix"
4266   prefix="$acl_final_prefix"
4267   acl_save_exec_prefix="$exec_prefix"
4268   exec_prefix="$acl_final_exec_prefix"
4269
4270     eval additional_includedir=\"$includedir\"
4271     eval additional_libdir=\"$libdir\"
4272
4273   exec_prefix="$acl_save_exec_prefix"
4274   prefix="$acl_save_prefix"
4275
4276
4277 # Check whether --with-libiconv-prefix was given.
4278 if test "${with_libiconv_prefix+set}" = set; then :
4279   withval=$with_libiconv_prefix;
4280     if test "X$withval" = "Xno"; then
4281       use_additional=no
4282     else
4283       if test "X$withval" = "X"; then
4284
4285   acl_save_prefix="$prefix"
4286   prefix="$acl_final_prefix"
4287   acl_save_exec_prefix="$exec_prefix"
4288   exec_prefix="$acl_final_exec_prefix"
4289
4290           eval additional_includedir=\"$includedir\"
4291           eval additional_libdir=\"$libdir\"
4292
4293   exec_prefix="$acl_save_exec_prefix"
4294   prefix="$acl_save_prefix"
4295
4296       else
4297         additional_includedir="$withval/include"
4298         additional_libdir="$withval/$acl_libdirstem"
4299       fi
4300     fi
4301
4302 fi
4303
4304       LIBICONV=
4305   LTLIBICONV=
4306   INCICONV=
4307   rpathdirs=
4308   ltrpathdirs=
4309   names_already_handled=
4310   names_next_round='iconv '
4311   while test -n "$names_next_round"; do
4312     names_this_round="$names_next_round"
4313     names_next_round=
4314     for name in $names_this_round; do
4315       already_handled=
4316       for n in $names_already_handled; do
4317         if test "$n" = "$name"; then
4318           already_handled=yes
4319           break
4320         fi
4321       done
4322       if test -z "$already_handled"; then
4323         names_already_handled="$names_already_handled $name"
4324                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4325         eval value=\"\$HAVE_LIB$uppername\"
4326         if test -n "$value"; then
4327           if test "$value" = yes; then
4328             eval value=\"\$LIB$uppername\"
4329             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4330             eval value=\"\$LTLIB$uppername\"
4331             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4332           else
4333                                     :
4334           fi
4335         else
4336                               found_dir=
4337           found_la=
4338           found_so=
4339           found_a=
4340           if test $use_additional = yes; then
4341             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4342               found_dir="$additional_libdir"
4343               found_so="$additional_libdir/lib$name.$shlibext"
4344               if test -f "$additional_libdir/lib$name.la"; then
4345                 found_la="$additional_libdir/lib$name.la"
4346               fi
4347             else
4348               if test -f "$additional_libdir/lib$name.$libext"; then
4349                 found_dir="$additional_libdir"
4350                 found_a="$additional_libdir/lib$name.$libext"
4351                 if test -f "$additional_libdir/lib$name.la"; then
4352                   found_la="$additional_libdir/lib$name.la"
4353                 fi
4354               fi
4355             fi
4356           fi
4357           if test "X$found_dir" = "X"; then
4358             for x in $LDFLAGS $LTLIBICONV; do
4359
4360   acl_save_prefix="$prefix"
4361   prefix="$acl_final_prefix"
4362   acl_save_exec_prefix="$exec_prefix"
4363   exec_prefix="$acl_final_exec_prefix"
4364   eval x=\"$x\"
4365   exec_prefix="$acl_save_exec_prefix"
4366   prefix="$acl_save_prefix"
4367
4368               case "$x" in
4369                 -L*)
4370                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4371                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4372                     found_dir="$dir"
4373                     found_so="$dir/lib$name.$shlibext"
4374                     if test -f "$dir/lib$name.la"; then
4375                       found_la="$dir/lib$name.la"
4376                     fi
4377                   else
4378                     if test -f "$dir/lib$name.$libext"; then
4379                       found_dir="$dir"
4380                       found_a="$dir/lib$name.$libext"
4381                       if test -f "$dir/lib$name.la"; then
4382                         found_la="$dir/lib$name.la"
4383                       fi
4384                     fi
4385                   fi
4386                   ;;
4387               esac
4388               if test "X$found_dir" != "X"; then
4389                 break
4390               fi
4391             done
4392           fi
4393           if test "X$found_dir" != "X"; then
4394                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4395             if test "X$found_so" != "X"; then
4396                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4397                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4398               else
4399                                                                                 haveit=
4400                 for x in $ltrpathdirs; do
4401                   if test "X$x" = "X$found_dir"; then
4402                     haveit=yes
4403                     break
4404                   fi
4405                 done
4406                 if test -z "$haveit"; then
4407                   ltrpathdirs="$ltrpathdirs $found_dir"
4408                 fi
4409                                 if test "$hardcode_direct" = yes; then
4410                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4411                 else
4412                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4413                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4414                                                             haveit=
4415                     for x in $rpathdirs; do
4416                       if test "X$x" = "X$found_dir"; then
4417                         haveit=yes
4418                         break
4419                       fi
4420                     done
4421                     if test -z "$haveit"; then
4422                       rpathdirs="$rpathdirs $found_dir"
4423                     fi
4424                   else
4425                                                                                 haveit=
4426                     for x in $LDFLAGS $LIBICONV; do
4427
4428   acl_save_prefix="$prefix"
4429   prefix="$acl_final_prefix"
4430   acl_save_exec_prefix="$exec_prefix"
4431   exec_prefix="$acl_final_exec_prefix"
4432   eval x=\"$x\"
4433   exec_prefix="$acl_save_exec_prefix"
4434   prefix="$acl_save_prefix"
4435
4436                       if test "X$x" = "X-L$found_dir"; then
4437                         haveit=yes
4438                         break
4439                       fi
4440                     done
4441                     if test -z "$haveit"; then
4442                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4443                     fi
4444                     if test "$hardcode_minus_L" != no; then
4445                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4446                     else
4447                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4448                     fi
4449                   fi
4450                 fi
4451               fi
4452             else
4453               if test "X$found_a" != "X"; then
4454                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4455               else
4456                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4457               fi
4458             fi
4459                         additional_includedir=
4460             case "$found_dir" in
4461               */$acl_libdirstem | */$acl_libdirstem/)
4462                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4463                 additional_includedir="$basedir/include"
4464                 ;;
4465             esac
4466             if test "X$additional_includedir" != "X"; then
4467                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4468                 haveit=
4469                 if test "X$additional_includedir" = "X/usr/local/include"; then
4470                   if test -n "$GCC"; then
4471                     case $host_os in
4472                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4473                     esac
4474                   fi
4475                 fi
4476                 if test -z "$haveit"; then
4477                   for x in $CPPFLAGS $INCICONV; do
4478
4479   acl_save_prefix="$prefix"
4480   prefix="$acl_final_prefix"
4481   acl_save_exec_prefix="$exec_prefix"
4482   exec_prefix="$acl_final_exec_prefix"
4483   eval x=\"$x\"
4484   exec_prefix="$acl_save_exec_prefix"
4485   prefix="$acl_save_prefix"
4486
4487                     if test "X$x" = "X-I$additional_includedir"; then
4488                       haveit=yes
4489                       break
4490                     fi
4491                   done
4492                   if test -z "$haveit"; then
4493                     if test -d "$additional_includedir"; then
4494                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4495                     fi
4496                   fi
4497                 fi
4498               fi
4499             fi
4500                         if test -n "$found_la"; then
4501                                                         save_libdir="$libdir"
4502               case "$found_la" in
4503                 */* | *\\*) . "$found_la" ;;
4504                 *) . "./$found_la" ;;
4505               esac
4506               libdir="$save_libdir"
4507                             for dep in $dependency_libs; do
4508                 case "$dep" in
4509                   -L*)
4510                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4511                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4512                       haveit=
4513                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4514                         if test -n "$GCC"; then
4515                           case $host_os in
4516                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4517                           esac
4518                         fi
4519                       fi
4520                       if test -z "$haveit"; then
4521                         haveit=
4522                         for x in $LDFLAGS $LIBICONV; do
4523
4524   acl_save_prefix="$prefix"
4525   prefix="$acl_final_prefix"
4526   acl_save_exec_prefix="$exec_prefix"
4527   exec_prefix="$acl_final_exec_prefix"
4528   eval x=\"$x\"
4529   exec_prefix="$acl_save_exec_prefix"
4530   prefix="$acl_save_prefix"
4531
4532                           if test "X$x" = "X-L$additional_libdir"; then
4533                             haveit=yes
4534                             break
4535                           fi
4536                         done
4537                         if test -z "$haveit"; then
4538                           if test -d "$additional_libdir"; then
4539                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4540                           fi
4541                         fi
4542                         haveit=
4543                         for x in $LDFLAGS $LTLIBICONV; do
4544
4545   acl_save_prefix="$prefix"
4546   prefix="$acl_final_prefix"
4547   acl_save_exec_prefix="$exec_prefix"
4548   exec_prefix="$acl_final_exec_prefix"
4549   eval x=\"$x\"
4550   exec_prefix="$acl_save_exec_prefix"
4551   prefix="$acl_save_prefix"
4552
4553                           if test "X$x" = "X-L$additional_libdir"; then
4554                             haveit=yes
4555                             break
4556                           fi
4557                         done
4558                         if test -z "$haveit"; then
4559                           if test -d "$additional_libdir"; then
4560                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4561                           fi
4562                         fi
4563                       fi
4564                     fi
4565                     ;;
4566                   -R*)
4567                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4568                     if test "$enable_rpath" != no; then
4569                                                                   haveit=
4570                       for x in $rpathdirs; do
4571                         if test "X$x" = "X$dir"; then
4572                           haveit=yes
4573                           break
4574                         fi
4575                       done
4576                       if test -z "$haveit"; then
4577                         rpathdirs="$rpathdirs $dir"
4578                       fi
4579                                                                   haveit=
4580                       for x in $ltrpathdirs; do
4581                         if test "X$x" = "X$dir"; then
4582                           haveit=yes
4583                           break
4584                         fi
4585                       done
4586                       if test -z "$haveit"; then
4587                         ltrpathdirs="$ltrpathdirs $dir"
4588                       fi
4589                     fi
4590                     ;;
4591                   -l*)
4592                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4593                     ;;
4594                   *.la)
4595                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4596                     ;;
4597                   *)
4598                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4599                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4600                     ;;
4601                 esac
4602               done
4603             fi
4604           else
4605                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4606             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4607           fi
4608         fi
4609       fi
4610     done
4611   done
4612   if test "X$rpathdirs" != "X"; then
4613     if test -n "$hardcode_libdir_separator"; then
4614                         alldirs=
4615       for found_dir in $rpathdirs; do
4616         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4617       done
4618             acl_save_libdir="$libdir"
4619       libdir="$alldirs"
4620       eval flag=\"$hardcode_libdir_flag_spec\"
4621       libdir="$acl_save_libdir"
4622       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4623     else
4624             for found_dir in $rpathdirs; do
4625         acl_save_libdir="$libdir"
4626         libdir="$found_dir"
4627         eval flag=\"$hardcode_libdir_flag_spec\"
4628         libdir="$acl_save_libdir"
4629         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4630       done
4631     fi
4632   fi
4633   if test "X$ltrpathdirs" != "X"; then
4634             for found_dir in $ltrpathdirs; do
4635       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4636     done
4637   fi
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
4658 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
4659 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   gt_save_LIBS="$LIBS"
4663      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4664      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <CoreFoundation/CFPreferences.h>
4667 int
4668 main ()
4669 {
4670 CFPreferencesCopyAppValue(NULL, NULL)
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_link "$LINENO"; then :
4676   gt_cv_func_CFPreferencesCopyAppValue=yes
4677 else
4678   gt_cv_func_CFPreferencesCopyAppValue=no
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext \
4681     conftest$ac_exeext conftest.$ac_ext
4682      LIBS="$gt_save_LIBS"
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4685 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4686   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4687
4688 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
4689
4690   fi
4691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
4692 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
4693 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   gt_save_LIBS="$LIBS"
4697      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4698      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #include <CoreFoundation/CFLocale.h>
4701 int
4702 main ()
4703 {
4704 CFLocaleCopyCurrent();
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_link "$LINENO"; then :
4710   gt_cv_func_CFLocaleCopyCurrent=yes
4711 else
4712   gt_cv_func_CFLocaleCopyCurrent=no
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext \
4715     conftest$ac_exeext conftest.$ac_ext
4716      LIBS="$gt_save_LIBS"
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4719 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4720   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4721
4722 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
4723
4724   fi
4725   INTL_MACOSX_LIBS=
4726   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4727     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4728   fi
4729
4730
4731
4732
4733
4734
4735   LIBINTL=
4736   LTLIBINTL=
4737   POSUB=
4738
4739     if test "$USE_NLS" = "yes"; then
4740     gt_use_preinstalled_gnugettext=no
4741
4742
4743
4744
4745
4746
4747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4748 $as_echo_n "checking for GNU gettext in libc... " >&6; }
4749 if ${gt_cv_func_gnugettext1_libc+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754 #include <libintl.h>
4755 extern int _nl_msg_cat_cntr;
4756 extern int *_nl_domain_bindings;
4757 int
4758 main ()
4759 {
4760 bindtextdomain ("", "");
4761 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_link "$LINENO"; then :
4767   gt_cv_func_gnugettext1_libc=yes
4768 else
4769   gt_cv_func_gnugettext1_libc=no
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext \
4772     conftest$ac_exeext conftest.$ac_ext
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
4775 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
4776
4777         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4778
4779
4780
4781
4782
4783           am_save_CPPFLAGS="$CPPFLAGS"
4784
4785   for element in $INCICONV; do
4786     haveit=
4787     for x in $CPPFLAGS; do
4788
4789   acl_save_prefix="$prefix"
4790   prefix="$acl_final_prefix"
4791   acl_save_exec_prefix="$exec_prefix"
4792   exec_prefix="$acl_final_exec_prefix"
4793   eval x=\"$x\"
4794   exec_prefix="$acl_save_exec_prefix"
4795   prefix="$acl_save_prefix"
4796
4797       if test "X$x" = "X$element"; then
4798         haveit=yes
4799         break
4800       fi
4801     done
4802     if test -z "$haveit"; then
4803       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4804     fi
4805   done
4806
4807
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4809 $as_echo_n "checking for iconv... " >&6; }
4810 if ${am_cv_func_iconv+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813
4814     am_cv_func_iconv="no, consider installing GNU libiconv"
4815     am_cv_lib_iconv=no
4816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818 #include <stdlib.h>
4819 #include <iconv.h>
4820 int
4821 main ()
4822 {
4823 iconv_t cd = iconv_open("","");
4824        iconv(cd,NULL,NULL,NULL,NULL);
4825        iconv_close(cd);
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_link "$LINENO"; then :
4831   am_cv_func_iconv=yes
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext \
4834     conftest$ac_exeext conftest.$ac_ext
4835     if test "$am_cv_func_iconv" != yes; then
4836       am_save_LIBS="$LIBS"
4837       LIBS="$LIBS $LIBICONV"
4838       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h.  */
4840 #include <stdlib.h>
4841 #include <iconv.h>
4842 int
4843 main ()
4844 {
4845 iconv_t cd = iconv_open("","");
4846          iconv(cd,NULL,NULL,NULL,NULL);
4847          iconv_close(cd);
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_c_try_link "$LINENO"; then :
4853   am_cv_lib_iconv=yes
4854         am_cv_func_iconv=yes
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext \
4857     conftest$ac_exeext conftest.$ac_ext
4858       LIBS="$am_save_LIBS"
4859     fi
4860
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4863 $as_echo "$am_cv_func_iconv" >&6; }
4864   if test "$am_cv_func_iconv" = yes; then
4865
4866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4867
4868   fi
4869   if test "$am_cv_lib_iconv" = yes; then
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4871 $as_echo_n "checking how to link with libiconv... " >&6; }
4872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4873 $as_echo "$LIBICONV" >&6; }
4874   else
4875             CPPFLAGS="$am_save_CPPFLAGS"
4876     LIBICONV=
4877     LTLIBICONV=
4878   fi
4879
4880
4881
4882
4883
4884
4885
4886     use_additional=yes
4887
4888   acl_save_prefix="$prefix"
4889   prefix="$acl_final_prefix"
4890   acl_save_exec_prefix="$exec_prefix"
4891   exec_prefix="$acl_final_exec_prefix"
4892
4893     eval additional_includedir=\"$includedir\"
4894     eval additional_libdir=\"$libdir\"
4895
4896   exec_prefix="$acl_save_exec_prefix"
4897   prefix="$acl_save_prefix"
4898
4899
4900 # Check whether --with-libintl-prefix was given.
4901 if test "${with_libintl_prefix+set}" = set; then :
4902   withval=$with_libintl_prefix;
4903     if test "X$withval" = "Xno"; then
4904       use_additional=no
4905     else
4906       if test "X$withval" = "X"; then
4907
4908   acl_save_prefix="$prefix"
4909   prefix="$acl_final_prefix"
4910   acl_save_exec_prefix="$exec_prefix"
4911   exec_prefix="$acl_final_exec_prefix"
4912
4913           eval additional_includedir=\"$includedir\"
4914           eval additional_libdir=\"$libdir\"
4915
4916   exec_prefix="$acl_save_exec_prefix"
4917   prefix="$acl_save_prefix"
4918
4919       else
4920         additional_includedir="$withval/include"
4921         additional_libdir="$withval/$acl_libdirstem"
4922       fi
4923     fi
4924
4925 fi
4926
4927       LIBINTL=
4928   LTLIBINTL=
4929   INCINTL=
4930   rpathdirs=
4931   ltrpathdirs=
4932   names_already_handled=
4933   names_next_round='intl '
4934   while test -n "$names_next_round"; do
4935     names_this_round="$names_next_round"
4936     names_next_round=
4937     for name in $names_this_round; do
4938       already_handled=
4939       for n in $names_already_handled; do
4940         if test "$n" = "$name"; then
4941           already_handled=yes
4942           break
4943         fi
4944       done
4945       if test -z "$already_handled"; then
4946         names_already_handled="$names_already_handled $name"
4947                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4948         eval value=\"\$HAVE_LIB$uppername\"
4949         if test -n "$value"; then
4950           if test "$value" = yes; then
4951             eval value=\"\$LIB$uppername\"
4952             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4953             eval value=\"\$LTLIB$uppername\"
4954             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4955           else
4956                                     :
4957           fi
4958         else
4959                               found_dir=
4960           found_la=
4961           found_so=
4962           found_a=
4963           if test $use_additional = yes; then
4964             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4965               found_dir="$additional_libdir"
4966               found_so="$additional_libdir/lib$name.$shlibext"
4967               if test -f "$additional_libdir/lib$name.la"; then
4968                 found_la="$additional_libdir/lib$name.la"
4969               fi
4970             else
4971               if test -f "$additional_libdir/lib$name.$libext"; then
4972                 found_dir="$additional_libdir"
4973                 found_a="$additional_libdir/lib$name.$libext"
4974                 if test -f "$additional_libdir/lib$name.la"; then
4975                   found_la="$additional_libdir/lib$name.la"
4976                 fi
4977               fi
4978             fi
4979           fi
4980           if test "X$found_dir" = "X"; then
4981             for x in $LDFLAGS $LTLIBINTL; do
4982
4983   acl_save_prefix="$prefix"
4984   prefix="$acl_final_prefix"
4985   acl_save_exec_prefix="$exec_prefix"
4986   exec_prefix="$acl_final_exec_prefix"
4987   eval x=\"$x\"
4988   exec_prefix="$acl_save_exec_prefix"
4989   prefix="$acl_save_prefix"
4990
4991               case "$x" in
4992                 -L*)
4993                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4994                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4995                     found_dir="$dir"
4996                     found_so="$dir/lib$name.$shlibext"
4997                     if test -f "$dir/lib$name.la"; then
4998                       found_la="$dir/lib$name.la"
4999                     fi
5000                   else
5001                     if test -f "$dir/lib$name.$libext"; then
5002                       found_dir="$dir"
5003                       found_a="$dir/lib$name.$libext"
5004                       if test -f "$dir/lib$name.la"; then
5005                         found_la="$dir/lib$name.la"
5006                       fi
5007                     fi
5008                   fi
5009                   ;;
5010               esac
5011               if test "X$found_dir" != "X"; then
5012                 break
5013               fi
5014             done
5015           fi
5016           if test "X$found_dir" != "X"; then
5017                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5018             if test "X$found_so" != "X"; then
5019                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5020                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5021               else
5022                                                                                 haveit=
5023                 for x in $ltrpathdirs; do
5024                   if test "X$x" = "X$found_dir"; then
5025                     haveit=yes
5026                     break
5027                   fi
5028                 done
5029                 if test -z "$haveit"; then
5030                   ltrpathdirs="$ltrpathdirs $found_dir"
5031                 fi
5032                                 if test "$hardcode_direct" = yes; then
5033                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5034                 else
5035                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5036                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5037                                                             haveit=
5038                     for x in $rpathdirs; do
5039                       if test "X$x" = "X$found_dir"; then
5040                         haveit=yes
5041                         break
5042                       fi
5043                     done
5044                     if test -z "$haveit"; then
5045                       rpathdirs="$rpathdirs $found_dir"
5046                     fi
5047                   else
5048                                                                                 haveit=
5049                     for x in $LDFLAGS $LIBINTL; do
5050
5051   acl_save_prefix="$prefix"
5052   prefix="$acl_final_prefix"
5053   acl_save_exec_prefix="$exec_prefix"
5054   exec_prefix="$acl_final_exec_prefix"
5055   eval x=\"$x\"
5056   exec_prefix="$acl_save_exec_prefix"
5057   prefix="$acl_save_prefix"
5058
5059                       if test "X$x" = "X-L$found_dir"; then
5060                         haveit=yes
5061                         break
5062                       fi
5063                     done
5064                     if test -z "$haveit"; then
5065                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5066                     fi
5067                     if test "$hardcode_minus_L" != no; then
5068                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5069                     else
5070                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5071                     fi
5072                   fi
5073                 fi
5074               fi
5075             else
5076               if test "X$found_a" != "X"; then
5077                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5078               else
5079                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5080               fi
5081             fi
5082                         additional_includedir=
5083             case "$found_dir" in
5084               */$acl_libdirstem | */$acl_libdirstem/)
5085                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5086                 additional_includedir="$basedir/include"
5087                 ;;
5088             esac
5089             if test "X$additional_includedir" != "X"; then
5090                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5091                 haveit=
5092                 if test "X$additional_includedir" = "X/usr/local/include"; then
5093                   if test -n "$GCC"; then
5094                     case $host_os in
5095                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5096                     esac
5097                   fi
5098                 fi
5099                 if test -z "$haveit"; then
5100                   for x in $CPPFLAGS $INCINTL; do
5101
5102   acl_save_prefix="$prefix"
5103   prefix="$acl_final_prefix"
5104   acl_save_exec_prefix="$exec_prefix"
5105   exec_prefix="$acl_final_exec_prefix"
5106   eval x=\"$x\"
5107   exec_prefix="$acl_save_exec_prefix"
5108   prefix="$acl_save_prefix"
5109
5110                     if test "X$x" = "X-I$additional_includedir"; then
5111                       haveit=yes
5112                       break
5113                     fi
5114                   done
5115                   if test -z "$haveit"; then
5116                     if test -d "$additional_includedir"; then
5117                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5118                     fi
5119                   fi
5120                 fi
5121               fi
5122             fi
5123                         if test -n "$found_la"; then
5124                                                         save_libdir="$libdir"
5125               case "$found_la" in
5126                 */* | *\\*) . "$found_la" ;;
5127                 *) . "./$found_la" ;;
5128               esac
5129               libdir="$save_libdir"
5130                             for dep in $dependency_libs; do
5131                 case "$dep" in
5132                   -L*)
5133                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5134                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5135                       haveit=
5136                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5137                         if test -n "$GCC"; then
5138                           case $host_os in
5139                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5140                           esac
5141                         fi
5142                       fi
5143                       if test -z "$haveit"; then
5144                         haveit=
5145                         for x in $LDFLAGS $LIBINTL; do
5146
5147   acl_save_prefix="$prefix"
5148   prefix="$acl_final_prefix"
5149   acl_save_exec_prefix="$exec_prefix"
5150   exec_prefix="$acl_final_exec_prefix"
5151   eval x=\"$x\"
5152   exec_prefix="$acl_save_exec_prefix"
5153   prefix="$acl_save_prefix"
5154
5155                           if test "X$x" = "X-L$additional_libdir"; then
5156                             haveit=yes
5157                             break
5158                           fi
5159                         done
5160                         if test -z "$haveit"; then
5161                           if test -d "$additional_libdir"; then
5162                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5163                           fi
5164                         fi
5165                         haveit=
5166                         for x in $LDFLAGS $LTLIBINTL; do
5167
5168   acl_save_prefix="$prefix"
5169   prefix="$acl_final_prefix"
5170   acl_save_exec_prefix="$exec_prefix"
5171   exec_prefix="$acl_final_exec_prefix"
5172   eval x=\"$x\"
5173   exec_prefix="$acl_save_exec_prefix"
5174   prefix="$acl_save_prefix"
5175
5176                           if test "X$x" = "X-L$additional_libdir"; then
5177                             haveit=yes
5178                             break
5179                           fi
5180                         done
5181                         if test -z "$haveit"; then
5182                           if test -d "$additional_libdir"; then
5183                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5184                           fi
5185                         fi
5186                       fi
5187                     fi
5188                     ;;
5189                   -R*)
5190                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5191                     if test "$enable_rpath" != no; then
5192                                                                   haveit=
5193                       for x in $rpathdirs; do
5194                         if test "X$x" = "X$dir"; then
5195                           haveit=yes
5196                           break
5197                         fi
5198                       done
5199                       if test -z "$haveit"; then
5200                         rpathdirs="$rpathdirs $dir"
5201                       fi
5202                                                                   haveit=
5203                       for x in $ltrpathdirs; do
5204                         if test "X$x" = "X$dir"; then
5205                           haveit=yes
5206                           break
5207                         fi
5208                       done
5209                       if test -z "$haveit"; then
5210                         ltrpathdirs="$ltrpathdirs $dir"
5211                       fi
5212                     fi
5213                     ;;
5214                   -l*)
5215                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5216                     ;;
5217                   *.la)
5218                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5219                     ;;
5220                   *)
5221                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5222                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5223                     ;;
5224                 esac
5225               done
5226             fi
5227           else
5228                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5229             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5230           fi
5231         fi
5232       fi
5233     done
5234   done
5235   if test "X$rpathdirs" != "X"; then
5236     if test -n "$hardcode_libdir_separator"; then
5237                         alldirs=
5238       for found_dir in $rpathdirs; do
5239         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5240       done
5241             acl_save_libdir="$libdir"
5242       libdir="$alldirs"
5243       eval flag=\"$hardcode_libdir_flag_spec\"
5244       libdir="$acl_save_libdir"
5245       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5246     else
5247             for found_dir in $rpathdirs; do
5248         acl_save_libdir="$libdir"
5249         libdir="$found_dir"
5250         eval flag=\"$hardcode_libdir_flag_spec\"
5251         libdir="$acl_save_libdir"
5252         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5253       done
5254     fi
5255   fi
5256   if test "X$ltrpathdirs" != "X"; then
5257             for found_dir in $ltrpathdirs; do
5258       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5259     done
5260   fi
5261
5262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5263 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5264 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   gt_save_CPPFLAGS="$CPPFLAGS"
5268             CPPFLAGS="$CPPFLAGS $INCINTL"
5269             gt_save_LIBS="$LIBS"
5270             LIBS="$LIBS $LIBINTL"
5271                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273 #include <libintl.h>
5274 extern int _nl_msg_cat_cntr;
5275 extern
5276 #ifdef __cplusplus
5277 "C"
5278 #endif
5279 const char *_nl_expand_alias (const char *);
5280 int
5281 main ()
5282 {
5283 bindtextdomain ("", "");
5284 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_link "$LINENO"; then :
5290   gt_cv_func_gnugettext1_libintl=yes
5291 else
5292   gt_cv_func_gnugettext1_libintl=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext \
5295     conftest$ac_exeext conftest.$ac_ext
5296                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5297               LIBS="$LIBS $LIBICONV"
5298               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300 #include <libintl.h>
5301 extern int _nl_msg_cat_cntr;
5302 extern
5303 #ifdef __cplusplus
5304 "C"
5305 #endif
5306 const char *_nl_expand_alias (const char *);
5307 int
5308 main ()
5309 {
5310 bindtextdomain ("", "");
5311 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_c_try_link "$LINENO"; then :
5317   LIBINTL="$LIBINTL $LIBICONV"
5318                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5319                 gt_cv_func_gnugettext1_libintl=yes
5320
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323     conftest$ac_exeext conftest.$ac_ext
5324             fi
5325             CPPFLAGS="$gt_save_CPPFLAGS"
5326             LIBS="$gt_save_LIBS"
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5329 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5330         fi
5331
5332                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5333            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5334                 && test "$PACKAGE" != gettext-runtime \
5335                 && test "$PACKAGE" != gettext-tools; }; then
5336           gt_use_preinstalled_gnugettext=yes
5337         else
5338                     LIBINTL=
5339           LTLIBINTL=
5340           INCINTL=
5341         fi
5342
5343
5344
5345     if test -n "$INTL_MACOSX_LIBS"; then
5346       if test "$gt_use_preinstalled_gnugettext" = "yes" \
5347          || test "$nls_cv_use_gnu_gettext" = "yes"; then
5348                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5349         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5350       fi
5351     fi
5352
5353     if test "$gt_use_preinstalled_gnugettext" = "yes" \
5354        || test "$nls_cv_use_gnu_gettext" = "yes"; then
5355
5356 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5357
5358     else
5359       USE_NLS=no
5360     fi
5361   fi
5362
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5364 $as_echo_n "checking whether to use NLS... " >&6; }
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5366 $as_echo "$USE_NLS" >&6; }
5367   if test "$USE_NLS" = "yes"; then
5368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5369 $as_echo_n "checking where the gettext function comes from... " >&6; }
5370     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5371       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5372         gt_source="external libintl"
5373       else
5374         gt_source="libc"
5375       fi
5376     else
5377       gt_source="included intl directory"
5378     fi
5379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5380 $as_echo "$gt_source" >&6; }
5381   fi
5382
5383   if test "$USE_NLS" = "yes"; then
5384
5385     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5386       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5388 $as_echo_n "checking how to link with libintl... " >&6; }
5389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5390 $as_echo "$LIBINTL" >&6; }
5391
5392   for element in $INCINTL; do
5393     haveit=
5394     for x in $CPPFLAGS; do
5395
5396   acl_save_prefix="$prefix"
5397   prefix="$acl_final_prefix"
5398   acl_save_exec_prefix="$exec_prefix"
5399   exec_prefix="$acl_final_exec_prefix"
5400   eval x=\"$x\"
5401   exec_prefix="$acl_save_exec_prefix"
5402   prefix="$acl_save_prefix"
5403
5404       if test "X$x" = "X$element"; then
5405         haveit=yes
5406         break
5407       fi
5408     done
5409     if test -z "$haveit"; then
5410       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5411     fi
5412   done
5413
5414       fi
5415
5416
5417 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5418
5419
5420 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5421
5422     fi
5423
5424         POSUB=po
5425   fi
5426
5427
5428
5429     INTLLIBS="$LIBINTL"
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
5440 then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
5442 $as_echo_n "checking for cross-compiler... " >&6; }
5443
5444   which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
5445   which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
5446   && CC=${target_cpu}-${target-os}-gcc
5447   which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
5448   && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
5449
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5451 $as_echo "$CC" >&6; }
5452 fi
5453
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 if test -n "$ac_tool_prefix"; then
5460   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_CC+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$CC"; then
5468   ac_cv_prog_CC="$CC" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 CC=$ac_cv_prog_CC
5488 if test -n "$CC"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5490 $as_echo "$CC" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 fi
5498 if test -z "$ac_cv_prog_CC"; then
5499   ac_ct_CC=$CC
5500   # Extract the first word of "gcc", so it can be a program name with args.
5501 set dummy gcc; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if test -n "$ac_ct_CC"; then
5508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517     ac_cv_prog_ac_ct_CC="gcc"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5528 if test -n "$ac_ct_CC"; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5530 $as_echo "$ac_ct_CC" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536   if test "x$ac_ct_CC" = x; then
5537     CC=""
5538   else
5539     case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545     CC=$ac_ct_CC
5546   fi
5547 else
5548   CC="$ac_cv_prog_CC"
5549 fi
5550
5551 if test -z "$CC"; then
5552           if test -n "$ac_tool_prefix"; then
5553     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5554 set dummy ${ac_tool_prefix}cc; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_CC+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   if test -n "$CC"; then
5561   ac_cv_prog_CC="$CC" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566   IFS=$as_save_IFS
5567   test -z "$as_dir" && as_dir=.
5568     for ac_exec_ext in '' $ac_executable_extensions; do
5569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570     ac_cv_prog_CC="${ac_tool_prefix}cc"
5571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572     break 2
5573   fi
5574 done
5575   done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 CC=$ac_cv_prog_CC
5581 if test -n "$CC"; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5583 $as_echo "$CC" >&6; }
5584 else
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590   fi
5591 fi
5592 if test -z "$CC"; then
5593   # Extract the first word of "cc", so it can be a program name with args.
5594 set dummy cc; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_prog_CC+:} false; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   if test -n "$CC"; then
5601   ac_cv_prog_CC="$CC" # Let the user override the test.
5602 else
5603   ac_prog_rejected=no
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609     for ac_exec_ext in '' $ac_executable_extensions; do
5610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5612        ac_prog_rejected=yes
5613        continue
5614      fi
5615     ac_cv_prog_CC="cc"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 if test $ac_prog_rejected = yes; then
5624   # We found a bogon in the path, so make sure we never use it.
5625   set dummy $ac_cv_prog_CC
5626   shift
5627   if test $# != 0; then
5628     # We chose a different compiler from the bogus one.
5629     # However, it has the same basename, so the bogon will be chosen
5630     # first if we set CC to just the basename; use the full file name.
5631     shift
5632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5633   fi
5634 fi
5635 fi
5636 fi
5637 CC=$ac_cv_prog_CC
5638 if test -n "$CC"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5640 $as_echo "$CC" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647 fi
5648 if test -z "$CC"; then
5649   if test -n "$ac_tool_prefix"; then
5650   for ac_prog in cl.exe
5651   do
5652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_CC+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   if test -n "$CC"; then
5660   ac_cv_prog_CC="$CC" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665   IFS=$as_save_IFS
5666   test -z "$as_dir" && as_dir=.
5667     for ac_exec_ext in '' $ac_executable_extensions; do
5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671     break 2
5672   fi
5673 done
5674   done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 CC=$ac_cv_prog_CC
5680 if test -n "$CC"; then
5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5682 $as_echo "$CC" >&6; }
5683 else
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688
5689     test -n "$CC" && break
5690   done
5691 fi
5692 if test -z "$CC"; then
5693   ac_ct_CC=$CC
5694   for ac_prog in cl.exe
5695 do
5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if test -n "$ac_ct_CC"; then
5704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_prog_ac_ct_CC="$ac_prog"
5714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718   done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5724 if test -n "$ac_ct_CC"; then
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5726 $as_echo "$ac_ct_CC" >&6; }
5727 else
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733   test -n "$ac_ct_CC" && break
5734 done
5735
5736   if test "x$ac_ct_CC" = x; then
5737     CC=""
5738   else
5739     case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745     CC=$ac_ct_CC
5746   fi
5747 fi
5748
5749 fi
5750
5751
5752 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5754 as_fn_error $? "no acceptable C compiler found in \$PATH
5755 See \`config.log' for more details" "$LINENO" 5; }
5756
5757 # Provide some information about the compiler.
5758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5759 set X $ac_compile
5760 ac_compiler=$2
5761 for ac_option in --version -v -V -qversion; do
5762   { { ac_try="$ac_compiler $ac_option >&5"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5768 $as_echo "$ac_try_echo"; } >&5
5769   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5770   ac_status=$?
5771   if test -s conftest.err; then
5772     sed '10a\
5773 ... rest of stderr output deleted ...
5774          10q' conftest.err >conftest.er1
5775     cat conftest.er1 >&5
5776   fi
5777   rm -f conftest.er1 conftest.err
5778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779   test $ac_status = 0; }
5780 done
5781
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5784 if ${ac_cv_c_compiler_gnu+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h.  */
5789
5790 int
5791 main ()
5792 {
5793 #ifndef __GNUC__
5794        choke me
5795 #endif
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802   ac_compiler_gnu=yes
5803 else
5804   ac_compiler_gnu=no
5805 fi
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5808
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5812 if test $ac_compiler_gnu = yes; then
5813   GCC=yes
5814 else
5815   GCC=
5816 fi
5817 ac_test_CFLAGS=${CFLAGS+set}
5818 ac_save_CFLAGS=$CFLAGS
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5821 if ${ac_cv_prog_cc_g+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   ac_save_c_werror_flag=$ac_c_werror_flag
5825    ac_c_werror_flag=yes
5826    ac_cv_prog_cc_g=no
5827    CFLAGS="-g"
5828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h.  */
5830
5831 int
5832 main ()
5833 {
5834
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840   ac_cv_prog_cc_g=yes
5841 else
5842   CFLAGS=""
5843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845
5846 int
5847 main ()
5848 {
5849
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855
5856 else
5857   ac_c_werror_flag=$ac_save_c_werror_flag
5858          CFLAGS="-g"
5859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h.  */
5861
5862 int
5863 main ()
5864 {
5865
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871   ac_cv_prog_cc_g=yes
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878    ac_c_werror_flag=$ac_save_c_werror_flag
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5881 $as_echo "$ac_cv_prog_cc_g" >&6; }
5882 if test "$ac_test_CFLAGS" = set; then
5883   CFLAGS=$ac_save_CFLAGS
5884 elif test $ac_cv_prog_cc_g = yes; then
5885   if test "$GCC" = yes; then
5886     CFLAGS="-g -O2"
5887   else
5888     CFLAGS="-g"
5889   fi
5890 else
5891   if test "$GCC" = yes; then
5892     CFLAGS="-O2"
5893   else
5894     CFLAGS=
5895   fi
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5899 if ${ac_cv_prog_cc_c89+:} false; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   ac_cv_prog_cc_c89=no
5903 ac_save_CC=$CC
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h.  */
5906 #include <stdarg.h>
5907 #include <stdio.h>
5908 #include <sys/types.h>
5909 #include <sys/stat.h>
5910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5911 struct buf { int x; };
5912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5913 static char *e (p, i)
5914      char **p;
5915      int i;
5916 {
5917   return p[i];
5918 }
5919 static char *f (char * (*g) (char **, int), char **p, ...)
5920 {
5921   char *s;
5922   va_list v;
5923   va_start (v,p);
5924   s = g (p, va_arg (v,int));
5925   va_end (v);
5926   return s;
5927 }
5928
5929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5930    function prototypes and stuff, but not '\xHH' hex character constants.
5931    These don't provoke an error unfortunately, instead are silently treated
5932    as 'x'.  The following induces an error, until -std is added to get
5933    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5934    array size at least.  It's necessary to write '\x00'==0 to get something
5935    that's true only with -std.  */
5936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5937
5938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5939    inside strings and character constants.  */
5940 #define FOO(x) 'x'
5941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5942
5943 int test (int i, double x);
5944 struct s1 {int (*f) (int a);};
5945 struct s2 {int (*f) (double a);};
5946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5947 int argc;
5948 char **argv;
5949 int
5950 main ()
5951 {
5952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5958         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5959 do
5960   CC="$ac_save_CC $ac_arg"
5961   if ac_fn_c_try_compile "$LINENO"; then :
5962   ac_cv_prog_cc_c89=$ac_arg
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext
5965   test "x$ac_cv_prog_cc_c89" != "xno" && break
5966 done
5967 rm -f conftest.$ac_ext
5968 CC=$ac_save_CC
5969
5970 fi
5971 # AC_CACHE_VAL
5972 case "x$ac_cv_prog_cc_c89" in
5973   x)
5974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5975 $as_echo "none needed" >&6; } ;;
5976   xno)
5977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5978 $as_echo "unsupported" >&6; } ;;
5979   *)
5980     CC="$CC $ac_cv_prog_cc_c89"
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5982 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5983 esac
5984 if test "x$ac_cv_prog_cc_c89" != xno; then :
5985
5986 fi
5987
5988 ac_ext=c
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993
5994 depcc="$CC"   am_compiler_list=
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5997 $as_echo_n "checking dependency style of $depcc... " >&6; }
5998 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6002   # We make a subdir and do the tests there.  Otherwise we can end up
6003   # making bogus files that we don't know about and never remove.  For
6004   # instance it was reported that on HP-UX the gcc test will end up
6005   # making a dummy file named `D' -- because `-MD' means `put the output
6006   # in D'.
6007   mkdir conftest.dir
6008   # Copy depcomp to subdir because otherwise we won't find it if we're
6009   # using a relative directory.
6010   cp "$am_depcomp" conftest.dir
6011   cd conftest.dir
6012   # We will build objects and dependencies in a subdirectory because
6013   # it helps to detect inapplicable dependency modes.  For instance
6014   # both Tru64's cc and ICC support -MD to output dependencies as a
6015   # side effect of compilation, but ICC will put the dependencies in
6016   # the current directory while Tru64 will put them in the object
6017   # directory.
6018   mkdir sub
6019
6020   am_cv_CC_dependencies_compiler_type=none
6021   if test "$am_compiler_list" = ""; then
6022      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6023   fi
6024   am__universal=false
6025   case " $depcc " in #(
6026      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6027      esac
6028
6029   for depmode in $am_compiler_list; do
6030     # Setup a source with many dependencies, because some compilers
6031     # like to wrap large dependency lists on column 80 (with \), and
6032     # we should not choose a depcomp mode which is confused by this.
6033     #
6034     # We need to recreate these files for each test, as the compiler may
6035     # overwrite some of them when testing with obscure command lines.
6036     # This happens at least with the AIX C compiler.
6037     : > sub/conftest.c
6038     for i in 1 2 3 4 5 6; do
6039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6040       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6041       # Solaris 8's {/usr,}/bin/sh.
6042       touch sub/conftst$i.h
6043     done
6044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6045
6046     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6047     # mode.  It turns out that the SunPro C++ compiler does not properly
6048     # handle `-M -o', and we need to detect this.  Also, some Intel
6049     # versions had trouble with output in subdirs
6050     am__obj=sub/conftest.${OBJEXT-o}
6051     am__minus_obj="-o $am__obj"
6052     case $depmode in
6053     gcc)
6054       # This depmode causes a compiler race in universal mode.
6055       test "$am__universal" = false || continue
6056       ;;
6057     nosideeffect)
6058       # after this tag, mechanisms are not by side-effect, so they'll
6059       # only be used when explicitly requested
6060       if test "x$enable_dependency_tracking" = xyes; then
6061         continue
6062       else
6063         break
6064       fi
6065       ;;
6066     msvisualcpp | msvcmsys)
6067       # This compiler won't grok `-c -o', but also, the minuso test has
6068       # not run yet.  These depmodes are late enough in the game, and
6069       # so weak that their functioning should not be impacted.
6070       am__obj=conftest.${OBJEXT-o}
6071       am__minus_obj=
6072       ;;
6073     none) break ;;
6074     esac
6075     if depmode=$depmode \
6076        source=sub/conftest.c object=$am__obj \
6077        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6078        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6079          >/dev/null 2>conftest.err &&
6080        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6081        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6082        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6083        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6084       # icc doesn't choke on unknown options, it will just issue warnings
6085       # or remarks (even with -Werror).  So we grep stderr for any message
6086       # that says an option was ignored or not supported.
6087       # When given -MP, icc 7.0 and 7.1 complain thusly:
6088       #   icc: Command line warning: ignoring option '-M'; no argument required
6089       # The diagnosis changed in icc 8.0:
6090       #   icc: Command line remark: option '-MP' not supported
6091       if (grep 'ignoring option' conftest.err ||
6092           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6093         am_cv_CC_dependencies_compiler_type=$depmode
6094         break
6095       fi
6096     fi
6097   done
6098
6099   cd ..
6100   rm -rf conftest.dir
6101 else
6102   am_cv_CC_dependencies_compiler_type=none
6103 fi
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6109
6110  if
6111   test "x$enable_dependency_tracking" != xno \
6112   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6113   am__fastdepCC_TRUE=
6114   am__fastdepCC_FALSE='#'
6115 else
6116   am__fastdepCC_TRUE='#'
6117   am__fastdepCC_FALSE=
6118 fi
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6124 $as_echo_n "checking whether ln -s works... " >&6; }
6125 LN_S=$as_ln_s
6126 if test "$LN_S" = "ln -s"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6128 $as_echo "yes" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6131 $as_echo "no, using $LN_S" >&6; }
6132 fi
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6136 if ${ac_cv_path_SED+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6140      for ac_i in 1 2 3 4 5 6 7; do
6141        ac_script="$ac_script$as_nl$ac_script"
6142      done
6143      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6144      { ac_script=; unset ac_script;}
6145      if test -z "$SED"; then
6146   ac_path_SED_found=false
6147   # Loop through the user's path and test for each of PROGNAME-LIST
6148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_prog in sed gsed; do
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6156       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6157 # Check for GNU ac_path_SED and select it if it is found.
6158   # Check for GNU $ac_path_SED
6159 case `"$ac_path_SED" --version 2>&1` in
6160 *GNU*)
6161   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6162 *)
6163   ac_count=0
6164   $as_echo_n 0123456789 >"conftest.in"
6165   while :
6166   do
6167     cat "conftest.in" "conftest.in" >"conftest.tmp"
6168     mv "conftest.tmp" "conftest.in"
6169     cp "conftest.in" "conftest.nl"
6170     $as_echo '' >> "conftest.nl"
6171     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6172     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6173     as_fn_arith $ac_count + 1 && ac_count=$as_val
6174     if test $ac_count -gt ${ac_path_SED_max-0}; then
6175       # Best one so far, save it but keep looking for a better one
6176       ac_cv_path_SED="$ac_path_SED"
6177       ac_path_SED_max=$ac_count
6178     fi
6179     # 10*(2^10) chars as input seems more than enough
6180     test $ac_count -gt 10 && break
6181   done
6182   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6183 esac
6184
6185       $ac_path_SED_found && break 3
6186     done
6187   done
6188   done
6189 IFS=$as_save_IFS
6190   if test -z "$ac_cv_path_SED"; then
6191     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6192   fi
6193 else
6194   ac_cv_path_SED=$SED
6195 fi
6196
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6199 $as_echo "$ac_cv_path_SED" >&6; }
6200  SED="$ac_cv_path_SED"
6201   rm -f conftest.sed
6202
6203 alsa_save_CFLAGS="$CFLAGS"
6204 alsa_save_LDFLAGS="$LDFLAGS"
6205 alsa_save_LIBS="$LIBS"
6206 alsa_found=yes
6207
6208
6209 # Check whether --with-alsa-prefix was given.
6210 if test "${with_alsa_prefix+set}" = set; then :
6211   withval=$with_alsa_prefix; alsa_prefix="$withval"
6212 else
6213   alsa_prefix=""
6214 fi
6215
6216
6217
6218 # Check whether --with-alsa-inc-prefix was given.
6219 if test "${with_alsa_inc_prefix+set}" = set; then :
6220   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
6221 else
6222   alsa_inc_prefix=""
6223 fi
6224
6225
6226 # Check whether --enable-alsatest was given.
6227 if test "${enable_alsatest+set}" = set; then :
6228   enableval=$enable_alsatest; enable_alsatest="$enableval"
6229 else
6230   enable_alsatest=yes
6231 fi
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
6235 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
6236 if test "$alsa_inc_prefix" != "" ; then
6237         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
6238         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
6239 fi
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6241 $as_echo "$ALSA_CFLAGS" >&6; }
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
6244 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
6245 if test "$alsa_prefix" != "" ; then
6246         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
6247         LDFLAGS="$LDFLAGS $ALSA_LIBS"
6248 fi
6249
6250 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
6251 LIBS="$ALSA_LIBS $LIBS"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6253 $as_echo "$ALSA_LIBS" >&6; }
6254
6255 min_alsa_version=1.0.24
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
6257 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
6258 no_alsa=""
6259     alsa_min_major_version=`echo $min_alsa_version | \
6260            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6261     alsa_min_minor_version=`echo $min_alsa_version | \
6262            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6263     alsa_min_micro_version=`echo $min_alsa_version | \
6264            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6265
6266
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h.  */
6275
6276 #include <alsa/asoundlib.h>
6277
6278 int
6279 main ()
6280 {
6281
6282 /* ensure backward compatibility */
6283 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
6284 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
6285 #endif
6286 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
6287 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
6288 #endif
6289 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
6290 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
6291 #endif
6292
6293 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
6294   exit(0);
6295 #  else
6296 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
6297 #       error not present
6298 #    endif
6299
6300 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
6301   exit(0);
6302 #   else
6303 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
6304 #          error not present
6305 #      endif
6306
6307 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
6308 #        error not present
6309 #      endif
6310 #    endif
6311 #  endif
6312 exit(0);
6313
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
6320 $as_echo "found." >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
6323 $as_echo "not present." >&6; }
6324    as_fn_error $? "Sufficiently new version of libasound not found." "$LINENO" 5
6325    alsa_found=no
6326
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 ac_ext=c
6330 ac_cpp='$CPP $CPPFLAGS'
6331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334
6335
6336 if test "x$enable_alsatest" = "xyes"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
6338 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
6339 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   ac_check_lib_save_LIBS=$LIBS
6343 LIBS="-lasound  $LIBS"
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h.  */
6346
6347 /* Override any GCC internal prototype to avoid an error.
6348    Use char because int might match the return type of a GCC
6349    builtin and then its argument prototype would still apply.  */
6350 #ifdef __cplusplus
6351 extern "C"
6352 #endif
6353 char snd_ctl_open ();
6354 int
6355 main ()
6356 {
6357 return snd_ctl_open ();
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_link "$LINENO"; then :
6363   ac_cv_lib_asound_snd_ctl_open=yes
6364 else
6365   ac_cv_lib_asound_snd_ctl_open=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext \
6368     conftest$ac_exeext conftest.$ac_ext
6369 LIBS=$ac_check_lib_save_LIBS
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
6372 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
6373 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
6374   cat >>confdefs.h <<_ACEOF
6375 #define HAVE_LIBASOUND 1
6376 _ACEOF
6377
6378   LIBS="-lasound $LIBS"
6379
6380 else
6381   as_fn_error $? "No linkable libasound was found." "$LINENO" 5
6382          alsa_found=no
6383
6384 fi
6385
6386 fi
6387
6388 if test "x$alsa_found" = "xyes" ; then
6389    :
6390    LIBS=`echo $LIBS | sed 's/-lasound//g'`
6391    LIBS=`echo $LIBS | sed 's/  //'`
6392    LIBS="-lasound $LIBS"
6393 fi
6394 if test "x$alsa_found" = "xno" ; then
6395    :
6396    CFLAGS="$alsa_save_CFLAGS"
6397    LDFLAGS="$alsa_save_LDFLAGS"
6398    LIBS="$alsa_save_LIBS"
6399    ALSA_CFLAGS=""
6400    ALSA_LIBS=""
6401 fi
6402
6403
6404
6405
6406 ac_fn_c_check_func "$LINENO" "snd_ctl_elem_add_enumerated" "ac_cv_func_snd_ctl_elem_add_enumerated"
6407 if test "x$ac_cv_func_snd_ctl_elem_add_enumerated" = xyes; then :
6408
6409 else
6410   as_fn_error $? "No user enum control support in alsa-lib" "$LINENO" 5
6411 fi
6412
6413
6414 for ac_header in alsa/pcm.h
6415 do :
6416   ac_fn_c_check_header_compile "$LINENO" "alsa/pcm.h" "ac_cv_header_alsa_pcm_h" "#include <alsa/asoundlib.h>
6417 "
6418 if test "x$ac_cv_header_alsa_pcm_h" = xyes; then :
6419   cat >>confdefs.h <<_ACEOF
6420 #define HAVE_ALSA_PCM_H 1
6421 _ACEOF
6422  have_pcm="yes"
6423 else
6424   have_pcm="no"
6425 fi
6426
6427 done
6428
6429 for ac_header in alsa/mixer.h
6430 do :
6431   ac_fn_c_check_header_compile "$LINENO" "alsa/mixer.h" "ac_cv_header_alsa_mixer_h" "#include <alsa/asoundlib.h>
6432 "
6433 if test "x$ac_cv_header_alsa_mixer_h" = xyes; then :
6434   cat >>confdefs.h <<_ACEOF
6435 #define HAVE_ALSA_MIXER_H 1
6436 _ACEOF
6437  have_mixer="yes"
6438 else
6439   have_mixer="no"
6440 fi
6441
6442 done
6443
6444 for ac_header in alsa/rawmidi.h
6445 do :
6446   ac_fn_c_check_header_compile "$LINENO" "alsa/rawmidi.h" "ac_cv_header_alsa_rawmidi_h" "#include <alsa/asoundlib.h>
6447 "
6448 if test "x$ac_cv_header_alsa_rawmidi_h" = xyes; then :
6449   cat >>confdefs.h <<_ACEOF
6450 #define HAVE_ALSA_RAWMIDI_H 1
6451 _ACEOF
6452  have_rawmidi="yes"
6453 else
6454   have_rawmidi="no"
6455 fi
6456
6457 done
6458
6459 for ac_header in alsa/seq.h
6460 do :
6461   ac_fn_c_check_header_compile "$LINENO" "alsa/seq.h" "ac_cv_header_alsa_seq_h" "#include <alsa/asoundlib.h>
6462 "
6463 if test "x$ac_cv_header_alsa_seq_h" = xyes; then :
6464   cat >>confdefs.h <<_ACEOF
6465 #define HAVE_ALSA_SEQ_H 1
6466 _ACEOF
6467  have_seq="yes"
6468 else
6469   have_seq="no"
6470 fi
6471
6472 done
6473
6474 for ac_header in samplerate.h
6475 do :
6476   ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "#include <samplerate.h>
6477 "
6478 if test "x$ac_cv_header_samplerate_h" = xyes; then :
6479   cat >>confdefs.h <<_ACEOF
6480 #define HAVE_SAMPLERATE_H 1
6481 _ACEOF
6482  have_samplerate="yes"
6483 else
6484   have_samplerate="no"
6485 fi
6486
6487 done
6488
6489
6490  if test "$have_pcm" = "yes"; then
6491   HAVE_PCM_TRUE=
6492   HAVE_PCM_FALSE='#'
6493 else
6494   HAVE_PCM_TRUE='#'
6495   HAVE_PCM_FALSE=
6496 fi
6497
6498  if test "$have_mixer" = "yes"; then
6499   HAVE_MIXER_TRUE=
6500   HAVE_MIXER_FALSE='#'
6501 else
6502   HAVE_MIXER_TRUE='#'
6503   HAVE_MIXER_FALSE=
6504 fi
6505
6506  if test "$have_rawmidi" = "yes"; then
6507   HAVE_RAWMIDI_TRUE=
6508   HAVE_RAWMIDI_FALSE='#'
6509 else
6510   HAVE_RAWMIDI_TRUE='#'
6511   HAVE_RAWMIDI_FALSE=
6512 fi
6513
6514  if test "$have_seq" = "yes"; then
6515   HAVE_SEQ_TRUE=
6516   HAVE_SEQ_FALSE='#'
6517 else
6518   HAVE_SEQ_TRUE='#'
6519   HAVE_SEQ_FALSE=
6520 fi
6521
6522  if test "$have_samplerate" = "yes"; then
6523   HAVE_SAMPLERATE_TRUE=
6524   HAVE_SAMPLERATE_FALSE='#'
6525 else
6526   HAVE_SAMPLERATE_TRUE='#'
6527   HAVE_SAMPLERATE_FALSE=
6528 fi
6529
6530
6531 LIBRT=""
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
6533 $as_echo_n "checking for librt... " >&6; }
6534
6535 # Check whether --with-librt was given.
6536 if test "${with_librt+set}" = set; then :
6537   withval=$with_librt;  have_librt="$withval"
6538 else
6539    have_librt="yes"
6540 fi
6541
6542 if test "$have_librt" = "yes"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6544 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
6545 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   ac_check_lib_save_LIBS=$LIBS
6549 LIBS="-lrt  $LIBS"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h.  */
6552
6553 /* Override any GCC internal prototype to avoid an error.
6554    Use char because int might match the return type of a GCC
6555    builtin and then its argument prototype would still apply.  */
6556 #ifdef __cplusplus
6557 extern "C"
6558 #endif
6559 char clock_gettime ();
6560 int
6561 main ()
6562 {
6563 return clock_gettime ();
6564   ;
6565   return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_link "$LINENO"; then :
6569   ac_cv_lib_rt_clock_gettime=yes
6570 else
6571   ac_cv_lib_rt_clock_gettime=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext \
6574     conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6578 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
6579 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
6580   HAVE_LIBRT="yes"
6581 fi
6582
6583   if test "$HAVE_LIBRT" = "yes" ; then
6584     LIBRT="-lrt"
6585
6586 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
6587
6588
6589 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6590
6591   fi
6592 else
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597 CURSESINC=""
6598 CURSESLIB=""
6599 CURSES_CFLAGS=""
6600 alsamixer=
6601 if test "$have_mixer" = "yes"; then
6602 # Check whether --enable-alsamixer was given.
6603 if test "${enable_alsamixer+set}" = set; then :
6604   enableval=$enable_alsamixer; case "${enableval}" in
6605        yes) alsamixer=true ;;
6606        no)  alsamixer=false ;;
6607        *) as_fn_error $? "bad value ${enableval} for --enable-alsamixer" "$LINENO" 5 ;;
6608      esac
6609 else
6610   alsamixer=true
6611 fi
6612
6613 fi
6614  if test x$alsamixer = xtrue; then
6615   ALSAMIXER_TRUE=
6616   ALSAMIXER_FALSE='#'
6617 else
6618   ALSAMIXER_TRUE='#'
6619   ALSAMIXER_FALSE=
6620 fi
6621
6622
6623 # Check whether --enable-alsaconf was given.
6624 if test "${enable_alsaconf+set}" = set; then :
6625   enableval=$enable_alsaconf; case "${enableval}" in
6626        yes) alsaconf=true ;;
6627        no)  alsaconf=false ;;
6628        *) as_fn_error $? "bad value ${enableval} for --enable-alsaconf" "$LINENO" 5 ;;
6629      esac
6630 else
6631   alsaconf=true
6632 fi
6633
6634  if test x$alsaconf = xtrue; then
6635   ALSACONF_TRUE=
6636   ALSACONF_FALSE='#'
6637 else
6638   ALSACONF_TRUE='#'
6639   ALSACONF_FALSE=
6640 fi
6641
6642
6643 # Check whether --enable-alsaloop was given.
6644 if test "${enable_alsaloop+set}" = set; then :
6645   enableval=$enable_alsaloop; case "${enableval}" in
6646        yes) alsaloop=true ;;
6647        no)  alsaloop=false ;;
6648        *) as_fn_error $? "bad value ${enableval} for --enable-alsaloop" "$LINENO" 5 ;;
6649      esac
6650 else
6651   alsaloop=true
6652 fi
6653
6654  if test x$alsaloop = xtrue; then
6655   ALSALOOP_TRUE=
6656   ALSALOOP_FALSE='#'
6657 else
6658   ALSALOOP_TRUE='#'
6659   ALSALOOP_FALSE=
6660 fi
6661
6662
6663 xmlto=""
6664 # Check whether --enable-xmlto was given.
6665 if test "${enable_xmlto+set}" = set; then :
6666   enableval=$enable_xmlto; xmlto="$enableval"
6667 else
6668   xmlto="yes"
6669 fi
6670
6671 if test "$xmlto" = "yes"; then
6672   # Extract the first word of "xmlto", so it can be a program name with args.
6673 set dummy xmlto; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_xmlto+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$xmlto"; then
6680   ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_xmlto="yes"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 xmlto=$ac_cv_prog_xmlto
6700 if test -n "$xmlto"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto" >&5
6702 $as_echo "$xmlto" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708
6709 fi
6710  if test x"$xmlto" = xyes; then
6711   USE_XMLTO_TRUE=
6712   USE_XMLTO_FALSE='#'
6713 else
6714   USE_XMLTO_TRUE='#'
6715   USE_XMLTO_FALSE=
6716 fi
6717
6718
6719
6720 # Check whether --with-udev-rules-dir was given.
6721 if test "${with_udev_rules_dir+set}" = set; then :
6722   withval=$with_udev_rules_dir; udevrulesdir=$withval
6723 else
6724   udevrulesdir="/lib/udev/rules.d"
6725 fi
6726
6727
6728
6729 ac_ext=c
6730 ac_cpp='$CPP $CPPFLAGS'
6731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6736 # On Suns, sometimes $CPP names a directory.
6737 if test -n "$CPP" && test -d "$CPP"; then
6738   CPP=
6739 fi
6740 if test -z "$CPP"; then
6741   if ${ac_cv_prog_CPP+:} false; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744       # Double quotes because CPP needs to be expanded
6745     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6746     do
6747       ac_preproc_ok=false
6748 for ac_c_preproc_warn_flag in '' yes
6749 do
6750   # Use a header file that comes with gcc, so configuring glibc
6751   # with a fresh cross-compiler works.
6752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753   # <limits.h> exists even on freestanding compilers.
6754   # On the NeXT, cc -E runs the code through the compiler's parser,
6755   # not just through cpp. "Syntax error" is here to catch this case.
6756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h.  */
6758 #ifdef __STDC__
6759 # include <limits.h>
6760 #else
6761 # include <assert.h>
6762 #endif
6763                      Syntax error
6764 _ACEOF
6765 if ac_fn_c_try_cpp "$LINENO"; then :
6766
6767 else
6768   # Broken: fails on valid input.
6769 continue
6770 fi
6771 rm -f conftest.err conftest.i conftest.$ac_ext
6772
6773   # OK, works on sane cases.  Now check whether nonexistent headers
6774   # can be detected and how.
6775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h.  */
6777 #include <ac_nonexistent.h>
6778 _ACEOF
6779 if ac_fn_c_try_cpp "$LINENO"; then :
6780   # Broken: success on invalid input.
6781 continue
6782 else
6783   # Passes both tests.
6784 ac_preproc_ok=:
6785 break
6786 fi
6787 rm -f conftest.err conftest.i conftest.$ac_ext
6788
6789 done
6790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6791 rm -f conftest.i conftest.err conftest.$ac_ext
6792 if $ac_preproc_ok; then :
6793   break
6794 fi
6795
6796     done
6797     ac_cv_prog_CPP=$CPP
6798
6799 fi
6800   CPP=$ac_cv_prog_CPP
6801 else
6802   ac_cv_prog_CPP=$CPP
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6805 $as_echo "$CPP" >&6; }
6806 ac_preproc_ok=false
6807 for ac_c_preproc_warn_flag in '' yes
6808 do
6809   # Use a header file that comes with gcc, so configuring glibc
6810   # with a fresh cross-compiler works.
6811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6812   # <limits.h> exists even on freestanding compilers.
6813   # On the NeXT, cc -E runs the code through the compiler's parser,
6814   # not just through cpp. "Syntax error" is here to catch this case.
6815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h.  */
6817 #ifdef __STDC__
6818 # include <limits.h>
6819 #else
6820 # include <assert.h>
6821 #endif
6822                      Syntax error
6823 _ACEOF
6824 if ac_fn_c_try_cpp "$LINENO"; then :
6825
6826 else
6827   # Broken: fails on valid input.
6828 continue
6829 fi
6830 rm -f conftest.err conftest.i conftest.$ac_ext
6831
6832   # OK, works on sane cases.  Now check whether nonexistent headers
6833   # can be detected and how.
6834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836 #include <ac_nonexistent.h>
6837 _ACEOF
6838 if ac_fn_c_try_cpp "$LINENO"; then :
6839   # Broken: success on invalid input.
6840 continue
6841 else
6842   # Passes both tests.
6843 ac_preproc_ok=:
6844 break
6845 fi
6846 rm -f conftest.err conftest.i conftest.$ac_ext
6847
6848 done
6849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6850 rm -f conftest.i conftest.err conftest.$ac_ext
6851 if $ac_preproc_ok; then :
6852
6853 else
6854   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6857 See \`config.log' for more details" "$LINENO" 5; }
6858 fi
6859
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6868 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6869 if ${ac_cv_path_GREP+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -z "$GREP"; then
6873   ac_path_GREP_found=false
6874   # Loop through the user's path and test for each of PROGNAME-LIST
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_prog in grep ggrep; do
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6883       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6884 # Check for GNU ac_path_GREP and select it if it is found.
6885   # Check for GNU $ac_path_GREP
6886 case `"$ac_path_GREP" --version 2>&1` in
6887 *GNU*)
6888   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6889 *)
6890   ac_count=0
6891   $as_echo_n 0123456789 >"conftest.in"
6892   while :
6893   do
6894     cat "conftest.in" "conftest.in" >"conftest.tmp"
6895     mv "conftest.tmp" "conftest.in"
6896     cp "conftest.in" "conftest.nl"
6897     $as_echo 'GREP' >> "conftest.nl"
6898     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6899     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6900     as_fn_arith $ac_count + 1 && ac_count=$as_val
6901     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6902       # Best one so far, save it but keep looking for a better one
6903       ac_cv_path_GREP="$ac_path_GREP"
6904       ac_path_GREP_max=$ac_count
6905     fi
6906     # 10*(2^10) chars as input seems more than enough
6907     test $ac_count -gt 10 && break
6908   done
6909   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6910 esac
6911
6912       $ac_path_GREP_found && break 3
6913     done
6914   done
6915   done
6916 IFS=$as_save_IFS
6917   if test -z "$ac_cv_path_GREP"; then
6918     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6919   fi
6920 else
6921   ac_cv_path_GREP=$GREP
6922 fi
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6926 $as_echo "$ac_cv_path_GREP" >&6; }
6927  GREP="$ac_cv_path_GREP"
6928
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6931 $as_echo_n "checking for egrep... " >&6; }
6932 if ${ac_cv_path_EGREP+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6936    then ac_cv_path_EGREP="$GREP -E"
6937    else
6938      if test -z "$EGREP"; then
6939   ac_path_EGREP_found=false
6940   # Loop through the user's path and test for each of PROGNAME-LIST
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_prog in egrep; do
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6949       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6950 # Check for GNU ac_path_EGREP and select it if it is found.
6951   # Check for GNU $ac_path_EGREP
6952 case `"$ac_path_EGREP" --version 2>&1` in
6953 *GNU*)
6954   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6955 *)
6956   ac_count=0
6957   $as_echo_n 0123456789 >"conftest.in"
6958   while :
6959   do
6960     cat "conftest.in" "conftest.in" >"conftest.tmp"
6961     mv "conftest.tmp" "conftest.in"
6962     cp "conftest.in" "conftest.nl"
6963     $as_echo 'EGREP' >> "conftest.nl"
6964     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6965     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6966     as_fn_arith $ac_count + 1 && ac_count=$as_val
6967     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6968       # Best one so far, save it but keep looking for a better one
6969       ac_cv_path_EGREP="$ac_path_EGREP"
6970       ac_path_EGREP_max=$ac_count
6971     fi
6972     # 10*(2^10) chars as input seems more than enough
6973     test $ac_count -gt 10 && break
6974   done
6975   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6976 esac
6977
6978       $ac_path_EGREP_found && break 3
6979     done
6980   done
6981   done
6982 IFS=$as_save_IFS
6983   if test -z "$ac_cv_path_EGREP"; then
6984     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6985   fi
6986 else
6987   ac_cv_path_EGREP=$EGREP
6988 fi
6989
6990    fi
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6993 $as_echo "$ac_cv_path_EGREP" >&6; }
6994  EGREP="$ac_cv_path_EGREP"
6995
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6998 $as_echo_n "checking for ANSI C header files... " >&6; }
6999 if ${ac_cv_header_stdc+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h.  */
7004 #include <stdlib.h>
7005 #include <stdarg.h>
7006 #include <string.h>
7007 #include <float.h>
7008
7009 int
7010 main ()
7011 {
7012
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018   ac_cv_header_stdc=yes
7019 else
7020   ac_cv_header_stdc=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023
7024 if test $ac_cv_header_stdc = yes; then
7025   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 #include <string.h>
7029
7030 _ACEOF
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032   $EGREP "memchr" >/dev/null 2>&1; then :
7033
7034 else
7035   ac_cv_header_stdc=no
7036 fi
7037 rm -f conftest*
7038
7039 fi
7040
7041 if test $ac_cv_header_stdc = yes; then
7042   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h.  */
7045 #include <stdlib.h>
7046
7047 _ACEOF
7048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7049   $EGREP "free" >/dev/null 2>&1; then :
7050
7051 else
7052   ac_cv_header_stdc=no
7053 fi
7054 rm -f conftest*
7055
7056 fi
7057
7058 if test $ac_cv_header_stdc = yes; then
7059   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7060   if test "$cross_compiling" = yes; then :
7061   :
7062 else
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 #include <ctype.h>
7066 #include <stdlib.h>
7067 #if ((' ' & 0x0FF) == 0x020)
7068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7070 #else
7071 # define ISLOWER(c) \
7072                    (('a' <= (c) && (c) <= 'i') \
7073                      || ('j' <= (c) && (c) <= 'r') \
7074                      || ('s' <= (c) && (c) <= 'z'))
7075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7076 #endif
7077
7078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7079 int
7080 main ()
7081 {
7082   int i;
7083   for (i = 0; i < 256; i++)
7084     if (XOR (islower (i), ISLOWER (i))
7085         || toupper (i) != TOUPPER (i))
7086       return 2;
7087   return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_run "$LINENO"; then :
7091
7092 else
7093   ac_cv_header_stdc=no
7094 fi
7095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7096   conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 fi
7098
7099 fi
7100 fi
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7102 $as_echo "$ac_cv_header_stdc" >&6; }
7103 if test $ac_cv_header_stdc = yes; then
7104
7105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7106
7107 fi
7108
7109 if test x$alsamixer = xtrue; then
7110
7111 # Check whether --with-curses was given.
7112 if test "${with_curses+set}" = set; then :
7113   withval=$with_curses; curseslib="$withval"
7114 else
7115   curseslib="auto"
7116 fi
7117
7118   CURSESLIBDIR=""
7119   NCURSESLIBSUFFIX=""
7120   CURSES_NLS="no"
7121   if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
7122     # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7123 set dummy ncursesw5-config; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$ncursesw5_config"; then
7130   ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_ncursesw5_config="yes"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7150 if test -n "$ncursesw5_config"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7152 $as_echo "$ncursesw5_config" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159     if test "$ncursesw5_config" = "yes"; then
7160       CURSESINC="<ncurses.h>"
7161       CURSESLIB=`ncursesw5-config --libs`
7162       CURSESLIBDIR=`ncursesw5-config --libdir`
7163       CURSES_CFLAGS=`ncursesw5-config --cflags`
7164       curseslib="ncursesw"
7165     else
7166       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7167 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7168 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lncursesw  $LIBS"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175
7176 /* Override any GCC internal prototype to avoid an error.
7177    Use char because int might match the return type of a GCC
7178    builtin and then its argument prototype would still apply.  */
7179 #ifdef __cplusplus
7180 extern "C"
7181 #endif
7182 char initscr ();
7183 int
7184 main ()
7185 {
7186 return initscr ();
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192   ac_cv_lib_ncursesw_initscr=yes
7193 else
7194   ac_cv_lib_ncursesw_initscr=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197     conftest$ac_exeext conftest.$ac_ext
7198 LIBS=$ac_check_lib_save_LIBS
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7201 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7202 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7203    CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7204 fi
7205
7206     fi
7207     if test -n "$CURSESINC"; then
7208       NCURSESLIBSUFFIX="w"
7209       CURSES_NLS="yes"
7210     fi
7211   fi
7212   if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
7213     # Extract the first word of "ncurses5-config", so it can be a program name with args.
7214 set dummy ncurses5-config; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ncurses5_config+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$ncurses5_config"; then
7221   ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_ncurses5_config="yes"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ncurses5_config=$ac_cv_prog_ncurses5_config
7241 if test -n "$ncurses5_config"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
7243 $as_echo "$ncurses5_config" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250     if test "$ncurses5_config" = "yes"; then
7251       CURSESINC="<ncurses.h>"
7252       CURSESLIB=`ncurses5-config --libs`
7253       CURSESLIBDIR=`ncurses5-config --libdir`
7254       CURSES_CFLAGS=`ncurses5-config --cflags`
7255       curseslib="ncurses"
7256     else
7257       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7258 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7259 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lncurses  $LIBS"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266
7267 /* Override any GCC internal prototype to avoid an error.
7268    Use char because int might match the return type of a GCC
7269    builtin and then its argument prototype would still apply.  */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 char initscr ();
7274 int
7275 main ()
7276 {
7277 return initscr ();
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"; then :
7283   ac_cv_lib_ncurses_initscr=yes
7284 else
7285   ac_cv_lib_ncurses_initscr=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext \
7288     conftest$ac_exeext conftest.$ac_ext
7289 LIBS=$ac_check_lib_save_LIBS
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7292 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7293 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7294    CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
7295 fi
7296
7297     fi
7298   fi
7299   if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
7300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
7301 $as_echo_n "checking for initscr in -lcurses... " >&6; }
7302 if ${ac_cv_lib_curses_initscr+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-lcurses  $LIBS"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310 /* Override any GCC internal prototype to avoid an error.
7311    Use char because int might match the return type of a GCC
7312    builtin and then its argument prototype would still apply.  */
7313 #ifdef __cplusplus
7314 extern "C"
7315 #endif
7316 char initscr ();
7317 int
7318 main ()
7319 {
7320 return initscr ();
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7326   ac_cv_lib_curses_initscr=yes
7327 else
7328   ac_cv_lib_curses_initscr=no
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext \
7331     conftest$ac_exeext conftest.$ac_ext
7332 LIBS=$ac_check_lib_save_LIBS
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
7335 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
7336 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
7337    CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
7338 fi
7339
7340   fi
7341   if test -z "$CURSESINC"; then
7342      as_fn_error $? "this packages requires a curses library" "$LINENO" 5
7343   fi
7344
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses library" >&5
7346 $as_echo_n "checking for curses library... " >&6; }
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curseslib" >&5
7348 $as_echo "$curseslib" >&6; }
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses header name" >&5
7350 $as_echo_n "checking for curses header name... " >&6; }
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESINC" >&5
7352 $as_echo "$CURSESINC" >&6; }
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses compiler flags" >&5
7354 $as_echo_n "checking for curses compiler flags... " >&6; }
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CFLAGS" >&5
7356 $as_echo "$CURSES_CFLAGS" >&6; }
7357
7358         if test -n "$CURSESLIBDIR"; then
7359     if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
7360       CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
7361     fi
7362   fi
7363
7364   saved_CFLAGS="$CFLAGS"
7365   saved_LDFLAGS="$LDFLAGS"
7366   saved_LIBS="$LIBS"
7367   CFLAGS="$CFLAGS $CURSES_CFLAGS"
7368   if test -n "$CURSESLIBDIR"; then
7369     LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
7370   fi
7371   LIBS="$CURSESLIB $LIBS"
7372
7373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375 #include <panel.h>
7376 int
7377 main ()
7378 {
7379 set_escdelay(100);
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"; then :
7385   HAVE_CURSES_ESCDELAY="yes"
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext \
7388     conftest$ac_exeext conftest.$ac_ext
7389   if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
7390
7391 $as_echo "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
7392
7393   fi
7394
7395   if test "$USE_NLS" = "yes"; then
7396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses NLS support" >&5
7397 $as_echo_n "checking for curses NLS support... " >&6; }
7398                     if test "$curseslib" = "curses"; then
7399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401
7402           #define _XOPEN_SOURCE 1
7403           #define _XOPEN_SOURCE_EXTENDED 1
7404           #include <curses.h>
7405
7406 int
7407 main ()
7408 {
7409
7410           cchar_t wc;
7411           setcchar(&wc, L"x", A_NORMAL, 0, 0);
7412
7413   ;
7414   return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418   CURSES_NLS="yes"
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext \
7421     conftest$ac_exeext conftest.$ac_ext
7422     fi
7423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_NLS" >&5
7424 $as_echo "$CURSES_NLS" >&6; }
7425     if test "$CURSES_NLS" = "yes"; then
7426
7427 $as_echo "#define ENABLE_NLS_IN_CURSES 1" >>confdefs.h
7428
7429     fi
7430   fi
7431
7432   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7434                   inttypes.h stdint.h unistd.h
7435 do :
7436   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7438 "
7439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7440   cat >>confdefs.h <<_ACEOF
7441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7442 _ACEOF
7443
7444 fi
7445
7446 done
7447
7448
7449 for ac_header in panel.h menu.h form.h
7450 do :
7451   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7454   cat >>confdefs.h <<_ACEOF
7455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456 _ACEOF
7457
7458 else
7459   as_fn_error $? "required curses helper header not found" "$LINENO" 5
7460 fi
7461
7462 done
7463
7464   as_ac_Lib=`$as_echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
7466 $as_echo_n "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... " >&6; }
7467 if eval \${$as_ac_Lib+:} false; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lpanel$NCURSESLIBSUFFIX  $LIBS"
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h.  */
7474
7475 /* Override any GCC internal prototype to avoid an error.
7476    Use char because int might match the return type of a GCC
7477    builtin and then its argument prototype would still apply.  */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char new_panel ();
7482 int
7483 main ()
7484 {
7485 return new_panel ();
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491   eval "$as_ac_Lib=yes"
7492 else
7493   eval "$as_ac_Lib=no"
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext \
7496     conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7498 fi
7499 eval ac_res=\$$as_ac_Lib
7500                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7501 $as_echo "$ac_res" >&6; }
7502 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7503   CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
7504 else
7505   as_fn_error $? "panel$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7506 fi
7507
7508   as_ac_Lib=`$as_echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
7510 $as_echo_n "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... " >&6; }
7511 if eval \${$as_ac_Lib+:} false; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   ac_check_lib_save_LIBS=$LIBS
7515 LIBS="-lmenu$NCURSESLIBSUFFIX  $LIBS"
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518
7519 /* Override any GCC internal prototype to avoid an error.
7520    Use char because int might match the return type of a GCC
7521    builtin and then its argument prototype would still apply.  */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char new_menu ();
7526 int
7527 main ()
7528 {
7529 return new_menu ();
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 if ac_fn_c_try_link "$LINENO"; then :
7535   eval "$as_ac_Lib=yes"
7536 else
7537   eval "$as_ac_Lib=no"
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext \
7540     conftest$ac_exeext conftest.$ac_ext
7541 LIBS=$ac_check_lib_save_LIBS
7542 fi
7543 eval ac_res=\$$as_ac_Lib
7544                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7546 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7547   CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
7548 else
7549   as_fn_error $? "menu$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7550 fi
7551
7552   as_ac_Lib=`$as_echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
7554 $as_echo_n "checking for new_form in -lform$NCURSESLIBSUFFIX... " >&6; }
7555 if eval \${$as_ac_Lib+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lform$NCURSESLIBSUFFIX  $LIBS"
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h.  */
7562
7563 /* Override any GCC internal prototype to avoid an error.
7564    Use char because int might match the return type of a GCC
7565    builtin and then its argument prototype would still apply.  */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 char new_form ();
7570 int
7571 main ()
7572 {
7573 return new_form ();
7574   ;
7575   return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579   eval "$as_ac_Lib=yes"
7580 else
7581   eval "$as_ac_Lib=no"
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext \
7584     conftest$ac_exeext conftest.$ac_ext
7585 LIBS=$ac_check_lib_save_LIBS
7586 fi
7587 eval ac_res=\$$as_ac_Lib
7588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7589 $as_echo "$ac_res" >&6; }
7590 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7591   CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
7592 else
7593   as_fn_error $? "form$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7594 fi
7595
7596
7597   CFLAGS="$saved_CFLAGS"
7598   LDFLAGS="$saved_LDFLAGS"
7599   LIBS="$saved_LIBS"
7600
7601   if test -n "$CURSESLIBDIR"; then
7602     CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
7603   fi
7604
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses linker flags" >&5
7606 $as_echo_n "checking for curses linker flags... " >&6; }
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESLIB" >&5
7608 $as_echo "$CURSESLIB" >&6; }
7609 fi
7610
7611
7612
7613
7614
7615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7616
7617 eval dir="$datadir"
7618 case "$dir" in
7619 /*) ;;
7620 *) dir="$prefix/share"
7621 esac
7622
7623 soundsdir="$dir/sounds/alsa"
7624
7625 cat >>confdefs.h <<_ACEOF
7626 #define SOUNDSDIR "$soundsdir"
7627 _ACEOF
7628
7629
7630 mydatadir="$dir/alsa"
7631
7632 cat >>confdefs.h <<_ACEOF
7633 #define DATADIR "$mydatadir"
7634 _ACEOF
7635
7636
7637
7638 # Check whether --with-testsound was given.
7639 if test "${with_testsound+set}" = set; then :
7640   withval=$with_testsound; TESTSOUND="$withval"
7641 else
7642   TESTSOUND="$dir/test.wav"
7643 fi
7644
7645
7646
7647 ac_config_headers="$ac_config_headers include/aconfig.h"
7648
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7652 if ${ac_cv_c_const+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657
7658 int
7659 main ()
7660 {
7661 /* FIXME: Include the comments suggested by Paul. */
7662 #ifndef __cplusplus
7663   /* Ultrix mips cc rejects this.  */
7664   typedef int charset[2];
7665   const charset cs;
7666   /* SunOS 4.1.1 cc rejects this.  */
7667   char const *const *pcpcc;
7668   char **ppc;
7669   /* NEC SVR4.0.2 mips cc rejects this.  */
7670   struct point {int x, y;};
7671   static struct point const zero = {0,0};
7672   /* AIX XL C 1.02.0.0 rejects this.
7673      It does not let you subtract one const X* pointer from another in
7674      an arm of an if-expression whose if-part is not a constant
7675      expression */
7676   const char *g = "string";
7677   pcpcc = &g + (g ? g-g : 0);
7678   /* HPUX 7.0 cc rejects these. */
7679   ++pcpcc;
7680   ppc = (char**) pcpcc;
7681   pcpcc = (char const *const *) ppc;
7682   { /* SCO 3.2v4 cc rejects this.  */
7683     char *t;
7684     char const *s = 0 ? (char *) 0 : (char const *) 0;
7685
7686     *t++ = 0;
7687     if (s) return 0;
7688   }
7689   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7690     int x[] = {25, 17};
7691     const int *foo = &x[0];
7692     ++foo;
7693   }
7694   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7695     typedef const int *iptr;
7696     iptr p = 0;
7697     ++p;
7698   }
7699   { /* AIX XL C 1.02.0.0 rejects this saying
7700        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7701     struct s { int j; const int *ap[3]; };
7702     struct s *b; b->j = 5;
7703   }
7704   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7705     const int foo = 10;
7706     if (!foo) return 0;
7707   }
7708   return !cs[0] && !zero.x;
7709 #endif
7710
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_compile "$LINENO"; then :
7716   ac_cv_c_const=yes
7717 else
7718   ac_cv_c_const=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7723 $as_echo "$ac_cv_c_const" >&6; }
7724 if test $ac_cv_c_const = no; then
7725
7726 $as_echo "#define const /**/" >>confdefs.h
7727
7728 fi
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7731 $as_echo_n "checking for inline... " >&6; }
7732 if ${ac_cv_c_inline+:} false; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   ac_cv_c_inline=no
7736 for ac_kw in inline __inline__ __inline; do
7737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h.  */
7739 #ifndef __cplusplus
7740 typedef int foo_t;
7741 static $ac_kw foo_t static_foo () {return 0; }
7742 $ac_kw foo_t foo () {return 0; }
7743 #endif
7744
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747   ac_cv_c_inline=$ac_kw
7748 fi
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750   test "$ac_cv_c_inline" != no && break
7751 done
7752
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7755 $as_echo "$ac_cv_c_inline" >&6; }
7756
7757 case $ac_cv_c_inline in
7758   inline | yes) ;;
7759   *)
7760     case $ac_cv_c_inline in
7761       no) ac_val=;;
7762       *) ac_val=$ac_cv_c_inline;;
7763     esac
7764     cat >>confdefs.h <<_ACEOF
7765 #ifndef __cplusplus
7766 #define inline $ac_val
7767 #endif
7768 _ACEOF
7769     ;;
7770 esac
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7773 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7774 if ${ac_cv_header_time+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7781 #include <time.h>
7782
7783 int
7784 main ()
7785 {
7786 if ((struct tm *) 0)
7787 return 0;
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793   ac_cv_header_time=yes
7794 else
7795   ac_cv_header_time=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7800 $as_echo "$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7802
7803 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7804
7805 fi
7806
7807
7808 if test $ac_cv_c_compiler_gnu = yes; then
7809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7810 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7811 if ${ac_cv_prog_gcc_traditional+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814     ac_pattern="Autoconf.*'x'"
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #include <sgtty.h>
7818 Autoconf TIOCGETP
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7822   ac_cv_prog_gcc_traditional=yes
7823 else
7824   ac_cv_prog_gcc_traditional=no
7825 fi
7826 rm -f conftest*
7827
7828
7829   if test $ac_cv_prog_gcc_traditional = no; then
7830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832 #include <termio.h>
7833 Autoconf TCGETA
7834 _ACEOF
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7837   ac_cv_prog_gcc_traditional=yes
7838 fi
7839 rm -f conftest*
7840
7841   fi
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7844 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7845   if test $ac_cv_prog_gcc_traditional = yes; then
7846     CC="$CC -traditional"
7847   fi
7848 fi
7849
7850
7851 # Check whether --enable-largefile was given.
7852 if test "${enable_largefile+set}" = set; then :
7853   enableval=$enable_largefile;
7854 fi
7855
7856 if test "$enable_largefile" != no; then
7857
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7859 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7860 if ${ac_cv_sys_largefile_CC+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   ac_cv_sys_largefile_CC=no
7864      if test "$GCC" != yes; then
7865        ac_save_CC=$CC
7866        while :; do
7867          # IRIX 6.2 and later do not support large files by default,
7868          # so use the C compiler's -n32 option if that helps.
7869          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 #include <sys/types.h>
7872  /* Check that off_t can represent 2**63 - 1 correctly.
7873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7874     since some C++ compilers masquerading as C compilers
7875     incorrectly reject 9223372036854775807.  */
7876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7878                        && LARGE_OFF_T % 2147483647 == 1)
7879                       ? 1 : -1];
7880 int
7881 main ()
7882 {
7883
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888          if ac_fn_c_try_compile "$LINENO"; then :
7889   break
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext
7892          CC="$CC -n32"
7893          if ac_fn_c_try_compile "$LINENO"; then :
7894   ac_cv_sys_largefile_CC=' -n32'; break
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext
7897          break
7898        done
7899        CC=$ac_save_CC
7900        rm -f conftest.$ac_ext
7901     fi
7902 fi
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7904 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7905   if test "$ac_cv_sys_largefile_CC" != no; then
7906     CC=$CC$ac_cv_sys_largefile_CC
7907   fi
7908
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7910 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7911 if ${ac_cv_sys_file_offset_bits+:} false; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   while :; do
7915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917 #include <sys/types.h>
7918  /* Check that off_t can represent 2**63 - 1 correctly.
7919     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7920     since some C++ compilers masquerading as C compilers
7921     incorrectly reject 9223372036854775807.  */
7922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7923   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7924                        && LARGE_OFF_T % 2147483647 == 1)
7925                       ? 1 : -1];
7926 int
7927 main ()
7928 {
7929
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935   ac_cv_sys_file_offset_bits=no; break
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940 #define _FILE_OFFSET_BITS 64
7941 #include <sys/types.h>
7942  /* Check that off_t can represent 2**63 - 1 correctly.
7943     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7944     since some C++ compilers masquerading as C compilers
7945     incorrectly reject 9223372036854775807.  */
7946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7947   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7948                        && LARGE_OFF_T % 2147483647 == 1)
7949                       ? 1 : -1];
7950 int
7951 main ()
7952 {
7953
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959   ac_cv_sys_file_offset_bits=64; break
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962   ac_cv_sys_file_offset_bits=unknown
7963   break
7964 done
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7967 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7968 case $ac_cv_sys_file_offset_bits in #(
7969   no | unknown) ;;
7970   *)
7971 cat >>confdefs.h <<_ACEOF
7972 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7973 _ACEOF
7974 ;;
7975 esac
7976 rm -rf conftest*
7977   if test $ac_cv_sys_file_offset_bits = unknown; then
7978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7979 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7980 if ${ac_cv_sys_large_files+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   while :; do
7984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #include <sys/types.h>
7987  /* Check that off_t can represent 2**63 - 1 correctly.
7988     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7989     since some C++ compilers masquerading as C compilers
7990     incorrectly reject 9223372036854775807.  */
7991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7992   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7993                        && LARGE_OFF_T % 2147483647 == 1)
7994                       ? 1 : -1];
7995 int
7996 main ()
7997 {
7998
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004   ac_cv_sys_large_files=no; break
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009 #define _LARGE_FILES 1
8010 #include <sys/types.h>
8011  /* Check that off_t can represent 2**63 - 1 correctly.
8012     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8013     since some C++ compilers masquerading as C compilers
8014     incorrectly reject 9223372036854775807.  */
8015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8016   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8017                        && LARGE_OFF_T % 2147483647 == 1)
8018                       ? 1 : -1];
8019 int
8020 main ()
8021 {
8022
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028   ac_cv_sys_large_files=1; break
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031   ac_cv_sys_large_files=unknown
8032   break
8033 done
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8036 $as_echo "$ac_cv_sys_large_files" >&6; }
8037 case $ac_cv_sys_large_files in #(
8038   no | unknown) ;;
8039   *)
8040 cat >>confdefs.h <<_ACEOF
8041 #define _LARGE_FILES $ac_cv_sys_large_files
8042 _ACEOF
8043 ;;
8044 esac
8045 rm -rf conftest*
8046   fi
8047 fi
8048
8049
8050
8051 SND_UTIL_VERSION=$VERSION
8052 echo $VERSION > $srcdir/version
8053
8054 cat >>confdefs.h <<_ACEOF
8055 #define VERSION "$SND_UTIL_VERSION"
8056 _ACEOF
8057
8058
8059 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
8060
8061 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
8062
8063 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
8064
8065
8066
8067
8068
8069
8070
8071 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8072         if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   case $PKG_CONFIG in
8081   [\\/]* | ?:[\\/]*)
8082   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8083   ;;
8084   *)
8085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090     for ac_exec_ext in '' $ac_executable_extensions; do
8091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097   done
8098 IFS=$as_save_IFS
8099
8100   ;;
8101 esac
8102 fi
8103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8104 if test -n "$PKG_CONFIG"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8106 $as_echo "$PKG_CONFIG" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111
8112
8113 fi
8114 if test -z "$ac_cv_path_PKG_CONFIG"; then
8115   ac_pt_PKG_CONFIG=$PKG_CONFIG
8116   # Extract the first word of "pkg-config", so it can be a program name with args.
8117 set dummy pkg-config; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   case $ac_pt_PKG_CONFIG in
8124   [\\/]* | ?:[\\/]*)
8125   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8126   ;;
8127   *)
8128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142
8143   ;;
8144 esac
8145 fi
8146 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8147 if test -n "$ac_pt_PKG_CONFIG"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8149 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155   if test "x$ac_pt_PKG_CONFIG" = x; then
8156     PKG_CONFIG=""
8157   else
8158     case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8163 esac
8164     PKG_CONFIG=$ac_pt_PKG_CONFIG
8165   fi
8166 else
8167   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8168 fi
8169
8170 fi
8171 if test -n "$PKG_CONFIG"; then
8172         _pkg_min_version=0.9.0
8173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8174 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8175         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8176                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8178         else
8179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181                 PKG_CONFIG=""
8182         fi
8183
8184 fi
8185
8186 # Check whether --with-systemdsystemunitdir was given.
8187 if test "${with_systemdsystemunitdir+set}" = set; then :
8188   withval=$with_systemdsystemunitdir;
8189 else
8190   with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
8191 fi
8192
8193 if test "x$with_systemdsystemunitdir" != xno; then
8194         systemdsystemunitdir=$with_systemdsystemunitdir
8195
8196 fi
8197  if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
8198   HAVE_SYSTEMD_TRUE=
8199   HAVE_SYSTEMD_FALSE='#'
8200 else
8201   HAVE_SYSTEMD_TRUE='#'
8202   HAVE_SYSTEMD_FALSE=
8203 fi
8204
8205
8206
8207 # Check whether --with-asound-state-dir was given.
8208 if test "${with_asound_state_dir+set}" = set; then :
8209   withval=$with_asound_state_dir; ASOUND_STATE_DIR="$withval"
8210 else
8211   ASOUND_STATE_DIR="/var/lib/alsa"
8212 fi
8213
8214
8215
8216 ac_config_files="$ac_config_files Makefile alsactl/Makefile alsactl/init/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile m4/Makefile po/Makefile.in alsaconf/alsaconf alsaconf/Makefile alsaconf/po/Makefile alsaucm/Makefile aplay/Makefile include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile speaker-test/Makefile speaker-test/samples/Makefile alsaloop/Makefile"
8217
8218 cat >confcache <<\_ACEOF
8219 # This file is a shell script that caches the results of configure
8220 # tests run on this system so they can be shared between configure
8221 # scripts and configure runs, see configure's option --config-cache.
8222 # It is not useful on other systems.  If it contains results you don't
8223 # want to keep, you may remove or edit it.
8224 #
8225 # config.status only pays attention to the cache file if you give it
8226 # the --recheck option to rerun configure.
8227 #
8228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8230 # following values.
8231
8232 _ACEOF
8233
8234 # The following way of writing the cache mishandles newlines in values,
8235 # but we know of no workaround that is simple, portable, and efficient.
8236 # So, we kill variables containing newlines.
8237 # Ultrix sh set writes to stderr and can't be redirected directly,
8238 # and sets the high bit in the cache file unless we assign to the vars.
8239 (
8240   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8241     eval ac_val=\$$ac_var
8242     case $ac_val in #(
8243     *${as_nl}*)
8244       case $ac_var in #(
8245       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8247       esac
8248       case $ac_var in #(
8249       _ | IFS | as_nl) ;; #(
8250       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8251       *) { eval $ac_var=; unset $ac_var;} ;;
8252       esac ;;
8253     esac
8254   done
8255
8256   (set) 2>&1 |
8257     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8258     *${as_nl}ac_space=\ *)
8259       # `set' does not quote correctly, so add quotes: double-quote
8260       # substitution turns \\\\ into \\, and sed turns \\ into \.
8261       sed -n \
8262         "s/'/'\\\\''/g;
8263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8264       ;; #(
8265     *)
8266       # `set' quotes correctly as required by POSIX, so do not add quotes.
8267       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8268       ;;
8269     esac |
8270     sort
8271 ) |
8272   sed '
8273      /^ac_cv_env_/b end
8274      t clear
8275      :clear
8276      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8277      t end
8278      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8279      :end' >>confcache
8280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8281   if test -w "$cache_file"; then
8282     if test "x$cache_file" != "x/dev/null"; then
8283       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8284 $as_echo "$as_me: updating cache $cache_file" >&6;}
8285       if test ! -f "$cache_file" || test -h "$cache_file"; then
8286         cat confcache >"$cache_file"
8287       else
8288         case $cache_file in #(
8289         */* | ?:*)
8290           mv -f confcache "$cache_file"$$ &&
8291           mv -f "$cache_file"$$ "$cache_file" ;; #(
8292         *)
8293           mv -f confcache "$cache_file" ;;
8294         esac
8295       fi
8296     fi
8297   else
8298     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8299 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8300   fi
8301 fi
8302 rm -f confcache
8303
8304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8305 # Let make expand exec_prefix.
8306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8307
8308 DEFS=-DHAVE_CONFIG_H
8309
8310 ac_libobjs=
8311 ac_ltlibobjs=
8312 U=
8313 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8314   # 1. Remove the extension, and $U if already installed.
8315   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8316   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8317   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8318   #    will be set to the directory where LIBOBJS objects are built.
8319   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8320   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8321 done
8322 LIBOBJS=$ac_libobjs
8323
8324 LTLIBOBJS=$ac_ltlibobjs
8325
8326
8327  if test -n "$EXEEXT"; then
8328   am__EXEEXT_TRUE=
8329   am__EXEEXT_FALSE='#'
8330 else
8331   am__EXEEXT_TRUE='#'
8332   am__EXEEXT_FALSE=
8333 fi
8334
8335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8336   as_fn_error $? "conditional \"AMDEP\" was never defined.
8337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8338 fi
8339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8340   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8342 fi
8343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8344   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8346 fi
8347 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
8348   as_fn_error $? "conditional \"HAVE_PCM\" was never defined.
8349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8350 fi
8351 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
8352   as_fn_error $? "conditional \"HAVE_MIXER\" was never defined.
8353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8354 fi
8355 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
8356   as_fn_error $? "conditional \"HAVE_RAWMIDI\" was never defined.
8357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8358 fi
8359 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
8360   as_fn_error $? "conditional \"HAVE_SEQ\" was never defined.
8361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8362 fi
8363 if test -z "${HAVE_SAMPLERATE_TRUE}" && test -z "${HAVE_SAMPLERATE_FALSE}"; then
8364   as_fn_error $? "conditional \"HAVE_SAMPLERATE\" was never defined.
8365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8366 fi
8367 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
8368   as_fn_error $? "conditional \"ALSAMIXER\" was never defined.
8369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8370 fi
8371 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
8372   as_fn_error $? "conditional \"ALSACONF\" was never defined.
8373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8374 fi
8375 if test -z "${ALSALOOP_TRUE}" && test -z "${ALSALOOP_FALSE}"; then
8376   as_fn_error $? "conditional \"ALSALOOP\" was never defined.
8377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8378 fi
8379 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
8380   as_fn_error $? "conditional \"USE_XMLTO\" was never defined.
8381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8382 fi
8383 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
8384   as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
8385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8386 fi
8387
8388 : "${CONFIG_STATUS=./config.status}"
8389 ac_write_fail=0
8390 ac_clean_files_save=$ac_clean_files
8391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8394 as_write_fail=0
8395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8396 #! $SHELL
8397 # Generated by $as_me.
8398 # Run this file to recreate the current configuration.
8399 # Compiler output produced by configure, useful for debugging
8400 # configure, is in config.log if it exists.
8401
8402 debug=false
8403 ac_cs_recheck=false
8404 ac_cs_silent=false
8405
8406 SHELL=\${CONFIG_SHELL-$SHELL}
8407 export SHELL
8408 _ASEOF
8409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8410 ## -------------------- ##
8411 ## M4sh Initialization. ##
8412 ## -------------------- ##
8413
8414 # Be more Bourne compatible
8415 DUALCASE=1; export DUALCASE # for MKS sh
8416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8417   emulate sh
8418   NULLCMD=:
8419   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8420   # is contrary to our usage.  Disable this feature.
8421   alias -g '${1+"$@"}'='"$@"'
8422   setopt NO_GLOB_SUBST
8423 else
8424   case `(set -o) 2>/dev/null` in #(
8425   *posix*) :
8426     set -o posix ;; #(
8427   *) :
8428      ;;
8429 esac
8430 fi
8431
8432
8433 as_nl='
8434 '
8435 export as_nl
8436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8440 # Prefer a ksh shell builtin over an external printf program on Solaris,
8441 # but without wasting forks for bash or zsh.
8442 if test -z "$BASH_VERSION$ZSH_VERSION" \
8443     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8444   as_echo='print -r --'
8445   as_echo_n='print -rn --'
8446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8447   as_echo='printf %s\n'
8448   as_echo_n='printf %s'
8449 else
8450   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8451     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8452     as_echo_n='/usr/ucb/echo -n'
8453   else
8454     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8455     as_echo_n_body='eval
8456       arg=$1;
8457       case $arg in #(
8458       *"$as_nl"*)
8459         expr "X$arg" : "X\\(.*\\)$as_nl";
8460         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8461       esac;
8462       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8463     '
8464     export as_echo_n_body
8465     as_echo_n='sh -c $as_echo_n_body as_echo'
8466   fi
8467   export as_echo_body
8468   as_echo='sh -c $as_echo_body as_echo'
8469 fi
8470
8471 # The user is always right.
8472 if test "${PATH_SEPARATOR+set}" != set; then
8473   PATH_SEPARATOR=:
8474   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8475     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8476       PATH_SEPARATOR=';'
8477   }
8478 fi
8479
8480
8481 # IFS
8482 # We need space, tab and new line, in precisely that order.  Quoting is
8483 # there to prevent editors from complaining about space-tab.
8484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8485 # splitting by setting IFS to empty value.)
8486 IFS=" ""        $as_nl"
8487
8488 # Find who we are.  Look in the path if we contain no directory separator.
8489 as_myself=
8490 case $0 in #((
8491   *[\\/]* ) as_myself=$0 ;;
8492   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495   IFS=$as_save_IFS
8496   test -z "$as_dir" && as_dir=.
8497     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8498   done
8499 IFS=$as_save_IFS
8500
8501      ;;
8502 esac
8503 # We did not find ourselves, most probably we were run as `sh COMMAND'
8504 # in which case we are not to be found in the path.
8505 if test "x$as_myself" = x; then
8506   as_myself=$0
8507 fi
8508 if test ! -f "$as_myself"; then
8509   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8510   exit 1
8511 fi
8512
8513 # Unset variables that we do not need and which cause bugs (e.g. in
8514 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8515 # suppresses any "Segmentation fault" message there.  '((' could
8516 # trigger a bug in pdksh 5.2.14.
8517 for as_var in BASH_ENV ENV MAIL MAILPATH
8518 do eval test x\${$as_var+set} = xset \
8519   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8520 done
8521 PS1='$ '
8522 PS2='> '
8523 PS4='+ '
8524
8525 # NLS nuisances.
8526 LC_ALL=C
8527 export LC_ALL
8528 LANGUAGE=C
8529 export LANGUAGE
8530
8531 # CDPATH.
8532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8533
8534
8535 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8536 # ----------------------------------------
8537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8539 # script with STATUS, using 1 if that was 0.
8540 as_fn_error ()
8541 {
8542   as_status=$1; test $as_status -eq 0 && as_status=1
8543   if test "$4"; then
8544     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8545     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8546   fi
8547   $as_echo "$as_me: error: $2" >&2
8548   as_fn_exit $as_status
8549 } # as_fn_error
8550
8551
8552 # as_fn_set_status STATUS
8553 # -----------------------
8554 # Set $? to STATUS, without forking.
8555 as_fn_set_status ()
8556 {
8557   return $1
8558 } # as_fn_set_status
8559
8560 # as_fn_exit STATUS
8561 # -----------------
8562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8563 as_fn_exit ()
8564 {
8565   set +e
8566   as_fn_set_status $1
8567   exit $1
8568 } # as_fn_exit
8569
8570 # as_fn_unset VAR
8571 # ---------------
8572 # Portably unset VAR.
8573 as_fn_unset ()
8574 {
8575   { eval $1=; unset $1;}
8576 }
8577 as_unset=as_fn_unset
8578 # as_fn_append VAR VALUE
8579 # ----------------------
8580 # Append the text in VALUE to the end of the definition contained in VAR. Take
8581 # advantage of any shell optimizations that allow amortized linear growth over
8582 # repeated appends, instead of the typical quadratic growth present in naive
8583 # implementations.
8584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8585   eval 'as_fn_append ()
8586   {
8587     eval $1+=\$2
8588   }'
8589 else
8590   as_fn_append ()
8591   {
8592     eval $1=\$$1\$2
8593   }
8594 fi # as_fn_append
8595
8596 # as_fn_arith ARG...
8597 # ------------------
8598 # Perform arithmetic evaluation on the ARGs, and store the result in the
8599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8600 # must be portable across $(()) and expr.
8601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8602   eval 'as_fn_arith ()
8603   {
8604     as_val=$(( $* ))
8605   }'
8606 else
8607   as_fn_arith ()
8608   {
8609     as_val=`expr "$@" || test $? -eq 1`
8610   }
8611 fi # as_fn_arith
8612
8613
8614 if expr a : '\(a\)' >/dev/null 2>&1 &&
8615    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8616   as_expr=expr
8617 else
8618   as_expr=false
8619 fi
8620
8621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8622   as_basename=basename
8623 else
8624   as_basename=false
8625 fi
8626
8627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8628   as_dirname=dirname
8629 else
8630   as_dirname=false
8631 fi
8632
8633 as_me=`$as_basename -- "$0" ||
8634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8635          X"$0" : 'X\(//\)$' \| \
8636          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8637 $as_echo X/"$0" |
8638     sed '/^.*\/\([^/][^/]*\)\/*$/{
8639             s//\1/
8640             q
8641           }
8642           /^X\/\(\/\/\)$/{
8643             s//\1/
8644             q
8645           }
8646           /^X\/\(\/\).*/{
8647             s//\1/
8648             q
8649           }
8650           s/.*/./; q'`
8651
8652 # Avoid depending upon Character Ranges.
8653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8656 as_cr_digits='0123456789'
8657 as_cr_alnum=$as_cr_Letters$as_cr_digits
8658
8659 ECHO_C= ECHO_N= ECHO_T=
8660 case `echo -n x` in #(((((
8661 -n*)
8662   case `echo 'xy\c'` in
8663   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8664   xy)  ECHO_C='\c';;
8665   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8666        ECHO_T=' ';;
8667   esac;;
8668 *)
8669   ECHO_N='-n';;
8670 esac
8671
8672 rm -f conf$$ conf$$.exe conf$$.file
8673 if test -d conf$$.dir; then
8674   rm -f conf$$.dir/conf$$.file
8675 else
8676   rm -f conf$$.dir
8677   mkdir conf$$.dir 2>/dev/null
8678 fi
8679 if (echo >conf$$.file) 2>/dev/null; then
8680   if ln -s conf$$.file conf$$ 2>/dev/null; then
8681     as_ln_s='ln -s'
8682     # ... but there are two gotchas:
8683     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8684     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8685     # In both cases, we have to default to `cp -p'.
8686     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8687       as_ln_s='cp -p'
8688   elif ln conf$$.file conf$$ 2>/dev/null; then
8689     as_ln_s=ln
8690   else
8691     as_ln_s='cp -p'
8692   fi
8693 else
8694   as_ln_s='cp -p'
8695 fi
8696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8697 rmdir conf$$.dir 2>/dev/null
8698
8699
8700 # as_fn_mkdir_p
8701 # -------------
8702 # Create "$as_dir" as a directory, including parents if necessary.
8703 as_fn_mkdir_p ()
8704 {
8705
8706   case $as_dir in #(
8707   -*) as_dir=./$as_dir;;
8708   esac
8709   test -d "$as_dir" || eval $as_mkdir_p || {
8710     as_dirs=
8711     while :; do
8712       case $as_dir in #(
8713       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8714       *) as_qdir=$as_dir;;
8715       esac
8716       as_dirs="'$as_qdir' $as_dirs"
8717       as_dir=`$as_dirname -- "$as_dir" ||
8718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8719          X"$as_dir" : 'X\(//\)[^/]' \| \
8720          X"$as_dir" : 'X\(//\)$' \| \
8721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8722 $as_echo X"$as_dir" |
8723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8724             s//\1/
8725             q
8726           }
8727           /^X\(\/\/\)[^/].*/{
8728             s//\1/
8729             q
8730           }
8731           /^X\(\/\/\)$/{
8732             s//\1/
8733             q
8734           }
8735           /^X\(\/\).*/{
8736             s//\1/
8737             q
8738           }
8739           s/.*/./; q'`
8740       test -d "$as_dir" && break
8741     done
8742     test -z "$as_dirs" || eval "mkdir $as_dirs"
8743   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8744
8745
8746 } # as_fn_mkdir_p
8747 if mkdir -p . 2>/dev/null; then
8748   as_mkdir_p='mkdir -p "$as_dir"'
8749 else
8750   test -d ./-p && rmdir ./-p
8751   as_mkdir_p=false
8752 fi
8753
8754 if test -x / >/dev/null 2>&1; then
8755   as_test_x='test -x'
8756 else
8757   if ls -dL / >/dev/null 2>&1; then
8758     as_ls_L_option=L
8759   else
8760     as_ls_L_option=
8761   fi
8762   as_test_x='
8763     eval sh -c '\''
8764       if test -d "$1"; then
8765         test -d "$1/.";
8766       else
8767         case $1 in #(
8768         -*)set "./$1";;
8769         esac;
8770         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8771         ???[sx]*):;;*)false;;esac;fi
8772     '\'' sh
8773   '
8774 fi
8775 as_executable_p=$as_test_x
8776
8777 # Sed expression to map a string onto a valid CPP name.
8778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8779
8780 # Sed expression to map a string onto a valid variable name.
8781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8782
8783
8784 exec 6>&1
8785 ## ----------------------------------- ##
8786 ## Main body of $CONFIG_STATUS script. ##
8787 ## ----------------------------------- ##
8788 _ASEOF
8789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8790
8791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8792 # Save the log message, to keep $0 and so on meaningful, and to
8793 # report actual input values of CONFIG_FILES etc. instead of their
8794 # values after options handling.
8795 ac_log="
8796 This file was extended by $as_me, which was
8797 generated by GNU Autoconf 2.68.  Invocation command line was
8798
8799   CONFIG_FILES    = $CONFIG_FILES
8800   CONFIG_HEADERS  = $CONFIG_HEADERS
8801   CONFIG_LINKS    = $CONFIG_LINKS
8802   CONFIG_COMMANDS = $CONFIG_COMMANDS
8803   $ $0 $@
8804
8805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8806 "
8807
8808 _ACEOF
8809
8810 case $ac_config_files in *"
8811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8812 esac
8813
8814 case $ac_config_headers in *"
8815 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8816 esac
8817
8818
8819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8820 # Files that config.status was made for.
8821 config_files="$ac_config_files"
8822 config_headers="$ac_config_headers"
8823 config_commands="$ac_config_commands"
8824
8825 _ACEOF
8826
8827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8828 ac_cs_usage="\
8829 \`$as_me' instantiates files and other configuration actions
8830 from templates according to the current configuration.  Unless the files
8831 and actions are specified as TAGs, all are instantiated by default.
8832
8833 Usage: $0 [OPTION]... [TAG]...
8834
8835   -h, --help       print this help, then exit
8836   -V, --version    print version number and configuration settings, then exit
8837       --config     print configuration, then exit
8838   -q, --quiet, --silent
8839                    do not print progress messages
8840   -d, --debug      don't remove temporary files
8841       --recheck    update $as_me by reconfiguring in the same conditions
8842       --file=FILE[:TEMPLATE]
8843                    instantiate the configuration file FILE
8844       --header=FILE[:TEMPLATE]
8845                    instantiate the configuration header FILE
8846
8847 Configuration files:
8848 $config_files
8849
8850 Configuration headers:
8851 $config_headers
8852
8853 Configuration commands:
8854 $config_commands
8855
8856 Report bugs to the package provider."
8857
8858 _ACEOF
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8860 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8861 ac_cs_version="\\
8862 config.status
8863 configured by $0, generated by GNU Autoconf 2.68,
8864   with options \\"\$ac_cs_config\\"
8865
8866 Copyright (C) 2010 Free Software Foundation, Inc.
8867 This config.status script is free software; the Free Software Foundation
8868 gives unlimited permission to copy, distribute and modify it."
8869
8870 ac_pwd='$ac_pwd'
8871 srcdir='$srcdir'
8872 INSTALL='$INSTALL'
8873 MKDIR_P='$MKDIR_P'
8874 AWK='$AWK'
8875 test -n "\$AWK" || AWK=awk
8876 _ACEOF
8877
8878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8879 # The default lists apply if the user does not specify any file.
8880 ac_need_defaults=:
8881 while test $# != 0
8882 do
8883   case $1 in
8884   --*=?*)
8885     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8886     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8887     ac_shift=:
8888     ;;
8889   --*=)
8890     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8891     ac_optarg=
8892     ac_shift=:
8893     ;;
8894   *)
8895     ac_option=$1
8896     ac_optarg=$2
8897     ac_shift=shift
8898     ;;
8899   esac
8900
8901   case $ac_option in
8902   # Handling of the options.
8903   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8904     ac_cs_recheck=: ;;
8905   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8906     $as_echo "$ac_cs_version"; exit ;;
8907   --config | --confi | --conf | --con | --co | --c )
8908     $as_echo "$ac_cs_config"; exit ;;
8909   --debug | --debu | --deb | --de | --d | -d )
8910     debug=: ;;
8911   --file | --fil | --fi | --f )
8912     $ac_shift
8913     case $ac_optarg in
8914     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8915     '') as_fn_error $? "missing file argument" ;;
8916     esac
8917     as_fn_append CONFIG_FILES " '$ac_optarg'"
8918     ac_need_defaults=false;;
8919   --header | --heade | --head | --hea )
8920     $ac_shift
8921     case $ac_optarg in
8922     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8923     esac
8924     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8925     ac_need_defaults=false;;
8926   --he | --h)
8927     # Conflict between --help and --header
8928     as_fn_error $? "ambiguous option: \`$1'
8929 Try \`$0 --help' for more information.";;
8930   --help | --hel | -h )
8931     $as_echo "$ac_cs_usage"; exit ;;
8932   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8933   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8934     ac_cs_silent=: ;;
8935
8936   # This is an error.
8937   -*) as_fn_error $? "unrecognized option: \`$1'
8938 Try \`$0 --help' for more information." ;;
8939
8940   *) as_fn_append ac_config_targets " $1"
8941      ac_need_defaults=false ;;
8942
8943   esac
8944   shift
8945 done
8946
8947 ac_configure_extra_args=
8948
8949 if $ac_cs_silent; then
8950   exec 6>/dev/null
8951   ac_configure_extra_args="$ac_configure_extra_args --silent"
8952 fi
8953
8954 _ACEOF
8955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8956 if \$ac_cs_recheck; then
8957   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8958   shift
8959   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8960   CONFIG_SHELL='$SHELL'
8961   export CONFIG_SHELL
8962   exec "\$@"
8963 fi
8964
8965 _ACEOF
8966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8967 exec 5>>config.log
8968 {
8969   echo
8970   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8971 ## Running $as_me. ##
8972 _ASBOX
8973   $as_echo "$ac_log"
8974 } >&5
8975
8976 _ACEOF
8977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8978 #
8979 # INIT-COMMANDS
8980 #
8981 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8982     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8983     # from automake < 1.5.
8984     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8985     # Capture the value of LINGUAS because we need it to compute CATALOGS.
8986     LINGUAS="${LINGUAS-%UNSET%}"
8987
8988 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8989
8990 _ACEOF
8991
8992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8993
8994 # Handling of arguments.
8995 for ac_config_target in $ac_config_targets
8996 do
8997   case $ac_config_target in
8998     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8999     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9000     "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
9001     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9002     "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
9003     "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
9004     "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
9005     "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
9006     "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
9007     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9008     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9009     "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
9010     "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
9011     "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
9012     "alsaucm/Makefile") CONFIG_FILES="$CONFIG_FILES alsaucm/Makefile" ;;
9013     "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
9014     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9015     "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
9016     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9017     "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
9018     "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
9019     "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
9020     "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
9021     "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
9022     "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
9023     "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
9024     "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
9025     "alsaloop/Makefile") CONFIG_FILES="$CONFIG_FILES alsaloop/Makefile" ;;
9026
9027   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9028   esac
9029 done
9030
9031
9032 # If the user did not use the arguments to specify the items to instantiate,
9033 # then the envvar interface is used.  Set only those that are not.
9034 # We use the long form for the default assignment because of an extremely
9035 # bizarre bug on SunOS 4.1.3.
9036 if $ac_need_defaults; then
9037   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9038   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9039   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9040 fi
9041
9042 # Have a temporary directory for convenience.  Make it in the build tree
9043 # simply because there is no reason against having it here, and in addition,
9044 # creating and moving files from /tmp can sometimes cause problems.
9045 # Hook for its removal unless debugging.
9046 # Note that there is a small window in which the directory will not be cleaned:
9047 # after its creation but before its name has been assigned to `$tmp'.
9048 $debug ||
9049 {
9050   tmp= ac_tmp=
9051   trap 'exit_status=$?
9052   : "${ac_tmp:=$tmp}"
9053   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9054 ' 0
9055   trap 'as_fn_exit 1' 1 2 13 15
9056 }
9057 # Create a (secure) tmp directory for tmp files.
9058
9059 {
9060   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9061   test -d "$tmp"
9062 }  ||
9063 {
9064   tmp=./conf$$-$RANDOM
9065   (umask 077 && mkdir "$tmp")
9066 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9067 ac_tmp=$tmp
9068
9069 # Set up the scripts for CONFIG_FILES section.
9070 # No need to generate them if there are no CONFIG_FILES.
9071 # This happens for instance with `./config.status config.h'.
9072 if test -n "$CONFIG_FILES"; then
9073
9074
9075 ac_cr=`echo X | tr X '\015'`
9076 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9077 # But we know of no other shell where ac_cr would be empty at this
9078 # point, so we can use a bashism as a fallback.
9079 if test "x$ac_cr" = x; then
9080   eval ac_cr=\$\'\\r\'
9081 fi
9082 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9083 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9084   ac_cs_awk_cr='\\r'
9085 else
9086   ac_cs_awk_cr=$ac_cr
9087 fi
9088
9089 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9090 _ACEOF
9091
9092
9093 {
9094   echo "cat >conf$$subs.awk <<_ACEOF" &&
9095   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9096   echo "_ACEOF"
9097 } >conf$$subs.sh ||
9098   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9099 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9100 ac_delim='%!_!# '
9101 for ac_last_try in false false false false false :; do
9102   . ./conf$$subs.sh ||
9103     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9104
9105   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9106   if test $ac_delim_n = $ac_delim_num; then
9107     break
9108   elif $ac_last_try; then
9109     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9110   else
9111     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9112   fi
9113 done
9114 rm -f conf$$subs.sh
9115
9116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9117 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9118 _ACEOF
9119 sed -n '
9120 h
9121 s/^/S["/; s/!.*/"]=/
9122 p
9123 g
9124 s/^[^!]*!//
9125 :repl
9126 t repl
9127 s/'"$ac_delim"'$//
9128 t delim
9129 :nl
9130 h
9131 s/\(.\{148\}\)..*/\1/
9132 t more1
9133 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9134 p
9135 n
9136 b repl
9137 :more1
9138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9139 p
9140 g
9141 s/.\{148\}//
9142 t nl
9143 :delim
9144 h
9145 s/\(.\{148\}\)..*/\1/
9146 t more2
9147 s/["\\]/\\&/g; s/^/"/; s/$/"/
9148 p
9149 b
9150 :more2
9151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9152 p
9153 g
9154 s/.\{148\}//
9155 t delim
9156 ' <conf$$subs.awk | sed '
9157 /^[^""]/{
9158   N
9159   s/\n//
9160 }
9161 ' >>$CONFIG_STATUS || ac_write_fail=1
9162 rm -f conf$$subs.awk
9163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9164 _ACAWK
9165 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9166   for (key in S) S_is_set[key] = 1
9167   FS = "\a"
9168
9169 }
9170 {
9171   line = $ 0
9172   nfields = split(line, field, "@")
9173   substed = 0
9174   len = length(field[1])
9175   for (i = 2; i < nfields; i++) {
9176     key = field[i]
9177     keylen = length(key)
9178     if (S_is_set[key]) {
9179       value = S[key]
9180       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9181       len += length(value) + length(field[++i])
9182       substed = 1
9183     } else
9184       len += 1 + keylen
9185   }
9186
9187   print line
9188 }
9189
9190 _ACAWK
9191 _ACEOF
9192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9194   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9195 else
9196   cat
9197 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9198   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9199 _ACEOF
9200
9201 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9202 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9203 # trailing colons and then remove the whole line if VPATH becomes empty
9204 # (actually we leave an empty line to preserve line numbers).
9205 if test "x$srcdir" = x.; then
9206   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9207 h
9208 s///
9209 s/^/:/
9210 s/[      ]*$/:/
9211 s/:\$(srcdir):/:/g
9212 s/:\${srcdir}:/:/g
9213 s/:@srcdir@:/:/g
9214 s/^:*//
9215 s/:*$//
9216 x
9217 s/\(=[   ]*\).*/\1/
9218 G
9219 s/\n//
9220 s/^[^=]*=[       ]*$//
9221 }'
9222 fi
9223
9224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9225 fi # test -n "$CONFIG_FILES"
9226
9227 # Set up the scripts for CONFIG_HEADERS section.
9228 # No need to generate them if there are no CONFIG_HEADERS.
9229 # This happens for instance with `./config.status Makefile'.
9230 if test -n "$CONFIG_HEADERS"; then
9231 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9232 BEGIN {
9233 _ACEOF
9234
9235 # Transform confdefs.h into an awk script `defines.awk', embedded as
9236 # here-document in config.status, that substitutes the proper values into
9237 # config.h.in to produce config.h.
9238
9239 # Create a delimiter string that does not exist in confdefs.h, to ease
9240 # handling of long lines.
9241 ac_delim='%!_!# '
9242 for ac_last_try in false false :; do
9243   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9244   if test -z "$ac_tt"; then
9245     break
9246   elif $ac_last_try; then
9247     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9248   else
9249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9250   fi
9251 done
9252
9253 # For the awk script, D is an array of macro values keyed by name,
9254 # likewise P contains macro parameters if any.  Preserve backslash
9255 # newline sequences.
9256
9257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9258 sed -n '
9259 s/.\{148\}/&'"$ac_delim"'/g
9260 t rset
9261 :rset
9262 s/^[     ]*#[    ]*define[       ][      ]*/ /
9263 t def
9264 d
9265 :def
9266 s/\\$//
9267 t bsnl
9268 s/["\\]/\\&/g
9269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9270 D["\1"]=" \3"/p
9271 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9272 d
9273 :bsnl
9274 s/["\\]/\\&/g
9275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9276 D["\1"]=" \3\\\\\\n"\\/p
9277 t cont
9278 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9279 t cont
9280 d
9281 :cont
9282 n
9283 s/.\{148\}/&'"$ac_delim"'/g
9284 t clear
9285 :clear
9286 s/\\$//
9287 t bsnlc
9288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9289 d
9290 :bsnlc
9291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9292 b cont
9293 ' <confdefs.h | sed '
9294 s/'"$ac_delim"'/"\\\
9295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9296
9297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9298   for (key in D) D_is_set[key] = 1
9299   FS = "\a"
9300 }
9301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9302   line = \$ 0
9303   split(line, arg, " ")
9304   if (arg[1] == "#") {
9305     defundef = arg[2]
9306     mac1 = arg[3]
9307   } else {
9308     defundef = substr(arg[1], 2)
9309     mac1 = arg[2]
9310   }
9311   split(mac1, mac2, "(") #)
9312   macro = mac2[1]
9313   prefix = substr(line, 1, index(line, defundef) - 1)
9314   if (D_is_set[macro]) {
9315     # Preserve the white space surrounding the "#".
9316     print prefix "define", macro P[macro] D[macro]
9317     next
9318   } else {
9319     # Replace #undef with comments.  This is necessary, for example,
9320     # in the case of _POSIX_SOURCE, which is predefined and required
9321     # on some systems where configure will not decide to define it.
9322     if (defundef == "undef") {
9323       print "/*", prefix defundef, macro, "*/"
9324       next
9325     }
9326   }
9327 }
9328 { print }
9329 _ACAWK
9330 _ACEOF
9331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9332   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9333 fi # test -n "$CONFIG_HEADERS"
9334
9335
9336 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9337 shift
9338 for ac_tag
9339 do
9340   case $ac_tag in
9341   :[FHLC]) ac_mode=$ac_tag; continue;;
9342   esac
9343   case $ac_mode$ac_tag in
9344   :[FHL]*:*);;
9345   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9346   :[FH]-) ac_tag=-:-;;
9347   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9348   esac
9349   ac_save_IFS=$IFS
9350   IFS=:
9351   set x $ac_tag
9352   IFS=$ac_save_IFS
9353   shift
9354   ac_file=$1
9355   shift
9356
9357   case $ac_mode in
9358   :L) ac_source=$1;;
9359   :[FH])
9360     ac_file_inputs=
9361     for ac_f
9362     do
9363       case $ac_f in
9364       -) ac_f="$ac_tmp/stdin";;
9365       *) # Look for the file first in the build tree, then in the source tree
9366          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9367          # because $ac_f cannot contain `:'.
9368          test -f "$ac_f" ||
9369            case $ac_f in
9370            [\\/$]*) false;;
9371            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9372            esac ||
9373            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9374       esac
9375       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9376       as_fn_append ac_file_inputs " '$ac_f'"
9377     done
9378
9379     # Let's still pretend it is `configure' which instantiates (i.e., don't
9380     # use $as_me), people would be surprised to read:
9381     #    /* config.h.  Generated by config.status.  */
9382     configure_input='Generated from '`
9383           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9384         `' by configure.'
9385     if test x"$ac_file" != x-; then
9386       configure_input="$ac_file.  $configure_input"
9387       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9388 $as_echo "$as_me: creating $ac_file" >&6;}
9389     fi
9390     # Neutralize special characters interpreted by sed in replacement strings.
9391     case $configure_input in #(
9392     *\&* | *\|* | *\\* )
9393        ac_sed_conf_input=`$as_echo "$configure_input" |
9394        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9395     *) ac_sed_conf_input=$configure_input;;
9396     esac
9397
9398     case $ac_tag in
9399     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9400       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9401     esac
9402     ;;
9403   esac
9404
9405   ac_dir=`$as_dirname -- "$ac_file" ||
9406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9407          X"$ac_file" : 'X\(//\)[^/]' \| \
9408          X"$ac_file" : 'X\(//\)$' \| \
9409          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9410 $as_echo X"$ac_file" |
9411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9412             s//\1/
9413             q
9414           }
9415           /^X\(\/\/\)[^/].*/{
9416             s//\1/
9417             q
9418           }
9419           /^X\(\/\/\)$/{
9420             s//\1/
9421             q
9422           }
9423           /^X\(\/\).*/{
9424             s//\1/
9425             q
9426           }
9427           s/.*/./; q'`
9428   as_dir="$ac_dir"; as_fn_mkdir_p
9429   ac_builddir=.
9430
9431 case "$ac_dir" in
9432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9433 *)
9434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9435   # A ".." for each directory in $ac_dir_suffix.
9436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9437   case $ac_top_builddir_sub in
9438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9440   esac ;;
9441 esac
9442 ac_abs_top_builddir=$ac_pwd
9443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9444 # for backward compatibility:
9445 ac_top_builddir=$ac_top_build_prefix
9446
9447 case $srcdir in
9448   .)  # We are building in place.
9449     ac_srcdir=.
9450     ac_top_srcdir=$ac_top_builddir_sub
9451     ac_abs_top_srcdir=$ac_pwd ;;
9452   [\\/]* | ?:[\\/]* )  # Absolute name.
9453     ac_srcdir=$srcdir$ac_dir_suffix;
9454     ac_top_srcdir=$srcdir
9455     ac_abs_top_srcdir=$srcdir ;;
9456   *) # Relative name.
9457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9458     ac_top_srcdir=$ac_top_build_prefix$srcdir
9459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9460 esac
9461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9462
9463
9464   case $ac_mode in
9465   :F)
9466   #
9467   # CONFIG_FILE
9468   #
9469
9470   case $INSTALL in
9471   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9472   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9473   esac
9474   ac_MKDIR_P=$MKDIR_P
9475   case $MKDIR_P in
9476   [\\/$]* | ?:[\\/]* ) ;;
9477   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9478   esac
9479 _ACEOF
9480
9481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9482 # If the template does not know about datarootdir, expand it.
9483 # FIXME: This hack should be removed a few years after 2.60.
9484 ac_datarootdir_hack=; ac_datarootdir_seen=
9485 ac_sed_dataroot='
9486 /datarootdir/ {
9487   p
9488   q
9489 }
9490 /@datadir@/p
9491 /@docdir@/p
9492 /@infodir@/p
9493 /@localedir@/p
9494 /@mandir@/p'
9495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9496 *datarootdir*) ac_datarootdir_seen=yes;;
9497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9500 _ACEOF
9501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9502   ac_datarootdir_hack='
9503   s&@datadir@&$datadir&g
9504   s&@docdir@&$docdir&g
9505   s&@infodir@&$infodir&g
9506   s&@localedir@&$localedir&g
9507   s&@mandir@&$mandir&g
9508   s&\\\${datarootdir}&$datarootdir&g' ;;
9509 esac
9510 _ACEOF
9511
9512 # Neutralize VPATH when `$srcdir' = `.'.
9513 # Shell code in configure.ac might set extrasub.
9514 # FIXME: do we really want to maintain this feature?
9515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9516 ac_sed_extra="$ac_vpsub
9517 $extrasub
9518 _ACEOF
9519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9520 :t
9521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9522 s|@configure_input@|$ac_sed_conf_input|;t t
9523 s&@top_builddir@&$ac_top_builddir_sub&;t t
9524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9525 s&@srcdir@&$ac_srcdir&;t t
9526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9527 s&@top_srcdir@&$ac_top_srcdir&;t t
9528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9529 s&@builddir@&$ac_builddir&;t t
9530 s&@abs_builddir@&$ac_abs_builddir&;t t
9531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9532 s&@INSTALL@&$ac_INSTALL&;t t
9533 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9534 $ac_datarootdir_hack
9535 "
9536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9537   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9538
9539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9540   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9541   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9542       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9544 which seems to be undefined.  Please make sure it is defined" >&5
9545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9546 which seems to be undefined.  Please make sure it is defined" >&2;}
9547
9548   rm -f "$ac_tmp/stdin"
9549   case $ac_file in
9550   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9551   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9552   esac \
9553   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9554  ;;
9555   :H)
9556   #
9557   # CONFIG_HEADER
9558   #
9559   if test x"$ac_file" != x-; then
9560     {
9561       $as_echo "/* $configure_input  */" \
9562       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9563     } >"$ac_tmp/config.h" \
9564       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9565     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9566       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9568     else
9569       rm -f "$ac_file"
9570       mv "$ac_tmp/config.h" "$ac_file" \
9571         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9572     fi
9573   else
9574     $as_echo "/* $configure_input  */" \
9575       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9576       || as_fn_error $? "could not create -" "$LINENO" 5
9577   fi
9578 # Compute "$ac_file"'s index in $config_headers.
9579 _am_arg="$ac_file"
9580 _am_stamp_count=1
9581 for _am_header in $config_headers :; do
9582   case $_am_header in
9583     $_am_arg | $_am_arg:* )
9584       break ;;
9585     * )
9586       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9587   esac
9588 done
9589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9591          X"$_am_arg" : 'X\(//\)[^/]' \| \
9592          X"$_am_arg" : 'X\(//\)$' \| \
9593          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9594 $as_echo X"$_am_arg" |
9595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9596             s//\1/
9597             q
9598           }
9599           /^X\(\/\/\)[^/].*/{
9600             s//\1/
9601             q
9602           }
9603           /^X\(\/\/\)$/{
9604             s//\1/
9605             q
9606           }
9607           /^X\(\/\).*/{
9608             s//\1/
9609             q
9610           }
9611           s/.*/./; q'`/stamp-h$_am_stamp_count
9612  ;;
9613
9614   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9615 $as_echo "$as_me: executing $ac_file commands" >&6;}
9616  ;;
9617   esac
9618
9619
9620   case $ac_file$ac_mode in
9621     "po-directories":C)
9622     for ac_file in $CONFIG_FILES; do
9623       # Support "outfile[:infile[:infile...]]"
9624       case "$ac_file" in
9625         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9626       esac
9627       # PO directories have a Makefile.in generated from Makefile.in.in.
9628       case "$ac_file" in */Makefile.in)
9629         # Adjust a relative srcdir.
9630         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9631         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9632         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9633         # In autoconf-2.13 it is called $ac_given_srcdir.
9634         # In autoconf-2.50 it is called $srcdir.
9635         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9636         case "$ac_given_srcdir" in
9637           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9638           /*) top_srcdir="$ac_given_srcdir" ;;
9639           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9640         esac
9641         # Treat a directory as a PO directory if and only if it has a
9642         # POTFILES.in file. This allows packages to have multiple PO
9643         # directories under different names or in different locations.
9644         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9645           rm -f "$ac_dir/POTFILES"
9646           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9647           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9648           POMAKEFILEDEPS="POTFILES.in"
9649           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9650           # on $ac_dir but don't depend on user-specified configuration
9651           # parameters.
9652           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9653             # The LINGUAS file contains the set of available languages.
9654             if test -n "$OBSOLETE_ALL_LINGUAS"; then
9655               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9656             fi
9657             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9658             # Hide the ALL_LINGUAS assigment from automake < 1.5.
9659             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9660             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9661           else
9662             # The set of available languages was given in configure.in.
9663             # Hide the ALL_LINGUAS assigment from automake < 1.5.
9664             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9665           fi
9666           # Compute POFILES
9667           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9668           # Compute UPDATEPOFILES
9669           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9670           # Compute DUMMYPOFILES
9671           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9672           # Compute GMOFILES
9673           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9674           case "$ac_given_srcdir" in
9675             .) srcdirpre= ;;
9676             *) srcdirpre='$(srcdir)/' ;;
9677           esac
9678           POFILES=
9679           UPDATEPOFILES=
9680           DUMMYPOFILES=
9681           GMOFILES=
9682           for lang in $ALL_LINGUAS; do
9683             POFILES="$POFILES $srcdirpre$lang.po"
9684             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9685             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9686             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9687           done
9688           # CATALOGS depends on both $ac_dir and the user's LINGUAS
9689           # environment variable.
9690           INST_LINGUAS=
9691           if test -n "$ALL_LINGUAS"; then
9692             for presentlang in $ALL_LINGUAS; do
9693               useit=no
9694               if test "%UNSET%" != "$LINGUAS"; then
9695                 desiredlanguages="$LINGUAS"
9696               else
9697                 desiredlanguages="$ALL_LINGUAS"
9698               fi
9699               for desiredlang in $desiredlanguages; do
9700                 # Use the presentlang catalog if desiredlang is
9701                 #   a. equal to presentlang, or
9702                 #   b. a variant of presentlang (because in this case,
9703                 #      presentlang can be used as a fallback for messages
9704                 #      which are not translated in the desiredlang catalog).
9705                 case "$desiredlang" in
9706                   "$presentlang"*) useit=yes;;
9707                 esac
9708               done
9709               if test $useit = yes; then
9710                 INST_LINGUAS="$INST_LINGUAS $presentlang"
9711               fi
9712             done
9713           fi
9714           CATALOGS=
9715           if test -n "$INST_LINGUAS"; then
9716             for lang in $INST_LINGUAS; do
9717               CATALOGS="$CATALOGS $lang.gmo"
9718             done
9719           fi
9720           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9721           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9722           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9723             if test -f "$f"; then
9724               case "$f" in
9725                 *.orig | *.bak | *~) ;;
9726                 *) cat "$f" >> "$ac_dir/Makefile" ;;
9727               esac
9728             fi
9729           done
9730         fi
9731         ;;
9732       esac
9733     done ;;
9734     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9735   # Autoconf 2.62 quotes --file arguments for eval, but not when files
9736   # are listed without --file.  Let's play safe and only enable the eval
9737   # if we detect the quoting.
9738   case $CONFIG_FILES in
9739   *\'*) eval set x "$CONFIG_FILES" ;;
9740   *)   set x $CONFIG_FILES ;;
9741   esac
9742   shift
9743   for mf
9744   do
9745     # Strip MF so we end up with the name of the file.
9746     mf=`echo "$mf" | sed -e 's/:.*$//'`
9747     # Check whether this is an Automake generated Makefile or not.
9748     # We used to match only the files named `Makefile.in', but
9749     # some people rename them; so instead we look at the file content.
9750     # Grep'ing the first line is not enough: some people post-process
9751     # each Makefile.in and add a new line on top of each file to say so.
9752     # Grep'ing the whole file is not good either: AIX grep has a line
9753     # limit of 2048, but all sed's we know have understand at least 4000.
9754     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9755       dirpart=`$as_dirname -- "$mf" ||
9756 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9757          X"$mf" : 'X\(//\)[^/]' \| \
9758          X"$mf" : 'X\(//\)$' \| \
9759          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9760 $as_echo X"$mf" |
9761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9762             s//\1/
9763             q
9764           }
9765           /^X\(\/\/\)[^/].*/{
9766             s//\1/
9767             q
9768           }
9769           /^X\(\/\/\)$/{
9770             s//\1/
9771             q
9772           }
9773           /^X\(\/\).*/{
9774             s//\1/
9775             q
9776           }
9777           s/.*/./; q'`
9778     else
9779       continue
9780     fi
9781     # Extract the definition of DEPDIR, am__include, and am__quote
9782     # from the Makefile without running `make'.
9783     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9784     test -z "$DEPDIR" && continue
9785     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9786     test -z "am__include" && continue
9787     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9788     # When using ansi2knr, U may be empty or an underscore; expand it
9789     U=`sed -n 's/^U = //p' < "$mf"`
9790     # Find all dependency output files, they are included files with
9791     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9792     # simplest approach to changing $(DEPDIR) to its actual value in the
9793     # expansion.
9794     for file in `sed -n "
9795       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9796          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9797       # Make sure the directory exists.
9798       test -f "$dirpart/$file" && continue
9799       fdir=`$as_dirname -- "$file" ||
9800 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9801          X"$file" : 'X\(//\)[^/]' \| \
9802          X"$file" : 'X\(//\)$' \| \
9803          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9804 $as_echo X"$file" |
9805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9806             s//\1/
9807             q
9808           }
9809           /^X\(\/\/\)[^/].*/{
9810             s//\1/
9811             q
9812           }
9813           /^X\(\/\/\)$/{
9814             s//\1/
9815             q
9816           }
9817           /^X\(\/\).*/{
9818             s//\1/
9819             q
9820           }
9821           s/.*/./; q'`
9822       as_dir=$dirpart/$fdir; as_fn_mkdir_p
9823       # echo "creating $dirpart/$file"
9824       echo '# dummy' > "$dirpart/$file"
9825     done
9826   done
9827 }
9828  ;;
9829
9830   esac
9831 done # for ac_tag
9832
9833
9834 as_fn_exit 0
9835 _ACEOF
9836 ac_clean_files=$ac_clean_files_save
9837
9838 test $ac_write_fail = 0 ||
9839   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9840
9841
9842 # configure is writing to config.log, and then calls config.status.
9843 # config.status does its own redirection, appending to config.log.
9844 # Unfortunately, on DOS this fails, as config.log is still kept open
9845 # by configure, so config.status won't be able to write to it; its
9846 # output is simply discarded.  So we exec the FD to /dev/null,
9847 # effectively closing config.log, so it can be properly (re)opened and
9848 # appended to by config.status.  When coming back to configure, we
9849 # need to make the FD available again.
9850 if test "$no_create" != yes; then
9851   ac_cs_success=:
9852   ac_config_status_args=
9853   test "$silent" = yes &&
9854     ac_config_status_args="$ac_config_status_args --quiet"
9855   exec 5>/dev/null
9856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9857   exec 5>>config.log
9858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9859   # would make configure fail if this is the last instruction.
9860   $ac_cs_success || as_fn_exit 1
9861 fi
9862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9865 fi
9866