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