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