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