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