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