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