retry on network failure during url fetch
[ppastats.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ppastats 0.0.x.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='ppastats'
562 PACKAGE_TARNAME='ppastats'
563 PACKAGE_VERSION='0.0.x'
564 PACKAGE_STRING='ppastats 0.0.x'
565 PACKAGE_BUGREPORT='jeanfi@gmail.com'
566 PACKAGE_URL='http://wpitchoune.net/ppastats'
567
568 ac_unique_file="src/main.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 HELP2MAN
610 JSON_LIBS
611 JSON_CFLAGS
612 CURL_LIBS
613 CURL_CFLAGS
614 PKG_CONFIG_LIBDIR
615 PKG_CONFIG_PATH
616 PKG_CONFIG
617 EGREP
618 GREP
619 CPP
620 XMKMF
621 RANLIB
622 am__fastdepCC_FALSE
623 am__fastdepCC_TRUE
624 CCDEPMODE
625 am__nodep
626 AMDEPBACKSLASH
627 AMDEP_FALSE
628 AMDEP_TRUE
629 am__quote
630 am__include
631 DEPDIR
632 OBJEXT
633 EXEEXT
634 ac_ct_CC
635 CPPFLAGS
636 LDFLAGS
637 CFLAGS
638 CC
639 am__untar
640 am__tar
641 AMTAR
642 am__leading_dot
643 SET_MAKE
644 AWK
645 mkdir_p
646 MKDIR_P
647 INSTALL_STRIP_PROGRAM
648 STRIP
649 install_sh
650 MAKEINFO
651 AUTOHEADER
652 AUTOMAKE
653 AUTOCONF
654 ACLOCAL
655 VERSION
656 PACKAGE
657 CYGPATH_W
658 am__isrc
659 INSTALL_DATA
660 INSTALL_SCRIPT
661 INSTALL_PROGRAM
662 target_alias
663 host_alias
664 build_alias
665 LIBS
666 ECHO_T
667 ECHO_N
668 ECHO_C
669 DEFS
670 mandir
671 localedir
672 libdir
673 psdir
674 pdfdir
675 dvidir
676 htmldir
677 infodir
678 docdir
679 oldincludedir
680 includedir
681 localstatedir
682 sharedstatedir
683 sysconfdir
684 datadir
685 datarootdir
686 libexecdir
687 sbindir
688 bindir
689 program_transform_name
690 prefix
691 exec_prefix
692 PACKAGE_URL
693 PACKAGE_BUGREPORT
694 PACKAGE_STRING
695 PACKAGE_VERSION
696 PACKAGE_TARNAME
697 PACKAGE_NAME
698 PATH_SEPARATOR
699 SHELL'
700 ac_subst_files=''
701 ac_user_opts='
702 enable_option_checking
703 enable_dependency_tracking
704 with_x
705 '
706       ac_precious_vars='build_alias
707 host_alias
708 target_alias
709 CC
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
714 XMKMF
715 CPP
716 PKG_CONFIG
717 PKG_CONFIG_PATH
718 PKG_CONFIG_LIBDIR
719 CURL_CFLAGS
720 CURL_LIBS
721 JSON_CFLAGS
722 JSON_LIBS'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *=)   ac_optarg= ;;
787   *)    ac_optarg=yes ;;
788   esac
789
790   # Accept the important Cygnus configure options, so we can diagnose typos.
791
792   case $ac_dashdash$ac_option in
793   --)
794     ac_dashdash=yes ;;
795
796   -bindir | --bindir | --bindi | --bind | --bin | --bi)
797     ac_prev=bindir ;;
798   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799     bindir=$ac_optarg ;;
800
801   -build | --build | --buil | --bui | --bu)
802     ac_prev=build_alias ;;
803   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804     build_alias=$ac_optarg ;;
805
806   -cache-file | --cache-file | --cache-fil | --cache-fi \
807   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808     ac_prev=cache_file ;;
809   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811     cache_file=$ac_optarg ;;
812
813   --config-cache | -C)
814     cache_file=config.cache ;;
815
816   -datadir | --datadir | --datadi | --datad)
817     ac_prev=datadir ;;
818   -datadir=* | --datadir=* | --datadi=* | --datad=*)
819     datadir=$ac_optarg ;;
820
821   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822   | --dataroo | --dataro | --datar)
823     ac_prev=datarootdir ;;
824   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826     datarootdir=$ac_optarg ;;
827
828   -disable-* | --disable-*)
829     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832       as_fn_error $? "invalid feature name: $ac_useropt"
833     ac_useropt_orig=$ac_useropt
834     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835     case $ac_user_opts in
836       *"
837 "enable_$ac_useropt"
838 "*) ;;
839       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840          ac_unrecognized_sep=', ';;
841     esac
842     eval enable_$ac_useropt=no ;;
843
844   -docdir | --docdir | --docdi | --doc | --do)
845     ac_prev=docdir ;;
846   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847     docdir=$ac_optarg ;;
848
849   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850     ac_prev=dvidir ;;
851   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852     dvidir=$ac_optarg ;;
853
854   -enable-* | --enable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=\$ac_optarg ;;
869
870   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872   | --exec | --exe | --ex)
873     ac_prev=exec_prefix ;;
874   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876   | --exec=* | --exe=* | --ex=*)
877     exec_prefix=$ac_optarg ;;
878
879   -gas | --gas | --ga | --g)
880     # Obsolete; use --with-gas.
881     with_gas=yes ;;
882
883   -help | --help | --hel | --he | -h)
884     ac_init_help=long ;;
885   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886     ac_init_help=recursive ;;
887   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888     ac_init_help=short ;;
889
890   -host | --host | --hos | --ho)
891     ac_prev=host_alias ;;
892   -host=* | --host=* | --hos=* | --ho=*)
893     host_alias=$ac_optarg ;;
894
895   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896     ac_prev=htmldir ;;
897   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898   | --ht=*)
899     htmldir=$ac_optarg ;;
900
901   -includedir | --includedir | --includedi | --included | --include \
902   | --includ | --inclu | --incl | --inc)
903     ac_prev=includedir ;;
904   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905   | --includ=* | --inclu=* | --incl=* | --inc=*)
906     includedir=$ac_optarg ;;
907
908   -infodir | --infodir | --infodi | --infod | --info | --inf)
909     ac_prev=infodir ;;
910   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911     infodir=$ac_optarg ;;
912
913   -libdir | --libdir | --libdi | --libd)
914     ac_prev=libdir ;;
915   -libdir=* | --libdir=* | --libdi=* | --libd=*)
916     libdir=$ac_optarg ;;
917
918   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919   | --libexe | --libex | --libe)
920     ac_prev=libexecdir ;;
921   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922   | --libexe=* | --libex=* | --libe=*)
923     libexecdir=$ac_optarg ;;
924
925   -localedir | --localedir | --localedi | --localed | --locale)
926     ac_prev=localedir ;;
927   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928     localedir=$ac_optarg ;;
929
930   -localstatedir | --localstatedir | --localstatedi | --localstated \
931   | --localstate | --localstat | --localsta | --localst | --locals)
932     ac_prev=localstatedir ;;
933   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935     localstatedir=$ac_optarg ;;
936
937   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938     ac_prev=mandir ;;
939   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940     mandir=$ac_optarg ;;
941
942   -nfp | --nfp | --nf)
943     # Obsolete; use --without-fp.
944     with_fp=no ;;
945
946   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947   | --no-cr | --no-c | -n)
948     no_create=yes ;;
949
950   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952     no_recursion=yes ;;
953
954   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956   | --oldin | --oldi | --old | --ol | --o)
957     ac_prev=oldincludedir ;;
958   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961     oldincludedir=$ac_optarg ;;
962
963   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964     ac_prev=prefix ;;
965   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966     prefix=$ac_optarg ;;
967
968   -program-prefix | --program-prefix | --program-prefi | --program-pref \
969   | --program-pre | --program-pr | --program-p)
970     ac_prev=program_prefix ;;
971   -program-prefix=* | --program-prefix=* | --program-prefi=* \
972   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973     program_prefix=$ac_optarg ;;
974
975   -program-suffix | --program-suffix | --program-suffi | --program-suff \
976   | --program-suf | --program-su | --program-s)
977     ac_prev=program_suffix ;;
978   -program-suffix=* | --program-suffix=* | --program-suffi=* \
979   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980     program_suffix=$ac_optarg ;;
981
982   -program-transform-name | --program-transform-name \
983   | --program-transform-nam | --program-transform-na \
984   | --program-transform-n | --program-transform- \
985   | --program-transform | --program-transfor \
986   | --program-transfo | --program-transf \
987   | --program-trans | --program-tran \
988   | --progr-tra | --program-tr | --program-t)
989     ac_prev=program_transform_name ;;
990   -program-transform-name=* | --program-transform-name=* \
991   | --program-transform-nam=* | --program-transform-na=* \
992   | --program-transform-n=* | --program-transform-=* \
993   | --program-transform=* | --program-transfor=* \
994   | --program-transfo=* | --program-transf=* \
995   | --program-trans=* | --program-tran=* \
996   | --progr-tra=* | --program-tr=* | --program-t=*)
997     program_transform_name=$ac_optarg ;;
998
999   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000     ac_prev=pdfdir ;;
1001   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002     pdfdir=$ac_optarg ;;
1003
1004   -psdir | --psdir | --psdi | --psd | --ps)
1005     ac_prev=psdir ;;
1006   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007     psdir=$ac_optarg ;;
1008
1009   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010   | -silent | --silent | --silen | --sile | --sil)
1011     silent=yes ;;
1012
1013   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014     ac_prev=sbindir ;;
1015   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016   | --sbi=* | --sb=*)
1017     sbindir=$ac_optarg ;;
1018
1019   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021   | --sharedst | --shareds | --shared | --share | --shar \
1022   | --sha | --sh)
1023     ac_prev=sharedstatedir ;;
1024   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027   | --sha=* | --sh=*)
1028     sharedstatedir=$ac_optarg ;;
1029
1030   -site | --site | --sit)
1031     ac_prev=site ;;
1032   -site=* | --site=* | --sit=*)
1033     site=$ac_optarg ;;
1034
1035   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036     ac_prev=srcdir ;;
1037   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038     srcdir=$ac_optarg ;;
1039
1040   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041   | --syscon | --sysco | --sysc | --sys | --sy)
1042     ac_prev=sysconfdir ;;
1043   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045     sysconfdir=$ac_optarg ;;
1046
1047   -target | --target | --targe | --targ | --tar | --ta | --t)
1048     ac_prev=target_alias ;;
1049   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050     target_alias=$ac_optarg ;;
1051
1052   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053     verbose=yes ;;
1054
1055   -version | --version | --versio | --versi | --vers | -V)
1056     ac_init_version=: ;;
1057
1058   -with-* | --with-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error $? "invalid package name: $ac_useropt"
1063     ac_useropt_orig=$ac_useropt
1064     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065     case $ac_user_opts in
1066       *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070          ac_unrecognized_sep=', ';;
1071     esac
1072     eval with_$ac_useropt=\$ac_optarg ;;
1073
1074   -without-* | --without-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid package name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval with_$ac_useropt=no ;;
1089
1090   --x)
1091     # Obsolete; use --with-x.
1092     with_x=yes ;;
1093
1094   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095   | --x-incl | --x-inc | --x-in | --x-i)
1096     ac_prev=x_includes ;;
1097   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099     x_includes=$ac_optarg ;;
1100
1101   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103     ac_prev=x_libraries ;;
1104   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106     x_libraries=$ac_optarg ;;
1107
1108   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1110     ;;
1111
1112   *=*)
1113     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114     # Reject names that are not valid shell variable names.
1115     case $ac_envvar in #(
1116       '' | [0-9]* | *[!_$as_cr_alnum]* )
1117       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118     esac
1119     eval $ac_envvar=\$ac_optarg
1120     export $ac_envvar ;;
1121
1122   *)
1123     # FIXME: should be removed in autoconf 3.0.
1124     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128     ;;
1129
1130   esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135   as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139   case $enable_option_checking in
1140     no) ;;
1141     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143   esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148                 datadir sysconfdir sharedstatedir localstatedir includedir \
1149                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150                 libdir localedir mandir
1151 do
1152   eval ac_val=\$$ac_var
1153   # Remove trailing slashes.
1154   case $ac_val in
1155     */ )
1156       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157       eval $ac_var=\$ac_val;;
1158   esac
1159   # Be sure to have absolute directory names.
1160   case $ac_val in
1161     [\\/$]* | ?:[\\/]* )  continue;;
1162     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163   esac
1164   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176   if test "x$build_alias" = x; then
1177     cross_compiling=maybe
1178     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1179     If a cross compiler is detected then cross compile mode will be used" >&2
1180   elif test "x$build_alias" != "x$host_alias"; then
1181     cross_compiling=yes
1182   fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194   as_fn_error $? "working directory cannot be determined"
1195 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196   as_fn_error $? "pwd does not report name of working directory"
1197
1198
1199 # Find the source files, if location was not specified.
1200 if test -z "$srcdir"; then
1201   ac_srcdir_defaulted=yes
1202   # Try the directory containing this script, then the parent directory.
1203   ac_confdir=`$as_dirname -- "$as_myself" ||
1204 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205          X"$as_myself" : 'X\(//\)[^/]' \| \
1206          X"$as_myself" : 'X\(//\)$' \| \
1207          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208 $as_echo X"$as_myself" |
1209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210             s//\1/
1211             q
1212           }
1213           /^X\(\/\/\)[^/].*/{
1214             s//\1/
1215             q
1216           }
1217           /^X\(\/\/\)$/{
1218             s//\1/
1219             q
1220           }
1221           /^X\(\/\).*/{
1222             s//\1/
1223             q
1224           }
1225           s/.*/./; q'`
1226   srcdir=$ac_confdir
1227   if test ! -r "$srcdir/$ac_unique_file"; then
1228     srcdir=..
1229   fi
1230 else
1231   ac_srcdir_defaulted=no
1232 fi
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1235   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1236 fi
1237 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 ac_abs_confdir=`(
1239         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1240         pwd)`
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243   srcdir=.
1244 fi
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1248 case $srcdir in
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 esac
1251 for ac_var in $ac_precious_vars; do
1252   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_env_${ac_var}_value=\$${ac_var}
1254   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256 done
1257
1258 #
1259 # Report the --help message.
1260 #
1261 if test "$ac_init_help" = "long"; then
1262   # Omit some internal or obsolete options to make the list less imposing.
1263   # This message is too long to be a string in the A/UX 3.1 sh.
1264   cat <<_ACEOF
1265 \`configure' configures ppastats 0.0.x to adapt to many kinds of systems.
1266
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE.  See below for descriptions of some of the useful variables.
1271
1272 Defaults for the options are specified in brackets.
1273
1274 Configuration:
1275   -h, --help              display this help and exit
1276       --help=short        display options specific to this package
1277       --help=recursive    display the short help of all the included packages
1278   -V, --version           display version information and exit
1279   -q, --quiet, --silent   do not print \`checking ...' messages
1280       --cache-file=FILE   cache test results in FILE [disabled]
1281   -C, --config-cache      alias for \`--cache-file=config.cache'
1282   -n, --no-create         do not create output files
1283       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1284
1285 Installation directories:
1286   --prefix=PREFIX         install architecture-independent files in PREFIX
1287                           [$ac_default_prefix]
1288   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1289                           [PREFIX]
1290
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1295
1296 For better control, use the options below.
1297
1298 Fine tuning of the installation directories:
1299   --bindir=DIR            user executables [EPREFIX/bin]
1300   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1301   --libexecdir=DIR        program executables [EPREFIX/libexec]
1302   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1303   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1304   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1305   --libdir=DIR            object code libraries [EPREFIX/lib]
1306   --includedir=DIR        C header files [PREFIX/include]
1307   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1308   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1309   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1310   --infodir=DIR           info documentation [DATAROOTDIR/info]
1311   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1312   --mandir=DIR            man documentation [DATAROOTDIR/man]
1313   --docdir=DIR            documentation root [DATAROOTDIR/doc/ppastats]
1314   --htmldir=DIR           html documentation [DOCDIR]
1315   --dvidir=DIR            dvi documentation [DOCDIR]
1316   --pdfdir=DIR            pdf documentation [DOCDIR]
1317   --psdir=DIR             ps documentation [DOCDIR]
1318 _ACEOF
1319
1320   cat <<\_ACEOF
1321
1322 Program names:
1323   --program-prefix=PREFIX            prepend PREFIX to installed program names
1324   --program-suffix=SUFFIX            append SUFFIX to installed program names
1325   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1326
1327 X features:
1328   --x-includes=DIR    X include files are in DIR
1329   --x-libraries=DIR   X library files are in DIR
1330 _ACEOF
1331 fi
1332
1333 if test -n "$ac_init_help"; then
1334   case $ac_init_help in
1335      short | recursive ) echo "Configuration of ppastats 0.0.x:";;
1336    esac
1337   cat <<\_ACEOF
1338
1339 Optional Features:
1340   --disable-option-checking  ignore unrecognized --enable/--with options
1341   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1342   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1343   --disable-dependency-tracking  speeds up one-time build
1344   --enable-dependency-tracking   do not reject slow dependency extractors
1345
1346 Optional Packages:
1347   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1348   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1349   --with-x                use the X Window System
1350
1351 Some influential environment variables:
1352   CC          C compiler command
1353   CFLAGS      C compiler flags
1354   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1355               nonstandard directory <lib dir>
1356   LIBS        libraries to pass to the linker, e.g. -l<library>
1357   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358               you have headers in a nonstandard directory <include dir>
1359   XMKMF       Path to xmkmf, Makefile generator for X Window System
1360   CPP         C preprocessor
1361   PKG_CONFIG  path to pkg-config utility
1362   PKG_CONFIG_PATH
1363               directories to add to pkg-config's search path
1364   PKG_CONFIG_LIBDIR
1365               path overriding pkg-config's built-in search path
1366   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1367   CURL_LIBS   linker flags for CURL, overriding pkg-config
1368   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1369   JSON_LIBS   linker flags for JSON, overriding pkg-config
1370
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1373
1374 Report bugs to <jeanfi@gmail.com>.
1375 ppastats home page: <http://wpitchoune.net/ppastats>.
1376 _ACEOF
1377 ac_status=$?
1378 fi
1379
1380 if test "$ac_init_help" = "recursive"; then
1381   # If there are subdirs, report their specific --help.
1382   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383     test -d "$ac_dir" ||
1384       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1385       continue
1386     ac_builddir=.
1387
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *)
1391   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1392   # A ".." for each directory in $ac_dir_suffix.
1393   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1394   case $ac_top_builddir_sub in
1395   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397   esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1403
1404 case $srcdir in
1405   .)  # We are building in place.
1406     ac_srcdir=.
1407     ac_top_srcdir=$ac_top_builddir_sub
1408     ac_abs_top_srcdir=$ac_pwd ;;
1409   [\\/]* | ?:[\\/]* )  # Absolute name.
1410     ac_srcdir=$srcdir$ac_dir_suffix;
1411     ac_top_srcdir=$srcdir
1412     ac_abs_top_srcdir=$srcdir ;;
1413   *) # Relative name.
1414     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415     ac_top_srcdir=$ac_top_build_prefix$srcdir
1416     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419
1420     cd "$ac_dir" || { ac_status=$?; continue; }
1421     # Check for guested configure.
1422     if test -f "$ac_srcdir/configure.gnu"; then
1423       echo &&
1424       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425     elif test -f "$ac_srcdir/configure"; then
1426       echo &&
1427       $SHELL "$ac_srcdir/configure" --help=recursive
1428     else
1429       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430     fi || ac_status=$?
1431     cd "$ac_pwd" || { ac_status=$?; break; }
1432   done
1433 fi
1434
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437   cat <<\_ACEOF
1438 ppastats configure 0.0.x
1439 generated by GNU Autoconf 2.68
1440
1441 Copyright (C) 2010 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1444 _ACEOF
1445   exit
1446 fi
1447
1448 ## ------------------------ ##
1449 ## Autoconf initialization. ##
1450 ## ------------------------ ##
1451
1452 # ac_fn_c_try_compile LINENO
1453 # --------------------------
1454 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1455 ac_fn_c_try_compile ()
1456 {
1457   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458   rm -f conftest.$ac_objext
1459   if { { ac_try="$ac_compile"
1460 case "(($ac_try" in
1461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462   *) ac_try_echo=$ac_try;;
1463 esac
1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466   (eval "$ac_compile") 2>conftest.err
1467   ac_status=$?
1468   if test -s conftest.err; then
1469     grep -v '^ *+' conftest.err >conftest.er1
1470     cat conftest.er1 >&5
1471     mv -f conftest.er1 conftest.err
1472   fi
1473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474   test $ac_status = 0; } && {
1475          test -z "$ac_c_werror_flag" ||
1476          test ! -s conftest.err
1477        } && test -s conftest.$ac_objext; then :
1478   ac_retval=0
1479 else
1480   $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1482
1483         ac_retval=1
1484 fi
1485   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486   as_fn_set_status $ac_retval
1487
1488 } # ac_fn_c_try_compile
1489
1490 # ac_fn_c_try_cpp LINENO
1491 # ----------------------
1492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_cpp ()
1494 {
1495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496   if { { ac_try="$ac_cpp conftest.$ac_ext"
1497 case "(($ac_try" in
1498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499   *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1504   ac_status=$?
1505   if test -s conftest.err; then
1506     grep -v '^ *+' conftest.err >conftest.er1
1507     cat conftest.er1 >&5
1508     mv -f conftest.er1 conftest.err
1509   fi
1510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511   test $ac_status = 0; } > conftest.i && {
1512          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1513          test ! -s conftest.err
1514        }; then :
1515   ac_retval=0
1516 else
1517   $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520     ac_retval=1
1521 fi
1522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523   as_fn_set_status $ac_retval
1524
1525 } # ac_fn_c_try_cpp
1526
1527 # ac_fn_c_try_link LINENO
1528 # -----------------------
1529 # Try to link conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_link ()
1531 {
1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533   rm -f conftest.$ac_objext conftest$ac_exeext
1534   if { { ac_try="$ac_link"
1535 case "(($ac_try" in
1536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537   *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541   (eval "$ac_link") 2>conftest.err
1542   ac_status=$?
1543   if test -s conftest.err; then
1544     grep -v '^ *+' conftest.err >conftest.er1
1545     cat conftest.er1 >&5
1546     mv -f conftest.er1 conftest.err
1547   fi
1548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549   test $ac_status = 0; } && {
1550          test -z "$ac_c_werror_flag" ||
1551          test ! -s conftest.err
1552        } && test -s conftest$ac_exeext && {
1553          test "$cross_compiling" = yes ||
1554          $as_test_x conftest$ac_exeext
1555        }; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561         ac_retval=1
1562 fi
1563   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1564   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1565   # interfere with the next link command; also delete a directory that is
1566   # left behind by Apple's compiler.  We do this before executing the actions.
1567   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569   as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_link
1572
1573 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576 # the include files in INCLUDES and setting the cache variable VAR
1577 # accordingly.
1578 ac_fn_c_check_header_mongrel ()
1579 {
1580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581   if eval \${$3+:} false; then :
1582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if eval \${$3+:} false; then :
1585   $as_echo_n "(cached) " >&6
1586 fi
1587 eval ac_res=\$$3
1588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 else
1591   # Is the header compilable?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593 $as_echo_n "checking $2 usability... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h.  */
1596 $4
1597 #include <$2>
1598 _ACEOF
1599 if ac_fn_c_try_compile "$LINENO"; then :
1600   ac_header_compiler=yes
1601 else
1602   ac_header_compiler=no
1603 fi
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606 $as_echo "$ac_header_compiler" >&6; }
1607
1608 # Is the header present?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610 $as_echo_n "checking $2 presence... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h.  */
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_cpp "$LINENO"; then :
1616   ac_header_preproc=yes
1617 else
1618   ac_header_preproc=no
1619 fi
1620 rm -f conftest.err conftest.i conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622 $as_echo "$ac_header_preproc" >&6; }
1623
1624 # So?  What about this header?
1625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626   yes:no: )
1627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631     ;;
1632   no:yes:* )
1633     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1636 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1640 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 ( $as_echo "## ------------------------------- ##
1644 ## Report this to jeanfi@gmail.com ##
1645 ## ------------------------------- ##"
1646      ) | sed "s/^/$as_me: WARNING:     /" >&2
1647     ;;
1648 esac
1649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if eval \${$3+:} false; then :
1652   $as_echo_n "(cached) " >&6
1653 else
1654   eval "$3=\$ac_header_compiler"
1655 fi
1656 eval ac_res=\$$3
1657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662 } # ac_fn_c_check_header_mongrel
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682   { { case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_try") 2>&5
1689   ac_status=$?
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; }; }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: program exited with status $ac_status" >&5
1695        $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698        ac_retval=$ac_status
1699 fi
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716   $as_echo_n "(cached) " >&6
1717 else
1718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724   eval "$3=yes"
1725 else
1726   eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_compile
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by ppastats $as_me 0.0.x, which was
1741 generated by GNU Autoconf 2.68.  Invocation command line was
1742
1743   $ $0 $@
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1761
1762 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1763 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1766 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1767 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1768 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777     $as_echo "PATH: $as_dir"
1778   done
1779 IFS=$as_save_IFS
1780
1781 } >&5
1782
1783 cat >&5 <<_ACEOF
1784
1785
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1789
1790 _ACEOF
1791
1792
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1803 do
1804   for ac_arg
1805   do
1806     case $ac_arg in
1807     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809     | -silent | --silent | --silen | --sile | --sil)
1810       continue ;;
1811     *\'*)
1812       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813     esac
1814     case $ac_pass in
1815     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1816     2)
1817       as_fn_append ac_configure_args1 " '$ac_arg'"
1818       if test $ac_must_keep_next = true; then
1819         ac_must_keep_next=false # Got value, back to normal.
1820       else
1821         case $ac_arg in
1822           *=* | --config-cache | -C | -disable-* | --disable-* \
1823           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825           | -with-* | --with-* | -without-* | --without-* | --x)
1826             case "$ac_configure_args0 " in
1827               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828             esac
1829             ;;
1830           -* ) ac_must_keep_next=true ;;
1831         esac
1832       fi
1833       as_fn_append ac_configure_args " '$ac_arg'"
1834       ;;
1835     esac
1836   done
1837 done
1838 { ac_configure_args0=; unset ac_configure_args0;}
1839 { ac_configure_args1=; unset ac_configure_args1;}
1840
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log.  We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847   # Save into config.log some information that might help in debugging.
1848   {
1849     echo
1850
1851     $as_echo "## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##"
1854     echo
1855     # The following way of writing the cache mishandles newlines in values,
1856 (
1857   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858     eval ac_val=\$$ac_var
1859     case $ac_val in #(
1860     *${as_nl}*)
1861       case $ac_var in #(
1862       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864       esac
1865       case $ac_var in #(
1866       _ | IFS | as_nl) ;; #(
1867       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868       *) { eval $ac_var=; unset $ac_var;} ;;
1869       esac ;;
1870     esac
1871   done
1872   (set) 2>&1 |
1873     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874     *${as_nl}ac_space=\ *)
1875       sed -n \
1876         "s/'\''/'\''\\\\'\'''\''/g;
1877           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878       ;; #(
1879     *)
1880       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881       ;;
1882     esac |
1883     sort
1884 )
1885     echo
1886
1887     $as_echo "## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##"
1890     echo
1891     for ac_var in $ac_subst_vars
1892     do
1893       eval ac_val=\$$ac_var
1894       case $ac_val in
1895       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896       esac
1897       $as_echo "$ac_var='\''$ac_val'\''"
1898     done | sort
1899     echo
1900
1901     if test -n "$ac_subst_files"; then
1902       $as_echo "## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##"
1905       echo
1906       for ac_var in $ac_subst_files
1907       do
1908         eval ac_val=\$$ac_var
1909         case $ac_val in
1910         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911         esac
1912         $as_echo "$ac_var='\''$ac_val'\''"
1913       done | sort
1914       echo
1915     fi
1916
1917     if test -s confdefs.h; then
1918       $as_echo "## ----------- ##
1919 ## confdefs.h. ##
1920 ## ----------- ##"
1921       echo
1922       cat confdefs.h
1923       echo
1924     fi
1925     test "$ac_signal" != 0 &&
1926       $as_echo "$as_me: caught signal $ac_signal"
1927     $as_echo "$as_me: exit $exit_status"
1928   } >&5
1929   rm -f core *.core core.conftest.* &&
1930     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931     exit $exit_status
1932 ' 0
1933 for ac_signal in 1 2 13 15; do
1934   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 done
1936 ac_signal=0
1937
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1940
1941 $as_echo "/* confdefs.h */" > confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951 _ACEOF
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1955 _ACEOF
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_URL "$PACKAGE_URL"
1967 _ACEOF
1968
1969
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1972 ac_site_file1=NONE
1973 ac_site_file2=NONE
1974 if test -n "$CONFIG_SITE"; then
1975   # We do not want a PATH search for config.site.
1976   case $CONFIG_SITE in #((
1977     -*)  ac_site_file1=./$CONFIG_SITE;;
1978     */*) ac_site_file1=$CONFIG_SITE;;
1979     *)   ac_site_file1=./$CONFIG_SITE;;
1980   esac
1981 elif test "x$prefix" != xNONE; then
1982   ac_site_file1=$prefix/share/config.site
1983   ac_site_file2=$prefix/etc/config.site
1984 else
1985   ac_site_file1=$ac_default_prefix/share/config.site
1986   ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990   test "x$ac_site_file" = xNONE && continue
1991   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994     sed 's/^/| /' "$ac_site_file" >&5
1995     . "$ac_site_file" \
1996       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See \`config.log' for more details" "$LINENO" 5; }
2000   fi
2001 done
2002
2003 if test -r "$cache_file"; then
2004   # Some versions of bash will fail to source /dev/null (special files
2005   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 $as_echo "$as_me: loading cache $cache_file" >&6;}
2009     case $cache_file in
2010       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011       *)                      . "./$cache_file";;
2012     esac
2013   fi
2014 else
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017   >$cache_file
2018 fi
2019
2020 # Check that the precious variables saved in the cache have kept the same
2021 # value.
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025   eval ac_new_set=\$ac_env_${ac_var}_set
2026   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027   eval ac_new_val=\$ac_env_${ac_var}_value
2028   case $ac_old_set,$ac_new_set in
2029     set,)
2030       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032       ac_cache_corrupted=: ;;
2033     ,set)
2034       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036       ac_cache_corrupted=: ;;
2037     ,);;
2038     *)
2039       if test "x$ac_old_val" != "x$ac_new_val"; then
2040         # differences in whitespace do not lead to failure.
2041         ac_old_val_w=`echo x $ac_old_val`
2042         ac_new_val_w=`echo x $ac_new_val`
2043         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046           ac_cache_corrupted=:
2047         else
2048           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050           eval $ac_var=\$ac_old_val
2051         fi
2052         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2053 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2054         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2055 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2056       fi;;
2057   esac
2058   # Pass precious variables to config.status.
2059   if test "$ac_new_set" = set; then
2060     case $ac_new_val in
2061     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062     *) ac_arg=$ac_var=$ac_new_val ;;
2063     esac
2064     case " $ac_configure_args " in
2065       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2066       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067     esac
2068   fi
2069 done
2070 if $ac_cache_corrupted; then
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2076 fi
2077 ## -------------------- ##
2078 ## Main body of script. ##
2079 ## -------------------- ##
2080
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089 am__api_version='1.11'
2090
2091 ac_aux_dir=
2092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093   if test -f "$ac_dir/install-sh"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/install-sh -c"
2096     break
2097   elif test -f "$ac_dir/install.sh"; then
2098     ac_aux_dir=$ac_dir
2099     ac_install_sh="$ac_aux_dir/install.sh -c"
2100     break
2101   elif test -f "$ac_dir/shtool"; then
2102     ac_aux_dir=$ac_dir
2103     ac_install_sh="$ac_aux_dir/shtool install -c"
2104     break
2105   fi
2106 done
2107 if test -z "$ac_aux_dir"; then
2108   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2109 fi
2110
2111 # These three variables are undocumented and unsupported,
2112 # and are intended to be withdrawn in a future Autoconf release.
2113 # They can cause serious problems if a builder's source tree is in a directory
2114 # whose full name contains unusual characters.
2115 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2116 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2117 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2118
2119
2120 # Find a good install program.  We prefer a C program (faster),
2121 # so one script is as good as another.  But avoid the broken or
2122 # incompatible versions:
2123 # SysV /etc/install, /usr/sbin/install
2124 # SunOS /usr/etc/install
2125 # IRIX /sbin/install
2126 # AIX /bin/install
2127 # AmigaOS /C/install, which installs bootblocks on floppy discs
2128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131 # OS/2's system install, which has a completely different semantic
2132 # ./install, which can be erroneously created by make from ./install.sh.
2133 # Reject install programs that cannot install multiple files.
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2135 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2136 if test -z "$INSTALL"; then
2137 if ${ac_cv_path_install+:} false; then :
2138   $as_echo_n "(cached) " >&6
2139 else
2140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145     # Account for people who put trailing slashes in PATH elements.
2146 case $as_dir/ in #((
2147   ./ | .// | /[cC]/* | \
2148   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2149   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2150   /usr/ucb/* ) ;;
2151   *)
2152     # OSF1 and SCO ODT 3.0 have their own names for install.
2153     # Don't use installbsd from OSF since it installs stuff as root
2154     # by default.
2155     for ac_prog in ginstall scoinst install; do
2156       for ac_exec_ext in '' $ac_executable_extensions; do
2157         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2158           if test $ac_prog = install &&
2159             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160             # AIX install.  It has an incompatible calling convention.
2161             :
2162           elif test $ac_prog = install &&
2163             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164             # program-specific install script used by HP pwplus--don't use.
2165             :
2166           else
2167             rm -rf conftest.one conftest.two conftest.dir
2168             echo one > conftest.one
2169             echo two > conftest.two
2170             mkdir conftest.dir
2171             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2172               test -s conftest.one && test -s conftest.two &&
2173               test -s conftest.dir/conftest.one &&
2174               test -s conftest.dir/conftest.two
2175             then
2176               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2177               break 3
2178             fi
2179           fi
2180         fi
2181       done
2182     done
2183     ;;
2184 esac
2185
2186   done
2187 IFS=$as_save_IFS
2188
2189 rm -rf conftest.one conftest.two conftest.dir
2190
2191 fi
2192   if test "${ac_cv_path_install+set}" = set; then
2193     INSTALL=$ac_cv_path_install
2194   else
2195     # As a last resort, use the slow shell script.  Don't cache a
2196     # value for INSTALL within a source directory, because that will
2197     # break other packages using the cache if that directory is
2198     # removed, or if the value is a relative name.
2199     INSTALL=$ac_install_sh
2200   fi
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2203 $as_echo "$INSTALL" >&6; }
2204
2205 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2206 # It thinks the first close brace ends the variable substitution.
2207 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2208
2209 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2210
2211 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2212
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2214 $as_echo_n "checking whether build environment is sane... " >&6; }
2215 # Just in case
2216 sleep 1
2217 echo timestamp > conftest.file
2218 # Reject unsafe characters in $srcdir or the absolute working directory
2219 # name.  Accept space and tab only in the latter.
2220 am_lf='
2221 '
2222 case `pwd` in
2223   *[\\\"\#\$\&\'\`$am_lf]*)
2224     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2225 esac
2226 case $srcdir in
2227   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2228     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2229 esac
2230
2231 # Do `set' in a subshell so we don't clobber the current shell's
2232 # arguments.  Must try -L first in case configure is actually a
2233 # symlink; some systems play weird games with the mod time of symlinks
2234 # (eg FreeBSD returns the mod time of the symlink's containing
2235 # directory).
2236 if (
2237    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2238    if test "$*" = "X"; then
2239       # -L didn't work.
2240       set X `ls -t "$srcdir/configure" conftest.file`
2241    fi
2242    rm -f conftest.file
2243    if test "$*" != "X $srcdir/configure conftest.file" \
2244       && test "$*" != "X conftest.file $srcdir/configure"; then
2245
2246       # If neither matched, then we have a broken ls.  This can happen
2247       # if, for instance, CONFIG_SHELL is bash and it inherits a
2248       # broken ls alias from the environment.  This has actually
2249       # happened.  Such a system could not be considered "sane".
2250       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2251 alias in your environment" "$LINENO" 5
2252    fi
2253
2254    test "$2" = conftest.file
2255    )
2256 then
2257    # Ok.
2258    :
2259 else
2260    as_fn_error $? "newly created file is older than distributed files!
2261 Check your system clock" "$LINENO" 5
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2264 $as_echo "yes" >&6; }
2265 test "$program_prefix" != NONE &&
2266   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2267 # Use a double $ so make ignores it.
2268 test "$program_suffix" != NONE &&
2269   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2270 # Double any \ or $.
2271 # By default was `s,x,x', remove it if useless.
2272 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2273 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2274
2275 # expand $ac_aux_dir to an absolute path
2276 am_aux_dir=`cd $ac_aux_dir && pwd`
2277
2278 if test x"${MISSING+set}" != xset; then
2279   case $am_aux_dir in
2280   *\ * | *\     *)
2281     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2282   *)
2283     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2284   esac
2285 fi
2286 # Use eval to expand $SHELL
2287 if eval "$MISSING --run true"; then
2288   am_missing_run="$MISSING --run "
2289 else
2290   am_missing_run=
2291   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2292 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2293 fi
2294
2295 if test x"${install_sh}" != xset; then
2296   case $am_aux_dir in
2297   *\ * | *\     *)
2298     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2299   *)
2300     install_sh="\${SHELL} $am_aux_dir/install-sh"
2301   esac
2302 fi
2303
2304 # Installed binaries are usually stripped using `strip' when the user
2305 # run `make install-strip'.  However `strip' might not be the right
2306 # tool to use in cross-compilation environments, therefore Automake
2307 # will honor the `STRIP' environment variable to overrule this program.
2308 if test "$cross_compiling" != no; then
2309   if test -n "$ac_tool_prefix"; then
2310   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_prog_STRIP+:} false; then :
2315   $as_echo_n "(cached) " >&6
2316 else
2317   if test -n "$STRIP"; then
2318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325     for ac_exec_ext in '' $ac_executable_extensions; do
2326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332   done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 STRIP=$ac_cv_prog_STRIP
2338 if test -n "$STRIP"; then
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2340 $as_echo "$STRIP" >&6; }
2341 else
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2343 $as_echo "no" >&6; }
2344 fi
2345
2346
2347 fi
2348 if test -z "$ac_cv_prog_STRIP"; then
2349   ac_ct_STRIP=$STRIP
2350   # Extract the first word of "strip", so it can be a program name with args.
2351 set dummy strip; ac_word=$2
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353 $as_echo_n "checking for $ac_word... " >&6; }
2354 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2355   $as_echo_n "(cached) " >&6
2356 else
2357   if test -n "$ac_ct_STRIP"; then
2358   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363   IFS=$as_save_IFS
2364   test -z "$as_dir" && as_dir=.
2365     for ac_exec_ext in '' $ac_executable_extensions; do
2366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367     ac_cv_prog_ac_ct_STRIP="strip"
2368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369     break 2
2370   fi
2371 done
2372   done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2378 if test -n "$ac_ct_STRIP"; then
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2380 $as_echo "$ac_ct_STRIP" >&6; }
2381 else
2382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383 $as_echo "no" >&6; }
2384 fi
2385
2386   if test "x$ac_ct_STRIP" = x; then
2387     STRIP=":"
2388   else
2389     case $cross_compiling:$ac_tool_warned in
2390 yes:)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395     STRIP=$ac_ct_STRIP
2396   fi
2397 else
2398   STRIP="$ac_cv_prog_STRIP"
2399 fi
2400
2401 fi
2402 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2403
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2405 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2406 if test -z "$MKDIR_P"; then
2407   if ${ac_cv_path_mkdir+:} false; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415     for ac_prog in mkdir gmkdir; do
2416          for ac_exec_ext in '' $ac_executable_extensions; do
2417            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2418            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2419              'mkdir (GNU coreutils) '* | \
2420              'mkdir (coreutils) '* | \
2421              'mkdir (fileutils) '4.1*)
2422                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2423                break 3;;
2424            esac
2425          done
2426        done
2427   done
2428 IFS=$as_save_IFS
2429
2430 fi
2431
2432   test -d ./--version && rmdir ./--version
2433   if test "${ac_cv_path_mkdir+set}" = set; then
2434     MKDIR_P="$ac_cv_path_mkdir -p"
2435   else
2436     # As a last resort, use the slow shell script.  Don't cache a
2437     # value for MKDIR_P within a source directory, because that will
2438     # break other packages using the cache if that directory is
2439     # removed, or if the value is a relative name.
2440     MKDIR_P="$ac_install_sh -d"
2441   fi
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2444 $as_echo "$MKDIR_P" >&6; }
2445
2446 mkdir_p="$MKDIR_P"
2447 case $mkdir_p in
2448   [\\/$]* | ?:[\\/]*) ;;
2449   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2450 esac
2451
2452 for ac_prog in gawk mawk nawk awk
2453 do
2454   # Extract the first word of "$ac_prog", so it can be a program name with args.
2455 set dummy $ac_prog; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_AWK+:} false; then :
2459   $as_echo_n "(cached) " >&6
2460 else
2461   if test -n "$AWK"; then
2462   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469     for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_AWK="$ac_prog"
2472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476   done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 AWK=$ac_cv_prog_AWK
2482 if test -n "$AWK"; then
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2484 $as_echo "$AWK" >&6; }
2485 else
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491   test -n "$AWK" && break
2492 done
2493
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2495 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2496 set x ${MAKE-make}
2497 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   cat >conftest.make <<\_ACEOF
2502 SHELL = /bin/sh
2503 all:
2504         @echo '@@@%%%=$(MAKE)=@@@%%%'
2505 _ACEOF
2506 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2508   *@@@%%%=?*=@@@%%%*)
2509     eval ac_cv_prog_make_${ac_make}_set=yes;;
2510   *)
2511     eval ac_cv_prog_make_${ac_make}_set=no;;
2512 esac
2513 rm -f conftest.make
2514 fi
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2517 $as_echo "yes" >&6; }
2518   SET_MAKE=
2519 else
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2522   SET_MAKE="MAKE=${MAKE-make}"
2523 fi
2524
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2528   am__leading_dot=.
2529 else
2530   am__leading_dot=_
2531 fi
2532 rmdir .tst 2>/dev/null
2533
2534 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2535   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2536   # is not polluted with repeated "-I."
2537   am__isrc=' -I$(srcdir)'
2538   # test to see if srcdir already configured
2539   if test -f $srcdir/config.status; then
2540     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2541   fi
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE='ppastats'
2556  VERSION='0.0.x'
2557
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE "$PACKAGE"
2561 _ACEOF
2562
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define VERSION "$VERSION"
2566 _ACEOF
2567
2568 # Some tools Automake needs.
2569
2570 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2571
2572
2573 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2574
2575
2576 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2577
2578
2579 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2580
2581
2582 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2583
2584 # We need awk for the "check" target.  The system "awk" is bad on
2585 # some platforms.
2586 # Always define AMTAR for backward compatibility.  Yes, it's still used
2587 # in the wild :-(  We should find a proper way to deprecate it ...
2588 AMTAR='$${TAR-tar}'
2589
2590 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2591
2592
2593
2594
2595
2596
2597
2598 ac_config_headers="$ac_config_headers config.h"
2599
2600
2601 # Checks for programs.
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607 if test -n "$ac_tool_prefix"; then
2608   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_CC+:} false; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   if test -n "$CC"; then
2616   ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623     for ac_exec_ext in '' $ac_executable_extensions; do
2624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630   done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 fi
2646 if test -z "$ac_cv_prog_CC"; then
2647   ac_ct_CC=$CC
2648   # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$ac_ct_CC"; then
2656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663     for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_ac_ct_CC="gcc"
2666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670   done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678 $as_echo "$ac_ct_CC" >&6; }
2679 else
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684   if test "x$ac_ct_CC" = x; then
2685     CC=""
2686   else
2687     case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691 ac_tool_warned=yes ;;
2692 esac
2693     CC=$ac_ct_CC
2694   fi
2695 else
2696   CC="$ac_cv_prog_CC"
2697 fi
2698
2699 if test -z "$CC"; then
2700           if test -n "$ac_tool_prefix"; then
2701     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}cc; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_CC+:} false; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   if test -n "$CC"; then
2709   ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716     for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     ac_cv_prog_CC="${ac_tool_prefix}cc"
2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723   done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738   fi
2739 fi
2740 if test -z "$CC"; then
2741   # Extract the first word of "cc", so it can be a program name with args.
2742 set dummy cc; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if ${ac_cv_prog_CC+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$CC"; then
2749   ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751   ac_prog_rejected=no
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2760        ac_prog_rejected=yes
2761        continue
2762      fi
2763     ac_cv_prog_CC="cc"
2764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765     break 2
2766   fi
2767 done
2768   done
2769 IFS=$as_save_IFS
2770
2771 if test $ac_prog_rejected = yes; then
2772   # We found a bogon in the path, so make sure we never use it.
2773   set dummy $ac_cv_prog_CC
2774   shift
2775   if test $# != 0; then
2776     # We chose a different compiler from the bogus one.
2777     # However, it has the same basename, so the bogon will be chosen
2778     # first if we set CC to just the basename; use the full file name.
2779     shift
2780     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2781   fi
2782 fi
2783 fi
2784 fi
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 if test -z "$CC"; then
2797   if test -n "$ac_tool_prefix"; then
2798   for ac_prog in cl.exe
2799   do
2800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_CC+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test -n "$CC"; then
2808   ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815     for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822   done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837     test -n "$CC" && break
2838   done
2839 fi
2840 if test -z "$CC"; then
2841   ac_ct_CC=$CC
2842   for ac_prog in cl.exe
2843 do
2844   # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2849   $as_echo_n "(cached) " >&6
2850 else
2851   if test -n "$ac_ct_CC"; then
2852   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857   IFS=$as_save_IFS
2858   test -z "$as_dir" && as_dir=.
2859     for ac_exec_ext in '' $ac_executable_extensions; do
2860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861     ac_cv_prog_ac_ct_CC="$ac_prog"
2862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866   done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2875 else
2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881   test -n "$ac_ct_CC" && break
2882 done
2883
2884   if test "x$ac_ct_CC" = x; then
2885     CC=""
2886   else
2887     case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893     CC=$ac_ct_CC
2894   fi
2895 fi
2896
2897 fi
2898
2899
2900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902 as_fn_error $? "no acceptable C compiler found in \$PATH
2903 See \`config.log' for more details" "$LINENO" 5; }
2904
2905 # Provide some information about the compiler.
2906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2907 set X $ac_compile
2908 ac_compiler=$2
2909 for ac_option in --version -v -V -qversion; do
2910   { { ac_try="$ac_compiler $ac_option >&5"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2918   ac_status=$?
2919   if test -s conftest.err; then
2920     sed '10a\
2921 ... rest of stderr output deleted ...
2922          10q' conftest.err >conftest.er1
2923     cat conftest.er1 >&5
2924   fi
2925   rm -f conftest.er1 conftest.err
2926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927   test $ac_status = 0; }
2928 done
2929
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 ac_clean_files_save=$ac_clean_files
2942 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2943 # Try to create an executable without -o first, disregard a.out.
2944 # It will help us diagnose broken compilers, and finding out an intuition
2945 # of exeext.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2947 $as_echo_n "checking whether the C compiler works... " >&6; }
2948 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2949
2950 # The possible output files:
2951 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2952
2953 ac_rmfiles=
2954 for ac_file in $ac_files
2955 do
2956   case $ac_file in
2957     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2958     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2959   esac
2960 done
2961 rm -f $ac_rmfiles
2962
2963 if { { ac_try="$ac_link_default"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970   (eval "$ac_link_default") 2>&5
2971   ac_status=$?
2972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973   test $ac_status = 0; }; then :
2974   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2976 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2977 # so that the user can short-circuit this test for compilers unknown to
2978 # Autoconf.
2979 for ac_file in $ac_files ''
2980 do
2981   test -f "$ac_file" || continue
2982   case $ac_file in
2983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2984         ;;
2985     [ab].out )
2986         # We found the default executable, but exeext='' is most
2987         # certainly right.
2988         break;;
2989     *.* )
2990         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2991         then :; else
2992            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993         fi
2994         # We set ac_cv_exeext here because the later test for it is not
2995         # safe: cross compilers may not add the suffix if given an `-o'
2996         # argument, so we may need to know it at that point already.
2997         # Even if this section looks crufty: it has the advantage of
2998         # actually working.
2999         break;;
3000     * )
3001         break;;
3002   esac
3003 done
3004 test "$ac_cv_exeext" = no && ac_cv_exeext=
3005
3006 else
3007   ac_file=''
3008 fi
3009 if test -z "$ac_file"; then :
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 as_fn_error 77 "C compiler cannot create executables
3018 See \`config.log' for more details" "$LINENO" 5; }
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3021 $as_echo "yes" >&6; }
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3024 $as_echo_n "checking for C compiler default output file name... " >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3026 $as_echo "$ac_file" >&6; }
3027 ac_exeext=$ac_cv_exeext
3028
3029 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3030 ac_clean_files=$ac_clean_files_save
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3032 $as_echo_n "checking for suffix of executables... " >&6; }
3033 if { { ac_try="$ac_link"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040   (eval "$ac_link") 2>&5
3041   ac_status=$?
3042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043   test $ac_status = 0; }; then :
3044   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3045 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3046 # work properly (i.e., refer to `conftest.exe'), while it won't with
3047 # `rm'.
3048 for ac_file in conftest.exe conftest conftest.*; do
3049   test -f "$ac_file" || continue
3050   case $ac_file in
3051     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3052     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3053           break;;
3054     * ) break;;
3055   esac
3056 done
3057 else
3058   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3061 See \`config.log' for more details" "$LINENO" 5; }
3062 fi
3063 rm -f conftest conftest$ac_cv_exeext
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3065 $as_echo "$ac_cv_exeext" >&6; }
3066
3067 rm -f conftest.$ac_ext
3068 EXEEXT=$ac_cv_exeext
3069 ac_exeext=$EXEEXT
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h.  */
3072 #include <stdio.h>
3073 int
3074 main ()
3075 {
3076 FILE *f = fopen ("conftest.out", "w");
3077  return ferror (f) || fclose (f) != 0;
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files="$ac_clean_files conftest.out"
3084 # Check that the compiler produces executables we can run.  If not, either
3085 # the compiler is broken, or we cross compile.
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3087 $as_echo_n "checking whether we are cross compiling... " >&6; }
3088 if test "$cross_compiling" != yes; then
3089   { { ac_try="$ac_link"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096   (eval "$ac_link") 2>&5
3097   ac_status=$?
3098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099   test $ac_status = 0; }
3100   if { ac_try='./conftest$ac_cv_exeext'
3101   { { case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_try") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }; }; then
3111     cross_compiling=no
3112   else
3113     if test "$cross_compiling" = maybe; then
3114         cross_compiling=yes
3115     else
3116         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error $? "cannot run C compiled programs.
3119 If you meant to cross compile, use \`--host'.
3120 See \`config.log' for more details" "$LINENO" 5; }
3121     fi
3122   fi
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3125 $as_echo "$cross_compiling" >&6; }
3126
3127 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3128 ac_clean_files=$ac_clean_files_save
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3130 $as_echo_n "checking for suffix of object files... " >&6; }
3131 if ${ac_cv_objext+:} false; then :
3132   $as_echo_n "(cached) " >&6
3133 else
3134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h.  */
3136
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.o conftest.obj
3146 if { { ac_try="$ac_compile"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153   (eval "$ac_compile") 2>&5
3154   ac_status=$?
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }; then :
3157   for ac_file in conftest.o conftest.obj conftest.*; do
3158   test -f "$ac_file" || continue;
3159   case $ac_file in
3160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3161     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3162        break;;
3163   esac
3164 done
3165 else
3166   $as_echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "cannot compute suffix of object files: cannot compile
3172 See \`config.log' for more details" "$LINENO" 5; }
3173 fi
3174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3177 $as_echo "$ac_cv_objext" >&6; }
3178 OBJEXT=$ac_cv_objext
3179 ac_objext=$OBJEXT
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3181 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3182 if ${ac_cv_c_compiler_gnu+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191 #ifndef __GNUC__
3192        choke me
3193 #endif
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200   ac_compiler_gnu=yes
3201 else
3202   ac_compiler_gnu=no
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3209 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3210 if test $ac_compiler_gnu = yes; then
3211   GCC=yes
3212 else
3213   GCC=
3214 fi
3215 ac_test_CFLAGS=${CFLAGS+set}
3216 ac_save_CFLAGS=$CFLAGS
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3218 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3219 if ${ac_cv_prog_cc_g+:} false; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   ac_save_c_werror_flag=$ac_c_werror_flag
3223    ac_c_werror_flag=yes
3224    ac_cv_prog_cc_g=no
3225    CFLAGS="-g"
3226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238   ac_cv_prog_cc_g=yes
3239 else
3240   CFLAGS=""
3241       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 if ac_fn_c_try_compile "$LINENO"; then :
3253
3254 else
3255   ac_c_werror_flag=$ac_save_c_werror_flag
3256          CFLAGS="-g"
3257          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269   ac_cv_prog_cc_g=yes
3270 fi
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 fi
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276    ac_c_werror_flag=$ac_save_c_werror_flag
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3279 $as_echo "$ac_cv_prog_cc_g" >&6; }
3280 if test "$ac_test_CFLAGS" = set; then
3281   CFLAGS=$ac_save_CFLAGS
3282 elif test $ac_cv_prog_cc_g = yes; then
3283   if test "$GCC" = yes; then
3284     CFLAGS="-g -O2"
3285   else
3286     CFLAGS="-g"
3287   fi
3288 else
3289   if test "$GCC" = yes; then
3290     CFLAGS="-O2"
3291   else
3292     CFLAGS=
3293   fi
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3296 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3297 if ${ac_cv_prog_cc_c89+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   ac_cv_prog_cc_c89=no
3301 ac_save_CC=$CC
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h.  */
3304 #include <stdarg.h>
3305 #include <stdio.h>
3306 #include <sys/types.h>
3307 #include <sys/stat.h>
3308 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3309 struct buf { int x; };
3310 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311 static char *e (p, i)
3312      char **p;
3313      int i;
3314 {
3315   return p[i];
3316 }
3317 static char *f (char * (*g) (char **, int), char **p, ...)
3318 {
3319   char *s;
3320   va_list v;
3321   va_start (v,p);
3322   s = g (p, va_arg (v,int));
3323   va_end (v);
3324   return s;
3325 }
3326
3327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3328    function prototypes and stuff, but not '\xHH' hex character constants.
3329    These don't provoke an error unfortunately, instead are silently treated
3330    as 'x'.  The following induces an error, until -std is added to get
3331    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3332    array size at least.  It's necessary to write '\x00'==0 to get something
3333    that's true only with -std.  */
3334 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3335
3336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337    inside strings and character constants.  */
3338 #define FOO(x) 'x'
3339 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3340
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345 int argc;
3346 char **argv;
3347 int
3348 main ()
3349 {
3350 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3357 do
3358   CC="$ac_save_CC $ac_arg"
3359   if ac_fn_c_try_compile "$LINENO"; then :
3360   ac_cv_prog_cc_c89=$ac_arg
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext
3363   test "x$ac_cv_prog_cc_c89" != "xno" && break
3364 done
3365 rm -f conftest.$ac_ext
3366 CC=$ac_save_CC
3367
3368 fi
3369 # AC_CACHE_VAL
3370 case "x$ac_cv_prog_cc_c89" in
3371   x)
3372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3373 $as_echo "none needed" >&6; } ;;
3374   xno)
3375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3376 $as_echo "unsupported" >&6; } ;;
3377   *)
3378     CC="$CC $ac_cv_prog_cc_c89"
3379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3380 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3381 esac
3382 if test "x$ac_cv_prog_cc_c89" != xno; then :
3383
3384 fi
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 DEPDIR="${am__leading_dot}deps"
3392
3393 ac_config_commands="$ac_config_commands depfiles"
3394
3395
3396 am_make=${MAKE-make}
3397 cat > confinc << 'END'
3398 am__doit:
3399         @echo this is the am__doit target
3400 .PHONY: am__doit
3401 END
3402 # If we don't find an include directive, just comment out the code.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3404 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3405 am__include="#"
3406 am__quote=
3407 _am_result=none
3408 # First try GNU make style include.
3409 echo "include confinc" > confmf
3410 # Ignore all kinds of additional output from `make'.
3411 case `$am_make -s -f confmf 2> /dev/null` in #(
3412 *the\ am__doit\ target*)
3413   am__include=include
3414   am__quote=
3415   _am_result=GNU
3416   ;;
3417 esac
3418 # Now try BSD make style include.
3419 if test "$am__include" = "#"; then
3420    echo '.include "confinc"' > confmf
3421    case `$am_make -s -f confmf 2> /dev/null` in #(
3422    *the\ am__doit\ target*)
3423      am__include=.include
3424      am__quote="\""
3425      _am_result=BSD
3426      ;;
3427    esac
3428 fi
3429
3430
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3432 $as_echo "$_am_result" >&6; }
3433 rm -f confinc confmf
3434
3435 # Check whether --enable-dependency-tracking was given.
3436 if test "${enable_dependency_tracking+set}" = set; then :
3437   enableval=$enable_dependency_tracking;
3438 fi
3439
3440 if test "x$enable_dependency_tracking" != xno; then
3441   am_depcomp="$ac_aux_dir/depcomp"
3442   AMDEPBACKSLASH='\'
3443   am__nodep='_no'
3444 fi
3445  if test "x$enable_dependency_tracking" != xno; then
3446   AMDEP_TRUE=
3447   AMDEP_FALSE='#'
3448 else
3449   AMDEP_TRUE='#'
3450   AMDEP_FALSE=
3451 fi
3452
3453
3454
3455 depcc="$CC"   am_compiler_list=
3456
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3458 $as_echo_n "checking dependency style of $depcc... " >&6; }
3459 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463   # We make a subdir and do the tests there.  Otherwise we can end up
3464   # making bogus files that we don't know about and never remove.  For
3465   # instance it was reported that on HP-UX the gcc test will end up
3466   # making a dummy file named `D' -- because `-MD' means `put the output
3467   # in D'.
3468   rm -rf conftest.dir
3469   mkdir conftest.dir
3470   # Copy depcomp to subdir because otherwise we won't find it if we're
3471   # using a relative directory.
3472   cp "$am_depcomp" conftest.dir
3473   cd conftest.dir
3474   # We will build objects and dependencies in a subdirectory because
3475   # it helps to detect inapplicable dependency modes.  For instance
3476   # both Tru64's cc and ICC support -MD to output dependencies as a
3477   # side effect of compilation, but ICC will put the dependencies in
3478   # the current directory while Tru64 will put them in the object
3479   # directory.
3480   mkdir sub
3481
3482   am_cv_CC_dependencies_compiler_type=none
3483   if test "$am_compiler_list" = ""; then
3484      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3485   fi
3486   am__universal=false
3487   case " $depcc " in #(
3488      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3489      esac
3490
3491   for depmode in $am_compiler_list; do
3492     # Setup a source with many dependencies, because some compilers
3493     # like to wrap large dependency lists on column 80 (with \), and
3494     # we should not choose a depcomp mode which is confused by this.
3495     #
3496     # We need to recreate these files for each test, as the compiler may
3497     # overwrite some of them when testing with obscure command lines.
3498     # This happens at least with the AIX C compiler.
3499     : > sub/conftest.c
3500     for i in 1 2 3 4 5 6; do
3501       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503       # Solaris 8's {/usr,}/bin/sh.
3504       touch sub/conftst$i.h
3505     done
3506     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507
3508     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3509     # mode.  It turns out that the SunPro C++ compiler does not properly
3510     # handle `-M -o', and we need to detect this.  Also, some Intel
3511     # versions had trouble with output in subdirs
3512     am__obj=sub/conftest.${OBJEXT-o}
3513     am__minus_obj="-o $am__obj"
3514     case $depmode in
3515     gcc)
3516       # This depmode causes a compiler race in universal mode.
3517       test "$am__universal" = false || continue
3518       ;;
3519     nosideeffect)
3520       # after this tag, mechanisms are not by side-effect, so they'll
3521       # only be used when explicitly requested
3522       if test "x$enable_dependency_tracking" = xyes; then
3523         continue
3524       else
3525         break
3526       fi
3527       ;;
3528     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3529       # This compiler won't grok `-c -o', but also, the minuso test has
3530       # not run yet.  These depmodes are late enough in the game, and
3531       # so weak that their functioning should not be impacted.
3532       am__obj=conftest.${OBJEXT-o}
3533       am__minus_obj=
3534       ;;
3535     none) break ;;
3536     esac
3537     if depmode=$depmode \
3538        source=sub/conftest.c object=$am__obj \
3539        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3540        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3541          >/dev/null 2>conftest.err &&
3542        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3543        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3545        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546       # icc doesn't choke on unknown options, it will just issue warnings
3547       # or remarks (even with -Werror).  So we grep stderr for any message
3548       # that says an option was ignored or not supported.
3549       # When given -MP, icc 7.0 and 7.1 complain thusly:
3550       #   icc: Command line warning: ignoring option '-M'; no argument required
3551       # The diagnosis changed in icc 8.0:
3552       #   icc: Command line remark: option '-MP' not supported
3553       if (grep 'ignoring option' conftest.err ||
3554           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555         am_cv_CC_dependencies_compiler_type=$depmode
3556         break
3557       fi
3558     fi
3559   done
3560
3561   cd ..
3562   rm -rf conftest.dir
3563 else
3564   am_cv_CC_dependencies_compiler_type=none
3565 fi
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3571
3572  if
3573   test "x$enable_dependency_tracking" != xno \
3574   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3575   am__fastdepCC_TRUE=
3576   am__fastdepCC_FALSE='#'
3577 else
3578   am__fastdepCC_TRUE='#'
3579   am__fastdepCC_FALSE=
3580 fi
3581
3582
3583 if test "x$CC" != xcc; then
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3585 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3586 else
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3588 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3589 fi
3590 set dummy $CC; ac_cc=`$as_echo "$2" |
3591                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3592 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 # Make sure it works both with $CC and with simple cc.
3607 # We do the test twice because some compilers refuse to overwrite an
3608 # existing .o file with -o, though they will create one.
3609 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3610 rm -f conftest2.*
3611 if { { case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617   (eval "$ac_try") 2>&5
3618   ac_status=$?
3619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620   test $ac_status = 0; } &&
3621    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; };
3631 then
3632   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3633   if test "x$CC" != xcc; then
3634     # Test first that cc exists at all.
3635     if { ac_try='cc -c conftest.$ac_ext >&5'
3636   { { case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645   test $ac_status = 0; }; }; then
3646       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3647       rm -f conftest2.*
3648       if { { case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_try") 2>&5
3655   ac_status=$?
3656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657   test $ac_status = 0; } &&
3658          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667   test $ac_status = 0; };
3668       then
3669         # cc works too.
3670         :
3671       else
3672         # cc exists but doesn't like -o.
3673         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3674       fi
3675     fi
3676   fi
3677 else
3678   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3679 fi
3680 rm -f core conftest*
3681
3682 fi
3683 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685 $as_echo "yes" >&6; }
3686 else
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689
3690 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3691
3692 fi
3693
3694 # FIXME: we rely on the cache variable name because
3695 # there is no other way.
3696 set dummy $CC
3697 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3698 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3699 if test "$am_t" != yes; then
3700    # Losing compiler, so override with the script.
3701    # FIXME: It is wrong to rewrite CC.
3702    # But if we don't then we get into trouble of one sort or another.
3703    # A longer-term fix would be to have automake use am__CC in this case,
3704    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3705    CC="$am_aux_dir/compile $CC"
3706 fi
3707
3708
3709
3710 # Checks lib build
3711 if test -n "$ac_tool_prefix"; then
3712   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_RANLIB+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if test -n "$RANLIB"; then
3720   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727     for ac_exec_ext in '' $ac_executable_extensions; do
3728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734   done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 RANLIB=$ac_cv_prog_RANLIB
3740 if test -n "$RANLIB"; then
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3742 $as_echo "$RANLIB" >&6; }
3743 else
3744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 fi
3750 if test -z "$ac_cv_prog_RANLIB"; then
3751   ac_ct_RANLIB=$RANLIB
3752   # Extract the first word of "ranlib", so it can be a program name with args.
3753 set dummy ranlib; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if test -n "$ac_ct_RANLIB"; then
3760   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769     ac_cv_prog_ac_ct_RANLIB="ranlib"
3770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774   done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3780 if test -n "$ac_ct_RANLIB"; then
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3782 $as_echo "$ac_ct_RANLIB" >&6; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788   if test "x$ac_ct_RANLIB" = x; then
3789     RANLIB=":"
3790   else
3791     case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797     RANLIB=$ac_ct_RANLIB
3798   fi
3799 else
3800   RANLIB="$ac_cv_prog_RANLIB"
3801 fi
3802
3803
3804 # Checks for header files.
3805
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3815   CPP=
3816 fi
3817 if test -z "$CPP"; then
3818   if ${ac_cv_prog_CPP+:} false; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821       # Double quotes because CPP needs to be expanded
3822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823     do
3824       ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3826 do
3827   # Use a header file that comes with gcc, so configuring glibc
3828   # with a fresh cross-compiler works.
3829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830   # <limits.h> exists even on freestanding compilers.
3831   # On the NeXT, cc -E runs the code through the compiler's parser,
3832   # not just through cpp. "Syntax error" is here to catch this case.
3833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835 #ifdef __STDC__
3836 # include <limits.h>
3837 #else
3838 # include <assert.h>
3839 #endif
3840                      Syntax error
3841 _ACEOF
3842 if ac_fn_c_try_cpp "$LINENO"; then :
3843
3844 else
3845   # Broken: fails on valid input.
3846 continue
3847 fi
3848 rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850   # OK, works on sane cases.  Now check whether nonexistent headers
3851   # can be detected and how.
3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854 #include <ac_nonexistent.h>
3855 _ACEOF
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3857   # Broken: success on invalid input.
3858 continue
3859 else
3860   # Passes both tests.
3861 ac_preproc_ok=:
3862 break
3863 fi
3864 rm -f conftest.err conftest.i conftest.$ac_ext
3865
3866 done
3867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3868 rm -f conftest.i conftest.err conftest.$ac_ext
3869 if $ac_preproc_ok; then :
3870   break
3871 fi
3872
3873     done
3874     ac_cv_prog_CPP=$CPP
3875
3876 fi
3877   CPP=$ac_cv_prog_CPP
3878 else
3879   ac_cv_prog_CPP=$CPP
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3882 $as_echo "$CPP" >&6; }
3883 ac_preproc_ok=false
3884 for ac_c_preproc_warn_flag in '' yes
3885 do
3886   # Use a header file that comes with gcc, so configuring glibc
3887   # with a fresh cross-compiler works.
3888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889   # <limits.h> exists even on freestanding compilers.
3890   # On the NeXT, cc -E runs the code through the compiler's parser,
3891   # not just through cpp. "Syntax error" is here to catch this case.
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894 #ifdef __STDC__
3895 # include <limits.h>
3896 #else
3897 # include <assert.h>
3898 #endif
3899                      Syntax error
3900 _ACEOF
3901 if ac_fn_c_try_cpp "$LINENO"; then :
3902
3903 else
3904   # Broken: fails on valid input.
3905 continue
3906 fi
3907 rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909   # OK, works on sane cases.  Now check whether nonexistent headers
3910   # can be detected and how.
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913 #include <ac_nonexistent.h>
3914 _ACEOF
3915 if ac_fn_c_try_cpp "$LINENO"; then :
3916   # Broken: success on invalid input.
3917 continue
3918 else
3919   # Passes both tests.
3920 ac_preproc_ok=:
3921 break
3922 fi
3923 rm -f conftest.err conftest.i conftest.$ac_ext
3924
3925 done
3926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3927 rm -f conftest.i conftest.err conftest.$ac_ext
3928 if $ac_preproc_ok; then :
3929
3930 else
3931   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3945 $as_echo_n "checking for X... " >&6; }
3946
3947
3948 # Check whether --with-x was given.
3949 if test "${with_x+set}" = set; then :
3950   withval=$with_x;
3951 fi
3952
3953 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3954 if test "x$with_x" = xno; then
3955   # The user explicitly disabled X.
3956   have_x=disabled
3957 else
3958   case $x_includes,$x_libraries in #(
3959     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3960     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   # One or both of the vars are not set, and there is no cached value.
3964 ac_x_includes=no ac_x_libraries=no
3965 rm -f -r conftest.dir
3966 if mkdir conftest.dir; then
3967   cd conftest.dir
3968   cat >Imakefile <<'_ACEOF'
3969 incroot:
3970         @echo incroot='${INCROOT}'
3971 usrlibdir:
3972         @echo usrlibdir='${USRLIBDIR}'
3973 libdir:
3974         @echo libdir='${LIBDIR}'
3975 _ACEOF
3976   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3977     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3978     for ac_var in incroot usrlibdir libdir; do
3979       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3980     done
3981     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3982     for ac_extension in a so sl dylib la dll; do
3983       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3984          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3985         ac_im_usrlibdir=$ac_im_libdir; break
3986       fi
3987     done
3988     # Screen out bogus values from the imake configuration.  They are
3989     # bogus both because they are the default anyway, and because
3990     # using them would break gcc on systems where it needs fixed includes.
3991     case $ac_im_incroot in
3992         /usr/include) ac_x_includes= ;;
3993         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3994     esac
3995     case $ac_im_usrlibdir in
3996         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3997         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3998     esac
3999   fi
4000   cd ..
4001   rm -f -r conftest.dir
4002 fi
4003
4004 # Standard set of common directories for X headers.
4005 # Check X11 before X11Rn because it is often a symlink to the current release.
4006 ac_x_header_dirs='
4007 /usr/X11/include
4008 /usr/X11R7/include
4009 /usr/X11R6/include
4010 /usr/X11R5/include
4011 /usr/X11R4/include
4012
4013 /usr/include/X11
4014 /usr/include/X11R7
4015 /usr/include/X11R6
4016 /usr/include/X11R5
4017 /usr/include/X11R4
4018
4019 /usr/local/X11/include
4020 /usr/local/X11R7/include
4021 /usr/local/X11R6/include
4022 /usr/local/X11R5/include
4023 /usr/local/X11R4/include
4024
4025 /usr/local/include/X11
4026 /usr/local/include/X11R7
4027 /usr/local/include/X11R6
4028 /usr/local/include/X11R5
4029 /usr/local/include/X11R4
4030
4031 /usr/X386/include
4032 /usr/x386/include
4033 /usr/XFree86/include/X11
4034
4035 /usr/include
4036 /usr/local/include
4037 /usr/unsupported/include
4038 /usr/athena/include
4039 /usr/local/x11r5/include
4040 /usr/lpp/Xamples/include
4041
4042 /usr/openwin/include
4043 /usr/openwin/share/include'
4044
4045 if test "$ac_x_includes" = no; then
4046   # Guess where to find include files, by looking for Xlib.h.
4047   # First, try using that file with no special directory specified.
4048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050 #include <X11/Xlib.h>
4051 _ACEOF
4052 if ac_fn_c_try_cpp "$LINENO"; then :
4053   # We can compile using X headers with no special include directory.
4054 ac_x_includes=
4055 else
4056   for ac_dir in $ac_x_header_dirs; do
4057   if test -r "$ac_dir/X11/Xlib.h"; then
4058     ac_x_includes=$ac_dir
4059     break
4060   fi
4061 done
4062 fi
4063 rm -f conftest.err conftest.i conftest.$ac_ext
4064 fi # $ac_x_includes = no
4065
4066 if test "$ac_x_libraries" = no; then
4067   # Check for the libraries.
4068   # See if we find them without any special options.
4069   # Don't add to $LIBS permanently.
4070   ac_save_LIBS=$LIBS
4071   LIBS="-lX11 $LIBS"
4072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074 #include <X11/Xlib.h>
4075 int
4076 main ()
4077 {
4078 XrmInitialize ()
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_link "$LINENO"; then :
4084   LIBS=$ac_save_LIBS
4085 # We can link X programs with no special library path.
4086 ac_x_libraries=
4087 else
4088   LIBS=$ac_save_LIBS
4089 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4090 do
4091   # Don't even attempt the hair of trying to link an X program!
4092   for ac_extension in a so sl dylib la dll; do
4093     if test -r "$ac_dir/libX11.$ac_extension"; then
4094       ac_x_libraries=$ac_dir
4095       break 2
4096     fi
4097   done
4098 done
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext \
4101     conftest$ac_exeext conftest.$ac_ext
4102 fi # $ac_x_libraries = no
4103
4104 case $ac_x_includes,$ac_x_libraries in #(
4105   no,* | *,no | *\'*)
4106     # Didn't find X, or a directory has "'" in its name.
4107     ac_cv_have_x="have_x=no";; #(
4108   *)
4109     # Record where we found X for the cache.
4110     ac_cv_have_x="have_x=yes\
4111         ac_x_includes='$ac_x_includes'\
4112         ac_x_libraries='$ac_x_libraries'"
4113 esac
4114 fi
4115 ;; #(
4116     *) have_x=yes;;
4117   esac
4118   eval "$ac_cv_have_x"
4119 fi # $with_x != no
4120
4121 if test "$have_x" != yes; then
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4123 $as_echo "$have_x" >&6; }
4124   no_x=yes
4125 else
4126   # If each of the values was on the command line, it overrides each guess.
4127   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4128   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4129   # Update the cache value to reflect the command line values.
4130   ac_cv_have_x="have_x=yes\
4131         ac_x_includes='$x_includes'\
4132         ac_x_libraries='$x_libraries'"
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4134 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4135 fi
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4138 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4139 if ${ac_cv_path_GREP+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -z "$GREP"; then
4143   ac_path_GREP_found=false
4144   # Loop through the user's path and test for each of PROGNAME-LIST
4145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_prog in grep ggrep; do
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4153       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4154 # Check for GNU ac_path_GREP and select it if it is found.
4155   # Check for GNU $ac_path_GREP
4156 case `"$ac_path_GREP" --version 2>&1` in
4157 *GNU*)
4158   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4159 *)
4160   ac_count=0
4161   $as_echo_n 0123456789 >"conftest.in"
4162   while :
4163   do
4164     cat "conftest.in" "conftest.in" >"conftest.tmp"
4165     mv "conftest.tmp" "conftest.in"
4166     cp "conftest.in" "conftest.nl"
4167     $as_echo 'GREP' >> "conftest.nl"
4168     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170     as_fn_arith $ac_count + 1 && ac_count=$as_val
4171     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4172       # Best one so far, save it but keep looking for a better one
4173       ac_cv_path_GREP="$ac_path_GREP"
4174       ac_path_GREP_max=$ac_count
4175     fi
4176     # 10*(2^10) chars as input seems more than enough
4177     test $ac_count -gt 10 && break
4178   done
4179   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180 esac
4181
4182       $ac_path_GREP_found && break 3
4183     done
4184   done
4185   done
4186 IFS=$as_save_IFS
4187   if test -z "$ac_cv_path_GREP"; then
4188     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4189   fi
4190 else
4191   ac_cv_path_GREP=$GREP
4192 fi
4193
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4196 $as_echo "$ac_cv_path_GREP" >&6; }
4197  GREP="$ac_cv_path_GREP"
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4201 $as_echo_n "checking for egrep... " >&6; }
4202 if ${ac_cv_path_EGREP+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4206    then ac_cv_path_EGREP="$GREP -E"
4207    else
4208      if test -z "$EGREP"; then
4209   ac_path_EGREP_found=false
4210   # Loop through the user's path and test for each of PROGNAME-LIST
4211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216     for ac_prog in egrep; do
4217     for ac_exec_ext in '' $ac_executable_extensions; do
4218       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4219       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4220 # Check for GNU ac_path_EGREP and select it if it is found.
4221   # Check for GNU $ac_path_EGREP
4222 case `"$ac_path_EGREP" --version 2>&1` in
4223 *GNU*)
4224   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4225 *)
4226   ac_count=0
4227   $as_echo_n 0123456789 >"conftest.in"
4228   while :
4229   do
4230     cat "conftest.in" "conftest.in" >"conftest.tmp"
4231     mv "conftest.tmp" "conftest.in"
4232     cp "conftest.in" "conftest.nl"
4233     $as_echo 'EGREP' >> "conftest.nl"
4234     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236     as_fn_arith $ac_count + 1 && ac_count=$as_val
4237     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4238       # Best one so far, save it but keep looking for a better one
4239       ac_cv_path_EGREP="$ac_path_EGREP"
4240       ac_path_EGREP_max=$ac_count
4241     fi
4242     # 10*(2^10) chars as input seems more than enough
4243     test $ac_count -gt 10 && break
4244   done
4245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 esac
4247
4248       $ac_path_EGREP_found && break 3
4249     done
4250   done
4251   done
4252 IFS=$as_save_IFS
4253   if test -z "$ac_cv_path_EGREP"; then
4254     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255   fi
4256 else
4257   ac_cv_path_EGREP=$EGREP
4258 fi
4259
4260    fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4263 $as_echo "$ac_cv_path_EGREP" >&6; }
4264  EGREP="$ac_cv_path_EGREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4268 $as_echo_n "checking for ANSI C header files... " >&6; }
4269 if ${ac_cv_header_stdc+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274 #include <stdlib.h>
4275 #include <stdarg.h>
4276 #include <string.h>
4277 #include <float.h>
4278
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288   ac_cv_header_stdc=yes
4289 else
4290   ac_cv_header_stdc=no
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293
4294 if test $ac_cv_header_stdc = yes; then
4295   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298 #include <string.h>
4299
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302   $EGREP "memchr" >/dev/null 2>&1; then :
4303
4304 else
4305   ac_cv_header_stdc=no
4306 fi
4307 rm -f conftest*
4308
4309 fi
4310
4311 if test $ac_cv_header_stdc = yes; then
4312   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #include <stdlib.h>
4316
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319   $EGREP "free" >/dev/null 2>&1; then :
4320
4321 else
4322   ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest*
4325
4326 fi
4327
4328 if test $ac_cv_header_stdc = yes; then
4329   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4330   if test "$cross_compiling" = yes; then :
4331   :
4332 else
4333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335 #include <ctype.h>
4336 #include <stdlib.h>
4337 #if ((' ' & 0x0FF) == 0x020)
4338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4340 #else
4341 # define ISLOWER(c) \
4342                    (('a' <= (c) && (c) <= 'i') \
4343                      || ('j' <= (c) && (c) <= 'r') \
4344                      || ('s' <= (c) && (c) <= 'z'))
4345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4346 #endif
4347
4348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4349 int
4350 main ()
4351 {
4352   int i;
4353   for (i = 0; i < 256; i++)
4354     if (XOR (islower (i), ISLOWER (i))
4355         || toupper (i) != TOUPPER (i))
4356       return 2;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_run "$LINENO"; then :
4361
4362 else
4363   ac_cv_header_stdc=no
4364 fi
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4366   conftest.$ac_objext conftest.beam conftest.$ac_ext
4367 fi
4368
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4372 $as_echo "$ac_cv_header_stdc" >&6; }
4373 if test $ac_cv_header_stdc = yes; then
4374
4375 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4376
4377 fi
4378
4379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4381                   inttypes.h stdint.h unistd.h
4382 do :
4383   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4385 "
4386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4387   cat >>confdefs.h <<_ACEOF
4388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395
4396 for ac_header in getopt.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h
4397 do :
4398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4401   cat >>confdefs.h <<_ACEOF
4402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406
4407 done
4408
4409
4410 # Checks CURL
4411
4412
4413
4414
4415
4416
4417
4418 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4419         if test -n "$ac_tool_prefix"; then
4420   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4421 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   case $PKG_CONFIG in
4428   [\\/]* | ?:[\\/]*)
4429   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4430   ;;
4431   *)
4432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444   done
4445 IFS=$as_save_IFS
4446
4447   ;;
4448 esac
4449 fi
4450 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4451 if test -n "$PKG_CONFIG"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4453 $as_echo "$PKG_CONFIG" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$ac_cv_path_PKG_CONFIG"; then
4462   ac_pt_PKG_CONFIG=$PKG_CONFIG
4463   # Extract the first word of "pkg-config", so it can be a program name with args.
4464 set dummy pkg-config; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   case $ac_pt_PKG_CONFIG in
4471   [\\/]* | ?:[\\/]*)
4472   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4473   ;;
4474   *)
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487   done
4488 IFS=$as_save_IFS
4489
4490   ;;
4491 esac
4492 fi
4493 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4494 if test -n "$ac_pt_PKG_CONFIG"; then
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4496 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4497 else
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 fi
4501
4502   if test "x$ac_pt_PKG_CONFIG" = x; then
4503     PKG_CONFIG=""
4504   else
4505     case $cross_compiling:$ac_tool_warned in
4506 yes:)
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4509 ac_tool_warned=yes ;;
4510 esac
4511     PKG_CONFIG=$ac_pt_PKG_CONFIG
4512   fi
4513 else
4514   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4515 fi
4516
4517 fi
4518 if test -n "$PKG_CONFIG"; then
4519         _pkg_min_version=0.9.0
4520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4521 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4522         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4523                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4525         else
4526                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528                 PKG_CONFIG=""
4529         fi
4530 fi
4531
4532 pkg_failed=no
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
4534 $as_echo_n "checking for CURL... " >&6; }
4535
4536 if test -n "$CURL_CFLAGS"; then
4537     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
4538  elif test -n "$PKG_CONFIG"; then
4539     if test -n "$PKG_CONFIG" && \
4540     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
4541   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
4542   ac_status=$?
4543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544   test $ac_status = 0; }; then
4545   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
4546                       test "x$?" != "x0" && pkg_failed=yes
4547 else
4548   pkg_failed=yes
4549 fi
4550  else
4551     pkg_failed=untried
4552 fi
4553 if test -n "$CURL_LIBS"; then
4554     pkg_cv_CURL_LIBS="$CURL_LIBS"
4555  elif test -n "$PKG_CONFIG"; then
4556     if test -n "$PKG_CONFIG" && \
4557     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
4558   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
4559   ac_status=$?
4560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561   test $ac_status = 0; }; then
4562   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
4563                       test "x$?" != "x0" && pkg_failed=yes
4564 else
4565   pkg_failed=yes
4566 fi
4567  else
4568     pkg_failed=untried
4569 fi
4570
4571
4572
4573 if test $pkg_failed = yes; then
4574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576
4577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4578         _pkg_short_errors_supported=yes
4579 else
4580         _pkg_short_errors_supported=no
4581 fi
4582         if test $_pkg_short_errors_supported = yes; then
4583                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
4584         else
4585                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
4586         fi
4587         # Put the nasty error message in config.log where it belongs
4588         echo "$CURL_PKG_ERRORS" >&5
4589
4590         as_fn_error $? "Package requirements (libcurl ) were not met:
4591
4592 $CURL_PKG_ERRORS
4593
4594 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4595 installed software in a non-standard prefix.
4596
4597 Alternatively, you may set the environment variables CURL_CFLAGS
4598 and CURL_LIBS to avoid the need to call pkg-config.
4599 See the pkg-config man page for more details." "$LINENO" 5
4600 elif test $pkg_failed = untried; then
4601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4606 is in your PATH or set the PKG_CONFIG environment variable to the full
4607 path to pkg-config.
4608
4609 Alternatively, you may set the environment variables CURL_CFLAGS
4610 and CURL_LIBS to avoid the need to call pkg-config.
4611 See the pkg-config man page for more details.
4612
4613 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4614 See \`config.log' for more details" "$LINENO" 5; }
4615 else
4616         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
4617         CURL_LIBS=$pkg_cv_CURL_LIBS
4618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620
4621 fi
4622
4623
4624
4625 # Checks JSON
4626
4627 pkg_failed=no
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
4629 $as_echo_n "checking for JSON... " >&6; }
4630
4631 if test -n "$JSON_CFLAGS"; then
4632     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
4633  elif test -n "$PKG_CONFIG"; then
4634     if test -n "$PKG_CONFIG" && \
4635     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json \""; } >&5
4636   ($PKG_CONFIG --exists --print-errors "json ") 2>&5
4637   ac_status=$?
4638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639   test $ac_status = 0; }; then
4640   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json " 2>/dev/null`
4641                       test "x$?" != "x0" && pkg_failed=yes
4642 else
4643   pkg_failed=yes
4644 fi
4645  else
4646     pkg_failed=untried
4647 fi
4648 if test -n "$JSON_LIBS"; then
4649     pkg_cv_JSON_LIBS="$JSON_LIBS"
4650  elif test -n "$PKG_CONFIG"; then
4651     if test -n "$PKG_CONFIG" && \
4652     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json \""; } >&5
4653   ($PKG_CONFIG --exists --print-errors "json ") 2>&5
4654   ac_status=$?
4655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656   test $ac_status = 0; }; then
4657   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json " 2>/dev/null`
4658                       test "x$?" != "x0" && pkg_failed=yes
4659 else
4660   pkg_failed=yes
4661 fi
4662  else
4663     pkg_failed=untried
4664 fi
4665
4666
4667
4668 if test $pkg_failed = yes; then
4669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671
4672 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4673         _pkg_short_errors_supported=yes
4674 else
4675         _pkg_short_errors_supported=no
4676 fi
4677         if test $_pkg_short_errors_supported = yes; then
4678                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json " 2>&1`
4679         else
4680                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json " 2>&1`
4681         fi
4682         # Put the nasty error message in config.log where it belongs
4683         echo "$JSON_PKG_ERRORS" >&5
4684
4685         as_fn_error $? "Package requirements (json ) were not met:
4686
4687 $JSON_PKG_ERRORS
4688
4689 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4690 installed software in a non-standard prefix.
4691
4692 Alternatively, you may set the environment variables JSON_CFLAGS
4693 and JSON_LIBS to avoid the need to call pkg-config.
4694 See the pkg-config man page for more details." "$LINENO" 5
4695 elif test $pkg_failed = untried; then
4696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4701 is in your PATH or set the PKG_CONFIG environment variable to the full
4702 path to pkg-config.
4703
4704 Alternatively, you may set the environment variables JSON_CFLAGS
4705 and JSON_LIBS to avoid the need to call pkg-config.
4706 See the pkg-config man page for more details.
4707
4708 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4709 See \`config.log' for more details" "$LINENO" 5; }
4710 else
4711         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
4712         JSON_LIBS=$pkg_cv_JSON_LIBS
4713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714 $as_echo "yes" >&6; }
4715
4716 fi
4717
4718
4719
4720 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile www/Makefile"
4721
4722
4723 for ac_prog in help2man
4724 do
4725   # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_HELP2MAN+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   if test -n "$HELP2MAN"; then
4733   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742     ac_cv_prog_HELP2MAN="$ac_prog"
4743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747   done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 HELP2MAN=$ac_cv_prog_HELP2MAN
4753 if test -n "$HELP2MAN"; then
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
4755 $as_echo "$HELP2MAN" >&6; }
4756 else
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762   test -n "$HELP2MAN" && break
4763 done
4764
4765
4766 cat >confcache <<\_ACEOF
4767 # This file is a shell script that caches the results of configure
4768 # tests run on this system so they can be shared between configure
4769 # scripts and configure runs, see configure's option --config-cache.
4770 # It is not useful on other systems.  If it contains results you don't
4771 # want to keep, you may remove or edit it.
4772 #
4773 # config.status only pays attention to the cache file if you give it
4774 # the --recheck option to rerun configure.
4775 #
4776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4778 # following values.
4779
4780 _ACEOF
4781
4782 # The following way of writing the cache mishandles newlines in values,
4783 # but we know of no workaround that is simple, portable, and efficient.
4784 # So, we kill variables containing newlines.
4785 # Ultrix sh set writes to stderr and can't be redirected directly,
4786 # and sets the high bit in the cache file unless we assign to the vars.
4787 (
4788   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4789     eval ac_val=\$$ac_var
4790     case $ac_val in #(
4791     *${as_nl}*)
4792       case $ac_var in #(
4793       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4795       esac
4796       case $ac_var in #(
4797       _ | IFS | as_nl) ;; #(
4798       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4799       *) { eval $ac_var=; unset $ac_var;} ;;
4800       esac ;;
4801     esac
4802   done
4803
4804   (set) 2>&1 |
4805     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4806     *${as_nl}ac_space=\ *)
4807       # `set' does not quote correctly, so add quotes: double-quote
4808       # substitution turns \\\\ into \\, and sed turns \\ into \.
4809       sed -n \
4810         "s/'/'\\\\''/g;
4811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4812       ;; #(
4813     *)
4814       # `set' quotes correctly as required by POSIX, so do not add quotes.
4815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4816       ;;
4817     esac |
4818     sort
4819 ) |
4820   sed '
4821      /^ac_cv_env_/b end
4822      t clear
4823      :clear
4824      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4825      t end
4826      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4827      :end' >>confcache
4828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4829   if test -w "$cache_file"; then
4830     if test "x$cache_file" != "x/dev/null"; then
4831       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4832 $as_echo "$as_me: updating cache $cache_file" >&6;}
4833       if test ! -f "$cache_file" || test -h "$cache_file"; then
4834         cat confcache >"$cache_file"
4835       else
4836         case $cache_file in #(
4837         */* | ?:*)
4838           mv -f confcache "$cache_file"$$ &&
4839           mv -f "$cache_file"$$ "$cache_file" ;; #(
4840         *)
4841           mv -f confcache "$cache_file" ;;
4842         esac
4843       fi
4844     fi
4845   else
4846     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4847 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4848   fi
4849 fi
4850 rm -f confcache
4851
4852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4853 # Let make expand exec_prefix.
4854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4855
4856 DEFS=-DHAVE_CONFIG_H
4857
4858 ac_libobjs=
4859 ac_ltlibobjs=
4860 U=
4861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4862   # 1. Remove the extension, and $U if already installed.
4863   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4864   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4865   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4866   #    will be set to the directory where LIBOBJS objects are built.
4867   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4868   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4869 done
4870 LIBOBJS=$ac_libobjs
4871
4872 LTLIBOBJS=$ac_ltlibobjs
4873
4874
4875  if test -n "$EXEEXT"; then
4876   am__EXEEXT_TRUE=
4877   am__EXEEXT_FALSE='#'
4878 else
4879   am__EXEEXT_TRUE='#'
4880   am__EXEEXT_FALSE=
4881 fi
4882
4883 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4884   as_fn_error $? "conditional \"AMDEP\" was never defined.
4885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4886 fi
4887 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4888   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4890 fi
4891
4892 : "${CONFIG_STATUS=./config.status}"
4893 ac_write_fail=0
4894 ac_clean_files_save=$ac_clean_files
4895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4898 as_write_fail=0
4899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4900 #! $SHELL
4901 # Generated by $as_me.
4902 # Run this file to recreate the current configuration.
4903 # Compiler output produced by configure, useful for debugging
4904 # configure, is in config.log if it exists.
4905
4906 debug=false
4907 ac_cs_recheck=false
4908 ac_cs_silent=false
4909
4910 SHELL=\${CONFIG_SHELL-$SHELL}
4911 export SHELL
4912 _ASEOF
4913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4914 ## -------------------- ##
4915 ## M4sh Initialization. ##
4916 ## -------------------- ##
4917
4918 # Be more Bourne compatible
4919 DUALCASE=1; export DUALCASE # for MKS sh
4920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4921   emulate sh
4922   NULLCMD=:
4923   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4924   # is contrary to our usage.  Disable this feature.
4925   alias -g '${1+"$@"}'='"$@"'
4926   setopt NO_GLOB_SUBST
4927 else
4928   case `(set -o) 2>/dev/null` in #(
4929   *posix*) :
4930     set -o posix ;; #(
4931   *) :
4932      ;;
4933 esac
4934 fi
4935
4936
4937 as_nl='
4938 '
4939 export as_nl
4940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4944 # Prefer a ksh shell builtin over an external printf program on Solaris,
4945 # but without wasting forks for bash or zsh.
4946 if test -z "$BASH_VERSION$ZSH_VERSION" \
4947     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4948   as_echo='print -r --'
4949   as_echo_n='print -rn --'
4950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4951   as_echo='printf %s\n'
4952   as_echo_n='printf %s'
4953 else
4954   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4955     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4956     as_echo_n='/usr/ucb/echo -n'
4957   else
4958     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4959     as_echo_n_body='eval
4960       arg=$1;
4961       case $arg in #(
4962       *"$as_nl"*)
4963         expr "X$arg" : "X\\(.*\\)$as_nl";
4964         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4965       esac;
4966       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4967     '
4968     export as_echo_n_body
4969     as_echo_n='sh -c $as_echo_n_body as_echo'
4970   fi
4971   export as_echo_body
4972   as_echo='sh -c $as_echo_body as_echo'
4973 fi
4974
4975 # The user is always right.
4976 if test "${PATH_SEPARATOR+set}" != set; then
4977   PATH_SEPARATOR=:
4978   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4979     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4980       PATH_SEPARATOR=';'
4981   }
4982 fi
4983
4984
4985 # IFS
4986 # We need space, tab and new line, in precisely that order.  Quoting is
4987 # there to prevent editors from complaining about space-tab.
4988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4989 # splitting by setting IFS to empty value.)
4990 IFS=" ""        $as_nl"
4991
4992 # Find who we are.  Look in the path if we contain no directory separator.
4993 as_myself=
4994 case $0 in #((
4995   *[\\/]* ) as_myself=$0 ;;
4996   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5002   done
5003 IFS=$as_save_IFS
5004
5005      ;;
5006 esac
5007 # We did not find ourselves, most probably we were run as `sh COMMAND'
5008 # in which case we are not to be found in the path.
5009 if test "x$as_myself" = x; then
5010   as_myself=$0
5011 fi
5012 if test ! -f "$as_myself"; then
5013   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5014   exit 1
5015 fi
5016
5017 # Unset variables that we do not need and which cause bugs (e.g. in
5018 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5019 # suppresses any "Segmentation fault" message there.  '((' could
5020 # trigger a bug in pdksh 5.2.14.
5021 for as_var in BASH_ENV ENV MAIL MAILPATH
5022 do eval test x\${$as_var+set} = xset \
5023   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5024 done
5025 PS1='$ '
5026 PS2='> '
5027 PS4='+ '
5028
5029 # NLS nuisances.
5030 LC_ALL=C
5031 export LC_ALL
5032 LANGUAGE=C
5033 export LANGUAGE
5034
5035 # CDPATH.
5036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5037
5038
5039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5040 # ----------------------------------------
5041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5043 # script with STATUS, using 1 if that was 0.
5044 as_fn_error ()
5045 {
5046   as_status=$1; test $as_status -eq 0 && as_status=1
5047   if test "$4"; then
5048     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5049     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5050   fi
5051   $as_echo "$as_me: error: $2" >&2
5052   as_fn_exit $as_status
5053 } # as_fn_error
5054
5055
5056 # as_fn_set_status STATUS
5057 # -----------------------
5058 # Set $? to STATUS, without forking.
5059 as_fn_set_status ()
5060 {
5061   return $1
5062 } # as_fn_set_status
5063
5064 # as_fn_exit STATUS
5065 # -----------------
5066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5067 as_fn_exit ()
5068 {
5069   set +e
5070   as_fn_set_status $1
5071   exit $1
5072 } # as_fn_exit
5073
5074 # as_fn_unset VAR
5075 # ---------------
5076 # Portably unset VAR.
5077 as_fn_unset ()
5078 {
5079   { eval $1=; unset $1;}
5080 }
5081 as_unset=as_fn_unset
5082 # as_fn_append VAR VALUE
5083 # ----------------------
5084 # Append the text in VALUE to the end of the definition contained in VAR. Take
5085 # advantage of any shell optimizations that allow amortized linear growth over
5086 # repeated appends, instead of the typical quadratic growth present in naive
5087 # implementations.
5088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5089   eval 'as_fn_append ()
5090   {
5091     eval $1+=\$2
5092   }'
5093 else
5094   as_fn_append ()
5095   {
5096     eval $1=\$$1\$2
5097   }
5098 fi # as_fn_append
5099
5100 # as_fn_arith ARG...
5101 # ------------------
5102 # Perform arithmetic evaluation on the ARGs, and store the result in the
5103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5104 # must be portable across $(()) and expr.
5105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5106   eval 'as_fn_arith ()
5107   {
5108     as_val=$(( $* ))
5109   }'
5110 else
5111   as_fn_arith ()
5112   {
5113     as_val=`expr "$@" || test $? -eq 1`
5114   }
5115 fi # as_fn_arith
5116
5117
5118 if expr a : '\(a\)' >/dev/null 2>&1 &&
5119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5120   as_expr=expr
5121 else
5122   as_expr=false
5123 fi
5124
5125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5126   as_basename=basename
5127 else
5128   as_basename=false
5129 fi
5130
5131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5132   as_dirname=dirname
5133 else
5134   as_dirname=false
5135 fi
5136
5137 as_me=`$as_basename -- "$0" ||
5138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5139          X"$0" : 'X\(//\)$' \| \
5140          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5141 $as_echo X/"$0" |
5142     sed '/^.*\/\([^/][^/]*\)\/*$/{
5143             s//\1/
5144             q
5145           }
5146           /^X\/\(\/\/\)$/{
5147             s//\1/
5148             q
5149           }
5150           /^X\/\(\/\).*/{
5151             s//\1/
5152             q
5153           }
5154           s/.*/./; q'`
5155
5156 # Avoid depending upon Character Ranges.
5157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5160 as_cr_digits='0123456789'
5161 as_cr_alnum=$as_cr_Letters$as_cr_digits
5162
5163 ECHO_C= ECHO_N= ECHO_T=
5164 case `echo -n x` in #(((((
5165 -n*)
5166   case `echo 'xy\c'` in
5167   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5168   xy)  ECHO_C='\c';;
5169   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5170        ECHO_T=' ';;
5171   esac;;
5172 *)
5173   ECHO_N='-n';;
5174 esac
5175
5176 rm -f conf$$ conf$$.exe conf$$.file
5177 if test -d conf$$.dir; then
5178   rm -f conf$$.dir/conf$$.file
5179 else
5180   rm -f conf$$.dir
5181   mkdir conf$$.dir 2>/dev/null
5182 fi
5183 if (echo >conf$$.file) 2>/dev/null; then
5184   if ln -s conf$$.file conf$$ 2>/dev/null; then
5185     as_ln_s='ln -s'
5186     # ... but there are two gotchas:
5187     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5188     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5189     # In both cases, we have to default to `cp -p'.
5190     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5191       as_ln_s='cp -p'
5192   elif ln conf$$.file conf$$ 2>/dev/null; then
5193     as_ln_s=ln
5194   else
5195     as_ln_s='cp -p'
5196   fi
5197 else
5198   as_ln_s='cp -p'
5199 fi
5200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5201 rmdir conf$$.dir 2>/dev/null
5202
5203
5204 # as_fn_mkdir_p
5205 # -------------
5206 # Create "$as_dir" as a directory, including parents if necessary.
5207 as_fn_mkdir_p ()
5208 {
5209
5210   case $as_dir in #(
5211   -*) as_dir=./$as_dir;;
5212   esac
5213   test -d "$as_dir" || eval $as_mkdir_p || {
5214     as_dirs=
5215     while :; do
5216       case $as_dir in #(
5217       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5218       *) as_qdir=$as_dir;;
5219       esac
5220       as_dirs="'$as_qdir' $as_dirs"
5221       as_dir=`$as_dirname -- "$as_dir" ||
5222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5223          X"$as_dir" : 'X\(//\)[^/]' \| \
5224          X"$as_dir" : 'X\(//\)$' \| \
5225          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5226 $as_echo X"$as_dir" |
5227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5228             s//\1/
5229             q
5230           }
5231           /^X\(\/\/\)[^/].*/{
5232             s//\1/
5233             q
5234           }
5235           /^X\(\/\/\)$/{
5236             s//\1/
5237             q
5238           }
5239           /^X\(\/\).*/{
5240             s//\1/
5241             q
5242           }
5243           s/.*/./; q'`
5244       test -d "$as_dir" && break
5245     done
5246     test -z "$as_dirs" || eval "mkdir $as_dirs"
5247   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5248
5249
5250 } # as_fn_mkdir_p
5251 if mkdir -p . 2>/dev/null; then
5252   as_mkdir_p='mkdir -p "$as_dir"'
5253 else
5254   test -d ./-p && rmdir ./-p
5255   as_mkdir_p=false
5256 fi
5257
5258 if test -x / >/dev/null 2>&1; then
5259   as_test_x='test -x'
5260 else
5261   if ls -dL / >/dev/null 2>&1; then
5262     as_ls_L_option=L
5263   else
5264     as_ls_L_option=
5265   fi
5266   as_test_x='
5267     eval sh -c '\''
5268       if test -d "$1"; then
5269         test -d "$1/.";
5270       else
5271         case $1 in #(
5272         -*)set "./$1";;
5273         esac;
5274         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5275         ???[sx]*):;;*)false;;esac;fi
5276     '\'' sh
5277   '
5278 fi
5279 as_executable_p=$as_test_x
5280
5281 # Sed expression to map a string onto a valid CPP name.
5282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5283
5284 # Sed expression to map a string onto a valid variable name.
5285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5286
5287
5288 exec 6>&1
5289 ## ----------------------------------- ##
5290 ## Main body of $CONFIG_STATUS script. ##
5291 ## ----------------------------------- ##
5292 _ASEOF
5293 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5294
5295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5296 # Save the log message, to keep $0 and so on meaningful, and to
5297 # report actual input values of CONFIG_FILES etc. instead of their
5298 # values after options handling.
5299 ac_log="
5300 This file was extended by ppastats $as_me 0.0.x, which was
5301 generated by GNU Autoconf 2.68.  Invocation command line was
5302
5303   CONFIG_FILES    = $CONFIG_FILES
5304   CONFIG_HEADERS  = $CONFIG_HEADERS
5305   CONFIG_LINKS    = $CONFIG_LINKS
5306   CONFIG_COMMANDS = $CONFIG_COMMANDS
5307   $ $0 $@
5308
5309 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5310 "
5311
5312 _ACEOF
5313
5314 case $ac_config_files in *"
5315 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5316 esac
5317
5318 case $ac_config_headers in *"
5319 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5320 esac
5321
5322
5323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5324 # Files that config.status was made for.
5325 config_files="$ac_config_files"
5326 config_headers="$ac_config_headers"
5327 config_commands="$ac_config_commands"
5328
5329 _ACEOF
5330
5331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5332 ac_cs_usage="\
5333 \`$as_me' instantiates files and other configuration actions
5334 from templates according to the current configuration.  Unless the files
5335 and actions are specified as TAGs, all are instantiated by default.
5336
5337 Usage: $0 [OPTION]... [TAG]...
5338
5339   -h, --help       print this help, then exit
5340   -V, --version    print version number and configuration settings, then exit
5341       --config     print configuration, then exit
5342   -q, --quiet, --silent
5343                    do not print progress messages
5344   -d, --debug      don't remove temporary files
5345       --recheck    update $as_me by reconfiguring in the same conditions
5346       --file=FILE[:TEMPLATE]
5347                    instantiate the configuration file FILE
5348       --header=FILE[:TEMPLATE]
5349                    instantiate the configuration header FILE
5350
5351 Configuration files:
5352 $config_files
5353
5354 Configuration headers:
5355 $config_headers
5356
5357 Configuration commands:
5358 $config_commands
5359
5360 Report bugs to <jeanfi@gmail.com>.
5361 ppastats home page: <http://wpitchoune.net/ppastats>."
5362
5363 _ACEOF
5364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5365 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5366 ac_cs_version="\\
5367 ppastats config.status 0.0.x
5368 configured by $0, generated by GNU Autoconf 2.68,
5369   with options \\"\$ac_cs_config\\"
5370
5371 Copyright (C) 2010 Free Software Foundation, Inc.
5372 This config.status script is free software; the Free Software Foundation
5373 gives unlimited permission to copy, distribute and modify it."
5374
5375 ac_pwd='$ac_pwd'
5376 srcdir='$srcdir'
5377 INSTALL='$INSTALL'
5378 MKDIR_P='$MKDIR_P'
5379 AWK='$AWK'
5380 test -n "\$AWK" || AWK=awk
5381 _ACEOF
5382
5383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5384 # The default lists apply if the user does not specify any file.
5385 ac_need_defaults=:
5386 while test $# != 0
5387 do
5388   case $1 in
5389   --*=?*)
5390     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5391     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5392     ac_shift=:
5393     ;;
5394   --*=)
5395     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5396     ac_optarg=
5397     ac_shift=:
5398     ;;
5399   *)
5400     ac_option=$1
5401     ac_optarg=$2
5402     ac_shift=shift
5403     ;;
5404   esac
5405
5406   case $ac_option in
5407   # Handling of the options.
5408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5409     ac_cs_recheck=: ;;
5410   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5411     $as_echo "$ac_cs_version"; exit ;;
5412   --config | --confi | --conf | --con | --co | --c )
5413     $as_echo "$ac_cs_config"; exit ;;
5414   --debug | --debu | --deb | --de | --d | -d )
5415     debug=: ;;
5416   --file | --fil | --fi | --f )
5417     $ac_shift
5418     case $ac_optarg in
5419     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5420     '') as_fn_error $? "missing file argument" ;;
5421     esac
5422     as_fn_append CONFIG_FILES " '$ac_optarg'"
5423     ac_need_defaults=false;;
5424   --header | --heade | --head | --hea )
5425     $ac_shift
5426     case $ac_optarg in
5427     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5428     esac
5429     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5430     ac_need_defaults=false;;
5431   --he | --h)
5432     # Conflict between --help and --header
5433     as_fn_error $? "ambiguous option: \`$1'
5434 Try \`$0 --help' for more information.";;
5435   --help | --hel | -h )
5436     $as_echo "$ac_cs_usage"; exit ;;
5437   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5438   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5439     ac_cs_silent=: ;;
5440
5441   # This is an error.
5442   -*) as_fn_error $? "unrecognized option: \`$1'
5443 Try \`$0 --help' for more information." ;;
5444
5445   *) as_fn_append ac_config_targets " $1"
5446      ac_need_defaults=false ;;
5447
5448   esac
5449   shift
5450 done
5451
5452 ac_configure_extra_args=
5453
5454 if $ac_cs_silent; then
5455   exec 6>/dev/null
5456   ac_configure_extra_args="$ac_configure_extra_args --silent"
5457 fi
5458
5459 _ACEOF
5460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5461 if \$ac_cs_recheck; then
5462   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5463   shift
5464   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5465   CONFIG_SHELL='$SHELL'
5466   export CONFIG_SHELL
5467   exec "\$@"
5468 fi
5469
5470 _ACEOF
5471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5472 exec 5>>config.log
5473 {
5474   echo
5475   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5476 ## Running $as_me. ##
5477 _ASBOX
5478   $as_echo "$ac_log"
5479 } >&5
5480
5481 _ACEOF
5482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5483 #
5484 # INIT-COMMANDS
5485 #
5486 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5487
5488 _ACEOF
5489
5490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5491
5492 # Handling of arguments.
5493 for ac_config_target in $ac_config_targets
5494 do
5495   case $ac_config_target in
5496     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5497     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5498     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5499     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5500     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5501     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
5502
5503   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5504   esac
5505 done
5506
5507
5508 # If the user did not use the arguments to specify the items to instantiate,
5509 # then the envvar interface is used.  Set only those that are not.
5510 # We use the long form for the default assignment because of an extremely
5511 # bizarre bug on SunOS 4.1.3.
5512 if $ac_need_defaults; then
5513   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5514   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5515   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5516 fi
5517
5518 # Have a temporary directory for convenience.  Make it in the build tree
5519 # simply because there is no reason against having it here, and in addition,
5520 # creating and moving files from /tmp can sometimes cause problems.
5521 # Hook for its removal unless debugging.
5522 # Note that there is a small window in which the directory will not be cleaned:
5523 # after its creation but before its name has been assigned to `$tmp'.
5524 $debug ||
5525 {
5526   tmp= ac_tmp=
5527   trap 'exit_status=$?
5528   : "${ac_tmp:=$tmp}"
5529   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5530 ' 0
5531   trap 'as_fn_exit 1' 1 2 13 15
5532 }
5533 # Create a (secure) tmp directory for tmp files.
5534
5535 {
5536   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5537   test -d "$tmp"
5538 }  ||
5539 {
5540   tmp=./conf$$-$RANDOM
5541   (umask 077 && mkdir "$tmp")
5542 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5543 ac_tmp=$tmp
5544
5545 # Set up the scripts for CONFIG_FILES section.
5546 # No need to generate them if there are no CONFIG_FILES.
5547 # This happens for instance with `./config.status config.h'.
5548 if test -n "$CONFIG_FILES"; then
5549
5550
5551 ac_cr=`echo X | tr X '\015'`
5552 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5553 # But we know of no other shell where ac_cr would be empty at this
5554 # point, so we can use a bashism as a fallback.
5555 if test "x$ac_cr" = x; then
5556   eval ac_cr=\$\'\\r\'
5557 fi
5558 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5559 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5560   ac_cs_awk_cr='\\r'
5561 else
5562   ac_cs_awk_cr=$ac_cr
5563 fi
5564
5565 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5566 _ACEOF
5567
5568
5569 {
5570   echo "cat >conf$$subs.awk <<_ACEOF" &&
5571   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5572   echo "_ACEOF"
5573 } >conf$$subs.sh ||
5574   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5576 ac_delim='%!_!# '
5577 for ac_last_try in false false false false false :; do
5578   . ./conf$$subs.sh ||
5579     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5580
5581   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5582   if test $ac_delim_n = $ac_delim_num; then
5583     break
5584   elif $ac_last_try; then
5585     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5586   else
5587     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5588   fi
5589 done
5590 rm -f conf$$subs.sh
5591
5592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5593 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5594 _ACEOF
5595 sed -n '
5596 h
5597 s/^/S["/; s/!.*/"]=/
5598 p
5599 g
5600 s/^[^!]*!//
5601 :repl
5602 t repl
5603 s/'"$ac_delim"'$//
5604 t delim
5605 :nl
5606 h
5607 s/\(.\{148\}\)..*/\1/
5608 t more1
5609 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5610 p
5611 n
5612 b repl
5613 :more1
5614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5615 p
5616 g
5617 s/.\{148\}//
5618 t nl
5619 :delim
5620 h
5621 s/\(.\{148\}\)..*/\1/
5622 t more2
5623 s/["\\]/\\&/g; s/^/"/; s/$/"/
5624 p
5625 b
5626 :more2
5627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5628 p
5629 g
5630 s/.\{148\}//
5631 t delim
5632 ' <conf$$subs.awk | sed '
5633 /^[^""]/{
5634   N
5635   s/\n//
5636 }
5637 ' >>$CONFIG_STATUS || ac_write_fail=1
5638 rm -f conf$$subs.awk
5639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5640 _ACAWK
5641 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5642   for (key in S) S_is_set[key] = 1
5643   FS = "\a"
5644
5645 }
5646 {
5647   line = $ 0
5648   nfields = split(line, field, "@")
5649   substed = 0
5650   len = length(field[1])
5651   for (i = 2; i < nfields; i++) {
5652     key = field[i]
5653     keylen = length(key)
5654     if (S_is_set[key]) {
5655       value = S[key]
5656       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5657       len += length(value) + length(field[++i])
5658       substed = 1
5659     } else
5660       len += 1 + keylen
5661   }
5662
5663   print line
5664 }
5665
5666 _ACAWK
5667 _ACEOF
5668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5669 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5670   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5671 else
5672   cat
5673 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5674   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5675 _ACEOF
5676
5677 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5678 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5679 # trailing colons and then remove the whole line if VPATH becomes empty
5680 # (actually we leave an empty line to preserve line numbers).
5681 if test "x$srcdir" = x.; then
5682   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5683 h
5684 s///
5685 s/^/:/
5686 s/[      ]*$/:/
5687 s/:\$(srcdir):/:/g
5688 s/:\${srcdir}:/:/g
5689 s/:@srcdir@:/:/g
5690 s/^:*//
5691 s/:*$//
5692 x
5693 s/\(=[   ]*\).*/\1/
5694 G
5695 s/\n//
5696 s/^[^=]*=[       ]*$//
5697 }'
5698 fi
5699
5700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5701 fi # test -n "$CONFIG_FILES"
5702
5703 # Set up the scripts for CONFIG_HEADERS section.
5704 # No need to generate them if there are no CONFIG_HEADERS.
5705 # This happens for instance with `./config.status Makefile'.
5706 if test -n "$CONFIG_HEADERS"; then
5707 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5708 BEGIN {
5709 _ACEOF
5710
5711 # Transform confdefs.h into an awk script `defines.awk', embedded as
5712 # here-document in config.status, that substitutes the proper values into
5713 # config.h.in to produce config.h.
5714
5715 # Create a delimiter string that does not exist in confdefs.h, to ease
5716 # handling of long lines.
5717 ac_delim='%!_!# '
5718 for ac_last_try in false false :; do
5719   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5720   if test -z "$ac_tt"; then
5721     break
5722   elif $ac_last_try; then
5723     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5724   else
5725     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5726   fi
5727 done
5728
5729 # For the awk script, D is an array of macro values keyed by name,
5730 # likewise P contains macro parameters if any.  Preserve backslash
5731 # newline sequences.
5732
5733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5734 sed -n '
5735 s/.\{148\}/&'"$ac_delim"'/g
5736 t rset
5737 :rset
5738 s/^[     ]*#[    ]*define[       ][      ]*/ /
5739 t def
5740 d
5741 :def
5742 s/\\$//
5743 t bsnl
5744 s/["\\]/\\&/g
5745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5746 D["\1"]=" \3"/p
5747 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5748 d
5749 :bsnl
5750 s/["\\]/\\&/g
5751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5752 D["\1"]=" \3\\\\\\n"\\/p
5753 t cont
5754 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5755 t cont
5756 d
5757 :cont
5758 n
5759 s/.\{148\}/&'"$ac_delim"'/g
5760 t clear
5761 :clear
5762 s/\\$//
5763 t bsnlc
5764 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5765 d
5766 :bsnlc
5767 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5768 b cont
5769 ' <confdefs.h | sed '
5770 s/'"$ac_delim"'/"\\\
5771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5772
5773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5774   for (key in D) D_is_set[key] = 1
5775   FS = "\a"
5776 }
5777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5778   line = \$ 0
5779   split(line, arg, " ")
5780   if (arg[1] == "#") {
5781     defundef = arg[2]
5782     mac1 = arg[3]
5783   } else {
5784     defundef = substr(arg[1], 2)
5785     mac1 = arg[2]
5786   }
5787   split(mac1, mac2, "(") #)
5788   macro = mac2[1]
5789   prefix = substr(line, 1, index(line, defundef) - 1)
5790   if (D_is_set[macro]) {
5791     # Preserve the white space surrounding the "#".
5792     print prefix "define", macro P[macro] D[macro]
5793     next
5794   } else {
5795     # Replace #undef with comments.  This is necessary, for example,
5796     # in the case of _POSIX_SOURCE, which is predefined and required
5797     # on some systems where configure will not decide to define it.
5798     if (defundef == "undef") {
5799       print "/*", prefix defundef, macro, "*/"
5800       next
5801     }
5802   }
5803 }
5804 { print }
5805 _ACAWK
5806 _ACEOF
5807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5808   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5809 fi # test -n "$CONFIG_HEADERS"
5810
5811
5812 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5813 shift
5814 for ac_tag
5815 do
5816   case $ac_tag in
5817   :[FHLC]) ac_mode=$ac_tag; continue;;
5818   esac
5819   case $ac_mode$ac_tag in
5820   :[FHL]*:*);;
5821   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5822   :[FH]-) ac_tag=-:-;;
5823   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5824   esac
5825   ac_save_IFS=$IFS
5826   IFS=:
5827   set x $ac_tag
5828   IFS=$ac_save_IFS
5829   shift
5830   ac_file=$1
5831   shift
5832
5833   case $ac_mode in
5834   :L) ac_source=$1;;
5835   :[FH])
5836     ac_file_inputs=
5837     for ac_f
5838     do
5839       case $ac_f in
5840       -) ac_f="$ac_tmp/stdin";;
5841       *) # Look for the file first in the build tree, then in the source tree
5842          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5843          # because $ac_f cannot contain `:'.
5844          test -f "$ac_f" ||
5845            case $ac_f in
5846            [\\/$]*) false;;
5847            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5848            esac ||
5849            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5850       esac
5851       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5852       as_fn_append ac_file_inputs " '$ac_f'"
5853     done
5854
5855     # Let's still pretend it is `configure' which instantiates (i.e., don't
5856     # use $as_me), people would be surprised to read:
5857     #    /* config.h.  Generated by config.status.  */
5858     configure_input='Generated from '`
5859           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5860         `' by configure.'
5861     if test x"$ac_file" != x-; then
5862       configure_input="$ac_file.  $configure_input"
5863       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5864 $as_echo "$as_me: creating $ac_file" >&6;}
5865     fi
5866     # Neutralize special characters interpreted by sed in replacement strings.
5867     case $configure_input in #(
5868     *\&* | *\|* | *\\* )
5869        ac_sed_conf_input=`$as_echo "$configure_input" |
5870        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5871     *) ac_sed_conf_input=$configure_input;;
5872     esac
5873
5874     case $ac_tag in
5875     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5876       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5877     esac
5878     ;;
5879   esac
5880
5881   ac_dir=`$as_dirname -- "$ac_file" ||
5882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5883          X"$ac_file" : 'X\(//\)[^/]' \| \
5884          X"$ac_file" : 'X\(//\)$' \| \
5885          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5886 $as_echo X"$ac_file" |
5887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5888             s//\1/
5889             q
5890           }
5891           /^X\(\/\/\)[^/].*/{
5892             s//\1/
5893             q
5894           }
5895           /^X\(\/\/\)$/{
5896             s//\1/
5897             q
5898           }
5899           /^X\(\/\).*/{
5900             s//\1/
5901             q
5902           }
5903           s/.*/./; q'`
5904   as_dir="$ac_dir"; as_fn_mkdir_p
5905   ac_builddir=.
5906
5907 case "$ac_dir" in
5908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5909 *)
5910   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5911   # A ".." for each directory in $ac_dir_suffix.
5912   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5913   case $ac_top_builddir_sub in
5914   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5915   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5916   esac ;;
5917 esac
5918 ac_abs_top_builddir=$ac_pwd
5919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5920 # for backward compatibility:
5921 ac_top_builddir=$ac_top_build_prefix
5922
5923 case $srcdir in
5924   .)  # We are building in place.
5925     ac_srcdir=.
5926     ac_top_srcdir=$ac_top_builddir_sub
5927     ac_abs_top_srcdir=$ac_pwd ;;
5928   [\\/]* | ?:[\\/]* )  # Absolute name.
5929     ac_srcdir=$srcdir$ac_dir_suffix;
5930     ac_top_srcdir=$srcdir
5931     ac_abs_top_srcdir=$srcdir ;;
5932   *) # Relative name.
5933     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5934     ac_top_srcdir=$ac_top_build_prefix$srcdir
5935     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5936 esac
5937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5938
5939
5940   case $ac_mode in
5941   :F)
5942   #
5943   # CONFIG_FILE
5944   #
5945
5946   case $INSTALL in
5947   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5948   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5949   esac
5950   ac_MKDIR_P=$MKDIR_P
5951   case $MKDIR_P in
5952   [\\/$]* | ?:[\\/]* ) ;;
5953   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5954   esac
5955 _ACEOF
5956
5957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5958 # If the template does not know about datarootdir, expand it.
5959 # FIXME: This hack should be removed a few years after 2.60.
5960 ac_datarootdir_hack=; ac_datarootdir_seen=
5961 ac_sed_dataroot='
5962 /datarootdir/ {
5963   p
5964   q
5965 }
5966 /@datadir@/p
5967 /@docdir@/p
5968 /@infodir@/p
5969 /@localedir@/p
5970 /@mandir@/p'
5971 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5972 *datarootdir*) ac_datarootdir_seen=yes;;
5973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5975 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5976 _ACEOF
5977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5978   ac_datarootdir_hack='
5979   s&@datadir@&$datadir&g
5980   s&@docdir@&$docdir&g
5981   s&@infodir@&$infodir&g
5982   s&@localedir@&$localedir&g
5983   s&@mandir@&$mandir&g
5984   s&\\\${datarootdir}&$datarootdir&g' ;;
5985 esac
5986 _ACEOF
5987
5988 # Neutralize VPATH when `$srcdir' = `.'.
5989 # Shell code in configure.ac might set extrasub.
5990 # FIXME: do we really want to maintain this feature?
5991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5992 ac_sed_extra="$ac_vpsub
5993 $extrasub
5994 _ACEOF
5995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5996 :t
5997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5998 s|@configure_input@|$ac_sed_conf_input|;t t
5999 s&@top_builddir@&$ac_top_builddir_sub&;t t
6000 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6001 s&@srcdir@&$ac_srcdir&;t t
6002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6003 s&@top_srcdir@&$ac_top_srcdir&;t t
6004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6005 s&@builddir@&$ac_builddir&;t t
6006 s&@abs_builddir@&$ac_abs_builddir&;t t
6007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6008 s&@INSTALL@&$ac_INSTALL&;t t
6009 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6010 $ac_datarootdir_hack
6011 "
6012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6013   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6014
6015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6016   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6017   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6018       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6020 which seems to be undefined.  Please make sure it is defined" >&5
6021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6022 which seems to be undefined.  Please make sure it is defined" >&2;}
6023
6024   rm -f "$ac_tmp/stdin"
6025   case $ac_file in
6026   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6027   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6028   esac \
6029   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6030  ;;
6031   :H)
6032   #
6033   # CONFIG_HEADER
6034   #
6035   if test x"$ac_file" != x-; then
6036     {
6037       $as_echo "/* $configure_input  */" \
6038       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6039     } >"$ac_tmp/config.h" \
6040       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6041     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6042       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6044     else
6045       rm -f "$ac_file"
6046       mv "$ac_tmp/config.h" "$ac_file" \
6047         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6048     fi
6049   else
6050     $as_echo "/* $configure_input  */" \
6051       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6052       || as_fn_error $? "could not create -" "$LINENO" 5
6053   fi
6054 # Compute "$ac_file"'s index in $config_headers.
6055 _am_arg="$ac_file"
6056 _am_stamp_count=1
6057 for _am_header in $config_headers :; do
6058   case $_am_header in
6059     $_am_arg | $_am_arg:* )
6060       break ;;
6061     * )
6062       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6063   esac
6064 done
6065 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6066 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6067          X"$_am_arg" : 'X\(//\)[^/]' \| \
6068          X"$_am_arg" : 'X\(//\)$' \| \
6069          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6070 $as_echo X"$_am_arg" |
6071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6072             s//\1/
6073             q
6074           }
6075           /^X\(\/\/\)[^/].*/{
6076             s//\1/
6077             q
6078           }
6079           /^X\(\/\/\)$/{
6080             s//\1/
6081             q
6082           }
6083           /^X\(\/\).*/{
6084             s//\1/
6085             q
6086           }
6087           s/.*/./; q'`/stamp-h$_am_stamp_count
6088  ;;
6089
6090   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6091 $as_echo "$as_me: executing $ac_file commands" >&6;}
6092  ;;
6093   esac
6094
6095
6096   case $ac_file$ac_mode in
6097     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6098   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6099   # are listed without --file.  Let's play safe and only enable the eval
6100   # if we detect the quoting.
6101   case $CONFIG_FILES in
6102   *\'*) eval set x "$CONFIG_FILES" ;;
6103   *)   set x $CONFIG_FILES ;;
6104   esac
6105   shift
6106   for mf
6107   do
6108     # Strip MF so we end up with the name of the file.
6109     mf=`echo "$mf" | sed -e 's/:.*$//'`
6110     # Check whether this is an Automake generated Makefile or not.
6111     # We used to match only the files named `Makefile.in', but
6112     # some people rename them; so instead we look at the file content.
6113     # Grep'ing the first line is not enough: some people post-process
6114     # each Makefile.in and add a new line on top of each file to say so.
6115     # Grep'ing the whole file is not good either: AIX grep has a line
6116     # limit of 2048, but all sed's we know have understand at least 4000.
6117     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6118       dirpart=`$as_dirname -- "$mf" ||
6119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120          X"$mf" : 'X\(//\)[^/]' \| \
6121          X"$mf" : 'X\(//\)$' \| \
6122          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6123 $as_echo X"$mf" |
6124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6125             s//\1/
6126             q
6127           }
6128           /^X\(\/\/\)[^/].*/{
6129             s//\1/
6130             q
6131           }
6132           /^X\(\/\/\)$/{
6133             s//\1/
6134             q
6135           }
6136           /^X\(\/\).*/{
6137             s//\1/
6138             q
6139           }
6140           s/.*/./; q'`
6141     else
6142       continue
6143     fi
6144     # Extract the definition of DEPDIR, am__include, and am__quote
6145     # from the Makefile without running `make'.
6146     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6147     test -z "$DEPDIR" && continue
6148     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6149     test -z "am__include" && continue
6150     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6151     # When using ansi2knr, U may be empty or an underscore; expand it
6152     U=`sed -n 's/^U = //p' < "$mf"`
6153     # Find all dependency output files, they are included files with
6154     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6155     # simplest approach to changing $(DEPDIR) to its actual value in the
6156     # expansion.
6157     for file in `sed -n "
6158       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6159          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6160       # Make sure the directory exists.
6161       test -f "$dirpart/$file" && continue
6162       fdir=`$as_dirname -- "$file" ||
6163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6164          X"$file" : 'X\(//\)[^/]' \| \
6165          X"$file" : 'X\(//\)$' \| \
6166          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6167 $as_echo X"$file" |
6168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6169             s//\1/
6170             q
6171           }
6172           /^X\(\/\/\)[^/].*/{
6173             s//\1/
6174             q
6175           }
6176           /^X\(\/\/\)$/{
6177             s//\1/
6178             q
6179           }
6180           /^X\(\/\).*/{
6181             s//\1/
6182             q
6183           }
6184           s/.*/./; q'`
6185       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6186       # echo "creating $dirpart/$file"
6187       echo '# dummy' > "$dirpart/$file"
6188     done
6189   done
6190 }
6191  ;;
6192
6193   esac
6194 done # for ac_tag
6195
6196
6197 as_fn_exit 0
6198 _ACEOF
6199 ac_clean_files=$ac_clean_files_save
6200
6201 test $ac_write_fail = 0 ||
6202   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6203
6204
6205 # configure is writing to config.log, and then calls config.status.
6206 # config.status does its own redirection, appending to config.log.
6207 # Unfortunately, on DOS this fails, as config.log is still kept open
6208 # by configure, so config.status won't be able to write to it; its
6209 # output is simply discarded.  So we exec the FD to /dev/null,
6210 # effectively closing config.log, so it can be properly (re)opened and
6211 # appended to by config.status.  When coming back to configure, we
6212 # need to make the FD available again.
6213 if test "$no_create" != yes; then
6214   ac_cs_success=:
6215   ac_config_status_args=
6216   test "$silent" = yes &&
6217     ac_config_status_args="$ac_config_status_args --quiet"
6218   exec 5>/dev/null
6219   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6220   exec 5>>config.log
6221   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6222   # would make configure fail if this is the last instruction.
6223   $ac_cs_success || as_fn_exit 1
6224 fi
6225 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6227 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6228 fi
6229