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