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