]> git.deb.at Git - pkg/abook.git/blob - configure
Autotools update to autoconf-2.68 / automake-1.11 / gettextize 0.18.1.
[pkg/abook.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="abook.c"
566 gt_needs=
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_header_list=
604 gl_use_threads_default=
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 ANSI2KNR
610 U
611 USE_INCLUDED_INTL_H_FALSE
612 USE_INCLUDED_INTL_H_TRUE
613 POSUB
614 LTLIBINTL
615 LIBINTL
616 INTLLIBS
617 INTL_LIBTOOL_SUFFIX_PREFIX
618 INTLOBJS
619 GENCAT
620 INSTOBJEXT
621 DATADIRNAME
622 CATOBJEXT
623 USE_INCLUDED_LIBINTL
624 BUILD_INCLUDED_LIBINTL
625 LTLIBC
626 WINDRES
627 WOE32
628 WOE32DLL
629 HAVE_WPRINTF
630 HAVE_NEWLOCALE
631 HAVE_SNPRINTF
632 HAVE_ASPRINTF
633 HAVE_POSIX_PRINTF
634 INTL_DEFAULT_VERBOSITY
635 INTL_MACOSX_LIBS
636 GLIBC21
637 INTLBISON
638 LTLIBICONV
639 LIBICONV
640 LTLIBMULTITHREAD
641 LIBMULTITHREAD
642 LTLIBTHREAD
643 LIBTHREAD
644 LIBPTH_PREFIX
645 LTLIBPTH
646 LIBPTH
647 PRI_MACROS_BROKEN
648 ALLOCA
649 HAVE_VISIBILITY
650 CFLAG_VISIBILITY
651 RANLIB
652 GLIBC2
653 EGREP
654 GREP
655 CPP
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 XGETTEXT_EXTRA_OPTIONS
681 MSGMERGE
682 XGETTEXT_015
683 XGETTEXT
684 GMSGFMT_015
685 MSGFMT_015
686 GMSGFMT
687 MSGFMT
688 GETTEXT_MACRO_VERSION
689 USE_NLS
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_nls
755 enable_dependency_tracking
756 enable_threads
757 with_gnu_ld
758 enable_rpath
759 with_libpth_prefix
760 with_libiconv_prefix
761 with_included_gettext
762 with_libintl_prefix
763 with_localedir
764 with_curses
765 with_readline
766 enable_debug
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831   # If the previous option needs an argument, assign it.
832   if test -n "$ac_prev"; then
833     eval $ac_prev=\$ac_option
834     ac_prev=
835     continue
836   fi
837
838   case $ac_option in
839   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840   *=)   ac_optarg= ;;
841   *)    ac_optarg=yes ;;
842   esac
843
844   # Accept the important Cygnus configure options, so we can diagnose typos.
845
846   case $ac_dashdash$ac_option in
847   --)
848     ac_dashdash=yes ;;
849
850   -bindir | --bindir | --bindi | --bind | --bin | --bi)
851     ac_prev=bindir ;;
852   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853     bindir=$ac_optarg ;;
854
855   -build | --build | --buil | --bui | --bu)
856     ac_prev=build_alias ;;
857   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858     build_alias=$ac_optarg ;;
859
860   -cache-file | --cache-file | --cache-fil | --cache-fi \
861   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862     ac_prev=cache_file ;;
863   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865     cache_file=$ac_optarg ;;
866
867   --config-cache | -C)
868     cache_file=config.cache ;;
869
870   -datadir | --datadir | --datadi | --datad)
871     ac_prev=datadir ;;
872   -datadir=* | --datadir=* | --datadi=* | --datad=*)
873     datadir=$ac_optarg ;;
874
875   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876   | --dataroo | --dataro | --datar)
877     ac_prev=datarootdir ;;
878   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880     datarootdir=$ac_optarg ;;
881
882   -disable-* | --disable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       as_fn_error $? "invalid feature name: $ac_useropt"
887     ac_useropt_orig=$ac_useropt
888     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889     case $ac_user_opts in
890       *"
891 "enable_$ac_useropt"
892 "*) ;;
893       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894          ac_unrecognized_sep=', ';;
895     esac
896     eval enable_$ac_useropt=no ;;
897
898   -docdir | --docdir | --docdi | --doc | --do)
899     ac_prev=docdir ;;
900   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901     docdir=$ac_optarg ;;
902
903   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904     ac_prev=dvidir ;;
905   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906     dvidir=$ac_optarg ;;
907
908   -enable-* | --enable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=\$ac_optarg ;;
923
924   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926   | --exec | --exe | --ex)
927     ac_prev=exec_prefix ;;
928   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930   | --exec=* | --exe=* | --ex=*)
931     exec_prefix=$ac_optarg ;;
932
933   -gas | --gas | --ga | --g)
934     # Obsolete; use --with-gas.
935     with_gas=yes ;;
936
937   -help | --help | --hel | --he | -h)
938     ac_init_help=long ;;
939   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940     ac_init_help=recursive ;;
941   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942     ac_init_help=short ;;
943
944   -host | --host | --hos | --ho)
945     ac_prev=host_alias ;;
946   -host=* | --host=* | --hos=* | --ho=*)
947     host_alias=$ac_optarg ;;
948
949   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950     ac_prev=htmldir ;;
951   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952   | --ht=*)
953     htmldir=$ac_optarg ;;
954
955   -includedir | --includedir | --includedi | --included | --include \
956   | --includ | --inclu | --incl | --inc)
957     ac_prev=includedir ;;
958   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959   | --includ=* | --inclu=* | --incl=* | --inc=*)
960     includedir=$ac_optarg ;;
961
962   -infodir | --infodir | --infodi | --infod | --info | --inf)
963     ac_prev=infodir ;;
964   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965     infodir=$ac_optarg ;;
966
967   -libdir | --libdir | --libdi | --libd)
968     ac_prev=libdir ;;
969   -libdir=* | --libdir=* | --libdi=* | --libd=*)
970     libdir=$ac_optarg ;;
971
972   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973   | --libexe | --libex | --libe)
974     ac_prev=libexecdir ;;
975   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976   | --libexe=* | --libex=* | --libe=*)
977     libexecdir=$ac_optarg ;;
978
979   -localedir | --localedir | --localedi | --localed | --locale)
980     ac_prev=localedir ;;
981   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982     localedir=$ac_optarg ;;
983
984   -localstatedir | --localstatedir | --localstatedi | --localstated \
985   | --localstate | --localstat | --localsta | --localst | --locals)
986     ac_prev=localstatedir ;;
987   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989     localstatedir=$ac_optarg ;;
990
991   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992     ac_prev=mandir ;;
993   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994     mandir=$ac_optarg ;;
995
996   -nfp | --nfp | --nf)
997     # Obsolete; use --without-fp.
998     with_fp=no ;;
999
1000   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001   | --no-cr | --no-c | -n)
1002     no_create=yes ;;
1003
1004   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006     no_recursion=yes ;;
1007
1008   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010   | --oldin | --oldi | --old | --ol | --o)
1011     ac_prev=oldincludedir ;;
1012   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015     oldincludedir=$ac_optarg ;;
1016
1017   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018     ac_prev=prefix ;;
1019   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020     prefix=$ac_optarg ;;
1021
1022   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023   | --program-pre | --program-pr | --program-p)
1024     ac_prev=program_prefix ;;
1025   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027     program_prefix=$ac_optarg ;;
1028
1029   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030   | --program-suf | --program-su | --program-s)
1031     ac_prev=program_suffix ;;
1032   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034     program_suffix=$ac_optarg ;;
1035
1036   -program-transform-name | --program-transform-name \
1037   | --program-transform-nam | --program-transform-na \
1038   | --program-transform-n | --program-transform- \
1039   | --program-transform | --program-transfor \
1040   | --program-transfo | --program-transf \
1041   | --program-trans | --program-tran \
1042   | --progr-tra | --program-tr | --program-t)
1043     ac_prev=program_transform_name ;;
1044   -program-transform-name=* | --program-transform-name=* \
1045   | --program-transform-nam=* | --program-transform-na=* \
1046   | --program-transform-n=* | --program-transform-=* \
1047   | --program-transform=* | --program-transfor=* \
1048   | --program-transfo=* | --program-transf=* \
1049   | --program-trans=* | --program-tran=* \
1050   | --progr-tra=* | --program-tr=* | --program-t=*)
1051     program_transform_name=$ac_optarg ;;
1052
1053   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054     ac_prev=pdfdir ;;
1055   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056     pdfdir=$ac_optarg ;;
1057
1058   -psdir | --psdir | --psdi | --psd | --ps)
1059     ac_prev=psdir ;;
1060   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061     psdir=$ac_optarg ;;
1062
1063   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064   | -silent | --silent | --silen | --sile | --sil)
1065     silent=yes ;;
1066
1067   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068     ac_prev=sbindir ;;
1069   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070   | --sbi=* | --sb=*)
1071     sbindir=$ac_optarg ;;
1072
1073   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075   | --sharedst | --shareds | --shared | --share | --shar \
1076   | --sha | --sh)
1077     ac_prev=sharedstatedir ;;
1078   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081   | --sha=* | --sh=*)
1082     sharedstatedir=$ac_optarg ;;
1083
1084   -site | --site | --sit)
1085     ac_prev=site ;;
1086   -site=* | --site=* | --sit=*)
1087     site=$ac_optarg ;;
1088
1089   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090     ac_prev=srcdir ;;
1091   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092     srcdir=$ac_optarg ;;
1093
1094   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095   | --syscon | --sysco | --sysc | --sys | --sy)
1096     ac_prev=sysconfdir ;;
1097   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099     sysconfdir=$ac_optarg ;;
1100
1101   -target | --target | --targe | --targ | --tar | --ta | --t)
1102     ac_prev=target_alias ;;
1103   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104     target_alias=$ac_optarg ;;
1105
1106   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107     verbose=yes ;;
1108
1109   -version | --version | --versio | --versi | --vers | -V)
1110     ac_init_version=: ;;
1111
1112   -with-* | --with-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       as_fn_error $? "invalid package name: $ac_useropt"
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval with_$ac_useropt=\$ac_optarg ;;
1127
1128   -without-* | --without-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=no ;;
1143
1144   --x)
1145     # Obsolete; use --with-x.
1146     with_x=yes ;;
1147
1148   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149   | --x-incl | --x-inc | --x-in | --x-i)
1150     ac_prev=x_includes ;;
1151   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153     x_includes=$ac_optarg ;;
1154
1155   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157     ac_prev=x_libraries ;;
1158   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160     x_libraries=$ac_optarg ;;
1161
1162   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164     ;;
1165
1166   *=*)
1167     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168     # Reject names that are not valid shell variable names.
1169     case $ac_envvar in #(
1170       '' | [0-9]* | *[!_$as_cr_alnum]* )
1171       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172     esac
1173     eval $ac_envvar=\$ac_optarg
1174     export $ac_envvar ;;
1175
1176   *)
1177     # FIXME: should be removed in autoconf 3.0.
1178     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182     ;;
1183
1184   esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189   as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193   case $enable_option_checking in
1194     no) ;;
1195     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197   esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   # Remove trailing slashes.
1208   case $ac_val in
1209     */ )
1210       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211       eval $ac_var=\$ac_val;;
1212   esac
1213   # Be sure to have absolute directory names.
1214   case $ac_val in
1215     [\\/$]* | ?:[\\/]* )  continue;;
1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217   esac
1218   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1233     If a cross compiler is detected then cross compile mode will be used" >&2
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$as_myself" : 'X\(//\)[^/]' \| \
1260          X"$as_myself" : 'X\(//\)$' \| \
1261          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures this package to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking ...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR            user executables [EPREFIX/bin]
1354   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR        program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR            object code libraries [EPREFIX/lib]
1360   --includedir=DIR        C header files [PREFIX/include]
1361   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR           info documentation [DATAROOTDIR/info]
1365   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR            man documentation [DATAROOTDIR/man]
1367   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1368   --htmldir=DIR           html documentation [DOCDIR]
1369   --dvidir=DIR            dvi documentation [DOCDIR]
1370   --pdfdir=DIR            pdf documentation [DOCDIR]
1371   --psdir=DIR             ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 Program names:
1377   --program-prefix=PREFIX            prepend PREFIX to installed program names
1378   --program-suffix=SUFFIX            append SUFFIX to installed program names
1379   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-option-checking  ignore unrecognized --enable/--with options
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --disable-nls           do not use Native Language Support
1396   --disable-dependency-tracking  speeds up one-time build
1397   --enable-dependency-tracking   do not reject slow dependency extractors
1398   --enable-threads={posix|solaris|pth|win32}
1399                           specify multithreading API
1400   --disable-threads       build without multithread safety
1401   --disable-rpath         do not hardcode runtime library paths
1402   --enable-debug          Enable debugging support
1403
1404 Optional Packages:
1405   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1406   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1407   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1408   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1409   --without-libpth-prefix     don't search for libpth in includedir and libdir
1410   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1411   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1412   --with-included-gettext use the GNU gettext library included here
1413   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1414   --without-libintl-prefix     don't search for libintl in includedir and libdir
1415   --with-localedir=PATH      Where the locale files are installed
1416   --with-curses=DIR       Where ncurses is installed
1417   --with-readline=DIR     Where readline is installed
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to the package provider.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438   # If there are subdirs, report their specific --help.
1439   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440     test -d "$ac_dir" ||
1441       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442       continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 configure
1496 generated by GNU Autoconf 2.68
1497
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502   exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1513 {
1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515   rm -f conftest.$ac_objext
1516   if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519   *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523   (eval "$ac_compile") 2>conftest.err
1524   ac_status=$?
1525   if test -s conftest.err; then
1526     grep -v '^ *+' conftest.err >conftest.er1
1527     cat conftest.er1 >&5
1528     mv -f conftest.er1 conftest.err
1529   fi
1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531   test $ac_status = 0; } && {
1532          test -z "$ac_c_werror_flag" ||
1533          test ! -s conftest.err
1534        } && test -s conftest.$ac_objext; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540         ac_retval=1
1541 fi
1542   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543   as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_compile
1546
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } > conftest.i && {
1569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        }; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577     ac_retval=1
1578 fi
1579   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580   as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_cpp
1583
1584 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1585 # -------------------------------------------
1586 # Tests whether TYPE exists after having included INCLUDES, setting cache
1587 # variable VAR accordingly.
1588 ac_fn_c_check_type ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594   $as_echo_n "(cached) " >&6
1595 else
1596   eval "$3=no"
1597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h.  */
1599 $4
1600 int
1601 main ()
1602 {
1603 if (sizeof ($2))
1604          return 0;
1605   ;
1606   return 0;
1607 }
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h.  */
1612 $4
1613 int
1614 main ()
1615 {
1616 if (sizeof (($2)))
1617             return 0;
1618   ;
1619   return 0;
1620 }
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623
1624 else
1625   eval "$3=yes"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_type
1637
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1642 ac_fn_c_try_run ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_link") 2>&5
1653   ac_status=$?
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656   { { case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_try") 2>&5
1663   ac_status=$?
1664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665   test $ac_status = 0; }; }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: program exited with status $ac_status" >&5
1669        $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672        ac_retval=$ac_status
1673 fi
1674   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_run
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 else
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698   eval "$3=yes"
1699 else
1700   eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   rm -f conftest.$ac_objext conftest$ac_exeext
1718   if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_link") 2>conftest.err
1726   ac_status=$?
1727   if test -s conftest.err; then
1728     grep -v '^ *+' conftest.err >conftest.er1
1729     cat conftest.er1 >&5
1730     mv -f conftest.er1 conftest.err
1731   fi
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && {
1734          test -z "$ac_c_werror_flag" ||
1735          test ! -s conftest.err
1736        } && test -s conftest$ac_exeext && {
1737          test "$cross_compiling" = yes ||
1738          $as_test_x conftest$ac_exeext
1739        }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745         ac_retval=1
1746 fi
1747   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749   # interfere with the next link command; also delete a directory that is
1750   # left behind by Apple's compiler.  We do this before executing the actions.
1751   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_link
1756
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775     which can conflict with char $2 (); below.
1776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777     <limits.h> exists even on freestanding compilers.  */
1778
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1784
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788    Use char because int might match the return type of a GCC
1789    builtin and then its argument prototype would still apply.  */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795     to always fail with ENOSYS.  Some functions are actually named
1796     something starting with __ and the normal name is an alias.  */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main ()
1803 {
1804 return $2 ();
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810   eval "$3=yes"
1811 else
1812   eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext \
1815     conftest$ac_exeext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   if eval \${$3+:} false; then :
1833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836   $as_echo_n "(cached) " >&6
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842   # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851   ac_header_compiler=yes
1852 else
1853   ac_header_compiler=no
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1858
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867   ac_header_preproc=yes
1868 else
1869   ac_header_preproc=no
1870 fi
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1874
1875 # So?  What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877   yes:no: )
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882     ;;
1883   no:yes:* )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894     ;;
1895 esac
1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899   $as_echo_n "(cached) " >&6
1900 else
1901   eval "$3=\$ac_header_compiler"
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_header_mongrel
1910
1911 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1912 # --------------------------------------------
1913 # Tries to find the compile-time value of EXPR in a program that includes
1914 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1915 # computed
1916 ac_fn_c_compute_int ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if test "$cross_compiling" = yes; then
1920     # Depending upon the size, compute the lo and hi bounds.
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 $4
1924 int
1925 main ()
1926 {
1927 static int test_array [1 - 2 * !(($2) >= 0)];
1928 test_array [0] = 0
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   ac_lo=0 ac_mid=0
1936   while :; do
1937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 int
1941 main ()
1942 {
1943 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1944 test_array [0] = 0
1945
1946   ;
1947   return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951   ac_hi=$ac_mid; break
1952 else
1953   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1954                         if test $ac_lo -le $ac_mid; then
1955                           ac_lo= ac_hi=
1956                           break
1957                         fi
1958                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961   done
1962 else
1963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 int
1967 main ()
1968 {
1969 static int test_array [1 - 2 * !(($2) < 0)];
1970 test_array [0] = 0
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   ac_hi=-1 ac_mid=-1
1978   while :; do
1979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1986 test_array [0] = 0
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_lo=$ac_mid; break
1994 else
1995   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996                         if test $ac_mid -le $ac_hi; then
1997                           ac_lo= ac_hi=
1998                           break
1999                         fi
2000                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003   done
2004 else
2005   ac_lo= ac_hi=
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   ac_hi=$ac_mid
2028 else
2029   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 done
2033 case $ac_lo in #((
2034 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2035 '') ac_retval=1 ;;
2036 esac
2037   else
2038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 static long int longval () { return $2; }
2042 static unsigned long int ulongval () { return $2; }
2043 #include <stdio.h>
2044 #include <stdlib.h>
2045 int
2046 main ()
2047 {
2048
2049   FILE *f = fopen ("conftest.val", "w");
2050   if (! f)
2051     return 1;
2052   if (($2) < 0)
2053     {
2054       long int i = longval ();
2055       if (i != ($2))
2056         return 1;
2057       fprintf (f, "%ld", i);
2058     }
2059   else
2060     {
2061       unsigned long int i = ulongval ();
2062       if (i != ($2))
2063         return 1;
2064       fprintf (f, "%lu", i);
2065     }
2066   /* Do not output a trailing newline, as this causes \r\n confusion
2067      on some platforms.  */
2068   return ferror (f) || fclose (f) != 0;
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_run "$LINENO"; then :
2075   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2076 else
2077   ac_retval=1
2078 fi
2079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2080   conftest.$ac_objext conftest.beam conftest.$ac_ext
2081 rm -f conftest.val
2082
2083   fi
2084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085   as_fn_set_status $ac_retval
2086
2087 } # ac_fn_c_compute_int
2088
2089 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2090 # ---------------------------------------------
2091 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2092 # accordingly.
2093 ac_fn_c_check_decl ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   as_decl_name=`echo $2|sed 's/ *(.*//'`
2097   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2099 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2100 if eval \${$3+:} false; then :
2101   $as_echo_n "(cached) " >&6
2102 else
2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 #ifndef $as_decl_name
2110 #ifdef __cplusplus
2111   (void) $as_decl_use;
2112 #else
2113   (void) $as_decl_name;
2114 #endif
2115 #endif
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   eval "$3=yes"
2123 else
2124   eval "$3=no"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_decl
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2137
2138 It was created by $as_me, which was
2139 generated by GNU Autoconf 2.68.  Invocation command line was
2140
2141   $ $0 $@
2142
2143 _ACEOF
2144 exec 5>>config.log
2145 {
2146 cat <<_ASUNAME
2147 ## --------- ##
2148 ## Platform. ##
2149 ## --------- ##
2150
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2159
2160 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2161 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2164 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2165 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2166 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2167
2168 _ASUNAME
2169
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175     $as_echo "PATH: $as_dir"
2176   done
2177 IFS=$as_save_IFS
2178
2179 } >&5
2180
2181 cat >&5 <<_ACEOF
2182
2183
2184 ## ----------- ##
2185 ## Core tests. ##
2186 ## ----------- ##
2187
2188 _ACEOF
2189
2190
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2196 ac_configure_args=
2197 ac_configure_args0=
2198 ac_configure_args1=
2199 ac_must_keep_next=false
2200 for ac_pass in 1 2
2201 do
2202   for ac_arg
2203   do
2204     case $ac_arg in
2205     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207     | -silent | --silent | --silen | --sile | --sil)
2208       continue ;;
2209     *\'*)
2210       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211     esac
2212     case $ac_pass in
2213     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214     2)
2215       as_fn_append ac_configure_args1 " '$ac_arg'"
2216       if test $ac_must_keep_next = true; then
2217         ac_must_keep_next=false # Got value, back to normal.
2218       else
2219         case $ac_arg in
2220           *=* | --config-cache | -C | -disable-* | --disable-* \
2221           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223           | -with-* | --with-* | -without-* | --without-* | --x)
2224             case "$ac_configure_args0 " in
2225               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226             esac
2227             ;;
2228           -* ) ac_must_keep_next=true ;;
2229         esac
2230       fi
2231       as_fn_append ac_configure_args " '$ac_arg'"
2232       ;;
2233     esac
2234   done
2235 done
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2238
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log.  We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245   # Save into config.log some information that might help in debugging.
2246   {
2247     echo
2248
2249     $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2252     echo
2253     # The following way of writing the cache mishandles newlines in values,
2254 (
2255   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256     eval ac_val=\$$ac_var
2257     case $ac_val in #(
2258     *${as_nl}*)
2259       case $ac_var in #(
2260       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262       esac
2263       case $ac_var in #(
2264       _ | IFS | as_nl) ;; #(
2265       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266       *) { eval $ac_var=; unset $ac_var;} ;;
2267       esac ;;
2268     esac
2269   done
2270   (set) 2>&1 |
2271     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272     *${as_nl}ac_space=\ *)
2273       sed -n \
2274         "s/'\''/'\''\\\\'\'''\''/g;
2275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276       ;; #(
2277     *)
2278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279       ;;
2280     esac |
2281     sort
2282 )
2283     echo
2284
2285     $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2288     echo
2289     for ac_var in $ac_subst_vars
2290     do
2291       eval ac_val=\$$ac_var
2292       case $ac_val in
2293       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294       esac
2295       $as_echo "$ac_var='\''$ac_val'\''"
2296     done | sort
2297     echo
2298
2299     if test -n "$ac_subst_files"; then
2300       $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2303       echo
2304       for ac_var in $ac_subst_files
2305       do
2306         eval ac_val=\$$ac_var
2307         case $ac_val in
2308         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309         esac
2310         $as_echo "$ac_var='\''$ac_val'\''"
2311       done | sort
2312       echo
2313     fi
2314
2315     if test -s confdefs.h; then
2316       $as_echo "## ----------- ##
2317 ## confdefs.h. ##
2318 ## ----------- ##"
2319       echo
2320       cat confdefs.h
2321       echo
2322     fi
2323     test "$ac_signal" != 0 &&
2324       $as_echo "$as_me: caught signal $ac_signal"
2325     $as_echo "$as_me: exit $exit_status"
2326   } >&5
2327   rm -f core *.core core.conftest.* &&
2328     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329     exit $exit_status
2330 ' 0
2331 for ac_signal in 1 2 13 15; do
2332   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333 done
2334 ac_signal=0
2335
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2338
2339 $as_echo "/* confdefs.h */" > confdefs.h
2340
2341 # Predefined preprocessor variables.
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2365 _ACEOF
2366
2367
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2370 ac_site_file1=NONE
2371 ac_site_file2=NONE
2372 if test -n "$CONFIG_SITE"; then
2373   # We do not want a PATH search for config.site.
2374   case $CONFIG_SITE in #((
2375     -*)  ac_site_file1=./$CONFIG_SITE;;
2376     */*) ac_site_file1=$CONFIG_SITE;;
2377     *)   ac_site_file1=./$CONFIG_SITE;;
2378   esac
2379 elif test "x$prefix" != xNONE; then
2380   ac_site_file1=$prefix/share/config.site
2381   ac_site_file2=$prefix/etc/config.site
2382 else
2383   ac_site_file1=$ac_default_prefix/share/config.site
2384   ac_site_file2=$ac_default_prefix/etc/config.site
2385 fi
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 do
2388   test "x$ac_site_file" = xNONE && continue
2389   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392     sed 's/^/| /' "$ac_site_file" >&5
2393     . "$ac_site_file" \
2394       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2398   fi
2399 done
2400
2401 if test -r "$cache_file"; then
2402   # Some versions of bash will fail to source /dev/null (special files
2403   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2404   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407     case $cache_file in
2408       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409       *)                      . "./$cache_file";;
2410     esac
2411   fi
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415   >$cache_file
2416 fi
2417
2418 gt_needs="$gt_needs "
2419 as_fn_append ac_header_list " stdlib.h"
2420 as_fn_append ac_header_list " unistd.h"
2421 as_fn_append ac_header_list " sys/param.h"
2422 # Check that the precious variables saved in the cache have kept the same
2423 # value.
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427   eval ac_new_set=\$ac_env_${ac_var}_set
2428   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429   eval ac_new_val=\$ac_env_${ac_var}_value
2430   case $ac_old_set,$ac_new_set in
2431     set,)
2432       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434       ac_cache_corrupted=: ;;
2435     ,set)
2436       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438       ac_cache_corrupted=: ;;
2439     ,);;
2440     *)
2441       if test "x$ac_old_val" != "x$ac_new_val"; then
2442         # differences in whitespace do not lead to failure.
2443         ac_old_val_w=`echo x $ac_old_val`
2444         ac_new_val_w=`echo x $ac_new_val`
2445         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448           ac_cache_corrupted=:
2449         else
2450           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452           eval $ac_var=\$ac_old_val
2453         fi
2454         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2455 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2456         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2458       fi;;
2459   esac
2460   # Pass precious variables to config.status.
2461   if test "$ac_new_set" = set; then
2462     case $ac_new_val in
2463     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464     *) ac_arg=$ac_var=$ac_new_val ;;
2465     esac
2466     case " $ac_configure_args " in
2467       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2468       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469     esac
2470   fi
2471 done
2472 if $ac_cache_corrupted; then
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2478 fi
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490 am__api_version='1.11'
2491
2492 ac_aux_dir=
2493 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494   if test -f "$ac_dir/install-sh"; then
2495     ac_aux_dir=$ac_dir
2496     ac_install_sh="$ac_aux_dir/install-sh -c"
2497     break
2498   elif test -f "$ac_dir/install.sh"; then
2499     ac_aux_dir=$ac_dir
2500     ac_install_sh="$ac_aux_dir/install.sh -c"
2501     break
2502   elif test -f "$ac_dir/shtool"; then
2503     ac_aux_dir=$ac_dir
2504     ac_install_sh="$ac_aux_dir/shtool install -c"
2505     break
2506   fi
2507 done
2508 if test -z "$ac_aux_dir"; then
2509   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2510 fi
2511
2512 # These three variables are undocumented and unsupported,
2513 # and are intended to be withdrawn in a future Autoconf release.
2514 # They can cause serious problems if a builder's source tree is in a directory
2515 # whose full name contains unusual characters.
2516 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2517 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2518 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2519
2520
2521 # Find a good install program.  We prefer a C program (faster),
2522 # so one script is as good as another.  But avoid the broken or
2523 # incompatible versions:
2524 # SysV /etc/install, /usr/sbin/install
2525 # SunOS /usr/etc/install
2526 # IRIX /sbin/install
2527 # AIX /bin/install
2528 # AmigaOS /C/install, which installs bootblocks on floppy discs
2529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2532 # OS/2's system install, which has a completely different semantic
2533 # ./install, which can be erroneously created by make from ./install.sh.
2534 # Reject install programs that cannot install multiple files.
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2537 if test -z "$INSTALL"; then
2538 if ${ac_cv_path_install+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546     # Account for people who put trailing slashes in PATH elements.
2547 case $as_dir/ in #((
2548   ./ | .// | /[cC]/* | \
2549   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2551   /usr/ucb/* ) ;;
2552   *)
2553     # OSF1 and SCO ODT 3.0 have their own names for install.
2554     # Don't use installbsd from OSF since it installs stuff as root
2555     # by default.
2556     for ac_prog in ginstall scoinst install; do
2557       for ac_exec_ext in '' $ac_executable_extensions; do
2558         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2559           if test $ac_prog = install &&
2560             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561             # AIX install.  It has an incompatible calling convention.
2562             :
2563           elif test $ac_prog = install &&
2564             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # program-specific install script used by HP pwplus--don't use.
2566             :
2567           else
2568             rm -rf conftest.one conftest.two conftest.dir
2569             echo one > conftest.one
2570             echo two > conftest.two
2571             mkdir conftest.dir
2572             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2573               test -s conftest.one && test -s conftest.two &&
2574               test -s conftest.dir/conftest.one &&
2575               test -s conftest.dir/conftest.two
2576             then
2577               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2578               break 3
2579             fi
2580           fi
2581         fi
2582       done
2583     done
2584     ;;
2585 esac
2586
2587   done
2588 IFS=$as_save_IFS
2589
2590 rm -rf conftest.one conftest.two conftest.dir
2591
2592 fi
2593   if test "${ac_cv_path_install+set}" = set; then
2594     INSTALL=$ac_cv_path_install
2595   else
2596     # As a last resort, use the slow shell script.  Don't cache a
2597     # value for INSTALL within a source directory, because that will
2598     # break other packages using the cache if that directory is
2599     # removed, or if the value is a relative name.
2600     INSTALL=$ac_install_sh
2601   fi
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2604 $as_echo "$INSTALL" >&6; }
2605
2606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2607 # It thinks the first close brace ends the variable substitution.
2608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609
2610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2611
2612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2615 $as_echo_n "checking whether build environment is sane... " >&6; }
2616 # Just in case
2617 sleep 1
2618 echo timestamp > conftest.file
2619 # Reject unsafe characters in $srcdir or the absolute working directory
2620 # name.  Accept space and tab only in the latter.
2621 am_lf='
2622 '
2623 case `pwd` in
2624   *[\\\"\#\$\&\'\`$am_lf]*)
2625     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2626 esac
2627 case $srcdir in
2628   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2629     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2630 esac
2631
2632 # Do `set' in a subshell so we don't clobber the current shell's
2633 # arguments.  Must try -L first in case configure is actually a
2634 # symlink; some systems play weird games with the mod time of symlinks
2635 # (eg FreeBSD returns the mod time of the symlink's containing
2636 # directory).
2637 if (
2638    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2639    if test "$*" = "X"; then
2640       # -L didn't work.
2641       set X `ls -t "$srcdir/configure" conftest.file`
2642    fi
2643    rm -f conftest.file
2644    if test "$*" != "X $srcdir/configure conftest.file" \
2645       && test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647       # If neither matched, then we have a broken ls.  This can happen
2648       # if, for instance, CONFIG_SHELL is bash and it inherits a
2649       # broken ls alias from the environment.  This has actually
2650       # happened.  Such a system could not be considered "sane".
2651       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2652 alias in your environment" "$LINENO" 5
2653    fi
2654
2655    test "$2" = conftest.file
2656    )
2657 then
2658    # Ok.
2659    :
2660 else
2661    as_fn_error $? "newly created file is older than distributed files!
2662 Check your system clock" "$LINENO" 5
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666 test "$program_prefix" != NONE &&
2667   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2668 # Use a double $ so make ignores it.
2669 test "$program_suffix" != NONE &&
2670   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2671 # Double any \ or $.
2672 # By default was `s,x,x', remove it if useless.
2673 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2674 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2675
2676 # expand $ac_aux_dir to an absolute path
2677 am_aux_dir=`cd $ac_aux_dir && pwd`
2678
2679 if test x"${MISSING+set}" != xset; then
2680   case $am_aux_dir in
2681   *\ * | *\     *)
2682     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2683   *)
2684     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2685   esac
2686 fi
2687 # Use eval to expand $SHELL
2688 if eval "$MISSING --run true"; then
2689   am_missing_run="$MISSING --run "
2690 else
2691   am_missing_run=
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2693 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2694 fi
2695
2696 if test x"${install_sh}" != xset; then
2697   case $am_aux_dir in
2698   *\ * | *\     *)
2699     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2700   *)
2701     install_sh="\${SHELL} $am_aux_dir/install-sh"
2702   esac
2703 fi
2704
2705 # Installed binaries are usually stripped using `strip' when the user
2706 # run `make install-strip'.  However `strip' might not be the right
2707 # tool to use in cross-compilation environments, therefore Automake
2708 # will honor the `STRIP' environment variable to overrule this program.
2709 if test "$cross_compiling" != no; then
2710   if test -n "$ac_tool_prefix"; then
2711   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_STRIP+:} false; then :
2716   $as_echo_n "(cached) " >&6
2717 else
2718   if test -n "$STRIP"; then
2719   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726     for ac_exec_ext in '' $ac_executable_extensions; do
2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733   done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 STRIP=$ac_cv_prog_STRIP
2739 if test -n "$STRIP"; then
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2741 $as_echo "$STRIP" >&6; }
2742 else
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747
2748 fi
2749 if test -z "$ac_cv_prog_STRIP"; then
2750   ac_ct_STRIP=$STRIP
2751   # Extract the first word of "strip", so it can be a program name with args.
2752 set dummy strip; 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_prog_ac_ct_STRIP+:} false; then :
2756   $as_echo_n "(cached) " >&6
2757 else
2758   if test -n "$ac_ct_STRIP"; then
2759   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766     for ac_exec_ext in '' $ac_executable_extensions; do
2767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768     ac_cv_prog_ac_ct_STRIP="strip"
2769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773   done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2779 if test -n "$ac_ct_STRIP"; then
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2781 $as_echo "$ac_ct_STRIP" >&6; }
2782 else
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787   if test "x$ac_ct_STRIP" = x; then
2788     STRIP=":"
2789   else
2790     case $cross_compiling:$ac_tool_warned in
2791 yes:)
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 ac_tool_warned=yes ;;
2795 esac
2796     STRIP=$ac_ct_STRIP
2797   fi
2798 else
2799   STRIP="$ac_cv_prog_STRIP"
2800 fi
2801
2802 fi
2803 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2804
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2806 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2807 if test -z "$MKDIR_P"; then
2808   if ${ac_cv_path_mkdir+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_prog in mkdir gmkdir; do
2817          for ac_exec_ext in '' $ac_executable_extensions; do
2818            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2819            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2820              'mkdir (GNU coreutils) '* | \
2821              'mkdir (coreutils) '* | \
2822              'mkdir (fileutils) '4.1*)
2823                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2824                break 3;;
2825            esac
2826          done
2827        done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832
2833   test -d ./--version && rmdir ./--version
2834   if test "${ac_cv_path_mkdir+set}" = set; then
2835     MKDIR_P="$ac_cv_path_mkdir -p"
2836   else
2837     # As a last resort, use the slow shell script.  Don't cache a
2838     # value for MKDIR_P within a source directory, because that will
2839     # break other packages using the cache if that directory is
2840     # removed, or if the value is a relative name.
2841     MKDIR_P="$ac_install_sh -d"
2842   fi
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2845 $as_echo "$MKDIR_P" >&6; }
2846
2847 mkdir_p="$MKDIR_P"
2848 case $mkdir_p in
2849   [\\/$]* | ?:[\\/]*) ;;
2850   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2851 esac
2852
2853 for ac_prog in gawk mawk nawk awk
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_AWK+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$AWK"; then
2863   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_AWK="$ac_prog"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 AWK=$ac_cv_prog_AWK
2883 if test -n "$AWK"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2885 $as_echo "$AWK" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892   test -n "$AWK" && break
2893 done
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2896 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2897 set x ${MAKE-make}
2898 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2899 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   cat >conftest.make <<\_ACEOF
2903 SHELL = /bin/sh
2904 all:
2905         @echo '@@@%%%=$(MAKE)=@@@%%%'
2906 _ACEOF
2907 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2908 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2909   *@@@%%%=?*=@@@%%%*)
2910     eval ac_cv_prog_make_${ac_make}_set=yes;;
2911   *)
2912     eval ac_cv_prog_make_${ac_make}_set=no;;
2913 esac
2914 rm -f conftest.make
2915 fi
2916 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2918 $as_echo "yes" >&6; }
2919   SET_MAKE=
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923   SET_MAKE="MAKE=${MAKE-make}"
2924 fi
2925
2926 rm -rf .tst 2>/dev/null
2927 mkdir .tst 2>/dev/null
2928 if test -d .tst; then
2929   am__leading_dot=.
2930 else
2931   am__leading_dot=_
2932 fi
2933 rmdir .tst 2>/dev/null
2934
2935 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2936   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2937   # is not polluted with repeated "-I."
2938   am__isrc=' -I$(srcdir)'
2939   # test to see if srcdir already configured
2940   if test -f $srcdir/config.status; then
2941     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2942   fi
2943 fi
2944
2945 # test whether we have cygpath
2946 if test -z "$CYGPATH_W"; then
2947   if (cygpath --version) >/dev/null 2>/dev/null; then
2948     CYGPATH_W='cygpath -w'
2949   else
2950     CYGPATH_W=echo
2951   fi
2952 fi
2953
2954
2955 # Define the identity of the package.
2956  PACKAGE=abook
2957  VERSION=0.6.0pre2
2958
2959
2960 cat >>confdefs.h <<_ACEOF
2961 #define PACKAGE "$PACKAGE"
2962 _ACEOF
2963
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define VERSION "$VERSION"
2967 _ACEOF
2968
2969 # Some tools Automake needs.
2970
2971 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972
2973
2974 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2975
2976
2977 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978
2979
2980 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2981
2982
2983 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2984
2985 # We need awk for the "check" target.  The system "awk" is bad on
2986 # some platforms.
2987 # Always define AMTAR for backward compatibility.
2988
2989 AMTAR=${AMTAR-"${am_missing_run}tar"}
2990
2991 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2992
2993
2994
2995
2996
2997 ac_config_headers="$ac_config_headers config.h"
2998
2999
3000
3001
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3003 $as_echo_n "checking whether NLS is requested... " >&6; }
3004     # Check whether --enable-nls was given.
3005 if test "${enable_nls+set}" = set; then :
3006   enableval=$enable_nls; USE_NLS=$enableval
3007 else
3008   USE_NLS=yes
3009 fi
3010
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3012 $as_echo "$USE_NLS" >&6; }
3013
3014
3015
3016
3017       GETTEXT_MACRO_VERSION=0.18
3018
3019
3020
3021
3022 # Prepare PATH_SEPARATOR.
3023 # The user is always right.
3024 if test "${PATH_SEPARATOR+set}" != set; then
3025   echo "#! /bin/sh" >conf$$.sh
3026   echo  "exit 0"   >>conf$$.sh
3027   chmod +x conf$$.sh
3028   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3029     PATH_SEPARATOR=';'
3030   else
3031     PATH_SEPARATOR=:
3032   fi
3033   rm -f conf$$.sh
3034 fi
3035
3036 # Find out how to test for executable files. Don't use a zero-byte file,
3037 # as systems may use methods other than mode bits to determine executability.
3038 cat >conf$$.file <<_ASEOF
3039 #! /bin/sh
3040 exit 0
3041 _ASEOF
3042 chmod +x conf$$.file
3043 if test -x conf$$.file >/dev/null 2>&1; then
3044   ac_executable_p="test -x"
3045 else
3046   ac_executable_p="test -f"
3047 fi
3048 rm -f conf$$.file
3049
3050 # Extract the first word of "msgfmt", so it can be a program name with args.
3051 set dummy msgfmt; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_path_MSGFMT+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   case "$MSGFMT" in
3058   [\\/]* | ?:[\\/]*)
3059     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3060     ;;
3061   *)
3062     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3063     for ac_dir in $PATH; do
3064       IFS="$ac_save_IFS"
3065       test -z "$ac_dir" && ac_dir=.
3066       for ac_exec_ext in '' $ac_executable_extensions; do
3067         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3068           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3069           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3070      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3071             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3072             break 2
3073           fi
3074         fi
3075       done
3076     done
3077     IFS="$ac_save_IFS"
3078   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3079     ;;
3080 esac
3081 fi
3082 MSGFMT="$ac_cv_path_MSGFMT"
3083 if test "$MSGFMT" != ":"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3085 $as_echo "$MSGFMT" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3092 set dummy gmsgfmt; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_path_GMSGFMT+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   case $GMSGFMT in
3099   [\\/]* | ?:[\\/]*)
3100   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3101   ;;
3102   *)
3103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3119   ;;
3120 esac
3121 fi
3122 GMSGFMT=$ac_cv_path_GMSGFMT
3123 if test -n "$GMSGFMT"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3125 $as_echo "$GMSGFMT" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132
3133     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3134     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3135     *) MSGFMT_015=$MSGFMT ;;
3136   esac
3137
3138   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3139     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3140     *) GMSGFMT_015=$GMSGFMT ;;
3141   esac
3142
3143
3144
3145 # Prepare PATH_SEPARATOR.
3146 # The user is always right.
3147 if test "${PATH_SEPARATOR+set}" != set; then
3148   echo "#! /bin/sh" >conf$$.sh
3149   echo  "exit 0"   >>conf$$.sh
3150   chmod +x conf$$.sh
3151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3152     PATH_SEPARATOR=';'
3153   else
3154     PATH_SEPARATOR=:
3155   fi
3156   rm -f conf$$.sh
3157 fi
3158
3159 # Find out how to test for executable files. Don't use a zero-byte file,
3160 # as systems may use methods other than mode bits to determine executability.
3161 cat >conf$$.file <<_ASEOF
3162 #! /bin/sh
3163 exit 0
3164 _ASEOF
3165 chmod +x conf$$.file
3166 if test -x conf$$.file >/dev/null 2>&1; then
3167   ac_executable_p="test -x"
3168 else
3169   ac_executable_p="test -f"
3170 fi
3171 rm -f conf$$.file
3172
3173 # Extract the first word of "xgettext", so it can be a program name with args.
3174 set dummy xgettext; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_path_XGETTEXT+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   case "$XGETTEXT" in
3181   [\\/]* | ?:[\\/]*)
3182     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3183     ;;
3184   *)
3185     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3186     for ac_dir in $PATH; do
3187       IFS="$ac_save_IFS"
3188       test -z "$ac_dir" && ac_dir=.
3189       for ac_exec_ext in '' $ac_executable_extensions; do
3190         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3191           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3192           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3193      (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
3194             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3195             break 2
3196           fi
3197         fi
3198       done
3199     done
3200     IFS="$ac_save_IFS"
3201   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3202     ;;
3203 esac
3204 fi
3205 XGETTEXT="$ac_cv_path_XGETTEXT"
3206 if test "$XGETTEXT" != ":"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3208 $as_echo "$XGETTEXT" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214     rm -f messages.po
3215
3216     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3217     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3218     *) XGETTEXT_015=$XGETTEXT ;;
3219   esac
3220
3221
3222
3223 # Prepare PATH_SEPARATOR.
3224 # The user is always right.
3225 if test "${PATH_SEPARATOR+set}" != set; then
3226   echo "#! /bin/sh" >conf$$.sh
3227   echo  "exit 0"   >>conf$$.sh
3228   chmod +x conf$$.sh
3229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3230     PATH_SEPARATOR=';'
3231   else
3232     PATH_SEPARATOR=:
3233   fi
3234   rm -f conf$$.sh
3235 fi
3236
3237 # Find out how to test for executable files. Don't use a zero-byte file,
3238 # as systems may use methods other than mode bits to determine executability.
3239 cat >conf$$.file <<_ASEOF
3240 #! /bin/sh
3241 exit 0
3242 _ASEOF
3243 chmod +x conf$$.file
3244 if test -x conf$$.file >/dev/null 2>&1; then
3245   ac_executable_p="test -x"
3246 else
3247   ac_executable_p="test -f"
3248 fi
3249 rm -f conf$$.file
3250
3251 # Extract the first word of "msgmerge", so it can be a program name with args.
3252 set dummy msgmerge; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_path_MSGMERGE+:} false; then :
3256   $as_echo_n "(cached) " >&6
3257 else
3258   case "$MSGMERGE" in
3259   [\\/]* | ?:[\\/]*)
3260     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3261     ;;
3262   *)
3263     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3264     for ac_dir in $PATH; do
3265       IFS="$ac_save_IFS"
3266       test -z "$ac_dir" && ac_dir=.
3267       for ac_exec_ext in '' $ac_executable_extensions; do
3268         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3269           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3270           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3271             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3272             break 2
3273           fi
3274         fi
3275       done
3276     done
3277     IFS="$ac_save_IFS"
3278   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3279     ;;
3280 esac
3281 fi
3282 MSGMERGE="$ac_cv_path_MSGMERGE"
3283 if test "$MSGMERGE" != ":"; then
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3285 $as_echo "$MSGMERGE" >&6; }
3286 else
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292         test -n "$localedir" || localedir='${datadir}/locale'
3293
3294
3295     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3296
3297
3298   ac_config_commands="$ac_config_commands po-directories"
3299
3300
3301 DEPDIR="${am__leading_dot}deps"
3302
3303 ac_config_commands="$ac_config_commands depfiles"
3304
3305
3306 am_make=${MAKE-make}
3307 cat > confinc << 'END'
3308 am__doit:
3309         @echo this is the am__doit target
3310 .PHONY: am__doit
3311 END
3312 # If we don't find an include directive, just comment out the code.
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3314 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3315 am__include="#"
3316 am__quote=
3317 _am_result=none
3318 # First try GNU make style include.
3319 echo "include confinc" > confmf
3320 # Ignore all kinds of additional output from `make'.
3321 case `$am_make -s -f confmf 2> /dev/null` in #(
3322 *the\ am__doit\ target*)
3323   am__include=include
3324   am__quote=
3325   _am_result=GNU
3326   ;;
3327 esac
3328 # Now try BSD make style include.
3329 if test "$am__include" = "#"; then
3330    echo '.include "confinc"' > confmf
3331    case `$am_make -s -f confmf 2> /dev/null` in #(
3332    *the\ am__doit\ target*)
3333      am__include=.include
3334      am__quote="\""
3335      _am_result=BSD
3336      ;;
3337    esac
3338 fi
3339
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3342 $as_echo "$_am_result" >&6; }
3343 rm -f confinc confmf
3344
3345 # Check whether --enable-dependency-tracking was given.
3346 if test "${enable_dependency_tracking+set}" = set; then :
3347   enableval=$enable_dependency_tracking;
3348 fi
3349
3350 if test "x$enable_dependency_tracking" != xno; then
3351   am_depcomp="$ac_aux_dir/depcomp"
3352   AMDEPBACKSLASH='\'
3353 fi
3354  if test "x$enable_dependency_tracking" != xno; then
3355   AMDEP_TRUE=
3356   AMDEP_FALSE='#'
3357 else
3358   AMDEP_TRUE='#'
3359   AMDEP_FALSE=
3360 fi
3361
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$CC"; then
3377   ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$ac_cv_prog_CC"; then
3408   ac_ct_CC=$CC
3409   # Extract the first word of "gcc", so it can be a program name with args.
3410 set dummy gcc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   if test -n "$ac_ct_CC"; then
3417   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   test -z "$as_dir" && as_dir=.
3424     for ac_exec_ext in '' $ac_executable_extensions; do
3425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426     ac_cv_prog_ac_ct_CC="gcc"
3427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431   done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437 if test -n "$ac_ct_CC"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439 $as_echo "$ac_ct_CC" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445   if test "x$ac_ct_CC" = x; then
3446     CC=""
3447   else
3448     case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454     CC=$ac_ct_CC
3455   fi
3456 else
3457   CC="$ac_cv_prog_CC"
3458 fi
3459
3460 if test -z "$CC"; then
3461           if test -n "$ac_tool_prefix"; then
3462     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -n "$CC"; then
3470   ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_exec_ext in '' $ac_executable_extensions; do
3478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479     ac_cv_prog_CC="${ac_tool_prefix}cc"
3480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484   done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3493 else
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498
3499   fi
3500 fi
3501 if test -z "$CC"; then
3502   # Extract the first word of "cc", so it can be a program name with args.
3503 set dummy cc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_CC+:} false; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   if test -n "$CC"; then
3510   ac_cv_prog_CC="$CC" # Let the user override the test.
3511 else
3512   ac_prog_rejected=no
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3521        ac_prog_rejected=yes
3522        continue
3523      fi
3524     ac_cv_prog_CC="cc"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 if test $ac_prog_rejected = yes; then
3533   # We found a bogon in the path, so make sure we never use it.
3534   set dummy $ac_cv_prog_CC
3535   shift
3536   if test $# != 0; then
3537     # We chose a different compiler from the bogus one.
3538     # However, it has the same basename, so the bogon will be chosen
3539     # first if we set CC to just the basename; use the full file name.
3540     shift
3541     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3542   fi
3543 fi
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556 fi
3557 if test -z "$CC"; then
3558   if test -n "$ac_tool_prefix"; then
3559   for ac_prog in cl.exe
3560   do
3561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   if test -n "$CC"; then
3569   ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576     for ac_exec_ext in '' $ac_executable_extensions; do
3577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583   done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598     test -n "$CC" && break
3599   done
3600 fi
3601 if test -z "$CC"; then
3602   ac_ct_CC=$CC
3603   for ac_prog in cl.exe
3604 do
3605   # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -n "$ac_ct_CC"; then
3613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620     for ac_exec_ext in '' $ac_executable_extensions; do
3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622     ac_cv_prog_ac_ct_CC="$ac_prog"
3623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627   done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3633 if test -n "$ac_ct_CC"; then
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3635 $as_echo "$ac_ct_CC" >&6; }
3636 else
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642   test -n "$ac_ct_CC" && break
3643 done
3644
3645   if test "x$ac_ct_CC" = x; then
3646     CC=""
3647   else
3648     case $cross_compiling:$ac_tool_warned in
3649 yes:)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3653 esac
3654     CC=$ac_ct_CC
3655   fi
3656 fi
3657
3658 fi
3659
3660
3661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "no acceptable C compiler found in \$PATH
3664 See \`config.log' for more details" "$LINENO" 5; }
3665
3666 # Provide some information about the compiler.
3667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3668 set X $ac_compile
3669 ac_compiler=$2
3670 for ac_option in --version -v -V -qversion; do
3671   { { ac_try="$ac_compiler $ac_option >&5"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679   ac_status=$?
3680   if test -s conftest.err; then
3681     sed '10a\
3682 ... rest of stderr output deleted ...
3683          10q' conftest.err >conftest.er1
3684     cat conftest.er1 >&5
3685   fi
3686   rm -f conftest.er1 conftest.err
3687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688   test $ac_status = 0; }
3689 done
3690
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 ac_clean_files_save=$ac_clean_files
3703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3704 # Try to create an executable without -o first, disregard a.out.
3705 # It will help us diagnose broken compilers, and finding out an intuition
3706 # of exeext.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3708 $as_echo_n "checking whether the C compiler works... " >&6; }
3709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3710
3711 # The possible output files:
3712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3713
3714 ac_rmfiles=
3715 for ac_file in $ac_files
3716 do
3717   case $ac_file in
3718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3719     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3720   esac
3721 done
3722 rm -f $ac_rmfiles
3723
3724 if { { ac_try="$ac_link_default"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_link_default") 2>&5
3732   ac_status=$?
3733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734   test $ac_status = 0; }; then :
3735   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3737 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3738 # so that the user can short-circuit this test for compilers unknown to
3739 # Autoconf.
3740 for ac_file in $ac_files ''
3741 do
3742   test -f "$ac_file" || continue
3743   case $ac_file in
3744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3745         ;;
3746     [ab].out )
3747         # We found the default executable, but exeext='' is most
3748         # certainly right.
3749         break;;
3750     *.* )
3751         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3752         then :; else
3753            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754         fi
3755         # We set ac_cv_exeext here because the later test for it is not
3756         # safe: cross compilers may not add the suffix if given an `-o'
3757         # argument, so we may need to know it at that point already.
3758         # Even if this section looks crufty: it has the advantage of
3759         # actually working.
3760         break;;
3761     * )
3762         break;;
3763   esac
3764 done
3765 test "$ac_cv_exeext" = no && ac_cv_exeext=
3766
3767 else
3768   ac_file=''
3769 fi
3770 if test -z "$ac_file"; then :
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error 77 "C compiler cannot create executables
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 $as_echo "yes" >&6; }
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3785 $as_echo_n "checking for C compiler default output file name... " >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3787 $as_echo "$ac_file" >&6; }
3788 ac_exeext=$ac_cv_exeext
3789
3790 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3793 $as_echo_n "checking for suffix of executables... " >&6; }
3794 if { { ac_try="$ac_link"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801   (eval "$ac_link") 2>&5
3802   ac_status=$?
3803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804   test $ac_status = 0; }; then :
3805   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3806 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3807 # work properly (i.e., refer to `conftest.exe'), while it won't with
3808 # `rm'.
3809 for ac_file in conftest.exe conftest conftest.*; do
3810   test -f "$ac_file" || continue
3811   case $ac_file in
3812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814           break;;
3815     * ) break;;
3816   esac
3817 done
3818 else
3819   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3822 See \`config.log' for more details" "$LINENO" 5; }
3823 fi
3824 rm -f conftest conftest$ac_cv_exeext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3826 $as_echo "$ac_cv_exeext" >&6; }
3827
3828 rm -f conftest.$ac_ext
3829 EXEEXT=$ac_cv_exeext
3830 ac_exeext=$EXEEXT
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833 #include <stdio.h>
3834 int
3835 main ()
3836 {
3837 FILE *f = fopen ("conftest.out", "w");
3838  return ferror (f) || fclose (f) != 0;
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 ac_clean_files="$ac_clean_files conftest.out"
3845 # Check that the compiler produces executables we can run.  If not, either
3846 # the compiler is broken, or we cross compile.
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3848 $as_echo_n "checking whether we are cross compiling... " >&6; }
3849 if test "$cross_compiling" != yes; then
3850   { { ac_try="$ac_link"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }
3861   if { ac_try='./conftest$ac_cv_exeext'
3862   { { case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868   (eval "$ac_try") 2>&5
3869   ac_status=$?
3870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871   test $ac_status = 0; }; }; then
3872     cross_compiling=no
3873   else
3874     if test "$cross_compiling" = maybe; then
3875         cross_compiling=yes
3876     else
3877         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "cannot run C compiled programs.
3880 If you meant to cross compile, use \`--host'.
3881 See \`config.log' for more details" "$LINENO" 5; }
3882     fi
3883   fi
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3886 $as_echo "$cross_compiling" >&6; }
3887
3888 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3889 ac_clean_files=$ac_clean_files_save
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3891 $as_echo_n "checking for suffix of object files... " >&6; }
3892 if ${ac_cv_objext+:} false; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.o conftest.obj
3907 if { { ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914   (eval "$ac_compile") 2>&5
3915   ac_status=$?
3916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917   test $ac_status = 0; }; then :
3918   for ac_file in conftest.o conftest.obj conftest.*; do
3919   test -f "$ac_file" || continue;
3920   case $ac_file in
3921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3922     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3923        break;;
3924   esac
3925 done
3926 else
3927   $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "cannot compute suffix of object files: cannot compile
3933 See \`config.log' for more details" "$LINENO" 5; }
3934 fi
3935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3938 $as_echo "$ac_cv_objext" >&6; }
3939 OBJEXT=$ac_cv_objext
3940 ac_objext=$OBJEXT
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3942 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3943 if ${ac_cv_c_compiler_gnu+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952 #ifndef __GNUC__
3953        choke me
3954 #endif
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_compiler_gnu=yes
3962 else
3963   ac_compiler_gnu=no
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3967
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3970 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3971 if test $ac_compiler_gnu = yes; then
3972   GCC=yes
3973 else
3974   GCC=
3975 fi
3976 ac_test_CFLAGS=${CFLAGS+set}
3977 ac_save_CFLAGS=$CFLAGS
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3979 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3980 if ${ac_cv_prog_cc_g+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   ac_save_c_werror_flag=$ac_c_werror_flag
3984    ac_c_werror_flag=yes
3985    ac_cv_prog_cc_g=no
3986    CFLAGS="-g"
3987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999   ac_cv_prog_cc_g=yes
4000 else
4001   CFLAGS=""
4002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014
4015 else
4016   ac_c_werror_flag=$ac_save_c_werror_flag
4017          CFLAGS="-g"
4018          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h.  */
4020
4021 int
4022 main ()
4023 {
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030   ac_cv_prog_cc_g=yes
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037    ac_c_werror_flag=$ac_save_c_werror_flag
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4040 $as_echo "$ac_cv_prog_cc_g" >&6; }
4041 if test "$ac_test_CFLAGS" = set; then
4042   CFLAGS=$ac_save_CFLAGS
4043 elif test $ac_cv_prog_cc_g = yes; then
4044   if test "$GCC" = yes; then
4045     CFLAGS="-g -O2"
4046   else
4047     CFLAGS="-g"
4048   fi
4049 else
4050   if test "$GCC" = yes; then
4051     CFLAGS="-O2"
4052   else
4053     CFLAGS=
4054   fi
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4057 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4058 if ${ac_cv_prog_cc_c89+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   ac_cv_prog_cc_c89=no
4062 ac_save_CC=$CC
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <stdarg.h>
4066 #include <stdio.h>
4067 #include <sys/types.h>
4068 #include <sys/stat.h>
4069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4070 struct buf { int x; };
4071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072 static char *e (p, i)
4073      char **p;
4074      int i;
4075 {
4076   return p[i];
4077 }
4078 static char *f (char * (*g) (char **, int), char **p, ...)
4079 {
4080   char *s;
4081   va_list v;
4082   va_start (v,p);
4083   s = g (p, va_arg (v,int));
4084   va_end (v);
4085   return s;
4086 }
4087
4088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4089    function prototypes and stuff, but not '\xHH' hex character constants.
4090    These don't provoke an error unfortunately, instead are silently treated
4091    as 'x'.  The following induces an error, until -std is added to get
4092    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4093    array size at least.  It's necessary to write '\x00'==0 to get something
4094    that's true only with -std.  */
4095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096
4097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098    inside strings and character constants.  */
4099 #define FOO(x) 'x'
4100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101
4102 int test (int i, double x);
4103 struct s1 {int (*f) (int a);};
4104 struct s2 {int (*f) (double a);};
4105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106 int argc;
4107 char **argv;
4108 int
4109 main ()
4110 {
4111 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 do
4119   CC="$ac_save_CC $ac_arg"
4120   if ac_fn_c_try_compile "$LINENO"; then :
4121   ac_cv_prog_cc_c89=$ac_arg
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext
4124   test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 done
4126 rm -f conftest.$ac_ext
4127 CC=$ac_save_CC
4128
4129 fi
4130 # AC_CACHE_VAL
4131 case "x$ac_cv_prog_cc_c89" in
4132   x)
4133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4135   xno)
4136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4138   *)
4139     CC="$CC $ac_cv_prog_cc_c89"
4140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 esac
4143 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144
4145 fi
4146
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153 depcc="$CC"   am_compiler_list=
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4156 $as_echo_n "checking dependency style of $depcc... " >&6; }
4157 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161   # We make a subdir and do the tests there.  Otherwise we can end up
4162   # making bogus files that we don't know about and never remove.  For
4163   # instance it was reported that on HP-UX the gcc test will end up
4164   # making a dummy file named `D' -- because `-MD' means `put the output
4165   # in D'.
4166   mkdir conftest.dir
4167   # Copy depcomp to subdir because otherwise we won't find it if we're
4168   # using a relative directory.
4169   cp "$am_depcomp" conftest.dir
4170   cd conftest.dir
4171   # We will build objects and dependencies in a subdirectory because
4172   # it helps to detect inapplicable dependency modes.  For instance
4173   # both Tru64's cc and ICC support -MD to output dependencies as a
4174   # side effect of compilation, but ICC will put the dependencies in
4175   # the current directory while Tru64 will put them in the object
4176   # directory.
4177   mkdir sub
4178
4179   am_cv_CC_dependencies_compiler_type=none
4180   if test "$am_compiler_list" = ""; then
4181      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182   fi
4183   am__universal=false
4184   case " $depcc " in #(
4185      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4186      esac
4187
4188   for depmode in $am_compiler_list; do
4189     # Setup a source with many dependencies, because some compilers
4190     # like to wrap large dependency lists on column 80 (with \), and
4191     # we should not choose a depcomp mode which is confused by this.
4192     #
4193     # We need to recreate these files for each test, as the compiler may
4194     # overwrite some of them when testing with obscure command lines.
4195     # This happens at least with the AIX C compiler.
4196     : > sub/conftest.c
4197     for i in 1 2 3 4 5 6; do
4198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4200       # Solaris 8's {/usr,}/bin/sh.
4201       touch sub/conftst$i.h
4202     done
4203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4204
4205     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4206     # mode.  It turns out that the SunPro C++ compiler does not properly
4207     # handle `-M -o', and we need to detect this.  Also, some Intel
4208     # versions had trouble with output in subdirs
4209     am__obj=sub/conftest.${OBJEXT-o}
4210     am__minus_obj="-o $am__obj"
4211     case $depmode in
4212     gcc)
4213       # This depmode causes a compiler race in universal mode.
4214       test "$am__universal" = false || continue
4215       ;;
4216     nosideeffect)
4217       # after this tag, mechanisms are not by side-effect, so they'll
4218       # only be used when explicitly requested
4219       if test "x$enable_dependency_tracking" = xyes; then
4220         continue
4221       else
4222         break
4223       fi
4224       ;;
4225     msvisualcpp | msvcmsys)
4226       # This compiler won't grok `-c -o', but also, the minuso test has
4227       # not run yet.  These depmodes are late enough in the game, and
4228       # so weak that their functioning should not be impacted.
4229       am__obj=conftest.${OBJEXT-o}
4230       am__minus_obj=
4231       ;;
4232     none) break ;;
4233     esac
4234     if depmode=$depmode \
4235        source=sub/conftest.c object=$am__obj \
4236        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4237        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4238          >/dev/null 2>conftest.err &&
4239        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4240        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4241        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4242        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4243       # icc doesn't choke on unknown options, it will just issue warnings
4244       # or remarks (even with -Werror).  So we grep stderr for any message
4245       # that says an option was ignored or not supported.
4246       # When given -MP, icc 7.0 and 7.1 complain thusly:
4247       #   icc: Command line warning: ignoring option '-M'; no argument required
4248       # The diagnosis changed in icc 8.0:
4249       #   icc: Command line remark: option '-MP' not supported
4250       if (grep 'ignoring option' conftest.err ||
4251           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4252         am_cv_CC_dependencies_compiler_type=$depmode
4253         break
4254       fi
4255     fi
4256   done
4257
4258   cd ..
4259   rm -rf conftest.dir
4260 else
4261   am_cv_CC_dependencies_compiler_type=none
4262 fi
4263
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4266 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4267 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4268
4269  if
4270   test "x$enable_dependency_tracking" != xno \
4271   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4272   am__fastdepCC_TRUE=
4273   am__fastdepCC_FALSE='#'
4274 else
4275   am__fastdepCC_TRUE='#'
4276   am__fastdepCC_FALSE=
4277 fi
4278
4279
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4282   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if ${ac_cv_build+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   ac_build_alias=$build_alias
4290 test "x$ac_build_alias" = x &&
4291   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x &&
4293   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4301 *-*-*) ;;
4302 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4303 esac
4304 build=$ac_cv_build
4305 ac_save_IFS=$IFS; IFS='-'
4306 set x $ac_cv_build
4307 shift
4308 build_cpu=$1
4309 build_vendor=$2
4310 shift; shift
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4313 build_os=$*
4314 IFS=$ac_save_IFS
4315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if ${ac_cv_host+:} false; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   if test "x$host_alias" = x; then
4324   ac_cv_host=$ac_cv_build
4325 else
4326   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4328 fi
4329
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4333 case $ac_cv_host in
4334 *-*-*) ;;
4335 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4336 esac
4337 host=$ac_cv_host
4338 ac_save_IFS=$IFS; IFS='-'
4339 set x $ac_cv_host
4340 shift
4341 host_cpu=$1
4342 host_vendor=$2
4343 shift; shift
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4346 host_os=$*
4347 IFS=$ac_save_IFS
4348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4349
4350
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4358 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4361   CPP=
4362 fi
4363 if test -z "$CPP"; then
4364   if ${ac_cv_prog_CPP+:} false; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367       # Double quotes because CPP needs to be expanded
4368     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369     do
4370       ac_preproc_ok=false
4371 for ac_c_preproc_warn_flag in '' yes
4372 do
4373   # Use a header file that comes with gcc, so configuring glibc
4374   # with a fresh cross-compiler works.
4375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376   # <limits.h> exists even on freestanding compilers.
4377   # On the NeXT, cc -E runs the code through the compiler's parser,
4378   # not just through cpp. "Syntax error" is here to catch this case.
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #ifdef __STDC__
4382 # include <limits.h>
4383 #else
4384 # include <assert.h>
4385 #endif
4386                      Syntax error
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389
4390 else
4391   # Broken: fails on valid input.
4392 continue
4393 fi
4394 rm -f conftest.err conftest.i conftest.$ac_ext
4395
4396   # OK, works on sane cases.  Now check whether nonexistent headers
4397   # can be detected and how.
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #include <ac_nonexistent.h>
4401 _ACEOF
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4403   # Broken: success on invalid input.
4404 continue
4405 else
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4411
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.i conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then :
4416   break
4417 fi
4418
4419     done
4420     ac_cv_prog_CPP=$CPP
4421
4422 fi
4423   CPP=$ac_cv_prog_CPP
4424 else
4425   ac_cv_prog_CPP=$CPP
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4428 $as_echo "$CPP" >&6; }
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4431 do
4432   # Use a header file that comes with gcc, so configuring glibc
4433   # with a fresh cross-compiler works.
4434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435   # <limits.h> exists even on freestanding compilers.
4436   # On the NeXT, cc -E runs the code through the compiler's parser,
4437   # not just through cpp. "Syntax error" is here to catch this case.
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440 #ifdef __STDC__
4441 # include <limits.h>
4442 #else
4443 # include <assert.h>
4444 #endif
4445                      Syntax error
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448
4449 else
4450   # Broken: fails on valid input.
4451 continue
4452 fi
4453 rm -f conftest.err conftest.i conftest.$ac_ext
4454
4455   # OK, works on sane cases.  Now check whether nonexistent headers
4456   # can be detected and how.
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #include <ac_nonexistent.h>
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462   # Broken: success on invalid input.
4463 continue
4464 else
4465   # Passes both tests.
4466 ac_preproc_ok=:
4467 break
4468 fi
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4470
4471 done
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.i conftest.err conftest.$ac_ext
4474 if $ac_preproc_ok; then :
4475
4476 else
4477   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4480 See \`config.log' for more details" "$LINENO" 5; }
4481 fi
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4491 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4492 if ${ac_cv_path_GREP+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if test -z "$GREP"; then
4496   ac_path_GREP_found=false
4497   # Loop through the user's path and test for each of PROGNAME-LIST
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_prog in grep ggrep; do
4504     for ac_exec_ext in '' $ac_executable_extensions; do
4505       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4506       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4507 # Check for GNU ac_path_GREP and select it if it is found.
4508   # Check for GNU $ac_path_GREP
4509 case `"$ac_path_GREP" --version 2>&1` in
4510 *GNU*)
4511   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 *)
4513   ac_count=0
4514   $as_echo_n 0123456789 >"conftest.in"
4515   while :
4516   do
4517     cat "conftest.in" "conftest.in" >"conftest.tmp"
4518     mv "conftest.tmp" "conftest.in"
4519     cp "conftest.in" "conftest.nl"
4520     $as_echo 'GREP' >> "conftest.nl"
4521     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523     as_fn_arith $ac_count + 1 && ac_count=$as_val
4524     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4525       # Best one so far, save it but keep looking for a better one
4526       ac_cv_path_GREP="$ac_path_GREP"
4527       ac_path_GREP_max=$ac_count
4528     fi
4529     # 10*(2^10) chars as input seems more than enough
4530     test $ac_count -gt 10 && break
4531   done
4532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 esac
4534
4535       $ac_path_GREP_found && break 3
4536     done
4537   done
4538   done
4539 IFS=$as_save_IFS
4540   if test -z "$ac_cv_path_GREP"; then
4541     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542   fi
4543 else
4544   ac_cv_path_GREP=$GREP
4545 fi
4546
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4549 $as_echo "$ac_cv_path_GREP" >&6; }
4550  GREP="$ac_cv_path_GREP"
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4554 $as_echo_n "checking for egrep... " >&6; }
4555 if ${ac_cv_path_EGREP+:} false; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4559    then ac_cv_path_EGREP="$GREP -E"
4560    else
4561      if test -z "$EGREP"; then
4562   ac_path_EGREP_found=false
4563   # Loop through the user's path and test for each of PROGNAME-LIST
4564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569     for ac_prog in egrep; do
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4572       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4573 # Check for GNU ac_path_EGREP and select it if it is found.
4574   # Check for GNU $ac_path_EGREP
4575 case `"$ac_path_EGREP" --version 2>&1` in
4576 *GNU*)
4577   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4578 *)
4579   ac_count=0
4580   $as_echo_n 0123456789 >"conftest.in"
4581   while :
4582   do
4583     cat "conftest.in" "conftest.in" >"conftest.tmp"
4584     mv "conftest.tmp" "conftest.in"
4585     cp "conftest.in" "conftest.nl"
4586     $as_echo 'EGREP' >> "conftest.nl"
4587     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589     as_fn_arith $ac_count + 1 && ac_count=$as_val
4590     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4591       # Best one so far, save it but keep looking for a better one
4592       ac_cv_path_EGREP="$ac_path_EGREP"
4593       ac_path_EGREP_max=$ac_count
4594     fi
4595     # 10*(2^10) chars as input seems more than enough
4596     test $ac_count -gt 10 && break
4597   done
4598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601       $ac_path_EGREP_found && break 3
4602     done
4603   done
4604   done
4605 IFS=$as_save_IFS
4606   if test -z "$ac_cv_path_EGREP"; then
4607     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608   fi
4609 else
4610   ac_cv_path_EGREP=$EGREP
4611 fi
4612
4613    fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4616 $as_echo "$ac_cv_path_EGREP" >&6; }
4617  EGREP="$ac_cv_path_EGREP"
4618
4619
4620
4621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4622 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4623 if ${ac_cv_gnu_library_2+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628
4629 #include <features.h>
4630 #ifdef __GNU_LIBRARY__
4631  #if (__GLIBC__ >= 2)
4632   Lucky GNU user
4633  #endif
4634 #endif
4635
4636 _ACEOF
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4639   ac_cv_gnu_library_2=yes
4640 else
4641   ac_cv_gnu_library_2=no
4642 fi
4643 rm -f conftest*
4644
4645
4646
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4649 $as_echo "$ac_cv_gnu_library_2" >&6; }
4650
4651     GLIBC2="$ac_cv_gnu_library_2"
4652
4653
4654 if test -n "$ac_tool_prefix"; then
4655   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_RANLIB+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   if test -n "$RANLIB"; then
4663   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677   done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 RANLIB=$ac_cv_prog_RANLIB
4683 if test -n "$RANLIB"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4685 $as_echo "$RANLIB" >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 fi
4690
4691
4692 fi
4693 if test -z "$ac_cv_prog_RANLIB"; then
4694   ac_ct_RANLIB=$RANLIB
4695   # Extract the first word of "ranlib", so it can be a program name with args.
4696 set dummy ranlib; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -n "$ac_ct_RANLIB"; then
4703   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_ac_ct_RANLIB="ranlib"
4713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717   done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4723 if test -n "$ac_ct_RANLIB"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4725 $as_echo "$ac_ct_RANLIB" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731   if test "x$ac_ct_RANLIB" = x; then
4732     RANLIB=":"
4733   else
4734     case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740     RANLIB=$ac_ct_RANLIB
4741   fi
4742 else
4743   RANLIB="$ac_cv_prog_RANLIB"
4744 fi
4745
4746
4747
4748   CFLAG_VISIBILITY=
4749   HAVE_VISIBILITY=0
4750   if test -n "$GCC"; then
4751                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4752 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4753     if ${gl_cv_cc_vis_werror+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756
4757       gl_save_CFLAGS="$CFLAGS"
4758       CFLAGS="$CFLAGS -Werror"
4759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761
4762 int
4763 main ()
4764 {
4765
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771   gl_cv_cc_vis_werror=yes
4772 else
4773   gl_cv_cc_vis_werror=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776       CFLAGS="$gl_save_CFLAGS"
4777 fi
4778
4779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4780 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4782 $as_echo_n "checking for simple visibility declarations... " >&6; }
4783     if ${gl_cv_cc_visibility+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786
4787       gl_save_CFLAGS="$CFLAGS"
4788       CFLAGS="$CFLAGS -fvisibility=hidden"
4789                                     if test $gl_cv_cc_vis_werror = yes; then
4790         CFLAGS="$CFLAGS -Werror"
4791       fi
4792       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h.  */
4794 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4795          extern __attribute__((__visibility__("default"))) int exportedvar;
4796          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4797          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4798          void dummyfunc (void) {}
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808   gl_cv_cc_visibility=yes
4809 else
4810   gl_cv_cc_visibility=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813       CFLAGS="$gl_save_CFLAGS"
4814 fi
4815
4816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
4817 $as_echo "$gl_cv_cc_visibility" >&6; }
4818     if test $gl_cv_cc_visibility = yes; then
4819       CFLAG_VISIBILITY="-fvisibility=hidden"
4820       HAVE_VISIBILITY=1
4821     fi
4822   fi
4823
4824
4825
4826 cat >>confdefs.h <<_ACEOF
4827 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4828 _ACEOF
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4832 $as_echo_n "checking for inline... " >&6; }
4833 if ${ac_cv_c_inline+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   ac_cv_c_inline=no
4837 for ac_kw in inline __inline__ __inline; do
4838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h.  */
4840 #ifndef __cplusplus
4841 typedef int foo_t;
4842 static $ac_kw foo_t static_foo () {return 0; }
4843 $ac_kw foo_t foo () {return 0; }
4844 #endif
4845
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848   ac_cv_c_inline=$ac_kw
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851   test "$ac_cv_c_inline" != no && break
4852 done
4853
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4856 $as_echo "$ac_cv_c_inline" >&6; }
4857
4858 case $ac_cv_c_inline in
4859   inline | yes) ;;
4860   *)
4861     case $ac_cv_c_inline in
4862       no) ac_val=;;
4863       *) ac_val=$ac_cv_c_inline;;
4864     esac
4865     cat >>confdefs.h <<_ACEOF
4866 #ifndef __cplusplus
4867 #define inline $ac_val
4868 #endif
4869 _ACEOF
4870     ;;
4871 esac
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4874 $as_echo_n "checking for ANSI C header files... " >&6; }
4875 if ${ac_cv_header_stdc+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880 #include <stdlib.h>
4881 #include <stdarg.h>
4882 #include <string.h>
4883 #include <float.h>
4884
4885 int
4886 main ()
4887 {
4888
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894   ac_cv_header_stdc=yes
4895 else
4896   ac_cv_header_stdc=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899
4900 if test $ac_cv_header_stdc = yes; then
4901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h.  */
4904 #include <string.h>
4905
4906 _ACEOF
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908   $EGREP "memchr" >/dev/null 2>&1; then :
4909
4910 else
4911   ac_cv_header_stdc=no
4912 fi
4913 rm -f conftest*
4914
4915 fi
4916
4917 if test $ac_cv_header_stdc = yes; then
4918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4921 #include <stdlib.h>
4922
4923 _ACEOF
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925   $EGREP "free" >/dev/null 2>&1; then :
4926
4927 else
4928   ac_cv_header_stdc=no
4929 fi
4930 rm -f conftest*
4931
4932 fi
4933
4934 if test $ac_cv_header_stdc = yes; then
4935   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4936   if test "$cross_compiling" = yes; then :
4937   :
4938 else
4939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h.  */
4941 #include <ctype.h>
4942 #include <stdlib.h>
4943 #if ((' ' & 0x0FF) == 0x020)
4944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4946 #else
4947 # define ISLOWER(c) \
4948                    (('a' <= (c) && (c) <= 'i') \
4949                      || ('j' <= (c) && (c) <= 'r') \
4950                      || ('s' <= (c) && (c) <= 'z'))
4951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952 #endif
4953
4954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4955 int
4956 main ()
4957 {
4958   int i;
4959   for (i = 0; i < 256; i++)
4960     if (XOR (islower (i), ISLOWER (i))
4961         || toupper (i) != TOUPPER (i))
4962       return 2;
4963   return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_run "$LINENO"; then :
4967
4968 else
4969   ac_cv_header_stdc=no
4970 fi
4971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4972   conftest.$ac_objext conftest.beam conftest.$ac_ext
4973 fi
4974
4975 fi
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4978 $as_echo "$ac_cv_header_stdc" >&6; }
4979 if test $ac_cv_header_stdc = yes; then
4980
4981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4982
4983 fi
4984
4985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4987                   inttypes.h stdint.h unistd.h
4988 do :
4989   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4991 "
4992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4993   cat >>confdefs.h <<_ACEOF
4994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 _ACEOF
4996
4997 fi
4998
4999 done
5000
5001
5002 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5003 if test "x$ac_cv_type_size_t" = xyes; then :
5004
5005 else
5006
5007 cat >>confdefs.h <<_ACEOF
5008 #define size_t unsigned int
5009 _ACEOF
5010
5011 fi
5012
5013
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5015 $as_echo_n "checking for stdint.h... " >&6; }
5016 if ${gl_cv_header_stdint_h+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021 #include <sys/types.h>
5022 #include <stdint.h>
5023 int
5024 main ()
5025 {
5026 uintmax_t i = (uintmax_t) -1; return !i;
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032   gl_cv_header_stdint_h=yes
5033 else
5034   gl_cv_header_stdint_h=no
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5039 $as_echo "$gl_cv_header_stdint_h" >&6; }
5040   if test $gl_cv_header_stdint_h = yes; then
5041
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_STDINT_H_WITH_UINTMAX 1
5044 _ACEOF
5045
5046   fi
5047
5048 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5049 # for constant arguments.  Useless!
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5051 $as_echo_n "checking for working alloca.h... " >&6; }
5052 if ${ac_cv_working_alloca_h+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057 #include <alloca.h>
5058 int
5059 main ()
5060 {
5061 char *p = (char *) alloca (2 * sizeof (int));
5062                           if (p) return 0;
5063   ;
5064   return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_link "$LINENO"; then :
5068   ac_cv_working_alloca_h=yes
5069 else
5070   ac_cv_working_alloca_h=no
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext \
5073     conftest$ac_exeext conftest.$ac_ext
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5076 $as_echo "$ac_cv_working_alloca_h" >&6; }
5077 if test $ac_cv_working_alloca_h = yes; then
5078
5079 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5080
5081 fi
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5084 $as_echo_n "checking for alloca... " >&6; }
5085 if ${ac_cv_func_alloca_works+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h.  */
5090 #ifdef __GNUC__
5091 # define alloca __builtin_alloca
5092 #else
5093 # ifdef _MSC_VER
5094 #  include <malloc.h>
5095 #  define alloca _alloca
5096 # else
5097 #  ifdef HAVE_ALLOCA_H
5098 #   include <alloca.h>
5099 #  else
5100 #   ifdef _AIX
5101  #pragma alloca
5102 #   else
5103 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5104 void *alloca (size_t);
5105 #    endif
5106 #   endif
5107 #  endif
5108 # endif
5109 #endif
5110
5111 int
5112 main ()
5113 {
5114 char *p = (char *) alloca (1);
5115                                     if (p) return 0;
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_c_try_link "$LINENO"; then :
5121   ac_cv_func_alloca_works=yes
5122 else
5123   ac_cv_func_alloca_works=no
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext \
5126     conftest$ac_exeext conftest.$ac_ext
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5129 $as_echo "$ac_cv_func_alloca_works" >&6; }
5130
5131 if test $ac_cv_func_alloca_works = yes; then
5132
5133 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5134
5135 else
5136   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5137 # that cause trouble.  Some versions do not even contain alloca or
5138 # contain a buggy version.  If you still want to use their alloca,
5139 # use ar to extract alloca.o from them instead of compiling alloca.c.
5140
5141 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5142
5143 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5144
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5147 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5148 if ${ac_cv_os_cray+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #if defined CRAY && ! defined CRAY2
5154 webecray
5155 #else
5156 wenotbecray
5157 #endif
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161   $EGREP "webecray" >/dev/null 2>&1; then :
5162   ac_cv_os_cray=yes
5163 else
5164   ac_cv_os_cray=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5170 $as_echo "$ac_cv_os_cray" >&6; }
5171 if test $ac_cv_os_cray = yes; then
5172   for ac_func in _getb67 GETB67 getb67; do
5173     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5176
5177 cat >>confdefs.h <<_ACEOF
5178 #define CRAY_STACKSEG_END $ac_func
5179 _ACEOF
5180
5181     break
5182 fi
5183
5184   done
5185 fi
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5188 $as_echo_n "checking stack direction for C alloca... " >&6; }
5189 if ${ac_cv_c_stack_direction+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   if test "$cross_compiling" = yes; then :
5193   ac_cv_c_stack_direction=0
5194 else
5195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h.  */
5197 $ac_includes_default
5198 int
5199 find_stack_direction ()
5200 {
5201   static char *addr = 0;
5202   auto char dummy;
5203   if (addr == 0)
5204     {
5205       addr = &dummy;
5206       return find_stack_direction ();
5207     }
5208   else
5209     return (&dummy > addr) ? 1 : -1;
5210 }
5211
5212 int
5213 main ()
5214 {
5215   return find_stack_direction () < 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_run "$LINENO"; then :
5219   ac_cv_c_stack_direction=1
5220 else
5221   ac_cv_c_stack_direction=-1
5222 fi
5223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5224   conftest.$ac_objext conftest.beam conftest.$ac_ext
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5229 $as_echo "$ac_cv_c_stack_direction" >&6; }
5230 cat >>confdefs.h <<_ACEOF
5231 #define STACK_DIRECTION $ac_cv_c_stack_direction
5232 _ACEOF
5233
5234
5235 fi
5236
5237
5238
5239
5240   for ac_header in $ac_header_list
5241 do :
5242   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5244 "
5245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5246   cat >>confdefs.h <<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248 _ACEOF
5249
5250 fi
5251
5252 done
5253
5254
5255
5256
5257
5258
5259
5260
5261 for ac_func in getpagesize
5262 do :
5263   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5264 if test "x$ac_cv_func_getpagesize" = xyes; then :
5265   cat >>confdefs.h <<_ACEOF
5266 #define HAVE_GETPAGESIZE 1
5267 _ACEOF
5268
5269 fi
5270 done
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5273 $as_echo_n "checking for working mmap... " >&6; }
5274 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test "$cross_compiling" = yes; then :
5278   ac_cv_func_mmap_fixed_mapped=no
5279 else
5280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h.  */
5282 $ac_includes_default
5283 /* malloc might have been renamed as rpl_malloc. */
5284 #undef malloc
5285
5286 /* Thanks to Mike Haertel and Jim Avera for this test.
5287    Here is a matrix of mmap possibilities:
5288         mmap private not fixed
5289         mmap private fixed at somewhere currently unmapped
5290         mmap private fixed at somewhere already mapped
5291         mmap shared not fixed
5292         mmap shared fixed at somewhere currently unmapped
5293         mmap shared fixed at somewhere already mapped
5294    For private mappings, we should verify that changes cannot be read()
5295    back from the file, nor mmap's back from the file at a different
5296    address.  (There have been systems where private was not correctly
5297    implemented like the infamous i386 svr4.0, and systems where the
5298    VM page cache was not coherent with the file system buffer cache
5299    like early versions of FreeBSD and possibly contemporary NetBSD.)
5300    For shared mappings, we should conversely verify that changes get
5301    propagated back to all the places they're supposed to be.
5302
5303    Grep wants private fixed already mapped.
5304    The main things grep needs to know about mmap are:
5305    * does it exist and is it safe to write into the mmap'd area
5306    * how to use it (BSD variants)  */
5307
5308 #include <fcntl.h>
5309 #include <sys/mman.h>
5310
5311 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5312 char *malloc ();
5313 #endif
5314
5315 /* This mess was copied from the GNU getpagesize.h.  */
5316 #ifndef HAVE_GETPAGESIZE
5317 # ifdef _SC_PAGESIZE
5318 #  define getpagesize() sysconf(_SC_PAGESIZE)
5319 # else /* no _SC_PAGESIZE */
5320 #  ifdef HAVE_SYS_PARAM_H
5321 #   include <sys/param.h>
5322 #   ifdef EXEC_PAGESIZE
5323 #    define getpagesize() EXEC_PAGESIZE
5324 #   else /* no EXEC_PAGESIZE */
5325 #    ifdef NBPG
5326 #     define getpagesize() NBPG * CLSIZE
5327 #     ifndef CLSIZE
5328 #      define CLSIZE 1
5329 #     endif /* no CLSIZE */
5330 #    else /* no NBPG */
5331 #     ifdef NBPC
5332 #      define getpagesize() NBPC
5333 #     else /* no NBPC */
5334 #      ifdef PAGESIZE
5335 #       define getpagesize() PAGESIZE
5336 #      endif /* PAGESIZE */
5337 #     endif /* no NBPC */
5338 #    endif /* no NBPG */
5339 #   endif /* no EXEC_PAGESIZE */
5340 #  else /* no HAVE_SYS_PARAM_H */
5341 #   define getpagesize() 8192   /* punt totally */
5342 #  endif /* no HAVE_SYS_PARAM_H */
5343 # endif /* no _SC_PAGESIZE */
5344
5345 #endif /* no HAVE_GETPAGESIZE */
5346
5347 int
5348 main ()
5349 {
5350   char *data, *data2, *data3;
5351   const char *cdata2;
5352   int i, pagesize;
5353   int fd, fd2;
5354
5355   pagesize = getpagesize ();
5356
5357   /* First, make a file with some known garbage in it. */
5358   data = (char *) malloc (pagesize);
5359   if (!data)
5360     return 1;
5361   for (i = 0; i < pagesize; ++i)
5362     *(data + i) = rand ();
5363   umask (0);
5364   fd = creat ("conftest.mmap", 0600);
5365   if (fd < 0)
5366     return 2;
5367   if (write (fd, data, pagesize) != pagesize)
5368     return 3;
5369   close (fd);
5370
5371   /* Next, check that the tail of a page is zero-filled.  File must have
5372      non-zero length, otherwise we risk SIGBUS for entire page.  */
5373   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5374   if (fd2 < 0)
5375     return 4;
5376   cdata2 = "";
5377   if (write (fd2, cdata2, 1) != 1)
5378     return 5;
5379   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5380   if (data2 == MAP_FAILED)
5381     return 6;
5382   for (i = 0; i < pagesize; ++i)
5383     if (*(data2 + i))
5384       return 7;
5385   close (fd2);
5386   if (munmap (data2, pagesize))
5387     return 8;
5388
5389   /* Next, try to mmap the file at a fixed address which already has
5390      something else allocated at it.  If we can, also make sure that
5391      we see the same garbage.  */
5392   fd = open ("conftest.mmap", O_RDWR);
5393   if (fd < 0)
5394     return 9;
5395   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5396                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5397     return 10;
5398   for (i = 0; i < pagesize; ++i)
5399     if (*(data + i) != *(data2 + i))
5400       return 11;
5401
5402   /* Finally, make sure that changes to the mapped area do not
5403      percolate back to the file as seen by read().  (This is a bug on
5404      some variants of i386 svr4.0.)  */
5405   for (i = 0; i < pagesize; ++i)
5406     *(data2 + i) = *(data2 + i) + 1;
5407   data3 = (char *) malloc (pagesize);
5408   if (!data3)
5409     return 12;
5410   if (read (fd, data3, pagesize) != pagesize)
5411     return 13;
5412   for (i = 0; i < pagesize; ++i)
5413     if (*(data + i) != *(data3 + i))
5414       return 14;
5415   close (fd);
5416   return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_run "$LINENO"; then :
5420   ac_cv_func_mmap_fixed_mapped=yes
5421 else
5422   ac_cv_func_mmap_fixed_mapped=no
5423 fi
5424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5425   conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 fi
5427
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5430 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5431 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5432
5433 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5434
5435 fi
5436 rm -f conftest.mmap conftest.txt
5437
5438
5439
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5441 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5442 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445
5446       gt_cv_int_divbyzero_sigfpe=
5447       case "$host_os" in
5448         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5449           # On MacOS X 10.2 or newer, just assume the same as when cross-
5450           # compiling. If we were to perform the real test, 1 Crash Report
5451           # dialog window would pop up.
5452           case "$host_cpu" in
5453             i[34567]86 | x86_64)
5454               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5455           esac
5456           ;;
5457       esac
5458       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5459         if test "$cross_compiling" = yes; then :
5460
5461             # Guess based on the CPU.
5462             case "$host_cpu" in
5463               alpha* | i[34567]86 | x86_64 | m68k | s390*)
5464                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5465               *)
5466                 gt_cv_int_divbyzero_sigfpe="guessing no";;
5467             esac
5468
5469 else
5470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h.  */
5472
5473 #include <stdlib.h>
5474 #include <signal.h>
5475
5476 static void
5477 sigfpe_handler (int sig)
5478 {
5479   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5480   exit (sig != SIGFPE);
5481 }
5482
5483 int x = 1;
5484 int y = 0;
5485 int z;
5486 int nan;
5487
5488 int main ()
5489 {
5490   signal (SIGFPE, sigfpe_handler);
5491 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5492 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5493   signal (SIGTRAP, sigfpe_handler);
5494 #endif
5495 /* Linux/SPARC yields signal SIGILL.  */
5496 #if defined (__sparc__) && defined (__linux__)
5497   signal (SIGILL, sigfpe_handler);
5498 #endif
5499
5500   z = x / y;
5501   nan = y / y;
5502   exit (1);
5503 }
5504
5505 _ACEOF
5506 if ac_fn_c_try_run "$LINENO"; then :
5507   gt_cv_int_divbyzero_sigfpe=yes
5508 else
5509   gt_cv_int_divbyzero_sigfpe=no
5510 fi
5511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5512   conftest.$ac_objext conftest.beam conftest.$ac_ext
5513 fi
5514
5515       fi
5516
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5519 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5520   case "$gt_cv_int_divbyzero_sigfpe" in
5521     *yes) value=1;;
5522     *) value=0;;
5523   esac
5524
5525 cat >>confdefs.h <<_ACEOF
5526 #define INTDIV0_RAISES_SIGFPE $value
5527 _ACEOF
5528
5529
5530
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5532 $as_echo_n "checking for inttypes.h... " >&6; }
5533 if ${gl_cv_header_inttypes_h+:} false; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h.  */
5538 #include <sys/types.h>
5539 #include <inttypes.h>
5540 int
5541 main ()
5542 {
5543 uintmax_t i = (uintmax_t) -1; return !i;
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"; then :
5549   gl_cv_header_inttypes_h=yes
5550 else
5551   gl_cv_header_inttypes_h=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5556 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5557   if test $gl_cv_header_inttypes_h = yes; then
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5561 _ACEOF
5562
5563   fi
5564
5565
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5567 $as_echo_n "checking for unsigned long long int... " >&6; }
5568 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h.  */
5573
5574   /* For now, do not test the preprocessor; as of 2007 there are too many
5575          implementations with broken preprocessors.  Perhaps this can
5576          be revisited in 2012.  In the meantime, code should not expect
5577          #if to work with literals wider than 32 bits.  */
5578       /* Test literals.  */
5579       long long int ll = 9223372036854775807ll;
5580       long long int nll = -9223372036854775807LL;
5581       unsigned long long int ull = 18446744073709551615ULL;
5582       /* Test constant expressions.   */
5583       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5584                      ? 1 : -1)];
5585       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5586                      ? 1 : -1)];
5587       int i = 63;
5588 int
5589 main ()
5590 {
5591 /* Test availability of runtime routines for shift and division.  */
5592       long long int llmax = 9223372036854775807ll;
5593       unsigned long long int ullmax = 18446744073709551615ull;
5594       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5595               | (llmax / ll) | (llmax % ll)
5596               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5597               | (ullmax / ull) | (ullmax % ull));
5598   ;
5599   return 0;
5600 }
5601
5602 _ACEOF
5603 if ac_fn_c_try_link "$LINENO"; then :
5604   ac_cv_type_unsigned_long_long_int=yes
5605 else
5606   ac_cv_type_unsigned_long_long_int=no
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext \
5609     conftest$ac_exeext conftest.$ac_ext
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5613   if test $ac_cv_type_unsigned_long_long_int = yes; then
5614
5615 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5616
5617   fi
5618
5619
5620
5621
5622   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5623
5624     test $ac_cv_type_unsigned_long_long_int = yes \
5625       && ac_type='unsigned long long' \
5626       || ac_type='unsigned long'
5627
5628 cat >>confdefs.h <<_ACEOF
5629 #define uintmax_t $ac_type
5630 _ACEOF
5631
5632   else
5633
5634 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5635
5636   fi
5637
5638
5639   for ac_header in inttypes.h
5640 do :
5641   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5642 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5643   cat >>confdefs.h <<_ACEOF
5644 #define HAVE_INTTYPES_H 1
5645 _ACEOF
5646
5647 fi
5648
5649 done
5650
5651   if test $ac_cv_header_inttypes_h = yes; then
5652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5653 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5654 if ${gt_cv_inttypes_pri_broken+:} false; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657
5658         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h.  */
5660 #include <inttypes.h>
5661 #ifdef PRId32
5662 char *p = PRId32;
5663 #endif
5664
5665 int
5666 main ()
5667 {
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674   gt_cv_inttypes_pri_broken=no
5675 else
5676   gt_cv_inttypes_pri_broken=yes
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5682 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5683   fi
5684   if test "$gt_cv_inttypes_pri_broken" = yes; then
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define PRI_MACROS_BROKEN 1
5688 _ACEOF
5689
5690     PRI_MACROS_BROKEN=1
5691   else
5692     PRI_MACROS_BROKEN=0
5693   fi
5694
5695
5696
5697   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5698 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5699   MINIX=yes
5700 else
5701   MINIX=
5702 fi
5703
5704
5705   if test "$MINIX" = yes; then
5706
5707 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5708
5709
5710 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5711
5712
5713 $as_echo "#define _MINIX 1" >>confdefs.h
5714
5715   fi
5716
5717
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5719 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5720 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h.  */
5725
5726 #         define __EXTENSIONS__ 1
5727           $ac_includes_default
5728 int
5729 main ()
5730 {
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737   ac_cv_safe_to_define___extensions__=yes
5738 else
5739   ac_cv_safe_to_define___extensions__=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5744 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5745   test $ac_cv_safe_to_define___extensions__ = yes &&
5746     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5747
5748   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5749
5750   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5751
5752   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5753
5754   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5755
5756
5757
5758
5759
5760
5761
5762   # Check whether --enable-threads was given.
5763 if test "${enable_threads+set}" = set; then :
5764   enableval=$enable_threads; gl_use_threads=$enableval
5765 else
5766   if test -n "$gl_use_threads_default"; then
5767        gl_use_threads="$gl_use_threads_default"
5768      else
5769        case "$host_os" in
5770                                                                osf*) gl_use_threads=no ;;
5771          cygwin*)
5772                case `uname -r` in
5773                  1.[0-5].*) gl_use_threads=no ;;
5774                  *)         gl_use_threads=yes ;;
5775                esac
5776                ;;
5777          *)    gl_use_threads=yes ;;
5778        esac
5779      fi
5780
5781 fi
5782
5783   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5784     # For using <pthread.h>:
5785     case "$host_os" in
5786       osf*)
5787         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5788         # groks <pthread.h>. cc also understands the flag -pthread, but
5789         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5790         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5791         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5792         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5793         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5794         ;;
5795     esac
5796     # Some systems optimize for single-threaded programs by default, and
5797     # need special flags to disable these optimizations. For example, the
5798     # definition of 'errno' in <errno.h>.
5799     case "$host_os" in
5800       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5801       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5802     esac
5803   fi
5804
5805
5806
5807
5808
5809       if test "X$prefix" = "XNONE"; then
5810     acl_final_prefix="$ac_default_prefix"
5811   else
5812     acl_final_prefix="$prefix"
5813   fi
5814   if test "X$exec_prefix" = "XNONE"; then
5815     acl_final_exec_prefix='${prefix}'
5816   else
5817     acl_final_exec_prefix="$exec_prefix"
5818   fi
5819   acl_save_prefix="$prefix"
5820   prefix="$acl_final_prefix"
5821   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5822   prefix="$acl_save_prefix"
5823
5824
5825 # Check whether --with-gnu-ld was given.
5826 if test "${with_gnu_ld+set}" = set; then :
5827   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5828 else
5829   with_gnu_ld=no
5830 fi
5831
5832 # Prepare PATH_SEPARATOR.
5833 # The user is always right.
5834 if test "${PATH_SEPARATOR+set}" != set; then
5835   echo "#! /bin/sh" >conf$$.sh
5836   echo  "exit 0"   >>conf$$.sh
5837   chmod +x conf$$.sh
5838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5839     PATH_SEPARATOR=';'
5840   else
5841     PATH_SEPARATOR=:
5842   fi
5843   rm -f conf$$.sh
5844 fi
5845 ac_prog=ld
5846 if test "$GCC" = yes; then
5847   # Check if gcc -print-prog-name=ld gives a path.
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5849 $as_echo_n "checking for ld used by GCC... " >&6; }
5850   case $host in
5851   *-*-mingw*)
5852     # gcc leaves a trailing carriage return which upsets mingw
5853     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5854   *)
5855     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5856   esac
5857   case $ac_prog in
5858     # Accept absolute paths.
5859     [\\/]* | [A-Za-z]:[\\/]*)
5860       re_direlt='/[^/][^/]*/\.\./'
5861       # Canonicalize the path of ld
5862       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5863       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5864         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5865       done
5866       test -z "$LD" && LD="$ac_prog"
5867       ;;
5868   "")
5869     # If it fails, then pretend we aren't using GCC.
5870     ac_prog=ld
5871     ;;
5872   *)
5873     # If it is relative, then search for the first ld in PATH.
5874     with_gnu_ld=unknown
5875     ;;
5876   esac
5877 elif test "$with_gnu_ld" = yes; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5879 $as_echo_n "checking for GNU ld... " >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5882 $as_echo_n "checking for non-GNU ld... " >&6; }
5883 fi
5884 if ${acl_cv_path_LD+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   if test -z "$LD"; then
5888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5889   for ac_dir in $PATH; do
5890     test -z "$ac_dir" && ac_dir=.
5891     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5892       acl_cv_path_LD="$ac_dir/$ac_prog"
5893       # Check to see if the program is GNU ld.  I'd rather use --version,
5894       # but apparently some GNU ld's only accept -v.
5895       # Break only if it was the GNU/non-GNU ld that we prefer.
5896       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5897       *GNU* | *'with BFD'*)
5898         test "$with_gnu_ld" != no && break ;;
5899       *)
5900         test "$with_gnu_ld" != yes && break ;;
5901       esac
5902     fi
5903   done
5904   IFS="$ac_save_ifs"
5905 else
5906   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5907 fi
5908 fi
5909
5910 LD="$acl_cv_path_LD"
5911 if test -n "$LD"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913 $as_echo "$LD" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5921 if ${acl_cv_prog_gnu_ld+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5925 case `$LD -v 2>&1 </dev/null` in
5926 *GNU* | *'with BFD'*)
5927   acl_cv_prog_gnu_ld=yes ;;
5928 *)
5929   acl_cv_prog_gnu_ld=no ;;
5930 esac
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5933 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5934 with_gnu_ld=$acl_cv_prog_gnu_ld
5935
5936
5937
5938
5939                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5940 $as_echo_n "checking for shared library run path origin... " >&6; }
5941 if ${acl_cv_rpath+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944
5945     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5946     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5947     . ./conftest.sh
5948     rm -f ./conftest.sh
5949     acl_cv_rpath=done
5950
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5953 $as_echo "$acl_cv_rpath" >&6; }
5954   wl="$acl_cv_wl"
5955   acl_libext="$acl_cv_libext"
5956   acl_shlibext="$acl_cv_shlibext"
5957   acl_libname_spec="$acl_cv_libname_spec"
5958   acl_library_names_spec="$acl_cv_library_names_spec"
5959   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5960   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5961   acl_hardcode_direct="$acl_cv_hardcode_direct"
5962   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5963     # Check whether --enable-rpath was given.
5964 if test "${enable_rpath+set}" = set; then :
5965   enableval=$enable_rpath; :
5966 else
5967   enable_rpath=yes
5968 fi
5969
5970
5971
5972
5973   acl_libdirstem=lib
5974   acl_libdirstem2=
5975   case "$host_os" in
5976     solaris*)
5977                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5978 $as_echo_n "checking for 64-bit host... " >&6; }
5979 if ${gl_cv_solaris_64bit+:} false; then :
5980   $as_echo_n "(cached) " >&6
5981 else
5982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h.  */
5984
5985 #ifdef _LP64
5986 sixtyfour bits
5987 #endif
5988
5989 _ACEOF
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5992   gl_cv_solaris_64bit=yes
5993 else
5994   gl_cv_solaris_64bit=no
5995 fi
5996 rm -f conftest*
5997
5998
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6001 $as_echo "$gl_cv_solaris_64bit" >&6; }
6002       if test $gl_cv_solaris_64bit = yes; then
6003         acl_libdirstem=lib/64
6004         case "$host_cpu" in
6005           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6006           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6007         esac
6008       fi
6009       ;;
6010     *)
6011       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6012       if test -n "$searchpath"; then
6013         acl_save_IFS="${IFS=    }"; IFS=":"
6014         for searchdir in $searchpath; do
6015           if test -d "$searchdir"; then
6016             case "$searchdir" in
6017               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6018               */../ | */.. )
6019                 # Better ignore directories of this form. They are misleading.
6020                 ;;
6021               *) searchdir=`cd "$searchdir" && pwd`
6022                  case "$searchdir" in
6023                    */lib64 ) acl_libdirstem=lib64 ;;
6024                  esac ;;
6025             esac
6026           fi
6027         done
6028         IFS="$acl_save_IFS"
6029       fi
6030       ;;
6031   esac
6032   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6033
6034
6035
6036   gl_threads_api=none
6037   LIBTHREAD=
6038   LTLIBTHREAD=
6039   LIBMULTITHREAD=
6040   LTLIBMULTITHREAD=
6041   if test "$gl_use_threads" != no; then
6042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6043 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6044 if ${gl_cv_have_weak+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   gl_cv_have_weak=no
6048               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050 extern void xyzzy ();
6051 #pragma weak xyzzy
6052 int
6053 main ()
6054 {
6055 xyzzy();
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_link "$LINENO"; then :
6061   gl_cv_have_weak=maybe
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext \
6064     conftest$ac_exeext conftest.$ac_ext
6065        if test $gl_cv_have_weak = maybe; then
6066                            if test "$cross_compiling" = yes; then :
6067                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h.  */
6069 #ifdef __ELF__
6070                Extensible Linking Format
6071                #endif
6072
6073 _ACEOF
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6076   gl_cv_have_weak="guessing yes"
6077 else
6078   gl_cv_have_weak="guessing no"
6079 fi
6080 rm -f conftest*
6081
6082
6083 else
6084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h.  */
6086
6087 #include <stdio.h>
6088 #pragma weak fputs
6089 int main ()
6090 {
6091   return (fputs == NULL);
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_run "$LINENO"; then :
6095   gl_cv_have_weak=yes
6096 else
6097   gl_cv_have_weak=no
6098 fi
6099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6100   conftest.$ac_objext conftest.beam conftest.$ac_ext
6101 fi
6102
6103        fi
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6107 $as_echo "$gl_cv_have_weak" >&6; }
6108     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6109       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6110       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6111       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6112 if test "x$ac_cv_header_pthread_h" = xyes; then :
6113   gl_have_pthread_h=yes
6114 else
6115   gl_have_pthread_h=no
6116 fi
6117
6118
6119       if test "$gl_have_pthread_h" = yes; then
6120         # Other possible tests:
6121         #   -lpthreads (FSU threads, PCthreads)
6122         #   -lgthreads
6123         gl_have_pthread=
6124         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6125         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6126         # the second one only in libpthread, and lock.c needs it.
6127         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h.  */
6129 #include <pthread.h>
6130 int
6131 main ()
6132 {
6133 pthread_mutex_lock((pthread_mutex_t*)0);
6134            pthread_mutexattr_init((pthread_mutexattr_t*)0);
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_link "$LINENO"; then :
6140   gl_have_pthread=yes
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext \
6143     conftest$ac_exeext conftest.$ac_ext
6144         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6145         # since it is defined as a macro on OSF/1.)
6146         if test -n "$gl_have_pthread"; then
6147           # The program links fine without libpthread. But it may actually
6148           # need to link with libpthread in order to create multiple threads.
6149           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6150 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6151 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   ac_check_lib_save_LIBS=$LIBS
6155 LIBS="-lpthread  $LIBS"
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h.  */
6158
6159 /* Override any GCC internal prototype to avoid an error.
6160    Use char because int might match the return type of a GCC
6161    builtin and then its argument prototype would still apply.  */
6162 #ifdef __cplusplus
6163 extern "C"
6164 #endif
6165 char pthread_kill ();
6166 int
6167 main ()
6168 {
6169 return pthread_kill ();
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_c_try_link "$LINENO"; then :
6175   ac_cv_lib_pthread_pthread_kill=yes
6176 else
6177   ac_cv_lib_pthread_pthread_kill=no
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext \
6180     conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6184 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6185 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6186   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6187              # On Solaris and HP-UX, most pthread functions exist also in libc.
6188              # Therefore pthread_in_use() needs to actually try to create a
6189              # thread: pthread_create from libc will fail, whereas
6190              # pthread_create will actually create a thread.
6191              case "$host_os" in
6192                solaris* | hpux*)
6193
6194 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6195
6196              esac
6197
6198 fi
6199
6200         else
6201           # Some library is needed. Try libpthread and libc_r.
6202           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6203 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6204 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lpthread  $LIBS"
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h.  */
6211
6212 /* Override any GCC internal prototype to avoid an error.
6213    Use char because int might match the return type of a GCC
6214    builtin and then its argument prototype would still apply.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 char pthread_kill ();
6219 int
6220 main ()
6221 {
6222 return pthread_kill ();
6223   ;
6224   return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_c_try_link "$LINENO"; then :
6228   ac_cv_lib_pthread_pthread_kill=yes
6229 else
6230   ac_cv_lib_pthread_pthread_kill=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext \
6233     conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6237 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6238 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6239   gl_have_pthread=yes
6240              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6241              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6242 fi
6243
6244           if test -z "$gl_have_pthread"; then
6245             # For FreeBSD 4.
6246             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6247 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6248 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   ac_check_lib_save_LIBS=$LIBS
6252 LIBS="-lc_r  $LIBS"
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h.  */
6255
6256 /* Override any GCC internal prototype to avoid an error.
6257    Use char because int might match the return type of a GCC
6258    builtin and then its argument prototype would still apply.  */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 char pthread_kill ();
6263 int
6264 main ()
6265 {
6266 return pthread_kill ();
6267   ;
6268   return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"; then :
6272   ac_cv_lib_c_r_pthread_kill=yes
6273 else
6274   ac_cv_lib_c_r_pthread_kill=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext \
6277     conftest$ac_exeext conftest.$ac_ext
6278 LIBS=$ac_check_lib_save_LIBS
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6281 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6282 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6283   gl_have_pthread=yes
6284                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6285                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6286 fi
6287
6288           fi
6289         fi
6290         if test -n "$gl_have_pthread"; then
6291           gl_threads_api=posix
6292
6293 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6294
6295           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6296             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6297
6298 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6299
6300               LIBTHREAD=
6301               LTLIBTHREAD=
6302             fi
6303           fi
6304         fi
6305       fi
6306     fi
6307     if test -z "$gl_have_pthread"; then
6308       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6309         gl_have_solaristhread=
6310         gl_save_LIBS="$LIBS"
6311         LIBS="$LIBS -lthread"
6312         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h.  */
6314 #include <thread.h>
6315 #include <synch.h>
6316 int
6317 main ()
6318 {
6319 thr_self();
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 if ac_fn_c_try_link "$LINENO"; then :
6325   gl_have_solaristhread=yes
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext \
6328     conftest$ac_exeext conftest.$ac_ext
6329         LIBS="$gl_save_LIBS"
6330         if test -n "$gl_have_solaristhread"; then
6331           gl_threads_api=solaris
6332           LIBTHREAD=-lthread
6333           LTLIBTHREAD=-lthread
6334           LIBMULTITHREAD="$LIBTHREAD"
6335           LTLIBMULTITHREAD="$LTLIBTHREAD"
6336
6337 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6338
6339           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6340
6341 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6342
6343             LIBTHREAD=
6344             LTLIBTHREAD=
6345           fi
6346         fi
6347       fi
6348     fi
6349     if test "$gl_use_threads" = pth; then
6350       gl_save_CPPFLAGS="$CPPFLAGS"
6351
6352
6353
6354
6355
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6357 $as_echo_n "checking how to link with libpth... " >&6; }
6358 if ${ac_cv_libpth_libs+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361
6362
6363
6364
6365
6366
6367
6368
6369     use_additional=yes
6370
6371   acl_save_prefix="$prefix"
6372   prefix="$acl_final_prefix"
6373   acl_save_exec_prefix="$exec_prefix"
6374   exec_prefix="$acl_final_exec_prefix"
6375
6376     eval additional_includedir=\"$includedir\"
6377     eval additional_libdir=\"$libdir\"
6378
6379   exec_prefix="$acl_save_exec_prefix"
6380   prefix="$acl_save_prefix"
6381
6382
6383 # Check whether --with-libpth-prefix was given.
6384 if test "${with_libpth_prefix+set}" = set; then :
6385   withval=$with_libpth_prefix;
6386     if test "X$withval" = "Xno"; then
6387       use_additional=no
6388     else
6389       if test "X$withval" = "X"; then
6390
6391   acl_save_prefix="$prefix"
6392   prefix="$acl_final_prefix"
6393   acl_save_exec_prefix="$exec_prefix"
6394   exec_prefix="$acl_final_exec_prefix"
6395
6396           eval additional_includedir=\"$includedir\"
6397           eval additional_libdir=\"$libdir\"
6398
6399   exec_prefix="$acl_save_exec_prefix"
6400   prefix="$acl_save_prefix"
6401
6402       else
6403         additional_includedir="$withval/include"
6404         additional_libdir="$withval/$acl_libdirstem"
6405         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6406            && ! test -d "$withval/$acl_libdirstem"; then
6407           additional_libdir="$withval/$acl_libdirstem2"
6408         fi
6409       fi
6410     fi
6411
6412 fi
6413
6414       LIBPTH=
6415   LTLIBPTH=
6416   INCPTH=
6417   LIBPTH_PREFIX=
6418       HAVE_LIBPTH=
6419   rpathdirs=
6420   ltrpathdirs=
6421   names_already_handled=
6422   names_next_round='pth '
6423   while test -n "$names_next_round"; do
6424     names_this_round="$names_next_round"
6425     names_next_round=
6426     for name in $names_this_round; do
6427       already_handled=
6428       for n in $names_already_handled; do
6429         if test "$n" = "$name"; then
6430           already_handled=yes
6431           break
6432         fi
6433       done
6434       if test -z "$already_handled"; then
6435         names_already_handled="$names_already_handled $name"
6436                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6437         eval value=\"\$HAVE_LIB$uppername\"
6438         if test -n "$value"; then
6439           if test "$value" = yes; then
6440             eval value=\"\$LIB$uppername\"
6441             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6442             eval value=\"\$LTLIB$uppername\"
6443             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6444           else
6445                                     :
6446           fi
6447         else
6448                               found_dir=
6449           found_la=
6450           found_so=
6451           found_a=
6452           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6453           if test -n "$acl_shlibext"; then
6454             shrext=".$acl_shlibext"             # typically: shrext=.so
6455           else
6456             shrext=
6457           fi
6458           if test $use_additional = yes; then
6459             dir="$additional_libdir"
6460                                     if test -n "$acl_shlibext"; then
6461               if test -f "$dir/$libname$shrext"; then
6462                 found_dir="$dir"
6463                 found_so="$dir/$libname$shrext"
6464               else
6465                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6466                   ver=`(cd "$dir" && \
6467                         for f in "$libname$shrext".*; do echo "$f"; done \
6468                         | sed -e "s,^$libname$shrext\\\\.,," \
6469                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6470                         | sed 1q ) 2>/dev/null`
6471                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6472                     found_dir="$dir"
6473                     found_so="$dir/$libname$shrext.$ver"
6474                   fi
6475                 else
6476                   eval library_names=\"$acl_library_names_spec\"
6477                   for f in $library_names; do
6478                     if test -f "$dir/$f"; then
6479                       found_dir="$dir"
6480                       found_so="$dir/$f"
6481                       break
6482                     fi
6483                   done
6484                 fi
6485               fi
6486             fi
6487                         if test "X$found_dir" = "X"; then
6488               if test -f "$dir/$libname.$acl_libext"; then
6489                 found_dir="$dir"
6490                 found_a="$dir/$libname.$acl_libext"
6491               fi
6492             fi
6493             if test "X$found_dir" != "X"; then
6494               if test -f "$dir/$libname.la"; then
6495                 found_la="$dir/$libname.la"
6496               fi
6497             fi
6498           fi
6499           if test "X$found_dir" = "X"; then
6500             for x in $LDFLAGS $LTLIBPTH; do
6501
6502   acl_save_prefix="$prefix"
6503   prefix="$acl_final_prefix"
6504   acl_save_exec_prefix="$exec_prefix"
6505   exec_prefix="$acl_final_exec_prefix"
6506   eval x=\"$x\"
6507   exec_prefix="$acl_save_exec_prefix"
6508   prefix="$acl_save_prefix"
6509
6510               case "$x" in
6511                 -L*)
6512                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6513                                     if test -n "$acl_shlibext"; then
6514                     if test -f "$dir/$libname$shrext"; then
6515                       found_dir="$dir"
6516                       found_so="$dir/$libname$shrext"
6517                     else
6518                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6519                         ver=`(cd "$dir" && \
6520                               for f in "$libname$shrext".*; do echo "$f"; done \
6521                               | sed -e "s,^$libname$shrext\\\\.,," \
6522                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6523                               | sed 1q ) 2>/dev/null`
6524                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6525                           found_dir="$dir"
6526                           found_so="$dir/$libname$shrext.$ver"
6527                         fi
6528                       else
6529                         eval library_names=\"$acl_library_names_spec\"
6530                         for f in $library_names; do
6531                           if test -f "$dir/$f"; then
6532                             found_dir="$dir"
6533                             found_so="$dir/$f"
6534                             break
6535                           fi
6536                         done
6537                       fi
6538                     fi
6539                   fi
6540                                     if test "X$found_dir" = "X"; then
6541                     if test -f "$dir/$libname.$acl_libext"; then
6542                       found_dir="$dir"
6543                       found_a="$dir/$libname.$acl_libext"
6544                     fi
6545                   fi
6546                   if test "X$found_dir" != "X"; then
6547                     if test -f "$dir/$libname.la"; then
6548                       found_la="$dir/$libname.la"
6549                     fi
6550                   fi
6551                   ;;
6552               esac
6553               if test "X$found_dir" != "X"; then
6554                 break
6555               fi
6556             done
6557           fi
6558           if test "X$found_dir" != "X"; then
6559                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6560             if test "X$found_so" != "X"; then
6561                                                         if test "$enable_rpath" = no \
6562                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6563                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6564                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6565               else
6566                                                                                 haveit=
6567                 for x in $ltrpathdirs; do
6568                   if test "X$x" = "X$found_dir"; then
6569                     haveit=yes
6570                     break
6571                   fi
6572                 done
6573                 if test -z "$haveit"; then
6574                   ltrpathdirs="$ltrpathdirs $found_dir"
6575                 fi
6576                                 if test "$acl_hardcode_direct" = yes; then
6577                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6578                 else
6579                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6580                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6581                                                             haveit=
6582                     for x in $rpathdirs; do
6583                       if test "X$x" = "X$found_dir"; then
6584                         haveit=yes
6585                         break
6586                       fi
6587                     done
6588                     if test -z "$haveit"; then
6589                       rpathdirs="$rpathdirs $found_dir"
6590                     fi
6591                   else
6592                                                                                 haveit=
6593                     for x in $LDFLAGS $LIBPTH; do
6594
6595   acl_save_prefix="$prefix"
6596   prefix="$acl_final_prefix"
6597   acl_save_exec_prefix="$exec_prefix"
6598   exec_prefix="$acl_final_exec_prefix"
6599   eval x=\"$x\"
6600   exec_prefix="$acl_save_exec_prefix"
6601   prefix="$acl_save_prefix"
6602
6603                       if test "X$x" = "X-L$found_dir"; then
6604                         haveit=yes
6605                         break
6606                       fi
6607                     done
6608                     if test -z "$haveit"; then
6609                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6610                     fi
6611                     if test "$acl_hardcode_minus_L" != no; then
6612                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6613                     else
6614                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6615                     fi
6616                   fi
6617                 fi
6618               fi
6619             else
6620               if test "X$found_a" != "X"; then
6621                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6622               else
6623                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6624               fi
6625             fi
6626                         additional_includedir=
6627             case "$found_dir" in
6628               */$acl_libdirstem | */$acl_libdirstem/)
6629                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6630                 if test "$name" = 'pth'; then
6631                   LIBPTH_PREFIX="$basedir"
6632                 fi
6633                 additional_includedir="$basedir/include"
6634                 ;;
6635               */$acl_libdirstem2 | */$acl_libdirstem2/)
6636                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6637                 if test "$name" = 'pth'; then
6638                   LIBPTH_PREFIX="$basedir"
6639                 fi
6640                 additional_includedir="$basedir/include"
6641                 ;;
6642             esac
6643             if test "X$additional_includedir" != "X"; then
6644                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6645                 haveit=
6646                 if test "X$additional_includedir" = "X/usr/local/include"; then
6647                   if test -n "$GCC"; then
6648                     case $host_os in
6649                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6650                     esac
6651                   fi
6652                 fi
6653                 if test -z "$haveit"; then
6654                   for x in $CPPFLAGS $INCPTH; do
6655
6656   acl_save_prefix="$prefix"
6657   prefix="$acl_final_prefix"
6658   acl_save_exec_prefix="$exec_prefix"
6659   exec_prefix="$acl_final_exec_prefix"
6660   eval x=\"$x\"
6661   exec_prefix="$acl_save_exec_prefix"
6662   prefix="$acl_save_prefix"
6663
6664                     if test "X$x" = "X-I$additional_includedir"; then
6665                       haveit=yes
6666                       break
6667                     fi
6668                   done
6669                   if test -z "$haveit"; then
6670                     if test -d "$additional_includedir"; then
6671                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6672                     fi
6673                   fi
6674                 fi
6675               fi
6676             fi
6677                         if test -n "$found_la"; then
6678                                                         save_libdir="$libdir"
6679               case "$found_la" in
6680                 */* | *\\*) . "$found_la" ;;
6681                 *) . "./$found_la" ;;
6682               esac
6683               libdir="$save_libdir"
6684                             for dep in $dependency_libs; do
6685                 case "$dep" in
6686                   -L*)
6687                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6688                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6689                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6690                       haveit=
6691                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6692                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6693                         if test -n "$GCC"; then
6694                           case $host_os in
6695                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6696                           esac
6697                         fi
6698                       fi
6699                       if test -z "$haveit"; then
6700                         haveit=
6701                         for x in $LDFLAGS $LIBPTH; do
6702
6703   acl_save_prefix="$prefix"
6704   prefix="$acl_final_prefix"
6705   acl_save_exec_prefix="$exec_prefix"
6706   exec_prefix="$acl_final_exec_prefix"
6707   eval x=\"$x\"
6708   exec_prefix="$acl_save_exec_prefix"
6709   prefix="$acl_save_prefix"
6710
6711                           if test "X$x" = "X-L$additional_libdir"; then
6712                             haveit=yes
6713                             break
6714                           fi
6715                         done
6716                         if test -z "$haveit"; then
6717                           if test -d "$additional_libdir"; then
6718                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6719                           fi
6720                         fi
6721                         haveit=
6722                         for x in $LDFLAGS $LTLIBPTH; do
6723
6724   acl_save_prefix="$prefix"
6725   prefix="$acl_final_prefix"
6726   acl_save_exec_prefix="$exec_prefix"
6727   exec_prefix="$acl_final_exec_prefix"
6728   eval x=\"$x\"
6729   exec_prefix="$acl_save_exec_prefix"
6730   prefix="$acl_save_prefix"
6731
6732                           if test "X$x" = "X-L$additional_libdir"; then
6733                             haveit=yes
6734                             break
6735                           fi
6736                         done
6737                         if test -z "$haveit"; then
6738                           if test -d "$additional_libdir"; then
6739                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6740                           fi
6741                         fi
6742                       fi
6743                     fi
6744                     ;;
6745                   -R*)
6746                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6747                     if test "$enable_rpath" != no; then
6748                                                                   haveit=
6749                       for x in $rpathdirs; do
6750                         if test "X$x" = "X$dir"; then
6751                           haveit=yes
6752                           break
6753                         fi
6754                       done
6755                       if test -z "$haveit"; then
6756                         rpathdirs="$rpathdirs $dir"
6757                       fi
6758                                                                   haveit=
6759                       for x in $ltrpathdirs; do
6760                         if test "X$x" = "X$dir"; then
6761                           haveit=yes
6762                           break
6763                         fi
6764                       done
6765                       if test -z "$haveit"; then
6766                         ltrpathdirs="$ltrpathdirs $dir"
6767                       fi
6768                     fi
6769                     ;;
6770                   -l*)
6771                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6772                     ;;
6773                   *.la)
6774                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6775                     ;;
6776                   *)
6777                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6778                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6779                     ;;
6780                 esac
6781               done
6782             fi
6783           else
6784                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6785             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6786           fi
6787         fi
6788       fi
6789     done
6790   done
6791   if test "X$rpathdirs" != "X"; then
6792     if test -n "$acl_hardcode_libdir_separator"; then
6793                         alldirs=
6794       for found_dir in $rpathdirs; do
6795         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6796       done
6797             acl_save_libdir="$libdir"
6798       libdir="$alldirs"
6799       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6800       libdir="$acl_save_libdir"
6801       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6802     else
6803             for found_dir in $rpathdirs; do
6804         acl_save_libdir="$libdir"
6805         libdir="$found_dir"
6806         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6807         libdir="$acl_save_libdir"
6808         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6809       done
6810     fi
6811   fi
6812   if test "X$ltrpathdirs" != "X"; then
6813             for found_dir in $ltrpathdirs; do
6814       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6815     done
6816   fi
6817
6818
6819
6820
6821
6822
6823     ac_cv_libpth_libs="$LIBPTH"
6824     ac_cv_libpth_ltlibs="$LTLIBPTH"
6825     ac_cv_libpth_cppflags="$INCPTH"
6826     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6827
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6830 $as_echo "$ac_cv_libpth_libs" >&6; }
6831   LIBPTH="$ac_cv_libpth_libs"
6832   LTLIBPTH="$ac_cv_libpth_ltlibs"
6833   INCPTH="$ac_cv_libpth_cppflags"
6834   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6835
6836   for element in $INCPTH; do
6837     haveit=
6838     for x in $CPPFLAGS; do
6839
6840   acl_save_prefix="$prefix"
6841   prefix="$acl_final_prefix"
6842   acl_save_exec_prefix="$exec_prefix"
6843   exec_prefix="$acl_final_exec_prefix"
6844   eval x=\"$x\"
6845   exec_prefix="$acl_save_exec_prefix"
6846   prefix="$acl_save_prefix"
6847
6848       if test "X$x" = "X$element"; then
6849         haveit=yes
6850         break
6851       fi
6852     done
6853     if test -z "$haveit"; then
6854       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6855     fi
6856   done
6857
6858
6859
6860
6861       HAVE_LIBPTH=yes
6862
6863
6864
6865       gl_have_pth=
6866       gl_save_LIBS="$LIBS"
6867       LIBS="$LIBS -lpth"
6868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870 #include <pth.h>
6871 int
6872 main ()
6873 {
6874 pth_self();
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_link "$LINENO"; then :
6880   gl_have_pth=yes
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext \
6883     conftest$ac_exeext conftest.$ac_ext
6884       LIBS="$gl_save_LIBS"
6885       if test -n "$gl_have_pth"; then
6886         gl_threads_api=pth
6887         LIBTHREAD="$LIBPTH"
6888         LTLIBTHREAD="$LTLIBPTH"
6889         LIBMULTITHREAD="$LIBTHREAD"
6890         LTLIBMULTITHREAD="$LTLIBTHREAD"
6891
6892 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6893
6894         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6895           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6896
6897 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6898
6899             LIBTHREAD=
6900             LTLIBTHREAD=
6901           fi
6902         fi
6903       else
6904         CPPFLAGS="$gl_save_CPPFLAGS"
6905       fi
6906     fi
6907     if test -z "$gl_have_pthread"; then
6908       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6909         if { case "$host_os" in
6910                mingw*) true;;
6911                *) false;;
6912              esac
6913            }; then
6914           gl_threads_api=win32
6915
6916 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6917
6918         fi
6919       fi
6920     fi
6921   fi
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6923 $as_echo_n "checking for multithread API to use... " >&6; }
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6925 $as_echo "$gl_threads_api" >&6; }
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937   if test "$gl_threads_api" = posix; then
6938     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6939     # pthread_rwlock_* functions.
6940     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6941 "
6942 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6943
6944 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6945
6946 fi
6947
6948     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6949     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951 #include <pthread.h>
6952 int
6953 main ()
6954 {
6955 #if __FreeBSD__ == 4
6956 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6957 #else
6958 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6959 return !x;
6960 #endif
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"; then :
6966
6967 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6968
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971   fi
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987     use_additional=yes
6988
6989   acl_save_prefix="$prefix"
6990   prefix="$acl_final_prefix"
6991   acl_save_exec_prefix="$exec_prefix"
6992   exec_prefix="$acl_final_exec_prefix"
6993
6994     eval additional_includedir=\"$includedir\"
6995     eval additional_libdir=\"$libdir\"
6996
6997   exec_prefix="$acl_save_exec_prefix"
6998   prefix="$acl_save_prefix"
6999
7000
7001 # Check whether --with-libiconv-prefix was given.
7002 if test "${with_libiconv_prefix+set}" = set; then :
7003   withval=$with_libiconv_prefix;
7004     if test "X$withval" = "Xno"; then
7005       use_additional=no
7006     else
7007       if test "X$withval" = "X"; then
7008
7009   acl_save_prefix="$prefix"
7010   prefix="$acl_final_prefix"
7011   acl_save_exec_prefix="$exec_prefix"
7012   exec_prefix="$acl_final_exec_prefix"
7013
7014           eval additional_includedir=\"$includedir\"
7015           eval additional_libdir=\"$libdir\"
7016
7017   exec_prefix="$acl_save_exec_prefix"
7018   prefix="$acl_save_prefix"
7019
7020       else
7021         additional_includedir="$withval/include"
7022         additional_libdir="$withval/$acl_libdirstem"
7023         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7024            && ! test -d "$withval/$acl_libdirstem"; then
7025           additional_libdir="$withval/$acl_libdirstem2"
7026         fi
7027       fi
7028     fi
7029
7030 fi
7031
7032       LIBICONV=
7033   LTLIBICONV=
7034   INCICONV=
7035   LIBICONV_PREFIX=
7036       HAVE_LIBICONV=
7037   rpathdirs=
7038   ltrpathdirs=
7039   names_already_handled=
7040   names_next_round='iconv '
7041   while test -n "$names_next_round"; do
7042     names_this_round="$names_next_round"
7043     names_next_round=
7044     for name in $names_this_round; do
7045       already_handled=
7046       for n in $names_already_handled; do
7047         if test "$n" = "$name"; then
7048           already_handled=yes
7049           break
7050         fi
7051       done
7052       if test -z "$already_handled"; then
7053         names_already_handled="$names_already_handled $name"
7054                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7055         eval value=\"\$HAVE_LIB$uppername\"
7056         if test -n "$value"; then
7057           if test "$value" = yes; then
7058             eval value=\"\$LIB$uppername\"
7059             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7060             eval value=\"\$LTLIB$uppername\"
7061             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7062           else
7063                                     :
7064           fi
7065         else
7066                               found_dir=
7067           found_la=
7068           found_so=
7069           found_a=
7070           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7071           if test -n "$acl_shlibext"; then
7072             shrext=".$acl_shlibext"             # typically: shrext=.so
7073           else
7074             shrext=
7075           fi
7076           if test $use_additional = yes; then
7077             dir="$additional_libdir"
7078                                     if test -n "$acl_shlibext"; then
7079               if test -f "$dir/$libname$shrext"; then
7080                 found_dir="$dir"
7081                 found_so="$dir/$libname$shrext"
7082               else
7083                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7084                   ver=`(cd "$dir" && \
7085                         for f in "$libname$shrext".*; do echo "$f"; done \
7086                         | sed -e "s,^$libname$shrext\\\\.,," \
7087                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7088                         | sed 1q ) 2>/dev/null`
7089                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7090                     found_dir="$dir"
7091                     found_so="$dir/$libname$shrext.$ver"
7092                   fi
7093                 else
7094                   eval library_names=\"$acl_library_names_spec\"
7095                   for f in $library_names; do
7096                     if test -f "$dir/$f"; then
7097                       found_dir="$dir"
7098                       found_so="$dir/$f"
7099                       break
7100                     fi
7101                   done
7102                 fi
7103               fi
7104             fi
7105                         if test "X$found_dir" = "X"; then
7106               if test -f "$dir/$libname.$acl_libext"; then
7107                 found_dir="$dir"
7108                 found_a="$dir/$libname.$acl_libext"
7109               fi
7110             fi
7111             if test "X$found_dir" != "X"; then
7112               if test -f "$dir/$libname.la"; then
7113                 found_la="$dir/$libname.la"
7114               fi
7115             fi
7116           fi
7117           if test "X$found_dir" = "X"; then
7118             for x in $LDFLAGS $LTLIBICONV; do
7119
7120   acl_save_prefix="$prefix"
7121   prefix="$acl_final_prefix"
7122   acl_save_exec_prefix="$exec_prefix"
7123   exec_prefix="$acl_final_exec_prefix"
7124   eval x=\"$x\"
7125   exec_prefix="$acl_save_exec_prefix"
7126   prefix="$acl_save_prefix"
7127
7128               case "$x" in
7129                 -L*)
7130                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7131                                     if test -n "$acl_shlibext"; then
7132                     if test -f "$dir/$libname$shrext"; then
7133                       found_dir="$dir"
7134                       found_so="$dir/$libname$shrext"
7135                     else
7136                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7137                         ver=`(cd "$dir" && \
7138                               for f in "$libname$shrext".*; do echo "$f"; done \
7139                               | sed -e "s,^$libname$shrext\\\\.,," \
7140                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7141                               | sed 1q ) 2>/dev/null`
7142                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7143                           found_dir="$dir"
7144                           found_so="$dir/$libname$shrext.$ver"
7145                         fi
7146                       else
7147                         eval library_names=\"$acl_library_names_spec\"
7148                         for f in $library_names; do
7149                           if test -f "$dir/$f"; then
7150                             found_dir="$dir"
7151                             found_so="$dir/$f"
7152                             break
7153                           fi
7154                         done
7155                       fi
7156                     fi
7157                   fi
7158                                     if test "X$found_dir" = "X"; then
7159                     if test -f "$dir/$libname.$acl_libext"; then
7160                       found_dir="$dir"
7161                       found_a="$dir/$libname.$acl_libext"
7162                     fi
7163                   fi
7164                   if test "X$found_dir" != "X"; then
7165                     if test -f "$dir/$libname.la"; then
7166                       found_la="$dir/$libname.la"
7167                     fi
7168                   fi
7169                   ;;
7170               esac
7171               if test "X$found_dir" != "X"; then
7172                 break
7173               fi
7174             done
7175           fi
7176           if test "X$found_dir" != "X"; then
7177                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7178             if test "X$found_so" != "X"; then
7179                                                         if test "$enable_rpath" = no \
7180                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7181                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7182                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7183               else
7184                                                                                 haveit=
7185                 for x in $ltrpathdirs; do
7186                   if test "X$x" = "X$found_dir"; then
7187                     haveit=yes
7188                     break
7189                   fi
7190                 done
7191                 if test -z "$haveit"; then
7192                   ltrpathdirs="$ltrpathdirs $found_dir"
7193                 fi
7194                                 if test "$acl_hardcode_direct" = yes; then
7195                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7196                 else
7197                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7198                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7199                                                             haveit=
7200                     for x in $rpathdirs; do
7201                       if test "X$x" = "X$found_dir"; then
7202                         haveit=yes
7203                         break
7204                       fi
7205                     done
7206                     if test -z "$haveit"; then
7207                       rpathdirs="$rpathdirs $found_dir"
7208                     fi
7209                   else
7210                                                                                 haveit=
7211                     for x in $LDFLAGS $LIBICONV; do
7212
7213   acl_save_prefix="$prefix"
7214   prefix="$acl_final_prefix"
7215   acl_save_exec_prefix="$exec_prefix"
7216   exec_prefix="$acl_final_exec_prefix"
7217   eval x=\"$x\"
7218   exec_prefix="$acl_save_exec_prefix"
7219   prefix="$acl_save_prefix"
7220
7221                       if test "X$x" = "X-L$found_dir"; then
7222                         haveit=yes
7223                         break
7224                       fi
7225                     done
7226                     if test -z "$haveit"; then
7227                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7228                     fi
7229                     if test "$acl_hardcode_minus_L" != no; then
7230                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7231                     else
7232                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7233                     fi
7234                   fi
7235                 fi
7236               fi
7237             else
7238               if test "X$found_a" != "X"; then
7239                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7240               else
7241                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7242               fi
7243             fi
7244                         additional_includedir=
7245             case "$found_dir" in
7246               */$acl_libdirstem | */$acl_libdirstem/)
7247                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7248                 if test "$name" = 'iconv'; then
7249                   LIBICONV_PREFIX="$basedir"
7250                 fi
7251                 additional_includedir="$basedir/include"
7252                 ;;
7253               */$acl_libdirstem2 | */$acl_libdirstem2/)
7254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7255                 if test "$name" = 'iconv'; then
7256                   LIBICONV_PREFIX="$basedir"
7257                 fi
7258                 additional_includedir="$basedir/include"
7259                 ;;
7260             esac
7261             if test "X$additional_includedir" != "X"; then
7262                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7263                 haveit=
7264                 if test "X$additional_includedir" = "X/usr/local/include"; then
7265                   if test -n "$GCC"; then
7266                     case $host_os in
7267                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7268                     esac
7269                   fi
7270                 fi
7271                 if test -z "$haveit"; then
7272                   for x in $CPPFLAGS $INCICONV; do
7273
7274   acl_save_prefix="$prefix"
7275   prefix="$acl_final_prefix"
7276   acl_save_exec_prefix="$exec_prefix"
7277   exec_prefix="$acl_final_exec_prefix"
7278   eval x=\"$x\"
7279   exec_prefix="$acl_save_exec_prefix"
7280   prefix="$acl_save_prefix"
7281
7282                     if test "X$x" = "X-I$additional_includedir"; then
7283                       haveit=yes
7284                       break
7285                     fi
7286                   done
7287                   if test -z "$haveit"; then
7288                     if test -d "$additional_includedir"; then
7289                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7290                     fi
7291                   fi
7292                 fi
7293               fi
7294             fi
7295                         if test -n "$found_la"; then
7296                                                         save_libdir="$libdir"
7297               case "$found_la" in
7298                 */* | *\\*) . "$found_la" ;;
7299                 *) . "./$found_la" ;;
7300               esac
7301               libdir="$save_libdir"
7302                             for dep in $dependency_libs; do
7303                 case "$dep" in
7304                   -L*)
7305                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7306                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7307                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7308                       haveit=
7309                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7310                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7311                         if test -n "$GCC"; then
7312                           case $host_os in
7313                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7314                           esac
7315                         fi
7316                       fi
7317                       if test -z "$haveit"; then
7318                         haveit=
7319                         for x in $LDFLAGS $LIBICONV; do
7320
7321   acl_save_prefix="$prefix"
7322   prefix="$acl_final_prefix"
7323   acl_save_exec_prefix="$exec_prefix"
7324   exec_prefix="$acl_final_exec_prefix"
7325   eval x=\"$x\"
7326   exec_prefix="$acl_save_exec_prefix"
7327   prefix="$acl_save_prefix"
7328
7329                           if test "X$x" = "X-L$additional_libdir"; then
7330                             haveit=yes
7331                             break
7332                           fi
7333                         done
7334                         if test -z "$haveit"; then
7335                           if test -d "$additional_libdir"; then
7336                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7337                           fi
7338                         fi
7339                         haveit=
7340                         for x in $LDFLAGS $LTLIBICONV; do
7341
7342   acl_save_prefix="$prefix"
7343   prefix="$acl_final_prefix"
7344   acl_save_exec_prefix="$exec_prefix"
7345   exec_prefix="$acl_final_exec_prefix"
7346   eval x=\"$x\"
7347   exec_prefix="$acl_save_exec_prefix"
7348   prefix="$acl_save_prefix"
7349
7350                           if test "X$x" = "X-L$additional_libdir"; then
7351                             haveit=yes
7352                             break
7353                           fi
7354                         done
7355                         if test -z "$haveit"; then
7356                           if test -d "$additional_libdir"; then
7357                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7358                           fi
7359                         fi
7360                       fi
7361                     fi
7362                     ;;
7363                   -R*)
7364                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7365                     if test "$enable_rpath" != no; then
7366                                                                   haveit=
7367                       for x in $rpathdirs; do
7368                         if test "X$x" = "X$dir"; then
7369                           haveit=yes
7370                           break
7371                         fi
7372                       done
7373                       if test -z "$haveit"; then
7374                         rpathdirs="$rpathdirs $dir"
7375                       fi
7376                                                                   haveit=
7377                       for x in $ltrpathdirs; do
7378                         if test "X$x" = "X$dir"; then
7379                           haveit=yes
7380                           break
7381                         fi
7382                       done
7383                       if test -z "$haveit"; then
7384                         ltrpathdirs="$ltrpathdirs $dir"
7385                       fi
7386                     fi
7387                     ;;
7388                   -l*)
7389                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7390                     ;;
7391                   *.la)
7392                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7393                     ;;
7394                   *)
7395                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7396                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7397                     ;;
7398                 esac
7399               done
7400             fi
7401           else
7402                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7403             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7404           fi
7405         fi
7406       fi
7407     done
7408   done
7409   if test "X$rpathdirs" != "X"; then
7410     if test -n "$acl_hardcode_libdir_separator"; then
7411                         alldirs=
7412       for found_dir in $rpathdirs; do
7413         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7414       done
7415             acl_save_libdir="$libdir"
7416       libdir="$alldirs"
7417       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7418       libdir="$acl_save_libdir"
7419       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7420     else
7421             for found_dir in $rpathdirs; do
7422         acl_save_libdir="$libdir"
7423         libdir="$found_dir"
7424         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7425         libdir="$acl_save_libdir"
7426         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7427       done
7428     fi
7429   fi
7430   if test "X$ltrpathdirs" != "X"; then
7431             for found_dir in $ltrpathdirs; do
7432       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7433     done
7434   fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447           am_save_CPPFLAGS="$CPPFLAGS"
7448
7449   for element in $INCICONV; do
7450     haveit=
7451     for x in $CPPFLAGS; do
7452
7453   acl_save_prefix="$prefix"
7454   prefix="$acl_final_prefix"
7455   acl_save_exec_prefix="$exec_prefix"
7456   exec_prefix="$acl_final_exec_prefix"
7457   eval x=\"$x\"
7458   exec_prefix="$acl_save_exec_prefix"
7459   prefix="$acl_save_prefix"
7460
7461       if test "X$x" = "X$element"; then
7462         haveit=yes
7463         break
7464       fi
7465     done
7466     if test -z "$haveit"; then
7467       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7468     fi
7469   done
7470
7471
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7473 $as_echo_n "checking for iconv... " >&6; }
7474 if ${am_cv_func_iconv+:} false; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477
7478     am_cv_func_iconv="no, consider installing GNU libiconv"
7479     am_cv_lib_iconv=no
7480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482 #include <stdlib.h>
7483 #include <iconv.h>
7484 int
7485 main ()
7486 {
7487 iconv_t cd = iconv_open("","");
7488        iconv(cd,NULL,NULL,NULL,NULL);
7489        iconv_close(cd);
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495   am_cv_func_iconv=yes
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext \
7498     conftest$ac_exeext conftest.$ac_ext
7499     if test "$am_cv_func_iconv" != yes; then
7500       am_save_LIBS="$LIBS"
7501       LIBS="$LIBS $LIBICONV"
7502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h.  */
7504 #include <stdlib.h>
7505 #include <iconv.h>
7506 int
7507 main ()
7508 {
7509 iconv_t cd = iconv_open("","");
7510          iconv(cd,NULL,NULL,NULL,NULL);
7511          iconv_close(cd);
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_link "$LINENO"; then :
7517   am_cv_lib_iconv=yes
7518         am_cv_func_iconv=yes
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext \
7521     conftest$ac_exeext conftest.$ac_ext
7522       LIBS="$am_save_LIBS"
7523     fi
7524
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7527 $as_echo "$am_cv_func_iconv" >&6; }
7528   if test "$am_cv_func_iconv" = yes; then
7529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7530 $as_echo_n "checking for working iconv... " >&6; }
7531 if ${am_cv_func_iconv_works+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534
7535             am_save_LIBS="$LIBS"
7536       if test $am_cv_lib_iconv = yes; then
7537         LIBS="$LIBS $LIBICONV"
7538       fi
7539       if test "$cross_compiling" = yes; then :
7540   case "$host_os" in
7541            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7542            *)            am_cv_func_iconv_works="guessing yes" ;;
7543          esac
7544 else
7545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548 #include <iconv.h>
7549 #include <string.h>
7550 int main ()
7551 {
7552   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7553      returns.  */
7554   {
7555     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7556     if (cd_utf8_to_88591 != (iconv_t)(-1))
7557       {
7558         static const char input[] = "\342\202\254"; /* EURO SIGN */
7559         char buf[10];
7560         const char *inptr = input;
7561         size_t inbytesleft = strlen (input);
7562         char *outptr = buf;
7563         size_t outbytesleft = sizeof (buf);
7564         size_t res = iconv (cd_utf8_to_88591,
7565                             (char **) &inptr, &inbytesleft,
7566                             &outptr, &outbytesleft);
7567         if (res == 0)
7568           return 1;
7569       }
7570   }
7571   /* Test against Solaris 10 bug: Failures are not distinguishable from
7572      successful returns.  */
7573   {
7574     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7575     if (cd_ascii_to_88591 != (iconv_t)(-1))
7576       {
7577         static const char input[] = "\263";
7578         char buf[10];
7579         const char *inptr = input;
7580         size_t inbytesleft = strlen (input);
7581         char *outptr = buf;
7582         size_t outbytesleft = sizeof (buf);
7583         size_t res = iconv (cd_ascii_to_88591,
7584                             (char **) &inptr, &inbytesleft,
7585                             &outptr, &outbytesleft);
7586         if (res == 0)
7587           return 1;
7588       }
7589   }
7590 #if 0 /* This bug could be worked around by the caller.  */
7591   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7592   {
7593     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7594     if (cd_88591_to_utf8 != (iconv_t)(-1))
7595       {
7596         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7597         char buf[50];
7598         const char *inptr = input;
7599         size_t inbytesleft = strlen (input);
7600         char *outptr = buf;
7601         size_t outbytesleft = sizeof (buf);
7602         size_t res = iconv (cd_88591_to_utf8,
7603                             (char **) &inptr, &inbytesleft,
7604                             &outptr, &outbytesleft);
7605         if ((int)res > 0)
7606           return 1;
7607       }
7608   }
7609 #endif
7610   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7611      provided.  */
7612   if (/* Try standardized names.  */
7613       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7614       /* Try IRIX, OSF/1 names.  */
7615       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7616       /* Try AIX names.  */
7617       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7618       /* Try HP-UX names.  */
7619       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7620     return 1;
7621   return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_run "$LINENO"; then :
7625   am_cv_func_iconv_works=yes
7626 else
7627   am_cv_func_iconv_works=no
7628 fi
7629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7630   conftest.$ac_objext conftest.beam conftest.$ac_ext
7631 fi
7632
7633       LIBS="$am_save_LIBS"
7634
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7637 $as_echo "$am_cv_func_iconv_works" >&6; }
7638     case "$am_cv_func_iconv_works" in
7639       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7640       *)   am_func_iconv=yes ;;
7641     esac
7642   else
7643     am_func_iconv=no am_cv_lib_iconv=no
7644   fi
7645   if test "$am_func_iconv" = yes; then
7646
7647 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7648
7649   fi
7650   if test "$am_cv_lib_iconv" = yes; then
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7652 $as_echo_n "checking how to link with libiconv... " >&6; }
7653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7654 $as_echo "$LIBICONV" >&6; }
7655   else
7656             CPPFLAGS="$am_save_CPPFLAGS"
7657     LIBICONV=
7658     LTLIBICONV=
7659   fi
7660
7661
7662
7663   if test "$am_cv_func_iconv" = yes; then
7664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7665 $as_echo_n "checking for iconv declaration... " >&6; }
7666     if ${am_cv_proto_iconv+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669
7670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h.  */
7672
7673 #include <stdlib.h>
7674 #include <iconv.h>
7675 extern
7676 #ifdef __cplusplus
7677 "C"
7678 #endif
7679 #if defined(__STDC__) || defined(__cplusplus)
7680 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7681 #else
7682 size_t iconv();
7683 #endif
7684
7685 int
7686 main ()
7687 {
7688
7689   ;
7690   return 0;
7691 }
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694   am_cv_proto_iconv_arg1=""
7695 else
7696   am_cv_proto_iconv_arg1="const"
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7700 fi
7701
7702     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7703     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7704          $am_cv_proto_iconv" >&5
7705 $as_echo "
7706          $am_cv_proto_iconv" >&6; }
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define ICONV_CONST $am_cv_proto_iconv_arg1
7710 _ACEOF
7711
7712   fi
7713
7714
7715
7716
7717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7720 int
7721 main ()
7722 {
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_link "$LINENO"; then :
7729
7730 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7731
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext \
7734     conftest$ac_exeext conftest.$ac_ext
7735
7736   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7737 do :
7738   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7741   cat >>confdefs.h <<_ACEOF
7742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7744
7745 fi
7746
7747 done
7748
7749   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7750     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7751     argz_stringify argz_next __fsetlocking
7752 do :
7753   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7756   cat >>confdefs.h <<_ACEOF
7757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7758 _ACEOF
7759
7760 fi
7761 done
7762
7763
7764
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7766 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7767 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h.  */
7772 #include <stdio.h>
7773 int
7774 main ()
7775 {
7776
7777 #ifndef feof_unlocked
7778   char *p = (char *) feof_unlocked;
7779 #endif
7780
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786   ac_cv_have_decl_feof_unlocked=yes
7787 else
7788   ac_cv_have_decl_feof_unlocked=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7793 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7794   if test $ac_cv_have_decl_feof_unlocked = yes; then
7795     gt_value=1
7796   else
7797     gt_value=0
7798   fi
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7802 _ACEOF
7803
7804
7805
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7807 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7808 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h.  */
7813 #include <stdio.h>
7814 int
7815 main ()
7816 {
7817
7818 #ifndef fgets_unlocked
7819   char *p = (char *) fgets_unlocked;
7820 #endif
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827   ac_cv_have_decl_fgets_unlocked=yes
7828 else
7829   ac_cv_have_decl_fgets_unlocked=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7834 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7835   if test $ac_cv_have_decl_fgets_unlocked = yes; then
7836     gt_value=1
7837   else
7838     gt_value=0
7839   fi
7840
7841 cat >>confdefs.h <<_ACEOF
7842 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7843 _ACEOF
7844
7845
7846
7847
7848
7849                       for ac_prog in bison
7850 do
7851   # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_INTLBISON+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   if test -n "$INTLBISON"; then
7859   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868     ac_cv_prog_INTLBISON="$ac_prog"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 INTLBISON=$ac_cv_prog_INTLBISON
7879 if test -n "$INTLBISON"; then
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7881 $as_echo "$INTLBISON" >&6; }
7882 else
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888   test -n "$INTLBISON" && break
7889 done
7890
7891   if test -z "$INTLBISON"; then
7892     ac_verc_fail=yes
7893   else
7894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7895 $as_echo_n "checking version of bison... " >&6; }
7896     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7897     case $ac_prog_version in
7898       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7899       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7900          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7901       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7902     esac
7903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7904 $as_echo "$ac_prog_version" >&6; }
7905   fi
7906   if test $ac_verc_fail = yes; then
7907     INTLBISON=:
7908   fi
7909
7910
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7912 $as_echo_n "checking for long long int... " >&6; }
7913 if ${ac_cv_type_long_long_int+:} false; then :
7914   $as_echo_n "(cached) " >&6
7915 else
7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918
7919   /* For now, do not test the preprocessor; as of 2007 there are too many
7920          implementations with broken preprocessors.  Perhaps this can
7921          be revisited in 2012.  In the meantime, code should not expect
7922          #if to work with literals wider than 32 bits.  */
7923       /* Test literals.  */
7924       long long int ll = 9223372036854775807ll;
7925       long long int nll = -9223372036854775807LL;
7926       unsigned long long int ull = 18446744073709551615ULL;
7927       /* Test constant expressions.   */
7928       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7929                      ? 1 : -1)];
7930       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7931                      ? 1 : -1)];
7932       int i = 63;
7933 int
7934 main ()
7935 {
7936 /* Test availability of runtime routines for shift and division.  */
7937       long long int llmax = 9223372036854775807ll;
7938       unsigned long long int ullmax = 18446744073709551615ull;
7939       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7940               | (llmax / ll) | (llmax % ll)
7941               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7942               | (ullmax / ull) | (ullmax % ull));
7943   ;
7944   return 0;
7945 }
7946
7947 _ACEOF
7948 if ac_fn_c_try_link "$LINENO"; then :
7949                           if test "$cross_compiling" = yes; then :
7950   ac_cv_type_long_long_int=yes
7951 else
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 #include <limits.h>
7955                #ifndef LLONG_MAX
7956                # define HALF \
7957                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7958                # define LLONG_MAX (HALF - 1 + HALF)
7959                #endif
7960 int
7961 main ()
7962 {
7963 long long int n = 1;
7964                int i;
7965                for (i = 0; ; i++)
7966                  {
7967                    long long int m = n << i;
7968                    if (m >> i != n)
7969                      return 1;
7970                    if (LLONG_MAX / 2 < m)
7971                      break;
7972                  }
7973                return 0;
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_run "$LINENO"; then :
7979   ac_cv_type_long_long_int=yes
7980 else
7981   ac_cv_type_long_long_int=no
7982 fi
7983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7984   conftest.$ac_objext conftest.beam conftest.$ac_ext
7985 fi
7986
7987 else
7988   ac_cv_type_long_long_int=no
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext \
7991     conftest$ac_exeext conftest.$ac_ext
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7994 $as_echo "$ac_cv_type_long_long_int" >&6; }
7995   if test $ac_cv_type_long_long_int = yes; then
7996
7997 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7998
7999   fi
8000
8001
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8003 $as_echo_n "checking for wchar_t... " >&6; }
8004 if ${gt_cv_c_wchar_t+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009 #include <stddef.h>
8010        wchar_t foo = (wchar_t)'\0';
8011 int
8012 main ()
8013 {
8014
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020   gt_cv_c_wchar_t=yes
8021 else
8022   gt_cv_c_wchar_t=no
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8027 $as_echo "$gt_cv_c_wchar_t" >&6; }
8028   if test $gt_cv_c_wchar_t = yes; then
8029
8030 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8031
8032   fi
8033
8034
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8036 $as_echo_n "checking for wint_t... " >&6; }
8037 if ${gt_cv_c_wint_t+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h.  */
8042
8043 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8044    <wchar.h>.
8045    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8046    before <wchar.h>.  */
8047 #include <stddef.h>
8048 #include <stdio.h>
8049 #include <time.h>
8050 #include <wchar.h>
8051        wint_t foo = (wchar_t)'\0';
8052 int
8053 main ()
8054 {
8055
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061   gt_cv_c_wint_t=yes
8062 else
8063   gt_cv_c_wint_t=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 fi
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8068 $as_echo "$gt_cv_c_wint_t" >&6; }
8069   if test $gt_cv_c_wint_t = yes; then
8070
8071 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8072
8073   fi
8074
8075
8076
8077
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8079 $as_echo_n "checking for intmax_t... " >&6; }
8080 if ${gt_cv_c_intmax_t+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085
8086 #include <stddef.h>
8087 #include <stdlib.h>
8088 #if HAVE_STDINT_H_WITH_UINTMAX
8089 #include <stdint.h>
8090 #endif
8091 #if HAVE_INTTYPES_H_WITH_UINTMAX
8092 #include <inttypes.h>
8093 #endif
8094
8095 int
8096 main ()
8097 {
8098 intmax_t x = -1;
8099         return !x;
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105   gt_cv_c_intmax_t=yes
8106 else
8107   gt_cv_c_intmax_t=no
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8112 $as_echo "$gt_cv_c_intmax_t" >&6; }
8113   if test $gt_cv_c_intmax_t = yes; then
8114
8115 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8116
8117   fi
8118
8119
8120
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8122 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8123 if ${gt_cv_func_printf_posix+:} false; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126
8127       if test "$cross_compiling" = yes; then :
8128
8129         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h.  */
8131
8132 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8133   notposix
8134 #endif
8135
8136 _ACEOF
8137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8138   $EGREP "notposix" >/dev/null 2>&1; then :
8139   gt_cv_func_printf_posix="guessing no"
8140 else
8141   gt_cv_func_printf_posix="guessing yes"
8142 fi
8143 rm -f conftest*
8144
8145
8146 else
8147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h.  */
8149
8150 #include <stdio.h>
8151 #include <string.h>
8152 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8153    dollar expansion (possibly an autoconf bug).  */
8154 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8155 static char buf[100];
8156 int main ()
8157 {
8158   sprintf (buf, format, 33, 55);
8159   return (strcmp (buf, "55 33") != 0);
8160 }
8161 _ACEOF
8162 if ac_fn_c_try_run "$LINENO"; then :
8163   gt_cv_func_printf_posix=yes
8164 else
8165   gt_cv_func_printf_posix=no
8166 fi
8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8168   conftest.$ac_objext conftest.beam conftest.$ac_ext
8169 fi
8170
8171
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8174 $as_echo "$gt_cv_func_printf_posix" >&6; }
8175   case $gt_cv_func_printf_posix in
8176     *yes)
8177
8178 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8179
8180       ;;
8181   esac
8182
8183
8184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8185 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8186 if ${ac_cv_gnu_library_2_1+:} false; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h.  */
8191
8192 #include <features.h>
8193 #ifdef __GNU_LIBRARY__
8194  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8195   Lucky GNU user
8196  #endif
8197 #endif
8198
8199 _ACEOF
8200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8202   ac_cv_gnu_library_2_1=yes
8203 else
8204   ac_cv_gnu_library_2_1=no
8205 fi
8206 rm -f conftest*
8207
8208
8209
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8212 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8213
8214     GLIBC21="$ac_cv_gnu_library_2_1"
8215
8216
8217
8218   for ac_header in stdint.h
8219 do :
8220   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8221 if test "x$ac_cv_header_stdint_h" = xyes; then :
8222   cat >>confdefs.h <<_ACEOF
8223 #define HAVE_STDINT_H 1
8224 _ACEOF
8225
8226 fi
8227
8228 done
8229
8230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8231 $as_echo_n "checking for SIZE_MAX... " >&6; }
8232 if ${gl_cv_size_max+:} false; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235
8236     gl_cv_size_max=
8237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h.  */
8239
8240 #include <limits.h>
8241 #if HAVE_STDINT_H
8242 #include <stdint.h>
8243 #endif
8244 #ifdef SIZE_MAX
8245 Found it
8246 #endif
8247
8248 _ACEOF
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250   $EGREP "Found it" >/dev/null 2>&1; then :
8251   gl_cv_size_max=yes
8252 fi
8253 rm -f conftest*
8254
8255     if test -z "$gl_cv_size_max"; then
8256                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
8257 #include <limits.h>"; then :
8258
8259 else
8260   size_t_bits_minus_1=
8261 fi
8262
8263       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
8264
8265 else
8266   fits_in_uint=
8267 fi
8268
8269       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8270         if test $fits_in_uint = 1; then
8271                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273 #include <stddef.h>
8274             extern size_t foo;
8275             extern unsigned long foo;
8276
8277 int
8278 main ()
8279 {
8280
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"; then :
8286   fits_in_uint=0
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289         fi
8290                                 if test $fits_in_uint = 1; then
8291           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8292         else
8293           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8294         fi
8295       else
8296                 gl_cv_size_max='((size_t)~(size_t)0)'
8297       fi
8298     fi
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8302 $as_echo "$gl_cv_size_max" >&6; }
8303   if test "$gl_cv_size_max" != yes; then
8304
8305 cat >>confdefs.h <<_ACEOF
8306 #define SIZE_MAX $gl_cv_size_max
8307 _ACEOF
8308
8309   fi
8310
8311
8312
8313
8314
8315   for ac_header in stdint.h
8316 do :
8317   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8318 if test "x$ac_cv_header_stdint_h" = xyes; then :
8319   cat >>confdefs.h <<_ACEOF
8320 #define HAVE_STDINT_H 1
8321 _ACEOF
8322
8323 fi
8324
8325 done
8326
8327
8328
8329
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8331 $as_echo_n "checking for working fcntl.h... " >&6; }
8332 if ${gl_cv_header_working_fcntl_h+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   if test "$cross_compiling" = yes; then :
8336   gl_cv_header_working_fcntl_h=cross-compiling
8337 else
8338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h.  */
8340 #include <sys/types.h>
8341            #include <sys/stat.h>
8342            #include <unistd.h>
8343            #include <fcntl.h>
8344            #ifndef O_NOATIME
8345             #define O_NOATIME 0
8346            #endif
8347            #ifndef O_NOFOLLOW
8348             #define O_NOFOLLOW 0
8349            #endif
8350            static int const constants[] =
8351             {
8352               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8353               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8354             };
8355
8356 int
8357 main ()
8358 {
8359
8360             int status = !constants;
8361             {
8362               static char const sym[] = "conftest.sym";
8363               if (symlink (".", sym) != 0
8364                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8365                 status |= 32;
8366               unlink (sym);
8367             }
8368             {
8369               static char const file[] = "confdefs.h";
8370               int fd = open (file, O_RDONLY | O_NOATIME);
8371               char c;
8372               struct stat st0, st1;
8373               if (fd < 0
8374                   || fstat (fd, &st0) != 0
8375                   || sleep (1) != 0
8376                   || read (fd, &c, 1) != 1
8377                   || close (fd) != 0
8378                   || stat (file, &st1) != 0
8379                   || st0.st_atime != st1.st_atime)
8380                 status |= 64;
8381             }
8382             return status;
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_run "$LINENO"; then :
8388   gl_cv_header_working_fcntl_h=yes
8389 else
8390   case $? in #(
8391         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8392         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8393         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8394          *) gl_cv_header_working_fcntl_h='no';;
8395         esac
8396 fi
8397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8398   conftest.$ac_objext conftest.beam conftest.$ac_ext
8399 fi
8400
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8403 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8404
8405   case $gl_cv_header_working_fcntl_h in #(
8406   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8407   *) ac_val=1;;
8408   esac
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_WORKING_O_NOATIME $ac_val
8412 _ACEOF
8413
8414
8415   case $gl_cv_header_working_fcntl_h in #(
8416   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8417   *) ac_val=1;;
8418   esac
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8422 _ACEOF
8423
8424
8425
8426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8427 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8428 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8429   $as_echo_n "(cached) " >&6
8430 else
8431   gt_save_LIBS="$LIBS"
8432      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h.  */
8435 #include <CoreFoundation/CFPreferences.h>
8436 int
8437 main ()
8438 {
8439 CFPreferencesCopyAppValue(NULL, NULL)
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445   gt_cv_func_CFPreferencesCopyAppValue=yes
8446 else
8447   gt_cv_func_CFPreferencesCopyAppValue=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450     conftest$ac_exeext conftest.$ac_ext
8451      LIBS="$gt_save_LIBS"
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8454 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8455   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8456
8457 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8458
8459   fi
8460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8461 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8462 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   gt_save_LIBS="$LIBS"
8466      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h.  */
8469 #include <CoreFoundation/CFLocale.h>
8470 int
8471 main ()
8472 {
8473 CFLocaleCopyCurrent();
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_link "$LINENO"; then :
8479   gt_cv_func_CFLocaleCopyCurrent=yes
8480 else
8481   gt_cv_func_CFLocaleCopyCurrent=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484     conftest$ac_exeext conftest.$ac_ext
8485      LIBS="$gt_save_LIBS"
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8488 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8489   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8490
8491 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8492
8493   fi
8494   INTL_MACOSX_LIBS=
8495   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8496     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8497   fi
8498
8499
8500
8501
8502
8503
8504
8505     case "$enable_silent_rules" in
8506     yes) INTL_DEFAULT_VERBOSITY=0;;
8507     no)  INTL_DEFAULT_VERBOSITY=1;;
8508     *)   INTL_DEFAULT_VERBOSITY=1;;
8509   esac
8510
8511
8512   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8513 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8514
8515 else
8516
8517 $as_echo "#define ptrdiff_t long" >>confdefs.h
8518
8519
8520 fi
8521
8522   for ac_header in stddef.h stdlib.h string.h
8523 do :
8524   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8527   cat >>confdefs.h <<_ACEOF
8528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8529 _ACEOF
8530
8531 fi
8532
8533 done
8534
8535   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8536     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8537 do :
8538   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8541   cat >>confdefs.h <<_ACEOF
8542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8543 _ACEOF
8544
8545 fi
8546 done
8547
8548
8549
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8551 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8552 if ${ac_cv_have_decl__snprintf+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557 #include <stdio.h>
8558 int
8559 main ()
8560 {
8561
8562 #ifndef _snprintf
8563   char *p = (char *) _snprintf;
8564 #endif
8565
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571   ac_cv_have_decl__snprintf=yes
8572 else
8573   ac_cv_have_decl__snprintf=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8578 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8579   if test $ac_cv_have_decl__snprintf = yes; then
8580     gt_value=1
8581   else
8582     gt_value=0
8583   fi
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_DECL__SNPRINTF $gt_value
8587 _ACEOF
8588
8589
8590
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8592 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8593 if ${ac_cv_have_decl__snwprintf+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h.  */
8598 #include <stdio.h>
8599 int
8600 main ()
8601 {
8602
8603 #ifndef _snwprintf
8604   char *p = (char *) _snwprintf;
8605 #endif
8606
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612   ac_cv_have_decl__snwprintf=yes
8613 else
8614   ac_cv_have_decl__snwprintf=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8619 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8620   if test $ac_cv_have_decl__snwprintf = yes; then
8621     gt_value=1
8622   else
8623     gt_value=0
8624   fi
8625
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_DECL__SNWPRINTF $gt_value
8628 _ACEOF
8629
8630
8631
8632
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8634 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8635 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8636   $as_echo_n "(cached) " >&6
8637 else
8638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h.  */
8640 #include <stdio.h>
8641 int
8642 main ()
8643 {
8644
8645 #ifndef getc_unlocked
8646   char *p = (char *) getc_unlocked;
8647 #endif
8648
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654   ac_cv_have_decl_getc_unlocked=yes
8655 else
8656   ac_cv_have_decl_getc_unlocked=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8661 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8662   if test $ac_cv_have_decl_getc_unlocked = yes; then
8663     gt_value=1
8664   else
8665     gt_value=0
8666   fi
8667
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8670 _ACEOF
8671
8672
8673
8674   case $gt_cv_func_printf_posix in
8675     *yes) HAVE_POSIX_PRINTF=1 ;;
8676     *) HAVE_POSIX_PRINTF=0 ;;
8677   esac
8678
8679   if test "$ac_cv_func_asprintf" = yes; then
8680     HAVE_ASPRINTF=1
8681   else
8682     HAVE_ASPRINTF=0
8683   fi
8684
8685   if test "$ac_cv_func_snprintf" = yes; then
8686     HAVE_SNPRINTF=1
8687   else
8688     HAVE_SNPRINTF=0
8689   fi
8690
8691   if test "$ac_cv_func_newlocale" = yes; then
8692     HAVE_NEWLOCALE=1
8693   else
8694     HAVE_NEWLOCALE=0
8695   fi
8696
8697   if test "$ac_cv_func_wprintf" = yes; then
8698     HAVE_WPRINTF=1
8699   else
8700     HAVE_WPRINTF=0
8701   fi
8702
8703
8704
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8706 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8707 if ${am_cv_langinfo_codeset+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h.  */
8712 #include <langinfo.h>
8713 int
8714 main ()
8715 {
8716 char* cs = nl_langinfo(CODESET); return !cs;
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"; then :
8722   am_cv_langinfo_codeset=yes
8723 else
8724   am_cv_langinfo_codeset=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727     conftest$ac_exeext conftest.$ac_ext
8728
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8731 $as_echo "$am_cv_langinfo_codeset" >&6; }
8732   if test $am_cv_langinfo_codeset = yes; then
8733
8734 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8735
8736   fi
8737
8738
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8740 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8741 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h.  */
8746 #include <locale.h>
8747 int
8748 main ()
8749 {
8750 return LC_MESSAGES
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756   gt_cv_val_LC_MESSAGES=yes
8757 else
8758   gt_cv_val_LC_MESSAGES=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext \
8761     conftest$ac_exeext conftest.$ac_ext
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8764 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8765   if test $gt_cv_val_LC_MESSAGES = yes; then
8766
8767 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8768
8769   fi
8770
8771
8772                 if test "$enable_shared" = yes; then
8773     case "$host_os" in
8774       mingw* | cygwin*) is_woe32dll=yes ;;
8775       *) is_woe32dll=no ;;
8776     esac
8777   else
8778     is_woe32dll=no
8779   fi
8780   WOE32DLL=$is_woe32dll
8781
8782
8783       case "$host_os" in
8784     mingw* | cygwin*) is_woe32=yes ;;
8785     *) is_woe32=no ;;
8786   esac
8787   WOE32=$is_woe32
8788
8789   if test $WOE32 = yes; then
8790         if test -n "$ac_tool_prefix"; then
8791   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8792 set dummy ${ac_tool_prefix}windres; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_WINDRES+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   if test -n "$WINDRES"; then
8799   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 WINDRES=$ac_cv_prog_WINDRES
8819 if test -n "$WINDRES"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8821 $as_echo "$WINDRES" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827
8828 fi
8829 if test -z "$ac_cv_prog_WINDRES"; then
8830   ac_ct_WINDRES=$WINDRES
8831   # Extract the first word of "windres", so it can be a program name with args.
8832 set dummy windres; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   if test -n "$ac_ct_WINDRES"; then
8839   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844   IFS=$as_save_IFS
8845   test -z "$as_dir" && as_dir=.
8846     for ac_exec_ext in '' $ac_executable_extensions; do
8847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848     ac_cv_prog_ac_ct_WINDRES="windres"
8849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850     break 2
8851   fi
8852 done
8853   done
8854 IFS=$as_save_IFS
8855
8856 fi
8857 fi
8858 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8859 if test -n "$ac_ct_WINDRES"; then
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8861 $as_echo "$ac_ct_WINDRES" >&6; }
8862 else
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8865 fi
8866
8867   if test "x$ac_ct_WINDRES" = x; then
8868     WINDRES=""
8869   else
8870     case $cross_compiling:$ac_tool_warned in
8871 yes:)
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8874 ac_tool_warned=yes ;;
8875 esac
8876     WINDRES=$ac_ct_WINDRES
8877   fi
8878 else
8879   WINDRES="$ac_cv_prog_WINDRES"
8880 fi
8881
8882   fi
8883
8884               case "$host_os" in
8885     hpux*) LTLIBC="" ;;
8886     *)     LTLIBC="-lc" ;;
8887   esac
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8916 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8917 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   gt_save_LIBS="$LIBS"
8921      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8922      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h.  */
8924 #include <CoreFoundation/CFPreferences.h>
8925 int
8926 main ()
8927 {
8928 CFPreferencesCopyAppValue(NULL, NULL)
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934   gt_cv_func_CFPreferencesCopyAppValue=yes
8935 else
8936   gt_cv_func_CFPreferencesCopyAppValue=no
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext \
8939     conftest$ac_exeext conftest.$ac_ext
8940      LIBS="$gt_save_LIBS"
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8943 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8944   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8945
8946 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8947
8948   fi
8949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8950 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8951 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   gt_save_LIBS="$LIBS"
8955      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8956      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958 #include <CoreFoundation/CFLocale.h>
8959 int
8960 main ()
8961 {
8962 CFLocaleCopyCurrent();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"; then :
8968   gt_cv_func_CFLocaleCopyCurrent=yes
8969 else
8970   gt_cv_func_CFLocaleCopyCurrent=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext \
8973     conftest$ac_exeext conftest.$ac_ext
8974      LIBS="$gt_save_LIBS"
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8977 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8978   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8979
8980 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8981
8982   fi
8983   INTL_MACOSX_LIBS=
8984   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8985     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8986   fi
8987
8988
8989
8990
8991
8992
8993     BUILD_INCLUDED_LIBINTL=no
8994     USE_INCLUDED_LIBINTL=no
8995
8996   LIBINTL=
8997   LTLIBINTL=
8998   POSUB=
8999
9000     case " $gt_needs " in
9001     *" need-formatstring-macros "*) gt_api_version=3 ;;
9002     *" need-ngettext "*) gt_api_version=2 ;;
9003     *) gt_api_version=1 ;;
9004   esac
9005   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9006   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9007
9008     if test "$USE_NLS" = "yes"; then
9009     gt_use_preinstalled_gnugettext=no
9010
9011       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9012 $as_echo_n "checking whether included gettext is requested... " >&6; }
9013
9014 # Check whether --with-included-gettext was given.
9015 if test "${with_included_gettext+set}" = set; then :
9016   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9017 else
9018   nls_cv_force_use_gnu_gettext=no
9019 fi
9020
9021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9022 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9023
9024       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9025       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9026
9027
9028         if test $gt_api_version -ge 3; then
9029           gt_revision_test_code='
9030 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9031 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9032 #endif
9033 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9034 '
9035         else
9036           gt_revision_test_code=
9037         fi
9038         if test $gt_api_version -ge 2; then
9039           gt_expression_test_code=' + * ngettext ("", "", 0)'
9040         else
9041           gt_expression_test_code=
9042         fi
9043
9044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9045 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9046 if eval \${$gt_func_gnugettext_libc+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <libintl.h>
9052 $gt_revision_test_code
9053 extern int _nl_msg_cat_cntr;
9054 extern int *_nl_domain_bindings;
9055 int
9056 main ()
9057 {
9058 bindtextdomain ("", "");
9059 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065   eval "$gt_func_gnugettext_libc=yes"
9066 else
9067   eval "$gt_func_gnugettext_libc=no"
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071 fi
9072 eval ac_res=\$$gt_func_gnugettext_libc
9073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9074 $as_echo "$ac_res" >&6; }
9075
9076         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9077
9078
9079
9080
9081
9082
9083
9084
9085     use_additional=yes
9086
9087   acl_save_prefix="$prefix"
9088   prefix="$acl_final_prefix"
9089   acl_save_exec_prefix="$exec_prefix"
9090   exec_prefix="$acl_final_exec_prefix"
9091
9092     eval additional_includedir=\"$includedir\"
9093     eval additional_libdir=\"$libdir\"
9094
9095   exec_prefix="$acl_save_exec_prefix"
9096   prefix="$acl_save_prefix"
9097
9098
9099 # Check whether --with-libintl-prefix was given.
9100 if test "${with_libintl_prefix+set}" = set; then :
9101   withval=$with_libintl_prefix;
9102     if test "X$withval" = "Xno"; then
9103       use_additional=no
9104     else
9105       if test "X$withval" = "X"; then
9106
9107   acl_save_prefix="$prefix"
9108   prefix="$acl_final_prefix"
9109   acl_save_exec_prefix="$exec_prefix"
9110   exec_prefix="$acl_final_exec_prefix"
9111
9112           eval additional_includedir=\"$includedir\"
9113           eval additional_libdir=\"$libdir\"
9114
9115   exec_prefix="$acl_save_exec_prefix"
9116   prefix="$acl_save_prefix"
9117
9118       else
9119         additional_includedir="$withval/include"
9120         additional_libdir="$withval/$acl_libdirstem"
9121         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9122            && ! test -d "$withval/$acl_libdirstem"; then
9123           additional_libdir="$withval/$acl_libdirstem2"
9124         fi
9125       fi
9126     fi
9127
9128 fi
9129
9130       LIBINTL=
9131   LTLIBINTL=
9132   INCINTL=
9133   LIBINTL_PREFIX=
9134       HAVE_LIBINTL=
9135   rpathdirs=
9136   ltrpathdirs=
9137   names_already_handled=
9138   names_next_round='intl '
9139   while test -n "$names_next_round"; do
9140     names_this_round="$names_next_round"
9141     names_next_round=
9142     for name in $names_this_round; do
9143       already_handled=
9144       for n in $names_already_handled; do
9145         if test "$n" = "$name"; then
9146           already_handled=yes
9147           break
9148         fi
9149       done
9150       if test -z "$already_handled"; then
9151         names_already_handled="$names_already_handled $name"
9152                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9153         eval value=\"\$HAVE_LIB$uppername\"
9154         if test -n "$value"; then
9155           if test "$value" = yes; then
9156             eval value=\"\$LIB$uppername\"
9157             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9158             eval value=\"\$LTLIB$uppername\"
9159             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9160           else
9161                                     :
9162           fi
9163         else
9164                               found_dir=
9165           found_la=
9166           found_so=
9167           found_a=
9168           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9169           if test -n "$acl_shlibext"; then
9170             shrext=".$acl_shlibext"             # typically: shrext=.so
9171           else
9172             shrext=
9173           fi
9174           if test $use_additional = yes; then
9175             dir="$additional_libdir"
9176                                     if test -n "$acl_shlibext"; then
9177               if test -f "$dir/$libname$shrext"; then
9178                 found_dir="$dir"
9179                 found_so="$dir/$libname$shrext"
9180               else
9181                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9182                   ver=`(cd "$dir" && \
9183                         for f in "$libname$shrext".*; do echo "$f"; done \
9184                         | sed -e "s,^$libname$shrext\\\\.,," \
9185                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9186                         | sed 1q ) 2>/dev/null`
9187                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9188                     found_dir="$dir"
9189                     found_so="$dir/$libname$shrext.$ver"
9190                   fi
9191                 else
9192                   eval library_names=\"$acl_library_names_spec\"
9193                   for f in $library_names; do
9194                     if test -f "$dir/$f"; then
9195                       found_dir="$dir"
9196                       found_so="$dir/$f"
9197                       break
9198                     fi
9199                   done
9200                 fi
9201               fi
9202             fi
9203                         if test "X$found_dir" = "X"; then
9204               if test -f "$dir/$libname.$acl_libext"; then
9205                 found_dir="$dir"
9206                 found_a="$dir/$libname.$acl_libext"
9207               fi
9208             fi
9209             if test "X$found_dir" != "X"; then
9210               if test -f "$dir/$libname.la"; then
9211                 found_la="$dir/$libname.la"
9212               fi
9213             fi
9214           fi
9215           if test "X$found_dir" = "X"; then
9216             for x in $LDFLAGS $LTLIBINTL; do
9217
9218   acl_save_prefix="$prefix"
9219   prefix="$acl_final_prefix"
9220   acl_save_exec_prefix="$exec_prefix"
9221   exec_prefix="$acl_final_exec_prefix"
9222   eval x=\"$x\"
9223   exec_prefix="$acl_save_exec_prefix"
9224   prefix="$acl_save_prefix"
9225
9226               case "$x" in
9227                 -L*)
9228                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9229                                     if test -n "$acl_shlibext"; then
9230                     if test -f "$dir/$libname$shrext"; then
9231                       found_dir="$dir"
9232                       found_so="$dir/$libname$shrext"
9233                     else
9234                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9235                         ver=`(cd "$dir" && \
9236                               for f in "$libname$shrext".*; do echo "$f"; done \
9237                               | sed -e "s,^$libname$shrext\\\\.,," \
9238                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9239                               | sed 1q ) 2>/dev/null`
9240                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9241                           found_dir="$dir"
9242                           found_so="$dir/$libname$shrext.$ver"
9243                         fi
9244                       else
9245                         eval library_names=\"$acl_library_names_spec\"
9246                         for f in $library_names; do
9247                           if test -f "$dir/$f"; then
9248                             found_dir="$dir"
9249                             found_so="$dir/$f"
9250                             break
9251                           fi
9252                         done
9253                       fi
9254                     fi
9255                   fi
9256                                     if test "X$found_dir" = "X"; then
9257                     if test -f "$dir/$libname.$acl_libext"; then
9258                       found_dir="$dir"
9259                       found_a="$dir/$libname.$acl_libext"
9260                     fi
9261                   fi
9262                   if test "X$found_dir" != "X"; then
9263                     if test -f "$dir/$libname.la"; then
9264                       found_la="$dir/$libname.la"
9265                     fi
9266                   fi
9267                   ;;
9268               esac
9269               if test "X$found_dir" != "X"; then
9270                 break
9271               fi
9272             done
9273           fi
9274           if test "X$found_dir" != "X"; then
9275                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9276             if test "X$found_so" != "X"; then
9277                                                         if test "$enable_rpath" = no \
9278                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9279                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9280                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9281               else
9282                                                                                 haveit=
9283                 for x in $ltrpathdirs; do
9284                   if test "X$x" = "X$found_dir"; then
9285                     haveit=yes
9286                     break
9287                   fi
9288                 done
9289                 if test -z "$haveit"; then
9290                   ltrpathdirs="$ltrpathdirs $found_dir"
9291                 fi
9292                                 if test "$acl_hardcode_direct" = yes; then
9293                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9294                 else
9295                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9296                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9297                                                             haveit=
9298                     for x in $rpathdirs; do
9299                       if test "X$x" = "X$found_dir"; then
9300                         haveit=yes
9301                         break
9302                       fi
9303                     done
9304                     if test -z "$haveit"; then
9305                       rpathdirs="$rpathdirs $found_dir"
9306                     fi
9307                   else
9308                                                                                 haveit=
9309                     for x in $LDFLAGS $LIBINTL; do
9310
9311   acl_save_prefix="$prefix"
9312   prefix="$acl_final_prefix"
9313   acl_save_exec_prefix="$exec_prefix"
9314   exec_prefix="$acl_final_exec_prefix"
9315   eval x=\"$x\"
9316   exec_prefix="$acl_save_exec_prefix"
9317   prefix="$acl_save_prefix"
9318
9319                       if test "X$x" = "X-L$found_dir"; then
9320                         haveit=yes
9321                         break
9322                       fi
9323                     done
9324                     if test -z "$haveit"; then
9325                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9326                     fi
9327                     if test "$acl_hardcode_minus_L" != no; then
9328                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9329                     else
9330                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9331                     fi
9332                   fi
9333                 fi
9334               fi
9335             else
9336               if test "X$found_a" != "X"; then
9337                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9338               else
9339                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9340               fi
9341             fi
9342                         additional_includedir=
9343             case "$found_dir" in
9344               */$acl_libdirstem | */$acl_libdirstem/)
9345                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9346                 if test "$name" = 'intl'; then
9347                   LIBINTL_PREFIX="$basedir"
9348                 fi
9349                 additional_includedir="$basedir/include"
9350                 ;;
9351               */$acl_libdirstem2 | */$acl_libdirstem2/)
9352                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9353                 if test "$name" = 'intl'; then
9354                   LIBINTL_PREFIX="$basedir"
9355                 fi
9356                 additional_includedir="$basedir/include"
9357                 ;;
9358             esac
9359             if test "X$additional_includedir" != "X"; then
9360                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9361                 haveit=
9362                 if test "X$additional_includedir" = "X/usr/local/include"; then
9363                   if test -n "$GCC"; then
9364                     case $host_os in
9365                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9366                     esac
9367                   fi
9368                 fi
9369                 if test -z "$haveit"; then
9370                   for x in $CPPFLAGS $INCINTL; do
9371
9372   acl_save_prefix="$prefix"
9373   prefix="$acl_final_prefix"
9374   acl_save_exec_prefix="$exec_prefix"
9375   exec_prefix="$acl_final_exec_prefix"
9376   eval x=\"$x\"
9377   exec_prefix="$acl_save_exec_prefix"
9378   prefix="$acl_save_prefix"
9379
9380                     if test "X$x" = "X-I$additional_includedir"; then
9381                       haveit=yes
9382                       break
9383                     fi
9384                   done
9385                   if test -z "$haveit"; then
9386                     if test -d "$additional_includedir"; then
9387                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9388                     fi
9389                   fi
9390                 fi
9391               fi
9392             fi
9393                         if test -n "$found_la"; then
9394                                                         save_libdir="$libdir"
9395               case "$found_la" in
9396                 */* | *\\*) . "$found_la" ;;
9397                 *) . "./$found_la" ;;
9398               esac
9399               libdir="$save_libdir"
9400                             for dep in $dependency_libs; do
9401                 case "$dep" in
9402                   -L*)
9403                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9404                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9405                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9406                       haveit=
9407                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9408                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9409                         if test -n "$GCC"; then
9410                           case $host_os in
9411                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9412                           esac
9413                         fi
9414                       fi
9415                       if test -z "$haveit"; then
9416                         haveit=
9417                         for x in $LDFLAGS $LIBINTL; do
9418
9419   acl_save_prefix="$prefix"
9420   prefix="$acl_final_prefix"
9421   acl_save_exec_prefix="$exec_prefix"
9422   exec_prefix="$acl_final_exec_prefix"
9423   eval x=\"$x\"
9424   exec_prefix="$acl_save_exec_prefix"
9425   prefix="$acl_save_prefix"
9426
9427                           if test "X$x" = "X-L$additional_libdir"; then
9428                             haveit=yes
9429                             break
9430                           fi
9431                         done
9432                         if test -z "$haveit"; then
9433                           if test -d "$additional_libdir"; then
9434                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9435                           fi
9436                         fi
9437                         haveit=
9438                         for x in $LDFLAGS $LTLIBINTL; do
9439
9440   acl_save_prefix="$prefix"
9441   prefix="$acl_final_prefix"
9442   acl_save_exec_prefix="$exec_prefix"
9443   exec_prefix="$acl_final_exec_prefix"
9444   eval x=\"$x\"
9445   exec_prefix="$acl_save_exec_prefix"
9446   prefix="$acl_save_prefix"
9447
9448                           if test "X$x" = "X-L$additional_libdir"; then
9449                             haveit=yes
9450                             break
9451                           fi
9452                         done
9453                         if test -z "$haveit"; then
9454                           if test -d "$additional_libdir"; then
9455                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9456                           fi
9457                         fi
9458                       fi
9459                     fi
9460                     ;;
9461                   -R*)
9462                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9463                     if test "$enable_rpath" != no; then
9464                                                                   haveit=
9465                       for x in $rpathdirs; do
9466                         if test "X$x" = "X$dir"; then
9467                           haveit=yes
9468                           break
9469                         fi
9470                       done
9471                       if test -z "$haveit"; then
9472                         rpathdirs="$rpathdirs $dir"
9473                       fi
9474                                                                   haveit=
9475                       for x in $ltrpathdirs; do
9476                         if test "X$x" = "X$dir"; then
9477                           haveit=yes
9478                           break
9479                         fi
9480                       done
9481                       if test -z "$haveit"; then
9482                         ltrpathdirs="$ltrpathdirs $dir"
9483                       fi
9484                     fi
9485                     ;;
9486                   -l*)
9487                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9488                     ;;
9489                   *.la)
9490                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9491                     ;;
9492                   *)
9493                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9494                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9495                     ;;
9496                 esac
9497               done
9498             fi
9499           else
9500                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9501             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9502           fi
9503         fi
9504       fi
9505     done
9506   done
9507   if test "X$rpathdirs" != "X"; then
9508     if test -n "$acl_hardcode_libdir_separator"; then
9509                         alldirs=
9510       for found_dir in $rpathdirs; do
9511         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9512       done
9513             acl_save_libdir="$libdir"
9514       libdir="$alldirs"
9515       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9516       libdir="$acl_save_libdir"
9517       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9518     else
9519             for found_dir in $rpathdirs; do
9520         acl_save_libdir="$libdir"
9521         libdir="$found_dir"
9522         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9523         libdir="$acl_save_libdir"
9524         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9525       done
9526     fi
9527   fi
9528   if test "X$ltrpathdirs" != "X"; then
9529             for found_dir in $ltrpathdirs; do
9530       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9531     done
9532   fi
9533
9534
9535
9536
9537
9538
9539           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9540 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9541 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9542   $as_echo_n "(cached) " >&6
9543 else
9544   gt_save_CPPFLAGS="$CPPFLAGS"
9545             CPPFLAGS="$CPPFLAGS $INCINTL"
9546             gt_save_LIBS="$LIBS"
9547             LIBS="$LIBS $LIBINTL"
9548                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550 #include <libintl.h>
9551 $gt_revision_test_code
9552 extern int _nl_msg_cat_cntr;
9553 extern
9554 #ifdef __cplusplus
9555 "C"
9556 #endif
9557 const char *_nl_expand_alias (const char *);
9558 int
9559 main ()
9560 {
9561 bindtextdomain ("", "");
9562 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568   eval "$gt_func_gnugettext_libintl=yes"
9569 else
9570   eval "$gt_func_gnugettext_libintl=no"
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573     conftest$ac_exeext conftest.$ac_ext
9574                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9575               LIBS="$LIBS $LIBICONV"
9576               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578 #include <libintl.h>
9579 $gt_revision_test_code
9580 extern int _nl_msg_cat_cntr;
9581 extern
9582 #ifdef __cplusplus
9583 "C"
9584 #endif
9585 const char *_nl_expand_alias (const char *);
9586 int
9587 main ()
9588 {
9589 bindtextdomain ("", "");
9590 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596   LIBINTL="$LIBINTL $LIBICONV"
9597                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9598                 eval "$gt_func_gnugettext_libintl=yes"
9599
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602     conftest$ac_exeext conftest.$ac_ext
9603             fi
9604             CPPFLAGS="$gt_save_CPPFLAGS"
9605             LIBS="$gt_save_LIBS"
9606 fi
9607 eval ac_res=\$$gt_func_gnugettext_libintl
9608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9609 $as_echo "$ac_res" >&6; }
9610         fi
9611
9612                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9613            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9614                 && test "$PACKAGE" != gettext-runtime \
9615                 && test "$PACKAGE" != gettext-tools; }; then
9616           gt_use_preinstalled_gnugettext=yes
9617         else
9618                     LIBINTL=
9619           LTLIBINTL=
9620           INCINTL=
9621         fi
9622
9623
9624         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9625                               nls_cv_use_gnu_gettext=yes
9626         fi
9627       fi
9628
9629       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9630                 BUILD_INCLUDED_LIBINTL=yes
9631         USE_INCLUDED_LIBINTL=yes
9632         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9633         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9634         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9635       fi
9636
9637       CATOBJEXT=
9638       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9639          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9640                 CATOBJEXT=.gmo
9641       fi
9642
9643
9644     if test -n "$INTL_MACOSX_LIBS"; then
9645       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9646          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9647                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9648         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9649       fi
9650     fi
9651
9652     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9653        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9654
9655 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9656
9657     else
9658       USE_NLS=no
9659     fi
9660   fi
9661
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9663 $as_echo_n "checking whether to use NLS... " >&6; }
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9665 $as_echo "$USE_NLS" >&6; }
9666   if test "$USE_NLS" = "yes"; then
9667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9668 $as_echo_n "checking where the gettext function comes from... " >&6; }
9669     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9670       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9671         gt_source="external libintl"
9672       else
9673         gt_source="libc"
9674       fi
9675     else
9676       gt_source="included intl directory"
9677     fi
9678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9679 $as_echo "$gt_source" >&6; }
9680   fi
9681
9682   if test "$USE_NLS" = "yes"; then
9683
9684     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9685       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9687 $as_echo_n "checking how to link with libintl... " >&6; }
9688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9689 $as_echo "$LIBINTL" >&6; }
9690
9691   for element in $INCINTL; do
9692     haveit=
9693     for x in $CPPFLAGS; do
9694
9695   acl_save_prefix="$prefix"
9696   prefix="$acl_final_prefix"
9697   acl_save_exec_prefix="$exec_prefix"
9698   exec_prefix="$acl_final_exec_prefix"
9699   eval x=\"$x\"
9700   exec_prefix="$acl_save_exec_prefix"
9701   prefix="$acl_save_prefix"
9702
9703       if test "X$x" = "X$element"; then
9704         haveit=yes
9705         break
9706       fi
9707     done
9708     if test -z "$haveit"; then
9709       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9710     fi
9711   done
9712
9713       fi
9714
9715
9716 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9717
9718
9719 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9720
9721     fi
9722
9723         POSUB=po
9724   fi
9725
9726
9727             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9728       BUILD_INCLUDED_LIBINTL=yes
9729     fi
9730
9731
9732
9733
9734
9735         nls_cv_header_intl=
9736     nls_cv_header_libgt=
9737
9738         DATADIRNAME=share
9739
9740
9741         INSTOBJEXT=.mo
9742
9743
9744         GENCAT=gencat
9745
9746
9747         INTLOBJS=
9748     if test "$USE_INCLUDED_LIBINTL" = yes; then
9749       INTLOBJS="\$(GETTOBJS)"
9750     fi
9751
9752
9753         INTL_LIBTOOL_SUFFIX_PREFIX=
9754
9755
9756
9757     INTLLIBS="$LIBINTL"
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769         abook_localedir="$datadir/locale"
9770                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9771                 eval tmp_abook_prefix=\""$abook_localedir"\"
9772                 eval echo $tmp_abook_prefix
9773                 )`
9774
9775 localedir="\$(datadir)/locale"
9776
9777
9778 # Check whether --with-localedir was given.
9779 if test "${with_localedir+set}" = set; then :
9780   withval=$with_localedir;
9781 fi
9782
9783 if test "x$with_localedir" != "x"; then
9784         abook_localedir="$with_localedir"
9785         localedir="$with_localedir"
9786 fi
9787
9788
9789 cat >>confdefs.h <<_ACEOF
9790 #define LOCALEDIR "$abook_localedir"
9791 _ACEOF
9792
9793
9794
9795  if test x$USE_INCLUDED_LIBINTL = xyes; then
9796   USE_INCLUDED_INTL_H_TRUE=
9797   USE_INCLUDED_INTL_H_FALSE='#'
9798 else
9799   USE_INCLUDED_INTL_H_TRUE='#'
9800   USE_INCLUDED_INTL_H_FALSE=
9801 fi
9802
9803
9804
9805 ac_ext=c
9806 ac_cpp='$CPP $CPPFLAGS'
9807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9810 if test -n "$ac_tool_prefix"; then
9811   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_CC+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   if test -n "$CC"; then
9819   ac_cv_prog_CC="$CC" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9823 do
9824   IFS=$as_save_IFS
9825   test -z "$as_dir" && as_dir=.
9826     for ac_exec_ext in '' $ac_executable_extensions; do
9827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830     break 2
9831   fi
9832 done
9833   done
9834 IFS=$as_save_IFS
9835
9836 fi
9837 fi
9838 CC=$ac_cv_prog_CC
9839 if test -n "$CC"; then
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9841 $as_echo "$CC" >&6; }
9842 else
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9845 fi
9846
9847
9848 fi
9849 if test -z "$ac_cv_prog_CC"; then
9850   ac_ct_CC=$CC
9851   # Extract the first word of "gcc", so it can be a program name with args.
9852 set dummy gcc; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9856   $as_echo_n "(cached) " >&6
9857 else
9858   if test -n "$ac_ct_CC"; then
9859   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9863 do
9864   IFS=$as_save_IFS
9865   test -z "$as_dir" && as_dir=.
9866     for ac_exec_ext in '' $ac_executable_extensions; do
9867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868     ac_cv_prog_ac_ct_CC="gcc"
9869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870     break 2
9871   fi
9872 done
9873   done
9874 IFS=$as_save_IFS
9875
9876 fi
9877 fi
9878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9879 if test -n "$ac_ct_CC"; then
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9881 $as_echo "$ac_ct_CC" >&6; }
9882 else
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9885 fi
9886
9887   if test "x$ac_ct_CC" = x; then
9888     CC=""
9889   else
9890     case $cross_compiling:$ac_tool_warned in
9891 yes:)
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894 ac_tool_warned=yes ;;
9895 esac
9896     CC=$ac_ct_CC
9897   fi
9898 else
9899   CC="$ac_cv_prog_CC"
9900 fi
9901
9902 if test -z "$CC"; then
9903           if test -n "$ac_tool_prefix"; then
9904     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9905 set dummy ${ac_tool_prefix}cc; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_prog_CC+:} false; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   if test -n "$CC"; then
9912   ac_cv_prog_CC="$CC" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9916 do
9917   IFS=$as_save_IFS
9918   test -z "$as_dir" && as_dir=.
9919     for ac_exec_ext in '' $ac_executable_extensions; do
9920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921     ac_cv_prog_CC="${ac_tool_prefix}cc"
9922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923     break 2
9924   fi
9925 done
9926   done
9927 IFS=$as_save_IFS
9928
9929 fi
9930 fi
9931 CC=$ac_cv_prog_CC
9932 if test -n "$CC"; then
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9934 $as_echo "$CC" >&6; }
9935 else
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938 fi
9939
9940
9941   fi
9942 fi
9943 if test -z "$CC"; then
9944   # Extract the first word of "cc", so it can be a program name with args.
9945 set dummy cc; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_prog_CC+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951   if test -n "$CC"; then
9952   ac_cv_prog_CC="$CC" # Let the user override the test.
9953 else
9954   ac_prog_rejected=no
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958   IFS=$as_save_IFS
9959   test -z "$as_dir" && as_dir=.
9960     for ac_exec_ext in '' $ac_executable_extensions; do
9961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9963        ac_prog_rejected=yes
9964        continue
9965      fi
9966     ac_cv_prog_CC="cc"
9967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968     break 2
9969   fi
9970 done
9971   done
9972 IFS=$as_save_IFS
9973
9974 if test $ac_prog_rejected = yes; then
9975   # We found a bogon in the path, so make sure we never use it.
9976   set dummy $ac_cv_prog_CC
9977   shift
9978   if test $# != 0; then
9979     # We chose a different compiler from the bogus one.
9980     # However, it has the same basename, so the bogon will be chosen
9981     # first if we set CC to just the basename; use the full file name.
9982     shift
9983     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9984   fi
9985 fi
9986 fi
9987 fi
9988 CC=$ac_cv_prog_CC
9989 if test -n "$CC"; then
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9991 $as_echo "$CC" >&6; }
9992 else
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9995 fi
9996
9997
9998 fi
9999 if test -z "$CC"; then
10000   if test -n "$ac_tool_prefix"; then
10001   for ac_prog in cl.exe
10002   do
10003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_prog_CC+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   if test -n "$CC"; then
10011   ac_cv_prog_CC="$CC" # Let the user override the test.
10012 else
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016   IFS=$as_save_IFS
10017   test -z "$as_dir" && as_dir=.
10018     for ac_exec_ext in '' $ac_executable_extensions; do
10019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022     break 2
10023   fi
10024 done
10025   done
10026 IFS=$as_save_IFS
10027
10028 fi
10029 fi
10030 CC=$ac_cv_prog_CC
10031 if test -n "$CC"; then
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10033 $as_echo "$CC" >&6; }
10034 else
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10037 fi
10038
10039
10040     test -n "$CC" && break
10041   done
10042 fi
10043 if test -z "$CC"; then
10044   ac_ct_CC=$CC
10045   for ac_prog in cl.exe
10046 do
10047   # Extract the first word of "$ac_prog", so it can be a program name with args.
10048 set dummy $ac_prog; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10052   $as_echo_n "(cached) " >&6
10053 else
10054   if test -n "$ac_ct_CC"; then
10055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10056 else
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060   IFS=$as_save_IFS
10061   test -z "$as_dir" && as_dir=.
10062     for ac_exec_ext in '' $ac_executable_extensions; do
10063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064     ac_cv_prog_ac_ct_CC="$ac_prog"
10065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066     break 2
10067   fi
10068 done
10069   done
10070 IFS=$as_save_IFS
10071
10072 fi
10073 fi
10074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10075 if test -n "$ac_ct_CC"; then
10076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10077 $as_echo "$ac_ct_CC" >&6; }
10078 else
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 fi
10082
10083
10084   test -n "$ac_ct_CC" && break
10085 done
10086
10087   if test "x$ac_ct_CC" = x; then
10088     CC=""
10089   else
10090     case $cross_compiling:$ac_tool_warned in
10091 yes:)
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094 ac_tool_warned=yes ;;
10095 esac
10096     CC=$ac_ct_CC
10097   fi
10098 fi
10099
10100 fi
10101
10102
10103 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10105 as_fn_error $? "no acceptable C compiler found in \$PATH
10106 See \`config.log' for more details" "$LINENO" 5; }
10107
10108 # Provide some information about the compiler.
10109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10110 set X $ac_compile
10111 ac_compiler=$2
10112 for ac_option in --version -v -V -qversion; do
10113   { { ac_try="$ac_compiler $ac_option >&5"
10114 case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10119 $as_echo "$ac_try_echo"; } >&5
10120   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10121   ac_status=$?
10122   if test -s conftest.err; then
10123     sed '10a\
10124 ... rest of stderr output deleted ...
10125          10q' conftest.err >conftest.er1
10126     cat conftest.er1 >&5
10127   fi
10128   rm -f conftest.er1 conftest.err
10129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10130   test $ac_status = 0; }
10131 done
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10135 if ${ac_cv_c_compiler_gnu+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h.  */
10140
10141 int
10142 main ()
10143 {
10144 #ifndef __GNUC__
10145        choke me
10146 #endif
10147
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_compile "$LINENO"; then :
10153   ac_compiler_gnu=yes
10154 else
10155   ac_compiler_gnu=no
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10159
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10163 if test $ac_compiler_gnu = yes; then
10164   GCC=yes
10165 else
10166   GCC=
10167 fi
10168 ac_test_CFLAGS=${CFLAGS+set}
10169 ac_save_CFLAGS=$CFLAGS
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10172 if ${ac_cv_prog_cc_g+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   ac_save_c_werror_flag=$ac_c_werror_flag
10176    ac_c_werror_flag=yes
10177    ac_cv_prog_cc_g=no
10178    CFLAGS="-g"
10179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h.  */
10181
10182 int
10183 main ()
10184 {
10185
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191   ac_cv_prog_cc_g=yes
10192 else
10193   CFLAGS=""
10194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h.  */
10196
10197 int
10198 main ()
10199 {
10200
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_compile "$LINENO"; then :
10206
10207 else
10208   ac_c_werror_flag=$ac_save_c_werror_flag
10209          CFLAGS="-g"
10210          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h.  */
10212
10213 int
10214 main ()
10215 {
10216
10217   ;
10218   return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222   ac_cv_prog_cc_g=yes
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229    ac_c_werror_flag=$ac_save_c_werror_flag
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10232 $as_echo "$ac_cv_prog_cc_g" >&6; }
10233 if test "$ac_test_CFLAGS" = set; then
10234   CFLAGS=$ac_save_CFLAGS
10235 elif test $ac_cv_prog_cc_g = yes; then
10236   if test "$GCC" = yes; then
10237     CFLAGS="-g -O2"
10238   else
10239     CFLAGS="-g"
10240   fi
10241 else
10242   if test "$GCC" = yes; then
10243     CFLAGS="-O2"
10244   else
10245     CFLAGS=
10246   fi
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10250 if ${ac_cv_prog_cc_c89+:} false; then :
10251   $as_echo_n "(cached) " >&6
10252 else
10253   ac_cv_prog_cc_c89=no
10254 ac_save_CC=$CC
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h.  */
10257 #include <stdarg.h>
10258 #include <stdio.h>
10259 #include <sys/types.h>
10260 #include <sys/stat.h>
10261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10262 struct buf { int x; };
10263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10264 static char *e (p, i)
10265      char **p;
10266      int i;
10267 {
10268   return p[i];
10269 }
10270 static char *f (char * (*g) (char **, int), char **p, ...)
10271 {
10272   char *s;
10273   va_list v;
10274   va_start (v,p);
10275   s = g (p, va_arg (v,int));
10276   va_end (v);
10277   return s;
10278 }
10279
10280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10281    function prototypes and stuff, but not '\xHH' hex character constants.
10282    These don't provoke an error unfortunately, instead are silently treated
10283    as 'x'.  The following induces an error, until -std is added to get
10284    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10285    array size at least.  It's necessary to write '\x00'==0 to get something
10286    that's true only with -std.  */
10287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10288
10289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10290    inside strings and character constants.  */
10291 #define FOO(x) 'x'
10292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10293
10294 int test (int i, double x);
10295 struct s1 {int (*f) (int a);};
10296 struct s2 {int (*f) (double a);};
10297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10298 int argc;
10299 char **argv;
10300 int
10301 main ()
10302 {
10303 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10309         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10310 do
10311   CC="$ac_save_CC $ac_arg"
10312   if ac_fn_c_try_compile "$LINENO"; then :
10313   ac_cv_prog_cc_c89=$ac_arg
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext
10316   test "x$ac_cv_prog_cc_c89" != "xno" && break
10317 done
10318 rm -f conftest.$ac_ext
10319 CC=$ac_save_CC
10320
10321 fi
10322 # AC_CACHE_VAL
10323 case "x$ac_cv_prog_cc_c89" in
10324   x)
10325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10326 $as_echo "none needed" >&6; } ;;
10327   xno)
10328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10329 $as_echo "unsupported" >&6; } ;;
10330   *)
10331     CC="$CC $ac_cv_prog_cc_c89"
10332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10334 esac
10335 if test "x$ac_cv_prog_cc_c89" != xno; then :
10336
10337 fi
10338
10339 ac_ext=c
10340 ac_cpp='$CPP $CPPFLAGS'
10341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10344
10345 depcc="$CC"   am_compiler_list=
10346
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10348 $as_echo_n "checking dependency style of $depcc... " >&6; }
10349 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10353   # We make a subdir and do the tests there.  Otherwise we can end up
10354   # making bogus files that we don't know about and never remove.  For
10355   # instance it was reported that on HP-UX the gcc test will end up
10356   # making a dummy file named `D' -- because `-MD' means `put the output
10357   # in D'.
10358   mkdir conftest.dir
10359   # Copy depcomp to subdir because otherwise we won't find it if we're
10360   # using a relative directory.
10361   cp "$am_depcomp" conftest.dir
10362   cd conftest.dir
10363   # We will build objects and dependencies in a subdirectory because
10364   # it helps to detect inapplicable dependency modes.  For instance
10365   # both Tru64's cc and ICC support -MD to output dependencies as a
10366   # side effect of compilation, but ICC will put the dependencies in
10367   # the current directory while Tru64 will put them in the object
10368   # directory.
10369   mkdir sub
10370
10371   am_cv_CC_dependencies_compiler_type=none
10372   if test "$am_compiler_list" = ""; then
10373      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10374   fi
10375   am__universal=false
10376   case " $depcc " in #(
10377      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10378      esac
10379
10380   for depmode in $am_compiler_list; do
10381     # Setup a source with many dependencies, because some compilers
10382     # like to wrap large dependency lists on column 80 (with \), and
10383     # we should not choose a depcomp mode which is confused by this.
10384     #
10385     # We need to recreate these files for each test, as the compiler may
10386     # overwrite some of them when testing with obscure command lines.
10387     # This happens at least with the AIX C compiler.
10388     : > sub/conftest.c
10389     for i in 1 2 3 4 5 6; do
10390       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10391       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10392       # Solaris 8's {/usr,}/bin/sh.
10393       touch sub/conftst$i.h
10394     done
10395     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10396
10397     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10398     # mode.  It turns out that the SunPro C++ compiler does not properly
10399     # handle `-M -o', and we need to detect this.  Also, some Intel
10400     # versions had trouble with output in subdirs
10401     am__obj=sub/conftest.${OBJEXT-o}
10402     am__minus_obj="-o $am__obj"
10403     case $depmode in
10404     gcc)
10405       # This depmode causes a compiler race in universal mode.
10406       test "$am__universal" = false || continue
10407       ;;
10408     nosideeffect)
10409       # after this tag, mechanisms are not by side-effect, so they'll
10410       # only be used when explicitly requested
10411       if test "x$enable_dependency_tracking" = xyes; then
10412         continue
10413       else
10414         break
10415       fi
10416       ;;
10417     msvisualcpp | msvcmsys)
10418       # This compiler won't grok `-c -o', but also, the minuso test has
10419       # not run yet.  These depmodes are late enough in the game, and
10420       # so weak that their functioning should not be impacted.
10421       am__obj=conftest.${OBJEXT-o}
10422       am__minus_obj=
10423       ;;
10424     none) break ;;
10425     esac
10426     if depmode=$depmode \
10427        source=sub/conftest.c object=$am__obj \
10428        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10429        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10430          >/dev/null 2>conftest.err &&
10431        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10432        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10433        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10434        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10435       # icc doesn't choke on unknown options, it will just issue warnings
10436       # or remarks (even with -Werror).  So we grep stderr for any message
10437       # that says an option was ignored or not supported.
10438       # When given -MP, icc 7.0 and 7.1 complain thusly:
10439       #   icc: Command line warning: ignoring option '-M'; no argument required
10440       # The diagnosis changed in icc 8.0:
10441       #   icc: Command line remark: option '-MP' not supported
10442       if (grep 'ignoring option' conftest.err ||
10443           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10444         am_cv_CC_dependencies_compiler_type=$depmode
10445         break
10446       fi
10447     fi
10448   done
10449
10450   cd ..
10451   rm -rf conftest.dir
10452 else
10453   am_cv_CC_dependencies_compiler_type=none
10454 fi
10455
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10458 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10459 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10460
10461  if
10462   test "x$enable_dependency_tracking" != xno \
10463   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10464   am__fastdepCC_TRUE=
10465   am__fastdepCC_FALSE='#'
10466 else
10467   am__fastdepCC_TRUE='#'
10468   am__fastdepCC_FALSE=
10469 fi
10470
10471
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10473 $as_echo_n "checking for library containing strerror... " >&6; }
10474 if ${ac_cv_search_strerror+:} false; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   ac_func_search_save_LIBS=$LIBS
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h.  */
10480
10481 /* Override any GCC internal prototype to avoid an error.
10482    Use char because int might match the return type of a GCC
10483    builtin and then its argument prototype would still apply.  */
10484 #ifdef __cplusplus
10485 extern "C"
10486 #endif
10487 char strerror ();
10488 int
10489 main ()
10490 {
10491 return strerror ();
10492   ;
10493   return 0;
10494 }
10495 _ACEOF
10496 for ac_lib in '' cposix; do
10497   if test -z "$ac_lib"; then
10498     ac_res="none required"
10499   else
10500     ac_res=-l$ac_lib
10501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10502   fi
10503   if ac_fn_c_try_link "$LINENO"; then :
10504   ac_cv_search_strerror=$ac_res
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext \
10507     conftest$ac_exeext
10508   if ${ac_cv_search_strerror+:} false; then :
10509   break
10510 fi
10511 done
10512 if ${ac_cv_search_strerror+:} false; then :
10513
10514 else
10515   ac_cv_search_strerror=no
10516 fi
10517 rm conftest.$ac_ext
10518 LIBS=$ac_func_search_save_LIBS
10519 fi
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10521 $as_echo "$ac_cv_search_strerror" >&6; }
10522 ac_res=$ac_cv_search_strerror
10523 if test "$ac_res" != no; then :
10524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10525
10526 fi
10527
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10529 $as_echo_n "checking for function prototypes... " >&6; }
10530 if test "$ac_cv_prog_cc_c89" != no; then
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10532 $as_echo "yes" >&6; }
10533
10534 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10535
10536
10537 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10538
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10542 fi
10543
10544
10545 if test "$ac_cv_prog_cc_stdc" != no; then
10546   U= ANSI2KNR=
10547 else
10548   U=_ ANSI2KNR=./ansi2knr
10549 fi
10550 # Ensure some checks needed by ansi2knr itself.
10551
10552 for ac_header in string.h
10553 do :
10554   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10555 if test "x$ac_cv_header_string_h" = xyes; then :
10556   cat >>confdefs.h <<_ACEOF
10557 #define HAVE_STRING_H 1
10558 _ACEOF
10559
10560 fi
10561
10562 done
10563
10564
10565 if test "x$U" != "x"; then
10566         as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10569 $as_echo_n "checking for inline... " >&6; }
10570 if ${ac_cv_c_inline+:} false; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   ac_cv_c_inline=no
10574 for ac_kw in inline __inline__ __inline; do
10575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577 #ifndef __cplusplus
10578 typedef int foo_t;
10579 static $ac_kw foo_t static_foo () {return 0; }
10580 $ac_kw foo_t foo () {return 0; }
10581 #endif
10582
10583 _ACEOF
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585   ac_cv_c_inline=$ac_kw
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588   test "$ac_cv_c_inline" != no && break
10589 done
10590
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10593 $as_echo "$ac_cv_c_inline" >&6; }
10594
10595 case $ac_cv_c_inline in
10596   inline | yes) ;;
10597   *)
10598     case $ac_cv_c_inline in
10599       no) ac_val=;;
10600       *) ac_val=$ac_cv_c_inline;;
10601     esac
10602     cat >>confdefs.h <<_ACEOF
10603 #ifndef __cplusplus
10604 #define inline $ac_val
10605 #endif
10606 _ACEOF
10607     ;;
10608 esac
10609
10610
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10612 $as_echo_n "checking for ANSI C header files... " >&6; }
10613 if ${ac_cv_header_stdc+:} false; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h.  */
10618 #include <stdlib.h>
10619 #include <stdarg.h>
10620 #include <string.h>
10621 #include <float.h>
10622
10623 int
10624 main ()
10625 {
10626
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 if ac_fn_c_try_compile "$LINENO"; then :
10632   ac_cv_header_stdc=yes
10633 else
10634   ac_cv_header_stdc=no
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637
10638 if test $ac_cv_header_stdc = yes; then
10639   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h.  */
10642 #include <string.h>
10643
10644 _ACEOF
10645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10646   $EGREP "memchr" >/dev/null 2>&1; then :
10647
10648 else
10649   ac_cv_header_stdc=no
10650 fi
10651 rm -f conftest*
10652
10653 fi
10654
10655 if test $ac_cv_header_stdc = yes; then
10656   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h.  */
10659 #include <stdlib.h>
10660
10661 _ACEOF
10662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10663   $EGREP "free" >/dev/null 2>&1; then :
10664
10665 else
10666   ac_cv_header_stdc=no
10667 fi
10668 rm -f conftest*
10669
10670 fi
10671
10672 if test $ac_cv_header_stdc = yes; then
10673   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10674   if test "$cross_compiling" = yes; then :
10675   :
10676 else
10677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h.  */
10679 #include <ctype.h>
10680 #include <stdlib.h>
10681 #if ((' ' & 0x0FF) == 0x020)
10682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10684 #else
10685 # define ISLOWER(c) \
10686                    (('a' <= (c) && (c) <= 'i') \
10687                      || ('j' <= (c) && (c) <= 'r') \
10688                      || ('s' <= (c) && (c) <= 'z'))
10689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10690 #endif
10691
10692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10693 int
10694 main ()
10695 {
10696   int i;
10697   for (i = 0; i < 256; i++)
10698     if (XOR (islower (i), ISLOWER (i))
10699         || toupper (i) != TOUPPER (i))
10700       return 2;
10701   return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_run "$LINENO"; then :
10705
10706 else
10707   ac_cv_header_stdc=no
10708 fi
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10710   conftest.$ac_objext conftest.beam conftest.$ac_ext
10711 fi
10712
10713 fi
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10716 $as_echo "$ac_cv_header_stdc" >&6; }
10717 if test $ac_cv_header_stdc = yes; then
10718
10719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10720
10721 fi
10722
10723 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10724 do :
10725   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10728   cat >>confdefs.h <<_ACEOF
10729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730 _ACEOF
10731
10732 fi
10733
10734 done
10735
10736 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10737 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10738
10739 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10740
10741 else
10742   as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10743 fi
10744
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10747 $as_echo_n "checking for working strcoll... " >&6; }
10748 if ${ac_cv_func_strcoll_works+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   if test "$cross_compiling" = yes; then :
10752   ac_cv_func_strcoll_works=no
10753 else
10754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756 $ac_includes_default
10757 int
10758 main ()
10759 {
10760 return (strcoll ("abc", "def") >= 0 ||
10761          strcoll ("ABC", "DEF") >= 0 ||
10762          strcoll ("123", "456") >= 0)
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_run "$LINENO"; then :
10768   ac_cv_func_strcoll_works=yes
10769 else
10770   ac_cv_func_strcoll_works=no
10771 fi
10772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10773   conftest.$ac_objext conftest.beam conftest.$ac_ext
10774 fi
10775
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10778 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10779 if test $ac_cv_func_strcoll_works = yes; then
10780
10781 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10782
10783 fi
10784
10785 for ac_func in setlocale
10786 do :
10787   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10788 if test "x$ac_cv_func_setlocale" = xyes; then :
10789   cat >>confdefs.h <<_ACEOF
10790 #define HAVE_SETLOCALE 1
10791 _ACEOF
10792
10793 fi
10794 done
10795
10796
10797 ac_widec_funcs=yes
10798 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10799 if test "x$ac_cv_header_wchar_h" = xyes; then :
10800
10801         ac_have_wchar_h=yes
10802
10803 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10804
10805 else
10806   ac_have_wchar_h=no
10807 fi
10808
10809
10810 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10811 do :
10812   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10815   cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10817 _ACEOF
10818
10819 else
10820   ac_widec_funcs=no
10821 fi
10822 done
10823
10824 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10825 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10826   ac_have_decl=1
10827 else
10828   ac_have_decl=0
10829 fi
10830
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_WCWIDTH $ac_have_decl
10833 _ACEOF
10834
10835 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10836 if test "x$ac_cv_type_wchar_t" = xyes; then :
10837
10838 else
10839   ac_widec_funcs=no
10840 fi
10841
10842
10843 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10844         ac_widec_possible=yes
10845 else
10846         ac_widec_possible=no
10847 fi
10848
10849
10850 abook_cv_curses=/usr
10851
10852 # Check whether --with-curses was given.
10853 if test "${with_curses+set}" = set; then :
10854   withval=$with_curses; if test $withval != yes; then
10855                 abook_cv_curses=$withval
10856         fi
10857         if test x$abook_cv_curses != x/usr; then
10858                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10859                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10860         fi
10861 fi
10862
10863
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10865 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10866 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lncursesw  $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h.  */
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875    Use char because int might match the return type of a GCC
10876    builtin and then its argument prototype would still apply.  */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char initscr ();
10881 int
10882 main ()
10883 {
10884 return initscr ();
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890   ac_cv_lib_ncursesw_initscr=yes
10891 else
10892   ac_cv_lib_ncursesw_initscr=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895     conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10899 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10900 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10901   LIBS="$LIBS -lncursesw"
10902         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10903                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10904         fi
10905         for ac_header in ncurses.h
10906 do :
10907   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10908 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10909   cat >>confdefs.h <<_ACEOF
10910 #define HAVE_NCURSES_H 1
10911 _ACEOF
10912
10913 fi
10914
10915 done
10916
10917 else
10918
10919         ac_widec_possible=no
10920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10921 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10922 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10923   $as_echo_n "(cached) " >&6
10924 else
10925   ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lncurses  $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931    Use char because int might match the return type of a GCC
10932    builtin and then its argument prototype would still apply.  */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char initscr ();
10937 int
10938 main ()
10939 {
10940 return initscr ();
10941   ;
10942   return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946   ac_cv_lib_ncurses_initscr=yes
10947 else
10948   ac_cv_lib_ncurses_initscr=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951     conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10955 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10956 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10957   LIBS="$LIBS -lncurses"
10958                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10959                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10960                 fi
10961                 for ac_header in ncurses.h
10962 do :
10963   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10964 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10965   cat >>confdefs.h <<_ACEOF
10966 #define HAVE_NCURSES_H 1
10967 _ACEOF
10968
10969 fi
10970
10971 done
10972
10973 else
10974
10975 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10976 if test "x$ac_cv_func_initscr" = xyes; then :
10977
10978 else
10979
10980 case $host_os in #(vi
10981 freebsd*) #(vi
10982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10983 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10984 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lmytinfo  $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h.  */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993    Use char because int might match the return type of a GCC
10994    builtin and then its argument prototype would still apply.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char tgoto ();
10999 int
11000 main ()
11001 {
11002 return tgoto ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008   ac_cv_lib_mytinfo_tgoto=yes
11009 else
11010   ac_cv_lib_mytinfo_tgoto=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013     conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11017 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11018 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11019   LIBS="-lmytinfo $LIBS"
11020 fi
11021
11022         ;;
11023 hpux10.*|hpux11.*)
11024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11025 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11026 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lcur_colr  $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h.  */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035    Use char because int might match the return type of a GCC
11036    builtin and then its argument prototype would still apply.  */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char initscr ();
11041 int
11042 main ()
11043 {
11044 return initscr ();
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050   ac_cv_lib_cur_colr_initscr=yes
11051 else
11052   ac_cv_lib_cur_colr_initscr=no
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11059 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11060 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11061
11062                 LIBS="-lcur_colr $LIBS"
11063                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11064                 ac_cv_func_initscr=yes
11065
11066 else
11067
11068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11069 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11070 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   ac_check_lib_save_LIBS=$LIBS
11074 LIBS="-lHcurses  $LIBS"
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h.  */
11077
11078 /* Override any GCC internal prototype to avoid an error.
11079    Use char because int might match the return type of a GCC
11080    builtin and then its argument prototype would still apply.  */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 char initscr ();
11085 int
11086 main ()
11087 {
11088 return initscr ();
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094   ac_cv_lib_Hcurses_initscr=yes
11095 else
11096   ac_cv_lib_Hcurses_initscr=no
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext \
11099     conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11103 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11104 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11105
11106                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11107                 LIBS="-lHcurses $LIBS"
11108                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11109                 ac_cv_func_initscr=yes
11110
11111 fi
11112
11113 fi
11114
11115         ;;
11116 linux*) # Suse Linux does not follow /usr/lib convention
11117         LIBS="$LIBS -L/lib"
11118         ;;
11119 esac
11120
11121 if test ".$With5lib" != ".no" ; then
11122 if test -d /usr/5lib ; then
11123         # SunOS 3.x or 4.x
11124         CPPFLAGS="$CPPFLAGS -I/usr/5include"
11125         LIBS="$LIBS -L/usr/5lib"
11126 fi
11127 fi
11128
11129 if test ".$ac_cv_func_initscr" != .yes ; then
11130         cf_save_LIBS="$LIBS"
11131         cf_term_lib=""
11132         cf_curs_lib=""
11133
11134         # Check for library containing tgoto.  Do this before curses library
11135         # because it may be needed to link the test-case for initscr.
11136         ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11137 if test "x$ac_cv_func_tgoto" = xyes; then :
11138   cf_term_lib=predefined
11139 else
11140
11141                 for cf_term_lib in termcap termlib unknown
11142                 do
11143                         as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11145 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11146 if eval \${$as_ac_Lib+:} false; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-l$cf_term_lib  $LIBS"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h.  */
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155    Use char because int might match the return type of a GCC
11156    builtin and then its argument prototype would still apply.  */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char tgoto ();
11161 int
11162 main ()
11163 {
11164 return tgoto ();
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170   eval "$as_ac_Lib=yes"
11171 else
11172   eval "$as_ac_Lib=no"
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175     conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11177 fi
11178 eval ac_res=\$$as_ac_Lib
11179                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11180 $as_echo "$ac_res" >&6; }
11181 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11182   break
11183 fi
11184
11185                 done
11186
11187 fi
11188
11189
11190         # Check for library containing initscr
11191         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11192         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11193         do
11194                 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11196 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11197 if eval \${$as_ac_Lib+:} false; then :
11198   $as_echo_n "(cached) " >&6
11199 else
11200   ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-l$cf_curs_lib  $LIBS"
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h.  */
11204
11205 /* Override any GCC internal prototype to avoid an error.
11206    Use char because int might match the return type of a GCC
11207    builtin and then its argument prototype would still apply.  */
11208 #ifdef __cplusplus
11209 extern "C"
11210 #endif
11211 char initscr ();
11212 int
11213 main ()
11214 {
11215 return initscr ();
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221   eval "$as_ac_Lib=yes"
11222 else
11223   eval "$as_ac_Lib=no"
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext \
11226     conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11228 fi
11229 eval ac_res=\$$as_ac_Lib
11230                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11231 $as_echo "$ac_res" >&6; }
11232 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11233   break
11234 fi
11235
11236         done
11237         test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11238
11239         LIBS="-l$cf_curs_lib $cf_save_LIBS"
11240         if test "$cf_term_lib" = unknown ; then
11241                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11242 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11243                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h.  */
11245 #include <${cf_cv_ncurses_header-curses.h}>
11246 int
11247 main ()
11248 {
11249 initscr()
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255   cf_result=yes
11256 else
11257   cf_result=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260     conftest$ac_exeext conftest.$ac_ext
11261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11262 $as_echo "$cf_result" >&6; }
11263                 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11264         elif test "$cf_term_lib" != predefined ; then
11265                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11266 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11267                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h.  */
11269 #include <${cf_cv_ncurses_header-curses.h}>
11270 int
11271 main ()
11272 {
11273 initscr(); tgoto((char *)0, 0, 0);
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 if ac_fn_c_try_link "$LINENO"; then :
11279   cf_result=no
11280 else
11281
11282                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11283                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h.  */
11285 #include <${cf_cv_ncurses_header-curses.h}>
11286 int
11287 main ()
11288 {
11289 initscr()
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295   cf_result=yes
11296 else
11297   cf_result=error
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300     conftest$ac_exeext conftest.$ac_ext
11301
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304     conftest$ac_exeext conftest.$ac_ext
11305                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11306 $as_echo "$cf_result" >&6; }
11307         fi
11308 fi
11309
11310
11311 fi
11312
11313 fi
11314
11315
11316 fi
11317
11318
11319
11320
11321 abook_cv_readline=/usr
11322
11323 # Check whether --with-readline was given.
11324 if test "${with_readline+set}" = set; then :
11325   withval=$with_readline; if test $withval != yes; then
11326                 abook_cv_readline=$withval
11327         fi
11328         if test x$abook_cv_readline != x/usr; then
11329                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11330                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11331         fi
11332 fi
11333
11334
11335
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11337 $as_echo_n "checking for a readline compatible library... " >&6; }
11338 if ${ac_cv_lib_readline+:} false; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341
11342     ORIG_LIBS="$LIBS"
11343     for readline_lib in readline edit editline; do
11344       for termcap_lib in "" termcap curses ncurses; do
11345         if test -z "$termcap_lib"; then
11346           TRY_LIB="-l$readline_lib"
11347         else
11348           TRY_LIB="-l$readline_lib -l$termcap_lib"
11349         fi
11350         LIBS="$ORIG_LIBS $TRY_LIB"
11351         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h.  */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355    Use char because int might match the return type of a GCC
11356    builtin and then its argument prototype would still apply.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char readline ();
11361 int
11362 main ()
11363 {
11364 return readline ();
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370   ac_cv_lib_readline="$TRY_LIB"
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373     conftest$ac_exeext conftest.$ac_ext
11374         if test -n "$ac_cv_lib_readline"; then
11375           break
11376         fi
11377       done
11378       if test -n "$ac_cv_lib_readline"; then
11379         break
11380       fi
11381     done
11382     if test -z "$ac_cv_lib_readline"; then
11383       ac_cv_lib_readline="no"
11384     fi
11385     LIBS="$ORIG_LIBS"
11386
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11389 $as_echo "$ac_cv_lib_readline" >&6; }
11390
11391   if test "$ac_cv_lib_readline" != "no"; then
11392     LIBS="$LIBS $ac_cv_lib_readline"
11393
11394 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11395
11396     for ac_header in readline.h readline/readline.h
11397 do :
11398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11401   cat >>confdefs.h <<_ACEOF
11402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 _ACEOF
11404
11405 fi
11406
11407 done
11408
11409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11410 $as_echo_n "checking whether readline supports history... " >&6; }
11411 if ${ac_cv_lib_readline_history+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414
11415       ac_cv_lib_readline_history="no"
11416       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h.  */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char add_history ();
11426 int
11427 main ()
11428 {
11429 return add_history ();
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435   ac_cv_lib_readline_history="yes"
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438     conftest$ac_exeext conftest.$ac_ext
11439
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11442 $as_echo "$ac_cv_lib_readline_history" >&6; }
11443     if test "$ac_cv_lib_readline_history" = "yes"; then
11444
11445 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11446
11447       for ac_header in history.h readline/history.h
11448 do :
11449   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11450 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11452   cat >>confdefs.h <<_ACEOF
11453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 _ACEOF
11455
11456 fi
11457
11458 done
11459
11460     fi
11461   fi
11462
11463
11464
11465 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11466         as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11467 fi
11468
11469
11470 if test x$ac_widec_possible = xyes; then
11471
11472 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11473
11474 fi
11475
11476 for ac_func in resizeterm
11477 do :
11478   ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11479 if test "x$ac_cv_func_resizeterm" = xyes; then :
11480   cat >>confdefs.h <<_ACEOF
11481 #define HAVE_RESIZETERM 1
11482 _ACEOF
11483
11484 fi
11485 done
11486
11487
11488 for ac_func in snprintf vsnprintf
11489 do :
11490   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11493   cat >>confdefs.h <<_ACEOF
11494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495 _ACEOF
11496
11497 fi
11498 done
11499
11500
11501 # Check whether --enable-debug was given.
11502 if test "${enable_debug+set}" = set; then :
11503   enableval=$enable_debug; case "${enableval}" in
11504         yes) debug=true ;;
11505         no) debug=false ;;
11506         *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11507         esac
11508 else
11509   debug=false
11510 fi
11511
11512
11513 if test x$debug = xtrue; then
11514         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11515         CFLAGS="-g $CFLAGS"
11516 fi
11517
11518 if test x$GCC = xyes; then
11519         CFLAGS="-Wall $CFLAGS"
11520 fi
11521
11522 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11523
11524 cat >confcache <<\_ACEOF
11525 # This file is a shell script that caches the results of configure
11526 # tests run on this system so they can be shared between configure
11527 # scripts and configure runs, see configure's option --config-cache.
11528 # It is not useful on other systems.  If it contains results you don't
11529 # want to keep, you may remove or edit it.
11530 #
11531 # config.status only pays attention to the cache file if you give it
11532 # the --recheck option to rerun configure.
11533 #
11534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11536 # following values.
11537
11538 _ACEOF
11539
11540 # The following way of writing the cache mishandles newlines in values,
11541 # but we know of no workaround that is simple, portable, and efficient.
11542 # So, we kill variables containing newlines.
11543 # Ultrix sh set writes to stderr and can't be redirected directly,
11544 # and sets the high bit in the cache file unless we assign to the vars.
11545 (
11546   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11547     eval ac_val=\$$ac_var
11548     case $ac_val in #(
11549     *${as_nl}*)
11550       case $ac_var in #(
11551       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11553       esac
11554       case $ac_var in #(
11555       _ | IFS | as_nl) ;; #(
11556       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11557       *) { eval $ac_var=; unset $ac_var;} ;;
11558       esac ;;
11559     esac
11560   done
11561
11562   (set) 2>&1 |
11563     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11564     *${as_nl}ac_space=\ *)
11565       # `set' does not quote correctly, so add quotes: double-quote
11566       # substitution turns \\\\ into \\, and sed turns \\ into \.
11567       sed -n \
11568         "s/'/'\\\\''/g;
11569           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11570       ;; #(
11571     *)
11572       # `set' quotes correctly as required by POSIX, so do not add quotes.
11573       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11574       ;;
11575     esac |
11576     sort
11577 ) |
11578   sed '
11579      /^ac_cv_env_/b end
11580      t clear
11581      :clear
11582      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11583      t end
11584      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11585      :end' >>confcache
11586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11587   if test -w "$cache_file"; then
11588     if test "x$cache_file" != "x/dev/null"; then
11589       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11590 $as_echo "$as_me: updating cache $cache_file" >&6;}
11591       if test ! -f "$cache_file" || test -h "$cache_file"; then
11592         cat confcache >"$cache_file"
11593       else
11594         case $cache_file in #(
11595         */* | ?:*)
11596           mv -f confcache "$cache_file"$$ &&
11597           mv -f "$cache_file"$$ "$cache_file" ;; #(
11598         *)
11599           mv -f confcache "$cache_file" ;;
11600         esac
11601       fi
11602     fi
11603   else
11604     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11606   fi
11607 fi
11608 rm -f confcache
11609
11610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11611 # Let make expand exec_prefix.
11612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11613
11614 DEFS=-DHAVE_CONFIG_H
11615
11616 ac_libobjs=
11617 ac_ltlibobjs=
11618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11619   # 1. Remove the extension, and $U if already installed.
11620   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11621   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11622   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11623   #    will be set to the directory where LIBOBJS objects are built.
11624   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11625   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11626 done
11627 LIBOBJS=$ac_libobjs
11628
11629 LTLIBOBJS=$ac_ltlibobjs
11630
11631
11632  if test -n "$EXEEXT"; then
11633   am__EXEEXT_TRUE=
11634   am__EXEEXT_FALSE='#'
11635 else
11636   am__EXEEXT_TRUE='#'
11637   am__EXEEXT_FALSE=
11638 fi
11639
11640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11641   as_fn_error $? "conditional \"AMDEP\" was never defined.
11642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11643 fi
11644 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11645   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11647 fi
11648 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11649   as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11651 fi
11652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11653   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11655 fi
11656
11657 : "${CONFIG_STATUS=./config.status}"
11658 ac_write_fail=0
11659 ac_clean_files_save=$ac_clean_files
11660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11663 as_write_fail=0
11664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11665 #! $SHELL
11666 # Generated by $as_me.
11667 # Run this file to recreate the current configuration.
11668 # Compiler output produced by configure, useful for debugging
11669 # configure, is in config.log if it exists.
11670
11671 debug=false
11672 ac_cs_recheck=false
11673 ac_cs_silent=false
11674
11675 SHELL=\${CONFIG_SHELL-$SHELL}
11676 export SHELL
11677 _ASEOF
11678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11679 ## -------------------- ##
11680 ## M4sh Initialization. ##
11681 ## -------------------- ##
11682
11683 # Be more Bourne compatible
11684 DUALCASE=1; export DUALCASE # for MKS sh
11685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11686   emulate sh
11687   NULLCMD=:
11688   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11689   # is contrary to our usage.  Disable this feature.
11690   alias -g '${1+"$@"}'='"$@"'
11691   setopt NO_GLOB_SUBST
11692 else
11693   case `(set -o) 2>/dev/null` in #(
11694   *posix*) :
11695     set -o posix ;; #(
11696   *) :
11697      ;;
11698 esac
11699 fi
11700
11701
11702 as_nl='
11703 '
11704 export as_nl
11705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11709 # Prefer a ksh shell builtin over an external printf program on Solaris,
11710 # but without wasting forks for bash or zsh.
11711 if test -z "$BASH_VERSION$ZSH_VERSION" \
11712     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11713   as_echo='print -r --'
11714   as_echo_n='print -rn --'
11715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11716   as_echo='printf %s\n'
11717   as_echo_n='printf %s'
11718 else
11719   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11720     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11721     as_echo_n='/usr/ucb/echo -n'
11722   else
11723     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11724     as_echo_n_body='eval
11725       arg=$1;
11726       case $arg in #(
11727       *"$as_nl"*)
11728         expr "X$arg" : "X\\(.*\\)$as_nl";
11729         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11730       esac;
11731       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11732     '
11733     export as_echo_n_body
11734     as_echo_n='sh -c $as_echo_n_body as_echo'
11735   fi
11736   export as_echo_body
11737   as_echo='sh -c $as_echo_body as_echo'
11738 fi
11739
11740 # The user is always right.
11741 if test "${PATH_SEPARATOR+set}" != set; then
11742   PATH_SEPARATOR=:
11743   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11744     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11745       PATH_SEPARATOR=';'
11746   }
11747 fi
11748
11749
11750 # IFS
11751 # We need space, tab and new line, in precisely that order.  Quoting is
11752 # there to prevent editors from complaining about space-tab.
11753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11754 # splitting by setting IFS to empty value.)
11755 IFS=" ""        $as_nl"
11756
11757 # Find who we are.  Look in the path if we contain no directory separator.
11758 as_myself=
11759 case $0 in #((
11760   *[\\/]* ) as_myself=$0 ;;
11761   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11763 do
11764   IFS=$as_save_IFS
11765   test -z "$as_dir" && as_dir=.
11766     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11767   done
11768 IFS=$as_save_IFS
11769
11770      ;;
11771 esac
11772 # We did not find ourselves, most probably we were run as `sh COMMAND'
11773 # in which case we are not to be found in the path.
11774 if test "x$as_myself" = x; then
11775   as_myself=$0
11776 fi
11777 if test ! -f "$as_myself"; then
11778   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11779   exit 1
11780 fi
11781
11782 # Unset variables that we do not need and which cause bugs (e.g. in
11783 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11784 # suppresses any "Segmentation fault" message there.  '((' could
11785 # trigger a bug in pdksh 5.2.14.
11786 for as_var in BASH_ENV ENV MAIL MAILPATH
11787 do eval test x\${$as_var+set} = xset \
11788   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11789 done
11790 PS1='$ '
11791 PS2='> '
11792 PS4='+ '
11793
11794 # NLS nuisances.
11795 LC_ALL=C
11796 export LC_ALL
11797 LANGUAGE=C
11798 export LANGUAGE
11799
11800 # CDPATH.
11801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11802
11803
11804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11805 # ----------------------------------------
11806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11808 # script with STATUS, using 1 if that was 0.
11809 as_fn_error ()
11810 {
11811   as_status=$1; test $as_status -eq 0 && as_status=1
11812   if test "$4"; then
11813     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11814     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11815   fi
11816   $as_echo "$as_me: error: $2" >&2
11817   as_fn_exit $as_status
11818 } # as_fn_error
11819
11820
11821 # as_fn_set_status STATUS
11822 # -----------------------
11823 # Set $? to STATUS, without forking.
11824 as_fn_set_status ()
11825 {
11826   return $1
11827 } # as_fn_set_status
11828
11829 # as_fn_exit STATUS
11830 # -----------------
11831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11832 as_fn_exit ()
11833 {
11834   set +e
11835   as_fn_set_status $1
11836   exit $1
11837 } # as_fn_exit
11838
11839 # as_fn_unset VAR
11840 # ---------------
11841 # Portably unset VAR.
11842 as_fn_unset ()
11843 {
11844   { eval $1=; unset $1;}
11845 }
11846 as_unset=as_fn_unset
11847 # as_fn_append VAR VALUE
11848 # ----------------------
11849 # Append the text in VALUE to the end of the definition contained in VAR. Take
11850 # advantage of any shell optimizations that allow amortized linear growth over
11851 # repeated appends, instead of the typical quadratic growth present in naive
11852 # implementations.
11853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11854   eval 'as_fn_append ()
11855   {
11856     eval $1+=\$2
11857   }'
11858 else
11859   as_fn_append ()
11860   {
11861     eval $1=\$$1\$2
11862   }
11863 fi # as_fn_append
11864
11865 # as_fn_arith ARG...
11866 # ------------------
11867 # Perform arithmetic evaluation on the ARGs, and store the result in the
11868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11869 # must be portable across $(()) and expr.
11870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11871   eval 'as_fn_arith ()
11872   {
11873     as_val=$(( $* ))
11874   }'
11875 else
11876   as_fn_arith ()
11877   {
11878     as_val=`expr "$@" || test $? -eq 1`
11879   }
11880 fi # as_fn_arith
11881
11882
11883 if expr a : '\(a\)' >/dev/null 2>&1 &&
11884    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11885   as_expr=expr
11886 else
11887   as_expr=false
11888 fi
11889
11890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11891   as_basename=basename
11892 else
11893   as_basename=false
11894 fi
11895
11896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11897   as_dirname=dirname
11898 else
11899   as_dirname=false
11900 fi
11901
11902 as_me=`$as_basename -- "$0" ||
11903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11904          X"$0" : 'X\(//\)$' \| \
11905          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11906 $as_echo X/"$0" |
11907     sed '/^.*\/\([^/][^/]*\)\/*$/{
11908             s//\1/
11909             q
11910           }
11911           /^X\/\(\/\/\)$/{
11912             s//\1/
11913             q
11914           }
11915           /^X\/\(\/\).*/{
11916             s//\1/
11917             q
11918           }
11919           s/.*/./; q'`
11920
11921 # Avoid depending upon Character Ranges.
11922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11925 as_cr_digits='0123456789'
11926 as_cr_alnum=$as_cr_Letters$as_cr_digits
11927
11928 ECHO_C= ECHO_N= ECHO_T=
11929 case `echo -n x` in #(((((
11930 -n*)
11931   case `echo 'xy\c'` in
11932   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11933   xy)  ECHO_C='\c';;
11934   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11935        ECHO_T=' ';;
11936   esac;;
11937 *)
11938   ECHO_N='-n';;
11939 esac
11940
11941 rm -f conf$$ conf$$.exe conf$$.file
11942 if test -d conf$$.dir; then
11943   rm -f conf$$.dir/conf$$.file
11944 else
11945   rm -f conf$$.dir
11946   mkdir conf$$.dir 2>/dev/null
11947 fi
11948 if (echo >conf$$.file) 2>/dev/null; then
11949   if ln -s conf$$.file conf$$ 2>/dev/null; then
11950     as_ln_s='ln -s'
11951     # ... but there are two gotchas:
11952     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11953     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11954     # In both cases, we have to default to `cp -p'.
11955     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11956       as_ln_s='cp -p'
11957   elif ln conf$$.file conf$$ 2>/dev/null; then
11958     as_ln_s=ln
11959   else
11960     as_ln_s='cp -p'
11961   fi
11962 else
11963   as_ln_s='cp -p'
11964 fi
11965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11966 rmdir conf$$.dir 2>/dev/null
11967
11968
11969 # as_fn_mkdir_p
11970 # -------------
11971 # Create "$as_dir" as a directory, including parents if necessary.
11972 as_fn_mkdir_p ()
11973 {
11974
11975   case $as_dir in #(
11976   -*) as_dir=./$as_dir;;
11977   esac
11978   test -d "$as_dir" || eval $as_mkdir_p || {
11979     as_dirs=
11980     while :; do
11981       case $as_dir in #(
11982       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11983       *) as_qdir=$as_dir;;
11984       esac
11985       as_dirs="'$as_qdir' $as_dirs"
11986       as_dir=`$as_dirname -- "$as_dir" ||
11987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11988          X"$as_dir" : 'X\(//\)[^/]' \| \
11989          X"$as_dir" : 'X\(//\)$' \| \
11990          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11991 $as_echo X"$as_dir" |
11992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11993             s//\1/
11994             q
11995           }
11996           /^X\(\/\/\)[^/].*/{
11997             s//\1/
11998             q
11999           }
12000           /^X\(\/\/\)$/{
12001             s//\1/
12002             q
12003           }
12004           /^X\(\/\).*/{
12005             s//\1/
12006             q
12007           }
12008           s/.*/./; q'`
12009       test -d "$as_dir" && break
12010     done
12011     test -z "$as_dirs" || eval "mkdir $as_dirs"
12012   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12013
12014
12015 } # as_fn_mkdir_p
12016 if mkdir -p . 2>/dev/null; then
12017   as_mkdir_p='mkdir -p "$as_dir"'
12018 else
12019   test -d ./-p && rmdir ./-p
12020   as_mkdir_p=false
12021 fi
12022
12023 if test -x / >/dev/null 2>&1; then
12024   as_test_x='test -x'
12025 else
12026   if ls -dL / >/dev/null 2>&1; then
12027     as_ls_L_option=L
12028   else
12029     as_ls_L_option=
12030   fi
12031   as_test_x='
12032     eval sh -c '\''
12033       if test -d "$1"; then
12034         test -d "$1/.";
12035       else
12036         case $1 in #(
12037         -*)set "./$1";;
12038         esac;
12039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12040         ???[sx]*):;;*)false;;esac;fi
12041     '\'' sh
12042   '
12043 fi
12044 as_executable_p=$as_test_x
12045
12046 # Sed expression to map a string onto a valid CPP name.
12047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12048
12049 # Sed expression to map a string onto a valid variable name.
12050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12051
12052
12053 exec 6>&1
12054 ## ----------------------------------- ##
12055 ## Main body of $CONFIG_STATUS script. ##
12056 ## ----------------------------------- ##
12057 _ASEOF
12058 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12059
12060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12061 # Save the log message, to keep $0 and so on meaningful, and to
12062 # report actual input values of CONFIG_FILES etc. instead of their
12063 # values after options handling.
12064 ac_log="
12065 This file was extended by $as_me, which was
12066 generated by GNU Autoconf 2.68.  Invocation command line was
12067
12068   CONFIG_FILES    = $CONFIG_FILES
12069   CONFIG_HEADERS  = $CONFIG_HEADERS
12070   CONFIG_LINKS    = $CONFIG_LINKS
12071   CONFIG_COMMANDS = $CONFIG_COMMANDS
12072   $ $0 $@
12073
12074 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12075 "
12076
12077 _ACEOF
12078
12079 case $ac_config_files in *"
12080 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12081 esac
12082
12083 case $ac_config_headers in *"
12084 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12085 esac
12086
12087
12088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089 # Files that config.status was made for.
12090 config_files="$ac_config_files"
12091 config_headers="$ac_config_headers"
12092 config_commands="$ac_config_commands"
12093
12094 _ACEOF
12095
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 ac_cs_usage="\
12098 \`$as_me' instantiates files and other configuration actions
12099 from templates according to the current configuration.  Unless the files
12100 and actions are specified as TAGs, all are instantiated by default.
12101
12102 Usage: $0 [OPTION]... [TAG]...
12103
12104   -h, --help       print this help, then exit
12105   -V, --version    print version number and configuration settings, then exit
12106       --config     print configuration, then exit
12107   -q, --quiet, --silent
12108                    do not print progress messages
12109   -d, --debug      don't remove temporary files
12110       --recheck    update $as_me by reconfiguring in the same conditions
12111       --file=FILE[:TEMPLATE]
12112                    instantiate the configuration file FILE
12113       --header=FILE[:TEMPLATE]
12114                    instantiate the configuration header FILE
12115
12116 Configuration files:
12117 $config_files
12118
12119 Configuration headers:
12120 $config_headers
12121
12122 Configuration commands:
12123 $config_commands
12124
12125 Report bugs to the package provider."
12126
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12130 ac_cs_version="\\
12131 config.status
12132 configured by $0, generated by GNU Autoconf 2.68,
12133   with options \\"\$ac_cs_config\\"
12134
12135 Copyright (C) 2010 Free Software Foundation, Inc.
12136 This config.status script is free software; the Free Software Foundation
12137 gives unlimited permission to copy, distribute and modify it."
12138
12139 ac_pwd='$ac_pwd'
12140 srcdir='$srcdir'
12141 INSTALL='$INSTALL'
12142 MKDIR_P='$MKDIR_P'
12143 AWK='$AWK'
12144 test -n "\$AWK" || AWK=awk
12145 _ACEOF
12146
12147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148 # The default lists apply if the user does not specify any file.
12149 ac_need_defaults=:
12150 while test $# != 0
12151 do
12152   case $1 in
12153   --*=?*)
12154     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12155     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12156     ac_shift=:
12157     ;;
12158   --*=)
12159     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12160     ac_optarg=
12161     ac_shift=:
12162     ;;
12163   *)
12164     ac_option=$1
12165     ac_optarg=$2
12166     ac_shift=shift
12167     ;;
12168   esac
12169
12170   case $ac_option in
12171   # Handling of the options.
12172   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12173     ac_cs_recheck=: ;;
12174   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12175     $as_echo "$ac_cs_version"; exit ;;
12176   --config | --confi | --conf | --con | --co | --c )
12177     $as_echo "$ac_cs_config"; exit ;;
12178   --debug | --debu | --deb | --de | --d | -d )
12179     debug=: ;;
12180   --file | --fil | --fi | --f )
12181     $ac_shift
12182     case $ac_optarg in
12183     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12184     '') as_fn_error $? "missing file argument" ;;
12185     esac
12186     as_fn_append CONFIG_FILES " '$ac_optarg'"
12187     ac_need_defaults=false;;
12188   --header | --heade | --head | --hea )
12189     $ac_shift
12190     case $ac_optarg in
12191     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12192     esac
12193     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12194     ac_need_defaults=false;;
12195   --he | --h)
12196     # Conflict between --help and --header
12197     as_fn_error $? "ambiguous option: \`$1'
12198 Try \`$0 --help' for more information.";;
12199   --help | --hel | -h )
12200     $as_echo "$ac_cs_usage"; exit ;;
12201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12202   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12203     ac_cs_silent=: ;;
12204
12205   # This is an error.
12206   -*) as_fn_error $? "unrecognized option: \`$1'
12207 Try \`$0 --help' for more information." ;;
12208
12209   *) as_fn_append ac_config_targets " $1"
12210      ac_need_defaults=false ;;
12211
12212   esac
12213   shift
12214 done
12215
12216 ac_configure_extra_args=
12217
12218 if $ac_cs_silent; then
12219   exec 6>/dev/null
12220   ac_configure_extra_args="$ac_configure_extra_args --silent"
12221 fi
12222
12223 _ACEOF
12224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12225 if \$ac_cs_recheck; then
12226   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12227   shift
12228   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12229   CONFIG_SHELL='$SHELL'
12230   export CONFIG_SHELL
12231   exec "\$@"
12232 fi
12233
12234 _ACEOF
12235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12236 exec 5>>config.log
12237 {
12238   echo
12239   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12240 ## Running $as_me. ##
12241 _ASBOX
12242   $as_echo "$ac_log"
12243 } >&5
12244
12245 _ACEOF
12246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12247 #
12248 # INIT-COMMANDS
12249 #
12250 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12251     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12252     # from automake < 1.5.
12253     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12254     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12255     LINGUAS="${LINGUAS-%UNSET%}"
12256
12257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12258
12259 _ACEOF
12260
12261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12262
12263 # Handling of arguments.
12264 for ac_config_target in $ac_config_targets
12265 do
12266   case $ac_config_target in
12267     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12268     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12269     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12270     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12271     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12272     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12273     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12274
12275   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12276   esac
12277 done
12278
12279
12280 # If the user did not use the arguments to specify the items to instantiate,
12281 # then the envvar interface is used.  Set only those that are not.
12282 # We use the long form for the default assignment because of an extremely
12283 # bizarre bug on SunOS 4.1.3.
12284 if $ac_need_defaults; then
12285   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12286   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12287   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12288 fi
12289
12290 # Have a temporary directory for convenience.  Make it in the build tree
12291 # simply because there is no reason against having it here, and in addition,
12292 # creating and moving files from /tmp can sometimes cause problems.
12293 # Hook for its removal unless debugging.
12294 # Note that there is a small window in which the directory will not be cleaned:
12295 # after its creation but before its name has been assigned to `$tmp'.
12296 $debug ||
12297 {
12298   tmp= ac_tmp=
12299   trap 'exit_status=$?
12300   : "${ac_tmp:=$tmp}"
12301   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12302 ' 0
12303   trap 'as_fn_exit 1' 1 2 13 15
12304 }
12305 # Create a (secure) tmp directory for tmp files.
12306
12307 {
12308   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12309   test -d "$tmp"
12310 }  ||
12311 {
12312   tmp=./conf$$-$RANDOM
12313   (umask 077 && mkdir "$tmp")
12314 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12315 ac_tmp=$tmp
12316
12317 # Set up the scripts for CONFIG_FILES section.
12318 # No need to generate them if there are no CONFIG_FILES.
12319 # This happens for instance with `./config.status config.h'.
12320 if test -n "$CONFIG_FILES"; then
12321
12322
12323 ac_cr=`echo X | tr X '\015'`
12324 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12325 # But we know of no other shell where ac_cr would be empty at this
12326 # point, so we can use a bashism as a fallback.
12327 if test "x$ac_cr" = x; then
12328   eval ac_cr=\$\'\\r\'
12329 fi
12330 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12332   ac_cs_awk_cr='\\r'
12333 else
12334   ac_cs_awk_cr=$ac_cr
12335 fi
12336
12337 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12338 _ACEOF
12339
12340
12341 {
12342   echo "cat >conf$$subs.awk <<_ACEOF" &&
12343   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12344   echo "_ACEOF"
12345 } >conf$$subs.sh ||
12346   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12347 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12348 ac_delim='%!_!# '
12349 for ac_last_try in false false false false false :; do
12350   . ./conf$$subs.sh ||
12351     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12352
12353   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12354   if test $ac_delim_n = $ac_delim_num; then
12355     break
12356   elif $ac_last_try; then
12357     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12358   else
12359     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12360   fi
12361 done
12362 rm -f conf$$subs.sh
12363
12364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12365 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12366 _ACEOF
12367 sed -n '
12368 h
12369 s/^/S["/; s/!.*/"]=/
12370 p
12371 g
12372 s/^[^!]*!//
12373 :repl
12374 t repl
12375 s/'"$ac_delim"'$//
12376 t delim
12377 :nl
12378 h
12379 s/\(.\{148\}\)..*/\1/
12380 t more1
12381 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12382 p
12383 n
12384 b repl
12385 :more1
12386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12387 p
12388 g
12389 s/.\{148\}//
12390 t nl
12391 :delim
12392 h
12393 s/\(.\{148\}\)..*/\1/
12394 t more2
12395 s/["\\]/\\&/g; s/^/"/; s/$/"/
12396 p
12397 b
12398 :more2
12399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12400 p
12401 g
12402 s/.\{148\}//
12403 t delim
12404 ' <conf$$subs.awk | sed '
12405 /^[^""]/{
12406   N
12407   s/\n//
12408 }
12409 ' >>$CONFIG_STATUS || ac_write_fail=1
12410 rm -f conf$$subs.awk
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 _ACAWK
12413 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12414   for (key in S) S_is_set[key] = 1
12415   FS = "\a"
12416
12417 }
12418 {
12419   line = $ 0
12420   nfields = split(line, field, "@")
12421   substed = 0
12422   len = length(field[1])
12423   for (i = 2; i < nfields; i++) {
12424     key = field[i]
12425     keylen = length(key)
12426     if (S_is_set[key]) {
12427       value = S[key]
12428       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12429       len += length(value) + length(field[++i])
12430       substed = 1
12431     } else
12432       len += 1 + keylen
12433   }
12434
12435   print line
12436 }
12437
12438 _ACAWK
12439 _ACEOF
12440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12442   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12443 else
12444   cat
12445 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12446   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12447 _ACEOF
12448
12449 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12450 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12451 # trailing colons and then remove the whole line if VPATH becomes empty
12452 # (actually we leave an empty line to preserve line numbers).
12453 if test "x$srcdir" = x.; then
12454   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12455 h
12456 s///
12457 s/^/:/
12458 s/[      ]*$/:/
12459 s/:\$(srcdir):/:/g
12460 s/:\${srcdir}:/:/g
12461 s/:@srcdir@:/:/g
12462 s/^:*//
12463 s/:*$//
12464 x
12465 s/\(=[   ]*\).*/\1/
12466 G
12467 s/\n//
12468 s/^[^=]*=[       ]*$//
12469 }'
12470 fi
12471
12472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12473 fi # test -n "$CONFIG_FILES"
12474
12475 # Set up the scripts for CONFIG_HEADERS section.
12476 # No need to generate them if there are no CONFIG_HEADERS.
12477 # This happens for instance with `./config.status Makefile'.
12478 if test -n "$CONFIG_HEADERS"; then
12479 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12480 BEGIN {
12481 _ACEOF
12482
12483 # Transform confdefs.h into an awk script `defines.awk', embedded as
12484 # here-document in config.status, that substitutes the proper values into
12485 # config.h.in to produce config.h.
12486
12487 # Create a delimiter string that does not exist in confdefs.h, to ease
12488 # handling of long lines.
12489 ac_delim='%!_!# '
12490 for ac_last_try in false false :; do
12491   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12492   if test -z "$ac_tt"; then
12493     break
12494   elif $ac_last_try; then
12495     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12496   else
12497     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12498   fi
12499 done
12500
12501 # For the awk script, D is an array of macro values keyed by name,
12502 # likewise P contains macro parameters if any.  Preserve backslash
12503 # newline sequences.
12504
12505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12506 sed -n '
12507 s/.\{148\}/&'"$ac_delim"'/g
12508 t rset
12509 :rset
12510 s/^[     ]*#[    ]*define[       ][      ]*/ /
12511 t def
12512 d
12513 :def
12514 s/\\$//
12515 t bsnl
12516 s/["\\]/\\&/g
12517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12518 D["\1"]=" \3"/p
12519 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12520 d
12521 :bsnl
12522 s/["\\]/\\&/g
12523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12524 D["\1"]=" \3\\\\\\n"\\/p
12525 t cont
12526 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12527 t cont
12528 d
12529 :cont
12530 n
12531 s/.\{148\}/&'"$ac_delim"'/g
12532 t clear
12533 :clear
12534 s/\\$//
12535 t bsnlc
12536 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12537 d
12538 :bsnlc
12539 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12540 b cont
12541 ' <confdefs.h | sed '
12542 s/'"$ac_delim"'/"\\\
12543 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12544
12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12546   for (key in D) D_is_set[key] = 1
12547   FS = "\a"
12548 }
12549 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12550   line = \$ 0
12551   split(line, arg, " ")
12552   if (arg[1] == "#") {
12553     defundef = arg[2]
12554     mac1 = arg[3]
12555   } else {
12556     defundef = substr(arg[1], 2)
12557     mac1 = arg[2]
12558   }
12559   split(mac1, mac2, "(") #)
12560   macro = mac2[1]
12561   prefix = substr(line, 1, index(line, defundef) - 1)
12562   if (D_is_set[macro]) {
12563     # Preserve the white space surrounding the "#".
12564     print prefix "define", macro P[macro] D[macro]
12565     next
12566   } else {
12567     # Replace #undef with comments.  This is necessary, for example,
12568     # in the case of _POSIX_SOURCE, which is predefined and required
12569     # on some systems where configure will not decide to define it.
12570     if (defundef == "undef") {
12571       print "/*", prefix defundef, macro, "*/"
12572       next
12573     }
12574   }
12575 }
12576 { print }
12577 _ACAWK
12578 _ACEOF
12579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12580   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12581 fi # test -n "$CONFIG_HEADERS"
12582
12583
12584 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12585 shift
12586 for ac_tag
12587 do
12588   case $ac_tag in
12589   :[FHLC]) ac_mode=$ac_tag; continue;;
12590   esac
12591   case $ac_mode$ac_tag in
12592   :[FHL]*:*);;
12593   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12594   :[FH]-) ac_tag=-:-;;
12595   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12596   esac
12597   ac_save_IFS=$IFS
12598   IFS=:
12599   set x $ac_tag
12600   IFS=$ac_save_IFS
12601   shift
12602   ac_file=$1
12603   shift
12604
12605   case $ac_mode in
12606   :L) ac_source=$1;;
12607   :[FH])
12608     ac_file_inputs=
12609     for ac_f
12610     do
12611       case $ac_f in
12612       -) ac_f="$ac_tmp/stdin";;
12613       *) # Look for the file first in the build tree, then in the source tree
12614          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12615          # because $ac_f cannot contain `:'.
12616          test -f "$ac_f" ||
12617            case $ac_f in
12618            [\\/$]*) false;;
12619            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12620            esac ||
12621            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12622       esac
12623       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12624       as_fn_append ac_file_inputs " '$ac_f'"
12625     done
12626
12627     # Let's still pretend it is `configure' which instantiates (i.e., don't
12628     # use $as_me), people would be surprised to read:
12629     #    /* config.h.  Generated by config.status.  */
12630     configure_input='Generated from '`
12631           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12632         `' by configure.'
12633     if test x"$ac_file" != x-; then
12634       configure_input="$ac_file.  $configure_input"
12635       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12636 $as_echo "$as_me: creating $ac_file" >&6;}
12637     fi
12638     # Neutralize special characters interpreted by sed in replacement strings.
12639     case $configure_input in #(
12640     *\&* | *\|* | *\\* )
12641        ac_sed_conf_input=`$as_echo "$configure_input" |
12642        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12643     *) ac_sed_conf_input=$configure_input;;
12644     esac
12645
12646     case $ac_tag in
12647     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12648       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12649     esac
12650     ;;
12651   esac
12652
12653   ac_dir=`$as_dirname -- "$ac_file" ||
12654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12655          X"$ac_file" : 'X\(//\)[^/]' \| \
12656          X"$ac_file" : 'X\(//\)$' \| \
12657          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12658 $as_echo X"$ac_file" |
12659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12660             s//\1/
12661             q
12662           }
12663           /^X\(\/\/\)[^/].*/{
12664             s//\1/
12665             q
12666           }
12667           /^X\(\/\/\)$/{
12668             s//\1/
12669             q
12670           }
12671           /^X\(\/\).*/{
12672             s//\1/
12673             q
12674           }
12675           s/.*/./; q'`
12676   as_dir="$ac_dir"; as_fn_mkdir_p
12677   ac_builddir=.
12678
12679 case "$ac_dir" in
12680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12681 *)
12682   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12683   # A ".." for each directory in $ac_dir_suffix.
12684   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12685   case $ac_top_builddir_sub in
12686   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12687   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12688   esac ;;
12689 esac
12690 ac_abs_top_builddir=$ac_pwd
12691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12692 # for backward compatibility:
12693 ac_top_builddir=$ac_top_build_prefix
12694
12695 case $srcdir in
12696   .)  # We are building in place.
12697     ac_srcdir=.
12698     ac_top_srcdir=$ac_top_builddir_sub
12699     ac_abs_top_srcdir=$ac_pwd ;;
12700   [\\/]* | ?:[\\/]* )  # Absolute name.
12701     ac_srcdir=$srcdir$ac_dir_suffix;
12702     ac_top_srcdir=$srcdir
12703     ac_abs_top_srcdir=$srcdir ;;
12704   *) # Relative name.
12705     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12706     ac_top_srcdir=$ac_top_build_prefix$srcdir
12707     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12708 esac
12709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12710
12711
12712   case $ac_mode in
12713   :F)
12714   #
12715   # CONFIG_FILE
12716   #
12717
12718   case $INSTALL in
12719   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12720   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12721   esac
12722   ac_MKDIR_P=$MKDIR_P
12723   case $MKDIR_P in
12724   [\\/$]* | ?:[\\/]* ) ;;
12725   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12726   esac
12727 _ACEOF
12728
12729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12730 # If the template does not know about datarootdir, expand it.
12731 # FIXME: This hack should be removed a few years after 2.60.
12732 ac_datarootdir_hack=; ac_datarootdir_seen=
12733 ac_sed_dataroot='
12734 /datarootdir/ {
12735   p
12736   q
12737 }
12738 /@datadir@/p
12739 /@docdir@/p
12740 /@infodir@/p
12741 /@localedir@/p
12742 /@mandir@/p'
12743 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12744 *datarootdir*) ac_datarootdir_seen=yes;;
12745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12747 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12748 _ACEOF
12749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12750   ac_datarootdir_hack='
12751   s&@datadir@&$datadir&g
12752   s&@docdir@&$docdir&g
12753   s&@infodir@&$infodir&g
12754   s&@localedir@&$localedir&g
12755   s&@mandir@&$mandir&g
12756   s&\\\${datarootdir}&$datarootdir&g' ;;
12757 esac
12758 _ACEOF
12759
12760 # Neutralize VPATH when `$srcdir' = `.'.
12761 # Shell code in configure.ac might set extrasub.
12762 # FIXME: do we really want to maintain this feature?
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 ac_sed_extra="$ac_vpsub
12765 $extrasub
12766 _ACEOF
12767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12768 :t
12769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12770 s|@configure_input@|$ac_sed_conf_input|;t t
12771 s&@top_builddir@&$ac_top_builddir_sub&;t t
12772 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12773 s&@srcdir@&$ac_srcdir&;t t
12774 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12775 s&@top_srcdir@&$ac_top_srcdir&;t t
12776 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12777 s&@builddir@&$ac_builddir&;t t
12778 s&@abs_builddir@&$ac_abs_builddir&;t t
12779 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12780 s&@INSTALL@&$ac_INSTALL&;t t
12781 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12782 $ac_datarootdir_hack
12783 "
12784 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12785   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12786
12787 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12788   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12789   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12790       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12792 which seems to be undefined.  Please make sure it is defined" >&5
12793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12794 which seems to be undefined.  Please make sure it is defined" >&2;}
12795
12796   rm -f "$ac_tmp/stdin"
12797   case $ac_file in
12798   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12799   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12800   esac \
12801   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12802  ;;
12803   :H)
12804   #
12805   # CONFIG_HEADER
12806   #
12807   if test x"$ac_file" != x-; then
12808     {
12809       $as_echo "/* $configure_input  */" \
12810       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12811     } >"$ac_tmp/config.h" \
12812       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12813     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12814       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12815 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12816     else
12817       rm -f "$ac_file"
12818       mv "$ac_tmp/config.h" "$ac_file" \
12819         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12820     fi
12821   else
12822     $as_echo "/* $configure_input  */" \
12823       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12824       || as_fn_error $? "could not create -" "$LINENO" 5
12825   fi
12826 # Compute "$ac_file"'s index in $config_headers.
12827 _am_arg="$ac_file"
12828 _am_stamp_count=1
12829 for _am_header in $config_headers :; do
12830   case $_am_header in
12831     $_am_arg | $_am_arg:* )
12832       break ;;
12833     * )
12834       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12835   esac
12836 done
12837 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12838 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12839          X"$_am_arg" : 'X\(//\)[^/]' \| \
12840          X"$_am_arg" : 'X\(//\)$' \| \
12841          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12842 $as_echo X"$_am_arg" |
12843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12844             s//\1/
12845             q
12846           }
12847           /^X\(\/\/\)[^/].*/{
12848             s//\1/
12849             q
12850           }
12851           /^X\(\/\/\)$/{
12852             s//\1/
12853             q
12854           }
12855           /^X\(\/\).*/{
12856             s//\1/
12857             q
12858           }
12859           s/.*/./; q'`/stamp-h$_am_stamp_count
12860  ;;
12861
12862   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12863 $as_echo "$as_me: executing $ac_file commands" >&6;}
12864  ;;
12865   esac
12866
12867
12868   case $ac_file$ac_mode in
12869     "po-directories":C)
12870     for ac_file in $CONFIG_FILES; do
12871       # Support "outfile[:infile[:infile...]]"
12872       case "$ac_file" in
12873         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12874       esac
12875       # PO directories have a Makefile.in generated from Makefile.in.in.
12876       case "$ac_file" in */Makefile.in)
12877         # Adjust a relative srcdir.
12878         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12879         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12880         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12881         # In autoconf-2.13 it is called $ac_given_srcdir.
12882         # In autoconf-2.50 it is called $srcdir.
12883         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12884         case "$ac_given_srcdir" in
12885           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12886           /*) top_srcdir="$ac_given_srcdir" ;;
12887           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12888         esac
12889         # Treat a directory as a PO directory if and only if it has a
12890         # POTFILES.in file. This allows packages to have multiple PO
12891         # directories under different names or in different locations.
12892         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12893           rm -f "$ac_dir/POTFILES"
12894           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12895           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12896           POMAKEFILEDEPS="POTFILES.in"
12897           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12898           # on $ac_dir but don't depend on user-specified configuration
12899           # parameters.
12900           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12901             # The LINGUAS file contains the set of available languages.
12902             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12903               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12904             fi
12905             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12906             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12907             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12908             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12909           else
12910             # The set of available languages was given in configure.in.
12911             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12912             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12913           fi
12914           # Compute POFILES
12915           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12916           # Compute UPDATEPOFILES
12917           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12918           # Compute DUMMYPOFILES
12919           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12920           # Compute GMOFILES
12921           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12922           case "$ac_given_srcdir" in
12923             .) srcdirpre= ;;
12924             *) srcdirpre='$(srcdir)/' ;;
12925           esac
12926           POFILES=
12927           UPDATEPOFILES=
12928           DUMMYPOFILES=
12929           GMOFILES=
12930           for lang in $ALL_LINGUAS; do
12931             POFILES="$POFILES $srcdirpre$lang.po"
12932             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12933             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12934             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12935           done
12936           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12937           # environment variable.
12938           INST_LINGUAS=
12939           if test -n "$ALL_LINGUAS"; then
12940             for presentlang in $ALL_LINGUAS; do
12941               useit=no
12942               if test "%UNSET%" != "$LINGUAS"; then
12943                 desiredlanguages="$LINGUAS"
12944               else
12945                 desiredlanguages="$ALL_LINGUAS"
12946               fi
12947               for desiredlang in $desiredlanguages; do
12948                 # Use the presentlang catalog if desiredlang is
12949                 #   a. equal to presentlang, or
12950                 #   b. a variant of presentlang (because in this case,
12951                 #      presentlang can be used as a fallback for messages
12952                 #      which are not translated in the desiredlang catalog).
12953                 case "$desiredlang" in
12954                   "$presentlang"*) useit=yes;;
12955                 esac
12956               done
12957               if test $useit = yes; then
12958                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12959               fi
12960             done
12961           fi
12962           CATALOGS=
12963           if test -n "$INST_LINGUAS"; then
12964             for lang in $INST_LINGUAS; do
12965               CATALOGS="$CATALOGS $lang.gmo"
12966             done
12967           fi
12968           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12969           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"
12970           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12971             if test -f "$f"; then
12972               case "$f" in
12973                 *.orig | *.bak | *~) ;;
12974                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12975               esac
12976             fi
12977           done
12978         fi
12979         ;;
12980       esac
12981     done ;;
12982     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12983   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12984   # are listed without --file.  Let's play safe and only enable the eval
12985   # if we detect the quoting.
12986   case $CONFIG_FILES in
12987   *\'*) eval set x "$CONFIG_FILES" ;;
12988   *)   set x $CONFIG_FILES ;;
12989   esac
12990   shift
12991   for mf
12992   do
12993     # Strip MF so we end up with the name of the file.
12994     mf=`echo "$mf" | sed -e 's/:.*$//'`
12995     # Check whether this is an Automake generated Makefile or not.
12996     # We used to match only the files named `Makefile.in', but
12997     # some people rename them; so instead we look at the file content.
12998     # Grep'ing the first line is not enough: some people post-process
12999     # each Makefile.in and add a new line on top of each file to say so.
13000     # Grep'ing the whole file is not good either: AIX grep has a line
13001     # limit of 2048, but all sed's we know have understand at least 4000.
13002     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13003       dirpart=`$as_dirname -- "$mf" ||
13004 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13005          X"$mf" : 'X\(//\)[^/]' \| \
13006          X"$mf" : 'X\(//\)$' \| \
13007          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13008 $as_echo X"$mf" |
13009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13010             s//\1/
13011             q
13012           }
13013           /^X\(\/\/\)[^/].*/{
13014             s//\1/
13015             q
13016           }
13017           /^X\(\/\/\)$/{
13018             s//\1/
13019             q
13020           }
13021           /^X\(\/\).*/{
13022             s//\1/
13023             q
13024           }
13025           s/.*/./; q'`
13026     else
13027       continue
13028     fi
13029     # Extract the definition of DEPDIR, am__include, and am__quote
13030     # from the Makefile without running `make'.
13031     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13032     test -z "$DEPDIR" && continue
13033     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13034     test -z "am__include" && continue
13035     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13036     # When using ansi2knr, U may be empty or an underscore; expand it
13037     U=`sed -n 's/^U = //p' < "$mf"`
13038     # Find all dependency output files, they are included files with
13039     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13040     # simplest approach to changing $(DEPDIR) to its actual value in the
13041     # expansion.
13042     for file in `sed -n "
13043       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13044          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13045       # Make sure the directory exists.
13046       test -f "$dirpart/$file" && continue
13047       fdir=`$as_dirname -- "$file" ||
13048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13049          X"$file" : 'X\(//\)[^/]' \| \
13050          X"$file" : 'X\(//\)$' \| \
13051          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13052 $as_echo X"$file" |
13053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13054             s//\1/
13055             q
13056           }
13057           /^X\(\/\/\)[^/].*/{
13058             s//\1/
13059             q
13060           }
13061           /^X\(\/\/\)$/{
13062             s//\1/
13063             q
13064           }
13065           /^X\(\/\).*/{
13066             s//\1/
13067             q
13068           }
13069           s/.*/./; q'`
13070       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13071       # echo "creating $dirpart/$file"
13072       echo '# dummy' > "$dirpart/$file"
13073     done
13074   done
13075 }
13076  ;;
13077
13078   esac
13079 done # for ac_tag
13080
13081
13082 as_fn_exit 0
13083 _ACEOF
13084 ac_clean_files=$ac_clean_files_save
13085
13086 test $ac_write_fail = 0 ||
13087   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13088
13089
13090 # configure is writing to config.log, and then calls config.status.
13091 # config.status does its own redirection, appending to config.log.
13092 # Unfortunately, on DOS this fails, as config.log is still kept open
13093 # by configure, so config.status won't be able to write to it; its
13094 # output is simply discarded.  So we exec the FD to /dev/null,
13095 # effectively closing config.log, so it can be properly (re)opened and
13096 # appended to by config.status.  When coming back to configure, we
13097 # need to make the FD available again.
13098 if test "$no_create" != yes; then
13099   ac_cs_success=:
13100   ac_config_status_args=
13101   test "$silent" = yes &&
13102     ac_config_status_args="$ac_config_status_args --quiet"
13103   exec 5>/dev/null
13104   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13105   exec 5>>config.log
13106   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13107   # would make configure fail if this is the last instruction.
13108   $ac_cs_success || as_fn_exit 1
13109 fi
13110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13113 fi
13114
13115