Merge tag 'upstream/1.0.2'
[psensor-pkg-ubuntu.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.0.2.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='1.0.2'
584 PACKAGE_STRING='psensor 1.0.2'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
587
588 ac_unique_file="src/ui.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 CPPCHECK_FALSE
630 CPPCHECK_TRUE
631 HAVE_CPPCHECK
632 HELP2MAN
633 GTOP_FALSE
634 GTOP_TRUE
635 GTOP_LIBS
636 GTOP_CFLAGS
637 LIBMICROHTTPD_FALSE
638 LIBMICROHTTPD_TRUE
639 LIBMICROHTTPD_LIBS
640 LIBMICROHTTPD_CFLAGS
641 LIBATIADL_LIBS
642 LIBATIADL_CFLAGS
643 LIBATIADL_FALSE
644 LIBATIADL_TRUE
645 UNITY_FALSE
646 UNITY_TRUE
647 UNITY_LIBS
648 UNITY_CFLAGS
649 NVIDIA_LIBS
650 NVIDIA_CFLAGS
651 NVIDIA_FALSE
652 NVIDIA_TRUE
653 JSON_FALSE
654 JSON_TRUE
655 JSON_LIBS
656 JSON_CFLAGS
657 CURL_FALSE
658 CURL_TRUE
659 CURL_LIBS
660 CURL_CFLAGS
661 APPINDICATOR_FALSE
662 APPINDICATOR_TRUE
663 APPINDICATOR_LIBS
664 APPINDICATOR_CFLAGS
665 LIBNOTIFY_FALSE
666 LIBNOTIFY_TRUE
667 LIBNOTIFY_LIBS
668 LIBNOTIFY_CFLAGS
669 ATASMART_FALSE
670 ATASMART_TRUE
671 ATASMART_LIBS
672 ATASMART_CFLAGS
673 GCONF_FALSE
674 GCONF_TRUE
675 GCONF_LIBS
676 GCONF_CFLAGS
677 GTK_FALSE
678 GTK_TRUE
679 GTK_LIBS
680 GTK_CFLAGS
681 XEXT_FALSE
682 XEXT_TRUE
683 XEXT_LIBS
684 XEXT_CFLAGS
685 X11_FALSE
686 X11_TRUE
687 X11_LIBS
688 X11_CFLAGS
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 SENSORS_LIBS
693 PTHREAD_LIBS
694 GCONF_SCHEMAS_INSTALL_FALSE
695 GCONF_SCHEMAS_INSTALL_TRUE
696 GCONF_SCHEMA_FILE_DIR
697 GCONF_SCHEMA_CONFIG_SOURCE
698 GCONFTOOL
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 LTLIBICONV
704 LIBICONV
705 INTL_MACOSX_LIBS
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 XGETTEXT_EXTRA_OPTIONS
715 MSGMERGE
716 XGETTEXT_015
717 XGETTEXT
718 GMSGFMT_015
719 MSGFMT_015
720 GMSGFMT
721 MSGFMT
722 GETTEXT_MACRO_VERSION
723 USE_NLS
724 SED
725 LIBOBJS
726 EGREP
727 GREP
728 CPP
729 XMKMF
730 ac_ct_AR
731 AR
732 RANLIB
733 am__fastdepCC_FALSE
734 am__fastdepCC_TRUE
735 CCDEPMODE
736 am__nodep
737 AMDEPBACKSLASH
738 AMDEP_FALSE
739 AMDEP_TRUE
740 am__quote
741 am__include
742 DEPDIR
743 OBJEXT
744 EXEEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
749 CC
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_dependency_tracking
815 enable_largefile
816 with_x
817 enable_nls
818 with_gnu_ld
819 enable_rpath
820 with_libiconv_prefix
821 with_libintl_prefix
822 with_gconf_source
823 with_gconf_schema_file_dir
824 enable_schemas_install
825 with_libatiadl
826 with_gtop
827 '
828       ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 XMKMF
837 CPP
838 PKG_CONFIG
839 PKG_CONFIG_PATH
840 PKG_CONFIG_LIBDIR
841 X11_CFLAGS
842 X11_LIBS
843 XEXT_CFLAGS
844 XEXT_LIBS
845 GTK_CFLAGS
846 GTK_LIBS
847 GCONF_CFLAGS
848 GCONF_LIBS
849 ATASMART_CFLAGS
850 ATASMART_LIBS
851 LIBNOTIFY_CFLAGS
852 LIBNOTIFY_LIBS
853 APPINDICATOR_CFLAGS
854 APPINDICATOR_LIBS
855 CURL_CFLAGS
856 CURL_LIBS
857 JSON_CFLAGS
858 JSON_LIBS
859 UNITY_CFLAGS
860 UNITY_LIBS
861 LIBMICROHTTPD_CFLAGS
862 LIBMICROHTTPD_LIBS
863 GTOP_CFLAGS
864 GTOP_LIBS'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919   # If the previous option needs an argument, assign it.
920   if test -n "$ac_prev"; then
921     eval $ac_prev=\$ac_option
922     ac_prev=
923     continue
924   fi
925
926   case $ac_option in
927   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928   *=)   ac_optarg= ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       as_fn_error $? "invalid feature name: $ac_useropt"
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       as_fn_error $? "invalid package name: $ac_useropt"
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid package name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     case $ac_envvar in #(
1258       '' | [0-9]* | *[!_$as_cr_alnum]* )
1259       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260     esac
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285   esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290                 datadir sysconfdir sharedstatedir localstatedir includedir \
1291                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292                 libdir localedir mandir
1293 do
1294   eval ac_val=\$$ac_var
1295   # Remove trailing slashes.
1296   case $ac_val in
1297     */ )
1298       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299       eval $ac_var=\$ac_val;;
1300   esac
1301   # Be sure to have absolute directory names.
1302   case $ac_val in
1303     [\\/$]* | ?:[\\/]* )  continue;;
1304     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305   esac
1306   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318   if test "x$build_alias" = x; then
1319     cross_compiling=maybe
1320   elif test "x$build_alias" != "x$host_alias"; then
1321     cross_compiling=yes
1322   fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334   as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336   as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341   ac_srcdir_defaulted=yes
1342   # Try the directory containing this script, then the parent directory.
1343   ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345          X"$as_myself" : 'X\(//\)[^/]' \| \
1346          X"$as_myself" : 'X\(//\)$' \| \
1347          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)[^/].*/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\).*/{
1362             s//\1/
1363             q
1364           }
1365           s/.*/./; q'`
1366   srcdir=$ac_confdir
1367   if test ! -r "$srcdir/$ac_unique_file"; then
1368     srcdir=..
1369   fi
1370 else
1371   ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380         pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383   srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_env_${ac_var}_value=\$${ac_var}
1394   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402   # Omit some internal or obsolete options to make the list less imposing.
1403   # This message is too long to be a string in the A/UX 3.1 sh.
1404   cat <<_ACEOF
1405 \`configure' configures psensor 1.0.2 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE.  See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415   -h, --help              display this help and exit
1416       --help=short        display options specific to this package
1417       --help=recursive    display the short help of all the included packages
1418   -V, --version           display version information and exit
1419   -q, --quiet, --silent   do not print \`checking ...' messages
1420       --cache-file=FILE   cache test results in FILE [disabled]
1421   -C, --config-cache      alias for \`--cache-file=config.cache'
1422   -n, --no-create         do not create output files
1423       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426   --prefix=PREFIX         install architecture-independent files in PREFIX
1427                           [$ac_default_prefix]
1428   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1429                           [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439   --bindir=DIR            user executables [EPREFIX/bin]
1440   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1441   --libexecdir=DIR        program executables [EPREFIX/libexec]
1442   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1443   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1444   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1445   --libdir=DIR            object code libraries [EPREFIX/lib]
1446   --includedir=DIR        C header files [PREFIX/include]
1447   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1448   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1449   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1450   --infodir=DIR           info documentation [DATAROOTDIR/info]
1451   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1452   --mandir=DIR            man documentation [DATAROOTDIR/man]
1453   --docdir=DIR            documentation root [DATAROOTDIR/doc/psensor]
1454   --htmldir=DIR           html documentation [DOCDIR]
1455   --dvidir=DIR            dvi documentation [DOCDIR]
1456   --pdfdir=DIR            pdf documentation [DOCDIR]
1457   --psdir=DIR             ps documentation [DOCDIR]
1458 _ACEOF
1459
1460   cat <<\_ACEOF
1461
1462 Program names:
1463   --program-prefix=PREFIX            prepend PREFIX to installed program names
1464   --program-suffix=SUFFIX            append SUFFIX to installed program names
1465   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466
1467 X features:
1468   --x-includes=DIR    X include files are in DIR
1469   --x-libraries=DIR   X library files are in DIR
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of psensor 1.0.2:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-dependency-tracking  speeds up one-time build
1488   --enable-dependency-tracking   do not reject slow dependency extractors
1489   --disable-largefile     omit support for large files
1490   --disable-nls           do not use Native Language Support
1491   --disable-rpath         do not hardcode runtime library paths
1492   --disable-schemas-install
1493                           Disable the schemas installation
1494
1495 Optional Packages:
1496   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498   --with-x                use the X Window System
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1501   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1502   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1503   --without-libintl-prefix     don't search for libintl in includedir and libdir
1504   --with-gconf-source=sourceaddress
1505                           Config database for installing schema files.
1506   --with-gconf-schema-file-dir=dir
1507                           Directory for installing schema files.
1508   --with-libatiadl=DIR   use libatiadlxx in DIR
1509   --with-gtop=yes|no   use gtop
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   LIBS        libraries to pass to the linker, e.g. -l<library>
1517   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518               you have headers in a nonstandard directory <include dir>
1519   XMKMF       Path to xmkmf, Makefile generator for X Window System
1520   CPP         C preprocessor
1521   PKG_CONFIG  path to pkg-config utility
1522   PKG_CONFIG_PATH
1523               directories to add to pkg-config's search path
1524   PKG_CONFIG_LIBDIR
1525               path overriding pkg-config's built-in search path
1526   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1527   X11_LIBS    linker flags for X11, overriding pkg-config
1528   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1529   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1530   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1531   GTK_LIBS    linker flags for GTK, overriding pkg-config
1532   GCONF_CFLAGS
1533               C compiler flags for GCONF, overriding pkg-config
1534   GCONF_LIBS  linker flags for GCONF, overriding pkg-config
1535   ATASMART_CFLAGS
1536               C compiler flags for ATASMART, overriding pkg-config
1537   ATASMART_LIBS
1538               linker flags for ATASMART, overriding pkg-config
1539   LIBNOTIFY_CFLAGS
1540               C compiler flags for LIBNOTIFY, overriding pkg-config
1541   LIBNOTIFY_LIBS
1542               linker flags for LIBNOTIFY, overriding pkg-config
1543   APPINDICATOR_CFLAGS
1544               C compiler flags for APPINDICATOR, overriding pkg-config
1545   APPINDICATOR_LIBS
1546               linker flags for APPINDICATOR, overriding pkg-config
1547   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1548   CURL_LIBS   linker flags for CURL, overriding pkg-config
1549   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1550   JSON_LIBS   linker flags for JSON, overriding pkg-config
1551   UNITY_CFLAGS
1552               C compiler flags for UNITY, overriding pkg-config
1553   UNITY_LIBS  linker flags for UNITY, overriding pkg-config
1554   LIBMICROHTTPD_CFLAGS
1555               C compiler flags for LIBMICROHTTPD, overriding pkg-config
1556   LIBMICROHTTPD_LIBS
1557               linker flags for LIBMICROHTTPD, overriding pkg-config
1558   GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1559   GTOP_LIBS   linker flags for GTOP, overriding pkg-config
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <jeanfi@gmail.com>.
1565 psensor home page: <http://wpitchoune.net/psensor>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" ||
1574       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575       continue
1576     ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582   # A ".." for each directory in $ac_dir_suffix.
1583   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584   case $ac_top_builddir_sub in
1585   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587   esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595   .)  # We are building in place.
1596     ac_srcdir=.
1597     ac_top_srcdir=$ac_top_builddir_sub
1598     ac_abs_top_srcdir=$ac_pwd ;;
1599   [\\/]* | ?:[\\/]* )  # Absolute name.
1600     ac_srcdir=$srcdir$ac_dir_suffix;
1601     ac_top_srcdir=$srcdir
1602     ac_abs_top_srcdir=$srcdir ;;
1603   *) # Relative name.
1604     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605     ac_top_srcdir=$ac_top_build_prefix$srcdir
1606     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610     cd "$ac_dir" || { ac_status=$?; continue; }
1611     # Check for guested configure.
1612     if test -f "$ac_srcdir/configure.gnu"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615     elif test -f "$ac_srcdir/configure"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure" --help=recursive
1618     else
1619       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620     fi || ac_status=$?
1621     cd "$ac_pwd" || { ac_status=$?; break; }
1622   done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627   cat <<\_ACEOF
1628 psensor configure 1.0.2
1629 generated by GNU Autoconf 2.69
1630
1631 Copyright (C) 2012 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635   exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694   ac_status=$?
1695   if test -s conftest.err; then
1696     grep -v '^ *+' conftest.err >conftest.er1
1697     cat conftest.er1 >&5
1698     mv -f conftest.er1 conftest.err
1699   fi
1700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701   test $ac_status = 0; } > conftest.i && {
1702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703          test ! -s conftest.err
1704        }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710     ac_retval=1
1711 fi
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   rm -f conftest.$ac_objext conftest$ac_exeext
1724   if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_link") 2>conftest.err
1732   ac_status=$?
1733   if test -s conftest.err; then
1734     grep -v '^ *+' conftest.err >conftest.er1
1735     cat conftest.er1 >&5
1736     mv -f conftest.er1 conftest.err
1737   fi
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } && {
1740          test -z "$ac_c_werror_flag" ||
1741          test ! -s conftest.err
1742        } && test -s conftest$ac_exeext && {
1743          test "$cross_compiling" = yes ||
1744          test -x conftest$ac_exeext
1745        }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755   # interfere with the next link command; also delete a directory that is
1756   # left behind by Apple's compiler.  We do this before executing the actions.
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_link
1762
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if eval \${$3+:} false; then :
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781   # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   ac_header_compiler=yes
1791 else
1792   ac_header_compiler=no
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1797
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806   ac_header_preproc=yes
1807 else
1808   ac_header_preproc=no
1809 fi
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1813
1814 # So?  What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816   yes:no: )
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821     ;;
1822   no:yes:* )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------- ##
1834 ## Report this to jeanfi@gmail.com ##
1835 ## ------------------------------- ##"
1836      ) | sed "s/^/$as_me: WARNING:     /" >&2
1837     ;;
1838 esac
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   eval "$3=\$ac_header_compiler"
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 fi
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_header_mongrel
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_link") 2>&5
1869   ac_status=$?
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872   { { case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_try") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; }; }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: program exited with status $ac_status" >&5
1885        $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888        ac_retval=$ac_status
1889 fi
1890   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892   as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists and can be compiled using the include files in
1899 # INCLUDES, setting the cache variable VAR accordingly.
1900 ac_fn_c_check_header_compile ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906   $as_echo_n "(cached) " >&6
1907 else
1908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   eval "$3=yes"
1915 else
1916   eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$3
1921                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925 } # ac_fn_c_check_header_compile
1926
1927 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1928 # -------------------------------------------
1929 # Tests whether TYPE exists after having included INCLUDES, setting cache
1930 # variable VAR accordingly.
1931 ac_fn_c_check_type ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937   $as_echo_n "(cached) " >&6
1938 else
1939   eval "$3=no"
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 int
1944 main ()
1945 {
1946 if (sizeof ($2))
1947          return 0;
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h.  */
1955 $4
1956 int
1957 main ()
1958 {
1959 if (sizeof (($2)))
1960             return 0;
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966
1967 else
1968   eval "$3=yes"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 fi
1974 eval ac_res=\$$3
1975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_type
1980
1981 # ac_fn_c_check_func LINENO FUNC VAR
1982 # ----------------------------------
1983 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1984 ac_fn_c_check_func ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990   $as_echo_n "(cached) " >&6
1991 else
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1996 #define $2 innocuous_$2
1997
1998 /* System header to define __stub macros and hopefully few prototypes,
1999     which can conflict with char $2 (); below.
2000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2001     <limits.h> exists even on freestanding compilers.  */
2002
2003 #ifdef __STDC__
2004 # include <limits.h>
2005 #else
2006 # include <assert.h>
2007 #endif
2008
2009 #undef $2
2010
2011 /* Override any GCC internal prototype to avoid an error.
2012    Use char because int might match the return type of a GCC
2013    builtin and then its argument prototype would still apply.  */
2014 #ifdef __cplusplus
2015 extern "C"
2016 #endif
2017 char $2 ();
2018 /* The GNU C library defines this for functions which it implements
2019     to always fail with ENOSYS.  Some functions are actually named
2020     something starting with __ and the normal name is an alias.  */
2021 #if defined __stub_$2 || defined __stub___$2
2022 choke me
2023 #endif
2024
2025 int
2026 main ()
2027 {
2028 return $2 ();
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_link "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext \
2039     conftest$ac_exeext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046 } # ac_fn_c_check_func
2047 cat >config.log <<_ACEOF
2048 This file contains any messages produced by compilers while
2049 running configure, to aid debugging if configure makes a mistake.
2050
2051 It was created by psensor $as_me 1.0.2, which was
2052 generated by GNU Autoconf 2.69.  Invocation command line was
2053
2054   $ $0 $@
2055
2056 _ACEOF
2057 exec 5>>config.log
2058 {
2059 cat <<_ASUNAME
2060 ## --------- ##
2061 ## Platform. ##
2062 ## --------- ##
2063
2064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2072
2073 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2074 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2077 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2078 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2079 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2080
2081 _ASUNAME
2082
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088     $as_echo "PATH: $as_dir"
2089   done
2090 IFS=$as_save_IFS
2091
2092 } >&5
2093
2094 cat >&5 <<_ACEOF
2095
2096
2097 ## ----------- ##
2098 ## Core tests. ##
2099 ## ----------- ##
2100
2101 _ACEOF
2102
2103
2104 # Keep a trace of the command line.
2105 # Strip out --no-create and --no-recursion so they do not pile up.
2106 # Strip out --silent because we don't want to record it for future runs.
2107 # Also quote any args containing shell meta-characters.
2108 # Make two passes to allow for proper duplicate-argument suppression.
2109 ac_configure_args=
2110 ac_configure_args0=
2111 ac_configure_args1=
2112 ac_must_keep_next=false
2113 for ac_pass in 1 2
2114 do
2115   for ac_arg
2116   do
2117     case $ac_arg in
2118     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120     | -silent | --silent | --silen | --sile | --sil)
2121       continue ;;
2122     *\'*)
2123       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2124     esac
2125     case $ac_pass in
2126     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2127     2)
2128       as_fn_append ac_configure_args1 " '$ac_arg'"
2129       if test $ac_must_keep_next = true; then
2130         ac_must_keep_next=false # Got value, back to normal.
2131       else
2132         case $ac_arg in
2133           *=* | --config-cache | -C | -disable-* | --disable-* \
2134           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136           | -with-* | --with-* | -without-* | --without-* | --x)
2137             case "$ac_configure_args0 " in
2138               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139             esac
2140             ;;
2141           -* ) ac_must_keep_next=true ;;
2142         esac
2143       fi
2144       as_fn_append ac_configure_args " '$ac_arg'"
2145       ;;
2146     esac
2147   done
2148 done
2149 { ac_configure_args0=; unset ac_configure_args0;}
2150 { ac_configure_args1=; unset ac_configure_args1;}
2151
2152 # When interrupted or exit'd, cleanup temporary files, and complete
2153 # config.log.  We remove comments because anyway the quotes in there
2154 # would cause problems or look ugly.
2155 # WARNING: Use '\'' to represent an apostrophe within the trap.
2156 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157 trap 'exit_status=$?
2158   # Save into config.log some information that might help in debugging.
2159   {
2160     echo
2161
2162     $as_echo "## ---------------- ##
2163 ## Cache variables. ##
2164 ## ---------------- ##"
2165     echo
2166     # The following way of writing the cache mishandles newlines in values,
2167 (
2168   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169     eval ac_val=\$$ac_var
2170     case $ac_val in #(
2171     *${as_nl}*)
2172       case $ac_var in #(
2173       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2175       esac
2176       case $ac_var in #(
2177       _ | IFS | as_nl) ;; #(
2178       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179       *) { eval $ac_var=; unset $ac_var;} ;;
2180       esac ;;
2181     esac
2182   done
2183   (set) 2>&1 |
2184     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185     *${as_nl}ac_space=\ *)
2186       sed -n \
2187         "s/'\''/'\''\\\\'\'''\''/g;
2188           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189       ;; #(
2190     *)
2191       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192       ;;
2193     esac |
2194     sort
2195 )
2196     echo
2197
2198     $as_echo "## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##"
2201     echo
2202     for ac_var in $ac_subst_vars
2203     do
2204       eval ac_val=\$$ac_var
2205       case $ac_val in
2206       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207       esac
2208       $as_echo "$ac_var='\''$ac_val'\''"
2209     done | sort
2210     echo
2211
2212     if test -n "$ac_subst_files"; then
2213       $as_echo "## ------------------- ##
2214 ## File substitutions. ##
2215 ## ------------------- ##"
2216       echo
2217       for ac_var in $ac_subst_files
2218       do
2219         eval ac_val=\$$ac_var
2220         case $ac_val in
2221         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222         esac
2223         $as_echo "$ac_var='\''$ac_val'\''"
2224       done | sort
2225       echo
2226     fi
2227
2228     if test -s confdefs.h; then
2229       $as_echo "## ----------- ##
2230 ## confdefs.h. ##
2231 ## ----------- ##"
2232       echo
2233       cat confdefs.h
2234       echo
2235     fi
2236     test "$ac_signal" != 0 &&
2237       $as_echo "$as_me: caught signal $ac_signal"
2238     $as_echo "$as_me: exit $exit_status"
2239   } >&5
2240   rm -f core *.core core.conftest.* &&
2241     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242     exit $exit_status
2243 ' 0
2244 for ac_signal in 1 2 13 15; do
2245   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246 done
2247 ac_signal=0
2248
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2251
2252 $as_echo "/* confdefs.h */" > confdefs.h
2253
2254 # Predefined preprocessor variables.
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_NAME "$PACKAGE_NAME"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_STRING "$PACKAGE_STRING"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_URL "$PACKAGE_URL"
2278 _ACEOF
2279
2280
2281 # Let the site file select an alternate cache file if it wants to.
2282 # Prefer an explicitly selected file to automatically selected ones.
2283 ac_site_file1=NONE
2284 ac_site_file2=NONE
2285 if test -n "$CONFIG_SITE"; then
2286   # We do not want a PATH search for config.site.
2287   case $CONFIG_SITE in #((
2288     -*)  ac_site_file1=./$CONFIG_SITE;;
2289     */*) ac_site_file1=$CONFIG_SITE;;
2290     *)   ac_site_file1=./$CONFIG_SITE;;
2291   esac
2292 elif test "x$prefix" != xNONE; then
2293   ac_site_file1=$prefix/share/config.site
2294   ac_site_file2=$prefix/etc/config.site
2295 else
2296   ac_site_file1=$ac_default_prefix/share/config.site
2297   ac_site_file2=$ac_default_prefix/etc/config.site
2298 fi
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300 do
2301   test "x$ac_site_file" = xNONE && continue
2302   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305     sed 's/^/| /' "$ac_site_file" >&5
2306     . "$ac_site_file" \
2307       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 as_fn_error $? "failed to load site script $ac_site_file
2310 See \`config.log' for more details" "$LINENO" 5; }
2311   fi
2312 done
2313
2314 if test -r "$cache_file"; then
2315   # Some versions of bash will fail to source /dev/null (special files
2316   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2317   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319 $as_echo "$as_me: loading cache $cache_file" >&6;}
2320     case $cache_file in
2321       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322       *)                      . "./$cache_file";;
2323     esac
2324   fi
2325 else
2326   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327 $as_echo "$as_me: creating cache $cache_file" >&6;}
2328   >$cache_file
2329 fi
2330
2331 gt_needs="$gt_needs "
2332 # Check that the precious variables saved in the cache have kept the same
2333 # value.
2334 ac_cache_corrupted=false
2335 for ac_var in $ac_precious_vars; do
2336   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2337   eval ac_new_set=\$ac_env_${ac_var}_set
2338   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2339   eval ac_new_val=\$ac_env_${ac_var}_value
2340   case $ac_old_set,$ac_new_set in
2341     set,)
2342       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2344       ac_cache_corrupted=: ;;
2345     ,set)
2346       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2348       ac_cache_corrupted=: ;;
2349     ,);;
2350     *)
2351       if test "x$ac_old_val" != "x$ac_new_val"; then
2352         # differences in whitespace do not lead to failure.
2353         ac_old_val_w=`echo x $ac_old_val`
2354         ac_new_val_w=`echo x $ac_new_val`
2355         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2356           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2358           ac_cache_corrupted=:
2359         else
2360           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2362           eval $ac_var=\$ac_old_val
2363         fi
2364         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2365 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2366         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2367 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2368       fi;;
2369   esac
2370   # Pass precious variables to config.status.
2371   if test "$ac_new_set" = set; then
2372     case $ac_new_val in
2373     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374     *) ac_arg=$ac_var=$ac_new_val ;;
2375     esac
2376     case " $ac_configure_args " in
2377       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2378       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2379     esac
2380   fi
2381 done
2382 if $ac_cache_corrupted; then
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2388 fi
2389 ## -------------------- ##
2390 ## Main body of script. ##
2391 ## -------------------- ##
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399
2400
2401 am__api_version='1.11'
2402
2403 ac_aux_dir=
2404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2405   if test -f "$ac_dir/install-sh"; then
2406     ac_aux_dir=$ac_dir
2407     ac_install_sh="$ac_aux_dir/install-sh -c"
2408     break
2409   elif test -f "$ac_dir/install.sh"; then
2410     ac_aux_dir=$ac_dir
2411     ac_install_sh="$ac_aux_dir/install.sh -c"
2412     break
2413   elif test -f "$ac_dir/shtool"; then
2414     ac_aux_dir=$ac_dir
2415     ac_install_sh="$ac_aux_dir/shtool install -c"
2416     break
2417   fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2421 fi
2422
2423 # These three variables are undocumented and unsupported,
2424 # and are intended to be withdrawn in a future Autoconf release.
2425 # They can cause serious problems if a builder's source tree is in a directory
2426 # whose full name contains unusual characters.
2427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2429 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2430
2431
2432 # Find a good install program.  We prefer a C program (faster),
2433 # so one script is as good as another.  But avoid the broken or
2434 # incompatible versions:
2435 # SysV /etc/install, /usr/sbin/install
2436 # SunOS /usr/etc/install
2437 # IRIX /sbin/install
2438 # AIX /bin/install
2439 # AmigaOS /C/install, which installs bootblocks on floppy discs
2440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2443 # OS/2's system install, which has a completely different semantic
2444 # ./install, which can be erroneously created by make from ./install.sh.
2445 # Reject install programs that cannot install multiple files.
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2447 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2448 if test -z "$INSTALL"; then
2449 if ${ac_cv_path_install+:} false; then :
2450   $as_echo_n "(cached) " >&6
2451 else
2452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457     # Account for people who put trailing slashes in PATH elements.
2458 case $as_dir/ in #((
2459   ./ | .// | /[cC]/* | \
2460   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2461   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2462   /usr/ucb/* ) ;;
2463   *)
2464     # OSF1 and SCO ODT 3.0 have their own names for install.
2465     # Don't use installbsd from OSF since it installs stuff as root
2466     # by default.
2467     for ac_prog in ginstall scoinst install; do
2468       for ac_exec_ext in '' $ac_executable_extensions; do
2469         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2470           if test $ac_prog = install &&
2471             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472             # AIX install.  It has an incompatible calling convention.
2473             :
2474           elif test $ac_prog = install &&
2475             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476             # program-specific install script used by HP pwplus--don't use.
2477             :
2478           else
2479             rm -rf conftest.one conftest.two conftest.dir
2480             echo one > conftest.one
2481             echo two > conftest.two
2482             mkdir conftest.dir
2483             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2484               test -s conftest.one && test -s conftest.two &&
2485               test -s conftest.dir/conftest.one &&
2486               test -s conftest.dir/conftest.two
2487             then
2488               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489               break 3
2490             fi
2491           fi
2492         fi
2493       done
2494     done
2495     ;;
2496 esac
2497
2498   done
2499 IFS=$as_save_IFS
2500
2501 rm -rf conftest.one conftest.two conftest.dir
2502
2503 fi
2504   if test "${ac_cv_path_install+set}" = set; then
2505     INSTALL=$ac_cv_path_install
2506   else
2507     # As a last resort, use the slow shell script.  Don't cache a
2508     # value for INSTALL within a source directory, because that will
2509     # break other packages using the cache if that directory is
2510     # removed, or if the value is a relative name.
2511     INSTALL=$ac_install_sh
2512   fi
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2515 $as_echo "$INSTALL" >&6; }
2516
2517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518 # It thinks the first close brace ends the variable substitution.
2519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520
2521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522
2523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2526 $as_echo_n "checking whether build environment is sane... " >&6; }
2527 # Just in case
2528 sleep 1
2529 echo timestamp > conftest.file
2530 # Reject unsafe characters in $srcdir or the absolute working directory
2531 # name.  Accept space and tab only in the latter.
2532 am_lf='
2533 '
2534 case `pwd` in
2535   *[\\\"\#\$\&\'\`$am_lf]*)
2536     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2537 esac
2538 case $srcdir in
2539   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2540     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2541 esac
2542
2543 # Do `set' in a subshell so we don't clobber the current shell's
2544 # arguments.  Must try -L first in case configure is actually a
2545 # symlink; some systems play weird games with the mod time of symlinks
2546 # (eg FreeBSD returns the mod time of the symlink's containing
2547 # directory).
2548 if (
2549    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2550    if test "$*" = "X"; then
2551       # -L didn't work.
2552       set X `ls -t "$srcdir/configure" conftest.file`
2553    fi
2554    rm -f conftest.file
2555    if test "$*" != "X $srcdir/configure conftest.file" \
2556       && test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558       # If neither matched, then we have a broken ls.  This can happen
2559       # if, for instance, CONFIG_SHELL is bash and it inherits a
2560       # broken ls alias from the environment.  This has actually
2561       # happened.  Such a system could not be considered "sane".
2562       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2563 alias in your environment" "$LINENO" 5
2564    fi
2565
2566    test "$2" = conftest.file
2567    )
2568 then
2569    # Ok.
2570    :
2571 else
2572    as_fn_error $? "newly created file is older than distributed files!
2573 Check your system clock" "$LINENO" 5
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 test "$program_prefix" != NONE &&
2578   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587 # expand $ac_aux_dir to an absolute path
2588 am_aux_dir=`cd $ac_aux_dir && pwd`
2589
2590 if test x"${MISSING+set}" != xset; then
2591   case $am_aux_dir in
2592   *\ * | *\     *)
2593     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594   *)
2595     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596   esac
2597 fi
2598 # Use eval to expand $SHELL
2599 if eval "$MISSING --run true"; then
2600   am_missing_run="$MISSING --run "
2601 else
2602   am_missing_run=
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2604 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2605 fi
2606
2607 if test x"${install_sh}" != xset; then
2608   case $am_aux_dir in
2609   *\ * | *\     *)
2610     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611   *)
2612     install_sh="\${SHELL} $am_aux_dir/install-sh"
2613   esac
2614 fi
2615
2616 # Installed binaries are usually stripped using `strip' when the user
2617 # run `make install-strip'.  However `strip' might not be the right
2618 # tool to use in cross-compilation environments, therefore Automake
2619 # will honor the `STRIP' environment variable to overrule this program.
2620 if test "$cross_compiling" != no; then
2621   if test -n "$ac_tool_prefix"; then
2622   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_STRIP+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   if test -n "$STRIP"; then
2630   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637     for ac_exec_ext in '' $ac_executable_extensions; do
2638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644   done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 STRIP=$ac_cv_prog_STRIP
2650 if test -n "$STRIP"; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652 $as_echo "$STRIP" >&6; }
2653 else
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$ac_cv_prog_STRIP"; then
2661   ac_ct_STRIP=$STRIP
2662   # Extract the first word of "strip", so it can be a program name with args.
2663 set dummy strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667   $as_echo_n "(cached) " >&6
2668 else
2669   if test -n "$ac_ct_STRIP"; then
2670   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     for ac_exec_ext in '' $ac_executable_extensions; do
2678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679     ac_cv_prog_ac_ct_STRIP="strip"
2680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684   done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690 if test -n "$ac_ct_STRIP"; then
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692 $as_echo "$ac_ct_STRIP" >&6; }
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698   if test "x$ac_ct_STRIP" = x; then
2699     STRIP=":"
2700   else
2701     case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707     STRIP=$ac_ct_STRIP
2708   fi
2709 else
2710   STRIP="$ac_cv_prog_STRIP"
2711 fi
2712
2713 fi
2714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718 if test -z "$MKDIR_P"; then
2719   if ${ac_cv_path_mkdir+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_prog in mkdir gmkdir; do
2728          for ac_exec_ext in '' $ac_executable_extensions; do
2729            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731              'mkdir (GNU coreutils) '* | \
2732              'mkdir (coreutils) '* | \
2733              'mkdir (fileutils) '4.1*)
2734                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735                break 3;;
2736            esac
2737          done
2738        done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743
2744   test -d ./--version && rmdir ./--version
2745   if test "${ac_cv_path_mkdir+set}" = set; then
2746     MKDIR_P="$ac_cv_path_mkdir -p"
2747   else
2748     # As a last resort, use the slow shell script.  Don't cache a
2749     # value for MKDIR_P within a source directory, because that will
2750     # break other packages using the cache if that directory is
2751     # removed, or if the value is a relative name.
2752     MKDIR_P="$ac_install_sh -d"
2753   fi
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 $as_echo "$MKDIR_P" >&6; }
2757
2758 mkdir_p="$MKDIR_P"
2759 case $mkdir_p in
2760   [\\/$]* | ?:[\\/]*) ;;
2761   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2762 esac
2763
2764 for ac_prog in gawk mawk nawk awk
2765 do
2766   # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_AWK+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$AWK"; then
2774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     ac_cv_prog_AWK="$ac_prog"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 AWK=$ac_cv_prog_AWK
2794 if test -n "$AWK"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2796 $as_echo "$AWK" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803   test -n "$AWK" && break
2804 done
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2808 set x ${MAKE-make}
2809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2810 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   cat >conftest.make <<\_ACEOF
2814 SHELL = /bin/sh
2815 all:
2816         @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 _ACEOF
2818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820   *@@@%%%=?*=@@@%%%*)
2821     eval ac_cv_prog_make_${ac_make}_set=yes;;
2822   *)
2823     eval ac_cv_prog_make_${ac_make}_set=no;;
2824 esac
2825 rm -f conftest.make
2826 fi
2827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830   SET_MAKE=
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834   SET_MAKE="MAKE=${MAKE-make}"
2835 fi
2836
2837 rm -rf .tst 2>/dev/null
2838 mkdir .tst 2>/dev/null
2839 if test -d .tst; then
2840   am__leading_dot=.
2841 else
2842   am__leading_dot=_
2843 fi
2844 rmdir .tst 2>/dev/null
2845
2846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848   # is not polluted with repeated "-I."
2849   am__isrc=' -I$(srcdir)'
2850   # test to see if srcdir already configured
2851   if test -f $srcdir/config.status; then
2852     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853   fi
2854 fi
2855
2856 # test whether we have cygpath
2857 if test -z "$CYGPATH_W"; then
2858   if (cygpath --version) >/dev/null 2>/dev/null; then
2859     CYGPATH_W='cygpath -w'
2860   else
2861     CYGPATH_W=echo
2862   fi
2863 fi
2864
2865
2866 # Define the identity of the package.
2867  PACKAGE='psensor'
2868  VERSION='1.0.2'
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE "$PACKAGE"
2873 _ACEOF
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define VERSION "$VERSION"
2878 _ACEOF
2879
2880 # Some tools Automake needs.
2881
2882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896 # We need awk for the "check" target.  The system "awk" is bad on
2897 # some platforms.
2898 # Always define AMTAR for backward compatibility.  Yes, it's still used
2899 # in the wild :-(  We should find a proper way to deprecate it ...
2900 AMTAR='$${TAR-tar}'
2901
2902 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909
2910 ac_config_headers="$ac_config_headers config.h"
2911
2912
2913 # m4
2914
2915
2916 # Checks for programs.
2917 ac_ext=c
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 if test -n "$ac_tool_prefix"; then
2923   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 fi
2961 if test -z "$ac_cv_prog_CC"; then
2962   ac_ct_CC=$CC
2963   # Extract the first word of "gcc", so it can be a program name with args.
2964 set dummy gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$ac_ct_CC"; then
2971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_ac_ct_CC="gcc"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 $as_echo "$ac_ct_CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999   if test "x$ac_ct_CC" = x; then
3000     CC=""
3001   else
3002     case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008     CC=$ac_ct_CC
3009   fi
3010 else
3011   CC="$ac_cv_prog_CC"
3012 fi
3013
3014 if test -z "$CC"; then
3015           if test -n "$ac_tool_prefix"; then
3016     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$CC"; then
3024   ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033     ac_cv_prog_CC="${ac_tool_prefix}cc"
3034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038   done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053   fi
3054 fi
3055 if test -z "$CC"; then
3056   # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$CC"; then
3064   ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066   ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075        ac_prog_rejected=yes
3076        continue
3077      fi
3078     ac_cv_prog_CC="cc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 if test $ac_prog_rejected = yes; then
3087   # We found a bogon in the path, so make sure we never use it.
3088   set dummy $ac_cv_prog_CC
3089   shift
3090   if test $# != 0; then
3091     # We chose a different compiler from the bogus one.
3092     # However, it has the same basename, so the bogon will be chosen
3093     # first if we set CC to just the basename; use the full file name.
3094     shift
3095     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096   fi
3097 fi
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$CC"; then
3112   if test -n "$ac_tool_prefix"; then
3113   for ac_prog in cl.exe
3114   do
3115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   if test -n "$CC"; then
3123   ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_exec_ext in '' $ac_executable_extensions; do
3131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137   done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152     test -n "$CC" && break
3153   done
3154 fi
3155 if test -z "$CC"; then
3156   ac_ct_CC=$CC
3157   for ac_prog in cl.exe
3158 do
3159   # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$ac_ct_CC"; then
3167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_prog_ac_ct_CC="$ac_prog"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196   test -n "$ac_ct_CC" && break
3197 done
3198
3199   if test "x$ac_ct_CC" = x; then
3200     CC=""
3201   else
3202     case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208     CC=$ac_ct_CC
3209   fi
3210 fi
3211
3212 fi
3213
3214
3215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "no acceptable C compiler found in \$PATH
3218 See \`config.log' for more details" "$LINENO" 5; }
3219
3220 # Provide some information about the compiler.
3221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3222 set X $ac_compile
3223 ac_compiler=$2
3224 for ac_option in --version -v -V -qversion; do
3225   { { ac_try="$ac_compiler $ac_option >&5"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233   ac_status=$?
3234   if test -s conftest.err; then
3235     sed '10a\
3236 ... rest of stderr output deleted ...
3237          10q' conftest.err >conftest.er1
3238     cat conftest.er1 >&5
3239   fi
3240   rm -f conftest.er1 conftest.err
3241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242   test $ac_status = 0; }
3243 done
3244
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 ac_clean_files_save=$ac_clean_files
3257 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3258 # Try to create an executable without -o first, disregard a.out.
3259 # It will help us diagnose broken compilers, and finding out an intuition
3260 # of exeext.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3262 $as_echo_n "checking whether the C compiler works... " >&6; }
3263 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264
3265 # The possible output files:
3266 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267
3268 ac_rmfiles=
3269 for ac_file in $ac_files
3270 do
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274   esac
3275 done
3276 rm -f $ac_rmfiles
3277
3278 if { { ac_try="$ac_link_default"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285   (eval "$ac_link_default") 2>&5
3286   ac_status=$?
3287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288   test $ac_status = 0; }; then :
3289   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3291 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3292 # so that the user can short-circuit this test for compilers unknown to
3293 # Autoconf.
3294 for ac_file in $ac_files ''
3295 do
3296   test -f "$ac_file" || continue
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299         ;;
3300     [ab].out )
3301         # We found the default executable, but exeext='' is most
3302         # certainly right.
3303         break;;
3304     *.* )
3305         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306         then :; else
3307            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308         fi
3309         # We set ac_cv_exeext here because the later test for it is not
3310         # safe: cross compilers may not add the suffix if given an `-o'
3311         # argument, so we may need to know it at that point already.
3312         # Even if this section looks crufty: it has the advantage of
3313         # actually working.
3314         break;;
3315     * )
3316         break;;
3317   esac
3318 done
3319 test "$ac_cv_exeext" = no && ac_cv_exeext=
3320
3321 else
3322   ac_file=''
3323 fi
3324 if test -z "$ac_file"; then :
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error 77 "C compiler cannot create executables
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339 $as_echo_n "checking for C compiler default output file name... " >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3341 $as_echo "$ac_file" >&6; }
3342 ac_exeext=$ac_cv_exeext
3343
3344 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { { ac_try="$ac_link"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355   (eval "$ac_link") 2>&5
3356   ac_status=$?
3357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358   test $ac_status = 0; }; then :
3359   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 # `rm'.
3363 for ac_file in conftest.exe conftest conftest.*; do
3364   test -f "$ac_file" || continue
3365   case $ac_file in
3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368           break;;
3369     * ) break;;
3370   esac
3371 done
3372 else
3373   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 fi
3378 rm -f conftest conftest$ac_cv_exeext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3380 $as_echo "$ac_cv_exeext" >&6; }
3381
3382 rm -f conftest.$ac_ext
3383 EXEEXT=$ac_cv_exeext
3384 ac_exeext=$EXEEXT
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387 #include <stdio.h>
3388 int
3389 main ()
3390 {
3391 FILE *f = fopen ("conftest.out", "w");
3392  return ferror (f) || fclose (f) != 0;
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files="$ac_clean_files conftest.out"
3399 # Check that the compiler produces executables we can run.  If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 if test "$cross_compiling" != yes; then
3404   { { ac_try="$ac_link"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_link") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }
3415   if { ac_try='./conftest$ac_cv_exeext'
3416   { { case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422   (eval "$ac_try") 2>&5
3423   ac_status=$?
3424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425   test $ac_status = 0; }; }; then
3426     cross_compiling=no
3427   else
3428     if test "$cross_compiling" = maybe; then
3429         cross_compiling=yes
3430     else
3431         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot run C compiled programs.
3434 If you meant to cross compile, use \`--host'.
3435 See \`config.log' for more details" "$LINENO" 5; }
3436     fi
3437   fi
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3441
3442 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if ${ac_cv_objext+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451
3452 int
3453 main ()
3454 {
3455
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468   (eval "$ac_compile") 2>&5
3469   ac_status=$?
3470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471   test $ac_status = 0; }; then :
3472   for ac_file in conftest.o conftest.obj conftest.*; do
3473   test -f "$ac_file" || continue;
3474   case $ac_file in
3475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477        break;;
3478   esac
3479 done
3480 else
3481   $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details" "$LINENO" 5; }
3488 fi
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if ${ac_cv_c_compiler_gnu+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506 #ifndef __GNUC__
3507        choke me
3508 #endif
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515   ac_compiler_gnu=yes
3516 else
3517   ac_compiler_gnu=no
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3526   GCC=yes
3527 else
3528   GCC=
3529 fi
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if ${ac_cv_prog_cc_g+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   ac_save_c_werror_flag=$ac_c_werror_flag
3538    ac_c_werror_flag=yes
3539    ac_cv_prog_cc_g=no
3540    CFLAGS="-g"
3541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553   ac_cv_prog_cc_g=yes
3554 else
3555   CFLAGS=""
3556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568
3569 else
3570   ac_c_werror_flag=$ac_save_c_werror_flag
3571          CFLAGS="-g"
3572          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575 int
3576 main ()
3577 {
3578
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584   ac_cv_prog_cc_g=yes
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591    ac_c_werror_flag=$ac_save_c_werror_flag
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596   CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598   if test "$GCC" = yes; then
3599     CFLAGS="-g -O2"
3600   else
3601     CFLAGS="-g"
3602   fi
3603 else
3604   if test "$GCC" = yes; then
3605     CFLAGS="-O2"
3606   else
3607     CFLAGS=
3608   fi
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if ${ac_cv_prog_cc_c89+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_cv_prog_cc_c89=no
3616 ac_save_CC=$CC
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 struct stat;
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3626      char **p;
3627      int i;
3628 {
3629   return p[i];
3630 }
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3632 {
3633   char *s;
3634   va_list v;
3635   va_start (v,p);
3636   s = g (p, va_arg (v,int));
3637   va_end (v);
3638   return s;
3639 }
3640
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3642    function prototypes and stuff, but not '\xHH' hex character constants.
3643    These don't provoke an error unfortunately, instead are silently treated
3644    as 'x'.  The following induces an error, until -std is added to get
3645    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3646    array size at least.  It's necessary to write '\x00'==0 to get something
3647    that's true only with -std.  */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651    inside strings and character constants.  */
3652 #define FOO(x) 'x'
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659 int argc;
3660 char **argv;
3661 int
3662 main ()
3663 {
3664 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 do
3672   CC="$ac_save_CC $ac_arg"
3673   if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_cv_prog_cc_c89=$ac_arg
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext
3677   test "x$ac_cv_prog_cc_c89" != "xno" && break
3678 done
3679 rm -f conftest.$ac_ext
3680 CC=$ac_save_CC
3681
3682 fi
3683 # AC_CACHE_VAL
3684 case "x$ac_cv_prog_cc_c89" in
3685   x)
3686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
3688   xno)
3689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
3691   *)
3692     CC="$CC $ac_cv_prog_cc_c89"
3693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695 esac
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3697
3698 fi
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 DEPDIR="${am__leading_dot}deps"
3706
3707 ac_config_commands="$ac_config_commands depfiles"
3708
3709
3710 am_make=${MAKE-make}
3711 cat > confinc << 'END'
3712 am__doit:
3713         @echo this is the am__doit target
3714 .PHONY: am__doit
3715 END
3716 # If we don't find an include directive, just comment out the code.
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3718 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3719 am__include="#"
3720 am__quote=
3721 _am_result=none
3722 # First try GNU make style include.
3723 echo "include confinc" > confmf
3724 # Ignore all kinds of additional output from `make'.
3725 case `$am_make -s -f confmf 2> /dev/null` in #(
3726 *the\ am__doit\ target*)
3727   am__include=include
3728   am__quote=
3729   _am_result=GNU
3730   ;;
3731 esac
3732 # Now try BSD make style include.
3733 if test "$am__include" = "#"; then
3734    echo '.include "confinc"' > confmf
3735    case `$am_make -s -f confmf 2> /dev/null` in #(
3736    *the\ am__doit\ target*)
3737      am__include=.include
3738      am__quote="\""
3739      _am_result=BSD
3740      ;;
3741    esac
3742 fi
3743
3744
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3746 $as_echo "$_am_result" >&6; }
3747 rm -f confinc confmf
3748
3749 # Check whether --enable-dependency-tracking was given.
3750 if test "${enable_dependency_tracking+set}" = set; then :
3751   enableval=$enable_dependency_tracking;
3752 fi
3753
3754 if test "x$enable_dependency_tracking" != xno; then
3755   am_depcomp="$ac_aux_dir/depcomp"
3756   AMDEPBACKSLASH='\'
3757   am__nodep='_no'
3758 fi
3759  if test "x$enable_dependency_tracking" != xno; then
3760   AMDEP_TRUE=
3761   AMDEP_FALSE='#'
3762 else
3763   AMDEP_TRUE='#'
3764   AMDEP_FALSE=
3765 fi
3766
3767
3768
3769 depcc="$CC"   am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777   # We make a subdir and do the tests there.  Otherwise we can end up
3778   # making bogus files that we don't know about and never remove.  For
3779   # instance it was reported that on HP-UX the gcc test will end up
3780   # making a dummy file named `D' -- because `-MD' means `put the output
3781   # in D'.
3782   rm -rf conftest.dir
3783   mkdir conftest.dir
3784   # Copy depcomp to subdir because otherwise we won't find it if we're
3785   # using a relative directory.
3786   cp "$am_depcomp" conftest.dir
3787   cd conftest.dir
3788   # We will build objects and dependencies in a subdirectory because
3789   # it helps to detect inapplicable dependency modes.  For instance
3790   # both Tru64's cc and ICC support -MD to output dependencies as a
3791   # side effect of compilation, but ICC will put the dependencies in
3792   # the current directory while Tru64 will put them in the object
3793   # directory.
3794   mkdir sub
3795
3796   am_cv_CC_dependencies_compiler_type=none
3797   if test "$am_compiler_list" = ""; then
3798      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799   fi
3800   am__universal=false
3801   case " $depcc " in #(
3802      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803      esac
3804
3805   for depmode in $am_compiler_list; do
3806     # Setup a source with many dependencies, because some compilers
3807     # like to wrap large dependency lists on column 80 (with \), and
3808     # we should not choose a depcomp mode which is confused by this.
3809     #
3810     # We need to recreate these files for each test, as the compiler may
3811     # overwrite some of them when testing with obscure command lines.
3812     # This happens at least with the AIX C compiler.
3813     : > sub/conftest.c
3814     for i in 1 2 3 4 5 6; do
3815       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817       # Solaris 8's {/usr,}/bin/sh.
3818       touch sub/conftst$i.h
3819     done
3820     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823     # mode.  It turns out that the SunPro C++ compiler does not properly
3824     # handle `-M -o', and we need to detect this.  Also, some Intel
3825     # versions had trouble with output in subdirs
3826     am__obj=sub/conftest.${OBJEXT-o}
3827     am__minus_obj="-o $am__obj"
3828     case $depmode in
3829     gcc)
3830       # This depmode causes a compiler race in universal mode.
3831       test "$am__universal" = false || continue
3832       ;;
3833     nosideeffect)
3834       # after this tag, mechanisms are not by side-effect, so they'll
3835       # only be used when explicitly requested
3836       if test "x$enable_dependency_tracking" = xyes; then
3837         continue
3838       else
3839         break
3840       fi
3841       ;;
3842     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843       # This compiler won't grok `-c -o', but also, the minuso test has
3844       # not run yet.  These depmodes are late enough in the game, and
3845       # so weak that their functioning should not be impacted.
3846       am__obj=conftest.${OBJEXT-o}
3847       am__minus_obj=
3848       ;;
3849     none) break ;;
3850     esac
3851     if depmode=$depmode \
3852        source=sub/conftest.c object=$am__obj \
3853        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855          >/dev/null 2>conftest.err &&
3856        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860       # icc doesn't choke on unknown options, it will just issue warnings
3861       # or remarks (even with -Werror).  So we grep stderr for any message
3862       # that says an option was ignored or not supported.
3863       # When given -MP, icc 7.0 and 7.1 complain thusly:
3864       #   icc: Command line warning: ignoring option '-M'; no argument required
3865       # The diagnosis changed in icc 8.0:
3866       #   icc: Command line remark: option '-MP' not supported
3867       if (grep 'ignoring option' conftest.err ||
3868           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869         am_cv_CC_dependencies_compiler_type=$depmode
3870         break
3871       fi
3872     fi
3873   done
3874
3875   cd ..
3876   rm -rf conftest.dir
3877 else
3878   am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886  if
3887   test "x$enable_dependency_tracking" != xno \
3888   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889   am__fastdepCC_TRUE=
3890   am__fastdepCC_FALSE='#'
3891 else
3892   am__fastdepCC_TRUE='#'
3893   am__fastdepCC_FALSE=
3894 fi
3895
3896
3897 if test "x$CC" != xcc; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3899 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3902 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3903 fi
3904 set dummy $CC; ac_cc=`$as_echo "$2" |
3905                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3906 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3907   $as_echo_n "(cached) " >&6
3908 else
3909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911
3912 int
3913 main ()
3914 {
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 # Make sure it works both with $CC and with simple cc.
3921 # We do the test twice because some compilers refuse to overwrite an
3922 # existing .o file with -o, though they will create one.
3923 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3924 rm -f conftest2.*
3925 if { { case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931   (eval "$ac_try") 2>&5
3932   ac_status=$?
3933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934   test $ac_status = 0; } &&
3935    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941   (eval "$ac_try") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944   test $ac_status = 0; };
3945 then
3946   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3947   if test "x$CC" != xcc; then
3948     # Test first that cc exists at all.
3949     if { ac_try='cc -c conftest.$ac_ext >&5'
3950   { { case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956   (eval "$ac_try") 2>&5
3957   ac_status=$?
3958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959   test $ac_status = 0; }; }; then
3960       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3961       rm -f conftest2.*
3962       if { { case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968   (eval "$ac_try") 2>&5
3969   ac_status=$?
3970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971   test $ac_status = 0; } &&
3972          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_try") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; };
3982       then
3983         # cc works too.
3984         :
3985       else
3986         # cc exists but doesn't like -o.
3987         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3988       fi
3989     fi
3990   fi
3991 else
3992   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3993 fi
3994 rm -f core conftest*
3995
3996 fi
3997 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3999 $as_echo "yes" >&6; }
4000 else
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4003
4004 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4005
4006 fi
4007
4008 # FIXME: we rely on the cache variable name because
4009 # there is no other way.
4010 set dummy $CC
4011 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4012 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4013 if test "$am_t" != yes; then
4014    # Losing compiler, so override with the script.
4015    # FIXME: It is wrong to rewrite CC.
4016    # But if we don't then we get into trouble of one sort or another.
4017    # A longer-term fix would be to have automake use am__CC in this case,
4018    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4019    CC="$am_aux_dir/compile $CC"
4020 fi
4021
4022
4023
4024
4025 # Check whether --enable-largefile was given.
4026 if test "${enable_largefile+set}" = set; then :
4027   enableval=$enable_largefile;
4028 fi
4029
4030 if test "$enable_largefile" != no; then
4031
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4033 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4034 if ${ac_cv_sys_largefile_CC+:} false; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   ac_cv_sys_largefile_CC=no
4038      if test "$GCC" != yes; then
4039        ac_save_CC=$CC
4040        while :; do
4041          # IRIX 6.2 and later do not support large files by default,
4042          # so use the C compiler's -n32 option if that helps.
4043          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045 #include <sys/types.h>
4046  /* Check that off_t can represent 2**63 - 1 correctly.
4047     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4048     since some C++ compilers masquerading as C compilers
4049     incorrectly reject 9223372036854775807.  */
4050 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4051   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4052                        && LARGE_OFF_T % 2147483647 == 1)
4053                       ? 1 : -1];
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062          if ac_fn_c_try_compile "$LINENO"; then :
4063   break
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext
4066          CC="$CC -n32"
4067          if ac_fn_c_try_compile "$LINENO"; then :
4068   ac_cv_sys_largefile_CC=' -n32'; break
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext
4071          break
4072        done
4073        CC=$ac_save_CC
4074        rm -f conftest.$ac_ext
4075     fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4078 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4079   if test "$ac_cv_sys_largefile_CC" != no; then
4080     CC=$CC$ac_cv_sys_largefile_CC
4081   fi
4082
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4084 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4085 if ${ac_cv_sys_file_offset_bits+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   while :; do
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 #include <sys/types.h>
4092  /* Check that off_t can represent 2**63 - 1 correctly.
4093     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4094     since some C++ compilers masquerading as C compilers
4095     incorrectly reject 9223372036854775807.  */
4096 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4097   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4098                        && LARGE_OFF_T % 2147483647 == 1)
4099                       ? 1 : -1];
4100 int
4101 main ()
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109   ac_cv_sys_file_offset_bits=no; break
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114 #define _FILE_OFFSET_BITS 64
4115 #include <sys/types.h>
4116  /* Check that off_t can represent 2**63 - 1 correctly.
4117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118     since some C++ compilers masquerading as C compilers
4119     incorrectly reject 9223372036854775807.  */
4120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122                        && LARGE_OFF_T % 2147483647 == 1)
4123                       ? 1 : -1];
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133   ac_cv_sys_file_offset_bits=64; break
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136   ac_cv_sys_file_offset_bits=unknown
4137   break
4138 done
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4141 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4142 case $ac_cv_sys_file_offset_bits in #(
4143   no | unknown) ;;
4144   *)
4145 cat >>confdefs.h <<_ACEOF
4146 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4147 _ACEOF
4148 ;;
4149 esac
4150 rm -rf conftest*
4151   if test $ac_cv_sys_file_offset_bits = unknown; then
4152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4153 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4154 if ${ac_cv_sys_large_files+:} false; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   while :; do
4158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160 #include <sys/types.h>
4161  /* Check that off_t can represent 2**63 - 1 correctly.
4162     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4163     since some C++ compilers masquerading as C compilers
4164     incorrectly reject 9223372036854775807.  */
4165 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4166   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4167                        && LARGE_OFF_T % 2147483647 == 1)
4168                       ? 1 : -1];
4169 int
4170 main ()
4171 {
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178   ac_cv_sys_large_files=no; break
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #define _LARGE_FILES 1
4184 #include <sys/types.h>
4185  /* Check that off_t can represent 2**63 - 1 correctly.
4186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4187     since some C++ compilers masquerading as C compilers
4188     incorrectly reject 9223372036854775807.  */
4189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4191                        && LARGE_OFF_T % 2147483647 == 1)
4192                       ? 1 : -1];
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202   ac_cv_sys_large_files=1; break
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205   ac_cv_sys_large_files=unknown
4206   break
4207 done
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4210 $as_echo "$ac_cv_sys_large_files" >&6; }
4211 case $ac_cv_sys_large_files in #(
4212   no | unknown) ;;
4213   *)
4214 cat >>confdefs.h <<_ACEOF
4215 #define _LARGE_FILES $ac_cv_sys_large_files
4216 _ACEOF
4217 ;;
4218 esac
4219 rm -rf conftest*
4220   fi
4221
4222
4223 fi
4224
4225
4226 # Checks lib build
4227 if test -n "$ac_tool_prefix"; then
4228   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_RANLIB+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   if test -n "$RANLIB"; then
4236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243     for ac_exec_ext in '' $ac_executable_extensions; do
4244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250   done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 RANLIB=$ac_cv_prog_RANLIB
4256 if test -n "$RANLIB"; then
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4258 $as_echo "$RANLIB" >&6; }
4259 else
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 fi
4266 if test -z "$ac_cv_prog_RANLIB"; then
4267   ac_ct_RANLIB=$RANLIB
4268   # Extract the first word of "ranlib", so it can be a program name with args.
4269 set dummy ranlib; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   if test -n "$ac_ct_RANLIB"; then
4276   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_prog_ac_ct_RANLIB="ranlib"
4286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290   done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4296 if test -n "$ac_ct_RANLIB"; then
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4298 $as_echo "$ac_ct_RANLIB" >&6; }
4299 else
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304   if test "x$ac_ct_RANLIB" = x; then
4305     RANLIB=":"
4306   else
4307     case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4312 esac
4313     RANLIB=$ac_ct_RANLIB
4314   fi
4315 else
4316   RANLIB="$ac_cv_prog_RANLIB"
4317 fi
4318
4319 if test -n "$ac_tool_prefix"; then
4320   for ac_prog in ar lib "link -lib"
4321   do
4322     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_AR+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   if test -n "$AR"; then
4330   ac_cv_prog_AR="$AR" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337     for ac_exec_ext in '' $ac_executable_extensions; do
4338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344   done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 AR=$ac_cv_prog_AR
4350 if test -n "$AR"; then
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4352 $as_echo "$AR" >&6; }
4353 else
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359     test -n "$AR" && break
4360   done
4361 fi
4362 if test -z "$AR"; then
4363   ac_ct_AR=$AR
4364   for ac_prog in ar lib "link -lib"
4365 do
4366   # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test -n "$ac_ct_AR"; then
4374   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381     for ac_exec_ext in '' $ac_executable_extensions; do
4382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383     ac_cv_prog_ac_ct_AR="$ac_prog"
4384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388   done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4394 if test -n "$ac_ct_AR"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4396 $as_echo "$ac_ct_AR" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403   test -n "$ac_ct_AR" && break
4404 done
4405
4406   if test "x$ac_ct_AR" = x; then
4407     AR="false"
4408   else
4409     case $cross_compiling:$ac_tool_warned in
4410 yes:)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415     AR=$ac_ct_AR
4416   fi
4417 fi
4418
4419 : ${AR=ar}
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4422 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4423 if ${am_cv_ar_interface+:} false; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   am_cv_ar_interface=ar
4427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429 int some_variable = 0;
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4433       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4434   (eval $am_ar_try) 2>&5
4435   ac_status=$?
4436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437   test $ac_status = 0; }
4438       if test "$ac_status" -eq 0; then
4439         am_cv_ar_interface=ar
4440       else
4441         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4442         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4443   (eval $am_ar_try) 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }
4447         if test "$ac_status" -eq 0; then
4448           am_cv_ar_interface=lib
4449         else
4450           am_cv_ar_interface=unknown
4451         fi
4452       fi
4453       rm -f conftest.lib libconftest.a
4454
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4460 $as_echo "$am_cv_ar_interface" >&6; }
4461
4462 case $am_cv_ar_interface in
4463 ar)
4464   ;;
4465 lib)
4466   # Microsoft lib, so override with the ar-lib wrapper script.
4467   # FIXME: It is wrong to rewrite AR.
4468   # But if we don't then we get into trouble of one sort or another.
4469   # A longer-term fix would be to have automake use am__AR in this case,
4470   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4471   # similar.
4472   AR="$am_aux_dir/ar-lib $AR"
4473   ;;
4474 unknown)
4475   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4476   ;;
4477 esac
4478
4479
4480 # Checks for header files.
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4487 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4488 # On Suns, sometimes $CPP names a directory.
4489 if test -n "$CPP" && test -d "$CPP"; then
4490   CPP=
4491 fi
4492 if test -z "$CPP"; then
4493   if ${ac_cv_prog_CPP+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496       # Double quotes because CPP needs to be expanded
4497     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4498     do
4499       ac_preproc_ok=false
4500 for ac_c_preproc_warn_flag in '' yes
4501 do
4502   # Use a header file that comes with gcc, so configuring glibc
4503   # with a fresh cross-compiler works.
4504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505   # <limits.h> exists even on freestanding compilers.
4506   # On the NeXT, cc -E runs the code through the compiler's parser,
4507   # not just through cpp. "Syntax error" is here to catch this case.
4508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #ifdef __STDC__
4511 # include <limits.h>
4512 #else
4513 # include <assert.h>
4514 #endif
4515                      Syntax error
4516 _ACEOF
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4518
4519 else
4520   # Broken: fails on valid input.
4521 continue
4522 fi
4523 rm -f conftest.err conftest.i conftest.$ac_ext
4524
4525   # OK, works on sane cases.  Now check whether nonexistent headers
4526   # can be detected and how.
4527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h.  */
4529 #include <ac_nonexistent.h>
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532   # Broken: success on invalid input.
4533 continue
4534 else
4535   # Passes both tests.
4536 ac_preproc_ok=:
4537 break
4538 fi
4539 rm -f conftest.err conftest.i conftest.$ac_ext
4540
4541 done
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.i conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then :
4545   break
4546 fi
4547
4548     done
4549     ac_cv_prog_CPP=$CPP
4550
4551 fi
4552   CPP=$ac_cv_prog_CPP
4553 else
4554   ac_cv_prog_CPP=$CPP
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4557 $as_echo "$CPP" >&6; }
4558 ac_preproc_ok=false
4559 for ac_c_preproc_warn_flag in '' yes
4560 do
4561   # Use a header file that comes with gcc, so configuring glibc
4562   # with a fresh cross-compiler works.
4563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564   # <limits.h> exists even on freestanding compilers.
4565   # On the NeXT, cc -E runs the code through the compiler's parser,
4566   # not just through cpp. "Syntax error" is here to catch this case.
4567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569 #ifdef __STDC__
4570 # include <limits.h>
4571 #else
4572 # include <assert.h>
4573 #endif
4574                      Syntax error
4575 _ACEOF
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4577
4578 else
4579   # Broken: fails on valid input.
4580 continue
4581 fi
4582 rm -f conftest.err conftest.i conftest.$ac_ext
4583
4584   # OK, works on sane cases.  Now check whether nonexistent headers
4585   # can be detected and how.
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588 #include <ac_nonexistent.h>
4589 _ACEOF
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4591   # Broken: success on invalid input.
4592 continue
4593 else
4594   # Passes both tests.
4595 ac_preproc_ok=:
4596 break
4597 fi
4598 rm -f conftest.err conftest.i conftest.$ac_ext
4599
4600 done
4601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602 rm -f conftest.i conftest.err conftest.$ac_ext
4603 if $ac_preproc_ok; then :
4604
4605 else
4606   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4608 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details" "$LINENO" 5; }
4610 fi
4611
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4620 $as_echo_n "checking for X... " >&6; }
4621
4622
4623 # Check whether --with-x was given.
4624 if test "${with_x+set}" = set; then :
4625   withval=$with_x;
4626 fi
4627
4628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4629 if test "x$with_x" = xno; then
4630   # The user explicitly disabled X.
4631   have_x=disabled
4632 else
4633   case $x_includes,$x_libraries in #(
4634     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4635     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   # One or both of the vars are not set, and there is no cached value.
4639 ac_x_includes=no ac_x_libraries=no
4640 rm -f -r conftest.dir
4641 if mkdir conftest.dir; then
4642   cd conftest.dir
4643   cat >Imakefile <<'_ACEOF'
4644 incroot:
4645         @echo incroot='${INCROOT}'
4646 usrlibdir:
4647         @echo usrlibdir='${USRLIBDIR}'
4648 libdir:
4649         @echo libdir='${LIBDIR}'
4650 _ACEOF
4651   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4652     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4653     for ac_var in incroot usrlibdir libdir; do
4654       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4655     done
4656     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4657     for ac_extension in a so sl dylib la dll; do
4658       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4659          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4660         ac_im_usrlibdir=$ac_im_libdir; break
4661       fi
4662     done
4663     # Screen out bogus values from the imake configuration.  They are
4664     # bogus both because they are the default anyway, and because
4665     # using them would break gcc on systems where it needs fixed includes.
4666     case $ac_im_incroot in
4667         /usr/include) ac_x_includes= ;;
4668         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4669     esac
4670     case $ac_im_usrlibdir in
4671         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4672         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4673     esac
4674   fi
4675   cd ..
4676   rm -f -r conftest.dir
4677 fi
4678
4679 # Standard set of common directories for X headers.
4680 # Check X11 before X11Rn because it is often a symlink to the current release.
4681 ac_x_header_dirs='
4682 /usr/X11/include
4683 /usr/X11R7/include
4684 /usr/X11R6/include
4685 /usr/X11R5/include
4686 /usr/X11R4/include
4687
4688 /usr/include/X11
4689 /usr/include/X11R7
4690 /usr/include/X11R6
4691 /usr/include/X11R5
4692 /usr/include/X11R4
4693
4694 /usr/local/X11/include
4695 /usr/local/X11R7/include
4696 /usr/local/X11R6/include
4697 /usr/local/X11R5/include
4698 /usr/local/X11R4/include
4699
4700 /usr/local/include/X11
4701 /usr/local/include/X11R7
4702 /usr/local/include/X11R6
4703 /usr/local/include/X11R5
4704 /usr/local/include/X11R4
4705
4706 /usr/X386/include
4707 /usr/x386/include
4708 /usr/XFree86/include/X11
4709
4710 /usr/include
4711 /usr/local/include
4712 /usr/unsupported/include
4713 /usr/athena/include
4714 /usr/local/x11r5/include
4715 /usr/lpp/Xamples/include
4716
4717 /usr/openwin/include
4718 /usr/openwin/share/include'
4719
4720 if test "$ac_x_includes" = no; then
4721   # Guess where to find include files, by looking for Xlib.h.
4722   # First, try using that file with no special directory specified.
4723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h.  */
4725 #include <X11/Xlib.h>
4726 _ACEOF
4727 if ac_fn_c_try_cpp "$LINENO"; then :
4728   # We can compile using X headers with no special include directory.
4729 ac_x_includes=
4730 else
4731   for ac_dir in $ac_x_header_dirs; do
4732   if test -r "$ac_dir/X11/Xlib.h"; then
4733     ac_x_includes=$ac_dir
4734     break
4735   fi
4736 done
4737 fi
4738 rm -f conftest.err conftest.i conftest.$ac_ext
4739 fi # $ac_x_includes = no
4740
4741 if test "$ac_x_libraries" = no; then
4742   # Check for the libraries.
4743   # See if we find them without any special options.
4744   # Don't add to $LIBS permanently.
4745   ac_save_LIBS=$LIBS
4746   LIBS="-lX11 $LIBS"
4747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749 #include <X11/Xlib.h>
4750 int
4751 main ()
4752 {
4753 XrmInitialize ()
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_link "$LINENO"; then :
4759   LIBS=$ac_save_LIBS
4760 # We can link X programs with no special library path.
4761 ac_x_libraries=
4762 else
4763   LIBS=$ac_save_LIBS
4764 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4765 do
4766   # Don't even attempt the hair of trying to link an X program!
4767   for ac_extension in a so sl dylib la dll; do
4768     if test -r "$ac_dir/libX11.$ac_extension"; then
4769       ac_x_libraries=$ac_dir
4770       break 2
4771     fi
4772   done
4773 done
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext \
4776     conftest$ac_exeext conftest.$ac_ext
4777 fi # $ac_x_libraries = no
4778
4779 case $ac_x_includes,$ac_x_libraries in #(
4780   no,* | *,no | *\'*)
4781     # Didn't find X, or a directory has "'" in its name.
4782     ac_cv_have_x="have_x=no";; #(
4783   *)
4784     # Record where we found X for the cache.
4785     ac_cv_have_x="have_x=yes\
4786         ac_x_includes='$ac_x_includes'\
4787         ac_x_libraries='$ac_x_libraries'"
4788 esac
4789 fi
4790 ;; #(
4791     *) have_x=yes;;
4792   esac
4793   eval "$ac_cv_have_x"
4794 fi # $with_x != no
4795
4796 if test "$have_x" != yes; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4798 $as_echo "$have_x" >&6; }
4799   no_x=yes
4800 else
4801   # If each of the values was on the command line, it overrides each guess.
4802   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4803   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4804   # Update the cache value to reflect the command line values.
4805   ac_cv_have_x="have_x=yes\
4806         ac_x_includes='$x_includes'\
4807         ac_x_libraries='$x_libraries'"
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4809 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4810 fi
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4814 if ${ac_cv_path_GREP+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if test -z "$GREP"; then
4818   ac_path_GREP_found=false
4819   # Loop through the user's path and test for each of PROGNAME-LIST
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_prog in grep ggrep; do
4826     for ac_exec_ext in '' $ac_executable_extensions; do
4827       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4828       as_fn_executable_p "$ac_path_GREP" || continue
4829 # Check for GNU ac_path_GREP and select it if it is found.
4830   # Check for GNU $ac_path_GREP
4831 case `"$ac_path_GREP" --version 2>&1` in
4832 *GNU*)
4833   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4834 *)
4835   ac_count=0
4836   $as_echo_n 0123456789 >"conftest.in"
4837   while :
4838   do
4839     cat "conftest.in" "conftest.in" >"conftest.tmp"
4840     mv "conftest.tmp" "conftest.in"
4841     cp "conftest.in" "conftest.nl"
4842     $as_echo 'GREP' >> "conftest.nl"
4843     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845     as_fn_arith $ac_count + 1 && ac_count=$as_val
4846     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4847       # Best one so far, save it but keep looking for a better one
4848       ac_cv_path_GREP="$ac_path_GREP"
4849       ac_path_GREP_max=$ac_count
4850     fi
4851     # 10*(2^10) chars as input seems more than enough
4852     test $ac_count -gt 10 && break
4853   done
4854   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4856
4857       $ac_path_GREP_found && break 3
4858     done
4859   done
4860   done
4861 IFS=$as_save_IFS
4862   if test -z "$ac_cv_path_GREP"; then
4863     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864   fi
4865 else
4866   ac_cv_path_GREP=$GREP
4867 fi
4868
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4871 $as_echo "$ac_cv_path_GREP" >&6; }
4872  GREP="$ac_cv_path_GREP"
4873
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4876 $as_echo_n "checking for egrep... " >&6; }
4877 if ${ac_cv_path_EGREP+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4881    then ac_cv_path_EGREP="$GREP -E"
4882    else
4883      if test -z "$EGREP"; then
4884   ac_path_EGREP_found=false
4885   # Loop through the user's path and test for each of PROGNAME-LIST
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891     for ac_prog in egrep; do
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4894       as_fn_executable_p "$ac_path_EGREP" || continue
4895 # Check for GNU ac_path_EGREP and select it if it is found.
4896   # Check for GNU $ac_path_EGREP
4897 case `"$ac_path_EGREP" --version 2>&1` in
4898 *GNU*)
4899   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4900 *)
4901   ac_count=0
4902   $as_echo_n 0123456789 >"conftest.in"
4903   while :
4904   do
4905     cat "conftest.in" "conftest.in" >"conftest.tmp"
4906     mv "conftest.tmp" "conftest.in"
4907     cp "conftest.in" "conftest.nl"
4908     $as_echo 'EGREP' >> "conftest.nl"
4909     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4911     as_fn_arith $ac_count + 1 && ac_count=$as_val
4912     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4913       # Best one so far, save it but keep looking for a better one
4914       ac_cv_path_EGREP="$ac_path_EGREP"
4915       ac_path_EGREP_max=$ac_count
4916     fi
4917     # 10*(2^10) chars as input seems more than enough
4918     test $ac_count -gt 10 && break
4919   done
4920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 esac
4922
4923       $ac_path_EGREP_found && break 3
4924     done
4925   done
4926   done
4927 IFS=$as_save_IFS
4928   if test -z "$ac_cv_path_EGREP"; then
4929     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930   fi
4931 else
4932   ac_cv_path_EGREP=$EGREP
4933 fi
4934
4935    fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4938 $as_echo "$ac_cv_path_EGREP" >&6; }
4939  EGREP="$ac_cv_path_EGREP"
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4943 $as_echo_n "checking for ANSI C header files... " >&6; }
4944 if ${ac_cv_header_stdc+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949 #include <stdlib.h>
4950 #include <stdarg.h>
4951 #include <string.h>
4952 #include <float.h>
4953
4954 int
4955 main ()
4956 {
4957
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963   ac_cv_header_stdc=yes
4964 else
4965   ac_cv_header_stdc=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968
4969 if test $ac_cv_header_stdc = yes; then
4970   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973 #include <string.h>
4974
4975 _ACEOF
4976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977   $EGREP "memchr" >/dev/null 2>&1; then :
4978
4979 else
4980   ac_cv_header_stdc=no
4981 fi
4982 rm -f conftest*
4983
4984 fi
4985
4986 if test $ac_cv_header_stdc = yes; then
4987   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990 #include <stdlib.h>
4991
4992 _ACEOF
4993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4994   $EGREP "free" >/dev/null 2>&1; then :
4995
4996 else
4997   ac_cv_header_stdc=no
4998 fi
4999 rm -f conftest*
5000
5001 fi
5002
5003 if test $ac_cv_header_stdc = yes; then
5004   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5005   if test "$cross_compiling" = yes; then :
5006   :
5007 else
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #include <ctype.h>
5011 #include <stdlib.h>
5012 #if ((' ' & 0x0FF) == 0x020)
5013 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5014 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5015 #else
5016 # define ISLOWER(c) \
5017                    (('a' <= (c) && (c) <= 'i') \
5018                      || ('j' <= (c) && (c) <= 'r') \
5019                      || ('s' <= (c) && (c) <= 'z'))
5020 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5021 #endif
5022
5023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5024 int
5025 main ()
5026 {
5027   int i;
5028   for (i = 0; i < 256; i++)
5029     if (XOR (islower (i), ISLOWER (i))
5030         || toupper (i) != TOUPPER (i))
5031       return 2;
5032   return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_c_try_run "$LINENO"; then :
5036
5037 else
5038   ac_cv_header_stdc=no
5039 fi
5040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5041   conftest.$ac_objext conftest.beam conftest.$ac_ext
5042 fi
5043
5044 fi
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5047 $as_echo "$ac_cv_header_stdc" >&6; }
5048 if test $ac_cv_header_stdc = yes; then
5049
5050 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5051
5052 fi
5053
5054 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056                   inttypes.h stdint.h unistd.h
5057 do :
5058   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5060 "
5061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5062   cat >>confdefs.h <<_ACEOF
5063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 _ACEOF
5065
5066 fi
5067
5068 done
5069
5070
5071 for ac_header in stdbool.h
5072 do :
5073   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5074 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5075   cat >>confdefs.h <<_ACEOF
5076 #define HAVE_STDBOOL_H 1
5077 _ACEOF
5078
5079 fi
5080
5081 done
5082
5083
5084 # Checks for typedefs, structures, and compiler characteristics.
5085 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5086 if test "x$ac_cv_type_size_t" = xyes; then :
5087
5088 else
5089
5090 cat >>confdefs.h <<_ACEOF
5091 #define size_t unsigned int
5092 _ACEOF
5093
5094 fi
5095
5096 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5097 if test "x$ac_cv_type_ssize_t" = xyes; then :
5098
5099 else
5100
5101 cat >>confdefs.h <<_ACEOF
5102 #define ssize_t int
5103 _ACEOF
5104
5105 fi
5106
5107
5108 # Checks for library functions.
5109 for ac_header in stdlib.h
5110 do :
5111   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5113   cat >>confdefs.h <<_ACEOF
5114 #define HAVE_STDLIB_H 1
5115 _ACEOF
5116
5117 fi
5118
5119 done
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5122 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5123 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test "$cross_compiling" = yes; then :
5127   ac_cv_func_malloc_0_nonnull=no
5128 else
5129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h.  */
5131 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5132 # include <stdlib.h>
5133 #else
5134 char *malloc ();
5135 #endif
5136
5137 int
5138 main ()
5139 {
5140 return ! malloc (0);
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_run "$LINENO"; then :
5146   ac_cv_func_malloc_0_nonnull=yes
5147 else
5148   ac_cv_func_malloc_0_nonnull=no
5149 fi
5150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5151   conftest.$ac_objext conftest.beam conftest.$ac_ext
5152 fi
5153
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5156 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5157 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5158
5159 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5160
5161 else
5162   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5163
5164    case " $LIBOBJS " in
5165   *" malloc.$ac_objext "* ) ;;
5166   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5167  ;;
5168 esac
5169
5170
5171 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5172
5173 fi
5174
5175
5176 for ac_header in stdlib.h
5177 do :
5178   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5179 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5180   cat >>confdefs.h <<_ACEOF
5181 #define HAVE_STDLIB_H 1
5182 _ACEOF
5183
5184 fi
5185
5186 done
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5189 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5190 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test "$cross_compiling" = yes; then :
5194   ac_cv_func_realloc_0_nonnull=no
5195 else
5196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h.  */
5198 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5199 # include <stdlib.h>
5200 #else
5201 char *realloc ();
5202 #endif
5203
5204 int
5205 main ()
5206 {
5207 return ! realloc (0, 0);
5208   ;
5209   return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_run "$LINENO"; then :
5213   ac_cv_func_realloc_0_nonnull=yes
5214 else
5215   ac_cv_func_realloc_0_nonnull=no
5216 fi
5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5218   conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 fi
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5223 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5224 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5225
5226 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5227
5228 else
5229   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5230
5231    case " $LIBOBJS " in
5232   *" realloc.$ac_objext "* ) ;;
5233   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5234  ;;
5235 esac
5236
5237
5238 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5239
5240 fi
5241
5242
5243 for ac_func in gettimeofday memmove socket strdup strtol
5244 do :
5245   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5248   cat >>confdefs.h <<_ACEOF
5249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5250 _ACEOF
5251
5252 fi
5253 done
5254
5255
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5258 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5259 if ${ac_cv_path_SED+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5263      for ac_i in 1 2 3 4 5 6 7; do
5264        ac_script="$ac_script$as_nl$ac_script"
5265      done
5266      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5267      { ac_script=; unset ac_script;}
5268      if test -z "$SED"; then
5269   ac_path_SED_found=false
5270   # Loop through the user's path and test for each of PROGNAME-LIST
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_prog in sed gsed; do
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5279       as_fn_executable_p "$ac_path_SED" || continue
5280 # Check for GNU ac_path_SED and select it if it is found.
5281   # Check for GNU $ac_path_SED
5282 case `"$ac_path_SED" --version 2>&1` in
5283 *GNU*)
5284   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5285 *)
5286   ac_count=0
5287   $as_echo_n 0123456789 >"conftest.in"
5288   while :
5289   do
5290     cat "conftest.in" "conftest.in" >"conftest.tmp"
5291     mv "conftest.tmp" "conftest.in"
5292     cp "conftest.in" "conftest.nl"
5293     $as_echo '' >> "conftest.nl"
5294     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5295     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5296     as_fn_arith $ac_count + 1 && ac_count=$as_val
5297     if test $ac_count -gt ${ac_path_SED_max-0}; then
5298       # Best one so far, save it but keep looking for a better one
5299       ac_cv_path_SED="$ac_path_SED"
5300       ac_path_SED_max=$ac_count
5301     fi
5302     # 10*(2^10) chars as input seems more than enough
5303     test $ac_count -gt 10 && break
5304   done
5305   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5306 esac
5307
5308       $ac_path_SED_found && break 3
5309     done
5310   done
5311   done
5312 IFS=$as_save_IFS
5313   if test -z "$ac_cv_path_SED"; then
5314     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5315   fi
5316 else
5317   ac_cv_path_SED=$SED
5318 fi
5319
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5322 $as_echo "$ac_cv_path_SED" >&6; }
5323  SED="$ac_cv_path_SED"
5324   rm -f conftest.sed
5325
5326
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5328 $as_echo_n "checking whether NLS is requested... " >&6; }
5329     # Check whether --enable-nls was given.
5330 if test "${enable_nls+set}" = set; then :
5331   enableval=$enable_nls; USE_NLS=$enableval
5332 else
5333   USE_NLS=yes
5334 fi
5335
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5337 $as_echo "$USE_NLS" >&6; }
5338
5339
5340
5341
5342       GETTEXT_MACRO_VERSION=0.18
5343
5344
5345
5346
5347 # Prepare PATH_SEPARATOR.
5348 # The user is always right.
5349 if test "${PATH_SEPARATOR+set}" != set; then
5350   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5351   # contains only /bin. Note that ksh looks also at the FPATH variable,
5352   # so we have to set that as well for the test.
5353   PATH_SEPARATOR=:
5354   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5355     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5356            || PATH_SEPARATOR=';'
5357        }
5358 fi
5359
5360 # Find out how to test for executable files. Don't use a zero-byte file,
5361 # as systems may use methods other than mode bits to determine executability.
5362 cat >conf$$.file <<_ASEOF
5363 #! /bin/sh
5364 exit 0
5365 _ASEOF
5366 chmod +x conf$$.file
5367 if test -x conf$$.file >/dev/null 2>&1; then
5368   ac_executable_p="test -x"
5369 else
5370   ac_executable_p="test -f"
5371 fi
5372 rm -f conf$$.file
5373
5374 # Extract the first word of "msgfmt", so it can be a program name with args.
5375 set dummy msgfmt; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_path_MSGFMT+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   case "$MSGFMT" in
5382   [\\/]* | ?:[\\/]*)
5383     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5384     ;;
5385   *)
5386     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5387     for ac_dir in $PATH; do
5388       IFS="$ac_save_IFS"
5389       test -z "$ac_dir" && ac_dir=.
5390       for ac_exec_ext in '' $ac_executable_extensions; do
5391         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5392           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5393           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5394      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5395             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5396             break 2
5397           fi
5398         fi
5399       done
5400     done
5401     IFS="$ac_save_IFS"
5402   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5403     ;;
5404 esac
5405 fi
5406 MSGFMT="$ac_cv_path_MSGFMT"
5407 if test "$MSGFMT" != ":"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5409 $as_echo "$MSGFMT" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5416 set dummy gmsgfmt; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_path_GMSGFMT+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   case $GMSGFMT in
5423   [\\/]* | ?:[\\/]*)
5424   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5425   ;;
5426   *)
5427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432     for ac_exec_ext in '' $ac_executable_extensions; do
5433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436     break 2
5437   fi
5438 done
5439   done
5440 IFS=$as_save_IFS
5441
5442   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5443   ;;
5444 esac
5445 fi
5446 GMSGFMT=$ac_cv_path_GMSGFMT
5447 if test -n "$GMSGFMT"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5449 $as_echo "$GMSGFMT" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456
5457     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5458     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5459     *) MSGFMT_015=$MSGFMT ;;
5460   esac
5461
5462   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5463     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5464     *) GMSGFMT_015=$GMSGFMT ;;
5465   esac
5466
5467
5468
5469 # Prepare PATH_SEPARATOR.
5470 # The user is always right.
5471 if test "${PATH_SEPARATOR+set}" != set; then
5472   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5473   # contains only /bin. Note that ksh looks also at the FPATH variable,
5474   # so we have to set that as well for the test.
5475   PATH_SEPARATOR=:
5476   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5477     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5478            || PATH_SEPARATOR=';'
5479        }
5480 fi
5481
5482 # Find out how to test for executable files. Don't use a zero-byte file,
5483 # as systems may use methods other than mode bits to determine executability.
5484 cat >conf$$.file <<_ASEOF
5485 #! /bin/sh
5486 exit 0
5487 _ASEOF
5488 chmod +x conf$$.file
5489 if test -x conf$$.file >/dev/null 2>&1; then
5490   ac_executable_p="test -x"
5491 else
5492   ac_executable_p="test -f"
5493 fi
5494 rm -f conf$$.file
5495
5496 # Extract the first word of "xgettext", so it can be a program name with args.
5497 set dummy xgettext; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_path_XGETTEXT+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   case "$XGETTEXT" in
5504   [\\/]* | ?:[\\/]*)
5505     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5506     ;;
5507   *)
5508     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5509     for ac_dir in $PATH; do
5510       IFS="$ac_save_IFS"
5511       test -z "$ac_dir" && ac_dir=.
5512       for ac_exec_ext in '' $ac_executable_extensions; do
5513         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5514           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5515           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5516      (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
5517             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5518             break 2
5519           fi
5520         fi
5521       done
5522     done
5523     IFS="$ac_save_IFS"
5524   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5525     ;;
5526 esac
5527 fi
5528 XGETTEXT="$ac_cv_path_XGETTEXT"
5529 if test "$XGETTEXT" != ":"; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5531 $as_echo "$XGETTEXT" >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537     rm -f messages.po
5538
5539     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5540     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5541     *) XGETTEXT_015=$XGETTEXT ;;
5542   esac
5543
5544
5545
5546 # Prepare PATH_SEPARATOR.
5547 # The user is always right.
5548 if test "${PATH_SEPARATOR+set}" != set; then
5549   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5550   # contains only /bin. Note that ksh looks also at the FPATH variable,
5551   # so we have to set that as well for the test.
5552   PATH_SEPARATOR=:
5553   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5554     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5555            || PATH_SEPARATOR=';'
5556        }
5557 fi
5558
5559 # Find out how to test for executable files. Don't use a zero-byte file,
5560 # as systems may use methods other than mode bits to determine executability.
5561 cat >conf$$.file <<_ASEOF
5562 #! /bin/sh
5563 exit 0
5564 _ASEOF
5565 chmod +x conf$$.file
5566 if test -x conf$$.file >/dev/null 2>&1; then
5567   ac_executable_p="test -x"
5568 else
5569   ac_executable_p="test -f"
5570 fi
5571 rm -f conf$$.file
5572
5573 # Extract the first word of "msgmerge", so it can be a program name with args.
5574 set dummy msgmerge; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_MSGMERGE+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   case "$MSGMERGE" in
5581   [\\/]* | ?:[\\/]*)
5582     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5583     ;;
5584   *)
5585     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5586     for ac_dir in $PATH; do
5587       IFS="$ac_save_IFS"
5588       test -z "$ac_dir" && ac_dir=.
5589       for ac_exec_ext in '' $ac_executable_extensions; do
5590         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5591           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5592           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5593             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5594             break 2
5595           fi
5596         fi
5597       done
5598     done
5599     IFS="$ac_save_IFS"
5600   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5601     ;;
5602 esac
5603 fi
5604 MSGMERGE="$ac_cv_path_MSGMERGE"
5605 if test "$MSGMERGE" != ":"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5607 $as_echo "$MSGMERGE" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614         test -n "$localedir" || localedir='${datadir}/locale'
5615
5616
5617     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5618
5619
5620   ac_config_commands="$ac_config_commands po-directories"
5621
5622
5623
5624       if test "X$prefix" = "XNONE"; then
5625     acl_final_prefix="$ac_default_prefix"
5626   else
5627     acl_final_prefix="$prefix"
5628   fi
5629   if test "X$exec_prefix" = "XNONE"; then
5630     acl_final_exec_prefix='${prefix}'
5631   else
5632     acl_final_exec_prefix="$exec_prefix"
5633   fi
5634   acl_save_prefix="$prefix"
5635   prefix="$acl_final_prefix"
5636   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5637   prefix="$acl_save_prefix"
5638
5639 # Make sure we can run config.sub.
5640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5641   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5644 $as_echo_n "checking build system type... " >&6; }
5645 if ${ac_cv_build+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   ac_build_alias=$build_alias
5649 test "x$ac_build_alias" = x &&
5650   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5651 test "x$ac_build_alias" = x &&
5652   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5654   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5655
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5658 $as_echo "$ac_cv_build" >&6; }
5659 case $ac_cv_build in
5660 *-*-*) ;;
5661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5662 esac
5663 build=$ac_cv_build
5664 ac_save_IFS=$IFS; IFS='-'
5665 set x $ac_cv_build
5666 shift
5667 build_cpu=$1
5668 build_vendor=$2
5669 shift; shift
5670 # Remember, the first character of IFS is used to create $*,
5671 # except with old shells:
5672 build_os=$*
5673 IFS=$ac_save_IFS
5674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5678 $as_echo_n "checking host system type... " >&6; }
5679 if ${ac_cv_host+:} false; then :
5680   $as_echo_n "(cached) " >&6
5681 else
5682   if test "x$host_alias" = x; then
5683   ac_cv_host=$ac_cv_build
5684 else
5685   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5686     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5687 fi
5688
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5691 $as_echo "$ac_cv_host" >&6; }
5692 case $ac_cv_host in
5693 *-*-*) ;;
5694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5695 esac
5696 host=$ac_cv_host
5697 ac_save_IFS=$IFS; IFS='-'
5698 set x $ac_cv_host
5699 shift
5700 host_cpu=$1
5701 host_vendor=$2
5702 shift; shift
5703 # Remember, the first character of IFS is used to create $*,
5704 # except with old shells:
5705 host_os=$*
5706 IFS=$ac_save_IFS
5707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5708
5709
5710
5711
5712 # Check whether --with-gnu-ld was given.
5713 if test "${with_gnu_ld+set}" = set; then :
5714   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5715 else
5716   with_gnu_ld=no
5717 fi
5718
5719 # Prepare PATH_SEPARATOR.
5720 # The user is always right.
5721 if test "${PATH_SEPARATOR+set}" != set; then
5722   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5723   # contains only /bin. Note that ksh looks also at the FPATH variable,
5724   # so we have to set that as well for the test.
5725   PATH_SEPARATOR=:
5726   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5727     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5728            || PATH_SEPARATOR=';'
5729        }
5730 fi
5731
5732 ac_prog=ld
5733 if test "$GCC" = yes; then
5734   # Check if gcc -print-prog-name=ld gives a path.
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5736 $as_echo_n "checking for ld used by $CC... " >&6; }
5737   case $host in
5738   *-*-mingw*)
5739     # gcc leaves a trailing carriage return which upsets mingw
5740     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5741   *)
5742     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5743   esac
5744   case $ac_prog in
5745     # Accept absolute paths.
5746     [\\/]* | ?:[\\/]*)
5747       re_direlt='/[^/][^/]*/\.\./'
5748       # Canonicalize the pathname of ld
5749       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5750       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5751         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5752       done
5753       test -z "$LD" && LD="$ac_prog"
5754       ;;
5755   "")
5756     # If it fails, then pretend we aren't using GCC.
5757     ac_prog=ld
5758     ;;
5759   *)
5760     # If it is relative, then search for the first ld in PATH.
5761     with_gnu_ld=unknown
5762     ;;
5763   esac
5764 elif test "$with_gnu_ld" = yes; then
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5766 $as_echo_n "checking for GNU ld... " >&6; }
5767 else
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5769 $as_echo_n "checking for non-GNU ld... " >&6; }
5770 fi
5771 if ${acl_cv_path_LD+:} false; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -z "$LD"; then
5775   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5776   for ac_dir in $PATH; do
5777     IFS="$acl_save_ifs"
5778     test -z "$ac_dir" && ac_dir=.
5779     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5780       acl_cv_path_LD="$ac_dir/$ac_prog"
5781       # Check to see if the program is GNU ld.  I'd rather use --version,
5782       # but apparently some variants of GNU ld only accept -v.
5783       # Break only if it was the GNU/non-GNU ld that we prefer.
5784       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5785       *GNU* | *'with BFD'*)
5786         test "$with_gnu_ld" != no && break
5787         ;;
5788       *)
5789         test "$with_gnu_ld" != yes && break
5790         ;;
5791       esac
5792     fi
5793   done
5794   IFS="$acl_save_ifs"
5795 else
5796   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5797 fi
5798 fi
5799
5800 LD="$acl_cv_path_LD"
5801 if test -n "$LD"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5803 $as_echo "$LD" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5811 if ${acl_cv_prog_gnu_ld+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5815 case `$LD -v 2>&1 </dev/null` in
5816 *GNU* | *'with BFD'*)
5817   acl_cv_prog_gnu_ld=yes
5818   ;;
5819 *)
5820   acl_cv_prog_gnu_ld=no
5821   ;;
5822 esac
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5825 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5826 with_gnu_ld=$acl_cv_prog_gnu_ld
5827
5828
5829
5830
5831                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5832 $as_echo_n "checking for shared library run path origin... " >&6; }
5833 if ${acl_cv_rpath+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836
5837     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5838     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5839     . ./conftest.sh
5840     rm -f ./conftest.sh
5841     acl_cv_rpath=done
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5845 $as_echo "$acl_cv_rpath" >&6; }
5846   wl="$acl_cv_wl"
5847   acl_libext="$acl_cv_libext"
5848   acl_shlibext="$acl_cv_shlibext"
5849   acl_libname_spec="$acl_cv_libname_spec"
5850   acl_library_names_spec="$acl_cv_library_names_spec"
5851   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5852   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5853   acl_hardcode_direct="$acl_cv_hardcode_direct"
5854   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5855     # Check whether --enable-rpath was given.
5856 if test "${enable_rpath+set}" = set; then :
5857   enableval=$enable_rpath; :
5858 else
5859   enable_rpath=yes
5860 fi
5861
5862
5863
5864
5865   acl_libdirstem=lib
5866   acl_libdirstem2=
5867   case "$host_os" in
5868     solaris*)
5869                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5870 $as_echo_n "checking for 64-bit host... " >&6; }
5871 if ${gl_cv_solaris_64bit+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876
5877 #ifdef _LP64
5878 sixtyfour bits
5879 #endif
5880
5881 _ACEOF
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5884   gl_cv_solaris_64bit=yes
5885 else
5886   gl_cv_solaris_64bit=no
5887 fi
5888 rm -f conftest*
5889
5890
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5893 $as_echo "$gl_cv_solaris_64bit" >&6; }
5894       if test $gl_cv_solaris_64bit = yes; then
5895         acl_libdirstem=lib/64
5896         case "$host_cpu" in
5897           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5898           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5899         esac
5900       fi
5901       ;;
5902     *)
5903       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5904       if test -n "$searchpath"; then
5905         acl_save_IFS="${IFS=    }"; IFS=":"
5906         for searchdir in $searchpath; do
5907           if test -d "$searchdir"; then
5908             case "$searchdir" in
5909               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5910               */../ | */.. )
5911                 # Better ignore directories of this form. They are misleading.
5912                 ;;
5913               *) searchdir=`cd "$searchdir" && pwd`
5914                  case "$searchdir" in
5915                    */lib64 ) acl_libdirstem=lib64 ;;
5916                  esac ;;
5917             esac
5918           fi
5919         done
5920         IFS="$acl_save_IFS"
5921       fi
5922       ;;
5923   esac
5924   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937     use_additional=yes
5938
5939   acl_save_prefix="$prefix"
5940   prefix="$acl_final_prefix"
5941   acl_save_exec_prefix="$exec_prefix"
5942   exec_prefix="$acl_final_exec_prefix"
5943
5944     eval additional_includedir=\"$includedir\"
5945     eval additional_libdir=\"$libdir\"
5946
5947   exec_prefix="$acl_save_exec_prefix"
5948   prefix="$acl_save_prefix"
5949
5950
5951 # Check whether --with-libiconv-prefix was given.
5952 if test "${with_libiconv_prefix+set}" = set; then :
5953   withval=$with_libiconv_prefix;
5954     if test "X$withval" = "Xno"; then
5955       use_additional=no
5956     else
5957       if test "X$withval" = "X"; then
5958
5959   acl_save_prefix="$prefix"
5960   prefix="$acl_final_prefix"
5961   acl_save_exec_prefix="$exec_prefix"
5962   exec_prefix="$acl_final_exec_prefix"
5963
5964           eval additional_includedir=\"$includedir\"
5965           eval additional_libdir=\"$libdir\"
5966
5967   exec_prefix="$acl_save_exec_prefix"
5968   prefix="$acl_save_prefix"
5969
5970       else
5971         additional_includedir="$withval/include"
5972         additional_libdir="$withval/$acl_libdirstem"
5973         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5974            && ! test -d "$withval/$acl_libdirstem"; then
5975           additional_libdir="$withval/$acl_libdirstem2"
5976         fi
5977       fi
5978     fi
5979
5980 fi
5981
5982       LIBICONV=
5983   LTLIBICONV=
5984   INCICONV=
5985   LIBICONV_PREFIX=
5986       HAVE_LIBICONV=
5987   rpathdirs=
5988   ltrpathdirs=
5989   names_already_handled=
5990   names_next_round='iconv '
5991   while test -n "$names_next_round"; do
5992     names_this_round="$names_next_round"
5993     names_next_round=
5994     for name in $names_this_round; do
5995       already_handled=
5996       for n in $names_already_handled; do
5997         if test "$n" = "$name"; then
5998           already_handled=yes
5999           break
6000         fi
6001       done
6002       if test -z "$already_handled"; then
6003         names_already_handled="$names_already_handled $name"
6004                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6005         eval value=\"\$HAVE_LIB$uppername\"
6006         if test -n "$value"; then
6007           if test "$value" = yes; then
6008             eval value=\"\$LIB$uppername\"
6009             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6010             eval value=\"\$LTLIB$uppername\"
6011             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6012           else
6013                                     :
6014           fi
6015         else
6016                               found_dir=
6017           found_la=
6018           found_so=
6019           found_a=
6020           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6021           if test -n "$acl_shlibext"; then
6022             shrext=".$acl_shlibext"             # typically: shrext=.so
6023           else
6024             shrext=
6025           fi
6026           if test $use_additional = yes; then
6027             dir="$additional_libdir"
6028                                     if test -n "$acl_shlibext"; then
6029               if test -f "$dir/$libname$shrext"; then
6030                 found_dir="$dir"
6031                 found_so="$dir/$libname$shrext"
6032               else
6033                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6034                   ver=`(cd "$dir" && \
6035                         for f in "$libname$shrext".*; do echo "$f"; done \
6036                         | sed -e "s,^$libname$shrext\\\\.,," \
6037                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6038                         | sed 1q ) 2>/dev/null`
6039                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6040                     found_dir="$dir"
6041                     found_so="$dir/$libname$shrext.$ver"
6042                   fi
6043                 else
6044                   eval library_names=\"$acl_library_names_spec\"
6045                   for f in $library_names; do
6046                     if test -f "$dir/$f"; then
6047                       found_dir="$dir"
6048                       found_so="$dir/$f"
6049                       break
6050                     fi
6051                   done
6052                 fi
6053               fi
6054             fi
6055                         if test "X$found_dir" = "X"; then
6056               if test -f "$dir/$libname.$acl_libext"; then
6057                 found_dir="$dir"
6058                 found_a="$dir/$libname.$acl_libext"
6059               fi
6060             fi
6061             if test "X$found_dir" != "X"; then
6062               if test -f "$dir/$libname.la"; then
6063                 found_la="$dir/$libname.la"
6064               fi
6065             fi
6066           fi
6067           if test "X$found_dir" = "X"; then
6068             for x in $LDFLAGS $LTLIBICONV; do
6069
6070   acl_save_prefix="$prefix"
6071   prefix="$acl_final_prefix"
6072   acl_save_exec_prefix="$exec_prefix"
6073   exec_prefix="$acl_final_exec_prefix"
6074   eval x=\"$x\"
6075   exec_prefix="$acl_save_exec_prefix"
6076   prefix="$acl_save_prefix"
6077
6078               case "$x" in
6079                 -L*)
6080                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6081                                     if test -n "$acl_shlibext"; then
6082                     if test -f "$dir/$libname$shrext"; then
6083                       found_dir="$dir"
6084                       found_so="$dir/$libname$shrext"
6085                     else
6086                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6087                         ver=`(cd "$dir" && \
6088                               for f in "$libname$shrext".*; do echo "$f"; done \
6089                               | sed -e "s,^$libname$shrext\\\\.,," \
6090                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6091                               | sed 1q ) 2>/dev/null`
6092                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6093                           found_dir="$dir"
6094                           found_so="$dir/$libname$shrext.$ver"
6095                         fi
6096                       else
6097                         eval library_names=\"$acl_library_names_spec\"
6098                         for f in $library_names; do
6099                           if test -f "$dir/$f"; then
6100                             found_dir="$dir"
6101                             found_so="$dir/$f"
6102                             break
6103                           fi
6104                         done
6105                       fi
6106                     fi
6107                   fi
6108                                     if test "X$found_dir" = "X"; then
6109                     if test -f "$dir/$libname.$acl_libext"; then
6110                       found_dir="$dir"
6111                       found_a="$dir/$libname.$acl_libext"
6112                     fi
6113                   fi
6114                   if test "X$found_dir" != "X"; then
6115                     if test -f "$dir/$libname.la"; then
6116                       found_la="$dir/$libname.la"
6117                     fi
6118                   fi
6119                   ;;
6120               esac
6121               if test "X$found_dir" != "X"; then
6122                 break
6123               fi
6124             done
6125           fi
6126           if test "X$found_dir" != "X"; then
6127                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6128             if test "X$found_so" != "X"; then
6129                                                         if test "$enable_rpath" = no \
6130                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6131                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6132                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6133               else
6134                                                                                 haveit=
6135                 for x in $ltrpathdirs; do
6136                   if test "X$x" = "X$found_dir"; then
6137                     haveit=yes
6138                     break
6139                   fi
6140                 done
6141                 if test -z "$haveit"; then
6142                   ltrpathdirs="$ltrpathdirs $found_dir"
6143                 fi
6144                                 if test "$acl_hardcode_direct" = yes; then
6145                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6146                 else
6147                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6148                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6149                                                             haveit=
6150                     for x in $rpathdirs; do
6151                       if test "X$x" = "X$found_dir"; then
6152                         haveit=yes
6153                         break
6154                       fi
6155                     done
6156                     if test -z "$haveit"; then
6157                       rpathdirs="$rpathdirs $found_dir"
6158                     fi
6159                   else
6160                                                                                 haveit=
6161                     for x in $LDFLAGS $LIBICONV; do
6162
6163   acl_save_prefix="$prefix"
6164   prefix="$acl_final_prefix"
6165   acl_save_exec_prefix="$exec_prefix"
6166   exec_prefix="$acl_final_exec_prefix"
6167   eval x=\"$x\"
6168   exec_prefix="$acl_save_exec_prefix"
6169   prefix="$acl_save_prefix"
6170
6171                       if test "X$x" = "X-L$found_dir"; then
6172                         haveit=yes
6173                         break
6174                       fi
6175                     done
6176                     if test -z "$haveit"; then
6177                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6178                     fi
6179                     if test "$acl_hardcode_minus_L" != no; then
6180                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6181                     else
6182                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6183                     fi
6184                   fi
6185                 fi
6186               fi
6187             else
6188               if test "X$found_a" != "X"; then
6189                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6190               else
6191                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6192               fi
6193             fi
6194                         additional_includedir=
6195             case "$found_dir" in
6196               */$acl_libdirstem | */$acl_libdirstem/)
6197                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6198                 if test "$name" = 'iconv'; then
6199                   LIBICONV_PREFIX="$basedir"
6200                 fi
6201                 additional_includedir="$basedir/include"
6202                 ;;
6203               */$acl_libdirstem2 | */$acl_libdirstem2/)
6204                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6205                 if test "$name" = 'iconv'; then
6206                   LIBICONV_PREFIX="$basedir"
6207                 fi
6208                 additional_includedir="$basedir/include"
6209                 ;;
6210             esac
6211             if test "X$additional_includedir" != "X"; then
6212                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6213                 haveit=
6214                 if test "X$additional_includedir" = "X/usr/local/include"; then
6215                   if test -n "$GCC"; then
6216                     case $host_os in
6217                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6218                     esac
6219                   fi
6220                 fi
6221                 if test -z "$haveit"; then
6222                   for x in $CPPFLAGS $INCICONV; do
6223
6224   acl_save_prefix="$prefix"
6225   prefix="$acl_final_prefix"
6226   acl_save_exec_prefix="$exec_prefix"
6227   exec_prefix="$acl_final_exec_prefix"
6228   eval x=\"$x\"
6229   exec_prefix="$acl_save_exec_prefix"
6230   prefix="$acl_save_prefix"
6231
6232                     if test "X$x" = "X-I$additional_includedir"; then
6233                       haveit=yes
6234                       break
6235                     fi
6236                   done
6237                   if test -z "$haveit"; then
6238                     if test -d "$additional_includedir"; then
6239                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6240                     fi
6241                   fi
6242                 fi
6243               fi
6244             fi
6245                         if test -n "$found_la"; then
6246                                                         save_libdir="$libdir"
6247               case "$found_la" in
6248                 */* | *\\*) . "$found_la" ;;
6249                 *) . "./$found_la" ;;
6250               esac
6251               libdir="$save_libdir"
6252                             for dep in $dependency_libs; do
6253                 case "$dep" in
6254                   -L*)
6255                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6256                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6257                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6258                       haveit=
6259                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6260                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6261                         if test -n "$GCC"; then
6262                           case $host_os in
6263                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6264                           esac
6265                         fi
6266                       fi
6267                       if test -z "$haveit"; then
6268                         haveit=
6269                         for x in $LDFLAGS $LIBICONV; do
6270
6271   acl_save_prefix="$prefix"
6272   prefix="$acl_final_prefix"
6273   acl_save_exec_prefix="$exec_prefix"
6274   exec_prefix="$acl_final_exec_prefix"
6275   eval x=\"$x\"
6276   exec_prefix="$acl_save_exec_prefix"
6277   prefix="$acl_save_prefix"
6278
6279                           if test "X$x" = "X-L$additional_libdir"; then
6280                             haveit=yes
6281                             break
6282                           fi
6283                         done
6284                         if test -z "$haveit"; then
6285                           if test -d "$additional_libdir"; then
6286                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6287                           fi
6288                         fi
6289                         haveit=
6290                         for x in $LDFLAGS $LTLIBICONV; do
6291
6292   acl_save_prefix="$prefix"
6293   prefix="$acl_final_prefix"
6294   acl_save_exec_prefix="$exec_prefix"
6295   exec_prefix="$acl_final_exec_prefix"
6296   eval x=\"$x\"
6297   exec_prefix="$acl_save_exec_prefix"
6298   prefix="$acl_save_prefix"
6299
6300                           if test "X$x" = "X-L$additional_libdir"; then
6301                             haveit=yes
6302                             break
6303                           fi
6304                         done
6305                         if test -z "$haveit"; then
6306                           if test -d "$additional_libdir"; then
6307                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6308                           fi
6309                         fi
6310                       fi
6311                     fi
6312                     ;;
6313                   -R*)
6314                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6315                     if test "$enable_rpath" != no; then
6316                                                                   haveit=
6317                       for x in $rpathdirs; do
6318                         if test "X$x" = "X$dir"; then
6319                           haveit=yes
6320                           break
6321                         fi
6322                       done
6323                       if test -z "$haveit"; then
6324                         rpathdirs="$rpathdirs $dir"
6325                       fi
6326                                                                   haveit=
6327                       for x in $ltrpathdirs; do
6328                         if test "X$x" = "X$dir"; then
6329                           haveit=yes
6330                           break
6331                         fi
6332                       done
6333                       if test -z "$haveit"; then
6334                         ltrpathdirs="$ltrpathdirs $dir"
6335                       fi
6336                     fi
6337                     ;;
6338                   -l*)
6339                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6340                     ;;
6341                   *.la)
6342                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6343                     ;;
6344                   *)
6345                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6346                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6347                     ;;
6348                 esac
6349               done
6350             fi
6351           else
6352                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6353             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6354           fi
6355         fi
6356       fi
6357     done
6358   done
6359   if test "X$rpathdirs" != "X"; then
6360     if test -n "$acl_hardcode_libdir_separator"; then
6361                         alldirs=
6362       for found_dir in $rpathdirs; do
6363         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6364       done
6365             acl_save_libdir="$libdir"
6366       libdir="$alldirs"
6367       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6368       libdir="$acl_save_libdir"
6369       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6370     else
6371             for found_dir in $rpathdirs; do
6372         acl_save_libdir="$libdir"
6373         libdir="$found_dir"
6374         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6375         libdir="$acl_save_libdir"
6376         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6377       done
6378     fi
6379   fi
6380   if test "X$ltrpathdirs" != "X"; then
6381             for found_dir in $ltrpathdirs; do
6382       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6383     done
6384   fi
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6417 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6418 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   gt_save_LIBS="$LIBS"
6422      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6423      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425 #include <CoreFoundation/CFPreferences.h>
6426 int
6427 main ()
6428 {
6429 CFPreferencesCopyAppValue(NULL, NULL)
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_link "$LINENO"; then :
6435   gt_cv_func_CFPreferencesCopyAppValue=yes
6436 else
6437   gt_cv_func_CFPreferencesCopyAppValue=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext \
6440     conftest$ac_exeext conftest.$ac_ext
6441      LIBS="$gt_save_LIBS"
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6444 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6445   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6446
6447 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6448
6449   fi
6450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6451 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6452 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   gt_save_LIBS="$LIBS"
6456      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459 #include <CoreFoundation/CFLocale.h>
6460 int
6461 main ()
6462 {
6463 CFLocaleCopyCurrent();
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_link "$LINENO"; then :
6469   gt_cv_func_CFLocaleCopyCurrent=yes
6470 else
6471   gt_cv_func_CFLocaleCopyCurrent=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext \
6474     conftest$ac_exeext conftest.$ac_ext
6475      LIBS="$gt_save_LIBS"
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6478 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6479   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6480
6481 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6482
6483   fi
6484   INTL_MACOSX_LIBS=
6485   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6486     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6487   fi
6488
6489
6490
6491
6492
6493
6494   LIBINTL=
6495   LTLIBINTL=
6496   POSUB=
6497
6498     case " $gt_needs " in
6499     *" need-formatstring-macros "*) gt_api_version=3 ;;
6500     *" need-ngettext "*) gt_api_version=2 ;;
6501     *) gt_api_version=1 ;;
6502   esac
6503   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6504   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6505
6506     if test "$USE_NLS" = "yes"; then
6507     gt_use_preinstalled_gnugettext=no
6508
6509
6510         if test $gt_api_version -ge 3; then
6511           gt_revision_test_code='
6512 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6513 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6514 #endif
6515 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6516 '
6517         else
6518           gt_revision_test_code=
6519         fi
6520         if test $gt_api_version -ge 2; then
6521           gt_expression_test_code=' + * ngettext ("", "", 0)'
6522         else
6523           gt_expression_test_code=
6524         fi
6525
6526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6527 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6528 if eval \${$gt_func_gnugettext_libc+:} false; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h.  */
6533
6534 #include <libintl.h>
6535 $gt_revision_test_code
6536 extern int _nl_msg_cat_cntr;
6537 extern int *_nl_domain_bindings;
6538
6539 int
6540 main ()
6541 {
6542
6543 bindtextdomain ("", "");
6544 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6545
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_link "$LINENO"; then :
6551   eval "$gt_func_gnugettext_libc=yes"
6552 else
6553   eval "$gt_func_gnugettext_libc=no"
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext \
6556     conftest$ac_exeext conftest.$ac_ext
6557 fi
6558 eval ac_res=\$$gt_func_gnugettext_libc
6559                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560 $as_echo "$ac_res" >&6; }
6561
6562         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6563
6564
6565
6566
6567
6568           am_save_CPPFLAGS="$CPPFLAGS"
6569
6570   for element in $INCICONV; do
6571     haveit=
6572     for x in $CPPFLAGS; do
6573
6574   acl_save_prefix="$prefix"
6575   prefix="$acl_final_prefix"
6576   acl_save_exec_prefix="$exec_prefix"
6577   exec_prefix="$acl_final_exec_prefix"
6578   eval x=\"$x\"
6579   exec_prefix="$acl_save_exec_prefix"
6580   prefix="$acl_save_prefix"
6581
6582       if test "X$x" = "X$element"; then
6583         haveit=yes
6584         break
6585       fi
6586     done
6587     if test -z "$haveit"; then
6588       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6589     fi
6590   done
6591
6592
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6594 $as_echo_n "checking for iconv... " >&6; }
6595 if ${am_cv_func_iconv+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598
6599     am_cv_func_iconv="no, consider installing GNU libiconv"
6600     am_cv_lib_iconv=no
6601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h.  */
6603
6604 #include <stdlib.h>
6605 #include <iconv.h>
6606
6607 int
6608 main ()
6609 {
6610 iconv_t cd = iconv_open("","");
6611            iconv(cd,NULL,NULL,NULL,NULL);
6612            iconv_close(cd);
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618   am_cv_func_iconv=yes
6619 fi
6620 rm -f core conftest.err conftest.$ac_objext \
6621     conftest$ac_exeext conftest.$ac_ext
6622     if test "$am_cv_func_iconv" != yes; then
6623       am_save_LIBS="$LIBS"
6624       LIBS="$LIBS $LIBICONV"
6625       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h.  */
6627
6628 #include <stdlib.h>
6629 #include <iconv.h>
6630
6631 int
6632 main ()
6633 {
6634 iconv_t cd = iconv_open("","");
6635              iconv(cd,NULL,NULL,NULL,NULL);
6636              iconv_close(cd);
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"; then :
6642   am_cv_lib_iconv=yes
6643         am_cv_func_iconv=yes
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646     conftest$ac_exeext conftest.$ac_ext
6647       LIBS="$am_save_LIBS"
6648     fi
6649
6650 fi
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6652 $as_echo "$am_cv_func_iconv" >&6; }
6653   if test "$am_cv_func_iconv" = yes; then
6654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6655 $as_echo_n "checking for working iconv... " >&6; }
6656 if ${am_cv_func_iconv_works+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659
6660                   am_save_LIBS="$LIBS"
6661       if test $am_cv_lib_iconv = yes; then
6662         LIBS="$LIBS $LIBICONV"
6663       fi
6664       if test "$cross_compiling" = yes; then :
6665
6666          case "$host_os" in
6667            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6668            *)            am_cv_func_iconv_works="guessing yes" ;;
6669          esac
6670
6671 else
6672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h.  */
6674
6675 #include <iconv.h>
6676 #include <string.h>
6677 int main ()
6678 {
6679   int result = 0;
6680   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6681      returns.  */
6682   {
6683     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6684     if (cd_utf8_to_88591 != (iconv_t)(-1))
6685       {
6686         static const char input[] = "\342\202\254"; /* EURO SIGN */
6687         char buf[10];
6688         const char *inptr = input;
6689         size_t inbytesleft = strlen (input);
6690         char *outptr = buf;
6691         size_t outbytesleft = sizeof (buf);
6692         size_t res = iconv (cd_utf8_to_88591,
6693                             (char **) &inptr, &inbytesleft,
6694                             &outptr, &outbytesleft);
6695         if (res == 0)
6696           result |= 1;
6697         iconv_close (cd_utf8_to_88591);
6698       }
6699   }
6700   /* Test against Solaris 10 bug: Failures are not distinguishable from
6701      successful returns.  */
6702   {
6703     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6704     if (cd_ascii_to_88591 != (iconv_t)(-1))
6705       {
6706         static const char input[] = "\263";
6707         char buf[10];
6708         const char *inptr = input;
6709         size_t inbytesleft = strlen (input);
6710         char *outptr = buf;
6711         size_t outbytesleft = sizeof (buf);
6712         size_t res = iconv (cd_ascii_to_88591,
6713                             (char **) &inptr, &inbytesleft,
6714                             &outptr, &outbytesleft);
6715         if (res == 0)
6716           result |= 2;
6717         iconv_close (cd_ascii_to_88591);
6718       }
6719   }
6720   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6721   {
6722     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6723     if (cd_88591_to_utf8 != (iconv_t)(-1))
6724       {
6725         static const char input[] = "\304";
6726         static char buf[2] = { (char)0xDE, (char)0xAD };
6727         const char *inptr = input;
6728         size_t inbytesleft = 1;
6729         char *outptr = buf;
6730         size_t outbytesleft = 1;
6731         size_t res = iconv (cd_88591_to_utf8,
6732                             (char **) &inptr, &inbytesleft,
6733                             &outptr, &outbytesleft);
6734         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6735           result |= 4;
6736         iconv_close (cd_88591_to_utf8);
6737       }
6738   }
6739 #if 0 /* This bug could be worked around by the caller.  */
6740   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6741   {
6742     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6743     if (cd_88591_to_utf8 != (iconv_t)(-1))
6744       {
6745         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6746         char buf[50];
6747         const char *inptr = input;
6748         size_t inbytesleft = strlen (input);
6749         char *outptr = buf;
6750         size_t outbytesleft = sizeof (buf);
6751         size_t res = iconv (cd_88591_to_utf8,
6752                             (char **) &inptr, &inbytesleft,
6753                             &outptr, &outbytesleft);
6754         if ((int)res > 0)
6755           result |= 8;
6756         iconv_close (cd_88591_to_utf8);
6757       }
6758   }
6759 #endif
6760   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6761      provided.  */
6762   if (/* Try standardized names.  */
6763       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6764       /* Try IRIX, OSF/1 names.  */
6765       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6766       /* Try AIX names.  */
6767       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6768       /* Try HP-UX names.  */
6769       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6770     result |= 16;
6771   return result;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_run "$LINENO"; then :
6775   am_cv_func_iconv_works=yes
6776 else
6777   am_cv_func_iconv_works=no
6778 fi
6779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6780   conftest.$ac_objext conftest.beam conftest.$ac_ext
6781 fi
6782
6783       LIBS="$am_save_LIBS"
6784
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6787 $as_echo "$am_cv_func_iconv_works" >&6; }
6788     case "$am_cv_func_iconv_works" in
6789       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6790       *)   am_func_iconv=yes ;;
6791     esac
6792   else
6793     am_func_iconv=no am_cv_lib_iconv=no
6794   fi
6795   if test "$am_func_iconv" = yes; then
6796
6797 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6798
6799   fi
6800   if test "$am_cv_lib_iconv" = yes; then
6801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6802 $as_echo_n "checking how to link with libiconv... " >&6; }
6803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6804 $as_echo "$LIBICONV" >&6; }
6805   else
6806             CPPFLAGS="$am_save_CPPFLAGS"
6807     LIBICONV=
6808     LTLIBICONV=
6809   fi
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821     use_additional=yes
6822
6823   acl_save_prefix="$prefix"
6824   prefix="$acl_final_prefix"
6825   acl_save_exec_prefix="$exec_prefix"
6826   exec_prefix="$acl_final_exec_prefix"
6827
6828     eval additional_includedir=\"$includedir\"
6829     eval additional_libdir=\"$libdir\"
6830
6831   exec_prefix="$acl_save_exec_prefix"
6832   prefix="$acl_save_prefix"
6833
6834
6835 # Check whether --with-libintl-prefix was given.
6836 if test "${with_libintl_prefix+set}" = set; then :
6837   withval=$with_libintl_prefix;
6838     if test "X$withval" = "Xno"; then
6839       use_additional=no
6840     else
6841       if test "X$withval" = "X"; then
6842
6843   acl_save_prefix="$prefix"
6844   prefix="$acl_final_prefix"
6845   acl_save_exec_prefix="$exec_prefix"
6846   exec_prefix="$acl_final_exec_prefix"
6847
6848           eval additional_includedir=\"$includedir\"
6849           eval additional_libdir=\"$libdir\"
6850
6851   exec_prefix="$acl_save_exec_prefix"
6852   prefix="$acl_save_prefix"
6853
6854       else
6855         additional_includedir="$withval/include"
6856         additional_libdir="$withval/$acl_libdirstem"
6857         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6858            && ! test -d "$withval/$acl_libdirstem"; then
6859           additional_libdir="$withval/$acl_libdirstem2"
6860         fi
6861       fi
6862     fi
6863
6864 fi
6865
6866       LIBINTL=
6867   LTLIBINTL=
6868   INCINTL=
6869   LIBINTL_PREFIX=
6870       HAVE_LIBINTL=
6871   rpathdirs=
6872   ltrpathdirs=
6873   names_already_handled=
6874   names_next_round='intl '
6875   while test -n "$names_next_round"; do
6876     names_this_round="$names_next_round"
6877     names_next_round=
6878     for name in $names_this_round; do
6879       already_handled=
6880       for n in $names_already_handled; do
6881         if test "$n" = "$name"; then
6882           already_handled=yes
6883           break
6884         fi
6885       done
6886       if test -z "$already_handled"; then
6887         names_already_handled="$names_already_handled $name"
6888                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6889         eval value=\"\$HAVE_LIB$uppername\"
6890         if test -n "$value"; then
6891           if test "$value" = yes; then
6892             eval value=\"\$LIB$uppername\"
6893             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6894             eval value=\"\$LTLIB$uppername\"
6895             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6896           else
6897                                     :
6898           fi
6899         else
6900                               found_dir=
6901           found_la=
6902           found_so=
6903           found_a=
6904           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6905           if test -n "$acl_shlibext"; then
6906             shrext=".$acl_shlibext"             # typically: shrext=.so
6907           else
6908             shrext=
6909           fi
6910           if test $use_additional = yes; then
6911             dir="$additional_libdir"
6912                                     if test -n "$acl_shlibext"; then
6913               if test -f "$dir/$libname$shrext"; then
6914                 found_dir="$dir"
6915                 found_so="$dir/$libname$shrext"
6916               else
6917                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6918                   ver=`(cd "$dir" && \
6919                         for f in "$libname$shrext".*; do echo "$f"; done \
6920                         | sed -e "s,^$libname$shrext\\\\.,," \
6921                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6922                         | sed 1q ) 2>/dev/null`
6923                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6924                     found_dir="$dir"
6925                     found_so="$dir/$libname$shrext.$ver"
6926                   fi
6927                 else
6928                   eval library_names=\"$acl_library_names_spec\"
6929                   for f in $library_names; do
6930                     if test -f "$dir/$f"; then
6931                       found_dir="$dir"
6932                       found_so="$dir/$f"
6933                       break
6934                     fi
6935                   done
6936                 fi
6937               fi
6938             fi
6939                         if test "X$found_dir" = "X"; then
6940               if test -f "$dir/$libname.$acl_libext"; then
6941                 found_dir="$dir"
6942                 found_a="$dir/$libname.$acl_libext"
6943               fi
6944             fi
6945             if test "X$found_dir" != "X"; then
6946               if test -f "$dir/$libname.la"; then
6947                 found_la="$dir/$libname.la"
6948               fi
6949             fi
6950           fi
6951           if test "X$found_dir" = "X"; then
6952             for x in $LDFLAGS $LTLIBINTL; do
6953
6954   acl_save_prefix="$prefix"
6955   prefix="$acl_final_prefix"
6956   acl_save_exec_prefix="$exec_prefix"
6957   exec_prefix="$acl_final_exec_prefix"
6958   eval x=\"$x\"
6959   exec_prefix="$acl_save_exec_prefix"
6960   prefix="$acl_save_prefix"
6961
6962               case "$x" in
6963                 -L*)
6964                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6965                                     if test -n "$acl_shlibext"; then
6966                     if test -f "$dir/$libname$shrext"; then
6967                       found_dir="$dir"
6968                       found_so="$dir/$libname$shrext"
6969                     else
6970                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6971                         ver=`(cd "$dir" && \
6972                               for f in "$libname$shrext".*; do echo "$f"; done \
6973                               | sed -e "s,^$libname$shrext\\\\.,," \
6974                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6975                               | sed 1q ) 2>/dev/null`
6976                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6977                           found_dir="$dir"
6978                           found_so="$dir/$libname$shrext.$ver"
6979                         fi
6980                       else
6981                         eval library_names=\"$acl_library_names_spec\"
6982                         for f in $library_names; do
6983                           if test -f "$dir/$f"; then
6984                             found_dir="$dir"
6985                             found_so="$dir/$f"
6986                             break
6987                           fi
6988                         done
6989                       fi
6990                     fi
6991                   fi
6992                                     if test "X$found_dir" = "X"; then
6993                     if test -f "$dir/$libname.$acl_libext"; then
6994                       found_dir="$dir"
6995                       found_a="$dir/$libname.$acl_libext"
6996                     fi
6997                   fi
6998                   if test "X$found_dir" != "X"; then
6999                     if test -f "$dir/$libname.la"; then
7000                       found_la="$dir/$libname.la"
7001                     fi
7002                   fi
7003                   ;;
7004               esac
7005               if test "X$found_dir" != "X"; then
7006                 break
7007               fi
7008             done
7009           fi
7010           if test "X$found_dir" != "X"; then
7011                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7012             if test "X$found_so" != "X"; then
7013                                                         if test "$enable_rpath" = no \
7014                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7015                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7016                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7017               else
7018                                                                                 haveit=
7019                 for x in $ltrpathdirs; do
7020                   if test "X$x" = "X$found_dir"; then
7021                     haveit=yes
7022                     break
7023                   fi
7024                 done
7025                 if test -z "$haveit"; then
7026                   ltrpathdirs="$ltrpathdirs $found_dir"
7027                 fi
7028                                 if test "$acl_hardcode_direct" = yes; then
7029                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7030                 else
7031                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7032                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7033                                                             haveit=
7034                     for x in $rpathdirs; do
7035                       if test "X$x" = "X$found_dir"; then
7036                         haveit=yes
7037                         break
7038                       fi
7039                     done
7040                     if test -z "$haveit"; then
7041                       rpathdirs="$rpathdirs $found_dir"
7042                     fi
7043                   else
7044                                                                                 haveit=
7045                     for x in $LDFLAGS $LIBINTL; do
7046
7047   acl_save_prefix="$prefix"
7048   prefix="$acl_final_prefix"
7049   acl_save_exec_prefix="$exec_prefix"
7050   exec_prefix="$acl_final_exec_prefix"
7051   eval x=\"$x\"
7052   exec_prefix="$acl_save_exec_prefix"
7053   prefix="$acl_save_prefix"
7054
7055                       if test "X$x" = "X-L$found_dir"; then
7056                         haveit=yes
7057                         break
7058                       fi
7059                     done
7060                     if test -z "$haveit"; then
7061                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7062                     fi
7063                     if test "$acl_hardcode_minus_L" != no; then
7064                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7065                     else
7066                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7067                     fi
7068                   fi
7069                 fi
7070               fi
7071             else
7072               if test "X$found_a" != "X"; then
7073                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7074               else
7075                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7076               fi
7077             fi
7078                         additional_includedir=
7079             case "$found_dir" in
7080               */$acl_libdirstem | */$acl_libdirstem/)
7081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7082                 if test "$name" = 'intl'; then
7083                   LIBINTL_PREFIX="$basedir"
7084                 fi
7085                 additional_includedir="$basedir/include"
7086                 ;;
7087               */$acl_libdirstem2 | */$acl_libdirstem2/)
7088                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7089                 if test "$name" = 'intl'; then
7090                   LIBINTL_PREFIX="$basedir"
7091                 fi
7092                 additional_includedir="$basedir/include"
7093                 ;;
7094             esac
7095             if test "X$additional_includedir" != "X"; then
7096                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7097                 haveit=
7098                 if test "X$additional_includedir" = "X/usr/local/include"; then
7099                   if test -n "$GCC"; then
7100                     case $host_os in
7101                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7102                     esac
7103                   fi
7104                 fi
7105                 if test -z "$haveit"; then
7106                   for x in $CPPFLAGS $INCINTL; do
7107
7108   acl_save_prefix="$prefix"
7109   prefix="$acl_final_prefix"
7110   acl_save_exec_prefix="$exec_prefix"
7111   exec_prefix="$acl_final_exec_prefix"
7112   eval x=\"$x\"
7113   exec_prefix="$acl_save_exec_prefix"
7114   prefix="$acl_save_prefix"
7115
7116                     if test "X$x" = "X-I$additional_includedir"; then
7117                       haveit=yes
7118                       break
7119                     fi
7120                   done
7121                   if test -z "$haveit"; then
7122                     if test -d "$additional_includedir"; then
7123                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7124                     fi
7125                   fi
7126                 fi
7127               fi
7128             fi
7129                         if test -n "$found_la"; then
7130                                                         save_libdir="$libdir"
7131               case "$found_la" in
7132                 */* | *\\*) . "$found_la" ;;
7133                 *) . "./$found_la" ;;
7134               esac
7135               libdir="$save_libdir"
7136                             for dep in $dependency_libs; do
7137                 case "$dep" in
7138                   -L*)
7139                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7140                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7141                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7142                       haveit=
7143                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7144                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7145                         if test -n "$GCC"; then
7146                           case $host_os in
7147                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7148                           esac
7149                         fi
7150                       fi
7151                       if test -z "$haveit"; then
7152                         haveit=
7153                         for x in $LDFLAGS $LIBINTL; do
7154
7155   acl_save_prefix="$prefix"
7156   prefix="$acl_final_prefix"
7157   acl_save_exec_prefix="$exec_prefix"
7158   exec_prefix="$acl_final_exec_prefix"
7159   eval x=\"$x\"
7160   exec_prefix="$acl_save_exec_prefix"
7161   prefix="$acl_save_prefix"
7162
7163                           if test "X$x" = "X-L$additional_libdir"; then
7164                             haveit=yes
7165                             break
7166                           fi
7167                         done
7168                         if test -z "$haveit"; then
7169                           if test -d "$additional_libdir"; then
7170                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7171                           fi
7172                         fi
7173                         haveit=
7174                         for x in $LDFLAGS $LTLIBINTL; do
7175
7176   acl_save_prefix="$prefix"
7177   prefix="$acl_final_prefix"
7178   acl_save_exec_prefix="$exec_prefix"
7179   exec_prefix="$acl_final_exec_prefix"
7180   eval x=\"$x\"
7181   exec_prefix="$acl_save_exec_prefix"
7182   prefix="$acl_save_prefix"
7183
7184                           if test "X$x" = "X-L$additional_libdir"; then
7185                             haveit=yes
7186                             break
7187                           fi
7188                         done
7189                         if test -z "$haveit"; then
7190                           if test -d "$additional_libdir"; then
7191                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7192                           fi
7193                         fi
7194                       fi
7195                     fi
7196                     ;;
7197                   -R*)
7198                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7199                     if test "$enable_rpath" != no; then
7200                                                                   haveit=
7201                       for x in $rpathdirs; do
7202                         if test "X$x" = "X$dir"; then
7203                           haveit=yes
7204                           break
7205                         fi
7206                       done
7207                       if test -z "$haveit"; then
7208                         rpathdirs="$rpathdirs $dir"
7209                       fi
7210                                                                   haveit=
7211                       for x in $ltrpathdirs; do
7212                         if test "X$x" = "X$dir"; then
7213                           haveit=yes
7214                           break
7215                         fi
7216                       done
7217                       if test -z "$haveit"; then
7218                         ltrpathdirs="$ltrpathdirs $dir"
7219                       fi
7220                     fi
7221                     ;;
7222                   -l*)
7223                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7224                     ;;
7225                   *.la)
7226                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7227                     ;;
7228                   *)
7229                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7230                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7231                     ;;
7232                 esac
7233               done
7234             fi
7235           else
7236                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7237             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7238           fi
7239         fi
7240       fi
7241     done
7242   done
7243   if test "X$rpathdirs" != "X"; then
7244     if test -n "$acl_hardcode_libdir_separator"; then
7245                         alldirs=
7246       for found_dir in $rpathdirs; do
7247         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7248       done
7249             acl_save_libdir="$libdir"
7250       libdir="$alldirs"
7251       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7252       libdir="$acl_save_libdir"
7253       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7254     else
7255             for found_dir in $rpathdirs; do
7256         acl_save_libdir="$libdir"
7257         libdir="$found_dir"
7258         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7259         libdir="$acl_save_libdir"
7260         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7261       done
7262     fi
7263   fi
7264   if test "X$ltrpathdirs" != "X"; then
7265             for found_dir in $ltrpathdirs; do
7266       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7267     done
7268   fi
7269
7270
7271
7272
7273
7274
7275           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7276 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7277 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   gt_save_CPPFLAGS="$CPPFLAGS"
7281             CPPFLAGS="$CPPFLAGS $INCINTL"
7282             gt_save_LIBS="$LIBS"
7283             LIBS="$LIBS $LIBINTL"
7284                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286
7287 #include <libintl.h>
7288 $gt_revision_test_code
7289 extern int _nl_msg_cat_cntr;
7290 extern
7291 #ifdef __cplusplus
7292 "C"
7293 #endif
7294 const char *_nl_expand_alias (const char *);
7295
7296 int
7297 main ()
7298 {
7299
7300 bindtextdomain ("", "");
7301 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7302
7303   ;
7304   return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_link "$LINENO"; then :
7308   eval "$gt_func_gnugettext_libintl=yes"
7309 else
7310   eval "$gt_func_gnugettext_libintl=no"
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext \
7313     conftest$ac_exeext conftest.$ac_ext
7314                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7315               LIBS="$LIBS $LIBICONV"
7316               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h.  */
7318
7319 #include <libintl.h>
7320 $gt_revision_test_code
7321 extern int _nl_msg_cat_cntr;
7322 extern
7323 #ifdef __cplusplus
7324 "C"
7325 #endif
7326 const char *_nl_expand_alias (const char *);
7327
7328 int
7329 main ()
7330 {
7331
7332 bindtextdomain ("", "");
7333 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7334
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_link "$LINENO"; then :
7340   LIBINTL="$LIBINTL $LIBICONV"
7341                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7342                  eval "$gt_func_gnugettext_libintl=yes"
7343
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext \
7346     conftest$ac_exeext conftest.$ac_ext
7347             fi
7348             CPPFLAGS="$gt_save_CPPFLAGS"
7349             LIBS="$gt_save_LIBS"
7350 fi
7351 eval ac_res=\$$gt_func_gnugettext_libintl
7352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7353 $as_echo "$ac_res" >&6; }
7354         fi
7355
7356                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7357            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7358                 && test "$PACKAGE" != gettext-runtime \
7359                 && test "$PACKAGE" != gettext-tools; }; then
7360           gt_use_preinstalled_gnugettext=yes
7361         else
7362                     LIBINTL=
7363           LTLIBINTL=
7364           INCINTL=
7365         fi
7366
7367
7368
7369     if test -n "$INTL_MACOSX_LIBS"; then
7370       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7371          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7372                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7373         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7374       fi
7375     fi
7376
7377     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7378        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7379
7380 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7381
7382     else
7383       USE_NLS=no
7384     fi
7385   fi
7386
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7388 $as_echo_n "checking whether to use NLS... " >&6; }
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7390 $as_echo "$USE_NLS" >&6; }
7391   if test "$USE_NLS" = "yes"; then
7392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7393 $as_echo_n "checking where the gettext function comes from... " >&6; }
7394     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7395       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7396         gt_source="external libintl"
7397       else
7398         gt_source="libc"
7399       fi
7400     else
7401       gt_source="included intl directory"
7402     fi
7403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7404 $as_echo "$gt_source" >&6; }
7405   fi
7406
7407   if test "$USE_NLS" = "yes"; then
7408
7409     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7410       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7412 $as_echo_n "checking how to link with libintl... " >&6; }
7413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7414 $as_echo "$LIBINTL" >&6; }
7415
7416   for element in $INCINTL; do
7417     haveit=
7418     for x in $CPPFLAGS; do
7419
7420   acl_save_prefix="$prefix"
7421   prefix="$acl_final_prefix"
7422   acl_save_exec_prefix="$exec_prefix"
7423   exec_prefix="$acl_final_exec_prefix"
7424   eval x=\"$x\"
7425   exec_prefix="$acl_save_exec_prefix"
7426   prefix="$acl_save_prefix"
7427
7428       if test "X$x" = "X$element"; then
7429         haveit=yes
7430         break
7431       fi
7432     done
7433     if test -z "$haveit"; then
7434       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7435     fi
7436   done
7437
7438       fi
7439
7440
7441 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7442
7443
7444 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7445
7446     fi
7447
7448         POSUB=po
7449   fi
7450
7451
7452
7453     INTLLIBS="$LIBINTL"
7454
7455
7456
7457
7458
7459
7460
7461 # Gconf
7462 # Extract the first word of "gconftool-2", so it can be a program name with args.
7463 set dummy gconftool-2; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_path_GCONFTOOL+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   case $GCONFTOOL in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
7490   ;;
7491 esac
7492 fi
7493 GCONFTOOL=$ac_cv_path_GCONFTOOL
7494 if test -n "$GCONFTOOL"; then
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
7496 $as_echo "$GCONFTOOL" >&6; }
7497 else
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503
7504   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7505     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7506   else
7507     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7508   fi
7509
7510
7511 # Check whether --with-gconf-source was given.
7512 if test "${with_gconf_source+set}" = set; then :
7513   withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7514 fi
7515
7516
7517
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7519 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7520
7521   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7522     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7523   fi
7524
7525
7526 # Check whether --with-gconf-schema-file-dir was given.
7527 if test "${with_gconf_schema_file_dir+set}" = set; then :
7528   withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7529 fi
7530
7531
7532
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7534 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7535
7536   # Check whether --enable-schemas-install was given.
7537 if test "${enable_schemas_install+set}" = set; then :
7538   enableval=$enable_schemas_install; case ${enableval} in
7539        yes|no) ;;
7540        *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7541       esac
7542 fi
7543
7544    if test "$enable_schemas_install" != no; then
7545   GCONF_SCHEMAS_INSTALL_TRUE=
7546   GCONF_SCHEMAS_INSTALL_FALSE='#'
7547 else
7548   GCONF_SCHEMAS_INSTALL_TRUE='#'
7549   GCONF_SCHEMAS_INSTALL_FALSE=
7550 fi
7551
7552
7553
7554 ############### common
7555
7556 # Checks pthread
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7558 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7559 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   ac_check_lib_save_LIBS=$LIBS
7563 LIBS="-lpthread  $LIBS"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h.  */
7566
7567 /* Override any GCC internal prototype to avoid an error.
7568    Use char because int might match the return type of a GCC
7569    builtin and then its argument prototype would still apply.  */
7570 #ifdef __cplusplus
7571 extern "C"
7572 #endif
7573 char pthread_create ();
7574 int
7575 main ()
7576 {
7577 return pthread_create ();
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"; then :
7583   ac_cv_lib_pthread_pthread_create=yes
7584 else
7585   ac_cv_lib_pthread_pthread_create=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext \
7588     conftest$ac_exeext conftest.$ac_ext
7589 LIBS=$ac_check_lib_save_LIBS
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7592 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7593 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7594   cat >>confdefs.h <<_ACEOF
7595 #define HAVE_LIBPTHREAD 1
7596 _ACEOF
7597
7598   LIBS="-lpthread $LIBS"
7599
7600 fi
7601
7602 PTHREAD_LIBS=-pthread
7603
7604
7605 # Checks sensors, required by psensor and psensor-server
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7607 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7608 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   ac_check_lib_save_LIBS=$LIBS
7612 LIBS="-lsensors  $LIBS"
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h.  */
7615
7616 /* Override any GCC internal prototype to avoid an error.
7617    Use char because int might match the return type of a GCC
7618    builtin and then its argument prototype would still apply.  */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 char sensors_init ();
7623 int
7624 main ()
7625 {
7626 return sensors_init ();
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"; then :
7632   ac_cv_lib_sensors_sensors_init=yes
7633 else
7634   ac_cv_lib_sensors_sensors_init=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext \
7637     conftest$ac_exeext conftest.$ac_ext
7638 LIBS=$ac_check_lib_save_LIBS
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7641 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7642 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7643   cat >>confdefs.h <<_ACEOF
7644 #define HAVE_LIBSENSORS 1
7645 _ACEOF
7646
7647   LIBS="-lsensors $LIBS"
7648
7649 fi
7650
7651 for ac_header in sensors/sensors.h sensors/errors.h
7652 do :
7653   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7656   cat >>confdefs.h <<_ACEOF
7657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658 _ACEOF
7659
7660 fi
7661
7662 done
7663
7664 SENSORS_LIBS=-lsensors
7665
7666
7667 ############### psensor
7668
7669 ### Required
7670
7671
7672
7673
7674
7675
7676
7677
7678 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7679         if test -n "$ac_tool_prefix"; then
7680   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7681 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   case $PKG_CONFIG in
7688   [\\/]* | ?:[\\/]*)
7689   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7690   ;;
7691   *)
7692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707   ;;
7708 esac
7709 fi
7710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7711 if test -n "$PKG_CONFIG"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7713 $as_echo "$PKG_CONFIG" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720 fi
7721 if test -z "$ac_cv_path_PKG_CONFIG"; then
7722   ac_pt_PKG_CONFIG=$PKG_CONFIG
7723   # Extract the first word of "pkg-config", so it can be a program name with args.
7724 set dummy pkg-config; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   case $ac_pt_PKG_CONFIG in
7731   [\\/]* | ?:[\\/]*)
7732   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7733   ;;
7734   *)
7735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_exec_ext in '' $ac_executable_extensions; do
7741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747   done
7748 IFS=$as_save_IFS
7749
7750   ;;
7751 esac
7752 fi
7753 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7754 if test -n "$ac_pt_PKG_CONFIG"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7756 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762   if test "x$ac_pt_PKG_CONFIG" = x; then
7763     PKG_CONFIG=""
7764   else
7765     case $cross_compiling:$ac_tool_warned in
7766 yes:)
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769 ac_tool_warned=yes ;;
7770 esac
7771     PKG_CONFIG=$ac_pt_PKG_CONFIG
7772   fi
7773 else
7774   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7775 fi
7776
7777 fi
7778 if test -n "$PKG_CONFIG"; then
7779         _pkg_min_version=0.9.0
7780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7781 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7782         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7783                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7784 $as_echo "yes" >&6; }
7785         else
7786                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788                 PKG_CONFIG=""
7789         fi
7790 fi
7791
7792 pkg_failed=no
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7794 $as_echo_n "checking for X11... " >&6; }
7795
7796 if test -n "$X11_CFLAGS"; then
7797     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7798  elif test -n "$PKG_CONFIG"; then
7799     if test -n "$PKG_CONFIG" && \
7800     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7801   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7802   ac_status=$?
7803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804   test $ac_status = 0; }; then
7805   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7806                       test "x$?" != "x0" && pkg_failed=yes
7807 else
7808   pkg_failed=yes
7809 fi
7810  else
7811     pkg_failed=untried
7812 fi
7813 if test -n "$X11_LIBS"; then
7814     pkg_cv_X11_LIBS="$X11_LIBS"
7815  elif test -n "$PKG_CONFIG"; then
7816     if test -n "$PKG_CONFIG" && \
7817     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7818   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7819   ac_status=$?
7820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821   test $ac_status = 0; }; then
7822   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7823                       test "x$?" != "x0" && pkg_failed=yes
7824 else
7825   pkg_failed=yes
7826 fi
7827  else
7828     pkg_failed=untried
7829 fi
7830
7831
7832
7833 if test $pkg_failed = yes; then
7834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836
7837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7838         _pkg_short_errors_supported=yes
7839 else
7840         _pkg_short_errors_supported=no
7841 fi
7842         if test $_pkg_short_errors_supported = yes; then
7843                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7844         else
7845                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7846         fi
7847         # Put the nasty error message in config.log where it belongs
7848         echo "$X11_PKG_ERRORS" >&5
7849
7850         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7851 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7852 elif test $pkg_failed = untried; then
7853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7856 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7857 else
7858         X11_CFLAGS=$pkg_cv_X11_CFLAGS
7859         X11_LIBS=$pkg_cv_X11_LIBS
7860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7862
7863 fi
7864  if test -n "$X11_LIBS"; then
7865   X11_TRUE=
7866   X11_FALSE='#'
7867 else
7868   X11_TRUE='#'
7869   X11_FALSE=
7870 fi
7871
7872
7873
7874
7875
7876 pkg_failed=no
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7878 $as_echo_n "checking for XEXT... " >&6; }
7879
7880 if test -n "$XEXT_CFLAGS"; then
7881     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7882  elif test -n "$PKG_CONFIG"; then
7883     if test -n "$PKG_CONFIG" && \
7884     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7885   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7886   ac_status=$?
7887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888   test $ac_status = 0; }; then
7889   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7890                       test "x$?" != "x0" && pkg_failed=yes
7891 else
7892   pkg_failed=yes
7893 fi
7894  else
7895     pkg_failed=untried
7896 fi
7897 if test -n "$XEXT_LIBS"; then
7898     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7899  elif test -n "$PKG_CONFIG"; then
7900     if test -n "$PKG_CONFIG" && \
7901     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7902   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7903   ac_status=$?
7904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905   test $ac_status = 0; }; then
7906   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7907                       test "x$?" != "x0" && pkg_failed=yes
7908 else
7909   pkg_failed=yes
7910 fi
7911  else
7912     pkg_failed=untried
7913 fi
7914
7915
7916
7917 if test $pkg_failed = yes; then
7918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920
7921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922         _pkg_short_errors_supported=yes
7923 else
7924         _pkg_short_errors_supported=no
7925 fi
7926         if test $_pkg_short_errors_supported = yes; then
7927                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7928         else
7929                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7930         fi
7931         # Put the nasty error message in config.log where it belongs
7932         echo "$XEXT_PKG_ERRORS" >&5
7933
7934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7935 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7936 elif test $pkg_failed = untried; then
7937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7940 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7941 else
7942         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7943         XEXT_LIBS=$pkg_cv_XEXT_LIBS
7944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945 $as_echo "yes" >&6; }
7946
7947 fi
7948  if test -n "$XEXT_LIBS"; then
7949   XEXT_TRUE=
7950   XEXT_FALSE='#'
7951 else
7952   XEXT_TRUE='#'
7953   XEXT_FALSE=
7954 fi
7955
7956
7957
7958
7959 # Checks GTK+ 3.0
7960
7961 pkg_failed=no
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7963 $as_echo_n "checking for GTK... " >&6; }
7964
7965 if test -n "$GTK_CFLAGS"; then
7966     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7967  elif test -n "$PKG_CONFIG"; then
7968     if test -n "$PKG_CONFIG" && \
7969     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7970   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7971   ac_status=$?
7972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7973   test $ac_status = 0; }; then
7974   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7975                       test "x$?" != "x0" && pkg_failed=yes
7976 else
7977   pkg_failed=yes
7978 fi
7979  else
7980     pkg_failed=untried
7981 fi
7982 if test -n "$GTK_LIBS"; then
7983     pkg_cv_GTK_LIBS="$GTK_LIBS"
7984  elif test -n "$PKG_CONFIG"; then
7985     if test -n "$PKG_CONFIG" && \
7986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7987   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7988   ac_status=$?
7989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990   test $ac_status = 0; }; then
7991   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7992                       test "x$?" != "x0" && pkg_failed=yes
7993 else
7994   pkg_failed=yes
7995 fi
7996  else
7997     pkg_failed=untried
7998 fi
7999
8000
8001
8002 if test $pkg_failed = yes; then
8003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005
8006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8007         _pkg_short_errors_supported=yes
8008 else
8009         _pkg_short_errors_supported=no
8010 fi
8011         if test $_pkg_short_errors_supported = yes; then
8012                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8013         else
8014                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8015         fi
8016         # Put the nasty error message in config.log where it belongs
8017         echo "$GTK_PKG_ERRORS" >&5
8018
8019         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8020 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8021 elif test $pkg_failed = untried; then
8022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8025 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8026 else
8027         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8028         GTK_LIBS=$pkg_cv_GTK_LIBS
8029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8030 $as_echo "yes" >&6; }
8031
8032 fi
8033  if test -n "$GTK_LIBS"; then
8034   GTK_TRUE=
8035   GTK_FALSE='#'
8036 else
8037   GTK_TRUE='#'
8038   GTK_FALSE=
8039 fi
8040
8041 # ensure that only allowed headers are included
8042 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
8043 # ensure that no gtk deprecated symbols are used
8044 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
8045 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
8046 # ensure use of accessors
8047 GTK_CFLAGS+=" -DGSEAL_ENABLE "
8048
8049
8050
8051 # Check GCONF
8052
8053 pkg_failed=no
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
8055 $as_echo_n "checking for GCONF... " >&6; }
8056
8057 if test -n "$GCONF_CFLAGS"; then
8058     pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
8059  elif test -n "$PKG_CONFIG"; then
8060     if test -n "$PKG_CONFIG" && \
8061     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8062   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8063   ac_status=$?
8064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065   test $ac_status = 0; }; then
8066   pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
8067                       test "x$?" != "x0" && pkg_failed=yes
8068 else
8069   pkg_failed=yes
8070 fi
8071  else
8072     pkg_failed=untried
8073 fi
8074 if test -n "$GCONF_LIBS"; then
8075     pkg_cv_GCONF_LIBS="$GCONF_LIBS"
8076  elif test -n "$PKG_CONFIG"; then
8077     if test -n "$PKG_CONFIG" && \
8078     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8079   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8080   ac_status=$?
8081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082   test $ac_status = 0; }; then
8083   pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
8084                       test "x$?" != "x0" && pkg_failed=yes
8085 else
8086   pkg_failed=yes
8087 fi
8088  else
8089     pkg_failed=untried
8090 fi
8091
8092
8093
8094 if test $pkg_failed = yes; then
8095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097
8098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8099         _pkg_short_errors_supported=yes
8100 else
8101         _pkg_short_errors_supported=no
8102 fi
8103         if test $_pkg_short_errors_supported = yes; then
8104                 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
8105         else
8106                 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
8107         fi
8108         # Put the nasty error message in config.log where it belongs
8109         echo "$GCONF_PKG_ERRORS" >&5
8110
8111         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8112 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8113 elif test $pkg_failed = untried; then
8114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8117 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8118 else
8119         GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
8120         GCONF_LIBS=$pkg_cv_GCONF_LIBS
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122 $as_echo "yes" >&6; }
8123
8124 $as_echo "#define HAVE_GCONF2 1" >>confdefs.h
8125
8126 fi
8127  if test -n "$GCONF_LIBS"; then
8128   GCONF_TRUE=
8129   GCONF_FALSE='#'
8130 else
8131   GCONF_TRUE='#'
8132   GCONF_FALSE=
8133 fi
8134
8135
8136
8137
8138 ### Optional
8139
8140 # check libatasmart
8141
8142 pkg_failed=no
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
8144 $as_echo_n "checking for ATASMART... " >&6; }
8145
8146 if test -n "$ATASMART_CFLAGS"; then
8147     pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
8148  elif test -n "$PKG_CONFIG"; then
8149     if test -n "$PKG_CONFIG" && \
8150     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8151   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8152   ac_status=$?
8153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154   test $ac_status = 0; }; then
8155   pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
8156                       test "x$?" != "x0" && pkg_failed=yes
8157 else
8158   pkg_failed=yes
8159 fi
8160  else
8161     pkg_failed=untried
8162 fi
8163 if test -n "$ATASMART_LIBS"; then
8164     pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
8165  elif test -n "$PKG_CONFIG"; then
8166     if test -n "$PKG_CONFIG" && \
8167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8168   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8169   ac_status=$?
8170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171   test $ac_status = 0; }; then
8172   pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
8173                       test "x$?" != "x0" && pkg_failed=yes
8174 else
8175   pkg_failed=yes
8176 fi
8177  else
8178     pkg_failed=untried
8179 fi
8180
8181
8182
8183 if test $pkg_failed = yes; then
8184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186
8187 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8188         _pkg_short_errors_supported=yes
8189 else
8190         _pkg_short_errors_supported=no
8191 fi
8192         if test $_pkg_short_errors_supported = yes; then
8193                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
8194         else
8195                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
8196         fi
8197         # Put the nasty error message in config.log where it belongs
8198         echo "$ATASMART_PKG_ERRORS" >&5
8199
8200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8201 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8202 elif test $pkg_failed = untried; then
8203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8206 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8207 else
8208         ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
8209         ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
8210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8212
8213 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
8214
8215 fi
8216
8217  if test -n "$ATASMART_LIBS"; then
8218   ATASMART_TRUE=
8219   ATASMART_FALSE='#'
8220 else
8221   ATASMART_TRUE='#'
8222   ATASMART_FALSE=
8223 fi
8224
8225
8226
8227
8228 # Check libnotify
8229 LIBNOTIFY_LIBS=
8230
8231 pkg_failed=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
8233 $as_echo_n "checking for LIBNOTIFY... " >&6; }
8234
8235 if test -n "$LIBNOTIFY_CFLAGS"; then
8236     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
8237  elif test -n "$PKG_CONFIG"; then
8238     if test -n "$PKG_CONFIG" && \
8239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8240   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8241   ac_status=$?
8242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243   test $ac_status = 0; }; then
8244   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
8245                       test "x$?" != "x0" && pkg_failed=yes
8246 else
8247   pkg_failed=yes
8248 fi
8249  else
8250     pkg_failed=untried
8251 fi
8252 if test -n "$LIBNOTIFY_LIBS"; then
8253     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
8254  elif test -n "$PKG_CONFIG"; then
8255     if test -n "$PKG_CONFIG" && \
8256     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8257   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8258   ac_status=$?
8259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260   test $ac_status = 0; }; then
8261   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
8262                       test "x$?" != "x0" && pkg_failed=yes
8263 else
8264   pkg_failed=yes
8265 fi
8266  else
8267     pkg_failed=untried
8268 fi
8269
8270
8271
8272 if test $pkg_failed = yes; then
8273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275
8276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8277         _pkg_short_errors_supported=yes
8278 else
8279         _pkg_short_errors_supported=no
8280 fi
8281         if test $_pkg_short_errors_supported = yes; then
8282                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
8283         else
8284                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
8285         fi
8286         # Put the nasty error message in config.log where it belongs
8287         echo "$LIBNOTIFY_PKG_ERRORS" >&5
8288
8289         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8290 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8291 elif test $pkg_failed = untried; then
8292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8295 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8296 else
8297         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
8298         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
8299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300 $as_echo "yes" >&6; }
8301
8302 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
8303
8304 fi
8305  if test -n "$LIBNOTIFY_LIBS"; then
8306   LIBNOTIFY_TRUE=
8307   LIBNOTIFY_FALSE='#'
8308 else
8309   LIBNOTIFY_TRUE='#'
8310   LIBNOTIFY_FALSE=
8311 fi
8312
8313
8314
8315
8316 # Checks AppIndicator
8317 APPINDICATOR_LIBS=
8318
8319
8320 pkg_failed=no
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8322 $as_echo_n "checking for APPINDICATOR... " >&6; }
8323
8324 if test -n "$APPINDICATOR_CFLAGS"; then
8325     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8326  elif test -n "$PKG_CONFIG"; then
8327     if test -n "$PKG_CONFIG" && \
8328     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8329   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8330   ac_status=$?
8331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332   test $ac_status = 0; }; then
8333   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
8334                       test "x$?" != "x0" && pkg_failed=yes
8335 else
8336   pkg_failed=yes
8337 fi
8338  else
8339     pkg_failed=untried
8340 fi
8341 if test -n "$APPINDICATOR_LIBS"; then
8342     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8343  elif test -n "$PKG_CONFIG"; then
8344     if test -n "$PKG_CONFIG" && \
8345     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8346   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8347   ac_status=$?
8348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8349   test $ac_status = 0; }; then
8350   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8351                       test "x$?" != "x0" && pkg_failed=yes
8352 else
8353   pkg_failed=yes
8354 fi
8355  else
8356     pkg_failed=untried
8357 fi
8358
8359
8360
8361 if test $pkg_failed = yes; then
8362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8364
8365 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8366         _pkg_short_errors_supported=yes
8367 else
8368         _pkg_short_errors_supported=no
8369 fi
8370         if test $_pkg_short_errors_supported = yes; then
8371                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8372         else
8373                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8374         fi
8375         # Put the nasty error message in config.log where it belongs
8376         echo "$APPINDICATOR_PKG_ERRORS" >&5
8377
8378         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8379 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8380 elif test $pkg_failed = untried; then
8381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8384 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8385 else
8386         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8387         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8389 $as_echo "yes" >&6; }
8390
8391 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8392
8393 fi
8394
8395 if test "$APPINDICATOR_LIBS" == ""; then
8396
8397 pkg_failed=no
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8399 $as_echo_n "checking for APPINDICATOR... " >&6; }
8400
8401 if test -n "$APPINDICATOR_CFLAGS"; then
8402     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8403  elif test -n "$PKG_CONFIG"; then
8404     if test -n "$PKG_CONFIG" && \
8405     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8406   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8407   ac_status=$?
8408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8409   test $ac_status = 0; }; then
8410   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8411                       test "x$?" != "x0" && pkg_failed=yes
8412 else
8413   pkg_failed=yes
8414 fi
8415  else
8416     pkg_failed=untried
8417 fi
8418 if test -n "$APPINDICATOR_LIBS"; then
8419     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8420  elif test -n "$PKG_CONFIG"; then
8421     if test -n "$PKG_CONFIG" && \
8422     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8423   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8424   ac_status=$?
8425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8426   test $ac_status = 0; }; then
8427   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8428                       test "x$?" != "x0" && pkg_failed=yes
8429 else
8430   pkg_failed=yes
8431 fi
8432  else
8433     pkg_failed=untried
8434 fi
8435
8436
8437
8438 if test $pkg_failed = yes; then
8439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441
8442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8443         _pkg_short_errors_supported=yes
8444 else
8445         _pkg_short_errors_supported=no
8446 fi
8447         if test $_pkg_short_errors_supported = yes; then
8448                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8449         else
8450                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8451         fi
8452         # Put the nasty error message in config.log where it belongs
8453         echo "$APPINDICATOR_PKG_ERRORS" >&5
8454
8455         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8456 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8457 elif test $pkg_failed = untried; then
8458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8461 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8462 else
8463         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8464         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8466 $as_echo "yes" >&6; }
8467
8468 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8469
8470
8471 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8472
8473
8474 fi
8475 fi
8476
8477 if test "$APPINDICATOR_LIBS" == ""; then
8478
8479 pkg_failed=no
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8481 $as_echo_n "checking for APPINDICATOR... " >&6; }
8482
8483 if test -n "$APPINDICATOR_CFLAGS"; then
8484     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8485  elif test -n "$PKG_CONFIG"; then
8486     if test -n "$PKG_CONFIG" && \
8487     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8488   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8489   ac_status=$?
8490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8491   test $ac_status = 0; }; then
8492   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8493                       test "x$?" != "x0" && pkg_failed=yes
8494 else
8495   pkg_failed=yes
8496 fi
8497  else
8498     pkg_failed=untried
8499 fi
8500 if test -n "$APPINDICATOR_LIBS"; then
8501     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8502  elif test -n "$PKG_CONFIG"; then
8503     if test -n "$PKG_CONFIG" && \
8504     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8505   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8506   ac_status=$?
8507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8508   test $ac_status = 0; }; then
8509   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8510                       test "x$?" != "x0" && pkg_failed=yes
8511 else
8512   pkg_failed=yes
8513 fi
8514  else
8515     pkg_failed=untried
8516 fi
8517
8518
8519
8520 if test $pkg_failed = yes; then
8521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523
8524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8525         _pkg_short_errors_supported=yes
8526 else
8527         _pkg_short_errors_supported=no
8528 fi
8529         if test $_pkg_short_errors_supported = yes; then
8530                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8531         else
8532                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8533         fi
8534         # Put the nasty error message in config.log where it belongs
8535         echo "$APPINDICATOR_PKG_ERRORS" >&5
8536
8537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8538 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8539 elif test $pkg_failed = untried; then
8540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8543 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8544 else
8545         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8546         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8549
8550 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8551
8552 fi
8553 fi
8554  if test -n "$APPINDICATOR_LIBS"; then
8555   APPINDICATOR_TRUE=
8556   APPINDICATOR_FALSE='#'
8557 else
8558   APPINDICATOR_TRUE='#'
8559   APPINDICATOR_FALSE=
8560 fi
8561
8562
8563
8564
8565 # Check CURL, needed for remote monitoring
8566 CURL_LIBS=
8567
8568 pkg_failed=no
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8570 $as_echo_n "checking for CURL... " >&6; }
8571
8572 if test -n "$CURL_CFLAGS"; then
8573     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8574  elif test -n "$PKG_CONFIG"; then
8575     if test -n "$PKG_CONFIG" && \
8576     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8577   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8578   ac_status=$?
8579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580   test $ac_status = 0; }; then
8581   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8582                       test "x$?" != "x0" && pkg_failed=yes
8583 else
8584   pkg_failed=yes
8585 fi
8586  else
8587     pkg_failed=untried
8588 fi
8589 if test -n "$CURL_LIBS"; then
8590     pkg_cv_CURL_LIBS="$CURL_LIBS"
8591  elif test -n "$PKG_CONFIG"; then
8592     if test -n "$PKG_CONFIG" && \
8593     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8594   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8595   ac_status=$?
8596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8597   test $ac_status = 0; }; then
8598   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8599                       test "x$?" != "x0" && pkg_failed=yes
8600 else
8601   pkg_failed=yes
8602 fi
8603  else
8604     pkg_failed=untried
8605 fi
8606
8607
8608
8609 if test $pkg_failed = yes; then
8610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8612
8613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8614         _pkg_short_errors_supported=yes
8615 else
8616         _pkg_short_errors_supported=no
8617 fi
8618         if test $_pkg_short_errors_supported = yes; then
8619                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8620         else
8621                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8622         fi
8623         # Put the nasty error message in config.log where it belongs
8624         echo "$CURL_PKG_ERRORS" >&5
8625
8626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8627 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8628 elif test $pkg_failed = untried; then
8629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8632 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8633 else
8634         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8635         CURL_LIBS=$pkg_cv_CURL_LIBS
8636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8638
8639 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8640
8641 fi
8642  if test -n "$CURL_LIBS"; then
8643   CURL_TRUE=
8644   CURL_FALSE='#'
8645 else
8646   CURL_TRUE='#'
8647   CURL_FALSE=
8648 fi
8649
8650
8651
8652
8653 # Check JSON, needed for remote monitoring
8654 JSON_LIBS=
8655
8656 pkg_failed=no
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8658 $as_echo_n "checking for JSON... " >&6; }
8659
8660 if test -n "$JSON_CFLAGS"; then
8661     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8662  elif test -n "$PKG_CONFIG"; then
8663     if test -n "$PKG_CONFIG" && \
8664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8665   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8666   ac_status=$?
8667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668   test $ac_status = 0; }; then
8669   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
8670                       test "x$?" != "x0" && pkg_failed=yes
8671 else
8672   pkg_failed=yes
8673 fi
8674  else
8675     pkg_failed=untried
8676 fi
8677 if test -n "$JSON_LIBS"; then
8678     pkg_cv_JSON_LIBS="$JSON_LIBS"
8679  elif test -n "$PKG_CONFIG"; then
8680     if test -n "$PKG_CONFIG" && \
8681     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8682   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8683   ac_status=$?
8684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8685   test $ac_status = 0; }; then
8686   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
8687                       test "x$?" != "x0" && pkg_failed=yes
8688 else
8689   pkg_failed=yes
8690 fi
8691  else
8692     pkg_failed=untried
8693 fi
8694
8695
8696
8697 if test $pkg_failed = yes; then
8698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8700
8701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8702         _pkg_short_errors_supported=yes
8703 else
8704         _pkg_short_errors_supported=no
8705 fi
8706         if test $_pkg_short_errors_supported = yes; then
8707                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
8708         else
8709                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
8710         fi
8711         # Put the nasty error message in config.log where it belongs
8712         echo "$JSON_PKG_ERRORS" >&5
8713
8714         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8715 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8716 elif test $pkg_failed = untried; then
8717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8720 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8721 else
8722         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8723         JSON_LIBS=$pkg_cv_JSON_LIBS
8724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8725 $as_echo "yes" >&6; }
8726
8727 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8728
8729 fi
8730
8731 if test "$JSON_LIBS" == ""; then
8732
8733 pkg_failed=no
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8735 $as_echo_n "checking for JSON... " >&6; }
8736
8737 if test -n "$JSON_CFLAGS"; then
8738     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8739  elif test -n "$PKG_CONFIG"; then
8740     if test -n "$PKG_CONFIG" && \
8741     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8742   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8743   ac_status=$?
8744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745   test $ac_status = 0; }; then
8746   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8747                       test "x$?" != "x0" && pkg_failed=yes
8748 else
8749   pkg_failed=yes
8750 fi
8751  else
8752     pkg_failed=untried
8753 fi
8754 if test -n "$JSON_LIBS"; then
8755     pkg_cv_JSON_LIBS="$JSON_LIBS"
8756  elif test -n "$PKG_CONFIG"; then
8757     if test -n "$PKG_CONFIG" && \
8758     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8759   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8760   ac_status=$?
8761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8762   test $ac_status = 0; }; then
8763   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8764                       test "x$?" != "x0" && pkg_failed=yes
8765 else
8766   pkg_failed=yes
8767 fi
8768  else
8769     pkg_failed=untried
8770 fi
8771
8772
8773
8774 if test $pkg_failed = yes; then
8775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777
8778 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8779         _pkg_short_errors_supported=yes
8780 else
8781         _pkg_short_errors_supported=no
8782 fi
8783         if test $_pkg_short_errors_supported = yes; then
8784                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8785         else
8786                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8787         fi
8788         # Put the nasty error message in config.log where it belongs
8789         echo "$JSON_PKG_ERRORS" >&5
8790
8791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8792 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8793 elif test $pkg_failed = untried; then
8794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8797 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8798 else
8799         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8800         JSON_LIBS=$pkg_cv_JSON_LIBS
8801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8802 $as_echo "yes" >&6; }
8803
8804 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8805
8806
8807 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8808
8809 fi
8810 fi
8811
8812  if test -n "$JSON_LIBS"; then
8813   JSON_TRUE=
8814   JSON_FALSE='#'
8815 else
8816   JSON_TRUE='#'
8817   JSON_FALSE=
8818 fi
8819
8820
8821
8822
8823 # Enables remote monitoring if JSON and CURL is present
8824 if test -n "$JSON_LIBS"; then
8825    if test -n "$CURL_LIBS"; then
8826
8827 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8828
8829    fi
8830 fi
8831
8832 # Checks NVIDIA
8833 # following code from sensors-applet
8834 # sensors-applet.sourceforge.net/
8835 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8836 do :
8837   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8838 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8839                   #include <X11/Xlib.h>
8840
8841 "
8842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8843   cat >>confdefs.h <<_ACEOF
8844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845 _ACEOF
8846   HAVE_NVIDIA=true
8847 fi
8848
8849 done
8850
8851 if test -n "${X11_LIBS}"; then
8852 LIBS="${LIBS} -lX11 -lXext"
8853
8854 if test "${HAVE_NVIDIA}" = "true"; then
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8856 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8857 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-lXNVCtrl  $LIBS"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h.  */
8864
8865 /* Override any GCC internal prototype to avoid an error.
8866    Use char because int might match the return type of a GCC
8867    builtin and then its argument prototype would still apply.  */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 char XNVCTRLQueryExtension ();
8872 int
8873 main ()
8874 {
8875 return XNVCTRLQueryExtension ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 if ac_fn_c_try_link "$LINENO"; then :
8881   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8882 else
8883   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext \
8886     conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8890 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8891 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8892   NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8893
8894 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8895
8896
8897 fi
8898
8899 fi
8900 fi
8901  if test -n "$NVIDIA_LIBS"; then
8902   NVIDIA_TRUE=
8903   NVIDIA_FALSE='#'
8904 else
8905   NVIDIA_TRUE='#'
8906   NVIDIA_FALSE=
8907 fi
8908
8909
8910
8911
8912 # Checks Unity
8913
8914 pkg_failed=no
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8916 $as_echo_n "checking for UNITY... " >&6; }
8917
8918 if test -n "$UNITY_CFLAGS"; then
8919     pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8920  elif test -n "$PKG_CONFIG"; then
8921     if test -n "$PKG_CONFIG" && \
8922     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8923   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8924   ac_status=$?
8925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926   test $ac_status = 0; }; then
8927   pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8928                       test "x$?" != "x0" && pkg_failed=yes
8929 else
8930   pkg_failed=yes
8931 fi
8932  else
8933     pkg_failed=untried
8934 fi
8935 if test -n "$UNITY_LIBS"; then
8936     pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8937  elif test -n "$PKG_CONFIG"; then
8938     if test -n "$PKG_CONFIG" && \
8939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8940   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8941   ac_status=$?
8942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943   test $ac_status = 0; }; then
8944   pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8945                       test "x$?" != "x0" && pkg_failed=yes
8946 else
8947   pkg_failed=yes
8948 fi
8949  else
8950     pkg_failed=untried
8951 fi
8952
8953
8954
8955 if test $pkg_failed = yes; then
8956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8958
8959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8960         _pkg_short_errors_supported=yes
8961 else
8962         _pkg_short_errors_supported=no
8963 fi
8964         if test $_pkg_short_errors_supported = yes; then
8965                 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8966         else
8967                 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8968         fi
8969         # Put the nasty error message in config.log where it belongs
8970         echo "$UNITY_PKG_ERRORS" >&5
8971
8972         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8973 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8974 elif test $pkg_failed = untried; then
8975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8978 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8979 else
8980         UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8981         UNITY_LIBS=$pkg_cv_UNITY_LIBS
8982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8983 $as_echo "yes" >&6; }
8984
8985 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8986
8987 fi
8988
8989
8990  if test -n "$UNITY_LIBS"; then
8991   UNITY_TRUE=
8992   UNITY_FALSE='#'
8993 else
8994   UNITY_TRUE='#'
8995   UNITY_FALSE=
8996 fi
8997
8998
8999 # libatiadl
9000
9001 # Check whether --with-libatiadl was given.
9002 if test "${with_libatiadl+set}" = set; then :
9003   withval=$with_libatiadl;
9004                    ATIADL_DIR=${withval}
9005                    CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
9006                    LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
9007
9008
9009 fi
9010
9011
9012 for ac_header in adl_defines.h
9013 do :
9014   ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
9015 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
9016   cat >>confdefs.h <<_ACEOF
9017 #define HAVE_ADL_DEFINES_H 1
9018 _ACEOF
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
9020 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
9021 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-latiadlxx  $LIBS"
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028
9029 /* Override any GCC internal prototype to avoid an error.
9030    Use char because int might match the return type of a GCC
9031    builtin and then its argument prototype would still apply.  */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 char ADL_Main_Control_Refresh ();
9036 int
9037 main ()
9038 {
9039 return ADL_Main_Control_Refresh ();
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
9046 else
9047   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050     conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
9054 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
9055 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
9056
9057
9058 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
9059
9060                         LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
9061                         LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
9062
9063 fi
9064
9065 fi
9066
9067 done
9068
9069
9070  if test -n "$LIBATIADL_LIBS"; then
9071   LIBATIADL_TRUE=
9072   LIBATIADL_FALSE='#'
9073 else
9074   LIBATIADL_TRUE='#'
9075   LIBATIADL_FALSE=
9076 fi
9077
9078
9079
9080
9081 ############### psensor-server
9082
9083 # libmicrohttpd, mandatory for psensor-server
9084 LIBMICROHTTPD_LIBS=
9085
9086 pkg_failed=no
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
9088 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
9089
9090 if test -n "$LIBMICROHTTPD_CFLAGS"; then
9091     pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
9092  elif test -n "$PKG_CONFIG"; then
9093     if test -n "$PKG_CONFIG" && \
9094     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9095   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9096   ac_status=$?
9097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9098   test $ac_status = 0; }; then
9099   pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
9100                       test "x$?" != "x0" && pkg_failed=yes
9101 else
9102   pkg_failed=yes
9103 fi
9104  else
9105     pkg_failed=untried
9106 fi
9107 if test -n "$LIBMICROHTTPD_LIBS"; then
9108     pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
9109  elif test -n "$PKG_CONFIG"; then
9110     if test -n "$PKG_CONFIG" && \
9111     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9112   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9113   ac_status=$?
9114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9115   test $ac_status = 0; }; then
9116   pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
9117                       test "x$?" != "x0" && pkg_failed=yes
9118 else
9119   pkg_failed=yes
9120 fi
9121  else
9122     pkg_failed=untried
9123 fi
9124
9125
9126
9127 if test $pkg_failed = yes; then
9128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130
9131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9132         _pkg_short_errors_supported=yes
9133 else
9134         _pkg_short_errors_supported=no
9135 fi
9136         if test $_pkg_short_errors_supported = yes; then
9137                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9138         else
9139                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9140         fi
9141         # Put the nasty error message in config.log where it belongs
9142         echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
9143
9144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9145 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9146 elif test $pkg_failed = untried; then
9147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9149         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9150 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9151 else
9152         LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
9153         LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
9154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155 $as_echo "yes" >&6; }
9156
9157 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
9158
9159 fi
9160  if test -n "$LIBMICROHTTPD_LIBS"; then
9161   LIBMICROHTTPD_TRUE=
9162   LIBMICROHTTPD_FALSE='#'
9163 else
9164   LIBMICROHTTPD_TRUE='#'
9165   LIBMICROHTTPD_FALSE=
9166 fi
9167
9168
9169
9170
9171 # GTop, optional
9172
9173
9174 # Check whether --with-gtop was given.
9175 if test "${with_gtop+set}" = set; then :
9176   withval=$with_gtop;
9177         with_gtop=$withval
9178 else
9179
9180         with_gtop="yes"
9181
9182 fi
9183
9184
9185 GTOP_LIBS=
9186 if test "$with_gtop" = "yes"; then
9187
9188 pkg_failed=no
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
9190 $as_echo_n "checking for GTOP... " >&6; }
9191
9192 if test -n "$GTOP_CFLAGS"; then
9193     pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
9194  elif test -n "$PKG_CONFIG"; then
9195     if test -n "$PKG_CONFIG" && \
9196     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9197   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9198   ac_status=$?
9199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9200   test $ac_status = 0; }; then
9201   pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
9202                       test "x$?" != "x0" && pkg_failed=yes
9203 else
9204   pkg_failed=yes
9205 fi
9206  else
9207     pkg_failed=untried
9208 fi
9209 if test -n "$GTOP_LIBS"; then
9210     pkg_cv_GTOP_LIBS="$GTOP_LIBS"
9211  elif test -n "$PKG_CONFIG"; then
9212     if test -n "$PKG_CONFIG" && \
9213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9214   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9215   ac_status=$?
9216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9217   test $ac_status = 0; }; then
9218   pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
9219                       test "x$?" != "x0" && pkg_failed=yes
9220 else
9221   pkg_failed=yes
9222 fi
9223  else
9224     pkg_failed=untried
9225 fi
9226
9227
9228
9229 if test $pkg_failed = yes; then
9230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232
9233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9234         _pkg_short_errors_supported=yes
9235 else
9236         _pkg_short_errors_supported=no
9237 fi
9238         if test $_pkg_short_errors_supported = yes; then
9239                 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9240         else
9241                 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9242         fi
9243         # Put the nasty error message in config.log where it belongs
9244         echo "$GTOP_PKG_ERRORS" >&5
9245
9246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9247 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9248 elif test $pkg_failed = untried; then
9249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9251         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9252 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9253 else
9254         GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
9255         GTOP_LIBS=$pkg_cv_GTOP_LIBS
9256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9257 $as_echo "yes" >&6; }
9258
9259 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
9260
9261 fi
9262 fi
9263  if test -n "$GTOP_LIBS"; then
9264   GTOP_TRUE=
9265   GTOP_FALSE='#'
9266 else
9267   GTOP_TRUE='#'
9268   GTOP_FALSE=
9269 fi
9270
9271
9272
9273
9274 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/glade/Makefile src/lib/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 icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
9275
9276
9277 for ac_prog in help2man
9278 do
9279   # Extract the first word of "$ac_prog", so it can be a program name with args.
9280 set dummy $ac_prog; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if ${ac_cv_prog_HELP2MAN+:} false; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   if test -n "$HELP2MAN"; then
9287   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292   IFS=$as_save_IFS
9293   test -z "$as_dir" && as_dir=.
9294     for ac_exec_ext in '' $ac_executable_extensions; do
9295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9296     ac_cv_prog_HELP2MAN="$ac_prog"
9297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298     break 2
9299   fi
9300 done
9301   done
9302 IFS=$as_save_IFS
9303
9304 fi
9305 fi
9306 HELP2MAN=$ac_cv_prog_HELP2MAN
9307 if test -n "$HELP2MAN"; then
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9309 $as_echo "$HELP2MAN" >&6; }
9310 else
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9313 fi
9314
9315
9316   test -n "$HELP2MAN" && break
9317 done
9318
9319
9320 # Extract the first word of "cppcheck", so it can be a program name with args.
9321 set dummy cppcheck; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   if test -n "$HAVE_CPPCHECK"; then
9328   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333   IFS=$as_save_IFS
9334   test -z "$as_dir" && as_dir=.
9335     for ac_exec_ext in '' $ac_executable_extensions; do
9336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337     ac_cv_prog_HAVE_CPPCHECK="yes"
9338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339     break 2
9340   fi
9341 done
9342   done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9348 if test -n "$HAVE_CPPCHECK"; then
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9350 $as_echo "$HAVE_CPPCHECK" >&6; }
9351 else
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357  if test -n "$HAVE_CPPCHECK"; then
9358   CPPCHECK_TRUE=
9359   CPPCHECK_FALSE='#'
9360 else
9361   CPPCHECK_TRUE='#'
9362   CPPCHECK_FALSE=
9363 fi
9364
9365
9366 cat >confcache <<\_ACEOF
9367 # This file is a shell script that caches the results of configure
9368 # tests run on this system so they can be shared between configure
9369 # scripts and configure runs, see configure's option --config-cache.
9370 # It is not useful on other systems.  If it contains results you don't
9371 # want to keep, you may remove or edit it.
9372 #
9373 # config.status only pays attention to the cache file if you give it
9374 # the --recheck option to rerun configure.
9375 #
9376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9378 # following values.
9379
9380 _ACEOF
9381
9382 # The following way of writing the cache mishandles newlines in values,
9383 # but we know of no workaround that is simple, portable, and efficient.
9384 # So, we kill variables containing newlines.
9385 # Ultrix sh set writes to stderr and can't be redirected directly,
9386 # and sets the high bit in the cache file unless we assign to the vars.
9387 (
9388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9389     eval ac_val=\$$ac_var
9390     case $ac_val in #(
9391     *${as_nl}*)
9392       case $ac_var in #(
9393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9395       esac
9396       case $ac_var in #(
9397       _ | IFS | as_nl) ;; #(
9398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9399       *) { eval $ac_var=; unset $ac_var;} ;;
9400       esac ;;
9401     esac
9402   done
9403
9404   (set) 2>&1 |
9405     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9406     *${as_nl}ac_space=\ *)
9407       # `set' does not quote correctly, so add quotes: double-quote
9408       # substitution turns \\\\ into \\, and sed turns \\ into \.
9409       sed -n \
9410         "s/'/'\\\\''/g;
9411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9412       ;; #(
9413     *)
9414       # `set' quotes correctly as required by POSIX, so do not add quotes.
9415       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9416       ;;
9417     esac |
9418     sort
9419 ) |
9420   sed '
9421      /^ac_cv_env_/b end
9422      t clear
9423      :clear
9424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9425      t end
9426      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9427      :end' >>confcache
9428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9429   if test -w "$cache_file"; then
9430     if test "x$cache_file" != "x/dev/null"; then
9431       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9432 $as_echo "$as_me: updating cache $cache_file" >&6;}
9433       if test ! -f "$cache_file" || test -h "$cache_file"; then
9434         cat confcache >"$cache_file"
9435       else
9436         case $cache_file in #(
9437         */* | ?:*)
9438           mv -f confcache "$cache_file"$$ &&
9439           mv -f "$cache_file"$$ "$cache_file" ;; #(
9440         *)
9441           mv -f confcache "$cache_file" ;;
9442         esac
9443       fi
9444     fi
9445   else
9446     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9448   fi
9449 fi
9450 rm -f confcache
9451
9452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9453 # Let make expand exec_prefix.
9454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9455
9456 DEFS=-DHAVE_CONFIG_H
9457
9458 ac_libobjs=
9459 ac_ltlibobjs=
9460 U=
9461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9462   # 1. Remove the extension, and $U if already installed.
9463   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9464   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9465   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9466   #    will be set to the directory where LIBOBJS objects are built.
9467   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9468   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9469 done
9470 LIBOBJS=$ac_libobjs
9471
9472 LTLIBOBJS=$ac_ltlibobjs
9473
9474
9475  if test -n "$EXEEXT"; then
9476   am__EXEEXT_TRUE=
9477   am__EXEEXT_FALSE='#'
9478 else
9479   am__EXEEXT_TRUE='#'
9480   am__EXEEXT_FALSE=
9481 fi
9482
9483 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9484   as_fn_error $? "conditional \"AMDEP\" was never defined.
9485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9486 fi
9487 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9488   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9490 fi
9491 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9492   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9494 fi
9495 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9496   as_fn_error $? "conditional \"X11\" was never defined.
9497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9498 fi
9499 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9500   as_fn_error $? "conditional \"XEXT\" was never defined.
9501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9502 fi
9503 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9504   as_fn_error $? "conditional \"GTK\" was never defined.
9505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9506 fi
9507 if test -z "${GCONF_TRUE}" && test -z "${GCONF_FALSE}"; then
9508   as_fn_error $? "conditional \"GCONF\" was never defined.
9509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9510 fi
9511 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9512   as_fn_error $? "conditional \"ATASMART\" was never defined.
9513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9514 fi
9515 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9516   as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9518 fi
9519 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9520   as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9522 fi
9523 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9524   as_fn_error $? "conditional \"CURL\" was never defined.
9525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9526 fi
9527 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9528   as_fn_error $? "conditional \"JSON\" was never defined.
9529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9530 fi
9531 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9532   as_fn_error $? "conditional \"NVIDIA\" was never defined.
9533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9534 fi
9535 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9536   as_fn_error $? "conditional \"UNITY\" was never defined.
9537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9538 fi
9539 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9540   as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9542 fi
9543 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9544   as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9546 fi
9547 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9548   as_fn_error $? "conditional \"GTOP\" was never defined.
9549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9550 fi
9551 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9552   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9554 fi
9555
9556 : "${CONFIG_STATUS=./config.status}"
9557 ac_write_fail=0
9558 ac_clean_files_save=$ac_clean_files
9559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9561 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9562 as_write_fail=0
9563 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9564 #! $SHELL
9565 # Generated by $as_me.
9566 # Run this file to recreate the current configuration.
9567 # Compiler output produced by configure, useful for debugging
9568 # configure, is in config.log if it exists.
9569
9570 debug=false
9571 ac_cs_recheck=false
9572 ac_cs_silent=false
9573
9574 SHELL=\${CONFIG_SHELL-$SHELL}
9575 export SHELL
9576 _ASEOF
9577 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9578 ## -------------------- ##
9579 ## M4sh Initialization. ##
9580 ## -------------------- ##
9581
9582 # Be more Bourne compatible
9583 DUALCASE=1; export DUALCASE # for MKS sh
9584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9585   emulate sh
9586   NULLCMD=:
9587   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9588   # is contrary to our usage.  Disable this feature.
9589   alias -g '${1+"$@"}'='"$@"'
9590   setopt NO_GLOB_SUBST
9591 else
9592   case `(set -o) 2>/dev/null` in #(
9593   *posix*) :
9594     set -o posix ;; #(
9595   *) :
9596      ;;
9597 esac
9598 fi
9599
9600
9601 as_nl='
9602 '
9603 export as_nl
9604 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9605 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9608 # Prefer a ksh shell builtin over an external printf program on Solaris,
9609 # but without wasting forks for bash or zsh.
9610 if test -z "$BASH_VERSION$ZSH_VERSION" \
9611     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9612   as_echo='print -r --'
9613   as_echo_n='print -rn --'
9614 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9615   as_echo='printf %s\n'
9616   as_echo_n='printf %s'
9617 else
9618   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9619     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9620     as_echo_n='/usr/ucb/echo -n'
9621   else
9622     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9623     as_echo_n_body='eval
9624       arg=$1;
9625       case $arg in #(
9626       *"$as_nl"*)
9627         expr "X$arg" : "X\\(.*\\)$as_nl";
9628         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9629       esac;
9630       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9631     '
9632     export as_echo_n_body
9633     as_echo_n='sh -c $as_echo_n_body as_echo'
9634   fi
9635   export as_echo_body
9636   as_echo='sh -c $as_echo_body as_echo'
9637 fi
9638
9639 # The user is always right.
9640 if test "${PATH_SEPARATOR+set}" != set; then
9641   PATH_SEPARATOR=:
9642   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9643     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9644       PATH_SEPARATOR=';'
9645   }
9646 fi
9647
9648
9649 # IFS
9650 # We need space, tab and new line, in precisely that order.  Quoting is
9651 # there to prevent editors from complaining about space-tab.
9652 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9653 # splitting by setting IFS to empty value.)
9654 IFS=" ""        $as_nl"
9655
9656 # Find who we are.  Look in the path if we contain no directory separator.
9657 as_myself=
9658 case $0 in #((
9659   *[\\/]* ) as_myself=$0 ;;
9660   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663   IFS=$as_save_IFS
9664   test -z "$as_dir" && as_dir=.
9665     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9666   done
9667 IFS=$as_save_IFS
9668
9669      ;;
9670 esac
9671 # We did not find ourselves, most probably we were run as `sh COMMAND'
9672 # in which case we are not to be found in the path.
9673 if test "x$as_myself" = x; then
9674   as_myself=$0
9675 fi
9676 if test ! -f "$as_myself"; then
9677   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9678   exit 1
9679 fi
9680
9681 # Unset variables that we do not need and which cause bugs (e.g. in
9682 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9683 # suppresses any "Segmentation fault" message there.  '((' could
9684 # trigger a bug in pdksh 5.2.14.
9685 for as_var in BASH_ENV ENV MAIL MAILPATH
9686 do eval test x\${$as_var+set} = xset \
9687   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9688 done
9689 PS1='$ '
9690 PS2='> '
9691 PS4='+ '
9692
9693 # NLS nuisances.
9694 LC_ALL=C
9695 export LC_ALL
9696 LANGUAGE=C
9697 export LANGUAGE
9698
9699 # CDPATH.
9700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9701
9702
9703 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9704 # ----------------------------------------
9705 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9706 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9707 # script with STATUS, using 1 if that was 0.
9708 as_fn_error ()
9709 {
9710   as_status=$1; test $as_status -eq 0 && as_status=1
9711   if test "$4"; then
9712     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9713     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9714   fi
9715   $as_echo "$as_me: error: $2" >&2
9716   as_fn_exit $as_status
9717 } # as_fn_error
9718
9719
9720 # as_fn_set_status STATUS
9721 # -----------------------
9722 # Set $? to STATUS, without forking.
9723 as_fn_set_status ()
9724 {
9725   return $1
9726 } # as_fn_set_status
9727
9728 # as_fn_exit STATUS
9729 # -----------------
9730 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9731 as_fn_exit ()
9732 {
9733   set +e
9734   as_fn_set_status $1
9735   exit $1
9736 } # as_fn_exit
9737
9738 # as_fn_unset VAR
9739 # ---------------
9740 # Portably unset VAR.
9741 as_fn_unset ()
9742 {
9743   { eval $1=; unset $1;}
9744 }
9745 as_unset=as_fn_unset
9746 # as_fn_append VAR VALUE
9747 # ----------------------
9748 # Append the text in VALUE to the end of the definition contained in VAR. Take
9749 # advantage of any shell optimizations that allow amortized linear growth over
9750 # repeated appends, instead of the typical quadratic growth present in naive
9751 # implementations.
9752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9753   eval 'as_fn_append ()
9754   {
9755     eval $1+=\$2
9756   }'
9757 else
9758   as_fn_append ()
9759   {
9760     eval $1=\$$1\$2
9761   }
9762 fi # as_fn_append
9763
9764 # as_fn_arith ARG...
9765 # ------------------
9766 # Perform arithmetic evaluation on the ARGs, and store the result in the
9767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9768 # must be portable across $(()) and expr.
9769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9770   eval 'as_fn_arith ()
9771   {
9772     as_val=$(( $* ))
9773   }'
9774 else
9775   as_fn_arith ()
9776   {
9777     as_val=`expr "$@" || test $? -eq 1`
9778   }
9779 fi # as_fn_arith
9780
9781
9782 if expr a : '\(a\)' >/dev/null 2>&1 &&
9783    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9784   as_expr=expr
9785 else
9786   as_expr=false
9787 fi
9788
9789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9790   as_basename=basename
9791 else
9792   as_basename=false
9793 fi
9794
9795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9796   as_dirname=dirname
9797 else
9798   as_dirname=false
9799 fi
9800
9801 as_me=`$as_basename -- "$0" ||
9802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9803          X"$0" : 'X\(//\)$' \| \
9804          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9805 $as_echo X/"$0" |
9806     sed '/^.*\/\([^/][^/]*\)\/*$/{
9807             s//\1/
9808             q
9809           }
9810           /^X\/\(\/\/\)$/{
9811             s//\1/
9812             q
9813           }
9814           /^X\/\(\/\).*/{
9815             s//\1/
9816             q
9817           }
9818           s/.*/./; q'`
9819
9820 # Avoid depending upon Character Ranges.
9821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9824 as_cr_digits='0123456789'
9825 as_cr_alnum=$as_cr_Letters$as_cr_digits
9826
9827 ECHO_C= ECHO_N= ECHO_T=
9828 case `echo -n x` in #(((((
9829 -n*)
9830   case `echo 'xy\c'` in
9831   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9832   xy)  ECHO_C='\c';;
9833   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9834        ECHO_T=' ';;
9835   esac;;
9836 *)
9837   ECHO_N='-n';;
9838 esac
9839
9840 rm -f conf$$ conf$$.exe conf$$.file
9841 if test -d conf$$.dir; then
9842   rm -f conf$$.dir/conf$$.file
9843 else
9844   rm -f conf$$.dir
9845   mkdir conf$$.dir 2>/dev/null
9846 fi
9847 if (echo >conf$$.file) 2>/dev/null; then
9848   if ln -s conf$$.file conf$$ 2>/dev/null; then
9849     as_ln_s='ln -s'
9850     # ... but there are two gotchas:
9851     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9852     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9853     # In both cases, we have to default to `cp -pR'.
9854     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9855       as_ln_s='cp -pR'
9856   elif ln conf$$.file conf$$ 2>/dev/null; then
9857     as_ln_s=ln
9858   else
9859     as_ln_s='cp -pR'
9860   fi
9861 else
9862   as_ln_s='cp -pR'
9863 fi
9864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9865 rmdir conf$$.dir 2>/dev/null
9866
9867
9868 # as_fn_mkdir_p
9869 # -------------
9870 # Create "$as_dir" as a directory, including parents if necessary.
9871 as_fn_mkdir_p ()
9872 {
9873
9874   case $as_dir in #(
9875   -*) as_dir=./$as_dir;;
9876   esac
9877   test -d "$as_dir" || eval $as_mkdir_p || {
9878     as_dirs=
9879     while :; do
9880       case $as_dir in #(
9881       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9882       *) as_qdir=$as_dir;;
9883       esac
9884       as_dirs="'$as_qdir' $as_dirs"
9885       as_dir=`$as_dirname -- "$as_dir" ||
9886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9887          X"$as_dir" : 'X\(//\)[^/]' \| \
9888          X"$as_dir" : 'X\(//\)$' \| \
9889          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9890 $as_echo X"$as_dir" |
9891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9892             s//\1/
9893             q
9894           }
9895           /^X\(\/\/\)[^/].*/{
9896             s//\1/
9897             q
9898           }
9899           /^X\(\/\/\)$/{
9900             s//\1/
9901             q
9902           }
9903           /^X\(\/\).*/{
9904             s//\1/
9905             q
9906           }
9907           s/.*/./; q'`
9908       test -d "$as_dir" && break
9909     done
9910     test -z "$as_dirs" || eval "mkdir $as_dirs"
9911   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9912
9913
9914 } # as_fn_mkdir_p
9915 if mkdir -p . 2>/dev/null; then
9916   as_mkdir_p='mkdir -p "$as_dir"'
9917 else
9918   test -d ./-p && rmdir ./-p
9919   as_mkdir_p=false
9920 fi
9921
9922
9923 # as_fn_executable_p FILE
9924 # -----------------------
9925 # Test if FILE is an executable regular file.
9926 as_fn_executable_p ()
9927 {
9928   test -f "$1" && test -x "$1"
9929 } # as_fn_executable_p
9930 as_test_x='test -x'
9931 as_executable_p=as_fn_executable_p
9932
9933 # Sed expression to map a string onto a valid CPP name.
9934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9935
9936 # Sed expression to map a string onto a valid variable name.
9937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9938
9939
9940 exec 6>&1
9941 ## ----------------------------------- ##
9942 ## Main body of $CONFIG_STATUS script. ##
9943 ## ----------------------------------- ##
9944 _ASEOF
9945 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9946
9947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9948 # Save the log message, to keep $0 and so on meaningful, and to
9949 # report actual input values of CONFIG_FILES etc. instead of their
9950 # values after options handling.
9951 ac_log="
9952 This file was extended by psensor $as_me 1.0.2, which was
9953 generated by GNU Autoconf 2.69.  Invocation command line was
9954
9955   CONFIG_FILES    = $CONFIG_FILES
9956   CONFIG_HEADERS  = $CONFIG_HEADERS
9957   CONFIG_LINKS    = $CONFIG_LINKS
9958   CONFIG_COMMANDS = $CONFIG_COMMANDS
9959   $ $0 $@
9960
9961 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9962 "
9963
9964 _ACEOF
9965
9966 case $ac_config_files in *"
9967 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9968 esac
9969
9970 case $ac_config_headers in *"
9971 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9972 esac
9973
9974
9975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9976 # Files that config.status was made for.
9977 config_files="$ac_config_files"
9978 config_headers="$ac_config_headers"
9979 config_commands="$ac_config_commands"
9980
9981 _ACEOF
9982
9983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9984 ac_cs_usage="\
9985 \`$as_me' instantiates files and other configuration actions
9986 from templates according to the current configuration.  Unless the files
9987 and actions are specified as TAGs, all are instantiated by default.
9988
9989 Usage: $0 [OPTION]... [TAG]...
9990
9991   -h, --help       print this help, then exit
9992   -V, --version    print version number and configuration settings, then exit
9993       --config     print configuration, then exit
9994   -q, --quiet, --silent
9995                    do not print progress messages
9996   -d, --debug      don't remove temporary files
9997       --recheck    update $as_me by reconfiguring in the same conditions
9998       --file=FILE[:TEMPLATE]
9999                    instantiate the configuration file FILE
10000       --header=FILE[:TEMPLATE]
10001                    instantiate the configuration header FILE
10002
10003 Configuration files:
10004 $config_files
10005
10006 Configuration headers:
10007 $config_headers
10008
10009 Configuration commands:
10010 $config_commands
10011
10012 Report bugs to <jeanfi@gmail.com>.
10013 psensor home page: <http://wpitchoune.net/psensor>."
10014
10015 _ACEOF
10016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10017 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10018 ac_cs_version="\\
10019 psensor config.status 1.0.2
10020 configured by $0, generated by GNU Autoconf 2.69,
10021   with options \\"\$ac_cs_config\\"
10022
10023 Copyright (C) 2012 Free Software Foundation, Inc.
10024 This config.status script is free software; the Free Software Foundation
10025 gives unlimited permission to copy, distribute and modify it."
10026
10027 ac_pwd='$ac_pwd'
10028 srcdir='$srcdir'
10029 INSTALL='$INSTALL'
10030 MKDIR_P='$MKDIR_P'
10031 AWK='$AWK'
10032 test -n "\$AWK" || AWK=awk
10033 _ACEOF
10034
10035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10036 # The default lists apply if the user does not specify any file.
10037 ac_need_defaults=:
10038 while test $# != 0
10039 do
10040   case $1 in
10041   --*=?*)
10042     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10043     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10044     ac_shift=:
10045     ;;
10046   --*=)
10047     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10048     ac_optarg=
10049     ac_shift=:
10050     ;;
10051   *)
10052     ac_option=$1
10053     ac_optarg=$2
10054     ac_shift=shift
10055     ;;
10056   esac
10057
10058   case $ac_option in
10059   # Handling of the options.
10060   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10061     ac_cs_recheck=: ;;
10062   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10063     $as_echo "$ac_cs_version"; exit ;;
10064   --config | --confi | --conf | --con | --co | --c )
10065     $as_echo "$ac_cs_config"; exit ;;
10066   --debug | --debu | --deb | --de | --d | -d )
10067     debug=: ;;
10068   --file | --fil | --fi | --f )
10069     $ac_shift
10070     case $ac_optarg in
10071     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10072     '') as_fn_error $? "missing file argument" ;;
10073     esac
10074     as_fn_append CONFIG_FILES " '$ac_optarg'"
10075     ac_need_defaults=false;;
10076   --header | --heade | --head | --hea )
10077     $ac_shift
10078     case $ac_optarg in
10079     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10080     esac
10081     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10082     ac_need_defaults=false;;
10083   --he | --h)
10084     # Conflict between --help and --header
10085     as_fn_error $? "ambiguous option: \`$1'
10086 Try \`$0 --help' for more information.";;
10087   --help | --hel | -h )
10088     $as_echo "$ac_cs_usage"; exit ;;
10089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10090   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10091     ac_cs_silent=: ;;
10092
10093   # This is an error.
10094   -*) as_fn_error $? "unrecognized option: \`$1'
10095 Try \`$0 --help' for more information." ;;
10096
10097   *) as_fn_append ac_config_targets " $1"
10098      ac_need_defaults=false ;;
10099
10100   esac
10101   shift
10102 done
10103
10104 ac_configure_extra_args=
10105
10106 if $ac_cs_silent; then
10107   exec 6>/dev/null
10108   ac_configure_extra_args="$ac_configure_extra_args --silent"
10109 fi
10110
10111 _ACEOF
10112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10113 if \$ac_cs_recheck; then
10114   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10115   shift
10116   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10117   CONFIG_SHELL='$SHELL'
10118   export CONFIG_SHELL
10119   exec "\$@"
10120 fi
10121
10122 _ACEOF
10123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10124 exec 5>>config.log
10125 {
10126   echo
10127   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10128 ## Running $as_me. ##
10129 _ASBOX
10130   $as_echo "$ac_log"
10131 } >&5
10132
10133 _ACEOF
10134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10135 #
10136 # INIT-COMMANDS
10137 #
10138 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10139 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10140     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10141     # from automake < 1.5.
10142     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10143     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10144     LINGUAS="${LINGUAS-%UNSET%}"
10145
10146
10147 _ACEOF
10148
10149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10150
10151 # Handling of arguments.
10152 for ac_config_target in $ac_config_targets
10153 do
10154   case $ac_config_target in
10155     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10156     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10157     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10158     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10159     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10160     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10161     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
10162     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10163     "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
10164     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
10165     "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
10166     "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
10167     "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
10168     "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
10169     "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
10170     "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
10171     "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
10172     "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
10173     "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
10174     "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
10175     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
10176     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10177     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10178
10179   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10180   esac
10181 done
10182
10183
10184 # If the user did not use the arguments to specify the items to instantiate,
10185 # then the envvar interface is used.  Set only those that are not.
10186 # We use the long form for the default assignment because of an extremely
10187 # bizarre bug on SunOS 4.1.3.
10188 if $ac_need_defaults; then
10189   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10190   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10191   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10192 fi
10193
10194 # Have a temporary directory for convenience.  Make it in the build tree
10195 # simply because there is no reason against having it here, and in addition,
10196 # creating and moving files from /tmp can sometimes cause problems.
10197 # Hook for its removal unless debugging.
10198 # Note that there is a small window in which the directory will not be cleaned:
10199 # after its creation but before its name has been assigned to `$tmp'.
10200 $debug ||
10201 {
10202   tmp= ac_tmp=
10203   trap 'exit_status=$?
10204   : "${ac_tmp:=$tmp}"
10205   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10206 ' 0
10207   trap 'as_fn_exit 1' 1 2 13 15
10208 }
10209 # Create a (secure) tmp directory for tmp files.
10210
10211 {
10212   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10213   test -d "$tmp"
10214 }  ||
10215 {
10216   tmp=./conf$$-$RANDOM
10217   (umask 077 && mkdir "$tmp")
10218 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10219 ac_tmp=$tmp
10220
10221 # Set up the scripts for CONFIG_FILES section.
10222 # No need to generate them if there are no CONFIG_FILES.
10223 # This happens for instance with `./config.status config.h'.
10224 if test -n "$CONFIG_FILES"; then
10225
10226
10227 ac_cr=`echo X | tr X '\015'`
10228 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10229 # But we know of no other shell where ac_cr would be empty at this
10230 # point, so we can use a bashism as a fallback.
10231 if test "x$ac_cr" = x; then
10232   eval ac_cr=\$\'\\r\'
10233 fi
10234 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10235 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10236   ac_cs_awk_cr='\\r'
10237 else
10238   ac_cs_awk_cr=$ac_cr
10239 fi
10240
10241 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10242 _ACEOF
10243
10244
10245 {
10246   echo "cat >conf$$subs.awk <<_ACEOF" &&
10247   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10248   echo "_ACEOF"
10249 } >conf$$subs.sh ||
10250   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10251 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10252 ac_delim='%!_!# '
10253 for ac_last_try in false false false false false :; do
10254   . ./conf$$subs.sh ||
10255     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10256
10257   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10258   if test $ac_delim_n = $ac_delim_num; then
10259     break
10260   elif $ac_last_try; then
10261     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10262   else
10263     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10264   fi
10265 done
10266 rm -f conf$$subs.sh
10267
10268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10269 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10270 _ACEOF
10271 sed -n '
10272 h
10273 s/^/S["/; s/!.*/"]=/
10274 p
10275 g
10276 s/^[^!]*!//
10277 :repl
10278 t repl
10279 s/'"$ac_delim"'$//
10280 t delim
10281 :nl
10282 h
10283 s/\(.\{148\}\)..*/\1/
10284 t more1
10285 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10286 p
10287 n
10288 b repl
10289 :more1
10290 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10291 p
10292 g
10293 s/.\{148\}//
10294 t nl
10295 :delim
10296 h
10297 s/\(.\{148\}\)..*/\1/
10298 t more2
10299 s/["\\]/\\&/g; s/^/"/; s/$/"/
10300 p
10301 b
10302 :more2
10303 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10304 p
10305 g
10306 s/.\{148\}//
10307 t delim
10308 ' <conf$$subs.awk | sed '
10309 /^[^""]/{
10310   N
10311   s/\n//
10312 }
10313 ' >>$CONFIG_STATUS || ac_write_fail=1
10314 rm -f conf$$subs.awk
10315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10316 _ACAWK
10317 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10318   for (key in S) S_is_set[key] = 1
10319   FS = "\a"
10320
10321 }
10322 {
10323   line = $ 0
10324   nfields = split(line, field, "@")
10325   substed = 0
10326   len = length(field[1])
10327   for (i = 2; i < nfields; i++) {
10328     key = field[i]
10329     keylen = length(key)
10330     if (S_is_set[key]) {
10331       value = S[key]
10332       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10333       len += length(value) + length(field[++i])
10334       substed = 1
10335     } else
10336       len += 1 + keylen
10337   }
10338
10339   print line
10340 }
10341
10342 _ACAWK
10343 _ACEOF
10344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10345 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10346   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10347 else
10348   cat
10349 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10350   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10351 _ACEOF
10352
10353 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10354 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10355 # trailing colons and then remove the whole line if VPATH becomes empty
10356 # (actually we leave an empty line to preserve line numbers).
10357 if test "x$srcdir" = x.; then
10358   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10359 h
10360 s///
10361 s/^/:/
10362 s/[      ]*$/:/
10363 s/:\$(srcdir):/:/g
10364 s/:\${srcdir}:/:/g
10365 s/:@srcdir@:/:/g
10366 s/^:*//
10367 s/:*$//
10368 x
10369 s/\(=[   ]*\).*/\1/
10370 G
10371 s/\n//
10372 s/^[^=]*=[       ]*$//
10373 }'
10374 fi
10375
10376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10377 fi # test -n "$CONFIG_FILES"
10378
10379 # Set up the scripts for CONFIG_HEADERS section.
10380 # No need to generate them if there are no CONFIG_HEADERS.
10381 # This happens for instance with `./config.status Makefile'.
10382 if test -n "$CONFIG_HEADERS"; then
10383 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10384 BEGIN {
10385 _ACEOF
10386
10387 # Transform confdefs.h into an awk script `defines.awk', embedded as
10388 # here-document in config.status, that substitutes the proper values into
10389 # config.h.in to produce config.h.
10390
10391 # Create a delimiter string that does not exist in confdefs.h, to ease
10392 # handling of long lines.
10393 ac_delim='%!_!# '
10394 for ac_last_try in false false :; do
10395   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10396   if test -z "$ac_tt"; then
10397     break
10398   elif $ac_last_try; then
10399     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10400   else
10401     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10402   fi
10403 done
10404
10405 # For the awk script, D is an array of macro values keyed by name,
10406 # likewise P contains macro parameters if any.  Preserve backslash
10407 # newline sequences.
10408
10409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10410 sed -n '
10411 s/.\{148\}/&'"$ac_delim"'/g
10412 t rset
10413 :rset
10414 s/^[     ]*#[    ]*define[       ][      ]*/ /
10415 t def
10416 d
10417 :def
10418 s/\\$//
10419 t bsnl
10420 s/["\\]/\\&/g
10421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10422 D["\1"]=" \3"/p
10423 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10424 d
10425 :bsnl
10426 s/["\\]/\\&/g
10427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10428 D["\1"]=" \3\\\\\\n"\\/p
10429 t cont
10430 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10431 t cont
10432 d
10433 :cont
10434 n
10435 s/.\{148\}/&'"$ac_delim"'/g
10436 t clear
10437 :clear
10438 s/\\$//
10439 t bsnlc
10440 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10441 d
10442 :bsnlc
10443 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10444 b cont
10445 ' <confdefs.h | sed '
10446 s/'"$ac_delim"'/"\\\
10447 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10448
10449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10450   for (key in D) D_is_set[key] = 1
10451   FS = "\a"
10452 }
10453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10454   line = \$ 0
10455   split(line, arg, " ")
10456   if (arg[1] == "#") {
10457     defundef = arg[2]
10458     mac1 = arg[3]
10459   } else {
10460     defundef = substr(arg[1], 2)
10461     mac1 = arg[2]
10462   }
10463   split(mac1, mac2, "(") #)
10464   macro = mac2[1]
10465   prefix = substr(line, 1, index(line, defundef) - 1)
10466   if (D_is_set[macro]) {
10467     # Preserve the white space surrounding the "#".
10468     print prefix "define", macro P[macro] D[macro]
10469     next
10470   } else {
10471     # Replace #undef with comments.  This is necessary, for example,
10472     # in the case of _POSIX_SOURCE, which is predefined and required
10473     # on some systems where configure will not decide to define it.
10474     if (defundef == "undef") {
10475       print "/*", prefix defundef, macro, "*/"
10476       next
10477     }
10478   }
10479 }
10480 { print }
10481 _ACAWK
10482 _ACEOF
10483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10484   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10485 fi # test -n "$CONFIG_HEADERS"
10486
10487
10488 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10489 shift
10490 for ac_tag
10491 do
10492   case $ac_tag in
10493   :[FHLC]) ac_mode=$ac_tag; continue;;
10494   esac
10495   case $ac_mode$ac_tag in
10496   :[FHL]*:*);;
10497   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10498   :[FH]-) ac_tag=-:-;;
10499   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10500   esac
10501   ac_save_IFS=$IFS
10502   IFS=:
10503   set x $ac_tag
10504   IFS=$ac_save_IFS
10505   shift
10506   ac_file=$1
10507   shift
10508
10509   case $ac_mode in
10510   :L) ac_source=$1;;
10511   :[FH])
10512     ac_file_inputs=
10513     for ac_f
10514     do
10515       case $ac_f in
10516       -) ac_f="$ac_tmp/stdin";;
10517       *) # Look for the file first in the build tree, then in the source tree
10518          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10519          # because $ac_f cannot contain `:'.
10520          test -f "$ac_f" ||
10521            case $ac_f in
10522            [\\/$]*) false;;
10523            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10524            esac ||
10525            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10526       esac
10527       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10528       as_fn_append ac_file_inputs " '$ac_f'"
10529     done
10530
10531     # Let's still pretend it is `configure' which instantiates (i.e., don't
10532     # use $as_me), people would be surprised to read:
10533     #    /* config.h.  Generated by config.status.  */
10534     configure_input='Generated from '`
10535           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10536         `' by configure.'
10537     if test x"$ac_file" != x-; then
10538       configure_input="$ac_file.  $configure_input"
10539       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10540 $as_echo "$as_me: creating $ac_file" >&6;}
10541     fi
10542     # Neutralize special characters interpreted by sed in replacement strings.
10543     case $configure_input in #(
10544     *\&* | *\|* | *\\* )
10545        ac_sed_conf_input=`$as_echo "$configure_input" |
10546        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10547     *) ac_sed_conf_input=$configure_input;;
10548     esac
10549
10550     case $ac_tag in
10551     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10552       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10553     esac
10554     ;;
10555   esac
10556
10557   ac_dir=`$as_dirname -- "$ac_file" ||
10558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10559          X"$ac_file" : 'X\(//\)[^/]' \| \
10560          X"$ac_file" : 'X\(//\)$' \| \
10561          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10562 $as_echo X"$ac_file" |
10563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10564             s//\1/
10565             q
10566           }
10567           /^X\(\/\/\)[^/].*/{
10568             s//\1/
10569             q
10570           }
10571           /^X\(\/\/\)$/{
10572             s//\1/
10573             q
10574           }
10575           /^X\(\/\).*/{
10576             s//\1/
10577             q
10578           }
10579           s/.*/./; q'`
10580   as_dir="$ac_dir"; as_fn_mkdir_p
10581   ac_builddir=.
10582
10583 case "$ac_dir" in
10584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10585 *)
10586   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10587   # A ".." for each directory in $ac_dir_suffix.
10588   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10589   case $ac_top_builddir_sub in
10590   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10591   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10592   esac ;;
10593 esac
10594 ac_abs_top_builddir=$ac_pwd
10595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10596 # for backward compatibility:
10597 ac_top_builddir=$ac_top_build_prefix
10598
10599 case $srcdir in
10600   .)  # We are building in place.
10601     ac_srcdir=.
10602     ac_top_srcdir=$ac_top_builddir_sub
10603     ac_abs_top_srcdir=$ac_pwd ;;
10604   [\\/]* | ?:[\\/]* )  # Absolute name.
10605     ac_srcdir=$srcdir$ac_dir_suffix;
10606     ac_top_srcdir=$srcdir
10607     ac_abs_top_srcdir=$srcdir ;;
10608   *) # Relative name.
10609     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10610     ac_top_srcdir=$ac_top_build_prefix$srcdir
10611     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10612 esac
10613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10614
10615
10616   case $ac_mode in
10617   :F)
10618   #
10619   # CONFIG_FILE
10620   #
10621
10622   case $INSTALL in
10623   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10624   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10625   esac
10626   ac_MKDIR_P=$MKDIR_P
10627   case $MKDIR_P in
10628   [\\/$]* | ?:[\\/]* ) ;;
10629   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10630   esac
10631 _ACEOF
10632
10633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10634 # If the template does not know about datarootdir, expand it.
10635 # FIXME: This hack should be removed a few years after 2.60.
10636 ac_datarootdir_hack=; ac_datarootdir_seen=
10637 ac_sed_dataroot='
10638 /datarootdir/ {
10639   p
10640   q
10641 }
10642 /@datadir@/p
10643 /@docdir@/p
10644 /@infodir@/p
10645 /@localedir@/p
10646 /@mandir@/p'
10647 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10648 *datarootdir*) ac_datarootdir_seen=yes;;
10649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10651 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10652 _ACEOF
10653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10654   ac_datarootdir_hack='
10655   s&@datadir@&$datadir&g
10656   s&@docdir@&$docdir&g
10657   s&@infodir@&$infodir&g
10658   s&@localedir@&$localedir&g
10659   s&@mandir@&$mandir&g
10660   s&\\\${datarootdir}&$datarootdir&g' ;;
10661 esac
10662 _ACEOF
10663
10664 # Neutralize VPATH when `$srcdir' = `.'.
10665 # Shell code in configure.ac might set extrasub.
10666 # FIXME: do we really want to maintain this feature?
10667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10668 ac_sed_extra="$ac_vpsub
10669 $extrasub
10670 _ACEOF
10671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10672 :t
10673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10674 s|@configure_input@|$ac_sed_conf_input|;t t
10675 s&@top_builddir@&$ac_top_builddir_sub&;t t
10676 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10677 s&@srcdir@&$ac_srcdir&;t t
10678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10679 s&@top_srcdir@&$ac_top_srcdir&;t t
10680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10681 s&@builddir@&$ac_builddir&;t t
10682 s&@abs_builddir@&$ac_abs_builddir&;t t
10683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10684 s&@INSTALL@&$ac_INSTALL&;t t
10685 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10686 $ac_datarootdir_hack
10687 "
10688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10689   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10690
10691 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10692   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10693   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10694       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10695   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10696 which seems to be undefined.  Please make sure it is defined" >&5
10697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10698 which seems to be undefined.  Please make sure it is defined" >&2;}
10699
10700   rm -f "$ac_tmp/stdin"
10701   case $ac_file in
10702   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10703   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10704   esac \
10705   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10706  ;;
10707   :H)
10708   #
10709   # CONFIG_HEADER
10710   #
10711   if test x"$ac_file" != x-; then
10712     {
10713       $as_echo "/* $configure_input  */" \
10714       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10715     } >"$ac_tmp/config.h" \
10716       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10717     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10718       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10720     else
10721       rm -f "$ac_file"
10722       mv "$ac_tmp/config.h" "$ac_file" \
10723         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10724     fi
10725   else
10726     $as_echo "/* $configure_input  */" \
10727       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10728       || as_fn_error $? "could not create -" "$LINENO" 5
10729   fi
10730 # Compute "$ac_file"'s index in $config_headers.
10731 _am_arg="$ac_file"
10732 _am_stamp_count=1
10733 for _am_header in $config_headers :; do
10734   case $_am_header in
10735     $_am_arg | $_am_arg:* )
10736       break ;;
10737     * )
10738       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10739   esac
10740 done
10741 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10742 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10743          X"$_am_arg" : 'X\(//\)[^/]' \| \
10744          X"$_am_arg" : 'X\(//\)$' \| \
10745          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10746 $as_echo X"$_am_arg" |
10747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10748             s//\1/
10749             q
10750           }
10751           /^X\(\/\/\)[^/].*/{
10752             s//\1/
10753             q
10754           }
10755           /^X\(\/\/\)$/{
10756             s//\1/
10757             q
10758           }
10759           /^X\(\/\).*/{
10760             s//\1/
10761             q
10762           }
10763           s/.*/./; q'`/stamp-h$_am_stamp_count
10764  ;;
10765
10766   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10767 $as_echo "$as_me: executing $ac_file commands" >&6;}
10768  ;;
10769   esac
10770
10771
10772   case $ac_file$ac_mode in
10773     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10774   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10775   # are listed without --file.  Let's play safe and only enable the eval
10776   # if we detect the quoting.
10777   case $CONFIG_FILES in
10778   *\'*) eval set x "$CONFIG_FILES" ;;
10779   *)   set x $CONFIG_FILES ;;
10780   esac
10781   shift
10782   for mf
10783   do
10784     # Strip MF so we end up with the name of the file.
10785     mf=`echo "$mf" | sed -e 's/:.*$//'`
10786     # Check whether this is an Automake generated Makefile or not.
10787     # We used to match only the files named `Makefile.in', but
10788     # some people rename them; so instead we look at the file content.
10789     # Grep'ing the first line is not enough: some people post-process
10790     # each Makefile.in and add a new line on top of each file to say so.
10791     # Grep'ing the whole file is not good either: AIX grep has a line
10792     # limit of 2048, but all sed's we know have understand at least 4000.
10793     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10794       dirpart=`$as_dirname -- "$mf" ||
10795 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10796          X"$mf" : 'X\(//\)[^/]' \| \
10797          X"$mf" : 'X\(//\)$' \| \
10798          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10799 $as_echo X"$mf" |
10800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10801             s//\1/
10802             q
10803           }
10804           /^X\(\/\/\)[^/].*/{
10805             s//\1/
10806             q
10807           }
10808           /^X\(\/\/\)$/{
10809             s//\1/
10810             q
10811           }
10812           /^X\(\/\).*/{
10813             s//\1/
10814             q
10815           }
10816           s/.*/./; q'`
10817     else
10818       continue
10819     fi
10820     # Extract the definition of DEPDIR, am__include, and am__quote
10821     # from the Makefile without running `make'.
10822     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10823     test -z "$DEPDIR" && continue
10824     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10825     test -z "am__include" && continue
10826     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10827     # When using ansi2knr, U may be empty or an underscore; expand it
10828     U=`sed -n 's/^U = //p' < "$mf"`
10829     # Find all dependency output files, they are included files with
10830     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10831     # simplest approach to changing $(DEPDIR) to its actual value in the
10832     # expansion.
10833     for file in `sed -n "
10834       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10835          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10836       # Make sure the directory exists.
10837       test -f "$dirpart/$file" && continue
10838       fdir=`$as_dirname -- "$file" ||
10839 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10840          X"$file" : 'X\(//\)[^/]' \| \
10841          X"$file" : 'X\(//\)$' \| \
10842          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10843 $as_echo X"$file" |
10844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10845             s//\1/
10846             q
10847           }
10848           /^X\(\/\/\)[^/].*/{
10849             s//\1/
10850             q
10851           }
10852           /^X\(\/\/\)$/{
10853             s//\1/
10854             q
10855           }
10856           /^X\(\/\).*/{
10857             s//\1/
10858             q
10859           }
10860           s/.*/./; q'`
10861       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10862       # echo "creating $dirpart/$file"
10863       echo '# dummy' > "$dirpart/$file"
10864     done
10865   done
10866 }
10867  ;;
10868     "po-directories":C)
10869     for ac_file in $CONFIG_FILES; do
10870       # Support "outfile[:infile[:infile...]]"
10871       case "$ac_file" in
10872         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10873       esac
10874       # PO directories have a Makefile.in generated from Makefile.in.in.
10875       case "$ac_file" in */Makefile.in)
10876         # Adjust a relative srcdir.
10877         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10878         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10879         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10880         # In autoconf-2.13 it is called $ac_given_srcdir.
10881         # In autoconf-2.50 it is called $srcdir.
10882         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10883         case "$ac_given_srcdir" in
10884           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10885           /*) top_srcdir="$ac_given_srcdir" ;;
10886           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10887         esac
10888         # Treat a directory as a PO directory if and only if it has a
10889         # POTFILES.in file. This allows packages to have multiple PO
10890         # directories under different names or in different locations.
10891         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10892           rm -f "$ac_dir/POTFILES"
10893           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10894           gt_tab=`printf '\t'`
10895           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10896           POMAKEFILEDEPS="POTFILES.in"
10897           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10898           # on $ac_dir but don't depend on user-specified configuration
10899           # parameters.
10900           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10901             # The LINGUAS file contains the set of available languages.
10902             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10903               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10904             fi
10905             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10906             # Hide the ALL_LINGUAS assignment from automake < 1.5.
10907             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10908             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10909           else
10910             # The set of available languages was given in configure.in.
10911             # Hide the ALL_LINGUAS assignment from automake < 1.5.
10912             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10913           fi
10914           # Compute POFILES
10915           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10916           # Compute UPDATEPOFILES
10917           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10918           # Compute DUMMYPOFILES
10919           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10920           # Compute GMOFILES
10921           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10922           case "$ac_given_srcdir" in
10923             .) srcdirpre= ;;
10924             *) srcdirpre='$(srcdir)/' ;;
10925           esac
10926           POFILES=
10927           UPDATEPOFILES=
10928           DUMMYPOFILES=
10929           GMOFILES=
10930           for lang in $ALL_LINGUAS; do
10931             POFILES="$POFILES $srcdirpre$lang.po"
10932             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10933             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10934             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10935           done
10936           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10937           # environment variable.
10938           INST_LINGUAS=
10939           if test -n "$ALL_LINGUAS"; then
10940             for presentlang in $ALL_LINGUAS; do
10941               useit=no
10942               if test "%UNSET%" != "$LINGUAS"; then
10943                 desiredlanguages="$LINGUAS"
10944               else
10945                 desiredlanguages="$ALL_LINGUAS"
10946               fi
10947               for desiredlang in $desiredlanguages; do
10948                 # Use the presentlang catalog if desiredlang is
10949                 #   a. equal to presentlang, or
10950                 #   b. a variant of presentlang (because in this case,
10951                 #      presentlang can be used as a fallback for messages
10952                 #      which are not translated in the desiredlang catalog).
10953                 case "$desiredlang" in
10954                   "$presentlang"*) useit=yes;;
10955                 esac
10956               done
10957               if test $useit = yes; then
10958                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10959               fi
10960             done
10961           fi
10962           CATALOGS=
10963           if test -n "$INST_LINGUAS"; then
10964             for lang in $INST_LINGUAS; do
10965               CATALOGS="$CATALOGS $lang.gmo"
10966             done
10967           fi
10968           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10969           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"
10970           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10971             if test -f "$f"; then
10972               case "$f" in
10973                 *.orig | *.bak | *~) ;;
10974                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10975               esac
10976             fi
10977           done
10978         fi
10979         ;;
10980       esac
10981     done ;;
10982
10983   esac
10984 done # for ac_tag
10985
10986
10987 as_fn_exit 0
10988 _ACEOF
10989 ac_clean_files=$ac_clean_files_save
10990
10991 test $ac_write_fail = 0 ||
10992   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10993
10994
10995 # configure is writing to config.log, and then calls config.status.
10996 # config.status does its own redirection, appending to config.log.
10997 # Unfortunately, on DOS this fails, as config.log is still kept open
10998 # by configure, so config.status won't be able to write to it; its
10999 # output is simply discarded.  So we exec the FD to /dev/null,
11000 # effectively closing config.log, so it can be properly (re)opened and
11001 # appended to by config.status.  When coming back to configure, we
11002 # need to make the FD available again.
11003 if test "$no_create" != yes; then
11004   ac_cs_success=:
11005   ac_config_status_args=
11006   test "$silent" = yes &&
11007     ac_config_status_args="$ac_config_status_args --quiet"
11008   exec 5>/dev/null
11009   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11010   exec 5>>config.log
11011   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11012   # would make configure fail if this is the last instruction.
11013   $ac_cs_success || as_fn_exit 1
11014 fi
11015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11018 fi
11019