]> granicus.if.org Git - sysstat/blob - configure
Merge branch 'acdimalev-json-parse-test' of https://github.com/acdimalev/sysstat...
[sysstat] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sysstat 12.1.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='sysstat'
579 PACKAGE_TARNAME='sysstat'
580 PACKAGE_VERSION='12.1.2'
581 PACKAGE_STRING='sysstat 12.1.2'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="ioconf.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 STRIP
625 DFLAGS
626 WITH_DEBUG
627 INSTALL_DOC
628 COLLECT_ALL
629 REM_CHOWN
630 QUOTE
631 CRON_COUNT
632 CRON_INTERVAL_SEC
633 CRON_INTERVAL
634 SU_C_OWNER
635 CRON_OWNER
636 COPY_ONLY
637 SADC_OPT
638 sadc_options
639 cron_interval
640 cron_owner
641 INSTALL_CRON
642 CLEAN_SA_DIR
643 COMPRESS_MANPG
644 IGNORE_FILE_ATTRIBUTES
645 MAN_GROUP
646 man_group
647 COMPRESSAFTER
648 compressafter
649 HISTORY
650 history
651 NLS
652 SYSCONFIG_DIR
653 conf_dir
654 SA_DIR
655 sa_dir
656 SA_LIB_DIR
657 sa_lib_dir
658 SYSPARAM
659 SYSMACROS
660 INITD_DIR
661 INIT_DIR
662 RC_DIR
663 rcdir
664 DFSENSORS
665 LFSENSORS
666 HAVE_SENSORS
667 SYSTEMD_UNIT_DIR
668 SYSTEMCTL
669 PKG_CONFIG
670 PATH_CHKCONFIG
671 PATH_CP
672 INSTALL_BIN
673 INSTALL_DATA
674 ZIP
675 MSGMERGE
676 XGETTEXT
677 MSGFMT
678 INSTALL
679 AR
680 CHOWN
681 CHMOD
682 LN_S
683 EGREP
684 GREP
685 CPP
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 with_systemdsystemunitdir
735 enable_sensors
736 enable_largefile
737 enable_nls
738 enable_file_attr
739 enable_compress_manpg
740 enable_clean_sa_dir
741 enable_install_cron
742 enable_collect_all
743 enable_copy_only
744 enable_documentation
745 enable_debuginfo
746 enable_stripping
747 '
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 rcdir
758 sa_lib_dir
759 sa_dir
760 conf_dir
761 history
762 compressafter
763 man_group
764 cron_owner
765 cron_interval
766 sadc_options'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
790
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
816
817 ac_prev=
818 ac_dashdash=
819 for ac_option
820 do
821   # If the previous option needs an argument, assign it.
822   if test -n "$ac_prev"; then
823     eval $ac_prev=\$ac_option
824     ac_prev=
825     continue
826   fi
827
828   case $ac_option in
829   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830   *=)   ac_optarg= ;;
831   *)    ac_optarg=yes ;;
832   esac
833
834   # Accept the important Cygnus configure options, so we can diagnose typos.
835
836   case $ac_dashdash$ac_option in
837   --)
838     ac_dashdash=yes ;;
839
840   -bindir | --bindir | --bindi | --bind | --bin | --bi)
841     ac_prev=bindir ;;
842   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843     bindir=$ac_optarg ;;
844
845   -build | --build | --buil | --bui | --bu)
846     ac_prev=build_alias ;;
847   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848     build_alias=$ac_optarg ;;
849
850   -cache-file | --cache-file | --cache-fil | --cache-fi \
851   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852     ac_prev=cache_file ;;
853   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855     cache_file=$ac_optarg ;;
856
857   --config-cache | -C)
858     cache_file=config.cache ;;
859
860   -datadir | --datadir | --datadi | --datad)
861     ac_prev=datadir ;;
862   -datadir=* | --datadir=* | --datadi=* | --datad=*)
863     datadir=$ac_optarg ;;
864
865   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866   | --dataroo | --dataro | --datar)
867     ac_prev=datarootdir ;;
868   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870     datarootdir=$ac_optarg ;;
871
872   -disable-* | --disable-*)
873     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874     # Reject names that are not valid shell variable names.
875     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876       as_fn_error $? "invalid feature name: $ac_useropt"
877     ac_useropt_orig=$ac_useropt
878     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879     case $ac_user_opts in
880       *"
881 "enable_$ac_useropt"
882 "*) ;;
883       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884          ac_unrecognized_sep=', ';;
885     esac
886     eval enable_$ac_useropt=no ;;
887
888   -docdir | --docdir | --docdi | --doc | --do)
889     ac_prev=docdir ;;
890   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891     docdir=$ac_optarg ;;
892
893   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894     ac_prev=dvidir ;;
895   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896     dvidir=$ac_optarg ;;
897
898   -enable-* | --enable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=\$ac_optarg ;;
913
914   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916   | --exec | --exe | --ex)
917     ac_prev=exec_prefix ;;
918   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920   | --exec=* | --exe=* | --ex=*)
921     exec_prefix=$ac_optarg ;;
922
923   -gas | --gas | --ga | --g)
924     # Obsolete; use --with-gas.
925     with_gas=yes ;;
926
927   -help | --help | --hel | --he | -h)
928     ac_init_help=long ;;
929   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930     ac_init_help=recursive ;;
931   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932     ac_init_help=short ;;
933
934   -host | --host | --hos | --ho)
935     ac_prev=host_alias ;;
936   -host=* | --host=* | --hos=* | --ho=*)
937     host_alias=$ac_optarg ;;
938
939   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940     ac_prev=htmldir ;;
941   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942   | --ht=*)
943     htmldir=$ac_optarg ;;
944
945   -includedir | --includedir | --includedi | --included | --include \
946   | --includ | --inclu | --incl | --inc)
947     ac_prev=includedir ;;
948   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949   | --includ=* | --inclu=* | --incl=* | --inc=*)
950     includedir=$ac_optarg ;;
951
952   -infodir | --infodir | --infodi | --infod | --info | --inf)
953     ac_prev=infodir ;;
954   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955     infodir=$ac_optarg ;;
956
957   -libdir | --libdir | --libdi | --libd)
958     ac_prev=libdir ;;
959   -libdir=* | --libdir=* | --libdi=* | --libd=*)
960     libdir=$ac_optarg ;;
961
962   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963   | --libexe | --libex | --libe)
964     ac_prev=libexecdir ;;
965   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966   | --libexe=* | --libex=* | --libe=*)
967     libexecdir=$ac_optarg ;;
968
969   -localedir | --localedir | --localedi | --localed | --locale)
970     ac_prev=localedir ;;
971   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972     localedir=$ac_optarg ;;
973
974   -localstatedir | --localstatedir | --localstatedi | --localstated \
975   | --localstate | --localstat | --localsta | --localst | --locals)
976     ac_prev=localstatedir ;;
977   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979     localstatedir=$ac_optarg ;;
980
981   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982     ac_prev=mandir ;;
983   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984     mandir=$ac_optarg ;;
985
986   -nfp | --nfp | --nf)
987     # Obsolete; use --without-fp.
988     with_fp=no ;;
989
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n)
992     no_create=yes ;;
993
994   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996     no_recursion=yes ;;
997
998   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000   | --oldin | --oldi | --old | --ol | --o)
1001     ac_prev=oldincludedir ;;
1002   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005     oldincludedir=$ac_optarg ;;
1006
1007   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008     ac_prev=prefix ;;
1009   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010     prefix=$ac_optarg ;;
1011
1012   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013   | --program-pre | --program-pr | --program-p)
1014     ac_prev=program_prefix ;;
1015   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017     program_prefix=$ac_optarg ;;
1018
1019   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020   | --program-suf | --program-su | --program-s)
1021     ac_prev=program_suffix ;;
1022   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024     program_suffix=$ac_optarg ;;
1025
1026   -program-transform-name | --program-transform-name \
1027   | --program-transform-nam | --program-transform-na \
1028   | --program-transform-n | --program-transform- \
1029   | --program-transform | --program-transfor \
1030   | --program-transfo | --program-transf \
1031   | --program-trans | --program-tran \
1032   | --progr-tra | --program-tr | --program-t)
1033     ac_prev=program_transform_name ;;
1034   -program-transform-name=* | --program-transform-name=* \
1035   | --program-transform-nam=* | --program-transform-na=* \
1036   | --program-transform-n=* | --program-transform-=* \
1037   | --program-transform=* | --program-transfor=* \
1038   | --program-transfo=* | --program-transf=* \
1039   | --program-trans=* | --program-tran=* \
1040   | --progr-tra=* | --program-tr=* | --program-t=*)
1041     program_transform_name=$ac_optarg ;;
1042
1043   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044     ac_prev=pdfdir ;;
1045   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046     pdfdir=$ac_optarg ;;
1047
1048   -psdir | --psdir | --psdi | --psd | --ps)
1049     ac_prev=psdir ;;
1050   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051     psdir=$ac_optarg ;;
1052
1053   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054   | -silent | --silent | --silen | --sile | --sil)
1055     silent=yes ;;
1056
1057   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058     ac_prev=sbindir ;;
1059   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060   | --sbi=* | --sb=*)
1061     sbindir=$ac_optarg ;;
1062
1063   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065   | --sharedst | --shareds | --shared | --share | --shar \
1066   | --sha | --sh)
1067     ac_prev=sharedstatedir ;;
1068   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071   | --sha=* | --sh=*)
1072     sharedstatedir=$ac_optarg ;;
1073
1074   -site | --site | --sit)
1075     ac_prev=site ;;
1076   -site=* | --site=* | --sit=*)
1077     site=$ac_optarg ;;
1078
1079   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080     ac_prev=srcdir ;;
1081   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082     srcdir=$ac_optarg ;;
1083
1084   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085   | --syscon | --sysco | --sysc | --sys | --sy)
1086     ac_prev=sysconfdir ;;
1087   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089     sysconfdir=$ac_optarg ;;
1090
1091   -target | --target | --targe | --targ | --tar | --ta | --t)
1092     ac_prev=target_alias ;;
1093   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094     target_alias=$ac_optarg ;;
1095
1096   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097     verbose=yes ;;
1098
1099   -version | --version | --versio | --versi | --vers | -V)
1100     ac_init_version=: ;;
1101
1102   -with-* | --with-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error $? "invalid package name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=\$ac_optarg ;;
1117
1118   -without-* | --without-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error $? "invalid package name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval with_$ac_useropt=no ;;
1133
1134   --x)
1135     # Obsolete; use --with-x.
1136     with_x=yes ;;
1137
1138   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139   | --x-incl | --x-inc | --x-in | --x-i)
1140     ac_prev=x_includes ;;
1141   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143     x_includes=$ac_optarg ;;
1144
1145   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147     ac_prev=x_libraries ;;
1148   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150     x_libraries=$ac_optarg ;;
1151
1152   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1154     ;;
1155
1156   *=*)
1157     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158     # Reject names that are not valid shell variable names.
1159     case $ac_envvar in #(
1160       '' | [0-9]* | *[!_$as_cr_alnum]* )
1161       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1162     esac
1163     eval $ac_envvar=\$ac_optarg
1164     export $ac_envvar ;;
1165
1166   *)
1167     # FIXME: should be removed in autoconf 3.0.
1168     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172     ;;
1173
1174   esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179   as_fn_error $? "missing argument to $ac_option"
1180 fi
1181
1182 if test -n "$ac_unrecognized_opts"; then
1183   case $enable_option_checking in
1184     no) ;;
1185     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187   esac
1188 fi
1189
1190 # Check all directory arguments for consistency.
1191 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192                 datadir sysconfdir sharedstatedir localstatedir includedir \
1193                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194                 libdir localedir mandir
1195 do
1196   eval ac_val=\$$ac_var
1197   # Remove trailing slashes.
1198   case $ac_val in
1199     */ )
1200       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201       eval $ac_var=\$ac_val;;
1202   esac
1203   # Be sure to have absolute directory names.
1204   case $ac_val in
1205     [\\/$]* | ?:[\\/]* )  continue;;
1206     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207   esac
1208   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220   if test "x$build_alias" = x; then
1221     cross_compiling=maybe
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238   as_fn_error $? "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243   ac_srcdir_defaulted=yes
1244   # Try the directory containing this script, then the parent directory.
1245   ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247          X"$as_myself" : 'X\(//\)[^/]' \| \
1248          X"$as_myself" : 'X\(//\)$' \| \
1249          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)[^/].*/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\).*/{
1264             s//\1/
1265             q
1266           }
1267           s/.*/./; q'`
1268   srcdir=$ac_confdir
1269   if test ! -r "$srcdir/$ac_unique_file"; then
1270     srcdir=..
1271   fi
1272 else
1273   ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282         pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285   srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_env_${ac_var}_value=\$${ac_var}
1296   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304   # Omit some internal or obsolete options to make the list less imposing.
1305   # This message is too long to be a string in the A/UX 3.1 sh.
1306   cat <<_ACEOF
1307 \`configure' configures sysstat 12.1.2 to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317   -h, --help              display this help and exit
1318       --help=short        display options specific to this package
1319       --help=recursive    display the short help of all the included packages
1320   -V, --version           display version information and exit
1321   -q, --quiet, --silent   do not print \`checking ...' messages
1322       --cache-file=FILE   cache test results in FILE [disabled]
1323   -C, --config-cache      alias for \`--cache-file=config.cache'
1324   -n, --no-create         do not create output files
1325       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328   --prefix=PREFIX         install architecture-independent files in PREFIX
1329                           [$ac_default_prefix]
1330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                           [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341   --bindir=DIR            user executables [EPREFIX/bin]
1342   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343   --libexecdir=DIR        program executables [EPREFIX/libexec]
1344   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347   --libdir=DIR            object code libraries [EPREFIX/lib]
1348   --includedir=DIR        C header files [PREFIX/include]
1349   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352   --infodir=DIR           info documentation [DATAROOTDIR/info]
1353   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354   --mandir=DIR            man documentation [DATAROOTDIR/man]
1355   --docdir=DIR            documentation root [DATAROOTDIR/doc/sysstat]
1356   --htmldir=DIR           html documentation [DOCDIR]
1357   --dvidir=DIR            dvi documentation [DOCDIR]
1358   --pdfdir=DIR            pdf documentation [DOCDIR]
1359   --psdir=DIR             ps documentation [DOCDIR]
1360 _ACEOF
1361
1362   cat <<\_ACEOF
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367   case $ac_init_help in
1368      short | recursive ) echo "Configuration of sysstat 12.1.2:";;
1369    esac
1370   cat <<\_ACEOF
1371
1372 Optional Features:
1373   --disable-option-checking  ignore unrecognized --enable/--with options
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --disable-sensors       disable sensors support
1377   --disable-largefile     omit support for large files
1378   --disable-nls           disable National Language Support
1379   --disable-file-attr     do not set attributes on files being installed
1380   --enable-compress-manpg compress sysstat manual pages
1381   --enable-clean-sa-dir   clean system activity directory
1382   --enable-install-cron   install a crontab to start sar
1383   --enable-collect-all    collect all possible activities
1384   --enable-copy-only      only copy files when installing
1385   --disable-documentation do not install documentation
1386   --enable-debuginfo      enable debug output (--debuginfo option)
1387   --disable-stripping     do not strip object files
1388
1389 Optional Packages:
1390   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392   --with-systemdsystemunitdir=DIR
1393                           Directory for systemd service files
1394
1395 Some influential environment variables:
1396   CC          C compiler command
1397   CFLAGS      C compiler flags
1398   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1399               nonstandard directory <lib dir>
1400   LIBS        libraries to pass to the linker, e.g. -l<library>
1401   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1402               you have headers in a nonstandard directory <include dir>
1403   CPP         C preprocessor
1404   rcdir       run-commands directory
1405   sa_lib_dir  sadc directory
1406   sa_dir      system activity directory
1407   conf_dir    sysstat configuration directory
1408   history     number of daily data files to keep (default value is 7)
1409   compressafter
1410               number of days after which data files are compressed (default
1411               value is 10)
1412   man_group   group for manual pages
1413   cron_owner  crontab owner
1414   cron_interval
1415               crontab interval
1416   sadc_options
1417               options to be passed to sadc
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428   # If there are subdirs, report their specific --help.
1429   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430     test -d "$ac_dir" ||
1431       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432       continue
1433     ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439   # A ".." for each directory in $ac_dir_suffix.
1440   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441   case $ac_top_builddir_sub in
1442   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444   esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452   .)  # We are building in place.
1453     ac_srcdir=.
1454     ac_top_srcdir=$ac_top_builddir_sub
1455     ac_abs_top_srcdir=$ac_pwd ;;
1456   [\\/]* | ?:[\\/]* )  # Absolute name.
1457     ac_srcdir=$srcdir$ac_dir_suffix;
1458     ac_top_srcdir=$srcdir
1459     ac_abs_top_srcdir=$srcdir ;;
1460   *) # Relative name.
1461     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462     ac_top_srcdir=$ac_top_build_prefix$srcdir
1463     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467     cd "$ac_dir" || { ac_status=$?; continue; }
1468     # Check for guested configure.
1469     if test -f "$ac_srcdir/configure.gnu"; then
1470       echo &&
1471       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472     elif test -f "$ac_srcdir/configure"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure" --help=recursive
1475     else
1476       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477     fi || ac_status=$?
1478     cd "$ac_pwd" || { ac_status=$?; break; }
1479   done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484   cat <<\_ACEOF
1485 sysstat configure 12.1.2
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492   exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505   rm -f conftest.$ac_objext
1506   if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509   *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513   (eval "$ac_compile") 2>conftest.err
1514   ac_status=$?
1515   if test -s conftest.err; then
1516     grep -v '^ *+' conftest.err >conftest.er1
1517     cat conftest.er1 >&5
1518     mv -f conftest.er1 conftest.err
1519   fi
1520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521   test $ac_status = 0; } && {
1522          test -z "$ac_c_werror_flag" ||
1523          test ! -s conftest.err
1524        } && test -s conftest.$ac_objext; then :
1525   ac_retval=0
1526 else
1527   $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530         ac_retval=1
1531 fi
1532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533   as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_cpp ()
1541 {
1542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543   if { { ac_try="$ac_cpp conftest.$ac_ext"
1544 case "(($ac_try" in
1545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546   *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551   ac_status=$?
1552   if test -s conftest.err; then
1553     grep -v '^ *+' conftest.err >conftest.er1
1554     cat conftest.er1 >&5
1555     mv -f conftest.er1 conftest.err
1556   fi
1557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558   test $ac_status = 0; } > conftest.i && {
1559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560          test ! -s conftest.err
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567     ac_retval=1
1568 fi
1569   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570   as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_cpp
1573
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1578 # accordingly.
1579 ac_fn_c_check_header_mongrel ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   if eval \${$3+:} false; then :
1583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586   $as_echo_n "(cached) " >&6
1587 fi
1588 eval ac_res=\$$3
1589                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 else
1592   # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h.  */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601   ac_header_compiler=yes
1602 else
1603   ac_header_compiler=no
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1608
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h.  */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617   ac_header_preproc=yes
1618 else
1619   ac_header_preproc=no
1620 fi
1621 rm -f conftest.err conftest.i conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1624
1625 # So?  What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627   yes:no: )
1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632     ;;
1633   no:yes:* )
1634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644     ;;
1645 esac
1646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649   $as_echo_n "(cached) " >&6
1650 else
1651   eval "$3=\$ac_header_compiler"
1652 fi
1653 eval ac_res=\$$3
1654                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659 } # ac_fn_c_check_header_mongrel
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>&5
1676   ac_status=$?
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679   { { case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_try") 2>&5
1686   ac_status=$?
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; }; }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: program exited with status $ac_status" >&5
1692        $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695        ac_retval=$ac_status
1696 fi
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_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721   eval "$3=yes"
1722 else
1723   eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   rm -f conftest.$ac_objext conftest$ac_exeext
1741   if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744   *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748   (eval "$ac_link") 2>conftest.err
1749   ac_status=$?
1750   if test -s conftest.err; then
1751     grep -v '^ *+' conftest.err >conftest.er1
1752     cat conftest.er1 >&5
1753     mv -f conftest.er1 conftest.err
1754   fi
1755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756   test $ac_status = 0; } && {
1757          test -z "$ac_c_werror_flag" ||
1758          test ! -s conftest.err
1759        } && test -s conftest$ac_exeext && {
1760          test "$cross_compiling" = yes ||
1761          test -x conftest$ac_exeext
1762        }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768         ac_retval=1
1769 fi
1770   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772   # interfere with the next link command; also delete a directory that is
1773   # left behind by Apple's compiler.  We do this before executing the actions.
1774   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776   as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_link
1779
1780 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1781 # -------------------------------------------
1782 # Tests whether TYPE exists after having included INCLUDES, setting cache
1783 # variable VAR accordingly.
1784 ac_fn_c_check_type ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790   $as_echo_n "(cached) " >&6
1791 else
1792   eval "$3=no"
1793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 $4
1796 int
1797 main ()
1798 {
1799 if (sizeof ($2))
1800          return 0;
1801   ;
1802   return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 int
1810 main ()
1811 {
1812 if (sizeof (($2)))
1813             return 0;
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819
1820 else
1821   eval "$3=yes"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_type
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849 #define $2 innocuous_$2
1850
1851 /* System header to define __stub macros and hopefully few prototypes,
1852     which can conflict with char $2 (); below.
1853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854     <limits.h> exists even on freestanding compilers.  */
1855
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1861
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865    Use char because int might match the return type of a GCC
1866    builtin and then its argument prototype would still apply.  */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872     to always fail with ENOSYS.  Some functions are actually named
1873     something starting with __ and the normal name is an alias.  */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main ()
1880 {
1881 return $2 ();
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887   eval "$3=yes"
1888 else
1889   eval "$3=no"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext \
1892     conftest$ac_exeext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900 cat >config.log <<_ACEOF
1901 This file contains any messages produced by compilers while
1902 running configure, to aid debugging if configure makes a mistake.
1903
1904 It was created by sysstat $as_me 12.1.2, which was
1905 generated by GNU Autoconf 2.69.  Invocation command line was
1906
1907   $ $0 $@
1908
1909 _ACEOF
1910 exec 5>>config.log
1911 {
1912 cat <<_ASUNAME
1913 ## --------- ##
1914 ## Platform. ##
1915 ## --------- ##
1916
1917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922
1923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1924 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1925
1926 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1927 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1929 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1930 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1931 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1932 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1933
1934 _ASUNAME
1935
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939   IFS=$as_save_IFS
1940   test -z "$as_dir" && as_dir=.
1941     $as_echo "PATH: $as_dir"
1942   done
1943 IFS=$as_save_IFS
1944
1945 } >&5
1946
1947 cat >&5 <<_ACEOF
1948
1949
1950 ## ----------- ##
1951 ## Core tests. ##
1952 ## ----------- ##
1953
1954 _ACEOF
1955
1956
1957 # Keep a trace of the command line.
1958 # Strip out --no-create and --no-recursion so they do not pile up.
1959 # Strip out --silent because we don't want to record it for future runs.
1960 # Also quote any args containing shell meta-characters.
1961 # Make two passes to allow for proper duplicate-argument suppression.
1962 ac_configure_args=
1963 ac_configure_args0=
1964 ac_configure_args1=
1965 ac_must_keep_next=false
1966 for ac_pass in 1 2
1967 do
1968   for ac_arg
1969   do
1970     case $ac_arg in
1971     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1972     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1973     | -silent | --silent | --silen | --sile | --sil)
1974       continue ;;
1975     *\'*)
1976       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977     esac
1978     case $ac_pass in
1979     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1980     2)
1981       as_fn_append ac_configure_args1 " '$ac_arg'"
1982       if test $ac_must_keep_next = true; then
1983         ac_must_keep_next=false # Got value, back to normal.
1984       else
1985         case $ac_arg in
1986           *=* | --config-cache | -C | -disable-* | --disable-* \
1987           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1988           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1989           | -with-* | --with-* | -without-* | --without-* | --x)
1990             case "$ac_configure_args0 " in
1991               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1992             esac
1993             ;;
1994           -* ) ac_must_keep_next=true ;;
1995         esac
1996       fi
1997       as_fn_append ac_configure_args " '$ac_arg'"
1998       ;;
1999     esac
2000   done
2001 done
2002 { ac_configure_args0=; unset ac_configure_args0;}
2003 { ac_configure_args1=; unset ac_configure_args1;}
2004
2005 # When interrupted or exit'd, cleanup temporary files, and complete
2006 # config.log.  We remove comments because anyway the quotes in there
2007 # would cause problems or look ugly.
2008 # WARNING: Use '\'' to represent an apostrophe within the trap.
2009 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2010 trap 'exit_status=$?
2011   # Save into config.log some information that might help in debugging.
2012   {
2013     echo
2014
2015     $as_echo "## ---------------- ##
2016 ## Cache variables. ##
2017 ## ---------------- ##"
2018     echo
2019     # The following way of writing the cache mishandles newlines in values,
2020 (
2021   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2022     eval ac_val=\$$ac_var
2023     case $ac_val in #(
2024     *${as_nl}*)
2025       case $ac_var in #(
2026       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2028       esac
2029       case $ac_var in #(
2030       _ | IFS | as_nl) ;; #(
2031       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2032       *) { eval $ac_var=; unset $ac_var;} ;;
2033       esac ;;
2034     esac
2035   done
2036   (set) 2>&1 |
2037     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2038     *${as_nl}ac_space=\ *)
2039       sed -n \
2040         "s/'\''/'\''\\\\'\'''\''/g;
2041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2042       ;; #(
2043     *)
2044       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2045       ;;
2046     esac |
2047     sort
2048 )
2049     echo
2050
2051     $as_echo "## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##"
2054     echo
2055     for ac_var in $ac_subst_vars
2056     do
2057       eval ac_val=\$$ac_var
2058       case $ac_val in
2059       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060       esac
2061       $as_echo "$ac_var='\''$ac_val'\''"
2062     done | sort
2063     echo
2064
2065     if test -n "$ac_subst_files"; then
2066       $as_echo "## ------------------- ##
2067 ## File substitutions. ##
2068 ## ------------------- ##"
2069       echo
2070       for ac_var in $ac_subst_files
2071       do
2072         eval ac_val=\$$ac_var
2073         case $ac_val in
2074         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075         esac
2076         $as_echo "$ac_var='\''$ac_val'\''"
2077       done | sort
2078       echo
2079     fi
2080
2081     if test -s confdefs.h; then
2082       $as_echo "## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##"
2085       echo
2086       cat confdefs.h
2087       echo
2088     fi
2089     test "$ac_signal" != 0 &&
2090       $as_echo "$as_me: caught signal $ac_signal"
2091     $as_echo "$as_me: exit $exit_status"
2092   } >&5
2093   rm -f core *.core core.conftest.* &&
2094     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2095     exit $exit_status
2096 ' 0
2097 for ac_signal in 1 2 13 15; do
2098   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2099 done
2100 ac_signal=0
2101
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2104
2105 $as_echo "/* confdefs.h */" > confdefs.h
2106
2107 # Predefined preprocessor variables.
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2131 _ACEOF
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 ac_site_file1=NONE
2137 ac_site_file2=NONE
2138 if test -n "$CONFIG_SITE"; then
2139   # We do not want a PATH search for config.site.
2140   case $CONFIG_SITE in #((
2141     -*)  ac_site_file1=./$CONFIG_SITE;;
2142     */*) ac_site_file1=$CONFIG_SITE;;
2143     *)   ac_site_file1=./$CONFIG_SITE;;
2144   esac
2145 elif test "x$prefix" != xNONE; then
2146   ac_site_file1=$prefix/share/config.site
2147   ac_site_file2=$prefix/etc/config.site
2148 else
2149   ac_site_file1=$ac_default_prefix/share/config.site
2150   ac_site_file2=$ac_default_prefix/etc/config.site
2151 fi
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 do
2154   test "x$ac_site_file" = xNONE && continue
2155   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158     sed 's/^/| /' "$ac_site_file" >&5
2159     . "$ac_site_file" \
2160       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 as_fn_error $? "failed to load site script $ac_site_file
2163 See \`config.log' for more details" "$LINENO" 5; }
2164   fi
2165 done
2166
2167 if test -r "$cache_file"; then
2168   # Some versions of bash will fail to source /dev/null (special files
2169   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2170   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172 $as_echo "$as_me: loading cache $cache_file" >&6;}
2173     case $cache_file in
2174       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175       *)                      . "./$cache_file";;
2176     esac
2177   fi
2178 else
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180 $as_echo "$as_me: creating cache $cache_file" >&6;}
2181   >$cache_file
2182 fi
2183
2184 # Check that the precious variables saved in the cache have kept the same
2185 # value.
2186 ac_cache_corrupted=false
2187 for ac_var in $ac_precious_vars; do
2188   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189   eval ac_new_set=\$ac_env_${ac_var}_set
2190   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191   eval ac_new_val=\$ac_env_${ac_var}_value
2192   case $ac_old_set,$ac_new_set in
2193     set,)
2194       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2196       ac_cache_corrupted=: ;;
2197     ,set)
2198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2200       ac_cache_corrupted=: ;;
2201     ,);;
2202     *)
2203       if test "x$ac_old_val" != "x$ac_new_val"; then
2204         # differences in whitespace do not lead to failure.
2205         ac_old_val_w=`echo x $ac_old_val`
2206         ac_new_val_w=`echo x $ac_new_val`
2207         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210           ac_cache_corrupted=:
2211         else
2212           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214           eval $ac_var=\$ac_old_val
2215         fi
2216         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2217 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2218         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2219 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2220       fi;;
2221   esac
2222   # Pass precious variables to config.status.
2223   if test "$ac_new_set" = set; then
2224     case $ac_new_val in
2225     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2226     *) ac_arg=$ac_var=$ac_new_val ;;
2227     esac
2228     case " $ac_configure_args " in
2229       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2230       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2231     esac
2232   fi
2233 done
2234 if $ac_cache_corrupted; then
2235   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2240 fi
2241 ## -------------------- ##
2242 ## Main body of script. ##
2243 ## -------------------- ##
2244
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250
2251
2252
2253 # Ensure that a recent enough version of Autoconf is being used
2254
2255
2256 # Check whether the configure script is in the right dir
2257
2258
2259 # Check programs
2260 echo .
2261 echo Check programs:
2262 echo .
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 if test -n "$ac_tool_prefix"; then
2270   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if ${ac_cv_prog_CC+:} false; then :
2275   $as_echo_n "(cached) " >&6
2276 else
2277   if test -n "$CC"; then
2278   ac_cv_prog_CC="$CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285     for ac_exec_ext in '' $ac_executable_extensions; do
2286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2289     break 2
2290   fi
2291 done
2292   done
2293 IFS=$as_save_IFS
2294
2295 fi
2296 fi
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2300 $as_echo "$CC" >&6; }
2301 else
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2303 $as_echo "no" >&6; }
2304 fi
2305
2306
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309   ac_ct_CC=$CC
2310   # Extract the first word of "gcc", so it can be a program name with args.
2311 set dummy gcc; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2315   $as_echo_n "(cached) " >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325     for ac_exec_ext in '' $ac_executable_extensions; do
2326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="gcc"
2328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332   done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2340 $as_echo "$ac_ct_CC" >&6; }
2341 else
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2343 $as_echo "no" >&6; }
2344 fi
2345
2346   if test "x$ac_ct_CC" = x; then
2347     CC=""
2348   else
2349     case $cross_compiling:$ac_tool_warned in
2350 yes:)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2353 ac_tool_warned=yes ;;
2354 esac
2355     CC=$ac_ct_CC
2356   fi
2357 else
2358   CC="$ac_cv_prog_CC"
2359 fi
2360
2361 if test -z "$CC"; then
2362           if test -n "$ac_tool_prefix"; then
2363     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if ${ac_cv_prog_CC+:} false; then :
2368   $as_echo_n "(cached) " >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378     for ac_exec_ext in '' $ac_executable_extensions; do
2379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="${ac_tool_prefix}cc"
2381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385   done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2393 $as_echo "$CC" >&6; }
2394 else
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396 $as_echo "no" >&6; }
2397 fi
2398
2399
2400   fi
2401 fi
2402 if test -z "$CC"; then
2403   # Extract the first word of "cc", so it can be a program name with args.
2404 set dummy cc; ac_word=$2
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if ${ac_cv_prog_CC+:} false; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   if test -n "$CC"; then
2411   ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413   ac_prog_rejected=no
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419     for ac_exec_ext in '' $ac_executable_extensions; do
2420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2422        ac_prog_rejected=yes
2423        continue
2424      fi
2425     ac_cv_prog_CC="cc"
2426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430   done
2431 IFS=$as_save_IFS
2432
2433 if test $ac_prog_rejected = yes; then
2434   # We found a bogon in the path, so make sure we never use it.
2435   set dummy $ac_cv_prog_CC
2436   shift
2437   if test $# != 0; then
2438     # We chose a different compiler from the bogus one.
2439     # However, it has the same basename, so the bogon will be chosen
2440     # first if we set CC to just the basename; use the full file name.
2441     shift
2442     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2443   fi
2444 fi
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450 $as_echo "$CC" >&6; }
2451 else
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$CC"; then
2459   if test -n "$ac_tool_prefix"; then
2460   for ac_prog in cl.exe
2461   do
2462     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_CC+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   if test -n "$CC"; then
2470   ac_cv_prog_CC="$CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477     for ac_exec_ext in '' $ac_executable_extensions; do
2478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484   done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492 $as_echo "$CC" >&6; }
2493 else
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499     test -n "$CC" && break
2500   done
2501 fi
2502 if test -z "$CC"; then
2503   ac_ct_CC=$CC
2504   for ac_prog in cl.exe
2505 do
2506   # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy $ac_prog; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2511   $as_echo_n "(cached) " >&6
2512 else
2513   if test -n "$ac_ct_CC"; then
2514   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521     for ac_exec_ext in '' $ac_executable_extensions; do
2522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523     ac_cv_prog_ac_ct_CC="$ac_prog"
2524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528   done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534 if test -n "$ac_ct_CC"; then
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2536 $as_echo "$ac_ct_CC" >&6; }
2537 else
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543   test -n "$ac_ct_CC" && break
2544 done
2545
2546   if test "x$ac_ct_CC" = x; then
2547     CC=""
2548   else
2549     case $cross_compiling:$ac_tool_warned in
2550 yes:)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553 ac_tool_warned=yes ;;
2554 esac
2555     CC=$ac_ct_CC
2556   fi
2557 fi
2558
2559 fi
2560
2561
2562 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 as_fn_error $? "no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details" "$LINENO" 5; }
2566
2567 # Provide some information about the compiler.
2568 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2569 set X $ac_compile
2570 ac_compiler=$2
2571 for ac_option in --version -v -V -qversion; do
2572   { { ac_try="$ac_compiler $ac_option >&5"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2580   ac_status=$?
2581   if test -s conftest.err; then
2582     sed '10a\
2583 ... rest of stderr output deleted ...
2584          10q' conftest.err >conftest.er1
2585     cat conftest.er1 >&5
2586   fi
2587   rm -f conftest.er1 conftest.err
2588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589   test $ac_status = 0; }
2590 done
2591
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h.  */
2594
2595 int
2596 main ()
2597 {
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 ac_clean_files_save=$ac_clean_files
2604 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2605 # Try to create an executable without -o first, disregard a.out.
2606 # It will help us diagnose broken compilers, and finding out an intuition
2607 # of exeext.
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2609 $as_echo_n "checking whether the C compiler works... " >&6; }
2610 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2611
2612 # The possible output files:
2613 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2614
2615 ac_rmfiles=
2616 for ac_file in $ac_files
2617 do
2618   case $ac_file in
2619     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2620     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2621   esac
2622 done
2623 rm -f $ac_rmfiles
2624
2625 if { { ac_try="$ac_link_default"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632   (eval "$ac_link_default") 2>&5
2633   ac_status=$?
2634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635   test $ac_status = 0; }; then :
2636   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2638 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2639 # so that the user can short-circuit this test for compilers unknown to
2640 # Autoconf.
2641 for ac_file in $ac_files ''
2642 do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2646         ;;
2647     [ab].out )
2648         # We found the default executable, but exeext='' is most
2649         # certainly right.
2650         break;;
2651     *.* )
2652         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2653         then :; else
2654            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2655         fi
2656         # We set ac_cv_exeext here because the later test for it is not
2657         # safe: cross compilers may not add the suffix if given an `-o'
2658         # argument, so we may need to know it at that point already.
2659         # Even if this section looks crufty: it has the advantage of
2660         # actually working.
2661         break;;
2662     * )
2663         break;;
2664   esac
2665 done
2666 test "$ac_cv_exeext" = no && ac_cv_exeext=
2667
2668 else
2669   ac_file=''
2670 fi
2671 if test -z "$ac_file"; then :
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 $as_echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error 77 "C compiler cannot create executables
2680 See \`config.log' for more details" "$LINENO" 5; }
2681 else
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2686 $as_echo_n "checking for C compiler default output file name... " >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2688 $as_echo "$ac_file" >&6; }
2689 ac_exeext=$ac_cv_exeext
2690
2691 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2692 ac_clean_files=$ac_clean_files_save
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2694 $as_echo_n "checking for suffix of executables... " >&6; }
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702   (eval "$ac_link") 2>&5
2703   ac_status=$?
2704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705   test $ac_status = 0; }; then :
2706   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2707 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2708 # work properly (i.e., refer to `conftest.exe'), while it won't with
2709 # `rm'.
2710 for ac_file in conftest.exe conftest conftest.*; do
2711   test -f "$ac_file" || continue
2712   case $ac_file in
2713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2714     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2715           break;;
2716     * ) break;;
2717   esac
2718 done
2719 else
2720   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2723 See \`config.log' for more details" "$LINENO" 5; }
2724 fi
2725 rm -f conftest conftest$ac_cv_exeext
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2727 $as_echo "$ac_cv_exeext" >&6; }
2728
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2731 ac_exeext=$EXEEXT
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h.  */
2734 #include <stdio.h>
2735 int
2736 main ()
2737 {
2738 FILE *f = fopen ("conftest.out", "w");
2739  return ferror (f) || fclose (f) != 0;
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 ac_clean_files="$ac_clean_files conftest.out"
2746 # Check that the compiler produces executables we can run.  If not, either
2747 # the compiler is broken, or we cross compile.
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2749 $as_echo_n "checking whether we are cross compiling... " >&6; }
2750 if test "$cross_compiling" != yes; then
2751   { { ac_try="$ac_link"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2757 $as_echo "$ac_try_echo"; } >&5
2758   (eval "$ac_link") 2>&5
2759   ac_status=$?
2760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761   test $ac_status = 0; }
2762   if { ac_try='./conftest$ac_cv_exeext'
2763   { { case "(($ac_try" in
2764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765   *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768 $as_echo "$ac_try_echo"; } >&5
2769   (eval "$ac_try") 2>&5
2770   ac_status=$?
2771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772   test $ac_status = 0; }; }; then
2773     cross_compiling=no
2774   else
2775     if test "$cross_compiling" = maybe; then
2776         cross_compiling=yes
2777     else
2778         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 as_fn_error $? "cannot run C compiled programs.
2781 If you meant to cross compile, use \`--host'.
2782 See \`config.log' for more details" "$LINENO" 5; }
2783     fi
2784   fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2787 $as_echo "$cross_compiling" >&6; }
2788
2789 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2790 ac_clean_files=$ac_clean_files_save
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2792 $as_echo_n "checking for suffix of object files... " >&6; }
2793 if ${ac_cv_objext+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h.  */
2798
2799 int
2800 main ()
2801 {
2802
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.o conftest.obj
2808 if { { ac_try="$ac_compile"
2809 case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814 $as_echo "$ac_try_echo"; } >&5
2815   (eval "$ac_compile") 2>&5
2816   ac_status=$?
2817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818   test $ac_status = 0; }; then :
2819   for ac_file in conftest.o conftest.obj conftest.*; do
2820   test -f "$ac_file" || continue;
2821   case $ac_file in
2822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2823     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2824        break;;
2825   esac
2826 done
2827 else
2828   $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "cannot compute suffix of object files: cannot compile
2834 See \`config.log' for more details" "$LINENO" 5; }
2835 fi
2836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2839 $as_echo "$ac_cv_objext" >&6; }
2840 OBJEXT=$ac_cv_objext
2841 ac_objext=$OBJEXT
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2844 if ${ac_cv_c_compiler_gnu+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849
2850 int
2851 main ()
2852 {
2853 #ifndef __GNUC__
2854        choke me
2855 #endif
2856
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862   ac_compiler_gnu=yes
2863 else
2864   ac_compiler_gnu=no
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2868
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2871 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2872 if test $ac_compiler_gnu = yes; then
2873   GCC=yes
2874 else
2875   GCC=
2876 fi
2877 ac_test_CFLAGS=${CFLAGS+set}
2878 ac_save_CFLAGS=$CFLAGS
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2880 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2881 if ${ac_cv_prog_cc_g+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   ac_save_c_werror_flag=$ac_c_werror_flag
2885    ac_c_werror_flag=yes
2886    ac_cv_prog_cc_g=no
2887    CFLAGS="-g"
2888    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h.  */
2890
2891 int
2892 main ()
2893 {
2894
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 if ac_fn_c_try_compile "$LINENO"; then :
2900   ac_cv_prog_cc_g=yes
2901 else
2902   CFLAGS=""
2903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h.  */
2905
2906 int
2907 main ()
2908 {
2909
2910   ;
2911   return 0;
2912 }
2913 _ACEOF
2914 if ac_fn_c_try_compile "$LINENO"; then :
2915
2916 else
2917   ac_c_werror_flag=$ac_save_c_werror_flag
2918          CFLAGS="-g"
2919          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 if ac_fn_c_try_compile "$LINENO"; then :
2931   ac_cv_prog_cc_g=yes
2932 fi
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 fi
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 fi
2937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938    ac_c_werror_flag=$ac_save_c_werror_flag
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2941 $as_echo "$ac_cv_prog_cc_g" >&6; }
2942 if test "$ac_test_CFLAGS" = set; then
2943   CFLAGS=$ac_save_CFLAGS
2944 elif test $ac_cv_prog_cc_g = yes; then
2945   if test "$GCC" = yes; then
2946     CFLAGS="-g -O2"
2947   else
2948     CFLAGS="-g"
2949   fi
2950 else
2951   if test "$GCC" = yes; then
2952     CFLAGS="-O2"
2953   else
2954     CFLAGS=
2955   fi
2956 fi
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2959 if ${ac_cv_prog_cc_c89+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   ac_cv_prog_cc_c89=no
2963 ac_save_CC=$CC
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h.  */
2966 #include <stdarg.h>
2967 #include <stdio.h>
2968 struct stat;
2969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2970 struct buf { int x; };
2971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2972 static char *e (p, i)
2973      char **p;
2974      int i;
2975 {
2976   return p[i];
2977 }
2978 static char *f (char * (*g) (char **, int), char **p, ...)
2979 {
2980   char *s;
2981   va_list v;
2982   va_start (v,p);
2983   s = g (p, va_arg (v,int));
2984   va_end (v);
2985   return s;
2986 }
2987
2988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2989    function prototypes and stuff, but not '\xHH' hex character constants.
2990    These don't provoke an error unfortunately, instead are silently treated
2991    as 'x'.  The following induces an error, until -std is added to get
2992    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2993    array size at least.  It's necessary to write '\x00'==0 to get something
2994    that's true only with -std.  */
2995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2996
2997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2998    inside strings and character constants.  */
2999 #define FOO(x) 'x'
3000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3001
3002 int test (int i, double x);
3003 struct s1 {int (*f) (int a);};
3004 struct s2 {int (*f) (double a);};
3005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3006 int argc;
3007 char **argv;
3008 int
3009 main ()
3010 {
3011 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3017         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3018 do
3019   CC="$ac_save_CC $ac_arg"
3020   if ac_fn_c_try_compile "$LINENO"; then :
3021   ac_cv_prog_cc_c89=$ac_arg
3022 fi
3023 rm -f core conftest.err conftest.$ac_objext
3024   test "x$ac_cv_prog_cc_c89" != "xno" && break
3025 done
3026 rm -f conftest.$ac_ext
3027 CC=$ac_save_CC
3028
3029 fi
3030 # AC_CACHE_VAL
3031 case "x$ac_cv_prog_cc_c89" in
3032   x)
3033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3034 $as_echo "none needed" >&6; } ;;
3035   xno)
3036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3037 $as_echo "unsupported" >&6; } ;;
3038   *)
3039     CC="$CC $ac_cv_prog_cc_c89"
3040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3042 esac
3043 if test "x$ac_cv_prog_cc_c89" != xno; then :
3044
3045 fi
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3063   CPP=
3064 fi
3065 if test -z "$CPP"; then
3066   if ${ac_cv_prog_CPP+:} false; then :
3067   $as_echo_n "(cached) " >&6
3068 else
3069       # Double quotes because CPP needs to be expanded
3070     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3071     do
3072       ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3074 do
3075   # Use a header file that comes with gcc, so configuring glibc
3076   # with a fresh cross-compiler works.
3077   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078   # <limits.h> exists even on freestanding compilers.
3079   # On the NeXT, cc -E runs the code through the compiler's parser,
3080   # not just through cpp. "Syntax error" is here to catch this case.
3081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083 #ifdef __STDC__
3084 # include <limits.h>
3085 #else
3086 # include <assert.h>
3087 #endif
3088                      Syntax error
3089 _ACEOF
3090 if ac_fn_c_try_cpp "$LINENO"; then :
3091
3092 else
3093   # Broken: fails on valid input.
3094 continue
3095 fi
3096 rm -f conftest.err conftest.i conftest.$ac_ext
3097
3098   # OK, works on sane cases.  Now check whether nonexistent headers
3099   # can be detected and how.
3100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h.  */
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if ac_fn_c_try_cpp "$LINENO"; then :
3105   # Broken: success on invalid input.
3106 continue
3107 else
3108   # Passes both tests.
3109 ac_preproc_ok=:
3110 break
3111 fi
3112 rm -f conftest.err conftest.i conftest.$ac_ext
3113
3114 done
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.i conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then :
3118   break
3119 fi
3120
3121     done
3122     ac_cv_prog_CPP=$CPP
3123
3124 fi
3125   CPP=$ac_cv_prog_CPP
3126 else
3127   ac_cv_prog_CPP=$CPP
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3130 $as_echo "$CPP" >&6; }
3131 ac_preproc_ok=false
3132 for ac_c_preproc_warn_flag in '' yes
3133 do
3134   # Use a header file that comes with gcc, so configuring glibc
3135   # with a fresh cross-compiler works.
3136   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137   # <limits.h> exists even on freestanding compilers.
3138   # On the NeXT, cc -E runs the code through the compiler's parser,
3139   # not just through cpp. "Syntax error" is here to catch this case.
3140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142 #ifdef __STDC__
3143 # include <limits.h>
3144 #else
3145 # include <assert.h>
3146 #endif
3147                      Syntax error
3148 _ACEOF
3149 if ac_fn_c_try_cpp "$LINENO"; then :
3150
3151 else
3152   # Broken: fails on valid input.
3153 continue
3154 fi
3155 rm -f conftest.err conftest.i conftest.$ac_ext
3156
3157   # OK, works on sane cases.  Now check whether nonexistent headers
3158   # can be detected and how.
3159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h.  */
3161 #include <ac_nonexistent.h>
3162 _ACEOF
3163 if ac_fn_c_try_cpp "$LINENO"; then :
3164   # Broken: success on invalid input.
3165 continue
3166 else
3167   # Passes both tests.
3168 ac_preproc_ok=:
3169 break
3170 fi
3171 rm -f conftest.err conftest.i conftest.$ac_ext
3172
3173 done
3174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3175 rm -f conftest.i conftest.err conftest.$ac_ext
3176 if $ac_preproc_ok; then :
3177
3178 else
3179   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3182 See \`config.log' for more details" "$LINENO" 5; }
3183 fi
3184
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190
3191
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3194 if ${ac_cv_path_GREP+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -z "$GREP"; then
3198   ac_path_GREP_found=false
3199   # Loop through the user's path and test for each of PROGNAME-LIST
3200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_prog in grep ggrep; do
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3208       as_fn_executable_p "$ac_path_GREP" || continue
3209 # Check for GNU ac_path_GREP and select it if it is found.
3210   # Check for GNU $ac_path_GREP
3211 case `"$ac_path_GREP" --version 2>&1` in
3212 *GNU*)
3213   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3214 *)
3215   ac_count=0
3216   $as_echo_n 0123456789 >"conftest.in"
3217   while :
3218   do
3219     cat "conftest.in" "conftest.in" >"conftest.tmp"
3220     mv "conftest.tmp" "conftest.in"
3221     cp "conftest.in" "conftest.nl"
3222     $as_echo 'GREP' >> "conftest.nl"
3223     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3225     as_fn_arith $ac_count + 1 && ac_count=$as_val
3226     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3227       # Best one so far, save it but keep looking for a better one
3228       ac_cv_path_GREP="$ac_path_GREP"
3229       ac_path_GREP_max=$ac_count
3230     fi
3231     # 10*(2^10) chars as input seems more than enough
3232     test $ac_count -gt 10 && break
3233   done
3234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3235 esac
3236
3237       $ac_path_GREP_found && break 3
3238     done
3239   done
3240   done
3241 IFS=$as_save_IFS
3242   if test -z "$ac_cv_path_GREP"; then
3243     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3244   fi
3245 else
3246   ac_cv_path_GREP=$GREP
3247 fi
3248
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3251 $as_echo "$ac_cv_path_GREP" >&6; }
3252  GREP="$ac_cv_path_GREP"
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3256 $as_echo_n "checking for egrep... " >&6; }
3257 if ${ac_cv_path_EGREP+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3261    then ac_cv_path_EGREP="$GREP -E"
3262    else
3263      if test -z "$EGREP"; then
3264   ac_path_EGREP_found=false
3265   # Loop through the user's path and test for each of PROGNAME-LIST
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_prog in egrep; do
3272     for ac_exec_ext in '' $ac_executable_extensions; do
3273       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3274       as_fn_executable_p "$ac_path_EGREP" || continue
3275 # Check for GNU ac_path_EGREP and select it if it is found.
3276   # Check for GNU $ac_path_EGREP
3277 case `"$ac_path_EGREP" --version 2>&1` in
3278 *GNU*)
3279   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3280 *)
3281   ac_count=0
3282   $as_echo_n 0123456789 >"conftest.in"
3283   while :
3284   do
3285     cat "conftest.in" "conftest.in" >"conftest.tmp"
3286     mv "conftest.tmp" "conftest.in"
3287     cp "conftest.in" "conftest.nl"
3288     $as_echo 'EGREP' >> "conftest.nl"
3289     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3291     as_fn_arith $ac_count + 1 && ac_count=$as_val
3292     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3293       # Best one so far, save it but keep looking for a better one
3294       ac_cv_path_EGREP="$ac_path_EGREP"
3295       ac_path_EGREP_max=$ac_count
3296     fi
3297     # 10*(2^10) chars as input seems more than enough
3298     test $ac_count -gt 10 && break
3299   done
3300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3301 esac
3302
3303       $ac_path_EGREP_found && break 3
3304     done
3305   done
3306   done
3307 IFS=$as_save_IFS
3308   if test -z "$ac_cv_path_EGREP"; then
3309     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3310   fi
3311 else
3312   ac_cv_path_EGREP=$EGREP
3313 fi
3314
3315    fi
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3318 $as_echo "$ac_cv_path_EGREP" >&6; }
3319  EGREP="$ac_cv_path_EGREP"
3320
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3323 $as_echo_n "checking for ANSI C header files... " >&6; }
3324 if ${ac_cv_header_stdc+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329 #include <stdlib.h>
3330 #include <stdarg.h>
3331 #include <string.h>
3332 #include <float.h>
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343   ac_cv_header_stdc=yes
3344 else
3345   ac_cv_header_stdc=no
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348
3349 if test $ac_cv_header_stdc = yes; then
3350   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h.  */
3353 #include <string.h>
3354
3355 _ACEOF
3356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3357   $EGREP "memchr" >/dev/null 2>&1; then :
3358
3359 else
3360   ac_cv_header_stdc=no
3361 fi
3362 rm -f conftest*
3363
3364 fi
3365
3366 if test $ac_cv_header_stdc = yes; then
3367   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h.  */
3370 #include <stdlib.h>
3371
3372 _ACEOF
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374   $EGREP "free" >/dev/null 2>&1; then :
3375
3376 else
3377   ac_cv_header_stdc=no
3378 fi
3379 rm -f conftest*
3380
3381 fi
3382
3383 if test $ac_cv_header_stdc = yes; then
3384   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3385   if test "$cross_compiling" = yes; then :
3386   :
3387 else
3388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h.  */
3390 #include <ctype.h>
3391 #include <stdlib.h>
3392 #if ((' ' & 0x0FF) == 0x020)
3393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3395 #else
3396 # define ISLOWER(c) \
3397                    (('a' <= (c) && (c) <= 'i') \
3398                      || ('j' <= (c) && (c) <= 'r') \
3399                      || ('s' <= (c) && (c) <= 'z'))
3400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3401 #endif
3402
3403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3404 int
3405 main ()
3406 {
3407   int i;
3408   for (i = 0; i < 256; i++)
3409     if (XOR (islower (i), ISLOWER (i))
3410         || toupper (i) != TOUPPER (i))
3411       return 2;
3412   return 0;
3413 }
3414 _ACEOF
3415 if ac_fn_c_try_run "$LINENO"; then :
3416
3417 else
3418   ac_cv_header_stdc=no
3419 fi
3420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3421   conftest.$ac_objext conftest.beam conftest.$ac_ext
3422 fi
3423
3424 fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3427 $as_echo "$ac_cv_header_stdc" >&6; }
3428 if test $ac_cv_header_stdc = yes; then
3429
3430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3431
3432 fi
3433
3434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3436                   inttypes.h stdint.h unistd.h
3437 do :
3438   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3440 "
3441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3442   cat >>confdefs.h <<_ACEOF
3443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3444 _ACEOF
3445
3446 fi
3447
3448 done
3449
3450
3451
3452   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3453 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3454   MINIX=yes
3455 else
3456   MINIX=
3457 fi
3458
3459
3460   if test "$MINIX" = yes; then
3461
3462 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3463
3464
3465 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3466
3467
3468 $as_echo "#define _MINIX 1" >>confdefs.h
3469
3470   fi
3471
3472
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3474 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3475 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 #         define __EXTENSIONS__ 1
3482           $ac_includes_default
3483 int
3484 main ()
3485 {
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492   ac_cv_safe_to_define___extensions__=yes
3493 else
3494   ac_cv_safe_to_define___extensions__=no
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3499 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3500   test $ac_cv_safe_to_define___extensions__ = yes &&
3501     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3502
3503   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3504
3505   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3506
3507   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3508
3509   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3510
3511
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3514 $as_echo_n "checking whether ln -s works... " >&6; }
3515 LN_S=$as_ln_s
3516 if test "$LN_S" = "ln -s"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3518 $as_echo "yes" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3521 $as_echo "no, using $LN_S" >&6; }
3522 fi
3523
3524
3525 DFLAGS=""
3526
3527 # Extract the first word of "chmod", so it can be a program name with args.
3528 set dummy chmod; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_CHMOD+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$CHMOD"; then
3535   ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542     for ac_exec_ext in '' $ac_executable_extensions; do
3543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544     ac_cv_prog_CHMOD="chmod"
3545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549   done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CHMOD=$ac_cv_prog_CHMOD
3555 if test -n "$CHMOD"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3557 $as_echo "$CHMOD" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564 # Extract the first word of "chown", so it can be a program name with args.
3565 set dummy chown; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CHOWN+:} false; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -n "$CHOWN"; then
3572   ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579     for ac_exec_ext in '' $ac_executable_extensions; do
3580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581     ac_cv_prog_CHOWN="chown"
3582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583     break 2
3584   fi
3585 done
3586   done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 CHOWN=$ac_cv_prog_CHOWN
3592 if test -n "$CHOWN"; then
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3594 $as_echo "$CHOWN" >&6; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601 # Extract the first word of "ar", so it can be a program name with args.
3602 set dummy ar; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_AR+:} false; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608   if test -n "$AR"; then
3609   ac_cv_prog_AR="$AR" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616     for ac_exec_ext in '' $ac_executable_extensions; do
3617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618     ac_cv_prog_AR="ar"
3619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623   done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 AR=$ac_cv_prog_AR
3629 if test -n "$AR"; then
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3631 $as_echo "$AR" >&6; }
3632 else
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 # Extract the first word of "install", so it can be a program name with args.
3639 set dummy install; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_INSTALL+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -n "$INSTALL"; then
3646   ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_exec_ext in '' $ac_executable_extensions; do
3654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655     ac_cv_prog_INSTALL="install"
3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660   done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 INSTALL=$ac_cv_prog_INSTALL
3666 if test -n "$INSTALL"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3668 $as_echo "$INSTALL" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 # Extract the first word of "msgfmt", so it can be a program name with args.
3676 set dummy msgfmt; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_MSGFMT+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$MSGFMT"; then
3683   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692     ac_cv_prog_MSGFMT="msgfmt"
3693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697   done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 MSGFMT=$ac_cv_prog_MSGFMT
3703 if test -n "$MSGFMT"; then
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3705 $as_echo "$MSGFMT" >&6; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 # Extract the first word of "xgettext", so it can be a program name with args.
3713 set dummy xgettext; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_XGETTEXT+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if test -n "$XGETTEXT"; then
3720   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727     for ac_exec_ext in '' $ac_executable_extensions; do
3728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_prog_XGETTEXT="xgettext"
3730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734   done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 XGETTEXT=$ac_cv_prog_XGETTEXT
3740 if test -n "$XGETTEXT"; then
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3742 $as_echo "$XGETTEXT" >&6; }
3743 else
3744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 # Extract the first word of "msgmerge", so it can be a program name with args.
3750 set dummy msgmerge; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_MSGMERGE+:} false; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$MSGMERGE"; then
3757   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766     ac_cv_prog_MSGMERGE="msgmerge"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 MSGMERGE=$ac_cv_prog_MSGMERGE
3777 if test -n "$MSGMERGE"; then
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3779 $as_echo "$MSGMERGE" >&6; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 for ac_prog in xz bzip2 gzip
3787 do
3788   # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_prog_ZIP+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   if test -n "$ZIP"; then
3796   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803     for ac_exec_ext in '' $ac_executable_extensions; do
3804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805     ac_cv_prog_ZIP="$ac_prog"
3806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807     break 2
3808   fi
3809 done
3810   done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 ZIP=$ac_cv_prog_ZIP
3816 if test -n "$ZIP"; then
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
3818 $as_echo "$ZIP" >&6; }
3819 else
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825   test -n "$ZIP" && break
3826 done
3827 test -n "$ZIP" || ZIP="gzip"
3828
3829 INSTALL_DATA="\${INSTALL} -m 644"
3830
3831 INSTALL_BIN="\${INSTALL} -m 755"
3832
3833
3834 # Extract the first word of "cp", so it can be a program name with args.
3835 set dummy cp; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_path_PATH_CP+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   case $PATH_CP in
3842   [\\/]* | ?:[\\/]*)
3843   ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
3844   ;;
3845   *)
3846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_path_PATH_CP="$as_dir/$ac_word$ac_exec_ext"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861   ;;
3862 esac
3863 fi
3864 PATH_CP=$ac_cv_path_PATH_CP
3865 if test -n "$PATH_CP"; then
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
3867 $as_echo "$PATH_CP" >&6; }
3868 else
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873
3874 # Extract the first word of "chkconfig", so it can be a program name with args.
3875 set dummy chkconfig; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_path_PATH_CHKCONFIG+:} false; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   case $PATH_CHKCONFIG in
3882   [\\/]* | ?:[\\/]*)
3883   ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
3884   ;;
3885   *)
3886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891     for ac_exec_ext in '' $ac_executable_extensions; do
3892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893     ac_cv_path_PATH_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898   done
3899 IFS=$as_save_IFS
3900
3901   ;;
3902 esac
3903 fi
3904 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
3905 if test -n "$PATH_CHKCONFIG"; then
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
3907 $as_echo "$PATH_CHKCONFIG" >&6; }
3908 else
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3911 fi
3912
3913
3914
3915 # Check for systemd
3916 # Extract the first word of "pkg-config", so it can be a program name with args.
3917 set dummy pkg-config; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   if test -n "$PKG_CONFIG"; then
3924   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931     for ac_exec_ext in '' $ac_executable_extensions; do
3932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933     ac_cv_prog_PKG_CONFIG="pkg-config"
3934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935     break 2
3936   fi
3937 done
3938   done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3944 if test -n "$PKG_CONFIG"; then
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3946 $as_echo "$PKG_CONFIG" >&6; }
3947 else
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953 # Extract the first word of "systemctl", so it can be a program name with args.
3954 set dummy systemctl; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_path_SYSTEMCTL+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   case $SYSTEMCTL in
3961   [\\/]* | ?:[\\/]*)
3962   ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
3963   ;;
3964   *)
3965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_path_SYSTEMCTL="$as_dir/$ac_word$ac_exec_ext"
3973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977   done
3978 IFS=$as_save_IFS
3979
3980   ;;
3981 esac
3982 fi
3983 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
3984 if test -n "$SYSTEMCTL"; then
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
3986 $as_echo "$SYSTEMCTL" >&6; }
3987 else
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993
3994 # Check whether --with-systemdsystemunitdir was given.
3995 if test "${with_systemdsystemunitdir+set}" = set; then :
3996   withval=$with_systemdsystemunitdir;
3997 else
3998   with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
3999 fi
4000
4001 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4002     SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4003
4004 fi
4005
4006 # Check libraries
4007
4008 # Check header files
4009 echo .
4010 echo Check header files:
4011 echo .
4012 HAVE_LIBINTL_H=
4013 HAVE_LOCALE_H=
4014 HAVE_SYS_SYSMACROS_H=
4015 HAVE_SYS_PARAM_H=
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4017 $as_echo_n "checking for ANSI C header files... " >&6; }
4018 if ${ac_cv_header_stdc+:} false; then :
4019   $as_echo_n "(cached) " >&6
4020 else
4021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <stdlib.h>
4024 #include <stdarg.h>
4025 #include <string.h>
4026 #include <float.h>
4027
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037   ac_cv_header_stdc=yes
4038 else
4039   ac_cv_header_stdc=no
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042
4043 if test $ac_cv_header_stdc = yes; then
4044   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047 #include <string.h>
4048
4049 _ACEOF
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051   $EGREP "memchr" >/dev/null 2>&1; then :
4052
4053 else
4054   ac_cv_header_stdc=no
4055 fi
4056 rm -f conftest*
4057
4058 fi
4059
4060 if test $ac_cv_header_stdc = yes; then
4061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #include <stdlib.h>
4065
4066 _ACEOF
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068   $EGREP "free" >/dev/null 2>&1; then :
4069
4070 else
4071   ac_cv_header_stdc=no
4072 fi
4073 rm -f conftest*
4074
4075 fi
4076
4077 if test $ac_cv_header_stdc = yes; then
4078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079   if test "$cross_compiling" = yes; then :
4080   :
4081 else
4082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084 #include <ctype.h>
4085 #include <stdlib.h>
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4089 #else
4090 # define ISLOWER(c) \
4091                    (('a' <= (c) && (c) <= 'i') \
4092                      || ('j' <= (c) && (c) <= 'r') \
4093                      || ('s' <= (c) && (c) <= 'z'))
4094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4095 #endif
4096
4097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4098 int
4099 main ()
4100 {
4101   int i;
4102   for (i = 0; i < 256; i++)
4103     if (XOR (islower (i), ISLOWER (i))
4104         || toupper (i) != TOUPPER (i))
4105       return 2;
4106   return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_c_try_run "$LINENO"; then :
4110
4111 else
4112   ac_cv_header_stdc=no
4113 fi
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4115   conftest.$ac_objext conftest.beam conftest.$ac_ext
4116 fi
4117
4118 fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4121 $as_echo "$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4123
4124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4125
4126 fi
4127
4128 ac_header_dirent=no
4129 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4130   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4132 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4133 if eval \${$as_ac_Header+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138 #include <sys/types.h>
4139 #include <$ac_hdr>
4140
4141 int
4142 main ()
4143 {
4144 if ((DIR *) 0)
4145 return 0;
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151   eval "$as_ac_Header=yes"
4152 else
4153   eval "$as_ac_Header=no"
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 eval ac_res=\$$as_ac_Header
4158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4159 $as_echo "$ac_res" >&6; }
4160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4161   cat >>confdefs.h <<_ACEOF
4162 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4163 _ACEOF
4164
4165 ac_header_dirent=$ac_hdr; break
4166 fi
4167
4168 done
4169 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4170 if test $ac_header_dirent = dirent.h; then
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4172 $as_echo_n "checking for library containing opendir... " >&6; }
4173 if ${ac_cv_search_opendir+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   ac_func_search_save_LIBS=$LIBS
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h.  */
4179
4180 /* Override any GCC internal prototype to avoid an error.
4181    Use char because int might match the return type of a GCC
4182    builtin and then its argument prototype would still apply.  */
4183 #ifdef __cplusplus
4184 extern "C"
4185 #endif
4186 char opendir ();
4187 int
4188 main ()
4189 {
4190 return opendir ();
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 for ac_lib in '' dir; do
4196   if test -z "$ac_lib"; then
4197     ac_res="none required"
4198   else
4199     ac_res=-l$ac_lib
4200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4201   fi
4202   if ac_fn_c_try_link "$LINENO"; then :
4203   ac_cv_search_opendir=$ac_res
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext \
4206     conftest$ac_exeext
4207   if ${ac_cv_search_opendir+:} false; then :
4208   break
4209 fi
4210 done
4211 if ${ac_cv_search_opendir+:} false; then :
4212
4213 else
4214   ac_cv_search_opendir=no
4215 fi
4216 rm conftest.$ac_ext
4217 LIBS=$ac_func_search_save_LIBS
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4220 $as_echo "$ac_cv_search_opendir" >&6; }
4221 ac_res=$ac_cv_search_opendir
4222 if test "$ac_res" != no; then :
4223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4224
4225 fi
4226
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4229 $as_echo_n "checking for library containing opendir... " >&6; }
4230 if ${ac_cv_search_opendir+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   ac_func_search_save_LIBS=$LIBS
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4236
4237 /* Override any GCC internal prototype to avoid an error.
4238    Use char because int might match the return type of a GCC
4239    builtin and then its argument prototype would still apply.  */
4240 #ifdef __cplusplus
4241 extern "C"
4242 #endif
4243 char opendir ();
4244 int
4245 main ()
4246 {
4247 return opendir ();
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 for ac_lib in '' x; do
4253   if test -z "$ac_lib"; then
4254     ac_res="none required"
4255   else
4256     ac_res=-l$ac_lib
4257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4258   fi
4259   if ac_fn_c_try_link "$LINENO"; then :
4260   ac_cv_search_opendir=$ac_res
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext \
4263     conftest$ac_exeext
4264   if ${ac_cv_search_opendir+:} false; then :
4265   break
4266 fi
4267 done
4268 if ${ac_cv_search_opendir+:} false; then :
4269
4270 else
4271   ac_cv_search_opendir=no
4272 fi
4273 rm conftest.$ac_ext
4274 LIBS=$ac_func_search_save_LIBS
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4277 $as_echo "$ac_cv_search_opendir" >&6; }
4278 ac_res=$ac_cv_search_opendir
4279 if test "$ac_res" != no; then :
4280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4281
4282 fi
4283
4284 fi
4285
4286 for ac_header in ctype.h
4287 do :
4288   ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4289 if test "x$ac_cv_header_ctype_h" = xyes; then :
4290   cat >>confdefs.h <<_ACEOF
4291 #define HAVE_CTYPE_H 1
4292 _ACEOF
4293
4294 fi
4295
4296 done
4297
4298 for ac_header in errno.h
4299 do :
4300   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4301 if test "x$ac_cv_header_errno_h" = xyes; then :
4302   cat >>confdefs.h <<_ACEOF
4303 #define HAVE_ERRNO_H 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310 for ac_header in libintl.h
4311 do :
4312   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4313 if test "x$ac_cv_header_libintl_h" = xyes; then :
4314   cat >>confdefs.h <<_ACEOF
4315 #define HAVE_LIBINTL_H 1
4316 _ACEOF
4317  HAVE_LIBINTL_H=1
4318 fi
4319
4320 done
4321
4322 for ac_header in locale.h
4323 do :
4324   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4325 if test "x$ac_cv_header_locale_h" = xyes; then :
4326   cat >>confdefs.h <<_ACEOF
4327 #define HAVE_LOCALE_H 1
4328 _ACEOF
4329  HAVE_LOCALE_H=1
4330 fi
4331
4332 done
4333
4334 for ac_header in net/if.h
4335 do :
4336   ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4337 if test "x$ac_cv_header_net_if_h" = xyes; then :
4338   cat >>confdefs.h <<_ACEOF
4339 #define HAVE_NET_IF_H 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346 for ac_header in regex.h
4347 do :
4348   ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4349 if test "x$ac_cv_header_regex_h" = xyes; then :
4350   cat >>confdefs.h <<_ACEOF
4351 #define HAVE_REGEX_H 1
4352 _ACEOF
4353
4354 fi
4355
4356 done
4357
4358 for ac_header in signal.h
4359 do :
4360   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4361 if test "x$ac_cv_header_signal_h" = xyes; then :
4362   cat >>confdefs.h <<_ACEOF
4363 #define HAVE_SIGNAL_H 1
4364 _ACEOF
4365
4366 fi
4367
4368 done
4369
4370 for ac_header in stdio.h
4371 do :
4372   ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4373 if test "x$ac_cv_header_stdio_h" = xyes; then :
4374   cat >>confdefs.h <<_ACEOF
4375 #define HAVE_STDIO_H 1
4376 _ACEOF
4377
4378 fi
4379
4380 done
4381
4382 for ac_header in sys/file.h
4383 do :
4384   ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4385 if test "x$ac_cv_header_sys_file_h" = xyes; then :
4386   cat >>confdefs.h <<_ACEOF
4387 #define HAVE_SYS_FILE_H 1
4388 _ACEOF
4389
4390 fi
4391
4392 done
4393
4394 for ac_header in sys/ioctl.h
4395 do :
4396   ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4397 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4398   cat >>confdefs.h <<_ACEOF
4399 #define HAVE_SYS_IOCTL_H 1
4400 _ACEOF
4401
4402 fi
4403
4404 done
4405
4406 for ac_header in sys/param.h
4407 do :
4408   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4409 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4410   cat >>confdefs.h <<_ACEOF
4411 #define HAVE_SYS_PARAM_H 1
4412 _ACEOF
4413  HAVE_SYS_PARAM_H=1
4414 fi
4415
4416 done
4417
4418 for ac_header in sys/stat.h
4419 do :
4420   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4421 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
4422   cat >>confdefs.h <<_ACEOF
4423 #define HAVE_SYS_STAT_H 1
4424 _ACEOF
4425
4426 fi
4427
4428 done
4429
4430 for ac_header in sys/sysmacros.h
4431 do :
4432   ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4433 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
4434   cat >>confdefs.h <<_ACEOF
4435 #define HAVE_SYS_SYSMACROS_H 1
4436 _ACEOF
4437  HAVE_SYS_SYSMACROS_H=1
4438 fi
4439
4440 done
4441
4442
4443 echo .
4444 echo Check typedefs, structures and compiler characteristics:
4445 echo .
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4447 $as_echo_n "checking return type of signal handlers... " >&6; }
4448 if ${ac_cv_type_signal+:} false; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #include <sys/types.h>
4454 #include <signal.h>
4455
4456 int
4457 main ()
4458 {
4459 return *(signal (0, 0)) (0) == 1;
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465   ac_cv_type_signal=int
4466 else
4467   ac_cv_type_signal=void
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4472 $as_echo "$ac_cv_type_signal" >&6; }
4473
4474 cat >>confdefs.h <<_ACEOF
4475 #define RETSIGTYPE $ac_cv_type_signal
4476 _ACEOF
4477
4478
4479 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4480 if test "x$ac_cv_type_size_t" = xyes; then :
4481
4482 else
4483
4484 cat >>confdefs.h <<_ACEOF
4485 #define size_t unsigned int
4486 _ACEOF
4487
4488 fi
4489
4490 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4491 if test "x$ac_cv_type_off_t" = xyes; then :
4492
4493 else
4494
4495 cat >>confdefs.h <<_ACEOF
4496 #define off_t long int
4497 _ACEOF
4498
4499 fi
4500
4501
4502 echo .
4503 echo Check library functions:
4504 echo .
4505 for ac_func in strchr
4506 do :
4507   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4508 if test "x$ac_cv_func_strchr" = xyes; then :
4509   cat >>confdefs.h <<_ACEOF
4510 #define HAVE_STRCHR 1
4511 _ACEOF
4512
4513 fi
4514 done
4515
4516 for ac_func in strcspn
4517 do :
4518   ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4519 if test "x$ac_cv_func_strcspn" = xyes; then :
4520   cat >>confdefs.h <<_ACEOF
4521 #define HAVE_STRCSPN 1
4522 _ACEOF
4523
4524 fi
4525 done
4526
4527 for ac_func in strspn
4528 do :
4529   ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4530 if test "x$ac_cv_func_strspn" = xyes; then :
4531   cat >>confdefs.h <<_ACEOF
4532 #define HAVE_STRSPN 1
4533 _ACEOF
4534
4535 fi
4536 done
4537
4538 for ac_func in strstr
4539 do :
4540   ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4541 if test "x$ac_cv_func_strstr" = xyes; then :
4542   cat >>confdefs.h <<_ACEOF
4543 #define HAVE_STRSTR 1
4544 _ACEOF
4545
4546 fi
4547 done
4548
4549
4550 # Should we check for lm_sensors?
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4552 $as_echo_n "checking for sensors support... " >&6; }
4553 # Check whether --enable-sensors was given.
4554 if test "${enable_sensors+set}" = set; then :
4555   enableval=$enable_sensors; SENSORS=$enableval
4556 else
4557   SENSORS=yes
4558 fi
4559
4560 if test $SENSORS != "yes"; then
4561    HAVE_SENSORS="n"
4562 else
4563    HAVE_SENSORS="y"
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4566 $as_echo "$SENSORS" >&6; }
4567
4568 # Check for lm_sensors
4569 SENSORS=no
4570 LFSENSORS=""
4571 DFSENSORS=""
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4573 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4574 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   ac_check_lib_save_LIBS=$LIBS
4578 LIBS="-lsensors  $LIBS"
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581
4582 /* Override any GCC internal prototype to avoid an error.
4583    Use char because int might match the return type of a GCC
4584    builtin and then its argument prototype would still apply.  */
4585 #ifdef __cplusplus
4586 extern "C"
4587 #endif
4588 char sensors_get_detected_chips ();
4589 int
4590 main ()
4591 {
4592 return sensors_get_detected_chips ();
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_link "$LINENO"; then :
4598   ac_cv_lib_sensors_sensors_get_detected_chips=yes
4599 else
4600   ac_cv_lib_sensors_sensors_get_detected_chips=no
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext \
4603     conftest$ac_exeext conftest.$ac_ext
4604 LIBS=$ac_check_lib_save_LIBS
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4607 $as_echo "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4608 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes; then :
4609   LFSENSORS="-lsensors"
4610 else
4611   HAVE_SENSORS="n"
4612 fi
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
4615 $as_echo_n "checking for sensors lib... " >&6; }
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <sensors/sensors.h>
4619 #include <sensors/error.h>
4620
4621 int
4622 main ()
4623 {
4624 sensors_cleanup();
4625   ;
4626   return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630   SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
4631 else
4632   HAVE_SENSORS="n"; SENSORS=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4636 $as_echo "$SENSORS" >&6; }
4637
4638
4639
4640
4641 echo .
4642 echo Check system services:
4643 echo .
4644 # Check whether --enable-largefile was given.
4645 if test "${enable_largefile+set}" = set; then :
4646   enableval=$enable_largefile;
4647 fi
4648
4649 if test "$enable_largefile" != no; then
4650
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4652 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4653 if ${ac_cv_sys_largefile_CC+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   ac_cv_sys_largefile_CC=no
4657      if test "$GCC" != yes; then
4658        ac_save_CC=$CC
4659        while :; do
4660          # IRIX 6.2 and later do not support large files by default,
4661          # so use the C compiler's -n32 option if that helps.
4662          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h.  */
4664 #include <sys/types.h>
4665  /* Check that off_t can represent 2**63 - 1 correctly.
4666     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4667     since some C++ compilers masquerading as C compilers
4668     incorrectly reject 9223372036854775807.  */
4669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4670   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4671                        && LARGE_OFF_T % 2147483647 == 1)
4672                       ? 1 : -1];
4673 int
4674 main ()
4675 {
4676
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681          if ac_fn_c_try_compile "$LINENO"; then :
4682   break
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext
4685          CC="$CC -n32"
4686          if ac_fn_c_try_compile "$LINENO"; then :
4687   ac_cv_sys_largefile_CC=' -n32'; break
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext
4690          break
4691        done
4692        CC=$ac_save_CC
4693        rm -f conftest.$ac_ext
4694     fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4697 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4698   if test "$ac_cv_sys_largefile_CC" != no; then
4699     CC=$CC$ac_cv_sys_largefile_CC
4700   fi
4701
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4703 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4704 if ${ac_cv_sys_file_offset_bits+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   while :; do
4708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710 #include <sys/types.h>
4711  /* Check that off_t can represent 2**63 - 1 correctly.
4712     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4713     since some C++ compilers masquerading as C compilers
4714     incorrectly reject 9223372036854775807.  */
4715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4716   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4717                        && LARGE_OFF_T % 2147483647 == 1)
4718                       ? 1 : -1];
4719 int
4720 main ()
4721 {
4722
4723   ;
4724   return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728   ac_cv_sys_file_offset_bits=no; break
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733 #define _FILE_OFFSET_BITS 64
4734 #include <sys/types.h>
4735  /* Check that off_t can represent 2**63 - 1 correctly.
4736     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4737     since some C++ compilers masquerading as C compilers
4738     incorrectly reject 9223372036854775807.  */
4739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4740   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4741                        && LARGE_OFF_T % 2147483647 == 1)
4742                       ? 1 : -1];
4743 int
4744 main ()
4745 {
4746
4747   ;
4748   return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752   ac_cv_sys_file_offset_bits=64; break
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755   ac_cv_sys_file_offset_bits=unknown
4756   break
4757 done
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4760 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4761 case $ac_cv_sys_file_offset_bits in #(
4762   no | unknown) ;;
4763   *)
4764 cat >>confdefs.h <<_ACEOF
4765 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4766 _ACEOF
4767 ;;
4768 esac
4769 rm -rf conftest*
4770   if test $ac_cv_sys_file_offset_bits = unknown; then
4771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4772 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4773 if ${ac_cv_sys_large_files+:} false; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   while :; do
4777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h.  */
4779 #include <sys/types.h>
4780  /* Check that off_t can represent 2**63 - 1 correctly.
4781     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4782     since some C++ compilers masquerading as C compilers
4783     incorrectly reject 9223372036854775807.  */
4784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4785   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4786                        && LARGE_OFF_T % 2147483647 == 1)
4787                       ? 1 : -1];
4788 int
4789 main ()
4790 {
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797   ac_cv_sys_large_files=no; break
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h.  */
4802 #define _LARGE_FILES 1
4803 #include <sys/types.h>
4804  /* Check that off_t can represent 2**63 - 1 correctly.
4805     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4806     since some C++ compilers masquerading as C compilers
4807     incorrectly reject 9223372036854775807.  */
4808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4809   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4810                        && LARGE_OFF_T % 2147483647 == 1)
4811                       ? 1 : -1];
4812 int
4813 main ()
4814 {
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821   ac_cv_sys_large_files=1; break
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824   ac_cv_sys_large_files=unknown
4825   break
4826 done
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4829 $as_echo "$ac_cv_sys_large_files" >&6; }
4830 case $ac_cv_sys_large_files in #(
4831   no | unknown) ;;
4832   *)
4833 cat >>confdefs.h <<_ACEOF
4834 #define _LARGE_FILES $ac_cv_sys_large_files
4835 _ACEOF
4836 ;;
4837 esac
4838 rm -rf conftest*
4839   fi
4840
4841
4842 fi
4843
4844
4845 echo .
4846 echo Check configuration:
4847 echo .
4848 # Check arguments used
4849 #
4850 # Optional Features:
4851 #  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
4852 #  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
4853 #  --disable-largefile     omit support for large files
4854 #  --disable-nls           disable National Language Support
4855 #  --disable-file-attr     don't set attributes on files being installed
4856 #  --enable-install-cron   tell sysstat to install cron scripts
4857 #  --collect-all           tell sadc to collect all possible data
4858 #  --enable-clean-sa-dir   clean system activity directory
4859 #  --enable-compress-manpg compress manual pages
4860 #  --enable-debuginfo      enable debug output (--debuginfo option)
4861 #  --disable-documentation do not install documentation (man pages...)
4862 #  --disable-sensors       do not link against libsensors even if available
4863 #  --disable-stripping     do not strip object files
4864 #  --enablle-copy-only     only copy files when installing sysstat
4865 #
4866 # Some influential environment variables:
4867 #  rcdir         directory where startup scripts are installed
4868 #  sa_lib_dir    sadc, sa1 and sa2 directory
4869 #  sa_dir        system activity daily datafiles directory
4870 #  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
4871 #  history       number of daily datafiles to keep (default value is 7)
4872 #  compressafter number of days after which datafiles are compressed
4873 #  man_group     group for man pages
4874 #  cron_owner    crontab owner
4875 #  cron_interval crontab sampling interval
4876 #  sadc_options  options to be passed to sadc
4877 #
4878 # Fine tuning the installation directories:
4879 #  --mandir=DIR           man documentation directory [PREFIX/man]
4880 #  --docdir=DIR           other documentation directory [PREFIX/share/doc]
4881 #
4882 # Installation directories:
4883 #  --prefix=PREFIX         install architecture-independent files in PREFIX
4884 #                            [/usr/local]
4885 #  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
4886 #                            [PREFIX]
4887
4888 # Set directories
4889 if test -d /etc/init.d && test ! -L /etc/init.d; then
4890    if test -d /etc/init.d/rc2.d; then
4891       RC_DIR=/etc/init.d
4892       INITD_DIR=.
4893    else
4894       RC_DIR=/etc
4895       INITD_DIR=init.d
4896    fi
4897    INIT_DIR=/etc/init.d
4898 elif test -d /sbin/init.d; then
4899    RC_DIR=/sbin/init.d
4900    INIT_DIR=/sbin/init.d
4901    INITD_DIR=.
4902 else
4903    RC_DIR=/etc/rc.d
4904    INIT_DIR=/etc/rc.d/init.d
4905    INITD_DIR=init.d
4906 fi
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
4909 $as_echo_n "checking run-commands directory... " >&6; }
4910
4911 if test x$rcdir != x""; then
4912         # Override previous rc directories values
4913         RC_DIR=$rcdir
4914         INIT_DIR=$rcdir/init.d
4915         INITD_DIR=init.d
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
4918 $as_echo "$RC_DIR" >&6; }
4919 if test ! -d $RC_DIR; then
4920         echo "INFO: Directory ${RC_DIR} doesn't exist."
4921         echo "INFO: Startup scripts won't be installed."
4922 fi
4923
4924
4925
4926
4927
4928 if test $HAVE_SYS_SYSMACROS_H; then
4929    SYSMACROS="y"
4930 else
4931    SYSMACROS="n"
4932 fi
4933
4934
4935 if test $HAVE_SYS_PARAM_H; then
4936    SYSPARAM="y"
4937 else
4938    SYSPARAM="n"
4939 fi
4940
4941
4942 # Set sadc directory
4943 if test $prefix != "NONE"; then
4944    AuxPrefix=$prefix
4945 else
4946    AuxPrefix=/usr/local
4947 fi
4948
4949 SADC_DIR=$AuxPrefix/lib
4950 if test -d $AuxPrefix/lib64; then
4951     # Verify that this OS is really 64 bit
4952     BITS=$(getconf LONG_BIT 2>/dev/null)
4953     if test $? = 0; then
4954         if test $BITS = 64; then
4955             SADC_DIR=$AuxPrefix/lib64
4956         fi
4957     else
4958         # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
4959         grep " lm " /proc/cpuinfo >/dev/null 2>&1
4960         if test $? = 0; then
4961             SADC_DIR=$AuxPrefix/lib64
4962         fi
4963     fi
4964 fi
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
4967 $as_echo_n "checking sadc directory... " >&6; }
4968
4969 if test x$sa_lib_dir != x""; then
4970    SA_LIB_DIR=$sa_lib_dir
4971 else
4972    SA_LIB_DIR=$SADC_DIR/sa
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
4975 $as_echo "$SA_LIB_DIR" >&6; }
4976 if test ! -d $SA_LIB_DIR; then
4977    echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
4978 fi
4979
4980
4981 # Set system activity directory
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
4983 $as_echo_n "checking system activity directory... " >&6; }
4984
4985 if test x$sa_dir != x""; then
4986    SA_DIR=$sa_dir
4987 else
4988    SA_DIR=/var/log/sa
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
4991 $as_echo "$SA_DIR" >&6; }
4992 if test ! -d $SA_DIR; then
4993    echo "INFO: Directory ${SA_DIR} will be created during installation stage."
4994 fi
4995
4996
4997 # Set configuration directory
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
4999 $as_echo_n "checking sysstat configuration directory... " >&6; }
5000
5001 if test x$conf_dir != x""; then
5002    SYSCONFIG_DIR=$conf_dir
5003 else
5004    SYSCONFIG_DIR=/etc/sysconfig
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
5007 $as_echo "$SYSCONFIG_DIR" >&6; }
5008 if test ! -d $SYSCONFIG_DIR; then
5009    echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
5010 fi
5011
5012
5013 # National Language Support
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
5015 $as_echo_n "checking National Language Support... " >&6; }
5016 # Check whether --enable-nls was given.
5017 if test "${enable_nls+set}" = set; then :
5018   enableval=$enable_nls; AUX_NLS=$enableval
5019 else
5020   AUX_NLS=yes
5021 fi
5022
5023 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5024    AUX_NLS="yes"
5025    NLS="y"
5026 else
5027    AUX_NLS="no"
5028    NLS="n"
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5031 $as_echo "$AUX_NLS" >&6; }
5032 LACKING_GETTEXT="n"
5033 if test $AUX_NLS = "yes" &&  test x$MSGFMT != x"msgfmt"; then
5034    echo "WARNING: msgfmt command not found!"
5035    LACKING_GETTEXT="y"
5036 fi
5037 if test $AUX_NLS = "yes" &&  test x$XGETTEXT != x"xgettext"; then
5038    echo "WARNING: xgettext command not found!"
5039    LACKING_GETTEXT="y"
5040 fi
5041 if test $AUX_NLS = "yes" &&  test x$MSGMERGE != x"msgmerge"; then
5042    echo "WARNING: msgmerge command not found!"
5043    LACKING_GETTEXT="y"
5044 fi
5045 if test $NLS = "y" && test $LACKING_GETTEXT = "y"; then
5046    echo "WARNING: Disabling NLS"
5047    NLS="n"
5048 fi
5049
5050
5051 # Data history to keep by sa2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5053 $as_echo_n "checking number of daily data files to keep... " >&6; }
5054
5055 if test x$history = x""; then
5056    HISTORY=7
5057 else
5058    HISTORY=$history
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5061 $as_echo "$HISTORY" >&6; }
5062
5063
5064 # Number of days after which datafiles are compressed
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5066 $as_echo_n "checking number of days after which data files are compressed... " >&6; }
5067
5068 if test x$compressafter = x""; then
5069    COMPRESSAFTER=10
5070 else
5071    COMPRESSAFTER=$compressafter
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5074 $as_echo "$COMPRESSAFTER" >&6; }
5075
5076
5077 # Manual page group
5078 grep ^man: /etc/group >/dev/null 2>&1
5079 if test $? = 0; then
5080    GRP=man
5081 else
5082    GRP=root
5083 fi
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5086 $as_echo_n "checking group for manual pages... " >&6; }
5087
5088 if test x$man_group = x""; then
5089    MAN_GROUP=$GRP
5090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5091 $as_echo "$MAN_GROUP" >&6; }
5092 else
5093    grep ^$man_group: /etc/group >/dev/null 2>&1
5094    if test $? = 1; then
5095       MAN_GROUP=$GRP
5096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5097 $as_echo "$MAN_GROUP" >&6; }
5098       echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5099    else
5100       MAN_GROUP=$man_group
5101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5102 $as_echo "$MAN_GROUP" >&6; }
5103    fi
5104 fi
5105
5106
5107 # Don't set attributes on files being installed?
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether attributes should not be set on files being installed" >&5
5109 $as_echo_n "checking whether attributes should not be set on files being installed... " >&6; }
5110 # Check whether --enable-file-attr was given.
5111 if test "${enable_file_attr+set}" = set; then :
5112   enableval=$enable_file_attr; AUX_IMG=$enableval
5113 else
5114   AUX_IMG=yes
5115 fi
5116
5117 if test $AUX_IMG != "no"; then
5118    IGNORE_FILE_ATTRIBUTES=n
5119    AUX_IMG=no
5120 else
5121    IGNORE_FILE_ATTRIBUTES=y
5122    AUX_IMG=yes
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5125 $as_echo "$AUX_IMG" >&6; }
5126
5127
5128 # Compress manual pages?
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5130 $as_echo_n "checking whether manual pages should be compressed... " >&6; }
5131 # Check whether --enable-compress-manpg was given.
5132 if test "${enable_compress_manpg+set}" = set; then :
5133   enableval=$enable_compress_manpg; AUX_MPG=$enableval
5134 else
5135   AUX_MPG=no
5136 fi
5137
5138 if test $AUX_MPG != "yes"; then
5139    COMPRESS_MANPG=n
5140    AUX_MPG=no
5141 else
5142    COMPRESS_MANPG=y
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5145 $as_echo "$AUX_MPG" >&6; }
5146
5147
5148 # Check whether sa directory should be cleaned
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5150 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
5151 # Check whether --enable-clean-sa-dir was given.
5152 if test "${enable_clean_sa_dir+set}" = set; then :
5153   enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5154 else
5155   AUX_CSD=no
5156 fi
5157
5158 if test $AUX_CSD != "yes"; then
5159    CLEAN_SA_DIR=n
5160    AUX_CSD=no
5161 else
5162    CLEAN_SA_DIR=y
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5165 $as_echo "$AUX_CSD" >&6; }
5166
5167
5168 # Start crontab
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5170 $as_echo_n "checking whether cron should start sar automatically... " >&6; }
5171 # Check whether --enable-install-cron was given.
5172 if test "${enable_install_cron+set}" = set; then :
5173   enableval=$enable_install_cron; INSTALL_CRON=$enableval
5174 else
5175   INSTALL_CRON=n
5176 fi
5177
5178 if test $INSTALL_CRON != "yes"; then
5179    INSTALL_CRON=n
5180    AUX_CRON=no
5181 else
5182    INSTALL_CRON=y
5183    AUX_CRON=yes
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5186 $as_echo "$AUX_CRON" >&6; }
5187
5188
5189 # Crontab owner
5190 CUSR="root"
5191 if test $INSTALL_CRON = "y"; then
5192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5193 $as_echo_n "checking crontab owner... " >&6; }
5194
5195    if test x$cron_owner = x""; then
5196       CRON_OWNER=$CUSR
5197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5198 $as_echo "$CRON_OWNER" >&6; }
5199    else
5200       grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5201       if test $? = 1; then
5202          CRON_OWNER=$CUSR;
5203          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5204 $as_echo "$CRON_OWNER" >&6; }
5205          echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5206       else
5207          CRON_OWNER=$cron_owner
5208          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5209 $as_echo "$CRON_OWNER" >&6; }
5210       fi
5211    fi
5212    echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5213    if test $CRON_OWNER = "root"; then
5214       SU_C_OWNER=""
5215       QUOTE=""
5216       REM_CHOWN="# REM_CHOWN"
5217    else
5218       SU_C_OWNER="su $CRON_OWNER -c "
5219       QUOTE=\"
5220       # " (ignore this line)
5221       REM_CHOWN=$CHOWN
5222    fi
5223
5224 #  Crontab interval
5225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5226 $as_echo_n "checking crontab interval... " >&6; }
5227
5228    if test x$cron_interval = x""; then
5229       CRON_INTERVAL=10
5230    else
5231       CRON_INTERVAL=$cron_interval
5232    fi
5233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5234 $as_echo "$CRON_INTERVAL" >&6; }
5235    CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5236    CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5237
5238 #  Check whether sadc should collect all possible activities
5239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5240 $as_echo_n "checking whether sadc should collect all possible activities... " >&6; }
5241    # Check whether --enable-collect-all was given.
5242 if test "${enable_collect_all+set}" = set; then :
5243   enableval=$enable_collect_all; COLLECT_ALL=$enableval
5244 else
5245   COLLECT_ALL=n
5246 fi
5247
5248    if test $COLLECT_ALL != "yes"; then
5249       COLLECT_ALL=""
5250       AUX_COLL=no
5251    else
5252       COLLECT_ALL="-S XALL"
5253       AUX_COLL=yes
5254    fi
5255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5256 $as_echo "$AUX_COLL" >&6; }
5257
5258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking options to be passed to sadc" >&5
5259 $as_echo_n "checking options to be passed to sadc... " >&6; }
5260
5261    if test x"$sadc_options" != x""; then
5262         SADC_OPT="$sadc_options"
5263    else
5264         SADC_OPT=
5265    fi
5266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SADC_OPT" >&5
5267 $as_echo "$SADC_OPT" >&6; }
5268
5269
5270 #  Check whether files should only be copied
5271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether files should only be copied" >&5
5272 $as_echo_n "checking whether files should only be copied... " >&6; }
5273    # Check whether --enable-copy-only was given.
5274 if test "${enable_copy_only+set}" = set; then :
5275   enableval=$enable_copy_only; OCOPY=$enableval
5276 else
5277   OCOPY=no
5278 fi
5279
5280    if test $OCOPY != "yes"; then
5281       COPY_ONLY=n
5282       OCOPY=no
5283    else
5284       COPY_ONLY=y
5285    fi
5286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCOPY" >&5
5287 $as_echo "$OCOPY" >&6; }
5288
5289
5290 else
5291    CRON_OWNER="root"
5292    SU_C_OWNER=""
5293    QUOTE=""
5294    REM_CHOWN="# REM_CHOWN"
5295    CRON_INTERVAL=10
5296    CRON_INTERVAL_SEC=600
5297    CRON_COUNT=6
5298    COLLECT_ALL=""
5299 fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 # Check whether documentation should be installed
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5311 $as_echo_n "checking whether documentation should be installed... " >&6; }
5312 # Check whether --enable-documentation was given.
5313 if test "${enable_documentation+set}" = set; then :
5314   enableval=$enable_documentation; AUX_DOC=$enableval
5315 else
5316   AUX_DOC=yes
5317 fi
5318
5319 if  test  $AUX_DOC !=  "no"; then
5320    AUX_DOC="yes"
5321    INSTALL_DOC="y"
5322 else
5323    AUX_DOC="no"
5324    INSTALL_DOC="n"
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5327 $as_echo "$AUX_DOC" >&6; }
5328
5329
5330 # Set directory for installing manual pages (see comment in Makefile)
5331
5332
5333 # Check whether --debuginfo options should be allowed
5334 # Check whether --enable-debuginfo was given.
5335 if test "${enable_debuginfo+set}" = set; then :
5336   enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5337 else
5338   WITH_DEBUG=no
5339 fi
5340
5341
5342
5343
5344 # Check whether object files should be stripped
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5346 $as_echo_n "checking whether object files should be stripped... " >&6; }
5347 # Check whether --enable-stripping was given.
5348 if test "${enable_stripping+set}" = set; then :
5349   enableval=$enable_stripping; AUX_STRIP=$enableval
5350 else
5351   AUX_STRIP=yes
5352 fi
5353
5354 if test $AUX_STRIP != "no"; then
5355    AUX_STRIP="yes"
5356    STRIP="-s"
5357 else
5358    AUX_STRIP="no"
5359    STRIP=
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5362 $as_echo "$AUX_STRIP" >&6; }
5363
5364
5365 # Create files
5366 echo .
5367 echo Now create files:
5368 echo .
5369 ac_config_files="$ac_config_files sa1"
5370         # Permissions must be changed
5371 ac_config_files="$ac_config_files sa2"
5372                 # Permissions must be changed
5373 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5374         # File must be renamed
5375 ac_config_files="$ac_config_files sysstat.sysconfig"
5376
5377 ac_config_files="$ac_config_files version.h:version.in"
5378                 # File must be renamed
5379 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5380         # File must be renamed
5381 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5382
5383 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5384
5385 ac_config_files="$ac_config_files cron/sysstat.crond"
5386
5387 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5388
5389 ac_config_files="$ac_config_files sysstat"
5390         # Permissions must be changed
5391 ac_config_files="$ac_config_files sysstat.service"
5392
5393 ac_config_files="$ac_config_files cron/sysstat-collect.service"
5394
5395 ac_config_files="$ac_config_files cron/sysstat-collect.timer"
5396
5397 ac_config_files="$ac_config_files cron/sysstat-summary.service"
5398
5399 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
5400
5401 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5402                 # File must be renamed
5403 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5404                 # File must be renamed
5405 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5406         # File must be renamed
5407 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5408         # File must be renamed
5409 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5410                 # File must be renamed
5411 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5412         # File must be renamed
5413 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5414         # File must be renamed
5415 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5416         # File must be renamed
5417
5418 ac_config_files="$ac_config_files Makefile"
5419
5420 cat >confcache <<\_ACEOF
5421 # This file is a shell script that caches the results of configure
5422 # tests run on this system so they can be shared between configure
5423 # scripts and configure runs, see configure's option --config-cache.
5424 # It is not useful on other systems.  If it contains results you don't
5425 # want to keep, you may remove or edit it.
5426 #
5427 # config.status only pays attention to the cache file if you give it
5428 # the --recheck option to rerun configure.
5429 #
5430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5432 # following values.
5433
5434 _ACEOF
5435
5436 # The following way of writing the cache mishandles newlines in values,
5437 # but we know of no workaround that is simple, portable, and efficient.
5438 # So, we kill variables containing newlines.
5439 # Ultrix sh set writes to stderr and can't be redirected directly,
5440 # and sets the high bit in the cache file unless we assign to the vars.
5441 (
5442   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5443     eval ac_val=\$$ac_var
5444     case $ac_val in #(
5445     *${as_nl}*)
5446       case $ac_var in #(
5447       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5449       esac
5450       case $ac_var in #(
5451       _ | IFS | as_nl) ;; #(
5452       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5453       *) { eval $ac_var=; unset $ac_var;} ;;
5454       esac ;;
5455     esac
5456   done
5457
5458   (set) 2>&1 |
5459     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5460     *${as_nl}ac_space=\ *)
5461       # `set' does not quote correctly, so add quotes: double-quote
5462       # substitution turns \\\\ into \\, and sed turns \\ into \.
5463       sed -n \
5464         "s/'/'\\\\''/g;
5465           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5466       ;; #(
5467     *)
5468       # `set' quotes correctly as required by POSIX, so do not add quotes.
5469       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5470       ;;
5471     esac |
5472     sort
5473 ) |
5474   sed '
5475      /^ac_cv_env_/b end
5476      t clear
5477      :clear
5478      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5479      t end
5480      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5481      :end' >>confcache
5482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5483   if test -w "$cache_file"; then
5484     if test "x$cache_file" != "x/dev/null"; then
5485       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5486 $as_echo "$as_me: updating cache $cache_file" >&6;}
5487       if test ! -f "$cache_file" || test -h "$cache_file"; then
5488         cat confcache >"$cache_file"
5489       else
5490         case $cache_file in #(
5491         */* | ?:*)
5492           mv -f confcache "$cache_file"$$ &&
5493           mv -f "$cache_file"$$ "$cache_file" ;; #(
5494         *)
5495           mv -f confcache "$cache_file" ;;
5496         esac
5497       fi
5498     fi
5499   else
5500     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5502   fi
5503 fi
5504 rm -f confcache
5505
5506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5507 # Let make expand exec_prefix.
5508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5509
5510 # Transform confdefs.h into DEFS.
5511 # Protect against shell expansion while executing Makefile rules.
5512 # Protect against Makefile macro expansion.
5513 #
5514 # If the first sed substitution is executed (which looks for macros that
5515 # take arguments), then branch to the quote section.  Otherwise,
5516 # look for a macro that doesn't take arguments.
5517 ac_script='
5518 :mline
5519 /\\$/{
5520  N
5521  s,\\\n,,
5522  b mline
5523 }
5524 t clear
5525 :clear
5526 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5527 t quote
5528 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5529 t quote
5530 b any
5531 :quote
5532 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5533 s/\[/\\&/g
5534 s/\]/\\&/g
5535 s/\$/$$/g
5536 H
5537 :any
5538 ${
5539         g
5540         s/^\n//
5541         s/\n/ /g
5542         p
5543 }
5544 '
5545 DEFS=`sed -n "$ac_script" confdefs.h`
5546
5547
5548 ac_libobjs=
5549 ac_ltlibobjs=
5550 U=
5551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5552   # 1. Remove the extension, and $U if already installed.
5553   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5554   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5555   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5556   #    will be set to the directory where LIBOBJS objects are built.
5557   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5558   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5559 done
5560 LIBOBJS=$ac_libobjs
5561
5562 LTLIBOBJS=$ac_ltlibobjs
5563
5564
5565
5566 : "${CONFIG_STATUS=./config.status}"
5567 ac_write_fail=0
5568 ac_clean_files_save=$ac_clean_files
5569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5572 as_write_fail=0
5573 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5574 #! $SHELL
5575 # Generated by $as_me.
5576 # Run this file to recreate the current configuration.
5577 # Compiler output produced by configure, useful for debugging
5578 # configure, is in config.log if it exists.
5579
5580 debug=false
5581 ac_cs_recheck=false
5582 ac_cs_silent=false
5583
5584 SHELL=\${CONFIG_SHELL-$SHELL}
5585 export SHELL
5586 _ASEOF
5587 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5588 ## -------------------- ##
5589 ## M4sh Initialization. ##
5590 ## -------------------- ##
5591
5592 # Be more Bourne compatible
5593 DUALCASE=1; export DUALCASE # for MKS sh
5594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5595   emulate sh
5596   NULLCMD=:
5597   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5598   # is contrary to our usage.  Disable this feature.
5599   alias -g '${1+"$@"}'='"$@"'
5600   setopt NO_GLOB_SUBST
5601 else
5602   case `(set -o) 2>/dev/null` in #(
5603   *posix*) :
5604     set -o posix ;; #(
5605   *) :
5606      ;;
5607 esac
5608 fi
5609
5610
5611 as_nl='
5612 '
5613 export as_nl
5614 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5615 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5618 # Prefer a ksh shell builtin over an external printf program on Solaris,
5619 # but without wasting forks for bash or zsh.
5620 if test -z "$BASH_VERSION$ZSH_VERSION" \
5621     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5622   as_echo='print -r --'
5623   as_echo_n='print -rn --'
5624 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5625   as_echo='printf %s\n'
5626   as_echo_n='printf %s'
5627 else
5628   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5629     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5630     as_echo_n='/usr/ucb/echo -n'
5631   else
5632     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5633     as_echo_n_body='eval
5634       arg=$1;
5635       case $arg in #(
5636       *"$as_nl"*)
5637         expr "X$arg" : "X\\(.*\\)$as_nl";
5638         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5639       esac;
5640       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5641     '
5642     export as_echo_n_body
5643     as_echo_n='sh -c $as_echo_n_body as_echo'
5644   fi
5645   export as_echo_body
5646   as_echo='sh -c $as_echo_body as_echo'
5647 fi
5648
5649 # The user is always right.
5650 if test "${PATH_SEPARATOR+set}" != set; then
5651   PATH_SEPARATOR=:
5652   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5653     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5654       PATH_SEPARATOR=';'
5655   }
5656 fi
5657
5658
5659 # IFS
5660 # We need space, tab and new line, in precisely that order.  Quoting is
5661 # there to prevent editors from complaining about space-tab.
5662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5663 # splitting by setting IFS to empty value.)
5664 IFS=" ""        $as_nl"
5665
5666 # Find who we are.  Look in the path if we contain no directory separator.
5667 as_myself=
5668 case $0 in #((
5669   *[\\/]* ) as_myself=$0 ;;
5670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5676   done
5677 IFS=$as_save_IFS
5678
5679      ;;
5680 esac
5681 # We did not find ourselves, most probably we were run as `sh COMMAND'
5682 # in which case we are not to be found in the path.
5683 if test "x$as_myself" = x; then
5684   as_myself=$0
5685 fi
5686 if test ! -f "$as_myself"; then
5687   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5688   exit 1
5689 fi
5690
5691 # Unset variables that we do not need and which cause bugs (e.g. in
5692 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5693 # suppresses any "Segmentation fault" message there.  '((' could
5694 # trigger a bug in pdksh 5.2.14.
5695 for as_var in BASH_ENV ENV MAIL MAILPATH
5696 do eval test x\${$as_var+set} = xset \
5697   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5698 done
5699 PS1='$ '
5700 PS2='> '
5701 PS4='+ '
5702
5703 # NLS nuisances.
5704 LC_ALL=C
5705 export LC_ALL
5706 LANGUAGE=C
5707 export LANGUAGE
5708
5709 # CDPATH.
5710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5711
5712
5713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5714 # ----------------------------------------
5715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5717 # script with STATUS, using 1 if that was 0.
5718 as_fn_error ()
5719 {
5720   as_status=$1; test $as_status -eq 0 && as_status=1
5721   if test "$4"; then
5722     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5723     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5724   fi
5725   $as_echo "$as_me: error: $2" >&2
5726   as_fn_exit $as_status
5727 } # as_fn_error
5728
5729
5730 # as_fn_set_status STATUS
5731 # -----------------------
5732 # Set $? to STATUS, without forking.
5733 as_fn_set_status ()
5734 {
5735   return $1
5736 } # as_fn_set_status
5737
5738 # as_fn_exit STATUS
5739 # -----------------
5740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5741 as_fn_exit ()
5742 {
5743   set +e
5744   as_fn_set_status $1
5745   exit $1
5746 } # as_fn_exit
5747
5748 # as_fn_unset VAR
5749 # ---------------
5750 # Portably unset VAR.
5751 as_fn_unset ()
5752 {
5753   { eval $1=; unset $1;}
5754 }
5755 as_unset=as_fn_unset
5756 # as_fn_append VAR VALUE
5757 # ----------------------
5758 # Append the text in VALUE to the end of the definition contained in VAR. Take
5759 # advantage of any shell optimizations that allow amortized linear growth over
5760 # repeated appends, instead of the typical quadratic growth present in naive
5761 # implementations.
5762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5763   eval 'as_fn_append ()
5764   {
5765     eval $1+=\$2
5766   }'
5767 else
5768   as_fn_append ()
5769   {
5770     eval $1=\$$1\$2
5771   }
5772 fi # as_fn_append
5773
5774 # as_fn_arith ARG...
5775 # ------------------
5776 # Perform arithmetic evaluation on the ARGs, and store the result in the
5777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5778 # must be portable across $(()) and expr.
5779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5780   eval 'as_fn_arith ()
5781   {
5782     as_val=$(( $* ))
5783   }'
5784 else
5785   as_fn_arith ()
5786   {
5787     as_val=`expr "$@" || test $? -eq 1`
5788   }
5789 fi # as_fn_arith
5790
5791
5792 if expr a : '\(a\)' >/dev/null 2>&1 &&
5793    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5794   as_expr=expr
5795 else
5796   as_expr=false
5797 fi
5798
5799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5800   as_basename=basename
5801 else
5802   as_basename=false
5803 fi
5804
5805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5806   as_dirname=dirname
5807 else
5808   as_dirname=false
5809 fi
5810
5811 as_me=`$as_basename -- "$0" ||
5812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5813          X"$0" : 'X\(//\)$' \| \
5814          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5815 $as_echo X/"$0" |
5816     sed '/^.*\/\([^/][^/]*\)\/*$/{
5817             s//\1/
5818             q
5819           }
5820           /^X\/\(\/\/\)$/{
5821             s//\1/
5822             q
5823           }
5824           /^X\/\(\/\).*/{
5825             s//\1/
5826             q
5827           }
5828           s/.*/./; q'`
5829
5830 # Avoid depending upon Character Ranges.
5831 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5834 as_cr_digits='0123456789'
5835 as_cr_alnum=$as_cr_Letters$as_cr_digits
5836
5837 ECHO_C= ECHO_N= ECHO_T=
5838 case `echo -n x` in #(((((
5839 -n*)
5840   case `echo 'xy\c'` in
5841   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5842   xy)  ECHO_C='\c';;
5843   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5844        ECHO_T=' ';;
5845   esac;;
5846 *)
5847   ECHO_N='-n';;
5848 esac
5849
5850 rm -f conf$$ conf$$.exe conf$$.file
5851 if test -d conf$$.dir; then
5852   rm -f conf$$.dir/conf$$.file
5853 else
5854   rm -f conf$$.dir
5855   mkdir conf$$.dir 2>/dev/null
5856 fi
5857 if (echo >conf$$.file) 2>/dev/null; then
5858   if ln -s conf$$.file conf$$ 2>/dev/null; then
5859     as_ln_s='ln -s'
5860     # ... but there are two gotchas:
5861     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5862     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5863     # In both cases, we have to default to `cp -pR'.
5864     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5865       as_ln_s='cp -pR'
5866   elif ln conf$$.file conf$$ 2>/dev/null; then
5867     as_ln_s=ln
5868   else
5869     as_ln_s='cp -pR'
5870   fi
5871 else
5872   as_ln_s='cp -pR'
5873 fi
5874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5875 rmdir conf$$.dir 2>/dev/null
5876
5877
5878 # as_fn_mkdir_p
5879 # -------------
5880 # Create "$as_dir" as a directory, including parents if necessary.
5881 as_fn_mkdir_p ()
5882 {
5883
5884   case $as_dir in #(
5885   -*) as_dir=./$as_dir;;
5886   esac
5887   test -d "$as_dir" || eval $as_mkdir_p || {
5888     as_dirs=
5889     while :; do
5890       case $as_dir in #(
5891       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5892       *) as_qdir=$as_dir;;
5893       esac
5894       as_dirs="'$as_qdir' $as_dirs"
5895       as_dir=`$as_dirname -- "$as_dir" ||
5896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5897          X"$as_dir" : 'X\(//\)[^/]' \| \
5898          X"$as_dir" : 'X\(//\)$' \| \
5899          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5900 $as_echo X"$as_dir" |
5901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5902             s//\1/
5903             q
5904           }
5905           /^X\(\/\/\)[^/].*/{
5906             s//\1/
5907             q
5908           }
5909           /^X\(\/\/\)$/{
5910             s//\1/
5911             q
5912           }
5913           /^X\(\/\).*/{
5914             s//\1/
5915             q
5916           }
5917           s/.*/./; q'`
5918       test -d "$as_dir" && break
5919     done
5920     test -z "$as_dirs" || eval "mkdir $as_dirs"
5921   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5922
5923
5924 } # as_fn_mkdir_p
5925 if mkdir -p . 2>/dev/null; then
5926   as_mkdir_p='mkdir -p "$as_dir"'
5927 else
5928   test -d ./-p && rmdir ./-p
5929   as_mkdir_p=false
5930 fi
5931
5932
5933 # as_fn_executable_p FILE
5934 # -----------------------
5935 # Test if FILE is an executable regular file.
5936 as_fn_executable_p ()
5937 {
5938   test -f "$1" && test -x "$1"
5939 } # as_fn_executable_p
5940 as_test_x='test -x'
5941 as_executable_p=as_fn_executable_p
5942
5943 # Sed expression to map a string onto a valid CPP name.
5944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5945
5946 # Sed expression to map a string onto a valid variable name.
5947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5948
5949
5950 exec 6>&1
5951 ## ----------------------------------- ##
5952 ## Main body of $CONFIG_STATUS script. ##
5953 ## ----------------------------------- ##
5954 _ASEOF
5955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5956
5957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5958 # Save the log message, to keep $0 and so on meaningful, and to
5959 # report actual input values of CONFIG_FILES etc. instead of their
5960 # values after options handling.
5961 ac_log="
5962 This file was extended by sysstat $as_me 12.1.2, which was
5963 generated by GNU Autoconf 2.69.  Invocation command line was
5964
5965   CONFIG_FILES    = $CONFIG_FILES
5966   CONFIG_HEADERS  = $CONFIG_HEADERS
5967   CONFIG_LINKS    = $CONFIG_LINKS
5968   CONFIG_COMMANDS = $CONFIG_COMMANDS
5969   $ $0 $@
5970
5971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5972 "
5973
5974 _ACEOF
5975
5976 case $ac_config_files in *"
5977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5978 esac
5979
5980
5981
5982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5983 # Files that config.status was made for.
5984 config_files="$ac_config_files"
5985
5986 _ACEOF
5987
5988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5989 ac_cs_usage="\
5990 \`$as_me' instantiates files and other configuration actions
5991 from templates according to the current configuration.  Unless the files
5992 and actions are specified as TAGs, all are instantiated by default.
5993
5994 Usage: $0 [OPTION]... [TAG]...
5995
5996   -h, --help       print this help, then exit
5997   -V, --version    print version number and configuration settings, then exit
5998       --config     print configuration, then exit
5999   -q, --quiet, --silent
6000                    do not print progress messages
6001   -d, --debug      don't remove temporary files
6002       --recheck    update $as_me by reconfiguring in the same conditions
6003       --file=FILE[:TEMPLATE]
6004                    instantiate the configuration file FILE
6005
6006 Configuration files:
6007 $config_files
6008
6009 Report bugs to the package provider."
6010
6011 _ACEOF
6012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6014 ac_cs_version="\\
6015 sysstat config.status 12.1.2
6016 configured by $0, generated by GNU Autoconf 2.69,
6017   with options \\"\$ac_cs_config\\"
6018
6019 Copyright (C) 2012 Free Software Foundation, Inc.
6020 This config.status script is free software; the Free Software Foundation
6021 gives unlimited permission to copy, distribute and modify it."
6022
6023 ac_pwd='$ac_pwd'
6024 srcdir='$srcdir'
6025 test -n "\$AWK" || AWK=awk
6026 _ACEOF
6027
6028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6029 # The default lists apply if the user does not specify any file.
6030 ac_need_defaults=:
6031 while test $# != 0
6032 do
6033   case $1 in
6034   --*=?*)
6035     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6036     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6037     ac_shift=:
6038     ;;
6039   --*=)
6040     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6041     ac_optarg=
6042     ac_shift=:
6043     ;;
6044   *)
6045     ac_option=$1
6046     ac_optarg=$2
6047     ac_shift=shift
6048     ;;
6049   esac
6050
6051   case $ac_option in
6052   # Handling of the options.
6053   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6054     ac_cs_recheck=: ;;
6055   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6056     $as_echo "$ac_cs_version"; exit ;;
6057   --config | --confi | --conf | --con | --co | --c )
6058     $as_echo "$ac_cs_config"; exit ;;
6059   --debug | --debu | --deb | --de | --d | -d )
6060     debug=: ;;
6061   --file | --fil | --fi | --f )
6062     $ac_shift
6063     case $ac_optarg in
6064     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6065     '') as_fn_error $? "missing file argument" ;;
6066     esac
6067     as_fn_append CONFIG_FILES " '$ac_optarg'"
6068     ac_need_defaults=false;;
6069   --he | --h |  --help | --hel | -h )
6070     $as_echo "$ac_cs_usage"; exit ;;
6071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6072   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6073     ac_cs_silent=: ;;
6074
6075   # This is an error.
6076   -*) as_fn_error $? "unrecognized option: \`$1'
6077 Try \`$0 --help' for more information." ;;
6078
6079   *) as_fn_append ac_config_targets " $1"
6080      ac_need_defaults=false ;;
6081
6082   esac
6083   shift
6084 done
6085
6086 ac_configure_extra_args=
6087
6088 if $ac_cs_silent; then
6089   exec 6>/dev/null
6090   ac_configure_extra_args="$ac_configure_extra_args --silent"
6091 fi
6092
6093 _ACEOF
6094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6095 if \$ac_cs_recheck; then
6096   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6097   shift
6098   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6099   CONFIG_SHELL='$SHELL'
6100   export CONFIG_SHELL
6101   exec "\$@"
6102 fi
6103
6104 _ACEOF
6105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6106 exec 5>>config.log
6107 {
6108   echo
6109   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6110 ## Running $as_me. ##
6111 _ASBOX
6112   $as_echo "$ac_log"
6113 } >&5
6114
6115 _ACEOF
6116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6117 _ACEOF
6118
6119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6120
6121 # Handling of arguments.
6122 for ac_config_target in $ac_config_targets
6123 do
6124   case $ac_config_target in
6125     "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6126     "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6127     "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6128     "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6129     "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6130     "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6131     "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6132     "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6133     "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6134     "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6135     "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6136     "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6137     "cron/sysstat-collect.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.service" ;;
6138     "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
6139     "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
6140     "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
6141     "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6142     "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6143     "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6144     "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6145     "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6146     "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6147     "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6148     "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6149     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6150
6151   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6152   esac
6153 done
6154
6155
6156 # If the user did not use the arguments to specify the items to instantiate,
6157 # then the envvar interface is used.  Set only those that are not.
6158 # We use the long form for the default assignment because of an extremely
6159 # bizarre bug on SunOS 4.1.3.
6160 if $ac_need_defaults; then
6161   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6162 fi
6163
6164 # Have a temporary directory for convenience.  Make it in the build tree
6165 # simply because there is no reason against having it here, and in addition,
6166 # creating and moving files from /tmp can sometimes cause problems.
6167 # Hook for its removal unless debugging.
6168 # Note that there is a small window in which the directory will not be cleaned:
6169 # after its creation but before its name has been assigned to `$tmp'.
6170 $debug ||
6171 {
6172   tmp= ac_tmp=
6173   trap 'exit_status=$?
6174   : "${ac_tmp:=$tmp}"
6175   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6176 ' 0
6177   trap 'as_fn_exit 1' 1 2 13 15
6178 }
6179 # Create a (secure) tmp directory for tmp files.
6180
6181 {
6182   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6183   test -d "$tmp"
6184 }  ||
6185 {
6186   tmp=./conf$$-$RANDOM
6187   (umask 077 && mkdir "$tmp")
6188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6189 ac_tmp=$tmp
6190
6191 # Set up the scripts for CONFIG_FILES section.
6192 # No need to generate them if there are no CONFIG_FILES.
6193 # This happens for instance with `./config.status config.h'.
6194 if test -n "$CONFIG_FILES"; then
6195
6196
6197 ac_cr=`echo X | tr X '\015'`
6198 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6199 # But we know of no other shell where ac_cr would be empty at this
6200 # point, so we can use a bashism as a fallback.
6201 if test "x$ac_cr" = x; then
6202   eval ac_cr=\$\'\\r\'
6203 fi
6204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6206   ac_cs_awk_cr='\\r'
6207 else
6208   ac_cs_awk_cr=$ac_cr
6209 fi
6210
6211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6212 _ACEOF
6213
6214
6215 {
6216   echo "cat >conf$$subs.awk <<_ACEOF" &&
6217   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6218   echo "_ACEOF"
6219 } >conf$$subs.sh ||
6220   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6222 ac_delim='%!_!# '
6223 for ac_last_try in false false false false false :; do
6224   . ./conf$$subs.sh ||
6225     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6226
6227   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6228   if test $ac_delim_n = $ac_delim_num; then
6229     break
6230   elif $ac_last_try; then
6231     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6232   else
6233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6234   fi
6235 done
6236 rm -f conf$$subs.sh
6237
6238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6240 _ACEOF
6241 sed -n '
6242 h
6243 s/^/S["/; s/!.*/"]=/
6244 p
6245 g
6246 s/^[^!]*!//
6247 :repl
6248 t repl
6249 s/'"$ac_delim"'$//
6250 t delim
6251 :nl
6252 h
6253 s/\(.\{148\}\)..*/\1/
6254 t more1
6255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6256 p
6257 n
6258 b repl
6259 :more1
6260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6261 p
6262 g
6263 s/.\{148\}//
6264 t nl
6265 :delim
6266 h
6267 s/\(.\{148\}\)..*/\1/
6268 t more2
6269 s/["\\]/\\&/g; s/^/"/; s/$/"/
6270 p
6271 b
6272 :more2
6273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6274 p
6275 g
6276 s/.\{148\}//
6277 t delim
6278 ' <conf$$subs.awk | sed '
6279 /^[^""]/{
6280   N
6281   s/\n//
6282 }
6283 ' >>$CONFIG_STATUS || ac_write_fail=1
6284 rm -f conf$$subs.awk
6285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6286 _ACAWK
6287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6288   for (key in S) S_is_set[key] = 1
6289   FS = "\a"
6290
6291 }
6292 {
6293   line = $ 0
6294   nfields = split(line, field, "@")
6295   substed = 0
6296   len = length(field[1])
6297   for (i = 2; i < nfields; i++) {
6298     key = field[i]
6299     keylen = length(key)
6300     if (S_is_set[key]) {
6301       value = S[key]
6302       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6303       len += length(value) + length(field[++i])
6304       substed = 1
6305     } else
6306       len += 1 + keylen
6307   }
6308
6309   print line
6310 }
6311
6312 _ACAWK
6313 _ACEOF
6314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6315 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6316   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6317 else
6318   cat
6319 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6320   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6321 _ACEOF
6322
6323 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6324 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6325 # trailing colons and then remove the whole line if VPATH becomes empty
6326 # (actually we leave an empty line to preserve line numbers).
6327 if test "x$srcdir" = x.; then
6328   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6329 h
6330 s///
6331 s/^/:/
6332 s/[      ]*$/:/
6333 s/:\$(srcdir):/:/g
6334 s/:\${srcdir}:/:/g
6335 s/:@srcdir@:/:/g
6336 s/^:*//
6337 s/:*$//
6338 x
6339 s/\(=[   ]*\).*/\1/
6340 G
6341 s/\n//
6342 s/^[^=]*=[       ]*$//
6343 }'
6344 fi
6345
6346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6347 fi # test -n "$CONFIG_FILES"
6348
6349
6350 eval set X "  :F $CONFIG_FILES      "
6351 shift
6352 for ac_tag
6353 do
6354   case $ac_tag in
6355   :[FHLC]) ac_mode=$ac_tag; continue;;
6356   esac
6357   case $ac_mode$ac_tag in
6358   :[FHL]*:*);;
6359   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6360   :[FH]-) ac_tag=-:-;;
6361   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6362   esac
6363   ac_save_IFS=$IFS
6364   IFS=:
6365   set x $ac_tag
6366   IFS=$ac_save_IFS
6367   shift
6368   ac_file=$1
6369   shift
6370
6371   case $ac_mode in
6372   :L) ac_source=$1;;
6373   :[FH])
6374     ac_file_inputs=
6375     for ac_f
6376     do
6377       case $ac_f in
6378       -) ac_f="$ac_tmp/stdin";;
6379       *) # Look for the file first in the build tree, then in the source tree
6380          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6381          # because $ac_f cannot contain `:'.
6382          test -f "$ac_f" ||
6383            case $ac_f in
6384            [\\/$]*) false;;
6385            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6386            esac ||
6387            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6388       esac
6389       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6390       as_fn_append ac_file_inputs " '$ac_f'"
6391     done
6392
6393     # Let's still pretend it is `configure' which instantiates (i.e., don't
6394     # use $as_me), people would be surprised to read:
6395     #    /* config.h.  Generated by config.status.  */
6396     configure_input='Generated from '`
6397           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6398         `' by configure.'
6399     if test x"$ac_file" != x-; then
6400       configure_input="$ac_file.  $configure_input"
6401       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6402 $as_echo "$as_me: creating $ac_file" >&6;}
6403     fi
6404     # Neutralize special characters interpreted by sed in replacement strings.
6405     case $configure_input in #(
6406     *\&* | *\|* | *\\* )
6407        ac_sed_conf_input=`$as_echo "$configure_input" |
6408        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6409     *) ac_sed_conf_input=$configure_input;;
6410     esac
6411
6412     case $ac_tag in
6413     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6414       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6415     esac
6416     ;;
6417   esac
6418
6419   ac_dir=`$as_dirname -- "$ac_file" ||
6420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6421          X"$ac_file" : 'X\(//\)[^/]' \| \
6422          X"$ac_file" : 'X\(//\)$' \| \
6423          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6424 $as_echo X"$ac_file" |
6425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6426             s//\1/
6427             q
6428           }
6429           /^X\(\/\/\)[^/].*/{
6430             s//\1/
6431             q
6432           }
6433           /^X\(\/\/\)$/{
6434             s//\1/
6435             q
6436           }
6437           /^X\(\/\).*/{
6438             s//\1/
6439             q
6440           }
6441           s/.*/./; q'`
6442   as_dir="$ac_dir"; as_fn_mkdir_p
6443   ac_builddir=.
6444
6445 case "$ac_dir" in
6446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6447 *)
6448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6449   # A ".." for each directory in $ac_dir_suffix.
6450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6451   case $ac_top_builddir_sub in
6452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6454   esac ;;
6455 esac
6456 ac_abs_top_builddir=$ac_pwd
6457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6458 # for backward compatibility:
6459 ac_top_builddir=$ac_top_build_prefix
6460
6461 case $srcdir in
6462   .)  # We are building in place.
6463     ac_srcdir=.
6464     ac_top_srcdir=$ac_top_builddir_sub
6465     ac_abs_top_srcdir=$ac_pwd ;;
6466   [\\/]* | ?:[\\/]* )  # Absolute name.
6467     ac_srcdir=$srcdir$ac_dir_suffix;
6468     ac_top_srcdir=$srcdir
6469     ac_abs_top_srcdir=$srcdir ;;
6470   *) # Relative name.
6471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6472     ac_top_srcdir=$ac_top_build_prefix$srcdir
6473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6474 esac
6475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6476
6477
6478   case $ac_mode in
6479   :F)
6480   #
6481   # CONFIG_FILE
6482   #
6483
6484 _ACEOF
6485
6486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6487 # If the template does not know about datarootdir, expand it.
6488 # FIXME: This hack should be removed a few years after 2.60.
6489 ac_datarootdir_hack=; ac_datarootdir_seen=
6490 ac_sed_dataroot='
6491 /datarootdir/ {
6492   p
6493   q
6494 }
6495 /@datadir@/p
6496 /@docdir@/p
6497 /@infodir@/p
6498 /@localedir@/p
6499 /@mandir@/p'
6500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6501 *datarootdir*) ac_datarootdir_seen=yes;;
6502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6505 _ACEOF
6506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6507   ac_datarootdir_hack='
6508   s&@datadir@&$datadir&g
6509   s&@docdir@&$docdir&g
6510   s&@infodir@&$infodir&g
6511   s&@localedir@&$localedir&g
6512   s&@mandir@&$mandir&g
6513   s&\\\${datarootdir}&$datarootdir&g' ;;
6514 esac
6515 _ACEOF
6516
6517 # Neutralize VPATH when `$srcdir' = `.'.
6518 # Shell code in configure.ac might set extrasub.
6519 # FIXME: do we really want to maintain this feature?
6520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6521 ac_sed_extra="$ac_vpsub
6522 $extrasub
6523 _ACEOF
6524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6525 :t
6526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6527 s|@configure_input@|$ac_sed_conf_input|;t t
6528 s&@top_builddir@&$ac_top_builddir_sub&;t t
6529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6530 s&@srcdir@&$ac_srcdir&;t t
6531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6532 s&@top_srcdir@&$ac_top_srcdir&;t t
6533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6534 s&@builddir@&$ac_builddir&;t t
6535 s&@abs_builddir@&$ac_abs_builddir&;t t
6536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6537 $ac_datarootdir_hack
6538 "
6539 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6540   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6541
6542 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6543   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6544   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6545       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6547 which seems to be undefined.  Please make sure it is defined" >&5
6548 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6549 which seems to be undefined.  Please make sure it is defined" >&2;}
6550
6551   rm -f "$ac_tmp/stdin"
6552   case $ac_file in
6553   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6554   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6555   esac \
6556   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6557  ;;
6558
6559
6560
6561   esac
6562
6563
6564   case $ac_file$ac_mode in
6565     "sa1":F) chmod +x sa1 ;;
6566     "sa2":F) chmod +x sa2 ;;
6567     "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
6568     "sysstat":F) chmod +x sysstat ;;
6569
6570   esac
6571 done # for ac_tag
6572
6573
6574 as_fn_exit 0
6575 _ACEOF
6576 ac_clean_files=$ac_clean_files_save
6577
6578 test $ac_write_fail = 0 ||
6579   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6580
6581
6582 # configure is writing to config.log, and then calls config.status.
6583 # config.status does its own redirection, appending to config.log.
6584 # Unfortunately, on DOS this fails, as config.log is still kept open
6585 # by configure, so config.status won't be able to write to it; its
6586 # output is simply discarded.  So we exec the FD to /dev/null,
6587 # effectively closing config.log, so it can be properly (re)opened and
6588 # appended to by config.status.  When coming back to configure, we
6589 # need to make the FD available again.
6590 if test "$no_create" != yes; then
6591   ac_cs_success=:
6592   ac_config_status_args=
6593   test "$silent" = yes &&
6594     ac_config_status_args="$ac_config_status_args --quiet"
6595   exec 5>/dev/null
6596   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6597   exec 5>>config.log
6598   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6599   # would make configure fail if this is the last instruction.
6600   $ac_cs_success || as_fn_exit 1
6601 fi
6602 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6604 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6605 fi
6606
6607
6608 echo "
6609    Sysstat version:             $PACKAGE_VERSION
6610    Installation prefix:         $prefix
6611    rc directory:                ${RC_DIR}
6612    Init directory:              ${INIT_DIR}
6613    Systemd unit dir:            ${with_systemdsystemunitdir}
6614    Configuration directory:     ${SYSCONFIG_DIR}
6615    Man pages directory:         $mandir
6616    Compiler:                    $CC
6617    Compiler flags:              $CFLAGS
6618 "
6619