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