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