Debian Codegraph @

configure

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