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