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