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