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