Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for cvsd 1.0.25.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
8 # 2010, 2011, 2012, 2013, 2024 Arthur de Jong
9 #
10 # This configure script is derived from configure.ac which is free software;
11 # you can redistribute it and/or modify it under the terms of the GNU General
12 # Public License as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 # See the configure.ac file for more details.
15 #
16 #
17 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
18 # Inc.
19 #
20 #
21 # This configure script is free software; the Free Software Foundation
22 # gives unlimited permission to copy, distribute and modify it.
23 ## -------------------- ##
24 ## M4sh Initialization. ##
25 ## -------------------- ##
26
27 # Be more Bourne compatible
28 DUALCASE=1; export DUALCASE # for MKS sh
29 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
30 then :
31 emulate sh
32 NULLCMD=:
33 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34 # is contrary to our usage. Disable this feature.
35 alias -g '${1+"$@"}'='"$@"'
36 setopt NO_GLOB_SUBST
37 else case e in #(
38 e) case `(set -o) 2>/dev/null` in #(
39 *posix*) :
40 set -o posix ;; #(
41 *) :
42 ;;
43 esac ;;
44 esac
45 fi
46
47
48
49 # Reset variables that may have inherited troublesome values from
50 # the environment.
51
52 # IFS needs to be set, to space, tab, and newline, in precisely that order.
53 # (If _AS_PATH_WALK were called with IFS unset, it would have the
54 # side effect of setting IFS to empty, thus disabling word splitting.)
55 # Quoting is to prevent editors from complaining about space-tab.
56 as_nl='
57 '
58 export as_nl
59 IFS=" "" $as_nl"
60
61 PS1='$ '
62 PS2='> '
63 PS4='+ '
64
65 # Ensure predictable behavior from utilities with locale-dependent output.
66 LC_ALL=C
67 export LC_ALL
68 LANGUAGE=C
69 export LANGUAGE
70
71 # We cannot yet rely on "unset" to work, but we need these variables
72 # to be unset--not just set to an empty or harmless value--now, to
73 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
74 # also avoids known problems related to "unset" and subshell syntax
75 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
76 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
77 do eval test \${$as_var+y} \
78 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
79 done
80
81 # Ensure that fds 0, 1, and 2 are open.
82 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
83 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
84 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
85
86 # The user is always right.
87 if ${PATH_SEPARATOR+false} :; then
88 PATH_SEPARATOR=:
89 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
90 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
91 PATH_SEPARATOR=';'
92 }
93 fi
94
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 as_myself=
98 case $0 in #((
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 for as_dir in $PATH
102 do
103 IFS=$as_save_IFS
104 case $as_dir in #(((
105 '') as_dir=./ ;;
106 */) ;;
107 *) as_dir=$as_dir/ ;;
108 esac
109 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
110 done
111 IFS=$as_save_IFS
112
113 ;;
114 esac
115 # We did not find ourselves, most probably we were run as 'sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x; then
118 as_myself=$0
119 fi
120 if test ! -f "$as_myself"; then
121 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122 exit 1
123 fi
124
125
126 # Use a proper internal environment variable to ensure we don't fall
127 # into an infinite loop, continuously re-executing ourselves.
128 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
129 _as_can_reexec=no; export _as_can_reexec;
130 # We cannot yet assume a decent shell, so we have to provide a
131 # neutralization value for shells without unset; and this also
132 # works around shells that cannot unset nonexistent variables.
133 # Preserve -v and -x to the replacement shell.
134 BASH_ENV=/dev/null
135 ENV=/dev/null
136 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
137 case $- in # ((((
138 *v*x* | *x*v* ) as_opts=-vx ;;
139 *v* ) as_opts=-v ;;
140 *x* ) as_opts=-x ;;
141 * ) as_opts= ;;
142 esac
143 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
144 # Admittedly, this is quite paranoid, since all the known shells bail
145 # out after a failed 'exec'.
146 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
147 exit 255
148 fi
149 # We don't want this to propagate to other subprocesses.
150 { _as_can_reexec=; unset _as_can_reexec;}
151 if test "x$CONFIG_SHELL" = x; then
152 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
153 then :
154 emulate sh
155 NULLCMD=:
156 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
157 # is contrary to our usage. Disable this feature.
158 alias -g '\${1+\"\$@\"}'='\"\$@\"'
159 setopt NO_GLOB_SUBST
160 else case e in #(
161 e) case \`(set -o) 2>/dev/null\` in #(
162 *posix*) :
163 set -o posix ;; #(
164 *) :
165 ;;
166 esac ;;
167 esac
168 fi
169 "
170 as_required="as_fn_return () { (exit \$1); }
171 as_fn_success () { as_fn_return 0; }
172 as_fn_failure () { as_fn_return 1; }
173 as_fn_ret_success () { return 0; }
174 as_fn_ret_failure () { return 1; }
175
176 exitcode=0
177 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
178 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
179 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
180 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
181 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
182 then :
183
184 else case e in #(
185 e) exitcode=1; echo positional parameters were not saved. ;;
186 esac
187 fi
188 test x\$exitcode = x0 || exit 1
189 blah=\$(echo \$(echo blah))
190 test x\"\$blah\" = xblah || exit 1
191 test -x / || exit 1"
192 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
193 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
194 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
195 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
196 test \$(( 1 + 1 )) = 2 || exit 1"
197 if (eval "$as_required") 2>/dev/null
198 then :
199 as_have_required=yes
200 else case e in #(
201 e) as_have_required=no ;;
202 esac
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else case e in #(
208 e) 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 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else case e in #(
242 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi ;;
247 esac
248 fi
249
250
251 if test "x$CONFIG_SHELL" != x
252 then :
253 export CONFIG_SHELL
254 # We cannot yet assume a decent shell, so we have to provide a
255 # neutralization value for shells without unset; and this also
256 # works around shells that cannot unset nonexistent variables.
257 # Preserve -v and -x to the replacement shell.
258 BASH_ENV=/dev/null
259 ENV=/dev/null
260 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
261 case $- in # ((((
262 *v*x* | *x*v* ) as_opts=-vx ;;
263 *v* ) as_opts=-v ;;
264 *x* ) as_opts=-x ;;
265 * ) as_opts= ;;
266 esac
267 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
268 # Admittedly, this is quite paranoid, since all the known shells bail
269 # out after a failed 'exec'.
270 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
271 exit 255
272 fi
273
274 if test x$as_have_required = xno
275 then :
276 printf "%s\n" "$0: This script requires a shell more modern than all"
277 printf "%s\n" "$0: the shells that I found on your system."
278 if test ${ZSH_VERSION+y} ; then
279 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
280 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
281 else
282 printf "%s\n" "$0: Please tell [email protected] and
283 $0: [email protected] about your system,
284 $0: including any error possibly output before this
285 $0: message. Then install a modern shell, or manually run
286 $0: the script under such a shell if you do have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592
593 test -n "$DJDIR" || exec 7<&0 </dev/null
594 exec 6>&1
595
596 # Name of the host.
597 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
598 # so uname gets run too.
599 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600
601 #
602 # Initializations.
603 #
604 ac_default_prefix=/usr/local
605 ac_clean_files=
606 ac_config_libobj_dir=.
607 LIBOBJS=
608 cross_compiling=no
609 subdirs=
610 MFLAGS=
611 MAKEFLAGS=
612
613 # Identity of this package.
614 PACKAGE_NAME='cvsd'
615 PACKAGE_TARNAME='cvsd'
616 PACKAGE_VERSION='1.0.25'
617 PACKAGE_STRING='cvsd 1.0.25'
618 PACKAGE_BUGREPORT='[email protected]'
619 PACKAGE_URL=''
620
621 ac_unique_file="cvsd.c"
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_func_c_list=
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 CONFIGURE_CMD
659 CVSD_BIN
660 CONFIGFILE
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 LIBOBJS
665 PERL
666 CVS
667 SED
668 CHMOD
669 EGREP
670 GREP
671 LN_S
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 CSCOPE
693 ETAGS
694 CTAGS
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 RELEASE_MONTH
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 runstatedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL
758 am__quote'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_dependency_tracking
764 with_cvs
765 with_perl
766 enable_debug
767 enable_warnings
768 enable_maintainer_mode
769 with_libwrap
770 with_capabilities
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 runstatedir='${localstatedir}/run'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: '$ac_useropt'"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: '$ac_useropt'"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -runstatedir | --runstatedir | --runstatedi | --runstated \
1070 | --runstate | --runstat | --runsta | --runst | --runs \
1071 | --run | --ru | --r)
1072 ac_prev=runstatedir ;;
1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1075 | --run=* | --ru=* | --r=*)
1076 runstatedir=$ac_optarg ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: '$ac_useropt'"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: '$ac_useropt'"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: '$ac_option'
1174 Try '$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir runstatedir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: '$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 printf "%s\n" X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 'configure' configures cvsd 1.0.25 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print 'checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for '--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or '..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, 'make install' will install all the files in
1355 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than '$ac_default_prefix' using '--prefix',
1357 for instance '--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/cvsd]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of cvsd 1.0.25:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --enable-debug enable extensive debugging and logging
1410 --enable-warnings enable extra compiler warnings (gcc)
1411 --disable-maintainer-mode
1412 disable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414
1415 Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-cvs=PATH specify location of cvs binary
1419 --with-perl=PATH specify location of perl binary
1420 --with-libwrap[=PATH] enable tcp wrapper support (disabled by default)
1421 --with-capabilities enable capabilities support (experimental)
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431
1432 Use these variables to override the choices made by 'configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <[email protected]>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for configure.gnu first; this name is used for a wrapper for
1482 # Metaconfig's "Configure" on case-insensitive file systems.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1494 fi
1495
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 cvsd configure 1.0.25
1500 generated by GNU Autoconf 2.72
1501
1502 Copyright (C) 2023 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505
1506 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
1507 2010, 2011, 2012, 2013, 2024 Arthur de Jong
1508
1509 This configure script is derived from configure.ac which is free software;
1510 you can redistribute it and/or modify it under the terms of the GNU General
1511 Public License as published by the Free Software Foundation; either version 2
1512 of the License, or (at your option) any later version.
1513 See the configure.ac file for more details.
1514 _ACEOF
1515 exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext conftest.beam
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 printf "%s\n" "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext
1548 then :
1549 ac_retval=0
1550 else case e in #(
1551 e) printf "%s\n" "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1 ;;
1555 esac
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1563 # -------------------------------------------------------
1564 # Tests whether HEADER exists and can be compiled using the include files in
1565 # INCLUDES, setting the cache variable VAR accordingly.
1566 ac_fn_c_check_header_compile ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 printf %s "checking for $2... " >&6; }
1571 if eval test \${$3+y}
1572 then :
1573 printf %s "(cached) " >&6
1574 else case e in #(
1575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1577 $4
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"
1581 then :
1582 eval "$3=yes"
1583 else case e in #(
1584 e) eval "$3=no" ;;
1585 esac
1586 fi
1587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1588 esac
1589 fi
1590 eval ac_res=\$$3
1591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 printf "%s\n" "$ac_res" >&6; }
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594
1595 } # ac_fn_c_check_header_compile
1596
1597 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1598 # -------------------------------------------
1599 # Tests whether TYPE exists after having included INCLUDES, setting cache
1600 # variable VAR accordingly.
1601 ac_fn_c_check_type ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 printf %s "checking for $2... " >&6; }
1606 if eval test \${$3+y}
1607 then :
1608 printf %s "(cached) " >&6
1609 else case e in #(
1610 e) eval "$3=no"
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 int
1615 main (void)
1616 {
1617 if (sizeof ($2))
1618 return 0;
1619 ;
1620 return 0;
1621 }
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"
1624 then :
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main (void)
1630 {
1631 if (sizeof (($2)))
1632 return 0;
1633 ;
1634 return 0;
1635 }
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"
1638 then :
1639
1640 else case e in #(
1641 e) eval "$3=yes" ;;
1642 esac
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1647 esac
1648 fi
1649 eval ac_res=\$$3
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 printf "%s\n" "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_c_check_type
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 printf "%s\n" "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1684 }
1685 then :
1686 ac_retval=0
1687 else case e in #(
1688 e) printf "%s\n" "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1 ;;
1692 esac
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else case e in #(
1716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1721
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (void); below. */
1724
1725 #include <limits.h>
1726 #undef $2
1727
1728 /* Override any GCC internal prototype to avoid an error.
1729 Use char because int might match the return type of a GCC
1730 builtin and then its argument prototype would still apply. */
1731 #ifdef __cplusplus
1732 extern "C"
1733 #endif
1734 char $2 (void);
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined __stub_$2 || defined __stub___$2
1739 choke me
1740 #endif
1741
1742 int
1743 main (void)
1744 {
1745 return $2 ();
1746 ;
1747 return 0;
1748 }
1749 _ACEOF
1750 if ac_fn_c_try_link "$LINENO"
1751 then :
1752 eval "$3=yes"
1753 else case e in #(
1754 e) eval "$3=no" ;;
1755 esac
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1758 conftest$ac_exeext conftest.$ac_ext ;;
1759 esac
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_func
1767
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1771 # executables *can* be run.
1772 ac_fn_c_try_run ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 printf "%s\n" "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1783 ac_status=$?
1784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 printf "%s\n" "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1793 ac_status=$?
1794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }
1796 then :
1797 ac_retval=0
1798 else case e in #(
1799 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1800 printf "%s\n" "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=$ac_status ;;
1804 esac
1805 fi
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811 ac_configure_args_raw=
1812 for ac_arg
1813 do
1814 case $ac_arg in
1815 *\'*)
1816 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 as_fn_append ac_configure_args_raw " '$ac_arg'"
1819 done
1820
1821 case $ac_configure_args_raw in
1822 *$as_nl*)
1823 ac_safe_unquote= ;;
1824 *)
1825 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1826 ac_unsafe_a="$ac_unsafe_z#~"
1827 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1828 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1829 esac
1830
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1834
1835 It was created by cvsd $as_me 1.0.25, which was
1836 generated by GNU Autoconf 2.72. Invocation command line was
1837
1838 $ $0$ac_configure_args_raw
1839
1840 _ACEOF
1841 exec 5>>config.log
1842 {
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1847
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864
1865 _ASUNAME
1866
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 case $as_dir in #(((
1872 '') as_dir=./ ;;
1873 */) ;;
1874 *) as_dir=$as_dir/ ;;
1875 esac
1876 printf "%s\n" "PATH: $as_dir"
1877 done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903 for ac_arg
1904 do
1905 case $ac_arg in
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1909 continue ;;
1910 *\'*)
1911 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 esac
1913 case $ac_pass in
1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915 2)
1916 as_fn_append ac_configure_args1 " '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1919 else
1920 case $ac_arg in
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 esac
1928 ;;
1929 -* ) ac_must_keep_next=true ;;
1930 esac
1931 fi
1932 as_fn_append ac_configure_args " '$ac_arg'"
1933 ;;
1934 esac
1935 done
1936 done
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Sanitize IFS.
1947 IFS=" "" $as_nl"
1948 # Save into config.log some information that might help in debugging.
1949 {
1950 echo
1951
1952 printf "%s\n" "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1955 echo
1956 # The following way of writing the cache mishandles newlines in values,
1957 (
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in #(
1961 *${as_nl}*)
1962 case $ac_var in #(
1963 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 esac
1966 case $ac_var in #(
1967 _ | IFS | as_nl) ;; #(
1968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969 *) { eval $ac_var=; unset $ac_var;} ;;
1970 esac ;;
1971 esac
1972 done
1973 (set) 2>&1 |
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1976 sed -n \
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 ;; #(
1980 *)
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982 ;;
1983 esac |
1984 sort
1985 )
1986 echo
1987
1988 printf "%s\n" "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1991 echo
1992 for ac_var in $ac_subst_vars
1993 do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 printf "%s\n" "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2001
2002 if test -n "$ac_subst_files"; then
2003 printf "%s\n" "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2006 echo
2007 for ac_var in $ac_subst_files
2008 do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 printf "%s\n" "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2016 fi
2017
2018 if test -s confdefs.h; then
2019 printf "%s\n" "## ----------- ##
2020 ## confdefs.h. ##
2021 ## ----------- ##"
2022 echo
2023 cat confdefs.h
2024 echo
2025 fi
2026 test "$ac_signal" != 0 &&
2027 printf "%s\n" "$as_me: caught signal $ac_signal"
2028 printf "%s\n" "$as_me: exit $exit_status"
2029 } >&5
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 exit $exit_status
2033 ' 0
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2038
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2041
2042 printf "%s\n" "/* confdefs.h */" > confdefs.h
2043
2044 # Predefined preprocessor variables.
2045
2046 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2049
2050 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2051
2052 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2053
2054 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2055
2056 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2057
2058
2059 # Let the site file select an alternate cache file if it wants to.
2060 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_files="$CONFIG_SITE"
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2065 else
2066 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2067 fi
2068
2069 for ac_site_file in $ac_site_files
2070 do
2071 case $ac_site_file in #(
2072 */*) :
2073 ;; #(
2074 *) :
2075 ac_site_file=./$ac_site_file ;;
2076 esac
2077 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2080 sed 's/^/| /' "$ac_site_file" >&5
2081 . "$ac_site_file" \
2082 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2083 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2084 as_fn_error $? "failed to load site script $ac_site_file
2085 See 'config.log' for more details" "$LINENO" 5; }
2086 fi
2087 done
2088
2089 if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special files
2091 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2092 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2095 case $cache_file in
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2098 esac
2099 fi
2100 else
2101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2103 >$cache_file
2104 fi
2105
2106 # Test code for whether the C compiler supports C89 (global declarations)
2107 ac_c_conftest_c89_globals='
2108 /* Does the compiler advertise C89 conformance?
2109 Do not test the value of __STDC__, because some compilers set it to 0
2110 while being otherwise adequately conformant. */
2111 #if !defined __STDC__
2112 # error "Compiler does not advertise C89 conformance"
2113 #endif
2114
2115 #include <stddef.h>
2116 #include <stdarg.h>
2117 struct stat;
2118 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2119 struct buf { int x; };
2120 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2121 static char *e (char **p, int i)
2122 {
2123 return p[i];
2124 }
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2126 {
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133 }
2134
2135 /* C89 style stringification. */
2136 #define noexpand_stringify(a) #a
2137 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2138
2139 /* C89 style token pasting. Exercises some of the corner cases that
2140 e.g. old MSVC gets wrong, but not very hard. */
2141 #define noexpand_concat(a,b) a##b
2142 #define expand_concat(a,b) noexpand_concat(a,b)
2143 extern int vA;
2144 extern int vbee;
2145 #define aye A
2146 #define bee B
2147 int *pvA = &expand_concat(v,aye);
2148 int *pvbee = &noexpand_concat(v,bee);
2149
2150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2151 function prototypes and stuff, but not \xHH hex character constants.
2152 These do not provoke an error unfortunately, instead are silently treated
2153 as an "x". The following induces an error, until -std is added to get
2154 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2155 array size at least. It is necessary to write \x00 == 0 to get something
2156 that is true only with -std. */
2157 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2158
2159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2160 inside strings and character constants. */
2161 #define FOO(x) '\''x'\''
2162 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2163
2164 int test (int i, double x);
2165 struct s1 {int (*f) (int a);};
2166 struct s2 {int (*f) (double a);};
2167 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2168 int, int);'
2169
2170 # Test code for whether the C compiler supports C89 (body of main).
2171 ac_c_conftest_c89_main='
2172 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2173 '
2174
2175 # Test code for whether the C compiler supports C99 (global declarations)
2176 ac_c_conftest_c99_globals='
2177 /* Does the compiler advertise C99 conformance? */
2178 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2179 # error "Compiler does not advertise C99 conformance"
2180 #endif
2181
2182 // See if C++-style comments work.
2183
2184 #include <stdbool.h>
2185 extern int puts (const char *);
2186 extern int printf (const char *, ...);
2187 extern int dprintf (int, const char *, ...);
2188 extern void *malloc (size_t);
2189 extern void free (void *);
2190
2191 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2192 // dprintf is used instead of fprintf to avoid needing to declare
2193 // FILE and stderr.
2194 #define debug(...) dprintf (2, __VA_ARGS__)
2195 #define showlist(...) puts (#__VA_ARGS__)
2196 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2197 static void
2198 test_varargs_macros (void)
2199 {
2200 int x = 1234;
2201 int y = 5678;
2202 debug ("Flag");
2203 debug ("X = %d\n", x);
2204 showlist (The first, second, and third items.);
2205 report (x>y, "x is %d but y is %d", x, y);
2206 }
2207
2208 // Check long long types.
2209 #define BIG64 18446744073709551615ull
2210 #define BIG32 4294967295ul
2211 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2212 #if !BIG_OK
2213 #error "your preprocessor is broken"
2214 #endif
2215 #if BIG_OK
2216 #else
2217 #error "your preprocessor is broken"
2218 #endif
2219 static long long int bignum = -9223372036854775807LL;
2220 static unsigned long long int ubignum = BIG64;
2221
2222 struct incomplete_array
2223 {
2224 int datasize;
2225 double data[];
2226 };
2227
2228 struct named_init {
2229 int number;
2230 const wchar_t *name;
2231 double average;
2232 };
2233
2234 typedef const char *ccp;
2235
2236 static inline int
2237 test_restrict (ccp restrict text)
2238 {
2239 // Iterate through items via the restricted pointer.
2240 // Also check for declarations in for loops.
2241 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2242 continue;
2243 return 0;
2244 }
2245
2246 // Check varargs and va_copy.
2247 static bool
2248 test_varargs (const char *format, ...)
2249 {
2250 va_list args;
2251 va_start (args, format);
2252 va_list args_copy;
2253 va_copy (args_copy, args);
2254
2255 const char *str = "";
2256 int number = 0;
2257 float fnumber = 0;
2258
2259 while (*format)
2260 {
2261 switch (*format++)
2262 {
2263 case '\''s'\'': // string
2264 str = va_arg (args_copy, const char *);
2265 break;
2266 case '\''d'\'': // int
2267 number = va_arg (args_copy, int);
2268 break;
2269 case '\''f'\'': // float
2270 fnumber = va_arg (args_copy, double);
2271 break;
2272 default:
2273 break;
2274 }
2275 }
2276 va_end (args_copy);
2277 va_end (args);
2278
2279 return *str && number && fnumber;
2280 }
2281 '
2282
2283 # Test code for whether the C compiler supports C99 (body of main).
2284 ac_c_conftest_c99_main='
2285 // Check bool.
2286 _Bool success = false;
2287 success |= (argc != 0);
2288
2289 // Check restrict.
2290 if (test_restrict ("String literal") == 0)
2291 success = true;
2292 char *restrict newvar = "Another string";
2293
2294 // Check varargs.
2295 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2296 test_varargs_macros ();
2297
2298 // Check flexible array members.
2299 struct incomplete_array *ia =
2300 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2301 ia->datasize = 10;
2302 for (int i = 0; i < ia->datasize; ++i)
2303 ia->data[i] = i * 1.234;
2304 // Work around memory leak warnings.
2305 free (ia);
2306
2307 // Check named initializers.
2308 struct named_init ni = {
2309 .number = 34,
2310 .name = L"Test wide string",
2311 .average = 543.34343,
2312 };
2313
2314 ni.number = 58;
2315
2316 int dynamic_array[ni.number];
2317 dynamic_array[0] = argv[0][0];
2318 dynamic_array[ni.number - 1] = 543;
2319
2320 // work around unused variable warnings
2321 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2322 || dynamic_array[ni.number - 1] != 543);
2323 '
2324
2325 # Test code for whether the C compiler supports C11 (global declarations)
2326 ac_c_conftest_c11_globals='
2327 /* Does the compiler advertise C11 conformance? */
2328 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2329 # error "Compiler does not advertise C11 conformance"
2330 #endif
2331
2332 // Check _Alignas.
2333 char _Alignas (double) aligned_as_double;
2334 char _Alignas (0) no_special_alignment;
2335 extern char aligned_as_int;
2336 char _Alignas (0) _Alignas (int) aligned_as_int;
2337
2338 // Check _Alignof.
2339 enum
2340 {
2341 int_alignment = _Alignof (int),
2342 int_array_alignment = _Alignof (int[100]),
2343 char_alignment = _Alignof (char)
2344 };
2345 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2346
2347 // Check _Noreturn.
2348 int _Noreturn does_not_return (void) { for (;;) continue; }
2349
2350 // Check _Static_assert.
2351 struct test_static_assert
2352 {
2353 int x;
2354 _Static_assert (sizeof (int) <= sizeof (long int),
2355 "_Static_assert does not work in struct");
2356 long int y;
2357 };
2358
2359 // Check UTF-8 literals.
2360 #define u8 syntax error!
2361 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2362
2363 // Check duplicate typedefs.
2364 typedef long *long_ptr;
2365 typedef long int *long_ptr;
2366 typedef long_ptr long_ptr;
2367
2368 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2369 struct anonymous
2370 {
2371 union {
2372 struct { int i; int j; };
2373 struct { int k; long int l; } w;
2374 };
2375 int m;
2376 } v1;
2377 '
2378
2379 # Test code for whether the C compiler supports C11 (body of main).
2380 ac_c_conftest_c11_main='
2381 _Static_assert ((offsetof (struct anonymous, i)
2382 == offsetof (struct anonymous, w.k)),
2383 "Anonymous union alignment botch");
2384 v1.i = 2;
2385 v1.w.k = 5;
2386 ok |= v1.i != 5;
2387 '
2388
2389 # Test code for whether the C compiler supports C11 (complete).
2390 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2391 ${ac_c_conftest_c99_globals}
2392 ${ac_c_conftest_c11_globals}
2393
2394 int
2395 main (int argc, char **argv)
2396 {
2397 int ok = 0;
2398 ${ac_c_conftest_c89_main}
2399 ${ac_c_conftest_c99_main}
2400 ${ac_c_conftest_c11_main}
2401 return ok;
2402 }
2403 "
2404
2405 # Test code for whether the C compiler supports C99 (complete).
2406 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2407 ${ac_c_conftest_c99_globals}
2408
2409 int
2410 main (int argc, char **argv)
2411 {
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 return ok;
2416 }
2417 "
2418
2419 # Test code for whether the C compiler supports C89 (complete).
2420 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2421
2422 int
2423 main (int argc, char **argv)
2424 {
2425 int ok = 0;
2426 ${ac_c_conftest_c89_main}
2427 return ok;
2428 }
2429 "
2430
2431 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2432 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2433 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2434 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2435 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2436 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2437 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2438 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2439 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2440 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2441 as_fn_append ac_func_c_list " fork HAVE_FORK"
2442 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2443 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2444 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2445
2446 # Auxiliary files required by this configure script.
2447 ac_aux_files="compile missing install-sh"
2448
2449 # Locations in which to look for auxiliary files.
2450 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2451
2452 # Search for a directory containing all of the required auxiliary files,
2453 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2454 # If we don't find one directory that contains all the files we need,
2455 # we report the set of missing files from the *first* directory in
2456 # $ac_aux_dir_candidates and give up.
2457 ac_missing_aux_files=""
2458 ac_first_candidate=:
2459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 as_found=false
2462 for as_dir in $ac_aux_dir_candidates
2463 do
2464 IFS=$as_save_IFS
2465 case $as_dir in #(((
2466 '') as_dir=./ ;;
2467 */) ;;
2468 *) as_dir=$as_dir/ ;;
2469 esac
2470 as_found=:
2471
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2473 ac_aux_dir_found=yes
2474 ac_install_sh=
2475 for ac_aux in $ac_aux_files
2476 do
2477 # As a special case, if "install-sh" is required, that requirement
2478 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2479 # and $ac_install_sh is set appropriately for whichever one is found.
2480 if test x"$ac_aux" = x"install-sh"
2481 then
2482 if test -f "${as_dir}install-sh"; then
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2484 ac_install_sh="${as_dir}install-sh -c"
2485 elif test -f "${as_dir}install.sh"; then
2486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2487 ac_install_sh="${as_dir}install.sh -c"
2488 elif test -f "${as_dir}shtool"; then
2489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2490 ac_install_sh="${as_dir}shtool install -c"
2491 else
2492 ac_aux_dir_found=no
2493 if $ac_first_candidate; then
2494 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2495 else
2496 break
2497 fi
2498 fi
2499 else
2500 if test -f "${as_dir}${ac_aux}"; then
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2502 else
2503 ac_aux_dir_found=no
2504 if $ac_first_candidate; then
2505 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2506 else
2507 break
2508 fi
2509 fi
2510 fi
2511 done
2512 if test "$ac_aux_dir_found" = yes; then
2513 ac_aux_dir="$as_dir"
2514 break
2515 fi
2516 ac_first_candidate=false
2517
2518 as_found=false
2519 done
2520 IFS=$as_save_IFS
2521 if $as_found
2522 then :
2523
2524 else case e in #(
2525 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2526 esac
2527 fi
2528
2529
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 if test -f "${ac_aux_dir}config.guess"; then
2535 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2536 fi
2537 if test -f "${ac_aux_dir}config.sub"; then
2538 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2539 fi
2540 if test -f "$ac_aux_dir/configure"; then
2541 ac_configure="$SHELL ${ac_aux_dir}configure"
2542 fi
2543
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2555 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2559 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2562 *)
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2569 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2573 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2575 fi
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2577 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2579 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2592 fi
2593 done
2594 if $ac_cache_corrupted; then
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2596 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2600 and start over" "$LINENO" 5
2601 fi
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2605
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611
2612
2613 RELEASE_MONTH="Nov 2024"
2614
2615
2616
2617 # display notice and initialize automake
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring cvsd 1.0.25" >&5
2619 printf "%s\n" "$as_me: configuring cvsd 1.0.25" >&6;}
2620 am__api_version='1.16'
2621
2622
2623
2624 # Find a good install program. We prefer a C program (faster),
2625 # so one script is as good as another. But avoid the broken or
2626 # incompatible versions:
2627 # SysV /etc/install, /usr/sbin/install
2628 # SunOS /usr/etc/install
2629 # IRIX /sbin/install
2630 # AIX /bin/install
2631 # AmigaOS /C/install, which installs bootblocks on floppy discs
2632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2635 # OS/2's system install, which has a completely different semantic
2636 # ./install, which can be erroneously created by make from ./install.sh.
2637 # Reject install programs that cannot install multiple files.
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2639 printf %s "checking for a BSD-compatible install... " >&6; }
2640 if test -z "$INSTALL"; then
2641 if test ${ac_cv_path_install+y}
2642 then :
2643 printf %s "(cached) " >&6
2644 else case e in #(
2645 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 case $as_dir in #(((
2650 '') as_dir=./ ;;
2651 */) ;;
2652 *) as_dir=$as_dir/ ;;
2653 esac
2654 # Account for fact that we put trailing slashes in our PATH walk.
2655 case $as_dir in #((
2656 ./ | /[cC]/* | \
2657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2658 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2659 /usr/ucb/* ) ;;
2660 *)
2661 # OSF1 and SCO ODT 3.0 have their own names for install.
2662 # Don't use installbsd from OSF since it installs stuff as root
2663 # by default.
2664 for ac_prog in ginstall scoinst install; do
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2667 if test $ac_prog = install &&
2668 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2669 # AIX install. It has an incompatible calling convention.
2670 :
2671 elif test $ac_prog = install &&
2672 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673 # program-specific install script used by HP pwplus--don't use.
2674 :
2675 else
2676 rm -rf conftest.one conftest.two conftest.dir
2677 echo one > conftest.one
2678 echo two > conftest.two
2679 mkdir conftest.dir
2680 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2681 test -s conftest.one && test -s conftest.two &&
2682 test -s conftest.dir/conftest.one &&
2683 test -s conftest.dir/conftest.two
2684 then
2685 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2686 break 3
2687 fi
2688 fi
2689 fi
2690 done
2691 done
2692 ;;
2693 esac
2694
2695 done
2696 IFS=$as_save_IFS
2697
2698 rm -rf conftest.one conftest.two conftest.dir
2699 ;;
2700 esac
2701 fi
2702 if test ${ac_cv_path_install+y}; then
2703 INSTALL=$ac_cv_path_install
2704 else
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for INSTALL within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 INSTALL=$ac_install_sh
2710 fi
2711 fi
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2713 printf "%s\n" "$INSTALL" >&6; }
2714
2715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2716 # It thinks the first close brace ends the variable substitution.
2717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2718
2719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2720
2721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2722
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2724 printf %s "checking whether build environment is sane... " >&6; }
2725 # Reject unsafe characters in $srcdir or the absolute working directory
2726 # name. Accept space and tab only in the latter.
2727 am_lf='
2728 '
2729 case `pwd` in
2730 *[\\\"\#\$\&\'\`$am_lf]*)
2731 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2732 esac
2733 case $srcdir in
2734 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2735 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2736 esac
2737
2738 # Do 'set' in a subshell so we don't clobber the current shell's
2739 # arguments. Must try -L first in case configure is actually a
2740 # symlink; some systems play weird games with the mod time of symlinks
2741 # (eg FreeBSD returns the mod time of the symlink's containing
2742 # directory).
2743 if (
2744 am_has_slept=no
2745 for am_try in 1 2; do
2746 echo "timestamp, slept: $am_has_slept" > conftest.file
2747 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2748 if test "$*" = "X"; then
2749 # -L didn't work.
2750 set X `ls -t "$srcdir/configure" conftest.file`
2751 fi
2752 if test "$*" != "X $srcdir/configure conftest.file" \
2753 && test "$*" != "X conftest.file $srcdir/configure"; then
2754
2755 # If neither matched, then we have a broken ls. This can happen
2756 # if, for instance, CONFIG_SHELL is bash and it inherits a
2757 # broken ls alias from the environment. This has actually
2758 # happened. Such a system could not be considered "sane".
2759 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2760 alias in your environment" "$LINENO" 5
2761 fi
2762 if test "$2" = conftest.file || test $am_try -eq 2; then
2763 break
2764 fi
2765 # Just in case.
2766 sleep 1
2767 am_has_slept=yes
2768 done
2769 test "$2" = conftest.file
2770 )
2771 then
2772 # Ok.
2773 :
2774 else
2775 as_fn_error $? "newly created file is older than distributed files!
2776 Check your system clock" "$LINENO" 5
2777 fi
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 printf "%s\n" "yes" >&6; }
2780 # If we didn't sleep, we still need to ensure time stamps of config.status and
2781 # generated files are strictly newer.
2782 am_sleep_pid=
2783 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2784 ( sleep 1 ) &
2785 am_sleep_pid=$!
2786 fi
2787
2788 rm -f conftest.file
2789
2790 test "$program_prefix" != NONE &&
2791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2792 # Use a double $ so make ignores it.
2793 test "$program_suffix" != NONE &&
2794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2795 # Double any \ or $.
2796 # By default was 's,x,x', remove it if useless.
2797 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2798 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2799
2800
2801 # Expand $ac_aux_dir to an absolute path.
2802 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2803
2804
2805 if test x"${MISSING+set}" != xset; then
2806 MISSING="\${SHELL} '$am_aux_dir/missing'"
2807 fi
2808 # Use eval to expand $SHELL
2809 if eval "$MISSING --is-lightweight"; then
2810 am_missing_run="$MISSING "
2811 else
2812 am_missing_run=
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2814 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2815 fi
2816
2817 if test x"${install_sh+set}" != xset; then
2818 case $am_aux_dir in
2819 *\ * | *\ *)
2820 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2821 *)
2822 install_sh="\${SHELL} $am_aux_dir/install-sh"
2823 esac
2824 fi
2825
2826 # Installed binaries are usually stripped using 'strip' when the user
2827 # run "make install-strip". However 'strip' might not be the right
2828 # tool to use in cross-compilation environments, therefore Automake
2829 # will honor the 'STRIP' environment variable to overrule this program.
2830 if test "$cross_compiling" != no; then
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}strip; ac_word=$2
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 printf %s "checking for $ac_word... " >&6; }
2836 if test ${ac_cv_prog_STRIP+y}
2837 then :
2838 printf %s "(cached) " >&6
2839 else case e in #(
2840 e) if test -n "$STRIP"; then
2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 case $as_dir in #(((
2848 '') as_dir=./ ;;
2849 */) ;;
2850 *) as_dir=$as_dir/ ;;
2851 esac
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi ;;
2863 esac
2864 fi
2865 STRIP=$ac_cv_prog_STRIP
2866 if test -n "$STRIP"; then
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868 printf "%s\n" "$STRIP" >&6; }
2869 else
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 printf "%s\n" "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$ac_cv_prog_STRIP"; then
2877 ac_ct_STRIP=$STRIP
2878 # Extract the first word of "strip", so it can be a program name with args.
2879 set dummy strip; ac_word=$2
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 printf %s "checking for $ac_word... " >&6; }
2882 if test ${ac_cv_prog_ac_ct_STRIP+y}
2883 then :
2884 printf %s "(cached) " >&6
2885 else case e in #(
2886 e) if test -n "$ac_ct_STRIP"; then
2887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 case $as_dir in #(((
2894 '') as_dir=./ ;;
2895 */) ;;
2896 *) as_dir=$as_dir/ ;;
2897 esac
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_STRIP="strip"
2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi ;;
2909 esac
2910 fi
2911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2912 if test -n "$ac_ct_STRIP"; then
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2914 printf "%s\n" "$ac_ct_STRIP" >&6; }
2915 else
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 printf "%s\n" "no" >&6; }
2918 fi
2919
2920 if test "x$ac_ct_STRIP" = x; then
2921 STRIP=":"
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 STRIP=$ac_ct_STRIP
2930 fi
2931 else
2932 STRIP="$ac_cv_prog_STRIP"
2933 fi
2934
2935 fi
2936 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2937
2938
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2940 printf %s "checking for a race-free mkdir -p... " >&6; }
2941 if test -z "$MKDIR_P"; then
2942 if test ${ac_cv_path_mkdir+y}
2943 then :
2944 printf %s "(cached) " >&6
2945 else case e in #(
2946 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2948 do
2949 IFS=$as_save_IFS
2950 case $as_dir in #(((
2951 '') as_dir=./ ;;
2952 */) ;;
2953 *) as_dir=$as_dir/ ;;
2954 esac
2955 for ac_prog in mkdir gmkdir; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2958 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2959 'mkdir ('*'coreutils) '* | \
2960 *'BusyBox '* | \
2961 'mkdir (fileutils) '4.1*)
2962 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2963 break 3;;
2964 esac
2965 done
2966 done
2967 done
2968 IFS=$as_save_IFS
2969 ;;
2970 esac
2971 fi
2972
2973 test -d ./--version && rmdir ./--version
2974 if test ${ac_cv_path_mkdir+y}; then
2975 MKDIR_P="$ac_cv_path_mkdir -p"
2976 else
2977 # As a last resort, use plain mkdir -p,
2978 # in the hope it doesn't have the bugs of ancient mkdir.
2979 MKDIR_P='mkdir -p'
2980 fi
2981 fi
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 printf "%s\n" "$MKDIR_P" >&6; }
2984
2985 for ac_prog in gawk mawk nawk awk
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 printf %s "checking for $ac_word... " >&6; }
2991 if test ${ac_cv_prog_AWK+y}
2992 then :
2993 printf %s "(cached) " >&6
2994 else case e in #(
2995 e) if test -n "$AWK"; then
2996 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 case $as_dir in #(((
3003 '') as_dir=./ ;;
3004 */) ;;
3005 *) as_dir=$as_dir/ ;;
3006 esac
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_AWK="$ac_prog"
3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi ;;
3018 esac
3019 fi
3020 AWK=$ac_cv_prog_AWK
3021 if test -n "$AWK"; then
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3023 printf "%s\n" "$AWK" >&6; }
3024 else
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 printf "%s\n" "no" >&6; }
3027 fi
3028
3029
3030 test -n "$AWK" && break
3031 done
3032
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3034 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3035 set x ${MAKE-make}
3036 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3037 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3038 then :
3039 printf %s "(cached) " >&6
3040 else case e in #(
3041 e) cat >conftest.make <<\_ACEOF
3042 SHELL = /bin/sh
3043 all:
3044 @echo '@@@%%%=$(MAKE)=@@@%%%'
3045 _ACEOF
3046 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3047 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3048 *@@@%%%=?*=@@@%%%*)
3049 eval ac_cv_prog_make_${ac_make}_set=yes;;
3050 *)
3051 eval ac_cv_prog_make_${ac_make}_set=no;;
3052 esac
3053 rm -f conftest.make ;;
3054 esac
3055 fi
3056 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 printf "%s\n" "yes" >&6; }
3059 SET_MAKE=
3060 else
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf "%s\n" "no" >&6; }
3063 SET_MAKE="MAKE=${MAKE-make}"
3064 fi
3065
3066 rm -rf .tst 2>/dev/null
3067 mkdir .tst 2>/dev/null
3068 if test -d .tst; then
3069 am__leading_dot=.
3070 else
3071 am__leading_dot=_
3072 fi
3073 rmdir .tst 2>/dev/null
3074
3075 # Check whether --enable-silent-rules was given.
3076 if test ${enable_silent_rules+y}
3077 then :
3078 enableval=$enable_silent_rules;
3079 fi
3080
3081 case $enable_silent_rules in # (((
3082 yes) AM_DEFAULT_VERBOSITY=0;;
3083 no) AM_DEFAULT_VERBOSITY=1;;
3084 *) AM_DEFAULT_VERBOSITY=1;;
3085 esac
3086 am_make=${MAKE-make}
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3088 printf %s "checking whether $am_make supports nested variables... " >&6; }
3089 if test ${am_cv_make_support_nested_variables+y}
3090 then :
3091 printf %s "(cached) " >&6
3092 else case e in #(
3093 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3094 BAR0=false
3095 BAR1=true
3096 V=1
3097 am__doit:
3098 @$(TRUE)
3099 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3100 am_cv_make_support_nested_variables=yes
3101 else
3102 am_cv_make_support_nested_variables=no
3103 fi ;;
3104 esac
3105 fi
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3107 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3108 if test $am_cv_make_support_nested_variables = yes; then
3109 AM_V='$(V)'
3110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3111 else
3112 AM_V=$AM_DEFAULT_VERBOSITY
3113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3114 fi
3115 AM_BACKSLASH='\'
3116
3117 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3119 # is not polluted with repeated "-I."
3120 am__isrc=' -I$(srcdir)'
3121 # test to see if srcdir already configured
3122 if test -f $srcdir/config.status; then
3123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124 fi
3125 fi
3126
3127 # test whether we have cygpath
3128 if test -z "$CYGPATH_W"; then
3129 if (cygpath --version) >/dev/null 2>/dev/null; then
3130 CYGPATH_W='cygpath -w'
3131 else
3132 CYGPATH_W=echo
3133 fi
3134 fi
3135
3136
3137 # Define the identity of the package.
3138 PACKAGE='cvsd'
3139 VERSION='1.0.25'
3140
3141
3142 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3143
3144
3145 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3146
3147 # Some tools Automake needs.
3148
3149 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3150
3151
3152 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3153
3154
3155 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3156
3157
3158 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3159
3160
3161 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3162
3163 # For better backward compatibility. To be removed once Automake 1.9.x
3164 # dies out for good. For more background, see:
3165 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3166 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3167 mkdir_p='$(MKDIR_P)'
3168
3169 # We need awk for the "check" target (and possibly the TAP driver). The
3170 # system "awk" is bad on some platforms.
3171 # Always define AMTAR for backward compatibility. Yes, it's still used
3172 # in the wild :-( We should find a proper way to deprecate it ...
3173 AMTAR='$${TAR-tar}'
3174
3175
3176 # We'll loop over all known methods to create a tar archive until one works.
3177 _am_tools='gnutar pax cpio none'
3178
3179 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3180
3181
3182
3183
3184
3185 # Variables for tags utilities; see am/tags.am
3186 if test -z "$CTAGS"; then
3187 CTAGS=ctags
3188 fi
3189
3190 if test -z "$ETAGS"; then
3191 ETAGS=etags
3192 fi
3193
3194 if test -z "$CSCOPE"; then
3195 CSCOPE=cscope
3196 fi
3197
3198
3199
3200 # POSIX will say in a future version that running "rm -f" with no argument
3201 # is OK; and we want to be able to make that assumption in our Makefile
3202 # recipes. So use an aggressive probe to check that the usage we want is
3203 # actually supported "in the wild" to an acceptable degree.
3204 # See automake bug#10828.
3205 # To make any issue more visible, cause the running configure to be aborted
3206 # by default if the 'rm' program in use doesn't match our expectations; the
3207 # user can still override this though.
3208 if rm -f && rm -fr && rm -rf; then : OK; else
3209 cat >&2 <<'END'
3210 Oops!
3211
3212 Your 'rm' program seems unable to run without file operands specified
3213 on the command line, even when the '-f' option is present. This is contrary
3214 to the behaviour of most rm programs out there, and not conforming with
3215 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3216
3217 Please tell [email protected] about your system, including the value
3218 of your $PATH and any error possibly output before this message. This
3219 can help us improve future automake versions.
3220
3221 END
3222 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3223 echo 'Configuration will proceed anyway, since you have set the' >&2
3224 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3225 echo >&2
3226 else
3227 cat >&2 <<'END'
3228 Aborting the configuration process, to ensure you take notice of the issue.
3229
3230 You can download and install GNU coreutils to get an 'rm' implementation
3231 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3232
3233 If you want to complete the configuration process using your problematic
3234 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3235 to "yes", and re-run configure.
3236
3237 END
3238 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3239 fi
3240 fi
3241
3242
3243 # create a config.h file (Automake will add -DHAVE_CONFIG_H)
3244 ac_config_headers="$ac_config_headers config.h"
3245
3246
3247 # AJ_PROG_FIND(VARIABLE,PROG-TO-CHECK-FOR)
3248 # ----------------------------------------
3249
3250
3251 # Checks for programs.
3252 for ac_prog in gawk mawk nawk awk
3253 do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 printf %s "checking for $ac_word... " >&6; }
3258 if test ${ac_cv_prog_AWK+y}
3259 then :
3260 printf %s "(cached) " >&6
3261 else case e in #(
3262 e) if test -n "$AWK"; then
3263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 case $as_dir in #(((
3270 '') as_dir=./ ;;
3271 */) ;;
3272 *) as_dir=$as_dir/ ;;
3273 esac
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_AWK="$ac_prog"
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi ;;
3285 esac
3286 fi
3287 AWK=$ac_cv_prog_AWK
3288 if test -n "$AWK"; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3290 printf "%s\n" "$AWK" >&6; }
3291 else
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3294 fi
3295
3296
3297 test -n "$AWK" && break
3298 done
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 printf %s "checking for $ac_word... " >&6; }
3319 if test ${ac_cv_prog_CC+y}
3320 then :
3321 printf %s "(cached) " >&6
3322 else case e in #(
3323 e) if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 case $as_dir in #(((
3331 '') as_dir=./ ;;
3332 */) ;;
3333 *) as_dir=$as_dir/ ;;
3334 esac
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi ;;
3346 esac
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 printf "%s\n" "$CC" >&6; }
3352 else
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 printf "%s\n" "no" >&6; }
3355 fi
3356
3357
3358 fi
3359 if test -z "$ac_cv_prog_CC"; then
3360 ac_ct_CC=$CC
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 printf %s "checking for $ac_word... " >&6; }
3365 if test ${ac_cv_prog_ac_ct_CC+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else case e in #(
3369 e) if test -n "$ac_ct_CC"; then
3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 case $as_dir in #(((
3377 '') as_dir=./ ;;
3378 */) ;;
3379 *) as_dir=$as_dir/ ;;
3380 esac
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_CC="gcc"
3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi ;;
3392 esac
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 printf "%s\n" "$ac_ct_CC" >&6; }
3398 else
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 printf "%s\n" "no" >&6; }
3401 fi
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3413 fi
3414 else
3415 CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 printf %s "checking for $ac_word... " >&6; }
3424 if test ${ac_cv_prog_CC+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else case e in #(
3428 e) if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 case $as_dir in #(((
3436 '') as_dir=./ ;;
3437 */) ;;
3438 *) as_dir=$as_dir/ ;;
3439 esac
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="${ac_tool_prefix}cc"
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi ;;
3451 esac
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 printf "%s\n" "$CC" >&6; }
3457 else
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 printf "%s\n" "no" >&6; }
3460 fi
3461
3462
3463 fi
3464 fi
3465 if test -z "$CC"; then
3466 # Extract the first word of "cc", so it can be a program name with args.
3467 set dummy cc; ac_word=$2
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 printf %s "checking for $ac_word... " >&6; }
3470 if test ${ac_cv_prog_CC+y}
3471 then :
3472 printf %s "(cached) " >&6
3473 else case e in #(
3474 e) if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 ac_prog_rejected=no
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 case $as_dir in #(((
3483 '') as_dir=./ ;;
3484 */) ;;
3485 *) as_dir=$as_dir/ ;;
3486 esac
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3489 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3491 continue
3492 fi
3493 ac_cv_prog_CC="cc"
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3504 shift
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3509 shift
3510 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3511 fi
3512 fi
3513 fi ;;
3514 esac
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 printf "%s\n" "$CC" >&6; }
3520 else
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 printf "%s\n" "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 for ac_prog in cl.exe
3530 do
3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 printf %s "checking for $ac_word... " >&6; }
3535 if test ${ac_cv_prog_CC+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else case e in #(
3539 e) if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 case $as_dir in #(((
3547 '') as_dir=./ ;;
3548 */) ;;
3549 *) as_dir=$as_dir/ ;;
3550 esac
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi ;;
3562 esac
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3568 else
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3571 fi
3572
3573
3574 test -n "$CC" && break
3575 done
3576 fi
3577 if test -z "$CC"; then
3578 ac_ct_CC=$CC
3579 for ac_prog in cl.exe
3580 do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_ac_ct_CC+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else case e in #(
3589 e) if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 case $as_dir in #(((
3597 '') as_dir=./ ;;
3598 */) ;;
3599 *) as_dir=$as_dir/ ;;
3600 esac
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_ac_ct_CC="$ac_prog"
3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi ;;
3612 esac
3613 fi
3614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615 if test -n "$ac_ct_CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617 printf "%s\n" "$ac_ct_CC" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3621 fi
3622
3623
3624 test -n "$ac_ct_CC" && break
3625 done
3626
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3637 fi
3638 fi
3639
3640 fi
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}clang; ac_word=$2
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 printf %s "checking for $ac_word... " >&6; }
3647 if test ${ac_cv_prog_CC+y}
3648 then :
3649 printf %s "(cached) " >&6
3650 else case e in #(
3651 e) if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 case $as_dir in #(((
3659 '') as_dir=./ ;;
3660 */) ;;
3661 *) as_dir=$as_dir/ ;;
3662 esac
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_CC="${ac_tool_prefix}clang"
3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi ;;
3674 esac
3675 fi
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 printf "%s\n" "$CC" >&6; }
3680 else
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3683 fi
3684
3685
3686 fi
3687 if test -z "$ac_cv_prog_CC"; then
3688 ac_ct_CC=$CC
3689 # Extract the first word of "clang", so it can be a program name with args.
3690 set dummy clang; ac_word=$2
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 printf %s "checking for $ac_word... " >&6; }
3693 if test ${ac_cv_prog_ac_ct_CC+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else case e in #(
3697 e) if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 case $as_dir in #(((
3705 '') as_dir=./ ;;
3706 */) ;;
3707 *) as_dir=$as_dir/ ;;
3708 esac
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CC="clang"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi ;;
3720 esac
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 printf "%s\n" "$ac_ct_CC" >&6; }
3726 else
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 printf "%s\n" "no" >&6; }
3729 fi
3730
3731 if test "x$ac_ct_CC" = x; then
3732 CC=""
3733 else
3734 case $cross_compiling:$ac_tool_warned in
3735 yes:)
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3739 esac
3740 CC=$ac_ct_CC
3741 fi
3742 else
3743 CC="$ac_cv_prog_CC"
3744 fi
3745
3746 fi
3747
3748
3749 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3750 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3751 as_fn_error $? "no acceptable C compiler found in \$PATH
3752 See 'config.log' for more details" "$LINENO" 5; }
3753
3754 # Provide some information about the compiler.
3755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3756 set X $ac_compile
3757 ac_compiler=$2
3758 for ac_option in --version -v -V -qversion -version; do
3759 { { ac_try="$ac_compiler $ac_option >&5"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 printf "%s\n" "$ac_try_echo"; } >&5
3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3767 ac_status=$?
3768 if test -s conftest.err; then
3769 sed '10a\
3770 ... rest of stderr output deleted ...
3771 10q' conftest.err >conftest.er1
3772 cat conftest.er1 >&5
3773 fi
3774 rm -f conftest.er1 conftest.err
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3777 done
3778
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main (void)
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 ac_clean_files_save=$ac_clean_files
3791 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3792 # Try to create an executable without -o first, disregard a.out.
3793 # It will help us diagnose broken compilers, and finding out an intuition
3794 # of exeext.
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3796 printf %s "checking whether the C compiler works... " >&6; }
3797 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3798
3799 # The possible output files:
3800 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3801
3802 ac_rmfiles=
3803 for ac_file in $ac_files
3804 do
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3808 esac
3809 done
3810 rm -f $ac_rmfiles
3811
3812 if { { ac_try="$ac_link_default"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 printf "%s\n" "$ac_try_echo"; } >&5
3819 (eval "$ac_link_default") 2>&5
3820 ac_status=$?
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3825 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834 ;;
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 fi
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an '-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3850 * )
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else case e in #(
3857 e) ac_file='' ;;
3858 esac
3859 fi
3860 if test -z "$ac_file"
3861 then :
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 printf "%s\n" "no" >&6; }
3864 printf "%s\n" "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3868 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3869 as_fn_error 77 "C compiler cannot create executables
3870 See 'config.log' for more details" "$LINENO" 5; }
3871 else case e in #(
3872 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3873 printf "%s\n" "yes" >&6; } ;;
3874 esac
3875 fi
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877 printf %s "checking for C compiler default output file name... " >&6; }
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879 printf "%s\n" "$ac_file" >&6; }
3880 ac_exeext=$ac_cv_exeext
3881
3882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3883 ac_clean_files=$ac_clean_files_save
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885 printf %s "checking for suffix of executables... " >&6; }
3886 if { { ac_try="$ac_link"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3894 ac_status=$?
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3897 then :
3898 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3899 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3900 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3901 # 'rm'.
3902 for ac_file in conftest.exe conftest conftest.*; do
3903 test -f "$ac_file" || continue
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 break;;
3908 * ) break;;
3909 esac
3910 done
3911 else case e in #(
3912 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3914 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3915 See 'config.log' for more details" "$LINENO" 5; } ;;
3916 esac
3917 fi
3918 rm -f conftest conftest$ac_cv_exeext
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3920 printf "%s\n" "$ac_cv_exeext" >&6; }
3921
3922 rm -f conftest.$ac_ext
3923 EXEEXT=$ac_cv_exeext
3924 ac_exeext=$EXEEXT
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <stdio.h>
3928 int
3929 main (void)
3930 {
3931 FILE *f = fopen ("conftest.out", "w");
3932 if (!f)
3933 return 1;
3934 return ferror (f) || fclose (f) != 0;
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 ac_clean_files="$ac_clean_files conftest.out"
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 printf %s "checking whether we are cross compiling... " >&6; }
3945 if test "$cross_compiling" != yes; then
3946 { { ac_try="$ac_link"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 printf "%s\n" "$ac_try_echo"; } >&5
3953 (eval "$ac_link") 2>&5
3954 ac_status=$?
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 if { ac_try='./conftest$ac_cv_exeext'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 printf "%s\n" "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3968 cross_compiling=no
3969 else
3970 if test "$cross_compiling" = maybe; then
3971 cross_compiling=yes
3972 else
3973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3974 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3975 as_fn_error 77 "cannot run C compiled programs.
3976 If you meant to cross compile, use '--host'.
3977 See 'config.log' for more details" "$LINENO" 5; }
3978 fi
3979 fi
3980 fi
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 printf "%s\n" "$cross_compiling" >&6; }
3983
3984 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3985 conftest.o conftest.obj conftest.out
3986 ac_clean_files=$ac_clean_files_save
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 printf %s "checking for suffix of object files... " >&6; }
3989 if test ${ac_cv_objext+y}
3990 then :
3991 printf %s "(cached) " >&6
3992 else case e in #(
3993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main (void)
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try="$ac_compile"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4013 ac_status=$?
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else case e in #(
4026 e) printf "%s\n" "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4030 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See 'config.log' for more details" "$LINENO" 5; } ;;
4033 esac
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4036 esac
4037 fi
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 printf "%s\n" "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4043 printf %s "checking whether the compiler supports GNU C... " >&6; }
4044 if test ${ac_cv_c_compiler_gnu+y}
4045 then :
4046 printf %s "(cached) " >&6
4047 else case e in #(
4048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050
4051 int
4052 main (void)
4053 {
4054 #ifndef __GNUC__
4055 choke me
4056 #endif
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"
4063 then :
4064 ac_compiler_gnu=yes
4065 else case e in #(
4066 e) ac_compiler_gnu=no ;;
4067 esac
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 ;;
4072 esac
4073 fi
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4075 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078 if test $ac_compiler_gnu = yes; then
4079 GCC=yes
4080 else
4081 GCC=
4082 fi
4083 ac_test_CFLAGS=${CFLAGS+y}
4084 ac_save_CFLAGS=$CFLAGS
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 printf %s "checking whether $CC accepts -g... " >&6; }
4087 if test ${ac_cv_prog_cc_g+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 ac_cv_prog_cc_g=no
4094 CFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097
4098 int
4099 main (void)
4100 {
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"
4107 then :
4108 ac_cv_prog_cc_g=yes
4109 else case e in #(
4110 e) CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main (void)
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"
4123 then :
4124
4125 else case e in #(
4126 e) ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main (void)
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"
4140 then :
4141 ac_cv_prog_cc_g=yes
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4144 esac
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4147 esac
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4150 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4151 esac
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4154 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4155 if test $ac_test_CFLAGS; then
4156 CFLAGS=$ac_save_CFLAGS
4157 elif test $ac_cv_prog_cc_g = yes; then
4158 if test "$GCC" = yes; then
4159 CFLAGS="-g -O2"
4160 else
4161 CFLAGS="-g"
4162 fi
4163 else
4164 if test "$GCC" = yes; then
4165 CFLAGS="-O2"
4166 else
4167 CFLAGS=
4168 fi
4169 fi
4170 ac_prog_cc_stdc=no
4171 if test x$ac_prog_cc_stdc = xno
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4174 printf %s "checking for $CC option to enable C11 features... " >&6; }
4175 if test ${ac_cv_prog_cc_c11+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else case e in #(
4179 e) ac_cv_prog_cc_c11=no
4180 ac_save_CC=$CC
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 $ac_c_conftest_c11_program
4184 _ACEOF
4185 for ac_arg in '' -std=gnu11
4186 do
4187 CC="$ac_save_CC $ac_arg"
4188 if ac_fn_c_try_compile "$LINENO"
4189 then :
4190 ac_cv_prog_cc_c11=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.beam
4193 test "x$ac_cv_prog_cc_c11" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CC=$ac_save_CC ;;
4197 esac
4198 fi
4199
4200 if test "x$ac_cv_prog_cc_c11" = xno
4201 then :
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4203 printf "%s\n" "unsupported" >&6; }
4204 else case e in #(
4205 e) if test "x$ac_cv_prog_cc_c11" = x
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208 printf "%s\n" "none needed" >&6; }
4209 else case e in #(
4210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4211 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4212 CC="$CC $ac_cv_prog_cc_c11" ;;
4213 esac
4214 fi
4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4216 ac_prog_cc_stdc=c11 ;;
4217 esac
4218 fi
4219 fi
4220 if test x$ac_prog_cc_stdc = xno
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4223 printf %s "checking for $CC option to enable C99 features... " >&6; }
4224 if test ${ac_cv_prog_cc_c99+y}
4225 then :
4226 printf %s "(cached) " >&6
4227 else case e in #(
4228 e) ac_cv_prog_cc_c99=no
4229 ac_save_CC=$CC
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 $ac_c_conftest_c99_program
4233 _ACEOF
4234 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4235 do
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"
4238 then :
4239 ac_cv_prog_cc_c99=$ac_arg
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.beam
4242 test "x$ac_cv_prog_cc_c99" != "xno" && break
4243 done
4244 rm -f conftest.$ac_ext
4245 CC=$ac_save_CC ;;
4246 esac
4247 fi
4248
4249 if test "x$ac_cv_prog_cc_c99" = xno
4250 then :
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 printf "%s\n" "unsupported" >&6; }
4253 else case e in #(
4254 e) if test "x$ac_cv_prog_cc_c99" = x
4255 then :
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 printf "%s\n" "none needed" >&6; }
4258 else case e in #(
4259 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4260 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4261 CC="$CC $ac_cv_prog_cc_c99" ;;
4262 esac
4263 fi
4264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4265 ac_prog_cc_stdc=c99 ;;
4266 esac
4267 fi
4268 fi
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4272 printf %s "checking for $CC option to enable C89 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c89+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else case e in #(
4277 e) ac_cv_prog_cc_c89=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c89_program
4282 _ACEOF
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c89=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC ;;
4295 esac
4296 fi
4297
4298 if test "x$ac_cv_prog_cc_c89" = xno
4299 then :
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4301 printf "%s\n" "unsupported" >&6; }
4302 else case e in #(
4303 e) if test "x$ac_cv_prog_cc_c89" = x
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 printf "%s\n" "none needed" >&6; }
4307 else case e in #(
4308 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4310 CC="$CC $ac_cv_prog_cc_c89" ;;
4311 esac
4312 fi
4313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4314 ac_prog_cc_stdc=c89 ;;
4315 esac
4316 fi
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4332 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4333 if test ${am_cv_prog_cc_c_o+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else case e in #(
4337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339
4340 int
4341 main (void)
4342 {
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 # Make sure it works both with $CC and with simple cc.
4349 # Following AC_PROG_CC_C_O, we do the test twice because some
4350 # compilers refuse to overwrite an existing .o file with -o,
4351 # though they will create one.
4352 am_cv_prog_cc_c_o=yes
4353 for am_i in 1 2; do
4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } \
4359 && test -f conftest2.$ac_objext; then
4360 : OK
4361 else
4362 am_cv_prog_cc_c_o=no
4363 break
4364 fi
4365 done
4366 rm -f core conftest*
4367 unset am_i ;;
4368 esac
4369 fi
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4371 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4372 if test "$am_cv_prog_cc_c_o" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379 fi
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386 DEPDIR="${am__leading_dot}deps"
4387
4388 ac_config_commands="$ac_config_commands depfiles"
4389
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4391 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4392 cat > confinc.mk << 'END'
4393 am__doit:
4394 @echo this is the am__doit target >confinc.out
4395 .PHONY: am__doit
4396 END
4397 am__include="#"
4398 am__quote=
4399 # BSD make does it like this.
4400 echo '.include "confinc.mk" # ignored' > confmf.BSD
4401 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4402 echo 'include confinc.mk # ignored' > confmf.GNU
4403 _am_result=no
4404 for s in GNU BSD; do
4405 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4406 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }
4410 case $?:`cat confinc.out 2>/dev/null` in #(
4411 '0:this is the am__doit target') :
4412 case $s in #(
4413 BSD) :
4414 am__include='.include' am__quote='"' ;; #(
4415 *) :
4416 am__include='include' am__quote='' ;;
4417 esac ;; #(
4418 *) :
4419 ;;
4420 esac
4421 if test "$am__include" != "#"; then
4422 _am_result="yes ($s style)"
4423 break
4424 fi
4425 done
4426 rm -f confinc.* confmf.*
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4428 printf "%s\n" "${_am_result}" >&6; }
4429
4430 # Check whether --enable-dependency-tracking was given.
4431 if test ${enable_dependency_tracking+y}
4432 then :
4433 enableval=$enable_dependency_tracking;
4434 fi
4435
4436 if test "x$enable_dependency_tracking" != xno; then
4437 am_depcomp="$ac_aux_dir/depcomp"
4438 AMDEPBACKSLASH='\'
4439 am__nodep='_no'
4440 fi
4441 if test "x$enable_dependency_tracking" != xno; then
4442 AMDEP_TRUE=
4443 AMDEP_FALSE='#'
4444 else
4445 AMDEP_TRUE='#'
4446 AMDEP_FALSE=
4447 fi
4448
4449
4450
4451 depcc="$CC" am_compiler_list=
4452
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4454 printf %s "checking dependency style of $depcc... " >&6; }
4455 if test ${am_cv_CC_dependencies_compiler_type+y}
4456 then :
4457 printf %s "(cached) " >&6
4458 else case e in #(
4459 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named 'D' -- because '-MD' means "put the output
4464 # in D".
4465 rm -rf conftest.dir
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4478
4479 am_cv_CC_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 fi
4483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4487
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4492 #
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500 # Solaris 10 /bin/sh.
4501 echo '/* dummy */' > sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
4505 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle '-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs.
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4511 case $depmode in
4512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4515 ;;
4516 nosideeffect)
4517 # After this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested.
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4523 fi
4524 ;;
4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526 # This compiler won't grok '-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4531 ;;
4532 none) break ;;
4533 esac
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CC_dependencies_compiler_type=$depmode
4553 break
4554 fi
4555 fi
4556 done
4557
4558 cd ..
4559 rm -rf conftest.dir
4560 else
4561 am_cv_CC_dependencies_compiler_type=none
4562 fi
4563 ;;
4564 esac
4565 fi
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569
4570 if
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573 am__fastdepCC_TRUE=
4574 am__fastdepCC_FALSE='#'
4575 else
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4578 fi
4579
4580
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4582 printf %s "checking whether ln -s works... " >&6; }
4583 LN_S=$as_ln_s
4584 if test "$LN_S" = "ln -s"; then
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4586 printf "%s\n" "yes" >&6; }
4587 else
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4589 printf "%s\n" "no, using $LN_S" >&6; }
4590 fi
4591
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4593 printf %s "checking for grep that handles long lines and -e... " >&6; }
4594 if test ${ac_cv_path_GREP+y}
4595 then :
4596 printf %s "(cached) " >&6
4597 else case e in #(
4598 e) if test -z "$GREP"; then
4599 ac_path_GREP_found=false
4600 # Loop through the user's path and test for each of PROGNAME-LIST
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 do
4604 IFS=$as_save_IFS
4605 case $as_dir in #(((
4606 '') as_dir=./ ;;
4607 */) ;;
4608 *) as_dir=$as_dir/ ;;
4609 esac
4610 for ac_prog in grep ggrep
4611 do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4614 as_fn_executable_p "$ac_path_GREP" || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616 # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in #(
4618 *GNU*)
4619 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4620 #(
4621 *)
4622 ac_count=0
4623 printf %s 0123456789 >"conftest.in"
4624 while :
4625 do
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
4629 printf "%s\n" 'GREP' >> "conftest.nl"
4630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632 as_fn_arith $ac_count + 1 && ac_count=$as_val
4633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_GREP="$ac_path_GREP"
4636 ac_path_GREP_max=$ac_count
4637 fi
4638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4643
4644 $ac_path_GREP_found && break 3
4645 done
4646 done
4647 done
4648 IFS=$as_save_IFS
4649 if test -z "$ac_cv_path_GREP"; then
4650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651 fi
4652 else
4653 ac_cv_path_GREP=$GREP
4654 fi
4655 ;;
4656 esac
4657 fi
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4659 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4660 GREP="$ac_cv_path_GREP"
4661
4662
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4664 printf %s "checking for egrep... " >&6; }
4665 if test ${ac_cv_path_EGREP+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else case e in #(
4669 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4670 then ac_cv_path_EGREP="$GREP -E"
4671 else
4672 if test -z "$EGREP"; then
4673 ac_path_EGREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677 do
4678 IFS=$as_save_IFS
4679 case $as_dir in #(((
4680 '') as_dir=./ ;;
4681 */) ;;
4682 *) as_dir=$as_dir/ ;;
4683 esac
4684 for ac_prog in egrep
4685 do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4688 as_fn_executable_p "$ac_path_EGREP" || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in #(
4692 *GNU*)
4693 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 #(
4695 *)
4696 ac_count=0
4697 printf %s 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 printf "%s\n" 'EGREP' >> "conftest.nl"
4704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_EGREP="$ac_path_EGREP"
4710 ac_path_EGREP_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718 $ac_path_EGREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_EGREP"; then
4724 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 fi
4726 else
4727 ac_cv_path_EGREP=$EGREP
4728 fi
4729
4730 fi ;;
4731 esac
4732 fi
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4736
4737 EGREP_TRADITIONAL=$EGREP
4738 ac_cv_path_EGREP_TRADITIONAL=$EGREP
4739
4740 # Extract the first word of "chmod", so it can be a program name with args.
4741 set dummy chmod; ac_word=$2
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 printf %s "checking for $ac_word... " >&6; }
4744 if test ${ac_cv_path_CHMOD+y}
4745 then :
4746 printf %s "(cached) " >&6
4747 else case e in #(
4748 e) case $CHMOD in
4749 [\\/]* | ?:[\\/]*)
4750 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4751 ;;
4752 *)
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 case $as_dir in #(((
4758 '') as_dir=./ ;;
4759 */) ;;
4760 *) as_dir=$as_dir/ ;;
4761 esac
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4764 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 ;;
4773 esac ;;
4774 esac
4775 fi
4776 CHMOD=$ac_cv_path_CHMOD
4777 if test -n "$CHMOD"; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4779 printf "%s\n" "$CHMOD" >&6; }
4780 else
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4783 fi
4784
4785
4786
4787 # Extract the first word of "sed", so it can be a program name with args.
4788 set dummy sed; ac_word=$2
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 printf %s "checking for $ac_word... " >&6; }
4791 if test ${ac_cv_path_SED+y}
4792 then :
4793 printf %s "(cached) " >&6
4794 else case e in #(
4795 e) case $SED in
4796 [\\/]* | ?:[\\/]*)
4797 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4798 ;;
4799 *)
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 ;;
4820 esac ;;
4821 esac
4822 fi
4823 SED=$ac_cv_path_SED
4824 if test -n "$SED"; then
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4826 printf "%s\n" "$SED" >&6; }
4827 else
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 printf "%s\n" "no" >&6; }
4830 fi
4831
4832
4833 if test -z "$SED" ; then
4834 as_fn_error $? "*** 'sed' missing, please install or fix your \$PATH ***" "$LINENO" 5
4835 fi
4836
4837
4838 # Check whether --with-cvs was given.
4839 if test ${with_cvs+y}
4840 then :
4841 withval=$with_cvs; if test "x$withval" = "x" || test "x$withval" = "xyes" || test "x$withval" = "xno"
4842 then
4843 as_fn_error $? "*** please specify the location of the cvs binary ***" "$LINENO" 5
4844 else
4845 CVS="$withval"
4846 fi
4847 fi
4848
4849 if test -z "$CVS"
4850 then
4851 # Extract the first word of "cvs", so it can be a program name with args.
4852 set dummy cvs; ac_word=$2
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 printf %s "checking for $ac_word... " >&6; }
4855 if test ${ac_cv_path_CVS+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else case e in #(
4859 e) case $CVS in
4860 [\\/]* | ?:[\\/]*)
4861 ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
4862 ;;
4863 *)
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 case $as_dir in #(((
4869 '') as_dir=./ ;;
4870 */) ;;
4871 *) as_dir=$as_dir/ ;;
4872 esac
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4875 ac_cv_path_CVS="$as_dir$ac_word$ac_exec_ext"
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 ;;
4884 esac ;;
4885 esac
4886 fi
4887 CVS=$ac_cv_path_CVS
4888 if test -n "$CVS"; then
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CVS" >&5
4890 printf "%s\n" "$CVS" >&6; }
4891 else
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 printf "%s\n" "no" >&6; }
4894 fi
4895
4896
4897 fi
4898 if test -z "$CVS"
4899 then
4900 as_fn_error $? "*** 'cvs' not found, please install, fix your \$PATH or use --with-cvs ***" "$LINENO" 5
4901 fi
4902 if test ! -r "$CVS" || test "x`basename "$CVS"`" != "xcvs"
4903 then
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CVS does not look like the cvs binary" >&5
4905 printf "%s\n" "$as_me: WARNING: $CVS does not look like the cvs binary" >&2;}
4906 fi
4907
4908
4909
4910 printf "%s\n" "#define CVS_LOCATION \"$CVS\"" >>confdefs.h
4911
4912
4913
4914 # Check whether --with-perl was given.
4915 if test ${with_perl+y}
4916 then :
4917 withval=$with_perl; if test "x$withval" = "x" || test "x$withval" = "xyes" || test "x$withval" = "xno"
4918 then
4919 as_fn_error $? "*** please specify the location of the perl binary ***" "$LINENO" 5
4920 else
4921 PERL="$withval"
4922 fi
4923 fi
4924
4925 if test -z "$PERL"
4926 then
4927 # Extract the first word of "perl", so it can be a program name with args.
4928 set dummy perl; ac_word=$2
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 printf %s "checking for $ac_word... " >&6; }
4931 if test ${ac_cv_path_PERL+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else case e in #(
4935 e) case $PERL in
4936 [\\/]* | ?:[\\/]*)
4937 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4938 ;;
4939 *)
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 case $as_dir in #(((
4945 '') as_dir=./ ;;
4946 */) ;;
4947 *) as_dir=$as_dir/ ;;
4948 esac
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4951 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 ;;
4960 esac ;;
4961 esac
4962 fi
4963 PERL=$ac_cv_path_PERL
4964 if test -n "$PERL"; then
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4966 printf "%s\n" "$PERL" >&6; }
4967 else
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 printf "%s\n" "no" >&6; }
4970 fi
4971
4972
4973 fi
4974 if test -z "$PERL"
4975 then
4976 as_fn_error $? "*** 'perl' not found, please install, fix your \$PATH or use --with-perl ***" "$LINENO" 5
4977 fi
4978 if test ! -r "$PERL" || test "x`basename "$PERL"`" != "xperl"
4979 then
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $PERL does not look like the perl binary" >&5
4981 printf "%s\n" "$as_me: WARNING: $PERL does not look like the perl binary" >&2;}
4982 fi
4983
4984
4985
4986 # Checks for header files.
4987
4988 ac_header= ac_cache=
4989 for ac_item in $ac_header_c_list
4990 do
4991 if test $ac_cache; then
4992 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4993 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4994 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4995 fi
4996 ac_header= ac_cache=
4997 elif test $ac_header; then
4998 ac_cache=$ac_item
4999 else
5000 ac_header=$ac_item
5001 fi
5002 done
5003
5004
5005
5006
5007
5008
5009
5010
5011 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5012 then :
5013
5014 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5015
5016 fi
5017 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5018 if test "x$ac_cv_header_string_h" = xyes
5019 then :
5020 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5021
5022 fi
5023
5024 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_unistd_h" = xyes
5026 then :
5027 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5028
5029 fi
5030
5031 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5032 if test "x$ac_cv_header_errno_h" = xyes
5033 then :
5034 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
5035
5036 fi
5037
5038 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
5039 if test "x$ac_cv_header_syslog_h" = xyes
5040 then :
5041 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
5042
5043 fi
5044
5045 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5046 if test "x$ac_cv_header_getopt_h" = xyes
5047 then :
5048 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
5049
5050 fi
5051
5052 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
5053 if test "x$ac_cv_header_pwd_h" = xyes
5054 then :
5055 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
5056
5057 fi
5058
5059 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
5060 if test "x$ac_cv_header_grp_h" = xyes
5061 then :
5062 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
5063
5064 fi
5065
5066 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
5067 if test "x$ac_cv_header_arpa_inet_h" = xyes
5068 then :
5069 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
5070
5071 fi
5072
5073 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5074 if test "x$ac_cv_header_netinet_in_h" = xyes
5075 then :
5076 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
5077
5078 fi
5079
5080 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5081 if test "x$ac_cv_header_sys_types_h" = xyes
5082 then :
5083 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
5084
5085 fi
5086
5087 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5088 if test "x$ac_cv_header_sys_socket_h" = xyes
5089 then :
5090 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5091
5092 fi
5093
5094 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5095 if test "x$ac_cv_header_sys_time_h" = xyes
5096 then :
5097 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5098
5099 fi
5100
5101 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
5102 if test "x$ac_cv_header_sys_resource_h" = xyes
5103 then :
5104 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
5105
5106 fi
5107
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5109 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5110 if test ${ac_cv_header_sys_wait_h+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else case e in #(
5114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <sys/types.h>
5117 #include <sys/wait.h>
5118 #ifndef WEXITSTATUS
5119 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5120 #endif
5121 #ifndef WIFEXITED
5122 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5123 #endif
5124
5125 int
5126 main (void)
5127 {
5128 int s;
5129 wait (&s);
5130 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"
5136 then :
5137 ac_cv_header_sys_wait_h=yes
5138 else case e in #(
5139 e) ac_cv_header_sys_wait_h=no ;;
5140 esac
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5143 esac
5144 fi
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5146 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
5147 if test $ac_cv_header_sys_wait_h = yes; then
5148
5149 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5150
5151 fi
5152
5153 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
5154 if test "x$ac_cv_header_signal_h" = xyes
5155 then :
5156 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
5157
5158 fi
5159
5160 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
5161 if test "x$ac_cv_header_sys_stat_h" = xyes
5162 then :
5163 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
5164
5165 fi
5166
5167 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5168 if test "x$ac_cv_header_netdb_h" = xyes
5169 then :
5170 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
5171
5172 fi
5173
5174 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5175 if test "x$ac_cv_header_fcntl_h" = xyes
5176 then :
5177 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5178
5179 fi
5180
5181 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5182 if test "x$ac_cv_header_stdarg_h" = xyes
5183 then :
5184 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
5185
5186 fi
5187
5188 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_stdio_h" = xyes
5190 then :
5191 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
5192
5193 fi
5194
5195
5196 # Checks for typedefs, structures, and compiler characteristics.
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5198 printf %s "checking for an ANSI C-conforming const... " >&6; }
5199 if test ${ac_cv_c_const+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else case e in #(
5203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205
5206 int
5207 main (void)
5208 {
5209
5210 #ifndef __cplusplus
5211 /* Ultrix mips cc rejects this sort of thing. */
5212 typedef int charset[2];
5213 const charset cs = { 0, 0 };
5214 /* SunOS 4.1.1 cc rejects this. */
5215 char const *const *pcpcc;
5216 char **ppc;
5217 /* NEC SVR4.0.2 mips cc rejects this. */
5218 struct point {int x, y;};
5219 static struct point const zero = {0,0};
5220 /* IBM XL C 1.02.0.0 rejects this.
5221 It does not let you subtract one const X* pointer from another in
5222 an arm of an if-expression whose if-part is not a constant
5223 expression */
5224 const char *g = "string";
5225 pcpcc = &g + (g ? g-g : 0);
5226 /* HPUX 7.0 cc rejects these. */
5227 ++pcpcc;
5228 ppc = (char**) pcpcc;
5229 pcpcc = (char const *const *) ppc;
5230 { /* SCO 3.2v4 cc rejects this sort of thing. */
5231 char tx;
5232 char *t = &tx;
5233 char const *s = 0 ? (char *) 0 : (char const *) 0;
5234
5235 *t++ = 0;
5236 if (s) return 0;
5237 }
5238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5239 int x[] = {25, 17};
5240 const int *foo = &x[0];
5241 ++foo;
5242 }
5243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5244 typedef const int *iptr;
5245 iptr p = 0;
5246 ++p;
5247 }
5248 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5250 struct s { int j; const int *ap[3]; } bx;
5251 struct s *b = &bx; b->j = 5;
5252 }
5253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5254 const int foo = 10;
5255 if (!foo) return 0;
5256 }
5257 return !cs[0] && !zero.x;
5258 #endif
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"
5265 then :
5266 ac_cv_c_const=yes
5267 else case e in #(
5268 e) ac_cv_c_const=no ;;
5269 esac
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5272 esac
5273 fi
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5275 printf "%s\n" "$ac_cv_c_const" >&6; }
5276 if test $ac_cv_c_const = no; then
5277
5278 printf "%s\n" "#define const /**/" >>confdefs.h
5279
5280 fi
5281
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5283 printf %s "checking for working volatile... " >&6; }
5284 if test ${ac_cv_c_volatile+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else case e in #(
5288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290
5291 int
5292 main (void)
5293 {
5294
5295 volatile int x;
5296 int * volatile y = (int *) 0;
5297 return !x && !y;
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"
5303 then :
5304 ac_cv_c_volatile=yes
5305 else case e in #(
5306 e) ac_cv_c_volatile=no ;;
5307 esac
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5310 esac
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5313 printf "%s\n" "$ac_cv_c_volatile" >&6; }
5314 if test $ac_cv_c_volatile = no; then
5315
5316 printf "%s\n" "#define volatile /**/" >>confdefs.h
5317
5318 fi
5319
5320 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5321 if test "x$ac_cv_type_mode_t" = xyes
5322 then :
5323
5324 else case e in #(
5325 e)
5326 printf "%s\n" "#define mode_t int" >>confdefs.h
5327 ;;
5328 esac
5329 fi
5330
5331
5332 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5333 "
5334 if test "x$ac_cv_type_pid_t" = xyes
5335 then :
5336
5337 else case e in #(
5338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340
5341 #if defined _WIN64 && !defined __CYGWIN__
5342 LLP64
5343 #endif
5344
5345 int
5346 main (void)
5347 {
5348
5349 ;
5350 return 0;
5351 }
5352
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"
5355 then :
5356 ac_pid_type='int'
5357 else case e in #(
5358 e) ac_pid_type='__int64' ;;
5359 esac
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5362
5363 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5364
5365 ;;
5366 esac
5367 fi
5368
5369
5370
5371 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
5372 if test "x$ac_cv_type_uid_t" = xyes
5373 then :
5374
5375 else case e in #(
5376 e)
5377 printf "%s\n" "#define uid_t int" >>confdefs.h
5378 ;;
5379 esac
5380 fi
5381
5382 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
5383 if test "x$ac_cv_type_gid_t" = xyes
5384 then :
5385
5386 else case e in #(
5387 e)
5388 printf "%s\n" "#define gid_t int" >>confdefs.h
5389 ;;
5390 esac
5391 fi
5392
5393 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5394 if test "x$ac_cv_type_size_t" = xyes
5395 then :
5396
5397 else case e in #(
5398 e)
5399 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5400 ;;
5401 esac
5402 fi
5403
5404 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5405 #include <sys/types.h>
5406 #include <sys/socket.h>
5407 "
5408 if test "x$ac_cv_type_socklen_t" = xyes
5409 then :
5410
5411 else case e in #(
5412 e)
5413 printf "%s\n" "#define socklen_t size_t" >>confdefs.h
5414 ;;
5415 esac
5416 fi
5417
5418 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5419 #include <sys/types.h>
5420 #include <sys/socket.h>
5421 "
5422 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
5423 then :
5424
5425 else case e in #(
5426 e)
5427 printf "%s\n" "#define sockaddr_storage sockaddr_in" >>confdefs.h
5428 ;;
5429 esac
5430 fi
5431
5432
5433 # Checks for library functions.
5434
5435 ac_func=
5436 for ac_item in $ac_func_c_list
5437 do
5438 if test $ac_func; then
5439 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
5440 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
5441 echo "#define $ac_item 1" >> confdefs.h
5442 fi
5443 ac_func=
5444 else
5445 ac_func=$ac_item
5446 fi
5447 done
5448
5449
5450
5451 if test "x$ac_cv_func_fork" = xyes; then
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5453 printf %s "checking for working fork... " >&6; }
5454 if test ${ac_cv_func_fork_works+y}
5455 then :
5456 printf %s "(cached) " >&6
5457 else case e in #(
5458 e) if test "$cross_compiling" = yes
5459 then :
5460 ac_cv_func_fork_works=cross
5461 else case e in #(
5462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 $ac_includes_default
5465 int
5466 main (void)
5467 {
5468
5469 /* By R. Kuhlmann. */
5470 return fork () < 0;
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_run "$LINENO"
5477 then :
5478 ac_cv_func_fork_works=yes
5479 else case e in #(
5480 e) ac_cv_func_fork_works=no ;;
5481 esac
5482 fi
5483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5484 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5485 esac
5486 fi
5487 ;;
5488 esac
5489 fi
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5491 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
5492
5493 else
5494 ac_cv_func_fork_works=$ac_cv_func_fork
5495 fi
5496 if test "x$ac_cv_func_fork_works" = xcross; then
5497 case $host in
5498 *-*-amigaos* | *-*-msdosdjgpp*)
5499 # Override, as these systems have only a dummy fork() stub
5500 ac_cv_func_fork_works=no
5501 ;;
5502 *)
5503 ac_cv_func_fork_works=yes
5504 ;;
5505 esac
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5507 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5508 fi
5509 ac_cv_func_vfork_works=$ac_cv_func_vfork
5510 if test "x$ac_cv_func_vfork" = xyes; then
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5512 printf %s "checking for working vfork... " >&6; }
5513 if test ${ac_cv_func_vfork_works+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else case e in #(
5517 e) if test "$cross_compiling" = yes
5518 then :
5519 ac_cv_func_vfork_works=cross
5520 else case e in #(
5521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 /* Thanks to Paul Eggert for this test. */
5524 $ac_includes_default
5525 #include <signal.h>
5526 #include <sys/wait.h>
5527 #ifdef HAVE_VFORK_H
5528 # include <vfork.h>
5529 #endif
5530
5531 static void
5532 do_nothing (int sig)
5533 {
5534 (void) sig;
5535 }
5536
5537 /* On some sparc systems, changes by the child to local and incoming
5538 argument registers are propagated back to the parent. The compiler
5539 is told about this with #include <vfork.h>, but some compilers
5540 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5541 static variable whose address is put into a register that is
5542 clobbered by the vfork. */
5543 static void
5544 sparc_address_test (int arg)
5545 {
5546 static pid_t child;
5547 if (!child) {
5548 child = vfork ();
5549 if (child < 0) {
5550 perror ("vfork");
5551 _exit(2);
5552 }
5553 if (!child) {
5554 arg = getpid();
5555 write(-1, "", 0);
5556 _exit (arg);
5557 }
5558 }
5559 }
5560
5561 int
5562 main (void)
5563 {
5564 pid_t parent = getpid ();
5565 pid_t child;
5566
5567 sparc_address_test (0);
5568
5569 /* On Solaris 2.4, changes by the child to the signal handler
5570 also munge signal handlers in the parent. To detect this,
5571 start by putting the parent's handler in a known state. */
5572 signal (SIGTERM, SIG_DFL);
5573
5574 child = vfork ();
5575
5576 if (child == 0) {
5577 /* Here is another test for sparc vfork register problems. This
5578 test uses lots of local variables, at least as many local
5579 variables as main has allocated so far including compiler
5580 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5581 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5582 reuse the register of parent for one of the local variables,
5583 since it will think that parent can't possibly be used any more
5584 in this routine. Assigning to the local variable will thus
5585 munge parent in the parent process. */
5586 pid_t
5587 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5588 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5589 /* Convince the compiler that p..p7 are live; otherwise, it might
5590 use the same hardware register for all 8 local variables. */
5591 if (p != p1 || p != p2 || p != p3 || p != p4
5592 || p != p5 || p != p6 || p != p7)
5593 _exit(1);
5594
5595 /* Alter the child's signal handler. */
5596 if (signal (SIGTERM, do_nothing) != SIG_DFL)
5597 _exit(1);
5598
5599 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5600 from child file descriptors. If the child closes a descriptor
5601 before it execs or exits, this munges the parent's descriptor
5602 as well. Test for this by closing stdout in the child. */
5603 _exit(close(fileno(stdout)) != 0);
5604 } else {
5605 int status;
5606 struct stat st;
5607
5608 while (wait(&status) != child)
5609 ;
5610 return (
5611 /* Was there some problem with vforking? */
5612 child < 0
5613
5614 /* Did the child munge the parent's signal handler? */
5615 || signal (SIGTERM, SIG_DFL) != SIG_DFL
5616
5617 /* Did the child fail? (This shouldn't happen.) */
5618 || status
5619
5620 /* Did the vfork/compiler bug occur? */
5621 || parent != getpid()
5622
5623 /* Did the file descriptor bug occur? */
5624 || fstat(fileno(stdout), &st) != 0
5625 );
5626 }
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_run "$LINENO"
5630 then :
5631 ac_cv_func_vfork_works=yes
5632 else case e in #(
5633 e) ac_cv_func_vfork_works=no ;;
5634 esac
5635 fi
5636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5637 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5638 esac
5639 fi
5640 ;;
5641 esac
5642 fi
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5644 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
5645
5646 fi;
5647 if test "x$ac_cv_func_fork_works" = xcross; then
5648 ac_cv_func_vfork_works=$ac_cv_func_vfork
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5650 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5651 fi
5652
5653 if test "x$ac_cv_func_vfork_works" = xyes; then
5654
5655 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5656
5657 else
5658
5659 printf "%s\n" "#define vfork fork" >>confdefs.h
5660
5661 fi
5662 if test "x$ac_cv_func_fork_works" = xyes; then
5663
5664 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
5665
5666 fi
5667
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5669 printf %s "checking for library containing gethostbyname... " >&6; }
5670 if test ${ac_cv_search_gethostbyname+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else case e in #(
5674 e) ac_func_search_save_LIBS=$LIBS
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677
5678 /* Override any GCC internal prototype to avoid an error.
5679 Use char because int might match the return type of a GCC
5680 builtin and then its argument prototype would still apply.
5681 The 'extern "C"' is for builds by C++ compilers;
5682 although this is not generally supported in C code supporting it here
5683 has little cost and some practical benefit (sr 110532). */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 char gethostbyname (void);
5688 int
5689 main (void)
5690 {
5691 return gethostbyname ();
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 for ac_lib in '' nsl socket
5697 do
5698 if test -z "$ac_lib"; then
5699 ac_res="none required"
5700 else
5701 ac_res=-l$ac_lib
5702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5703 fi
5704 if ac_fn_c_try_link "$LINENO"
5705 then :
5706 ac_cv_search_gethostbyname=$ac_res
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5709 conftest$ac_exeext
5710 if test ${ac_cv_search_gethostbyname+y}
5711 then :
5712 break
5713 fi
5714 done
5715 if test ${ac_cv_search_gethostbyname+y}
5716 then :
5717
5718 else case e in #(
5719 e) ac_cv_search_gethostbyname=no ;;
5720 esac
5721 fi
5722 rm conftest.$ac_ext
5723 LIBS=$ac_func_search_save_LIBS ;;
5724 esac
5725 fi
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5727 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
5728 ac_res=$ac_cv_search_gethostbyname
5729 if test "$ac_res" != no
5730 then :
5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5732
5733 fi
5734
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5736 printf %s "checking for library containing socket... " >&6; }
5737 if test ${ac_cv_search_socket+y}
5738 then :
5739 printf %s "(cached) " >&6
5740 else case e in #(
5741 e) ac_func_search_save_LIBS=$LIBS
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply.
5748 The 'extern "C"' is for builds by C++ compilers;
5749 although this is not generally supported in C code supporting it here
5750 has little cost and some practical benefit (sr 110532). */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 char socket (void);
5755 int
5756 main (void)
5757 {
5758 return socket ();
5759 ;
5760 return 0;
5761 }
5762 _ACEOF
5763 for ac_lib in '' socket
5764 do
5765 if test -z "$ac_lib"; then
5766 ac_res="none required"
5767 else
5768 ac_res=-l$ac_lib
5769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5770 fi
5771 if ac_fn_c_try_link "$LINENO"
5772 then :
5773 ac_cv_search_socket=$ac_res
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5776 conftest$ac_exeext
5777 if test ${ac_cv_search_socket+y}
5778 then :
5779 break
5780 fi
5781 done
5782 if test ${ac_cv_search_socket+y}
5783 then :
5784
5785 else case e in #(
5786 e) ac_cv_search_socket=no ;;
5787 esac
5788 fi
5789 rm conftest.$ac_ext
5790 LIBS=$ac_func_search_save_LIBS ;;
5791 esac
5792 fi
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5794 printf "%s\n" "$ac_cv_search_socket" >&6; }
5795 ac_res=$ac_cv_search_socket
5796 if test "$ac_res" != no
5797 then :
5798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5799
5800 fi
5801
5802
5803 for ac_func in malloc dup2 inet_ntoa strchr strrchr strerror strtol atexit sigaction memset memcpy sigemptyset select fcntl snprintf vsnprintf socket
5804 do :
5805 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
5806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5807 if eval test \"x\$"$as_ac_var"\" = x"yes"
5808 then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
5811 _ACEOF
5812
5813 else case e in #(
5814 e) as_fn_error $? "*** we really need this function ***" "$LINENO" 5 ;;
5815 esac
5816 fi
5817
5818 done
5819 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
5820 if test "x$ac_cv_func_nice" = xyes
5821 then :
5822 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
5823
5824 fi
5825 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
5826 if test "x$ac_cv_func_setpriority" = xyes
5827 then :
5828 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
5829
5830 fi
5831 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
5832 if test "x$ac_cv_func_setgroups" = xyes
5833 then :
5834 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
5835
5836 fi
5837 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5838 if test "x$ac_cv_func_gethostbyname" = xyes
5839 then :
5840 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
5841
5842 fi
5843
5844
5845
5846
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5848 printf %s "checking types of arguments for select... " >&6; }
5849 if test ${ac_cv_func_select_args+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else case e in #(
5853 e) ac_cv_func_select_args='int,int *,struct timeval *'
5854 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5855 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5856 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 $ac_includes_default
5860 #ifdef HAVE_SYS_SELECT_H
5861 # include <sys/select.h>
5862 #endif
5863 #ifdef HAVE_SYS_SOCKET_H
5864 # include <sys/socket.h>
5865 #endif
5866
5867 int
5868 main (void)
5869 {
5870 extern int select ($ac_arg1,
5871 $ac_arg234, $ac_arg234, $ac_arg234,
5872 $ac_arg5);
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"
5878 then :
5879 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5882 done
5883 done
5884 done
5885 ;;
5886 esac
5887 fi
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5889 printf "%s\n" "$ac_cv_func_select_args" >&6; }
5890 ac_save_IFS=$IFS; IFS=','
5891 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5892 IFS=$ac_save_IFS
5893 shift
5894
5895 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
5896
5897
5898 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
5899
5900
5901 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
5902
5903 rm -rf conftest*
5904
5905
5906 # Only include Limit operations if system has setrlimit()
5907
5908 for ac_func in setrlimit
5909 do :
5910 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
5911 if test "x$ac_cv_func_setrlimit" = xyes
5912 then :
5913 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
5914 case " $LIBOBJS " in
5915 *" reslimit.$ac_objext "* ) ;;
5916 *) LIBOBJS="$LIBOBJS reslimit.$ac_objext"
5917 ;;
5918 esac
5919
5920 else case e in #(
5921 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling use of resource limits" >&5
5922 printf "%s\n" "$as_me: disabling use of resource limits" >&6;} ;;
5923 esac
5924 fi
5925
5926 done
5927
5928 # Replace getopt_long() function if it is not on the system
5929
5930 for ac_func in getopt_long
5931 do :
5932 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5933 if test "x$ac_cv_func_getopt_long" = xyes
5934 then :
5935 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5936
5937 else case e in #(
5938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using own getopt_long() replacement" >&5
5939 printf "%s\n" "$as_me: using own getopt_long() replacement" >&6;}
5940 case " $LIBOBJS " in
5941 *" getopt_long.$ac_objext "* ) ;;
5942 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
5943 ;;
5944 esac
5945 ;;
5946 esac
5947 fi
5948
5949 done
5950
5951 # Replace daemon() function if it is not on the system
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5953 printf %s "checking for library containing daemon... " >&6; }
5954 if test ${ac_cv_search_daemon+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else case e in #(
5958 e) ac_func_search_save_LIBS=$LIBS
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961
5962 /* Override any GCC internal prototype to avoid an error.
5963 Use char because int might match the return type of a GCC
5964 builtin and then its argument prototype would still apply.
5965 The 'extern "C"' is for builds by C++ compilers;
5966 although this is not generally supported in C code supporting it here
5967 has little cost and some practical benefit (sr 110532). */
5968 #ifdef __cplusplus
5969 extern "C"
5970 #endif
5971 char daemon (void);
5972 int
5973 main (void)
5974 {
5975 return daemon ();
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 for ac_lib in '' bsd
5981 do
5982 if test -z "$ac_lib"; then
5983 ac_res="none required"
5984 else
5985 ac_res=-l$ac_lib
5986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5987 fi
5988 if ac_fn_c_try_link "$LINENO"
5989 then :
5990 ac_cv_search_daemon=$ac_res
5991 fi
5992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5993 conftest$ac_exeext
5994 if test ${ac_cv_search_daemon+y}
5995 then :
5996 break
5997 fi
5998 done
5999 if test ${ac_cv_search_daemon+y}
6000 then :
6001
6002 else case e in #(
6003 e) ac_cv_search_daemon=no ;;
6004 esac
6005 fi
6006 rm conftest.$ac_ext
6007 LIBS=$ac_func_search_save_LIBS ;;
6008 esac
6009 fi
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
6011 printf "%s\n" "$ac_cv_search_daemon" >&6; }
6012 ac_res=$ac_cv_search_daemon
6013 if test "$ac_res" != no
6014 then :
6015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6016
6017 fi
6018
6019
6020 for ac_func in daemon
6021 do :
6022 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
6023 if test "x$ac_cv_func_daemon" = xyes
6024 then :
6025 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
6026
6027 else case e in #(
6028 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using own daemon() replacement" >&5
6029 printf "%s\n" "$as_me: using own daemon() replacement" >&6;}
6030 case " $LIBOBJS " in
6031 *" daemon.$ac_objext "* ) ;;
6032 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
6033 ;;
6034 esac
6035 ;;
6036 esac
6037 fi
6038
6039 done
6040
6041 # check for getaddrinfo() and getnameinfo() and replace if not available
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
6043 printf %s "checking for library containing getaddrinfo... " >&6; }
6044 if test ${ac_cv_search_getaddrinfo+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else case e in #(
6048 e) ac_func_search_save_LIBS=$LIBS
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply.
6055 The 'extern "C"' is for builds by C++ compilers;
6056 although this is not generally supported in C code supporting it here
6057 has little cost and some practical benefit (sr 110532). */
6058 #ifdef __cplusplus
6059 extern "C"
6060 #endif
6061 char getaddrinfo (void);
6062 int
6063 main (void)
6064 {
6065 return getaddrinfo ();
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 for ac_lib in '' socket
6071 do
6072 if test -z "$ac_lib"; then
6073 ac_res="none required"
6074 else
6075 ac_res=-l$ac_lib
6076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6077 fi
6078 if ac_fn_c_try_link "$LINENO"
6079 then :
6080 ac_cv_search_getaddrinfo=$ac_res
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6083 conftest$ac_exeext
6084 if test ${ac_cv_search_getaddrinfo+y}
6085 then :
6086 break
6087 fi
6088 done
6089 if test ${ac_cv_search_getaddrinfo+y}
6090 then :
6091
6092 else case e in #(
6093 e) ac_cv_search_getaddrinfo=no ;;
6094 esac
6095 fi
6096 rm conftest.$ac_ext
6097 LIBS=$ac_func_search_save_LIBS ;;
6098 esac
6099 fi
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
6101 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; }
6102 ac_res=$ac_cv_search_getaddrinfo
6103 if test "$ac_res" != no
6104 then :
6105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6106
6107 fi
6108
6109 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6110 if test "x$ac_cv_func_getaddrinfo" = xyes
6111 then :
6112 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
6113
6114 fi
6115 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
6116 if test "x$ac_cv_func_getnameinfo" = xyes
6117 then :
6118 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
6119
6120 fi
6121 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
6122 if test "x$ac_cv_func_freeaddrinfo" = xyes
6123 then :
6124 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
6125
6126 fi
6127 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
6128 if test "x$ac_cv_func_gai_strerror" = xyes
6129 then :
6130 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
6131
6132 fi
6133
6134 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
6135 #include <sys/types.h>
6136 #include <sys/socket.h>
6137 #include <netdb.h>
6138 "
6139 if test "x$ac_cv_type_struct_addrinfo" = xyes
6140 then :
6141
6142 fi
6143
6144 if test "$ac_cv_func_getaddrinfo" != yes || \
6145 test "$ac_cv_func_getnameinfo" != yes
6146 then
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using own getaddrinfo() and getnameinfo() replacements" >&5
6148 printf "%s\n" "$as_me: using own getaddrinfo() and getnameinfo() replacements" >&6;}
6149 case " $LIBOBJS " in
6150 *" getinfos.$ac_objext "* ) ;;
6151 *) LIBOBJS="$LIBOBJS getinfos.$ac_objext"
6152 ;;
6153 esac
6154
6155 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
6156 if test "x$ac_cv_func_getservbyname" = xyes
6157 then :
6158 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
6159
6160 fi
6161 ac_fn_c_check_func "$LINENO" "getservbyport" "ac_cv_func_getservbyport"
6162 if test "x$ac_cv_func_getservbyport" = xyes
6163 then :
6164 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
6165
6166 fi
6167 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
6168 if test "x$ac_cv_func_gethostbyaddr" = xyes
6169 then :
6170 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
6171
6172 fi
6173 ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons"
6174 if test "x$ac_cv_func_htons" = xyes
6175 then :
6176 printf "%s\n" "#define HAVE_HTONS 1" >>confdefs.h
6177
6178 fi
6179 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
6180 if test "x$ac_cv_func_hstrerror" = xyes
6181 then :
6182 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
6183
6184 fi
6185
6186 fi
6187
6188 # Check for debugging options
6189 # Check whether --enable-debug was given.
6190 if test ${enable_debug+y}
6191 then :
6192 enableval=$enable_debug; if test "x$enableval" != "xno" ; then CFLAGS="-g -DDEBUG $CFLAGS" ; fi
6193 fi
6194
6195
6196 # Check for extra compiler warnings
6197 # Check whether --enable-warnings was given.
6198 if test ${enable_warnings+y}
6199 then :
6200 enableval=$enable_warnings; if test "x$enableval" != "xno" ; then CFLAGS="$CFLAGS -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations" ; fi
6201 fi
6202
6203
6204 # add --disable-maintainer-mode option
6205
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6207 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6208 # Check whether --enable-maintainer-mode was given.
6209 if test ${enable_maintainer_mode+y}
6210 then :
6211 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6212 else case e in #(
6213 e) USE_MAINTAINER_MODE=yes ;;
6214 esac
6215 fi
6216
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6218 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
6219 if test $USE_MAINTAINER_MODE = yes; then
6220 MAINTAINER_MODE_TRUE=
6221 MAINTAINER_MODE_FALSE='#'
6222 else
6223 MAINTAINER_MODE_TRUE='#'
6224 MAINTAINER_MODE_FALSE=
6225 fi
6226
6227 MAINT=$MAINTAINER_MODE_TRUE
6228
6229
6230
6231 # check wether we want use tcp wrappers (yes,no,maybe)
6232 WANT_LIBWRAP="no"
6233
6234 # Check whether --with-libwrap was given.
6235 if test ${with_libwrap+y}
6236 then :
6237 withval=$with_libwrap; if test "x$withval" = "xno"
6238 then
6239 WANT_LIBWRAP="no"
6240 else
6241 WANT_LIBWRAP="yes"
6242 # add supplied value to paths
6243 if test "x$withval" != "x" && test "x$withval" != "xyes"
6244 then
6245 CPPFLAGS="-I$LIBWRAP/include $CPPFLAGS"
6246 LDFLAGS="-L$LIBWRAP/lib $LDFLAGS"
6247 fi
6248 fi
6249 fi
6250
6251
6252 # check wether we can use tcp wrappers
6253 if test "x$WANT_LIBWRAP" != "xno"
6254 then
6255 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
6256 if test "x$ac_cv_header_tcpd_h" = xyes
6257 then :
6258 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
6259
6260 fi
6261
6262 # try using tcp wrappers without a library, with -lwrap and with -lwrap and -lnsl
6263 HAVE_LIBWRAP="yes"
6264 SAVE_LIBS="$LIBS"
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcp wrapper functions" >&5
6266 printf %s "checking for tcp wrapper functions... " >&6; }
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 int allow_severity,deny_severity;
6270 int
6271 main (void)
6272 {
6273 request_init((void *)0,0);hosts_access((void *)0)
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"
6279 then :
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 printf "%s\n" "yes" >&6; }
6282 else case e in #(
6283 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 printf "%s\n" "no" >&6; }
6285 LIBS="-lwrap $LIBS"
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcp wrapper functions in -lwrap" >&5
6287 printf %s "checking for tcp wrapper functions in -lwrap... " >&6; }
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 int allow_severity,deny_severity;
6291 int
6292 main (void)
6293 {
6294 request_init((void *)0,0);hosts_access((void *)0)
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"
6300 then :
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6302 printf "%s\n" "yes" >&6; }
6303 else case e in #(
6304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 printf "%s\n" "no" >&6; }
6306 LIBS="-lnsl $LIBS"
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcp wrapper functions in -lwrap -lnsl" >&5
6308 printf %s "checking for tcp wrapper functions in -lwrap -lnsl... " >&6; }
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int allow_severity,deny_severity;
6312 int
6313 main (void)
6314 {
6315 request_init((void *)0,0);hosts_access((void *)0)
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_link "$LINENO"
6321 then :
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6323 printf "%s\n" "yes" >&6; }
6324 else case e in #(
6325 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 printf "%s\n" "no" >&6; }
6327 LIBS="$SAVE_LIBS"
6328 HAVE_LIBWRAP="no" ;;
6329 esac
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6332 conftest$ac_exeext conftest.$ac_ext
6333 ;;
6334 esac
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6337 conftest$ac_exeext conftest.$ac_ext
6338 ;;
6339 esac
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6342 conftest$ac_exeext conftest.$ac_ext
6343 if test "x$HAVE_LIBWRAP" != "xno"
6344 then
6345
6346 printf "%s\n" "#define USE_LIBWRAP 1" >>confdefs.h
6347
6348 elif test "x$WANT_LIBWRAP" = "xyes"
6349 then
6350 as_fn_error $? "*** tcp wrappers not found ***" "$LINENO" 5
6351 fi
6352 fi
6353
6354 # check wether we want use capabilities (yes,no,maybe)
6355 WANT_CAPABILITIES="no"
6356
6357 # Check whether --with-capabilities was given.
6358 if test ${with_capabilities+y}
6359 then :
6360 withval=$with_capabilities; if test "x$withval" = "xno"
6361 then
6362 WANT_CAPABILITIES="no"
6363 else
6364 WANT_CAPABILITIES="yes"
6365 # add supplied value to paths
6366 if test "x$withval" != "x" && test "x$withval" != "xyes"
6367 then
6368 CPPFLAGS="-I$LIBWRAP/include $CPPFLAGS"
6369 LDFLAGS="-L$LIBWRAP/lib $LDFLAGS"
6370 fi
6371 fi
6372 fi
6373
6374
6375 # check wether we can use capabilities
6376 if test "x$WANT_CAPABILITIES" != "xno"
6377 then
6378 HAVE_CAPABILITIES="yes"
6379 for ac_header in sys/capability.h
6380 do :
6381 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
6382 if test "x$ac_cv_header_sys_capability_h" = xyes
6383 then :
6384 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
6385
6386 else case e in #(
6387 e) HAVE_CAPABILITIES="no" ;;
6388 esac
6389 fi
6390
6391 done
6392 for ac_header in sys/prctl.h
6393 do :
6394 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
6395 if test "x$ac_cv_header_sys_prctl_h" = xyes
6396 then :
6397 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
6398
6399 else case e in #(
6400 e) HAVE_CAPABILITIES="no" ;;
6401 esac
6402 fi
6403
6404 done
6405 ac_fn_c_check_type "$LINENO" "cap_t" "ac_cv_type_cap_t" "
6406 #include <sys/capability.h>
6407 "
6408 if test "x$ac_cv_type_cap_t" = xyes
6409 then :
6410
6411 else case e in #(
6412 e) HAVE_CAPABILITIES="no" ;;
6413 esac
6414 fi
6415
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cap_init" >&5
6417 printf %s "checking for library containing cap_init... " >&6; }
6418 if test ${ac_cv_search_cap_init+y}
6419 then :
6420 printf %s "(cached) " >&6
6421 else case e in #(
6422 e) ac_func_search_save_LIBS=$LIBS
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425
6426 /* Override any GCC internal prototype to avoid an error.
6427 Use char because int might match the return type of a GCC
6428 builtin and then its argument prototype would still apply.
6429 The 'extern "C"' is for builds by C++ compilers;
6430 although this is not generally supported in C code supporting it here
6431 has little cost and some practical benefit (sr 110532). */
6432 #ifdef __cplusplus
6433 extern "C"
6434 #endif
6435 char cap_init (void);
6436 int
6437 main (void)
6438 {
6439 return cap_init ();
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 for ac_lib in '' cap
6445 do
6446 if test -z "$ac_lib"; then
6447 ac_res="none required"
6448 else
6449 ac_res=-l$ac_lib
6450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6451 fi
6452 if ac_fn_c_try_link "$LINENO"
6453 then :
6454 ac_cv_search_cap_init=$ac_res
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6457 conftest$ac_exeext
6458 if test ${ac_cv_search_cap_init+y}
6459 then :
6460 break
6461 fi
6462 done
6463 if test ${ac_cv_search_cap_init+y}
6464 then :
6465
6466 else case e in #(
6467 e) ac_cv_search_cap_init=no ;;
6468 esac
6469 fi
6470 rm conftest.$ac_ext
6471 LIBS=$ac_func_search_save_LIBS ;;
6472 esac
6473 fi
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_init" >&5
6475 printf "%s\n" "$ac_cv_search_cap_init" >&6; }
6476 ac_res=$ac_cv_search_cap_init
6477 if test "$ac_res" != no
6478 then :
6479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6480
6481 else case e in #(
6482 e) HAVE_CAPABILITIES="no" ;;
6483 esac
6484 fi
6485
6486
6487 for ac_func in prctl cap_from_text cap_to_text cap_get_proc cap_set_proc cap_free
6488 do :
6489 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
6490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6491 if eval test \"x\$"$as_ac_var"\" = x"yes"
6492 then :
6493 cat >>confdefs.h <<_ACEOF
6494 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
6495 _ACEOF
6496
6497 else case e in #(
6498 e) HAVE_CAPABILITIES="no" ;;
6499 esac
6500 fi
6501
6502 done
6503 if test "x$HAVE_CAPABILITIES" != "xno"
6504 then
6505
6506 printf "%s\n" "#define USE_CAPABILITIES 1" >>confdefs.h
6507
6508 elif test "x$WANT_CAPABILITIES" = "xyes"
6509 then
6510 as_fn_error $? "*** capabilities not available ***" "$LINENO" 5
6511 fi
6512 fi
6513
6514 # where to find the configuration file
6515 # TODO: this should probably be fixed to be nicer
6516 CONFIGFILE=`eval echo $sysconfdir/cvsd/cvsd.conf | \
6517 sed "s%^NONE/%${prefix}/%" | \
6518 sed "s%^NONE/%${ac_default_prefix}/%"`
6519
6520
6521 printf "%s\n" "#define DEFAULT_CONFIGFILE \"$CONFIGFILE\"" >>confdefs.h
6522
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $CONFIGFILE as default location for configfile" >&5
6524 printf "%s\n" "$as_me: using $CONFIGFILE as default location for configfile" >&6;}
6525
6526 # where to find the binary (for init scripts)
6527 CVSD_BIN=`eval echo $sbindir/cvsd | \
6528 sed "s%^NONE/%${exec_prefix}/%" | \
6529 sed "s%^NONE/%${prefix}/%" | \
6530 sed "s%^NONE/%${ac_default_prefix}/%"`
6531
6532
6533 # store options passed to configure
6534 CONFIGURE_CMD="$0 $ac_configure_args"
6535
6536
6537 # What files to output
6538 ac_config_files="$ac_config_files Makefile cvsd.8 cvsd-buildroot.8 cvsd-passwd.8 cvsd.conf.5 cvsd-buginfo.8 cvsd.spec"
6539
6540 ac_config_files="$ac_config_files cvsd-buildroot"
6541
6542 ac_config_files="$ac_config_files cvsd-passwd"
6543
6544 ac_config_files="$ac_config_files cvsd-buginfo"
6545
6546 ac_config_files="$ac_config_files cvsd.init"
6547
6548 ac_config_files="$ac_config_files cvsd.init.redhat71"
6549
6550 cat >confcache <<\_ACEOF
6551 # This file is a shell script that caches the results of configure
6552 # tests run on this system so they can be shared between configure
6553 # scripts and configure runs, see configure's option --config-cache.
6554 # It is not useful on other systems. If it contains results you don't
6555 # want to keep, you may remove or edit it.
6556 #
6557 # config.status only pays attention to the cache file if you give it
6558 # the --recheck option to rerun configure.
6559 #
6560 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
6561 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
6562 # following values.
6563
6564 _ACEOF
6565
6566 # The following way of writing the cache mishandles newlines in values,
6567 # but we know of no workaround that is simple, portable, and efficient.
6568 # So, we kill variables containing newlines.
6569 # Ultrix sh set writes to stderr and can't be redirected directly,
6570 # and sets the high bit in the cache file unless we assign to the vars.
6571 (
6572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6573 eval ac_val=\$$ac_var
6574 case $ac_val in #(
6575 *${as_nl}*)
6576 case $ac_var in #(
6577 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6578 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6579 esac
6580 case $ac_var in #(
6581 _ | IFS | as_nl) ;; #(
6582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6583 *) { eval $ac_var=; unset $ac_var;} ;;
6584 esac ;;
6585 esac
6586 done
6587
6588 (set) 2>&1 |
6589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6590 *${as_nl}ac_space=\ *)
6591 # 'set' does not quote correctly, so add quotes: double-quote
6592 # substitution turns \\\\ into \\, and sed turns \\ into \.
6593 sed -n \
6594 "s/'/'\\\\''/g;
6595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6596 ;; #(
6597 *)
6598 # 'set' quotes correctly as required by POSIX, so do not add quotes.
6599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6600 ;;
6601 esac |
6602 sort
6603 ) |
6604 sed '
6605 /^ac_cv_env_/b end
6606 t clear
6607 :clear
6608 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6609 t end
6610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6611 :end' >>confcache
6612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6613 if test -w "$cache_file"; then
6614 if test "x$cache_file" != "x/dev/null"; then
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6616 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6617 if test ! -f "$cache_file" || test -h "$cache_file"; then
6618 cat confcache >"$cache_file"
6619 else
6620 case $cache_file in #(
6621 */* | ?:*)
6622 mv -f confcache "$cache_file"$$ &&
6623 mv -f "$cache_file"$$ "$cache_file" ;; #(
6624 *)
6625 mv -f confcache "$cache_file" ;;
6626 esac
6627 fi
6628 fi
6629 else
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6631 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6632 fi
6633 fi
6634 rm -f confcache
6635
6636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6637 # Let make expand exec_prefix.
6638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6639
6640 DEFS=-DHAVE_CONFIG_H
6641
6642 ac_libobjs=
6643 ac_ltlibobjs=
6644 U=
6645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6646 # 1. Remove the extension, and $U if already installed.
6647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6648 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6650 # will be set to the directory where LIBOBJS objects are built.
6651 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6652 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6653 done
6654 LIBOBJS=$ac_libobjs
6655
6656 LTLIBOBJS=$ac_ltlibobjs
6657
6658
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6660 printf %s "checking that generated files are newer than configure... " >&6; }
6661 if test -n "$am_sleep_pid"; then
6662 # Hide warnings about reused PIDs.
6663 wait $am_sleep_pid 2>/dev/null
6664 fi
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6666 printf "%s\n" "done" >&6; }
6667 if test -n "$EXEEXT"; then
6668 am__EXEEXT_TRUE=
6669 am__EXEEXT_FALSE='#'
6670 else
6671 am__EXEEXT_TRUE='#'
6672 am__EXEEXT_FALSE=
6673 fi
6674
6675 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6676 as_fn_error $? "conditional \"AMDEP\" was never defined.
6677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6678 fi
6679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6680 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6682 fi
6683 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6684 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6686 fi
6687
6688 : "${CONFIG_STATUS=./config.status}"
6689 ac_write_fail=0
6690 ac_clean_files_save=$ac_clean_files
6691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6693 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6694 as_write_fail=0
6695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6696 #! $SHELL
6697 # Generated by $as_me.
6698 # Run this file to recreate the current configuration.
6699 # Compiler output produced by configure, useful for debugging
6700 # configure, is in config.log if it exists.
6701
6702 debug=false
6703 ac_cs_recheck=false
6704 ac_cs_silent=false
6705
6706 SHELL=\${CONFIG_SHELL-$SHELL}
6707 export SHELL
6708 _ASEOF
6709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6710 ## -------------------- ##
6711 ## M4sh Initialization. ##
6712 ## -------------------- ##
6713
6714 # Be more Bourne compatible
6715 DUALCASE=1; export DUALCASE # for MKS sh
6716 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6717 then :
6718 emulate sh
6719 NULLCMD=:
6720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6721 # is contrary to our usage. Disable this feature.
6722 alias -g '${1+"$@"}'='"$@"'
6723 setopt NO_GLOB_SUBST
6724 else case e in #(
6725 e) case `(set -o) 2>/dev/null` in #(
6726 *posix*) :
6727 set -o posix ;; #(
6728 *) :
6729 ;;
6730 esac ;;
6731 esac
6732 fi
6733
6734
6735
6736 # Reset variables that may have inherited troublesome values from
6737 # the environment.
6738
6739 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6740 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6741 # side effect of setting IFS to empty, thus disabling word splitting.)
6742 # Quoting is to prevent editors from complaining about space-tab.
6743 as_nl='
6744 '
6745 export as_nl
6746 IFS=" "" $as_nl"
6747
6748 PS1='$ '
6749 PS2='> '
6750 PS4='+ '
6751
6752 # Ensure predictable behavior from utilities with locale-dependent output.
6753 LC_ALL=C
6754 export LC_ALL
6755 LANGUAGE=C
6756 export LANGUAGE
6757
6758 # We cannot yet rely on "unset" to work, but we need these variables
6759 # to be unset--not just set to an empty or harmless value--now, to
6760 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6761 # also avoids known problems related to "unset" and subshell syntax
6762 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6763 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6764 do eval test \${$as_var+y} \
6765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6766 done
6767
6768 # Ensure that fds 0, 1, and 2 are open.
6769 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6770 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6771 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6772
6773 # The user is always right.
6774 if ${PATH_SEPARATOR+false} :; then
6775 PATH_SEPARATOR=:
6776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6778 PATH_SEPARATOR=';'
6779 }
6780 fi
6781
6782
6783 # Find who we are. Look in the path if we contain no directory separator.
6784 as_myself=
6785 case $0 in #((
6786 *[\\/]* ) as_myself=$0 ;;
6787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 case $as_dir in #(((
6792 '') as_dir=./ ;;
6793 */) ;;
6794 *) as_dir=$as_dir/ ;;
6795 esac
6796 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6797 done
6798 IFS=$as_save_IFS
6799
6800 ;;
6801 esac
6802 # We did not find ourselves, most probably we were run as 'sh COMMAND'
6803 # in which case we are not to be found in the path.
6804 if test "x$as_myself" = x; then
6805 as_myself=$0
6806 fi
6807 if test ! -f "$as_myself"; then
6808 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6809 exit 1
6810 fi
6811
6812
6813
6814 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6815 # ----------------------------------------
6816 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6817 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6818 # script with STATUS, using 1 if that was 0.
6819 as_fn_error ()
6820 {
6821 as_status=$1; test $as_status -eq 0 && as_status=1
6822 if test "$4"; then
6823 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6825 fi
6826 printf "%s\n" "$as_me: error: $2" >&2
6827 as_fn_exit $as_status
6828 } # as_fn_error
6829
6830
6831 # as_fn_set_status STATUS
6832 # -----------------------
6833 # Set $? to STATUS, without forking.
6834 as_fn_set_status ()
6835 {
6836 return $1
6837 } # as_fn_set_status
6838
6839 # as_fn_exit STATUS
6840 # -----------------
6841 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6842 as_fn_exit ()
6843 {
6844 set +e
6845 as_fn_set_status $1
6846 exit $1
6847 } # as_fn_exit
6848
6849 # as_fn_unset VAR
6850 # ---------------
6851 # Portably unset VAR.
6852 as_fn_unset ()
6853 {
6854 { eval $1=; unset $1;}
6855 }
6856 as_unset=as_fn_unset
6857
6858 # as_fn_append VAR VALUE
6859 # ----------------------
6860 # Append the text in VALUE to the end of the definition contained in VAR. Take
6861 # advantage of any shell optimizations that allow amortized linear growth over
6862 # repeated appends, instead of the typical quadratic growth present in naive
6863 # implementations.
6864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6865 then :
6866 eval 'as_fn_append ()
6867 {
6868 eval $1+=\$2
6869 }'
6870 else case e in #(
6871 e) as_fn_append ()
6872 {
6873 eval $1=\$$1\$2
6874 } ;;
6875 esac
6876 fi # as_fn_append
6877
6878 # as_fn_arith ARG...
6879 # ------------------
6880 # Perform arithmetic evaluation on the ARGs, and store the result in the
6881 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6882 # must be portable across $(()) and expr.
6883 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6884 then :
6885 eval 'as_fn_arith ()
6886 {
6887 as_val=$(( $* ))
6888 }'
6889 else case e in #(
6890 e) as_fn_arith ()
6891 {
6892 as_val=`expr "$@" || test $? -eq 1`
6893 } ;;
6894 esac
6895 fi # as_fn_arith
6896
6897
6898 if expr a : '\(a\)' >/dev/null 2>&1 &&
6899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6900 as_expr=expr
6901 else
6902 as_expr=false
6903 fi
6904
6905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6906 as_basename=basename
6907 else
6908 as_basename=false
6909 fi
6910
6911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6912 as_dirname=dirname
6913 else
6914 as_dirname=false
6915 fi
6916
6917 as_me=`$as_basename -- "$0" ||
6918 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6919 X"$0" : 'X\(//\)$' \| \
6920 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6921 printf "%s\n" X/"$0" |
6922 sed '/^.*\/\([^/][^/]*\)\/*$/{
6923 s//\1/
6924 q
6925 }
6926 /^X\/\(\/\/\)$/{
6927 s//\1/
6928 q
6929 }
6930 /^X\/\(\/\).*/{
6931 s//\1/
6932 q
6933 }
6934 s/.*/./; q'`
6935
6936 # Avoid depending upon Character Ranges.
6937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6940 as_cr_digits='0123456789'
6941 as_cr_alnum=$as_cr_Letters$as_cr_digits
6942
6943
6944 # Determine whether it's possible to make 'echo' print without a newline.
6945 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6946 # for compatibility with existing Makefiles.
6947 ECHO_C= ECHO_N= ECHO_T=
6948 case `echo -n x` in #(((((
6949 -n*)
6950 case `echo 'xy\c'` in
6951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6952 xy) ECHO_C='\c';;
6953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6954 ECHO_T=' ';;
6955 esac;;
6956 *)
6957 ECHO_N='-n';;
6958 esac
6959
6960 # For backward compatibility with old third-party macros, we provide
6961 # the shell variables $as_echo and $as_echo_n. New code should use
6962 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6963 as_echo='printf %s\n'
6964 as_echo_n='printf %s'
6965
6966 rm -f conf$$ conf$$.exe conf$$.file
6967 if test -d conf$$.dir; then
6968 rm -f conf$$.dir/conf$$.file
6969 else
6970 rm -f conf$$.dir
6971 mkdir conf$$.dir 2>/dev/null
6972 fi
6973 if (echo >conf$$.file) 2>/dev/null; then
6974 if ln -s conf$$.file conf$$ 2>/dev/null; then
6975 as_ln_s='ln -s'
6976 # ... but there are two gotchas:
6977 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
6978 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
6979 # In both cases, we have to default to 'cp -pR'.
6980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6981 as_ln_s='cp -pR'
6982 elif ln conf$$.file conf$$ 2>/dev/null; then
6983 as_ln_s=ln
6984 else
6985 as_ln_s='cp -pR'
6986 fi
6987 else
6988 as_ln_s='cp -pR'
6989 fi
6990 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6991 rmdir conf$$.dir 2>/dev/null
6992
6993
6994 # as_fn_mkdir_p
6995 # -------------
6996 # Create "$as_dir" as a directory, including parents if necessary.
6997 as_fn_mkdir_p ()
6998 {
6999
7000 case $as_dir in #(
7001 -*) as_dir=./$as_dir;;
7002 esac
7003 test -d "$as_dir" || eval $as_mkdir_p || {
7004 as_dirs=
7005 while :; do
7006 case $as_dir in #(
7007 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7008 *) as_qdir=$as_dir;;
7009 esac
7010 as_dirs="'$as_qdir' $as_dirs"
7011 as_dir=`$as_dirname -- "$as_dir" ||
7012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7013 X"$as_dir" : 'X\(//\)[^/]' \| \
7014 X"$as_dir" : 'X\(//\)$' \| \
7015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7016 printf "%s\n" X"$as_dir" |
7017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7018 s//\1/
7019 q
7020 }
7021 /^X\(\/\/\)[^/].*/{
7022 s//\1/
7023 q
7024 }
7025 /^X\(\/\/\)$/{
7026 s//\1/
7027 q
7028 }
7029 /^X\(\/\).*/{
7030 s//\1/
7031 q
7032 }
7033 s/.*/./; q'`
7034 test -d "$as_dir" && break
7035 done
7036 test -z "$as_dirs" || eval "mkdir $as_dirs"
7037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7038
7039
7040 } # as_fn_mkdir_p
7041 if mkdir -p . 2>/dev/null; then
7042 as_mkdir_p='mkdir -p "$as_dir"'
7043 else
7044 test -d ./-p && rmdir ./-p
7045 as_mkdir_p=false
7046 fi
7047
7048
7049 # as_fn_executable_p FILE
7050 # -----------------------
7051 # Test if FILE is an executable regular file.
7052 as_fn_executable_p ()
7053 {
7054 test -f "$1" && test -x "$1"
7055 } # as_fn_executable_p
7056 as_test_x='test -x'
7057 as_executable_p=as_fn_executable_p
7058
7059 # Sed expression to map a string onto a valid CPP name.
7060 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7061 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7062
7063 # Sed expression to map a string onto a valid variable name.
7064 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7065 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7066
7067
7068 exec 6>&1
7069 ## ----------------------------------- ##
7070 ## Main body of $CONFIG_STATUS script. ##
7071 ## ----------------------------------- ##
7072 _ASEOF
7073 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7074
7075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7076 # Save the log message, to keep $0 and so on meaningful, and to
7077 # report actual input values of CONFIG_FILES etc. instead of their
7078 # values after options handling.
7079 ac_log="
7080 This file was extended by cvsd $as_me 1.0.25, which was
7081 generated by GNU Autoconf 2.72. Invocation command line was
7082
7083 CONFIG_FILES = $CONFIG_FILES
7084 CONFIG_HEADERS = $CONFIG_HEADERS
7085 CONFIG_LINKS = $CONFIG_LINKS
7086 CONFIG_COMMANDS = $CONFIG_COMMANDS
7087 $ $0 $@
7088
7089 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7090 "
7091
7092 _ACEOF
7093
7094 case $ac_config_files in *"
7095 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7096 esac
7097
7098 case $ac_config_headers in *"
7099 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7100 esac
7101
7102
7103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7104 # Files that config.status was made for.
7105 config_files="$ac_config_files"
7106 config_headers="$ac_config_headers"
7107 config_commands="$ac_config_commands"
7108
7109 _ACEOF
7110
7111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7112 ac_cs_usage="\
7113 '$as_me' instantiates files and other configuration actions
7114 from templates according to the current configuration. Unless the files
7115 and actions are specified as TAGs, all are instantiated by default.
7116
7117 Usage: $0 [OPTION]... [TAG]...
7118
7119 -h, --help print this help, then exit
7120 -V, --version print version number and configuration settings, then exit
7121 --config print configuration, then exit
7122 -q, --quiet, --silent
7123 do not print progress messages
7124 -d, --debug don't remove temporary files
7125 --recheck update $as_me by reconfiguring in the same conditions
7126 --file=FILE[:TEMPLATE]
7127 instantiate the configuration file FILE
7128 --header=FILE[:TEMPLATE]
7129 instantiate the configuration header FILE
7130
7131 Configuration files:
7132 $config_files
7133
7134 Configuration headers:
7135 $config_headers
7136
7137 Configuration commands:
7138 $config_commands
7139
7140 Report bugs to <[email protected]>."
7141
7142 _ACEOF
7143 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7144 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7146 ac_cs_config='$ac_cs_config_escaped'
7147 ac_cs_version="\\
7148 cvsd config.status 1.0.25
7149 configured by $0, generated by GNU Autoconf 2.72,
7150 with options \\"\$ac_cs_config\\"
7151
7152 Copyright (C) 2023 Free Software Foundation, Inc.
7153 This config.status script is free software; the Free Software Foundation
7154 gives unlimited permission to copy, distribute and modify it."
7155
7156 ac_pwd='$ac_pwd'
7157 srcdir='$srcdir'
7158 INSTALL='$INSTALL'
7159 MKDIR_P='$MKDIR_P'
7160 AWK='$AWK'
7161 test -n "\$AWK" || AWK=awk
7162 _ACEOF
7163
7164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7165 # The default lists apply if the user does not specify any file.
7166 ac_need_defaults=:
7167 while test $# != 0
7168 do
7169 case $1 in
7170 --*=?*)
7171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7173 ac_shift=:
7174 ;;
7175 --*=)
7176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7177 ac_optarg=
7178 ac_shift=:
7179 ;;
7180 *)
7181 ac_option=$1
7182 ac_optarg=$2
7183 ac_shift=shift
7184 ;;
7185 esac
7186
7187 case $ac_option in
7188 # Handling of the options.
7189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7190 ac_cs_recheck=: ;;
7191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7192 printf "%s\n" "$ac_cs_version"; exit ;;
7193 --config | --confi | --conf | --con | --co | --c )
7194 printf "%s\n" "$ac_cs_config"; exit ;;
7195 --debug | --debu | --deb | --de | --d | -d )
7196 debug=: ;;
7197 --file | --fil | --fi | --f )
7198 $ac_shift
7199 case $ac_optarg in
7200 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7201 '') as_fn_error $? "missing file argument" ;;
7202 esac
7203 as_fn_append CONFIG_FILES " '$ac_optarg'"
7204 ac_need_defaults=false;;
7205 --header | --heade | --head | --hea )
7206 $ac_shift
7207 case $ac_optarg in
7208 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7209 esac
7210 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7211 ac_need_defaults=false;;
7212 --he | --h)
7213 # Conflict between --help and --header
7214 as_fn_error $? "ambiguous option: '$1'
7215 Try '$0 --help' for more information.";;
7216 --help | --hel | -h )
7217 printf "%s\n" "$ac_cs_usage"; exit ;;
7218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7220 ac_cs_silent=: ;;
7221
7222 # This is an error.
7223 -*) as_fn_error $? "unrecognized option: '$1'
7224 Try '$0 --help' for more information." ;;
7225
7226 *) as_fn_append ac_config_targets " $1"
7227 ac_need_defaults=false ;;
7228
7229 esac
7230 shift
7231 done
7232
7233 ac_configure_extra_args=
7234
7235 if $ac_cs_silent; then
7236 exec 6>/dev/null
7237 ac_configure_extra_args="$ac_configure_extra_args --silent"
7238 fi
7239
7240 _ACEOF
7241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7242 if \$ac_cs_recheck; then
7243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7244 shift
7245 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7246 CONFIG_SHELL='$SHELL'
7247 export CONFIG_SHELL
7248 exec "\$@"
7249 fi
7250
7251 _ACEOF
7252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7253 exec 5>>config.log
7254 {
7255 echo
7256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7257 ## Running $as_me. ##
7258 _ASBOX
7259 printf "%s\n" "$ac_log"
7260 } >&5
7261
7262 _ACEOF
7263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7264 #
7265 # INIT-COMMANDS
7266 #
7267 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7268
7269 _ACEOF
7270
7271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7272
7273 # Handling of arguments.
7274 for ac_config_target in $ac_config_targets
7275 do
7276 case $ac_config_target in
7277 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7278 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7280 "cvsd.8") CONFIG_FILES="$CONFIG_FILES cvsd.8" ;;
7281 "cvsd-buildroot.8") CONFIG_FILES="$CONFIG_FILES cvsd-buildroot.8" ;;
7282 "cvsd-passwd.8") CONFIG_FILES="$CONFIG_FILES cvsd-passwd.8" ;;
7283 "cvsd.conf.5") CONFIG_FILES="$CONFIG_FILES cvsd.conf.5" ;;
7284 "cvsd-buginfo.8") CONFIG_FILES="$CONFIG_FILES cvsd-buginfo.8" ;;
7285 "cvsd.spec") CONFIG_FILES="$CONFIG_FILES cvsd.spec" ;;
7286 "cvsd-buildroot") CONFIG_FILES="$CONFIG_FILES cvsd-buildroot" ;;
7287 "cvsd-passwd") CONFIG_FILES="$CONFIG_FILES cvsd-passwd" ;;
7288 "cvsd-buginfo") CONFIG_FILES="$CONFIG_FILES cvsd-buginfo" ;;
7289 "cvsd.init") CONFIG_FILES="$CONFIG_FILES cvsd.init" ;;
7290 "cvsd.init.redhat71") CONFIG_FILES="$CONFIG_FILES cvsd.init.redhat71" ;;
7291
7292 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
7293 esac
7294 done
7295
7296
7297 # If the user did not use the arguments to specify the items to instantiate,
7298 # then the envvar interface is used. Set only those that are not.
7299 # We use the long form for the default assignment because of an extremely
7300 # bizarre bug on SunOS 4.1.3.
7301 if $ac_need_defaults; then
7302 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7303 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7304 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7305 fi
7306
7307 # Have a temporary directory for convenience. Make it in the build tree
7308 # simply because there is no reason against having it here, and in addition,
7309 # creating and moving files from /tmp can sometimes cause problems.
7310 # Hook for its removal unless debugging.
7311 # Note that there is a small window in which the directory will not be cleaned:
7312 # after its creation but before its name has been assigned to '$tmp'.
7313 $debug ||
7314 {
7315 tmp= ac_tmp=
7316 trap 'exit_status=$?
7317 : "${ac_tmp:=$tmp}"
7318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7319 ' 0
7320 trap 'as_fn_exit 1' 1 2 13 15
7321 }
7322 # Create a (secure) tmp directory for tmp files.
7323
7324 {
7325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7326 test -d "$tmp"
7327 } ||
7328 {
7329 tmp=./conf$$-$RANDOM
7330 (umask 077 && mkdir "$tmp")
7331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7332 ac_tmp=$tmp
7333
7334 # Set up the scripts for CONFIG_FILES section.
7335 # No need to generate them if there are no CONFIG_FILES.
7336 # This happens for instance with './config.status config.h'.
7337 if test -n "$CONFIG_FILES"; then
7338
7339
7340 ac_cr=`echo X | tr X '\015'`
7341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7342 # But we know of no other shell where ac_cr would be empty at this
7343 # point, so we can use a bashism as a fallback.
7344 if test "x$ac_cr" = x; then
7345 eval ac_cr=\$\'\\r\'
7346 fi
7347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7349 ac_cs_awk_cr='\\r'
7350 else
7351 ac_cs_awk_cr=$ac_cr
7352 fi
7353
7354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7355 _ACEOF
7356
7357
7358 {
7359 echo "cat >conf$$subs.awk <<_ACEOF" &&
7360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7361 echo "_ACEOF"
7362 } >conf$$subs.sh ||
7363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7365 ac_delim='%!_!# '
7366 for ac_last_try in false false false false false :; do
7367 . ./conf$$subs.sh ||
7368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7369
7370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7371 if test $ac_delim_n = $ac_delim_num; then
7372 break
7373 elif $ac_last_try; then
7374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7375 else
7376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7377 fi
7378 done
7379 rm -f conf$$subs.sh
7380
7381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7383 _ACEOF
7384 sed -n '
7385 h
7386 s/^/S["/; s/!.*/"]=/
7387 p
7388 g
7389 s/^[^!]*!//
7390 :repl
7391 t repl
7392 s/'"$ac_delim"'$//
7393 t delim
7394 :nl
7395 h
7396 s/\(.\{148\}\)..*/\1/
7397 t more1
7398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7399 p
7400 n
7401 b repl
7402 :more1
7403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7404 p
7405 g
7406 s/.\{148\}//
7407 t nl
7408 :delim
7409 h
7410 s/\(.\{148\}\)..*/\1/
7411 t more2
7412 s/["\\]/\\&/g; s/^/"/; s/$/"/
7413 p
7414 b
7415 :more2
7416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7417 p
7418 g
7419 s/.\{148\}//
7420 t delim
7421 ' <conf$$subs.awk | sed '
7422 /^[^""]/{
7423 N
7424 s/\n//
7425 }
7426 ' >>$CONFIG_STATUS || ac_write_fail=1
7427 rm -f conf$$subs.awk
7428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7429 _ACAWK
7430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7431 for (key in S) S_is_set[key] = 1
7432 FS = ""
7433
7434 }
7435 {
7436 line = $ 0
7437 nfields = split(line, field, "@")
7438 substed = 0
7439 len = length(field[1])
7440 for (i = 2; i < nfields; i++) {
7441 key = field[i]
7442 keylen = length(key)
7443 if (S_is_set[key]) {
7444 value = S[key]
7445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7446 len += length(value) + length(field[++i])
7447 substed = 1
7448 } else
7449 len += 1 + keylen
7450 }
7451
7452 print line
7453 }
7454
7455 _ACAWK
7456 _ACEOF
7457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7460 else
7461 cat
7462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7464 _ACEOF
7465
7466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7468 # trailing colons and then remove the whole line if VPATH becomes empty
7469 # (actually we leave an empty line to preserve line numbers).
7470 if test "x$srcdir" = x.; then
7471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7472 h
7473 s///
7474 s/^/:/
7475 s/[ ]*$/:/
7476 s/:\$(srcdir):/:/g
7477 s/:\${srcdir}:/:/g
7478 s/:@srcdir@:/:/g
7479 s/^:*//
7480 s/:*$//
7481 x
7482 s/\(=[ ]*\).*/\1/
7483 G
7484 s/\n//
7485 s/^[^=]*=[ ]*$//
7486 }'
7487 fi
7488
7489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7490 fi # test -n "$CONFIG_FILES"
7491
7492 # Set up the scripts for CONFIG_HEADERS section.
7493 # No need to generate them if there are no CONFIG_HEADERS.
7494 # This happens for instance with './config.status Makefile'.
7495 if test -n "$CONFIG_HEADERS"; then
7496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7497 BEGIN {
7498 _ACEOF
7499
7500 # Transform confdefs.h into an awk script 'defines.awk', embedded as
7501 # here-document in config.status, that substitutes the proper values into
7502 # config.h.in to produce config.h.
7503
7504 # Create a delimiter string that does not exist in confdefs.h, to ease
7505 # handling of long lines.
7506 ac_delim='%!_!# '
7507 for ac_last_try in false false :; do
7508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7509 if test -z "$ac_tt"; then
7510 break
7511 elif $ac_last_try; then
7512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7513 else
7514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7515 fi
7516 done
7517
7518 # For the awk script, D is an array of macro values keyed by name,
7519 # likewise P contains macro parameters if any. Preserve backslash
7520 # newline sequences.
7521
7522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7523 sed -n '
7524 s/.\{148\}/&'"$ac_delim"'/g
7525 t rset
7526 :rset
7527 s/^[ ]*#[ ]*define[ ][ ]*/ /
7528 t def
7529 d
7530 :def
7531 s/\\$//
7532 t bsnl
7533 s/["\\]/\\&/g
7534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7535 D["\1"]=" \3"/p
7536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7537 d
7538 :bsnl
7539 s/["\\]/\\&/g
7540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7541 D["\1"]=" \3\\\\\\n"\\/p
7542 t cont
7543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7544 t cont
7545 d
7546 :cont
7547 n
7548 s/.\{148\}/&'"$ac_delim"'/g
7549 t clear
7550 :clear
7551 s/\\$//
7552 t bsnlc
7553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7554 d
7555 :bsnlc
7556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7557 b cont
7558 ' <confdefs.h | sed '
7559 s/'"$ac_delim"'/"\\\
7560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7561
7562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7563 for (key in D) D_is_set[key] = 1
7564 FS = ""
7565 }
7566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7567 line = \$ 0
7568 split(line, arg, " ")
7569 if (arg[1] == "#") {
7570 defundef = arg[2]
7571 mac1 = arg[3]
7572 } else {
7573 defundef = substr(arg[1], 2)
7574 mac1 = arg[2]
7575 }
7576 split(mac1, mac2, "(") #)
7577 macro = mac2[1]
7578 prefix = substr(line, 1, index(line, defundef) - 1)
7579 if (D_is_set[macro]) {
7580 # Preserve the white space surrounding the "#".
7581 print prefix "define", macro P[macro] D[macro]
7582 next
7583 } else {
7584 # Replace #undef with comments. This is necessary, for example,
7585 # in the case of _POSIX_SOURCE, which is predefined and required
7586 # on some systems where configure will not decide to define it.
7587 if (defundef == "undef") {
7588 print "/*", prefix defundef, macro, "*/"
7589 next
7590 }
7591 }
7592 }
7593 { print }
7594 _ACAWK
7595 _ACEOF
7596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7598 fi # test -n "$CONFIG_HEADERS"
7599
7600
7601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7602 shift
7603 for ac_tag
7604 do
7605 case $ac_tag in
7606 :[FHLC]) ac_mode=$ac_tag; continue;;
7607 esac
7608 case $ac_mode$ac_tag in
7609 :[FHL]*:*);;
7610 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
7611 :[FH]-) ac_tag=-:-;;
7612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7613 esac
7614 ac_save_IFS=$IFS
7615 IFS=:
7616 set x $ac_tag
7617 IFS=$ac_save_IFS
7618 shift
7619 ac_file=$1
7620 shift
7621
7622 case $ac_mode in
7623 :L) ac_source=$1;;
7624 :[FH])
7625 ac_file_inputs=
7626 for ac_f
7627 do
7628 case $ac_f in
7629 -) ac_f="$ac_tmp/stdin";;
7630 *) # Look for the file first in the build tree, then in the source tree
7631 # (if the path is not absolute). The absolute path cannot be DOS-style,
7632 # because $ac_f cannot contain ':'.
7633 test -f "$ac_f" ||
7634 case $ac_f in
7635 [\\/$]*) false;;
7636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7637 esac ||
7638 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
7639 esac
7640 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7641 as_fn_append ac_file_inputs " '$ac_f'"
7642 done
7643
7644 # Let's still pretend it is 'configure' which instantiates (i.e., don't
7645 # use $as_me), people would be surprised to read:
7646 # /* config.h. Generated by config.status. */
7647 configure_input='Generated from '`
7648 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7649 `' by configure.'
7650 if test x"$ac_file" != x-; then
7651 configure_input="$ac_file. $configure_input"
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7653 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7654 fi
7655 # Neutralize special characters interpreted by sed in replacement strings.
7656 case $configure_input in #(
7657 *\&* | *\|* | *\\* )
7658 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7660 *) ac_sed_conf_input=$configure_input;;
7661 esac
7662
7663 case $ac_tag in
7664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7666 esac
7667 ;;
7668 esac
7669
7670 ac_dir=`$as_dirname -- "$ac_file" ||
7671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7672 X"$ac_file" : 'X\(//\)[^/]' \| \
7673 X"$ac_file" : 'X\(//\)$' \| \
7674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7675 printf "%s\n" X"$ac_file" |
7676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7677 s//\1/
7678 q
7679 }
7680 /^X\(\/\/\)[^/].*/{
7681 s//\1/
7682 q
7683 }
7684 /^X\(\/\/\)$/{
7685 s//\1/
7686 q
7687 }
7688 /^X\(\/\).*/{
7689 s//\1/
7690 q
7691 }
7692 s/.*/./; q'`
7693 as_dir="$ac_dir"; as_fn_mkdir_p
7694 ac_builddir=.
7695
7696 case "$ac_dir" in
7697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7698 *)
7699 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7700 # A ".." for each directory in $ac_dir_suffix.
7701 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7702 case $ac_top_builddir_sub in
7703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7705 esac ;;
7706 esac
7707 ac_abs_top_builddir=$ac_pwd
7708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7709 # for backward compatibility:
7710 ac_top_builddir=$ac_top_build_prefix
7711
7712 case $srcdir in
7713 .) # We are building in place.
7714 ac_srcdir=.
7715 ac_top_srcdir=$ac_top_builddir_sub
7716 ac_abs_top_srcdir=$ac_pwd ;;
7717 [\\/]* | ?:[\\/]* ) # Absolute name.
7718 ac_srcdir=$srcdir$ac_dir_suffix;
7719 ac_top_srcdir=$srcdir
7720 ac_abs_top_srcdir=$srcdir ;;
7721 *) # Relative name.
7722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7723 ac_top_srcdir=$ac_top_build_prefix$srcdir
7724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7725 esac
7726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7727
7728
7729 case $ac_mode in
7730 :F)
7731 #
7732 # CONFIG_FILE
7733 #
7734
7735 case $INSTALL in
7736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7738 esac
7739 ac_MKDIR_P=$MKDIR_P
7740 case $MKDIR_P in
7741 [\\/$]* | ?:[\\/]* ) ;;
7742 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7743 esac
7744 _ACEOF
7745
7746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7747 # If the template does not know about datarootdir, expand it.
7748 # FIXME: This hack should be removed a few years after 2.60.
7749 ac_datarootdir_hack=; ac_datarootdir_seen=
7750 ac_sed_dataroot='
7751 /datarootdir/ {
7752 p
7753 q
7754 }
7755 /@datadir@/p
7756 /@docdir@/p
7757 /@infodir@/p
7758 /@localedir@/p
7759 /@mandir@/p'
7760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7761 *datarootdir*) ac_datarootdir_seen=yes;;
7762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7764 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7765 _ACEOF
7766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7767 ac_datarootdir_hack='
7768 s&@datadir@&$datadir&g
7769 s&@docdir@&$docdir&g
7770 s&@infodir@&$infodir&g
7771 s&@localedir@&$localedir&g
7772 s&@mandir@&$mandir&g
7773 s&\\\${datarootdir}&$datarootdir&g' ;;
7774 esac
7775 _ACEOF
7776
7777 # Neutralize VPATH when '$srcdir' = '.'.
7778 # Shell code in configure.ac might set extrasub.
7779 # FIXME: do we really want to maintain this feature?
7780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7781 ac_sed_extra="$ac_vpsub
7782 $extrasub
7783 _ACEOF
7784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7785 :t
7786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7787 s|@configure_input@|$ac_sed_conf_input|;t t
7788 s&@top_builddir@&$ac_top_builddir_sub&;t t
7789 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7790 s&@srcdir@&$ac_srcdir&;t t
7791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7792 s&@top_srcdir@&$ac_top_srcdir&;t t
7793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7794 s&@builddir@&$ac_builddir&;t t
7795 s&@abs_builddir@&$ac_abs_builddir&;t t
7796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7797 s&@INSTALL@&$ac_INSTALL&;t t
7798 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7799 $ac_datarootdir_hack
7800 "
7801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7802 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7803
7804 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7805 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7806 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7807 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7809 which seems to be undefined. Please make sure it is defined" >&5
7810 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7811 which seems to be undefined. Please make sure it is defined" >&2;}
7812
7813 rm -f "$ac_tmp/stdin"
7814 case $ac_file in
7815 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7816 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7817 esac \
7818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7819 ;;
7820 :H)
7821 #
7822 # CONFIG_HEADER
7823 #
7824 if test x"$ac_file" != x-; then
7825 {
7826 printf "%s\n" "/* $configure_input */" >&1 \
7827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7828 } >"$ac_tmp/config.h" \
7829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7830 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7832 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7833 else
7834 rm -f "$ac_file"
7835 mv "$ac_tmp/config.h" "$ac_file" \
7836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7837 fi
7838 else
7839 printf "%s\n" "/* $configure_input */" >&1 \
7840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7841 || as_fn_error $? "could not create -" "$LINENO" 5
7842 fi
7843 # Compute "$ac_file"'s index in $config_headers.
7844 _am_arg="$ac_file"
7845 _am_stamp_count=1
7846 for _am_header in $config_headers :; do
7847 case $_am_header in
7848 $_am_arg | $_am_arg:* )
7849 break ;;
7850 * )
7851 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7852 esac
7853 done
7854 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7855 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7856 X"$_am_arg" : 'X\(//\)[^/]' \| \
7857 X"$_am_arg" : 'X\(//\)$' \| \
7858 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7859 printf "%s\n" X"$_am_arg" |
7860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7861 s//\1/
7862 q
7863 }
7864 /^X\(\/\/\)[^/].*/{
7865 s//\1/
7866 q
7867 }
7868 /^X\(\/\/\)$/{
7869 s//\1/
7870 q
7871 }
7872 /^X\(\/\).*/{
7873 s//\1/
7874 q
7875 }
7876 s/.*/./; q'`/stamp-h$_am_stamp_count
7877 ;;
7878
7879 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7880 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7881 ;;
7882 esac
7883
7884
7885 case $ac_file$ac_mode in
7886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7887 # Older Autoconf quotes --file arguments for eval, but not when files
7888 # are listed without --file. Let's play safe and only enable the eval
7889 # if we detect the quoting.
7890 # TODO: see whether this extra hack can be removed once we start
7891 # requiring Autoconf 2.70 or later.
7892 case $CONFIG_FILES in #(
7893 *\'*) :
7894 eval set x "$CONFIG_FILES" ;; #(
7895 *) :
7896 set x $CONFIG_FILES ;; #(
7897 *) :
7898 ;;
7899 esac
7900 shift
7901 # Used to flag and report bootstrapping failures.
7902 am_rc=0
7903 for am_mf
7904 do
7905 # Strip MF so we end up with the name of the file.
7906 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7907 # Check whether this is an Automake generated Makefile which includes
7908 # dependency-tracking related rules and includes.
7909 # Grep'ing the whole file directly is not great: AIX grep has a line
7910 # limit of 2048, but all sed's we know have understand at least 4000.
7911 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7912 || continue
7913 am_dirpart=`$as_dirname -- "$am_mf" ||
7914 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7915 X"$am_mf" : 'X\(//\)[^/]' \| \
7916 X"$am_mf" : 'X\(//\)$' \| \
7917 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7918 printf "%s\n" X"$am_mf" |
7919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7920 s//\1/
7921 q
7922 }
7923 /^X\(\/\/\)[^/].*/{
7924 s//\1/
7925 q
7926 }
7927 /^X\(\/\/\)$/{
7928 s//\1/
7929 q
7930 }
7931 /^X\(\/\).*/{
7932 s//\1/
7933 q
7934 }
7935 s/.*/./; q'`
7936 am_filepart=`$as_basename -- "$am_mf" ||
7937 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7938 X"$am_mf" : 'X\(//\)$' \| \
7939 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7940 printf "%s\n" X/"$am_mf" |
7941 sed '/^.*\/\([^/][^/]*\)\/*$/{
7942 s//\1/
7943 q
7944 }
7945 /^X\/\(\/\/\)$/{
7946 s//\1/
7947 q
7948 }
7949 /^X\/\(\/\).*/{
7950 s//\1/
7951 q
7952 }
7953 s/.*/./; q'`
7954 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7955 && sed -e '/# am--include-marker/d' "$am_filepart" \
7956 | $MAKE -f - am--depfiles" >&5
7957 (cd "$am_dirpart" \
7958 && sed -e '/# am--include-marker/d' "$am_filepart" \
7959 | $MAKE -f - am--depfiles) >&5 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } || am_rc=$?
7963 done
7964 if test $am_rc -ne 0; then
7965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7966 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7967 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7968 for automatic dependency tracking. If GNU make was not used, consider
7969 re-running the configure script with MAKE=\"gmake\" (or whatever is
7970 necessary). You can also try re-running configure with the
7971 '--disable-dependency-tracking' option to at least be able to build
7972 the package (albeit without support for automatic dependency tracking).
7973 See 'config.log' for more details" "$LINENO" 5; }
7974 fi
7975 { am_dirpart=; unset am_dirpart;}
7976 { am_filepart=; unset am_filepart;}
7977 { am_mf=; unset am_mf;}
7978 { am_rc=; unset am_rc;}
7979 rm -f conftest-deps.mk
7980 }
7981 ;;
7982 "cvsd-buildroot":F) chmod a+rx cvsd-buildroot ;;
7983 "cvsd-passwd":F) chmod a+rx cvsd-passwd ;;
7984 "cvsd-buginfo":F) chmod a+rx cvsd-buginfo ;;
7985 "cvsd.init":F) chmod a+rx cvsd.init ;;
7986 "cvsd.init.redhat71":F) chmod a+rx cvsd.init.redhat71 ;;
7987
7988 esac
7989 done # for ac_tag
7990
7991
7992 as_fn_exit 0
7993 _ACEOF
7994 ac_clean_files=$ac_clean_files_save
7995
7996 test $ac_write_fail = 0 ||
7997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7998
7999
8000 # configure is writing to config.log, and then calls config.status.
8001 # config.status does its own redirection, appending to config.log.
8002 # Unfortunately, on DOS this fails, as config.log is still kept open
8003 # by configure, so config.status won't be able to write to it; its
8004 # output is simply discarded. So we exec the FD to /dev/null,
8005 # effectively closing config.log, so it can be properly (re)opened and
8006 # appended to by config.status. When coming back to configure, we
8007 # need to make the FD available again.
8008 if test "$no_create" != yes; then
8009 ac_cs_success=:
8010 ac_config_status_args=
8011 test "$silent" = yes &&
8012 ac_config_status_args="$ac_config_status_args --quiet"
8013 exec 5>/dev/null
8014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8015 exec 5>>config.log
8016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8017 # would make configure fail if this is the last instruction.
8018 $ac_cs_success || as_fn_exit 1
8019 fi
8020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8022 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8023 fi
8024
8025