OSDN Git Service

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