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