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