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