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