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