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