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