new release is 1.1.1
[psensor-pkg-ubuntu.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.1.1.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='1.1.1'
584 PACKAGE_STRING='psensor 1.1.1'
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 ASCIIDOC_FALSE
633 ASCIIDOC_TRUE
634 ASCIIDOC
635 HELP2MAN
636 GTOP_FALSE
637 GTOP_TRUE
638 GTOP_LIBS
639 GTOP_CFLAGS
640 LIBMICROHTTPD_FALSE
641 LIBMICROHTTPD_TRUE
642 LIBMICROHTTPD_LIBS
643 LIBMICROHTTPD_CFLAGS
644 LIBATIADL_LIBS
645 LIBATIADL_CFLAGS
646 LIBATIADL_FALSE
647 LIBATIADL_TRUE
648 UNITY_FALSE
649 UNITY_TRUE
650 UNITY_LIBS
651 UNITY_CFLAGS
652 NVIDIA_LIBS
653 NVIDIA_CFLAGS
654 NVIDIA_FALSE
655 NVIDIA_TRUE
656 JSON_FALSE
657 JSON_TRUE
658 JSON_LIBS
659 JSON_CFLAGS
660 CURL_FALSE
661 CURL_TRUE
662 CURL_LIBS
663 CURL_CFLAGS
664 APPINDICATOR_FALSE
665 APPINDICATOR_TRUE
666 APPINDICATOR_LIBS
667 APPINDICATOR_CFLAGS
668 LIBNOTIFY_FALSE
669 LIBNOTIFY_TRUE
670 LIBNOTIFY_LIBS
671 LIBNOTIFY_CFLAGS
672 ATASMART_FALSE
673 ATASMART_TRUE
674 ATASMART_LIBS
675 ATASMART_CFLAGS
676 GTK_FALSE
677 GTK_TRUE
678 GTK_LIBS
679 GTK_CFLAGS
680 XEXT_FALSE
681 XEXT_TRUE
682 XEXT_LIBS
683 XEXT_CFLAGS
684 X11_FALSE
685 X11_TRUE
686 X11_LIBS
687 X11_CFLAGS
688 SENSORS_LIBS
689 PTHREAD_LIBS
690 GSETTINGS_RULES
691 GLIB_COMPILE_SCHEMAS
692 gsettingsschemadir
693 PKG_CONFIG_LIBDIR
694 PKG_CONFIG_PATH
695 PKG_CONFIG
696 GSETTINGS_DISABLE_SCHEMAS_COMPILE
697 POSUB
698 LTLIBINTL
699 LIBINTL
700 INTLLIBS
701 LTLIBICONV
702 LIBICONV
703 INTL_MACOSX_LIBS
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 XGETTEXT_EXTRA_OPTIONS
713 MSGMERGE
714 XGETTEXT_015
715 XGETTEXT
716 GMSGFMT_015
717 MSGFMT_015
718 GMSGFMT
719 MSGFMT
720 GETTEXT_MACRO_VERSION
721 USE_NLS
722 SED
723 LIBOBJS
724 EGREP
725 GREP
726 CPP
727 XMKMF
728 ac_ct_AR
729 AR
730 RANLIB
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_dependency_tracking
813 enable_largefile
814 with_x
815 enable_nls
816 with_gnu_ld
817 enable_rpath
818 with_libiconv_prefix
819 with_libintl_prefix
820 enable_schemas_compile
821 with_libatiadl
822 with_gtop
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 XMKMF
833 CPP
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 X11_CFLAGS
838 X11_LIBS
839 XEXT_CFLAGS
840 XEXT_LIBS
841 GTK_CFLAGS
842 GTK_LIBS
843 ATASMART_CFLAGS
844 ATASMART_LIBS
845 LIBNOTIFY_CFLAGS
846 LIBNOTIFY_LIBS
847 APPINDICATOR_CFLAGS
848 APPINDICATOR_LIBS
849 CURL_CFLAGS
850 CURL_LIBS
851 JSON_CFLAGS
852 JSON_LIBS
853 UNITY_CFLAGS
854 UNITY_LIBS
855 LIBMICROHTTPD_CFLAGS
856 LIBMICROHTTPD_LIBS
857 GTOP_CFLAGS
858 GTOP_LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913   # If the previous option needs an argument, assign it.
914   if test -n "$ac_prev"; then
915     eval $ac_prev=\$ac_option
916     ac_prev=
917     continue
918   fi
919
920   case $ac_option in
921   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922   *=)   ac_optarg= ;;
923   *)    ac_optarg=yes ;;
924   esac
925
926   # Accept the important Cygnus configure options, so we can diagnose typos.
927
928   case $ac_dashdash$ac_option in
929   --)
930     ac_dashdash=yes ;;
931
932   -bindir | --bindir | --bindi | --bind | --bin | --bi)
933     ac_prev=bindir ;;
934   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935     bindir=$ac_optarg ;;
936
937   -build | --build | --buil | --bui | --bu)
938     ac_prev=build_alias ;;
939   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940     build_alias=$ac_optarg ;;
941
942   -cache-file | --cache-file | --cache-fil | --cache-fi \
943   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944     ac_prev=cache_file ;;
945   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947     cache_file=$ac_optarg ;;
948
949   --config-cache | -C)
950     cache_file=config.cache ;;
951
952   -datadir | --datadir | --datadi | --datad)
953     ac_prev=datadir ;;
954   -datadir=* | --datadir=* | --datadi=* | --datad=*)
955     datadir=$ac_optarg ;;
956
957   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958   | --dataroo | --dataro | --datar)
959     ac_prev=datarootdir ;;
960   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962     datarootdir=$ac_optarg ;;
963
964   -disable-* | --disable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       as_fn_error $? "invalid feature name: $ac_useropt"
969     ac_useropt_orig=$ac_useropt
970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971     case $ac_user_opts in
972       *"
973 "enable_$ac_useropt"
974 "*) ;;
975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976          ac_unrecognized_sep=', ';;
977     esac
978     eval enable_$ac_useropt=no ;;
979
980   -docdir | --docdir | --docdi | --doc | --do)
981     ac_prev=docdir ;;
982   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983     docdir=$ac_optarg ;;
984
985   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986     ac_prev=dvidir ;;
987   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988     dvidir=$ac_optarg ;;
989
990   -enable-* | --enable-*)
991     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992     # Reject names that are not valid shell variable names.
993     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994       as_fn_error $? "invalid feature name: $ac_useropt"
995     ac_useropt_orig=$ac_useropt
996     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997     case $ac_user_opts in
998       *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002          ac_unrecognized_sep=', ';;
1003     esac
1004     eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
1126   -program-transform-name=* | --program-transform-name=* \
1127   | --program-transform-nam=* | --program-transform-na=* \
1128   | --program-transform-n=* | --program-transform-=* \
1129   | --program-transform=* | --program-transfor=* \
1130   | --program-transfo=* | --program-transf=* \
1131   | --program-trans=* | --program-tran=* \
1132   | --progr-tra=* | --program-tr=* | --program-t=*)
1133     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150     ac_prev=sbindir ;;
1151   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152   | --sbi=* | --sb=*)
1153     sbindir=$ac_optarg ;;
1154
1155   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157   | --sharedst | --shareds | --shared | --share | --shar \
1158   | --sha | --sh)
1159     ac_prev=sharedstatedir ;;
1160   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163   | --sha=* | --sh=*)
1164     sharedstatedir=$ac_optarg ;;
1165
1166   -site | --site | --sit)
1167     ac_prev=site ;;
1168   -site=* | --site=* | --sit=*)
1169     site=$ac_optarg ;;
1170
1171   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172     ac_prev=srcdir ;;
1173   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174     srcdir=$ac_optarg ;;
1175
1176   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177   | --syscon | --sysco | --sysc | --sys | --sy)
1178     ac_prev=sysconfdir ;;
1179   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181     sysconfdir=$ac_optarg ;;
1182
1183   -target | --target | --targe | --targ | --tar | --ta | --t)
1184     ac_prev=target_alias ;;
1185   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186     target_alias=$ac_optarg ;;
1187
1188   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189     verbose=yes ;;
1190
1191   -version | --version | --versio | --versi | --vers | -V)
1192     ac_init_version=: ;;
1193
1194   -with-* | --with-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error $? "invalid package name: $ac_useropt"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=\$ac_optarg ;;
1209
1210   -without-* | --without-*)
1211     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214       as_fn_error $? "invalid package name: $ac_useropt"
1215     ac_useropt_orig=$ac_useropt
1216     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217     case $ac_user_opts in
1218       *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222          ac_unrecognized_sep=', ';;
1223     esac
1224     eval with_$ac_useropt=no ;;
1225
1226   --x)
1227     # Obsolete; use --with-x.
1228     with_x=yes ;;
1229
1230   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231   | --x-incl | --x-inc | --x-in | --x-i)
1232     ac_prev=x_includes ;;
1233   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235     x_includes=$ac_optarg ;;
1236
1237   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239     ac_prev=x_libraries ;;
1240   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242     x_libraries=$ac_optarg ;;
1243
1244   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246     ;;
1247
1248   *=*)
1249     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250     # Reject names that are not valid shell variable names.
1251     case $ac_envvar in #(
1252       '' | [0-9]* | *[!_$as_cr_alnum]* )
1253       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254     esac
1255     eval $ac_envvar=\$ac_optarg
1256     export $ac_envvar ;;
1257
1258   *)
1259     # FIXME: should be removed in autoconf 3.0.
1260     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264     ;;
1265
1266   esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271   as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275   case $enable_option_checking in
1276     no) ;;
1277     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279   esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284                 datadir sysconfdir sharedstatedir localstatedir includedir \
1285                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286                 libdir localedir mandir
1287 do
1288   eval ac_val=\$$ac_var
1289   # Remove trailing slashes.
1290   case $ac_val in
1291     */ )
1292       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293       eval $ac_var=\$ac_val;;
1294   esac
1295   # Be sure to have absolute directory names.
1296   case $ac_val in
1297     [\\/$]* | ?:[\\/]* )  continue;;
1298     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299   esac
1300   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312   if test "x$build_alias" = x; then
1313     cross_compiling=maybe
1314   elif test "x$build_alias" != "x$host_alias"; then
1315     cross_compiling=yes
1316   fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328   as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335   ac_srcdir_defaulted=yes
1336   # Try the directory containing this script, then the parent directory.
1337   ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339          X"$as_myself" : 'X\(//\)[^/]' \| \
1340          X"$as_myself" : 'X\(//\)$' \| \
1341          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)[^/].*/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)$/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\).*/{
1356             s//\1/
1357             q
1358           }
1359           s/.*/./; q'`
1360   srcdir=$ac_confdir
1361   if test ! -r "$srcdir/$ac_unique_file"; then
1362     srcdir=..
1363   fi
1364 else
1365   ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures psensor 1.1.1 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking ...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           [$ac_default_prefix]
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433   --bindir=DIR            user executables [EPREFIX/bin]
1434   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR        program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR            object code libraries [EPREFIX/lib]
1440   --includedir=DIR        C header files [PREFIX/include]
1441   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR           info documentation [DATAROOTDIR/info]
1445   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR            man documentation [DATAROOTDIR/man]
1447   --docdir=DIR            documentation root [DATAROOTDIR/doc/psensor]
1448   --htmldir=DIR           html documentation [DOCDIR]
1449   --dvidir=DIR            dvi documentation [DOCDIR]
1450   --pdfdir=DIR            pdf documentation [DOCDIR]
1451   --psdir=DIR             ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 Program names:
1457   --program-prefix=PREFIX            prepend PREFIX to installed program names
1458   --program-suffix=SUFFIX            append SUFFIX to installed program names
1459   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461 X features:
1462   --x-includes=DIR    X include files are in DIR
1463   --x-libraries=DIR   X library files are in DIR
1464
1465 System types:
1466   --build=BUILD     configure for building on BUILD [guessed]
1467   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472   case $ac_init_help in
1473      short | recursive ) echo "Configuration of psensor 1.1.1:";;
1474    esac
1475   cat <<\_ACEOF
1476
1477 Optional Features:
1478   --disable-option-checking  ignore unrecognized --enable/--with options
1479   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481   --disable-dependency-tracking  speeds up one-time build
1482   --enable-dependency-tracking   do not reject slow dependency extractors
1483   --disable-largefile     omit support for large files
1484   --disable-nls           do not use Native Language Support
1485   --disable-rpath         do not hardcode runtime library paths
1486   --disable-schemas-compile
1487                           Disable regeneration of gschemas.compiled on install
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-x                use the X Window System
1493   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1495   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1496   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1497   --without-libintl-prefix     don't search for libintl in includedir and libdir
1498   --with-libatiadl=DIR   use libatiadlxx in DIR
1499   --with-gtop=yes|no   use gtop
1500
1501 Some influential environment variables:
1502   CC          C compiler command
1503   CFLAGS      C compiler flags
1504   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505               nonstandard directory <lib dir>
1506   LIBS        libraries to pass to the linker, e.g. -l<library>
1507   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508               you have headers in a nonstandard directory <include dir>
1509   XMKMF       Path to xmkmf, Makefile generator for X Window System
1510   CPP         C preprocessor
1511   PKG_CONFIG  path to pkg-config utility
1512   PKG_CONFIG_PATH
1513               directories to add to pkg-config's search path
1514   PKG_CONFIG_LIBDIR
1515               path overriding pkg-config's built-in search path
1516   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1517   X11_LIBS    linker flags for X11, overriding pkg-config
1518   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1519   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1520   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1521   GTK_LIBS    linker flags for GTK, overriding pkg-config
1522   ATASMART_CFLAGS
1523               C compiler flags for ATASMART, overriding pkg-config
1524   ATASMART_LIBS
1525               linker flags for ATASMART, overriding pkg-config
1526   LIBNOTIFY_CFLAGS
1527               C compiler flags for LIBNOTIFY, overriding pkg-config
1528   LIBNOTIFY_LIBS
1529               linker flags for LIBNOTIFY, overriding pkg-config
1530   APPINDICATOR_CFLAGS
1531               C compiler flags for APPINDICATOR, overriding pkg-config
1532   APPINDICATOR_LIBS
1533               linker flags for APPINDICATOR, overriding pkg-config
1534   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1535   CURL_LIBS   linker flags for CURL, overriding pkg-config
1536   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1537   JSON_LIBS   linker flags for JSON, overriding pkg-config
1538   UNITY_CFLAGS
1539               C compiler flags for UNITY, overriding pkg-config
1540   UNITY_LIBS  linker flags for UNITY, overriding pkg-config
1541   LIBMICROHTTPD_CFLAGS
1542               C compiler flags for LIBMICROHTTPD, overriding pkg-config
1543   LIBMICROHTTPD_LIBS
1544               linker flags for LIBMICROHTTPD, overriding pkg-config
1545   GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1546   GTOP_LIBS   linker flags for GTOP, overriding pkg-config
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to <jeanfi@gmail.com>.
1552 psensor home page: <http://wpitchoune.net/psensor>.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558   # If there are subdirs, report their specific --help.
1559   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560     test -d "$ac_dir" ||
1561       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562       continue
1563     ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569   # A ".." for each directory in $ac_dir_suffix.
1570   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571   case $ac_top_builddir_sub in
1572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574   esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582   .)  # We are building in place.
1583     ac_srcdir=.
1584     ac_top_srcdir=$ac_top_builddir_sub
1585     ac_abs_top_srcdir=$ac_pwd ;;
1586   [\\/]* | ?:[\\/]* )  # Absolute name.
1587     ac_srcdir=$srcdir$ac_dir_suffix;
1588     ac_top_srcdir=$srcdir
1589     ac_abs_top_srcdir=$srcdir ;;
1590   *) # Relative name.
1591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592     ac_top_srcdir=$ac_top_build_prefix$srcdir
1593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597     cd "$ac_dir" || { ac_status=$?; continue; }
1598     # Check for guested configure.
1599     if test -f "$ac_srcdir/configure.gnu"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602     elif test -f "$ac_srcdir/configure"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure" --help=recursive
1605     else
1606       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607     fi || ac_status=$?
1608     cd "$ac_pwd" || { ac_status=$?; break; }
1609   done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614   cat <<\_ACEOF
1615 psensor configure 1.1.1
1616 generated by GNU Autoconf 2.69
1617
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622   exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext
1636   if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_compile") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest.$ac_objext; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681   ac_status=$?
1682   if test -s conftest.err; then
1683     grep -v '^ *+' conftest.err >conftest.er1
1684     cat conftest.er1 >&5
1685     mv -f conftest.er1 conftest.err
1686   fi
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; } > conftest.i && {
1689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690          test ! -s conftest.err
1691        }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697     ac_retval=1
1698 fi
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_link ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   rm -f conftest.$ac_objext conftest$ac_exeext
1711   if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_link") 2>conftest.err
1719   ac_status=$?
1720   if test -s conftest.err; then
1721     grep -v '^ *+' conftest.err >conftest.er1
1722     cat conftest.er1 >&5
1723     mv -f conftest.er1 conftest.err
1724   fi
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && {
1727          test -z "$ac_c_werror_flag" ||
1728          test ! -s conftest.err
1729        } && test -s conftest$ac_exeext && {
1730          test "$cross_compiling" = yes ||
1731          test -x conftest$ac_exeext
1732        }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
1740   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742   # interfere with the next link command; also delete a directory that is
1743   # left behind by Apple's compiler.  We do this before executing the actions.
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_link
1749
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   if eval \${$3+:} false; then :
1759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762   $as_echo_n "(cached) " >&6
1763 fi
1764 eval ac_res=\$$3
1765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768   # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777   ac_header_compiler=yes
1778 else
1779   ac_header_compiler=no
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1784
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793   ac_header_preproc=yes
1794 else
1795   ac_header_preproc=no
1796 fi
1797 rm -f conftest.err conftest.i conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1800
1801 # So?  What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803   yes:no: )
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808     ;;
1809   no:yes:* )
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ( $as_echo "## ------------------------------- ##
1821 ## Report this to jeanfi@gmail.com ##
1822 ## ------------------------------- ##"
1823      ) | sed "s/^/$as_me: WARNING:     /" >&2
1824     ;;
1825 esac
1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829   $as_echo_n "(cached) " >&6
1830 else
1831   eval "$3=\$ac_header_compiler"
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 fi
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_mongrel
1840
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1845 ac_fn_c_try_run ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>&5
1856   ac_status=$?
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859   { { case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_try") 2>&5
1866   ac_status=$?
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; }; }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: program exited with status $ac_status" >&5
1872        $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875        ac_retval=$ac_status
1876 fi
1877   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_run
1882
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 $4
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   eval "$3=yes"
1902 else
1903   eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_header_compile
1913
1914 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1915 # -------------------------------------------
1916 # Tests whether TYPE exists after having included INCLUDES, setting cache
1917 # variable VAR accordingly.
1918 ac_fn_c_check_type ()
1919 {
1920   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval \${$3+:} false; then :
1924   $as_echo_n "(cached) " >&6
1925 else
1926   eval "$3=no"
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 int
1931 main ()
1932 {
1933 if (sizeof ($2))
1934          return 0;
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 int
1944 main ()
1945 {
1946 if (sizeof (($2)))
1947             return 0;
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953
1954 else
1955   eval "$3=yes"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_type
1967
1968 # ac_fn_c_check_func LINENO FUNC VAR
1969 # ----------------------------------
1970 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1971 ac_fn_c_check_func ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977   $as_echo_n "(cached) " >&6
1978 else
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1983 #define $2 innocuous_$2
1984
1985 /* System header to define __stub macros and hopefully few prototypes,
1986     which can conflict with char $2 (); below.
1987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1988     <limits.h> exists even on freestanding compilers.  */
1989
1990 #ifdef __STDC__
1991 # include <limits.h>
1992 #else
1993 # include <assert.h>
1994 #endif
1995
1996 #undef $2
1997
1998 /* Override any GCC internal prototype to avoid an error.
1999    Use char because int might match the return type of a GCC
2000    builtin and then its argument prototype would still apply.  */
2001 #ifdef __cplusplus
2002 extern "C"
2003 #endif
2004 char $2 ();
2005 /* The GNU C library defines this for functions which it implements
2006     to always fail with ENOSYS.  Some functions are actually named
2007     something starting with __ and the normal name is an alias.  */
2008 #if defined __stub_$2 || defined __stub___$2
2009 choke me
2010 #endif
2011
2012 int
2013 main ()
2014 {
2015 return $2 ();
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_link "$LINENO"; then :
2021   eval "$3=yes"
2022 else
2023   eval "$3=no"
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext \
2026     conftest$ac_exeext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_func
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2037
2038 It was created by psensor $as_me 1.1.1, which was
2039 generated by GNU Autoconf 2.69.  Invocation command line was
2040
2041   $ $0 $@
2042
2043 _ACEOF
2044 exec 5>>config.log
2045 {
2046 cat <<_ASUNAME
2047 ## --------- ##
2048 ## Platform. ##
2049 ## --------- ##
2050
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2059
2060 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2061 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2064 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2065 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2066 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2067
2068 _ASUNAME
2069
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075     $as_echo "PATH: $as_dir"
2076   done
2077 IFS=$as_save_IFS
2078
2079 } >&5
2080
2081 cat >&5 <<_ACEOF
2082
2083
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2087
2088 _ACEOF
2089
2090
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2101 do
2102   for ac_arg
2103   do
2104     case $ac_arg in
2105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107     | -silent | --silent | --silen | --sile | --sil)
2108       continue ;;
2109     *\'*)
2110       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     esac
2112     case $ac_pass in
2113     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114     2)
2115       as_fn_append ac_configure_args1 " '$ac_arg'"
2116       if test $ac_must_keep_next = true; then
2117         ac_must_keep_next=false # Got value, back to normal.
2118       else
2119         case $ac_arg in
2120           *=* | --config-cache | -C | -disable-* | --disable-* \
2121           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123           | -with-* | --with-* | -without-* | --without-* | --x)
2124             case "$ac_configure_args0 " in
2125               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126             esac
2127             ;;
2128           -* ) ac_must_keep_next=true ;;
2129         esac
2130       fi
2131       as_fn_append ac_configure_args " '$ac_arg'"
2132       ;;
2133     esac
2134   done
2135 done
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2138
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log.  We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145   # Save into config.log some information that might help in debugging.
2146   {
2147     echo
2148
2149     $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2152     echo
2153     # The following way of writing the cache mishandles newlines in values,
2154 (
2155   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156     eval ac_val=\$$ac_var
2157     case $ac_val in #(
2158     *${as_nl}*)
2159       case $ac_var in #(
2160       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162       esac
2163       case $ac_var in #(
2164       _ | IFS | as_nl) ;; #(
2165       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166       *) { eval $ac_var=; unset $ac_var;} ;;
2167       esac ;;
2168     esac
2169   done
2170   (set) 2>&1 |
2171     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172     *${as_nl}ac_space=\ *)
2173       sed -n \
2174         "s/'\''/'\''\\\\'\'''\''/g;
2175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176       ;; #(
2177     *)
2178       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179       ;;
2180     esac |
2181     sort
2182 )
2183     echo
2184
2185     $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2188     echo
2189     for ac_var in $ac_subst_vars
2190     do
2191       eval ac_val=\$$ac_var
2192       case $ac_val in
2193       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194       esac
2195       $as_echo "$ac_var='\''$ac_val'\''"
2196     done | sort
2197     echo
2198
2199     if test -n "$ac_subst_files"; then
2200       $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         $as_echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       $as_echo "## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##"
2219       echo
2220       cat confdefs.h
2221       echo
2222     fi
2223     test "$ac_signal" != 0 &&
2224       $as_echo "$as_me: caught signal $ac_signal"
2225     $as_echo "$as_me: exit $exit_status"
2226   } >&5
2227   rm -f core *.core core.conftest.* &&
2228     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229     exit $exit_status
2230 ' 0
2231 for ac_signal in 1 2 13 15; do
2232   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233 done
2234 ac_signal=0
2235
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2238
2239 $as_echo "/* confdefs.h */" > confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2270 ac_site_file1=NONE
2271 ac_site_file2=NONE
2272 if test -n "$CONFIG_SITE"; then
2273   # We do not want a PATH search for config.site.
2274   case $CONFIG_SITE in #((
2275     -*)  ac_site_file1=./$CONFIG_SITE;;
2276     */*) ac_site_file1=$CONFIG_SITE;;
2277     *)   ac_site_file1=./$CONFIG_SITE;;
2278   esac
2279 elif test "x$prefix" != xNONE; then
2280   ac_site_file1=$prefix/share/config.site
2281   ac_site_file2=$prefix/etc/config.site
2282 else
2283   ac_site_file1=$ac_default_prefix/share/config.site
2284   ac_site_file2=$ac_default_prefix/etc/config.site
2285 fi
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 do
2288   test "x$ac_site_file" = xNONE && continue
2289   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file" \
2294       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5; }
2298   fi
2299 done
2300
2301 if test -r "$cache_file"; then
2302   # Some versions of bash will fail to source /dev/null (special files
2303   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2304   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307     case $cache_file in
2308       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309       *)                      . "./$cache_file";;
2310     esac
2311   fi
2312 else
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2315   >$cache_file
2316 fi
2317
2318 gt_needs="$gt_needs "
2319 # Check that the precious variables saved in the cache have kept the same
2320 # value.
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324   eval ac_new_set=\$ac_env_${ac_var}_set
2325   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326   eval ac_new_val=\$ac_env_${ac_var}_value
2327   case $ac_old_set,$ac_new_set in
2328     set,)
2329       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331       ac_cache_corrupted=: ;;
2332     ,set)
2333       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335       ac_cache_corrupted=: ;;
2336     ,);;
2337     *)
2338       if test "x$ac_old_val" != "x$ac_new_val"; then
2339         # differences in whitespace do not lead to failure.
2340         ac_old_val_w=`echo x $ac_old_val`
2341         ac_new_val_w=`echo x $ac_new_val`
2342         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345           ac_cache_corrupted=:
2346         else
2347           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349           eval $ac_var=\$ac_old_val
2350         fi
2351         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2352 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2353         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2355       fi;;
2356   esac
2357   # Pass precious variables to config.status.
2358   if test "$ac_new_set" = set; then
2359     case $ac_new_val in
2360     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361     *) ac_arg=$ac_var=$ac_new_val ;;
2362     esac
2363     case " $ac_configure_args " in
2364       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2365       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366     esac
2367   fi
2368 done
2369 if $ac_cache_corrupted; then
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 fi
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387
2388 am__api_version='1.11'
2389
2390 ac_aux_dir=
2391 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2392   if test -f "$ac_dir/install-sh"; then
2393     ac_aux_dir=$ac_dir
2394     ac_install_sh="$ac_aux_dir/install-sh -c"
2395     break
2396   elif test -f "$ac_dir/install.sh"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/install.sh -c"
2399     break
2400   elif test -f "$ac_dir/shtool"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/shtool install -c"
2403     break
2404   fi
2405 done
2406 if test -z "$ac_aux_dir"; then
2407   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2408 fi
2409
2410 # These three variables are undocumented and unsupported,
2411 # and are intended to be withdrawn in a future Autoconf release.
2412 # They can cause serious problems if a builder's source tree is in a directory
2413 # whose full name contains unusual characters.
2414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2416 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2417
2418
2419 # Find a good install program.  We prefer a C program (faster),
2420 # so one script is as good as another.  But avoid the broken or
2421 # incompatible versions:
2422 # SysV /etc/install, /usr/sbin/install
2423 # SunOS /usr/etc/install
2424 # IRIX /sbin/install
2425 # AIX /bin/install
2426 # AmigaOS /C/install, which installs bootblocks on floppy discs
2427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2430 # OS/2's system install, which has a completely different semantic
2431 # ./install, which can be erroneously created by make from ./install.sh.
2432 # Reject install programs that cannot install multiple files.
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2434 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2435 if test -z "$INSTALL"; then
2436 if ${ac_cv_path_install+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444     # Account for people who put trailing slashes in PATH elements.
2445 case $as_dir/ in #((
2446   ./ | .// | /[cC]/* | \
2447   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2448   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2449   /usr/ucb/* ) ;;
2450   *)
2451     # OSF1 and SCO ODT 3.0 have their own names for install.
2452     # Don't use installbsd from OSF since it installs stuff as root
2453     # by default.
2454     for ac_prog in ginstall scoinst install; do
2455       for ac_exec_ext in '' $ac_executable_extensions; do
2456         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2457           if test $ac_prog = install &&
2458             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459             # AIX install.  It has an incompatible calling convention.
2460             :
2461           elif test $ac_prog = install &&
2462             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463             # program-specific install script used by HP pwplus--don't use.
2464             :
2465           else
2466             rm -rf conftest.one conftest.two conftest.dir
2467             echo one > conftest.one
2468             echo two > conftest.two
2469             mkdir conftest.dir
2470             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2471               test -s conftest.one && test -s conftest.two &&
2472               test -s conftest.dir/conftest.one &&
2473               test -s conftest.dir/conftest.two
2474             then
2475               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2476               break 3
2477             fi
2478           fi
2479         fi
2480       done
2481     done
2482     ;;
2483 esac
2484
2485   done
2486 IFS=$as_save_IFS
2487
2488 rm -rf conftest.one conftest.two conftest.dir
2489
2490 fi
2491   if test "${ac_cv_path_install+set}" = set; then
2492     INSTALL=$ac_cv_path_install
2493   else
2494     # As a last resort, use the slow shell script.  Don't cache a
2495     # value for INSTALL within a source directory, because that will
2496     # break other packages using the cache if that directory is
2497     # removed, or if the value is a relative name.
2498     INSTALL=$ac_install_sh
2499   fi
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2502 $as_echo "$INSTALL" >&6; }
2503
2504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2505 # It thinks the first close brace ends the variable substitution.
2506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2507
2508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2509
2510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2511
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2513 $as_echo_n "checking whether build environment is sane... " >&6; }
2514 # Just in case
2515 sleep 1
2516 echo timestamp > conftest.file
2517 # Reject unsafe characters in $srcdir or the absolute working directory
2518 # name.  Accept space and tab only in the latter.
2519 am_lf='
2520 '
2521 case `pwd` in
2522   *[\\\"\#\$\&\'\`$am_lf]*)
2523     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2524 esac
2525 case $srcdir in
2526   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2527     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2528 esac
2529
2530 # Do `set' in a subshell so we don't clobber the current shell's
2531 # arguments.  Must try -L first in case configure is actually a
2532 # symlink; some systems play weird games with the mod time of symlinks
2533 # (eg FreeBSD returns the mod time of the symlink's containing
2534 # directory).
2535 if (
2536    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2537    if test "$*" = "X"; then
2538       # -L didn't work.
2539       set X `ls -t "$srcdir/configure" conftest.file`
2540    fi
2541    rm -f conftest.file
2542    if test "$*" != "X $srcdir/configure conftest.file" \
2543       && test "$*" != "X conftest.file $srcdir/configure"; then
2544
2545       # If neither matched, then we have a broken ls.  This can happen
2546       # if, for instance, CONFIG_SHELL is bash and it inherits a
2547       # broken ls alias from the environment.  This has actually
2548       # happened.  Such a system could not be considered "sane".
2549       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2550 alias in your environment" "$LINENO" 5
2551    fi
2552
2553    test "$2" = conftest.file
2554    )
2555 then
2556    # Ok.
2557    :
2558 else
2559    as_fn_error $? "newly created file is older than distributed files!
2560 Check your system clock" "$LINENO" 5
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563 $as_echo "yes" >&6; }
2564 test "$program_prefix" != NONE &&
2565   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2566 # Use a double $ so make ignores it.
2567 test "$program_suffix" != NONE &&
2568   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2569 # Double any \ or $.
2570 # By default was `s,x,x', remove it if useless.
2571 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2572 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2573
2574 # expand $ac_aux_dir to an absolute path
2575 am_aux_dir=`cd $ac_aux_dir && pwd`
2576
2577 if test x"${MISSING+set}" != xset; then
2578   case $am_aux_dir in
2579   *\ * | *\     *)
2580     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2581   *)
2582     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2583   esac
2584 fi
2585 # Use eval to expand $SHELL
2586 if eval "$MISSING --run true"; then
2587   am_missing_run="$MISSING --run "
2588 else
2589   am_missing_run=
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2591 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2592 fi
2593
2594 if test x"${install_sh}" != xset; then
2595   case $am_aux_dir in
2596   *\ * | *\     *)
2597     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2598   *)
2599     install_sh="\${SHELL} $am_aux_dir/install-sh"
2600   esac
2601 fi
2602
2603 # Installed binaries are usually stripped using `strip' when the user
2604 # run `make install-strip'.  However `strip' might not be the right
2605 # tool to use in cross-compilation environments, therefore Automake
2606 # will honor the `STRIP' environment variable to overrule this program.
2607 if test "$cross_compiling" != no; then
2608   if test -n "$ac_tool_prefix"; then
2609   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_STRIP+:} false; then :
2614   $as_echo_n "(cached) " >&6
2615 else
2616   if test -n "$STRIP"; then
2617   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624     for ac_exec_ext in '' $ac_executable_extensions; do
2625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631   done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 STRIP=$ac_cv_prog_STRIP
2637 if test -n "$STRIP"; then
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2639 $as_echo "$STRIP" >&6; }
2640 else
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$ac_cv_prog_STRIP"; then
2648   ac_ct_STRIP=$STRIP
2649   # Extract the first word of "strip", so it can be a program name with args.
2650 set dummy strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$ac_ct_STRIP"; then
2657   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666     ac_cv_prog_ac_ct_STRIP="strip"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2677 if test -n "$ac_ct_STRIP"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2679 $as_echo "$ac_ct_STRIP" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685   if test "x$ac_ct_STRIP" = x; then
2686     STRIP=":"
2687   else
2688     case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2692 ac_tool_warned=yes ;;
2693 esac
2694     STRIP=$ac_ct_STRIP
2695   fi
2696 else
2697   STRIP="$ac_cv_prog_STRIP"
2698 fi
2699
2700 fi
2701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2704 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2705 if test -z "$MKDIR_P"; then
2706   if ${ac_cv_path_mkdir+:} false; then :
2707   $as_echo_n "(cached) " >&6
2708 else
2709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714     for ac_prog in mkdir gmkdir; do
2715          for ac_exec_ext in '' $ac_executable_extensions; do
2716            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2717            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2718              'mkdir (GNU coreutils) '* | \
2719              'mkdir (coreutils) '* | \
2720              'mkdir (fileutils) '4.1*)
2721                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2722                break 3;;
2723            esac
2724          done
2725        done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730
2731   test -d ./--version && rmdir ./--version
2732   if test "${ac_cv_path_mkdir+set}" = set; then
2733     MKDIR_P="$ac_cv_path_mkdir -p"
2734   else
2735     # As a last resort, use the slow shell script.  Don't cache a
2736     # value for MKDIR_P within a source directory, because that will
2737     # break other packages using the cache if that directory is
2738     # removed, or if the value is a relative name.
2739     MKDIR_P="$ac_install_sh -d"
2740   fi
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2743 $as_echo "$MKDIR_P" >&6; }
2744
2745 mkdir_p="$MKDIR_P"
2746 case $mkdir_p in
2747   [\\/$]* | ?:[\\/]*) ;;
2748   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2749 esac
2750
2751 for ac_prog in gawk mawk nawk awk
2752 do
2753   # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_AWK+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if test -n "$AWK"; then
2761   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     ac_cv_prog_AWK="$ac_prog"
2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775   done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 AWK=$ac_cv_prog_AWK
2781 if test -n "$AWK"; then
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2783 $as_echo "$AWK" >&6; }
2784 else
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789
2790   test -n "$AWK" && break
2791 done
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2794 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2795 set x ${MAKE-make}
2796 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2797 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   cat >conftest.make <<\_ACEOF
2801 SHELL = /bin/sh
2802 all:
2803         @echo '@@@%%%=$(MAKE)=@@@%%%'
2804 _ACEOF
2805 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2806 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2807   *@@@%%%=?*=@@@%%%*)
2808     eval ac_cv_prog_make_${ac_make}_set=yes;;
2809   *)
2810     eval ac_cv_prog_make_${ac_make}_set=no;;
2811 esac
2812 rm -f conftest.make
2813 fi
2814 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817   SET_MAKE=
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821   SET_MAKE="MAKE=${MAKE-make}"
2822 fi
2823
2824 rm -rf .tst 2>/dev/null
2825 mkdir .tst 2>/dev/null
2826 if test -d .tst; then
2827   am__leading_dot=.
2828 else
2829   am__leading_dot=_
2830 fi
2831 rmdir .tst 2>/dev/null
2832
2833 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2834   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2835   # is not polluted with repeated "-I."
2836   am__isrc=' -I$(srcdir)'
2837   # test to see if srcdir already configured
2838   if test -f $srcdir/config.status; then
2839     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2840   fi
2841 fi
2842
2843 # test whether we have cygpath
2844 if test -z "$CYGPATH_W"; then
2845   if (cygpath --version) >/dev/null 2>/dev/null; then
2846     CYGPATH_W='cygpath -w'
2847   else
2848     CYGPATH_W=echo
2849   fi
2850 fi
2851
2852
2853 # Define the identity of the package.
2854  PACKAGE='psensor'
2855  VERSION='1.1.1'
2856
2857
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE "$PACKAGE"
2860 _ACEOF
2861
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define VERSION "$VERSION"
2865 _ACEOF
2866
2867 # Some tools Automake needs.
2868
2869 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2870
2871
2872 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2873
2874
2875 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2876
2877
2878 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2879
2880
2881 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2882
2883 # We need awk for the "check" target.  The system "awk" is bad on
2884 # some platforms.
2885 # Always define AMTAR for backward compatibility.  Yes, it's still used
2886 # in the wild :-(  We should find a proper way to deprecate it ...
2887 AMTAR='$${TAR-tar}'
2888
2889 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2890
2891
2892
2893
2894
2895
2896
2897 ac_config_headers="$ac_config_headers config.h"
2898
2899
2900 # m4
2901
2902
2903 # Checks for programs.
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 fi
2948 if test -z "$ac_cv_prog_CC"; then
2949   ac_ct_CC=$CC
2950   # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   if test -n "$ac_ct_CC"; then
2958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965     for ac_exec_ext in '' $ac_executable_extensions; do
2966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967     ac_cv_prog_ac_ct_CC="gcc"
2968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972   done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986   if test "x$ac_ct_CC" = x; then
2987     CC=""
2988   else
2989     case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995     CC=$ac_ct_CC
2996   fi
2997 else
2998   CC="$ac_cv_prog_CC"
2999 fi
3000
3001 if test -z "$CC"; then
3002           if test -n "$ac_tool_prefix"; then
3003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$CC"; then
3011   ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020     ac_cv_prog_CC="${ac_tool_prefix}cc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040   fi
3041 fi
3042 if test -z "$CC"; then
3043   # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053   ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062        ac_prog_rejected=yes
3063        continue
3064      fi
3065     ac_cv_prog_CC="cc"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 if test $ac_prog_rejected = yes; then
3074   # We found a bogon in the path, so make sure we never use it.
3075   set dummy $ac_cv_prog_CC
3076   shift
3077   if test $# != 0; then
3078     # We chose a different compiler from the bogus one.
3079     # However, it has the same basename, so the bogon will be chosen
3080     # first if we set CC to just the basename; use the full file name.
3081     shift
3082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083   fi
3084 fi
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$CC"; then
3099   if test -n "$ac_tool_prefix"; then
3100   for ac_prog in cl.exe
3101   do
3102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139     test -n "$CC" && break
3140   done
3141 fi
3142 if test -z "$CC"; then
3143   ac_ct_CC=$CC
3144   for ac_prog in cl.exe
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$ac_ct_CC"; then
3154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163     ac_cv_prog_ac_ct_CC="$ac_prog"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183   test -n "$ac_ct_CC" && break
3184 done
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     CC=$ac_ct_CC
3196   fi
3197 fi
3198
3199 fi
3200
3201
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3206
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 set X $ac_compile
3210 ac_compiler=$2
3211 for ac_option in --version -v -V -qversion; do
3212   { { ac_try="$ac_compiler $ac_option >&5"
3213 case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220   ac_status=$?
3221   if test -s conftest.err; then
3222     sed '10a\
3223 ... rest of stderr output deleted ...
3224          10q' conftest.err >conftest.er1
3225     cat conftest.er1 >&5
3226   fi
3227   rm -f conftest.er1 conftest.err
3228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229   test $ac_status = 0; }
3230 done
3231
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3247 # of exeext.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3254
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3257 do
3258   case $ac_file in
3259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261   esac
3262 done
3263 rm -f $ac_rmfiles
3264
3265 if { { ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272   (eval "$ac_link_default") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275   test $ac_status = 0; }; then :
3276   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3280 # Autoconf.
3281 for ac_file in $ac_files ''
3282 do
3283   test -f "$ac_file" || continue
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3286         ;;
3287     [ab].out )
3288         # We found the default executable, but exeext='' is most
3289         # certainly right.
3290         break;;
3291     *.* )
3292         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293         then :; else
3294            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295         fi
3296         # We set ac_cv_exeext here because the later test for it is not
3297         # safe: cross compilers may not add the suffix if given an `-o'
3298         # argument, so we may need to know it at that point already.
3299         # Even if this section looks crufty: it has the advantage of
3300         # actually working.
3301         break;;
3302     * )
3303         break;;
3304   esac
3305 done
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307
3308 else
3309   ac_file=''
3310 fi
3311 if test -z "$ac_file"; then :
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3330
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345   test $ac_status = 0; }; then :
3346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351   test -f "$ac_file" || continue
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355           break;;
3356     * ) break;;
3357   esac
3358 done
3359 else
3360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 fi
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3368
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3371 ac_exeext=$EXEEXT
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374 #include <stdio.h>
3375 int
3376 main ()
3377 {
3378 FILE *f = fopen ("conftest.out", "w");
3379  return ferror (f) || fclose (f) != 0;
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run.  If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391   { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_link") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }
3402   if { ac_try='./conftest$ac_cv_exeext'
3403   { { case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_try") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }; }; then
3413     cross_compiling=no
3414   else
3415     if test "$cross_compiling" = maybe; then
3416         cross_compiling=yes
3417     else
3418         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3423     fi
3424   fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_compile") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; then :
3459   for ac_file in conftest.o conftest.obj conftest.*; do
3460   test -f "$ac_file" || continue;
3461   case $ac_file in
3462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464        break;;
3465   esac
3466 done
3467 else
3468   $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493 #ifndef __GNUC__
3494        choke me
3495 #endif
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502   ac_compiler_gnu=yes
3503 else
3504   ac_compiler_gnu=no
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513   GCC=yes
3514 else
3515   GCC=
3516 fi
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   ac_save_c_werror_flag=$ac_c_werror_flag
3525    ac_c_werror_flag=yes
3526    ac_cv_prog_cc_g=no
3527    CFLAGS="-g"
3528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540   ac_cv_prog_cc_g=yes
3541 else
3542   CFLAGS=""
3543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555
3556 else
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558          CFLAGS="-g"
3559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571   ac_cv_prog_cc_g=yes
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578    ac_c_werror_flag=$ac_save_c_werror_flag
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583   CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585   if test "$GCC" = yes; then
3586     CFLAGS="-g -O2"
3587   else
3588     CFLAGS="-g"
3589   fi
3590 else
3591   if test "$GCC" = yes; then
3592     CFLAGS="-O2"
3593   else
3594     CFLAGS=
3595   fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 struct stat;
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613      char **p;
3614      int i;
3615 {
3616   return p[i];
3617 }
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3619 {
3620   char *s;
3621   va_list v;
3622   va_start (v,p);
3623   s = g (p, va_arg (v,int));
3624   va_end (v);
3625   return s;
3626 }
3627
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3629    function prototypes and stuff, but not '\xHH' hex character constants.
3630    These don't provoke an error unfortunately, instead are silently treated
3631    as 'x'.  The following induces an error, until -std is added to get
3632    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3633    array size at least.  It's necessary to write '\x00'==0 to get something
3634    that's true only with -std.  */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638    inside strings and character constants.  */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3648 int
3649 main ()
3650 {
3651 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659   CC="$ac_save_CC $ac_arg"
3660   if ac_fn_c_try_compile "$LINENO"; then :
3661   ac_cv_prog_cc_c89=$ac_arg
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext
3664   test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 done
3666 rm -f conftest.$ac_ext
3667 CC=$ac_save_CC
3668
3669 fi
3670 # AC_CACHE_VAL
3671 case "x$ac_cv_prog_cc_c89" in
3672   x)
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3675   xno)
3676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3678   *)
3679     CC="$CC $ac_cv_prog_cc_c89"
3680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 esac
3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
3684
3685 fi
3686
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 DEPDIR="${am__leading_dot}deps"
3693
3694 ac_config_commands="$ac_config_commands depfiles"
3695
3696
3697 am_make=${MAKE-make}
3698 cat > confinc << 'END'
3699 am__doit:
3700         @echo this is the am__doit target
3701 .PHONY: am__doit
3702 END
3703 # If we don't find an include directive, just comment out the code.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3705 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3706 am__include="#"
3707 am__quote=
3708 _am_result=none
3709 # First try GNU make style include.
3710 echo "include confinc" > confmf
3711 # Ignore all kinds of additional output from `make'.
3712 case `$am_make -s -f confmf 2> /dev/null` in #(
3713 *the\ am__doit\ target*)
3714   am__include=include
3715   am__quote=
3716   _am_result=GNU
3717   ;;
3718 esac
3719 # Now try BSD make style include.
3720 if test "$am__include" = "#"; then
3721    echo '.include "confinc"' > confmf
3722    case `$am_make -s -f confmf 2> /dev/null` in #(
3723    *the\ am__doit\ target*)
3724      am__include=.include
3725      am__quote="\""
3726      _am_result=BSD
3727      ;;
3728    esac
3729 fi
3730
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3733 $as_echo "$_am_result" >&6; }
3734 rm -f confinc confmf
3735
3736 # Check whether --enable-dependency-tracking was given.
3737 if test "${enable_dependency_tracking+set}" = set; then :
3738   enableval=$enable_dependency_tracking;
3739 fi
3740
3741 if test "x$enable_dependency_tracking" != xno; then
3742   am_depcomp="$ac_aux_dir/depcomp"
3743   AMDEPBACKSLASH='\'
3744   am__nodep='_no'
3745 fi
3746  if test "x$enable_dependency_tracking" != xno; then
3747   AMDEP_TRUE=
3748   AMDEP_FALSE='#'
3749 else
3750   AMDEP_TRUE='#'
3751   AMDEP_FALSE=
3752 fi
3753
3754
3755
3756 depcc="$CC"   am_compiler_list=
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3759 $as_echo_n "checking dependency style of $depcc... " >&6; }
3760 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764   # We make a subdir and do the tests there.  Otherwise we can end up
3765   # making bogus files that we don't know about and never remove.  For
3766   # instance it was reported that on HP-UX the gcc test will end up
3767   # making a dummy file named `D' -- because `-MD' means `put the output
3768   # in D'.
3769   rm -rf conftest.dir
3770   mkdir conftest.dir
3771   # Copy depcomp to subdir because otherwise we won't find it if we're
3772   # using a relative directory.
3773   cp "$am_depcomp" conftest.dir
3774   cd conftest.dir
3775   # We will build objects and dependencies in a subdirectory because
3776   # it helps to detect inapplicable dependency modes.  For instance
3777   # both Tru64's cc and ICC support -MD to output dependencies as a
3778   # side effect of compilation, but ICC will put the dependencies in
3779   # the current directory while Tru64 will put them in the object
3780   # directory.
3781   mkdir sub
3782
3783   am_cv_CC_dependencies_compiler_type=none
3784   if test "$am_compiler_list" = ""; then
3785      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3786   fi
3787   am__universal=false
3788   case " $depcc " in #(
3789      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3790      esac
3791
3792   for depmode in $am_compiler_list; do
3793     # Setup a source with many dependencies, because some compilers
3794     # like to wrap large dependency lists on column 80 (with \), and
3795     # we should not choose a depcomp mode which is confused by this.
3796     #
3797     # We need to recreate these files for each test, as the compiler may
3798     # overwrite some of them when testing with obscure command lines.
3799     # This happens at least with the AIX C compiler.
3800     : > sub/conftest.c
3801     for i in 1 2 3 4 5 6; do
3802       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3803       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3804       # Solaris 8's {/usr,}/bin/sh.
3805       touch sub/conftst$i.h
3806     done
3807     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808
3809     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3810     # mode.  It turns out that the SunPro C++ compiler does not properly
3811     # handle `-M -o', and we need to detect this.  Also, some Intel
3812     # versions had trouble with output in subdirs
3813     am__obj=sub/conftest.${OBJEXT-o}
3814     am__minus_obj="-o $am__obj"
3815     case $depmode in
3816     gcc)
3817       # This depmode causes a compiler race in universal mode.
3818       test "$am__universal" = false || continue
3819       ;;
3820     nosideeffect)
3821       # after this tag, mechanisms are not by side-effect, so they'll
3822       # only be used when explicitly requested
3823       if test "x$enable_dependency_tracking" = xyes; then
3824         continue
3825       else
3826         break
3827       fi
3828       ;;
3829     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3830       # This compiler won't grok `-c -o', but also, the minuso test has
3831       # not run yet.  These depmodes are late enough in the game, and
3832       # so weak that their functioning should not be impacted.
3833       am__obj=conftest.${OBJEXT-o}
3834       am__minus_obj=
3835       ;;
3836     none) break ;;
3837     esac
3838     if depmode=$depmode \
3839        source=sub/conftest.c object=$am__obj \
3840        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3841        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3842          >/dev/null 2>conftest.err &&
3843        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3844        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3845        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3846        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3847       # icc doesn't choke on unknown options, it will just issue warnings
3848       # or remarks (even with -Werror).  So we grep stderr for any message
3849       # that says an option was ignored or not supported.
3850       # When given -MP, icc 7.0 and 7.1 complain thusly:
3851       #   icc: Command line warning: ignoring option '-M'; no argument required
3852       # The diagnosis changed in icc 8.0:
3853       #   icc: Command line remark: option '-MP' not supported
3854       if (grep 'ignoring option' conftest.err ||
3855           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3856         am_cv_CC_dependencies_compiler_type=$depmode
3857         break
3858       fi
3859     fi
3860   done
3861
3862   cd ..
3863   rm -rf conftest.dir
3864 else
3865   am_cv_CC_dependencies_compiler_type=none
3866 fi
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3870 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3871 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3872
3873  if
3874   test "x$enable_dependency_tracking" != xno \
3875   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3876   am__fastdepCC_TRUE=
3877   am__fastdepCC_FALSE='#'
3878 else
3879   am__fastdepCC_TRUE='#'
3880   am__fastdepCC_FALSE=
3881 fi
3882
3883
3884 if test "x$CC" != xcc; then
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3886 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3887 else
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3889 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3890 fi
3891 set dummy $CC; ac_cc=`$as_echo "$2" |
3892                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3893 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 # Make sure it works both with $CC and with simple cc.
3908 # We do the test twice because some compilers refuse to overwrite an
3909 # existing .o file with -o, though they will create one.
3910 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3911 rm -f conftest2.*
3912 if { { case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918   (eval "$ac_try") 2>&5
3919   ac_status=$?
3920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921   test $ac_status = 0; } &&
3922    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928   (eval "$ac_try") 2>&5
3929   ac_status=$?
3930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931   test $ac_status = 0; };
3932 then
3933   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3934   if test "x$CC" != xcc; then
3935     # Test first that cc exists at all.
3936     if { ac_try='cc -c conftest.$ac_ext >&5'
3937   { { case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943   (eval "$ac_try") 2>&5
3944   ac_status=$?
3945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946   test $ac_status = 0; }; }; then
3947       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3948       rm -f conftest2.*
3949       if { { case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955   (eval "$ac_try") 2>&5
3956   ac_status=$?
3957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958   test $ac_status = 0; } &&
3959          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965   (eval "$ac_try") 2>&5
3966   ac_status=$?
3967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968   test $ac_status = 0; };
3969       then
3970         # cc works too.
3971         :
3972       else
3973         # cc exists but doesn't like -o.
3974         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3975       fi
3976     fi
3977   fi
3978 else
3979   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3980 fi
3981 rm -f core conftest*
3982
3983 fi
3984 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 $as_echo "yes" >&6; }
3987 else
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990
3991 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3992
3993 fi
3994
3995 # FIXME: we rely on the cache variable name because
3996 # there is no other way.
3997 set dummy $CC
3998 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3999 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4000 if test "$am_t" != yes; then
4001    # Losing compiler, so override with the script.
4002    # FIXME: It is wrong to rewrite CC.
4003    # But if we don't then we get into trouble of one sort or another.
4004    # A longer-term fix would be to have automake use am__CC in this case,
4005    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4006    CC="$am_aux_dir/compile $CC"
4007 fi
4008
4009
4010
4011
4012 # Check whether --enable-largefile was given.
4013 if test "${enable_largefile+set}" = set; then :
4014   enableval=$enable_largefile;
4015 fi
4016
4017 if test "$enable_largefile" != no; then
4018
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4020 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4021 if ${ac_cv_sys_largefile_CC+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   ac_cv_sys_largefile_CC=no
4025      if test "$GCC" != yes; then
4026        ac_save_CC=$CC
4027        while :; do
4028          # IRIX 6.2 and later do not support large files by default,
4029          # so use the C compiler's -n32 option if that helps.
4030          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032 #include <sys/types.h>
4033  /* Check that off_t can represent 2**63 - 1 correctly.
4034     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4035     since some C++ compilers masquerading as C compilers
4036     incorrectly reject 9223372036854775807.  */
4037 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4038   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4039                        && LARGE_OFF_T % 2147483647 == 1)
4040                       ? 1 : -1];
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049          if ac_fn_c_try_compile "$LINENO"; then :
4050   break
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext
4053          CC="$CC -n32"
4054          if ac_fn_c_try_compile "$LINENO"; then :
4055   ac_cv_sys_largefile_CC=' -n32'; break
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext
4058          break
4059        done
4060        CC=$ac_save_CC
4061        rm -f conftest.$ac_ext
4062     fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4065 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4066   if test "$ac_cv_sys_largefile_CC" != no; then
4067     CC=$CC$ac_cv_sys_largefile_CC
4068   fi
4069
4070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4071 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4072 if ${ac_cv_sys_file_offset_bits+:} false; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075   while :; do
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #include <sys/types.h>
4079  /* Check that off_t can represent 2**63 - 1 correctly.
4080     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4081     since some C++ compilers masquerading as C compilers
4082     incorrectly reject 9223372036854775807.  */
4083 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4084   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4085                        && LARGE_OFF_T % 2147483647 == 1)
4086                       ? 1 : -1];
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096   ac_cv_sys_file_offset_bits=no; break
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #define _FILE_OFFSET_BITS 64
4102 #include <sys/types.h>
4103  /* Check that off_t can represent 2**63 - 1 correctly.
4104     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4105     since some C++ compilers masquerading as C compilers
4106     incorrectly reject 9223372036854775807.  */
4107 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4108   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4109                        && LARGE_OFF_T % 2147483647 == 1)
4110                       ? 1 : -1];
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   ac_cv_sys_file_offset_bits=64; break
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123   ac_cv_sys_file_offset_bits=unknown
4124   break
4125 done
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4128 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4129 case $ac_cv_sys_file_offset_bits in #(
4130   no | unknown) ;;
4131   *)
4132 cat >>confdefs.h <<_ACEOF
4133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4134 _ACEOF
4135 ;;
4136 esac
4137 rm -rf conftest*
4138   if test $ac_cv_sys_file_offset_bits = unknown; then
4139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4140 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4141 if ${ac_cv_sys_large_files+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   while :; do
4145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h.  */
4147 #include <sys/types.h>
4148  /* Check that off_t can represent 2**63 - 1 correctly.
4149     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150     since some C++ compilers masquerading as C compilers
4151     incorrectly reject 9223372036854775807.  */
4152 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4153   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154                        && LARGE_OFF_T % 2147483647 == 1)
4155                       ? 1 : -1];
4156 int
4157 main ()
4158 {
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165   ac_cv_sys_large_files=no; break
4166 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170 #define _LARGE_FILES 1
4171 #include <sys/types.h>
4172  /* Check that off_t can represent 2**63 - 1 correctly.
4173     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4174     since some C++ compilers masquerading as C compilers
4175     incorrectly reject 9223372036854775807.  */
4176 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4177   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4178                        && LARGE_OFF_T % 2147483647 == 1)
4179                       ? 1 : -1];
4180 int
4181 main ()
4182 {
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189   ac_cv_sys_large_files=1; break
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192   ac_cv_sys_large_files=unknown
4193   break
4194 done
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4197 $as_echo "$ac_cv_sys_large_files" >&6; }
4198 case $ac_cv_sys_large_files in #(
4199   no | unknown) ;;
4200   *)
4201 cat >>confdefs.h <<_ACEOF
4202 #define _LARGE_FILES $ac_cv_sys_large_files
4203 _ACEOF
4204 ;;
4205 esac
4206 rm -rf conftest*
4207   fi
4208
4209
4210 fi
4211
4212
4213 # Checks lib build
4214 if test -n "$ac_tool_prefix"; then
4215   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_RANLIB+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$RANLIB"; then
4223   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 RANLIB=$ac_cv_prog_RANLIB
4243 if test -n "$RANLIB"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4245 $as_echo "$RANLIB" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252 fi
4253 if test -z "$ac_cv_prog_RANLIB"; then
4254   ac_ct_RANLIB=$RANLIB
4255   # Extract the first word of "ranlib", so it can be a program name with args.
4256 set dummy ranlib; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -n "$ac_ct_RANLIB"; then
4263   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272     ac_cv_prog_ac_ct_RANLIB="ranlib"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4283 if test -n "$ac_ct_RANLIB"; then
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4285 $as_echo "$ac_ct_RANLIB" >&6; }
4286 else
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291   if test "x$ac_ct_RANLIB" = x; then
4292     RANLIB=":"
4293   else
4294     case $cross_compiling:$ac_tool_warned in
4295 yes:)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4298 ac_tool_warned=yes ;;
4299 esac
4300     RANLIB=$ac_ct_RANLIB
4301   fi
4302 else
4303   RANLIB="$ac_cv_prog_RANLIB"
4304 fi
4305
4306 if test -n "$ac_tool_prefix"; then
4307   for ac_prog in ar lib "link -lib"
4308   do
4309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_AR+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$AR"; then
4317   ac_cv_prog_AR="$AR" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 AR=$ac_cv_prog_AR
4337 if test -n "$AR"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4339 $as_echo "$AR" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346     test -n "$AR" && break
4347   done
4348 fi
4349 if test -z "$AR"; then
4350   ac_ct_AR=$AR
4351   for ac_prog in ar lib "link -lib"
4352 do
4353   # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -n "$ac_ct_AR"; then
4361   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_AR="$ac_prog"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4381 if test -n "$ac_ct_AR"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4383 $as_echo "$ac_ct_AR" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390   test -n "$ac_ct_AR" && break
4391 done
4392
4393   if test "x$ac_ct_AR" = x; then
4394     AR="false"
4395   else
4396     case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402     AR=$ac_ct_AR
4403   fi
4404 fi
4405
4406 : ${AR=ar}
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4409 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4410 if ${am_cv_ar_interface+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   am_cv_ar_interface=ar
4414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416 int some_variable = 0;
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4420       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4421   (eval $am_ar_try) 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; }
4425       if test "$ac_status" -eq 0; then
4426         am_cv_ar_interface=ar
4427       else
4428         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4429         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4430   (eval $am_ar_try) 2>&5
4431   ac_status=$?
4432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433   test $ac_status = 0; }
4434         if test "$ac_status" -eq 0; then
4435           am_cv_ar_interface=lib
4436         else
4437           am_cv_ar_interface=unknown
4438         fi
4439       fi
4440       rm -f conftest.lib libconftest.a
4441
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4447 $as_echo "$am_cv_ar_interface" >&6; }
4448
4449 case $am_cv_ar_interface in
4450 ar)
4451   ;;
4452 lib)
4453   # Microsoft lib, so override with the ar-lib wrapper script.
4454   # FIXME: It is wrong to rewrite AR.
4455   # But if we don't then we get into trouble of one sort or another.
4456   # A longer-term fix would be to have automake use am__AR in this case,
4457   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4458   # similar.
4459   AR="$am_aux_dir/ar-lib $AR"
4460   ;;
4461 unknown)
4462   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4463   ;;
4464 esac
4465
4466
4467 # Checks for header files.
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4475 # On Suns, sometimes $CPP names a directory.
4476 if test -n "$CPP" && test -d "$CPP"; then
4477   CPP=
4478 fi
4479 if test -z "$CPP"; then
4480   if ${ac_cv_prog_CPP+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483       # Double quotes because CPP needs to be expanded
4484     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4485     do
4486       ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4488 do
4489   # Use a header file that comes with gcc, so configuring glibc
4490   # with a fresh cross-compiler works.
4491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492   # <limits.h> exists even on freestanding compilers.
4493   # On the NeXT, cc -E runs the code through the compiler's parser,
4494   # not just through cpp. "Syntax error" is here to catch this case.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502                      Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505
4506 else
4507   # Broken: fails on valid input.
4508 continue
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512   # OK, works on sane cases.  Now check whether nonexistent headers
4513   # can be detected and how.
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519   # Broken: success on invalid input.
4520 continue
4521 else
4522   # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4525 fi
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4527
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.i conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532   break
4533 fi
4534
4535     done
4536     ac_cv_prog_CPP=$CPP
4537
4538 fi
4539   CPP=$ac_cv_prog_CPP
4540 else
4541   ac_cv_prog_CPP=$CPP
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4544 $as_echo "$CPP" >&6; }
4545 ac_preproc_ok=false
4546 for ac_c_preproc_warn_flag in '' yes
4547 do
4548   # Use a header file that comes with gcc, so configuring glibc
4549   # with a fresh cross-compiler works.
4550   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551   # <limits.h> exists even on freestanding compilers.
4552   # On the NeXT, cc -E runs the code through the compiler's parser,
4553   # not just through cpp. "Syntax error" is here to catch this case.
4554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561                      Syntax error
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4564
4565 else
4566   # Broken: fails on valid input.
4567 continue
4568 fi
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4570
4571   # OK, works on sane cases.  Now check whether nonexistent headers
4572   # can be detected and how.
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4578   # Broken: success on invalid input.
4579 continue
4580 else
4581   # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4584 fi
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4586
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4591
4592 else
4593   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4596 See \`config.log' for more details" "$LINENO" 5; }
4597 fi
4598
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4607 $as_echo_n "checking for X... " >&6; }
4608
4609
4610 # Check whether --with-x was given.
4611 if test "${with_x+set}" = set; then :
4612   withval=$with_x;
4613 fi
4614
4615 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4616 if test "x$with_x" = xno; then
4617   # The user explicitly disabled X.
4618   have_x=disabled
4619 else
4620   case $x_includes,$x_libraries in #(
4621     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4622     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   # One or both of the vars are not set, and there is no cached value.
4626 ac_x_includes=no ac_x_libraries=no
4627 rm -f -r conftest.dir
4628 if mkdir conftest.dir; then
4629   cd conftest.dir
4630   cat >Imakefile <<'_ACEOF'
4631 incroot:
4632         @echo incroot='${INCROOT}'
4633 usrlibdir:
4634         @echo usrlibdir='${USRLIBDIR}'
4635 libdir:
4636         @echo libdir='${LIBDIR}'
4637 _ACEOF
4638   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4639     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4640     for ac_var in incroot usrlibdir libdir; do
4641       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4642     done
4643     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4644     for ac_extension in a so sl dylib la dll; do
4645       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4646          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4647         ac_im_usrlibdir=$ac_im_libdir; break
4648       fi
4649     done
4650     # Screen out bogus values from the imake configuration.  They are
4651     # bogus both because they are the default anyway, and because
4652     # using them would break gcc on systems where it needs fixed includes.
4653     case $ac_im_incroot in
4654         /usr/include) ac_x_includes= ;;
4655         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4656     esac
4657     case $ac_im_usrlibdir in
4658         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4659         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4660     esac
4661   fi
4662   cd ..
4663   rm -f -r conftest.dir
4664 fi
4665
4666 # Standard set of common directories for X headers.
4667 # Check X11 before X11Rn because it is often a symlink to the current release.
4668 ac_x_header_dirs='
4669 /usr/X11/include
4670 /usr/X11R7/include
4671 /usr/X11R6/include
4672 /usr/X11R5/include
4673 /usr/X11R4/include
4674
4675 /usr/include/X11
4676 /usr/include/X11R7
4677 /usr/include/X11R6
4678 /usr/include/X11R5
4679 /usr/include/X11R4
4680
4681 /usr/local/X11/include
4682 /usr/local/X11R7/include
4683 /usr/local/X11R6/include
4684 /usr/local/X11R5/include
4685 /usr/local/X11R4/include
4686
4687 /usr/local/include/X11
4688 /usr/local/include/X11R7
4689 /usr/local/include/X11R6
4690 /usr/local/include/X11R5
4691 /usr/local/include/X11R4
4692
4693 /usr/X386/include
4694 /usr/x386/include
4695 /usr/XFree86/include/X11
4696
4697 /usr/include
4698 /usr/local/include
4699 /usr/unsupported/include
4700 /usr/athena/include
4701 /usr/local/x11r5/include
4702 /usr/lpp/Xamples/include
4703
4704 /usr/openwin/include
4705 /usr/openwin/share/include'
4706
4707 if test "$ac_x_includes" = no; then
4708   # Guess where to find include files, by looking for Xlib.h.
4709   # First, try using that file with no special directory specified.
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #include <X11/Xlib.h>
4713 _ACEOF
4714 if ac_fn_c_try_cpp "$LINENO"; then :
4715   # We can compile using X headers with no special include directory.
4716 ac_x_includes=
4717 else
4718   for ac_dir in $ac_x_header_dirs; do
4719   if test -r "$ac_dir/X11/Xlib.h"; then
4720     ac_x_includes=$ac_dir
4721     break
4722   fi
4723 done
4724 fi
4725 rm -f conftest.err conftest.i conftest.$ac_ext
4726 fi # $ac_x_includes = no
4727
4728 if test "$ac_x_libraries" = no; then
4729   # Check for the libraries.
4730   # See if we find them without any special options.
4731   # Don't add to $LIBS permanently.
4732   ac_save_LIBS=$LIBS
4733   LIBS="-lX11 $LIBS"
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 #include <X11/Xlib.h>
4737 int
4738 main ()
4739 {
4740 XrmInitialize ()
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_c_try_link "$LINENO"; then :
4746   LIBS=$ac_save_LIBS
4747 # We can link X programs with no special library path.
4748 ac_x_libraries=
4749 else
4750   LIBS=$ac_save_LIBS
4751 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4752 do
4753   # Don't even attempt the hair of trying to link an X program!
4754   for ac_extension in a so sl dylib la dll; do
4755     if test -r "$ac_dir/libX11.$ac_extension"; then
4756       ac_x_libraries=$ac_dir
4757       break 2
4758     fi
4759   done
4760 done
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext \
4763     conftest$ac_exeext conftest.$ac_ext
4764 fi # $ac_x_libraries = no
4765
4766 case $ac_x_includes,$ac_x_libraries in #(
4767   no,* | *,no | *\'*)
4768     # Didn't find X, or a directory has "'" in its name.
4769     ac_cv_have_x="have_x=no";; #(
4770   *)
4771     # Record where we found X for the cache.
4772     ac_cv_have_x="have_x=yes\
4773         ac_x_includes='$ac_x_includes'\
4774         ac_x_libraries='$ac_x_libraries'"
4775 esac
4776 fi
4777 ;; #(
4778     *) have_x=yes;;
4779   esac
4780   eval "$ac_cv_have_x"
4781 fi # $with_x != no
4782
4783 if test "$have_x" != yes; then
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4785 $as_echo "$have_x" >&6; }
4786   no_x=yes
4787 else
4788   # If each of the values was on the command line, it overrides each guess.
4789   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4790   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4791   # Update the cache value to reflect the command line values.
4792   ac_cv_have_x="have_x=yes\
4793         ac_x_includes='$x_includes'\
4794         ac_x_libraries='$x_libraries'"
4795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4796 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4797 fi
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4801 if ${ac_cv_path_GREP+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -z "$GREP"; then
4805   ac_path_GREP_found=false
4806   # Loop through the user's path and test for each of PROGNAME-LIST
4807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812     for ac_prog in grep ggrep; do
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4815       as_fn_executable_p "$ac_path_GREP" || continue
4816 # Check for GNU ac_path_GREP and select it if it is found.
4817   # Check for GNU $ac_path_GREP
4818 case `"$ac_path_GREP" --version 2>&1` in
4819 *GNU*)
4820   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4821 *)
4822   ac_count=0
4823   $as_echo_n 0123456789 >"conftest.in"
4824   while :
4825   do
4826     cat "conftest.in" "conftest.in" >"conftest.tmp"
4827     mv "conftest.tmp" "conftest.in"
4828     cp "conftest.in" "conftest.nl"
4829     $as_echo 'GREP' >> "conftest.nl"
4830     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832     as_fn_arith $ac_count + 1 && ac_count=$as_val
4833     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4834       # Best one so far, save it but keep looking for a better one
4835       ac_cv_path_GREP="$ac_path_GREP"
4836       ac_path_GREP_max=$ac_count
4837     fi
4838     # 10*(2^10) chars as input seems more than enough
4839     test $ac_count -gt 10 && break
4840   done
4841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 esac
4843
4844       $ac_path_GREP_found && break 3
4845     done
4846   done
4847   done
4848 IFS=$as_save_IFS
4849   if test -z "$ac_cv_path_GREP"; then
4850     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4851   fi
4852 else
4853   ac_cv_path_GREP=$GREP
4854 fi
4855
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4858 $as_echo "$ac_cv_path_GREP" >&6; }
4859  GREP="$ac_cv_path_GREP"
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4863 $as_echo_n "checking for egrep... " >&6; }
4864 if ${ac_cv_path_EGREP+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4868    then ac_cv_path_EGREP="$GREP -E"
4869    else
4870      if test -z "$EGREP"; then
4871   ac_path_EGREP_found=false
4872   # Loop through the user's path and test for each of PROGNAME-LIST
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_prog in egrep; do
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4881       as_fn_executable_p "$ac_path_EGREP" || continue
4882 # Check for GNU ac_path_EGREP and select it if it is found.
4883   # Check for GNU $ac_path_EGREP
4884 case `"$ac_path_EGREP" --version 2>&1` in
4885 *GNU*)
4886   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4887 *)
4888   ac_count=0
4889   $as_echo_n 0123456789 >"conftest.in"
4890   while :
4891   do
4892     cat "conftest.in" "conftest.in" >"conftest.tmp"
4893     mv "conftest.tmp" "conftest.in"
4894     cp "conftest.in" "conftest.nl"
4895     $as_echo 'EGREP' >> "conftest.nl"
4896     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898     as_fn_arith $ac_count + 1 && ac_count=$as_val
4899     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4900       # Best one so far, save it but keep looking for a better one
4901       ac_cv_path_EGREP="$ac_path_EGREP"
4902       ac_path_EGREP_max=$ac_count
4903     fi
4904     # 10*(2^10) chars as input seems more than enough
4905     test $ac_count -gt 10 && break
4906   done
4907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 esac
4909
4910       $ac_path_EGREP_found && break 3
4911     done
4912   done
4913   done
4914 IFS=$as_save_IFS
4915   if test -z "$ac_cv_path_EGREP"; then
4916     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917   fi
4918 else
4919   ac_cv_path_EGREP=$EGREP
4920 fi
4921
4922    fi
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4925 $as_echo "$ac_cv_path_EGREP" >&6; }
4926  EGREP="$ac_cv_path_EGREP"
4927
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4930 $as_echo_n "checking for ANSI C header files... " >&6; }
4931 if ${ac_cv_header_stdc+:} false; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h.  */
4936 #include <stdlib.h>
4937 #include <stdarg.h>
4938 #include <string.h>
4939 #include <float.h>
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950   ac_cv_header_stdc=yes
4951 else
4952   ac_cv_header_stdc=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
4956 if test $ac_cv_header_stdc = yes; then
4957   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 #include <string.h>
4961
4962 _ACEOF
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964   $EGREP "memchr" >/dev/null 2>&1; then :
4965
4966 else
4967   ac_cv_header_stdc=no
4968 fi
4969 rm -f conftest*
4970
4971 fi
4972
4973 if test $ac_cv_header_stdc = yes; then
4974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <stdlib.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981   $EGREP "free" >/dev/null 2>&1; then :
4982
4983 else
4984   ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4992   if test "$cross_compiling" = yes; then :
4993   :
4994 else
4995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h.  */
4997 #include <ctype.h>
4998 #include <stdlib.h>
4999 #if ((' ' & 0x0FF) == 0x020)
5000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 #else
5003 # define ISLOWER(c) \
5004                    (('a' <= (c) && (c) <= 'i') \
5005                      || ('j' <= (c) && (c) <= 'r') \
5006                      || ('s' <= (c) && (c) <= 'z'))
5007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5008 #endif
5009
5010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5011 int
5012 main ()
5013 {
5014   int i;
5015   for (i = 0; i < 256; i++)
5016     if (XOR (islower (i), ISLOWER (i))
5017         || toupper (i) != TOUPPER (i))
5018       return 2;
5019   return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_run "$LINENO"; then :
5023
5024 else
5025   ac_cv_header_stdc=no
5026 fi
5027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5028   conftest.$ac_objext conftest.beam conftest.$ac_ext
5029 fi
5030
5031 fi
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5034 $as_echo "$ac_cv_header_stdc" >&6; }
5035 if test $ac_cv_header_stdc = yes; then
5036
5037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5038
5039 fi
5040
5041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5043                   inttypes.h stdint.h unistd.h
5044 do :
5045   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5047 "
5048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5049   cat >>confdefs.h <<_ACEOF
5050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5051 _ACEOF
5052
5053 fi
5054
5055 done
5056
5057
5058 for ac_header in stdbool.h
5059 do :
5060   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5062   cat >>confdefs.h <<_ACEOF
5063 #define HAVE_STDBOOL_H 1
5064 _ACEOF
5065
5066 fi
5067
5068 done
5069
5070
5071 # Checks for typedefs, structures, and compiler characteristics.
5072 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5073 if test "x$ac_cv_type_size_t" = xyes; then :
5074
5075 else
5076
5077 cat >>confdefs.h <<_ACEOF
5078 #define size_t unsigned int
5079 _ACEOF
5080
5081 fi
5082
5083 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5084 if test "x$ac_cv_type_ssize_t" = xyes; then :
5085
5086 else
5087
5088 cat >>confdefs.h <<_ACEOF
5089 #define ssize_t int
5090 _ACEOF
5091
5092 fi
5093
5094
5095 # Checks for library functions.
5096 for ac_header in stdlib.h
5097 do :
5098   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5099 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5100   cat >>confdefs.h <<_ACEOF
5101 #define HAVE_STDLIB_H 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5109 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5110 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test "$cross_compiling" = yes; then :
5114   ac_cv_func_malloc_0_nonnull=no
5115 else
5116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h.  */
5118 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5119 # include <stdlib.h>
5120 #else
5121 char *malloc ();
5122 #endif
5123
5124 int
5125 main ()
5126 {
5127 return ! malloc (0);
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_run "$LINENO"; then :
5133   ac_cv_func_malloc_0_nonnull=yes
5134 else
5135   ac_cv_func_malloc_0_nonnull=no
5136 fi
5137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5138   conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 fi
5140
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5143 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5144 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5145
5146 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5147
5148 else
5149   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5150
5151    case " $LIBOBJS " in
5152   *" malloc.$ac_objext "* ) ;;
5153   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5154  ;;
5155 esac
5156
5157
5158 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5159
5160 fi
5161
5162
5163 for ac_header in stdlib.h
5164 do :
5165   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5166 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5167   cat >>confdefs.h <<_ACEOF
5168 #define HAVE_STDLIB_H 1
5169 _ACEOF
5170
5171 fi
5172
5173 done
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5176 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5177 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180   if test "$cross_compiling" = yes; then :
5181   ac_cv_func_realloc_0_nonnull=no
5182 else
5183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h.  */
5185 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5186 # include <stdlib.h>
5187 #else
5188 char *realloc ();
5189 #endif
5190
5191 int
5192 main ()
5193 {
5194 return ! realloc (0, 0);
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_run "$LINENO"; then :
5200   ac_cv_func_realloc_0_nonnull=yes
5201 else
5202   ac_cv_func_realloc_0_nonnull=no
5203 fi
5204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5205   conftest.$ac_objext conftest.beam conftest.$ac_ext
5206 fi
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5210 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5211 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5212
5213 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5214
5215 else
5216   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5217
5218    case " $LIBOBJS " in
5219   *" realloc.$ac_objext "* ) ;;
5220   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5221  ;;
5222 esac
5223
5224
5225 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5226
5227 fi
5228
5229
5230 for ac_func in gettimeofday memmove socket strdup strtol
5231 do :
5232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5235   cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5237 _ACEOF
5238
5239 fi
5240 done
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5245 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5246 if ${ac_cv_path_SED+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5250      for ac_i in 1 2 3 4 5 6 7; do
5251        ac_script="$ac_script$as_nl$ac_script"
5252      done
5253      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5254      { ac_script=; unset ac_script;}
5255      if test -z "$SED"; then
5256   ac_path_SED_found=false
5257   # Loop through the user's path and test for each of PROGNAME-LIST
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_prog in sed gsed; do
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5266       as_fn_executable_p "$ac_path_SED" || continue
5267 # Check for GNU ac_path_SED and select it if it is found.
5268   # Check for GNU $ac_path_SED
5269 case `"$ac_path_SED" --version 2>&1` in
5270 *GNU*)
5271   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5272 *)
5273   ac_count=0
5274   $as_echo_n 0123456789 >"conftest.in"
5275   while :
5276   do
5277     cat "conftest.in" "conftest.in" >"conftest.tmp"
5278     mv "conftest.tmp" "conftest.in"
5279     cp "conftest.in" "conftest.nl"
5280     $as_echo '' >> "conftest.nl"
5281     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283     as_fn_arith $ac_count + 1 && ac_count=$as_val
5284     if test $ac_count -gt ${ac_path_SED_max-0}; then
5285       # Best one so far, save it but keep looking for a better one
5286       ac_cv_path_SED="$ac_path_SED"
5287       ac_path_SED_max=$ac_count
5288     fi
5289     # 10*(2^10) chars as input seems more than enough
5290     test $ac_count -gt 10 && break
5291   done
5292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293 esac
5294
5295       $ac_path_SED_found && break 3
5296     done
5297   done
5298   done
5299 IFS=$as_save_IFS
5300   if test -z "$ac_cv_path_SED"; then
5301     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5302   fi
5303 else
5304   ac_cv_path_SED=$SED
5305 fi
5306
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5309 $as_echo "$ac_cv_path_SED" >&6; }
5310  SED="$ac_cv_path_SED"
5311   rm -f conftest.sed
5312
5313
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5315 $as_echo_n "checking whether NLS is requested... " >&6; }
5316     # Check whether --enable-nls was given.
5317 if test "${enable_nls+set}" = set; then :
5318   enableval=$enable_nls; USE_NLS=$enableval
5319 else
5320   USE_NLS=yes
5321 fi
5322
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5324 $as_echo "$USE_NLS" >&6; }
5325
5326
5327
5328
5329       GETTEXT_MACRO_VERSION=0.18
5330
5331
5332
5333
5334 # Prepare PATH_SEPARATOR.
5335 # The user is always right.
5336 if test "${PATH_SEPARATOR+set}" != set; then
5337   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5338   # contains only /bin. Note that ksh looks also at the FPATH variable,
5339   # so we have to set that as well for the test.
5340   PATH_SEPARATOR=:
5341   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5342     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5343            || PATH_SEPARATOR=';'
5344        }
5345 fi
5346
5347 # Find out how to test for executable files. Don't use a zero-byte file,
5348 # as systems may use methods other than mode bits to determine executability.
5349 cat >conf$$.file <<_ASEOF
5350 #! /bin/sh
5351 exit 0
5352 _ASEOF
5353 chmod +x conf$$.file
5354 if test -x conf$$.file >/dev/null 2>&1; then
5355   ac_executable_p="test -x"
5356 else
5357   ac_executable_p="test -f"
5358 fi
5359 rm -f conf$$.file
5360
5361 # Extract the first word of "msgfmt", so it can be a program name with args.
5362 set dummy msgfmt; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_MSGFMT+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   case "$MSGFMT" in
5369   [\\/]* | ?:[\\/]*)
5370     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5371     ;;
5372   *)
5373     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5374     for ac_dir in $PATH; do
5375       IFS="$ac_save_IFS"
5376       test -z "$ac_dir" && ac_dir=.
5377       for ac_exec_ext in '' $ac_executable_extensions; do
5378         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5379           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5380           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5381      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5382             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5383             break 2
5384           fi
5385         fi
5386       done
5387     done
5388     IFS="$ac_save_IFS"
5389   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5390     ;;
5391 esac
5392 fi
5393 MSGFMT="$ac_cv_path_MSGFMT"
5394 if test "$MSGFMT" != ":"; then
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5396 $as_echo "$MSGFMT" >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5403 set dummy gmsgfmt; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_path_GMSGFMT+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   case $GMSGFMT in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428
5429   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5430   ;;
5431 esac
5432 fi
5433 GMSGFMT=$ac_cv_path_GMSGFMT
5434 if test -n "$GMSGFMT"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5436 $as_echo "$GMSGFMT" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443
5444     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5445     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5446     *) MSGFMT_015=$MSGFMT ;;
5447   esac
5448
5449   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5450     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5451     *) GMSGFMT_015=$GMSGFMT ;;
5452   esac
5453
5454
5455
5456 # Prepare PATH_SEPARATOR.
5457 # The user is always right.
5458 if test "${PATH_SEPARATOR+set}" != set; then
5459   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5460   # contains only /bin. Note that ksh looks also at the FPATH variable,
5461   # so we have to set that as well for the test.
5462   PATH_SEPARATOR=:
5463   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5464     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5465            || PATH_SEPARATOR=';'
5466        }
5467 fi
5468
5469 # Find out how to test for executable files. Don't use a zero-byte file,
5470 # as systems may use methods other than mode bits to determine executability.
5471 cat >conf$$.file <<_ASEOF
5472 #! /bin/sh
5473 exit 0
5474 _ASEOF
5475 chmod +x conf$$.file
5476 if test -x conf$$.file >/dev/null 2>&1; then
5477   ac_executable_p="test -x"
5478 else
5479   ac_executable_p="test -f"
5480 fi
5481 rm -f conf$$.file
5482
5483 # Extract the first word of "xgettext", so it can be a program name with args.
5484 set dummy xgettext; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_path_XGETTEXT+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   case "$XGETTEXT" in
5491   [\\/]* | ?:[\\/]*)
5492     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5493     ;;
5494   *)
5495     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5496     for ac_dir in $PATH; do
5497       IFS="$ac_save_IFS"
5498       test -z "$ac_dir" && ac_dir=.
5499       for ac_exec_ext in '' $ac_executable_extensions; do
5500         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5501           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5502           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5503      (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
5504             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5505             break 2
5506           fi
5507         fi
5508       done
5509     done
5510     IFS="$ac_save_IFS"
5511   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5512     ;;
5513 esac
5514 fi
5515 XGETTEXT="$ac_cv_path_XGETTEXT"
5516 if test "$XGETTEXT" != ":"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5518 $as_echo "$XGETTEXT" >&6; }
5519 else
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524     rm -f messages.po
5525
5526     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5527     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5528     *) XGETTEXT_015=$XGETTEXT ;;
5529   esac
5530
5531
5532
5533 # Prepare PATH_SEPARATOR.
5534 # The user is always right.
5535 if test "${PATH_SEPARATOR+set}" != set; then
5536   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5537   # contains only /bin. Note that ksh looks also at the FPATH variable,
5538   # so we have to set that as well for the test.
5539   PATH_SEPARATOR=:
5540   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5541     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5542            || PATH_SEPARATOR=';'
5543        }
5544 fi
5545
5546 # Find out how to test for executable files. Don't use a zero-byte file,
5547 # as systems may use methods other than mode bits to determine executability.
5548 cat >conf$$.file <<_ASEOF
5549 #! /bin/sh
5550 exit 0
5551 _ASEOF
5552 chmod +x conf$$.file
5553 if test -x conf$$.file >/dev/null 2>&1; then
5554   ac_executable_p="test -x"
5555 else
5556   ac_executable_p="test -f"
5557 fi
5558 rm -f conf$$.file
5559
5560 # Extract the first word of "msgmerge", so it can be a program name with args.
5561 set dummy msgmerge; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_MSGMERGE+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   case "$MSGMERGE" in
5568   [\\/]* | ?:[\\/]*)
5569     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5570     ;;
5571   *)
5572     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5573     for ac_dir in $PATH; do
5574       IFS="$ac_save_IFS"
5575       test -z "$ac_dir" && ac_dir=.
5576       for ac_exec_ext in '' $ac_executable_extensions; do
5577         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5578           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5579           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5580             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5581             break 2
5582           fi
5583         fi
5584       done
5585     done
5586     IFS="$ac_save_IFS"
5587   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5588     ;;
5589 esac
5590 fi
5591 MSGMERGE="$ac_cv_path_MSGMERGE"
5592 if test "$MSGMERGE" != ":"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5594 $as_echo "$MSGMERGE" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601         test -n "$localedir" || localedir='${datadir}/locale'
5602
5603
5604     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5605
5606
5607   ac_config_commands="$ac_config_commands po-directories"
5608
5609
5610
5611       if test "X$prefix" = "XNONE"; then
5612     acl_final_prefix="$ac_default_prefix"
5613   else
5614     acl_final_prefix="$prefix"
5615   fi
5616   if test "X$exec_prefix" = "XNONE"; then
5617     acl_final_exec_prefix='${prefix}'
5618   else
5619     acl_final_exec_prefix="$exec_prefix"
5620   fi
5621   acl_save_prefix="$prefix"
5622   prefix="$acl_final_prefix"
5623   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5624   prefix="$acl_save_prefix"
5625
5626 # Make sure we can run config.sub.
5627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5628   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5631 $as_echo_n "checking build system type... " >&6; }
5632 if ${ac_cv_build+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   ac_build_alias=$build_alias
5636 test "x$ac_build_alias" = x &&
5637   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5638 test "x$ac_build_alias" = x &&
5639   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5641   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5645 $as_echo "$ac_cv_build" >&6; }
5646 case $ac_cv_build in
5647 *-*-*) ;;
5648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5649 esac
5650 build=$ac_cv_build
5651 ac_save_IFS=$IFS; IFS='-'
5652 set x $ac_cv_build
5653 shift
5654 build_cpu=$1
5655 build_vendor=$2
5656 shift; shift
5657 # Remember, the first character of IFS is used to create $*,
5658 # except with old shells:
5659 build_os=$*
5660 IFS=$ac_save_IFS
5661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5665 $as_echo_n "checking host system type... " >&6; }
5666 if ${ac_cv_host+:} false; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test "x$host_alias" = x; then
5670   ac_cv_host=$ac_cv_build
5671 else
5672   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5673     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5674 fi
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5678 $as_echo "$ac_cv_host" >&6; }
5679 case $ac_cv_host in
5680 *-*-*) ;;
5681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5682 esac
5683 host=$ac_cv_host
5684 ac_save_IFS=$IFS; IFS='-'
5685 set x $ac_cv_host
5686 shift
5687 host_cpu=$1
5688 host_vendor=$2
5689 shift; shift
5690 # Remember, the first character of IFS is used to create $*,
5691 # except with old shells:
5692 host_os=$*
5693 IFS=$ac_save_IFS
5694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5695
5696
5697
5698
5699 # Check whether --with-gnu-ld was given.
5700 if test "${with_gnu_ld+set}" = set; then :
5701   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5702 else
5703   with_gnu_ld=no
5704 fi
5705
5706 # Prepare PATH_SEPARATOR.
5707 # The user is always right.
5708 if test "${PATH_SEPARATOR+set}" != set; then
5709   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5710   # contains only /bin. Note that ksh looks also at the FPATH variable,
5711   # so we have to set that as well for the test.
5712   PATH_SEPARATOR=:
5713   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5714     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5715            || PATH_SEPARATOR=';'
5716        }
5717 fi
5718
5719 ac_prog=ld
5720 if test "$GCC" = yes; then
5721   # Check if gcc -print-prog-name=ld gives a path.
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5723 $as_echo_n "checking for ld used by $CC... " >&6; }
5724   case $host in
5725   *-*-mingw*)
5726     # gcc leaves a trailing carriage return which upsets mingw
5727     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5728   *)
5729     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730   esac
5731   case $ac_prog in
5732     # Accept absolute paths.
5733     [\\/]* | ?:[\\/]*)
5734       re_direlt='/[^/][^/]*/\.\./'
5735       # Canonicalize the pathname of ld
5736       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5737       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5738         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5739       done
5740       test -z "$LD" && LD="$ac_prog"
5741       ;;
5742   "")
5743     # If it fails, then pretend we aren't using GCC.
5744     ac_prog=ld
5745     ;;
5746   *)
5747     # If it is relative, then search for the first ld in PATH.
5748     with_gnu_ld=unknown
5749     ;;
5750   esac
5751 elif test "$with_gnu_ld" = yes; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5753 $as_echo_n "checking for GNU ld... " >&6; }
5754 else
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5756 $as_echo_n "checking for non-GNU ld... " >&6; }
5757 fi
5758 if ${acl_cv_path_LD+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -z "$LD"; then
5762   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763   for ac_dir in $PATH; do
5764     IFS="$acl_save_ifs"
5765     test -z "$ac_dir" && ac_dir=.
5766     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5767       acl_cv_path_LD="$ac_dir/$ac_prog"
5768       # Check to see if the program is GNU ld.  I'd rather use --version,
5769       # but apparently some variants of GNU ld only accept -v.
5770       # Break only if it was the GNU/non-GNU ld that we prefer.
5771       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5772       *GNU* | *'with BFD'*)
5773         test "$with_gnu_ld" != no && break
5774         ;;
5775       *)
5776         test "$with_gnu_ld" != yes && break
5777         ;;
5778       esac
5779     fi
5780   done
5781   IFS="$acl_save_ifs"
5782 else
5783   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5784 fi
5785 fi
5786
5787 LD="$acl_cv_path_LD"
5788 if test -n "$LD"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5790 $as_echo "$LD" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5798 if ${acl_cv_prog_gnu_ld+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804   acl_cv_prog_gnu_ld=yes
5805   ;;
5806 *)
5807   acl_cv_prog_gnu_ld=no
5808   ;;
5809 esac
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5812 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$acl_cv_prog_gnu_ld
5814
5815
5816
5817
5818                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5819 $as_echo_n "checking for shared library run path origin... " >&6; }
5820 if ${acl_cv_rpath+:} false; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823
5824     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5825     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5826     . ./conftest.sh
5827     rm -f ./conftest.sh
5828     acl_cv_rpath=done
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5832 $as_echo "$acl_cv_rpath" >&6; }
5833   wl="$acl_cv_wl"
5834   acl_libext="$acl_cv_libext"
5835   acl_shlibext="$acl_cv_shlibext"
5836   acl_libname_spec="$acl_cv_libname_spec"
5837   acl_library_names_spec="$acl_cv_library_names_spec"
5838   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5839   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5840   acl_hardcode_direct="$acl_cv_hardcode_direct"
5841   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5842     # Check whether --enable-rpath was given.
5843 if test "${enable_rpath+set}" = set; then :
5844   enableval=$enable_rpath; :
5845 else
5846   enable_rpath=yes
5847 fi
5848
5849
5850
5851
5852   acl_libdirstem=lib
5853   acl_libdirstem2=
5854   case "$host_os" in
5855     solaris*)
5856                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5857 $as_echo_n "checking for 64-bit host... " >&6; }
5858 if ${gl_cv_solaris_64bit+:} false; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h.  */
5863
5864 #ifdef _LP64
5865 sixtyfour bits
5866 #endif
5867
5868 _ACEOF
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5871   gl_cv_solaris_64bit=yes
5872 else
5873   gl_cv_solaris_64bit=no
5874 fi
5875 rm -f conftest*
5876
5877
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5880 $as_echo "$gl_cv_solaris_64bit" >&6; }
5881       if test $gl_cv_solaris_64bit = yes; then
5882         acl_libdirstem=lib/64
5883         case "$host_cpu" in
5884           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5885           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5886         esac
5887       fi
5888       ;;
5889     *)
5890       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5891       if test -n "$searchpath"; then
5892         acl_save_IFS="${IFS=    }"; IFS=":"
5893         for searchdir in $searchpath; do
5894           if test -d "$searchdir"; then
5895             case "$searchdir" in
5896               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5897               */../ | */.. )
5898                 # Better ignore directories of this form. They are misleading.
5899                 ;;
5900               *) searchdir=`cd "$searchdir" && pwd`
5901                  case "$searchdir" in
5902                    */lib64 ) acl_libdirstem=lib64 ;;
5903                  esac ;;
5904             esac
5905           fi
5906         done
5907         IFS="$acl_save_IFS"
5908       fi
5909       ;;
5910   esac
5911   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924     use_additional=yes
5925
5926   acl_save_prefix="$prefix"
5927   prefix="$acl_final_prefix"
5928   acl_save_exec_prefix="$exec_prefix"
5929   exec_prefix="$acl_final_exec_prefix"
5930
5931     eval additional_includedir=\"$includedir\"
5932     eval additional_libdir=\"$libdir\"
5933
5934   exec_prefix="$acl_save_exec_prefix"
5935   prefix="$acl_save_prefix"
5936
5937
5938 # Check whether --with-libiconv-prefix was given.
5939 if test "${with_libiconv_prefix+set}" = set; then :
5940   withval=$with_libiconv_prefix;
5941     if test "X$withval" = "Xno"; then
5942       use_additional=no
5943     else
5944       if test "X$withval" = "X"; then
5945
5946   acl_save_prefix="$prefix"
5947   prefix="$acl_final_prefix"
5948   acl_save_exec_prefix="$exec_prefix"
5949   exec_prefix="$acl_final_exec_prefix"
5950
5951           eval additional_includedir=\"$includedir\"
5952           eval additional_libdir=\"$libdir\"
5953
5954   exec_prefix="$acl_save_exec_prefix"
5955   prefix="$acl_save_prefix"
5956
5957       else
5958         additional_includedir="$withval/include"
5959         additional_libdir="$withval/$acl_libdirstem"
5960         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5961            && ! test -d "$withval/$acl_libdirstem"; then
5962           additional_libdir="$withval/$acl_libdirstem2"
5963         fi
5964       fi
5965     fi
5966
5967 fi
5968
5969       LIBICONV=
5970   LTLIBICONV=
5971   INCICONV=
5972   LIBICONV_PREFIX=
5973       HAVE_LIBICONV=
5974   rpathdirs=
5975   ltrpathdirs=
5976   names_already_handled=
5977   names_next_round='iconv '
5978   while test -n "$names_next_round"; do
5979     names_this_round="$names_next_round"
5980     names_next_round=
5981     for name in $names_this_round; do
5982       already_handled=
5983       for n in $names_already_handled; do
5984         if test "$n" = "$name"; then
5985           already_handled=yes
5986           break
5987         fi
5988       done
5989       if test -z "$already_handled"; then
5990         names_already_handled="$names_already_handled $name"
5991                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5992         eval value=\"\$HAVE_LIB$uppername\"
5993         if test -n "$value"; then
5994           if test "$value" = yes; then
5995             eval value=\"\$LIB$uppername\"
5996             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5997             eval value=\"\$LTLIB$uppername\"
5998             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5999           else
6000                                     :
6001           fi
6002         else
6003                               found_dir=
6004           found_la=
6005           found_so=
6006           found_a=
6007           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6008           if test -n "$acl_shlibext"; then
6009             shrext=".$acl_shlibext"             # typically: shrext=.so
6010           else
6011             shrext=
6012           fi
6013           if test $use_additional = yes; then
6014             dir="$additional_libdir"
6015                                     if test -n "$acl_shlibext"; then
6016               if test -f "$dir/$libname$shrext"; then
6017                 found_dir="$dir"
6018                 found_so="$dir/$libname$shrext"
6019               else
6020                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6021                   ver=`(cd "$dir" && \
6022                         for f in "$libname$shrext".*; do echo "$f"; done \
6023                         | sed -e "s,^$libname$shrext\\\\.,," \
6024                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6025                         | sed 1q ) 2>/dev/null`
6026                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6027                     found_dir="$dir"
6028                     found_so="$dir/$libname$shrext.$ver"
6029                   fi
6030                 else
6031                   eval library_names=\"$acl_library_names_spec\"
6032                   for f in $library_names; do
6033                     if test -f "$dir/$f"; then
6034                       found_dir="$dir"
6035                       found_so="$dir/$f"
6036                       break
6037                     fi
6038                   done
6039                 fi
6040               fi
6041             fi
6042                         if test "X$found_dir" = "X"; then
6043               if test -f "$dir/$libname.$acl_libext"; then
6044                 found_dir="$dir"
6045                 found_a="$dir/$libname.$acl_libext"
6046               fi
6047             fi
6048             if test "X$found_dir" != "X"; then
6049               if test -f "$dir/$libname.la"; then
6050                 found_la="$dir/$libname.la"
6051               fi
6052             fi
6053           fi
6054           if test "X$found_dir" = "X"; then
6055             for x in $LDFLAGS $LTLIBICONV; do
6056
6057   acl_save_prefix="$prefix"
6058   prefix="$acl_final_prefix"
6059   acl_save_exec_prefix="$exec_prefix"
6060   exec_prefix="$acl_final_exec_prefix"
6061   eval x=\"$x\"
6062   exec_prefix="$acl_save_exec_prefix"
6063   prefix="$acl_save_prefix"
6064
6065               case "$x" in
6066                 -L*)
6067                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6068                                     if test -n "$acl_shlibext"; then
6069                     if test -f "$dir/$libname$shrext"; then
6070                       found_dir="$dir"
6071                       found_so="$dir/$libname$shrext"
6072                     else
6073                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6074                         ver=`(cd "$dir" && \
6075                               for f in "$libname$shrext".*; do echo "$f"; done \
6076                               | sed -e "s,^$libname$shrext\\\\.,," \
6077                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6078                               | sed 1q ) 2>/dev/null`
6079                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6080                           found_dir="$dir"
6081                           found_so="$dir/$libname$shrext.$ver"
6082                         fi
6083                       else
6084                         eval library_names=\"$acl_library_names_spec\"
6085                         for f in $library_names; do
6086                           if test -f "$dir/$f"; then
6087                             found_dir="$dir"
6088                             found_so="$dir/$f"
6089                             break
6090                           fi
6091                         done
6092                       fi
6093                     fi
6094                   fi
6095                                     if test "X$found_dir" = "X"; then
6096                     if test -f "$dir/$libname.$acl_libext"; then
6097                       found_dir="$dir"
6098                       found_a="$dir/$libname.$acl_libext"
6099                     fi
6100                   fi
6101                   if test "X$found_dir" != "X"; then
6102                     if test -f "$dir/$libname.la"; then
6103                       found_la="$dir/$libname.la"
6104                     fi
6105                   fi
6106                   ;;
6107               esac
6108               if test "X$found_dir" != "X"; then
6109                 break
6110               fi
6111             done
6112           fi
6113           if test "X$found_dir" != "X"; then
6114                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6115             if test "X$found_so" != "X"; then
6116                                                         if test "$enable_rpath" = no \
6117                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6118                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6119                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6120               else
6121                                                                                 haveit=
6122                 for x in $ltrpathdirs; do
6123                   if test "X$x" = "X$found_dir"; then
6124                     haveit=yes
6125                     break
6126                   fi
6127                 done
6128                 if test -z "$haveit"; then
6129                   ltrpathdirs="$ltrpathdirs $found_dir"
6130                 fi
6131                                 if test "$acl_hardcode_direct" = yes; then
6132                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6133                 else
6134                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6135                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6136                                                             haveit=
6137                     for x in $rpathdirs; do
6138                       if test "X$x" = "X$found_dir"; then
6139                         haveit=yes
6140                         break
6141                       fi
6142                     done
6143                     if test -z "$haveit"; then
6144                       rpathdirs="$rpathdirs $found_dir"
6145                     fi
6146                   else
6147                                                                                 haveit=
6148                     for x in $LDFLAGS $LIBICONV; do
6149
6150   acl_save_prefix="$prefix"
6151   prefix="$acl_final_prefix"
6152   acl_save_exec_prefix="$exec_prefix"
6153   exec_prefix="$acl_final_exec_prefix"
6154   eval x=\"$x\"
6155   exec_prefix="$acl_save_exec_prefix"
6156   prefix="$acl_save_prefix"
6157
6158                       if test "X$x" = "X-L$found_dir"; then
6159                         haveit=yes
6160                         break
6161                       fi
6162                     done
6163                     if test -z "$haveit"; then
6164                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6165                     fi
6166                     if test "$acl_hardcode_minus_L" != no; then
6167                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6168                     else
6169                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6170                     fi
6171                   fi
6172                 fi
6173               fi
6174             else
6175               if test "X$found_a" != "X"; then
6176                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6177               else
6178                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6179               fi
6180             fi
6181                         additional_includedir=
6182             case "$found_dir" in
6183               */$acl_libdirstem | */$acl_libdirstem/)
6184                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6185                 if test "$name" = 'iconv'; then
6186                   LIBICONV_PREFIX="$basedir"
6187                 fi
6188                 additional_includedir="$basedir/include"
6189                 ;;
6190               */$acl_libdirstem2 | */$acl_libdirstem2/)
6191                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6192                 if test "$name" = 'iconv'; then
6193                   LIBICONV_PREFIX="$basedir"
6194                 fi
6195                 additional_includedir="$basedir/include"
6196                 ;;
6197             esac
6198             if test "X$additional_includedir" != "X"; then
6199                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6200                 haveit=
6201                 if test "X$additional_includedir" = "X/usr/local/include"; then
6202                   if test -n "$GCC"; then
6203                     case $host_os in
6204                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6205                     esac
6206                   fi
6207                 fi
6208                 if test -z "$haveit"; then
6209                   for x in $CPPFLAGS $INCICONV; do
6210
6211   acl_save_prefix="$prefix"
6212   prefix="$acl_final_prefix"
6213   acl_save_exec_prefix="$exec_prefix"
6214   exec_prefix="$acl_final_exec_prefix"
6215   eval x=\"$x\"
6216   exec_prefix="$acl_save_exec_prefix"
6217   prefix="$acl_save_prefix"
6218
6219                     if test "X$x" = "X-I$additional_includedir"; then
6220                       haveit=yes
6221                       break
6222                     fi
6223                   done
6224                   if test -z "$haveit"; then
6225                     if test -d "$additional_includedir"; then
6226                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6227                     fi
6228                   fi
6229                 fi
6230               fi
6231             fi
6232                         if test -n "$found_la"; then
6233                                                         save_libdir="$libdir"
6234               case "$found_la" in
6235                 */* | *\\*) . "$found_la" ;;
6236                 *) . "./$found_la" ;;
6237               esac
6238               libdir="$save_libdir"
6239                             for dep in $dependency_libs; do
6240                 case "$dep" in
6241                   -L*)
6242                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6243                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6244                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6245                       haveit=
6246                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6247                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6248                         if test -n "$GCC"; then
6249                           case $host_os in
6250                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6251                           esac
6252                         fi
6253                       fi
6254                       if test -z "$haveit"; then
6255                         haveit=
6256                         for x in $LDFLAGS $LIBICONV; do
6257
6258   acl_save_prefix="$prefix"
6259   prefix="$acl_final_prefix"
6260   acl_save_exec_prefix="$exec_prefix"
6261   exec_prefix="$acl_final_exec_prefix"
6262   eval x=\"$x\"
6263   exec_prefix="$acl_save_exec_prefix"
6264   prefix="$acl_save_prefix"
6265
6266                           if test "X$x" = "X-L$additional_libdir"; then
6267                             haveit=yes
6268                             break
6269                           fi
6270                         done
6271                         if test -z "$haveit"; then
6272                           if test -d "$additional_libdir"; then
6273                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6274                           fi
6275                         fi
6276                         haveit=
6277                         for x in $LDFLAGS $LTLIBICONV; do
6278
6279   acl_save_prefix="$prefix"
6280   prefix="$acl_final_prefix"
6281   acl_save_exec_prefix="$exec_prefix"
6282   exec_prefix="$acl_final_exec_prefix"
6283   eval x=\"$x\"
6284   exec_prefix="$acl_save_exec_prefix"
6285   prefix="$acl_save_prefix"
6286
6287                           if test "X$x" = "X-L$additional_libdir"; then
6288                             haveit=yes
6289                             break
6290                           fi
6291                         done
6292                         if test -z "$haveit"; then
6293                           if test -d "$additional_libdir"; then
6294                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6295                           fi
6296                         fi
6297                       fi
6298                     fi
6299                     ;;
6300                   -R*)
6301                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6302                     if test "$enable_rpath" != no; then
6303                                                                   haveit=
6304                       for x in $rpathdirs; do
6305                         if test "X$x" = "X$dir"; then
6306                           haveit=yes
6307                           break
6308                         fi
6309                       done
6310                       if test -z "$haveit"; then
6311                         rpathdirs="$rpathdirs $dir"
6312                       fi
6313                                                                   haveit=
6314                       for x in $ltrpathdirs; do
6315                         if test "X$x" = "X$dir"; then
6316                           haveit=yes
6317                           break
6318                         fi
6319                       done
6320                       if test -z "$haveit"; then
6321                         ltrpathdirs="$ltrpathdirs $dir"
6322                       fi
6323                     fi
6324                     ;;
6325                   -l*)
6326                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6327                     ;;
6328                   *.la)
6329                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6330                     ;;
6331                   *)
6332                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6333                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6334                     ;;
6335                 esac
6336               done
6337             fi
6338           else
6339                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6340             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6341           fi
6342         fi
6343       fi
6344     done
6345   done
6346   if test "X$rpathdirs" != "X"; then
6347     if test -n "$acl_hardcode_libdir_separator"; then
6348                         alldirs=
6349       for found_dir in $rpathdirs; do
6350         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6351       done
6352             acl_save_libdir="$libdir"
6353       libdir="$alldirs"
6354       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6355       libdir="$acl_save_libdir"
6356       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6357     else
6358             for found_dir in $rpathdirs; do
6359         acl_save_libdir="$libdir"
6360         libdir="$found_dir"
6361         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6362         libdir="$acl_save_libdir"
6363         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6364       done
6365     fi
6366   fi
6367   if test "X$ltrpathdirs" != "X"; then
6368             for found_dir in $ltrpathdirs; do
6369       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6370     done
6371   fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6404 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6405 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   gt_save_LIBS="$LIBS"
6409      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h.  */
6412 #include <CoreFoundation/CFPreferences.h>
6413 int
6414 main ()
6415 {
6416 CFPreferencesCopyAppValue(NULL, NULL)
6417   ;
6418   return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_link "$LINENO"; then :
6422   gt_cv_func_CFPreferencesCopyAppValue=yes
6423 else
6424   gt_cv_func_CFPreferencesCopyAppValue=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext \
6427     conftest$ac_exeext conftest.$ac_ext
6428      LIBS="$gt_save_LIBS"
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6431 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6432   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6433
6434 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6435
6436   fi
6437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6438 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6439 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6440   $as_echo_n "(cached) " >&6
6441 else
6442   gt_save_LIBS="$LIBS"
6443      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6444      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h.  */
6446 #include <CoreFoundation/CFLocale.h>
6447 int
6448 main ()
6449 {
6450 CFLocaleCopyCurrent();
6451   ;
6452   return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_c_try_link "$LINENO"; then :
6456   gt_cv_func_CFLocaleCopyCurrent=yes
6457 else
6458   gt_cv_func_CFLocaleCopyCurrent=no
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext \
6461     conftest$ac_exeext conftest.$ac_ext
6462      LIBS="$gt_save_LIBS"
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6465 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6466   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6467
6468 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6469
6470   fi
6471   INTL_MACOSX_LIBS=
6472   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6473     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6474   fi
6475
6476
6477
6478
6479
6480
6481   LIBINTL=
6482   LTLIBINTL=
6483   POSUB=
6484
6485     case " $gt_needs " in
6486     *" need-formatstring-macros "*) gt_api_version=3 ;;
6487     *" need-ngettext "*) gt_api_version=2 ;;
6488     *) gt_api_version=1 ;;
6489   esac
6490   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6491   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6492
6493     if test "$USE_NLS" = "yes"; then
6494     gt_use_preinstalled_gnugettext=no
6495
6496
6497         if test $gt_api_version -ge 3; then
6498           gt_revision_test_code='
6499 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6500 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6501 #endif
6502 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6503 '
6504         else
6505           gt_revision_test_code=
6506         fi
6507         if test $gt_api_version -ge 2; then
6508           gt_expression_test_code=' + * ngettext ("", "", 0)'
6509         else
6510           gt_expression_test_code=
6511         fi
6512
6513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6514 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6515 if eval \${$gt_func_gnugettext_libc+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h.  */
6520
6521 #include <libintl.h>
6522 $gt_revision_test_code
6523 extern int _nl_msg_cat_cntr;
6524 extern int *_nl_domain_bindings;
6525
6526 int
6527 main ()
6528 {
6529
6530 bindtextdomain ("", "");
6531 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6532
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_link "$LINENO"; then :
6538   eval "$gt_func_gnugettext_libc=yes"
6539 else
6540   eval "$gt_func_gnugettext_libc=no"
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext \
6543     conftest$ac_exeext conftest.$ac_ext
6544 fi
6545 eval ac_res=\$$gt_func_gnugettext_libc
6546                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6547 $as_echo "$ac_res" >&6; }
6548
6549         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6550
6551
6552
6553
6554
6555           am_save_CPPFLAGS="$CPPFLAGS"
6556
6557   for element in $INCICONV; do
6558     haveit=
6559     for x in $CPPFLAGS; do
6560
6561   acl_save_prefix="$prefix"
6562   prefix="$acl_final_prefix"
6563   acl_save_exec_prefix="$exec_prefix"
6564   exec_prefix="$acl_final_exec_prefix"
6565   eval x=\"$x\"
6566   exec_prefix="$acl_save_exec_prefix"
6567   prefix="$acl_save_prefix"
6568
6569       if test "X$x" = "X$element"; then
6570         haveit=yes
6571         break
6572       fi
6573     done
6574     if test -z "$haveit"; then
6575       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6576     fi
6577   done
6578
6579
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6581 $as_echo_n "checking for iconv... " >&6; }
6582 if ${am_cv_func_iconv+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585
6586     am_cv_func_iconv="no, consider installing GNU libiconv"
6587     am_cv_lib_iconv=no
6588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h.  */
6590
6591 #include <stdlib.h>
6592 #include <iconv.h>
6593
6594 int
6595 main ()
6596 {
6597 iconv_t cd = iconv_open("","");
6598            iconv(cd,NULL,NULL,NULL,NULL);
6599            iconv_close(cd);
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 if ac_fn_c_try_link "$LINENO"; then :
6605   am_cv_func_iconv=yes
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext \
6608     conftest$ac_exeext conftest.$ac_ext
6609     if test "$am_cv_func_iconv" != yes; then
6610       am_save_LIBS="$LIBS"
6611       LIBS="$LIBS $LIBICONV"
6612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h.  */
6614
6615 #include <stdlib.h>
6616 #include <iconv.h>
6617
6618 int
6619 main ()
6620 {
6621 iconv_t cd = iconv_open("","");
6622              iconv(cd,NULL,NULL,NULL,NULL);
6623              iconv_close(cd);
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629   am_cv_lib_iconv=yes
6630         am_cv_func_iconv=yes
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext \
6633     conftest$ac_exeext conftest.$ac_ext
6634       LIBS="$am_save_LIBS"
6635     fi
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6639 $as_echo "$am_cv_func_iconv" >&6; }
6640   if test "$am_cv_func_iconv" = yes; then
6641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6642 $as_echo_n "checking for working iconv... " >&6; }
6643 if ${am_cv_func_iconv_works+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646
6647                   am_save_LIBS="$LIBS"
6648       if test $am_cv_lib_iconv = yes; then
6649         LIBS="$LIBS $LIBICONV"
6650       fi
6651       if test "$cross_compiling" = yes; then :
6652
6653          case "$host_os" in
6654            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6655            *)            am_cv_func_iconv_works="guessing yes" ;;
6656          esac
6657
6658 else
6659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661
6662 #include <iconv.h>
6663 #include <string.h>
6664 int main ()
6665 {
6666   int result = 0;
6667   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6668      returns.  */
6669   {
6670     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6671     if (cd_utf8_to_88591 != (iconv_t)(-1))
6672       {
6673         static const char input[] = "\342\202\254"; /* EURO SIGN */
6674         char buf[10];
6675         const char *inptr = input;
6676         size_t inbytesleft = strlen (input);
6677         char *outptr = buf;
6678         size_t outbytesleft = sizeof (buf);
6679         size_t res = iconv (cd_utf8_to_88591,
6680                             (char **) &inptr, &inbytesleft,
6681                             &outptr, &outbytesleft);
6682         if (res == 0)
6683           result |= 1;
6684         iconv_close (cd_utf8_to_88591);
6685       }
6686   }
6687   /* Test against Solaris 10 bug: Failures are not distinguishable from
6688      successful returns.  */
6689   {
6690     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6691     if (cd_ascii_to_88591 != (iconv_t)(-1))
6692       {
6693         static const char input[] = "\263";
6694         char buf[10];
6695         const char *inptr = input;
6696         size_t inbytesleft = strlen (input);
6697         char *outptr = buf;
6698         size_t outbytesleft = sizeof (buf);
6699         size_t res = iconv (cd_ascii_to_88591,
6700                             (char **) &inptr, &inbytesleft,
6701                             &outptr, &outbytesleft);
6702         if (res == 0)
6703           result |= 2;
6704         iconv_close (cd_ascii_to_88591);
6705       }
6706   }
6707   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6708   {
6709     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6710     if (cd_88591_to_utf8 != (iconv_t)(-1))
6711       {
6712         static const char input[] = "\304";
6713         static char buf[2] = { (char)0xDE, (char)0xAD };
6714         const char *inptr = input;
6715         size_t inbytesleft = 1;
6716         char *outptr = buf;
6717         size_t outbytesleft = 1;
6718         size_t res = iconv (cd_88591_to_utf8,
6719                             (char **) &inptr, &inbytesleft,
6720                             &outptr, &outbytesleft);
6721         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6722           result |= 4;
6723         iconv_close (cd_88591_to_utf8);
6724       }
6725   }
6726 #if 0 /* This bug could be worked around by the caller.  */
6727   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6728   {
6729     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6730     if (cd_88591_to_utf8 != (iconv_t)(-1))
6731       {
6732         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6733         char buf[50];
6734         const char *inptr = input;
6735         size_t inbytesleft = strlen (input);
6736         char *outptr = buf;
6737         size_t outbytesleft = sizeof (buf);
6738         size_t res = iconv (cd_88591_to_utf8,
6739                             (char **) &inptr, &inbytesleft,
6740                             &outptr, &outbytesleft);
6741         if ((int)res > 0)
6742           result |= 8;
6743         iconv_close (cd_88591_to_utf8);
6744       }
6745   }
6746 #endif
6747   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6748      provided.  */
6749   if (/* Try standardized names.  */
6750       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6751       /* Try IRIX, OSF/1 names.  */
6752       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6753       /* Try AIX names.  */
6754       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6755       /* Try HP-UX names.  */
6756       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6757     result |= 16;
6758   return result;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_run "$LINENO"; then :
6762   am_cv_func_iconv_works=yes
6763 else
6764   am_cv_func_iconv_works=no
6765 fi
6766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6767   conftest.$ac_objext conftest.beam conftest.$ac_ext
6768 fi
6769
6770       LIBS="$am_save_LIBS"
6771
6772 fi
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6774 $as_echo "$am_cv_func_iconv_works" >&6; }
6775     case "$am_cv_func_iconv_works" in
6776       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6777       *)   am_func_iconv=yes ;;
6778     esac
6779   else
6780     am_func_iconv=no am_cv_lib_iconv=no
6781   fi
6782   if test "$am_func_iconv" = yes; then
6783
6784 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6785
6786   fi
6787   if test "$am_cv_lib_iconv" = yes; then
6788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6789 $as_echo_n "checking how to link with libiconv... " >&6; }
6790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6791 $as_echo "$LIBICONV" >&6; }
6792   else
6793             CPPFLAGS="$am_save_CPPFLAGS"
6794     LIBICONV=
6795     LTLIBICONV=
6796   fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808     use_additional=yes
6809
6810   acl_save_prefix="$prefix"
6811   prefix="$acl_final_prefix"
6812   acl_save_exec_prefix="$exec_prefix"
6813   exec_prefix="$acl_final_exec_prefix"
6814
6815     eval additional_includedir=\"$includedir\"
6816     eval additional_libdir=\"$libdir\"
6817
6818   exec_prefix="$acl_save_exec_prefix"
6819   prefix="$acl_save_prefix"
6820
6821
6822 # Check whether --with-libintl-prefix was given.
6823 if test "${with_libintl_prefix+set}" = set; then :
6824   withval=$with_libintl_prefix;
6825     if test "X$withval" = "Xno"; then
6826       use_additional=no
6827     else
6828       if test "X$withval" = "X"; then
6829
6830   acl_save_prefix="$prefix"
6831   prefix="$acl_final_prefix"
6832   acl_save_exec_prefix="$exec_prefix"
6833   exec_prefix="$acl_final_exec_prefix"
6834
6835           eval additional_includedir=\"$includedir\"
6836           eval additional_libdir=\"$libdir\"
6837
6838   exec_prefix="$acl_save_exec_prefix"
6839   prefix="$acl_save_prefix"
6840
6841       else
6842         additional_includedir="$withval/include"
6843         additional_libdir="$withval/$acl_libdirstem"
6844         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6845            && ! test -d "$withval/$acl_libdirstem"; then
6846           additional_libdir="$withval/$acl_libdirstem2"
6847         fi
6848       fi
6849     fi
6850
6851 fi
6852
6853       LIBINTL=
6854   LTLIBINTL=
6855   INCINTL=
6856   LIBINTL_PREFIX=
6857       HAVE_LIBINTL=
6858   rpathdirs=
6859   ltrpathdirs=
6860   names_already_handled=
6861   names_next_round='intl '
6862   while test -n "$names_next_round"; do
6863     names_this_round="$names_next_round"
6864     names_next_round=
6865     for name in $names_this_round; do
6866       already_handled=
6867       for n in $names_already_handled; do
6868         if test "$n" = "$name"; then
6869           already_handled=yes
6870           break
6871         fi
6872       done
6873       if test -z "$already_handled"; then
6874         names_already_handled="$names_already_handled $name"
6875                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6876         eval value=\"\$HAVE_LIB$uppername\"
6877         if test -n "$value"; then
6878           if test "$value" = yes; then
6879             eval value=\"\$LIB$uppername\"
6880             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6881             eval value=\"\$LTLIB$uppername\"
6882             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6883           else
6884                                     :
6885           fi
6886         else
6887                               found_dir=
6888           found_la=
6889           found_so=
6890           found_a=
6891           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6892           if test -n "$acl_shlibext"; then
6893             shrext=".$acl_shlibext"             # typically: shrext=.so
6894           else
6895             shrext=
6896           fi
6897           if test $use_additional = yes; then
6898             dir="$additional_libdir"
6899                                     if test -n "$acl_shlibext"; then
6900               if test -f "$dir/$libname$shrext"; then
6901                 found_dir="$dir"
6902                 found_so="$dir/$libname$shrext"
6903               else
6904                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6905                   ver=`(cd "$dir" && \
6906                         for f in "$libname$shrext".*; do echo "$f"; done \
6907                         | sed -e "s,^$libname$shrext\\\\.,," \
6908                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6909                         | sed 1q ) 2>/dev/null`
6910                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6911                     found_dir="$dir"
6912                     found_so="$dir/$libname$shrext.$ver"
6913                   fi
6914                 else
6915                   eval library_names=\"$acl_library_names_spec\"
6916                   for f in $library_names; do
6917                     if test -f "$dir/$f"; then
6918                       found_dir="$dir"
6919                       found_so="$dir/$f"
6920                       break
6921                     fi
6922                   done
6923                 fi
6924               fi
6925             fi
6926                         if test "X$found_dir" = "X"; then
6927               if test -f "$dir/$libname.$acl_libext"; then
6928                 found_dir="$dir"
6929                 found_a="$dir/$libname.$acl_libext"
6930               fi
6931             fi
6932             if test "X$found_dir" != "X"; then
6933               if test -f "$dir/$libname.la"; then
6934                 found_la="$dir/$libname.la"
6935               fi
6936             fi
6937           fi
6938           if test "X$found_dir" = "X"; then
6939             for x in $LDFLAGS $LTLIBINTL; do
6940
6941   acl_save_prefix="$prefix"
6942   prefix="$acl_final_prefix"
6943   acl_save_exec_prefix="$exec_prefix"
6944   exec_prefix="$acl_final_exec_prefix"
6945   eval x=\"$x\"
6946   exec_prefix="$acl_save_exec_prefix"
6947   prefix="$acl_save_prefix"
6948
6949               case "$x" in
6950                 -L*)
6951                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6952                                     if test -n "$acl_shlibext"; then
6953                     if test -f "$dir/$libname$shrext"; then
6954                       found_dir="$dir"
6955                       found_so="$dir/$libname$shrext"
6956                     else
6957                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6958                         ver=`(cd "$dir" && \
6959                               for f in "$libname$shrext".*; do echo "$f"; done \
6960                               | sed -e "s,^$libname$shrext\\\\.,," \
6961                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6962                               | sed 1q ) 2>/dev/null`
6963                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6964                           found_dir="$dir"
6965                           found_so="$dir/$libname$shrext.$ver"
6966                         fi
6967                       else
6968                         eval library_names=\"$acl_library_names_spec\"
6969                         for f in $library_names; do
6970                           if test -f "$dir/$f"; then
6971                             found_dir="$dir"
6972                             found_so="$dir/$f"
6973                             break
6974                           fi
6975                         done
6976                       fi
6977                     fi
6978                   fi
6979                                     if test "X$found_dir" = "X"; then
6980                     if test -f "$dir/$libname.$acl_libext"; then
6981                       found_dir="$dir"
6982                       found_a="$dir/$libname.$acl_libext"
6983                     fi
6984                   fi
6985                   if test "X$found_dir" != "X"; then
6986                     if test -f "$dir/$libname.la"; then
6987                       found_la="$dir/$libname.la"
6988                     fi
6989                   fi
6990                   ;;
6991               esac
6992               if test "X$found_dir" != "X"; then
6993                 break
6994               fi
6995             done
6996           fi
6997           if test "X$found_dir" != "X"; then
6998                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6999             if test "X$found_so" != "X"; then
7000                                                         if test "$enable_rpath" = no \
7001                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7002                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7003                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7004               else
7005                                                                                 haveit=
7006                 for x in $ltrpathdirs; do
7007                   if test "X$x" = "X$found_dir"; then
7008                     haveit=yes
7009                     break
7010                   fi
7011                 done
7012                 if test -z "$haveit"; then
7013                   ltrpathdirs="$ltrpathdirs $found_dir"
7014                 fi
7015                                 if test "$acl_hardcode_direct" = yes; then
7016                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7017                 else
7018                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7019                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7020                                                             haveit=
7021                     for x in $rpathdirs; do
7022                       if test "X$x" = "X$found_dir"; then
7023                         haveit=yes
7024                         break
7025                       fi
7026                     done
7027                     if test -z "$haveit"; then
7028                       rpathdirs="$rpathdirs $found_dir"
7029                     fi
7030                   else
7031                                                                                 haveit=
7032                     for x in $LDFLAGS $LIBINTL; do
7033
7034   acl_save_prefix="$prefix"
7035   prefix="$acl_final_prefix"
7036   acl_save_exec_prefix="$exec_prefix"
7037   exec_prefix="$acl_final_exec_prefix"
7038   eval x=\"$x\"
7039   exec_prefix="$acl_save_exec_prefix"
7040   prefix="$acl_save_prefix"
7041
7042                       if test "X$x" = "X-L$found_dir"; then
7043                         haveit=yes
7044                         break
7045                       fi
7046                     done
7047                     if test -z "$haveit"; then
7048                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7049                     fi
7050                     if test "$acl_hardcode_minus_L" != no; then
7051                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7052                     else
7053                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7054                     fi
7055                   fi
7056                 fi
7057               fi
7058             else
7059               if test "X$found_a" != "X"; then
7060                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7061               else
7062                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7063               fi
7064             fi
7065                         additional_includedir=
7066             case "$found_dir" in
7067               */$acl_libdirstem | */$acl_libdirstem/)
7068                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7069                 if test "$name" = 'intl'; then
7070                   LIBINTL_PREFIX="$basedir"
7071                 fi
7072                 additional_includedir="$basedir/include"
7073                 ;;
7074               */$acl_libdirstem2 | */$acl_libdirstem2/)
7075                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7076                 if test "$name" = 'intl'; then
7077                   LIBINTL_PREFIX="$basedir"
7078                 fi
7079                 additional_includedir="$basedir/include"
7080                 ;;
7081             esac
7082             if test "X$additional_includedir" != "X"; then
7083                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7084                 haveit=
7085                 if test "X$additional_includedir" = "X/usr/local/include"; then
7086                   if test -n "$GCC"; then
7087                     case $host_os in
7088                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7089                     esac
7090                   fi
7091                 fi
7092                 if test -z "$haveit"; then
7093                   for x in $CPPFLAGS $INCINTL; do
7094
7095   acl_save_prefix="$prefix"
7096   prefix="$acl_final_prefix"
7097   acl_save_exec_prefix="$exec_prefix"
7098   exec_prefix="$acl_final_exec_prefix"
7099   eval x=\"$x\"
7100   exec_prefix="$acl_save_exec_prefix"
7101   prefix="$acl_save_prefix"
7102
7103                     if test "X$x" = "X-I$additional_includedir"; then
7104                       haveit=yes
7105                       break
7106                     fi
7107                   done
7108                   if test -z "$haveit"; then
7109                     if test -d "$additional_includedir"; then
7110                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7111                     fi
7112                   fi
7113                 fi
7114               fi
7115             fi
7116                         if test -n "$found_la"; then
7117                                                         save_libdir="$libdir"
7118               case "$found_la" in
7119                 */* | *\\*) . "$found_la" ;;
7120                 *) . "./$found_la" ;;
7121               esac
7122               libdir="$save_libdir"
7123                             for dep in $dependency_libs; do
7124                 case "$dep" in
7125                   -L*)
7126                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7127                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7128                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7129                       haveit=
7130                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7131                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7132                         if test -n "$GCC"; then
7133                           case $host_os in
7134                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7135                           esac
7136                         fi
7137                       fi
7138                       if test -z "$haveit"; then
7139                         haveit=
7140                         for x in $LDFLAGS $LIBINTL; do
7141
7142   acl_save_prefix="$prefix"
7143   prefix="$acl_final_prefix"
7144   acl_save_exec_prefix="$exec_prefix"
7145   exec_prefix="$acl_final_exec_prefix"
7146   eval x=\"$x\"
7147   exec_prefix="$acl_save_exec_prefix"
7148   prefix="$acl_save_prefix"
7149
7150                           if test "X$x" = "X-L$additional_libdir"; then
7151                             haveit=yes
7152                             break
7153                           fi
7154                         done
7155                         if test -z "$haveit"; then
7156                           if test -d "$additional_libdir"; then
7157                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7158                           fi
7159                         fi
7160                         haveit=
7161                         for x in $LDFLAGS $LTLIBINTL; do
7162
7163   acl_save_prefix="$prefix"
7164   prefix="$acl_final_prefix"
7165   acl_save_exec_prefix="$exec_prefix"
7166   exec_prefix="$acl_final_exec_prefix"
7167   eval x=\"$x\"
7168   exec_prefix="$acl_save_exec_prefix"
7169   prefix="$acl_save_prefix"
7170
7171                           if test "X$x" = "X-L$additional_libdir"; then
7172                             haveit=yes
7173                             break
7174                           fi
7175                         done
7176                         if test -z "$haveit"; then
7177                           if test -d "$additional_libdir"; then
7178                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7179                           fi
7180                         fi
7181                       fi
7182                     fi
7183                     ;;
7184                   -R*)
7185                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7186                     if test "$enable_rpath" != no; then
7187                                                                   haveit=
7188                       for x in $rpathdirs; do
7189                         if test "X$x" = "X$dir"; then
7190                           haveit=yes
7191                           break
7192                         fi
7193                       done
7194                       if test -z "$haveit"; then
7195                         rpathdirs="$rpathdirs $dir"
7196                       fi
7197                                                                   haveit=
7198                       for x in $ltrpathdirs; do
7199                         if test "X$x" = "X$dir"; then
7200                           haveit=yes
7201                           break
7202                         fi
7203                       done
7204                       if test -z "$haveit"; then
7205                         ltrpathdirs="$ltrpathdirs $dir"
7206                       fi
7207                     fi
7208                     ;;
7209                   -l*)
7210                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7211                     ;;
7212                   *.la)
7213                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7214                     ;;
7215                   *)
7216                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7217                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7218                     ;;
7219                 esac
7220               done
7221             fi
7222           else
7223                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7224             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7225           fi
7226         fi
7227       fi
7228     done
7229   done
7230   if test "X$rpathdirs" != "X"; then
7231     if test -n "$acl_hardcode_libdir_separator"; then
7232                         alldirs=
7233       for found_dir in $rpathdirs; do
7234         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7235       done
7236             acl_save_libdir="$libdir"
7237       libdir="$alldirs"
7238       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7239       libdir="$acl_save_libdir"
7240       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7241     else
7242             for found_dir in $rpathdirs; do
7243         acl_save_libdir="$libdir"
7244         libdir="$found_dir"
7245         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7246         libdir="$acl_save_libdir"
7247         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7248       done
7249     fi
7250   fi
7251   if test "X$ltrpathdirs" != "X"; then
7252             for found_dir in $ltrpathdirs; do
7253       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7254     done
7255   fi
7256
7257
7258
7259
7260
7261
7262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7263 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7264 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   gt_save_CPPFLAGS="$CPPFLAGS"
7268             CPPFLAGS="$CPPFLAGS $INCINTL"
7269             gt_save_LIBS="$LIBS"
7270             LIBS="$LIBS $LIBINTL"
7271                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h.  */
7273
7274 #include <libintl.h>
7275 $gt_revision_test_code
7276 extern int _nl_msg_cat_cntr;
7277 extern
7278 #ifdef __cplusplus
7279 "C"
7280 #endif
7281 const char *_nl_expand_alias (const char *);
7282
7283 int
7284 main ()
7285 {
7286
7287 bindtextdomain ("", "");
7288 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7295   eval "$gt_func_gnugettext_libintl=yes"
7296 else
7297   eval "$gt_func_gnugettext_libintl=no"
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext \
7300     conftest$ac_exeext conftest.$ac_ext
7301                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7302               LIBS="$LIBS $LIBICONV"
7303               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306 #include <libintl.h>
7307 $gt_revision_test_code
7308 extern int _nl_msg_cat_cntr;
7309 extern
7310 #ifdef __cplusplus
7311 "C"
7312 #endif
7313 const char *_nl_expand_alias (const char *);
7314
7315 int
7316 main ()
7317 {
7318
7319 bindtextdomain ("", "");
7320 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7321
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"; then :
7327   LIBINTL="$LIBINTL $LIBICONV"
7328                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7329                  eval "$gt_func_gnugettext_libintl=yes"
7330
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext \
7333     conftest$ac_exeext conftest.$ac_ext
7334             fi
7335             CPPFLAGS="$gt_save_CPPFLAGS"
7336             LIBS="$gt_save_LIBS"
7337 fi
7338 eval ac_res=\$$gt_func_gnugettext_libintl
7339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7340 $as_echo "$ac_res" >&6; }
7341         fi
7342
7343                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7344            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7345                 && test "$PACKAGE" != gettext-runtime \
7346                 && test "$PACKAGE" != gettext-tools; }; then
7347           gt_use_preinstalled_gnugettext=yes
7348         else
7349                     LIBINTL=
7350           LTLIBINTL=
7351           INCINTL=
7352         fi
7353
7354
7355
7356     if test -n "$INTL_MACOSX_LIBS"; then
7357       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7358          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7359                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7360         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7361       fi
7362     fi
7363
7364     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7365        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7366
7367 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7368
7369     else
7370       USE_NLS=no
7371     fi
7372   fi
7373
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7375 $as_echo_n "checking whether to use NLS... " >&6; }
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7377 $as_echo "$USE_NLS" >&6; }
7378   if test "$USE_NLS" = "yes"; then
7379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7380 $as_echo_n "checking where the gettext function comes from... " >&6; }
7381     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7382       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7383         gt_source="external libintl"
7384       else
7385         gt_source="libc"
7386       fi
7387     else
7388       gt_source="included intl directory"
7389     fi
7390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7391 $as_echo "$gt_source" >&6; }
7392   fi
7393
7394   if test "$USE_NLS" = "yes"; then
7395
7396     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7397       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7399 $as_echo_n "checking how to link with libintl... " >&6; }
7400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7401 $as_echo "$LIBINTL" >&6; }
7402
7403   for element in $INCINTL; do
7404     haveit=
7405     for x in $CPPFLAGS; do
7406
7407   acl_save_prefix="$prefix"
7408   prefix="$acl_final_prefix"
7409   acl_save_exec_prefix="$exec_prefix"
7410   exec_prefix="$acl_final_exec_prefix"
7411   eval x=\"$x\"
7412   exec_prefix="$acl_save_exec_prefix"
7413   prefix="$acl_save_prefix"
7414
7415       if test "X$x" = "X$element"; then
7416         haveit=yes
7417         break
7418       fi
7419     done
7420     if test -z "$haveit"; then
7421       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7422     fi
7423   done
7424
7425       fi
7426
7427
7428 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7429
7430
7431 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7432
7433     fi
7434
7435         POSUB=po
7436   fi
7437
7438
7439
7440     INTLLIBS="$LIBINTL"
7441
7442
7443
7444
7445
7446
7447
7448 # Gsettings
7449
7450
7451   # Check whether --enable-schemas-compile was given.
7452 if test "${enable_schemas_compile+set}" = set; then :
7453   enableval=$enable_schemas_compile; case ${enableval} in
7454                   yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
7455                   no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7456                   *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7457                  esac
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7469         if test -n "$ac_tool_prefix"; then
7470   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   case $PKG_CONFIG in
7478   [\\/]* | ?:[\\/]*)
7479   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7480   ;;
7481   *)
7482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497   ;;
7498 esac
7499 fi
7500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7501 if test -n "$PKG_CONFIG"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7503 $as_echo "$PKG_CONFIG" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509
7510 fi
7511 if test -z "$ac_cv_path_PKG_CONFIG"; then
7512   ac_pt_PKG_CONFIG=$PKG_CONFIG
7513   # Extract the first word of "pkg-config", so it can be a program name with args.
7514 set dummy pkg-config; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7518   $as_echo_n "(cached) " >&6
7519 else
7520   case $ac_pt_PKG_CONFIG in
7521   [\\/]* | ?:[\\/]*)
7522   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7523   ;;
7524   *)
7525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540   ;;
7541 esac
7542 fi
7543 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7544 if test -n "$ac_pt_PKG_CONFIG"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7546 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_pt_PKG_CONFIG" = x; then
7553     PKG_CONFIG=""
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     PKG_CONFIG=$ac_pt_PKG_CONFIG
7562   fi
7563 else
7564   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7565 fi
7566
7567 fi
7568 if test -n "$PKG_CONFIG"; then
7569         _pkg_min_version=0.16
7570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7571 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7572         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7573                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7575         else
7576                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578                 PKG_CONFIG=""
7579         fi
7580 fi
7581   gsettingsschemadir=${datadir}/glib-2.0/schemas
7582
7583   if test x$cross_compiling != xyes; then
7584     GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7585   else
7586     # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7587 set dummy glib-compile-schemas; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   case $GLIB_COMPILE_SCHEMAS in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613   ;;
7614 esac
7615 fi
7616 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7617 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7619 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626   fi
7627
7628   if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7629     as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7630   else
7631     :
7632   fi
7633
7634   GSETTINGS_RULES='
7635 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7636
7637 mostlyclean-am: clean-gsettings-schemas
7638
7639 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7640
7641 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7642         $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7643
7644 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7645 uninstall-am: uninstall-gsettings-schemas
7646 install-data-am: install-gsettings-schemas
7647
7648 .SECONDARY: $(gsettings_SCHEMAS)
7649
7650 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7651         @$(NORMAL_INSTALL)
7652         if test -n "$^"; then \
7653                 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7654                 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7655                 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7656         fi
7657
7658 uninstall-gsettings-schemas:
7659         @$(NORMAL_UNINSTALL)
7660         @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7661         files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7662         test -n "$$files" || exit 0; \
7663         echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7664         cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7665         test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7666
7667 clean-gsettings-schemas:
7668         rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7669
7670 ifdef gsettings_ENUM_NAMESPACE
7671 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7672         $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
7673 endif
7674 '
7675
7676
7677
7678
7679
7680
7681
7682 ############### common
7683
7684 # Checks pthread
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7686 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7687 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   ac_check_lib_save_LIBS=$LIBS
7691 LIBS="-lpthread  $LIBS"
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h.  */
7694
7695 /* Override any GCC internal prototype to avoid an error.
7696    Use char because int might match the return type of a GCC
7697    builtin and then its argument prototype would still apply.  */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 char pthread_create ();
7702 int
7703 main ()
7704 {
7705 return pthread_create ();
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711   ac_cv_lib_pthread_pthread_create=yes
7712 else
7713   ac_cv_lib_pthread_pthread_create=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext \
7716     conftest$ac_exeext conftest.$ac_ext
7717 LIBS=$ac_check_lib_save_LIBS
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7720 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7721 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7722   cat >>confdefs.h <<_ACEOF
7723 #define HAVE_LIBPTHREAD 1
7724 _ACEOF
7725
7726   LIBS="-lpthread $LIBS"
7727
7728 fi
7729
7730 PTHREAD_LIBS=-pthread
7731
7732
7733 # Checks sensors, required by psensor and psensor-server
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7735 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7736 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-lsensors  $LIBS"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h.  */
7743
7744 /* Override any GCC internal prototype to avoid an error.
7745    Use char because int might match the return type of a GCC
7746    builtin and then its argument prototype would still apply.  */
7747 #ifdef __cplusplus
7748 extern "C"
7749 #endif
7750 char sensors_init ();
7751 int
7752 main ()
7753 {
7754 return sensors_init ();
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_link "$LINENO"; then :
7760   ac_cv_lib_sensors_sensors_init=yes
7761 else
7762   ac_cv_lib_sensors_sensors_init=no
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext \
7765     conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7769 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7770 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7771   cat >>confdefs.h <<_ACEOF
7772 #define HAVE_LIBSENSORS 1
7773 _ACEOF
7774
7775   LIBS="-lsensors $LIBS"
7776
7777 fi
7778
7779 for ac_header in sensors/sensors.h sensors/error.h
7780 do :
7781   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7784   cat >>confdefs.h <<_ACEOF
7785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7786 _ACEOF
7787
7788 fi
7789
7790 done
7791
7792 SENSORS_LIBS=-lsensors
7793
7794
7795 ############### psensor
7796
7797 ### Required
7798
7799
7800 pkg_failed=no
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7802 $as_echo_n "checking for X11... " >&6; }
7803
7804 if test -n "$X11_CFLAGS"; then
7805     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7806  elif test -n "$PKG_CONFIG"; then
7807     if test -n "$PKG_CONFIG" && \
7808     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7809   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7810   ac_status=$?
7811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812   test $ac_status = 0; }; then
7813   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7814                       test "x$?" != "x0" && pkg_failed=yes
7815 else
7816   pkg_failed=yes
7817 fi
7818  else
7819     pkg_failed=untried
7820 fi
7821 if test -n "$X11_LIBS"; then
7822     pkg_cv_X11_LIBS="$X11_LIBS"
7823  elif test -n "$PKG_CONFIG"; then
7824     if test -n "$PKG_CONFIG" && \
7825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7826   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7827   ac_status=$?
7828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829   test $ac_status = 0; }; then
7830   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7831                       test "x$?" != "x0" && pkg_failed=yes
7832 else
7833   pkg_failed=yes
7834 fi
7835  else
7836     pkg_failed=untried
7837 fi
7838
7839
7840
7841 if test $pkg_failed = yes; then
7842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844
7845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7846         _pkg_short_errors_supported=yes
7847 else
7848         _pkg_short_errors_supported=no
7849 fi
7850         if test $_pkg_short_errors_supported = yes; then
7851                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7852         else
7853                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7854         fi
7855         # Put the nasty error message in config.log where it belongs
7856         echo "$X11_PKG_ERRORS" >&5
7857
7858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7859 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7860 elif test $pkg_failed = untried; then
7861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7864 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7865 else
7866         X11_CFLAGS=$pkg_cv_X11_CFLAGS
7867         X11_LIBS=$pkg_cv_X11_LIBS
7868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7870
7871 fi
7872  if test -n "$X11_LIBS"; then
7873   X11_TRUE=
7874   X11_FALSE='#'
7875 else
7876   X11_TRUE='#'
7877   X11_FALSE=
7878 fi
7879
7880
7881
7882
7883
7884 pkg_failed=no
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7886 $as_echo_n "checking for XEXT... " >&6; }
7887
7888 if test -n "$XEXT_CFLAGS"; then
7889     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7890  elif test -n "$PKG_CONFIG"; then
7891     if test -n "$PKG_CONFIG" && \
7892     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7893   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7894   ac_status=$?
7895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896   test $ac_status = 0; }; then
7897   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7898                       test "x$?" != "x0" && pkg_failed=yes
7899 else
7900   pkg_failed=yes
7901 fi
7902  else
7903     pkg_failed=untried
7904 fi
7905 if test -n "$XEXT_LIBS"; then
7906     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7907  elif test -n "$PKG_CONFIG"; then
7908     if test -n "$PKG_CONFIG" && \
7909     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7910   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7911   ac_status=$?
7912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913   test $ac_status = 0; }; then
7914   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7915                       test "x$?" != "x0" && pkg_failed=yes
7916 else
7917   pkg_failed=yes
7918 fi
7919  else
7920     pkg_failed=untried
7921 fi
7922
7923
7924
7925 if test $pkg_failed = yes; then
7926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7928
7929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7930         _pkg_short_errors_supported=yes
7931 else
7932         _pkg_short_errors_supported=no
7933 fi
7934         if test $_pkg_short_errors_supported = yes; then
7935                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7936         else
7937                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7938         fi
7939         # Put the nasty error message in config.log where it belongs
7940         echo "$XEXT_PKG_ERRORS" >&5
7941
7942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7943 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7944 elif test $pkg_failed = untried; then
7945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7948 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7949 else
7950         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7951         XEXT_LIBS=$pkg_cv_XEXT_LIBS
7952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7953 $as_echo "yes" >&6; }
7954
7955 fi
7956  if test -n "$XEXT_LIBS"; then
7957   XEXT_TRUE=
7958   XEXT_FALSE='#'
7959 else
7960   XEXT_TRUE='#'
7961   XEXT_FALSE=
7962 fi
7963
7964
7965
7966
7967 # Checks GTK+ 3.0
7968
7969 pkg_failed=no
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7971 $as_echo_n "checking for GTK... " >&6; }
7972
7973 if test -n "$GTK_CFLAGS"; then
7974     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7975  elif test -n "$PKG_CONFIG"; then
7976     if test -n "$PKG_CONFIG" && \
7977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7978   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7979   ac_status=$?
7980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7981   test $ac_status = 0; }; then
7982   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7983                       test "x$?" != "x0" && pkg_failed=yes
7984 else
7985   pkg_failed=yes
7986 fi
7987  else
7988     pkg_failed=untried
7989 fi
7990 if test -n "$GTK_LIBS"; then
7991     pkg_cv_GTK_LIBS="$GTK_LIBS"
7992  elif test -n "$PKG_CONFIG"; then
7993     if test -n "$PKG_CONFIG" && \
7994     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7995   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7996   ac_status=$?
7997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998   test $ac_status = 0; }; then
7999   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
8000                       test "x$?" != "x0" && pkg_failed=yes
8001 else
8002   pkg_failed=yes
8003 fi
8004  else
8005     pkg_failed=untried
8006 fi
8007
8008
8009
8010 if test $pkg_failed = yes; then
8011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013
8014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8015         _pkg_short_errors_supported=yes
8016 else
8017         _pkg_short_errors_supported=no
8018 fi
8019         if test $_pkg_short_errors_supported = yes; then
8020                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8021         else
8022                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8023         fi
8024         # Put the nasty error message in config.log where it belongs
8025         echo "$GTK_PKG_ERRORS" >&5
8026
8027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8028 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8029 elif test $pkg_failed = untried; then
8030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8033 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8034 else
8035         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8036         GTK_LIBS=$pkg_cv_GTK_LIBS
8037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8038 $as_echo "yes" >&6; }
8039
8040 fi
8041  if test -n "$GTK_LIBS"; then
8042   GTK_TRUE=
8043   GTK_FALSE='#'
8044 else
8045   GTK_TRUE='#'
8046   GTK_FALSE=
8047 fi
8048
8049 # ensure that only allowed headers are included
8050 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
8051 # ensure that no gtk deprecated symbols are used
8052 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
8053 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
8054 # ensure use of accessors
8055 GTK_CFLAGS+=" -DGSEAL_ENABLE "
8056
8057
8058
8059 ### Optional
8060
8061 # check libatasmart
8062
8063 pkg_failed=no
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
8065 $as_echo_n "checking for ATASMART... " >&6; }
8066
8067 if test -n "$ATASMART_CFLAGS"; then
8068     pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
8069  elif test -n "$PKG_CONFIG"; then
8070     if test -n "$PKG_CONFIG" && \
8071     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8072   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8073   ac_status=$?
8074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075   test $ac_status = 0; }; then
8076   pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
8077                       test "x$?" != "x0" && pkg_failed=yes
8078 else
8079   pkg_failed=yes
8080 fi
8081  else
8082     pkg_failed=untried
8083 fi
8084 if test -n "$ATASMART_LIBS"; then
8085     pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
8086  elif test -n "$PKG_CONFIG"; then
8087     if test -n "$PKG_CONFIG" && \
8088     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8089   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8090   ac_status=$?
8091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092   test $ac_status = 0; }; then
8093   pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
8094                       test "x$?" != "x0" && pkg_failed=yes
8095 else
8096   pkg_failed=yes
8097 fi
8098  else
8099     pkg_failed=untried
8100 fi
8101
8102
8103
8104 if test $pkg_failed = yes; then
8105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107
8108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8109         _pkg_short_errors_supported=yes
8110 else
8111         _pkg_short_errors_supported=no
8112 fi
8113         if test $_pkg_short_errors_supported = yes; then
8114                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
8115         else
8116                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
8117         fi
8118         # Put the nasty error message in config.log where it belongs
8119         echo "$ATASMART_PKG_ERRORS" >&5
8120
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8122 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8123 elif test $pkg_failed = untried; then
8124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8127 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8128 else
8129         ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
8130         ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
8131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132 $as_echo "yes" >&6; }
8133
8134 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
8135
8136 fi
8137
8138  if test -n "$ATASMART_LIBS"; then
8139   ATASMART_TRUE=
8140   ATASMART_FALSE='#'
8141 else
8142   ATASMART_TRUE='#'
8143   ATASMART_FALSE=
8144 fi
8145
8146
8147
8148
8149 # Check libnotify
8150 LIBNOTIFY_LIBS=
8151
8152 pkg_failed=no
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
8154 $as_echo_n "checking for LIBNOTIFY... " >&6; }
8155
8156 if test -n "$LIBNOTIFY_CFLAGS"; then
8157     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
8158  elif test -n "$PKG_CONFIG"; then
8159     if test -n "$PKG_CONFIG" && \
8160     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8161   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8162   ac_status=$?
8163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8164   test $ac_status = 0; }; then
8165   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
8166                       test "x$?" != "x0" && pkg_failed=yes
8167 else
8168   pkg_failed=yes
8169 fi
8170  else
8171     pkg_failed=untried
8172 fi
8173 if test -n "$LIBNOTIFY_LIBS"; then
8174     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
8175  elif test -n "$PKG_CONFIG"; then
8176     if test -n "$PKG_CONFIG" && \
8177     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8178   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8179   ac_status=$?
8180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181   test $ac_status = 0; }; then
8182   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
8183                       test "x$?" != "x0" && pkg_failed=yes
8184 else
8185   pkg_failed=yes
8186 fi
8187  else
8188     pkg_failed=untried
8189 fi
8190
8191
8192
8193 if test $pkg_failed = yes; then
8194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196
8197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8198         _pkg_short_errors_supported=yes
8199 else
8200         _pkg_short_errors_supported=no
8201 fi
8202         if test $_pkg_short_errors_supported = yes; then
8203                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
8204         else
8205                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
8206         fi
8207         # Put the nasty error message in config.log where it belongs
8208         echo "$LIBNOTIFY_PKG_ERRORS" >&5
8209
8210         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8211 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8212 elif test $pkg_failed = untried; then
8213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8216 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8217 else
8218         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
8219         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
8220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221 $as_echo "yes" >&6; }
8222
8223 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
8224
8225 fi
8226  if test -n "$LIBNOTIFY_LIBS"; then
8227   LIBNOTIFY_TRUE=
8228   LIBNOTIFY_FALSE='#'
8229 else
8230   LIBNOTIFY_TRUE='#'
8231   LIBNOTIFY_FALSE=
8232 fi
8233
8234
8235
8236
8237 # Checks AppIndicator
8238 APPINDICATOR_LIBS=
8239
8240
8241 pkg_failed=no
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8243 $as_echo_n "checking for APPINDICATOR... " >&6; }
8244
8245 if test -n "$APPINDICATOR_CFLAGS"; then
8246     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8247  elif test -n "$PKG_CONFIG"; then
8248     if test -n "$PKG_CONFIG" && \
8249     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8250   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8251   ac_status=$?
8252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253   test $ac_status = 0; }; then
8254   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
8255                       test "x$?" != "x0" && pkg_failed=yes
8256 else
8257   pkg_failed=yes
8258 fi
8259  else
8260     pkg_failed=untried
8261 fi
8262 if test -n "$APPINDICATOR_LIBS"; then
8263     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8264  elif test -n "$PKG_CONFIG"; then
8265     if test -n "$PKG_CONFIG" && \
8266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8267   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8268   ac_status=$?
8269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270   test $ac_status = 0; }; then
8271   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8272                       test "x$?" != "x0" && pkg_failed=yes
8273 else
8274   pkg_failed=yes
8275 fi
8276  else
8277     pkg_failed=untried
8278 fi
8279
8280
8281
8282 if test $pkg_failed = yes; then
8283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285
8286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8287         _pkg_short_errors_supported=yes
8288 else
8289         _pkg_short_errors_supported=no
8290 fi
8291         if test $_pkg_short_errors_supported = yes; then
8292                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8293         else
8294                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8295         fi
8296         # Put the nasty error message in config.log where it belongs
8297         echo "$APPINDICATOR_PKG_ERRORS" >&5
8298
8299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8300 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8301 elif test $pkg_failed = untried; then
8302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8305 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8306 else
8307         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8308         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8310 $as_echo "yes" >&6; }
8311
8312 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8313
8314 fi
8315
8316 if test "$APPINDICATOR_LIBS" == ""; then
8317
8318 pkg_failed=no
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8320 $as_echo_n "checking for APPINDICATOR... " >&6; }
8321
8322 if test -n "$APPINDICATOR_CFLAGS"; then
8323     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8324  elif test -n "$PKG_CONFIG"; then
8325     if test -n "$PKG_CONFIG" && \
8326     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8327   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8328   ac_status=$?
8329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8330   test $ac_status = 0; }; then
8331   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8332                       test "x$?" != "x0" && pkg_failed=yes
8333 else
8334   pkg_failed=yes
8335 fi
8336  else
8337     pkg_failed=untried
8338 fi
8339 if test -n "$APPINDICATOR_LIBS"; then
8340     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8341  elif test -n "$PKG_CONFIG"; then
8342     if test -n "$PKG_CONFIG" && \
8343     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8344   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8345   ac_status=$?
8346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8347   test $ac_status = 0; }; then
8348   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8349                       test "x$?" != "x0" && pkg_failed=yes
8350 else
8351   pkg_failed=yes
8352 fi
8353  else
8354     pkg_failed=untried
8355 fi
8356
8357
8358
8359 if test $pkg_failed = yes; then
8360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362
8363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8364         _pkg_short_errors_supported=yes
8365 else
8366         _pkg_short_errors_supported=no
8367 fi
8368         if test $_pkg_short_errors_supported = yes; then
8369                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8370         else
8371                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8372         fi
8373         # Put the nasty error message in config.log where it belongs
8374         echo "$APPINDICATOR_PKG_ERRORS" >&5
8375
8376         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8377 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8378 elif test $pkg_failed = untried; then
8379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8382 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8383 else
8384         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8385         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8387 $as_echo "yes" >&6; }
8388
8389 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8390
8391
8392 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8393
8394
8395 fi
8396 fi
8397
8398 if test "$APPINDICATOR_LIBS" == ""; then
8399
8400 pkg_failed=no
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8402 $as_echo_n "checking for APPINDICATOR... " >&6; }
8403
8404 if test -n "$APPINDICATOR_CFLAGS"; then
8405     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8406  elif test -n "$PKG_CONFIG"; then
8407     if test -n "$PKG_CONFIG" && \
8408     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8409   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8410   ac_status=$?
8411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8412   test $ac_status = 0; }; then
8413   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8414                       test "x$?" != "x0" && pkg_failed=yes
8415 else
8416   pkg_failed=yes
8417 fi
8418  else
8419     pkg_failed=untried
8420 fi
8421 if test -n "$APPINDICATOR_LIBS"; then
8422     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8423  elif test -n "$PKG_CONFIG"; then
8424     if test -n "$PKG_CONFIG" && \
8425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8426   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8427   ac_status=$?
8428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429   test $ac_status = 0; }; then
8430   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8431                       test "x$?" != "x0" && pkg_failed=yes
8432 else
8433   pkg_failed=yes
8434 fi
8435  else
8436     pkg_failed=untried
8437 fi
8438
8439
8440
8441 if test $pkg_failed = yes; then
8442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444
8445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8446         _pkg_short_errors_supported=yes
8447 else
8448         _pkg_short_errors_supported=no
8449 fi
8450         if test $_pkg_short_errors_supported = yes; then
8451                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8452         else
8453                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8454         fi
8455         # Put the nasty error message in config.log where it belongs
8456         echo "$APPINDICATOR_PKG_ERRORS" >&5
8457
8458         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8459 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8460 elif test $pkg_failed = untried; then
8461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8464 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8465 else
8466         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8467         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8469 $as_echo "yes" >&6; }
8470
8471 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8472
8473 fi
8474 fi
8475  if test -n "$APPINDICATOR_LIBS"; then
8476   APPINDICATOR_TRUE=
8477   APPINDICATOR_FALSE='#'
8478 else
8479   APPINDICATOR_TRUE='#'
8480   APPINDICATOR_FALSE=
8481 fi
8482
8483
8484
8485
8486 # Check CURL, needed for remote monitoring
8487 CURL_LIBS=
8488
8489 pkg_failed=no
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8491 $as_echo_n "checking for CURL... " >&6; }
8492
8493 if test -n "$CURL_CFLAGS"; then
8494     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8495  elif test -n "$PKG_CONFIG"; then
8496     if test -n "$PKG_CONFIG" && \
8497     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8498   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8499   ac_status=$?
8500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8501   test $ac_status = 0; }; then
8502   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8503                       test "x$?" != "x0" && pkg_failed=yes
8504 else
8505   pkg_failed=yes
8506 fi
8507  else
8508     pkg_failed=untried
8509 fi
8510 if test -n "$CURL_LIBS"; then
8511     pkg_cv_CURL_LIBS="$CURL_LIBS"
8512  elif test -n "$PKG_CONFIG"; then
8513     if test -n "$PKG_CONFIG" && \
8514     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8515   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8516   ac_status=$?
8517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8518   test $ac_status = 0; }; then
8519   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8520                       test "x$?" != "x0" && pkg_failed=yes
8521 else
8522   pkg_failed=yes
8523 fi
8524  else
8525     pkg_failed=untried
8526 fi
8527
8528
8529
8530 if test $pkg_failed = yes; then
8531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533
8534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8535         _pkg_short_errors_supported=yes
8536 else
8537         _pkg_short_errors_supported=no
8538 fi
8539         if test $_pkg_short_errors_supported = yes; then
8540                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8541         else
8542                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8543         fi
8544         # Put the nasty error message in config.log where it belongs
8545         echo "$CURL_PKG_ERRORS" >&5
8546
8547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8548 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8549 elif test $pkg_failed = untried; then
8550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8553 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8554 else
8555         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8556         CURL_LIBS=$pkg_cv_CURL_LIBS
8557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8558 $as_echo "yes" >&6; }
8559
8560 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8561
8562 fi
8563  if test -n "$CURL_LIBS"; then
8564   CURL_TRUE=
8565   CURL_FALSE='#'
8566 else
8567   CURL_TRUE='#'
8568   CURL_FALSE=
8569 fi
8570
8571
8572
8573
8574 # Check JSON, needed for remote monitoring
8575 JSON_LIBS=
8576
8577 pkg_failed=no
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8579 $as_echo_n "checking for JSON... " >&6; }
8580
8581 if test -n "$JSON_CFLAGS"; then
8582     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8583  elif test -n "$PKG_CONFIG"; then
8584     if test -n "$PKG_CONFIG" && \
8585     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8586   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8587   ac_status=$?
8588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8589   test $ac_status = 0; }; then
8590   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11.99" 2>/dev/null`
8591                       test "x$?" != "x0" && pkg_failed=yes
8592 else
8593   pkg_failed=yes
8594 fi
8595  else
8596     pkg_failed=untried
8597 fi
8598 if test -n "$JSON_LIBS"; then
8599     pkg_cv_JSON_LIBS="$JSON_LIBS"
8600  elif test -n "$PKG_CONFIG"; then
8601     if test -n "$PKG_CONFIG" && \
8602     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8603   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8604   ac_status=$?
8605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8606   test $ac_status = 0; }; then
8607   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11.99" 2>/dev/null`
8608                       test "x$?" != "x0" && pkg_failed=yes
8609 else
8610   pkg_failed=yes
8611 fi
8612  else
8613     pkg_failed=untried
8614 fi
8615
8616
8617
8618 if test $pkg_failed = yes; then
8619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8621
8622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8623         _pkg_short_errors_supported=yes
8624 else
8625         _pkg_short_errors_supported=no
8626 fi
8627         if test $_pkg_short_errors_supported = yes; then
8628                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8629         else
8630                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8631         fi
8632         # Put the nasty error message in config.log where it belongs
8633         echo "$JSON_PKG_ERRORS" >&5
8634
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8636 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8637 elif test $pkg_failed = untried; then
8638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8641 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8642 else
8643         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8644         JSON_LIBS=$pkg_cv_JSON_LIBS
8645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8646 $as_echo "yes" >&6; }
8647
8648 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8649
8650 fi
8651
8652 if test "$JSON_LIBS" == ""; then
8653
8654 pkg_failed=no
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8656 $as_echo_n "checking for JSON... " >&6; }
8657
8658 if test -n "$JSON_CFLAGS"; then
8659     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8660  elif test -n "$PKG_CONFIG"; then
8661     if test -n "$PKG_CONFIG" && \
8662     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8663   ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8664   ac_status=$?
8665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8666   test $ac_status = 0; }; then
8667   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json >= 0.11.99" 2>/dev/null`
8668                       test "x$?" != "x0" && pkg_failed=yes
8669 else
8670   pkg_failed=yes
8671 fi
8672  else
8673     pkg_failed=untried
8674 fi
8675 if test -n "$JSON_LIBS"; then
8676     pkg_cv_JSON_LIBS="$JSON_LIBS"
8677  elif test -n "$PKG_CONFIG"; then
8678     if test -n "$PKG_CONFIG" && \
8679     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8680   ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8681   ac_status=$?
8682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683   test $ac_status = 0; }; then
8684   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json >= 0.11.99" 2>/dev/null`
8685                       test "x$?" != "x0" && pkg_failed=yes
8686 else
8687   pkg_failed=yes
8688 fi
8689  else
8690     pkg_failed=untried
8691 fi
8692
8693
8694
8695 if test $pkg_failed = yes; then
8696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698
8699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8700         _pkg_short_errors_supported=yes
8701 else
8702         _pkg_short_errors_supported=no
8703 fi
8704         if test $_pkg_short_errors_supported = yes; then
8705                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8706         else
8707                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8708         fi
8709         # Put the nasty error message in config.log where it belongs
8710         echo "$JSON_PKG_ERRORS" >&5
8711
8712         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8713 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8714 elif test $pkg_failed = untried; then
8715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8718 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8719 else
8720         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8721         JSON_LIBS=$pkg_cv_JSON_LIBS
8722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8723 $as_echo "yes" >&6; }
8724
8725 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8726
8727
8728 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8729
8730 fi
8731 fi
8732
8733  if test -n "$JSON_LIBS"; then
8734   JSON_TRUE=
8735   JSON_FALSE='#'
8736 else
8737   JSON_TRUE='#'
8738   JSON_FALSE=
8739 fi
8740
8741
8742
8743
8744 # Enables remote monitoring if JSON and CURL is present
8745 if test -n "$JSON_LIBS"; then
8746    if test -n "$CURL_LIBS"; then
8747
8748 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8749
8750    fi
8751 fi
8752
8753 # Checks NVIDIA
8754 # following code from sensors-applet
8755 # sensors-applet.sourceforge.net/
8756 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8757 do :
8758   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8759 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8760                   #include <X11/Xlib.h>
8761
8762 "
8763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8764   cat >>confdefs.h <<_ACEOF
8765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8766 _ACEOF
8767   HAVE_NVIDIA=true
8768 fi
8769
8770 done
8771
8772 if test -n "${X11_LIBS}"; then
8773 LIBS="${LIBS} -lX11 -lXext"
8774
8775 if test "${HAVE_NVIDIA}" = "true"; then
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8777 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8778 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781   ac_check_lib_save_LIBS=$LIBS
8782 LIBS="-lXNVCtrl  $LIBS"
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785
8786 /* Override any GCC internal prototype to avoid an error.
8787    Use char because int might match the return type of a GCC
8788    builtin and then its argument prototype would still apply.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 char XNVCTRLQueryExtension ();
8793 int
8794 main ()
8795 {
8796 return XNVCTRLQueryExtension ();
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_c_try_link "$LINENO"; then :
8802   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8803 else
8804   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807     conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8811 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8812 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8813   NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8814
8815 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8816
8817
8818 fi
8819
8820 fi
8821 fi
8822  if test -n "$NVIDIA_LIBS"; then
8823   NVIDIA_TRUE=
8824   NVIDIA_FALSE='#'
8825 else
8826   NVIDIA_TRUE='#'
8827   NVIDIA_FALSE=
8828 fi
8829
8830
8831
8832
8833 # Checks Unity
8834
8835 pkg_failed=no
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8837 $as_echo_n "checking for UNITY... " >&6; }
8838
8839 if test -n "$UNITY_CFLAGS"; then
8840     pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8841  elif test -n "$PKG_CONFIG"; then
8842     if test -n "$PKG_CONFIG" && \
8843     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8844   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8845   ac_status=$?
8846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8847   test $ac_status = 0; }; then
8848   pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8849                       test "x$?" != "x0" && pkg_failed=yes
8850 else
8851   pkg_failed=yes
8852 fi
8853  else
8854     pkg_failed=untried
8855 fi
8856 if test -n "$UNITY_LIBS"; then
8857     pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8858  elif test -n "$PKG_CONFIG"; then
8859     if test -n "$PKG_CONFIG" && \
8860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8861   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8862   ac_status=$?
8863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8864   test $ac_status = 0; }; then
8865   pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8866                       test "x$?" != "x0" && pkg_failed=yes
8867 else
8868   pkg_failed=yes
8869 fi
8870  else
8871     pkg_failed=untried
8872 fi
8873
8874
8875
8876 if test $pkg_failed = yes; then
8877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879
8880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8881         _pkg_short_errors_supported=yes
8882 else
8883         _pkg_short_errors_supported=no
8884 fi
8885         if test $_pkg_short_errors_supported = yes; then
8886                 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8887         else
8888                 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8889         fi
8890         # Put the nasty error message in config.log where it belongs
8891         echo "$UNITY_PKG_ERRORS" >&5
8892
8893         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8894 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8895 elif test $pkg_failed = untried; then
8896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8899 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8900 else
8901         UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8902         UNITY_LIBS=$pkg_cv_UNITY_LIBS
8903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8904 $as_echo "yes" >&6; }
8905
8906 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8907
8908 fi
8909
8910
8911  if test -n "$UNITY_LIBS"; then
8912   UNITY_TRUE=
8913   UNITY_FALSE='#'
8914 else
8915   UNITY_TRUE='#'
8916   UNITY_FALSE=
8917 fi
8918
8919
8920 # libatiadl
8921
8922 # Check whether --with-libatiadl was given.
8923 if test "${with_libatiadl+set}" = set; then :
8924   withval=$with_libatiadl;
8925                    ATIADL_DIR=${withval}
8926                    CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8927                    LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8928
8929
8930 fi
8931
8932
8933 for ac_header in adl_defines.h
8934 do :
8935   ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8936 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8937   cat >>confdefs.h <<_ACEOF
8938 #define HAVE_ADL_DEFINES_H 1
8939 _ACEOF
8940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8941 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8942 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   ac_check_lib_save_LIBS=$LIBS
8946 LIBS="-latiadlxx  $LIBS"
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949
8950 /* Override any GCC internal prototype to avoid an error.
8951    Use char because int might match the return type of a GCC
8952    builtin and then its argument prototype would still apply.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char ADL_Main_Control_Refresh ();
8957 int
8958 main ()
8959 {
8960 return ADL_Main_Control_Refresh ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 if ac_fn_c_try_link "$LINENO"; then :
8966   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8967 else
8968   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext \
8971     conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8975 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8976 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8977
8978
8979 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8980
8981                         LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8982                         LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8983
8984 fi
8985
8986 fi
8987
8988 done
8989
8990
8991  if test -n "$LIBATIADL_LIBS"; then
8992   LIBATIADL_TRUE=
8993   LIBATIADL_FALSE='#'
8994 else
8995   LIBATIADL_TRUE='#'
8996   LIBATIADL_FALSE=
8997 fi
8998
8999
9000
9001
9002 ############### psensor-server
9003
9004 # libmicrohttpd, mandatory for psensor-server
9005 LIBMICROHTTPD_LIBS=
9006
9007 pkg_failed=no
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
9009 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
9010
9011 if test -n "$LIBMICROHTTPD_CFLAGS"; then
9012     pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
9013  elif test -n "$PKG_CONFIG"; then
9014     if test -n "$PKG_CONFIG" && \
9015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9016   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9017   ac_status=$?
9018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9019   test $ac_status = 0; }; then
9020   pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
9021                       test "x$?" != "x0" && pkg_failed=yes
9022 else
9023   pkg_failed=yes
9024 fi
9025  else
9026     pkg_failed=untried
9027 fi
9028 if test -n "$LIBMICROHTTPD_LIBS"; then
9029     pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
9030  elif test -n "$PKG_CONFIG"; then
9031     if test -n "$PKG_CONFIG" && \
9032     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9033   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9034   ac_status=$?
9035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9036   test $ac_status = 0; }; then
9037   pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
9038                       test "x$?" != "x0" && pkg_failed=yes
9039 else
9040   pkg_failed=yes
9041 fi
9042  else
9043     pkg_failed=untried
9044 fi
9045
9046
9047
9048 if test $pkg_failed = yes; then
9049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051
9052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9053         _pkg_short_errors_supported=yes
9054 else
9055         _pkg_short_errors_supported=no
9056 fi
9057         if test $_pkg_short_errors_supported = yes; then
9058                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9059         else
9060                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9061         fi
9062         # Put the nasty error message in config.log where it belongs
9063         echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
9064
9065         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9066 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9067 elif test $pkg_failed = untried; then
9068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9070         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9071 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9072 else
9073         LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
9074         LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
9075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9076 $as_echo "yes" >&6; }
9077
9078 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
9079
9080 fi
9081  if test -n "$LIBMICROHTTPD_LIBS"; then
9082   LIBMICROHTTPD_TRUE=
9083   LIBMICROHTTPD_FALSE='#'
9084 else
9085   LIBMICROHTTPD_TRUE='#'
9086   LIBMICROHTTPD_FALSE=
9087 fi
9088
9089
9090
9091
9092 # GTop, optional
9093
9094
9095 # Check whether --with-gtop was given.
9096 if test "${with_gtop+set}" = set; then :
9097   withval=$with_gtop;
9098         with_gtop=$withval
9099 else
9100
9101         with_gtop="yes"
9102
9103 fi
9104
9105
9106 GTOP_LIBS=
9107 if test "$with_gtop" = "yes"; then
9108
9109 pkg_failed=no
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
9111 $as_echo_n "checking for GTOP... " >&6; }
9112
9113 if test -n "$GTOP_CFLAGS"; then
9114     pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
9115  elif test -n "$PKG_CONFIG"; then
9116     if test -n "$PKG_CONFIG" && \
9117     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9118   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9119   ac_status=$?
9120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121   test $ac_status = 0; }; then
9122   pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
9123                       test "x$?" != "x0" && pkg_failed=yes
9124 else
9125   pkg_failed=yes
9126 fi
9127  else
9128     pkg_failed=untried
9129 fi
9130 if test -n "$GTOP_LIBS"; then
9131     pkg_cv_GTOP_LIBS="$GTOP_LIBS"
9132  elif test -n "$PKG_CONFIG"; then
9133     if test -n "$PKG_CONFIG" && \
9134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9135   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9136   ac_status=$?
9137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9138   test $ac_status = 0; }; then
9139   pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
9140                       test "x$?" != "x0" && pkg_failed=yes
9141 else
9142   pkg_failed=yes
9143 fi
9144  else
9145     pkg_failed=untried
9146 fi
9147
9148
9149
9150 if test $pkg_failed = yes; then
9151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9153
9154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9155         _pkg_short_errors_supported=yes
9156 else
9157         _pkg_short_errors_supported=no
9158 fi
9159         if test $_pkg_short_errors_supported = yes; then
9160                 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9161         else
9162                 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9163         fi
9164         # Put the nasty error message in config.log where it belongs
9165         echo "$GTOP_PKG_ERRORS" >&5
9166
9167         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9168 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9169 elif test $pkg_failed = untried; then
9170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9173 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9174 else
9175         GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
9176         GTOP_LIBS=$pkg_cv_GTOP_LIBS
9177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178 $as_echo "yes" >&6; }
9179
9180 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
9181
9182 fi
9183 fi
9184  if test -n "$GTOP_LIBS"; then
9185   GTOP_TRUE=
9186   GTOP_FALSE='#'
9187 else
9188   GTOP_TRUE='#'
9189   GTOP_FALSE=
9190 fi
9191
9192
9193
9194
9195 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"
9196
9197
9198 for ac_prog in help2man
9199 do
9200   # Extract the first word of "$ac_prog", so it can be a program name with args.
9201 set dummy $ac_prog; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_prog_HELP2MAN+:} false; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   if test -n "$HELP2MAN"; then
9208   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213   IFS=$as_save_IFS
9214   test -z "$as_dir" && as_dir=.
9215     for ac_exec_ext in '' $ac_executable_extensions; do
9216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217     ac_cv_prog_HELP2MAN="$ac_prog"
9218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219     break 2
9220   fi
9221 done
9222   done
9223 IFS=$as_save_IFS
9224
9225 fi
9226 fi
9227 HELP2MAN=$ac_cv_prog_HELP2MAN
9228 if test -n "$HELP2MAN"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9230 $as_echo "$HELP2MAN" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235
9236
9237   test -n "$HELP2MAN" && break
9238 done
9239
9240
9241 # Extract the first word of "asciidoc", so it can be a program name with args.
9242 set dummy asciidoc; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_ASCIIDOC+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   if test -n "$ASCIIDOC"; then
9249   ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254   IFS=$as_save_IFS
9255   test -z "$as_dir" && as_dir=.
9256     for ac_exec_ext in '' $ac_executable_extensions; do
9257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258     ac_cv_prog_ASCIIDOC="yes"
9259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260     break 2
9261   fi
9262 done
9263   done
9264 IFS=$as_save_IFS
9265
9266 fi
9267 fi
9268 ASCIIDOC=$ac_cv_prog_ASCIIDOC
9269 if test -n "$ASCIIDOC"; then
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
9271 $as_echo "$ASCIIDOC" >&6; }
9272 else
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9275 fi
9276
9277
9278  if test -n "$ASCIIDOC"; then
9279   ASCIIDOC_TRUE=
9280   ASCIIDOC_FALSE='#'
9281 else
9282   ASCIIDOC_TRUE='#'
9283   ASCIIDOC_FALSE=
9284 fi
9285
9286
9287 # Extract the first word of "cppcheck", so it can be a program name with args.
9288 set dummy cppcheck; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   if test -n "$HAVE_CPPCHECK"; then
9295   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300   IFS=$as_save_IFS
9301   test -z "$as_dir" && as_dir=.
9302     for ac_exec_ext in '' $ac_executable_extensions; do
9303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304     ac_cv_prog_HAVE_CPPCHECK="yes"
9305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306     break 2
9307   fi
9308 done
9309   done
9310 IFS=$as_save_IFS
9311
9312 fi
9313 fi
9314 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9315 if test -n "$HAVE_CPPCHECK"; then
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9317 $as_echo "$HAVE_CPPCHECK" >&6; }
9318 else
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9321 fi
9322
9323
9324  if test -n "$HAVE_CPPCHECK"; then
9325   CPPCHECK_TRUE=
9326   CPPCHECK_FALSE='#'
9327 else
9328   CPPCHECK_TRUE='#'
9329   CPPCHECK_FALSE=
9330 fi
9331
9332
9333 cat >confcache <<\_ACEOF
9334 # This file is a shell script that caches the results of configure
9335 # tests run on this system so they can be shared between configure
9336 # scripts and configure runs, see configure's option --config-cache.
9337 # It is not useful on other systems.  If it contains results you don't
9338 # want to keep, you may remove or edit it.
9339 #
9340 # config.status only pays attention to the cache file if you give it
9341 # the --recheck option to rerun configure.
9342 #
9343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9345 # following values.
9346
9347 _ACEOF
9348
9349 # The following way of writing the cache mishandles newlines in values,
9350 # but we know of no workaround that is simple, portable, and efficient.
9351 # So, we kill variables containing newlines.
9352 # Ultrix sh set writes to stderr and can't be redirected directly,
9353 # and sets the high bit in the cache file unless we assign to the vars.
9354 (
9355   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9356     eval ac_val=\$$ac_var
9357     case $ac_val in #(
9358     *${as_nl}*)
9359       case $ac_var in #(
9360       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9362       esac
9363       case $ac_var in #(
9364       _ | IFS | as_nl) ;; #(
9365       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9366       *) { eval $ac_var=; unset $ac_var;} ;;
9367       esac ;;
9368     esac
9369   done
9370
9371   (set) 2>&1 |
9372     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9373     *${as_nl}ac_space=\ *)
9374       # `set' does not quote correctly, so add quotes: double-quote
9375       # substitution turns \\\\ into \\, and sed turns \\ into \.
9376       sed -n \
9377         "s/'/'\\\\''/g;
9378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9379       ;; #(
9380     *)
9381       # `set' quotes correctly as required by POSIX, so do not add quotes.
9382       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9383       ;;
9384     esac |
9385     sort
9386 ) |
9387   sed '
9388      /^ac_cv_env_/b end
9389      t clear
9390      :clear
9391      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9392      t end
9393      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9394      :end' >>confcache
9395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9396   if test -w "$cache_file"; then
9397     if test "x$cache_file" != "x/dev/null"; then
9398       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9399 $as_echo "$as_me: updating cache $cache_file" >&6;}
9400       if test ! -f "$cache_file" || test -h "$cache_file"; then
9401         cat confcache >"$cache_file"
9402       else
9403         case $cache_file in #(
9404         */* | ?:*)
9405           mv -f confcache "$cache_file"$$ &&
9406           mv -f "$cache_file"$$ "$cache_file" ;; #(
9407         *)
9408           mv -f confcache "$cache_file" ;;
9409         esac
9410       fi
9411     fi
9412   else
9413     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9415   fi
9416 fi
9417 rm -f confcache
9418
9419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9420 # Let make expand exec_prefix.
9421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9422
9423 DEFS=-DHAVE_CONFIG_H
9424
9425 ac_libobjs=
9426 ac_ltlibobjs=
9427 U=
9428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9429   # 1. Remove the extension, and $U if already installed.
9430   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9431   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9432   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9433   #    will be set to the directory where LIBOBJS objects are built.
9434   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9435   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9436 done
9437 LIBOBJS=$ac_libobjs
9438
9439 LTLIBOBJS=$ac_ltlibobjs
9440
9441
9442  if test -n "$EXEEXT"; then
9443   am__EXEEXT_TRUE=
9444   am__EXEEXT_FALSE='#'
9445 else
9446   am__EXEEXT_TRUE='#'
9447   am__EXEEXT_FALSE=
9448 fi
9449
9450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9451   as_fn_error $? "conditional \"AMDEP\" was never defined.
9452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9453 fi
9454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9455   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9457 fi
9458 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9459   as_fn_error $? "conditional \"X11\" was never defined.
9460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9461 fi
9462 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9463   as_fn_error $? "conditional \"XEXT\" was never defined.
9464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9465 fi
9466 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9467   as_fn_error $? "conditional \"GTK\" was never defined.
9468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9469 fi
9470 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9471   as_fn_error $? "conditional \"ATASMART\" was never defined.
9472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9473 fi
9474 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9475   as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9477 fi
9478 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9479   as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9481 fi
9482 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9483   as_fn_error $? "conditional \"CURL\" was never defined.
9484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9485 fi
9486 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9487   as_fn_error $? "conditional \"JSON\" was never defined.
9488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9489 fi
9490 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9491   as_fn_error $? "conditional \"NVIDIA\" was never defined.
9492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9493 fi
9494 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9495   as_fn_error $? "conditional \"UNITY\" was never defined.
9496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9497 fi
9498 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9499   as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9501 fi
9502 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9503   as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9505 fi
9506 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9507   as_fn_error $? "conditional \"GTOP\" was never defined.
9508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9509 fi
9510 if test -z "${ASCIIDOC_TRUE}" && test -z "${ASCIIDOC_FALSE}"; then
9511   as_fn_error $? "conditional \"ASCIIDOC\" was never defined.
9512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9513 fi
9514 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9515   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9517 fi
9518
9519 : "${CONFIG_STATUS=./config.status}"
9520 ac_write_fail=0
9521 ac_clean_files_save=$ac_clean_files
9522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9525 as_write_fail=0
9526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9527 #! $SHELL
9528 # Generated by $as_me.
9529 # Run this file to recreate the current configuration.
9530 # Compiler output produced by configure, useful for debugging
9531 # configure, is in config.log if it exists.
9532
9533 debug=false
9534 ac_cs_recheck=false
9535 ac_cs_silent=false
9536
9537 SHELL=\${CONFIG_SHELL-$SHELL}
9538 export SHELL
9539 _ASEOF
9540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9541 ## -------------------- ##
9542 ## M4sh Initialization. ##
9543 ## -------------------- ##
9544
9545 # Be more Bourne compatible
9546 DUALCASE=1; export DUALCASE # for MKS sh
9547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9548   emulate sh
9549   NULLCMD=:
9550   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9551   # is contrary to our usage.  Disable this feature.
9552   alias -g '${1+"$@"}'='"$@"'
9553   setopt NO_GLOB_SUBST
9554 else
9555   case `(set -o) 2>/dev/null` in #(
9556   *posix*) :
9557     set -o posix ;; #(
9558   *) :
9559      ;;
9560 esac
9561 fi
9562
9563
9564 as_nl='
9565 '
9566 export as_nl
9567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9568 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9571 # Prefer a ksh shell builtin over an external printf program on Solaris,
9572 # but without wasting forks for bash or zsh.
9573 if test -z "$BASH_VERSION$ZSH_VERSION" \
9574     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9575   as_echo='print -r --'
9576   as_echo_n='print -rn --'
9577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9578   as_echo='printf %s\n'
9579   as_echo_n='printf %s'
9580 else
9581   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9582     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9583     as_echo_n='/usr/ucb/echo -n'
9584   else
9585     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9586     as_echo_n_body='eval
9587       arg=$1;
9588       case $arg in #(
9589       *"$as_nl"*)
9590         expr "X$arg" : "X\\(.*\\)$as_nl";
9591         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9592       esac;
9593       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9594     '
9595     export as_echo_n_body
9596     as_echo_n='sh -c $as_echo_n_body as_echo'
9597   fi
9598   export as_echo_body
9599   as_echo='sh -c $as_echo_body as_echo'
9600 fi
9601
9602 # The user is always right.
9603 if test "${PATH_SEPARATOR+set}" != set; then
9604   PATH_SEPARATOR=:
9605   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9606     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9607       PATH_SEPARATOR=';'
9608   }
9609 fi
9610
9611
9612 # IFS
9613 # We need space, tab and new line, in precisely that order.  Quoting is
9614 # there to prevent editors from complaining about space-tab.
9615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9616 # splitting by setting IFS to empty value.)
9617 IFS=" ""        $as_nl"
9618
9619 # Find who we are.  Look in the path if we contain no directory separator.
9620 as_myself=
9621 case $0 in #((
9622   *[\\/]* ) as_myself=$0 ;;
9623   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626   IFS=$as_save_IFS
9627   test -z "$as_dir" && as_dir=.
9628     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9629   done
9630 IFS=$as_save_IFS
9631
9632      ;;
9633 esac
9634 # We did not find ourselves, most probably we were run as `sh COMMAND'
9635 # in which case we are not to be found in the path.
9636 if test "x$as_myself" = x; then
9637   as_myself=$0
9638 fi
9639 if test ! -f "$as_myself"; then
9640   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9641   exit 1
9642 fi
9643
9644 # Unset variables that we do not need and which cause bugs (e.g. in
9645 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9646 # suppresses any "Segmentation fault" message there.  '((' could
9647 # trigger a bug in pdksh 5.2.14.
9648 for as_var in BASH_ENV ENV MAIL MAILPATH
9649 do eval test x\${$as_var+set} = xset \
9650   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9651 done
9652 PS1='$ '
9653 PS2='> '
9654 PS4='+ '
9655
9656 # NLS nuisances.
9657 LC_ALL=C
9658 export LC_ALL
9659 LANGUAGE=C
9660 export LANGUAGE
9661
9662 # CDPATH.
9663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9664
9665
9666 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9667 # ----------------------------------------
9668 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9669 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9670 # script with STATUS, using 1 if that was 0.
9671 as_fn_error ()
9672 {
9673   as_status=$1; test $as_status -eq 0 && as_status=1
9674   if test "$4"; then
9675     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9676     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9677   fi
9678   $as_echo "$as_me: error: $2" >&2
9679   as_fn_exit $as_status
9680 } # as_fn_error
9681
9682
9683 # as_fn_set_status STATUS
9684 # -----------------------
9685 # Set $? to STATUS, without forking.
9686 as_fn_set_status ()
9687 {
9688   return $1
9689 } # as_fn_set_status
9690
9691 # as_fn_exit STATUS
9692 # -----------------
9693 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9694 as_fn_exit ()
9695 {
9696   set +e
9697   as_fn_set_status $1
9698   exit $1
9699 } # as_fn_exit
9700
9701 # as_fn_unset VAR
9702 # ---------------
9703 # Portably unset VAR.
9704 as_fn_unset ()
9705 {
9706   { eval $1=; unset $1;}
9707 }
9708 as_unset=as_fn_unset
9709 # as_fn_append VAR VALUE
9710 # ----------------------
9711 # Append the text in VALUE to the end of the definition contained in VAR. Take
9712 # advantage of any shell optimizations that allow amortized linear growth over
9713 # repeated appends, instead of the typical quadratic growth present in naive
9714 # implementations.
9715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9716   eval 'as_fn_append ()
9717   {
9718     eval $1+=\$2
9719   }'
9720 else
9721   as_fn_append ()
9722   {
9723     eval $1=\$$1\$2
9724   }
9725 fi # as_fn_append
9726
9727 # as_fn_arith ARG...
9728 # ------------------
9729 # Perform arithmetic evaluation on the ARGs, and store the result in the
9730 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9731 # must be portable across $(()) and expr.
9732 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9733   eval 'as_fn_arith ()
9734   {
9735     as_val=$(( $* ))
9736   }'
9737 else
9738   as_fn_arith ()
9739   {
9740     as_val=`expr "$@" || test $? -eq 1`
9741   }
9742 fi # as_fn_arith
9743
9744
9745 if expr a : '\(a\)' >/dev/null 2>&1 &&
9746    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9747   as_expr=expr
9748 else
9749   as_expr=false
9750 fi
9751
9752 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9753   as_basename=basename
9754 else
9755   as_basename=false
9756 fi
9757
9758 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9759   as_dirname=dirname
9760 else
9761   as_dirname=false
9762 fi
9763
9764 as_me=`$as_basename -- "$0" ||
9765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9766          X"$0" : 'X\(//\)$' \| \
9767          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9768 $as_echo X/"$0" |
9769     sed '/^.*\/\([^/][^/]*\)\/*$/{
9770             s//\1/
9771             q
9772           }
9773           /^X\/\(\/\/\)$/{
9774             s//\1/
9775             q
9776           }
9777           /^X\/\(\/\).*/{
9778             s//\1/
9779             q
9780           }
9781           s/.*/./; q'`
9782
9783 # Avoid depending upon Character Ranges.
9784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9787 as_cr_digits='0123456789'
9788 as_cr_alnum=$as_cr_Letters$as_cr_digits
9789
9790 ECHO_C= ECHO_N= ECHO_T=
9791 case `echo -n x` in #(((((
9792 -n*)
9793   case `echo 'xy\c'` in
9794   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9795   xy)  ECHO_C='\c';;
9796   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9797        ECHO_T=' ';;
9798   esac;;
9799 *)
9800   ECHO_N='-n';;
9801 esac
9802
9803 rm -f conf$$ conf$$.exe conf$$.file
9804 if test -d conf$$.dir; then
9805   rm -f conf$$.dir/conf$$.file
9806 else
9807   rm -f conf$$.dir
9808   mkdir conf$$.dir 2>/dev/null
9809 fi
9810 if (echo >conf$$.file) 2>/dev/null; then
9811   if ln -s conf$$.file conf$$ 2>/dev/null; then
9812     as_ln_s='ln -s'
9813     # ... but there are two gotchas:
9814     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9815     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9816     # In both cases, we have to default to `cp -pR'.
9817     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9818       as_ln_s='cp -pR'
9819   elif ln conf$$.file conf$$ 2>/dev/null; then
9820     as_ln_s=ln
9821   else
9822     as_ln_s='cp -pR'
9823   fi
9824 else
9825   as_ln_s='cp -pR'
9826 fi
9827 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9828 rmdir conf$$.dir 2>/dev/null
9829
9830
9831 # as_fn_mkdir_p
9832 # -------------
9833 # Create "$as_dir" as a directory, including parents if necessary.
9834 as_fn_mkdir_p ()
9835 {
9836
9837   case $as_dir in #(
9838   -*) as_dir=./$as_dir;;
9839   esac
9840   test -d "$as_dir" || eval $as_mkdir_p || {
9841     as_dirs=
9842     while :; do
9843       case $as_dir in #(
9844       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9845       *) as_qdir=$as_dir;;
9846       esac
9847       as_dirs="'$as_qdir' $as_dirs"
9848       as_dir=`$as_dirname -- "$as_dir" ||
9849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9850          X"$as_dir" : 'X\(//\)[^/]' \| \
9851          X"$as_dir" : 'X\(//\)$' \| \
9852          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9853 $as_echo X"$as_dir" |
9854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9855             s//\1/
9856             q
9857           }
9858           /^X\(\/\/\)[^/].*/{
9859             s//\1/
9860             q
9861           }
9862           /^X\(\/\/\)$/{
9863             s//\1/
9864             q
9865           }
9866           /^X\(\/\).*/{
9867             s//\1/
9868             q
9869           }
9870           s/.*/./; q'`
9871       test -d "$as_dir" && break
9872     done
9873     test -z "$as_dirs" || eval "mkdir $as_dirs"
9874   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9875
9876
9877 } # as_fn_mkdir_p
9878 if mkdir -p . 2>/dev/null; then
9879   as_mkdir_p='mkdir -p "$as_dir"'
9880 else
9881   test -d ./-p && rmdir ./-p
9882   as_mkdir_p=false
9883 fi
9884
9885
9886 # as_fn_executable_p FILE
9887 # -----------------------
9888 # Test if FILE is an executable regular file.
9889 as_fn_executable_p ()
9890 {
9891   test -f "$1" && test -x "$1"
9892 } # as_fn_executable_p
9893 as_test_x='test -x'
9894 as_executable_p=as_fn_executable_p
9895
9896 # Sed expression to map a string onto a valid CPP name.
9897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9898
9899 # Sed expression to map a string onto a valid variable name.
9900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9901
9902
9903 exec 6>&1
9904 ## ----------------------------------- ##
9905 ## Main body of $CONFIG_STATUS script. ##
9906 ## ----------------------------------- ##
9907 _ASEOF
9908 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9909
9910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9911 # Save the log message, to keep $0 and so on meaningful, and to
9912 # report actual input values of CONFIG_FILES etc. instead of their
9913 # values after options handling.
9914 ac_log="
9915 This file was extended by psensor $as_me 1.1.1, which was
9916 generated by GNU Autoconf 2.69.  Invocation command line was
9917
9918   CONFIG_FILES    = $CONFIG_FILES
9919   CONFIG_HEADERS  = $CONFIG_HEADERS
9920   CONFIG_LINKS    = $CONFIG_LINKS
9921   CONFIG_COMMANDS = $CONFIG_COMMANDS
9922   $ $0 $@
9923
9924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9925 "
9926
9927 _ACEOF
9928
9929 case $ac_config_files in *"
9930 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9931 esac
9932
9933 case $ac_config_headers in *"
9934 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9935 esac
9936
9937
9938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9939 # Files that config.status was made for.
9940 config_files="$ac_config_files"
9941 config_headers="$ac_config_headers"
9942 config_commands="$ac_config_commands"
9943
9944 _ACEOF
9945
9946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9947 ac_cs_usage="\
9948 \`$as_me' instantiates files and other configuration actions
9949 from templates according to the current configuration.  Unless the files
9950 and actions are specified as TAGs, all are instantiated by default.
9951
9952 Usage: $0 [OPTION]... [TAG]...
9953
9954   -h, --help       print this help, then exit
9955   -V, --version    print version number and configuration settings, then exit
9956       --config     print configuration, then exit
9957   -q, --quiet, --silent
9958                    do not print progress messages
9959   -d, --debug      don't remove temporary files
9960       --recheck    update $as_me by reconfiguring in the same conditions
9961       --file=FILE[:TEMPLATE]
9962                    instantiate the configuration file FILE
9963       --header=FILE[:TEMPLATE]
9964                    instantiate the configuration header FILE
9965
9966 Configuration files:
9967 $config_files
9968
9969 Configuration headers:
9970 $config_headers
9971
9972 Configuration commands:
9973 $config_commands
9974
9975 Report bugs to <jeanfi@gmail.com>.
9976 psensor home page: <http://wpitchoune.net/psensor>."
9977
9978 _ACEOF
9979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9980 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9981 ac_cs_version="\\
9982 psensor config.status 1.1.1
9983 configured by $0, generated by GNU Autoconf 2.69,
9984   with options \\"\$ac_cs_config\\"
9985
9986 Copyright (C) 2012 Free Software Foundation, Inc.
9987 This config.status script is free software; the Free Software Foundation
9988 gives unlimited permission to copy, distribute and modify it."
9989
9990 ac_pwd='$ac_pwd'
9991 srcdir='$srcdir'
9992 INSTALL='$INSTALL'
9993 MKDIR_P='$MKDIR_P'
9994 AWK='$AWK'
9995 test -n "\$AWK" || AWK=awk
9996 _ACEOF
9997
9998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9999 # The default lists apply if the user does not specify any file.
10000 ac_need_defaults=:
10001 while test $# != 0
10002 do
10003   case $1 in
10004   --*=?*)
10005     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10006     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10007     ac_shift=:
10008     ;;
10009   --*=)
10010     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10011     ac_optarg=
10012     ac_shift=:
10013     ;;
10014   *)
10015     ac_option=$1
10016     ac_optarg=$2
10017     ac_shift=shift
10018     ;;
10019   esac
10020
10021   case $ac_option in
10022   # Handling of the options.
10023   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10024     ac_cs_recheck=: ;;
10025   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10026     $as_echo "$ac_cs_version"; exit ;;
10027   --config | --confi | --conf | --con | --co | --c )
10028     $as_echo "$ac_cs_config"; exit ;;
10029   --debug | --debu | --deb | --de | --d | -d )
10030     debug=: ;;
10031   --file | --fil | --fi | --f )
10032     $ac_shift
10033     case $ac_optarg in
10034     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10035     '') as_fn_error $? "missing file argument" ;;
10036     esac
10037     as_fn_append CONFIG_FILES " '$ac_optarg'"
10038     ac_need_defaults=false;;
10039   --header | --heade | --head | --hea )
10040     $ac_shift
10041     case $ac_optarg in
10042     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10043     esac
10044     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10045     ac_need_defaults=false;;
10046   --he | --h)
10047     # Conflict between --help and --header
10048     as_fn_error $? "ambiguous option: \`$1'
10049 Try \`$0 --help' for more information.";;
10050   --help | --hel | -h )
10051     $as_echo "$ac_cs_usage"; exit ;;
10052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10053   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10054     ac_cs_silent=: ;;
10055
10056   # This is an error.
10057   -*) as_fn_error $? "unrecognized option: \`$1'
10058 Try \`$0 --help' for more information." ;;
10059
10060   *) as_fn_append ac_config_targets " $1"
10061      ac_need_defaults=false ;;
10062
10063   esac
10064   shift
10065 done
10066
10067 ac_configure_extra_args=
10068
10069 if $ac_cs_silent; then
10070   exec 6>/dev/null
10071   ac_configure_extra_args="$ac_configure_extra_args --silent"
10072 fi
10073
10074 _ACEOF
10075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10076 if \$ac_cs_recheck; then
10077   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10078   shift
10079   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10080   CONFIG_SHELL='$SHELL'
10081   export CONFIG_SHELL
10082   exec "\$@"
10083 fi
10084
10085 _ACEOF
10086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10087 exec 5>>config.log
10088 {
10089   echo
10090   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10091 ## Running $as_me. ##
10092 _ASBOX
10093   $as_echo "$ac_log"
10094 } >&5
10095
10096 _ACEOF
10097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10098 #
10099 # INIT-COMMANDS
10100 #
10101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10102 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10103     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10104     # from automake < 1.5.
10105     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10106     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10107     LINGUAS="${LINGUAS-%UNSET%}"
10108
10109
10110 _ACEOF
10111
10112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10113
10114 # Handling of arguments.
10115 for ac_config_target in $ac_config_targets
10116 do
10117   case $ac_config_target in
10118     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10119     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10120     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10121     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10122     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10123     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10124     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
10125     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10126     "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
10127     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
10128     "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
10129     "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
10130     "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
10131     "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
10132     "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
10133     "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
10134     "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
10135     "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
10136     "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
10137     "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
10138     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
10139     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10140     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10141
10142   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10143   esac
10144 done
10145
10146
10147 # If the user did not use the arguments to specify the items to instantiate,
10148 # then the envvar interface is used.  Set only those that are not.
10149 # We use the long form for the default assignment because of an extremely
10150 # bizarre bug on SunOS 4.1.3.
10151 if $ac_need_defaults; then
10152   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10153   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10154   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10155 fi
10156
10157 # Have a temporary directory for convenience.  Make it in the build tree
10158 # simply because there is no reason against having it here, and in addition,
10159 # creating and moving files from /tmp can sometimes cause problems.
10160 # Hook for its removal unless debugging.
10161 # Note that there is a small window in which the directory will not be cleaned:
10162 # after its creation but before its name has been assigned to `$tmp'.
10163 $debug ||
10164 {
10165   tmp= ac_tmp=
10166   trap 'exit_status=$?
10167   : "${ac_tmp:=$tmp}"
10168   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10169 ' 0
10170   trap 'as_fn_exit 1' 1 2 13 15
10171 }
10172 # Create a (secure) tmp directory for tmp files.
10173
10174 {
10175   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10176   test -d "$tmp"
10177 }  ||
10178 {
10179   tmp=./conf$$-$RANDOM
10180   (umask 077 && mkdir "$tmp")
10181 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10182 ac_tmp=$tmp
10183
10184 # Set up the scripts for CONFIG_FILES section.
10185 # No need to generate them if there are no CONFIG_FILES.
10186 # This happens for instance with `./config.status config.h'.
10187 if test -n "$CONFIG_FILES"; then
10188
10189
10190 ac_cr=`echo X | tr X '\015'`
10191 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10192 # But we know of no other shell where ac_cr would be empty at this
10193 # point, so we can use a bashism as a fallback.
10194 if test "x$ac_cr" = x; then
10195   eval ac_cr=\$\'\\r\'
10196 fi
10197 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10198 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10199   ac_cs_awk_cr='\\r'
10200 else
10201   ac_cs_awk_cr=$ac_cr
10202 fi
10203
10204 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10205 _ACEOF
10206
10207
10208 {
10209   echo "cat >conf$$subs.awk <<_ACEOF" &&
10210   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10211   echo "_ACEOF"
10212 } >conf$$subs.sh ||
10213   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10214 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10215 ac_delim='%!_!# '
10216 for ac_last_try in false false false false false :; do
10217   . ./conf$$subs.sh ||
10218     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10219
10220   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10221   if test $ac_delim_n = $ac_delim_num; then
10222     break
10223   elif $ac_last_try; then
10224     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10225   else
10226     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10227   fi
10228 done
10229 rm -f conf$$subs.sh
10230
10231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10232 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10233 _ACEOF
10234 sed -n '
10235 h
10236 s/^/S["/; s/!.*/"]=/
10237 p
10238 g
10239 s/^[^!]*!//
10240 :repl
10241 t repl
10242 s/'"$ac_delim"'$//
10243 t delim
10244 :nl
10245 h
10246 s/\(.\{148\}\)..*/\1/
10247 t more1
10248 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10249 p
10250 n
10251 b repl
10252 :more1
10253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10254 p
10255 g
10256 s/.\{148\}//
10257 t nl
10258 :delim
10259 h
10260 s/\(.\{148\}\)..*/\1/
10261 t more2
10262 s/["\\]/\\&/g; s/^/"/; s/$/"/
10263 p
10264 b
10265 :more2
10266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10267 p
10268 g
10269 s/.\{148\}//
10270 t delim
10271 ' <conf$$subs.awk | sed '
10272 /^[^""]/{
10273   N
10274   s/\n//
10275 }
10276 ' >>$CONFIG_STATUS || ac_write_fail=1
10277 rm -f conf$$subs.awk
10278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10279 _ACAWK
10280 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10281   for (key in S) S_is_set[key] = 1
10282   FS = "\a"
10283
10284 }
10285 {
10286   line = $ 0
10287   nfields = split(line, field, "@")
10288   substed = 0
10289   len = length(field[1])
10290   for (i = 2; i < nfields; i++) {
10291     key = field[i]
10292     keylen = length(key)
10293     if (S_is_set[key]) {
10294       value = S[key]
10295       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10296       len += length(value) + length(field[++i])
10297       substed = 1
10298     } else
10299       len += 1 + keylen
10300   }
10301
10302   print line
10303 }
10304
10305 _ACAWK
10306 _ACEOF
10307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10308 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10309   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10310 else
10311   cat
10312 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10313   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10314 _ACEOF
10315
10316 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10317 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10318 # trailing colons and then remove the whole line if VPATH becomes empty
10319 # (actually we leave an empty line to preserve line numbers).
10320 if test "x$srcdir" = x.; then
10321   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10322 h
10323 s///
10324 s/^/:/
10325 s/[      ]*$/:/
10326 s/:\$(srcdir):/:/g
10327 s/:\${srcdir}:/:/g
10328 s/:@srcdir@:/:/g
10329 s/^:*//
10330 s/:*$//
10331 x
10332 s/\(=[   ]*\).*/\1/
10333 G
10334 s/\n//
10335 s/^[^=]*=[       ]*$//
10336 }'
10337 fi
10338
10339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10340 fi # test -n "$CONFIG_FILES"
10341
10342 # Set up the scripts for CONFIG_HEADERS section.
10343 # No need to generate them if there are no CONFIG_HEADERS.
10344 # This happens for instance with `./config.status Makefile'.
10345 if test -n "$CONFIG_HEADERS"; then
10346 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10347 BEGIN {
10348 _ACEOF
10349
10350 # Transform confdefs.h into an awk script `defines.awk', embedded as
10351 # here-document in config.status, that substitutes the proper values into
10352 # config.h.in to produce config.h.
10353
10354 # Create a delimiter string that does not exist in confdefs.h, to ease
10355 # handling of long lines.
10356 ac_delim='%!_!# '
10357 for ac_last_try in false false :; do
10358   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10359   if test -z "$ac_tt"; then
10360     break
10361   elif $ac_last_try; then
10362     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10363   else
10364     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10365   fi
10366 done
10367
10368 # For the awk script, D is an array of macro values keyed by name,
10369 # likewise P contains macro parameters if any.  Preserve backslash
10370 # newline sequences.
10371
10372 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10373 sed -n '
10374 s/.\{148\}/&'"$ac_delim"'/g
10375 t rset
10376 :rset
10377 s/^[     ]*#[    ]*define[       ][      ]*/ /
10378 t def
10379 d
10380 :def
10381 s/\\$//
10382 t bsnl
10383 s/["\\]/\\&/g
10384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10385 D["\1"]=" \3"/p
10386 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10387 d
10388 :bsnl
10389 s/["\\]/\\&/g
10390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10391 D["\1"]=" \3\\\\\\n"\\/p
10392 t cont
10393 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10394 t cont
10395 d
10396 :cont
10397 n
10398 s/.\{148\}/&'"$ac_delim"'/g
10399 t clear
10400 :clear
10401 s/\\$//
10402 t bsnlc
10403 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10404 d
10405 :bsnlc
10406 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10407 b cont
10408 ' <confdefs.h | sed '
10409 s/'"$ac_delim"'/"\\\
10410 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10411
10412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10413   for (key in D) D_is_set[key] = 1
10414   FS = "\a"
10415 }
10416 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10417   line = \$ 0
10418   split(line, arg, " ")
10419   if (arg[1] == "#") {
10420     defundef = arg[2]
10421     mac1 = arg[3]
10422   } else {
10423     defundef = substr(arg[1], 2)
10424     mac1 = arg[2]
10425   }
10426   split(mac1, mac2, "(") #)
10427   macro = mac2[1]
10428   prefix = substr(line, 1, index(line, defundef) - 1)
10429   if (D_is_set[macro]) {
10430     # Preserve the white space surrounding the "#".
10431     print prefix "define", macro P[macro] D[macro]
10432     next
10433   } else {
10434     # Replace #undef with comments.  This is necessary, for example,
10435     # in the case of _POSIX_SOURCE, which is predefined and required
10436     # on some systems where configure will not decide to define it.
10437     if (defundef == "undef") {
10438       print "/*", prefix defundef, macro, "*/"
10439       next
10440     }
10441   }
10442 }
10443 { print }
10444 _ACAWK
10445 _ACEOF
10446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10447   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10448 fi # test -n "$CONFIG_HEADERS"
10449
10450
10451 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10452 shift
10453 for ac_tag
10454 do
10455   case $ac_tag in
10456   :[FHLC]) ac_mode=$ac_tag; continue;;
10457   esac
10458   case $ac_mode$ac_tag in
10459   :[FHL]*:*);;
10460   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10461   :[FH]-) ac_tag=-:-;;
10462   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10463   esac
10464   ac_save_IFS=$IFS
10465   IFS=:
10466   set x $ac_tag
10467   IFS=$ac_save_IFS
10468   shift
10469   ac_file=$1
10470   shift
10471
10472   case $ac_mode in
10473   :L) ac_source=$1;;
10474   :[FH])
10475     ac_file_inputs=
10476     for ac_f
10477     do
10478       case $ac_f in
10479       -) ac_f="$ac_tmp/stdin";;
10480       *) # Look for the file first in the build tree, then in the source tree
10481          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10482          # because $ac_f cannot contain `:'.
10483          test -f "$ac_f" ||
10484            case $ac_f in
10485            [\\/$]*) false;;
10486            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10487            esac ||
10488            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10489       esac
10490       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10491       as_fn_append ac_file_inputs " '$ac_f'"
10492     done
10493
10494     # Let's still pretend it is `configure' which instantiates (i.e., don't
10495     # use $as_me), people would be surprised to read:
10496     #    /* config.h.  Generated by config.status.  */
10497     configure_input='Generated from '`
10498           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10499         `' by configure.'
10500     if test x"$ac_file" != x-; then
10501       configure_input="$ac_file.  $configure_input"
10502       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10503 $as_echo "$as_me: creating $ac_file" >&6;}
10504     fi
10505     # Neutralize special characters interpreted by sed in replacement strings.
10506     case $configure_input in #(
10507     *\&* | *\|* | *\\* )
10508        ac_sed_conf_input=`$as_echo "$configure_input" |
10509        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10510     *) ac_sed_conf_input=$configure_input;;
10511     esac
10512
10513     case $ac_tag in
10514     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10515       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10516     esac
10517     ;;
10518   esac
10519
10520   ac_dir=`$as_dirname -- "$ac_file" ||
10521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10522          X"$ac_file" : 'X\(//\)[^/]' \| \
10523          X"$ac_file" : 'X\(//\)$' \| \
10524          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10525 $as_echo X"$ac_file" |
10526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10527             s//\1/
10528             q
10529           }
10530           /^X\(\/\/\)[^/].*/{
10531             s//\1/
10532             q
10533           }
10534           /^X\(\/\/\)$/{
10535             s//\1/
10536             q
10537           }
10538           /^X\(\/\).*/{
10539             s//\1/
10540             q
10541           }
10542           s/.*/./; q'`
10543   as_dir="$ac_dir"; as_fn_mkdir_p
10544   ac_builddir=.
10545
10546 case "$ac_dir" in
10547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10548 *)
10549   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10550   # A ".." for each directory in $ac_dir_suffix.
10551   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10552   case $ac_top_builddir_sub in
10553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10555   esac ;;
10556 esac
10557 ac_abs_top_builddir=$ac_pwd
10558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10559 # for backward compatibility:
10560 ac_top_builddir=$ac_top_build_prefix
10561
10562 case $srcdir in
10563   .)  # We are building in place.
10564     ac_srcdir=.
10565     ac_top_srcdir=$ac_top_builddir_sub
10566     ac_abs_top_srcdir=$ac_pwd ;;
10567   [\\/]* | ?:[\\/]* )  # Absolute name.
10568     ac_srcdir=$srcdir$ac_dir_suffix;
10569     ac_top_srcdir=$srcdir
10570     ac_abs_top_srcdir=$srcdir ;;
10571   *) # Relative name.
10572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10573     ac_top_srcdir=$ac_top_build_prefix$srcdir
10574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10575 esac
10576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10577
10578
10579   case $ac_mode in
10580   :F)
10581   #
10582   # CONFIG_FILE
10583   #
10584
10585   case $INSTALL in
10586   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10587   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10588   esac
10589   ac_MKDIR_P=$MKDIR_P
10590   case $MKDIR_P in
10591   [\\/$]* | ?:[\\/]* ) ;;
10592   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10593   esac
10594 _ACEOF
10595
10596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10597 # If the template does not know about datarootdir, expand it.
10598 # FIXME: This hack should be removed a few years after 2.60.
10599 ac_datarootdir_hack=; ac_datarootdir_seen=
10600 ac_sed_dataroot='
10601 /datarootdir/ {
10602   p
10603   q
10604 }
10605 /@datadir@/p
10606 /@docdir@/p
10607 /@infodir@/p
10608 /@localedir@/p
10609 /@mandir@/p'
10610 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10611 *datarootdir*) ac_datarootdir_seen=yes;;
10612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10614 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10615 _ACEOF
10616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10617   ac_datarootdir_hack='
10618   s&@datadir@&$datadir&g
10619   s&@docdir@&$docdir&g
10620   s&@infodir@&$infodir&g
10621   s&@localedir@&$localedir&g
10622   s&@mandir@&$mandir&g
10623   s&\\\${datarootdir}&$datarootdir&g' ;;
10624 esac
10625 _ACEOF
10626
10627 # Neutralize VPATH when `$srcdir' = `.'.
10628 # Shell code in configure.ac might set extrasub.
10629 # FIXME: do we really want to maintain this feature?
10630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10631 ac_sed_extra="$ac_vpsub
10632 $extrasub
10633 _ACEOF
10634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10635 :t
10636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10637 s|@configure_input@|$ac_sed_conf_input|;t t
10638 s&@top_builddir@&$ac_top_builddir_sub&;t t
10639 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10640 s&@srcdir@&$ac_srcdir&;t t
10641 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10642 s&@top_srcdir@&$ac_top_srcdir&;t t
10643 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10644 s&@builddir@&$ac_builddir&;t t
10645 s&@abs_builddir@&$ac_abs_builddir&;t t
10646 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10647 s&@INSTALL@&$ac_INSTALL&;t t
10648 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10649 $ac_datarootdir_hack
10650 "
10651 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10652   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10653
10654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10655   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10656   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10657       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10659 which seems to be undefined.  Please make sure it is defined" >&5
10660 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10661 which seems to be undefined.  Please make sure it is defined" >&2;}
10662
10663   rm -f "$ac_tmp/stdin"
10664   case $ac_file in
10665   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10666   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10667   esac \
10668   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10669  ;;
10670   :H)
10671   #
10672   # CONFIG_HEADER
10673   #
10674   if test x"$ac_file" != x-; then
10675     {
10676       $as_echo "/* $configure_input  */" \
10677       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10678     } >"$ac_tmp/config.h" \
10679       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10680     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10681       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10682 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10683     else
10684       rm -f "$ac_file"
10685       mv "$ac_tmp/config.h" "$ac_file" \
10686         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10687     fi
10688   else
10689     $as_echo "/* $configure_input  */" \
10690       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10691       || as_fn_error $? "could not create -" "$LINENO" 5
10692   fi
10693 # Compute "$ac_file"'s index in $config_headers.
10694 _am_arg="$ac_file"
10695 _am_stamp_count=1
10696 for _am_header in $config_headers :; do
10697   case $_am_header in
10698     $_am_arg | $_am_arg:* )
10699       break ;;
10700     * )
10701       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10702   esac
10703 done
10704 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10705 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10706          X"$_am_arg" : 'X\(//\)[^/]' \| \
10707          X"$_am_arg" : 'X\(//\)$' \| \
10708          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10709 $as_echo X"$_am_arg" |
10710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10711             s//\1/
10712             q
10713           }
10714           /^X\(\/\/\)[^/].*/{
10715             s//\1/
10716             q
10717           }
10718           /^X\(\/\/\)$/{
10719             s//\1/
10720             q
10721           }
10722           /^X\(\/\).*/{
10723             s//\1/
10724             q
10725           }
10726           s/.*/./; q'`/stamp-h$_am_stamp_count
10727  ;;
10728
10729   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10730 $as_echo "$as_me: executing $ac_file commands" >&6;}
10731  ;;
10732   esac
10733
10734
10735   case $ac_file$ac_mode in
10736     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10737   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10738   # are listed without --file.  Let's play safe and only enable the eval
10739   # if we detect the quoting.
10740   case $CONFIG_FILES in
10741   *\'*) eval set x "$CONFIG_FILES" ;;
10742   *)   set x $CONFIG_FILES ;;
10743   esac
10744   shift
10745   for mf
10746   do
10747     # Strip MF so we end up with the name of the file.
10748     mf=`echo "$mf" | sed -e 's/:.*$//'`
10749     # Check whether this is an Automake generated Makefile or not.
10750     # We used to match only the files named `Makefile.in', but
10751     # some people rename them; so instead we look at the file content.
10752     # Grep'ing the first line is not enough: some people post-process
10753     # each Makefile.in and add a new line on top of each file to say so.
10754     # Grep'ing the whole file is not good either: AIX grep has a line
10755     # limit of 2048, but all sed's we know have understand at least 4000.
10756     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10757       dirpart=`$as_dirname -- "$mf" ||
10758 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10759          X"$mf" : 'X\(//\)[^/]' \| \
10760          X"$mf" : 'X\(//\)$' \| \
10761          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10762 $as_echo X"$mf" |
10763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10764             s//\1/
10765             q
10766           }
10767           /^X\(\/\/\)[^/].*/{
10768             s//\1/
10769             q
10770           }
10771           /^X\(\/\/\)$/{
10772             s//\1/
10773             q
10774           }
10775           /^X\(\/\).*/{
10776             s//\1/
10777             q
10778           }
10779           s/.*/./; q'`
10780     else
10781       continue
10782     fi
10783     # Extract the definition of DEPDIR, am__include, and am__quote
10784     # from the Makefile without running `make'.
10785     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10786     test -z "$DEPDIR" && continue
10787     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10788     test -z "am__include" && continue
10789     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10790     # When using ansi2knr, U may be empty or an underscore; expand it
10791     U=`sed -n 's/^U = //p' < "$mf"`
10792     # Find all dependency output files, they are included files with
10793     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10794     # simplest approach to changing $(DEPDIR) to its actual value in the
10795     # expansion.
10796     for file in `sed -n "
10797       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10798          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10799       # Make sure the directory exists.
10800       test -f "$dirpart/$file" && continue
10801       fdir=`$as_dirname -- "$file" ||
10802 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10803          X"$file" : 'X\(//\)[^/]' \| \
10804          X"$file" : 'X\(//\)$' \| \
10805          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10806 $as_echo X"$file" |
10807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10808             s//\1/
10809             q
10810           }
10811           /^X\(\/\/\)[^/].*/{
10812             s//\1/
10813             q
10814           }
10815           /^X\(\/\/\)$/{
10816             s//\1/
10817             q
10818           }
10819           /^X\(\/\).*/{
10820             s//\1/
10821             q
10822           }
10823           s/.*/./; q'`
10824       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10825       # echo "creating $dirpart/$file"
10826       echo '# dummy' > "$dirpart/$file"
10827     done
10828   done
10829 }
10830  ;;
10831     "po-directories":C)
10832     for ac_file in $CONFIG_FILES; do
10833       # Support "outfile[:infile[:infile...]]"
10834       case "$ac_file" in
10835         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10836       esac
10837       # PO directories have a Makefile.in generated from Makefile.in.in.
10838       case "$ac_file" in */Makefile.in)
10839         # Adjust a relative srcdir.
10840         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10841         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10842         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10843         # In autoconf-2.13 it is called $ac_given_srcdir.
10844         # In autoconf-2.50 it is called $srcdir.
10845         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10846         case "$ac_given_srcdir" in
10847           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10848           /*) top_srcdir="$ac_given_srcdir" ;;
10849           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10850         esac
10851         # Treat a directory as a PO directory if and only if it has a
10852         # POTFILES.in file. This allows packages to have multiple PO
10853         # directories under different names or in different locations.
10854         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10855           rm -f "$ac_dir/POTFILES"
10856           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10857           gt_tab=`printf '\t'`
10858           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10859           POMAKEFILEDEPS="POTFILES.in"
10860           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10861           # on $ac_dir but don't depend on user-specified configuration
10862           # parameters.
10863           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10864             # The LINGUAS file contains the set of available languages.
10865             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10866               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10867             fi
10868             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10869             # Hide the ALL_LINGUAS assignment from automake < 1.5.
10870             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10871             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10872           else
10873             # The set of available languages was given in configure.in.
10874             # Hide the ALL_LINGUAS assignment from automake < 1.5.
10875             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10876           fi
10877           # Compute POFILES
10878           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10879           # Compute UPDATEPOFILES
10880           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10881           # Compute DUMMYPOFILES
10882           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10883           # Compute GMOFILES
10884           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10885           case "$ac_given_srcdir" in
10886             .) srcdirpre= ;;
10887             *) srcdirpre='$(srcdir)/' ;;
10888           esac
10889           POFILES=
10890           UPDATEPOFILES=
10891           DUMMYPOFILES=
10892           GMOFILES=
10893           for lang in $ALL_LINGUAS; do
10894             POFILES="$POFILES $srcdirpre$lang.po"
10895             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10896             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10897             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10898           done
10899           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10900           # environment variable.
10901           INST_LINGUAS=
10902           if test -n "$ALL_LINGUAS"; then
10903             for presentlang in $ALL_LINGUAS; do
10904               useit=no
10905               if test "%UNSET%" != "$LINGUAS"; then
10906                 desiredlanguages="$LINGUAS"
10907               else
10908                 desiredlanguages="$ALL_LINGUAS"
10909               fi
10910               for desiredlang in $desiredlanguages; do
10911                 # Use the presentlang catalog if desiredlang is
10912                 #   a. equal to presentlang, or
10913                 #   b. a variant of presentlang (because in this case,
10914                 #      presentlang can be used as a fallback for messages
10915                 #      which are not translated in the desiredlang catalog).
10916                 case "$desiredlang" in
10917                   "$presentlang"*) useit=yes;;
10918                 esac
10919               done
10920               if test $useit = yes; then
10921                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10922               fi
10923             done
10924           fi
10925           CATALOGS=
10926           if test -n "$INST_LINGUAS"; then
10927             for lang in $INST_LINGUAS; do
10928               CATALOGS="$CATALOGS $lang.gmo"
10929             done
10930           fi
10931           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10932           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"
10933           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10934             if test -f "$f"; then
10935               case "$f" in
10936                 *.orig | *.bak | *~) ;;
10937                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10938               esac
10939             fi
10940           done
10941         fi
10942         ;;
10943       esac
10944     done ;;
10945
10946   esac
10947 done # for ac_tag
10948
10949
10950 as_fn_exit 0
10951 _ACEOF
10952 ac_clean_files=$ac_clean_files_save
10953
10954 test $ac_write_fail = 0 ||
10955   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10956
10957
10958 # configure is writing to config.log, and then calls config.status.
10959 # config.status does its own redirection, appending to config.log.
10960 # Unfortunately, on DOS this fails, as config.log is still kept open
10961 # by configure, so config.status won't be able to write to it; its
10962 # output is simply discarded.  So we exec the FD to /dev/null,
10963 # effectively closing config.log, so it can be properly (re)opened and
10964 # appended to by config.status.  When coming back to configure, we
10965 # need to make the FD available again.
10966 if test "$no_create" != yes; then
10967   ac_cs_success=:
10968   ac_config_status_args=
10969   test "$silent" = yes &&
10970     ac_config_status_args="$ac_config_status_args --quiet"
10971   exec 5>/dev/null
10972   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10973   exec 5>>config.log
10974   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10975   # would make configure fail if this is the last instruction.
10976   $ac_cs_success || as_fn_exit 1
10977 fi
10978 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10980 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10981 fi
10982