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