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