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