no way to avoid the typedef for supporting old json releases
[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
1797 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1798 # -------------------------------------------
1799 # Tests whether TYPE exists after having included INCLUDES, setting cache
1800 # variable VAR accordingly.
1801 ac_fn_c_check_type ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 else
1809   eval "$3=no"
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 int
1814 main ()
1815 {
1816 if (sizeof ($2))
1817          return 0;
1818   ;
1819   return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 $4
1826 int
1827 main ()
1828 {
1829 if (sizeof (($2)))
1830             return 0;
1831   ;
1832   return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836
1837 else
1838   eval "$3=yes"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_type
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by ppastats $as_me 0.0.x, which was
1855 generated by GNU Autoconf 2.69.  Invocation command line was
1856
1857   $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891     $as_echo "PATH: $as_dir"
1892   done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918   for ac_arg
1919   do
1920     case $ac_arg in
1921     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923     | -silent | --silent | --silen | --sile | --sil)
1924       continue ;;
1925     *\'*)
1926       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     esac
1928     case $ac_pass in
1929     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930     2)
1931       as_fn_append ac_configure_args1 " '$ac_arg'"
1932       if test $ac_must_keep_next = true; then
1933         ac_must_keep_next=false # Got value, back to normal.
1934       else
1935         case $ac_arg in
1936           *=* | --config-cache | -C | -disable-* | --disable-* \
1937           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939           | -with-* | --with-* | -without-* | --without-* | --x)
1940             case "$ac_configure_args0 " in
1941               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942             esac
1943             ;;
1944           -* ) ac_must_keep_next=true ;;
1945         esac
1946       fi
1947       as_fn_append ac_configure_args " '$ac_arg'"
1948       ;;
1949     esac
1950   done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log.  We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961   # Save into config.log some information that might help in debugging.
1962   {
1963     echo
1964
1965     $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1968     echo
1969     # The following way of writing the cache mishandles newlines in values,
1970 (
1971   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972     eval ac_val=\$$ac_var
1973     case $ac_val in #(
1974     *${as_nl}*)
1975       case $ac_var in #(
1976       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978       esac
1979       case $ac_var in #(
1980       _ | IFS | as_nl) ;; #(
1981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982       *) { eval $ac_var=; unset $ac_var;} ;;
1983       esac ;;
1984     esac
1985   done
1986   (set) 2>&1 |
1987     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988     *${as_nl}ac_space=\ *)
1989       sed -n \
1990         "s/'\''/'\''\\\\'\'''\''/g;
1991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992       ;; #(
1993     *)
1994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995       ;;
1996     esac |
1997     sort
1998 )
1999     echo
2000
2001     $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2004     echo
2005     for ac_var in $ac_subst_vars
2006     do
2007       eval ac_val=\$$ac_var
2008       case $ac_val in
2009       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010       esac
2011       $as_echo "$ac_var='\''$ac_val'\''"
2012     done | sort
2013     echo
2014
2015     if test -n "$ac_subst_files"; then
2016       $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2019       echo
2020       for ac_var in $ac_subst_files
2021       do
2022         eval ac_val=\$$ac_var
2023         case $ac_val in
2024         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025         esac
2026         $as_echo "$ac_var='\''$ac_val'\''"
2027       done | sort
2028       echo
2029     fi
2030
2031     if test -s confdefs.h; then
2032       $as_echo "## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##"
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       $as_echo "$as_me: caught signal $ac_signal"
2041     $as_echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 $as_echo "/* confdefs.h */" > confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089   # We do not want a PATH search for config.site.
2090   case $CONFIG_SITE in #((
2091     -*)  ac_site_file1=./$CONFIG_SITE;;
2092     */*) ac_site_file1=$CONFIG_SITE;;
2093     *)   ac_site_file1=./$CONFIG_SITE;;
2094   esac
2095 elif test "x$prefix" != xNONE; then
2096   ac_site_file1=$prefix/share/config.site
2097   ac_site_file2=$prefix/etc/config.site
2098 else
2099   ac_site_file1=$ac_default_prefix/share/config.site
2100   ac_site_file2=$ac_default_prefix/etc/config.site
2101 fi
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103 do
2104   test "x$ac_site_file" = xNONE && continue
2105   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108     sed 's/^/| /' "$ac_site_file" >&5
2109     . "$ac_site_file" \
2110       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2114   fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118   # Some versions of bash will fail to source /dev/null (special files
2119   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2120   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123     case $cache_file in
2124       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125       *)                      . "./$cache_file";;
2126     esac
2127   fi
2128 else
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131   >$cache_file
2132 fi
2133
2134 gt_needs="$gt_needs "
2135 # Check that the precious variables saved in the cache have kept the same
2136 # value.
2137 ac_cache_corrupted=false
2138 for ac_var in $ac_precious_vars; do
2139   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2140   eval ac_new_set=\$ac_env_${ac_var}_set
2141   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2142   eval ac_new_val=\$ac_env_${ac_var}_value
2143   case $ac_old_set,$ac_new_set in
2144     set,)
2145       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2147       ac_cache_corrupted=: ;;
2148     ,set)
2149       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2151       ac_cache_corrupted=: ;;
2152     ,);;
2153     *)
2154       if test "x$ac_old_val" != "x$ac_new_val"; then
2155         # differences in whitespace do not lead to failure.
2156         ac_old_val_w=`echo x $ac_old_val`
2157         ac_new_val_w=`echo x $ac_new_val`
2158         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2159           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2160 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2161           ac_cache_corrupted=:
2162         else
2163           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2164 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2165           eval $ac_var=\$ac_old_val
2166         fi
2167         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2168 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2169         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2170 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2171       fi;;
2172   esac
2173   # Pass precious variables to config.status.
2174   if test "$ac_new_set" = set; then
2175     case $ac_new_val in
2176     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177     *) ac_arg=$ac_var=$ac_new_val ;;
2178     esac
2179     case " $ac_configure_args " in
2180       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2181       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182     esac
2183   fi
2184 done
2185 if $ac_cache_corrupted; then
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2189 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2190   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191 fi
2192 ## -------------------- ##
2193 ## Main body of script. ##
2194 ## -------------------- ##
2195
2196 ac_ext=c
2197 ac_cpp='$CPP $CPPFLAGS'
2198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202
2203
2204 am__api_version='1.11'
2205
2206 ac_aux_dir=
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208   if test -f "$ac_dir/install-sh"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/install-sh -c"
2211     break
2212   elif test -f "$ac_dir/install.sh"; then
2213     ac_aux_dir=$ac_dir
2214     ac_install_sh="$ac_aux_dir/install.sh -c"
2215     break
2216   elif test -f "$ac_dir/shtool"; then
2217     ac_aux_dir=$ac_dir
2218     ac_install_sh="$ac_aux_dir/shtool install -c"
2219     break
2220   fi
2221 done
2222 if test -z "$ac_aux_dir"; then
2223   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 fi
2225
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2233
2234
2235 # Find a good install program.  We prefer a C program (faster),
2236 # so one script is as good as another.  But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253   $as_echo_n "(cached) " >&6
2254 else
2255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262   ./ | .// | /[cC]/* | \
2263   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265   /usr/ucb/* ) ;;
2266   *)
2267     # OSF1 and SCO ODT 3.0 have their own names for install.
2268     # Don't use installbsd from OSF since it installs stuff as root
2269     # by default.
2270     for ac_prog in ginstall scoinst install; do
2271       for ac_exec_ext in '' $ac_executable_extensions; do
2272         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2273           if test $ac_prog = install &&
2274             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275             # AIX install.  It has an incompatible calling convention.
2276             :
2277           elif test $ac_prog = install &&
2278             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279             # program-specific install script used by HP pwplus--don't use.
2280             :
2281           else
2282             rm -rf conftest.one conftest.two conftest.dir
2283             echo one > conftest.one
2284             echo two > conftest.two
2285             mkdir conftest.dir
2286             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287               test -s conftest.one && test -s conftest.two &&
2288               test -s conftest.dir/conftest.one &&
2289               test -s conftest.dir/conftest.two
2290             then
2291               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292               break 3
2293             fi
2294           fi
2295         fi
2296       done
2297     done
2298     ;;
2299 esac
2300
2301   done
2302 IFS=$as_save_IFS
2303
2304 rm -rf conftest.one conftest.two conftest.dir
2305
2306 fi
2307   if test "${ac_cv_path_install+set}" = set; then
2308     INSTALL=$ac_cv_path_install
2309   else
2310     # As a last resort, use the slow shell script.  Don't cache a
2311     # value for INSTALL within a source directory, because that will
2312     # break other packages using the cache if that directory is
2313     # removed, or if the value is a relative name.
2314     INSTALL=$ac_install_sh
2315   fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2319
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 # Just in case
2331 sleep 1
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name.  Accept space and tab only in the latter.
2335 am_lf='
2336 '
2337 case `pwd` in
2338   *[\\\"\#\$\&\'\`$am_lf]*)
2339     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340 esac
2341 case $srcdir in
2342   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2343     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344 esac
2345
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments.  Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353    if test "$*" = "X"; then
2354       # -L didn't work.
2355       set X `ls -t "$srcdir/configure" conftest.file`
2356    fi
2357    rm -f conftest.file
2358    if test "$*" != "X $srcdir/configure conftest.file" \
2359       && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361       # If neither matched, then we have a broken ls.  This can happen
2362       # if, for instance, CONFIG_SHELL is bash and it inherits a
2363       # broken ls alias from the environment.  This has actually
2364       # happened.  Such a system could not be considered "sane".
2365       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2367    fi
2368
2369    test "$2" = conftest.file
2370    )
2371 then
2372    # Ok.
2373    :
2374 else
2375    as_fn_error $? "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393 if test x"${MISSING+set}" != xset; then
2394   case $am_aux_dir in
2395   *\ * | *\     *)
2396     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397   *)
2398     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399   esac
2400 fi
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403   am_missing_run="$MISSING --run "
2404 else
2405   am_missing_run=
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2409
2410 if test x"${install_sh}" != xset; then
2411   case $am_aux_dir in
2412   *\ * | *\     *)
2413     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414   *)
2415     install_sh="\${SHELL} $am_aux_dir/install-sh"
2416   esac
2417 fi
2418
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'.  However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424   if test -n "$ac_tool_prefix"; then
2425   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   if test -n "$STRIP"; then
2433   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440     for ac_exec_ext in '' $ac_executable_extensions; do
2441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447   done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2456 else
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_STRIP"; then
2464   ac_ct_STRIP=$STRIP
2465   # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470   $as_echo_n "(cached) " >&6
2471 else
2472   if test -n "$ac_ct_STRIP"; then
2473   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480     for ac_exec_ext in '' $ac_executable_extensions; do
2481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482     ac_cv_prog_ac_ct_STRIP="strip"
2483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487   done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501   if test "x$ac_ct_STRIP" = x; then
2502     STRIP=":"
2503   else
2504     case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510     STRIP=$ac_ct_STRIP
2511   fi
2512 else
2513   STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522   if ${ac_cv_path_mkdir+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     for ac_prog in mkdir gmkdir; do
2531          for ac_exec_ext in '' $ac_executable_extensions; do
2532            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2533            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534              'mkdir (GNU coreutils) '* | \
2535              'mkdir (coreutils) '* | \
2536              'mkdir (fileutils) '4.1*)
2537                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538                break 3;;
2539            esac
2540          done
2541        done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546
2547   test -d ./--version && rmdir ./--version
2548   if test "${ac_cv_path_mkdir+set}" = set; then
2549     MKDIR_P="$ac_cv_path_mkdir -p"
2550   else
2551     # As a last resort, use the slow shell script.  Don't cache a
2552     # value for MKDIR_P within a source directory, because that will
2553     # break other packages using the cache if that directory is
2554     # removed, or if the value is a relative name.
2555     MKDIR_P="$ac_install_sh -d"
2556   fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2560
2561 mkdir_p="$MKDIR_P"
2562 case $mkdir_p in
2563   [\\/$]* | ?:[\\/]*) ;;
2564   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565 esac
2566
2567 for ac_prog in gawk mawk nawk awk
2568 do
2569   # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_AWK+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   if test -n "$AWK"; then
2577   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584     for ac_exec_ext in '' $ac_executable_extensions; do
2585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     ac_cv_prog_AWK="$ac_prog"
2587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606   test -n "$AWK" && break
2607 done
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 set x ${MAKE-make}
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614   $as_echo_n "(cached) " >&6
2615 else
2616   cat >conftest.make <<\_ACEOF
2617 SHELL = /bin/sh
2618 all:
2619         @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 _ACEOF
2621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623   *@@@%%%=?*=@@@%%%*)
2624     eval ac_cv_prog_make_${ac_make}_set=yes;;
2625   *)
2626     eval ac_cv_prog_make_${ac_make}_set=no;;
2627 esac
2628 rm -f conftest.make
2629 fi
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633   SET_MAKE=
2634 else
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637   SET_MAKE="MAKE=${MAKE-make}"
2638 fi
2639
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2643   am__leading_dot=.
2644 else
2645   am__leading_dot=_
2646 fi
2647 rmdir .tst 2>/dev/null
2648
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651   # is not polluted with repeated "-I."
2652   am__isrc=' -I$(srcdir)'
2653   # test to see if srcdir already configured
2654   if test -f $srcdir/config.status; then
2655     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656   fi
2657 fi
2658
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661   if (cygpath --version) >/dev/null 2>/dev/null; then
2662     CYGPATH_W='cygpath -w'
2663   else
2664     CYGPATH_W=echo
2665   fi
2666 fi
2667
2668
2669 # Define the identity of the package.
2670  PACKAGE='ppastats'
2671  VERSION='0.0.x'
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2676 _ACEOF
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2681 _ACEOF
2682
2683 # Some tools Automake needs.
2684
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699 # We need awk for the "check" target.  The system "awk" is bad on
2700 # some platforms.
2701 # Always define AMTAR for backward compatibility.  Yes, it's still used
2702 # in the wild :-(  We should find a proper way to deprecate it ...
2703 AMTAR='$${TAR-tar}'
2704
2705 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2706
2707
2708
2709
2710
2711
2712
2713 ac_config_headers="$ac_config_headers config.h"
2714
2715
2716 # Checks for programs.
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_CC+:} false; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   if test -n "$CC"; then
2731   ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736   IFS=$as_save_IFS
2737   test -z "$as_dir" && as_dir=.
2738     for ac_exec_ext in '' $ac_executable_extensions; do
2739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742     break 2
2743   fi
2744 done
2745   done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753 $as_echo "$CC" >&6; }
2754 else
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759
2760 fi
2761 if test -z "$ac_cv_prog_CC"; then
2762   ac_ct_CC=$CC
2763   # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   if test -n "$ac_ct_CC"; then
2771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     for ac_exec_ext in '' $ac_executable_extensions; do
2779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780     ac_cv_prog_ac_ct_CC="gcc"
2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785   done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2793 $as_echo "$ac_ct_CC" >&6; }
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799   if test "x$ac_ct_CC" = x; then
2800     CC=""
2801   else
2802     case $cross_compiling:$ac_tool_warned in
2803 yes:)
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2806 ac_tool_warned=yes ;;
2807 esac
2808     CC=$ac_ct_CC
2809   fi
2810 else
2811   CC="$ac_cv_prog_CC"
2812 fi
2813
2814 if test -z "$CC"; then
2815           if test -n "$ac_tool_prefix"; then
2816     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}cc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_CC+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   if test -n "$CC"; then
2824   ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     for ac_exec_ext in '' $ac_executable_extensions; do
2832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833     ac_cv_prog_CC="${ac_tool_prefix}cc"
2834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838   done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846 $as_echo "$CC" >&6; }
2847 else
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853   fi
2854 fi
2855 if test -z "$CC"; then
2856   # Extract the first word of "cc", so it can be a program name with args.
2857 set dummy cc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_CC+:} false; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   if test -n "$CC"; then
2864   ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866   ac_prog_rejected=no
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_exec_ext in '' $ac_executable_extensions; do
2873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2875        ac_prog_rejected=yes
2876        continue
2877      fi
2878     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
2887   # We found a bogon in the path, so make sure we never use it.
2888   set dummy $ac_cv_prog_CC
2889   shift
2890   if test $# != 0; then
2891     # We chose a different compiler from the bogus one.
2892     # However, it has the same basename, so the bogon will be chosen
2893     # first if we set CC to just the basename; use the full file name.
2894     shift
2895     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896   fi
2897 fi
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2904 else
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 if test -z "$CC"; then
2912   if test -n "$ac_tool_prefix"; then
2913   for ac_prog in cl.exe
2914   do
2915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_CC+:} false; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   if test -n "$CC"; then
2923   ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930     for ac_exec_ext in '' $ac_executable_extensions; do
2931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935   fi
2936 done
2937   done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952     test -n "$CC" && break
2953   done
2954 fi
2955 if test -z "$CC"; then
2956   ac_ct_CC=$CC
2957   for ac_prog in cl.exe
2958 do
2959   # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$ac_ct_CC"; then
2967   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976     ac_cv_prog_ac_ct_CC="$ac_prog"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989 $as_echo "$ac_ct_CC" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996   test -n "$ac_ct_CC" && break
2997 done
2998
2999   if test "x$ac_ct_CC" = x; then
3000     CC=""
3001   else
3002     case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008     CC=$ac_ct_CC
3009   fi
3010 fi
3011
3012 fi
3013
3014
3015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 as_fn_error $? "no acceptable C compiler found in \$PATH
3018 See \`config.log' for more details" "$LINENO" 5; }
3019
3020 # Provide some information about the compiler.
3021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3022 set X $ac_compile
3023 ac_compiler=$2
3024 for ac_option in --version -v -V -qversion; do
3025   { { ac_try="$ac_compiler $ac_option >&5"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3033   ac_status=$?
3034   if test -s conftest.err; then
3035     sed '10a\
3036 ... rest of stderr output deleted ...
3037          10q' conftest.err >conftest.er1
3038     cat conftest.er1 >&5
3039   fi
3040   rm -f conftest.er1 conftest.err
3041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042   test $ac_status = 0; }
3043 done
3044
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 ac_clean_files_save=$ac_clean_files
3057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3058 # Try to create an executable without -o first, disregard a.out.
3059 # It will help us diagnose broken compilers, and finding out an intuition
3060 # of exeext.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062 $as_echo_n "checking whether the C compiler works... " >&6; }
3063 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3064
3065 # The possible output files:
3066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3067
3068 ac_rmfiles=
3069 for ac_file in $ac_files
3070 do
3071   case $ac_file in
3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3074   esac
3075 done
3076 rm -f $ac_rmfiles
3077
3078 if { { ac_try="$ac_link_default"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085   (eval "$ac_link_default") 2>&5
3086   ac_status=$?
3087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088   test $ac_status = 0; }; then :
3089   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3091 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3092 # so that the user can short-circuit this test for compilers unknown to
3093 # Autoconf.
3094 for ac_file in $ac_files ''
3095 do
3096   test -f "$ac_file" || continue
3097   case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3099         ;;
3100     [ab].out )
3101         # We found the default executable, but exeext='' is most
3102         # certainly right.
3103         break;;
3104     *.* )
3105         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3106         then :; else
3107            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108         fi
3109         # We set ac_cv_exeext here because the later test for it is not
3110         # safe: cross compilers may not add the suffix if given an `-o'
3111         # argument, so we may need to know it at that point already.
3112         # Even if this section looks crufty: it has the advantage of
3113         # actually working.
3114         break;;
3115     * )
3116         break;;
3117   esac
3118 done
3119 test "$ac_cv_exeext" = no && ac_cv_exeext=
3120
3121 else
3122   ac_file=''
3123 fi
3124 if test -z "$ac_file"; then :
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error 77 "C compiler cannot create executables
3133 See \`config.log' for more details" "$LINENO" 5; }
3134 else
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3139 $as_echo_n "checking for C compiler default output file name... " >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141 $as_echo "$ac_file" >&6; }
3142 ac_exeext=$ac_cv_exeext
3143
3144 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3145 ac_clean_files=$ac_clean_files_save
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3147 $as_echo_n "checking for suffix of executables... " >&6; }
3148 if { { ac_try="$ac_link"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155   (eval "$ac_link") 2>&5
3156   ac_status=$?
3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158   test $ac_status = 0; }; then :
3159   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164   test -f "$ac_file" || continue
3165   case $ac_file in
3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168           break;;
3169     * ) break;;
3170   esac
3171 done
3172 else
3173   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 fi
3178 rm -f conftest conftest$ac_cv_exeext
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3180 $as_echo "$ac_cv_exeext" >&6; }
3181
3182 rm -f conftest.$ac_ext
3183 EXEEXT=$ac_cv_exeext
3184 ac_exeext=$EXEEXT
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187 #include <stdio.h>
3188 int
3189 main ()
3190 {
3191 FILE *f = fopen ("conftest.out", "w");
3192  return ferror (f) || fclose (f) != 0;
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 ac_clean_files="$ac_clean_files conftest.out"
3199 # Check that the compiler produces executables we can run.  If not, either
3200 # the compiler is broken, or we cross compile.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
3203 if test "$cross_compiling" != yes; then
3204   { { ac_try="$ac_link"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_link") 2>&5
3212   ac_status=$?
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }
3215   if { ac_try='./conftest$ac_cv_exeext'
3216   { { case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222   (eval "$ac_try") 2>&5
3223   ac_status=$?
3224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225   test $ac_status = 0; }; }; then
3226     cross_compiling=no
3227   else
3228     if test "$cross_compiling" = maybe; then
3229         cross_compiling=yes
3230     else
3231         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "cannot run C compiled programs.
3234 If you meant to cross compile, use \`--host'.
3235 See \`config.log' for more details" "$LINENO" 5; }
3236     fi
3237   fi
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3240 $as_echo "$cross_compiling" >&6; }
3241
3242 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3243 ac_clean_files=$ac_clean_files_save
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3245 $as_echo_n "checking for suffix of object files... " >&6; }
3246 if ${ac_cv_objext+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.o conftest.obj
3261 if { { ac_try="$ac_compile"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268   (eval "$ac_compile") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271   test $ac_status = 0; }; then :
3272   for ac_file in conftest.o conftest.obj conftest.*; do
3273   test -f "$ac_file" || continue;
3274   case $ac_file in
3275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3276     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277        break;;
3278   esac
3279 done
3280 else
3281   $as_echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of object files: cannot compile
3287 See \`config.log' for more details" "$LINENO" 5; }
3288 fi
3289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3292 $as_echo "$ac_cv_objext" >&6; }
3293 OBJEXT=$ac_cv_objext
3294 ac_objext=$OBJEXT
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297 if ${ac_cv_c_compiler_gnu+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306 #ifndef __GNUC__
3307        choke me
3308 #endif
3309
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315   ac_compiler_gnu=yes
3316 else
3317   ac_compiler_gnu=no
3318 fi
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3324 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3325 if test $ac_compiler_gnu = yes; then
3326   GCC=yes
3327 else
3328   GCC=
3329 fi
3330 ac_test_CFLAGS=${CFLAGS+set}
3331 ac_save_CFLAGS=$CFLAGS
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3333 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3334 if ${ac_cv_prog_cc_g+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   ac_save_c_werror_flag=$ac_c_werror_flag
3338    ac_c_werror_flag=yes
3339    ac_cv_prog_cc_g=no
3340    CFLAGS="-g"
3341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353   ac_cv_prog_cc_g=yes
3354 else
3355   CFLAGS=""
3356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h.  */
3358
3359 int
3360 main ()
3361 {
3362
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368
3369 else
3370   ac_c_werror_flag=$ac_save_c_werror_flag
3371          CFLAGS="-g"
3372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384   ac_cv_prog_cc_g=yes
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391    ac_c_werror_flag=$ac_save_c_werror_flag
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3394 $as_echo "$ac_cv_prog_cc_g" >&6; }
3395 if test "$ac_test_CFLAGS" = set; then
3396   CFLAGS=$ac_save_CFLAGS
3397 elif test $ac_cv_prog_cc_g = yes; then
3398   if test "$GCC" = yes; then
3399     CFLAGS="-g -O2"
3400   else
3401     CFLAGS="-g"
3402   fi
3403 else
3404   if test "$GCC" = yes; then
3405     CFLAGS="-O2"
3406   else
3407     CFLAGS=
3408   fi
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3412 if ${ac_cv_prog_cc_c89+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   ac_cv_prog_cc_c89=no
3416 ac_save_CC=$CC
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h.  */
3419 #include <stdarg.h>
3420 #include <stdio.h>
3421 struct stat;
3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3423 struct buf { int x; };
3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425 static char *e (p, i)
3426      char **p;
3427      int i;
3428 {
3429   return p[i];
3430 }
3431 static char *f (char * (*g) (char **, int), char **p, ...)
3432 {
3433   char *s;
3434   va_list v;
3435   va_start (v,p);
3436   s = g (p, va_arg (v,int));
3437   va_end (v);
3438   return s;
3439 }
3440
3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3442    function prototypes and stuff, but not '\xHH' hex character constants.
3443    These don't provoke an error unfortunately, instead are silently treated
3444    as 'x'.  The following induces an error, until -std is added to get
3445    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3446    array size at least.  It's necessary to write '\x00'==0 to get something
3447    that's true only with -std.  */
3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451    inside strings and character constants.  */
3452 #define FOO(x) 'x'
3453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454
3455 int test (int i, double x);
3456 struct s1 {int (*f) (int a);};
3457 struct s2 {int (*f) (double a);};
3458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 int argc;
3460 char **argv;
3461 int
3462 main ()
3463 {
3464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3465   ;
3466   return 0;
3467 }
3468 _ACEOF
3469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471 do
3472   CC="$ac_save_CC $ac_arg"
3473   if ac_fn_c_try_compile "$LINENO"; then :
3474   ac_cv_prog_cc_c89=$ac_arg
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext
3477   test "x$ac_cv_prog_cc_c89" != "xno" && break
3478 done
3479 rm -f conftest.$ac_ext
3480 CC=$ac_save_CC
3481
3482 fi
3483 # AC_CACHE_VAL
3484 case "x$ac_cv_prog_cc_c89" in
3485   x)
3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3487 $as_echo "none needed" >&6; } ;;
3488   xno)
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490 $as_echo "unsupported" >&6; } ;;
3491   *)
3492     CC="$CC $ac_cv_prog_cc_c89"
3493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3495 esac
3496 if test "x$ac_cv_prog_cc_c89" != xno; then :
3497
3498 fi
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 DEPDIR="${am__leading_dot}deps"
3506
3507 ac_config_commands="$ac_config_commands depfiles"
3508
3509
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END'
3512 am__doit:
3513         @echo this is the am__doit target
3514 .PHONY: am__doit
3515 END
3516 # If we don't find an include directive, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3519 am__include="#"
3520 am__quote=
3521 _am_result=none
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from `make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target*)
3527   am__include=include
3528   am__quote=
3529   _am_result=GNU
3530   ;;
3531 esac
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534    echo '.include "confinc"' > confmf
3535    case `$am_make -s -f confmf 2> /dev/null` in #(
3536    *the\ am__doit\ target*)
3537      am__include=.include
3538      am__quote="\""
3539      _am_result=BSD
3540      ;;
3541    esac
3542 fi
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3548
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551   enableval=$enable_dependency_tracking;
3552 fi
3553
3554 if test "x$enable_dependency_tracking" != xno; then
3555   am_depcomp="$ac_aux_dir/depcomp"
3556   AMDEPBACKSLASH='\'
3557   am__nodep='_no'
3558 fi
3559  if test "x$enable_dependency_tracking" != xno; then
3560   AMDEP_TRUE=
3561   AMDEP_FALSE='#'
3562 else
3563   AMDEP_TRUE='#'
3564   AMDEP_FALSE=
3565 fi
3566
3567
3568
3569 depcc="$CC"   am_compiler_list=
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3572 $as_echo_n "checking dependency style of $depcc... " >&6; }
3573 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577   # We make a subdir and do the tests there.  Otherwise we can end up
3578   # making bogus files that we don't know about and never remove.  For
3579   # instance it was reported that on HP-UX the gcc test will end up
3580   # making a dummy file named `D' -- because `-MD' means `put the output
3581   # in D'.
3582   rm -rf conftest.dir
3583   mkdir conftest.dir
3584   # Copy depcomp to subdir because otherwise we won't find it if we're
3585   # using a relative directory.
3586   cp "$am_depcomp" conftest.dir
3587   cd conftest.dir
3588   # We will build objects and dependencies in a subdirectory because
3589   # it helps to detect inapplicable dependency modes.  For instance
3590   # both Tru64's cc and ICC support -MD to output dependencies as a
3591   # side effect of compilation, but ICC will put the dependencies in
3592   # the current directory while Tru64 will put them in the object
3593   # directory.
3594   mkdir sub
3595
3596   am_cv_CC_dependencies_compiler_type=none
3597   if test "$am_compiler_list" = ""; then
3598      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3599   fi
3600   am__universal=false
3601   case " $depcc " in #(
3602      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3603      esac
3604
3605   for depmode in $am_compiler_list; do
3606     # Setup a source with many dependencies, because some compilers
3607     # like to wrap large dependency lists on column 80 (with \), and
3608     # we should not choose a depcomp mode which is confused by this.
3609     #
3610     # We need to recreate these files for each test, as the compiler may
3611     # overwrite some of them when testing with obscure command lines.
3612     # This happens at least with the AIX C compiler.
3613     : > sub/conftest.c
3614     for i in 1 2 3 4 5 6; do
3615       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3616       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3617       # Solaris 8's {/usr,}/bin/sh.
3618       touch sub/conftst$i.h
3619     done
3620     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3621
3622     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3623     # mode.  It turns out that the SunPro C++ compiler does not properly
3624     # handle `-M -o', and we need to detect this.  Also, some Intel
3625     # versions had trouble with output in subdirs
3626     am__obj=sub/conftest.${OBJEXT-o}
3627     am__minus_obj="-o $am__obj"
3628     case $depmode in
3629     gcc)
3630       # This depmode causes a compiler race in universal mode.
3631       test "$am__universal" = false || continue
3632       ;;
3633     nosideeffect)
3634       # after this tag, mechanisms are not by side-effect, so they'll
3635       # only be used when explicitly requested
3636       if test "x$enable_dependency_tracking" = xyes; then
3637         continue
3638       else
3639         break
3640       fi
3641       ;;
3642     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3643       # This compiler won't grok `-c -o', but also, the minuso test has
3644       # not run yet.  These depmodes are late enough in the game, and
3645       # so weak that their functioning should not be impacted.
3646       am__obj=conftest.${OBJEXT-o}
3647       am__minus_obj=
3648       ;;
3649     none) break ;;
3650     esac
3651     if depmode=$depmode \
3652        source=sub/conftest.c object=$am__obj \
3653        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3655          >/dev/null 2>conftest.err &&
3656        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3657        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3658        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3659        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3660       # icc doesn't choke on unknown options, it will just issue warnings
3661       # or remarks (even with -Werror).  So we grep stderr for any message
3662       # that says an option was ignored or not supported.
3663       # When given -MP, icc 7.0 and 7.1 complain thusly:
3664       #   icc: Command line warning: ignoring option '-M'; no argument required
3665       # The diagnosis changed in icc 8.0:
3666       #   icc: Command line remark: option '-MP' not supported
3667       if (grep 'ignoring option' conftest.err ||
3668           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3669         am_cv_CC_dependencies_compiler_type=$depmode
3670         break
3671       fi
3672     fi
3673   done
3674
3675   cd ..
3676   rm -rf conftest.dir
3677 else
3678   am_cv_CC_dependencies_compiler_type=none
3679 fi
3680
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3685
3686  if
3687   test "x$enable_dependency_tracking" != xno \
3688   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3689   am__fastdepCC_TRUE=
3690   am__fastdepCC_FALSE='#'
3691 else
3692   am__fastdepCC_TRUE='#'
3693   am__fastdepCC_FALSE=
3694 fi
3695
3696
3697 if test "x$CC" != xcc; then
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3699 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3700 else
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3702 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3703 fi
3704 set dummy $CC; ac_cc=`$as_echo "$2" |
3705                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3706 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3707   $as_echo_n "(cached) " >&6
3708 else
3709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h.  */
3711
3712 int
3713 main ()
3714 {
3715
3716   ;
3717   return 0;
3718 }
3719 _ACEOF
3720 # Make sure it works both with $CC and with simple cc.
3721 # We do the test twice because some compilers refuse to overwrite an
3722 # existing .o file with -o, though they will create one.
3723 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3724 rm -f conftest2.*
3725 if { { case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_try") 2>&5
3732   ac_status=$?
3733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734   test $ac_status = 0; } &&
3735    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_try") 2>&5
3742   ac_status=$?
3743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; };
3745 then
3746   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3747   if test "x$CC" != xcc; then
3748     # Test first that cc exists at all.
3749     if { ac_try='cc -c conftest.$ac_ext >&5'
3750   { { case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_try") 2>&5
3757   ac_status=$?
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }; }; then
3760       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3761       rm -f conftest2.*
3762       if { { case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_try") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; } &&
3772          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778   (eval "$ac_try") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781   test $ac_status = 0; };
3782       then
3783         # cc works too.
3784         :
3785       else
3786         # cc exists but doesn't like -o.
3787         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3788       fi
3789     fi
3790   fi
3791 else
3792   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3793 fi
3794 rm -f core conftest*
3795
3796 fi
3797 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800 else
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3803
3804 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3805
3806 fi
3807
3808 # FIXME: we rely on the cache variable name because
3809 # there is no other way.
3810 set dummy $CC
3811 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3812 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3813 if test "$am_t" != yes; then
3814    # Losing compiler, so override with the script.
3815    # FIXME: It is wrong to rewrite CC.
3816    # But if we don't then we get into trouble of one sort or another.
3817    # A longer-term fix would be to have automake use am__CC in this case,
3818    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3819    CC="$am_aux_dir/compile $CC"
3820 fi
3821
3822
3823
3824 # Checks lib build
3825 if test -n "$ac_tool_prefix"; then
3826   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_RANLIB+:} false; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   if test -n "$RANLIB"; then
3834   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841     for ac_exec_ext in '' $ac_executable_extensions; do
3842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848   done
3849 IFS=$as_save_IFS
3850
3851 fi
3852 fi
3853 RANLIB=$ac_cv_prog_RANLIB
3854 if test -n "$RANLIB"; then
3855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3856 $as_echo "$RANLIB" >&6; }
3857 else
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 fi
3861
3862
3863 fi
3864 if test -z "$ac_cv_prog_RANLIB"; then
3865   ac_ct_RANLIB=$RANLIB
3866   # Extract the first word of "ranlib", so it can be a program name with args.
3867 set dummy ranlib; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test -n "$ac_ct_RANLIB"; then
3874   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881     for ac_exec_ext in '' $ac_executable_extensions; do
3882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883     ac_cv_prog_ac_ct_RANLIB="ranlib"
3884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888   done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3894 if test -n "$ac_ct_RANLIB"; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3896 $as_echo "$ac_ct_RANLIB" >&6; }
3897 else
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902   if test "x$ac_ct_RANLIB" = x; then
3903     RANLIB=":"
3904   else
3905     case $cross_compiling:$ac_tool_warned in
3906 yes:)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3909 ac_tool_warned=yes ;;
3910 esac
3911     RANLIB=$ac_ct_RANLIB
3912   fi
3913 else
3914   RANLIB="$ac_cv_prog_RANLIB"
3915 fi
3916
3917
3918 # Intl support
3919
3920
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3922 $as_echo_n "checking whether NLS is requested... " >&6; }
3923     # Check whether --enable-nls was given.
3924 if test "${enable_nls+set}" = set; then :
3925   enableval=$enable_nls; USE_NLS=$enableval
3926 else
3927   USE_NLS=yes
3928 fi
3929
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3931 $as_echo "$USE_NLS" >&6; }
3932
3933
3934
3935
3936       GETTEXT_MACRO_VERSION=0.18
3937
3938
3939
3940
3941 # Prepare PATH_SEPARATOR.
3942 # The user is always right.
3943 if test "${PATH_SEPARATOR+set}" != set; then
3944   echo "#! /bin/sh" >conf$$.sh
3945   echo  "exit 0"   >>conf$$.sh
3946   chmod +x conf$$.sh
3947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3948     PATH_SEPARATOR=';'
3949   else
3950     PATH_SEPARATOR=:
3951   fi
3952   rm -f conf$$.sh
3953 fi
3954
3955 # Find out how to test for executable files. Don't use a zero-byte file,
3956 # as systems may use methods other than mode bits to determine executability.
3957 cat >conf$$.file <<_ASEOF
3958 #! /bin/sh
3959 exit 0
3960 _ASEOF
3961 chmod +x conf$$.file
3962 if test -x conf$$.file >/dev/null 2>&1; then
3963   ac_executable_p="test -x"
3964 else
3965   ac_executable_p="test -f"
3966 fi
3967 rm -f conf$$.file
3968
3969 # Extract the first word of "msgfmt", so it can be a program name with args.
3970 set dummy msgfmt; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if ${ac_cv_path_MSGFMT+:} false; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   case "$MSGFMT" in
3977   [\\/]* | ?:[\\/]*)
3978     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3979     ;;
3980   *)
3981     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3982     for ac_dir in $PATH; do
3983       IFS="$ac_save_IFS"
3984       test -z "$ac_dir" && ac_dir=.
3985       for ac_exec_ext in '' $ac_executable_extensions; do
3986         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3987           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3988           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3989      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3990             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3991             break 2
3992           fi
3993         fi
3994       done
3995     done
3996     IFS="$ac_save_IFS"
3997   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3998     ;;
3999 esac
4000 fi
4001 MSGFMT="$ac_cv_path_MSGFMT"
4002 if test "$MSGFMT" != ":"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4004 $as_echo "$MSGFMT" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4011 set dummy gmsgfmt; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_path_GMSGFMT+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   case $GMSGFMT in
4018   [\\/]* | ?:[\\/]*)
4019   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4020   ;;
4021   *)
4022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027     for ac_exec_ext in '' $ac_executable_extensions; do
4028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031     break 2
4032   fi
4033 done
4034   done
4035 IFS=$as_save_IFS
4036
4037   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4038   ;;
4039 esac
4040 fi
4041 GMSGFMT=$ac_cv_path_GMSGFMT
4042 if test -n "$GMSGFMT"; then
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4044 $as_echo "$GMSGFMT" >&6; }
4045 else
4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050
4051
4052     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4053     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4054     *) MSGFMT_015=$MSGFMT ;;
4055   esac
4056
4057   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4058     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4059     *) GMSGFMT_015=$GMSGFMT ;;
4060   esac
4061
4062
4063
4064 # Prepare PATH_SEPARATOR.
4065 # The user is always right.
4066 if test "${PATH_SEPARATOR+set}" != set; then
4067   echo "#! /bin/sh" >conf$$.sh
4068   echo  "exit 0"   >>conf$$.sh
4069   chmod +x conf$$.sh
4070   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4071     PATH_SEPARATOR=';'
4072   else
4073     PATH_SEPARATOR=:
4074   fi
4075   rm -f conf$$.sh
4076 fi
4077
4078 # Find out how to test for executable files. Don't use a zero-byte file,
4079 # as systems may use methods other than mode bits to determine executability.
4080 cat >conf$$.file <<_ASEOF
4081 #! /bin/sh
4082 exit 0
4083 _ASEOF
4084 chmod +x conf$$.file
4085 if test -x conf$$.file >/dev/null 2>&1; then
4086   ac_executable_p="test -x"
4087 else
4088   ac_executable_p="test -f"
4089 fi
4090 rm -f conf$$.file
4091
4092 # Extract the first word of "xgettext", so it can be a program name with args.
4093 set dummy xgettext; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if ${ac_cv_path_XGETTEXT+:} false; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099   case "$XGETTEXT" in
4100   [\\/]* | ?:[\\/]*)
4101     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4102     ;;
4103   *)
4104     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4105     for ac_dir in $PATH; do
4106       IFS="$ac_save_IFS"
4107       test -z "$ac_dir" && ac_dir=.
4108       for ac_exec_ext in '' $ac_executable_extensions; do
4109         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4110           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4111           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4112      (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
4113             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4114             break 2
4115           fi
4116         fi
4117       done
4118     done
4119     IFS="$ac_save_IFS"
4120   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4121     ;;
4122 esac
4123 fi
4124 XGETTEXT="$ac_cv_path_XGETTEXT"
4125 if test "$XGETTEXT" != ":"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4127 $as_echo "$XGETTEXT" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133     rm -f messages.po
4134
4135     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4136     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4137     *) XGETTEXT_015=$XGETTEXT ;;
4138   esac
4139
4140
4141
4142 # Prepare PATH_SEPARATOR.
4143 # The user is always right.
4144 if test "${PATH_SEPARATOR+set}" != set; then
4145   echo "#! /bin/sh" >conf$$.sh
4146   echo  "exit 0"   >>conf$$.sh
4147   chmod +x conf$$.sh
4148   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4149     PATH_SEPARATOR=';'
4150   else
4151     PATH_SEPARATOR=:
4152   fi
4153   rm -f conf$$.sh
4154 fi
4155
4156 # Find out how to test for executable files. Don't use a zero-byte file,
4157 # as systems may use methods other than mode bits to determine executability.
4158 cat >conf$$.file <<_ASEOF
4159 #! /bin/sh
4160 exit 0
4161 _ASEOF
4162 chmod +x conf$$.file
4163 if test -x conf$$.file >/dev/null 2>&1; then
4164   ac_executable_p="test -x"
4165 else
4166   ac_executable_p="test -f"
4167 fi
4168 rm -f conf$$.file
4169
4170 # Extract the first word of "msgmerge", so it can be a program name with args.
4171 set dummy msgmerge; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_path_MSGMERGE+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   case "$MSGMERGE" in
4178   [\\/]* | ?:[\\/]*)
4179     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4180     ;;
4181   *)
4182     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4183     for ac_dir in $PATH; do
4184       IFS="$ac_save_IFS"
4185       test -z "$ac_dir" && ac_dir=.
4186       for ac_exec_ext in '' $ac_executable_extensions; do
4187         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4188           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4189           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4190             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4191             break 2
4192           fi
4193         fi
4194       done
4195     done
4196     IFS="$ac_save_IFS"
4197   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4198     ;;
4199 esac
4200 fi
4201 MSGMERGE="$ac_cv_path_MSGMERGE"
4202 if test "$MSGMERGE" != ":"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4204 $as_echo "$MSGMERGE" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211         test -n "$localedir" || localedir='${datadir}/locale'
4212
4213
4214     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4215
4216
4217   ac_config_commands="$ac_config_commands po-directories"
4218
4219
4220
4221       if test "X$prefix" = "XNONE"; then
4222     acl_final_prefix="$ac_default_prefix"
4223   else
4224     acl_final_prefix="$prefix"
4225   fi
4226   if test "X$exec_prefix" = "XNONE"; then
4227     acl_final_exec_prefix='${prefix}'
4228   else
4229     acl_final_exec_prefix="$exec_prefix"
4230   fi
4231   acl_save_prefix="$prefix"
4232   prefix="$acl_final_prefix"
4233   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4234   prefix="$acl_save_prefix"
4235
4236 # Make sure we can run config.sub.
4237 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4238   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4241 $as_echo_n "checking build system type... " >&6; }
4242 if ${ac_cv_build+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   ac_build_alias=$build_alias
4246 test "x$ac_build_alias" = x &&
4247   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4248 test "x$ac_build_alias" = x &&
4249   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4251   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4255 $as_echo "$ac_cv_build" >&6; }
4256 case $ac_cv_build in
4257 *-*-*) ;;
4258 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4259 esac
4260 build=$ac_cv_build
4261 ac_save_IFS=$IFS; IFS='-'
4262 set x $ac_cv_build
4263 shift
4264 build_cpu=$1
4265 build_vendor=$2
4266 shift; shift
4267 # Remember, the first character of IFS is used to create $*,
4268 # except with old shells:
4269 build_os=$*
4270 IFS=$ac_save_IFS
4271 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4272
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4275 $as_echo_n "checking host system type... " >&6; }
4276 if ${ac_cv_host+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test "x$host_alias" = x; then
4280   ac_cv_host=$ac_cv_build
4281 else
4282   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4283     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4284 fi
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4288 $as_echo "$ac_cv_host" >&6; }
4289 case $ac_cv_host in
4290 *-*-*) ;;
4291 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4292 esac
4293 host=$ac_cv_host
4294 ac_save_IFS=$IFS; IFS='-'
4295 set x $ac_cv_host
4296 shift
4297 host_cpu=$1
4298 host_vendor=$2
4299 shift; shift
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4302 host_os=$*
4303 IFS=$ac_save_IFS
4304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4305
4306
4307
4308 # Check whether --with-gnu-ld was given.
4309 if test "${with_gnu_ld+set}" = set; then :
4310   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4311 else
4312   with_gnu_ld=no
4313 fi
4314
4315 # Prepare PATH_SEPARATOR.
4316 # The user is always right.
4317 if test "${PATH_SEPARATOR+set}" != set; then
4318   echo "#! /bin/sh" >conf$$.sh
4319   echo  "exit 0"   >>conf$$.sh
4320   chmod +x conf$$.sh
4321   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4322     PATH_SEPARATOR=';'
4323   else
4324     PATH_SEPARATOR=:
4325   fi
4326   rm -f conf$$.sh
4327 fi
4328 ac_prog=ld
4329 if test "$GCC" = yes; then
4330   # Check if gcc -print-prog-name=ld gives a path.
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4332 $as_echo_n "checking for ld used by GCC... " >&6; }
4333   case $host in
4334   *-*-mingw*)
4335     # gcc leaves a trailing carriage return which upsets mingw
4336     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4337   *)
4338     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4339   esac
4340   case $ac_prog in
4341     # Accept absolute paths.
4342     [\\/]* | [A-Za-z]:[\\/]*)
4343       re_direlt='/[^/][^/]*/\.\./'
4344       # Canonicalize the path of ld
4345       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4346       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4347         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4348       done
4349       test -z "$LD" && LD="$ac_prog"
4350       ;;
4351   "")
4352     # If it fails, then pretend we aren't using GCC.
4353     ac_prog=ld
4354     ;;
4355   *)
4356     # If it is relative, then search for the first ld in PATH.
4357     with_gnu_ld=unknown
4358     ;;
4359   esac
4360 elif test "$with_gnu_ld" = yes; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4362 $as_echo_n "checking for GNU ld... " >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4365 $as_echo_n "checking for non-GNU ld... " >&6; }
4366 fi
4367 if ${acl_cv_path_LD+:} false; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   if test -z "$LD"; then
4371   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4372   for ac_dir in $PATH; do
4373     test -z "$ac_dir" && ac_dir=.
4374     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4375       acl_cv_path_LD="$ac_dir/$ac_prog"
4376       # Check to see if the program is GNU ld.  I'd rather use --version,
4377       # but apparently some GNU ld's only accept -v.
4378       # Break only if it was the GNU/non-GNU ld that we prefer.
4379       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4380       *GNU* | *'with BFD'*)
4381         test "$with_gnu_ld" != no && break ;;
4382       *)
4383         test "$with_gnu_ld" != yes && break ;;
4384       esac
4385     fi
4386   done
4387   IFS="$ac_save_ifs"
4388 else
4389   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4390 fi
4391 fi
4392
4393 LD="$acl_cv_path_LD"
4394 if test -n "$LD"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4396 $as_echo "$LD" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4404 if ${acl_cv_prog_gnu_ld+:} false; then :
4405   $as_echo_n "(cached) " >&6
4406 else
4407   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4408 case `$LD -v 2>&1 </dev/null` in
4409 *GNU* | *'with BFD'*)
4410   acl_cv_prog_gnu_ld=yes ;;
4411 *)
4412   acl_cv_prog_gnu_ld=no ;;
4413 esac
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4416 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4417 with_gnu_ld=$acl_cv_prog_gnu_ld
4418
4419
4420
4421
4422                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4423 $as_echo_n "checking for shared library run path origin... " >&6; }
4424 if ${acl_cv_rpath+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427
4428     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4429     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4430     . ./conftest.sh
4431     rm -f ./conftest.sh
4432     acl_cv_rpath=done
4433
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4436 $as_echo "$acl_cv_rpath" >&6; }
4437   wl="$acl_cv_wl"
4438   acl_libext="$acl_cv_libext"
4439   acl_shlibext="$acl_cv_shlibext"
4440   acl_libname_spec="$acl_cv_libname_spec"
4441   acl_library_names_spec="$acl_cv_library_names_spec"
4442   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4443   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4444   acl_hardcode_direct="$acl_cv_hardcode_direct"
4445   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4446     # Check whether --enable-rpath was given.
4447 if test "${enable_rpath+set}" = set; then :
4448   enableval=$enable_rpath; :
4449 else
4450   enable_rpath=yes
4451 fi
4452
4453
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4461 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4462 # On Suns, sometimes $CPP names a directory.
4463 if test -n "$CPP" && test -d "$CPP"; then
4464   CPP=
4465 fi
4466 if test -z "$CPP"; then
4467   if ${ac_cv_prog_CPP+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470       # Double quotes because CPP needs to be expanded
4471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4472     do
4473       ac_preproc_ok=false
4474 for ac_c_preproc_warn_flag in '' yes
4475 do
4476   # Use a header file that comes with gcc, so configuring glibc
4477   # with a fresh cross-compiler works.
4478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479   # <limits.h> exists even on freestanding compilers.
4480   # On the NeXT, cc -E runs the code through the compiler's parser,
4481   # not just through cpp. "Syntax error" is here to catch this case.
4482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h.  */
4484 #ifdef __STDC__
4485 # include <limits.h>
4486 #else
4487 # include <assert.h>
4488 #endif
4489                      Syntax error
4490 _ACEOF
4491 if ac_fn_c_try_cpp "$LINENO"; then :
4492
4493 else
4494   # Broken: fails on valid input.
4495 continue
4496 fi
4497 rm -f conftest.err conftest.i conftest.$ac_ext
4498
4499   # OK, works on sane cases.  Now check whether nonexistent headers
4500   # can be detected and how.
4501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h.  */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if ac_fn_c_try_cpp "$LINENO"; then :
4506   # Broken: success on invalid input.
4507 continue
4508 else
4509   # Passes both tests.
4510 ac_preproc_ok=:
4511 break
4512 fi
4513 rm -f conftest.err conftest.i conftest.$ac_ext
4514
4515 done
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.i conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then :
4519   break
4520 fi
4521
4522     done
4523     ac_cv_prog_CPP=$CPP
4524
4525 fi
4526   CPP=$ac_cv_prog_CPP
4527 else
4528   ac_cv_prog_CPP=$CPP
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4531 $as_echo "$CPP" >&6; }
4532 ac_preproc_ok=false
4533 for ac_c_preproc_warn_flag in '' yes
4534 do
4535   # Use a header file that comes with gcc, so configuring glibc
4536   # with a fresh cross-compiler works.
4537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4538   # <limits.h> exists even on freestanding compilers.
4539   # On the NeXT, cc -E runs the code through the compiler's parser,
4540   # not just through cpp. "Syntax error" is here to catch this case.
4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543 #ifdef __STDC__
4544 # include <limits.h>
4545 #else
4546 # include <assert.h>
4547 #endif
4548                      Syntax error
4549 _ACEOF
4550 if ac_fn_c_try_cpp "$LINENO"; then :
4551
4552 else
4553   # Broken: fails on valid input.
4554 continue
4555 fi
4556 rm -f conftest.err conftest.i conftest.$ac_ext
4557
4558   # OK, works on sane cases.  Now check whether nonexistent headers
4559   # can be detected and how.
4560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562 #include <ac_nonexistent.h>
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4565   # Broken: success on invalid input.
4566 continue
4567 else
4568   # Passes both tests.
4569 ac_preproc_ok=:
4570 break
4571 fi
4572 rm -f conftest.err conftest.i conftest.$ac_ext
4573
4574 done
4575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4576 rm -f conftest.i conftest.err conftest.$ac_ext
4577 if $ac_preproc_ok; then :
4578
4579 else
4580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4583 See \`config.log' for more details" "$LINENO" 5; }
4584 fi
4585
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4594 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4595 if ${ac_cv_path_GREP+:} false; then :
4596   $as_echo_n "(cached) " >&6
4597 else
4598   if test -z "$GREP"; then
4599   ac_path_GREP_found=false
4600   # Loop through the user's path and test for each of PROGNAME-LIST
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606     for ac_prog in grep ggrep; do
4607     for ac_exec_ext in '' $ac_executable_extensions; do
4608       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4609       as_fn_executable_p "$ac_path_GREP" || continue
4610 # Check for GNU ac_path_GREP and select it if it is found.
4611   # Check for GNU $ac_path_GREP
4612 case `"$ac_path_GREP" --version 2>&1` in
4613 *GNU*)
4614   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615 *)
4616   ac_count=0
4617   $as_echo_n 0123456789 >"conftest.in"
4618   while :
4619   do
4620     cat "conftest.in" "conftest.in" >"conftest.tmp"
4621     mv "conftest.tmp" "conftest.in"
4622     cp "conftest.in" "conftest.nl"
4623     $as_echo 'GREP' >> "conftest.nl"
4624     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626     as_fn_arith $ac_count + 1 && ac_count=$as_val
4627     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4628       # Best one so far, save it but keep looking for a better one
4629       ac_cv_path_GREP="$ac_path_GREP"
4630       ac_path_GREP_max=$ac_count
4631     fi
4632     # 10*(2^10) chars as input seems more than enough
4633     test $ac_count -gt 10 && break
4634   done
4635   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 esac
4637
4638       $ac_path_GREP_found && break 3
4639     done
4640   done
4641   done
4642 IFS=$as_save_IFS
4643   if test -z "$ac_cv_path_GREP"; then
4644     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645   fi
4646 else
4647   ac_cv_path_GREP=$GREP
4648 fi
4649
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4652 $as_echo "$ac_cv_path_GREP" >&6; }
4653  GREP="$ac_cv_path_GREP"
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4657 $as_echo_n "checking for egrep... " >&6; }
4658 if ${ac_cv_path_EGREP+:} false; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4662    then ac_cv_path_EGREP="$GREP -E"
4663    else
4664      if test -z "$EGREP"; then
4665   ac_path_EGREP_found=false
4666   # Loop through the user's path and test for each of PROGNAME-LIST
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672     for ac_prog in egrep; do
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4675       as_fn_executable_p "$ac_path_EGREP" || continue
4676 # Check for GNU ac_path_EGREP and select it if it is found.
4677   # Check for GNU $ac_path_EGREP
4678 case `"$ac_path_EGREP" --version 2>&1` in
4679 *GNU*)
4680   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681 *)
4682   ac_count=0
4683   $as_echo_n 0123456789 >"conftest.in"
4684   while :
4685   do
4686     cat "conftest.in" "conftest.in" >"conftest.tmp"
4687     mv "conftest.tmp" "conftest.in"
4688     cp "conftest.in" "conftest.nl"
4689     $as_echo 'EGREP' >> "conftest.nl"
4690     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692     as_fn_arith $ac_count + 1 && ac_count=$as_val
4693     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4694       # Best one so far, save it but keep looking for a better one
4695       ac_cv_path_EGREP="$ac_path_EGREP"
4696       ac_path_EGREP_max=$ac_count
4697     fi
4698     # 10*(2^10) chars as input seems more than enough
4699     test $ac_count -gt 10 && break
4700   done
4701   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 esac
4703
4704       $ac_path_EGREP_found && break 3
4705     done
4706   done
4707   done
4708 IFS=$as_save_IFS
4709   if test -z "$ac_cv_path_EGREP"; then
4710     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711   fi
4712 else
4713   ac_cv_path_EGREP=$EGREP
4714 fi
4715
4716    fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4719 $as_echo "$ac_cv_path_EGREP" >&6; }
4720  EGREP="$ac_cv_path_EGREP"
4721
4722
4723
4724
4725   acl_libdirstem=lib
4726   acl_libdirstem2=
4727   case "$host_os" in
4728     solaris*)
4729                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4730 $as_echo_n "checking for 64-bit host... " >&6; }
4731 if ${gl_cv_solaris_64bit+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736
4737 #ifdef _LP64
4738 sixtyfour bits
4739 #endif
4740
4741 _ACEOF
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4744   gl_cv_solaris_64bit=yes
4745 else
4746   gl_cv_solaris_64bit=no
4747 fi
4748 rm -f conftest*
4749
4750
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4753 $as_echo "$gl_cv_solaris_64bit" >&6; }
4754       if test $gl_cv_solaris_64bit = yes; then
4755         acl_libdirstem=lib/64
4756         case "$host_cpu" in
4757           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4758           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4759         esac
4760       fi
4761       ;;
4762     *)
4763       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4764       if test -n "$searchpath"; then
4765         acl_save_IFS="${IFS=    }"; IFS=":"
4766         for searchdir in $searchpath; do
4767           if test -d "$searchdir"; then
4768             case "$searchdir" in
4769               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4770               */../ | */.. )
4771                 # Better ignore directories of this form. They are misleading.
4772                 ;;
4773               *) searchdir=`cd "$searchdir" && pwd`
4774                  case "$searchdir" in
4775                    */lib64 ) acl_libdirstem=lib64 ;;
4776                  esac ;;
4777             esac
4778           fi
4779         done
4780         IFS="$acl_save_IFS"
4781       fi
4782       ;;
4783   esac
4784   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797     use_additional=yes
4798
4799   acl_save_prefix="$prefix"
4800   prefix="$acl_final_prefix"
4801   acl_save_exec_prefix="$exec_prefix"
4802   exec_prefix="$acl_final_exec_prefix"
4803
4804     eval additional_includedir=\"$includedir\"
4805     eval additional_libdir=\"$libdir\"
4806
4807   exec_prefix="$acl_save_exec_prefix"
4808   prefix="$acl_save_prefix"
4809
4810
4811 # Check whether --with-libiconv-prefix was given.
4812 if test "${with_libiconv_prefix+set}" = set; then :
4813   withval=$with_libiconv_prefix;
4814     if test "X$withval" = "Xno"; then
4815       use_additional=no
4816     else
4817       if test "X$withval" = "X"; then
4818
4819   acl_save_prefix="$prefix"
4820   prefix="$acl_final_prefix"
4821   acl_save_exec_prefix="$exec_prefix"
4822   exec_prefix="$acl_final_exec_prefix"
4823
4824           eval additional_includedir=\"$includedir\"
4825           eval additional_libdir=\"$libdir\"
4826
4827   exec_prefix="$acl_save_exec_prefix"
4828   prefix="$acl_save_prefix"
4829
4830       else
4831         additional_includedir="$withval/include"
4832         additional_libdir="$withval/$acl_libdirstem"
4833         if test "$acl_libdirstem2" != "$acl_libdirstem" \
4834            && ! test -d "$withval/$acl_libdirstem"; then
4835           additional_libdir="$withval/$acl_libdirstem2"
4836         fi
4837       fi
4838     fi
4839
4840 fi
4841
4842       LIBICONV=
4843   LTLIBICONV=
4844   INCICONV=
4845   LIBICONV_PREFIX=
4846       HAVE_LIBICONV=
4847   rpathdirs=
4848   ltrpathdirs=
4849   names_already_handled=
4850   names_next_round='iconv '
4851   while test -n "$names_next_round"; do
4852     names_this_round="$names_next_round"
4853     names_next_round=
4854     for name in $names_this_round; do
4855       already_handled=
4856       for n in $names_already_handled; do
4857         if test "$n" = "$name"; then
4858           already_handled=yes
4859           break
4860         fi
4861       done
4862       if test -z "$already_handled"; then
4863         names_already_handled="$names_already_handled $name"
4864                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4865         eval value=\"\$HAVE_LIB$uppername\"
4866         if test -n "$value"; then
4867           if test "$value" = yes; then
4868             eval value=\"\$LIB$uppername\"
4869             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4870             eval value=\"\$LTLIB$uppername\"
4871             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4872           else
4873                                     :
4874           fi
4875         else
4876                               found_dir=
4877           found_la=
4878           found_so=
4879           found_a=
4880           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4881           if test -n "$acl_shlibext"; then
4882             shrext=".$acl_shlibext"             # typically: shrext=.so
4883           else
4884             shrext=
4885           fi
4886           if test $use_additional = yes; then
4887             dir="$additional_libdir"
4888                                     if test -n "$acl_shlibext"; then
4889               if test -f "$dir/$libname$shrext"; then
4890                 found_dir="$dir"
4891                 found_so="$dir/$libname$shrext"
4892               else
4893                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4894                   ver=`(cd "$dir" && \
4895                         for f in "$libname$shrext".*; do echo "$f"; done \
4896                         | sed -e "s,^$libname$shrext\\\\.,," \
4897                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4898                         | sed 1q ) 2>/dev/null`
4899                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4900                     found_dir="$dir"
4901                     found_so="$dir/$libname$shrext.$ver"
4902                   fi
4903                 else
4904                   eval library_names=\"$acl_library_names_spec\"
4905                   for f in $library_names; do
4906                     if test -f "$dir/$f"; then
4907                       found_dir="$dir"
4908                       found_so="$dir/$f"
4909                       break
4910                     fi
4911                   done
4912                 fi
4913               fi
4914             fi
4915                         if test "X$found_dir" = "X"; then
4916               if test -f "$dir/$libname.$acl_libext"; then
4917                 found_dir="$dir"
4918                 found_a="$dir/$libname.$acl_libext"
4919               fi
4920             fi
4921             if test "X$found_dir" != "X"; then
4922               if test -f "$dir/$libname.la"; then
4923                 found_la="$dir/$libname.la"
4924               fi
4925             fi
4926           fi
4927           if test "X$found_dir" = "X"; then
4928             for x in $LDFLAGS $LTLIBICONV; do
4929
4930   acl_save_prefix="$prefix"
4931   prefix="$acl_final_prefix"
4932   acl_save_exec_prefix="$exec_prefix"
4933   exec_prefix="$acl_final_exec_prefix"
4934   eval x=\"$x\"
4935   exec_prefix="$acl_save_exec_prefix"
4936   prefix="$acl_save_prefix"
4937
4938               case "$x" in
4939                 -L*)
4940                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4941                                     if test -n "$acl_shlibext"; then
4942                     if test -f "$dir/$libname$shrext"; then
4943                       found_dir="$dir"
4944                       found_so="$dir/$libname$shrext"
4945                     else
4946                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4947                         ver=`(cd "$dir" && \
4948                               for f in "$libname$shrext".*; do echo "$f"; done \
4949                               | sed -e "s,^$libname$shrext\\\\.,," \
4950                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4951                               | sed 1q ) 2>/dev/null`
4952                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4953                           found_dir="$dir"
4954                           found_so="$dir/$libname$shrext.$ver"
4955                         fi
4956                       else
4957                         eval library_names=\"$acl_library_names_spec\"
4958                         for f in $library_names; do
4959                           if test -f "$dir/$f"; then
4960                             found_dir="$dir"
4961                             found_so="$dir/$f"
4962                             break
4963                           fi
4964                         done
4965                       fi
4966                     fi
4967                   fi
4968                                     if test "X$found_dir" = "X"; then
4969                     if test -f "$dir/$libname.$acl_libext"; then
4970                       found_dir="$dir"
4971                       found_a="$dir/$libname.$acl_libext"
4972                     fi
4973                   fi
4974                   if test "X$found_dir" != "X"; then
4975                     if test -f "$dir/$libname.la"; then
4976                       found_la="$dir/$libname.la"
4977                     fi
4978                   fi
4979                   ;;
4980               esac
4981               if test "X$found_dir" != "X"; then
4982                 break
4983               fi
4984             done
4985           fi
4986           if test "X$found_dir" != "X"; then
4987                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4988             if test "X$found_so" != "X"; then
4989                                                         if test "$enable_rpath" = no \
4990                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4991                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4992                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4993               else
4994                                                                                 haveit=
4995                 for x in $ltrpathdirs; do
4996                   if test "X$x" = "X$found_dir"; then
4997                     haveit=yes
4998                     break
4999                   fi
5000                 done
5001                 if test -z "$haveit"; then
5002                   ltrpathdirs="$ltrpathdirs $found_dir"
5003                 fi
5004                                 if test "$acl_hardcode_direct" = yes; then
5005                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5006                 else
5007                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5008                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5009                                                             haveit=
5010                     for x in $rpathdirs; do
5011                       if test "X$x" = "X$found_dir"; then
5012                         haveit=yes
5013                         break
5014                       fi
5015                     done
5016                     if test -z "$haveit"; then
5017                       rpathdirs="$rpathdirs $found_dir"
5018                     fi
5019                   else
5020                                                                                 haveit=
5021                     for x in $LDFLAGS $LIBICONV; do
5022
5023   acl_save_prefix="$prefix"
5024   prefix="$acl_final_prefix"
5025   acl_save_exec_prefix="$exec_prefix"
5026   exec_prefix="$acl_final_exec_prefix"
5027   eval x=\"$x\"
5028   exec_prefix="$acl_save_exec_prefix"
5029   prefix="$acl_save_prefix"
5030
5031                       if test "X$x" = "X-L$found_dir"; then
5032                         haveit=yes
5033                         break
5034                       fi
5035                     done
5036                     if test -z "$haveit"; then
5037                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5038                     fi
5039                     if test "$acl_hardcode_minus_L" != no; then
5040                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5041                     else
5042                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5043                     fi
5044                   fi
5045                 fi
5046               fi
5047             else
5048               if test "X$found_a" != "X"; then
5049                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5050               else
5051                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5052               fi
5053             fi
5054                         additional_includedir=
5055             case "$found_dir" in
5056               */$acl_libdirstem | */$acl_libdirstem/)
5057                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5058                 if test "$name" = 'iconv'; then
5059                   LIBICONV_PREFIX="$basedir"
5060                 fi
5061                 additional_includedir="$basedir/include"
5062                 ;;
5063               */$acl_libdirstem2 | */$acl_libdirstem2/)
5064                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5065                 if test "$name" = 'iconv'; then
5066                   LIBICONV_PREFIX="$basedir"
5067                 fi
5068                 additional_includedir="$basedir/include"
5069                 ;;
5070             esac
5071             if test "X$additional_includedir" != "X"; then
5072                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5073                 haveit=
5074                 if test "X$additional_includedir" = "X/usr/local/include"; then
5075                   if test -n "$GCC"; then
5076                     case $host_os in
5077                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5078                     esac
5079                   fi
5080                 fi
5081                 if test -z "$haveit"; then
5082                   for x in $CPPFLAGS $INCICONV; do
5083
5084   acl_save_prefix="$prefix"
5085   prefix="$acl_final_prefix"
5086   acl_save_exec_prefix="$exec_prefix"
5087   exec_prefix="$acl_final_exec_prefix"
5088   eval x=\"$x\"
5089   exec_prefix="$acl_save_exec_prefix"
5090   prefix="$acl_save_prefix"
5091
5092                     if test "X$x" = "X-I$additional_includedir"; then
5093                       haveit=yes
5094                       break
5095                     fi
5096                   done
5097                   if test -z "$haveit"; then
5098                     if test -d "$additional_includedir"; then
5099                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5100                     fi
5101                   fi
5102                 fi
5103               fi
5104             fi
5105                         if test -n "$found_la"; then
5106                                                         save_libdir="$libdir"
5107               case "$found_la" in
5108                 */* | *\\*) . "$found_la" ;;
5109                 *) . "./$found_la" ;;
5110               esac
5111               libdir="$save_libdir"
5112                             for dep in $dependency_libs; do
5113                 case "$dep" in
5114                   -L*)
5115                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5116                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5117                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5118                       haveit=
5119                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5120                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5121                         if test -n "$GCC"; then
5122                           case $host_os in
5123                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5124                           esac
5125                         fi
5126                       fi
5127                       if test -z "$haveit"; then
5128                         haveit=
5129                         for x in $LDFLAGS $LIBICONV; do
5130
5131   acl_save_prefix="$prefix"
5132   prefix="$acl_final_prefix"
5133   acl_save_exec_prefix="$exec_prefix"
5134   exec_prefix="$acl_final_exec_prefix"
5135   eval x=\"$x\"
5136   exec_prefix="$acl_save_exec_prefix"
5137   prefix="$acl_save_prefix"
5138
5139                           if test "X$x" = "X-L$additional_libdir"; then
5140                             haveit=yes
5141                             break
5142                           fi
5143                         done
5144                         if test -z "$haveit"; then
5145                           if test -d "$additional_libdir"; then
5146                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5147                           fi
5148                         fi
5149                         haveit=
5150                         for x in $LDFLAGS $LTLIBICONV; do
5151
5152   acl_save_prefix="$prefix"
5153   prefix="$acl_final_prefix"
5154   acl_save_exec_prefix="$exec_prefix"
5155   exec_prefix="$acl_final_exec_prefix"
5156   eval x=\"$x\"
5157   exec_prefix="$acl_save_exec_prefix"
5158   prefix="$acl_save_prefix"
5159
5160                           if test "X$x" = "X-L$additional_libdir"; then
5161                             haveit=yes
5162                             break
5163                           fi
5164                         done
5165                         if test -z "$haveit"; then
5166                           if test -d "$additional_libdir"; then
5167                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5168                           fi
5169                         fi
5170                       fi
5171                     fi
5172                     ;;
5173                   -R*)
5174                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5175                     if test "$enable_rpath" != no; then
5176                                                                   haveit=
5177                       for x in $rpathdirs; do
5178                         if test "X$x" = "X$dir"; then
5179                           haveit=yes
5180                           break
5181                         fi
5182                       done
5183                       if test -z "$haveit"; then
5184                         rpathdirs="$rpathdirs $dir"
5185                       fi
5186                                                                   haveit=
5187                       for x in $ltrpathdirs; do
5188                         if test "X$x" = "X$dir"; then
5189                           haveit=yes
5190                           break
5191                         fi
5192                       done
5193                       if test -z "$haveit"; then
5194                         ltrpathdirs="$ltrpathdirs $dir"
5195                       fi
5196                     fi
5197                     ;;
5198                   -l*)
5199                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5200                     ;;
5201                   *.la)
5202                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5203                     ;;
5204                   *)
5205                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5206                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5207                     ;;
5208                 esac
5209               done
5210             fi
5211           else
5212                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5213             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5214           fi
5215         fi
5216       fi
5217     done
5218   done
5219   if test "X$rpathdirs" != "X"; then
5220     if test -n "$acl_hardcode_libdir_separator"; then
5221                         alldirs=
5222       for found_dir in $rpathdirs; do
5223         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5224       done
5225             acl_save_libdir="$libdir"
5226       libdir="$alldirs"
5227       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5228       libdir="$acl_save_libdir"
5229       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5230     else
5231             for found_dir in $rpathdirs; do
5232         acl_save_libdir="$libdir"
5233         libdir="$found_dir"
5234         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5235         libdir="$acl_save_libdir"
5236         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5237       done
5238     fi
5239   fi
5240   if test "X$ltrpathdirs" != "X"; then
5241             for found_dir in $ltrpathdirs; do
5242       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5243     done
5244   fi
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5277 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5278 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   gt_save_LIBS="$LIBS"
5282      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285 #include <CoreFoundation/CFPreferences.h>
5286 int
5287 main ()
5288 {
5289 CFPreferencesCopyAppValue(NULL, NULL)
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_link "$LINENO"; then :
5295   gt_cv_func_CFPreferencesCopyAppValue=yes
5296 else
5297   gt_cv_func_CFPreferencesCopyAppValue=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext \
5300     conftest$ac_exeext conftest.$ac_ext
5301      LIBS="$gt_save_LIBS"
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5304 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5305   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5306
5307 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5308
5309   fi
5310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5311 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5312 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   gt_save_LIBS="$LIBS"
5316      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h.  */
5319 #include <CoreFoundation/CFLocale.h>
5320 int
5321 main ()
5322 {
5323 CFLocaleCopyCurrent();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_link "$LINENO"; then :
5329   gt_cv_func_CFLocaleCopyCurrent=yes
5330 else
5331   gt_cv_func_CFLocaleCopyCurrent=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext \
5334     conftest$ac_exeext conftest.$ac_ext
5335      LIBS="$gt_save_LIBS"
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5338 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5339   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5340
5341 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5342
5343   fi
5344   INTL_MACOSX_LIBS=
5345   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5346     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5347   fi
5348
5349
5350
5351
5352
5353
5354   LIBINTL=
5355   LTLIBINTL=
5356   POSUB=
5357
5358     case " $gt_needs " in
5359     *" need-formatstring-macros "*) gt_api_version=3 ;;
5360     *" need-ngettext "*) gt_api_version=2 ;;
5361     *) gt_api_version=1 ;;
5362   esac
5363   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5364   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5365
5366     if test "$USE_NLS" = "yes"; then
5367     gt_use_preinstalled_gnugettext=no
5368
5369
5370         if test $gt_api_version -ge 3; then
5371           gt_revision_test_code='
5372 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5373 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5374 #endif
5375 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5376 '
5377         else
5378           gt_revision_test_code=
5379         fi
5380         if test $gt_api_version -ge 2; then
5381           gt_expression_test_code=' + * ngettext ("", "", 0)'
5382         else
5383           gt_expression_test_code=
5384         fi
5385
5386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5387 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5388 if eval \${$gt_func_gnugettext_libc+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h.  */
5393 #include <libintl.h>
5394 $gt_revision_test_code
5395 extern int _nl_msg_cat_cntr;
5396 extern int *_nl_domain_bindings;
5397 int
5398 main ()
5399 {
5400 bindtextdomain ("", "");
5401 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407   eval "$gt_func_gnugettext_libc=yes"
5408 else
5409   eval "$gt_func_gnugettext_libc=no"
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext \
5412     conftest$ac_exeext conftest.$ac_ext
5413 fi
5414 eval ac_res=\$$gt_func_gnugettext_libc
5415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5416 $as_echo "$ac_res" >&6; }
5417
5418         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5419
5420
5421
5422
5423
5424           am_save_CPPFLAGS="$CPPFLAGS"
5425
5426   for element in $INCICONV; do
5427     haveit=
5428     for x in $CPPFLAGS; do
5429
5430   acl_save_prefix="$prefix"
5431   prefix="$acl_final_prefix"
5432   acl_save_exec_prefix="$exec_prefix"
5433   exec_prefix="$acl_final_exec_prefix"
5434   eval x=\"$x\"
5435   exec_prefix="$acl_save_exec_prefix"
5436   prefix="$acl_save_prefix"
5437
5438       if test "X$x" = "X$element"; then
5439         haveit=yes
5440         break
5441       fi
5442     done
5443     if test -z "$haveit"; then
5444       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5445     fi
5446   done
5447
5448
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5450 $as_echo_n "checking for iconv... " >&6; }
5451 if ${am_cv_func_iconv+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454
5455     am_cv_func_iconv="no, consider installing GNU libiconv"
5456     am_cv_lib_iconv=no
5457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h.  */
5459 #include <stdlib.h>
5460 #include <iconv.h>
5461 int
5462 main ()
5463 {
5464 iconv_t cd = iconv_open("","");
5465        iconv(cd,NULL,NULL,NULL,NULL);
5466        iconv_close(cd);
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"; then :
5472   am_cv_func_iconv=yes
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475     conftest$ac_exeext conftest.$ac_ext
5476     if test "$am_cv_func_iconv" != yes; then
5477       am_save_LIBS="$LIBS"
5478       LIBS="$LIBS $LIBICONV"
5479       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481 #include <stdlib.h>
5482 #include <iconv.h>
5483 int
5484 main ()
5485 {
5486 iconv_t cd = iconv_open("","");
5487          iconv(cd,NULL,NULL,NULL,NULL);
5488          iconv_close(cd);
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 if ac_fn_c_try_link "$LINENO"; then :
5494   am_cv_lib_iconv=yes
5495         am_cv_func_iconv=yes
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext \
5498     conftest$ac_exeext conftest.$ac_ext
5499       LIBS="$am_save_LIBS"
5500     fi
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5504 $as_echo "$am_cv_func_iconv" >&6; }
5505   if test "$am_cv_func_iconv" = yes; then
5506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5507 $as_echo_n "checking for working iconv... " >&6; }
5508 if ${am_cv_func_iconv_works+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511
5512             am_save_LIBS="$LIBS"
5513       if test $am_cv_lib_iconv = yes; then
5514         LIBS="$LIBS $LIBICONV"
5515       fi
5516       if test "$cross_compiling" = yes; then :
5517   case "$host_os" in
5518            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5519            *)            am_cv_func_iconv_works="guessing yes" ;;
5520          esac
5521 else
5522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524
5525 #include <iconv.h>
5526 #include <string.h>
5527 int main ()
5528 {
5529   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5530      returns.  */
5531   {
5532     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5533     if (cd_utf8_to_88591 != (iconv_t)(-1))
5534       {
5535         static const char input[] = "\342\202\254"; /* EURO SIGN */
5536         char buf[10];
5537         const char *inptr = input;
5538         size_t inbytesleft = strlen (input);
5539         char *outptr = buf;
5540         size_t outbytesleft = sizeof (buf);
5541         size_t res = iconv (cd_utf8_to_88591,
5542                             (char **) &inptr, &inbytesleft,
5543                             &outptr, &outbytesleft);
5544         if (res == 0)
5545           return 1;
5546       }
5547   }
5548   /* Test against Solaris 10 bug: Failures are not distinguishable from
5549      successful returns.  */
5550   {
5551     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5552     if (cd_ascii_to_88591 != (iconv_t)(-1))
5553       {
5554         static const char input[] = "\263";
5555         char buf[10];
5556         const char *inptr = input;
5557         size_t inbytesleft = strlen (input);
5558         char *outptr = buf;
5559         size_t outbytesleft = sizeof (buf);
5560         size_t res = iconv (cd_ascii_to_88591,
5561                             (char **) &inptr, &inbytesleft,
5562                             &outptr, &outbytesleft);
5563         if (res == 0)
5564           return 1;
5565       }
5566   }
5567 #if 0 /* This bug could be worked around by the caller.  */
5568   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5569   {
5570     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5571     if (cd_88591_to_utf8 != (iconv_t)(-1))
5572       {
5573         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5574         char buf[50];
5575         const char *inptr = input;
5576         size_t inbytesleft = strlen (input);
5577         char *outptr = buf;
5578         size_t outbytesleft = sizeof (buf);
5579         size_t res = iconv (cd_88591_to_utf8,
5580                             (char **) &inptr, &inbytesleft,
5581                             &outptr, &outbytesleft);
5582         if ((int)res > 0)
5583           return 1;
5584       }
5585   }
5586 #endif
5587   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5588      provided.  */
5589   if (/* Try standardized names.  */
5590       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5591       /* Try IRIX, OSF/1 names.  */
5592       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5593       /* Try AIX names.  */
5594       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5595       /* Try HP-UX names.  */
5596       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5597     return 1;
5598   return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_run "$LINENO"; then :
5602   am_cv_func_iconv_works=yes
5603 else
5604   am_cv_func_iconv_works=no
5605 fi
5606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5607   conftest.$ac_objext conftest.beam conftest.$ac_ext
5608 fi
5609
5610       LIBS="$am_save_LIBS"
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5614 $as_echo "$am_cv_func_iconv_works" >&6; }
5615     case "$am_cv_func_iconv_works" in
5616       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5617       *)   am_func_iconv=yes ;;
5618     esac
5619   else
5620     am_func_iconv=no am_cv_lib_iconv=no
5621   fi
5622   if test "$am_func_iconv" = yes; then
5623
5624 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5625
5626   fi
5627   if test "$am_cv_lib_iconv" = yes; then
5628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5629 $as_echo_n "checking how to link with libiconv... " >&6; }
5630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5631 $as_echo "$LIBICONV" >&6; }
5632   else
5633             CPPFLAGS="$am_save_CPPFLAGS"
5634     LIBICONV=
5635     LTLIBICONV=
5636   fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648     use_additional=yes
5649
5650   acl_save_prefix="$prefix"
5651   prefix="$acl_final_prefix"
5652   acl_save_exec_prefix="$exec_prefix"
5653   exec_prefix="$acl_final_exec_prefix"
5654
5655     eval additional_includedir=\"$includedir\"
5656     eval additional_libdir=\"$libdir\"
5657
5658   exec_prefix="$acl_save_exec_prefix"
5659   prefix="$acl_save_prefix"
5660
5661
5662 # Check whether --with-libintl-prefix was given.
5663 if test "${with_libintl_prefix+set}" = set; then :
5664   withval=$with_libintl_prefix;
5665     if test "X$withval" = "Xno"; then
5666       use_additional=no
5667     else
5668       if test "X$withval" = "X"; then
5669
5670   acl_save_prefix="$prefix"
5671   prefix="$acl_final_prefix"
5672   acl_save_exec_prefix="$exec_prefix"
5673   exec_prefix="$acl_final_exec_prefix"
5674
5675           eval additional_includedir=\"$includedir\"
5676           eval additional_libdir=\"$libdir\"
5677
5678   exec_prefix="$acl_save_exec_prefix"
5679   prefix="$acl_save_prefix"
5680
5681       else
5682         additional_includedir="$withval/include"
5683         additional_libdir="$withval/$acl_libdirstem"
5684         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5685            && ! test -d "$withval/$acl_libdirstem"; then
5686           additional_libdir="$withval/$acl_libdirstem2"
5687         fi
5688       fi
5689     fi
5690
5691 fi
5692
5693       LIBINTL=
5694   LTLIBINTL=
5695   INCINTL=
5696   LIBINTL_PREFIX=
5697       HAVE_LIBINTL=
5698   rpathdirs=
5699   ltrpathdirs=
5700   names_already_handled=
5701   names_next_round='intl '
5702   while test -n "$names_next_round"; do
5703     names_this_round="$names_next_round"
5704     names_next_round=
5705     for name in $names_this_round; do
5706       already_handled=
5707       for n in $names_already_handled; do
5708         if test "$n" = "$name"; then
5709           already_handled=yes
5710           break
5711         fi
5712       done
5713       if test -z "$already_handled"; then
5714         names_already_handled="$names_already_handled $name"
5715                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5716         eval value=\"\$HAVE_LIB$uppername\"
5717         if test -n "$value"; then
5718           if test "$value" = yes; then
5719             eval value=\"\$LIB$uppername\"
5720             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5721             eval value=\"\$LTLIB$uppername\"
5722             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5723           else
5724                                     :
5725           fi
5726         else
5727                               found_dir=
5728           found_la=
5729           found_so=
5730           found_a=
5731           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5732           if test -n "$acl_shlibext"; then
5733             shrext=".$acl_shlibext"             # typically: shrext=.so
5734           else
5735             shrext=
5736           fi
5737           if test $use_additional = yes; then
5738             dir="$additional_libdir"
5739                                     if test -n "$acl_shlibext"; then
5740               if test -f "$dir/$libname$shrext"; then
5741                 found_dir="$dir"
5742                 found_so="$dir/$libname$shrext"
5743               else
5744                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5745                   ver=`(cd "$dir" && \
5746                         for f in "$libname$shrext".*; do echo "$f"; done \
5747                         | sed -e "s,^$libname$shrext\\\\.,," \
5748                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5749                         | sed 1q ) 2>/dev/null`
5750                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5751                     found_dir="$dir"
5752                     found_so="$dir/$libname$shrext.$ver"
5753                   fi
5754                 else
5755                   eval library_names=\"$acl_library_names_spec\"
5756                   for f in $library_names; do
5757                     if test -f "$dir/$f"; then
5758                       found_dir="$dir"
5759                       found_so="$dir/$f"
5760                       break
5761                     fi
5762                   done
5763                 fi
5764               fi
5765             fi
5766                         if test "X$found_dir" = "X"; then
5767               if test -f "$dir/$libname.$acl_libext"; then
5768                 found_dir="$dir"
5769                 found_a="$dir/$libname.$acl_libext"
5770               fi
5771             fi
5772             if test "X$found_dir" != "X"; then
5773               if test -f "$dir/$libname.la"; then
5774                 found_la="$dir/$libname.la"
5775               fi
5776             fi
5777           fi
5778           if test "X$found_dir" = "X"; then
5779             for x in $LDFLAGS $LTLIBINTL; do
5780
5781   acl_save_prefix="$prefix"
5782   prefix="$acl_final_prefix"
5783   acl_save_exec_prefix="$exec_prefix"
5784   exec_prefix="$acl_final_exec_prefix"
5785   eval x=\"$x\"
5786   exec_prefix="$acl_save_exec_prefix"
5787   prefix="$acl_save_prefix"
5788
5789               case "$x" in
5790                 -L*)
5791                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5792                                     if test -n "$acl_shlibext"; then
5793                     if test -f "$dir/$libname$shrext"; then
5794                       found_dir="$dir"
5795                       found_so="$dir/$libname$shrext"
5796                     else
5797                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5798                         ver=`(cd "$dir" && \
5799                               for f in "$libname$shrext".*; do echo "$f"; done \
5800                               | sed -e "s,^$libname$shrext\\\\.,," \
5801                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5802                               | sed 1q ) 2>/dev/null`
5803                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5804                           found_dir="$dir"
5805                           found_so="$dir/$libname$shrext.$ver"
5806                         fi
5807                       else
5808                         eval library_names=\"$acl_library_names_spec\"
5809                         for f in $library_names; do
5810                           if test -f "$dir/$f"; then
5811                             found_dir="$dir"
5812                             found_so="$dir/$f"
5813                             break
5814                           fi
5815                         done
5816                       fi
5817                     fi
5818                   fi
5819                                     if test "X$found_dir" = "X"; then
5820                     if test -f "$dir/$libname.$acl_libext"; then
5821                       found_dir="$dir"
5822                       found_a="$dir/$libname.$acl_libext"
5823                     fi
5824                   fi
5825                   if test "X$found_dir" != "X"; then
5826                     if test -f "$dir/$libname.la"; then
5827                       found_la="$dir/$libname.la"
5828                     fi
5829                   fi
5830                   ;;
5831               esac
5832               if test "X$found_dir" != "X"; then
5833                 break
5834               fi
5835             done
5836           fi
5837           if test "X$found_dir" != "X"; then
5838                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5839             if test "X$found_so" != "X"; then
5840                                                         if test "$enable_rpath" = no \
5841                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5842                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5843                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5844               else
5845                                                                                 haveit=
5846                 for x in $ltrpathdirs; do
5847                   if test "X$x" = "X$found_dir"; then
5848                     haveit=yes
5849                     break
5850                   fi
5851                 done
5852                 if test -z "$haveit"; then
5853                   ltrpathdirs="$ltrpathdirs $found_dir"
5854                 fi
5855                                 if test "$acl_hardcode_direct" = yes; then
5856                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5857                 else
5858                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5859                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5860                                                             haveit=
5861                     for x in $rpathdirs; do
5862                       if test "X$x" = "X$found_dir"; then
5863                         haveit=yes
5864                         break
5865                       fi
5866                     done
5867                     if test -z "$haveit"; then
5868                       rpathdirs="$rpathdirs $found_dir"
5869                     fi
5870                   else
5871                                                                                 haveit=
5872                     for x in $LDFLAGS $LIBINTL; do
5873
5874   acl_save_prefix="$prefix"
5875   prefix="$acl_final_prefix"
5876   acl_save_exec_prefix="$exec_prefix"
5877   exec_prefix="$acl_final_exec_prefix"
5878   eval x=\"$x\"
5879   exec_prefix="$acl_save_exec_prefix"
5880   prefix="$acl_save_prefix"
5881
5882                       if test "X$x" = "X-L$found_dir"; then
5883                         haveit=yes
5884                         break
5885                       fi
5886                     done
5887                     if test -z "$haveit"; then
5888                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5889                     fi
5890                     if test "$acl_hardcode_minus_L" != no; then
5891                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5892                     else
5893                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5894                     fi
5895                   fi
5896                 fi
5897               fi
5898             else
5899               if test "X$found_a" != "X"; then
5900                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5901               else
5902                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5903               fi
5904             fi
5905                         additional_includedir=
5906             case "$found_dir" in
5907               */$acl_libdirstem | */$acl_libdirstem/)
5908                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5909                 if test "$name" = 'intl'; then
5910                   LIBINTL_PREFIX="$basedir"
5911                 fi
5912                 additional_includedir="$basedir/include"
5913                 ;;
5914               */$acl_libdirstem2 | */$acl_libdirstem2/)
5915                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5916                 if test "$name" = 'intl'; then
5917                   LIBINTL_PREFIX="$basedir"
5918                 fi
5919                 additional_includedir="$basedir/include"
5920                 ;;
5921             esac
5922             if test "X$additional_includedir" != "X"; then
5923                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5924                 haveit=
5925                 if test "X$additional_includedir" = "X/usr/local/include"; then
5926                   if test -n "$GCC"; then
5927                     case $host_os in
5928                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5929                     esac
5930                   fi
5931                 fi
5932                 if test -z "$haveit"; then
5933                   for x in $CPPFLAGS $INCINTL; do
5934
5935   acl_save_prefix="$prefix"
5936   prefix="$acl_final_prefix"
5937   acl_save_exec_prefix="$exec_prefix"
5938   exec_prefix="$acl_final_exec_prefix"
5939   eval x=\"$x\"
5940   exec_prefix="$acl_save_exec_prefix"
5941   prefix="$acl_save_prefix"
5942
5943                     if test "X$x" = "X-I$additional_includedir"; then
5944                       haveit=yes
5945                       break
5946                     fi
5947                   done
5948                   if test -z "$haveit"; then
5949                     if test -d "$additional_includedir"; then
5950                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5951                     fi
5952                   fi
5953                 fi
5954               fi
5955             fi
5956                         if test -n "$found_la"; then
5957                                                         save_libdir="$libdir"
5958               case "$found_la" in
5959                 */* | *\\*) . "$found_la" ;;
5960                 *) . "./$found_la" ;;
5961               esac
5962               libdir="$save_libdir"
5963                             for dep in $dependency_libs; do
5964                 case "$dep" in
5965                   -L*)
5966                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5967                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5968                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5969                       haveit=
5970                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5971                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5972                         if test -n "$GCC"; then
5973                           case $host_os in
5974                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5975                           esac
5976                         fi
5977                       fi
5978                       if test -z "$haveit"; then
5979                         haveit=
5980                         for x in $LDFLAGS $LIBINTL; do
5981
5982   acl_save_prefix="$prefix"
5983   prefix="$acl_final_prefix"
5984   acl_save_exec_prefix="$exec_prefix"
5985   exec_prefix="$acl_final_exec_prefix"
5986   eval x=\"$x\"
5987   exec_prefix="$acl_save_exec_prefix"
5988   prefix="$acl_save_prefix"
5989
5990                           if test "X$x" = "X-L$additional_libdir"; then
5991                             haveit=yes
5992                             break
5993                           fi
5994                         done
5995                         if test -z "$haveit"; then
5996                           if test -d "$additional_libdir"; then
5997                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5998                           fi
5999                         fi
6000                         haveit=
6001                         for x in $LDFLAGS $LTLIBINTL; do
6002
6003   acl_save_prefix="$prefix"
6004   prefix="$acl_final_prefix"
6005   acl_save_exec_prefix="$exec_prefix"
6006   exec_prefix="$acl_final_exec_prefix"
6007   eval x=\"$x\"
6008   exec_prefix="$acl_save_exec_prefix"
6009   prefix="$acl_save_prefix"
6010
6011                           if test "X$x" = "X-L$additional_libdir"; then
6012                             haveit=yes
6013                             break
6014                           fi
6015                         done
6016                         if test -z "$haveit"; then
6017                           if test -d "$additional_libdir"; then
6018                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6019                           fi
6020                         fi
6021                       fi
6022                     fi
6023                     ;;
6024                   -R*)
6025                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6026                     if test "$enable_rpath" != no; then
6027                                                                   haveit=
6028                       for x in $rpathdirs; do
6029                         if test "X$x" = "X$dir"; then
6030                           haveit=yes
6031                           break
6032                         fi
6033                       done
6034                       if test -z "$haveit"; then
6035                         rpathdirs="$rpathdirs $dir"
6036                       fi
6037                                                                   haveit=
6038                       for x in $ltrpathdirs; do
6039                         if test "X$x" = "X$dir"; then
6040                           haveit=yes
6041                           break
6042                         fi
6043                       done
6044                       if test -z "$haveit"; then
6045                         ltrpathdirs="$ltrpathdirs $dir"
6046                       fi
6047                     fi
6048                     ;;
6049                   -l*)
6050                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6051                     ;;
6052                   *.la)
6053                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6054                     ;;
6055                   *)
6056                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6057                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6058                     ;;
6059                 esac
6060               done
6061             fi
6062           else
6063                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6064             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6065           fi
6066         fi
6067       fi
6068     done
6069   done
6070   if test "X$rpathdirs" != "X"; then
6071     if test -n "$acl_hardcode_libdir_separator"; then
6072                         alldirs=
6073       for found_dir in $rpathdirs; do
6074         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6075       done
6076             acl_save_libdir="$libdir"
6077       libdir="$alldirs"
6078       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6079       libdir="$acl_save_libdir"
6080       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6081     else
6082             for found_dir in $rpathdirs; do
6083         acl_save_libdir="$libdir"
6084         libdir="$found_dir"
6085         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6086         libdir="$acl_save_libdir"
6087         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6088       done
6089     fi
6090   fi
6091   if test "X$ltrpathdirs" != "X"; then
6092             for found_dir in $ltrpathdirs; do
6093       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6094     done
6095   fi
6096
6097
6098
6099
6100
6101
6102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6103 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6104 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   gt_save_CPPFLAGS="$CPPFLAGS"
6108             CPPFLAGS="$CPPFLAGS $INCINTL"
6109             gt_save_LIBS="$LIBS"
6110             LIBS="$LIBS $LIBINTL"
6111                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h.  */
6113 #include <libintl.h>
6114 $gt_revision_test_code
6115 extern int _nl_msg_cat_cntr;
6116 extern
6117 #ifdef __cplusplus
6118 "C"
6119 #endif
6120 const char *_nl_expand_alias (const char *);
6121 int
6122 main ()
6123 {
6124 bindtextdomain ("", "");
6125 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_link "$LINENO"; then :
6131   eval "$gt_func_gnugettext_libintl=yes"
6132 else
6133   eval "$gt_func_gnugettext_libintl=no"
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext \
6136     conftest$ac_exeext conftest.$ac_ext
6137                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6138               LIBS="$LIBS $LIBICONV"
6139               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h.  */
6141 #include <libintl.h>
6142 $gt_revision_test_code
6143 extern int _nl_msg_cat_cntr;
6144 extern
6145 #ifdef __cplusplus
6146 "C"
6147 #endif
6148 const char *_nl_expand_alias (const char *);
6149 int
6150 main ()
6151 {
6152 bindtextdomain ("", "");
6153 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_link "$LINENO"; then :
6159   LIBINTL="$LIBINTL $LIBICONV"
6160                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6161                 eval "$gt_func_gnugettext_libintl=yes"
6162
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext \
6165     conftest$ac_exeext conftest.$ac_ext
6166             fi
6167             CPPFLAGS="$gt_save_CPPFLAGS"
6168             LIBS="$gt_save_LIBS"
6169 fi
6170 eval ac_res=\$$gt_func_gnugettext_libintl
6171                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6172 $as_echo "$ac_res" >&6; }
6173         fi
6174
6175                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6176            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6177                 && test "$PACKAGE" != gettext-runtime \
6178                 && test "$PACKAGE" != gettext-tools; }; then
6179           gt_use_preinstalled_gnugettext=yes
6180         else
6181                     LIBINTL=
6182           LTLIBINTL=
6183           INCINTL=
6184         fi
6185
6186
6187
6188     if test -n "$INTL_MACOSX_LIBS"; then
6189       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6190          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6191                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6192         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6193       fi
6194     fi
6195
6196     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6197        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6198
6199 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6200
6201     else
6202       USE_NLS=no
6203     fi
6204   fi
6205
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6207 $as_echo_n "checking whether to use NLS... " >&6; }
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6209 $as_echo "$USE_NLS" >&6; }
6210   if test "$USE_NLS" = "yes"; then
6211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6212 $as_echo_n "checking where the gettext function comes from... " >&6; }
6213     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6214       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6215         gt_source="external libintl"
6216       else
6217         gt_source="libc"
6218       fi
6219     else
6220       gt_source="included intl directory"
6221     fi
6222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6223 $as_echo "$gt_source" >&6; }
6224   fi
6225
6226   if test "$USE_NLS" = "yes"; then
6227
6228     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6229       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6231 $as_echo_n "checking how to link with libintl... " >&6; }
6232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6233 $as_echo "$LIBINTL" >&6; }
6234
6235   for element in $INCINTL; do
6236     haveit=
6237     for x in $CPPFLAGS; do
6238
6239   acl_save_prefix="$prefix"
6240   prefix="$acl_final_prefix"
6241   acl_save_exec_prefix="$exec_prefix"
6242   exec_prefix="$acl_final_exec_prefix"
6243   eval x=\"$x\"
6244   exec_prefix="$acl_save_exec_prefix"
6245   prefix="$acl_save_prefix"
6246
6247       if test "X$x" = "X$element"; then
6248         haveit=yes
6249         break
6250       fi
6251     done
6252     if test -z "$haveit"; then
6253       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6254     fi
6255   done
6256
6257       fi
6258
6259
6260 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6261
6262
6263 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6264
6265     fi
6266
6267         POSUB=po
6268   fi
6269
6270
6271
6272     INTLLIBS="$LIBINTL"
6273
6274
6275
6276
6277
6278
6279
6280 # Checks for header files.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6282 $as_echo_n "checking for X... " >&6; }
6283
6284
6285 # Check whether --with-x was given.
6286 if test "${with_x+set}" = set; then :
6287   withval=$with_x;
6288 fi
6289
6290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6291 if test "x$with_x" = xno; then
6292   # The user explicitly disabled X.
6293   have_x=disabled
6294 else
6295   case $x_includes,$x_libraries in #(
6296     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6297     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   # One or both of the vars are not set, and there is no cached value.
6301 ac_x_includes=no ac_x_libraries=no
6302 rm -f -r conftest.dir
6303 if mkdir conftest.dir; then
6304   cd conftest.dir
6305   cat >Imakefile <<'_ACEOF'
6306 incroot:
6307         @echo incroot='${INCROOT}'
6308 usrlibdir:
6309         @echo usrlibdir='${USRLIBDIR}'
6310 libdir:
6311         @echo libdir='${LIBDIR}'
6312 _ACEOF
6313   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6314     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6315     for ac_var in incroot usrlibdir libdir; do
6316       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6317     done
6318     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6319     for ac_extension in a so sl dylib la dll; do
6320       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6321          test -f "$ac_im_libdir/libX11.$ac_extension"; then
6322         ac_im_usrlibdir=$ac_im_libdir; break
6323       fi
6324     done
6325     # Screen out bogus values from the imake configuration.  They are
6326     # bogus both because they are the default anyway, and because
6327     # using them would break gcc on systems where it needs fixed includes.
6328     case $ac_im_incroot in
6329         /usr/include) ac_x_includes= ;;
6330         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6331     esac
6332     case $ac_im_usrlibdir in
6333         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6334         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6335     esac
6336   fi
6337   cd ..
6338   rm -f -r conftest.dir
6339 fi
6340
6341 # Standard set of common directories for X headers.
6342 # Check X11 before X11Rn because it is often a symlink to the current release.
6343 ac_x_header_dirs='
6344 /usr/X11/include
6345 /usr/X11R7/include
6346 /usr/X11R6/include
6347 /usr/X11R5/include
6348 /usr/X11R4/include
6349
6350 /usr/include/X11
6351 /usr/include/X11R7
6352 /usr/include/X11R6
6353 /usr/include/X11R5
6354 /usr/include/X11R4
6355
6356 /usr/local/X11/include
6357 /usr/local/X11R7/include
6358 /usr/local/X11R6/include
6359 /usr/local/X11R5/include
6360 /usr/local/X11R4/include
6361
6362 /usr/local/include/X11
6363 /usr/local/include/X11R7
6364 /usr/local/include/X11R6
6365 /usr/local/include/X11R5
6366 /usr/local/include/X11R4
6367
6368 /usr/X386/include
6369 /usr/x386/include
6370 /usr/XFree86/include/X11
6371
6372 /usr/include
6373 /usr/local/include
6374 /usr/unsupported/include
6375 /usr/athena/include
6376 /usr/local/x11r5/include
6377 /usr/lpp/Xamples/include
6378
6379 /usr/openwin/include
6380 /usr/openwin/share/include'
6381
6382 if test "$ac_x_includes" = no; then
6383   # Guess where to find include files, by looking for Xlib.h.
6384   # First, try using that file with no special directory specified.
6385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h.  */
6387 #include <X11/Xlib.h>
6388 _ACEOF
6389 if ac_fn_c_try_cpp "$LINENO"; then :
6390   # We can compile using X headers with no special include directory.
6391 ac_x_includes=
6392 else
6393   for ac_dir in $ac_x_header_dirs; do
6394   if test -r "$ac_dir/X11/Xlib.h"; then
6395     ac_x_includes=$ac_dir
6396     break
6397   fi
6398 done
6399 fi
6400 rm -f conftest.err conftest.i conftest.$ac_ext
6401 fi # $ac_x_includes = no
6402
6403 if test "$ac_x_libraries" = no; then
6404   # Check for the libraries.
6405   # See if we find them without any special options.
6406   # Don't add to $LIBS permanently.
6407   ac_save_LIBS=$LIBS
6408   LIBS="-lX11 $LIBS"
6409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h.  */
6411 #include <X11/Xlib.h>
6412 int
6413 main ()
6414 {
6415 XrmInitialize ()
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_link "$LINENO"; then :
6421   LIBS=$ac_save_LIBS
6422 # We can link X programs with no special library path.
6423 ac_x_libraries=
6424 else
6425   LIBS=$ac_save_LIBS
6426 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6427 do
6428   # Don't even attempt the hair of trying to link an X program!
6429   for ac_extension in a so sl dylib la dll; do
6430     if test -r "$ac_dir/libX11.$ac_extension"; then
6431       ac_x_libraries=$ac_dir
6432       break 2
6433     fi
6434   done
6435 done
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438     conftest$ac_exeext conftest.$ac_ext
6439 fi # $ac_x_libraries = no
6440
6441 case $ac_x_includes,$ac_x_libraries in #(
6442   no,* | *,no | *\'*)
6443     # Didn't find X, or a directory has "'" in its name.
6444     ac_cv_have_x="have_x=no";; #(
6445   *)
6446     # Record where we found X for the cache.
6447     ac_cv_have_x="have_x=yes\
6448         ac_x_includes='$ac_x_includes'\
6449         ac_x_libraries='$ac_x_libraries'"
6450 esac
6451 fi
6452 ;; #(
6453     *) have_x=yes;;
6454   esac
6455   eval "$ac_cv_have_x"
6456 fi # $with_x != no
6457
6458 if test "$have_x" != yes; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6460 $as_echo "$have_x" >&6; }
6461   no_x=yes
6462 else
6463   # If each of the values was on the command line, it overrides each guess.
6464   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6465   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6466   # Update the cache value to reflect the command line values.
6467   ac_cv_have_x="have_x=yes\
6468         ac_x_includes='$x_includes'\
6469         ac_x_libraries='$x_libraries'"
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6471 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6472 fi
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6475 $as_echo_n "checking for ANSI C header files... " >&6; }
6476 if ${ac_cv_header_stdc+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h.  */
6481 #include <stdlib.h>
6482 #include <stdarg.h>
6483 #include <string.h>
6484 #include <float.h>
6485
6486 int
6487 main ()
6488 {
6489
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495   ac_cv_header_stdc=yes
6496 else
6497   ac_cv_header_stdc=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500
6501 if test $ac_cv_header_stdc = yes; then
6502   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h.  */
6505 #include <string.h>
6506
6507 _ACEOF
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509   $EGREP "memchr" >/dev/null 2>&1; then :
6510
6511 else
6512   ac_cv_header_stdc=no
6513 fi
6514 rm -f conftest*
6515
6516 fi
6517
6518 if test $ac_cv_header_stdc = yes; then
6519   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522 #include <stdlib.h>
6523
6524 _ACEOF
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526   $EGREP "free" >/dev/null 2>&1; then :
6527
6528 else
6529   ac_cv_header_stdc=no
6530 fi
6531 rm -f conftest*
6532
6533 fi
6534
6535 if test $ac_cv_header_stdc = yes; then
6536   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6537   if test "$cross_compiling" = yes; then :
6538   :
6539 else
6540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h.  */
6542 #include <ctype.h>
6543 #include <stdlib.h>
6544 #if ((' ' & 0x0FF) == 0x020)
6545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6547 #else
6548 # define ISLOWER(c) \
6549                    (('a' <= (c) && (c) <= 'i') \
6550                      || ('j' <= (c) && (c) <= 'r') \
6551                      || ('s' <= (c) && (c) <= 'z'))
6552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6553 #endif
6554
6555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6556 int
6557 main ()
6558 {
6559   int i;
6560   for (i = 0; i < 256; i++)
6561     if (XOR (islower (i), ISLOWER (i))
6562         || toupper (i) != TOUPPER (i))
6563       return 2;
6564   return 0;
6565 }
6566 _ACEOF
6567 if ac_fn_c_try_run "$LINENO"; then :
6568
6569 else
6570   ac_cv_header_stdc=no
6571 fi
6572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6573   conftest.$ac_objext conftest.beam conftest.$ac_ext
6574 fi
6575
6576 fi
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6579 $as_echo "$ac_cv_header_stdc" >&6; }
6580 if test $ac_cv_header_stdc = yes; then
6581
6582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6583
6584 fi
6585
6586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6588                   inttypes.h stdint.h unistd.h
6589 do :
6590   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6591 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6592 "
6593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6594   cat >>confdefs.h <<_ACEOF
6595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6597
6598 fi
6599
6600 done
6601
6602
6603 for ac_header in getopt.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h
6604 do :
6605   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6606 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6607 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6608   cat >>confdefs.h <<_ACEOF
6609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613
6614 done
6615
6616
6617 # Checks CURL
6618
6619
6620
6621
6622
6623
6624
6625 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6626         if test -n "$ac_tool_prefix"; then
6627   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   case $PKG_CONFIG in
6635   [\\/]* | ?:[\\/]*)
6636   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6637   ;;
6638   *)
6639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651   done
6652 IFS=$as_save_IFS
6653
6654   ;;
6655 esac
6656 fi
6657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6658 if test -n "$PKG_CONFIG"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6660 $as_echo "$PKG_CONFIG" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_path_PKG_CONFIG"; then
6669   ac_pt_PKG_CONFIG=$PKG_CONFIG
6670   # Extract the first word of "pkg-config", so it can be a program name with args.
6671 set dummy pkg-config; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   case $ac_pt_PKG_CONFIG in
6678   [\\/]* | ?:[\\/]*)
6679   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6680   ;;
6681   *)
6682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697   ;;
6698 esac
6699 fi
6700 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6701 if test -n "$ac_pt_PKG_CONFIG"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6703 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709   if test "x$ac_pt_PKG_CONFIG" = x; then
6710     PKG_CONFIG=""
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718     PKG_CONFIG=$ac_pt_PKG_CONFIG
6719   fi
6720 else
6721   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6722 fi
6723
6724 fi
6725 if test -n "$PKG_CONFIG"; then
6726         _pkg_min_version=0.9.0
6727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6728 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6729         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6730                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6731 $as_echo "yes" >&6; }
6732         else
6733                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735                 PKG_CONFIG=""
6736         fi
6737 fi
6738
6739 pkg_failed=no
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
6741 $as_echo_n "checking for CURL... " >&6; }
6742
6743 if test -n "$CURL_CFLAGS"; then
6744     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
6745  elif test -n "$PKG_CONFIG"; then
6746     if test -n "$PKG_CONFIG" && \
6747     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6748   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6749   ac_status=$?
6750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6751   test $ac_status = 0; }; then
6752   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
6753                       test "x$?" != "x0" && pkg_failed=yes
6754 else
6755   pkg_failed=yes
6756 fi
6757  else
6758     pkg_failed=untried
6759 fi
6760 if test -n "$CURL_LIBS"; then
6761     pkg_cv_CURL_LIBS="$CURL_LIBS"
6762  elif test -n "$PKG_CONFIG"; then
6763     if test -n "$PKG_CONFIG" && \
6764     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6765   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6766   ac_status=$?
6767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768   test $ac_status = 0; }; then
6769   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
6770                       test "x$?" != "x0" && pkg_failed=yes
6771 else
6772   pkg_failed=yes
6773 fi
6774  else
6775     pkg_failed=untried
6776 fi
6777
6778
6779
6780 if test $pkg_failed = yes; then
6781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783
6784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6785         _pkg_short_errors_supported=yes
6786 else
6787         _pkg_short_errors_supported=no
6788 fi
6789         if test $_pkg_short_errors_supported = yes; then
6790                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
6791         else
6792                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
6793         fi
6794         # Put the nasty error message in config.log where it belongs
6795         echo "$CURL_PKG_ERRORS" >&5
6796
6797         as_fn_error $? "Package requirements (libcurl ) were not met:
6798
6799 $CURL_PKG_ERRORS
6800
6801 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6802 installed software in a non-standard prefix.
6803
6804 Alternatively, you may set the environment variables CURL_CFLAGS
6805 and CURL_LIBS to avoid the need to call pkg-config.
6806 See the pkg-config man page for more details." "$LINENO" 5
6807 elif test $pkg_failed = untried; then
6808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6812 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6813 is in your PATH or set the PKG_CONFIG environment variable to the full
6814 path to pkg-config.
6815
6816 Alternatively, you may set the environment variables CURL_CFLAGS
6817 and CURL_LIBS to avoid the need to call pkg-config.
6818 See the pkg-config man page for more details.
6819
6820 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6821 See \`config.log' for more details" "$LINENO" 5; }
6822 else
6823         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
6824         CURL_LIBS=$pkg_cv_CURL_LIBS
6825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6827
6828 fi
6829
6830
6831
6832 # Checks JSON
6833
6834 pkg_failed=no
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6836 $as_echo_n "checking for JSON... " >&6; }
6837
6838 if test -n "$JSON_CFLAGS"; then
6839     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6840  elif test -n "$PKG_CONFIG"; then
6841     if test -n "$PKG_CONFIG" && \
6842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json \""; } >&5
6843   ($PKG_CONFIG --exists --print-errors "json ") 2>&5
6844   ac_status=$?
6845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846   test $ac_status = 0; }; then
6847   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json " 2>/dev/null`
6848                       test "x$?" != "x0" && pkg_failed=yes
6849 else
6850   pkg_failed=yes
6851 fi
6852  else
6853     pkg_failed=untried
6854 fi
6855 if test -n "$JSON_LIBS"; then
6856     pkg_cv_JSON_LIBS="$JSON_LIBS"
6857  elif test -n "$PKG_CONFIG"; then
6858     if test -n "$PKG_CONFIG" && \
6859     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json \""; } >&5
6860   ($PKG_CONFIG --exists --print-errors "json ") 2>&5
6861   ac_status=$?
6862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863   test $ac_status = 0; }; then
6864   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json " 2>/dev/null`
6865                       test "x$?" != "x0" && pkg_failed=yes
6866 else
6867   pkg_failed=yes
6868 fi
6869  else
6870     pkg_failed=untried
6871 fi
6872
6873
6874
6875 if test $pkg_failed = yes; then
6876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878
6879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6880         _pkg_short_errors_supported=yes
6881 else
6882         _pkg_short_errors_supported=no
6883 fi
6884         if test $_pkg_short_errors_supported = yes; then
6885                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json " 2>&1`
6886         else
6887                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json " 2>&1`
6888         fi
6889         # Put the nasty error message in config.log where it belongs
6890         echo "$JSON_PKG_ERRORS" >&5
6891
6892         as_fn_error $? "Package requirements (json ) were not met:
6893
6894 $JSON_PKG_ERRORS
6895
6896 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6897 installed software in a non-standard prefix.
6898
6899 Alternatively, you may set the environment variables JSON_CFLAGS
6900 and JSON_LIBS to avoid the need to call pkg-config.
6901 See the pkg-config man page for more details." "$LINENO" 5
6902 elif test $pkg_failed = untried; then
6903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6908 is in your PATH or set the PKG_CONFIG environment variable to the full
6909 path to pkg-config.
6910
6911 Alternatively, you may set the environment variables JSON_CFLAGS
6912 and JSON_LIBS to avoid the need to call pkg-config.
6913 See the pkg-config man page for more details.
6914
6915 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6916 See \`config.log' for more details" "$LINENO" 5; }
6917 else
6918         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
6919         JSON_LIBS=$pkg_cv_JSON_LIBS
6920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6921 $as_echo "yes" >&6; }
6922
6923 fi
6924
6925
6926
6927 ac_fn_c_check_type "$LINENO" "json_bool" "ac_cv_type_json_bool" "#include <json/json.h>
6928 "
6929 if test "x$ac_cv_type_json_bool" = xyes; then :
6930
6931 $as_echo "#define HAVE_JSON_BOOL 1" >>confdefs.h
6932
6933 fi
6934
6935
6936 ac_config_files="$ac_config_files po/Makefile.in Makefile src/Makefile tests/Makefile www/footer.tpl www/Makefile"
6937
6938
6939 for ac_prog in help2man
6940 do
6941   # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_HELP2MAN+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   if test -n "$HELP2MAN"; then
6949   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956     for ac_exec_ext in '' $ac_executable_extensions; do
6957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958     ac_cv_prog_HELP2MAN="$ac_prog"
6959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963   done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 HELP2MAN=$ac_cv_prog_HELP2MAN
6969 if test -n "$HELP2MAN"; then
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
6971 $as_echo "$HELP2MAN" >&6; }
6972 else
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977
6978   test -n "$HELP2MAN" && break
6979 done
6980
6981
6982 cat >confcache <<\_ACEOF
6983 # This file is a shell script that caches the results of configure
6984 # tests run on this system so they can be shared between configure
6985 # scripts and configure runs, see configure's option --config-cache.
6986 # It is not useful on other systems.  If it contains results you don't
6987 # want to keep, you may remove or edit it.
6988 #
6989 # config.status only pays attention to the cache file if you give it
6990 # the --recheck option to rerun configure.
6991 #
6992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6994 # following values.
6995
6996 _ACEOF
6997
6998 # The following way of writing the cache mishandles newlines in values,
6999 # but we know of no workaround that is simple, portable, and efficient.
7000 # So, we kill variables containing newlines.
7001 # Ultrix sh set writes to stderr and can't be redirected directly,
7002 # and sets the high bit in the cache file unless we assign to the vars.
7003 (
7004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7005     eval ac_val=\$$ac_var
7006     case $ac_val in #(
7007     *${as_nl}*)
7008       case $ac_var in #(
7009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7011       esac
7012       case $ac_var in #(
7013       _ | IFS | as_nl) ;; #(
7014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7015       *) { eval $ac_var=; unset $ac_var;} ;;
7016       esac ;;
7017     esac
7018   done
7019
7020   (set) 2>&1 |
7021     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7022     *${as_nl}ac_space=\ *)
7023       # `set' does not quote correctly, so add quotes: double-quote
7024       # substitution turns \\\\ into \\, and sed turns \\ into \.
7025       sed -n \
7026         "s/'/'\\\\''/g;
7027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7028       ;; #(
7029     *)
7030       # `set' quotes correctly as required by POSIX, so do not add quotes.
7031       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7032       ;;
7033     esac |
7034     sort
7035 ) |
7036   sed '
7037      /^ac_cv_env_/b end
7038      t clear
7039      :clear
7040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7041      t end
7042      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7043      :end' >>confcache
7044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7045   if test -w "$cache_file"; then
7046     if test "x$cache_file" != "x/dev/null"; then
7047       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7048 $as_echo "$as_me: updating cache $cache_file" >&6;}
7049       if test ! -f "$cache_file" || test -h "$cache_file"; then
7050         cat confcache >"$cache_file"
7051       else
7052         case $cache_file in #(
7053         */* | ?:*)
7054           mv -f confcache "$cache_file"$$ &&
7055           mv -f "$cache_file"$$ "$cache_file" ;; #(
7056         *)
7057           mv -f confcache "$cache_file" ;;
7058         esac
7059       fi
7060     fi
7061   else
7062     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7064   fi
7065 fi
7066 rm -f confcache
7067
7068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7069 # Let make expand exec_prefix.
7070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7071
7072 DEFS=-DHAVE_CONFIG_H
7073
7074 ac_libobjs=
7075 ac_ltlibobjs=
7076 U=
7077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7078   # 1. Remove the extension, and $U if already installed.
7079   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7080   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7081   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7082   #    will be set to the directory where LIBOBJS objects are built.
7083   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7084   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7085 done
7086 LIBOBJS=$ac_libobjs
7087
7088 LTLIBOBJS=$ac_ltlibobjs
7089
7090
7091  if test -n "$EXEEXT"; then
7092   am__EXEEXT_TRUE=
7093   am__EXEEXT_FALSE='#'
7094 else
7095   am__EXEEXT_TRUE='#'
7096   am__EXEEXT_FALSE=
7097 fi
7098
7099 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7100   as_fn_error $? "conditional \"AMDEP\" was never defined.
7101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7102 fi
7103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7104   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7106 fi
7107
7108 : "${CONFIG_STATUS=./config.status}"
7109 ac_write_fail=0
7110 ac_clean_files_save=$ac_clean_files
7111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7114 as_write_fail=0
7115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7116 #! $SHELL
7117 # Generated by $as_me.
7118 # Run this file to recreate the current configuration.
7119 # Compiler output produced by configure, useful for debugging
7120 # configure, is in config.log if it exists.
7121
7122 debug=false
7123 ac_cs_recheck=false
7124 ac_cs_silent=false
7125
7126 SHELL=\${CONFIG_SHELL-$SHELL}
7127 export SHELL
7128 _ASEOF
7129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7130 ## -------------------- ##
7131 ## M4sh Initialization. ##
7132 ## -------------------- ##
7133
7134 # Be more Bourne compatible
7135 DUALCASE=1; export DUALCASE # for MKS sh
7136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7137   emulate sh
7138   NULLCMD=:
7139   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7140   # is contrary to our usage.  Disable this feature.
7141   alias -g '${1+"$@"}'='"$@"'
7142   setopt NO_GLOB_SUBST
7143 else
7144   case `(set -o) 2>/dev/null` in #(
7145   *posix*) :
7146     set -o posix ;; #(
7147   *) :
7148      ;;
7149 esac
7150 fi
7151
7152
7153 as_nl='
7154 '
7155 export as_nl
7156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7160 # Prefer a ksh shell builtin over an external printf program on Solaris,
7161 # but without wasting forks for bash or zsh.
7162 if test -z "$BASH_VERSION$ZSH_VERSION" \
7163     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7164   as_echo='print -r --'
7165   as_echo_n='print -rn --'
7166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7167   as_echo='printf %s\n'
7168   as_echo_n='printf %s'
7169 else
7170   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7171     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7172     as_echo_n='/usr/ucb/echo -n'
7173   else
7174     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7175     as_echo_n_body='eval
7176       arg=$1;
7177       case $arg in #(
7178       *"$as_nl"*)
7179         expr "X$arg" : "X\\(.*\\)$as_nl";
7180         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7181       esac;
7182       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7183     '
7184     export as_echo_n_body
7185     as_echo_n='sh -c $as_echo_n_body as_echo'
7186   fi
7187   export as_echo_body
7188   as_echo='sh -c $as_echo_body as_echo'
7189 fi
7190
7191 # The user is always right.
7192 if test "${PATH_SEPARATOR+set}" != set; then
7193   PATH_SEPARATOR=:
7194   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7195     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7196       PATH_SEPARATOR=';'
7197   }
7198 fi
7199
7200
7201 # IFS
7202 # We need space, tab and new line, in precisely that order.  Quoting is
7203 # there to prevent editors from complaining about space-tab.
7204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7205 # splitting by setting IFS to empty value.)
7206 IFS=" ""        $as_nl"
7207
7208 # Find who we are.  Look in the path if we contain no directory separator.
7209 as_myself=
7210 case $0 in #((
7211   *[\\/]* ) as_myself=$0 ;;
7212   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7218   done
7219 IFS=$as_save_IFS
7220
7221      ;;
7222 esac
7223 # We did not find ourselves, most probably we were run as `sh COMMAND'
7224 # in which case we are not to be found in the path.
7225 if test "x$as_myself" = x; then
7226   as_myself=$0
7227 fi
7228 if test ! -f "$as_myself"; then
7229   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7230   exit 1
7231 fi
7232
7233 # Unset variables that we do not need and which cause bugs (e.g. in
7234 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7235 # suppresses any "Segmentation fault" message there.  '((' could
7236 # trigger a bug in pdksh 5.2.14.
7237 for as_var in BASH_ENV ENV MAIL MAILPATH
7238 do eval test x\${$as_var+set} = xset \
7239   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7240 done
7241 PS1='$ '
7242 PS2='> '
7243 PS4='+ '
7244
7245 # NLS nuisances.
7246 LC_ALL=C
7247 export LC_ALL
7248 LANGUAGE=C
7249 export LANGUAGE
7250
7251 # CDPATH.
7252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7253
7254
7255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7256 # ----------------------------------------
7257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7259 # script with STATUS, using 1 if that was 0.
7260 as_fn_error ()
7261 {
7262   as_status=$1; test $as_status -eq 0 && as_status=1
7263   if test "$4"; then
7264     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7265     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7266   fi
7267   $as_echo "$as_me: error: $2" >&2
7268   as_fn_exit $as_status
7269 } # as_fn_error
7270
7271
7272 # as_fn_set_status STATUS
7273 # -----------------------
7274 # Set $? to STATUS, without forking.
7275 as_fn_set_status ()
7276 {
7277   return $1
7278 } # as_fn_set_status
7279
7280 # as_fn_exit STATUS
7281 # -----------------
7282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7283 as_fn_exit ()
7284 {
7285   set +e
7286   as_fn_set_status $1
7287   exit $1
7288 } # as_fn_exit
7289
7290 # as_fn_unset VAR
7291 # ---------------
7292 # Portably unset VAR.
7293 as_fn_unset ()
7294 {
7295   { eval $1=; unset $1;}
7296 }
7297 as_unset=as_fn_unset
7298 # as_fn_append VAR VALUE
7299 # ----------------------
7300 # Append the text in VALUE to the end of the definition contained in VAR. Take
7301 # advantage of any shell optimizations that allow amortized linear growth over
7302 # repeated appends, instead of the typical quadratic growth present in naive
7303 # implementations.
7304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7305   eval 'as_fn_append ()
7306   {
7307     eval $1+=\$2
7308   }'
7309 else
7310   as_fn_append ()
7311   {
7312     eval $1=\$$1\$2
7313   }
7314 fi # as_fn_append
7315
7316 # as_fn_arith ARG...
7317 # ------------------
7318 # Perform arithmetic evaluation on the ARGs, and store the result in the
7319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7320 # must be portable across $(()) and expr.
7321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7322   eval 'as_fn_arith ()
7323   {
7324     as_val=$(( $* ))
7325   }'
7326 else
7327   as_fn_arith ()
7328   {
7329     as_val=`expr "$@" || test $? -eq 1`
7330   }
7331 fi # as_fn_arith
7332
7333
7334 if expr a : '\(a\)' >/dev/null 2>&1 &&
7335    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7336   as_expr=expr
7337 else
7338   as_expr=false
7339 fi
7340
7341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7342   as_basename=basename
7343 else
7344   as_basename=false
7345 fi
7346
7347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7348   as_dirname=dirname
7349 else
7350   as_dirname=false
7351 fi
7352
7353 as_me=`$as_basename -- "$0" ||
7354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7355          X"$0" : 'X\(//\)$' \| \
7356          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7357 $as_echo X/"$0" |
7358     sed '/^.*\/\([^/][^/]*\)\/*$/{
7359             s//\1/
7360             q
7361           }
7362           /^X\/\(\/\/\)$/{
7363             s//\1/
7364             q
7365           }
7366           /^X\/\(\/\).*/{
7367             s//\1/
7368             q
7369           }
7370           s/.*/./; q'`
7371
7372 # Avoid depending upon Character Ranges.
7373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7376 as_cr_digits='0123456789'
7377 as_cr_alnum=$as_cr_Letters$as_cr_digits
7378
7379 ECHO_C= ECHO_N= ECHO_T=
7380 case `echo -n x` in #(((((
7381 -n*)
7382   case `echo 'xy\c'` in
7383   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7384   xy)  ECHO_C='\c';;
7385   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7386        ECHO_T=' ';;
7387   esac;;
7388 *)
7389   ECHO_N='-n';;
7390 esac
7391
7392 rm -f conf$$ conf$$.exe conf$$.file
7393 if test -d conf$$.dir; then
7394   rm -f conf$$.dir/conf$$.file
7395 else
7396   rm -f conf$$.dir
7397   mkdir conf$$.dir 2>/dev/null
7398 fi
7399 if (echo >conf$$.file) 2>/dev/null; then
7400   if ln -s conf$$.file conf$$ 2>/dev/null; then
7401     as_ln_s='ln -s'
7402     # ... but there are two gotchas:
7403     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7404     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7405     # In both cases, we have to default to `cp -pR'.
7406     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7407       as_ln_s='cp -pR'
7408   elif ln conf$$.file conf$$ 2>/dev/null; then
7409     as_ln_s=ln
7410   else
7411     as_ln_s='cp -pR'
7412   fi
7413 else
7414   as_ln_s='cp -pR'
7415 fi
7416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7417 rmdir conf$$.dir 2>/dev/null
7418
7419
7420 # as_fn_mkdir_p
7421 # -------------
7422 # Create "$as_dir" as a directory, including parents if necessary.
7423 as_fn_mkdir_p ()
7424 {
7425
7426   case $as_dir in #(
7427   -*) as_dir=./$as_dir;;
7428   esac
7429   test -d "$as_dir" || eval $as_mkdir_p || {
7430     as_dirs=
7431     while :; do
7432       case $as_dir in #(
7433       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7434       *) as_qdir=$as_dir;;
7435       esac
7436       as_dirs="'$as_qdir' $as_dirs"
7437       as_dir=`$as_dirname -- "$as_dir" ||
7438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7439          X"$as_dir" : 'X\(//\)[^/]' \| \
7440          X"$as_dir" : 'X\(//\)$' \| \
7441          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7442 $as_echo X"$as_dir" |
7443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7444             s//\1/
7445             q
7446           }
7447           /^X\(\/\/\)[^/].*/{
7448             s//\1/
7449             q
7450           }
7451           /^X\(\/\/\)$/{
7452             s//\1/
7453             q
7454           }
7455           /^X\(\/\).*/{
7456             s//\1/
7457             q
7458           }
7459           s/.*/./; q'`
7460       test -d "$as_dir" && break
7461     done
7462     test -z "$as_dirs" || eval "mkdir $as_dirs"
7463   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7464
7465
7466 } # as_fn_mkdir_p
7467 if mkdir -p . 2>/dev/null; then
7468   as_mkdir_p='mkdir -p "$as_dir"'
7469 else
7470   test -d ./-p && rmdir ./-p
7471   as_mkdir_p=false
7472 fi
7473
7474
7475 # as_fn_executable_p FILE
7476 # -----------------------
7477 # Test if FILE is an executable regular file.
7478 as_fn_executable_p ()
7479 {
7480   test -f "$1" && test -x "$1"
7481 } # as_fn_executable_p
7482 as_test_x='test -x'
7483 as_executable_p=as_fn_executable_p
7484
7485 # Sed expression to map a string onto a valid CPP name.
7486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7487
7488 # Sed expression to map a string onto a valid variable name.
7489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7490
7491
7492 exec 6>&1
7493 ## ----------------------------------- ##
7494 ## Main body of $CONFIG_STATUS script. ##
7495 ## ----------------------------------- ##
7496 _ASEOF
7497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7498
7499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7500 # Save the log message, to keep $0 and so on meaningful, and to
7501 # report actual input values of CONFIG_FILES etc. instead of their
7502 # values after options handling.
7503 ac_log="
7504 This file was extended by ppastats $as_me 0.0.x, which was
7505 generated by GNU Autoconf 2.69.  Invocation command line was
7506
7507   CONFIG_FILES    = $CONFIG_FILES
7508   CONFIG_HEADERS  = $CONFIG_HEADERS
7509   CONFIG_LINKS    = $CONFIG_LINKS
7510   CONFIG_COMMANDS = $CONFIG_COMMANDS
7511   $ $0 $@
7512
7513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7514 "
7515
7516 _ACEOF
7517
7518 case $ac_config_files in *"
7519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7520 esac
7521
7522 case $ac_config_headers in *"
7523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7524 esac
7525
7526
7527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7528 # Files that config.status was made for.
7529 config_files="$ac_config_files"
7530 config_headers="$ac_config_headers"
7531 config_commands="$ac_config_commands"
7532
7533 _ACEOF
7534
7535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7536 ac_cs_usage="\
7537 \`$as_me' instantiates files and other configuration actions
7538 from templates according to the current configuration.  Unless the files
7539 and actions are specified as TAGs, all are instantiated by default.
7540
7541 Usage: $0 [OPTION]... [TAG]...
7542
7543   -h, --help       print this help, then exit
7544   -V, --version    print version number and configuration settings, then exit
7545       --config     print configuration, then exit
7546   -q, --quiet, --silent
7547                    do not print progress messages
7548   -d, --debug      don't remove temporary files
7549       --recheck    update $as_me by reconfiguring in the same conditions
7550       --file=FILE[:TEMPLATE]
7551                    instantiate the configuration file FILE
7552       --header=FILE[:TEMPLATE]
7553                    instantiate the configuration header FILE
7554
7555 Configuration files:
7556 $config_files
7557
7558 Configuration headers:
7559 $config_headers
7560
7561 Configuration commands:
7562 $config_commands
7563
7564 Report bugs to <jeanfi@gmail.com>.
7565 ppastats home page: <http://wpitchoune.net/ppastats>."
7566
7567 _ACEOF
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7570 ac_cs_version="\\
7571 ppastats config.status 0.0.x
7572 configured by $0, generated by GNU Autoconf 2.69,
7573   with options \\"\$ac_cs_config\\"
7574
7575 Copyright (C) 2012 Free Software Foundation, Inc.
7576 This config.status script is free software; the Free Software Foundation
7577 gives unlimited permission to copy, distribute and modify it."
7578
7579 ac_pwd='$ac_pwd'
7580 srcdir='$srcdir'
7581 INSTALL='$INSTALL'
7582 MKDIR_P='$MKDIR_P'
7583 AWK='$AWK'
7584 test -n "\$AWK" || AWK=awk
7585 _ACEOF
7586
7587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7588 # The default lists apply if the user does not specify any file.
7589 ac_need_defaults=:
7590 while test $# != 0
7591 do
7592   case $1 in
7593   --*=?*)
7594     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7595     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7596     ac_shift=:
7597     ;;
7598   --*=)
7599     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7600     ac_optarg=
7601     ac_shift=:
7602     ;;
7603   *)
7604     ac_option=$1
7605     ac_optarg=$2
7606     ac_shift=shift
7607     ;;
7608   esac
7609
7610   case $ac_option in
7611   # Handling of the options.
7612   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7613     ac_cs_recheck=: ;;
7614   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7615     $as_echo "$ac_cs_version"; exit ;;
7616   --config | --confi | --conf | --con | --co | --c )
7617     $as_echo "$ac_cs_config"; exit ;;
7618   --debug | --debu | --deb | --de | --d | -d )
7619     debug=: ;;
7620   --file | --fil | --fi | --f )
7621     $ac_shift
7622     case $ac_optarg in
7623     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7624     '') as_fn_error $? "missing file argument" ;;
7625     esac
7626     as_fn_append CONFIG_FILES " '$ac_optarg'"
7627     ac_need_defaults=false;;
7628   --header | --heade | --head | --hea )
7629     $ac_shift
7630     case $ac_optarg in
7631     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7632     esac
7633     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7634     ac_need_defaults=false;;
7635   --he | --h)
7636     # Conflict between --help and --header
7637     as_fn_error $? "ambiguous option: \`$1'
7638 Try \`$0 --help' for more information.";;
7639   --help | --hel | -h )
7640     $as_echo "$ac_cs_usage"; exit ;;
7641   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7642   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7643     ac_cs_silent=: ;;
7644
7645   # This is an error.
7646   -*) as_fn_error $? "unrecognized option: \`$1'
7647 Try \`$0 --help' for more information." ;;
7648
7649   *) as_fn_append ac_config_targets " $1"
7650      ac_need_defaults=false ;;
7651
7652   esac
7653   shift
7654 done
7655
7656 ac_configure_extra_args=
7657
7658 if $ac_cs_silent; then
7659   exec 6>/dev/null
7660   ac_configure_extra_args="$ac_configure_extra_args --silent"
7661 fi
7662
7663 _ACEOF
7664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7665 if \$ac_cs_recheck; then
7666   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7667   shift
7668   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7669   CONFIG_SHELL='$SHELL'
7670   export CONFIG_SHELL
7671   exec "\$@"
7672 fi
7673
7674 _ACEOF
7675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7676 exec 5>>config.log
7677 {
7678   echo
7679   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7680 ## Running $as_me. ##
7681 _ASBOX
7682   $as_echo "$ac_log"
7683 } >&5
7684
7685 _ACEOF
7686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7687 #
7688 # INIT-COMMANDS
7689 #
7690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7691 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7692     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7693     # from automake < 1.5.
7694     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7695     # Capture the value of LINGUAS because we need it to compute CATALOGS.
7696     LINGUAS="${LINGUAS-%UNSET%}"
7697
7698
7699 _ACEOF
7700
7701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7702
7703 # Handling of arguments.
7704 for ac_config_target in $ac_config_targets
7705 do
7706   case $ac_config_target in
7707     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7708     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7709     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
7710     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7711     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7712     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7713     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7714     "www/footer.tpl") CONFIG_FILES="$CONFIG_FILES www/footer.tpl" ;;
7715     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
7716
7717   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7718   esac
7719 done
7720
7721
7722 # If the user did not use the arguments to specify the items to instantiate,
7723 # then the envvar interface is used.  Set only those that are not.
7724 # We use the long form for the default assignment because of an extremely
7725 # bizarre bug on SunOS 4.1.3.
7726 if $ac_need_defaults; then
7727   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7728   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7729   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7730 fi
7731
7732 # Have a temporary directory for convenience.  Make it in the build tree
7733 # simply because there is no reason against having it here, and in addition,
7734 # creating and moving files from /tmp can sometimes cause problems.
7735 # Hook for its removal unless debugging.
7736 # Note that there is a small window in which the directory will not be cleaned:
7737 # after its creation but before its name has been assigned to `$tmp'.
7738 $debug ||
7739 {
7740   tmp= ac_tmp=
7741   trap 'exit_status=$?
7742   : "${ac_tmp:=$tmp}"
7743   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7744 ' 0
7745   trap 'as_fn_exit 1' 1 2 13 15
7746 }
7747 # Create a (secure) tmp directory for tmp files.
7748
7749 {
7750   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7751   test -d "$tmp"
7752 }  ||
7753 {
7754   tmp=./conf$$-$RANDOM
7755   (umask 077 && mkdir "$tmp")
7756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7757 ac_tmp=$tmp
7758
7759 # Set up the scripts for CONFIG_FILES section.
7760 # No need to generate them if there are no CONFIG_FILES.
7761 # This happens for instance with `./config.status config.h'.
7762 if test -n "$CONFIG_FILES"; then
7763
7764
7765 ac_cr=`echo X | tr X '\015'`
7766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7767 # But we know of no other shell where ac_cr would be empty at this
7768 # point, so we can use a bashism as a fallback.
7769 if test "x$ac_cr" = x; then
7770   eval ac_cr=\$\'\\r\'
7771 fi
7772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7774   ac_cs_awk_cr='\\r'
7775 else
7776   ac_cs_awk_cr=$ac_cr
7777 fi
7778
7779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7780 _ACEOF
7781
7782
7783 {
7784   echo "cat >conf$$subs.awk <<_ACEOF" &&
7785   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7786   echo "_ACEOF"
7787 } >conf$$subs.sh ||
7788   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7790 ac_delim='%!_!# '
7791 for ac_last_try in false false false false false :; do
7792   . ./conf$$subs.sh ||
7793     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7794
7795   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7796   if test $ac_delim_n = $ac_delim_num; then
7797     break
7798   elif $ac_last_try; then
7799     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7800   else
7801     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7802   fi
7803 done
7804 rm -f conf$$subs.sh
7805
7806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7808 _ACEOF
7809 sed -n '
7810 h
7811 s/^/S["/; s/!.*/"]=/
7812 p
7813 g
7814 s/^[^!]*!//
7815 :repl
7816 t repl
7817 s/'"$ac_delim"'$//
7818 t delim
7819 :nl
7820 h
7821 s/\(.\{148\}\)..*/\1/
7822 t more1
7823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7824 p
7825 n
7826 b repl
7827 :more1
7828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7829 p
7830 g
7831 s/.\{148\}//
7832 t nl
7833 :delim
7834 h
7835 s/\(.\{148\}\)..*/\1/
7836 t more2
7837 s/["\\]/\\&/g; s/^/"/; s/$/"/
7838 p
7839 b
7840 :more2
7841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7842 p
7843 g
7844 s/.\{148\}//
7845 t delim
7846 ' <conf$$subs.awk | sed '
7847 /^[^""]/{
7848   N
7849   s/\n//
7850 }
7851 ' >>$CONFIG_STATUS || ac_write_fail=1
7852 rm -f conf$$subs.awk
7853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7854 _ACAWK
7855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7856   for (key in S) S_is_set[key] = 1
7857   FS = "\a"
7858
7859 }
7860 {
7861   line = $ 0
7862   nfields = split(line, field, "@")
7863   substed = 0
7864   len = length(field[1])
7865   for (i = 2; i < nfields; i++) {
7866     key = field[i]
7867     keylen = length(key)
7868     if (S_is_set[key]) {
7869       value = S[key]
7870       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7871       len += length(value) + length(field[++i])
7872       substed = 1
7873     } else
7874       len += 1 + keylen
7875   }
7876
7877   print line
7878 }
7879
7880 _ACAWK
7881 _ACEOF
7882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7884   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7885 else
7886   cat
7887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7888   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7889 _ACEOF
7890
7891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7893 # trailing colons and then remove the whole line if VPATH becomes empty
7894 # (actually we leave an empty line to preserve line numbers).
7895 if test "x$srcdir" = x.; then
7896   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7897 h
7898 s///
7899 s/^/:/
7900 s/[      ]*$/:/
7901 s/:\$(srcdir):/:/g
7902 s/:\${srcdir}:/:/g
7903 s/:@srcdir@:/:/g
7904 s/^:*//
7905 s/:*$//
7906 x
7907 s/\(=[   ]*\).*/\1/
7908 G
7909 s/\n//
7910 s/^[^=]*=[       ]*$//
7911 }'
7912 fi
7913
7914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7915 fi # test -n "$CONFIG_FILES"
7916
7917 # Set up the scripts for CONFIG_HEADERS section.
7918 # No need to generate them if there are no CONFIG_HEADERS.
7919 # This happens for instance with `./config.status Makefile'.
7920 if test -n "$CONFIG_HEADERS"; then
7921 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7922 BEGIN {
7923 _ACEOF
7924
7925 # Transform confdefs.h into an awk script `defines.awk', embedded as
7926 # here-document in config.status, that substitutes the proper values into
7927 # config.h.in to produce config.h.
7928
7929 # Create a delimiter string that does not exist in confdefs.h, to ease
7930 # handling of long lines.
7931 ac_delim='%!_!# '
7932 for ac_last_try in false false :; do
7933   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7934   if test -z "$ac_tt"; then
7935     break
7936   elif $ac_last_try; then
7937     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7938   else
7939     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7940   fi
7941 done
7942
7943 # For the awk script, D is an array of macro values keyed by name,
7944 # likewise P contains macro parameters if any.  Preserve backslash
7945 # newline sequences.
7946
7947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7948 sed -n '
7949 s/.\{148\}/&'"$ac_delim"'/g
7950 t rset
7951 :rset
7952 s/^[     ]*#[    ]*define[       ][      ]*/ /
7953 t def
7954 d
7955 :def
7956 s/\\$//
7957 t bsnl
7958 s/["\\]/\\&/g
7959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7960 D["\1"]=" \3"/p
7961 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7962 d
7963 :bsnl
7964 s/["\\]/\\&/g
7965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7966 D["\1"]=" \3\\\\\\n"\\/p
7967 t cont
7968 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7969 t cont
7970 d
7971 :cont
7972 n
7973 s/.\{148\}/&'"$ac_delim"'/g
7974 t clear
7975 :clear
7976 s/\\$//
7977 t bsnlc
7978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7979 d
7980 :bsnlc
7981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7982 b cont
7983 ' <confdefs.h | sed '
7984 s/'"$ac_delim"'/"\\\
7985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7986
7987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7988   for (key in D) D_is_set[key] = 1
7989   FS = "\a"
7990 }
7991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7992   line = \$ 0
7993   split(line, arg, " ")
7994   if (arg[1] == "#") {
7995     defundef = arg[2]
7996     mac1 = arg[3]
7997   } else {
7998     defundef = substr(arg[1], 2)
7999     mac1 = arg[2]
8000   }
8001   split(mac1, mac2, "(") #)
8002   macro = mac2[1]
8003   prefix = substr(line, 1, index(line, defundef) - 1)
8004   if (D_is_set[macro]) {
8005     # Preserve the white space surrounding the "#".
8006     print prefix "define", macro P[macro] D[macro]
8007     next
8008   } else {
8009     # Replace #undef with comments.  This is necessary, for example,
8010     # in the case of _POSIX_SOURCE, which is predefined and required
8011     # on some systems where configure will not decide to define it.
8012     if (defundef == "undef") {
8013       print "/*", prefix defundef, macro, "*/"
8014       next
8015     }
8016   }
8017 }
8018 { print }
8019 _ACAWK
8020 _ACEOF
8021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8022   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8023 fi # test -n "$CONFIG_HEADERS"
8024
8025
8026 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8027 shift
8028 for ac_tag
8029 do
8030   case $ac_tag in
8031   :[FHLC]) ac_mode=$ac_tag; continue;;
8032   esac
8033   case $ac_mode$ac_tag in
8034   :[FHL]*:*);;
8035   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8036   :[FH]-) ac_tag=-:-;;
8037   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8038   esac
8039   ac_save_IFS=$IFS
8040   IFS=:
8041   set x $ac_tag
8042   IFS=$ac_save_IFS
8043   shift
8044   ac_file=$1
8045   shift
8046
8047   case $ac_mode in
8048   :L) ac_source=$1;;
8049   :[FH])
8050     ac_file_inputs=
8051     for ac_f
8052     do
8053       case $ac_f in
8054       -) ac_f="$ac_tmp/stdin";;
8055       *) # Look for the file first in the build tree, then in the source tree
8056          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8057          # because $ac_f cannot contain `:'.
8058          test -f "$ac_f" ||
8059            case $ac_f in
8060            [\\/$]*) false;;
8061            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8062            esac ||
8063            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8064       esac
8065       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8066       as_fn_append ac_file_inputs " '$ac_f'"
8067     done
8068
8069     # Let's still pretend it is `configure' which instantiates (i.e., don't
8070     # use $as_me), people would be surprised to read:
8071     #    /* config.h.  Generated by config.status.  */
8072     configure_input='Generated from '`
8073           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8074         `' by configure.'
8075     if test x"$ac_file" != x-; then
8076       configure_input="$ac_file.  $configure_input"
8077       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8078 $as_echo "$as_me: creating $ac_file" >&6;}
8079     fi
8080     # Neutralize special characters interpreted by sed in replacement strings.
8081     case $configure_input in #(
8082     *\&* | *\|* | *\\* )
8083        ac_sed_conf_input=`$as_echo "$configure_input" |
8084        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8085     *) ac_sed_conf_input=$configure_input;;
8086     esac
8087
8088     case $ac_tag in
8089     *:-:* | *:-) cat >"$ac_tmp/stdin" \
8090       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8091     esac
8092     ;;
8093   esac
8094
8095   ac_dir=`$as_dirname -- "$ac_file" ||
8096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8097          X"$ac_file" : 'X\(//\)[^/]' \| \
8098          X"$ac_file" : 'X\(//\)$' \| \
8099          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8100 $as_echo X"$ac_file" |
8101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8102             s//\1/
8103             q
8104           }
8105           /^X\(\/\/\)[^/].*/{
8106             s//\1/
8107             q
8108           }
8109           /^X\(\/\/\)$/{
8110             s//\1/
8111             q
8112           }
8113           /^X\(\/\).*/{
8114             s//\1/
8115             q
8116           }
8117           s/.*/./; q'`
8118   as_dir="$ac_dir"; as_fn_mkdir_p
8119   ac_builddir=.
8120
8121 case "$ac_dir" in
8122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8123 *)
8124   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8125   # A ".." for each directory in $ac_dir_suffix.
8126   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8127   case $ac_top_builddir_sub in
8128   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8129   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8130   esac ;;
8131 esac
8132 ac_abs_top_builddir=$ac_pwd
8133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8134 # for backward compatibility:
8135 ac_top_builddir=$ac_top_build_prefix
8136
8137 case $srcdir in
8138   .)  # We are building in place.
8139     ac_srcdir=.
8140     ac_top_srcdir=$ac_top_builddir_sub
8141     ac_abs_top_srcdir=$ac_pwd ;;
8142   [\\/]* | ?:[\\/]* )  # Absolute name.
8143     ac_srcdir=$srcdir$ac_dir_suffix;
8144     ac_top_srcdir=$srcdir
8145     ac_abs_top_srcdir=$srcdir ;;
8146   *) # Relative name.
8147     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8148     ac_top_srcdir=$ac_top_build_prefix$srcdir
8149     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8150 esac
8151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8152
8153
8154   case $ac_mode in
8155   :F)
8156   #
8157   # CONFIG_FILE
8158   #
8159
8160   case $INSTALL in
8161   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8162   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8163   esac
8164   ac_MKDIR_P=$MKDIR_P
8165   case $MKDIR_P in
8166   [\\/$]* | ?:[\\/]* ) ;;
8167   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8168   esac
8169 _ACEOF
8170
8171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8172 # If the template does not know about datarootdir, expand it.
8173 # FIXME: This hack should be removed a few years after 2.60.
8174 ac_datarootdir_hack=; ac_datarootdir_seen=
8175 ac_sed_dataroot='
8176 /datarootdir/ {
8177   p
8178   q
8179 }
8180 /@datadir@/p
8181 /@docdir@/p
8182 /@infodir@/p
8183 /@localedir@/p
8184 /@mandir@/p'
8185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8186 *datarootdir*) ac_datarootdir_seen=yes;;
8187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8190 _ACEOF
8191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8192   ac_datarootdir_hack='
8193   s&@datadir@&$datadir&g
8194   s&@docdir@&$docdir&g
8195   s&@infodir@&$infodir&g
8196   s&@localedir@&$localedir&g
8197   s&@mandir@&$mandir&g
8198   s&\\\${datarootdir}&$datarootdir&g' ;;
8199 esac
8200 _ACEOF
8201
8202 # Neutralize VPATH when `$srcdir' = `.'.
8203 # Shell code in configure.ac might set extrasub.
8204 # FIXME: do we really want to maintain this feature?
8205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8206 ac_sed_extra="$ac_vpsub
8207 $extrasub
8208 _ACEOF
8209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8210 :t
8211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8212 s|@configure_input@|$ac_sed_conf_input|;t t
8213 s&@top_builddir@&$ac_top_builddir_sub&;t t
8214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8215 s&@srcdir@&$ac_srcdir&;t t
8216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8217 s&@top_srcdir@&$ac_top_srcdir&;t t
8218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8219 s&@builddir@&$ac_builddir&;t t
8220 s&@abs_builddir@&$ac_abs_builddir&;t t
8221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8222 s&@INSTALL@&$ac_INSTALL&;t t
8223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8224 $ac_datarootdir_hack
8225 "
8226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8227   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8228
8229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8230   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8231   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8232       "$ac_tmp/out"`; test -z "$ac_out"; } &&
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8234 which seems to be undefined.  Please make sure it is defined" >&5
8235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8236 which seems to be undefined.  Please make sure it is defined" >&2;}
8237
8238   rm -f "$ac_tmp/stdin"
8239   case $ac_file in
8240   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8241   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8242   esac \
8243   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8244  ;;
8245   :H)
8246   #
8247   # CONFIG_HEADER
8248   #
8249   if test x"$ac_file" != x-; then
8250     {
8251       $as_echo "/* $configure_input  */" \
8252       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8253     } >"$ac_tmp/config.h" \
8254       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8255     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8256       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8258     else
8259       rm -f "$ac_file"
8260       mv "$ac_tmp/config.h" "$ac_file" \
8261         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8262     fi
8263   else
8264     $as_echo "/* $configure_input  */" \
8265       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8266       || as_fn_error $? "could not create -" "$LINENO" 5
8267   fi
8268 # Compute "$ac_file"'s index in $config_headers.
8269 _am_arg="$ac_file"
8270 _am_stamp_count=1
8271 for _am_header in $config_headers :; do
8272   case $_am_header in
8273     $_am_arg | $_am_arg:* )
8274       break ;;
8275     * )
8276       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8277   esac
8278 done
8279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8281          X"$_am_arg" : 'X\(//\)[^/]' \| \
8282          X"$_am_arg" : 'X\(//\)$' \| \
8283          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8284 $as_echo X"$_am_arg" |
8285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8286             s//\1/
8287             q
8288           }
8289           /^X\(\/\/\)[^/].*/{
8290             s//\1/
8291             q
8292           }
8293           /^X\(\/\/\)$/{
8294             s//\1/
8295             q
8296           }
8297           /^X\(\/\).*/{
8298             s//\1/
8299             q
8300           }
8301           s/.*/./; q'`/stamp-h$_am_stamp_count
8302  ;;
8303
8304   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8305 $as_echo "$as_me: executing $ac_file commands" >&6;}
8306  ;;
8307   esac
8308
8309
8310   case $ac_file$ac_mode in
8311     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8312   # Autoconf 2.62 quotes --file arguments for eval, but not when files
8313   # are listed without --file.  Let's play safe and only enable the eval
8314   # if we detect the quoting.
8315   case $CONFIG_FILES in
8316   *\'*) eval set x "$CONFIG_FILES" ;;
8317   *)   set x $CONFIG_FILES ;;
8318   esac
8319   shift
8320   for mf
8321   do
8322     # Strip MF so we end up with the name of the file.
8323     mf=`echo "$mf" | sed -e 's/:.*$//'`
8324     # Check whether this is an Automake generated Makefile or not.
8325     # We used to match only the files named `Makefile.in', but
8326     # some people rename them; so instead we look at the file content.
8327     # Grep'ing the first line is not enough: some people post-process
8328     # each Makefile.in and add a new line on top of each file to say so.
8329     # Grep'ing the whole file is not good either: AIX grep has a line
8330     # limit of 2048, but all sed's we know have understand at least 4000.
8331     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8332       dirpart=`$as_dirname -- "$mf" ||
8333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8334          X"$mf" : 'X\(//\)[^/]' \| \
8335          X"$mf" : 'X\(//\)$' \| \
8336          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8337 $as_echo X"$mf" |
8338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8339             s//\1/
8340             q
8341           }
8342           /^X\(\/\/\)[^/].*/{
8343             s//\1/
8344             q
8345           }
8346           /^X\(\/\/\)$/{
8347             s//\1/
8348             q
8349           }
8350           /^X\(\/\).*/{
8351             s//\1/
8352             q
8353           }
8354           s/.*/./; q'`
8355     else
8356       continue
8357     fi
8358     # Extract the definition of DEPDIR, am__include, and am__quote
8359     # from the Makefile without running `make'.
8360     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8361     test -z "$DEPDIR" && continue
8362     am__include=`sed -n 's/^am__include = //p' < "$mf"`
8363     test -z "am__include" && continue
8364     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8365     # When using ansi2knr, U may be empty or an underscore; expand it
8366     U=`sed -n 's/^U = //p' < "$mf"`
8367     # Find all dependency output files, they are included files with
8368     # $(DEPDIR) in their names.  We invoke sed twice because it is the
8369     # simplest approach to changing $(DEPDIR) to its actual value in the
8370     # expansion.
8371     for file in `sed -n "
8372       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8373          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8374       # Make sure the directory exists.
8375       test -f "$dirpart/$file" && continue
8376       fdir=`$as_dirname -- "$file" ||
8377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8378          X"$file" : 'X\(//\)[^/]' \| \
8379          X"$file" : 'X\(//\)$' \| \
8380          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8381 $as_echo X"$file" |
8382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8383             s//\1/
8384             q
8385           }
8386           /^X\(\/\/\)[^/].*/{
8387             s//\1/
8388             q
8389           }
8390           /^X\(\/\/\)$/{
8391             s//\1/
8392             q
8393           }
8394           /^X\(\/\).*/{
8395             s//\1/
8396             q
8397           }
8398           s/.*/./; q'`
8399       as_dir=$dirpart/$fdir; as_fn_mkdir_p
8400       # echo "creating $dirpart/$file"
8401       echo '# dummy' > "$dirpart/$file"
8402     done
8403   done
8404 }
8405  ;;
8406     "po-directories":C)
8407     for ac_file in $CONFIG_FILES; do
8408       # Support "outfile[:infile[:infile...]]"
8409       case "$ac_file" in
8410         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8411       esac
8412       # PO directories have a Makefile.in generated from Makefile.in.in.
8413       case "$ac_file" in */Makefile.in)
8414         # Adjust a relative srcdir.
8415         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8416         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8417         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8418         # In autoconf-2.13 it is called $ac_given_srcdir.
8419         # In autoconf-2.50 it is called $srcdir.
8420         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8421         case "$ac_given_srcdir" in
8422           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8423           /*) top_srcdir="$ac_given_srcdir" ;;
8424           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
8425         esac
8426         # Treat a directory as a PO directory if and only if it has a
8427         # POTFILES.in file. This allows packages to have multiple PO
8428         # directories under different names or in different locations.
8429         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8430           rm -f "$ac_dir/POTFILES"
8431           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8432           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8433           POMAKEFILEDEPS="POTFILES.in"
8434           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8435           # on $ac_dir but don't depend on user-specified configuration
8436           # parameters.
8437           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8438             # The LINGUAS file contains the set of available languages.
8439             if test -n "$OBSOLETE_ALL_LINGUAS"; then
8440               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8441             fi
8442             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8443             # Hide the ALL_LINGUAS assigment from automake < 1.5.
8444             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8445             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8446           else
8447             # The set of available languages was given in configure.in.
8448             # Hide the ALL_LINGUAS assigment from automake < 1.5.
8449             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8450           fi
8451           # Compute POFILES
8452           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8453           # Compute UPDATEPOFILES
8454           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8455           # Compute DUMMYPOFILES
8456           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8457           # Compute GMOFILES
8458           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8459           case "$ac_given_srcdir" in
8460             .) srcdirpre= ;;
8461             *) srcdirpre='$(srcdir)/' ;;
8462           esac
8463           POFILES=
8464           UPDATEPOFILES=
8465           DUMMYPOFILES=
8466           GMOFILES=
8467           for lang in $ALL_LINGUAS; do
8468             POFILES="$POFILES $srcdirpre$lang.po"
8469             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8470             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8471             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8472           done
8473           # CATALOGS depends on both $ac_dir and the user's LINGUAS
8474           # environment variable.
8475           INST_LINGUAS=
8476           if test -n "$ALL_LINGUAS"; then
8477             for presentlang in $ALL_LINGUAS; do
8478               useit=no
8479               if test "%UNSET%" != "$LINGUAS"; then
8480                 desiredlanguages="$LINGUAS"
8481               else
8482                 desiredlanguages="$ALL_LINGUAS"
8483               fi
8484               for desiredlang in $desiredlanguages; do
8485                 # Use the presentlang catalog if desiredlang is
8486                 #   a. equal to presentlang, or
8487                 #   b. a variant of presentlang (because in this case,
8488                 #      presentlang can be used as a fallback for messages
8489                 #      which are not translated in the desiredlang catalog).
8490                 case "$desiredlang" in
8491                   "$presentlang"*) useit=yes;;
8492                 esac
8493               done
8494               if test $useit = yes; then
8495                 INST_LINGUAS="$INST_LINGUAS $presentlang"
8496               fi
8497             done
8498           fi
8499           CATALOGS=
8500           if test -n "$INST_LINGUAS"; then
8501             for lang in $INST_LINGUAS; do
8502               CATALOGS="$CATALOGS $lang.gmo"
8503             done
8504           fi
8505           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8506           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"
8507           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8508             if test -f "$f"; then
8509               case "$f" in
8510                 *.orig | *.bak | *~) ;;
8511                 *) cat "$f" >> "$ac_dir/Makefile" ;;
8512               esac
8513             fi
8514           done
8515         fi
8516         ;;
8517       esac
8518     done ;;
8519
8520   esac
8521 done # for ac_tag
8522
8523
8524 as_fn_exit 0
8525 _ACEOF
8526 ac_clean_files=$ac_clean_files_save
8527
8528 test $ac_write_fail = 0 ||
8529   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8530
8531
8532 # configure is writing to config.log, and then calls config.status.
8533 # config.status does its own redirection, appending to config.log.
8534 # Unfortunately, on DOS this fails, as config.log is still kept open
8535 # by configure, so config.status won't be able to write to it; its
8536 # output is simply discarded.  So we exec the FD to /dev/null,
8537 # effectively closing config.log, so it can be properly (re)opened and
8538 # appended to by config.status.  When coming back to configure, we
8539 # need to make the FD available again.
8540 if test "$no_create" != yes; then
8541   ac_cs_success=:
8542   ac_config_status_args=
8543   test "$silent" = yes &&
8544     ac_config_status_args="$ac_config_status_args --quiet"
8545   exec 5>/dev/null
8546   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8547   exec 5>>config.log
8548   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8549   # would make configure fail if this is the last instruction.
8550   $ac_cs_success || as_fn_exit 1
8551 fi
8552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8555 fi
8556