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