]> git.deb.at Git - pkg/abook.git/blob - configure
vformat: libvformat configure option added to configure.in
[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 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 gt_needs=
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 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 XGETTEXT_EXTRA_OPTIONS
662 MSGMERGE
663 XGETTEXT_015
664 XGETTEXT
665 GMSGFMT_015
666 MSGFMT_015
667 GMSGFMT
668 MSGFMT
669 GETTEXT_MACRO_VERSION
670 USE_NLS
671 EGREP
672 GREP
673 CPP
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_dependency_tracking
756 enable_nls
757 enable_threads
758 with_gnu_ld
759 enable_rpath
760 with_libpth_prefix
761 with_libiconv_prefix
762 with_included_gettext
763 with_libintl_prefix
764 with_localedir
765 with_curses
766 with_readline
767 enable_debug
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832   # If the previous option needs an argument, assign it.
833   if test -n "$ac_prev"; then
834     eval $ac_prev=\$ac_option
835     ac_prev=
836     continue
837   fi
838
839   case $ac_option in
840   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841   *=)   ac_optarg= ;;
842   *)    ac_optarg=yes ;;
843   esac
844
845   # Accept the important Cygnus configure options, so we can diagnose typos.
846
847   case $ac_dashdash$ac_option in
848   --)
849     ac_dashdash=yes ;;
850
851   -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855
856   -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860
861   -cache-file | --cache-file | --cache-fil | --cache-fi \
862   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867
868   --config-cache | -C)
869     cache_file=config.cache ;;
870
871   -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873   -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875
876   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877   | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882
883   -disable-* | --disable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=\$ac_optarg ;;
924
925   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927   | --exec | --exe | --ex)
928     ac_prev=exec_prefix ;;
929   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931   | --exec=* | --exe=* | --ex=*)
932     exec_prefix=$ac_optarg ;;
933
934   -gas | --gas | --ga | --g)
935     # Obsolete; use --with-gas.
936     with_gas=yes ;;
937
938   -help | --help | --hel | --he | -h)
939     ac_init_help=long ;;
940   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941     ac_init_help=recursive ;;
942   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943     ac_init_help=short ;;
944
945   -host | --host | --hos | --ho)
946     ac_prev=host_alias ;;
947   -host=* | --host=* | --hos=* | --ho=*)
948     host_alias=$ac_optarg ;;
949
950   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951     ac_prev=htmldir ;;
952   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953   | --ht=*)
954     htmldir=$ac_optarg ;;
955
956   -includedir | --includedir | --includedi | --included | --include \
957   | --includ | --inclu | --incl | --inc)
958     ac_prev=includedir ;;
959   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960   | --includ=* | --inclu=* | --incl=* | --inc=*)
961     includedir=$ac_optarg ;;
962
963   -infodir | --infodir | --infodi | --infod | --info | --inf)
964     ac_prev=infodir ;;
965   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966     infodir=$ac_optarg ;;
967
968   -libdir | --libdir | --libdi | --libd)
969     ac_prev=libdir ;;
970   -libdir=* | --libdir=* | --libdi=* | --libd=*)
971     libdir=$ac_optarg ;;
972
973   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974   | --libexe | --libex | --libe)
975     ac_prev=libexecdir ;;
976   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977   | --libexe=* | --libex=* | --libe=*)
978     libexecdir=$ac_optarg ;;
979
980   -localedir | --localedir | --localedi | --localed | --locale)
981     ac_prev=localedir ;;
982   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983     localedir=$ac_optarg ;;
984
985   -localstatedir | --localstatedir | --localstatedi | --localstated \
986   | --localstate | --localstat | --localsta | --localst | --locals)
987     ac_prev=localstatedir ;;
988   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990     localstatedir=$ac_optarg ;;
991
992   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993     ac_prev=mandir ;;
994   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995     mandir=$ac_optarg ;;
996
997   -nfp | --nfp | --nf)
998     # Obsolete; use --without-fp.
999     with_fp=no ;;
1000
1001   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002   | --no-cr | --no-c | -n)
1003     no_create=yes ;;
1004
1005   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007     no_recursion=yes ;;
1008
1009   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011   | --oldin | --oldi | --old | --ol | --o)
1012     ac_prev=oldincludedir ;;
1013   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016     oldincludedir=$ac_optarg ;;
1017
1018   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019     ac_prev=prefix ;;
1020   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021     prefix=$ac_optarg ;;
1022
1023   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024   | --program-pre | --program-pr | --program-p)
1025     ac_prev=program_prefix ;;
1026   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028     program_prefix=$ac_optarg ;;
1029
1030   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031   | --program-suf | --program-su | --program-s)
1032     ac_prev=program_suffix ;;
1033   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035     program_suffix=$ac_optarg ;;
1036
1037   -program-transform-name | --program-transform-name \
1038   | --program-transform-nam | --program-transform-na \
1039   | --program-transform-n | --program-transform- \
1040   | --program-transform | --program-transfor \
1041   | --program-transfo | --program-transf \
1042   | --program-trans | --program-tran \
1043   | --progr-tra | --program-tr | --program-t)
1044     ac_prev=program_transform_name ;;
1045   -program-transform-name=* | --program-transform-name=* \
1046   | --program-transform-nam=* | --program-transform-na=* \
1047   | --program-transform-n=* | --program-transform-=* \
1048   | --program-transform=* | --program-transfor=* \
1049   | --program-transfo=* | --program-transf=* \
1050   | --program-trans=* | --program-tran=* \
1051   | --progr-tra=* | --program-tr=* | --program-t=*)
1052     program_transform_name=$ac_optarg ;;
1053
1054   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055     ac_prev=pdfdir ;;
1056   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057     pdfdir=$ac_optarg ;;
1058
1059   -psdir | --psdir | --psdi | --psd | --ps)
1060     ac_prev=psdir ;;
1061   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062     psdir=$ac_optarg ;;
1063
1064   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065   | -silent | --silent | --silen | --sile | --sil)
1066     silent=yes ;;
1067
1068   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069     ac_prev=sbindir ;;
1070   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071   | --sbi=* | --sb=*)
1072     sbindir=$ac_optarg ;;
1073
1074   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076   | --sharedst | --shareds | --shared | --share | --shar \
1077   | --sha | --sh)
1078     ac_prev=sharedstatedir ;;
1079   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082   | --sha=* | --sh=*)
1083     sharedstatedir=$ac_optarg ;;
1084
1085   -site | --site | --sit)
1086     ac_prev=site ;;
1087   -site=* | --site=* | --sit=*)
1088     site=$ac_optarg ;;
1089
1090   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091     ac_prev=srcdir ;;
1092   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093     srcdir=$ac_optarg ;;
1094
1095   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096   | --syscon | --sysco | --sysc | --sys | --sy)
1097     ac_prev=sysconfdir ;;
1098   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100     sysconfdir=$ac_optarg ;;
1101
1102   -target | --target | --targe | --targ | --tar | --ta | --t)
1103     ac_prev=target_alias ;;
1104   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105     target_alias=$ac_optarg ;;
1106
1107   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108     verbose=yes ;;
1109
1110   -version | --version | --versio | --versi | --vers | -V)
1111     ac_init_version=: ;;
1112
1113   -with-* | --with-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=no ;;
1144
1145   --x)
1146     # Obsolete; use --with-x.
1147     with_x=yes ;;
1148
1149   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150   | --x-incl | --x-inc | --x-in | --x-i)
1151     ac_prev=x_includes ;;
1152   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154     x_includes=$ac_optarg ;;
1155
1156   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158     ac_prev=x_libraries ;;
1159   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161     x_libraries=$ac_optarg ;;
1162
1163   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165     ;;
1166
1167   *=*)
1168     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169     # Reject names that are not valid shell variable names.
1170     case $ac_envvar in #(
1171       '' | [0-9]* | *[!_$as_cr_alnum]* )
1172       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173     esac
1174     eval $ac_envvar=\$ac_optarg
1175     export $ac_envvar ;;
1176
1177   *)
1178     # FIXME: should be removed in autoconf 3.0.
1179     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183     ;;
1184
1185   esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190   as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194   case $enable_option_checking in
1195     no) ;;
1196     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198   esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   # Remove trailing slashes.
1209   case $ac_val in
1210     */ )
1211       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212       eval $ac_var=\$ac_val;;
1213   esac
1214   # Be sure to have absolute directory names.
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used" >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures this package to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 Program names:
1378   --program-prefix=PREFIX            prepend PREFIX to installed program names
1379   --program-suffix=SUFFIX            append SUFFIX to installed program names
1380   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-option-checking  ignore unrecognized --enable/--with options
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --disable-dependency-tracking  speeds up one-time build
1397   --enable-dependency-tracking   do not reject slow dependency extractors
1398   --disable-nls           do not use Native Language Support
1399   --enable-threads={posix|solaris|pth|win32}
1400                           specify multithreading API
1401   --disable-threads       build without multithread safety
1402   --disable-rpath         do not hardcode runtime library paths
1403   --enable-debug          Enable debugging support
1404
1405 Optional Packages:
1406   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1409   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1410   --without-libpth-prefix     don't search for libpth in includedir and libdir
1411   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1412   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1413   --with-included-gettext use the GNU gettext library included here
1414   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1415   --without-libintl-prefix     don't search for libintl in includedir and libdir
1416   --with-localedir=PATH      Where the locale files are installed
1417   --with-curses=DIR       Where ncurses is installed
1418   --with-readline=DIR     Where readline is installed
1419
1420 Some influential environment variables:
1421   CC          C compiler command
1422   CFLAGS      C compiler flags
1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424               nonstandard directory <lib dir>
1425   LIBS        libraries to pass to the linker, e.g. -l<library>
1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427               you have headers in a nonstandard directory <include dir>
1428   CPP         C preprocessor
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to the package provider.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439   # If there are subdirs, report their specific --help.
1440   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441     test -d "$ac_dir" ||
1442       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443       continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 configure
1497 generated by GNU Autoconf 2.68
1498
1499 Copyright (C) 2010 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503   exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_cpp LINENO
1549 # ----------------------
1550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_cpp ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } > conftest.i && {
1570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        }; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578     ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_cpp
1584
1585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1586 # -------------------------------------------------------
1587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1588 # the include files in INCLUDES and setting the cache variable VAR
1589 # accordingly.
1590 ac_fn_c_check_header_mongrel ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   if eval \${$3+:} false; then :
1594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595 $as_echo_n "checking for $2... " >&6; }
1596 if eval \${$3+:} false; then :
1597   $as_echo_n "(cached) " >&6
1598 fi
1599 eval ac_res=\$$3
1600                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1602 else
1603   # Is the header compilable?
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1605 $as_echo_n "checking $2 usability... " >&6; }
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h.  */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612   ac_header_compiler=yes
1613 else
1614   ac_header_compiler=no
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1618 $as_echo "$ac_header_compiler" >&6; }
1619
1620 # Is the header present?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1622 $as_echo_n "checking $2 presence... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h.  */
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_cpp "$LINENO"; then :
1628   ac_header_preproc=yes
1629 else
1630   ac_header_preproc=no
1631 fi
1632 rm -f conftest.err conftest.i conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1634 $as_echo "$ac_header_preproc" >&6; }
1635
1636 # So?  What about this header?
1637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1638   yes:no: )
1639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643     ;;
1644   no:yes:* )
1645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1648 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1652 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655     ;;
1656 esac
1657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660   $as_echo_n "(cached) " >&6
1661 else
1662   eval "$3=\$ac_header_compiler"
1663 fi
1664 eval ac_res=\$$3
1665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_mongrel
1671
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675 # that executables *can* be run.
1676 ac_fn_c_try_run ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_link") 2>&5
1687   ac_status=$?
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690   { { case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_try") 2>&5
1697   ac_status=$?
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; }; }; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: program exited with status $ac_status" >&5
1703        $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706        ac_retval=$ac_status
1707 fi
1708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710   as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_run
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724   $as_echo_n "(cached) " >&6
1725 else
1726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h.  */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732   eval "$3=yes"
1733 else
1734   eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1746 # -------------------------------------------
1747 # Tests whether TYPE exists after having included INCLUDES, setting cache
1748 # variable VAR accordingly.
1749 ac_fn_c_check_type ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   eval "$3=no"
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 $4
1761 int
1762 main ()
1763 {
1764 if (sizeof ($2))
1765          return 0;
1766   ;
1767   return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 $4
1774 int
1775 main ()
1776 {
1777 if (sizeof (($2)))
1778             return 0;
1779   ;
1780   return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784
1785 else
1786   eval "$3=yes"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_type
1798
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_link ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   rm -f conftest.$ac_objext conftest$ac_exeext
1806   if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809   *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813   (eval "$ac_link") 2>conftest.err
1814   ac_status=$?
1815   if test -s conftest.err; then
1816     grep -v '^ *+' conftest.err >conftest.er1
1817     cat conftest.er1 >&5
1818     mv -f conftest.er1 conftest.err
1819   fi
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; } && {
1822          test -z "$ac_c_werror_flag" ||
1823          test ! -s conftest.err
1824        } && test -s conftest$ac_exeext && {
1825          test "$cross_compiling" = yes ||
1826          $as_test_x conftest$ac_exeext
1827        }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833         ac_retval=1
1834 fi
1835   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837   # interfere with the next link command; also delete a directory that is
1838   # left behind by Apple's compiler.  We do this before executing the actions.
1839   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_link
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1916 # computed
1917 ac_fn_c_compute_int ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if test "$cross_compiling" = yes; then
1921     # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 int
1926 main ()
1927 {
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1929 test_array [0] = 0
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936   ac_lo=0 ac_mid=0
1937   while :; do
1938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h.  */
1940 $4
1941 int
1942 main ()
1943 {
1944 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1945 test_array [0] = 0
1946
1947   ;
1948   return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952   ac_hi=$ac_mid; break
1953 else
1954   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1955                         if test $ac_lo -le $ac_mid; then
1956                           ac_lo= ac_hi=
1957                           break
1958                         fi
1959                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962   done
1963 else
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) < 0)];
1971 test_array [0] = 0
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978   ac_hi=-1 ac_mid=-1
1979   while :; do
1980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1987 test_array [0] = 0
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994   ac_lo=$ac_mid; break
1995 else
1996   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1997                         if test $ac_mid -le $ac_hi; then
1998                           ac_lo= ac_hi=
1999                           break
2000                         fi
2001                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004   done
2005 else
2006   ac_lo= ac_hi=
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid
2029 else
2030   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 done
2034 case $ac_lo in #((
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036 '') ac_retval=1 ;;
2037 esac
2038   else
2039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2044 #include <stdio.h>
2045 #include <stdlib.h>
2046 int
2047 main ()
2048 {
2049
2050   FILE *f = fopen ("conftest.val", "w");
2051   if (! f)
2052     return 1;
2053   if (($2) < 0)
2054     {
2055       long int i = longval ();
2056       if (i != ($2))
2057         return 1;
2058       fprintf (f, "%ld", i);
2059     }
2060   else
2061     {
2062       unsigned long int i = ulongval ();
2063       if (i != ($2))
2064         return 1;
2065       fprintf (f, "%lu", i);
2066     }
2067   /* Do not output a trailing newline, as this causes \r\n confusion
2068      on some platforms.  */
2069   return ferror (f) || fclose (f) != 0;
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_run "$LINENO"; then :
2076   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2077 else
2078   ac_retval=1
2079 fi
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081   conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 rm -f conftest.val
2083
2084   fi
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086   as_fn_set_status $ac_retval
2087
2088 } # ac_fn_c_compute_int
2089
2090 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2091 # ---------------------------------------------
2092 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2093 # accordingly.
2094 ac_fn_c_check_decl ()
2095 {
2096   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097   as_decl_name=`echo $2|sed 's/ *(.*//'`
2098   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2100 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2101 if eval \${$3+:} false; then :
2102   $as_echo_n "(cached) " >&6
2103 else
2104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 int
2108 main ()
2109 {
2110 #ifndef $as_decl_name
2111 #ifdef __cplusplus
2112   (void) $as_decl_use;
2113 #else
2114   (void) $as_decl_name;
2115 #endif
2116 #endif
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123   eval "$3=yes"
2124 else
2125   eval "$3=no"
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 fi
2129 eval ac_res=\$$3
2130                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_c_check_decl
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2138
2139 It was created by $as_me, which was
2140 generated by GNU Autoconf 2.68.  Invocation command line was
2141
2142   $ $0 $@
2143
2144 _ACEOF
2145 exec 5>>config.log
2146 {
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2151
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2160
2161 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2162 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2165 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2166 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2167 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2168
2169 _ASUNAME
2170
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176     $as_echo "PATH: $as_dir"
2177   done
2178 IFS=$as_save_IFS
2179
2180 } >&5
2181
2182 cat >&5 <<_ACEOF
2183
2184
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2188
2189 _ACEOF
2190
2191
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2202 do
2203   for ac_arg
2204   do
2205     case $ac_arg in
2206     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208     | -silent | --silent | --silen | --sile | --sil)
2209       continue ;;
2210     *\'*)
2211       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212     esac
2213     case $ac_pass in
2214     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215     2)
2216       as_fn_append ac_configure_args1 " '$ac_arg'"
2217       if test $ac_must_keep_next = true; then
2218         ac_must_keep_next=false # Got value, back to normal.
2219       else
2220         case $ac_arg in
2221           *=* | --config-cache | -C | -disable-* | --disable-* \
2222           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224           | -with-* | --with-* | -without-* | --without-* | --x)
2225             case "$ac_configure_args0 " in
2226               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227             esac
2228             ;;
2229           -* ) ac_must_keep_next=true ;;
2230         esac
2231       fi
2232       as_fn_append ac_configure_args " '$ac_arg'"
2233       ;;
2234     esac
2235   done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2239
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log.  We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246   # Save into config.log some information that might help in debugging.
2247   {
2248     echo
2249
2250     $as_echo "## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##"
2253     echo
2254     # The following way of writing the cache mishandles newlines in values,
2255 (
2256   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257     eval ac_val=\$$ac_var
2258     case $ac_val in #(
2259     *${as_nl}*)
2260       case $ac_var in #(
2261       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263       esac
2264       case $ac_var in #(
2265       _ | IFS | as_nl) ;; #(
2266       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267       *) { eval $ac_var=; unset $ac_var;} ;;
2268       esac ;;
2269     esac
2270   done
2271   (set) 2>&1 |
2272     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273     *${as_nl}ac_space=\ *)
2274       sed -n \
2275         "s/'\''/'\''\\\\'\'''\''/g;
2276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277       ;; #(
2278     *)
2279       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280       ;;
2281     esac |
2282     sort
2283 )
2284     echo
2285
2286     $as_echo "## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##"
2289     echo
2290     for ac_var in $ac_subst_vars
2291     do
2292       eval ac_val=\$$ac_var
2293       case $ac_val in
2294       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295       esac
2296       $as_echo "$ac_var='\''$ac_val'\''"
2297     done | sort
2298     echo
2299
2300     if test -n "$ac_subst_files"; then
2301       $as_echo "## ------------------- ##
2302 ## File substitutions. ##
2303 ## ------------------- ##"
2304       echo
2305       for ac_var in $ac_subst_files
2306       do
2307         eval ac_val=\$$ac_var
2308         case $ac_val in
2309         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310         esac
2311         $as_echo "$ac_var='\''$ac_val'\''"
2312       done | sort
2313       echo
2314     fi
2315
2316     if test -s confdefs.h; then
2317       $as_echo "## ----------- ##
2318 ## confdefs.h. ##
2319 ## ----------- ##"
2320       echo
2321       cat confdefs.h
2322       echo
2323     fi
2324     test "$ac_signal" != 0 &&
2325       $as_echo "$as_me: caught signal $ac_signal"
2326     $as_echo "$as_me: exit $exit_status"
2327   } >&5
2328   rm -f core *.core core.conftest.* &&
2329     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330     exit $exit_status
2331 ' 0
2332 for ac_signal in 1 2 13 15; do
2333   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334 done
2335 ac_signal=0
2336
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2339
2340 $as_echo "/* confdefs.h */" > confdefs.h
2341
2342 # Predefined preprocessor variables.
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2346 _ACEOF
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_URL "$PACKAGE_URL"
2366 _ACEOF
2367
2368
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2371 ac_site_file1=NONE
2372 ac_site_file2=NONE
2373 if test -n "$CONFIG_SITE"; then
2374   # We do not want a PATH search for config.site.
2375   case $CONFIG_SITE in #((
2376     -*)  ac_site_file1=./$CONFIG_SITE;;
2377     */*) ac_site_file1=$CONFIG_SITE;;
2378     *)   ac_site_file1=./$CONFIG_SITE;;
2379   esac
2380 elif test "x$prefix" != xNONE; then
2381   ac_site_file1=$prefix/share/config.site
2382   ac_site_file2=$prefix/etc/config.site
2383 else
2384   ac_site_file1=$ac_default_prefix/share/config.site
2385   ac_site_file2=$ac_default_prefix/etc/config.site
2386 fi
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 do
2389   test "x$ac_site_file" = xNONE && continue
2390   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393     sed 's/^/| /' "$ac_site_file" >&5
2394     . "$ac_site_file" \
2395       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 as_fn_error $? "failed to load site script $ac_site_file
2398 See \`config.log' for more details" "$LINENO" 5; }
2399   fi
2400 done
2401
2402 if test -r "$cache_file"; then
2403   # Some versions of bash will fail to source /dev/null (special files
2404   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2405   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408     case $cache_file in
2409       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410       *)                      . "./$cache_file";;
2411     esac
2412   fi
2413 else
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2416   >$cache_file
2417 fi
2418
2419 gt_needs="$gt_needs "
2420 as_fn_append ac_header_list " stdlib.h"
2421 as_fn_append ac_header_list " unistd.h"
2422 as_fn_append ac_header_list " sys/param.h"
2423 # Check that the precious variables saved in the cache have kept the same
2424 # value.
2425 ac_cache_corrupted=false
2426 for ac_var in $ac_precious_vars; do
2427   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2428   eval ac_new_set=\$ac_env_${ac_var}_set
2429   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2430   eval ac_new_val=\$ac_env_${ac_var}_value
2431   case $ac_old_set,$ac_new_set in
2432     set,)
2433       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2435       ac_cache_corrupted=: ;;
2436     ,set)
2437       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2438 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2439       ac_cache_corrupted=: ;;
2440     ,);;
2441     *)
2442       if test "x$ac_old_val" != "x$ac_new_val"; then
2443         # differences in whitespace do not lead to failure.
2444         ac_old_val_w=`echo x $ac_old_val`
2445         ac_new_val_w=`echo x $ac_new_val`
2446         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2447           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2448 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2449           ac_cache_corrupted=:
2450         else
2451           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2452 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2453           eval $ac_var=\$ac_old_val
2454         fi
2455         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2456 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2457         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2458 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2459       fi;;
2460   esac
2461   # Pass precious variables to config.status.
2462   if test "$ac_new_set" = set; then
2463     case $ac_new_val in
2464     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2465     *) ac_arg=$ac_var=$ac_new_val ;;
2466     esac
2467     case " $ac_configure_args " in
2468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2469       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2470     esac
2471   fi
2472 done
2473 if $ac_cache_corrupted; then
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2477 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2478   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 fi
2480 ## -------------------- ##
2481 ## Main body of script. ##
2482 ## -------------------- ##
2483
2484 ac_ext=c
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489
2490
2491 am__api_version='1.11'
2492
2493 ac_aux_dir=
2494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495   if test -f "$ac_dir/install-sh"; then
2496     ac_aux_dir=$ac_dir
2497     ac_install_sh="$ac_aux_dir/install-sh -c"
2498     break
2499   elif test -f "$ac_dir/install.sh"; then
2500     ac_aux_dir=$ac_dir
2501     ac_install_sh="$ac_aux_dir/install.sh -c"
2502     break
2503   elif test -f "$ac_dir/shtool"; then
2504     ac_aux_dir=$ac_dir
2505     ac_install_sh="$ac_aux_dir/shtool install -c"
2506     break
2507   fi
2508 done
2509 if test -z "$ac_aux_dir"; then
2510   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2511 fi
2512
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2518 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2519 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2520
2521
2522 # Find a good install program.  We prefer a C program (faster),
2523 # so one script is as good as another.  But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2528 # AIX /bin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if ${ac_cv_path_install+:} false; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547     # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in #((
2549   ./ | .// | /[cC]/* | \
2550   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552   /usr/ucb/* ) ;;
2553   *)
2554     # OSF1 and SCO ODT 3.0 have their own names for install.
2555     # Don't use installbsd from OSF since it installs stuff as root
2556     # by default.
2557     for ac_prog in ginstall scoinst install; do
2558       for ac_exec_ext in '' $ac_executable_extensions; do
2559         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2560           if test $ac_prog = install &&
2561             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562             # AIX install.  It has an incompatible calling convention.
2563             :
2564           elif test $ac_prog = install &&
2565             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566             # program-specific install script used by HP pwplus--don't use.
2567             :
2568           else
2569             rm -rf conftest.one conftest.two conftest.dir
2570             echo one > conftest.one
2571             echo two > conftest.two
2572             mkdir conftest.dir
2573             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574               test -s conftest.one && test -s conftest.two &&
2575               test -s conftest.dir/conftest.one &&
2576               test -s conftest.dir/conftest.two
2577             then
2578               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2579               break 3
2580             fi
2581           fi
2582         fi
2583       done
2584     done
2585     ;;
2586 esac
2587
2588   done
2589 IFS=$as_save_IFS
2590
2591 rm -rf conftest.one conftest.two conftest.dir
2592
2593 fi
2594   if test "${ac_cv_path_install+set}" = set; then
2595     INSTALL=$ac_cv_path_install
2596   else
2597     # As a last resort, use the slow shell script.  Don't cache a
2598     # value for INSTALL within a source directory, because that will
2599     # break other packages using the cache if that directory is
2600     # removed, or if the value is a relative name.
2601     INSTALL=$ac_install_sh
2602   fi
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2606
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2616 $as_echo_n "checking whether build environment is sane... " >&6; }
2617 # Just in case
2618 sleep 1
2619 echo timestamp > conftest.file
2620 # Reject unsafe characters in $srcdir or the absolute working directory
2621 # name.  Accept space and tab only in the latter.
2622 am_lf='
2623 '
2624 case `pwd` in
2625   *[\\\"\#\$\&\'\`$am_lf]*)
2626     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2627 esac
2628 case $srcdir in
2629   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2630     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2631 esac
2632
2633 # Do `set' in a subshell so we don't clobber the current shell's
2634 # arguments.  Must try -L first in case configure is actually a
2635 # symlink; some systems play weird games with the mod time of symlinks
2636 # (eg FreeBSD returns the mod time of the symlink's containing
2637 # directory).
2638 if (
2639    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2640    if test "$*" = "X"; then
2641       # -L didn't work.
2642       set X `ls -t "$srcdir/configure" conftest.file`
2643    fi
2644    rm -f conftest.file
2645    if test "$*" != "X $srcdir/configure conftest.file" \
2646       && test "$*" != "X conftest.file $srcdir/configure"; then
2647
2648       # If neither matched, then we have a broken ls.  This can happen
2649       # if, for instance, CONFIG_SHELL is bash and it inherits a
2650       # broken ls alias from the environment.  This has actually
2651       # happened.  Such a system could not be considered "sane".
2652       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2653 alias in your environment" "$LINENO" 5
2654    fi
2655
2656    test "$2" = conftest.file
2657    )
2658 then
2659    # Ok.
2660    :
2661 else
2662    as_fn_error $? "newly created file is older than distributed files!
2663 Check your system clock" "$LINENO" 5
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2667 test "$program_prefix" != NONE &&
2668   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2669 # Use a double $ so make ignores it.
2670 test "$program_suffix" != NONE &&
2671   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2672 # Double any \ or $.
2673 # By default was `s,x,x', remove it if useless.
2674 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2675 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2676
2677 # expand $ac_aux_dir to an absolute path
2678 am_aux_dir=`cd $ac_aux_dir && pwd`
2679
2680 if test x"${MISSING+set}" != xset; then
2681   case $am_aux_dir in
2682   *\ * | *\     *)
2683     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2684   *)
2685     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2686   esac
2687 fi
2688 # Use eval to expand $SHELL
2689 if eval "$MISSING --run true"; then
2690   am_missing_run="$MISSING --run "
2691 else
2692   am_missing_run=
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2694 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2695 fi
2696
2697 if test x"${install_sh}" != xset; then
2698   case $am_aux_dir in
2699   *\ * | *\     *)
2700     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2701   *)
2702     install_sh="\${SHELL} $am_aux_dir/install-sh"
2703   esac
2704 fi
2705
2706 # Installed binaries are usually stripped using `strip' when the user
2707 # run `make install-strip'.  However `strip' might not be the right
2708 # tool to use in cross-compilation environments, therefore Automake
2709 # will honor the `STRIP' environment variable to overrule this program.
2710 if test "$cross_compiling" != no; then
2711   if test -n "$ac_tool_prefix"; then
2712   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}strip; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_STRIP+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$STRIP"; then
2720   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 STRIP=$ac_cv_prog_STRIP
2740 if test -n "$STRIP"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2742 $as_echo "$STRIP" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 fi
2750 if test -z "$ac_cv_prog_STRIP"; then
2751   ac_ct_STRIP=$STRIP
2752   # Extract the first word of "strip", so it can be a program name with args.
2753 set dummy strip; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$ac_ct_STRIP"; then
2760   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     for ac_exec_ext in '' $ac_executable_extensions; do
2768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769     ac_cv_prog_ac_ct_STRIP="strip"
2770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774   done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2780 if test -n "$ac_ct_STRIP"; then
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2782 $as_echo "$ac_ct_STRIP" >&6; }
2783 else
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 fi
2787
2788   if test "x$ac_ct_STRIP" = x; then
2789     STRIP=":"
2790   else
2791     case $cross_compiling:$ac_tool_warned in
2792 yes:)
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795 ac_tool_warned=yes ;;
2796 esac
2797     STRIP=$ac_ct_STRIP
2798   fi
2799 else
2800   STRIP="$ac_cv_prog_STRIP"
2801 fi
2802
2803 fi
2804 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2807 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2808 if test -z "$MKDIR_P"; then
2809   if ${ac_cv_path_mkdir+:} false; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_prog in mkdir gmkdir; do
2818          for ac_exec_ext in '' $ac_executable_extensions; do
2819            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2820            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2821              'mkdir (GNU coreutils) '* | \
2822              'mkdir (coreutils) '* | \
2823              'mkdir (fileutils) '4.1*)
2824                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2825                break 3;;
2826            esac
2827          done
2828        done
2829   done
2830 IFS=$as_save_IFS
2831
2832 fi
2833
2834   test -d ./--version && rmdir ./--version
2835   if test "${ac_cv_path_mkdir+set}" = set; then
2836     MKDIR_P="$ac_cv_path_mkdir -p"
2837   else
2838     # As a last resort, use the slow shell script.  Don't cache a
2839     # value for MKDIR_P within a source directory, because that will
2840     # break other packages using the cache if that directory is
2841     # removed, or if the value is a relative name.
2842     MKDIR_P="$ac_install_sh -d"
2843   fi
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2846 $as_echo "$MKDIR_P" >&6; }
2847
2848 mkdir_p="$MKDIR_P"
2849 case $mkdir_p in
2850   [\\/$]* | ?:[\\/]*) ;;
2851   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2852 esac
2853
2854 for ac_prog in gawk mawk nawk awk
2855 do
2856   # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_AWK+:} false; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   if test -n "$AWK"; then
2864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     for ac_exec_ext in '' $ac_executable_extensions; do
2872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873     ac_cv_prog_AWK="$ac_prog"
2874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875     break 2
2876   fi
2877 done
2878   done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 AWK=$ac_cv_prog_AWK
2884 if test -n "$AWK"; then
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2886 $as_echo "$AWK" >&6; }
2887 else
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892
2893   test -n "$AWK" && break
2894 done
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2897 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2898 set x ${MAKE-make}
2899 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2900 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   cat >conftest.make <<\_ACEOF
2904 SHELL = /bin/sh
2905 all:
2906         @echo '@@@%%%=$(MAKE)=@@@%%%'
2907 _ACEOF
2908 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2909 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2910   *@@@%%%=?*=@@@%%%*)
2911     eval ac_cv_prog_make_${ac_make}_set=yes;;
2912   *)
2913     eval ac_cv_prog_make_${ac_make}_set=no;;
2914 esac
2915 rm -f conftest.make
2916 fi
2917 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2920   SET_MAKE=
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924   SET_MAKE="MAKE=${MAKE-make}"
2925 fi
2926
2927 rm -rf .tst 2>/dev/null
2928 mkdir .tst 2>/dev/null
2929 if test -d .tst; then
2930   am__leading_dot=.
2931 else
2932   am__leading_dot=_
2933 fi
2934 rmdir .tst 2>/dev/null
2935
2936 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2937   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2938   # is not polluted with repeated "-I."
2939   am__isrc=' -I$(srcdir)'
2940   # test to see if srcdir already configured
2941   if test -f $srcdir/config.status; then
2942     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2943   fi
2944 fi
2945
2946 # test whether we have cygpath
2947 if test -z "$CYGPATH_W"; then
2948   if (cygpath --version) >/dev/null 2>/dev/null; then
2949     CYGPATH_W='cygpath -w'
2950   else
2951     CYGPATH_W=echo
2952   fi
2953 fi
2954
2955
2956 # Define the identity of the package.
2957  PACKAGE=abook
2958  VERSION=0.6.0pre2
2959
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE "$PACKAGE"
2963 _ACEOF
2964
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define VERSION "$VERSION"
2968 _ACEOF
2969
2970 # Some tools Automake needs.
2971
2972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2973
2974
2975 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2976
2977
2978 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2979
2980
2981 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2982
2983
2984 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2985
2986 # We need awk for the "check" target.  The system "awk" is bad on
2987 # some platforms.
2988 # Always define AMTAR for backward compatibility.  Yes, it's still used
2989 # in the wild :-(  We should find a proper way to deprecate it ...
2990 AMTAR='$${TAR-tar}'
2991
2992 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2993
2994
2995
2996
2997
2998 ac_config_headers="$ac_config_headers config.h"
2999
3000
3001
3002 DEPDIR="${am__leading_dot}deps"
3003
3004 ac_config_commands="$ac_config_commands depfiles"
3005
3006
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3009 am__doit:
3010         @echo this is the am__doit target
3011 .PHONY: am__doit
3012 END
3013 # If we don't find an include directive, just comment out the code.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3016 am__include="#"
3017 am__quote=
3018 _am_result=none
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # Ignore all kinds of additional output from `make'.
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3024   am__include=include
3025   am__quote=
3026   _am_result=GNU
3027   ;;
3028 esac
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031    echo '.include "confinc"' > confmf
3032    case `$am_make -s -f confmf 2> /dev/null` in #(
3033    *the\ am__doit\ target*)
3034      am__include=.include
3035      am__quote="\""
3036      _am_result=BSD
3037      ;;
3038    esac
3039 fi
3040
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043 $as_echo "$_am_result" >&6; }
3044 rm -f confinc confmf
3045
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048   enableval=$enable_dependency_tracking;
3049 fi
3050
3051 if test "x$enable_dependency_tracking" != xno; then
3052   am_depcomp="$ac_aux_dir/depcomp"
3053   AMDEPBACKSLASH='\'
3054   am__nodep='_no'
3055 fi
3056  if test "x$enable_dependency_tracking" != xno; then
3057   AMDEP_TRUE=
3058   AMDEP_FALSE='#'
3059 else
3060   AMDEP_TRUE='#'
3061   AMDEP_FALSE=
3062 fi
3063
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$CC"; then
3079   ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_CC"; then
3110   ac_ct_CC=$CC
3111   # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_ac_ct_CC="gcc"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147   if test "x$ac_ct_CC" = x; then
3148     CC=""
3149   else
3150     case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156     CC=$ac_ct_CC
3157   fi
3158 else
3159   CC="$ac_cv_prog_CC"
3160 fi
3161
3162 if test -z "$CC"; then
3163           if test -n "$ac_tool_prefix"; then
3164     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_prog_CC="${ac_tool_prefix}cc"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201   fi
3202 fi
3203 if test -z "$CC"; then
3204   # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test -n "$CC"; then
3212   ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214   ac_prog_rejected=no
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223        ac_prog_rejected=yes
3224        continue
3225      fi
3226     ac_cv_prog_CC="cc"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 if test $ac_prog_rejected = yes; then
3235   # We found a bogon in the path, so make sure we never use it.
3236   set dummy $ac_cv_prog_CC
3237   shift
3238   if test $# != 0; then
3239     # We chose a different compiler from the bogus one.
3240     # However, it has the same basename, so the bogon will be chosen
3241     # first if we set CC to just the basename; use the full file name.
3242     shift
3243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244   fi
3245 fi
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$CC"; then
3260   if test -n "$ac_tool_prefix"; then
3261   for ac_prog in cl.exe
3262   do
3263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$CC"; then
3271   ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300     test -n "$CC" && break
3301   done
3302 fi
3303 if test -z "$CC"; then
3304   ac_ct_CC=$CC
3305   for ac_prog in cl.exe
3306 do
3307   # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$ac_ct_CC"; then
3315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     for ac_exec_ext in '' $ac_executable_extensions; do
3323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324     ac_cv_prog_ac_ct_CC="$ac_prog"
3325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329   done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344   test -n "$ac_ct_CC" && break
3345 done
3346
3347   if test "x$ac_ct_CC" = x; then
3348     CC=""
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356     CC=$ac_ct_CC
3357   fi
3358 fi
3359
3360 fi
3361
3362
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3367
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370 set X $ac_compile
3371 ac_compiler=$2
3372 for ac_option in --version -v -V -qversion; do
3373   { { ac_try="$ac_compiler $ac_option >&5"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381   ac_status=$?
3382   if test -s conftest.err; then
3383     sed '10a\
3384 ... rest of stderr output deleted ...
3385          10q' conftest.err >conftest.er1
3386     cat conftest.er1 >&5
3387   fi
3388   rm -f conftest.er1 conftest.err
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }
3391 done
3392
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422   esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { { ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link_default") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444   test -f "$ac_file" || continue
3445   case $ac_file in
3446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447         ;;
3448     [ab].out )
3449         # We found the default executable, but exeext='' is most
3450         # certainly right.
3451         break;;
3452     *.* )
3453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454         then :; else
3455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456         fi
3457         # We set ac_cv_exeext here because the later test for it is not
3458         # safe: cross compilers may not add the suffix if given an `-o'
3459         # argument, so we may need to know it at that point already.
3460         # Even if this section looks crufty: it has the advantage of
3461         # actually working.
3462         break;;
3463     * )
3464         break;;
3465   esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470   ac_file=''
3471 fi
3472 if test -z "$ac_file"; then :
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3491
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_link") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }; then :
3507   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3510 # `rm'.
3511 for ac_file in conftest.exe conftest conftest.*; do
3512   test -f "$ac_file" || continue
3513   case $ac_file in
3514     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516           break;;
3517     * ) break;;
3518   esac
3519 done
3520 else
3521   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3529
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3532 ac_exeext=$EXEEXT
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <stdio.h>
3536 int
3537 main ()
3538 {
3539 FILE *f = fopen ("conftest.out", "w");
3540  return ferror (f) || fclose (f) != 0;
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run.  If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552   { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559   (eval "$ac_link") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562   test $ac_status = 0; }
3563   if { ac_try='./conftest$ac_cv_exeext'
3564   { { case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; }; then
3574     cross_compiling=no
3575   else
3576     if test "$cross_compiling" = maybe; then
3577         cross_compiling=yes
3578     else
3579         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3584     fi
3585   fi
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_compile") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   for ac_file in conftest.o conftest.obj conftest.*; do
3621   test -f "$ac_file" || continue;
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625        break;;
3626   esac
3627 done
3628 else
3629   $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3642 ac_objext=$OBJEXT
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655        choke me
3656 #endif
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_compiler_gnu=yes
3664 else
3665   ac_compiler_gnu=no
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3674   GCC=yes
3675 else
3676   GCC=
3677 fi
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   ac_save_c_werror_flag=$ac_c_werror_flag
3686    ac_c_werror_flag=yes
3687    ac_cv_prog_cc_g=no
3688    CFLAGS="-g"
3689    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701   ac_cv_prog_cc_g=yes
3702 else
3703   CFLAGS=""
3704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706
3707 int
3708 main ()
3709 {
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716
3717 else
3718   ac_c_werror_flag=$ac_save_c_werror_flag
3719          CFLAGS="-g"
3720          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_cv_prog_cc_g=yes
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739    ac_c_werror_flag=$ac_save_c_werror_flag
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744   CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746   if test "$GCC" = yes; then
3747     CFLAGS="-g -O2"
3748   else
3749     CFLAGS="-g"
3750   fi
3751 else
3752   if test "$GCC" = yes; then
3753     CFLAGS="-O2"
3754   else
3755     CFLAGS=
3756   fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   ac_cv_prog_cc_c89=no
3764 ac_save_CC=$CC
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdarg.h>
3768 #include <stdio.h>
3769 #include <sys/types.h>
3770 #include <sys/stat.h>
3771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3772 struct buf { int x; };
3773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774 static char *e (p, i)
3775      char **p;
3776      int i;
3777 {
3778   return p[i];
3779 }
3780 static char *f (char * (*g) (char **, int), char **p, ...)
3781 {
3782   char *s;
3783   va_list v;
3784   va_start (v,p);
3785   s = g (p, va_arg (v,int));
3786   va_end (v);
3787   return s;
3788 }
3789
3790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3791    function prototypes and stuff, but not '\xHH' hex character constants.
3792    These don't provoke an error unfortunately, instead are silently treated
3793    as 'x'.  The following induces an error, until -std is added to get
3794    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3795    array size at least.  It's necessary to write '\x00'==0 to get something
3796    that's true only with -std.  */
3797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798
3799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800    inside strings and character constants.  */
3801 #define FOO(x) 'x'
3802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803
3804 int test (int i, double x);
3805 struct s1 {int (*f) (int a);};
3806 struct s2 {int (*f) (double a);};
3807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808 int argc;
3809 char **argv;
3810 int
3811 main ()
3812 {
3813 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 do
3821   CC="$ac_save_CC $ac_arg"
3822   if ac_fn_c_try_compile "$LINENO"; then :
3823   ac_cv_prog_cc_c89=$ac_arg
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext
3826   test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 done
3828 rm -f conftest.$ac_ext
3829 CC=$ac_save_CC
3830
3831 fi
3832 # AC_CACHE_VAL
3833 case "x$ac_cv_prog_cc_c89" in
3834   x)
3835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3836 $as_echo "none needed" >&6; } ;;
3837   xno)
3838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3839 $as_echo "unsupported" >&6; } ;;
3840   *)
3841     CC="$CC $ac_cv_prog_cc_c89"
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844 esac
3845 if test "x$ac_cv_prog_cc_c89" != xno; then :
3846
3847 fi
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854
3855 depcc="$CC"   am_compiler_list=
3856
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3858 $as_echo_n "checking dependency style of $depcc... " >&6; }
3859 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3863   # We make a subdir and do the tests there.  Otherwise we can end up
3864   # making bogus files that we don't know about and never remove.  For
3865   # instance it was reported that on HP-UX the gcc test will end up
3866   # making a dummy file named `D' -- because `-MD' means `put the output
3867   # in D'.
3868   rm -rf conftest.dir
3869   mkdir conftest.dir
3870   # Copy depcomp to subdir because otherwise we won't find it if we're
3871   # using a relative directory.
3872   cp "$am_depcomp" conftest.dir
3873   cd conftest.dir
3874   # We will build objects and dependencies in a subdirectory because
3875   # it helps to detect inapplicable dependency modes.  For instance
3876   # both Tru64's cc and ICC support -MD to output dependencies as a
3877   # side effect of compilation, but ICC will put the dependencies in
3878   # the current directory while Tru64 will put them in the object
3879   # directory.
3880   mkdir sub
3881
3882   am_cv_CC_dependencies_compiler_type=none
3883   if test "$am_compiler_list" = ""; then
3884      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3885   fi
3886   am__universal=false
3887   case " $depcc " in #(
3888      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3889      esac
3890
3891   for depmode in $am_compiler_list; do
3892     # Setup a source with many dependencies, because some compilers
3893     # like to wrap large dependency lists on column 80 (with \), and
3894     # we should not choose a depcomp mode which is confused by this.
3895     #
3896     # We need to recreate these files for each test, as the compiler may
3897     # overwrite some of them when testing with obscure command lines.
3898     # This happens at least with the AIX C compiler.
3899     : > sub/conftest.c
3900     for i in 1 2 3 4 5 6; do
3901       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3903       # Solaris 8's {/usr,}/bin/sh.
3904       touch sub/conftst$i.h
3905     done
3906     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3907
3908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909     # mode.  It turns out that the SunPro C++ compiler does not properly
3910     # handle `-M -o', and we need to detect this.  Also, some Intel
3911     # versions had trouble with output in subdirs
3912     am__obj=sub/conftest.${OBJEXT-o}
3913     am__minus_obj="-o $am__obj"
3914     case $depmode in
3915     gcc)
3916       # This depmode causes a compiler race in universal mode.
3917       test "$am__universal" = false || continue
3918       ;;
3919     nosideeffect)
3920       # after this tag, mechanisms are not by side-effect, so they'll
3921       # only be used when explicitly requested
3922       if test "x$enable_dependency_tracking" = xyes; then
3923         continue
3924       else
3925         break
3926       fi
3927       ;;
3928     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3929       # This compiler won't grok `-c -o', but also, the minuso test has
3930       # not run yet.  These depmodes are late enough in the game, and
3931       # so weak that their functioning should not be impacted.
3932       am__obj=conftest.${OBJEXT-o}
3933       am__minus_obj=
3934       ;;
3935     none) break ;;
3936     esac
3937     if depmode=$depmode \
3938        source=sub/conftest.c object=$am__obj \
3939        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3941          >/dev/null 2>conftest.err &&
3942        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3945        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946       # icc doesn't choke on unknown options, it will just issue warnings
3947       # or remarks (even with -Werror).  So we grep stderr for any message
3948       # that says an option was ignored or not supported.
3949       # When given -MP, icc 7.0 and 7.1 complain thusly:
3950       #   icc: Command line warning: ignoring option '-M'; no argument required
3951       # The diagnosis changed in icc 8.0:
3952       #   icc: Command line remark: option '-MP' not supported
3953       if (grep 'ignoring option' conftest.err ||
3954           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955         am_cv_CC_dependencies_compiler_type=$depmode
3956         break
3957       fi
3958     fi
3959   done
3960
3961   cd ..
3962   rm -rf conftest.dir
3963 else
3964   am_cv_CC_dependencies_compiler_type=none
3965 fi
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3969 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3970 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3971
3972  if
3973   test "x$enable_dependency_tracking" != xno \
3974   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975   am__fastdepCC_TRUE=
3976   am__fastdepCC_FALSE='#'
3977 else
3978   am__fastdepCC_TRUE='#'
3979   am__fastdepCC_FALSE=
3980 fi
3981
3982
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3990 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3991 # On Suns, sometimes $CPP names a directory.
3992 if test -n "$CPP" && test -d "$CPP"; then
3993   CPP=
3994 fi
3995 if test -z "$CPP"; then
3996   if ${ac_cv_prog_CPP+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999       # Double quotes because CPP needs to be expanded
4000     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4001     do
4002       ac_preproc_ok=false
4003 for ac_c_preproc_warn_flag in '' yes
4004 do
4005   # Use a header file that comes with gcc, so configuring glibc
4006   # with a fresh cross-compiler works.
4007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008   # <limits.h> exists even on freestanding compilers.
4009   # On the NeXT, cc -E runs the code through the compiler's parser,
4010   # not just through cpp. "Syntax error" is here to catch this case.
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013 #ifdef __STDC__
4014 # include <limits.h>
4015 #else
4016 # include <assert.h>
4017 #endif
4018                      Syntax error
4019 _ACEOF
4020 if ac_fn_c_try_cpp "$LINENO"; then :
4021
4022 else
4023   # Broken: fails on valid input.
4024 continue
4025 fi
4026 rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028   # OK, works on sane cases.  Now check whether nonexistent headers
4029   # can be detected and how.
4030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032 #include <ac_nonexistent.h>
4033 _ACEOF
4034 if ac_fn_c_try_cpp "$LINENO"; then :
4035   # Broken: success on invalid input.
4036 continue
4037 else
4038   # Passes both tests.
4039 ac_preproc_ok=:
4040 break
4041 fi
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044 done
4045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046 rm -f conftest.i conftest.err conftest.$ac_ext
4047 if $ac_preproc_ok; then :
4048   break
4049 fi
4050
4051     done
4052     ac_cv_prog_CPP=$CPP
4053
4054 fi
4055   CPP=$ac_cv_prog_CPP
4056 else
4057   ac_cv_prog_CPP=$CPP
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060 $as_echo "$CPP" >&6; }
4061 ac_preproc_ok=false
4062 for ac_c_preproc_warn_flag in '' yes
4063 do
4064   # Use a header file that comes with gcc, so configuring glibc
4065   # with a fresh cross-compiler works.
4066   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067   # <limits.h> exists even on freestanding compilers.
4068   # On the NeXT, cc -E runs the code through the compiler's parser,
4069   # not just through cpp. "Syntax error" is here to catch this case.
4070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h.  */
4072 #ifdef __STDC__
4073 # include <limits.h>
4074 #else
4075 # include <assert.h>
4076 #endif
4077                      Syntax error
4078 _ACEOF
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4080
4081 else
4082   # Broken: fails on valid input.
4083 continue
4084 fi
4085 rm -f conftest.err conftest.i conftest.$ac_ext
4086
4087   # OK, works on sane cases.  Now check whether nonexistent headers
4088   # can be detected and how.
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 #include <ac_nonexistent.h>
4092 _ACEOF
4093 if ac_fn_c_try_cpp "$LINENO"; then :
4094   # Broken: success on invalid input.
4095 continue
4096 else
4097   # Passes both tests.
4098 ac_preproc_ok=:
4099 break
4100 fi
4101 rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103 done
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.i conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then :
4107
4108 else
4109   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112 See \`config.log' for more details" "$LINENO" 5; }
4113 fi
4114
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124 if ${ac_cv_path_GREP+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -z "$GREP"; then
4128   ac_path_GREP_found=false
4129   # Loop through the user's path and test for each of PROGNAME-LIST
4130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_prog in grep ggrep; do
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4139 # Check for GNU ac_path_GREP and select it if it is found.
4140   # Check for GNU $ac_path_GREP
4141 case `"$ac_path_GREP" --version 2>&1` in
4142 *GNU*)
4143   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144 *)
4145   ac_count=0
4146   $as_echo_n 0123456789 >"conftest.in"
4147   while :
4148   do
4149     cat "conftest.in" "conftest.in" >"conftest.tmp"
4150     mv "conftest.tmp" "conftest.in"
4151     cp "conftest.in" "conftest.nl"
4152     $as_echo 'GREP' >> "conftest.nl"
4153     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155     as_fn_arith $ac_count + 1 && ac_count=$as_val
4156     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157       # Best one so far, save it but keep looking for a better one
4158       ac_cv_path_GREP="$ac_path_GREP"
4159       ac_path_GREP_max=$ac_count
4160     fi
4161     # 10*(2^10) chars as input seems more than enough
4162     test $ac_count -gt 10 && break
4163   done
4164   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167       $ac_path_GREP_found && break 3
4168     done
4169   done
4170   done
4171 IFS=$as_save_IFS
4172   if test -z "$ac_cv_path_GREP"; then
4173     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174   fi
4175 else
4176   ac_cv_path_GREP=$GREP
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181 $as_echo "$ac_cv_path_GREP" >&6; }
4182  GREP="$ac_cv_path_GREP"
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186 $as_echo_n "checking for egrep... " >&6; }
4187 if ${ac_cv_path_EGREP+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191    then ac_cv_path_EGREP="$GREP -E"
4192    else
4193      if test -z "$EGREP"; then
4194   ac_path_EGREP_found=false
4195   # Loop through the user's path and test for each of PROGNAME-LIST
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_prog in egrep; do
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206   # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4208 *GNU*)
4209   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210 *)
4211   ac_count=0
4212   $as_echo_n 0123456789 >"conftest.in"
4213   while :
4214   do
4215     cat "conftest.in" "conftest.in" >"conftest.tmp"
4216     mv "conftest.tmp" "conftest.in"
4217     cp "conftest.in" "conftest.nl"
4218     $as_echo 'EGREP' >> "conftest.nl"
4219     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221     as_fn_arith $ac_count + 1 && ac_count=$as_val
4222     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223       # Best one so far, save it but keep looking for a better one
4224       ac_cv_path_EGREP="$ac_path_EGREP"
4225       ac_path_EGREP_max=$ac_count
4226     fi
4227     # 10*(2^10) chars as input seems more than enough
4228     test $ac_count -gt 10 && break
4229   done
4230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233       $ac_path_EGREP_found && break 3
4234     done
4235   done
4236   done
4237 IFS=$as_save_IFS
4238   if test -z "$ac_cv_path_EGREP"; then
4239     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240   fi
4241 else
4242   ac_cv_path_EGREP=$EGREP
4243 fi
4244
4245    fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249  EGREP="$ac_cv_path_EGREP"
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4253 $as_echo_n "checking for ANSI C header files... " >&6; }
4254 if ${ac_cv_header_stdc+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259 #include <stdlib.h>
4260 #include <stdarg.h>
4261 #include <string.h>
4262 #include <float.h>
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273   ac_cv_header_stdc=yes
4274 else
4275   ac_cv_header_stdc=no
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278
4279 if test $ac_cv_header_stdc = yes; then
4280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283 #include <string.h>
4284
4285 _ACEOF
4286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287   $EGREP "memchr" >/dev/null 2>&1; then :
4288
4289 else
4290   ac_cv_header_stdc=no
4291 fi
4292 rm -f conftest*
4293
4294 fi
4295
4296 if test $ac_cv_header_stdc = yes; then
4297   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300 #include <stdlib.h>
4301
4302 _ACEOF
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304   $EGREP "free" >/dev/null 2>&1; then :
4305
4306 else
4307   ac_cv_header_stdc=no
4308 fi
4309 rm -f conftest*
4310
4311 fi
4312
4313 if test $ac_cv_header_stdc = yes; then
4314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315   if test "$cross_compiling" = yes; then :
4316   :
4317 else
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320 #include <ctype.h>
4321 #include <stdlib.h>
4322 #if ((' ' & 0x0FF) == 0x020)
4323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4325 #else
4326 # define ISLOWER(c) \
4327                    (('a' <= (c) && (c) <= 'i') \
4328                      || ('j' <= (c) && (c) <= 'r') \
4329                      || ('s' <= (c) && (c) <= 'z'))
4330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4331 #endif
4332
4333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334 int
4335 main ()
4336 {
4337   int i;
4338   for (i = 0; i < 256; i++)
4339     if (XOR (islower (i), ISLOWER (i))
4340         || toupper (i) != TOUPPER (i))
4341       return 2;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_run "$LINENO"; then :
4346
4347 else
4348   ac_cv_header_stdc=no
4349 fi
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4351   conftest.$ac_objext conftest.beam conftest.$ac_ext
4352 fi
4353
4354 fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4357 $as_echo "$ac_cv_header_stdc" >&6; }
4358 if test $ac_cv_header_stdc = yes; then
4359
4360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4361
4362 fi
4363
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4366                   inttypes.h stdint.h unistd.h
4367 do :
4368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4370 "
4371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4372   cat >>confdefs.h <<_ACEOF
4373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 _ACEOF
4375
4376 fi
4377
4378 done
4379
4380
4381
4382   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4383 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4384   MINIX=yes
4385 else
4386   MINIX=
4387 fi
4388
4389
4390   if test "$MINIX" = yes; then
4391
4392 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4393
4394
4395 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4396
4397
4398 $as_echo "#define _MINIX 1" >>confdefs.h
4399
4400   fi
4401
4402
4403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4404 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4405 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h.  */
4410
4411 #         define __EXTENSIONS__ 1
4412           $ac_includes_default
4413 int
4414 main ()
4415 {
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422   ac_cv_safe_to_define___extensions__=yes
4423 else
4424   ac_cv_safe_to_define___extensions__=no
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4429 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4430   test $ac_cv_safe_to_define___extensions__ = yes &&
4431     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4432
4433   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4434
4435   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4436
4437   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4438
4439   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4440
4441
4442
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4444 $as_echo_n "checking whether NLS is requested... " >&6; }
4445     # Check whether --enable-nls was given.
4446 if test "${enable_nls+set}" = set; then :
4447   enableval=$enable_nls; USE_NLS=$enableval
4448 else
4449   USE_NLS=yes
4450 fi
4451
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4453 $as_echo "$USE_NLS" >&6; }
4454
4455
4456
4457
4458       GETTEXT_MACRO_VERSION=0.18
4459
4460
4461
4462
4463 # Prepare PATH_SEPARATOR.
4464 # The user is always right.
4465 if test "${PATH_SEPARATOR+set}" != set; then
4466   echo "#! /bin/sh" >conf$$.sh
4467   echo  "exit 0"   >>conf$$.sh
4468   chmod +x conf$$.sh
4469   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4470     PATH_SEPARATOR=';'
4471   else
4472     PATH_SEPARATOR=:
4473   fi
4474   rm -f conf$$.sh
4475 fi
4476
4477 # Find out how to test for executable files. Don't use a zero-byte file,
4478 # as systems may use methods other than mode bits to determine executability.
4479 cat >conf$$.file <<_ASEOF
4480 #! /bin/sh
4481 exit 0
4482 _ASEOF
4483 chmod +x conf$$.file
4484 if test -x conf$$.file >/dev/null 2>&1; then
4485   ac_executable_p="test -x"
4486 else
4487   ac_executable_p="test -f"
4488 fi
4489 rm -f conf$$.file
4490
4491 # Extract the first word of "msgfmt", so it can be a program name with args.
4492 set dummy msgfmt; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_path_MSGFMT+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   case "$MSGFMT" in
4499   [\\/]* | ?:[\\/]*)
4500     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4501     ;;
4502   *)
4503     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4504     for ac_dir in $PATH; do
4505       IFS="$ac_save_IFS"
4506       test -z "$ac_dir" && ac_dir=.
4507       for ac_exec_ext in '' $ac_executable_extensions; do
4508         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4509           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4510           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4511      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4512             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4513             break 2
4514           fi
4515         fi
4516       done
4517     done
4518     IFS="$ac_save_IFS"
4519   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4520     ;;
4521 esac
4522 fi
4523 MSGFMT="$ac_cv_path_MSGFMT"
4524 if test "$MSGFMT" != ":"; then
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4526 $as_echo "$MSGFMT" >&6; }
4527 else
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 fi
4531
4532   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4533 set dummy gmsgfmt; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_path_GMSGFMT+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   case $GMSGFMT in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558
4559   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4560   ;;
4561 esac
4562 fi
4563 GMSGFMT=$ac_cv_path_GMSGFMT
4564 if test -n "$GMSGFMT"; then
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4566 $as_echo "$GMSGFMT" >&6; }
4567 else
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571
4572
4573
4574     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4575     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4576     *) MSGFMT_015=$MSGFMT ;;
4577   esac
4578
4579   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4580     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4581     *) GMSGFMT_015=$GMSGFMT ;;
4582   esac
4583
4584
4585
4586 # Prepare PATH_SEPARATOR.
4587 # The user is always right.
4588 if test "${PATH_SEPARATOR+set}" != set; then
4589   echo "#! /bin/sh" >conf$$.sh
4590   echo  "exit 0"   >>conf$$.sh
4591   chmod +x conf$$.sh
4592   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4593     PATH_SEPARATOR=';'
4594   else
4595     PATH_SEPARATOR=:
4596   fi
4597   rm -f conf$$.sh
4598 fi
4599
4600 # Find out how to test for executable files. Don't use a zero-byte file,
4601 # as systems may use methods other than mode bits to determine executability.
4602 cat >conf$$.file <<_ASEOF
4603 #! /bin/sh
4604 exit 0
4605 _ASEOF
4606 chmod +x conf$$.file
4607 if test -x conf$$.file >/dev/null 2>&1; then
4608   ac_executable_p="test -x"
4609 else
4610   ac_executable_p="test -f"
4611 fi
4612 rm -f conf$$.file
4613
4614 # Extract the first word of "xgettext", so it can be a program name with args.
4615 set dummy xgettext; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_path_XGETTEXT+:} false; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   case "$XGETTEXT" in
4622   [\\/]* | ?:[\\/]*)
4623     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4624     ;;
4625   *)
4626     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4627     for ac_dir in $PATH; do
4628       IFS="$ac_save_IFS"
4629       test -z "$ac_dir" && ac_dir=.
4630       for ac_exec_ext in '' $ac_executable_extensions; do
4631         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4632           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4633           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4634      (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
4635             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4636             break 2
4637           fi
4638         fi
4639       done
4640     done
4641     IFS="$ac_save_IFS"
4642   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4643     ;;
4644 esac
4645 fi
4646 XGETTEXT="$ac_cv_path_XGETTEXT"
4647 if test "$XGETTEXT" != ":"; then
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4649 $as_echo "$XGETTEXT" >&6; }
4650 else
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655     rm -f messages.po
4656
4657     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4658     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4659     *) XGETTEXT_015=$XGETTEXT ;;
4660   esac
4661
4662
4663
4664 # Prepare PATH_SEPARATOR.
4665 # The user is always right.
4666 if test "${PATH_SEPARATOR+set}" != set; then
4667   echo "#! /bin/sh" >conf$$.sh
4668   echo  "exit 0"   >>conf$$.sh
4669   chmod +x conf$$.sh
4670   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4671     PATH_SEPARATOR=';'
4672   else
4673     PATH_SEPARATOR=:
4674   fi
4675   rm -f conf$$.sh
4676 fi
4677
4678 # Find out how to test for executable files. Don't use a zero-byte file,
4679 # as systems may use methods other than mode bits to determine executability.
4680 cat >conf$$.file <<_ASEOF
4681 #! /bin/sh
4682 exit 0
4683 _ASEOF
4684 chmod +x conf$$.file
4685 if test -x conf$$.file >/dev/null 2>&1; then
4686   ac_executable_p="test -x"
4687 else
4688   ac_executable_p="test -f"
4689 fi
4690 rm -f conf$$.file
4691
4692 # Extract the first word of "msgmerge", so it can be a program name with args.
4693 set dummy msgmerge; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_path_MSGMERGE+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   case "$MSGMERGE" in
4700   [\\/]* | ?:[\\/]*)
4701     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4702     ;;
4703   *)
4704     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4705     for ac_dir in $PATH; do
4706       IFS="$ac_save_IFS"
4707       test -z "$ac_dir" && ac_dir=.
4708       for ac_exec_ext in '' $ac_executable_extensions; do
4709         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4710           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4711           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4712             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4713             break 2
4714           fi
4715         fi
4716       done
4717     done
4718     IFS="$ac_save_IFS"
4719   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4720     ;;
4721 esac
4722 fi
4723 MSGMERGE="$ac_cv_path_MSGMERGE"
4724 if test "$MSGMERGE" != ":"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4726 $as_echo "$MSGMERGE" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732
4733         test -n "$localedir" || localedir='${datadir}/locale'
4734
4735
4736     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4737
4738
4739   ac_config_commands="$ac_config_commands po-directories"
4740
4741
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765 esac
4766 build=$ac_cv_build
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_build
4769 shift
4770 build_cpu=$1
4771 build_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 build_os=$*
4776 IFS=$ac_save_IFS
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test "x$host_alias" = x; then
4786   ac_cv_host=$ac_cv_build
4787 else
4788   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790 fi
4791
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4795 case $ac_cv_host in
4796 *-*-*) ;;
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798 esac
4799 host=$ac_cv_host
4800 ac_save_IFS=$IFS; IFS='-'
4801 set x $ac_cv_host
4802 shift
4803 host_cpu=$1
4804 host_vendor=$2
4805 shift; shift
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4808 host_os=$*
4809 IFS=$ac_save_IFS
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813
4814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4815 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4816 if ${ac_cv_gnu_library_2+:} false; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821
4822 #include <features.h>
4823 #ifdef __GNU_LIBRARY__
4824  #if (__GLIBC__ >= 2)
4825   Lucky GNU user
4826  #endif
4827 #endif
4828
4829 _ACEOF
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4832   ac_cv_gnu_library_2=yes
4833 else
4834   ac_cv_gnu_library_2=no
4835 fi
4836 rm -f conftest*
4837
4838
4839
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4842 $as_echo "$ac_cv_gnu_library_2" >&6; }
4843
4844     GLIBC2="$ac_cv_gnu_library_2"
4845
4846
4847 if test -n "$ac_tool_prefix"; then
4848   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_RANLIB+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   if test -n "$RANLIB"; then
4856   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863     for ac_exec_ext in '' $ac_executable_extensions; do
4864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867     break 2
4868   fi
4869 done
4870   done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 RANLIB=$ac_cv_prog_RANLIB
4876 if test -n "$RANLIB"; then
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4878 $as_echo "$RANLIB" >&6; }
4879 else
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884
4885 fi
4886 if test -z "$ac_cv_prog_RANLIB"; then
4887   ac_ct_RANLIB=$RANLIB
4888   # Extract the first word of "ranlib", so it can be a program name with args.
4889 set dummy ranlib; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$ac_ct_RANLIB"; then
4896   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_prog_ac_ct_RANLIB="ranlib"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4916 if test -n "$ac_ct_RANLIB"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4918 $as_echo "$ac_ct_RANLIB" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924   if test "x$ac_ct_RANLIB" = x; then
4925     RANLIB=":"
4926   else
4927     case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933     RANLIB=$ac_ct_RANLIB
4934   fi
4935 else
4936   RANLIB="$ac_cv_prog_RANLIB"
4937 fi
4938
4939
4940
4941   CFLAG_VISIBILITY=
4942   HAVE_VISIBILITY=0
4943   if test -n "$GCC"; then
4944                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4945 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4946     if ${gl_cv_cc_vis_werror+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949
4950       gl_save_CFLAGS="$CFLAGS"
4951       CFLAGS="$CFLAGS -Werror"
4952       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954
4955 int
4956 main ()
4957 {
4958
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964   gl_cv_cc_vis_werror=yes
4965 else
4966   gl_cv_cc_vis_werror=no
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969       CFLAGS="$gl_save_CFLAGS"
4970 fi
4971
4972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4973 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4975 $as_echo_n "checking for simple visibility declarations... " >&6; }
4976     if ${gl_cv_cc_visibility+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979
4980       gl_save_CFLAGS="$CFLAGS"
4981       CFLAGS="$CFLAGS -fvisibility=hidden"
4982                                     if test $gl_cv_cc_vis_werror = yes; then
4983         CFLAGS="$CFLAGS -Werror"
4984       fi
4985       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4988          extern __attribute__((__visibility__("default"))) int exportedvar;
4989          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4990          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4991          void dummyfunc (void) {}
4992 int
4993 main ()
4994 {
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001   gl_cv_cc_visibility=yes
5002 else
5003   gl_cv_cc_visibility=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006       CFLAGS="$gl_save_CFLAGS"
5007 fi
5008
5009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5010 $as_echo "$gl_cv_cc_visibility" >&6; }
5011     if test $gl_cv_cc_visibility = yes; then
5012       CFLAG_VISIBILITY="-fvisibility=hidden"
5013       HAVE_VISIBILITY=1
5014     fi
5015   fi
5016
5017
5018
5019 cat >>confdefs.h <<_ACEOF
5020 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5021 _ACEOF
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5025 $as_echo_n "checking for inline... " >&6; }
5026 if ${ac_cv_c_inline+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   ac_cv_c_inline=no
5030 for ac_kw in inline __inline__ __inline; do
5031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h.  */
5033 #ifndef __cplusplus
5034 typedef int foo_t;
5035 static $ac_kw foo_t static_foo () {return 0; }
5036 $ac_kw foo_t foo () {return 0; }
5037 #endif
5038
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041   ac_cv_c_inline=$ac_kw
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044   test "$ac_cv_c_inline" != no && break
5045 done
5046
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5049 $as_echo "$ac_cv_c_inline" >&6; }
5050
5051 case $ac_cv_c_inline in
5052   inline | yes) ;;
5053   *)
5054     case $ac_cv_c_inline in
5055       no) ac_val=;;
5056       *) ac_val=$ac_cv_c_inline;;
5057     esac
5058     cat >>confdefs.h <<_ACEOF
5059 #ifndef __cplusplus
5060 #define inline $ac_val
5061 #endif
5062 _ACEOF
5063     ;;
5064 esac
5065
5066 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5067 if test "x$ac_cv_type_size_t" = xyes; then :
5068
5069 else
5070
5071 cat >>confdefs.h <<_ACEOF
5072 #define size_t unsigned int
5073 _ACEOF
5074
5075 fi
5076
5077
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5079 $as_echo_n "checking for stdint.h... " >&6; }
5080 if ${gl_cv_header_stdint_h+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h.  */
5085 #include <sys/types.h>
5086 #include <stdint.h>
5087 int
5088 main ()
5089 {
5090 uintmax_t i = (uintmax_t) -1; return !i;
5091   ;
5092   return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096   gl_cv_header_stdint_h=yes
5097 else
5098   gl_cv_header_stdint_h=no
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5103 $as_echo "$gl_cv_header_stdint_h" >&6; }
5104   if test $gl_cv_header_stdint_h = yes; then
5105
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_STDINT_H_WITH_UINTMAX 1
5108 _ACEOF
5109
5110   fi
5111
5112 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5113 # for constant arguments.  Useless!
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5115 $as_echo_n "checking for working alloca.h... " >&6; }
5116 if ${ac_cv_working_alloca_h+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121 #include <alloca.h>
5122 int
5123 main ()
5124 {
5125 char *p = (char *) alloca (2 * sizeof (int));
5126                           if (p) return 0;
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 if ac_fn_c_try_link "$LINENO"; then :
5132   ac_cv_working_alloca_h=yes
5133 else
5134   ac_cv_working_alloca_h=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext \
5137     conftest$ac_exeext conftest.$ac_ext
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5140 $as_echo "$ac_cv_working_alloca_h" >&6; }
5141 if test $ac_cv_working_alloca_h = yes; then
5142
5143 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5144
5145 fi
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5148 $as_echo_n "checking for alloca... " >&6; }
5149 if ${ac_cv_func_alloca_works+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h.  */
5154 #ifdef __GNUC__
5155 # define alloca __builtin_alloca
5156 #else
5157 # ifdef _MSC_VER
5158 #  include <malloc.h>
5159 #  define alloca _alloca
5160 # else
5161 #  ifdef HAVE_ALLOCA_H
5162 #   include <alloca.h>
5163 #  else
5164 #   ifdef _AIX
5165  #pragma alloca
5166 #   else
5167 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5168 void *alloca (size_t);
5169 #    endif
5170 #   endif
5171 #  endif
5172 # endif
5173 #endif
5174
5175 int
5176 main ()
5177 {
5178 char *p = (char *) alloca (1);
5179                                     if (p) return 0;
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_link "$LINENO"; then :
5185   ac_cv_func_alloca_works=yes
5186 else
5187   ac_cv_func_alloca_works=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext \
5190     conftest$ac_exeext conftest.$ac_ext
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5193 $as_echo "$ac_cv_func_alloca_works" >&6; }
5194
5195 if test $ac_cv_func_alloca_works = yes; then
5196
5197 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5198
5199 else
5200   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5201 # that cause trouble.  Some versions do not even contain alloca or
5202 # contain a buggy version.  If you still want to use their alloca,
5203 # use ar to extract alloca.o from them instead of compiling alloca.c.
5204
5205 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5206
5207 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5211 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5212 if ${ac_cv_os_cray+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h.  */
5217 #if defined CRAY && ! defined CRAY2
5218 webecray
5219 #else
5220 wenotbecray
5221 #endif
5222
5223 _ACEOF
5224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225   $EGREP "webecray" >/dev/null 2>&1; then :
5226   ac_cv_os_cray=yes
5227 else
5228   ac_cv_os_cray=no
5229 fi
5230 rm -f conftest*
5231
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5234 $as_echo "$ac_cv_os_cray" >&6; }
5235 if test $ac_cv_os_cray = yes; then
5236   for ac_func in _getb67 GETB67 getb67; do
5237     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5240
5241 cat >>confdefs.h <<_ACEOF
5242 #define CRAY_STACKSEG_END $ac_func
5243 _ACEOF
5244
5245     break
5246 fi
5247
5248   done
5249 fi
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5252 $as_echo_n "checking stack direction for C alloca... " >&6; }
5253 if ${ac_cv_c_stack_direction+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test "$cross_compiling" = yes; then :
5257   ac_cv_c_stack_direction=0
5258 else
5259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261 $ac_includes_default
5262 int
5263 find_stack_direction ()
5264 {
5265   static char *addr = 0;
5266   auto char dummy;
5267   if (addr == 0)
5268     {
5269       addr = &dummy;
5270       return find_stack_direction ();
5271     }
5272   else
5273     return (&dummy > addr) ? 1 : -1;
5274 }
5275
5276 int
5277 main ()
5278 {
5279   return find_stack_direction () < 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_run "$LINENO"; then :
5283   ac_cv_c_stack_direction=1
5284 else
5285   ac_cv_c_stack_direction=-1
5286 fi
5287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5288   conftest.$ac_objext conftest.beam conftest.$ac_ext
5289 fi
5290
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5293 $as_echo "$ac_cv_c_stack_direction" >&6; }
5294 cat >>confdefs.h <<_ACEOF
5295 #define STACK_DIRECTION $ac_cv_c_stack_direction
5296 _ACEOF
5297
5298
5299 fi
5300
5301
5302
5303
5304   for ac_header in $ac_header_list
5305 do :
5306   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5308 "
5309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5310   cat >>confdefs.h <<_ACEOF
5311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5312 _ACEOF
5313
5314 fi
5315
5316 done
5317
5318
5319
5320
5321
5322
5323
5324
5325 for ac_func in getpagesize
5326 do :
5327   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5328 if test "x$ac_cv_func_getpagesize" = xyes; then :
5329   cat >>confdefs.h <<_ACEOF
5330 #define HAVE_GETPAGESIZE 1
5331 _ACEOF
5332
5333 fi
5334 done
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5337 $as_echo_n "checking for working mmap... " >&6; }
5338 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test "$cross_compiling" = yes; then :
5342   ac_cv_func_mmap_fixed_mapped=no
5343 else
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 $ac_includes_default
5347 /* malloc might have been renamed as rpl_malloc. */
5348 #undef malloc
5349
5350 /* Thanks to Mike Haertel and Jim Avera for this test.
5351    Here is a matrix of mmap possibilities:
5352         mmap private not fixed
5353         mmap private fixed at somewhere currently unmapped
5354         mmap private fixed at somewhere already mapped
5355         mmap shared not fixed
5356         mmap shared fixed at somewhere currently unmapped
5357         mmap shared fixed at somewhere already mapped
5358    For private mappings, we should verify that changes cannot be read()
5359    back from the file, nor mmap's back from the file at a different
5360    address.  (There have been systems where private was not correctly
5361    implemented like the infamous i386 svr4.0, and systems where the
5362    VM page cache was not coherent with the file system buffer cache
5363    like early versions of FreeBSD and possibly contemporary NetBSD.)
5364    For shared mappings, we should conversely verify that changes get
5365    propagated back to all the places they're supposed to be.
5366
5367    Grep wants private fixed already mapped.
5368    The main things grep needs to know about mmap are:
5369    * does it exist and is it safe to write into the mmap'd area
5370    * how to use it (BSD variants)  */
5371
5372 #include <fcntl.h>
5373 #include <sys/mman.h>
5374
5375 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5376 char *malloc ();
5377 #endif
5378
5379 /* This mess was copied from the GNU getpagesize.h.  */
5380 #ifndef HAVE_GETPAGESIZE
5381 # ifdef _SC_PAGESIZE
5382 #  define getpagesize() sysconf(_SC_PAGESIZE)
5383 # else /* no _SC_PAGESIZE */
5384 #  ifdef HAVE_SYS_PARAM_H
5385 #   include <sys/param.h>
5386 #   ifdef EXEC_PAGESIZE
5387 #    define getpagesize() EXEC_PAGESIZE
5388 #   else /* no EXEC_PAGESIZE */
5389 #    ifdef NBPG
5390 #     define getpagesize() NBPG * CLSIZE
5391 #     ifndef CLSIZE
5392 #      define CLSIZE 1
5393 #     endif /* no CLSIZE */
5394 #    else /* no NBPG */
5395 #     ifdef NBPC
5396 #      define getpagesize() NBPC
5397 #     else /* no NBPC */
5398 #      ifdef PAGESIZE
5399 #       define getpagesize() PAGESIZE
5400 #      endif /* PAGESIZE */
5401 #     endif /* no NBPC */
5402 #    endif /* no NBPG */
5403 #   endif /* no EXEC_PAGESIZE */
5404 #  else /* no HAVE_SYS_PARAM_H */
5405 #   define getpagesize() 8192   /* punt totally */
5406 #  endif /* no HAVE_SYS_PARAM_H */
5407 # endif /* no _SC_PAGESIZE */
5408
5409 #endif /* no HAVE_GETPAGESIZE */
5410
5411 int
5412 main ()
5413 {
5414   char *data, *data2, *data3;
5415   const char *cdata2;
5416   int i, pagesize;
5417   int fd, fd2;
5418
5419   pagesize = getpagesize ();
5420
5421   /* First, make a file with some known garbage in it. */
5422   data = (char *) malloc (pagesize);
5423   if (!data)
5424     return 1;
5425   for (i = 0; i < pagesize; ++i)
5426     *(data + i) = rand ();
5427   umask (0);
5428   fd = creat ("conftest.mmap", 0600);
5429   if (fd < 0)
5430     return 2;
5431   if (write (fd, data, pagesize) != pagesize)
5432     return 3;
5433   close (fd);
5434
5435   /* Next, check that the tail of a page is zero-filled.  File must have
5436      non-zero length, otherwise we risk SIGBUS for entire page.  */
5437   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5438   if (fd2 < 0)
5439     return 4;
5440   cdata2 = "";
5441   if (write (fd2, cdata2, 1) != 1)
5442     return 5;
5443   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5444   if (data2 == MAP_FAILED)
5445     return 6;
5446   for (i = 0; i < pagesize; ++i)
5447     if (*(data2 + i))
5448       return 7;
5449   close (fd2);
5450   if (munmap (data2, pagesize))
5451     return 8;
5452
5453   /* Next, try to mmap the file at a fixed address which already has
5454      something else allocated at it.  If we can, also make sure that
5455      we see the same garbage.  */
5456   fd = open ("conftest.mmap", O_RDWR);
5457   if (fd < 0)
5458     return 9;
5459   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5460                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5461     return 10;
5462   for (i = 0; i < pagesize; ++i)
5463     if (*(data + i) != *(data2 + i))
5464       return 11;
5465
5466   /* Finally, make sure that changes to the mapped area do not
5467      percolate back to the file as seen by read().  (This is a bug on
5468      some variants of i386 svr4.0.)  */
5469   for (i = 0; i < pagesize; ++i)
5470     *(data2 + i) = *(data2 + i) + 1;
5471   data3 = (char *) malloc (pagesize);
5472   if (!data3)
5473     return 12;
5474   if (read (fd, data3, pagesize) != pagesize)
5475     return 13;
5476   for (i = 0; i < pagesize; ++i)
5477     if (*(data + i) != *(data3 + i))
5478       return 14;
5479   close (fd);
5480   return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_run "$LINENO"; then :
5484   ac_cv_func_mmap_fixed_mapped=yes
5485 else
5486   ac_cv_func_mmap_fixed_mapped=no
5487 fi
5488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5489   conftest.$ac_objext conftest.beam conftest.$ac_ext
5490 fi
5491
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5494 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5496
5497 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5498
5499 fi
5500 rm -f conftest.mmap conftest.txt
5501
5502
5503
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5505 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5506 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509
5510       gt_cv_int_divbyzero_sigfpe=
5511       case "$host_os" in
5512         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5513           # On MacOS X 10.2 or newer, just assume the same as when cross-
5514           # compiling. If we were to perform the real test, 1 Crash Report
5515           # dialog window would pop up.
5516           case "$host_cpu" in
5517             i[34567]86 | x86_64)
5518               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5519           esac
5520           ;;
5521       esac
5522       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5523         if test "$cross_compiling" = yes; then :
5524
5525             # Guess based on the CPU.
5526             case "$host_cpu" in
5527               alpha* | i[34567]86 | x86_64 | m68k | s390*)
5528                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5529               *)
5530                 gt_cv_int_divbyzero_sigfpe="guessing no";;
5531             esac
5532
5533 else
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536
5537 #include <stdlib.h>
5538 #include <signal.h>
5539
5540 static void
5541 sigfpe_handler (int sig)
5542 {
5543   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5544   exit (sig != SIGFPE);
5545 }
5546
5547 int x = 1;
5548 int y = 0;
5549 int z;
5550 int nan;
5551
5552 int main ()
5553 {
5554   signal (SIGFPE, sigfpe_handler);
5555 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5556 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5557   signal (SIGTRAP, sigfpe_handler);
5558 #endif
5559 /* Linux/SPARC yields signal SIGILL.  */
5560 #if defined (__sparc__) && defined (__linux__)
5561   signal (SIGILL, sigfpe_handler);
5562 #endif
5563
5564   z = x / y;
5565   nan = y / y;
5566   exit (1);
5567 }
5568
5569 _ACEOF
5570 if ac_fn_c_try_run "$LINENO"; then :
5571   gt_cv_int_divbyzero_sigfpe=yes
5572 else
5573   gt_cv_int_divbyzero_sigfpe=no
5574 fi
5575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5576   conftest.$ac_objext conftest.beam conftest.$ac_ext
5577 fi
5578
5579       fi
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5583 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5584   case "$gt_cv_int_divbyzero_sigfpe" in
5585     *yes) value=1;;
5586     *) value=0;;
5587   esac
5588
5589 cat >>confdefs.h <<_ACEOF
5590 #define INTDIV0_RAISES_SIGFPE $value
5591 _ACEOF
5592
5593
5594
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5596 $as_echo_n "checking for inttypes.h... " >&6; }
5597 if ${gl_cv_header_inttypes_h+:} false; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #include <sys/types.h>
5603 #include <inttypes.h>
5604 int
5605 main ()
5606 {
5607 uintmax_t i = (uintmax_t) -1; return !i;
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613   gl_cv_header_inttypes_h=yes
5614 else
5615   gl_cv_header_inttypes_h=no
5616 fi
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5620 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5621   if test $gl_cv_header_inttypes_h = yes; then
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5625 _ACEOF
5626
5627   fi
5628
5629
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5631 $as_echo_n "checking for unsigned long long int... " >&6; }
5632 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637
5638   /* For now, do not test the preprocessor; as of 2007 there are too many
5639          implementations with broken preprocessors.  Perhaps this can
5640          be revisited in 2012.  In the meantime, code should not expect
5641          #if to work with literals wider than 32 bits.  */
5642       /* Test literals.  */
5643       long long int ll = 9223372036854775807ll;
5644       long long int nll = -9223372036854775807LL;
5645       unsigned long long int ull = 18446744073709551615ULL;
5646       /* Test constant expressions.   */
5647       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5648                      ? 1 : -1)];
5649       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5650                      ? 1 : -1)];
5651       int i = 63;
5652 int
5653 main ()
5654 {
5655 /* Test availability of runtime routines for shift and division.  */
5656       long long int llmax = 9223372036854775807ll;
5657       unsigned long long int ullmax = 18446744073709551615ull;
5658       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5659               | (llmax / ll) | (llmax % ll)
5660               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5661               | (ullmax / ull) | (ullmax % ull));
5662   ;
5663   return 0;
5664 }
5665
5666 _ACEOF
5667 if ac_fn_c_try_link "$LINENO"; then :
5668   ac_cv_type_unsigned_long_long_int=yes
5669 else
5670   ac_cv_type_unsigned_long_long_int=no
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext \
5673     conftest$ac_exeext conftest.$ac_ext
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5676 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5677   if test $ac_cv_type_unsigned_long_long_int = yes; then
5678
5679 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5680
5681   fi
5682
5683
5684
5685
5686   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5687
5688     test $ac_cv_type_unsigned_long_long_int = yes \
5689       && ac_type='unsigned long long' \
5690       || ac_type='unsigned long'
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define uintmax_t $ac_type
5694 _ACEOF
5695
5696   else
5697
5698 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5699
5700   fi
5701
5702
5703   for ac_header in inttypes.h
5704 do :
5705   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5706 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5707   cat >>confdefs.h <<_ACEOF
5708 #define HAVE_INTTYPES_H 1
5709 _ACEOF
5710
5711 fi
5712
5713 done
5714
5715   if test $ac_cv_header_inttypes_h = yes; then
5716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5717 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5718 if ${gt_cv_inttypes_pri_broken+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721
5722         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h.  */
5724 #include <inttypes.h>
5725 #ifdef PRId32
5726 char *p = PRId32;
5727 #endif
5728
5729 int
5730 main ()
5731 {
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738   gt_cv_inttypes_pri_broken=no
5739 else
5740   gt_cv_inttypes_pri_broken=yes
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5746 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5747   fi
5748   if test "$gt_cv_inttypes_pri_broken" = yes; then
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define PRI_MACROS_BROKEN 1
5752 _ACEOF
5753
5754     PRI_MACROS_BROKEN=1
5755   else
5756     PRI_MACROS_BROKEN=0
5757   fi
5758
5759
5760
5761
5762
5763
5764
5765   # Check whether --enable-threads was given.
5766 if test "${enable_threads+set}" = set; then :
5767   enableval=$enable_threads; gl_use_threads=$enableval
5768 else
5769   if test -n "$gl_use_threads_default"; then
5770        gl_use_threads="$gl_use_threads_default"
5771      else
5772        case "$host_os" in
5773                                                                osf*) gl_use_threads=no ;;
5774          cygwin*)
5775                case `uname -r` in
5776                  1.[0-5].*) gl_use_threads=no ;;
5777                  *)         gl_use_threads=yes ;;
5778                esac
5779                ;;
5780          *)    gl_use_threads=yes ;;
5781        esac
5782      fi
5783
5784 fi
5785
5786   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5787     # For using <pthread.h>:
5788     case "$host_os" in
5789       osf*)
5790         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5791         # groks <pthread.h>. cc also understands the flag -pthread, but
5792         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5793         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5794         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5795         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5796         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5797         ;;
5798     esac
5799     # Some systems optimize for single-threaded programs by default, and
5800     # need special flags to disable these optimizations. For example, the
5801     # definition of 'errno' in <errno.h>.
5802     case "$host_os" in
5803       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5804       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5805     esac
5806   fi
5807
5808
5809
5810
5811
5812       if test "X$prefix" = "XNONE"; then
5813     acl_final_prefix="$ac_default_prefix"
5814   else
5815     acl_final_prefix="$prefix"
5816   fi
5817   if test "X$exec_prefix" = "XNONE"; then
5818     acl_final_exec_prefix='${prefix}'
5819   else
5820     acl_final_exec_prefix="$exec_prefix"
5821   fi
5822   acl_save_prefix="$prefix"
5823   prefix="$acl_final_prefix"
5824   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5825   prefix="$acl_save_prefix"
5826
5827
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5831 else
5832   with_gnu_ld=no
5833 fi
5834
5835 # Prepare PATH_SEPARATOR.
5836 # The user is always right.
5837 if test "${PATH_SEPARATOR+set}" != set; then
5838   echo "#! /bin/sh" >conf$$.sh
5839   echo  "exit 0"   >>conf$$.sh
5840   chmod +x conf$$.sh
5841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5842     PATH_SEPARATOR=';'
5843   else
5844     PATH_SEPARATOR=:
5845   fi
5846   rm -f conf$$.sh
5847 fi
5848 ac_prog=ld
5849 if test "$GCC" = yes; then
5850   # Check if gcc -print-prog-name=ld gives a path.
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5852 $as_echo_n "checking for ld used by GCC... " >&6; }
5853   case $host in
5854   *-*-mingw*)
5855     # gcc leaves a trailing carriage return which upsets mingw
5856     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5857   *)
5858     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5859   esac
5860   case $ac_prog in
5861     # Accept absolute paths.
5862     [\\/]* | [A-Za-z]:[\\/]*)
5863       re_direlt='/[^/][^/]*/\.\./'
5864       # Canonicalize the path of ld
5865       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5866       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5867         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5868       done
5869       test -z "$LD" && LD="$ac_prog"
5870       ;;
5871   "")
5872     # If it fails, then pretend we aren't using GCC.
5873     ac_prog=ld
5874     ;;
5875   *)
5876     # If it is relative, then search for the first ld in PATH.
5877     with_gnu_ld=unknown
5878     ;;
5879   esac
5880 elif test "$with_gnu_ld" = yes; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5882 $as_echo_n "checking for GNU ld... " >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5885 $as_echo_n "checking for non-GNU ld... " >&6; }
5886 fi
5887 if ${acl_cv_path_LD+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -z "$LD"; then
5891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5892   for ac_dir in $PATH; do
5893     test -z "$ac_dir" && ac_dir=.
5894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895       acl_cv_path_LD="$ac_dir/$ac_prog"
5896       # Check to see if the program is GNU ld.  I'd rather use --version,
5897       # but apparently some GNU ld's only accept -v.
5898       # Break only if it was the GNU/non-GNU ld that we prefer.
5899       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5900       *GNU* | *'with BFD'*)
5901         test "$with_gnu_ld" != no && break ;;
5902       *)
5903         test "$with_gnu_ld" != yes && break ;;
5904       esac
5905     fi
5906   done
5907   IFS="$ac_save_ifs"
5908 else
5909   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5910 fi
5911 fi
5912
5913 LD="$acl_cv_path_LD"
5914 if test -n "$LD"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5916 $as_echo "$LD" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5923 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5924 if ${acl_cv_prog_gnu_ld+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5928 case `$LD -v 2>&1 </dev/null` in
5929 *GNU* | *'with BFD'*)
5930   acl_cv_prog_gnu_ld=yes ;;
5931 *)
5932   acl_cv_prog_gnu_ld=no ;;
5933 esac
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5936 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5937 with_gnu_ld=$acl_cv_prog_gnu_ld
5938
5939
5940
5941
5942                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5943 $as_echo_n "checking for shared library run path origin... " >&6; }
5944 if ${acl_cv_rpath+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947
5948     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5949     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5950     . ./conftest.sh
5951     rm -f ./conftest.sh
5952     acl_cv_rpath=done
5953
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5956 $as_echo "$acl_cv_rpath" >&6; }
5957   wl="$acl_cv_wl"
5958   acl_libext="$acl_cv_libext"
5959   acl_shlibext="$acl_cv_shlibext"
5960   acl_libname_spec="$acl_cv_libname_spec"
5961   acl_library_names_spec="$acl_cv_library_names_spec"
5962   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5963   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5964   acl_hardcode_direct="$acl_cv_hardcode_direct"
5965   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5966     # Check whether --enable-rpath was given.
5967 if test "${enable_rpath+set}" = set; then :
5968   enableval=$enable_rpath; :
5969 else
5970   enable_rpath=yes
5971 fi
5972
5973
5974
5975
5976   acl_libdirstem=lib
5977   acl_libdirstem2=
5978   case "$host_os" in
5979     solaris*)
5980                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5981 $as_echo_n "checking for 64-bit host... " >&6; }
5982 if ${gl_cv_solaris_64bit+:} false; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988 #ifdef _LP64
5989 sixtyfour bits
5990 #endif
5991
5992 _ACEOF
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5995   gl_cv_solaris_64bit=yes
5996 else
5997   gl_cv_solaris_64bit=no
5998 fi
5999 rm -f conftest*
6000
6001
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6004 $as_echo "$gl_cv_solaris_64bit" >&6; }
6005       if test $gl_cv_solaris_64bit = yes; then
6006         acl_libdirstem=lib/64
6007         case "$host_cpu" in
6008           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6009           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6010         esac
6011       fi
6012       ;;
6013     *)
6014       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6015       if test -n "$searchpath"; then
6016         acl_save_IFS="${IFS=    }"; IFS=":"
6017         for searchdir in $searchpath; do
6018           if test -d "$searchdir"; then
6019             case "$searchdir" in
6020               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6021               */../ | */.. )
6022                 # Better ignore directories of this form. They are misleading.
6023                 ;;
6024               *) searchdir=`cd "$searchdir" && pwd`
6025                  case "$searchdir" in
6026                    */lib64 ) acl_libdirstem=lib64 ;;
6027                  esac ;;
6028             esac
6029           fi
6030         done
6031         IFS="$acl_save_IFS"
6032       fi
6033       ;;
6034   esac
6035   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6036
6037
6038
6039   gl_threads_api=none
6040   LIBTHREAD=
6041   LTLIBTHREAD=
6042   LIBMULTITHREAD=
6043   LTLIBMULTITHREAD=
6044   if test "$gl_use_threads" != no; then
6045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6046 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6047 if ${gl_cv_have_weak+:} false; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   gl_cv_have_weak=no
6051               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h.  */
6053 extern void xyzzy ();
6054 #pragma weak xyzzy
6055 int
6056 main ()
6057 {
6058 xyzzy();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064   gl_cv_have_weak=maybe
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext \
6067     conftest$ac_exeext conftest.$ac_ext
6068        if test $gl_cv_have_weak = maybe; then
6069                            if test "$cross_compiling" = yes; then :
6070                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h.  */
6072 #ifdef __ELF__
6073                Extensible Linking Format
6074                #endif
6075
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6079   gl_cv_have_weak="guessing yes"
6080 else
6081   gl_cv_have_weak="guessing no"
6082 fi
6083 rm -f conftest*
6084
6085
6086 else
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089
6090 #include <stdio.h>
6091 #pragma weak fputs
6092 int main ()
6093 {
6094   return (fputs == NULL);
6095 }
6096 _ACEOF
6097 if ac_fn_c_try_run "$LINENO"; then :
6098   gl_cv_have_weak=yes
6099 else
6100   gl_cv_have_weak=no
6101 fi
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6103   conftest.$ac_objext conftest.beam conftest.$ac_ext
6104 fi
6105
6106        fi
6107
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6110 $as_echo "$gl_cv_have_weak" >&6; }
6111     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6112       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6113       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6114       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6115 if test "x$ac_cv_header_pthread_h" = xyes; then :
6116   gl_have_pthread_h=yes
6117 else
6118   gl_have_pthread_h=no
6119 fi
6120
6121
6122       if test "$gl_have_pthread_h" = yes; then
6123         # Other possible tests:
6124         #   -lpthreads (FSU threads, PCthreads)
6125         #   -lgthreads
6126         gl_have_pthread=
6127         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6128         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6129         # the second one only in libpthread, and lock.c needs it.
6130         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132 #include <pthread.h>
6133 int
6134 main ()
6135 {
6136 pthread_mutex_lock((pthread_mutex_t*)0);
6137            pthread_mutexattr_init((pthread_mutexattr_t*)0);
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"; then :
6143   gl_have_pthread=yes
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146     conftest$ac_exeext conftest.$ac_ext
6147         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6148         # since it is defined as a macro on OSF/1.)
6149         if test -n "$gl_have_pthread"; then
6150           # The program links fine without libpthread. But it may actually
6151           # need to link with libpthread in order to create multiple threads.
6152           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6153 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6154 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6155   $as_echo_n "(cached) " >&6
6156 else
6157   ac_check_lib_save_LIBS=$LIBS
6158 LIBS="-lpthread  $LIBS"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161
6162 /* Override any GCC internal prototype to avoid an error.
6163    Use char because int might match the return type of a GCC
6164    builtin and then its argument prototype would still apply.  */
6165 #ifdef __cplusplus
6166 extern "C"
6167 #endif
6168 char pthread_kill ();
6169 int
6170 main ()
6171 {
6172 return pthread_kill ();
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178   ac_cv_lib_pthread_pthread_kill=yes
6179 else
6180   ac_cv_lib_pthread_pthread_kill=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext \
6183     conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6187 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6188 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6189   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6190              # On Solaris and HP-UX, most pthread functions exist also in libc.
6191              # Therefore pthread_in_use() needs to actually try to create a
6192              # thread: pthread_create from libc will fail, whereas
6193              # pthread_create will actually create a thread.
6194              case "$host_os" in
6195                solaris* | hpux*)
6196
6197 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6198
6199              esac
6200
6201 fi
6202
6203         else
6204           # Some library is needed. Try libpthread and libc_r.
6205           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6206 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6207 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   ac_check_lib_save_LIBS=$LIBS
6211 LIBS="-lpthread  $LIBS"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h.  */
6214
6215 /* Override any GCC internal prototype to avoid an error.
6216    Use char because int might match the return type of a GCC
6217    builtin and then its argument prototype would still apply.  */
6218 #ifdef __cplusplus
6219 extern "C"
6220 #endif
6221 char pthread_kill ();
6222 int
6223 main ()
6224 {
6225 return pthread_kill ();
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"; then :
6231   ac_cv_lib_pthread_pthread_kill=yes
6232 else
6233   ac_cv_lib_pthread_pthread_kill=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext \
6236     conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6240 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6241 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6242   gl_have_pthread=yes
6243              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6244              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6245 fi
6246
6247           if test -z "$gl_have_pthread"; then
6248             # For FreeBSD 4.
6249             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6250 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6251 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-lc_r  $LIBS"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h.  */
6258
6259 /* Override any GCC internal prototype to avoid an error.
6260    Use char because int might match the return type of a GCC
6261    builtin and then its argument prototype would still apply.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char pthread_kill ();
6266 int
6267 main ()
6268 {
6269 return pthread_kill ();
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275   ac_cv_lib_c_r_pthread_kill=yes
6276 else
6277   ac_cv_lib_c_r_pthread_kill=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280     conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6284 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6285 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6286   gl_have_pthread=yes
6287                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6288                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6289 fi
6290
6291           fi
6292         fi
6293         if test -n "$gl_have_pthread"; then
6294           gl_threads_api=posix
6295
6296 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6297
6298           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6299             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6300
6301 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6302
6303               LIBTHREAD=
6304               LTLIBTHREAD=
6305             fi
6306           fi
6307         fi
6308       fi
6309     fi
6310     if test -z "$gl_have_pthread"; then
6311       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6312         gl_have_solaristhread=
6313         gl_save_LIBS="$LIBS"
6314         LIBS="$LIBS -lthread"
6315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317 #include <thread.h>
6318 #include <synch.h>
6319 int
6320 main ()
6321 {
6322 thr_self();
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_link "$LINENO"; then :
6328   gl_have_solaristhread=yes
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext \
6331     conftest$ac_exeext conftest.$ac_ext
6332         LIBS="$gl_save_LIBS"
6333         if test -n "$gl_have_solaristhread"; then
6334           gl_threads_api=solaris
6335           LIBTHREAD=-lthread
6336           LTLIBTHREAD=-lthread
6337           LIBMULTITHREAD="$LIBTHREAD"
6338           LTLIBMULTITHREAD="$LTLIBTHREAD"
6339
6340 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6341
6342           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6343
6344 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6345
6346             LIBTHREAD=
6347             LTLIBTHREAD=
6348           fi
6349         fi
6350       fi
6351     fi
6352     if test "$gl_use_threads" = pth; then
6353       gl_save_CPPFLAGS="$CPPFLAGS"
6354
6355
6356
6357
6358
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6360 $as_echo_n "checking how to link with libpth... " >&6; }
6361 if ${ac_cv_libpth_libs+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364
6365
6366
6367
6368
6369
6370
6371
6372     use_additional=yes
6373
6374   acl_save_prefix="$prefix"
6375   prefix="$acl_final_prefix"
6376   acl_save_exec_prefix="$exec_prefix"
6377   exec_prefix="$acl_final_exec_prefix"
6378
6379     eval additional_includedir=\"$includedir\"
6380     eval additional_libdir=\"$libdir\"
6381
6382   exec_prefix="$acl_save_exec_prefix"
6383   prefix="$acl_save_prefix"
6384
6385
6386 # Check whether --with-libpth-prefix was given.
6387 if test "${with_libpth_prefix+set}" = set; then :
6388   withval=$with_libpth_prefix;
6389     if test "X$withval" = "Xno"; then
6390       use_additional=no
6391     else
6392       if test "X$withval" = "X"; then
6393
6394   acl_save_prefix="$prefix"
6395   prefix="$acl_final_prefix"
6396   acl_save_exec_prefix="$exec_prefix"
6397   exec_prefix="$acl_final_exec_prefix"
6398
6399           eval additional_includedir=\"$includedir\"
6400           eval additional_libdir=\"$libdir\"
6401
6402   exec_prefix="$acl_save_exec_prefix"
6403   prefix="$acl_save_prefix"
6404
6405       else
6406         additional_includedir="$withval/include"
6407         additional_libdir="$withval/$acl_libdirstem"
6408         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6409            && ! test -d "$withval/$acl_libdirstem"; then
6410           additional_libdir="$withval/$acl_libdirstem2"
6411         fi
6412       fi
6413     fi
6414
6415 fi
6416
6417       LIBPTH=
6418   LTLIBPTH=
6419   INCPTH=
6420   LIBPTH_PREFIX=
6421       HAVE_LIBPTH=
6422   rpathdirs=
6423   ltrpathdirs=
6424   names_already_handled=
6425   names_next_round='pth '
6426   while test -n "$names_next_round"; do
6427     names_this_round="$names_next_round"
6428     names_next_round=
6429     for name in $names_this_round; do
6430       already_handled=
6431       for n in $names_already_handled; do
6432         if test "$n" = "$name"; then
6433           already_handled=yes
6434           break
6435         fi
6436       done
6437       if test -z "$already_handled"; then
6438         names_already_handled="$names_already_handled $name"
6439                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6440         eval value=\"\$HAVE_LIB$uppername\"
6441         if test -n "$value"; then
6442           if test "$value" = yes; then
6443             eval value=\"\$LIB$uppername\"
6444             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6445             eval value=\"\$LTLIB$uppername\"
6446             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6447           else
6448                                     :
6449           fi
6450         else
6451                               found_dir=
6452           found_la=
6453           found_so=
6454           found_a=
6455           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6456           if test -n "$acl_shlibext"; then
6457             shrext=".$acl_shlibext"             # typically: shrext=.so
6458           else
6459             shrext=
6460           fi
6461           if test $use_additional = yes; then
6462             dir="$additional_libdir"
6463                                     if test -n "$acl_shlibext"; then
6464               if test -f "$dir/$libname$shrext"; then
6465                 found_dir="$dir"
6466                 found_so="$dir/$libname$shrext"
6467               else
6468                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6469                   ver=`(cd "$dir" && \
6470                         for f in "$libname$shrext".*; do echo "$f"; done \
6471                         | sed -e "s,^$libname$shrext\\\\.,," \
6472                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6473                         | sed 1q ) 2>/dev/null`
6474                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6475                     found_dir="$dir"
6476                     found_so="$dir/$libname$shrext.$ver"
6477                   fi
6478                 else
6479                   eval library_names=\"$acl_library_names_spec\"
6480                   for f in $library_names; do
6481                     if test -f "$dir/$f"; then
6482                       found_dir="$dir"
6483                       found_so="$dir/$f"
6484                       break
6485                     fi
6486                   done
6487                 fi
6488               fi
6489             fi
6490                         if test "X$found_dir" = "X"; then
6491               if test -f "$dir/$libname.$acl_libext"; then
6492                 found_dir="$dir"
6493                 found_a="$dir/$libname.$acl_libext"
6494               fi
6495             fi
6496             if test "X$found_dir" != "X"; then
6497               if test -f "$dir/$libname.la"; then
6498                 found_la="$dir/$libname.la"
6499               fi
6500             fi
6501           fi
6502           if test "X$found_dir" = "X"; then
6503             for x in $LDFLAGS $LTLIBPTH; do
6504
6505   acl_save_prefix="$prefix"
6506   prefix="$acl_final_prefix"
6507   acl_save_exec_prefix="$exec_prefix"
6508   exec_prefix="$acl_final_exec_prefix"
6509   eval x=\"$x\"
6510   exec_prefix="$acl_save_exec_prefix"
6511   prefix="$acl_save_prefix"
6512
6513               case "$x" in
6514                 -L*)
6515                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6516                                     if test -n "$acl_shlibext"; then
6517                     if test -f "$dir/$libname$shrext"; then
6518                       found_dir="$dir"
6519                       found_so="$dir/$libname$shrext"
6520                     else
6521                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6522                         ver=`(cd "$dir" && \
6523                               for f in "$libname$shrext".*; do echo "$f"; done \
6524                               | sed -e "s,^$libname$shrext\\\\.,," \
6525                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6526                               | sed 1q ) 2>/dev/null`
6527                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6528                           found_dir="$dir"
6529                           found_so="$dir/$libname$shrext.$ver"
6530                         fi
6531                       else
6532                         eval library_names=\"$acl_library_names_spec\"
6533                         for f in $library_names; do
6534                           if test -f "$dir/$f"; then
6535                             found_dir="$dir"
6536                             found_so="$dir/$f"
6537                             break
6538                           fi
6539                         done
6540                       fi
6541                     fi
6542                   fi
6543                                     if test "X$found_dir" = "X"; then
6544                     if test -f "$dir/$libname.$acl_libext"; then
6545                       found_dir="$dir"
6546                       found_a="$dir/$libname.$acl_libext"
6547                     fi
6548                   fi
6549                   if test "X$found_dir" != "X"; then
6550                     if test -f "$dir/$libname.la"; then
6551                       found_la="$dir/$libname.la"
6552                     fi
6553                   fi
6554                   ;;
6555               esac
6556               if test "X$found_dir" != "X"; then
6557                 break
6558               fi
6559             done
6560           fi
6561           if test "X$found_dir" != "X"; then
6562                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6563             if test "X$found_so" != "X"; then
6564                                                         if test "$enable_rpath" = no \
6565                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6566                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6567                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6568               else
6569                                                                                 haveit=
6570                 for x in $ltrpathdirs; do
6571                   if test "X$x" = "X$found_dir"; then
6572                     haveit=yes
6573                     break
6574                   fi
6575                 done
6576                 if test -z "$haveit"; then
6577                   ltrpathdirs="$ltrpathdirs $found_dir"
6578                 fi
6579                                 if test "$acl_hardcode_direct" = yes; then
6580                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6581                 else
6582                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6583                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6584                                                             haveit=
6585                     for x in $rpathdirs; do
6586                       if test "X$x" = "X$found_dir"; then
6587                         haveit=yes
6588                         break
6589                       fi
6590                     done
6591                     if test -z "$haveit"; then
6592                       rpathdirs="$rpathdirs $found_dir"
6593                     fi
6594                   else
6595                                                                                 haveit=
6596                     for x in $LDFLAGS $LIBPTH; do
6597
6598   acl_save_prefix="$prefix"
6599   prefix="$acl_final_prefix"
6600   acl_save_exec_prefix="$exec_prefix"
6601   exec_prefix="$acl_final_exec_prefix"
6602   eval x=\"$x\"
6603   exec_prefix="$acl_save_exec_prefix"
6604   prefix="$acl_save_prefix"
6605
6606                       if test "X$x" = "X-L$found_dir"; then
6607                         haveit=yes
6608                         break
6609                       fi
6610                     done
6611                     if test -z "$haveit"; then
6612                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6613                     fi
6614                     if test "$acl_hardcode_minus_L" != no; then
6615                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6616                     else
6617                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6618                     fi
6619                   fi
6620                 fi
6621               fi
6622             else
6623               if test "X$found_a" != "X"; then
6624                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6625               else
6626                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6627               fi
6628             fi
6629                         additional_includedir=
6630             case "$found_dir" in
6631               */$acl_libdirstem | */$acl_libdirstem/)
6632                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6633                 if test "$name" = 'pth'; then
6634                   LIBPTH_PREFIX="$basedir"
6635                 fi
6636                 additional_includedir="$basedir/include"
6637                 ;;
6638               */$acl_libdirstem2 | */$acl_libdirstem2/)
6639                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6640                 if test "$name" = 'pth'; then
6641                   LIBPTH_PREFIX="$basedir"
6642                 fi
6643                 additional_includedir="$basedir/include"
6644                 ;;
6645             esac
6646             if test "X$additional_includedir" != "X"; then
6647                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6648                 haveit=
6649                 if test "X$additional_includedir" = "X/usr/local/include"; then
6650                   if test -n "$GCC"; then
6651                     case $host_os in
6652                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6653                     esac
6654                   fi
6655                 fi
6656                 if test -z "$haveit"; then
6657                   for x in $CPPFLAGS $INCPTH; do
6658
6659   acl_save_prefix="$prefix"
6660   prefix="$acl_final_prefix"
6661   acl_save_exec_prefix="$exec_prefix"
6662   exec_prefix="$acl_final_exec_prefix"
6663   eval x=\"$x\"
6664   exec_prefix="$acl_save_exec_prefix"
6665   prefix="$acl_save_prefix"
6666
6667                     if test "X$x" = "X-I$additional_includedir"; then
6668                       haveit=yes
6669                       break
6670                     fi
6671                   done
6672                   if test -z "$haveit"; then
6673                     if test -d "$additional_includedir"; then
6674                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6675                     fi
6676                   fi
6677                 fi
6678               fi
6679             fi
6680                         if test -n "$found_la"; then
6681                                                         save_libdir="$libdir"
6682               case "$found_la" in
6683                 */* | *\\*) . "$found_la" ;;
6684                 *) . "./$found_la" ;;
6685               esac
6686               libdir="$save_libdir"
6687                             for dep in $dependency_libs; do
6688                 case "$dep" in
6689                   -L*)
6690                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6691                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6692                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6693                       haveit=
6694                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6695                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6696                         if test -n "$GCC"; then
6697                           case $host_os in
6698                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6699                           esac
6700                         fi
6701                       fi
6702                       if test -z "$haveit"; then
6703                         haveit=
6704                         for x in $LDFLAGS $LIBPTH; do
6705
6706   acl_save_prefix="$prefix"
6707   prefix="$acl_final_prefix"
6708   acl_save_exec_prefix="$exec_prefix"
6709   exec_prefix="$acl_final_exec_prefix"
6710   eval x=\"$x\"
6711   exec_prefix="$acl_save_exec_prefix"
6712   prefix="$acl_save_prefix"
6713
6714                           if test "X$x" = "X-L$additional_libdir"; then
6715                             haveit=yes
6716                             break
6717                           fi
6718                         done
6719                         if test -z "$haveit"; then
6720                           if test -d "$additional_libdir"; then
6721                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6722                           fi
6723                         fi
6724                         haveit=
6725                         for x in $LDFLAGS $LTLIBPTH; do
6726
6727   acl_save_prefix="$prefix"
6728   prefix="$acl_final_prefix"
6729   acl_save_exec_prefix="$exec_prefix"
6730   exec_prefix="$acl_final_exec_prefix"
6731   eval x=\"$x\"
6732   exec_prefix="$acl_save_exec_prefix"
6733   prefix="$acl_save_prefix"
6734
6735                           if test "X$x" = "X-L$additional_libdir"; then
6736                             haveit=yes
6737                             break
6738                           fi
6739                         done
6740                         if test -z "$haveit"; then
6741                           if test -d "$additional_libdir"; then
6742                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6743                           fi
6744                         fi
6745                       fi
6746                     fi
6747                     ;;
6748                   -R*)
6749                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6750                     if test "$enable_rpath" != no; then
6751                                                                   haveit=
6752                       for x in $rpathdirs; do
6753                         if test "X$x" = "X$dir"; then
6754                           haveit=yes
6755                           break
6756                         fi
6757                       done
6758                       if test -z "$haveit"; then
6759                         rpathdirs="$rpathdirs $dir"
6760                       fi
6761                                                                   haveit=
6762                       for x in $ltrpathdirs; do
6763                         if test "X$x" = "X$dir"; then
6764                           haveit=yes
6765                           break
6766                         fi
6767                       done
6768                       if test -z "$haveit"; then
6769                         ltrpathdirs="$ltrpathdirs $dir"
6770                       fi
6771                     fi
6772                     ;;
6773                   -l*)
6774                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6775                     ;;
6776                   *.la)
6777                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6778                     ;;
6779                   *)
6780                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6781                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6782                     ;;
6783                 esac
6784               done
6785             fi
6786           else
6787                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6788             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6789           fi
6790         fi
6791       fi
6792     done
6793   done
6794   if test "X$rpathdirs" != "X"; then
6795     if test -n "$acl_hardcode_libdir_separator"; then
6796                         alldirs=
6797       for found_dir in $rpathdirs; do
6798         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6799       done
6800             acl_save_libdir="$libdir"
6801       libdir="$alldirs"
6802       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6803       libdir="$acl_save_libdir"
6804       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6805     else
6806             for found_dir in $rpathdirs; do
6807         acl_save_libdir="$libdir"
6808         libdir="$found_dir"
6809         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6810         libdir="$acl_save_libdir"
6811         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6812       done
6813     fi
6814   fi
6815   if test "X$ltrpathdirs" != "X"; then
6816             for found_dir in $ltrpathdirs; do
6817       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6818     done
6819   fi
6820
6821
6822
6823
6824
6825
6826     ac_cv_libpth_libs="$LIBPTH"
6827     ac_cv_libpth_ltlibs="$LTLIBPTH"
6828     ac_cv_libpth_cppflags="$INCPTH"
6829     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6830
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6833 $as_echo "$ac_cv_libpth_libs" >&6; }
6834   LIBPTH="$ac_cv_libpth_libs"
6835   LTLIBPTH="$ac_cv_libpth_ltlibs"
6836   INCPTH="$ac_cv_libpth_cppflags"
6837   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6838
6839   for element in $INCPTH; do
6840     haveit=
6841     for x in $CPPFLAGS; do
6842
6843   acl_save_prefix="$prefix"
6844   prefix="$acl_final_prefix"
6845   acl_save_exec_prefix="$exec_prefix"
6846   exec_prefix="$acl_final_exec_prefix"
6847   eval x=\"$x\"
6848   exec_prefix="$acl_save_exec_prefix"
6849   prefix="$acl_save_prefix"
6850
6851       if test "X$x" = "X$element"; then
6852         haveit=yes
6853         break
6854       fi
6855     done
6856     if test -z "$haveit"; then
6857       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6858     fi
6859   done
6860
6861
6862
6863
6864       HAVE_LIBPTH=yes
6865
6866
6867
6868       gl_have_pth=
6869       gl_save_LIBS="$LIBS"
6870       LIBS="$LIBS -lpth"
6871       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h.  */
6873 #include <pth.h>
6874 int
6875 main ()
6876 {
6877 pth_self();
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883   gl_have_pth=yes
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886     conftest$ac_exeext conftest.$ac_ext
6887       LIBS="$gl_save_LIBS"
6888       if test -n "$gl_have_pth"; then
6889         gl_threads_api=pth
6890         LIBTHREAD="$LIBPTH"
6891         LTLIBTHREAD="$LTLIBPTH"
6892         LIBMULTITHREAD="$LIBTHREAD"
6893         LTLIBMULTITHREAD="$LTLIBTHREAD"
6894
6895 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6896
6897         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6898           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6899
6900 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6901
6902             LIBTHREAD=
6903             LTLIBTHREAD=
6904           fi
6905         fi
6906       else
6907         CPPFLAGS="$gl_save_CPPFLAGS"
6908       fi
6909     fi
6910     if test -z "$gl_have_pthread"; then
6911       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6912         if { case "$host_os" in
6913                mingw*) true;;
6914                *) false;;
6915              esac
6916            }; then
6917           gl_threads_api=win32
6918
6919 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6920
6921         fi
6922       fi
6923     fi
6924   fi
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6926 $as_echo_n "checking for multithread API to use... " >&6; }
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6928 $as_echo "$gl_threads_api" >&6; }
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940   if test "$gl_threads_api" = posix; then
6941     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6942     # pthread_rwlock_* functions.
6943     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6944 "
6945 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6946
6947 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6948
6949 fi
6950
6951     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954 #include <pthread.h>
6955 int
6956 main ()
6957 {
6958 #if __FreeBSD__ == 4
6959 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6960 #else
6961 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6962 return !x;
6963 #endif
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969
6970 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6971
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974   fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990     use_additional=yes
6991
6992   acl_save_prefix="$prefix"
6993   prefix="$acl_final_prefix"
6994   acl_save_exec_prefix="$exec_prefix"
6995   exec_prefix="$acl_final_exec_prefix"
6996
6997     eval additional_includedir=\"$includedir\"
6998     eval additional_libdir=\"$libdir\"
6999
7000   exec_prefix="$acl_save_exec_prefix"
7001   prefix="$acl_save_prefix"
7002
7003
7004 # Check whether --with-libiconv-prefix was given.
7005 if test "${with_libiconv_prefix+set}" = set; then :
7006   withval=$with_libiconv_prefix;
7007     if test "X$withval" = "Xno"; then
7008       use_additional=no
7009     else
7010       if test "X$withval" = "X"; then
7011
7012   acl_save_prefix="$prefix"
7013   prefix="$acl_final_prefix"
7014   acl_save_exec_prefix="$exec_prefix"
7015   exec_prefix="$acl_final_exec_prefix"
7016
7017           eval additional_includedir=\"$includedir\"
7018           eval additional_libdir=\"$libdir\"
7019
7020   exec_prefix="$acl_save_exec_prefix"
7021   prefix="$acl_save_prefix"
7022
7023       else
7024         additional_includedir="$withval/include"
7025         additional_libdir="$withval/$acl_libdirstem"
7026         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7027            && ! test -d "$withval/$acl_libdirstem"; then
7028           additional_libdir="$withval/$acl_libdirstem2"
7029         fi
7030       fi
7031     fi
7032
7033 fi
7034
7035       LIBICONV=
7036   LTLIBICONV=
7037   INCICONV=
7038   LIBICONV_PREFIX=
7039       HAVE_LIBICONV=
7040   rpathdirs=
7041   ltrpathdirs=
7042   names_already_handled=
7043   names_next_round='iconv '
7044   while test -n "$names_next_round"; do
7045     names_this_round="$names_next_round"
7046     names_next_round=
7047     for name in $names_this_round; do
7048       already_handled=
7049       for n in $names_already_handled; do
7050         if test "$n" = "$name"; then
7051           already_handled=yes
7052           break
7053         fi
7054       done
7055       if test -z "$already_handled"; then
7056         names_already_handled="$names_already_handled $name"
7057                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7058         eval value=\"\$HAVE_LIB$uppername\"
7059         if test -n "$value"; then
7060           if test "$value" = yes; then
7061             eval value=\"\$LIB$uppername\"
7062             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7063             eval value=\"\$LTLIB$uppername\"
7064             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7065           else
7066                                     :
7067           fi
7068         else
7069                               found_dir=
7070           found_la=
7071           found_so=
7072           found_a=
7073           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7074           if test -n "$acl_shlibext"; then
7075             shrext=".$acl_shlibext"             # typically: shrext=.so
7076           else
7077             shrext=
7078           fi
7079           if test $use_additional = yes; then
7080             dir="$additional_libdir"
7081                                     if test -n "$acl_shlibext"; then
7082               if test -f "$dir/$libname$shrext"; then
7083                 found_dir="$dir"
7084                 found_so="$dir/$libname$shrext"
7085               else
7086                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7087                   ver=`(cd "$dir" && \
7088                         for f in "$libname$shrext".*; do echo "$f"; done \
7089                         | sed -e "s,^$libname$shrext\\\\.,," \
7090                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7091                         | sed 1q ) 2>/dev/null`
7092                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7093                     found_dir="$dir"
7094                     found_so="$dir/$libname$shrext.$ver"
7095                   fi
7096                 else
7097                   eval library_names=\"$acl_library_names_spec\"
7098                   for f in $library_names; do
7099                     if test -f "$dir/$f"; then
7100                       found_dir="$dir"
7101                       found_so="$dir/$f"
7102                       break
7103                     fi
7104                   done
7105                 fi
7106               fi
7107             fi
7108                         if test "X$found_dir" = "X"; then
7109               if test -f "$dir/$libname.$acl_libext"; then
7110                 found_dir="$dir"
7111                 found_a="$dir/$libname.$acl_libext"
7112               fi
7113             fi
7114             if test "X$found_dir" != "X"; then
7115               if test -f "$dir/$libname.la"; then
7116                 found_la="$dir/$libname.la"
7117               fi
7118             fi
7119           fi
7120           if test "X$found_dir" = "X"; then
7121             for x in $LDFLAGS $LTLIBICONV; do
7122
7123   acl_save_prefix="$prefix"
7124   prefix="$acl_final_prefix"
7125   acl_save_exec_prefix="$exec_prefix"
7126   exec_prefix="$acl_final_exec_prefix"
7127   eval x=\"$x\"
7128   exec_prefix="$acl_save_exec_prefix"
7129   prefix="$acl_save_prefix"
7130
7131               case "$x" in
7132                 -L*)
7133                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7134                                     if test -n "$acl_shlibext"; then
7135                     if test -f "$dir/$libname$shrext"; then
7136                       found_dir="$dir"
7137                       found_so="$dir/$libname$shrext"
7138                     else
7139                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7140                         ver=`(cd "$dir" && \
7141                               for f in "$libname$shrext".*; do echo "$f"; done \
7142                               | sed -e "s,^$libname$shrext\\\\.,," \
7143                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7144                               | sed 1q ) 2>/dev/null`
7145                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7146                           found_dir="$dir"
7147                           found_so="$dir/$libname$shrext.$ver"
7148                         fi
7149                       else
7150                         eval library_names=\"$acl_library_names_spec\"
7151                         for f in $library_names; do
7152                           if test -f "$dir/$f"; then
7153                             found_dir="$dir"
7154                             found_so="$dir/$f"
7155                             break
7156                           fi
7157                         done
7158                       fi
7159                     fi
7160                   fi
7161                                     if test "X$found_dir" = "X"; then
7162                     if test -f "$dir/$libname.$acl_libext"; then
7163                       found_dir="$dir"
7164                       found_a="$dir/$libname.$acl_libext"
7165                     fi
7166                   fi
7167                   if test "X$found_dir" != "X"; then
7168                     if test -f "$dir/$libname.la"; then
7169                       found_la="$dir/$libname.la"
7170                     fi
7171                   fi
7172                   ;;
7173               esac
7174               if test "X$found_dir" != "X"; then
7175                 break
7176               fi
7177             done
7178           fi
7179           if test "X$found_dir" != "X"; then
7180                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7181             if test "X$found_so" != "X"; then
7182                                                         if test "$enable_rpath" = no \
7183                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7184                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7185                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7186               else
7187                                                                                 haveit=
7188                 for x in $ltrpathdirs; do
7189                   if test "X$x" = "X$found_dir"; then
7190                     haveit=yes
7191                     break
7192                   fi
7193                 done
7194                 if test -z "$haveit"; then
7195                   ltrpathdirs="$ltrpathdirs $found_dir"
7196                 fi
7197                                 if test "$acl_hardcode_direct" = yes; then
7198                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7199                 else
7200                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7201                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7202                                                             haveit=
7203                     for x in $rpathdirs; do
7204                       if test "X$x" = "X$found_dir"; then
7205                         haveit=yes
7206                         break
7207                       fi
7208                     done
7209                     if test -z "$haveit"; then
7210                       rpathdirs="$rpathdirs $found_dir"
7211                     fi
7212                   else
7213                                                                                 haveit=
7214                     for x in $LDFLAGS $LIBICONV; do
7215
7216   acl_save_prefix="$prefix"
7217   prefix="$acl_final_prefix"
7218   acl_save_exec_prefix="$exec_prefix"
7219   exec_prefix="$acl_final_exec_prefix"
7220   eval x=\"$x\"
7221   exec_prefix="$acl_save_exec_prefix"
7222   prefix="$acl_save_prefix"
7223
7224                       if test "X$x" = "X-L$found_dir"; then
7225                         haveit=yes
7226                         break
7227                       fi
7228                     done
7229                     if test -z "$haveit"; then
7230                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7231                     fi
7232                     if test "$acl_hardcode_minus_L" != no; then
7233                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7234                     else
7235                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7236                     fi
7237                   fi
7238                 fi
7239               fi
7240             else
7241               if test "X$found_a" != "X"; then
7242                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7243               else
7244                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7245               fi
7246             fi
7247                         additional_includedir=
7248             case "$found_dir" in
7249               */$acl_libdirstem | */$acl_libdirstem/)
7250                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7251                 if test "$name" = 'iconv'; then
7252                   LIBICONV_PREFIX="$basedir"
7253                 fi
7254                 additional_includedir="$basedir/include"
7255                 ;;
7256               */$acl_libdirstem2 | */$acl_libdirstem2/)
7257                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7258                 if test "$name" = 'iconv'; then
7259                   LIBICONV_PREFIX="$basedir"
7260                 fi
7261                 additional_includedir="$basedir/include"
7262                 ;;
7263             esac
7264             if test "X$additional_includedir" != "X"; then
7265                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7266                 haveit=
7267                 if test "X$additional_includedir" = "X/usr/local/include"; then
7268                   if test -n "$GCC"; then
7269                     case $host_os in
7270                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7271                     esac
7272                   fi
7273                 fi
7274                 if test -z "$haveit"; then
7275                   for x in $CPPFLAGS $INCICONV; do
7276
7277   acl_save_prefix="$prefix"
7278   prefix="$acl_final_prefix"
7279   acl_save_exec_prefix="$exec_prefix"
7280   exec_prefix="$acl_final_exec_prefix"
7281   eval x=\"$x\"
7282   exec_prefix="$acl_save_exec_prefix"
7283   prefix="$acl_save_prefix"
7284
7285                     if test "X$x" = "X-I$additional_includedir"; then
7286                       haveit=yes
7287                       break
7288                     fi
7289                   done
7290                   if test -z "$haveit"; then
7291                     if test -d "$additional_includedir"; then
7292                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7293                     fi
7294                   fi
7295                 fi
7296               fi
7297             fi
7298                         if test -n "$found_la"; then
7299                                                         save_libdir="$libdir"
7300               case "$found_la" in
7301                 */* | *\\*) . "$found_la" ;;
7302                 *) . "./$found_la" ;;
7303               esac
7304               libdir="$save_libdir"
7305                             for dep in $dependency_libs; do
7306                 case "$dep" in
7307                   -L*)
7308                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7309                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7310                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7311                       haveit=
7312                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7313                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7314                         if test -n "$GCC"; then
7315                           case $host_os in
7316                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7317                           esac
7318                         fi
7319                       fi
7320                       if test -z "$haveit"; then
7321                         haveit=
7322                         for x in $LDFLAGS $LIBICONV; do
7323
7324   acl_save_prefix="$prefix"
7325   prefix="$acl_final_prefix"
7326   acl_save_exec_prefix="$exec_prefix"
7327   exec_prefix="$acl_final_exec_prefix"
7328   eval x=\"$x\"
7329   exec_prefix="$acl_save_exec_prefix"
7330   prefix="$acl_save_prefix"
7331
7332                           if test "X$x" = "X-L$additional_libdir"; then
7333                             haveit=yes
7334                             break
7335                           fi
7336                         done
7337                         if test -z "$haveit"; then
7338                           if test -d "$additional_libdir"; then
7339                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7340                           fi
7341                         fi
7342                         haveit=
7343                         for x in $LDFLAGS $LTLIBICONV; do
7344
7345   acl_save_prefix="$prefix"
7346   prefix="$acl_final_prefix"
7347   acl_save_exec_prefix="$exec_prefix"
7348   exec_prefix="$acl_final_exec_prefix"
7349   eval x=\"$x\"
7350   exec_prefix="$acl_save_exec_prefix"
7351   prefix="$acl_save_prefix"
7352
7353                           if test "X$x" = "X-L$additional_libdir"; then
7354                             haveit=yes
7355                             break
7356                           fi
7357                         done
7358                         if test -z "$haveit"; then
7359                           if test -d "$additional_libdir"; then
7360                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7361                           fi
7362                         fi
7363                       fi
7364                     fi
7365                     ;;
7366                   -R*)
7367                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7368                     if test "$enable_rpath" != no; then
7369                                                                   haveit=
7370                       for x in $rpathdirs; do
7371                         if test "X$x" = "X$dir"; then
7372                           haveit=yes
7373                           break
7374                         fi
7375                       done
7376                       if test -z "$haveit"; then
7377                         rpathdirs="$rpathdirs $dir"
7378                       fi
7379                                                                   haveit=
7380                       for x in $ltrpathdirs; do
7381                         if test "X$x" = "X$dir"; then
7382                           haveit=yes
7383                           break
7384                         fi
7385                       done
7386                       if test -z "$haveit"; then
7387                         ltrpathdirs="$ltrpathdirs $dir"
7388                       fi
7389                     fi
7390                     ;;
7391                   -l*)
7392                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7393                     ;;
7394                   *.la)
7395                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7396                     ;;
7397                   *)
7398                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7399                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7400                     ;;
7401                 esac
7402               done
7403             fi
7404           else
7405                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7406             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7407           fi
7408         fi
7409       fi
7410     done
7411   done
7412   if test "X$rpathdirs" != "X"; then
7413     if test -n "$acl_hardcode_libdir_separator"; then
7414                         alldirs=
7415       for found_dir in $rpathdirs; do
7416         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7417       done
7418             acl_save_libdir="$libdir"
7419       libdir="$alldirs"
7420       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7421       libdir="$acl_save_libdir"
7422       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7423     else
7424             for found_dir in $rpathdirs; do
7425         acl_save_libdir="$libdir"
7426         libdir="$found_dir"
7427         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7428         libdir="$acl_save_libdir"
7429         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7430       done
7431     fi
7432   fi
7433   if test "X$ltrpathdirs" != "X"; then
7434             for found_dir in $ltrpathdirs; do
7435       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7436     done
7437   fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450           am_save_CPPFLAGS="$CPPFLAGS"
7451
7452   for element in $INCICONV; do
7453     haveit=
7454     for x in $CPPFLAGS; do
7455
7456   acl_save_prefix="$prefix"
7457   prefix="$acl_final_prefix"
7458   acl_save_exec_prefix="$exec_prefix"
7459   exec_prefix="$acl_final_exec_prefix"
7460   eval x=\"$x\"
7461   exec_prefix="$acl_save_exec_prefix"
7462   prefix="$acl_save_prefix"
7463
7464       if test "X$x" = "X$element"; then
7465         haveit=yes
7466         break
7467       fi
7468     done
7469     if test -z "$haveit"; then
7470       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7471     fi
7472   done
7473
7474
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7476 $as_echo_n "checking for iconv... " >&6; }
7477 if ${am_cv_func_iconv+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480
7481     am_cv_func_iconv="no, consider installing GNU libiconv"
7482     am_cv_lib_iconv=no
7483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h.  */
7485 #include <stdlib.h>
7486 #include <iconv.h>
7487 int
7488 main ()
7489 {
7490 iconv_t cd = iconv_open("","");
7491        iconv(cd,NULL,NULL,NULL,NULL);
7492        iconv_close(cd);
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498   am_cv_func_iconv=yes
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501     conftest$ac_exeext conftest.$ac_ext
7502     if test "$am_cv_func_iconv" != yes; then
7503       am_save_LIBS="$LIBS"
7504       LIBS="$LIBS $LIBICONV"
7505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 #include <stdlib.h>
7508 #include <iconv.h>
7509 int
7510 main ()
7511 {
7512 iconv_t cd = iconv_open("","");
7513          iconv(cd,NULL,NULL,NULL,NULL);
7514          iconv_close(cd);
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520   am_cv_lib_iconv=yes
7521         am_cv_func_iconv=yes
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524     conftest$ac_exeext conftest.$ac_ext
7525       LIBS="$am_save_LIBS"
7526     fi
7527
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7530 $as_echo "$am_cv_func_iconv" >&6; }
7531   if test "$am_cv_func_iconv" = yes; then
7532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7533 $as_echo_n "checking for working iconv... " >&6; }
7534 if ${am_cv_func_iconv_works+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537
7538             am_save_LIBS="$LIBS"
7539       if test $am_cv_lib_iconv = yes; then
7540         LIBS="$LIBS $LIBICONV"
7541       fi
7542       if test "$cross_compiling" = yes; then :
7543   case "$host_os" in
7544            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7545            *)            am_cv_func_iconv_works="guessing yes" ;;
7546          esac
7547 else
7548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h.  */
7550
7551 #include <iconv.h>
7552 #include <string.h>
7553 int main ()
7554 {
7555   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7556      returns.  */
7557   {
7558     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7559     if (cd_utf8_to_88591 != (iconv_t)(-1))
7560       {
7561         static const char input[] = "\342\202\254"; /* EURO SIGN */
7562         char buf[10];
7563         const char *inptr = input;
7564         size_t inbytesleft = strlen (input);
7565         char *outptr = buf;
7566         size_t outbytesleft = sizeof (buf);
7567         size_t res = iconv (cd_utf8_to_88591,
7568                             (char **) &inptr, &inbytesleft,
7569                             &outptr, &outbytesleft);
7570         if (res == 0)
7571           return 1;
7572       }
7573   }
7574   /* Test against Solaris 10 bug: Failures are not distinguishable from
7575      successful returns.  */
7576   {
7577     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7578     if (cd_ascii_to_88591 != (iconv_t)(-1))
7579       {
7580         static const char input[] = "\263";
7581         char buf[10];
7582         const char *inptr = input;
7583         size_t inbytesleft = strlen (input);
7584         char *outptr = buf;
7585         size_t outbytesleft = sizeof (buf);
7586         size_t res = iconv (cd_ascii_to_88591,
7587                             (char **) &inptr, &inbytesleft,
7588                             &outptr, &outbytesleft);
7589         if (res == 0)
7590           return 1;
7591       }
7592   }
7593 #if 0 /* This bug could be worked around by the caller.  */
7594   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7595   {
7596     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7597     if (cd_88591_to_utf8 != (iconv_t)(-1))
7598       {
7599         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7600         char buf[50];
7601         const char *inptr = input;
7602         size_t inbytesleft = strlen (input);
7603         char *outptr = buf;
7604         size_t outbytesleft = sizeof (buf);
7605         size_t res = iconv (cd_88591_to_utf8,
7606                             (char **) &inptr, &inbytesleft,
7607                             &outptr, &outbytesleft);
7608         if ((int)res > 0)
7609           return 1;
7610       }
7611   }
7612 #endif
7613   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7614      provided.  */
7615   if (/* Try standardized names.  */
7616       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7617       /* Try IRIX, OSF/1 names.  */
7618       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7619       /* Try AIX names.  */
7620       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7621       /* Try HP-UX names.  */
7622       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7623     return 1;
7624   return 0;
7625 }
7626 _ACEOF
7627 if ac_fn_c_try_run "$LINENO"; then :
7628   am_cv_func_iconv_works=yes
7629 else
7630   am_cv_func_iconv_works=no
7631 fi
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633   conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 fi
7635
7636       LIBS="$am_save_LIBS"
7637
7638 fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7640 $as_echo "$am_cv_func_iconv_works" >&6; }
7641     case "$am_cv_func_iconv_works" in
7642       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7643       *)   am_func_iconv=yes ;;
7644     esac
7645   else
7646     am_func_iconv=no am_cv_lib_iconv=no
7647   fi
7648   if test "$am_func_iconv" = yes; then
7649
7650 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7651
7652   fi
7653   if test "$am_cv_lib_iconv" = yes; then
7654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7655 $as_echo_n "checking how to link with libiconv... " >&6; }
7656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7657 $as_echo "$LIBICONV" >&6; }
7658   else
7659             CPPFLAGS="$am_save_CPPFLAGS"
7660     LIBICONV=
7661     LTLIBICONV=
7662   fi
7663
7664
7665
7666   if test "$am_cv_func_iconv" = yes; then
7667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7668 $as_echo_n "checking for iconv declaration... " >&6; }
7669     if ${am_cv_proto_iconv+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672
7673       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h.  */
7675
7676 #include <stdlib.h>
7677 #include <iconv.h>
7678 extern
7679 #ifdef __cplusplus
7680 "C"
7681 #endif
7682 #if defined(__STDC__) || defined(__cplusplus)
7683 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7684 #else
7685 size_t iconv();
7686 #endif
7687
7688 int
7689 main ()
7690 {
7691
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697   am_cv_proto_iconv_arg1=""
7698 else
7699   am_cv_proto_iconv_arg1="const"
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702       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);"
7703 fi
7704
7705     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7706     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7707          $am_cv_proto_iconv" >&5
7708 $as_echo "
7709          $am_cv_proto_iconv" >&6; }
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define ICONV_CONST $am_cv_proto_iconv_arg1
7713 _ACEOF
7714
7715   fi
7716
7717
7718
7719
7720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h.  */
7722 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7723 int
7724 main ()
7725 {
7726
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"; then :
7732
7733 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7734
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext \
7737     conftest$ac_exeext conftest.$ac_ext
7738
7739   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7740 do :
7741   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7742 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7743 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7744   cat >>confdefs.h <<_ACEOF
7745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7746 _ACEOF
7747
7748 fi
7749
7750 done
7751
7752   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7753     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7754     argz_stringify argz_next __fsetlocking
7755 do :
7756   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7759   cat >>confdefs.h <<_ACEOF
7760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7761 _ACEOF
7762
7763 fi
7764 done
7765
7766
7767
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7769 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7770 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <stdio.h>
7776 int
7777 main ()
7778 {
7779
7780 #ifndef feof_unlocked
7781   char *p = (char *) feof_unlocked;
7782 #endif
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789   ac_cv_have_decl_feof_unlocked=yes
7790 else
7791   ac_cv_have_decl_feof_unlocked=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7796 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7797   if test $ac_cv_have_decl_feof_unlocked = yes; then
7798     gt_value=1
7799   else
7800     gt_value=0
7801   fi
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7805 _ACEOF
7806
7807
7808
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7810 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7811 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h.  */
7816 #include <stdio.h>
7817 int
7818 main ()
7819 {
7820
7821 #ifndef fgets_unlocked
7822   char *p = (char *) fgets_unlocked;
7823 #endif
7824
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830   ac_cv_have_decl_fgets_unlocked=yes
7831 else
7832   ac_cv_have_decl_fgets_unlocked=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7837 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7838   if test $ac_cv_have_decl_fgets_unlocked = yes; then
7839     gt_value=1
7840   else
7841     gt_value=0
7842   fi
7843
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7846 _ACEOF
7847
7848
7849
7850
7851
7852                       for ac_prog in bison
7853 do
7854   # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_INTLBISON+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   if test -n "$INTLBISON"; then
7862   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871     ac_cv_prog_INTLBISON="$ac_prog"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 INTLBISON=$ac_cv_prog_INTLBISON
7882 if test -n "$INTLBISON"; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7884 $as_echo "$INTLBISON" >&6; }
7885 else
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890
7891   test -n "$INTLBISON" && break
7892 done
7893
7894   if test -z "$INTLBISON"; then
7895     ac_verc_fail=yes
7896   else
7897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7898 $as_echo_n "checking version of bison... " >&6; }
7899     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7900     case $ac_prog_version in
7901       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7902       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7903          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7904       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7905     esac
7906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7907 $as_echo "$ac_prog_version" >&6; }
7908   fi
7909   if test $ac_verc_fail = yes; then
7910     INTLBISON=:
7911   fi
7912
7913
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7915 $as_echo_n "checking for long long int... " >&6; }
7916 if ${ac_cv_type_long_long_int+:} false; then :
7917   $as_echo_n "(cached) " >&6
7918 else
7919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921
7922   /* For now, do not test the preprocessor; as of 2007 there are too many
7923          implementations with broken preprocessors.  Perhaps this can
7924          be revisited in 2012.  In the meantime, code should not expect
7925          #if to work with literals wider than 32 bits.  */
7926       /* Test literals.  */
7927       long long int ll = 9223372036854775807ll;
7928       long long int nll = -9223372036854775807LL;
7929       unsigned long long int ull = 18446744073709551615ULL;
7930       /* Test constant expressions.   */
7931       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7932                      ? 1 : -1)];
7933       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7934                      ? 1 : -1)];
7935       int i = 63;
7936 int
7937 main ()
7938 {
7939 /* Test availability of runtime routines for shift and division.  */
7940       long long int llmax = 9223372036854775807ll;
7941       unsigned long long int ullmax = 18446744073709551615ull;
7942       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7943               | (llmax / ll) | (llmax % ll)
7944               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7945               | (ullmax / ull) | (ullmax % ull));
7946   ;
7947   return 0;
7948 }
7949
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952                           if test "$cross_compiling" = yes; then :
7953   ac_cv_type_long_long_int=yes
7954 else
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <limits.h>
7958                #ifndef LLONG_MAX
7959                # define HALF \
7960                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7961                # define LLONG_MAX (HALF - 1 + HALF)
7962                #endif
7963 int
7964 main ()
7965 {
7966 long long int n = 1;
7967                int i;
7968                for (i = 0; ; i++)
7969                  {
7970                    long long int m = n << i;
7971                    if (m >> i != n)
7972                      return 1;
7973                    if (LLONG_MAX / 2 < m)
7974                      break;
7975                  }
7976                return 0;
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_run "$LINENO"; then :
7982   ac_cv_type_long_long_int=yes
7983 else
7984   ac_cv_type_long_long_int=no
7985 fi
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7987   conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 fi
7989
7990 else
7991   ac_cv_type_long_long_int=no
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext \
7994     conftest$ac_exeext conftest.$ac_ext
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7997 $as_echo "$ac_cv_type_long_long_int" >&6; }
7998   if test $ac_cv_type_long_long_int = yes; then
7999
8000 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8001
8002   fi
8003
8004
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8006 $as_echo_n "checking for wchar_t... " >&6; }
8007 if ${gt_cv_c_wchar_t+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <stddef.h>
8013        wchar_t foo = (wchar_t)'\0';
8014 int
8015 main ()
8016 {
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023   gt_cv_c_wchar_t=yes
8024 else
8025   gt_cv_c_wchar_t=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8030 $as_echo "$gt_cv_c_wchar_t" >&6; }
8031   if test $gt_cv_c_wchar_t = yes; then
8032
8033 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8034
8035   fi
8036
8037
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8039 $as_echo_n "checking for wint_t... " >&6; }
8040 if ${gt_cv_c_wint_t+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h.  */
8045
8046 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8047    <wchar.h>.
8048    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8049    before <wchar.h>.  */
8050 #include <stddef.h>
8051 #include <stdio.h>
8052 #include <time.h>
8053 #include <wchar.h>
8054        wint_t foo = (wchar_t)'\0';
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064   gt_cv_c_wint_t=yes
8065 else
8066   gt_cv_c_wint_t=no
8067 fi
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8071 $as_echo "$gt_cv_c_wint_t" >&6; }
8072   if test $gt_cv_c_wint_t = yes; then
8073
8074 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8075
8076   fi
8077
8078
8079
8080
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8082 $as_echo_n "checking for intmax_t... " >&6; }
8083 if ${gt_cv_c_intmax_t+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h.  */
8088
8089 #include <stddef.h>
8090 #include <stdlib.h>
8091 #if HAVE_STDINT_H_WITH_UINTMAX
8092 #include <stdint.h>
8093 #endif
8094 #if HAVE_INTTYPES_H_WITH_UINTMAX
8095 #include <inttypes.h>
8096 #endif
8097
8098 int
8099 main ()
8100 {
8101 intmax_t x = -1;
8102         return !x;
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108   gt_cv_c_intmax_t=yes
8109 else
8110   gt_cv_c_intmax_t=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8115 $as_echo "$gt_cv_c_intmax_t" >&6; }
8116   if test $gt_cv_c_intmax_t = yes; then
8117
8118 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8119
8120   fi
8121
8122
8123
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8125 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8126 if ${gt_cv_func_printf_posix+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129
8130       if test "$cross_compiling" = yes; then :
8131
8132         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h.  */
8134
8135 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8136   notposix
8137 #endif
8138
8139 _ACEOF
8140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8141   $EGREP "notposix" >/dev/null 2>&1; then :
8142   gt_cv_func_printf_posix="guessing no"
8143 else
8144   gt_cv_func_printf_posix="guessing yes"
8145 fi
8146 rm -f conftest*
8147
8148
8149 else
8150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152
8153 #include <stdio.h>
8154 #include <string.h>
8155 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8156    dollar expansion (possibly an autoconf bug).  */
8157 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8158 static char buf[100];
8159 int main ()
8160 {
8161   sprintf (buf, format, 33, 55);
8162   return (strcmp (buf, "55 33") != 0);
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_run "$LINENO"; then :
8166   gt_cv_func_printf_posix=yes
8167 else
8168   gt_cv_func_printf_posix=no
8169 fi
8170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8171   conftest.$ac_objext conftest.beam conftest.$ac_ext
8172 fi
8173
8174
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8177 $as_echo "$gt_cv_func_printf_posix" >&6; }
8178   case $gt_cv_func_printf_posix in
8179     *yes)
8180
8181 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8182
8183       ;;
8184   esac
8185
8186
8187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8188 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8189 if ${ac_cv_gnu_library_2_1+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h.  */
8194
8195 #include <features.h>
8196 #ifdef __GNU_LIBRARY__
8197  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8198   Lucky GNU user
8199  #endif
8200 #endif
8201
8202 _ACEOF
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8205   ac_cv_gnu_library_2_1=yes
8206 else
8207   ac_cv_gnu_library_2_1=no
8208 fi
8209 rm -f conftest*
8210
8211
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8215 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8216
8217     GLIBC21="$ac_cv_gnu_library_2_1"
8218
8219
8220
8221   for ac_header in stdint.h
8222 do :
8223   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8224 if test "x$ac_cv_header_stdint_h" = xyes; then :
8225   cat >>confdefs.h <<_ACEOF
8226 #define HAVE_STDINT_H 1
8227 _ACEOF
8228
8229 fi
8230
8231 done
8232
8233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8234 $as_echo_n "checking for SIZE_MAX... " >&6; }
8235 if ${gl_cv_size_max+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238
8239     gl_cv_size_max=
8240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242
8243 #include <limits.h>
8244 #if HAVE_STDINT_H
8245 #include <stdint.h>
8246 #endif
8247 #ifdef SIZE_MAX
8248 Found it
8249 #endif
8250
8251 _ACEOF
8252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8253   $EGREP "Found it" >/dev/null 2>&1; then :
8254   gl_cv_size_max=yes
8255 fi
8256 rm -f conftest*
8257
8258     if test -z "$gl_cv_size_max"; then
8259                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
8260 #include <limits.h>"; then :
8261
8262 else
8263   size_t_bits_minus_1=
8264 fi
8265
8266       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
8267
8268 else
8269   fits_in_uint=
8270 fi
8271
8272       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8273         if test $fits_in_uint = 1; then
8274                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276 #include <stddef.h>
8277             extern size_t foo;
8278             extern unsigned long foo;
8279
8280 int
8281 main ()
8282 {
8283
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289   fits_in_uint=0
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292         fi
8293                                 if test $fits_in_uint = 1; then
8294           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8295         else
8296           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8297         fi
8298       else
8299                 gl_cv_size_max='((size_t)~(size_t)0)'
8300       fi
8301     fi
8302
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8305 $as_echo "$gl_cv_size_max" >&6; }
8306   if test "$gl_cv_size_max" != yes; then
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define SIZE_MAX $gl_cv_size_max
8310 _ACEOF
8311
8312   fi
8313
8314
8315
8316
8317
8318   for ac_header in stdint.h
8319 do :
8320   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8321 if test "x$ac_cv_header_stdint_h" = xyes; then :
8322   cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STDINT_H 1
8324 _ACEOF
8325
8326 fi
8327
8328 done
8329
8330
8331
8332
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8334 $as_echo_n "checking for working fcntl.h... " >&6; }
8335 if ${gl_cv_header_working_fcntl_h+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test "$cross_compiling" = yes; then :
8339   gl_cv_header_working_fcntl_h=cross-compiling
8340 else
8341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h.  */
8343 #include <sys/types.h>
8344            #include <sys/stat.h>
8345            #include <unistd.h>
8346            #include <fcntl.h>
8347            #ifndef O_NOATIME
8348             #define O_NOATIME 0
8349            #endif
8350            #ifndef O_NOFOLLOW
8351             #define O_NOFOLLOW 0
8352            #endif
8353            static int const constants[] =
8354             {
8355               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8356               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8357             };
8358
8359 int
8360 main ()
8361 {
8362
8363             int status = !constants;
8364             {
8365               static char const sym[] = "conftest.sym";
8366               if (symlink (".", sym) != 0
8367                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8368                 status |= 32;
8369               unlink (sym);
8370             }
8371             {
8372               static char const file[] = "confdefs.h";
8373               int fd = open (file, O_RDONLY | O_NOATIME);
8374               char c;
8375               struct stat st0, st1;
8376               if (fd < 0
8377                   || fstat (fd, &st0) != 0
8378                   || sleep (1) != 0
8379                   || read (fd, &c, 1) != 1
8380                   || close (fd) != 0
8381                   || stat (file, &st1) != 0
8382                   || st0.st_atime != st1.st_atime)
8383                 status |= 64;
8384             }
8385             return status;
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_run "$LINENO"; then :
8391   gl_cv_header_working_fcntl_h=yes
8392 else
8393   case $? in #(
8394         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8395         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8396         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8397          *) gl_cv_header_working_fcntl_h='no';;
8398         esac
8399 fi
8400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8401   conftest.$ac_objext conftest.beam conftest.$ac_ext
8402 fi
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8406 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8407
8408   case $gl_cv_header_working_fcntl_h in #(
8409   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8410   *) ac_val=1;;
8411   esac
8412
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_WORKING_O_NOATIME $ac_val
8415 _ACEOF
8416
8417
8418   case $gl_cv_header_working_fcntl_h in #(
8419   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8420   *) ac_val=1;;
8421   esac
8422
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8425 _ACEOF
8426
8427
8428
8429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8430 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8431 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   gt_save_LIBS="$LIBS"
8435      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h.  */
8438 #include <CoreFoundation/CFPreferences.h>
8439 int
8440 main ()
8441 {
8442 CFPreferencesCopyAppValue(NULL, NULL)
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448   gt_cv_func_CFPreferencesCopyAppValue=yes
8449 else
8450   gt_cv_func_CFPreferencesCopyAppValue=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453     conftest$ac_exeext conftest.$ac_ext
8454      LIBS="$gt_save_LIBS"
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8457 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8458   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8459
8460 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8461
8462   fi
8463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8464 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8465 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   gt_save_LIBS="$LIBS"
8469      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8470      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h.  */
8472 #include <CoreFoundation/CFLocale.h>
8473 int
8474 main ()
8475 {
8476 CFLocaleCopyCurrent();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482   gt_cv_func_CFLocaleCopyCurrent=yes
8483 else
8484   gt_cv_func_CFLocaleCopyCurrent=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext \
8487     conftest$ac_exeext conftest.$ac_ext
8488      LIBS="$gt_save_LIBS"
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8491 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8492   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8493
8494 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8495
8496   fi
8497   INTL_MACOSX_LIBS=
8498   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8499     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8500   fi
8501
8502
8503
8504
8505
8506
8507
8508     case "$enable_silent_rules" in
8509     yes) INTL_DEFAULT_VERBOSITY=0;;
8510     no)  INTL_DEFAULT_VERBOSITY=1;;
8511     *)   INTL_DEFAULT_VERBOSITY=1;;
8512   esac
8513
8514
8515   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8516 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8517
8518 else
8519
8520 $as_echo "#define ptrdiff_t long" >>confdefs.h
8521
8522
8523 fi
8524
8525   for ac_header in stddef.h stdlib.h string.h
8526 do :
8527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8530   cat >>confdefs.h <<_ACEOF
8531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 _ACEOF
8533
8534 fi
8535
8536 done
8537
8538   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8539     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8540 do :
8541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8544   cat >>confdefs.h <<_ACEOF
8545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8546 _ACEOF
8547
8548 fi
8549 done
8550
8551
8552
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8554 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8555 if ${ac_cv_have_decl__snprintf+:} false; then :
8556   $as_echo_n "(cached) " >&6
8557 else
8558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h.  */
8560 #include <stdio.h>
8561 int
8562 main ()
8563 {
8564
8565 #ifndef _snprintf
8566   char *p = (char *) _snprintf;
8567 #endif
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574   ac_cv_have_decl__snprintf=yes
8575 else
8576   ac_cv_have_decl__snprintf=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8581 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8582   if test $ac_cv_have_decl__snprintf = yes; then
8583     gt_value=1
8584   else
8585     gt_value=0
8586   fi
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define HAVE_DECL__SNPRINTF $gt_value
8590 _ACEOF
8591
8592
8593
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8595 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8596 if ${ac_cv_have_decl__snwprintf+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h.  */
8601 #include <stdio.h>
8602 int
8603 main ()
8604 {
8605
8606 #ifndef _snwprintf
8607   char *p = (char *) _snwprintf;
8608 #endif
8609
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615   ac_cv_have_decl__snwprintf=yes
8616 else
8617   ac_cv_have_decl__snwprintf=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8622 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8623   if test $ac_cv_have_decl__snwprintf = yes; then
8624     gt_value=1
8625   else
8626     gt_value=0
8627   fi
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_DECL__SNWPRINTF $gt_value
8631 _ACEOF
8632
8633
8634
8635
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8637 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8638 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643 #include <stdio.h>
8644 int
8645 main ()
8646 {
8647
8648 #ifndef getc_unlocked
8649   char *p = (char *) getc_unlocked;
8650 #endif
8651
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657   ac_cv_have_decl_getc_unlocked=yes
8658 else
8659   ac_cv_have_decl_getc_unlocked=no
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8664 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8665   if test $ac_cv_have_decl_getc_unlocked = yes; then
8666     gt_value=1
8667   else
8668     gt_value=0
8669   fi
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8673 _ACEOF
8674
8675
8676
8677   case $gt_cv_func_printf_posix in
8678     *yes) HAVE_POSIX_PRINTF=1 ;;
8679     *) HAVE_POSIX_PRINTF=0 ;;
8680   esac
8681
8682   if test "$ac_cv_func_asprintf" = yes; then
8683     HAVE_ASPRINTF=1
8684   else
8685     HAVE_ASPRINTF=0
8686   fi
8687
8688   if test "$ac_cv_func_snprintf" = yes; then
8689     HAVE_SNPRINTF=1
8690   else
8691     HAVE_SNPRINTF=0
8692   fi
8693
8694   if test "$ac_cv_func_newlocale" = yes; then
8695     HAVE_NEWLOCALE=1
8696   else
8697     HAVE_NEWLOCALE=0
8698   fi
8699
8700   if test "$ac_cv_func_wprintf" = yes; then
8701     HAVE_WPRINTF=1
8702   else
8703     HAVE_WPRINTF=0
8704   fi
8705
8706
8707
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8709 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8710 if ${am_cv_langinfo_codeset+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h.  */
8715 #include <langinfo.h>
8716 int
8717 main ()
8718 {
8719 char* cs = nl_langinfo(CODESET); return !cs;
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 if ac_fn_c_try_link "$LINENO"; then :
8725   am_cv_langinfo_codeset=yes
8726 else
8727   am_cv_langinfo_codeset=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext \
8730     conftest$ac_exeext conftest.$ac_ext
8731
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8734 $as_echo "$am_cv_langinfo_codeset" >&6; }
8735   if test $am_cv_langinfo_codeset = yes; then
8736
8737 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8738
8739   fi
8740
8741
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8743 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8744 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749 #include <locale.h>
8750 int
8751 main ()
8752 {
8753 return LC_MESSAGES
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759   gt_cv_val_LC_MESSAGES=yes
8760 else
8761   gt_cv_val_LC_MESSAGES=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext \
8764     conftest$ac_exeext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8767 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8768   if test $gt_cv_val_LC_MESSAGES = yes; then
8769
8770 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8771
8772   fi
8773
8774
8775                 if test "$enable_shared" = yes; then
8776     case "$host_os" in
8777       mingw* | cygwin*) is_woe32dll=yes ;;
8778       *) is_woe32dll=no ;;
8779     esac
8780   else
8781     is_woe32dll=no
8782   fi
8783   WOE32DLL=$is_woe32dll
8784
8785
8786       case "$host_os" in
8787     mingw* | cygwin*) is_woe32=yes ;;
8788     *) is_woe32=no ;;
8789   esac
8790   WOE32=$is_woe32
8791
8792   if test $WOE32 = yes; then
8793         if test -n "$ac_tool_prefix"; then
8794   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8795 set dummy ${ac_tool_prefix}windres; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_WINDRES+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   if test -n "$WINDRES"; then
8802   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807   IFS=$as_save_IFS
8808   test -z "$as_dir" && as_dir=.
8809     for ac_exec_ext in '' $ac_executable_extensions; do
8810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813     break 2
8814   fi
8815 done
8816   done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 WINDRES=$ac_cv_prog_WINDRES
8822 if test -n "$WINDRES"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8824 $as_echo "$WINDRES" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 if test -z "$ac_cv_prog_WINDRES"; then
8833   ac_ct_WINDRES=$WINDRES
8834   # Extract the first word of "windres", so it can be a program name with args.
8835 set dummy windres; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   if test -n "$ac_ct_WINDRES"; then
8842   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847   IFS=$as_save_IFS
8848   test -z "$as_dir" && as_dir=.
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851     ac_cv_prog_ac_ct_WINDRES="windres"
8852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856   done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8862 if test -n "$ac_ct_WINDRES"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8864 $as_echo "$ac_ct_WINDRES" >&6; }
8865 else
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870   if test "x$ac_ct_WINDRES" = x; then
8871     WINDRES=""
8872   else
8873     case $cross_compiling:$ac_tool_warned in
8874 yes:)
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8877 ac_tool_warned=yes ;;
8878 esac
8879     WINDRES=$ac_ct_WINDRES
8880   fi
8881 else
8882   WINDRES="$ac_cv_prog_WINDRES"
8883 fi
8884
8885   fi
8886
8887               case "$host_os" in
8888     hpux*) LTLIBC="" ;;
8889     *)     LTLIBC="-lc" ;;
8890   esac
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
8916
8917
8918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8919 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8920 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   gt_save_LIBS="$LIBS"
8924      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8925      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927 #include <CoreFoundation/CFPreferences.h>
8928 int
8929 main ()
8930 {
8931 CFPreferencesCopyAppValue(NULL, NULL)
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937   gt_cv_func_CFPreferencesCopyAppValue=yes
8938 else
8939   gt_cv_func_CFPreferencesCopyAppValue=no
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext \
8942     conftest$ac_exeext conftest.$ac_ext
8943      LIBS="$gt_save_LIBS"
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8946 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8947   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8948
8949 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8950
8951   fi
8952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8953 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8954 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   gt_save_LIBS="$LIBS"
8958      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h.  */
8961 #include <CoreFoundation/CFLocale.h>
8962 int
8963 main ()
8964 {
8965 CFLocaleCopyCurrent();
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 if ac_fn_c_try_link "$LINENO"; then :
8971   gt_cv_func_CFLocaleCopyCurrent=yes
8972 else
8973   gt_cv_func_CFLocaleCopyCurrent=no
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext \
8976     conftest$ac_exeext conftest.$ac_ext
8977      LIBS="$gt_save_LIBS"
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8980 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8981   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8982
8983 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8984
8985   fi
8986   INTL_MACOSX_LIBS=
8987   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8988     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8989   fi
8990
8991
8992
8993
8994
8995
8996     BUILD_INCLUDED_LIBINTL=no
8997     USE_INCLUDED_LIBINTL=no
8998
8999   LIBINTL=
9000   LTLIBINTL=
9001   POSUB=
9002
9003     case " $gt_needs " in
9004     *" need-formatstring-macros "*) gt_api_version=3 ;;
9005     *" need-ngettext "*) gt_api_version=2 ;;
9006     *) gt_api_version=1 ;;
9007   esac
9008   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9009   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9010
9011     if test "$USE_NLS" = "yes"; then
9012     gt_use_preinstalled_gnugettext=no
9013
9014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9015 $as_echo_n "checking whether included gettext is requested... " >&6; }
9016
9017 # Check whether --with-included-gettext was given.
9018 if test "${with_included_gettext+set}" = set; then :
9019   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9020 else
9021   nls_cv_force_use_gnu_gettext=no
9022 fi
9023
9024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9025 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9026
9027       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9028       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9029
9030
9031         if test $gt_api_version -ge 3; then
9032           gt_revision_test_code='
9033 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9034 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9035 #endif
9036 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9037 '
9038         else
9039           gt_revision_test_code=
9040         fi
9041         if test $gt_api_version -ge 2; then
9042           gt_expression_test_code=' + * ngettext ("", "", 0)'
9043         else
9044           gt_expression_test_code=
9045         fi
9046
9047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9048 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9049 if eval \${$gt_func_gnugettext_libc+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h.  */
9054 #include <libintl.h>
9055 $gt_revision_test_code
9056 extern int _nl_msg_cat_cntr;
9057 extern int *_nl_domain_bindings;
9058 int
9059 main ()
9060 {
9061 bindtextdomain ("", "");
9062 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068   eval "$gt_func_gnugettext_libc=yes"
9069 else
9070   eval "$gt_func_gnugettext_libc=no"
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073     conftest$ac_exeext conftest.$ac_ext
9074 fi
9075 eval ac_res=\$$gt_func_gnugettext_libc
9076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9077 $as_echo "$ac_res" >&6; }
9078
9079         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9080
9081
9082
9083
9084
9085
9086
9087
9088     use_additional=yes
9089
9090   acl_save_prefix="$prefix"
9091   prefix="$acl_final_prefix"
9092   acl_save_exec_prefix="$exec_prefix"
9093   exec_prefix="$acl_final_exec_prefix"
9094
9095     eval additional_includedir=\"$includedir\"
9096     eval additional_libdir=\"$libdir\"
9097
9098   exec_prefix="$acl_save_exec_prefix"
9099   prefix="$acl_save_prefix"
9100
9101
9102 # Check whether --with-libintl-prefix was given.
9103 if test "${with_libintl_prefix+set}" = set; then :
9104   withval=$with_libintl_prefix;
9105     if test "X$withval" = "Xno"; then
9106       use_additional=no
9107     else
9108       if test "X$withval" = "X"; then
9109
9110   acl_save_prefix="$prefix"
9111   prefix="$acl_final_prefix"
9112   acl_save_exec_prefix="$exec_prefix"
9113   exec_prefix="$acl_final_exec_prefix"
9114
9115           eval additional_includedir=\"$includedir\"
9116           eval additional_libdir=\"$libdir\"
9117
9118   exec_prefix="$acl_save_exec_prefix"
9119   prefix="$acl_save_prefix"
9120
9121       else
9122         additional_includedir="$withval/include"
9123         additional_libdir="$withval/$acl_libdirstem"
9124         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9125            && ! test -d "$withval/$acl_libdirstem"; then
9126           additional_libdir="$withval/$acl_libdirstem2"
9127         fi
9128       fi
9129     fi
9130
9131 fi
9132
9133       LIBINTL=
9134   LTLIBINTL=
9135   INCINTL=
9136   LIBINTL_PREFIX=
9137       HAVE_LIBINTL=
9138   rpathdirs=
9139   ltrpathdirs=
9140   names_already_handled=
9141   names_next_round='intl '
9142   while test -n "$names_next_round"; do
9143     names_this_round="$names_next_round"
9144     names_next_round=
9145     for name in $names_this_round; do
9146       already_handled=
9147       for n in $names_already_handled; do
9148         if test "$n" = "$name"; then
9149           already_handled=yes
9150           break
9151         fi
9152       done
9153       if test -z "$already_handled"; then
9154         names_already_handled="$names_already_handled $name"
9155                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9156         eval value=\"\$HAVE_LIB$uppername\"
9157         if test -n "$value"; then
9158           if test "$value" = yes; then
9159             eval value=\"\$LIB$uppername\"
9160             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9161             eval value=\"\$LTLIB$uppername\"
9162             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9163           else
9164                                     :
9165           fi
9166         else
9167                               found_dir=
9168           found_la=
9169           found_so=
9170           found_a=
9171           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9172           if test -n "$acl_shlibext"; then
9173             shrext=".$acl_shlibext"             # typically: shrext=.so
9174           else
9175             shrext=
9176           fi
9177           if test $use_additional = yes; then
9178             dir="$additional_libdir"
9179                                     if test -n "$acl_shlibext"; then
9180               if test -f "$dir/$libname$shrext"; then
9181                 found_dir="$dir"
9182                 found_so="$dir/$libname$shrext"
9183               else
9184                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9185                   ver=`(cd "$dir" && \
9186                         for f in "$libname$shrext".*; do echo "$f"; done \
9187                         | sed -e "s,^$libname$shrext\\\\.,," \
9188                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9189                         | sed 1q ) 2>/dev/null`
9190                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9191                     found_dir="$dir"
9192                     found_so="$dir/$libname$shrext.$ver"
9193                   fi
9194                 else
9195                   eval library_names=\"$acl_library_names_spec\"
9196                   for f in $library_names; do
9197                     if test -f "$dir/$f"; then
9198                       found_dir="$dir"
9199                       found_so="$dir/$f"
9200                       break
9201                     fi
9202                   done
9203                 fi
9204               fi
9205             fi
9206                         if test "X$found_dir" = "X"; then
9207               if test -f "$dir/$libname.$acl_libext"; then
9208                 found_dir="$dir"
9209                 found_a="$dir/$libname.$acl_libext"
9210               fi
9211             fi
9212             if test "X$found_dir" != "X"; then
9213               if test -f "$dir/$libname.la"; then
9214                 found_la="$dir/$libname.la"
9215               fi
9216             fi
9217           fi
9218           if test "X$found_dir" = "X"; then
9219             for x in $LDFLAGS $LTLIBINTL; do
9220
9221   acl_save_prefix="$prefix"
9222   prefix="$acl_final_prefix"
9223   acl_save_exec_prefix="$exec_prefix"
9224   exec_prefix="$acl_final_exec_prefix"
9225   eval x=\"$x\"
9226   exec_prefix="$acl_save_exec_prefix"
9227   prefix="$acl_save_prefix"
9228
9229               case "$x" in
9230                 -L*)
9231                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9232                                     if test -n "$acl_shlibext"; then
9233                     if test -f "$dir/$libname$shrext"; then
9234                       found_dir="$dir"
9235                       found_so="$dir/$libname$shrext"
9236                     else
9237                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9238                         ver=`(cd "$dir" && \
9239                               for f in "$libname$shrext".*; do echo "$f"; done \
9240                               | sed -e "s,^$libname$shrext\\\\.,," \
9241                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9242                               | sed 1q ) 2>/dev/null`
9243                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9244                           found_dir="$dir"
9245                           found_so="$dir/$libname$shrext.$ver"
9246                         fi
9247                       else
9248                         eval library_names=\"$acl_library_names_spec\"
9249                         for f in $library_names; do
9250                           if test -f "$dir/$f"; then
9251                             found_dir="$dir"
9252                             found_so="$dir/$f"
9253                             break
9254                           fi
9255                         done
9256                       fi
9257                     fi
9258                   fi
9259                                     if test "X$found_dir" = "X"; then
9260                     if test -f "$dir/$libname.$acl_libext"; then
9261                       found_dir="$dir"
9262                       found_a="$dir/$libname.$acl_libext"
9263                     fi
9264                   fi
9265                   if test "X$found_dir" != "X"; then
9266                     if test -f "$dir/$libname.la"; then
9267                       found_la="$dir/$libname.la"
9268                     fi
9269                   fi
9270                   ;;
9271               esac
9272               if test "X$found_dir" != "X"; then
9273                 break
9274               fi
9275             done
9276           fi
9277           if test "X$found_dir" != "X"; then
9278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9279             if test "X$found_so" != "X"; then
9280                                                         if test "$enable_rpath" = no \
9281                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9282                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9283                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9284               else
9285                                                                                 haveit=
9286                 for x in $ltrpathdirs; do
9287                   if test "X$x" = "X$found_dir"; then
9288                     haveit=yes
9289                     break
9290                   fi
9291                 done
9292                 if test -z "$haveit"; then
9293                   ltrpathdirs="$ltrpathdirs $found_dir"
9294                 fi
9295                                 if test "$acl_hardcode_direct" = yes; then
9296                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9297                 else
9298                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9299                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9300                                                             haveit=
9301                     for x in $rpathdirs; do
9302                       if test "X$x" = "X$found_dir"; then
9303                         haveit=yes
9304                         break
9305                       fi
9306                     done
9307                     if test -z "$haveit"; then
9308                       rpathdirs="$rpathdirs $found_dir"
9309                     fi
9310                   else
9311                                                                                 haveit=
9312                     for x in $LDFLAGS $LIBINTL; do
9313
9314   acl_save_prefix="$prefix"
9315   prefix="$acl_final_prefix"
9316   acl_save_exec_prefix="$exec_prefix"
9317   exec_prefix="$acl_final_exec_prefix"
9318   eval x=\"$x\"
9319   exec_prefix="$acl_save_exec_prefix"
9320   prefix="$acl_save_prefix"
9321
9322                       if test "X$x" = "X-L$found_dir"; then
9323                         haveit=yes
9324                         break
9325                       fi
9326                     done
9327                     if test -z "$haveit"; then
9328                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9329                     fi
9330                     if test "$acl_hardcode_minus_L" != no; then
9331                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9332                     else
9333                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9334                     fi
9335                   fi
9336                 fi
9337               fi
9338             else
9339               if test "X$found_a" != "X"; then
9340                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9341               else
9342                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9343               fi
9344             fi
9345                         additional_includedir=
9346             case "$found_dir" in
9347               */$acl_libdirstem | */$acl_libdirstem/)
9348                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9349                 if test "$name" = 'intl'; then
9350                   LIBINTL_PREFIX="$basedir"
9351                 fi
9352                 additional_includedir="$basedir/include"
9353                 ;;
9354               */$acl_libdirstem2 | */$acl_libdirstem2/)
9355                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9356                 if test "$name" = 'intl'; then
9357                   LIBINTL_PREFIX="$basedir"
9358                 fi
9359                 additional_includedir="$basedir/include"
9360                 ;;
9361             esac
9362             if test "X$additional_includedir" != "X"; then
9363                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9364                 haveit=
9365                 if test "X$additional_includedir" = "X/usr/local/include"; then
9366                   if test -n "$GCC"; then
9367                     case $host_os in
9368                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9369                     esac
9370                   fi
9371                 fi
9372                 if test -z "$haveit"; then
9373                   for x in $CPPFLAGS $INCINTL; do
9374
9375   acl_save_prefix="$prefix"
9376   prefix="$acl_final_prefix"
9377   acl_save_exec_prefix="$exec_prefix"
9378   exec_prefix="$acl_final_exec_prefix"
9379   eval x=\"$x\"
9380   exec_prefix="$acl_save_exec_prefix"
9381   prefix="$acl_save_prefix"
9382
9383                     if test "X$x" = "X-I$additional_includedir"; then
9384                       haveit=yes
9385                       break
9386                     fi
9387                   done
9388                   if test -z "$haveit"; then
9389                     if test -d "$additional_includedir"; then
9390                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9391                     fi
9392                   fi
9393                 fi
9394               fi
9395             fi
9396                         if test -n "$found_la"; then
9397                                                         save_libdir="$libdir"
9398               case "$found_la" in
9399                 */* | *\\*) . "$found_la" ;;
9400                 *) . "./$found_la" ;;
9401               esac
9402               libdir="$save_libdir"
9403                             for dep in $dependency_libs; do
9404                 case "$dep" in
9405                   -L*)
9406                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9407                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9408                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9409                       haveit=
9410                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9411                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9412                         if test -n "$GCC"; then
9413                           case $host_os in
9414                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9415                           esac
9416                         fi
9417                       fi
9418                       if test -z "$haveit"; then
9419                         haveit=
9420                         for x in $LDFLAGS $LIBINTL; do
9421
9422   acl_save_prefix="$prefix"
9423   prefix="$acl_final_prefix"
9424   acl_save_exec_prefix="$exec_prefix"
9425   exec_prefix="$acl_final_exec_prefix"
9426   eval x=\"$x\"
9427   exec_prefix="$acl_save_exec_prefix"
9428   prefix="$acl_save_prefix"
9429
9430                           if test "X$x" = "X-L$additional_libdir"; then
9431                             haveit=yes
9432                             break
9433                           fi
9434                         done
9435                         if test -z "$haveit"; then
9436                           if test -d "$additional_libdir"; then
9437                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9438                           fi
9439                         fi
9440                         haveit=
9441                         for x in $LDFLAGS $LTLIBINTL; do
9442
9443   acl_save_prefix="$prefix"
9444   prefix="$acl_final_prefix"
9445   acl_save_exec_prefix="$exec_prefix"
9446   exec_prefix="$acl_final_exec_prefix"
9447   eval x=\"$x\"
9448   exec_prefix="$acl_save_exec_prefix"
9449   prefix="$acl_save_prefix"
9450
9451                           if test "X$x" = "X-L$additional_libdir"; then
9452                             haveit=yes
9453                             break
9454                           fi
9455                         done
9456                         if test -z "$haveit"; then
9457                           if test -d "$additional_libdir"; then
9458                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9459                           fi
9460                         fi
9461                       fi
9462                     fi
9463                     ;;
9464                   -R*)
9465                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9466                     if test "$enable_rpath" != no; then
9467                                                                   haveit=
9468                       for x in $rpathdirs; do
9469                         if test "X$x" = "X$dir"; then
9470                           haveit=yes
9471                           break
9472                         fi
9473                       done
9474                       if test -z "$haveit"; then
9475                         rpathdirs="$rpathdirs $dir"
9476                       fi
9477                                                                   haveit=
9478                       for x in $ltrpathdirs; do
9479                         if test "X$x" = "X$dir"; then
9480                           haveit=yes
9481                           break
9482                         fi
9483                       done
9484                       if test -z "$haveit"; then
9485                         ltrpathdirs="$ltrpathdirs $dir"
9486                       fi
9487                     fi
9488                     ;;
9489                   -l*)
9490                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9491                     ;;
9492                   *.la)
9493                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9494                     ;;
9495                   *)
9496                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9497                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9498                     ;;
9499                 esac
9500               done
9501             fi
9502           else
9503                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9504             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9505           fi
9506         fi
9507       fi
9508     done
9509   done
9510   if test "X$rpathdirs" != "X"; then
9511     if test -n "$acl_hardcode_libdir_separator"; then
9512                         alldirs=
9513       for found_dir in $rpathdirs; do
9514         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9515       done
9516             acl_save_libdir="$libdir"
9517       libdir="$alldirs"
9518       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9519       libdir="$acl_save_libdir"
9520       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9521     else
9522             for found_dir in $rpathdirs; do
9523         acl_save_libdir="$libdir"
9524         libdir="$found_dir"
9525         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9526         libdir="$acl_save_libdir"
9527         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9528       done
9529     fi
9530   fi
9531   if test "X$ltrpathdirs" != "X"; then
9532             for found_dir in $ltrpathdirs; do
9533       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9534     done
9535   fi
9536
9537
9538
9539
9540
9541
9542           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9543 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9544 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9545   $as_echo_n "(cached) " >&6
9546 else
9547   gt_save_CPPFLAGS="$CPPFLAGS"
9548             CPPFLAGS="$CPPFLAGS $INCINTL"
9549             gt_save_LIBS="$LIBS"
9550             LIBS="$LIBS $LIBINTL"
9551                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h.  */
9553 #include <libintl.h>
9554 $gt_revision_test_code
9555 extern int _nl_msg_cat_cntr;
9556 extern
9557 #ifdef __cplusplus
9558 "C"
9559 #endif
9560 const char *_nl_expand_alias (const char *);
9561 int
9562 main ()
9563 {
9564 bindtextdomain ("", "");
9565 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571   eval "$gt_func_gnugettext_libintl=yes"
9572 else
9573   eval "$gt_func_gnugettext_libintl=no"
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576     conftest$ac_exeext conftest.$ac_ext
9577                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9578               LIBS="$LIBS $LIBICONV"
9579               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h.  */
9581 #include <libintl.h>
9582 $gt_revision_test_code
9583 extern int _nl_msg_cat_cntr;
9584 extern
9585 #ifdef __cplusplus
9586 "C"
9587 #endif
9588 const char *_nl_expand_alias (const char *);
9589 int
9590 main ()
9591 {
9592 bindtextdomain ("", "");
9593 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9599   LIBINTL="$LIBINTL $LIBICONV"
9600                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9601                 eval "$gt_func_gnugettext_libintl=yes"
9602
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext \
9605     conftest$ac_exeext conftest.$ac_ext
9606             fi
9607             CPPFLAGS="$gt_save_CPPFLAGS"
9608             LIBS="$gt_save_LIBS"
9609 fi
9610 eval ac_res=\$$gt_func_gnugettext_libintl
9611                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9612 $as_echo "$ac_res" >&6; }
9613         fi
9614
9615                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9616            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9617                 && test "$PACKAGE" != gettext-runtime \
9618                 && test "$PACKAGE" != gettext-tools; }; then
9619           gt_use_preinstalled_gnugettext=yes
9620         else
9621                     LIBINTL=
9622           LTLIBINTL=
9623           INCINTL=
9624         fi
9625
9626
9627         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9628                               nls_cv_use_gnu_gettext=yes
9629         fi
9630       fi
9631
9632       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9633                 BUILD_INCLUDED_LIBINTL=yes
9634         USE_INCLUDED_LIBINTL=yes
9635         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9636         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9637         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9638       fi
9639
9640       CATOBJEXT=
9641       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9642          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9643                 CATOBJEXT=.gmo
9644       fi
9645
9646
9647     if test -n "$INTL_MACOSX_LIBS"; then
9648       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9649          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9650                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9651         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9652       fi
9653     fi
9654
9655     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9656        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9657
9658 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9659
9660     else
9661       USE_NLS=no
9662     fi
9663   fi
9664
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9666 $as_echo_n "checking whether to use NLS... " >&6; }
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9668 $as_echo "$USE_NLS" >&6; }
9669   if test "$USE_NLS" = "yes"; then
9670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9671 $as_echo_n "checking where the gettext function comes from... " >&6; }
9672     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9673       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9674         gt_source="external libintl"
9675       else
9676         gt_source="libc"
9677       fi
9678     else
9679       gt_source="included intl directory"
9680     fi
9681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9682 $as_echo "$gt_source" >&6; }
9683   fi
9684
9685   if test "$USE_NLS" = "yes"; then
9686
9687     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9688       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9690 $as_echo_n "checking how to link with libintl... " >&6; }
9691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9692 $as_echo "$LIBINTL" >&6; }
9693
9694   for element in $INCINTL; do
9695     haveit=
9696     for x in $CPPFLAGS; do
9697
9698   acl_save_prefix="$prefix"
9699   prefix="$acl_final_prefix"
9700   acl_save_exec_prefix="$exec_prefix"
9701   exec_prefix="$acl_final_exec_prefix"
9702   eval x=\"$x\"
9703   exec_prefix="$acl_save_exec_prefix"
9704   prefix="$acl_save_prefix"
9705
9706       if test "X$x" = "X$element"; then
9707         haveit=yes
9708         break
9709       fi
9710     done
9711     if test -z "$haveit"; then
9712       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9713     fi
9714   done
9715
9716       fi
9717
9718
9719 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9720
9721
9722 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9723
9724     fi
9725
9726         POSUB=po
9727   fi
9728
9729
9730             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9731       BUILD_INCLUDED_LIBINTL=yes
9732     fi
9733
9734
9735
9736
9737
9738         nls_cv_header_intl=
9739     nls_cv_header_libgt=
9740
9741         DATADIRNAME=share
9742
9743
9744         INSTOBJEXT=.mo
9745
9746
9747         GENCAT=gencat
9748
9749
9750         INTLOBJS=
9751     if test "$USE_INCLUDED_LIBINTL" = yes; then
9752       INTLOBJS="\$(GETTOBJS)"
9753     fi
9754
9755
9756         INTL_LIBTOOL_SUFFIX_PREFIX=
9757
9758
9759
9760     INTLLIBS="$LIBINTL"
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772         abook_localedir="$datadir/locale"
9773                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9774                 eval tmp_abook_prefix=\""$abook_localedir"\"
9775                 eval echo $tmp_abook_prefix
9776                 )`
9777
9778 localedir="\$(datadir)/locale"
9779
9780
9781 # Check whether --with-localedir was given.
9782 if test "${with_localedir+set}" = set; then :
9783   withval=$with_localedir;
9784 fi
9785
9786 if test "x$with_localedir" != "x"; then
9787         abook_localedir="$with_localedir"
9788         localedir="$with_localedir"
9789 fi
9790
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define LOCALEDIR "$abook_localedir"
9794 _ACEOF
9795
9796
9797
9798  if test x$USE_INCLUDED_LIBINTL = xyes; then
9799   USE_INCLUDED_INTL_H_TRUE=
9800   USE_INCLUDED_INTL_H_FALSE='#'
9801 else
9802   USE_INCLUDED_INTL_H_TRUE='#'
9803   USE_INCLUDED_INTL_H_FALSE=
9804 fi
9805
9806
9807
9808 ac_ext=c
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813 if test -n "$ac_tool_prefix"; then
9814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_prog_CC+:} false; then :
9819   $as_echo_n "(cached) " >&6
9820 else
9821   if test -n "$CC"; then
9822   ac_cv_prog_CC="$CC" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827   IFS=$as_save_IFS
9828   test -z "$as_dir" && as_dir=.
9829     for ac_exec_ext in '' $ac_executable_extensions; do
9830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833     break 2
9834   fi
9835 done
9836   done
9837 IFS=$as_save_IFS
9838
9839 fi
9840 fi
9841 CC=$ac_cv_prog_CC
9842 if test -n "$CC"; then
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9844 $as_echo "$CC" >&6; }
9845 else
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9848 fi
9849
9850
9851 fi
9852 if test -z "$ac_cv_prog_CC"; then
9853   ac_ct_CC=$CC
9854   # Extract the first word of "gcc", so it can be a program name with args.
9855 set dummy gcc; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9859   $as_echo_n "(cached) " >&6
9860 else
9861   if test -n "$ac_ct_CC"; then
9862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867   IFS=$as_save_IFS
9868   test -z "$as_dir" && as_dir=.
9869     for ac_exec_ext in '' $ac_executable_extensions; do
9870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871     ac_cv_prog_ac_ct_CC="gcc"
9872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873     break 2
9874   fi
9875 done
9876   done
9877 IFS=$as_save_IFS
9878
9879 fi
9880 fi
9881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9882 if test -n "$ac_ct_CC"; then
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9884 $as_echo "$ac_ct_CC" >&6; }
9885 else
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9888 fi
9889
9890   if test "x$ac_ct_CC" = x; then
9891     CC=""
9892   else
9893     case $cross_compiling:$ac_tool_warned in
9894 yes:)
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9897 ac_tool_warned=yes ;;
9898 esac
9899     CC=$ac_ct_CC
9900   fi
9901 else
9902   CC="$ac_cv_prog_CC"
9903 fi
9904
9905 if test -z "$CC"; then
9906           if test -n "$ac_tool_prefix"; then
9907     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9908 set dummy ${ac_tool_prefix}cc; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if ${ac_cv_prog_CC+:} false; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   if test -n "$CC"; then
9915   ac_cv_prog_CC="$CC" # Let the user override the test.
9916 else
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920   IFS=$as_save_IFS
9921   test -z "$as_dir" && as_dir=.
9922     for ac_exec_ext in '' $ac_executable_extensions; do
9923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924     ac_cv_prog_CC="${ac_tool_prefix}cc"
9925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926     break 2
9927   fi
9928 done
9929   done
9930 IFS=$as_save_IFS
9931
9932 fi
9933 fi
9934 CC=$ac_cv_prog_CC
9935 if test -n "$CC"; then
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9937 $as_echo "$CC" >&6; }
9938 else
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9941 fi
9942
9943
9944   fi
9945 fi
9946 if test -z "$CC"; then
9947   # Extract the first word of "cc", so it can be a program name with args.
9948 set dummy cc; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_prog_CC+:} false; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   if test -n "$CC"; then
9955   ac_cv_prog_CC="$CC" # Let the user override the test.
9956 else
9957   ac_prog_rejected=no
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9960 do
9961   IFS=$as_save_IFS
9962   test -z "$as_dir" && as_dir=.
9963     for ac_exec_ext in '' $ac_executable_extensions; do
9964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9966        ac_prog_rejected=yes
9967        continue
9968      fi
9969     ac_cv_prog_CC="cc"
9970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971     break 2
9972   fi
9973 done
9974   done
9975 IFS=$as_save_IFS
9976
9977 if test $ac_prog_rejected = yes; then
9978   # We found a bogon in the path, so make sure we never use it.
9979   set dummy $ac_cv_prog_CC
9980   shift
9981   if test $# != 0; then
9982     # We chose a different compiler from the bogus one.
9983     # However, it has the same basename, so the bogon will be chosen
9984     # first if we set CC to just the basename; use the full file name.
9985     shift
9986     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9987   fi
9988 fi
9989 fi
9990 fi
9991 CC=$ac_cv_prog_CC
9992 if test -n "$CC"; then
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9994 $as_echo "$CC" >&6; }
9995 else
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
9998 fi
9999
10000
10001 fi
10002 if test -z "$CC"; then
10003   if test -n "$ac_tool_prefix"; then
10004   for ac_prog in cl.exe
10005   do
10006     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_CC+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   if test -n "$CC"; then
10014   ac_cv_prog_CC="$CC" # Let the user override the test.
10015 else
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10018 do
10019   IFS=$as_save_IFS
10020   test -z "$as_dir" && as_dir=.
10021     for ac_exec_ext in '' $ac_executable_extensions; do
10022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10023     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025     break 2
10026   fi
10027 done
10028   done
10029 IFS=$as_save_IFS
10030
10031 fi
10032 fi
10033 CC=$ac_cv_prog_CC
10034 if test -n "$CC"; then
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10036 $as_echo "$CC" >&6; }
10037 else
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 fi
10041
10042
10043     test -n "$CC" && break
10044   done
10045 fi
10046 if test -z "$CC"; then
10047   ac_ct_CC=$CC
10048   for ac_prog in cl.exe
10049 do
10050   # Extract the first word of "$ac_prog", so it can be a program name with args.
10051 set dummy $ac_prog; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   if test -n "$ac_ct_CC"; then
10058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065     for ac_exec_ext in '' $ac_executable_extensions; do
10066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067     ac_cv_prog_ac_ct_CC="$ac_prog"
10068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069     break 2
10070   fi
10071 done
10072   done
10073 IFS=$as_save_IFS
10074
10075 fi
10076 fi
10077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10078 if test -n "$ac_ct_CC"; then
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10080 $as_echo "$ac_ct_CC" >&6; }
10081 else
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 fi
10085
10086
10087   test -n "$ac_ct_CC" && break
10088 done
10089
10090   if test "x$ac_ct_CC" = x; then
10091     CC=""
10092   else
10093     case $cross_compiling:$ac_tool_warned in
10094 yes:)
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10097 ac_tool_warned=yes ;;
10098 esac
10099     CC=$ac_ct_CC
10100   fi
10101 fi
10102
10103 fi
10104
10105
10106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10108 as_fn_error $? "no acceptable C compiler found in \$PATH
10109 See \`config.log' for more details" "$LINENO" 5; }
10110
10111 # Provide some information about the compiler.
10112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10113 set X $ac_compile
10114 ac_compiler=$2
10115 for ac_option in --version -v -V -qversion; do
10116   { { ac_try="$ac_compiler $ac_option >&5"
10117 case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10122 $as_echo "$ac_try_echo"; } >&5
10123   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10124   ac_status=$?
10125   if test -s conftest.err; then
10126     sed '10a\
10127 ... rest of stderr output deleted ...
10128          10q' conftest.err >conftest.er1
10129     cat conftest.er1 >&5
10130   fi
10131   rm -f conftest.er1 conftest.err
10132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133   test $ac_status = 0; }
10134 done
10135
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10138 if ${ac_cv_c_compiler_gnu+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h.  */
10143
10144 int
10145 main ()
10146 {
10147 #ifndef __GNUC__
10148        choke me
10149 #endif
10150
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 if ac_fn_c_try_compile "$LINENO"; then :
10156   ac_compiler_gnu=yes
10157 else
10158   ac_compiler_gnu=no
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10166 if test $ac_compiler_gnu = yes; then
10167   GCC=yes
10168 else
10169   GCC=
10170 fi
10171 ac_test_CFLAGS=${CFLAGS+set}
10172 ac_save_CFLAGS=$CFLAGS
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10175 if ${ac_cv_prog_cc_g+:} false; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   ac_save_c_werror_flag=$ac_c_werror_flag
10179    ac_c_werror_flag=yes
10180    ac_cv_prog_cc_g=no
10181    CFLAGS="-g"
10182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h.  */
10184
10185 int
10186 main ()
10187 {
10188
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194   ac_cv_prog_cc_g=yes
10195 else
10196   CFLAGS=""
10197       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h.  */
10199
10200 int
10201 main ()
10202 {
10203
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_compile "$LINENO"; then :
10209
10210 else
10211   ac_c_werror_flag=$ac_save_c_werror_flag
10212          CFLAGS="-g"
10213          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h.  */
10215
10216 int
10217 main ()
10218 {
10219
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_compile "$LINENO"; then :
10225   ac_cv_prog_cc_g=yes
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232    ac_c_werror_flag=$ac_save_c_werror_flag
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10235 $as_echo "$ac_cv_prog_cc_g" >&6; }
10236 if test "$ac_test_CFLAGS" = set; then
10237   CFLAGS=$ac_save_CFLAGS
10238 elif test $ac_cv_prog_cc_g = yes; then
10239   if test "$GCC" = yes; then
10240     CFLAGS="-g -O2"
10241   else
10242     CFLAGS="-g"
10243   fi
10244 else
10245   if test "$GCC" = yes; then
10246     CFLAGS="-O2"
10247   else
10248     CFLAGS=
10249   fi
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10253 if ${ac_cv_prog_cc_c89+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   ac_cv_prog_cc_c89=no
10257 ac_save_CC=$CC
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h.  */
10260 #include <stdarg.h>
10261 #include <stdio.h>
10262 #include <sys/types.h>
10263 #include <sys/stat.h>
10264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10265 struct buf { int x; };
10266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10267 static char *e (p, i)
10268      char **p;
10269      int i;
10270 {
10271   return p[i];
10272 }
10273 static char *f (char * (*g) (char **, int), char **p, ...)
10274 {
10275   char *s;
10276   va_list v;
10277   va_start (v,p);
10278   s = g (p, va_arg (v,int));
10279   va_end (v);
10280   return s;
10281 }
10282
10283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10284    function prototypes and stuff, but not '\xHH' hex character constants.
10285    These don't provoke an error unfortunately, instead are silently treated
10286    as 'x'.  The following induces an error, until -std is added to get
10287    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10288    array size at least.  It's necessary to write '\x00'==0 to get something
10289    that's true only with -std.  */
10290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10291
10292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10293    inside strings and character constants.  */
10294 #define FOO(x) 'x'
10295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10296
10297 int test (int i, double x);
10298 struct s1 {int (*f) (int a);};
10299 struct s2 {int (*f) (double a);};
10300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10301 int argc;
10302 char **argv;
10303 int
10304 main ()
10305 {
10306 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10312         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10313 do
10314   CC="$ac_save_CC $ac_arg"
10315   if ac_fn_c_try_compile "$LINENO"; then :
10316   ac_cv_prog_cc_c89=$ac_arg
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext
10319   test "x$ac_cv_prog_cc_c89" != "xno" && break
10320 done
10321 rm -f conftest.$ac_ext
10322 CC=$ac_save_CC
10323
10324 fi
10325 # AC_CACHE_VAL
10326 case "x$ac_cv_prog_cc_c89" in
10327   x)
10328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10329 $as_echo "none needed" >&6; } ;;
10330   xno)
10331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10332 $as_echo "unsupported" >&6; } ;;
10333   *)
10334     CC="$CC $ac_cv_prog_cc_c89"
10335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10336 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10337 esac
10338 if test "x$ac_cv_prog_cc_c89" != xno; then :
10339
10340 fi
10341
10342 ac_ext=c
10343 ac_cpp='$CPP $CPPFLAGS'
10344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10347
10348 depcc="$CC"   am_compiler_list=
10349
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10351 $as_echo_n "checking dependency style of $depcc... " >&6; }
10352 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10356   # We make a subdir and do the tests there.  Otherwise we can end up
10357   # making bogus files that we don't know about and never remove.  For
10358   # instance it was reported that on HP-UX the gcc test will end up
10359   # making a dummy file named `D' -- because `-MD' means `put the output
10360   # in D'.
10361   rm -rf conftest.dir
10362   mkdir conftest.dir
10363   # Copy depcomp to subdir because otherwise we won't find it if we're
10364   # using a relative directory.
10365   cp "$am_depcomp" conftest.dir
10366   cd conftest.dir
10367   # We will build objects and dependencies in a subdirectory because
10368   # it helps to detect inapplicable dependency modes.  For instance
10369   # both Tru64's cc and ICC support -MD to output dependencies as a
10370   # side effect of compilation, but ICC will put the dependencies in
10371   # the current directory while Tru64 will put them in the object
10372   # directory.
10373   mkdir sub
10374
10375   am_cv_CC_dependencies_compiler_type=none
10376   if test "$am_compiler_list" = ""; then
10377      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10378   fi
10379   am__universal=false
10380   case " $depcc " in #(
10381      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10382      esac
10383
10384   for depmode in $am_compiler_list; do
10385     # Setup a source with many dependencies, because some compilers
10386     # like to wrap large dependency lists on column 80 (with \), and
10387     # we should not choose a depcomp mode which is confused by this.
10388     #
10389     # We need to recreate these files for each test, as the compiler may
10390     # overwrite some of them when testing with obscure command lines.
10391     # This happens at least with the AIX C compiler.
10392     : > sub/conftest.c
10393     for i in 1 2 3 4 5 6; do
10394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10395       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10396       # Solaris 8's {/usr,}/bin/sh.
10397       touch sub/conftst$i.h
10398     done
10399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10400
10401     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10402     # mode.  It turns out that the SunPro C++ compiler does not properly
10403     # handle `-M -o', and we need to detect this.  Also, some Intel
10404     # versions had trouble with output in subdirs
10405     am__obj=sub/conftest.${OBJEXT-o}
10406     am__minus_obj="-o $am__obj"
10407     case $depmode in
10408     gcc)
10409       # This depmode causes a compiler race in universal mode.
10410       test "$am__universal" = false || continue
10411       ;;
10412     nosideeffect)
10413       # after this tag, mechanisms are not by side-effect, so they'll
10414       # only be used when explicitly requested
10415       if test "x$enable_dependency_tracking" = xyes; then
10416         continue
10417       else
10418         break
10419       fi
10420       ;;
10421     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10422       # This compiler won't grok `-c -o', but also, the minuso test has
10423       # not run yet.  These depmodes are late enough in the game, and
10424       # so weak that their functioning should not be impacted.
10425       am__obj=conftest.${OBJEXT-o}
10426       am__minus_obj=
10427       ;;
10428     none) break ;;
10429     esac
10430     if depmode=$depmode \
10431        source=sub/conftest.c object=$am__obj \
10432        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10433        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10434          >/dev/null 2>conftest.err &&
10435        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10436        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10437        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10438        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10439       # icc doesn't choke on unknown options, it will just issue warnings
10440       # or remarks (even with -Werror).  So we grep stderr for any message
10441       # that says an option was ignored or not supported.
10442       # When given -MP, icc 7.0 and 7.1 complain thusly:
10443       #   icc: Command line warning: ignoring option '-M'; no argument required
10444       # The diagnosis changed in icc 8.0:
10445       #   icc: Command line remark: option '-MP' not supported
10446       if (grep 'ignoring option' conftest.err ||
10447           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10448         am_cv_CC_dependencies_compiler_type=$depmode
10449         break
10450       fi
10451     fi
10452   done
10453
10454   cd ..
10455   rm -rf conftest.dir
10456 else
10457   am_cv_CC_dependencies_compiler_type=none
10458 fi
10459
10460 fi
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10462 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10464
10465  if
10466   test "x$enable_dependency_tracking" != xno \
10467   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10468   am__fastdepCC_TRUE=
10469   am__fastdepCC_FALSE='#'
10470 else
10471   am__fastdepCC_TRUE='#'
10472   am__fastdepCC_FALSE=
10473 fi
10474
10475
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10477 $as_echo_n "checking for library containing strerror... " >&6; }
10478 if ${ac_cv_search_strerror+:} false; then :
10479   $as_echo_n "(cached) " >&6
10480 else
10481   ac_func_search_save_LIBS=$LIBS
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h.  */
10484
10485 /* Override any GCC internal prototype to avoid an error.
10486    Use char because int might match the return type of a GCC
10487    builtin and then its argument prototype would still apply.  */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 char strerror ();
10492 int
10493 main ()
10494 {
10495 return strerror ();
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 for ac_lib in '' cposix; do
10501   if test -z "$ac_lib"; then
10502     ac_res="none required"
10503   else
10504     ac_res=-l$ac_lib
10505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10506   fi
10507   if ac_fn_c_try_link "$LINENO"; then :
10508   ac_cv_search_strerror=$ac_res
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext \
10511     conftest$ac_exeext
10512   if ${ac_cv_search_strerror+:} false; then :
10513   break
10514 fi
10515 done
10516 if ${ac_cv_search_strerror+:} false; then :
10517
10518 else
10519   ac_cv_search_strerror=no
10520 fi
10521 rm conftest.$ac_ext
10522 LIBS=$ac_func_search_save_LIBS
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10525 $as_echo "$ac_cv_search_strerror" >&6; }
10526 ac_res=$ac_cv_search_strerror
10527 if test "$ac_res" != no; then :
10528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10529
10530 fi
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10533 $as_echo_n "checking for function prototypes... " >&6; }
10534 if test "$ac_cv_prog_cc_c89" != no; then
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10536 $as_echo "yes" >&6; }
10537
10538 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10539
10540
10541 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10542
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548
10549
10550 if test "$ac_cv_prog_cc_stdc" != no; then
10551   U= ANSI2KNR=
10552 else
10553   U=_ ANSI2KNR=./ansi2knr
10554 fi
10555 # Ensure some checks needed by ansi2knr itself.
10556
10557 for ac_header in string.h
10558 do :
10559   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10560 if test "x$ac_cv_header_string_h" = xyes; then :
10561   cat >>confdefs.h <<_ACEOF
10562 #define HAVE_STRING_H 1
10563 _ACEOF
10564
10565 fi
10566
10567 done
10568
10569
10570 if test "x$U" != "x"; then
10571         as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10572 fi
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10574 $as_echo_n "checking for inline... " >&6; }
10575 if ${ac_cv_c_inline+:} false; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   ac_cv_c_inline=no
10579 for ac_kw in inline __inline__ __inline; do
10580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h.  */
10582 #ifndef __cplusplus
10583 typedef int foo_t;
10584 static $ac_kw foo_t static_foo () {return 0; }
10585 $ac_kw foo_t foo () {return 0; }
10586 #endif
10587
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590   ac_cv_c_inline=$ac_kw
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593   test "$ac_cv_c_inline" != no && break
10594 done
10595
10596 fi
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10598 $as_echo "$ac_cv_c_inline" >&6; }
10599
10600 case $ac_cv_c_inline in
10601   inline | yes) ;;
10602   *)
10603     case $ac_cv_c_inline in
10604       no) ac_val=;;
10605       *) ac_val=$ac_cv_c_inline;;
10606     esac
10607     cat >>confdefs.h <<_ACEOF
10608 #ifndef __cplusplus
10609 #define inline $ac_val
10610 #endif
10611 _ACEOF
10612     ;;
10613 esac
10614
10615
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10617 $as_echo_n "checking for ANSI C header files... " >&6; }
10618 if ${ac_cv_header_stdc+:} false; then :
10619   $as_echo_n "(cached) " >&6
10620 else
10621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h.  */
10623 #include <stdlib.h>
10624 #include <stdarg.h>
10625 #include <string.h>
10626 #include <float.h>
10627
10628 int
10629 main ()
10630 {
10631
10632   ;
10633   return 0;
10634 }
10635 _ACEOF
10636 if ac_fn_c_try_compile "$LINENO"; then :
10637   ac_cv_header_stdc=yes
10638 else
10639   ac_cv_header_stdc=no
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642
10643 if test $ac_cv_header_stdc = yes; then
10644   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h.  */
10647 #include <string.h>
10648
10649 _ACEOF
10650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10651   $EGREP "memchr" >/dev/null 2>&1; then :
10652
10653 else
10654   ac_cv_header_stdc=no
10655 fi
10656 rm -f conftest*
10657
10658 fi
10659
10660 if test $ac_cv_header_stdc = yes; then
10661   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h.  */
10664 #include <stdlib.h>
10665
10666 _ACEOF
10667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668   $EGREP "free" >/dev/null 2>&1; then :
10669
10670 else
10671   ac_cv_header_stdc=no
10672 fi
10673 rm -f conftest*
10674
10675 fi
10676
10677 if test $ac_cv_header_stdc = yes; then
10678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10679   if test "$cross_compiling" = yes; then :
10680   :
10681 else
10682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684 #include <ctype.h>
10685 #include <stdlib.h>
10686 #if ((' ' & 0x0FF) == 0x020)
10687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10689 #else
10690 # define ISLOWER(c) \
10691                    (('a' <= (c) && (c) <= 'i') \
10692                      || ('j' <= (c) && (c) <= 'r') \
10693                      || ('s' <= (c) && (c) <= 'z'))
10694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10695 #endif
10696
10697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10698 int
10699 main ()
10700 {
10701   int i;
10702   for (i = 0; i < 256; i++)
10703     if (XOR (islower (i), ISLOWER (i))
10704         || toupper (i) != TOUPPER (i))
10705       return 2;
10706   return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_run "$LINENO"; then :
10710
10711 else
10712   ac_cv_header_stdc=no
10713 fi
10714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10715   conftest.$ac_objext conftest.beam conftest.$ac_ext
10716 fi
10717
10718 fi
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10721 $as_echo "$ac_cv_header_stdc" >&6; }
10722 if test $ac_cv_header_stdc = yes; then
10723
10724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10725
10726 fi
10727
10728 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10729 do :
10730   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10733   cat >>confdefs.h <<_ACEOF
10734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10735 _ACEOF
10736
10737 fi
10738
10739 done
10740
10741 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10742 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10743
10744 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10745
10746 else
10747   as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10748 fi
10749
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10752 $as_echo_n "checking for working strcoll... " >&6; }
10753 if ${ac_cv_func_strcoll_works+:} false; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756   if test "$cross_compiling" = yes; then :
10757   ac_cv_func_strcoll_works=no
10758 else
10759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761 $ac_includes_default
10762 int
10763 main ()
10764 {
10765 return (strcoll ("abc", "def") >= 0 ||
10766          strcoll ("ABC", "DEF") >= 0 ||
10767          strcoll ("123", "456") >= 0)
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_c_try_run "$LINENO"; then :
10773   ac_cv_func_strcoll_works=yes
10774 else
10775   ac_cv_func_strcoll_works=no
10776 fi
10777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10778   conftest.$ac_objext conftest.beam conftest.$ac_ext
10779 fi
10780
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10783 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10784 if test $ac_cv_func_strcoll_works = yes; then
10785
10786 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10787
10788 fi
10789
10790 for ac_func in setlocale
10791 do :
10792   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10793 if test "x$ac_cv_func_setlocale" = xyes; then :
10794   cat >>confdefs.h <<_ACEOF
10795 #define HAVE_SETLOCALE 1
10796 _ACEOF
10797
10798 fi
10799 done
10800
10801
10802 ac_widec_funcs=yes
10803 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10804 if test "x$ac_cv_header_wchar_h" = xyes; then :
10805
10806         ac_have_wchar_h=yes
10807
10808 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10809
10810 else
10811   ac_have_wchar_h=no
10812 fi
10813
10814
10815 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10816 do :
10817   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10820   cat >>confdefs.h <<_ACEOF
10821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10822 _ACEOF
10823
10824 else
10825   ac_widec_funcs=no
10826 fi
10827 done
10828
10829 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10830 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10831   ac_have_decl=1
10832 else
10833   ac_have_decl=0
10834 fi
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_DECL_WCWIDTH $ac_have_decl
10838 _ACEOF
10839
10840 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10841 if test "x$ac_cv_type_wchar_t" = xyes; then :
10842
10843 else
10844   ac_widec_funcs=no
10845 fi
10846
10847
10848 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10849         ac_widec_possible=yes
10850 else
10851         ac_widec_possible=no
10852 fi
10853
10854
10855 abook_cv_curses=/usr
10856
10857 # Check whether --with-curses was given.
10858 if test "${with_curses+set}" = set; then :
10859   withval=$with_curses; if test $withval != yes; then
10860                 abook_cv_curses=$withval
10861         fi
10862         if test x$abook_cv_curses != x/usr; then
10863                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10864                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10865         fi
10866 fi
10867
10868
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10870 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10871 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lncursesw  $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h.  */
10878
10879 /* Override any GCC internal prototype to avoid an error.
10880    Use char because int might match the return type of a GCC
10881    builtin and then its argument prototype would still apply.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char initscr ();
10886 int
10887 main ()
10888 {
10889 return initscr ();
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895   ac_cv_lib_ncursesw_initscr=yes
10896 else
10897   ac_cv_lib_ncursesw_initscr=no
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900     conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10904 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10905 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10906   LIBS="$LIBS -lncursesw"
10907         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10908                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10909         fi
10910         for ac_header in ncurses.h
10911 do :
10912   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10913 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10914   cat >>confdefs.h <<_ACEOF
10915 #define HAVE_NCURSES_H 1
10916 _ACEOF
10917
10918 fi
10919
10920 done
10921
10922 else
10923
10924         ac_widec_possible=no
10925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10926 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10927 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10928   $as_echo_n "(cached) " >&6
10929 else
10930   ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lncurses  $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h.  */
10934
10935 /* Override any GCC internal prototype to avoid an error.
10936    Use char because int might match the return type of a GCC
10937    builtin and then its argument prototype would still apply.  */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char initscr ();
10942 int
10943 main ()
10944 {
10945 return initscr ();
10946   ;
10947   return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951   ac_cv_lib_ncurses_initscr=yes
10952 else
10953   ac_cv_lib_ncurses_initscr=no
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956     conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10960 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10961 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10962   LIBS="$LIBS -lncurses"
10963                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10964                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10965                 fi
10966                 for ac_header in ncurses.h
10967 do :
10968   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10969 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10970   cat >>confdefs.h <<_ACEOF
10971 #define HAVE_NCURSES_H 1
10972 _ACEOF
10973
10974 fi
10975
10976 done
10977
10978 else
10979
10980 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10981 if test "x$ac_cv_func_initscr" = xyes; then :
10982
10983 else
10984
10985 case $host_os in #(vi
10986 freebsd*) #(vi
10987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10988 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10989 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-lmytinfo  $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char tgoto ();
11004 int
11005 main ()
11006 {
11007 return tgoto ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013   ac_cv_lib_mytinfo_tgoto=yes
11014 else
11015   ac_cv_lib_mytinfo_tgoto=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11022 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11023 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11024   LIBS="-lmytinfo $LIBS"
11025 fi
11026
11027         ;;
11028 hpux10.*|hpux11.*)
11029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11030 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11031 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lcur_colr  $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char initscr ();
11046 int
11047 main ()
11048 {
11049 return initscr ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055   ac_cv_lib_cur_colr_initscr=yes
11056 else
11057   ac_cv_lib_cur_colr_initscr=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060     conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11064 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11065 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11066
11067                 LIBS="-lcur_colr $LIBS"
11068                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11069                 ac_cv_func_initscr=yes
11070
11071 else
11072
11073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11074 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11075 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-lHcurses  $LIBS"
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h.  */
11082
11083 /* Override any GCC internal prototype to avoid an error.
11084    Use char because int might match the return type of a GCC
11085    builtin and then its argument prototype would still apply.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 char initscr ();
11090 int
11091 main ()
11092 {
11093 return initscr ();
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 if ac_fn_c_try_link "$LINENO"; then :
11099   ac_cv_lib_Hcurses_initscr=yes
11100 else
11101   ac_cv_lib_Hcurses_initscr=no
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext \
11104     conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11108 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11109 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11110
11111                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11112                 LIBS="-lHcurses $LIBS"
11113                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11114                 ac_cv_func_initscr=yes
11115
11116 fi
11117
11118 fi
11119
11120         ;;
11121 linux*) # Suse Linux does not follow /usr/lib convention
11122         LIBS="$LIBS -L/lib"
11123         ;;
11124 esac
11125
11126 if test ".$With5lib" != ".no" ; then
11127 if test -d /usr/5lib ; then
11128         # SunOS 3.x or 4.x
11129         CPPFLAGS="$CPPFLAGS -I/usr/5include"
11130         LIBS="$LIBS -L/usr/5lib"
11131 fi
11132 fi
11133
11134 if test ".$ac_cv_func_initscr" != .yes ; then
11135         cf_save_LIBS="$LIBS"
11136         cf_term_lib=""
11137         cf_curs_lib=""
11138
11139         # Check for library containing tgoto.  Do this before curses library
11140         # because it may be needed to link the test-case for initscr.
11141         ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11142 if test "x$ac_cv_func_tgoto" = xyes; then :
11143   cf_term_lib=predefined
11144 else
11145
11146                 for cf_term_lib in termcap termlib unknown
11147                 do
11148                         as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11150 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11151 if eval \${$as_ac_Lib+:} false; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   ac_check_lib_save_LIBS=$LIBS
11155 LIBS="-l$cf_term_lib  $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char tgoto ();
11166 int
11167 main ()
11168 {
11169 return tgoto ();
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175   eval "$as_ac_Lib=yes"
11176 else
11177   eval "$as_ac_Lib=no"
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180     conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 eval ac_res=\$$as_ac_Lib
11184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11186 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11187   break
11188 fi
11189
11190                 done
11191
11192 fi
11193
11194
11195         # Check for library containing initscr
11196         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11197         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11198         do
11199                 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11201 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11202 if eval \${$as_ac_Lib+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   ac_check_lib_save_LIBS=$LIBS
11206 LIBS="-l$cf_curs_lib  $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h.  */
11209
11210 /* Override any GCC internal prototype to avoid an error.
11211    Use char because int might match the return type of a GCC
11212    builtin and then its argument prototype would still apply.  */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char initscr ();
11217 int
11218 main ()
11219 {
11220 return initscr ();
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"; then :
11226   eval "$as_ac_Lib=yes"
11227 else
11228   eval "$as_ac_Lib=no"
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext \
11231     conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11233 fi
11234 eval ac_res=\$$as_ac_Lib
11235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11236 $as_echo "$ac_res" >&6; }
11237 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11238   break
11239 fi
11240
11241         done
11242         test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11243
11244         LIBS="-l$cf_curs_lib $cf_save_LIBS"
11245         if test "$cf_term_lib" = unknown ; then
11246                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11247 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11248                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h.  */
11250 #include <${cf_cv_ncurses_header-curses.h}>
11251 int
11252 main ()
11253 {
11254 initscr()
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260   cf_result=yes
11261 else
11262   cf_result=no
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext \
11265     conftest$ac_exeext conftest.$ac_ext
11266                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11267 $as_echo "$cf_result" >&6; }
11268                 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11269         elif test "$cf_term_lib" != predefined ; then
11270                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11271 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11272                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h.  */
11274 #include <${cf_cv_ncurses_header-curses.h}>
11275 int
11276 main ()
11277 {
11278 initscr(); tgoto((char *)0, 0, 0);
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284   cf_result=no
11285 else
11286
11287                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11288                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h.  */
11290 #include <${cf_cv_ncurses_header-curses.h}>
11291 int
11292 main ()
11293 {
11294 initscr()
11295   ;
11296   return 0;
11297 }
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300   cf_result=yes
11301 else
11302   cf_result=error
11303 fi
11304 rm -f core conftest.err conftest.$ac_objext \
11305     conftest$ac_exeext conftest.$ac_ext
11306
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11311 $as_echo "$cf_result" >&6; }
11312         fi
11313 fi
11314
11315
11316 fi
11317
11318 fi
11319
11320
11321 fi
11322
11323
11324
11325
11326 abook_cv_readline=/usr
11327
11328 # Check whether --with-readline was given.
11329 if test "${with_readline+set}" = set; then :
11330   withval=$with_readline; if test $withval != yes; then
11331                 abook_cv_readline=$withval
11332         fi
11333         if test x$abook_cv_readline != x/usr; then
11334                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11335                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11336         fi
11337 fi
11338
11339
11340
11341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11342 $as_echo_n "checking for a readline compatible library... " >&6; }
11343 if ${ac_cv_lib_readline+:} false; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346
11347     ORIG_LIBS="$LIBS"
11348     for readline_lib in readline edit editline; do
11349       for termcap_lib in "" termcap curses ncurses; do
11350         if test -z "$termcap_lib"; then
11351           TRY_LIB="-l$readline_lib"
11352         else
11353           TRY_LIB="-l$readline_lib -l$termcap_lib"
11354         fi
11355         LIBS="$ORIG_LIBS $TRY_LIB"
11356         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h.  */
11358
11359 /* Override any GCC internal prototype to avoid an error.
11360    Use char because int might match the return type of a GCC
11361    builtin and then its argument prototype would still apply.  */
11362 #ifdef __cplusplus
11363 extern "C"
11364 #endif
11365 char readline ();
11366 int
11367 main ()
11368 {
11369 return readline ();
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375   ac_cv_lib_readline="$TRY_LIB"
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378     conftest$ac_exeext conftest.$ac_ext
11379         if test -n "$ac_cv_lib_readline"; then
11380           break
11381         fi
11382       done
11383       if test -n "$ac_cv_lib_readline"; then
11384         break
11385       fi
11386     done
11387     if test -z "$ac_cv_lib_readline"; then
11388       ac_cv_lib_readline="no"
11389     fi
11390     LIBS="$ORIG_LIBS"
11391
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11394 $as_echo "$ac_cv_lib_readline" >&6; }
11395
11396   if test "$ac_cv_lib_readline" != "no"; then
11397     LIBS="$LIBS $ac_cv_lib_readline"
11398
11399 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11400
11401     for ac_header in readline.h readline/readline.h
11402 do :
11403   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11406   cat >>confdefs.h <<_ACEOF
11407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411
11412 done
11413
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11415 $as_echo_n "checking whether readline supports history... " >&6; }
11416 if ${ac_cv_lib_readline_history+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419
11420       ac_cv_lib_readline_history="no"
11421       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425    Use char because int might match the return type of a GCC
11426    builtin and then its argument prototype would still apply.  */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char add_history ();
11431 int
11432 main ()
11433 {
11434 return add_history ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440   ac_cv_lib_readline_history="yes"
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443     conftest$ac_exeext conftest.$ac_ext
11444
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11447 $as_echo "$ac_cv_lib_readline_history" >&6; }
11448     if test "$ac_cv_lib_readline_history" = "yes"; then
11449
11450 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11451
11452       for ac_header in history.h readline/history.h
11453 do :
11454   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11457   cat >>confdefs.h <<_ACEOF
11458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 _ACEOF
11460
11461 fi
11462
11463 done
11464
11465     fi
11466   fi
11467
11468
11469
11470 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11471         as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11472 fi
11473
11474
11475 if test x$ac_widec_possible = xyes; then
11476
11477 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11478
11479 fi
11480
11481 for ac_func in resizeterm
11482 do :
11483   ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11484 if test "x$ac_cv_func_resizeterm" = xyes; then :
11485   cat >>confdefs.h <<_ACEOF
11486 #define HAVE_RESIZETERM 1
11487 _ACEOF
11488
11489 fi
11490 done
11491
11492
11493 for ac_func in snprintf vsnprintf
11494 do :
11495   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11498   cat >>confdefs.h <<_ACEOF
11499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11500 _ACEOF
11501
11502 fi
11503 done
11504
11505
11506 for ac_func in strcasestr
11507 do :
11508   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11509 if test "x$ac_cv_func_strcasestr" = xyes; then :
11510   cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRCASESTR 1
11512 _ACEOF
11513  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11514
11515 fi
11516 done
11517
11518
11519 # Check whether --enable-debug was given.
11520 if test "${enable_debug+set}" = set; then :
11521   enableval=$enable_debug; case "${enableval}" in
11522         yes) debug=true ;;
11523         no) debug=false ;;
11524         *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11525         esac
11526 else
11527   debug=false
11528 fi
11529
11530
11531 if test x$debug = xtrue; then
11532         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11533         CFLAGS="-g $CFLAGS"
11534 fi
11535
11536 if test x$GCC = xyes; then
11537         CFLAGS="-Wall $CFLAGS"
11538 fi
11539
11540 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11541
11542 cat >confcache <<\_ACEOF
11543 # This file is a shell script that caches the results of configure
11544 # tests run on this system so they can be shared between configure
11545 # scripts and configure runs, see configure's option --config-cache.
11546 # It is not useful on other systems.  If it contains results you don't
11547 # want to keep, you may remove or edit it.
11548 #
11549 # config.status only pays attention to the cache file if you give it
11550 # the --recheck option to rerun configure.
11551 #
11552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11554 # following values.
11555
11556 _ACEOF
11557
11558 # The following way of writing the cache mishandles newlines in values,
11559 # but we know of no workaround that is simple, portable, and efficient.
11560 # So, we kill variables containing newlines.
11561 # Ultrix sh set writes to stderr and can't be redirected directly,
11562 # and sets the high bit in the cache file unless we assign to the vars.
11563 (
11564   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11565     eval ac_val=\$$ac_var
11566     case $ac_val in #(
11567     *${as_nl}*)
11568       case $ac_var in #(
11569       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11571       esac
11572       case $ac_var in #(
11573       _ | IFS | as_nl) ;; #(
11574       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11575       *) { eval $ac_var=; unset $ac_var;} ;;
11576       esac ;;
11577     esac
11578   done
11579
11580   (set) 2>&1 |
11581     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11582     *${as_nl}ac_space=\ *)
11583       # `set' does not quote correctly, so add quotes: double-quote
11584       # substitution turns \\\\ into \\, and sed turns \\ into \.
11585       sed -n \
11586         "s/'/'\\\\''/g;
11587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11588       ;; #(
11589     *)
11590       # `set' quotes correctly as required by POSIX, so do not add quotes.
11591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11592       ;;
11593     esac |
11594     sort
11595 ) |
11596   sed '
11597      /^ac_cv_env_/b end
11598      t clear
11599      :clear
11600      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11601      t end
11602      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11603      :end' >>confcache
11604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11605   if test -w "$cache_file"; then
11606     if test "x$cache_file" != "x/dev/null"; then
11607       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11608 $as_echo "$as_me: updating cache $cache_file" >&6;}
11609       if test ! -f "$cache_file" || test -h "$cache_file"; then
11610         cat confcache >"$cache_file"
11611       else
11612         case $cache_file in #(
11613         */* | ?:*)
11614           mv -f confcache "$cache_file"$$ &&
11615           mv -f "$cache_file"$$ "$cache_file" ;; #(
11616         *)
11617           mv -f confcache "$cache_file" ;;
11618         esac
11619       fi
11620     fi
11621   else
11622     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11624   fi
11625 fi
11626 rm -f confcache
11627
11628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629 # Let make expand exec_prefix.
11630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11631
11632 DEFS=-DHAVE_CONFIG_H
11633
11634 ac_libobjs=
11635 ac_ltlibobjs=
11636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11637   # 1. Remove the extension, and $U if already installed.
11638   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11639   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11640   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11641   #    will be set to the directory where LIBOBJS objects are built.
11642   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11643   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11644 done
11645 LIBOBJS=$ac_libobjs
11646
11647 LTLIBOBJS=$ac_ltlibobjs
11648
11649
11650  if test -n "$EXEEXT"; then
11651   am__EXEEXT_TRUE=
11652   am__EXEEXT_FALSE='#'
11653 else
11654   am__EXEEXT_TRUE='#'
11655   am__EXEEXT_FALSE=
11656 fi
11657
11658 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11659   as_fn_error $? "conditional \"AMDEP\" was never defined.
11660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11661 fi
11662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11663   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11665 fi
11666 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11667   as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11669 fi
11670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11671   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11673 fi
11674
11675 : "${CONFIG_STATUS=./config.status}"
11676 ac_write_fail=0
11677 ac_clean_files_save=$ac_clean_files
11678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11681 as_write_fail=0
11682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11683 #! $SHELL
11684 # Generated by $as_me.
11685 # Run this file to recreate the current configuration.
11686 # Compiler output produced by configure, useful for debugging
11687 # configure, is in config.log if it exists.
11688
11689 debug=false
11690 ac_cs_recheck=false
11691 ac_cs_silent=false
11692
11693 SHELL=\${CONFIG_SHELL-$SHELL}
11694 export SHELL
11695 _ASEOF
11696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11697 ## -------------------- ##
11698 ## M4sh Initialization. ##
11699 ## -------------------- ##
11700
11701 # Be more Bourne compatible
11702 DUALCASE=1; export DUALCASE # for MKS sh
11703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11704   emulate sh
11705   NULLCMD=:
11706   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707   # is contrary to our usage.  Disable this feature.
11708   alias -g '${1+"$@"}'='"$@"'
11709   setopt NO_GLOB_SUBST
11710 else
11711   case `(set -o) 2>/dev/null` in #(
11712   *posix*) :
11713     set -o posix ;; #(
11714   *) :
11715      ;;
11716 esac
11717 fi
11718
11719
11720 as_nl='
11721 '
11722 export as_nl
11723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11727 # Prefer a ksh shell builtin over an external printf program on Solaris,
11728 # but without wasting forks for bash or zsh.
11729 if test -z "$BASH_VERSION$ZSH_VERSION" \
11730     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11731   as_echo='print -r --'
11732   as_echo_n='print -rn --'
11733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11734   as_echo='printf %s\n'
11735   as_echo_n='printf %s'
11736 else
11737   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11738     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11739     as_echo_n='/usr/ucb/echo -n'
11740   else
11741     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11742     as_echo_n_body='eval
11743       arg=$1;
11744       case $arg in #(
11745       *"$as_nl"*)
11746         expr "X$arg" : "X\\(.*\\)$as_nl";
11747         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11748       esac;
11749       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11750     '
11751     export as_echo_n_body
11752     as_echo_n='sh -c $as_echo_n_body as_echo'
11753   fi
11754   export as_echo_body
11755   as_echo='sh -c $as_echo_body as_echo'
11756 fi
11757
11758 # The user is always right.
11759 if test "${PATH_SEPARATOR+set}" != set; then
11760   PATH_SEPARATOR=:
11761   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11762     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11763       PATH_SEPARATOR=';'
11764   }
11765 fi
11766
11767
11768 # IFS
11769 # We need space, tab and new line, in precisely that order.  Quoting is
11770 # there to prevent editors from complaining about space-tab.
11771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11772 # splitting by setting IFS to empty value.)
11773 IFS=" ""        $as_nl"
11774
11775 # Find who we are.  Look in the path if we contain no directory separator.
11776 as_myself=
11777 case $0 in #((
11778   *[\\/]* ) as_myself=$0 ;;
11779   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11781 do
11782   IFS=$as_save_IFS
11783   test -z "$as_dir" && as_dir=.
11784     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11785   done
11786 IFS=$as_save_IFS
11787
11788      ;;
11789 esac
11790 # We did not find ourselves, most probably we were run as `sh COMMAND'
11791 # in which case we are not to be found in the path.
11792 if test "x$as_myself" = x; then
11793   as_myself=$0
11794 fi
11795 if test ! -f "$as_myself"; then
11796   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11797   exit 1
11798 fi
11799
11800 # Unset variables that we do not need and which cause bugs (e.g. in
11801 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11802 # suppresses any "Segmentation fault" message there.  '((' could
11803 # trigger a bug in pdksh 5.2.14.
11804 for as_var in BASH_ENV ENV MAIL MAILPATH
11805 do eval test x\${$as_var+set} = xset \
11806   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11807 done
11808 PS1='$ '
11809 PS2='> '
11810 PS4='+ '
11811
11812 # NLS nuisances.
11813 LC_ALL=C
11814 export LC_ALL
11815 LANGUAGE=C
11816 export LANGUAGE
11817
11818 # CDPATH.
11819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11820
11821
11822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11823 # ----------------------------------------
11824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11826 # script with STATUS, using 1 if that was 0.
11827 as_fn_error ()
11828 {
11829   as_status=$1; test $as_status -eq 0 && as_status=1
11830   if test "$4"; then
11831     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11832     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11833   fi
11834   $as_echo "$as_me: error: $2" >&2
11835   as_fn_exit $as_status
11836 } # as_fn_error
11837
11838
11839 # as_fn_set_status STATUS
11840 # -----------------------
11841 # Set $? to STATUS, without forking.
11842 as_fn_set_status ()
11843 {
11844   return $1
11845 } # as_fn_set_status
11846
11847 # as_fn_exit STATUS
11848 # -----------------
11849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11850 as_fn_exit ()
11851 {
11852   set +e
11853   as_fn_set_status $1
11854   exit $1
11855 } # as_fn_exit
11856
11857 # as_fn_unset VAR
11858 # ---------------
11859 # Portably unset VAR.
11860 as_fn_unset ()
11861 {
11862   { eval $1=; unset $1;}
11863 }
11864 as_unset=as_fn_unset
11865 # as_fn_append VAR VALUE
11866 # ----------------------
11867 # Append the text in VALUE to the end of the definition contained in VAR. Take
11868 # advantage of any shell optimizations that allow amortized linear growth over
11869 # repeated appends, instead of the typical quadratic growth present in naive
11870 # implementations.
11871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11872   eval 'as_fn_append ()
11873   {
11874     eval $1+=\$2
11875   }'
11876 else
11877   as_fn_append ()
11878   {
11879     eval $1=\$$1\$2
11880   }
11881 fi # as_fn_append
11882
11883 # as_fn_arith ARG...
11884 # ------------------
11885 # Perform arithmetic evaluation on the ARGs, and store the result in the
11886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11887 # must be portable across $(()) and expr.
11888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11889   eval 'as_fn_arith ()
11890   {
11891     as_val=$(( $* ))
11892   }'
11893 else
11894   as_fn_arith ()
11895   {
11896     as_val=`expr "$@" || test $? -eq 1`
11897   }
11898 fi # as_fn_arith
11899
11900
11901 if expr a : '\(a\)' >/dev/null 2>&1 &&
11902    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11903   as_expr=expr
11904 else
11905   as_expr=false
11906 fi
11907
11908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11909   as_basename=basename
11910 else
11911   as_basename=false
11912 fi
11913
11914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11915   as_dirname=dirname
11916 else
11917   as_dirname=false
11918 fi
11919
11920 as_me=`$as_basename -- "$0" ||
11921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11922          X"$0" : 'X\(//\)$' \| \
11923          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11924 $as_echo X/"$0" |
11925     sed '/^.*\/\([^/][^/]*\)\/*$/{
11926             s//\1/
11927             q
11928           }
11929           /^X\/\(\/\/\)$/{
11930             s//\1/
11931             q
11932           }
11933           /^X\/\(\/\).*/{
11934             s//\1/
11935             q
11936           }
11937           s/.*/./; q'`
11938
11939 # Avoid depending upon Character Ranges.
11940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11943 as_cr_digits='0123456789'
11944 as_cr_alnum=$as_cr_Letters$as_cr_digits
11945
11946 ECHO_C= ECHO_N= ECHO_T=
11947 case `echo -n x` in #(((((
11948 -n*)
11949   case `echo 'xy\c'` in
11950   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11951   xy)  ECHO_C='\c';;
11952   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11953        ECHO_T=' ';;
11954   esac;;
11955 *)
11956   ECHO_N='-n';;
11957 esac
11958
11959 rm -f conf$$ conf$$.exe conf$$.file
11960 if test -d conf$$.dir; then
11961   rm -f conf$$.dir/conf$$.file
11962 else
11963   rm -f conf$$.dir
11964   mkdir conf$$.dir 2>/dev/null
11965 fi
11966 if (echo >conf$$.file) 2>/dev/null; then
11967   if ln -s conf$$.file conf$$ 2>/dev/null; then
11968     as_ln_s='ln -s'
11969     # ... but there are two gotchas:
11970     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11971     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11972     # In both cases, we have to default to `cp -p'.
11973     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11974       as_ln_s='cp -p'
11975   elif ln conf$$.file conf$$ 2>/dev/null; then
11976     as_ln_s=ln
11977   else
11978     as_ln_s='cp -p'
11979   fi
11980 else
11981   as_ln_s='cp -p'
11982 fi
11983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11984 rmdir conf$$.dir 2>/dev/null
11985
11986
11987 # as_fn_mkdir_p
11988 # -------------
11989 # Create "$as_dir" as a directory, including parents if necessary.
11990 as_fn_mkdir_p ()
11991 {
11992
11993   case $as_dir in #(
11994   -*) as_dir=./$as_dir;;
11995   esac
11996   test -d "$as_dir" || eval $as_mkdir_p || {
11997     as_dirs=
11998     while :; do
11999       case $as_dir in #(
12000       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12001       *) as_qdir=$as_dir;;
12002       esac
12003       as_dirs="'$as_qdir' $as_dirs"
12004       as_dir=`$as_dirname -- "$as_dir" ||
12005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006          X"$as_dir" : 'X\(//\)[^/]' \| \
12007          X"$as_dir" : 'X\(//\)$' \| \
12008          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12009 $as_echo X"$as_dir" |
12010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12011             s//\1/
12012             q
12013           }
12014           /^X\(\/\/\)[^/].*/{
12015             s//\1/
12016             q
12017           }
12018           /^X\(\/\/\)$/{
12019             s//\1/
12020             q
12021           }
12022           /^X\(\/\).*/{
12023             s//\1/
12024             q
12025           }
12026           s/.*/./; q'`
12027       test -d "$as_dir" && break
12028     done
12029     test -z "$as_dirs" || eval "mkdir $as_dirs"
12030   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12031
12032
12033 } # as_fn_mkdir_p
12034 if mkdir -p . 2>/dev/null; then
12035   as_mkdir_p='mkdir -p "$as_dir"'
12036 else
12037   test -d ./-p && rmdir ./-p
12038   as_mkdir_p=false
12039 fi
12040
12041 if test -x / >/dev/null 2>&1; then
12042   as_test_x='test -x'
12043 else
12044   if ls -dL / >/dev/null 2>&1; then
12045     as_ls_L_option=L
12046   else
12047     as_ls_L_option=
12048   fi
12049   as_test_x='
12050     eval sh -c '\''
12051       if test -d "$1"; then
12052         test -d "$1/.";
12053       else
12054         case $1 in #(
12055         -*)set "./$1";;
12056         esac;
12057         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12058         ???[sx]*):;;*)false;;esac;fi
12059     '\'' sh
12060   '
12061 fi
12062 as_executable_p=$as_test_x
12063
12064 # Sed expression to map a string onto a valid CPP name.
12065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12066
12067 # Sed expression to map a string onto a valid variable name.
12068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12069
12070
12071 exec 6>&1
12072 ## ----------------------------------- ##
12073 ## Main body of $CONFIG_STATUS script. ##
12074 ## ----------------------------------- ##
12075 _ASEOF
12076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12077
12078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12079 # Save the log message, to keep $0 and so on meaningful, and to
12080 # report actual input values of CONFIG_FILES etc. instead of their
12081 # values after options handling.
12082 ac_log="
12083 This file was extended by $as_me, which was
12084 generated by GNU Autoconf 2.68.  Invocation command line was
12085
12086   CONFIG_FILES    = $CONFIG_FILES
12087   CONFIG_HEADERS  = $CONFIG_HEADERS
12088   CONFIG_LINKS    = $CONFIG_LINKS
12089   CONFIG_COMMANDS = $CONFIG_COMMANDS
12090   $ $0 $@
12091
12092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12093 "
12094
12095 _ACEOF
12096
12097 case $ac_config_files in *"
12098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12099 esac
12100
12101 case $ac_config_headers in *"
12102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12103 esac
12104
12105
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 # Files that config.status was made for.
12108 config_files="$ac_config_files"
12109 config_headers="$ac_config_headers"
12110 config_commands="$ac_config_commands"
12111
12112 _ACEOF
12113
12114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115 ac_cs_usage="\
12116 \`$as_me' instantiates files and other configuration actions
12117 from templates according to the current configuration.  Unless the files
12118 and actions are specified as TAGs, all are instantiated by default.
12119
12120 Usage: $0 [OPTION]... [TAG]...
12121
12122   -h, --help       print this help, then exit
12123   -V, --version    print version number and configuration settings, then exit
12124       --config     print configuration, then exit
12125   -q, --quiet, --silent
12126                    do not print progress messages
12127   -d, --debug      don't remove temporary files
12128       --recheck    update $as_me by reconfiguring in the same conditions
12129       --file=FILE[:TEMPLATE]
12130                    instantiate the configuration file FILE
12131       --header=FILE[:TEMPLATE]
12132                    instantiate the configuration header FILE
12133
12134 Configuration files:
12135 $config_files
12136
12137 Configuration headers:
12138 $config_headers
12139
12140 Configuration commands:
12141 $config_commands
12142
12143 Report bugs to the package provider."
12144
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12148 ac_cs_version="\\
12149 config.status
12150 configured by $0, generated by GNU Autoconf 2.68,
12151   with options \\"\$ac_cs_config\\"
12152
12153 Copyright (C) 2010 Free Software Foundation, Inc.
12154 This config.status script is free software; the Free Software Foundation
12155 gives unlimited permission to copy, distribute and modify it."
12156
12157 ac_pwd='$ac_pwd'
12158 srcdir='$srcdir'
12159 INSTALL='$INSTALL'
12160 MKDIR_P='$MKDIR_P'
12161 AWK='$AWK'
12162 test -n "\$AWK" || AWK=awk
12163 _ACEOF
12164
12165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12166 # The default lists apply if the user does not specify any file.
12167 ac_need_defaults=:
12168 while test $# != 0
12169 do
12170   case $1 in
12171   --*=?*)
12172     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12173     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12174     ac_shift=:
12175     ;;
12176   --*=)
12177     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12178     ac_optarg=
12179     ac_shift=:
12180     ;;
12181   *)
12182     ac_option=$1
12183     ac_optarg=$2
12184     ac_shift=shift
12185     ;;
12186   esac
12187
12188   case $ac_option in
12189   # Handling of the options.
12190   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12191     ac_cs_recheck=: ;;
12192   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12193     $as_echo "$ac_cs_version"; exit ;;
12194   --config | --confi | --conf | --con | --co | --c )
12195     $as_echo "$ac_cs_config"; exit ;;
12196   --debug | --debu | --deb | --de | --d | -d )
12197     debug=: ;;
12198   --file | --fil | --fi | --f )
12199     $ac_shift
12200     case $ac_optarg in
12201     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12202     '') as_fn_error $? "missing file argument" ;;
12203     esac
12204     as_fn_append CONFIG_FILES " '$ac_optarg'"
12205     ac_need_defaults=false;;
12206   --header | --heade | --head | --hea )
12207     $ac_shift
12208     case $ac_optarg in
12209     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12210     esac
12211     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12212     ac_need_defaults=false;;
12213   --he | --h)
12214     # Conflict between --help and --header
12215     as_fn_error $? "ambiguous option: \`$1'
12216 Try \`$0 --help' for more information.";;
12217   --help | --hel | -h )
12218     $as_echo "$ac_cs_usage"; exit ;;
12219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12220   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12221     ac_cs_silent=: ;;
12222
12223   # This is an error.
12224   -*) as_fn_error $? "unrecognized option: \`$1'
12225 Try \`$0 --help' for more information." ;;
12226
12227   *) as_fn_append ac_config_targets " $1"
12228      ac_need_defaults=false ;;
12229
12230   esac
12231   shift
12232 done
12233
12234 ac_configure_extra_args=
12235
12236 if $ac_cs_silent; then
12237   exec 6>/dev/null
12238   ac_configure_extra_args="$ac_configure_extra_args --silent"
12239 fi
12240
12241 _ACEOF
12242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12243 if \$ac_cs_recheck; then
12244   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12245   shift
12246   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12247   CONFIG_SHELL='$SHELL'
12248   export CONFIG_SHELL
12249   exec "\$@"
12250 fi
12251
12252 _ACEOF
12253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254 exec 5>>config.log
12255 {
12256   echo
12257   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12258 ## Running $as_me. ##
12259 _ASBOX
12260   $as_echo "$ac_log"
12261 } >&5
12262
12263 _ACEOF
12264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12265 #
12266 # INIT-COMMANDS
12267 #
12268 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12269 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12270     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12271     # from automake < 1.5.
12272     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12273     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12274     LINGUAS="${LINGUAS-%UNSET%}"
12275
12276
12277 _ACEOF
12278
12279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12280
12281 # Handling of arguments.
12282 for ac_config_target in $ac_config_targets
12283 do
12284   case $ac_config_target in
12285     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12286     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12287     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12288     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12289     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12290     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12291     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12292
12293   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12294   esac
12295 done
12296
12297
12298 # If the user did not use the arguments to specify the items to instantiate,
12299 # then the envvar interface is used.  Set only those that are not.
12300 # We use the long form for the default assignment because of an extremely
12301 # bizarre bug on SunOS 4.1.3.
12302 if $ac_need_defaults; then
12303   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12304   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12305   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12306 fi
12307
12308 # Have a temporary directory for convenience.  Make it in the build tree
12309 # simply because there is no reason against having it here, and in addition,
12310 # creating and moving files from /tmp can sometimes cause problems.
12311 # Hook for its removal unless debugging.
12312 # Note that there is a small window in which the directory will not be cleaned:
12313 # after its creation but before its name has been assigned to `$tmp'.
12314 $debug ||
12315 {
12316   tmp= ac_tmp=
12317   trap 'exit_status=$?
12318   : "${ac_tmp:=$tmp}"
12319   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12320 ' 0
12321   trap 'as_fn_exit 1' 1 2 13 15
12322 }
12323 # Create a (secure) tmp directory for tmp files.
12324
12325 {
12326   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12327   test -d "$tmp"
12328 }  ||
12329 {
12330   tmp=./conf$$-$RANDOM
12331   (umask 077 && mkdir "$tmp")
12332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12333 ac_tmp=$tmp
12334
12335 # Set up the scripts for CONFIG_FILES section.
12336 # No need to generate them if there are no CONFIG_FILES.
12337 # This happens for instance with `./config.status config.h'.
12338 if test -n "$CONFIG_FILES"; then
12339
12340
12341 ac_cr=`echo X | tr X '\015'`
12342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12343 # But we know of no other shell where ac_cr would be empty at this
12344 # point, so we can use a bashism as a fallback.
12345 if test "x$ac_cr" = x; then
12346   eval ac_cr=\$\'\\r\'
12347 fi
12348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12350   ac_cs_awk_cr='\\r'
12351 else
12352   ac_cs_awk_cr=$ac_cr
12353 fi
12354
12355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12356 _ACEOF
12357
12358
12359 {
12360   echo "cat >conf$$subs.awk <<_ACEOF" &&
12361   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12362   echo "_ACEOF"
12363 } >conf$$subs.sh ||
12364   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12366 ac_delim='%!_!# '
12367 for ac_last_try in false false false false false :; do
12368   . ./conf$$subs.sh ||
12369     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12370
12371   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12372   if test $ac_delim_n = $ac_delim_num; then
12373     break
12374   elif $ac_last_try; then
12375     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12376   else
12377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12378   fi
12379 done
12380 rm -f conf$$subs.sh
12381
12382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12384 _ACEOF
12385 sed -n '
12386 h
12387 s/^/S["/; s/!.*/"]=/
12388 p
12389 g
12390 s/^[^!]*!//
12391 :repl
12392 t repl
12393 s/'"$ac_delim"'$//
12394 t delim
12395 :nl
12396 h
12397 s/\(.\{148\}\)..*/\1/
12398 t more1
12399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12400 p
12401 n
12402 b repl
12403 :more1
12404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12405 p
12406 g
12407 s/.\{148\}//
12408 t nl
12409 :delim
12410 h
12411 s/\(.\{148\}\)..*/\1/
12412 t more2
12413 s/["\\]/\\&/g; s/^/"/; s/$/"/
12414 p
12415 b
12416 :more2
12417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12418 p
12419 g
12420 s/.\{148\}//
12421 t delim
12422 ' <conf$$subs.awk | sed '
12423 /^[^""]/{
12424   N
12425   s/\n//
12426 }
12427 ' >>$CONFIG_STATUS || ac_write_fail=1
12428 rm -f conf$$subs.awk
12429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12430 _ACAWK
12431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12432   for (key in S) S_is_set[key] = 1
12433   FS = "\a"
12434
12435 }
12436 {
12437   line = $ 0
12438   nfields = split(line, field, "@")
12439   substed = 0
12440   len = length(field[1])
12441   for (i = 2; i < nfields; i++) {
12442     key = field[i]
12443     keylen = length(key)
12444     if (S_is_set[key]) {
12445       value = S[key]
12446       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12447       len += length(value) + length(field[++i])
12448       substed = 1
12449     } else
12450       len += 1 + keylen
12451   }
12452
12453   print line
12454 }
12455
12456 _ACAWK
12457 _ACEOF
12458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12460   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12461 else
12462   cat
12463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12464   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12465 _ACEOF
12466
12467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12469 # trailing colons and then remove the whole line if VPATH becomes empty
12470 # (actually we leave an empty line to preserve line numbers).
12471 if test "x$srcdir" = x.; then
12472   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12473 h
12474 s///
12475 s/^/:/
12476 s/[      ]*$/:/
12477 s/:\$(srcdir):/:/g
12478 s/:\${srcdir}:/:/g
12479 s/:@srcdir@:/:/g
12480 s/^:*//
12481 s/:*$//
12482 x
12483 s/\(=[   ]*\).*/\1/
12484 G
12485 s/\n//
12486 s/^[^=]*=[       ]*$//
12487 }'
12488 fi
12489
12490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12491 fi # test -n "$CONFIG_FILES"
12492
12493 # Set up the scripts for CONFIG_HEADERS section.
12494 # No need to generate them if there are no CONFIG_HEADERS.
12495 # This happens for instance with `./config.status Makefile'.
12496 if test -n "$CONFIG_HEADERS"; then
12497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12498 BEGIN {
12499 _ACEOF
12500
12501 # Transform confdefs.h into an awk script `defines.awk', embedded as
12502 # here-document in config.status, that substitutes the proper values into
12503 # config.h.in to produce config.h.
12504
12505 # Create a delimiter string that does not exist in confdefs.h, to ease
12506 # handling of long lines.
12507 ac_delim='%!_!# '
12508 for ac_last_try in false false :; do
12509   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12510   if test -z "$ac_tt"; then
12511     break
12512   elif $ac_last_try; then
12513     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12514   else
12515     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12516   fi
12517 done
12518
12519 # For the awk script, D is an array of macro values keyed by name,
12520 # likewise P contains macro parameters if any.  Preserve backslash
12521 # newline sequences.
12522
12523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12524 sed -n '
12525 s/.\{148\}/&'"$ac_delim"'/g
12526 t rset
12527 :rset
12528 s/^[     ]*#[    ]*define[       ][      ]*/ /
12529 t def
12530 d
12531 :def
12532 s/\\$//
12533 t bsnl
12534 s/["\\]/\\&/g
12535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12536 D["\1"]=" \3"/p
12537 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12538 d
12539 :bsnl
12540 s/["\\]/\\&/g
12541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12542 D["\1"]=" \3\\\\\\n"\\/p
12543 t cont
12544 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12545 t cont
12546 d
12547 :cont
12548 n
12549 s/.\{148\}/&'"$ac_delim"'/g
12550 t clear
12551 :clear
12552 s/\\$//
12553 t bsnlc
12554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12555 d
12556 :bsnlc
12557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12558 b cont
12559 ' <confdefs.h | sed '
12560 s/'"$ac_delim"'/"\\\
12561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12562
12563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12564   for (key in D) D_is_set[key] = 1
12565   FS = "\a"
12566 }
12567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12568   line = \$ 0
12569   split(line, arg, " ")
12570   if (arg[1] == "#") {
12571     defundef = arg[2]
12572     mac1 = arg[3]
12573   } else {
12574     defundef = substr(arg[1], 2)
12575     mac1 = arg[2]
12576   }
12577   split(mac1, mac2, "(") #)
12578   macro = mac2[1]
12579   prefix = substr(line, 1, index(line, defundef) - 1)
12580   if (D_is_set[macro]) {
12581     # Preserve the white space surrounding the "#".
12582     print prefix "define", macro P[macro] D[macro]
12583     next
12584   } else {
12585     # Replace #undef with comments.  This is necessary, for example,
12586     # in the case of _POSIX_SOURCE, which is predefined and required
12587     # on some systems where configure will not decide to define it.
12588     if (defundef == "undef") {
12589       print "/*", prefix defundef, macro, "*/"
12590       next
12591     }
12592   }
12593 }
12594 { print }
12595 _ACAWK
12596 _ACEOF
12597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12599 fi # test -n "$CONFIG_HEADERS"
12600
12601
12602 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12603 shift
12604 for ac_tag
12605 do
12606   case $ac_tag in
12607   :[FHLC]) ac_mode=$ac_tag; continue;;
12608   esac
12609   case $ac_mode$ac_tag in
12610   :[FHL]*:*);;
12611   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12612   :[FH]-) ac_tag=-:-;;
12613   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12614   esac
12615   ac_save_IFS=$IFS
12616   IFS=:
12617   set x $ac_tag
12618   IFS=$ac_save_IFS
12619   shift
12620   ac_file=$1
12621   shift
12622
12623   case $ac_mode in
12624   :L) ac_source=$1;;
12625   :[FH])
12626     ac_file_inputs=
12627     for ac_f
12628     do
12629       case $ac_f in
12630       -) ac_f="$ac_tmp/stdin";;
12631       *) # Look for the file first in the build tree, then in the source tree
12632          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12633          # because $ac_f cannot contain `:'.
12634          test -f "$ac_f" ||
12635            case $ac_f in
12636            [\\/$]*) false;;
12637            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12638            esac ||
12639            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12640       esac
12641       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12642       as_fn_append ac_file_inputs " '$ac_f'"
12643     done
12644
12645     # Let's still pretend it is `configure' which instantiates (i.e., don't
12646     # use $as_me), people would be surprised to read:
12647     #    /* config.h.  Generated by config.status.  */
12648     configure_input='Generated from '`
12649           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12650         `' by configure.'
12651     if test x"$ac_file" != x-; then
12652       configure_input="$ac_file.  $configure_input"
12653       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12654 $as_echo "$as_me: creating $ac_file" >&6;}
12655     fi
12656     # Neutralize special characters interpreted by sed in replacement strings.
12657     case $configure_input in #(
12658     *\&* | *\|* | *\\* )
12659        ac_sed_conf_input=`$as_echo "$configure_input" |
12660        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12661     *) ac_sed_conf_input=$configure_input;;
12662     esac
12663
12664     case $ac_tag in
12665     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12666       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12667     esac
12668     ;;
12669   esac
12670
12671   ac_dir=`$as_dirname -- "$ac_file" ||
12672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673          X"$ac_file" : 'X\(//\)[^/]' \| \
12674          X"$ac_file" : 'X\(//\)$' \| \
12675          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12676 $as_echo X"$ac_file" |
12677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12678             s//\1/
12679             q
12680           }
12681           /^X\(\/\/\)[^/].*/{
12682             s//\1/
12683             q
12684           }
12685           /^X\(\/\/\)$/{
12686             s//\1/
12687             q
12688           }
12689           /^X\(\/\).*/{
12690             s//\1/
12691             q
12692           }
12693           s/.*/./; q'`
12694   as_dir="$ac_dir"; as_fn_mkdir_p
12695   ac_builddir=.
12696
12697 case "$ac_dir" in
12698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12699 *)
12700   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12701   # A ".." for each directory in $ac_dir_suffix.
12702   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12703   case $ac_top_builddir_sub in
12704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12706   esac ;;
12707 esac
12708 ac_abs_top_builddir=$ac_pwd
12709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12710 # for backward compatibility:
12711 ac_top_builddir=$ac_top_build_prefix
12712
12713 case $srcdir in
12714   .)  # We are building in place.
12715     ac_srcdir=.
12716     ac_top_srcdir=$ac_top_builddir_sub
12717     ac_abs_top_srcdir=$ac_pwd ;;
12718   [\\/]* | ?:[\\/]* )  # Absolute name.
12719     ac_srcdir=$srcdir$ac_dir_suffix;
12720     ac_top_srcdir=$srcdir
12721     ac_abs_top_srcdir=$srcdir ;;
12722   *) # Relative name.
12723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12724     ac_top_srcdir=$ac_top_build_prefix$srcdir
12725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12726 esac
12727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12728
12729
12730   case $ac_mode in
12731   :F)
12732   #
12733   # CONFIG_FILE
12734   #
12735
12736   case $INSTALL in
12737   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12738   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12739   esac
12740   ac_MKDIR_P=$MKDIR_P
12741   case $MKDIR_P in
12742   [\\/$]* | ?:[\\/]* ) ;;
12743   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12744   esac
12745 _ACEOF
12746
12747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12748 # If the template does not know about datarootdir, expand it.
12749 # FIXME: This hack should be removed a few years after 2.60.
12750 ac_datarootdir_hack=; ac_datarootdir_seen=
12751 ac_sed_dataroot='
12752 /datarootdir/ {
12753   p
12754   q
12755 }
12756 /@datadir@/p
12757 /@docdir@/p
12758 /@infodir@/p
12759 /@localedir@/p
12760 /@mandir@/p'
12761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12762 *datarootdir*) ac_datarootdir_seen=yes;;
12763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12766 _ACEOF
12767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12768   ac_datarootdir_hack='
12769   s&@datadir@&$datadir&g
12770   s&@docdir@&$docdir&g
12771   s&@infodir@&$infodir&g
12772   s&@localedir@&$localedir&g
12773   s&@mandir@&$mandir&g
12774   s&\\\${datarootdir}&$datarootdir&g' ;;
12775 esac
12776 _ACEOF
12777
12778 # Neutralize VPATH when `$srcdir' = `.'.
12779 # Shell code in configure.ac might set extrasub.
12780 # FIXME: do we really want to maintain this feature?
12781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12782 ac_sed_extra="$ac_vpsub
12783 $extrasub
12784 _ACEOF
12785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12786 :t
12787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12788 s|@configure_input@|$ac_sed_conf_input|;t t
12789 s&@top_builddir@&$ac_top_builddir_sub&;t t
12790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12791 s&@srcdir@&$ac_srcdir&;t t
12792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12793 s&@top_srcdir@&$ac_top_srcdir&;t t
12794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12795 s&@builddir@&$ac_builddir&;t t
12796 s&@abs_builddir@&$ac_abs_builddir&;t t
12797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12798 s&@INSTALL@&$ac_INSTALL&;t t
12799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12800 $ac_datarootdir_hack
12801 "
12802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12803   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12804
12805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12806   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12807   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12808       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12810 which seems to be undefined.  Please make sure it is defined" >&5
12811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12812 which seems to be undefined.  Please make sure it is defined" >&2;}
12813
12814   rm -f "$ac_tmp/stdin"
12815   case $ac_file in
12816   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12817   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12818   esac \
12819   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12820  ;;
12821   :H)
12822   #
12823   # CONFIG_HEADER
12824   #
12825   if test x"$ac_file" != x-; then
12826     {
12827       $as_echo "/* $configure_input  */" \
12828       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12829     } >"$ac_tmp/config.h" \
12830       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12831     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12832       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12834     else
12835       rm -f "$ac_file"
12836       mv "$ac_tmp/config.h" "$ac_file" \
12837         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12838     fi
12839   else
12840     $as_echo "/* $configure_input  */" \
12841       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12842       || as_fn_error $? "could not create -" "$LINENO" 5
12843   fi
12844 # Compute "$ac_file"'s index in $config_headers.
12845 _am_arg="$ac_file"
12846 _am_stamp_count=1
12847 for _am_header in $config_headers :; do
12848   case $_am_header in
12849     $_am_arg | $_am_arg:* )
12850       break ;;
12851     * )
12852       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12853   esac
12854 done
12855 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12856 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12857          X"$_am_arg" : 'X\(//\)[^/]' \| \
12858          X"$_am_arg" : 'X\(//\)$' \| \
12859          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12860 $as_echo X"$_am_arg" |
12861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12862             s//\1/
12863             q
12864           }
12865           /^X\(\/\/\)[^/].*/{
12866             s//\1/
12867             q
12868           }
12869           /^X\(\/\/\)$/{
12870             s//\1/
12871             q
12872           }
12873           /^X\(\/\).*/{
12874             s//\1/
12875             q
12876           }
12877           s/.*/./; q'`/stamp-h$_am_stamp_count
12878  ;;
12879
12880   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12881 $as_echo "$as_me: executing $ac_file commands" >&6;}
12882  ;;
12883   esac
12884
12885
12886   case $ac_file$ac_mode in
12887     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12888   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12889   # are listed without --file.  Let's play safe and only enable the eval
12890   # if we detect the quoting.
12891   case $CONFIG_FILES in
12892   *\'*) eval set x "$CONFIG_FILES" ;;
12893   *)   set x $CONFIG_FILES ;;
12894   esac
12895   shift
12896   for mf
12897   do
12898     # Strip MF so we end up with the name of the file.
12899     mf=`echo "$mf" | sed -e 's/:.*$//'`
12900     # Check whether this is an Automake generated Makefile or not.
12901     # We used to match only the files named `Makefile.in', but
12902     # some people rename them; so instead we look at the file content.
12903     # Grep'ing the first line is not enough: some people post-process
12904     # each Makefile.in and add a new line on top of each file to say so.
12905     # Grep'ing the whole file is not good either: AIX grep has a line
12906     # limit of 2048, but all sed's we know have understand at least 4000.
12907     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12908       dirpart=`$as_dirname -- "$mf" ||
12909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12910          X"$mf" : 'X\(//\)[^/]' \| \
12911          X"$mf" : 'X\(//\)$' \| \
12912          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12913 $as_echo X"$mf" |
12914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12915             s//\1/
12916             q
12917           }
12918           /^X\(\/\/\)[^/].*/{
12919             s//\1/
12920             q
12921           }
12922           /^X\(\/\/\)$/{
12923             s//\1/
12924             q
12925           }
12926           /^X\(\/\).*/{
12927             s//\1/
12928             q
12929           }
12930           s/.*/./; q'`
12931     else
12932       continue
12933     fi
12934     # Extract the definition of DEPDIR, am__include, and am__quote
12935     # from the Makefile without running `make'.
12936     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12937     test -z "$DEPDIR" && continue
12938     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12939     test -z "am__include" && continue
12940     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12941     # When using ansi2knr, U may be empty or an underscore; expand it
12942     U=`sed -n 's/^U = //p' < "$mf"`
12943     # Find all dependency output files, they are included files with
12944     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12945     # simplest approach to changing $(DEPDIR) to its actual value in the
12946     # expansion.
12947     for file in `sed -n "
12948       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12949          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12950       # Make sure the directory exists.
12951       test -f "$dirpart/$file" && continue
12952       fdir=`$as_dirname -- "$file" ||
12953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12954          X"$file" : 'X\(//\)[^/]' \| \
12955          X"$file" : 'X\(//\)$' \| \
12956          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12957 $as_echo X"$file" |
12958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12959             s//\1/
12960             q
12961           }
12962           /^X\(\/\/\)[^/].*/{
12963             s//\1/
12964             q
12965           }
12966           /^X\(\/\/\)$/{
12967             s//\1/
12968             q
12969           }
12970           /^X\(\/\).*/{
12971             s//\1/
12972             q
12973           }
12974           s/.*/./; q'`
12975       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12976       # echo "creating $dirpart/$file"
12977       echo '# dummy' > "$dirpart/$file"
12978     done
12979   done
12980 }
12981  ;;
12982     "po-directories":C)
12983     for ac_file in $CONFIG_FILES; do
12984       # Support "outfile[:infile[:infile...]]"
12985       case "$ac_file" in
12986         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12987       esac
12988       # PO directories have a Makefile.in generated from Makefile.in.in.
12989       case "$ac_file" in */Makefile.in)
12990         # Adjust a relative srcdir.
12991         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12992         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12993         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12994         # In autoconf-2.13 it is called $ac_given_srcdir.
12995         # In autoconf-2.50 it is called $srcdir.
12996         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12997         case "$ac_given_srcdir" in
12998           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12999           /*) top_srcdir="$ac_given_srcdir" ;;
13000           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13001         esac
13002         # Treat a directory as a PO directory if and only if it has a
13003         # POTFILES.in file. This allows packages to have multiple PO
13004         # directories under different names or in different locations.
13005         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13006           rm -f "$ac_dir/POTFILES"
13007           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13008           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13009           POMAKEFILEDEPS="POTFILES.in"
13010           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13011           # on $ac_dir but don't depend on user-specified configuration
13012           # parameters.
13013           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13014             # The LINGUAS file contains the set of available languages.
13015             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13016               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13017             fi
13018             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13019             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13020             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13021             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13022           else
13023             # The set of available languages was given in configure.in.
13024             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13025             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13026           fi
13027           # Compute POFILES
13028           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13029           # Compute UPDATEPOFILES
13030           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13031           # Compute DUMMYPOFILES
13032           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13033           # Compute GMOFILES
13034           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13035           case "$ac_given_srcdir" in
13036             .) srcdirpre= ;;
13037             *) srcdirpre='$(srcdir)/' ;;
13038           esac
13039           POFILES=
13040           UPDATEPOFILES=
13041           DUMMYPOFILES=
13042           GMOFILES=
13043           for lang in $ALL_LINGUAS; do
13044             POFILES="$POFILES $srcdirpre$lang.po"
13045             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13046             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13047             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13048           done
13049           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13050           # environment variable.
13051           INST_LINGUAS=
13052           if test -n "$ALL_LINGUAS"; then
13053             for presentlang in $ALL_LINGUAS; do
13054               useit=no
13055               if test "%UNSET%" != "$LINGUAS"; then
13056                 desiredlanguages="$LINGUAS"
13057               else
13058                 desiredlanguages="$ALL_LINGUAS"
13059               fi
13060               for desiredlang in $desiredlanguages; do
13061                 # Use the presentlang catalog if desiredlang is
13062                 #   a. equal to presentlang, or
13063                 #   b. a variant of presentlang (because in this case,
13064                 #      presentlang can be used as a fallback for messages
13065                 #      which are not translated in the desiredlang catalog).
13066                 case "$desiredlang" in
13067                   "$presentlang"*) useit=yes;;
13068                 esac
13069               done
13070               if test $useit = yes; then
13071                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13072               fi
13073             done
13074           fi
13075           CATALOGS=
13076           if test -n "$INST_LINGUAS"; then
13077             for lang in $INST_LINGUAS; do
13078               CATALOGS="$CATALOGS $lang.gmo"
13079             done
13080           fi
13081           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13082           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"
13083           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13084             if test -f "$f"; then
13085               case "$f" in
13086                 *.orig | *.bak | *~) ;;
13087                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13088               esac
13089             fi
13090           done
13091         fi
13092         ;;
13093       esac
13094     done ;;
13095
13096   esac
13097 done # for ac_tag
13098
13099
13100 as_fn_exit 0
13101 _ACEOF
13102 ac_clean_files=$ac_clean_files_save
13103
13104 test $ac_write_fail = 0 ||
13105   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13106
13107
13108 # configure is writing to config.log, and then calls config.status.
13109 # config.status does its own redirection, appending to config.log.
13110 # Unfortunately, on DOS this fails, as config.log is still kept open
13111 # by configure, so config.status won't be able to write to it; its
13112 # output is simply discarded.  So we exec the FD to /dev/null,
13113 # effectively closing config.log, so it can be properly (re)opened and
13114 # appended to by config.status.  When coming back to configure, we
13115 # need to make the FD available again.
13116 if test "$no_create" != yes; then
13117   ac_cs_success=:
13118   ac_config_status_args=
13119   test "$silent" = yes &&
13120     ac_config_status_args="$ac_config_status_args --quiet"
13121   exec 5>/dev/null
13122   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13123   exec 5>>config.log
13124   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13125   # would make configure fail if this is the last instruction.
13126   $ac_cs_success || as_fn_exit 1
13127 fi
13128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13131 fi
13132